public static void main  ( String args [ ] ) { if ( args . length < 1 ) { System . out . println ( "Error: Must have 1 parameter: config filename" ) ; return ; } System . out . println ( "java.version=" + System . getProperty ( "java.version" ) ) ; try { ClientGlobal . init ( args [ 0 ] ) ; System . out . println ( "network_timeout=" + ClientGlobal . g_network_timeout + "ms" ) ; System . out . println ( "charset=" + ClientGlobal . g_charset ) ; TrackerClient tracker = new TrackerClient ( ) ; TrackerServer trackerServer = tracker . getConnection ( ) ; if ( trackerServer == null ) { return ; } int count ; StructGroupStat [ ] groupStats = tracker . listGroups ( trackerServer ) ; if ( groupStats == null ) { System . out . println ( "" ) ; System . out . println ( "ERROR! list groups error, error no: " + tracker . getErrorCode ( ) ) ; System . out . println ( "" ) ; return ; } System . out . println ( "group count: " + groupStats . length ) ; count = 0 ; for ( StructGroupStat groupStat : groupStats ) { count ++ ; System . out . println ( "Group " + count + ":" ) ; System . out . println ( "group name = " + groupStat . getGroupName ( ) ) ; System . out . println ( "disk total space = " + groupStat . getTotalMB ( ) + "MB" ) ; System . out . println ( "disk free space = " + groupStat . getFreeMB ( ) + " MB" ) ; System . out . println ( "trunk free space = " + groupStat . getTrunkFreeMB ( ) + " MB" ) ; System . out . println ( "storage server count = " + groupStat . getStorageCount ( ) ) ; System . out . println ( "active server count = " + groupStat . getActiveCount ( ) ) ; System . out . println ( "storage server port = " + groupStat . getStoragePort ( ) ) ; System . out . println ( "storage HTTP port = " + groupStat . getStorageHttpPort ( ) ) ; System . out . println ( "store path count = " + groupStat . getStorePathCount ( ) ) ; System . out . println ( "subdir count per path = " + groupStat . getSubdirCountPerPath ( ) ) ; System . out . println ( "current write server index = " + groupStat . getCurrentWriteServer ( ) ) ; System . out . println ( "current trunk file id = " + groupStat . getCurrentTrunkFileId ( ) ) ; StructStorageStat [ ] storageStats = tracker . listStorages ( trackerServer , groupStat . getGroupName ( ) ) ; if ( storageStats == null ) { System . out . println ( "" ) ; System . out . println ( "ERROR! list storage error, error no: " + tracker . getErrorCode ( ) ) ; System . out . println ( "" ) ; break ; } SimpleDateFormat df = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) ; int stroageCount = 0 ; for ( StructStorageStat storageStat : storageStats ) { stroageCount ++ ; System . out . println ( "\tStorage " + stroageCount + ":" ) ; System . out . println ( "\t\tstorage id = " + storageStat . getId ( ) ) ; System . out . println ( "\t\tip_addr = " + storageStat . getIpAddr ( ) + "  " + ProtoCommon . getStorageStatusCaption ( storageStat . getStatus ( ) ) ) ; System . out . println ( "\t\thttp domain = " + storageStat . getDomainName ( ) ) ; System . out . println ( "\t\tversion = " + storageStat . getVersion ( ) ) ; System . out . println ( "\t\tjoin time = " + df . format ( storageStat . getJoinTime ( ) ) ) ; System . out . println ( "\t\tup time = " + ( storageStat . getUpTime ( ) . getTime ( ) == 0 ? "" : df . format ( storageStat . getUpTime ( ) ) ) ) ; System . out . println ( "\t\ttotal storage = " + storageStat . getTotalMB ( ) + "MB" ) ; System . out . println ( "\t\tfree storage = " + storageStat . getFreeMB ( ) + "MB" ) ; System . out . println ( "\t\tupload priority = " + storageStat . getUploadPriority ( ) ) ; System . out . println ( "\t\tstore_path_count = " + storageStat . getStorePathCount ( ) ) ; System . out . println ( "\t\tsubdir_count_per_path = " + storageStat . getSubdirCountPerPath ( ) ) ; System . out . println ( "\t\tstorage_port = " + storageStat . getStoragePort ( ) ) ; System . out . println ( "\t\tstorage_http_port = " + storageStat . getStorageHttpPort ( ) ) ; System . out . println ( "\t\tcurrent_write_path = " + storageStat . getCurrentWritePath ( ) ) ; System . out . println ( "\t\tsource ip_addr = " + storageStat . getSrcIpAddr ( ) ) ; System . out . println ( "\t\tif_trunk_server = " + storageStat . isTrunkServer ( ) ) ; System . out . println ( "\t\ttotal_upload_count = " + storageStat . getTotalUploadCount ( ) ) ; System . out . println ( "\t\tsuccess_upload_count = " + storageStat . getSuccessUploadCount ( ) ) ; System . out . println ( "\t\ttotal_append_count = " + storageStat . getTotalAppendCount ( ) ) ; System . out . println ( "\t\tsuccess_append_count = " + storageStat . getSuccessAppendCount ( ) ) ; System . out . println ( "\t\ttotal_modify_count = " + storageStat . getTotalModifyCount ( ) ) ; System . out . println ( "\t\tsuccess_modify_count = " + storageStat . getSuccessModifyCount ( ) ) ; System . out . println ( "\t\ttotal_truncate_count = " + storageStat . getTotalTruncateCount ( ) ) ; System . out . println ( "\t\tsuccess_truncate_count = " + storageStat . getSuccessTruncateCount ( ) ) ; System . out . println ( "\t\ttotal_set_meta_count = " + storageStat . getTotalSetMetaCount ( ) ) ; System . out . println ( "\t\tsuccess_set_meta_count = " + storageStat . getSuccessSetMetaCount ( ) ) ; System . out . println ( "\t\ttotal_delete_count = " + storageStat . getTotalDeleteCount ( ) ) ; System . out . println ( "\t\tsuccess_delete_count = " + storageStat . getSuccessDeleteCount ( ) ) ; System . out . println ( "\t\ttotal_download_count = " + storageStat . getTotalDownloadCount ( ) ) ; System . out . println ( "\t\tsuccess_download_count = " + storageStat . getSuccessDownloadCount ( ) ) ; System . out . println ( "\t\ttotal_get_meta_count = " + storageStat . getTotalGetMetaCount ( ) ) ; System . out . println ( "\t\tsuccess_get_meta_count = " + storageStat . getSuccessGetMetaCount ( ) ) ; System . out . println ( "\t\ttotal_create_link_count = " + storageStat . getTotalCreateLinkCount ( ) ) ; System . out . println ( "\t\tsuccess_create_link_count = " + storageStat . getSuccessCreateLinkCount ( ) ) ; System . out . println ( "\t\ttotal_delete_link_count = " + storageStat . getTotalDeleteLinkCount ( ) ) ; System . out . println ( "\t\tsuccess_delete_link_count = " + storageStat . getSuccessDeleteLinkCount ( ) ) ; System . out . println ( "\t\ttotal_upload_bytes = " + storageStat . getTotalUploadBytes ( ) ) ; System . out . println ( "\t\tsuccess_upload_bytes = " + storageStat . getSuccessUploadBytes ( ) ) ; System . out . println ( "\t\ttotal_append_bytes = " + storageStat . getTotalAppendBytes ( ) ) ; System . out . println ( "\t\tsuccess_append_bytes = " + storageStat . getSuccessAppendBytes ( ) ) ; System . out . println ( "\t\ttotal_modify_bytes = " + storageStat . getTotalModifyBytes ( ) ) ; System . out . println ( "\t\tsuccess_modify_bytes = " + storageStat . getSuccessModifyBytes ( ) ) ; System . out . println ( "\t\ttotal_download_bytes = " + storageStat . getTotalDownloadloadBytes ( ) ) ; System . out . println ( "\t\tsuccess_download_bytes = " + storageStat . getSuccessDownloadloadBytes ( ) ) ; System . out . println ( "\t\ttotal_sync_in_bytes = " + storageStat . getTotalSyncInBytes ( ) ) ; System . out . println ( "\t\tsuccess_sync_in_bytes = " + storageStat . getSuccessSyncInBytes ( ) ) ; System . out . println ( "\t\ttotal_sync_out_bytes = " + storageStat . getTotalSyncOutBytes ( ) ) ; System . out . println ( "\t\tsuccess_sync_out_bytes = " + storageStat . getSuccessSyncOutBytes ( ) ) ; System . out . println ( "\t\ttotal_file_open_count = " + storageStat . getTotalFileOpenCount ( ) ) ; System . out . println ( "\t\tsuccess_file_open_count = " + storageStat . getSuccessFileOpenCount ( ) ) ; System . out . println ( "\t\ttotal_file_read_count = " + storageStat . getTotalFileReadCount ( ) ) ; System . out . println ( "\t\tsuccess_file_read_count = " + storageStat . getSuccessFileReadCount ( ) ) ; System . out . println ( "\t\ttotal_file_write_count = " + storageStat . getTotalFileWriteCount ( ) ) ; System . out . println ( "\t\tsuccess_file_write_count = " + storageStat . getSuccessFileWriteCount ( ) ) ; System . out . println ( "\t\tlast_heart_beat_time = " + df . format ( storageStat . getLastHeartBeatTime ( ) ) ) ; System . out . println ( "\t\tlast_source_update = " + df . format ( storageStat . getLastSourceUpdate ( ) ) ) ; System . out . println ( "\t\tlast_sync_update = " + df . format ( storageStat . getLastSyncUpdate ( ) ) ) ; System . out . println ( "\t\tlast_synced_timestamp = " + df . format ( storageStat . getLastSyncedTimestamp ( ) ) + getSyncedDelayString ( storageStats , storageStat ) ) ; } } trackerServer . close ( ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } }


Direction ( boolean b )  { direction = b ; }


public static int createProgram  ( String vertexSource , String fragmentSource ) { int vertexShader = loadShader ( GLES20 . GL_VERTEX_SHADER , vertexSource ) ; if ( vertexShader == 0 ) { return 0 ; } int pixelShader = loadShader ( GLES20 . GL_FRAGMENT_SHADER , fragmentSource ) ; if ( pixelShader == 0 ) { return 0 ; } int program = GLES20 . glCreateProgram ( ) ; checkGlError ( "glCreateProgram" ) ; if ( program == 0 ) { Log . e ( TAG , "Could not create program" ) ; } GLES20 . glAttachShader ( program , vertexShader ) ; checkGlError ( "glAttachShader" ) ; GLES20 . glAttachShader ( program , pixelShader ) ; checkGlError ( "glAttachShader" ) ; GLES20 . glLinkProgram ( program ) ; int [ ] linkStatus = new int [ 1 ] ; GLES20 . glGetProgramiv ( program , GLES20 . GL_LINK_STATUS , linkStatus , 0 ) ; if ( linkStatus [ 0 ] != GLES20 . GL_TRUE ) { Log . e ( TAG , "Could not link program: " ) ; Log . e ( TAG , GLES20 . glGetProgramInfoLog ( program ) ) ; GLES20 . glDeleteProgram ( program ) ; program = 0 ; } return program ; }

Crea un nuevo programa de los sombreadores de vértices y fragmentos suministrados.


public static void write  ( char [ ] data , Writer output ) throws IOException { if ( data != null ) { output . write ( data ) ; } }

Escribe caracteres de un <código> char [] </ code> a un escritor </ code> usando la codificación de caracteres predeterminada de la plataforma.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_MPAttack_A_TO_B  ( String skillcaster , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201209 , skillcaster , skilltarget , skillname ) ; }

[% Skillcaster] dio [% SkillTarget] el efecto de reducción de MP continuo utilizando [% de habilidad].


public void cancel  ( ) { if ( mAnimator != null && mAnimator . isRunning ( ) ) { mAnimator . cancel ( ) ; } if ( mTimer != null ) { mTimer . cancel ( ) ; mTimer . purge ( ) ; cleanupAnimation ( ) ; } }

Cancela el sistema de partículas y todas las animaciones.Para dejar de emitir, pero animar hasta el final, use STOPEMIPTING en su lugar.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Shield_INTERVAL_ME_TO_B  ( String skilltarget , int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200561 , skilltarget , num0 , skillname ) ; }

[% SkillTarget] Bloqueado% de daño NUM0 debido al efecto de [% de habilidad].


public ZWaveManufacturerSpecificCommandClass ( ZWaveNode node , ZWaveController controller , ZWaveEndpoint endpoint ) { super ( node , controller , endpoint ) ; }

Crea una nueva instancia de la clase de Zwavemanufactururerspecific.ContcifCommandClass.


public boolean isSuccess  ( ) { return success ; }

Obtiene el valor de la propiedad de éxito.


public Object opt  ( int index ) { return ( index < 0 || index >= length ( ) ) ? null : this . myArrayList . get ( index ) ; }

Obtenga el valor de objeto opcional asociado con un índice.


@ Override public void revertToDefaultValue  ( ) { populateField ( this . defaultValue ) ; }


public String toJson  ( ) throws JsonGenerationException , JsonMappingException , IOException  { ObjectMapper mapper = new ObjectMapper ( ) ; return mapper . writeValueAsString ( this ) ; }


public void drawChart  ( Graphics2D gc ) { SelectionGraphics < String [ ] > sgc = ( gc instanceof SelectionGraphics ? ( SelectionGraphics < String [ ] > ) gc : null ) ; gc . setFont ( getFont ( ChartViewer . FontKeys . XAxisFont . toString ( ) ) ) ; int y0 = getHeight ( ) - bottomMargin ; int y1 = topMargin ; int x0 = leftMargin ; int x1 = getWidth ( ) - rightMargin ; if ( x0 >= x1 ) return ; int numberOfDataSets = getChartData ( ) . getNumberOfSeries ( ) ; int numberOfClasses = getChartData ( ) . getNumberOfClasses ( ) ; double xStep = ( x1 - x0 ) / numberOfDataSets ; double yStep = ( y0 - y1 ) / ( 0.5 + numberOfClasses ) ; double maxValue = getChartData ( ) . getRange ( ) . get2 ( ) . doubleValue ( ) ; if ( scalingType == ChartViewer . ScalingType . LOG && maxValue > 0 ) maxValue = Math . log ( maxValue ) ; else if ( scalingType == ChartViewer . ScalingType . SQRT && maxValue > 0 ) maxValue = Math . sqrt ( maxValue ) ; else if ( scalingType == ChartViewer . ScalingType . PERCENT ) maxValue = 100 ; int gridWidth = 5 ; double drawWidth = ( double ) maxRadius / ( double ) gridWidth ; int totalBoxes = gridWidth * gridWidth ; int e = maxValue > 0 ? ( int ) Math . ceil ( Math . log10 ( maxValue ) ) : 0 ; int x = ( int ) Math . ceil ( maxValue / Math . pow ( 10 , e ) ) ; int boxValue = ( int ) ( ( x * Math . pow ( 10 , e ) ) / totalBoxes ) ; int d = 0 ; for ( String series : getChartData ( ) . getSeriesNames ( ) ) { if ( isShowXAxis ( ) ) { double xLabel = x0 + ( d + 0.5 ) * xStep ; Point2D apt = new Point2D . Double ( xLabel , getHeight ( ) - bottomMargin + 10 ) ; String label = seriesLabelGetter . getLabel ( series ) ; Dimension labelSize = Basic . getStringSize ( gc , label , gc . getFont ( ) ) . getSize ( ) ; if ( classLabelAngle == 0 ) { apt . setLocation ( apt . getX ( ) - labelSize . getWidth ( ) / 2 , apt . getY ( ) ) ; } else if ( classLabelAngle > Math . PI / 2 ) { apt = Geometry . translateByAngle ( apt , classLabelAngle , - labelSize . width ) ; } if ( getChartData ( ) . getChartSelection ( ) . isSelected ( series , null ) ) { gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; fillAndDrawRect ( gc , apt . getX ( ) , apt . getY ( ) , labelSize . width , labelSize . height , classLabelAngle , ProgramProperties . SELECTION_COLOR , ProgramProperties . SELECTION_COLOR_DARKER ) ; } gc . setColor ( getFontColor ( ChartViewer . FontKeys . XAxisFont . toString ( ) , Color . DARK_GRAY ) ) ; if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { series , null } ) ; drawString ( gc , label , apt . getX ( ) , apt . getY ( ) , classLabelAngle ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; } int c = 0 ; for ( String className : getChartData ( ) . getClassNames ( ) ) { double value ; if ( scalingType == ChartViewer . ScalingType . PERCENT ) { double total = getChartData ( ) . getTotalForSeriesIncludingDisabledAttributes ( series ) ; if ( total == 0 ) value = 0 ; else value = 100 * getChartData ( ) . getValueAsDouble ( series , className ) / total ; } else if ( scalingType == ChartViewer . ScalingType . LOG ) { value = getChartData ( ) . getValueAsDouble ( series , className ) ; if ( value > 1 ) value = Math . log ( value ) ; } else if ( scalingType == ChartViewer . ScalingType . SQRT ) { value = getChartData ( ) . getValueAsDouble ( series , className ) ; if ( value > 0 ) value = Math . sqrt ( value ) ; } else value = getChartData ( ) . getValueAsDouble ( series , className ) ; Point bottomLeft = new Point ( ( int ) ( ( x0 + ( d + 0.5 ) * xStep ) - maxRadius / 2 ) , ( int ) ( ( y0 - ( c + 1 ) * yStep ) ) ) ; Color color = getChartColors ( ) . getClassColor ( class2HigherClassMapper . get ( className ) , 150 ) ; gc . setColor ( color ) ; int numberOfBoxes = ( value <= 0 ? 0 : ( int ) Math . ceil ( totalBoxes / maxValue * value ) ) ; int currentWidth = Math . min ( totalBoxes , ( int ) Math . ceil ( Math . sqrt ( numberOfBoxes + 1 ) ) ) ; Rectangle2D rect = new Rectangle2D . Double ( ) ; { if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { series , className } ) ; int row = 0 ; int col = 0 ; for ( int i = 1 ; i <= numberOfBoxes ; i ++ ) { rect . setRect ( bottomLeft . x + col * drawWidth , bottomLeft . y - row * drawWidth , drawWidth , drawWidth ) ; if ( i == numberOfBoxes ) { double coveredValue = ( numberOfBoxes - 1 ) * boxValue ; double diff = value - coveredValue ; double factor = diff / boxValue ; double height = rect . getHeight ( ) * factor ; double y = rect . getY ( ) + ( rect . getHeight ( ) - height ) ; rect . setRect ( rect . getX ( ) , y , rect . getWidth ( ) , height ) ; } gc . fill ( rect ) ; if ( ( i % currentWidth ) == 0 ) { col = 0 ; row ++ ; } else col ++ ; } if ( sgc != null ) sgc . clearCurrentItem ( ) ; } gc . setColor ( color . darker ( ) ) ; { int row = 0 ; int col = 0 ; for ( int i = 1 ; i <= numberOfBoxes ; i ++ ) { rect . setRect ( bottomLeft . x + col * drawWidth , bottomLeft . y - row * drawWidth , drawWidth , drawWidth ) ; gc . draw ( rect ) ; if ( ( i % currentWidth ) == 0 ) { col = 0 ; row ++ ; } else col ++ ; } } boolean isSelected = getChartData ( ) . getChartSelection ( ) . isSelected ( series , className ) ; if ( isSelected ) { gc . setStroke ( HEAVY_STROKE ) ; gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; int row = 0 ; int col = 0 ; for ( int i = 1 ; i <= numberOfBoxes ; i ++ ) { rect . setRect ( bottomLeft . x + col * drawWidth , bottomLeft . y - row * drawWidth , drawWidth , drawWidth ) ; gc . draw ( rect ) ; if ( ( i % currentWidth ) == 0 ) { col = 0 ; row ++ ; } else col ++ ; } gc . setStroke ( NORMAL_STROKE ) ; } c ++ ; if ( showValues || isSelected ) { String label = "" + ( int ) getChartData ( ) . getValueAsDouble ( series , className ) ; valuesList . add ( new DrawableValue ( label , bottomLeft . x + maxRadius + 2 , bottomLeft . y - maxRadius / 2 , isSelected ) ) ; } } d ++ ; } if ( valuesList . size ( ) > 0 ) { gc . setFont ( getFont ( ChartViewer . FontKeys . ValuesFont . toString ( ) ) ) ; DrawableValue . drawValues ( gc , valuesList , false , true ) ; valuesList . clear ( ) ; } drawScale ( gc , drawWidth , boxValue ) ; }

Dibuja ladrillos con colores que representan clases.


public ColorConversionTransform ( Random random , int conversionCode ) { super ( random ) ; this . conversionCode = conversionCode ; converter = new OpenCVFrameConverter . ToMat ( ) ; }

Devolver el nuevo objeto ColorConversion


public JSONArray put  ( int index , double value ) throws JSONException { put ( index , new Double ( value ) ) ; return this ; }

Poner o reemplazar un valor doble.Si el índice es mayor que la longitud del JSONARRAY, entonces los elementos nulos se agregarán según sea necesario para rellenarlo.


public static void writeVLong  ( DataOutput stream , long i ) throws IOException { WritableUtils . writeVLong ( stream , i ) ; }

Serializa una corriente larga a una binaria con codificación de cero comprimido.Para -112 <= I <= 127, solo se usa un byte con el valor real.Para otros valores de I, el primer valor de byte indica si el largo es positivo o negativo, y el número de bytes que siguen.Si el primer valor de byte V está entre -113 y -120, el siguiente largo es positivo, con el número de bytes que siguen son: (v + 112).Si el primer valor de byte V está entre -121 y -128, el siguiente largo es negativo, con el número de bytes que siguen son: (V + 120).Los bytes se almacenan en el primer orden de alto-cero.


public BrentSolver ( ) { this  ( DEFAULT_ABSOLUTE_ACCURACY ) ; }

Construir un solver con precisión absoluta predeterminada (1E-6).


public Pair ( ObjTypeFirst oFirst , ObjTypeSecond oSecond ) { first = oFirst ; second = oSecond ; }

Crea una nueva instancia de par, dados dos objetos.


public final int yystate  ( ) { return zzLexicalState ; }


public void add  ( long value ) { metric . add ( value ) ; }


void addFillComponents  ( Container panel , int [ ] cols , int [ ] rows ) { Dimension filler = new Dimension ( 10 , 10 ) ; boolean filled_cell_11 = false ; CellConstraints cc = new CellConstraints ( ) ; if ( cols . length > 0 && rows . length > 0 ) { if ( cols [ 0 ] == 1 && rows [ 0 ] == 1 ) { panel . add ( Box . createRigidArea ( filler ) , cc . xy ( 1 , 1 ) ) ; filled_cell_11 = true ; } } for ( int index = 0 ; index < cols . length ; index ++ ) { if ( cols [ index ] == 1 && filled_cell_11 ) { continue ; } panel . add ( Box . createRigidArea ( filler ) , cc . xy ( cols [ index ] , 1 ) ) ; } for ( int index = 0 ; index < rows . length ; index ++ ) { if ( rows [ index ] == 1 && filled_cell_11 ) { continue ; } panel . add ( Box . createRigidArea ( filler ) , cc . xy ( 1 , rows [ index ] ) ) ; } }

Agrega componentes de llenado para vaciar las celdas en la primera fila y la primera columna de la cuadrícula.Esto asegura que el espaciado de la red sea el mismo que se muestra en el diseñador.


public BrokerItem ( Item item , int itemId , int itemUniqueId , long itemCount , String itemCreator , long price , String seller , int sellerId , BrokerRace itemBrokerRace , boolean isSold , boolean isSettled , Timestamp expireTime , Timestamp settleTime , boolean partSale ) { this . item = item ; this . itemId = itemId ; this . itemUniqueId = itemUniqueId ; this . itemCount = itemCount ; this . itemCreator = itemCreator ; this . price = price ; this . seller = seller ; this . sellerId = sellerId ; this . itemBrokerRace = itemBrokerRace ; this . partSale = partSale ; if ( item == null ) { this . isSold = true ; this . isSettled = true ; } else { this . isSold = isSold ; this . isSettled = isSettled ; } this . expireTime = expireTime ; this . settleTime = settleTime ; this . state = PersistentState . NOACTION ; }


protected void drawFilledPath  ( Canvas c , Path filledPath , Drawable drawable ) { if ( clipPathSupported ( ) ) { c . save ( ) ; c . clipPath ( filledPath ) ; drawable . setBounds ( ( int ) mViewPortHandler . contentLeft ( ) , ( int ) mViewPortHandler . contentTop ( ) , ( int ) mViewPortHandler . contentRight ( ) , ( int ) mViewPortHandler . contentBottom ( ) ) ; drawable . draw ( c ) ; c . restore ( ) ; } else { throw new RuntimeException ( "Fill-drawables not (yet) supported below API level 18, " + "this code was run on API level " + Utils . getSDKInt ( ) + "." ) ; } }

Dibuja la ruta provista en modo lleno con el dibujable proporcionado.


public boolean hasStroke  ( Symbolizer symbolizer ) { boolean result = false ; if ( symbolizer != null ) { SLDTreeLeafInterface obj = map . get ( symbolizer . getClass ( ) ) ; if ( obj != null ) { result = obj . hasStroke ( symbolizer ) ; } } return result ; }

Cheques para accidentes cerebrovasculares.


public boolean verbose  ( ) { return soot . PhaseOptions . getBoolean ( options , "verbose" ) ; }

Verbose - Imprimir información detallada sobre la ejecución de la paleta.Cuando esta opción se establece en VERDADERO, PADDLE imprime información detallada sobre su ejecución.


@ Deprecated public static boolean useExactLoginLocation  ( ) { return server . useExactLoginLocation ( ) ; }

Obtiene si usar vainilla (falso) o comportamiento exacto (verdadero).<ul> <li> Comportamiento de vainilla: compruebe si hay colisiones y mueva al jugador si es necesario.<li> Comportamiento exacto: los jugadores engendrados exactamente donde deberían ser.</ ul>


public PointsToSet reachingObjects  ( PointsToSet s , final SootField f ) { if ( f . isStatic ( ) ) throw new RuntimeException ( "The parameter f must be an *instance* field." ) ; return reachingObjectsInternal ( s , f ) ; }

Devuelve el conjunto de objetos apuntados a un campo de instancia F de los objetos en el PointStoSet S.


public static void clearDictionaryCache  ( Dictionary dictionary ) { if ( null != dictionary ) { dictionary . clear ( ) ; } }

Este método se utilizará para borrar la memoria caché del Diccionario después de que se complete su uso, de modo que si se alcance el umbral de memoria, puede desalojarse del caché LRU


public static SourceCommandTag fromConfigXML  ( final org . w3c . dom . Element domElement ) { Long id = Long . valueOf ( domElement . getAttribute ( "id" ) ) ; String name = domElement . getAttribute ( "name" ) ; SourceCommandTag result = new SourceCommandTag ( id , name ) ; Node fieldNode = null ; String fieldName = null ; String fieldValueString = null ; NodeList fields = domElement . getChildNodes ( ) ; int fieldsCount = fields . getLength ( ) ; for ( int i = 0 ; i < fieldsCount ; i ++ ) { fieldNode = fields . item ( i ) ; if ( fieldNode . getNodeType ( ) == 1 ) { fieldName = fieldNode . getNodeName ( ) ; fieldValueString = fieldNode . getFirstChild ( ) . getNodeValue ( ) ; if ( fieldName . equals ( "source-timeout" ) ) { result . sourceTimeout = Integer . parseInt ( fieldValueString ) ; } if ( fieldName . equals ( "source-retries" ) ) { result . sourceRetries = Integer . parseInt ( fieldValueString ) ; } if ( fieldName . equals ( "HardwareAddress" ) ) { result . hardwareAddress = HardwareAddressFactory . getInstance ( ) . fromConfigXML ( ( org . w3c . dom . Element ) fieldNode ) ; } } } return result ; }

Crea un SourceCommandTag de un elemento DOM.El elemento proporcionado debe ser un elemento de elemento de comando.


public static void createFlight  ( Fragment fragment , int requestCode , Coordinate coordinate , @ Nullable HashMap < String , String > extras ) { Intent intent = new Intent ( fragment . getActivity ( ) , CreateFlightActivity . class ) ; intent . putExtra ( CreateFlightActivity . COORDINATE , coordinate ) ; if ( extras != null ) { intent . putExtra ( CreateFlightActivity . KEY_VALUE_EXTRAS , extras ) ; } fragment . startActivityForResult ( intent , requestCode ) ; }

Inicie el proceso de creación de vuelos en un UI personalizado con un flujo de decisión de permiso incorporado.Esto utilizará el contexto pasado para iniciar la UI y enviar los resultados de cualquier actividad.


public final CharSequence yytext  ( ) { return zzBuffer . subSequence ( zzStartRead , zzMarkedPos ) ; }

Devuelve el texto que coincida con la expresión regular actual.


private void changeAnnouncement  ( Player activePlayer , String announcement ) { if ( legionRestrictions . canChangeAnnouncement ( activePlayer . getLegionMember ( ) , announcement ) ) { Legion legion = activePlayer . getLegion ( ) ; Timestamp currentTime = new Timestamp ( System . currentTimeMillis ( ) ) ; storeNewAnnouncement ( legion . getLegionId ( ) , currentTime , announcement ) ; legion . addAnnouncementToList ( currentTime , announcement ) ; PacketSendUtility . sendPacket ( activePlayer , SM_SYSTEM_MESSAGE . STR_GUILD_WRITE_NOTICE_DONE ) ; PacketSendUtility . broadcastPacketToLegion ( legion , new SM_LEGION_EDIT ( 0x05 , ( int ) ( System . currentTimeMillis ( ) / 1000 ) , announcement ) ) ; } }

Esto agregará un nuevo anuncio a la DB y cambiará el anuncio actual.


public void delete  ( final Txn < T > txn , final T key ) { delete ( txn , key , null ) ; }

Borra la llave utilizando la transacción pasada.


protected boolean checkMatch  ( ) { if ( ! fIsShortHand ) { if ( fChildSequence . length <= fCurrentChildDepth + 1 ) { for ( int i = 0 ; i < fChildSequence . length ; i ++ ) { if ( fChildSequence [ i ] != fCurrentChildSequence [ i ] ) { return false ; } } } else { return false ; } } else { if ( fChildSequence . length <= fCurrentChildDepth + 1 ) { for ( int i = 0 ; i < fChildSequence . length ; i ++ ) { if ( fCurrentChildSequence . length < i + 2 ) { return false ; } if ( fChildSequence [ i ] != fCurrentChildSequence [ i + 1 ] ) { return false ; } } } else { return false ; } } return true ; }

Coincide con la posición actual del elemento que se está visitando al verificar su posición y elementos anteriores contra la expresión del elemento XPointer.Si se encuentra una coincidencia, devuelve el más falso.


private void start  ( final Process process , final String pHostName , final Timestamp pStartupTime ) { ProcessCacheObject processCacheObject = ( ProcessCacheObject ) process ; if ( ! isRunning ( processCacheObject ) ) { final Long newPIK = createProcessPIK ( ) ; processCacheObject . setCurrentHost ( pHostName ) ; processCacheObject . setStartupTime ( pStartupTime ) ; processCacheObject . setRequiresReboot ( Boolean . FALSE ) ; processCacheObject . setProcessPIK ( newPIK ) ; processCacheObject . setLocalConfig ( LocalConfig . Y ) ; processCacheObject . setJmsDaqCommandQueue ( jmsDaqQueueTrunk + ".command." + processCacheObject . getCurrentHost ( ) + "." + processCacheObject . getName ( ) + "." + newPIK . toString ( ) ) ; super . start ( processCacheObject , pStartupTime ) ; } }

Registre el tiempo de inicio del proceso y el host en el que se está ejecutando, (y configura su estado en el inicio, puede eliminar esto en el futuro, ya que el duplicado de la etiqueta de estado del DAQ) <P> también inicia el temporizador vivo.<P> Tenga en cuenta que, en caso de una referencia de caché al proceso, depende del método de llamada para adquirir un bloqueo de escritura.En caso de una copia, es el método de llamada que tiene que cuidar de cometer los cambios realizados al objeto del proceso de regreso al caché.


public void releaseScan  ( ) throws SAException  { }


public AbstractSpaceResponseInfo ( ) { }


private void tokenToWords  ( WordRelation wordRelation , Item tokenItem , String tokenVal ) { Log . d ( Mary . LOG , "{}{}{} start method tokenToWords" ) ; FeatureSet tokenFeatures = tokenItem . getFeatures ( ) ; String itemName = tokenFeatures . getString ( "name" ) ; int tokenLength = tokenVal . length ( ) ; if ( tokenFeatures . isPresent ( "phones" ) ) { wordRelation . addWord ( tokenItem , tokenVal ) ; } else if ( ( tokenVal . equals ( "a" ) || tokenVal . equals ( "A" ) ) && ( ( tokenItem . getNext ( ) == null ) || ! ( tokenVal . equals ( itemName ) ) || ! ( tokenItem . findFeature ( "punc" ) . equals ( "" ) ) ) ) { wordRelation . addWord ( tokenItem , "_a" ) ; } else if ( matches ( alphabetPattern , tokenVal ) ) { if ( matches ( romanNumbersPattern , tokenVal ) ) { romanToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( matches ( illionPattern , tokenVal ) && matches ( usMoneyPattern , ( String ) tokenItem . findFeature ( "p.name" ) ) ) { wordRelation . addWord ( tokenItem , tokenVal ) ; wordRelation . addWord ( tokenItem , "dollars" ) ; } else if ( matches ( drStPattern , tokenVal ) ) { drStToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( tokenVal . equals ( "Co" ) ) { tokenItem . getFeatures ( ) . setString ( "punc" , "" ) ; wordRelation . addWord ( tokenItem , "company" ) ; } else if ( tokenVal . equals ( "Ltd" ) ) { tokenItem . getFeatures ( ) . setString ( "punc" , "" ) ; wordRelation . addWord ( tokenItem , "limited" ) ; } else if ( tokenVal . equals ( "Mr" ) ) { tokenItem . getFeatures ( ) . setString ( "punc" , "" ) ; wordRelation . addWord ( tokenItem , "mister" ) ; } else if ( tokenVal . equals ( "Mrs" ) ) { tokenItem . getFeatures ( ) . setString ( "punc" , "" ) ; wordRelation . addWord ( tokenItem , "missus" ) ; } else if ( tokenLength == 1 && isUppercaseLetter ( tokenVal . charAt ( 0 ) ) && tokenItem . findFeature ( "n.whitespace" ) . equals ( " " ) && isUppercaseLetter ( ( ( String ) tokenItem . findFeature ( "n.name" ) ) . charAt ( 0 ) ) ) { tokenFeatures . setString ( "punc" , "" ) ; String aaa = tokenVal . toLowerCase ( ) ; if ( aaa . equals ( "a" ) ) { wordRelation . addWord ( tokenItem , "_a" ) ; } else { wordRelation . addWord ( tokenItem , aaa ) ; } } else if ( isStateName ( wordRelation , tokenItem , tokenVal ) ) { } else if ( tokenLength > 1 && ! isPronounceable ( tokenVal ) ) { NumberExpander . expandLetters ( tokenVal , wordRelation , tokenItem ) ; } else { wordRelation . addWord ( tokenItem , tokenVal . toLowerCase ( ) ) ; } } else if ( matches ( dottedAbbrevPattern , tokenVal ) ) { String aaa = Utilities . deleteChar ( tokenVal , '.' ) ; NumberExpander . expandLetters ( aaa , wordRelation , tokenItem ) ; } else if ( matches ( commaIntPattern , tokenVal ) ) { String aaa = Utilities . deleteChar ( tokenVal , ',' ) ; NumberExpander . expandReal ( aaa , wordRelation , tokenItem ) ; } else if ( matches ( sevenPhoneNumberPattern , tokenVal ) ) { int dashIndex = tokenVal . indexOf ( '-' ) ; String aaa = tokenVal . substring ( 0 , dashIndex ) ; String bbb = tokenVal . substring ( dashIndex + 1 ) ; NumberExpander . expandDigits ( aaa , wordRelation , tokenItem ) ; wordRelation . addBreak ( ) ; NumberExpander . expandDigits ( bbb , wordRelation , tokenItem ) ; } else if ( matchesPartPhoneNumber ( tokenItem , tokenVal ) ) { String punctuation = ( String ) tokenItem . findFeature ( "punc" ) ; if ( punctuation . equals ( "" ) ) { tokenItem . getFeatures ( ) . setString ( "punc" , "," ) ; } NumberExpander . expandDigits ( tokenVal , wordRelation , tokenItem ) ; wordRelation . addBreak ( ) ; } else if ( matches ( numberTimePattern , tokenVal ) ) { int colonIndex = tokenVal . indexOf ( ':' ) ; String aaa = tokenVal . substring ( 0 , colonIndex ) ; String bbb = tokenVal . substring ( colonIndex + 1 ) ; NumberExpander . expandNumber ( aaa , wordRelation , tokenItem ) ; if ( ! ( bbb . equals ( "00" ) ) ) { NumberExpander . expandID ( bbb , wordRelation , tokenItem ) ; } } else if ( matches ( digits2DashPattern , tokenVal ) ) { digitsDashToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( matches ( digitsPattern , tokenVal ) ) { digitsToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( tokenLength == 1 && isUppercaseLetter ( tokenVal . charAt ( 0 ) ) && tokenItem . findFeature ( "n.whitespace" ) . equals ( " " ) && isUppercaseLetter ( ( ( String ) tokenItem . findFeature ( "n.name" ) ) . charAt ( 0 ) ) ) { tokenFeatures . setString ( "punc" , "" ) ; String aaa = tokenVal . toLowerCase ( ) ; if ( aaa . equals ( "a" ) ) { wordRelation . addWord ( tokenItem , "_a" ) ; } else { wordRelation . addWord ( tokenItem , aaa ) ; } } else if ( matches ( doublePattern , tokenVal ) ) { NumberExpander . expandReal ( tokenVal , wordRelation , tokenItem ) ; } else if ( matches ( ordinalPattern , tokenVal ) ) { String aaa = tokenVal . substring ( 0 , tokenLength - 2 ) ; NumberExpander . expandOrdinal ( aaa , wordRelation , tokenItem ) ; } else if ( matches ( usMoneyPattern , tokenVal ) ) { usMoneyToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( tokenLength > 0 && tokenVal . charAt ( tokenLength - 1 ) == '%' ) { tokenToWords ( wordRelation , tokenItem , tokenVal . substring ( 0 , tokenLength - 1 ) ) ; wordRelation . addWord ( tokenItem , "per" ) ; wordRelation . addWord ( tokenItem , "cent" ) ; } else if ( matches ( numessPattern , tokenVal ) ) { tokenToWords ( wordRelation , tokenItem , tokenVal . substring ( 0 , tokenLength - 1 ) ) ; wordRelation . addWord ( tokenItem , "'s" ) ; } else if ( tokenVal . indexOf ( '\'' ) != - 1 ) { postropheToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( matches ( digitsSlashDigitsPattern , tokenVal ) && tokenVal . equals ( itemName ) ) { digitsSlashDigitsToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( tokenVal . indexOf ( '-' ) != - 1 ) { dashToWords ( wordRelation , tokenItem , tokenVal ) ; } else if ( tokenLength > 1 && ! matches ( alphabetPattern , tokenVal ) ) { notJustAlphasToWords ( wordRelation , tokenItem , tokenVal ) ; } else { wordRelation . addWord ( tokenItem , tokenVal . toLowerCase ( ) ) ; } }

Convierte el token dado en elementos de (palabra) en la palabraRelación.


protected IntervalFeature findNextRegexInGenome  ( String query , String chrom , int from ) throws IOException , InvalidGenomicCoordsException { if ( this . intervalMap != null ) { int startingPoint = from ; List < String > chromSearchOrder = getChromListStartingAt ( this . intervalMap . keySet ( ) , chrom ) ; chromSearchOrder . add ( chrom ) ; for ( String curChrom : chromSearchOrder ) { List < IntervalFeature > featuresList = this . intervalMap . get ( curChrom ) ; for ( IntervalFeature x : featuresList ) { boolean matched = Pattern . compile ( query ) . matcher ( x . getRaw ( ) ) . find ( ) ; if ( x . getFrom ( ) > startingPoint && matched && this . featureIsVisible ( x ) ) { return x ; } } startingPoint = 0 ; } return null ; } else if ( this . isTabix ) { int startingPoint = from - 1 ; List < String > chromSearchOrder = getChromListStartingAt ( this . tabixReader . getChromosomes ( ) , chrom ) ; chromSearchOrder . add ( chrom ) ; for ( String curChrom : chromSearchOrder ) { Iterator iter = this . tabixReader . query ( curChrom , startingPoint , Integer . MAX_VALUE ) ; while ( true ) { String line = iter . next ( ) ; if ( line == null ) break ; boolean matched = Pattern . compile ( query ) . matcher ( line ) . find ( ) ; if ( matched ) { IntervalFeature x = new IntervalFeature ( line , this . type ) ; if ( x . getFrom ( ) > startingPoint && this . featureIsVisible ( x ) ) { return x ; } } } startingPoint = 0 ; } return null ; } return null ; }

Buscando el crom actual que comienza en "desde" para encontrar la función * Siguiente * que coincide con la cadena dada.Si no se encuentra, busque los otros chrams, si no se encuentra reiniciar desde el principio del cromo actual hasta que se alcance la posición "desde".


protected AdsGetSuggestionsQueryWithSchools section  ( AdsGetSuggestionsSection value ) { return unsafeParam ( "section" , value ) ; }


private boolean canShowUpdaterView  ( int deltaY ) { final int firstVisibleItem = getFirstVisiblePosition ( ) ; final int fistViewTop = getChildAt ( 0 ) . getTop ( ) ; final int topPadding = getListPaddingTop ( ) ; return ( firstVisibleItem == 0 && fistViewTop >= topPadding && deltaY > 0 ) ; }

¿Comprobas si el encabezado de actualización puede estar mostrando?


public static Bitmap byteToBitmap  ( byte [ ] b , int targetWidth , int targeHeight ) { if ( b == null || b . length == 0 ) { return null ; } final BitmapFactory . Options options = new BitmapFactory . Options ( ) ; options . inJustDecodeBounds = true ; BitmapFactory . decodeByteArray ( b , 0 , b . length , options ) ; int sourceWidth = options . outWidth ; int sourceHeight = options . outHeight ; options . inJustDecodeBounds = false ; int inSampleSize = 1 ; while ( sourceWidth / inSampleSize > targetWidth ) { inSampleSize ++ ; } while ( sourceHeight / inSampleSize > targeHeight ) { inSampleSize ++ ; } if ( inSampleSize <= 0 ) { inSampleSize = 1 ; } options . inSampleSize = inSampleSize ; Bitmap bitmap = BitmapFactory . decodeByteArray ( b , 0 , b . length , options ) ; return bitmap ; }

Convertir matriz de bytes a mapa de bits


public void replaceLocalWithCurrentlySelectedRevision  ( ) throws CoreException  { IStructuredSelection selection = ( IStructuredSelection ) viewer . getSelection ( ) ; if ( selection . size ( ) != 1 ) return ; VersionCompareDiffNode node = ( VersionCompareDiffNode ) selection . getFirstElement ( ) ; ResourceRevisionNode right = ( ResourceRevisionNode ) node . getRight ( ) ; TypedBufferedContent left = ( TypedBufferedContent ) node . getLeft ( ) ; left . setContent ( Utils . readBytes ( right . getContents ( ) ) ) ; }

Actualizaciones Los contenidos del archivo local con el contenido de la Logenry Logenry ToDO actualmente seleccionados, ¿no debería reemplazar con la revisión seleccionada (tomando el número de revisión con él)


protected PhotosGetAllQueryWithExtended extended  ( Boolean value ) { return unsafeParam ( "extended" , value ) ; }

Retendo información detallada sobre fotos


public static String playerIdToName  ( UUID uuid ) { long leastSigBits = uuid . getLeastSignificantBits ( ) ; long mostSigBits = uuid . getMostSignificantBits ( ) ; byte [ ] bytes = toArray ( mostSigBits , leastSigBits ) ; bytes = removeZeroesAtEnd ( bytes ) ; return new String ( bytes , StandardCharsets . UTF_8 ) ; }

Convierte un UUID de nuevo al nombre de juego.


public boolean do_mhp  ( ) { return soot . PhaseOptions . getBoolean ( options , "do-mhp" ) ; }

Realizar el análisis de mayo en paralelo: realice un análisis de mayo en paralelo.Realice un análisis de mayo en paralelo para ayudar a asignar cerraduras.


public void updateSizes  ( @ ProgressDrawableSize int size ) { if ( size == LARGE ) { setSizeParameters ( CIRCLE_DIAMETER_LARGE , CIRCLE_DIAMETER_LARGE , CENTER_RADIUS_LARGE , STROKE_WIDTH_LARGE , ARROW_WIDTH_LARGE , ARROW_HEIGHT_LARGE ) ; } else { setSizeParameters ( CIRCLE_DIAMETER , CIRCLE_DIAMETER , CENTER_RADIUS , STROKE_WIDTH , ARROW_WIDTH , ARROW_HEIGHT ) ; } }

Establezca el tamaño general para el Spinner Progress.Esto actualiza el ancho del radio y el trazo del anillo.


public SootMethod ( String name , List < Type > parameterTypes , Type returnType ) { this ( name , parameterTypes , returnType , 0 , Collections . < SootClass > emptyList ( ) ) ; }

Construye un SOOTMETHOD con el nombre dado, los tipos de parámetros y el tipo de devolución.


public void applyResult  ( AnswerPacket answerPacket , int resultIndex ) { if ( accumulate ( ) ) { _results [ resultIndex ] = answerPacket . m_EntryPacket ; } else { if ( answerPacket . m_EntryPacket != null ) _successCount ++ ; } }

Aplique el resultado: almacene el resultado (ReadByIDS) o cuente los objetos borrados (ClearbyIDs)


private static byte [ ] hexStringToByteArray  ( String hexString ) { int len = hexString . length ( ) ; byte [ ] data = new byte [ len / 2 ] ; for ( int i = 0 ; i < len ; i += 2 ) { data [ i / 2 ] = ( byte ) ( ( Character . digit ( hexString . charAt ( i ) , 16 ) << 4 ) + Character . digit ( hexString . charAt ( i + 1 ) , 16 ) ) ; } return data ; }

Convierte los valores hexagonales de las cuerdas a la matriz de bytes


protected void insertToken  ( Item tokenItem , Element parent , boolean deep ) { if ( tokenItem == null || parent == null ) { throw new NullPointerException ( "Null arguments to insertToken()" ) ; } Document doc = parent . getOwnerDocument ( ) ; Voice maryVoice = null ; if ( tokenItem . getUtterance ( ) . getVoice ( ) != null ) { maryVoice = FreeTTSVoices . getMaryVoice ( tokenItem . getUtterance ( ) . getVoice ( ) ) ; } AllophoneSet allophoneSet = ( AllophoneSet ) tokenItem . getUtterance ( ) . getObject ( "allophoneset" ) ; if ( allophoneSet == null ) { throw new NullPointerException ( "Utterance does not have an AllophoneSet -- should have been set in XML2UttBase.process()" ) ; } Element insertHere = parent ; boolean needMtu = false ; boolean insertPhonesFromToken = tokenItem . getFeatures ( ) . isPresent ( "phones" ) ; Item testWordItem = null ; if ( tokenItem . getFeatures ( ) . isPresent ( "precedingMarks" ) ) { String marks = tokenItem . getFeatures ( ) . getString ( "precedingMarks" ) ; StringTokenizer markTok = new StringTokenizer ( marks , "," ) ; while ( markTok . hasMoreTokens ( ) ) { String markStr = markTok . nextToken ( ) ; Element markEl = MaryXML . createElement ( doc , MaryXML . MARK ) ; markEl . setAttribute ( "name" , markStr ) ; insertHere . appendChild ( markEl ) ; } } if ( tokenItem . getFeatures ( ) . isPresent ( "precedingBoundaryTone" ) || tokenItem . getFeatures ( ) . isPresent ( "precedingBoundaryBreakindex" ) || tokenItem . getFeatures ( ) . isPresent ( "precedingBoundaryDuration" ) ) { Element boundary = MaryXML . createElement ( doc , MaryXML . BOUNDARY ) ; insertHere . appendChild ( boundary ) ; if ( tokenItem . getFeatures ( ) . isPresent ( "precedingBoundaryTone" ) ) boundary . setAttribute ( "tone" , tokenItem . getFeatures ( ) . getString ( "precedingBoundaryTone" ) ) ; if ( tokenItem . getFeatures ( ) . isPresent ( "precedingBoundaryBreakindex" ) ) boundary . setAttribute ( "breakindex" , tokenItem . getFeatures ( ) . getString ( "precedingBoundaryBreakindex" ) ) ; if ( tokenItem . getFeatures ( ) . isPresent ( "precedingBoundaryDuration" ) ) boundary . setAttribute ( "duration" , tokenItem . getFeatures ( ) . getString ( "precedingBoundaryDuration" ) ) ; } if ( tokenItem . getNthDaughter ( 1 ) != null || ( testWordItem = tokenItem . getDaughter ( ) ) != null && ! testWordItem . toString ( ) . equals ( tokenItem . toString ( ) . toLowerCase ( ) ) ) { needMtu = true ; Element mtu = MaryXML . createElement ( doc , MaryXML . MTU ) ; parent . appendChild ( mtu ) ; mtu . setAttribute ( "orig" , tokenItem . toString ( ) ) ; insertHere = mtu ; } FeatureSet tokenFeatureSet = tokenItem . getFeatures ( ) ; Item tokenDaughter = tokenItem . getDaughter ( ) ; if ( tokenDaughter == null ) { Element t = MaryXML . createElement ( doc , MaryXML . TOKEN ) ; insertHere . appendChild ( t ) ; MaryDomUtils . setTokenText ( t , tokenItem . toString ( ) ) ; if ( insertPhonesFromToken ) { String [ ] phones = ( String [ ] ) tokenItem . getFeatures ( ) . getObject ( "phones" ) ; t . setAttribute ( "ph" , phoneArray2phoneString ( allophoneSet , phones ) ) ; insertPhonesFromToken = false ; } if ( tokenFeatureSet . isPresent ( "accent" ) ) { t . setAttribute ( "accent" , tokenFeatureSet . getString ( "accent" ) ) ; } } while ( tokenDaughter != null ) { Item wordItem = tokenDaughter . getItemAs ( "Word" ) ; Element t = null ; StringBuilder sampa = new StringBuilder ( ) ; if ( wordItem != null ) { t = MaryXML . createElement ( doc , MaryXML . TOKEN ) ; insertHere . appendChild ( t ) ; String tokenText = null ; if ( needMtu ) tokenText = wordItem . toString ( ) ; else tokenText = tokenItem . toString ( ) ; MaryDomUtils . setTokenText ( t , tokenText ) ; if ( insertPhonesFromToken ) { String [ ] phones = ( String [ ] ) tokenItem . getFeatures ( ) . getObject ( "phones" ) ; t . setAttribute ( "ph" , phoneArray2phoneString ( allophoneSet , phones ) ) ; insertPhonesFromToken = false ; } else if ( wordItem . getFeatures ( ) . isPresent ( "phones" ) ) { String [ ] phones = ( String [ ] ) wordItem . getFeatures ( ) . getObject ( "phones" ) ; t . setAttribute ( "ph" , phoneArray2phoneString ( allophoneSet , phones ) ) ; } if ( tokenFeatureSet . isPresent ( "accent" ) ) { t . setAttribute ( "accent" , tokenFeatureSet . getString ( "accent" ) ) ; } FeatureSet wordFeatureSet = wordItem . getFeatures ( ) ; if ( wordFeatureSet . isPresent ( "pos" ) ) t . setAttribute ( "pos" , wordFeatureSet . getString ( "pos" ) ) ; } Item sylStruct = tokenDaughter . getItemAs ( "SylStructure" ) ; if ( sylStruct != null && sylStruct . hasDaughters ( ) ) { Item syllableItem = sylStruct . getDaughter ( ) ; while ( syllableItem != null ) { if ( sampa . length ( ) > 0 ) sampa . append ( " - " ) ; sampa . append ( insertSyllable ( syllableItem , t , deep ) ) ; syllableItem = syllableItem . getNext ( ) ; } } if ( sampa . length ( ) > 0 ) t . setAttribute ( "ph" , sampa . toString ( ) ) ; tokenDaughter = tokenDaughter . getNext ( ) ; } if ( tokenItem . getFeatures ( ) . isPresent ( "prePuncMarks" ) ) { String marks = tokenItem . getFeatures ( ) . getString ( "prePuncMarks" ) ; StringTokenizer markTok = new StringTokenizer ( marks , "," ) ; while ( markTok . hasMoreTokens ( ) ) { String markStr = markTok . nextToken ( ) ; Element markEl = MaryXML . createElement ( doc , MaryXML . MARK ) ; markEl . setAttribute ( "name" , markStr ) ; insertHere . appendChild ( markEl ) ; } } if ( tokenItem . getFeatures ( ) . isPresent ( "punc" ) ) { String puncString = tokenItem . getFeatures ( ) . getString ( "punc" ) ; if ( ! puncString . equals ( "" ) ) { Element punctuation = MaryXML . createElement ( doc , MaryXML . TOKEN ) ; MaryDomUtils . setTokenText ( punctuation , puncString ) ; String pos = null ; if ( puncString . equals ( "," ) ) pos = "$," ; else pos = "$PUNCT" ; punctuation . setAttribute ( "pos" , pos ) ; parent . appendChild ( punctuation ) ; } } if ( tokenItem . getFeatures ( ) . isPresent ( "followingMarks" ) ) { String marks = tokenItem . getFeatures ( ) . getString ( "followingMarks" ) ; StringTokenizer markTok = new StringTokenizer ( marks , "," ) ; while ( markTok . hasMoreTokens ( ) ) { String markStr = markTok . nextToken ( ) ; Element markEl = MaryXML . createElement ( doc , MaryXML . MARK ) ; markEl . setAttribute ( "name" , markStr ) ; insertHere . appendChild ( markEl ) ; } } if ( tokenItemHasFollowingBoundary ( tokenItem ) ) { Element boundary = MaryXML . createElement ( doc , MaryXML . BOUNDARY ) ; insertHere . appendChild ( boundary ) ; if ( tokenItem . getFeatures ( ) . isPresent ( "followingBoundaryTone" ) ) boundary . setAttribute ( "tone" , tokenItem . getFeatures ( ) . getString ( "followingBoundaryTone" ) ) ; int breakindex = 0 ; if ( tokenItem . getFeatures ( ) . isPresent ( "followingBoundaryBreakindex" ) ) { String breakindexString = tokenItem . getFeatures ( ) . getString ( "followingBoundaryBreakindex" ) ; boundary . setAttribute ( "breakindex" , breakindexString ) ; try { breakindex = Integer . parseInt ( breakindexString ) ; } catch ( NumberFormatException nfe ) { } } if ( tokenItem . getFeatures ( ) . isPresent ( "followingBoundaryDuration" ) ) boundary . setAttribute ( "duration" , tokenItem . getFeatures ( ) . getString ( "followingBoundaryDuration" ) ) ; else { if ( breakindex >= 4 ) { boundary . setAttribute ( "duration" , "400" ) ; } else if ( breakindex == 3 ) { boundary . setAttribute ( "duration" , "200" ) ; } } } }

Convierta un elemento en la relación Token en XML, insertándolo en la ubicación especificada en el árbol XML.


public static < V > void makeMapSerializable  ( Map < String , V > map ) { Set < String > keysToRemove = new LinkedHashSet < String > ( ) ; for ( Map . Entry < String , V > mapEntry : map . entrySet ( ) ) { Object entryValue = mapEntry . getValue ( ) ; if ( entryValue != null && ! ( entryValue instanceof Serializable ) ) { keysToRemove . add ( mapEntry . getKey ( ) ) ; } } for ( String keyToRemove : keysToRemove ) { map . remove ( keyToRemove ) ; } }

Esto cambia un mapa para ser serializable eliminando todas las entradas con valores que no son serializables.


public static boolean verify  ( PublicKey publicKey , String signedData , String signature ) { Signature sig ; try { sig = Signature . getInstance ( SIGNATURE_ALGORITHM ) ; sig . initVerify ( publicKey ) ; sig . update ( signedData . getBytes ( ) ) ; if ( ! sig . verify ( Base64 . decode ( signature ) ) ) { Log . e ( TAG , "Signature verification failed." ) ; return false ; } return true ; } catch ( NoSuchAlgorithmException e ) { Log . e ( TAG , "NoSuchAlgorithmException." ) ; } catch ( InvalidKeyException e ) { Log . e ( TAG , "Invalid key specification." ) ; } catch ( SignatureException e ) { Log . e ( TAG , "Signature exception." ) ; } catch ( Base64DecoderException e ) { Log . e ( TAG , "Base64 decoding failed." ) ; } return false ; }

Verifica que la firma del servidor coincida con la firma computar en los datos.Devuelve VERDADERO si los datos están firmados correctamente.


public boolean shouldExecute  ( ) { if ( this . villager . getGrowingAge ( ) != 0 || this . villager . getRNG ( ) . nextInt ( 500 ) != 0 ) { return false ; } if ( ! isWillingToMate ( villager ) ) { return false ; } else { this . mate = this . getNearbyMate ( ) ; return this . mate != null && this . mate . getGrowingAge ( ) == 0 ; } }

Devuelve si la entedaibase debe comenzar la ejecución.


public static SM_SYSTEM_MESSAGE STR_SKILL_NO_AVAILABLE_SLOT_ME_TO_B  ( String skillname , String skilltarget ) { return new SM_SYSTEM_MESSAGE ( 1201083 , skillname , skilltarget ) ; }

[% Nombre de habilidad] se canceló como [% SkillTarget] está bajo demasiados efectos.


public static boolean isEmpty  ( Object [ ] array ) { return ( array == null || array . length == 0 ) ; }

Devuelva si la matriz dada está vacía: es decir, <código> null </ code> o de longitud cero.


private void emitError  ( LengthOfOutputStream stream , Throwable t ) { Subject < Long , Long > lengthBroadcaster = stream . getLengthBroadcaster ( ) ; lengthBroadcaster . onNext ( stream . getResponseLength ( ) ) ; lengthBroadcaster . onError ( t ) ; }

Manejar la publicación de la longitud y un error al sujeto.


public DirEntry insert  ( RecordId dataRecordId ) { try { if ( ! searchRange . isConstant ( ) ) throw new IllegalStateException ( ) ; currentSlot ++ ; Constant searchKey = searchRange . asConstant ( ) ; insert ( currentSlot , searchKey , dataRecordId ) ; if ( currentSlot == 0 && getOverflowFlag ( currentPage ) != - 1 && ! getKey ( currentPage , 1 ) . equals ( searchKey ) ) { Constant splitKey = getKey ( currentPage , 1 ) ; long newBlkNum = currentPage . split ( 1 , new long [ ] { getOverflowFlag ( currentPage ) , getSiblingFlag ( currentPage ) } ) ; setOverflowFlag ( currentPage , - 1 ) ; setSiblingFlag ( currentPage , newBlkNum ) ; return new DirEntry ( splitKey , newBlkNum ) ; } if ( ! currentPage . isFull ( ) ) return null ; Constant firstKey = getKey ( currentPage , 0 ) ; Constant lastKey = getKey ( currentPage , currentPage . getNumRecords ( ) - 1 ) ; if ( lastKey . equals ( firstKey ) ) { long overflowFlag = ( getOverflowFlag ( currentPage ) == - 1 ) ? currentPage . currentBlk ( ) . number ( ) : getOverflowFlag ( currentPage ) ; long newBlkNum = currentPage . split ( 1 , new long [ ] { overflowFlag , - 1 } ) ; setOverflowFlag ( currentPage , newBlkNum ) ; return null ; } else { int splitPos = currentPage . getNumRecords ( ) / 2 ; Constant splitKey = getKey ( currentPage , splitPos ) ; if ( splitKey . equals ( firstKey ) ) { while ( getKey ( currentPage , splitPos ) . equals ( splitKey ) ) splitPos ++ ; splitKey = getKey ( currentPage , splitPos ) ; } else { while ( getKey ( currentPage , splitPos - 1 ) . equals ( splitKey ) ) splitPos -- ; } long newBlkNum = currentPage . split ( splitPos , new long [ ] { - 1 , getSiblingFlag ( currentPage ) } ) ; setSiblingFlag ( currentPage , newBlkNum ) ; return new DirEntry ( splitKey , newBlkNum ) ; } } catch ( LockAbortException e ) { tx . rollback ( ) ; throw e ; } }

Inserta un nuevo registro de hoja de árbol B que tiene el ID de registro de datos especificado y la clave de búsqueda especificada anteriormente.Este método solo se puede llamar una vez, inmediatamente después de la construcción.


VarTraversals ( VarAdmin var )  { if ( var . isUserDefinedName ( ) ) { shortcutTraversal . setInvalid ( ) ; } String start = var . getName ( ) ; var . getProperties ( ) . forEach ( null ) ; }

Crear Vartraversals para representar una var


public RabbitMqServer ( EmbeddedRabbitMqConfig config ) { this . config = config ; this . outputStream = new NullOutputStream ( ) ; this . listener = new NullProcessListener ( ) ; }

Crea un nuevo RabbitMQServer con ajustes de NOOP para la captura de salida y la escucha de eventos.


public static DhisHttpResponse httpPOST  ( String requestURL , Object body , boolean authorize , String username , String password , String contentType , int timeout ) throws Exception { DefaultHttpClient httpclient = null ; HttpParams params = new BasicHttpParams ( ) ; List < NameValuePair > pairs = new ArrayList < NameValuePair > ( ) ; DhisHttpResponse dhisHttpResponse = null ; try { HttpConnectionParams . setConnectionTimeout ( params , timeout ) ; HttpConnectionParams . setSoTimeout ( params , timeout ) ; httpclient = new DefaultHttpClient ( params ) ; HttpPost httpPost = new HttpPost ( requestURL ) ; if ( body instanceof Map ) { @ SuppressWarnings ( "unchecked" ) Map < String , String > parameters = ( Map < String , String > ) body ; for ( Map . Entry < String , String > parameter : parameters . entrySet ( ) ) { if ( parameter . getValue ( ) != null ) { pairs . add ( new BasicNameValuePair ( parameter . getKey ( ) , parameter . getValue ( ) ) ) ; } } httpPost . setEntity ( new UrlEncodedFormEntity ( pairs , "UTF-8" ) ) ; } else if ( body instanceof String ) { httpPost . setEntity ( new StringEntity ( ( String ) body ) ) ; } if ( ! StringUtils . isNotEmpty ( contentType ) ) httpPost . setHeader ( "Content-Type" , contentType ) ; if ( authorize ) { httpPost . setHeader ( "Authorization" , CodecUtils . getBasicAuthString ( username , password ) ) ; } HttpResponse response = httpclient . execute ( httpPost ) ; log . info ( "Successfully got response from http POST." ) ; dhisHttpResponse = processResponse ( requestURL , username , response ) ; } catch ( Exception e ) { log . error ( "Exception occurred in httpPOST call with username " + username , e ) ; throw e ; } finally { if ( httpclient != null ) { httpclient . getConnectionManager ( ) . shutdown ( ) ; } } return dhisHttpResponse ; }

<pre> <b> Descripción: </ b> Método para hacer una llamada de publicación HTTP a una URL dada con / sin autenticación.


private static PrivateKey convertToSunImpl  ( PrivateKey key ) { PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec ( key . getEncoded ( ) ) ; KeyFactory kf ; try { kf = KeyFactory . getInstance ( KeyUtil . RSA_ALGORITHM ) ; return kf . generatePrivate ( spec ) ; } catch ( NoSuchAlgorithmException | InvalidKeySpecException e ) { e . printStackTrace ( ) ; } return null ; }

Método de ayuda para convertir la implementación de la implementación de una clave privada para una implementación del sol.


public boolean isEmpty  ( ) { int bSize = this . bodies . size ( ) ; int jSize = this . joints . size ( ) ; return bSize == 0 && jSize == 0 ; }

Devuelve verdadero si este mundo no contiene cuerpos o articulaciones.


public synchronized void addNewQuery  ( QueryID queryID , String indexName , int shardOrd , String text , byte [ ] returnNodeID ) { QueryAndID query = queryQueue . remove ( queryID ) ; if ( query != null ) { assert query . state == 1 ; assert query . nodeID != null ; query . returnNodeID = returnNodeID ; query . text = text ; queryDone . add ( query ) ; } else { queryQueue . put ( queryID , new QueryAndID ( queryID , indexName , shardOrd , text , returnNodeID ) ) ; notify ( ) ; } }


static public void loadVersionInfo  ( String name , String fileName ) { try { fileName = Basic . replaceFileSuffix ( fileName , ".info" ) ; InputStream ins = ResourceManager . getFileAsStream ( fileName ) ; BufferedReader r = new BufferedReader ( new InputStreamReader ( ins ) ) ; StringBuilder buf = new StringBuilder ( ) ; String aLine ; while ( ( aLine = r . readLine ( ) ) != null ) buf . append ( aLine ) . append ( "\n" ) ; r . close ( ) ; name2versionInfo . put ( name , buf . toString ( ) ) ; } catch ( Exception ex ) { name2versionInfo . put ( name , null ) ; } }

Cargue la versión de algún archivo.Asume que el archivo termina en .info


private ResultPoint findCornerFromCenter  ( int centerX , int deltaX , int left , int right , int centerY , int deltaY , int top , int bottom , int maxWhiteRun ) throws NotFoundException { int [ ] lastRange = null ; for ( int y = centerY , x = centerX ; y < bottom && y >= top && x < right && x >= left ; y += deltaY , x += deltaX ) { int [ ] range ; if ( deltaX == 0 ) { range = blackWhiteRange ( y , maxWhiteRun , left , right , true ) ; } else { range = blackWhiteRange ( x , maxWhiteRun , top , bottom , false ) ; } if ( range == null ) { if ( lastRange == null ) { throw NotFoundException . getNotFoundInstance ( ) ; } if ( deltaX == 0 ) { int lastY = y - deltaY ; if ( lastRange [ 0 ] < centerX ) { if ( lastRange [ 1 ] > centerX ) { return new ResultPoint ( lastRange [ deltaY > 0 ? 0 : 1 ] , lastY ) ; } return new ResultPoint ( lastRange [ 0 ] , lastY ) ; } else { return new ResultPoint ( lastRange [ 1 ] , lastY ) ; } } else { int lastX = x - deltaX ; if ( lastRange [ 0 ] < centerY ) { if ( lastRange [ 1 ] > centerY ) { return new ResultPoint ( lastX , lastRange [ deltaX < 0 ? 0 : 1 ] ) ; } return new ResultPoint ( lastX , lastRange [ 0 ] ) ; } else { return new ResultPoint ( lastX , lastRange [ 1 ] ) ; } } } lastRange = range ; } throw NotFoundException . getNotFoundInstance ( ) ; }

Intenta localizar una esquina del código de barras escaneando, abajo, a la izquierda o derecha desde un punto central, que debe estar dentro del código de barras.


private int determineMaxLevel  ( PhyloTree tree ) { return determineMaxLevelRec ( 0 , tree . getRoot ( ) ) ; }

Determinar los niveles máximos del árbol.


public DetectorResult detect  ( ) throws NotFoundException , FormatException  { return detect ( null ) ; }


private static Element loadDocument  ( URL location ) throws WebAppConfigurationException  { try { Document document = UtilXml . readXmlDocument ( location , true ) ; Element rootElement = document . getDocumentElement ( ) ; if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "Loaded XML Config - " + location , module ) ; return rootElement ; } catch ( Exception e ) { Debug . logError ( e , module ) ; throw new WebAppConfigurationException ( e ) ; } }

Carga el archivo XML y devuelve el elemento raíz.


public void jsmin  ( ) throws IOException , UnterminatedRegExpLiteralException , UnterminatedCommentException , UnterminatedStringLiteralException  { theA = '\n' ; action ( 3 ) ; while ( theA != EOF ) { switch ( theA ) { case ' ' : if ( isAlphanum ( theB ) ) { action ( 1 ) ; } else { action ( 2 ) ; } break ; case '\n' : switch ( theB ) { case '{' : case '[' : case '(' : case '+' : case '-' : action ( 1 ) ; break ; case ' ' : action ( 3 ) ; break ; default : if ( isAlphanum ( theB ) ) { action ( 1 ) ; } else { action ( 2 ) ; } } break ; default : switch ( theB ) { case ' ' : if ( isAlphanum ( theA ) ) { action ( 1 ) ; break ; } action ( 3 ) ; break ; case '\n' : switch ( theA ) { case '}' : case ']' : case ')' : case '+' : case '-' : case '"' : case '\'' : action ( 1 ) ; break ; default : if ( isAlphanum ( theA ) ) { action ( 1 ) ; } else { action ( 3 ) ; } } break ; default : action ( 1 ) ; break ; } } } out . flush ( ) ; }

JSMIN: copie la entrada a la salida, eliminando los caracteres que son insignificantes a JavaScript.Los comentarios serán eliminados.Las pestañas serán reemplazadas por espacios.Los retornos del carro serán reemplazados por linefeeds.Se eliminarán la mayoría de los espacios y líneas de línea.


public ExportDropConfig exportDrop  ( ExportDropConfig exportDropConfig ) { String exportPath = UriComponentsBuilder . fromPath ( getBasePathForEntity ( ) ) . pathSegment ( "export" ) . toUriString ( ) ; return authenticatedRestTemplate . postForObject ( exportPath , exportDropConfig , ExportDropConfig . class ) ; }

Exporta una caída dada una configuración.


public boolean forEachValue  ( TLongProcedure procedure ) { byte [ ] states = _states ; long [ ] values = _values ; for ( int i = values . length ; i -- > 0 ; ) { if ( states [ i ] == FULL && ! procedure . execute ( values [ i ] ) ) { return false ; } } return true ; }

Ejecuta <tt> procedimiento </ tt> por cada valor en el mapa.


public double asDistance  ( ) { double dS = getOverallSimilarity ( ) ; if ( dS == 0 ) return Double . POSITIVE_INFINITY ; else return 1.0 / dS ; }

Calcula una distancia general en función de la similitud general.Este método utiliza el método <código> goververallsimilarity </ code> y devuelve su inverso si tiene un valor distinto de cero.De lo contrario, el valor de retorno es infinito positivo.


@ Override public void endCDATA  ( Augmentations augs ) throws XNIException { fInCDATASection = false ; if ( ! fDeferNodeExpansion ) { if ( fFilterReject ) { return ; } if ( fCurrentCDATASection != null ) { if ( fDOMFilter != null && ! fInEntityRef && ( fDOMFilter . getWhatToShow ( ) & NodeFilter . SHOW_CDATA_SECTION ) != 0 ) { short code = fDOMFilter . acceptNode ( fCurrentCDATASection ) ; switch ( code ) { case LSParserFilter . FILTER_INTERRUPT : { throw Abort . INSTANCE ; } case LSParserFilter . FILTER_REJECT : { } case LSParserFilter . FILTER_SKIP : { Node parent = fCurrentNode . getParentNode ( ) ; parent . removeChild ( fCurrentCDATASection ) ; fCurrentNode = parent ; return ; } default : { } } } fCurrentNode = fCurrentNode . getParentNode ( ) ; fCurrentCDATASection = null ; } } else { if ( fCurrentCDATASectionIndex != - 1 ) { fCurrentNodeIndex = fDeferredDocumentImpl . getParentNode ( fCurrentNodeIndex , false ) ; fCurrentCDATASectionIndex = - 1 ; } } }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_BoostHealEffect_ME_TO_SELF  ( String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200331 , skillname ) ; }

Impulsó su recuperación usando [% SkillName].


public void writeSortTempFile  ( Object [ ] [ ] records ) throws CarbonSortKeyAndGroupByException  { DataOutputStream dataOutputStream = null ; ByteArrayOutputStream blockDataArray = null ; int totalSize = 0 ; int recordSize = 0 ; try { recordSize = ( measureCount * CarbonCommonConstants . DOUBLE_SIZE_IN_BYTE ) + ( dimensionCount * CarbonCommonConstants . INT_SIZE_IN_BYTE ) ; totalSize = records . length * recordSize ; blockDataArray = new ByteArrayOutputStream ( totalSize ) ; dataOutputStream = new DataOutputStream ( blockDataArray ) ; UnCompressedTempSortFileWriter . writeDataOutputStream ( records , dataOutputStream , measureCount , dimensionCount , noDictionaryCount , complexDimensionCount ) ; stream . writeInt ( records . length ) ; byte [ ] byteArray = SnappyByteCompression . INSTANCE . compress ( blockDataArray . toByteArray ( ) ) ; stream . writeInt ( byteArray . length ) ; stream . write ( byteArray ) ; } catch ( IOException e ) { throw new CarbonSortKeyAndGroupByException ( e ) ; } finally { CarbonUtil . closeStreams ( blockDataArray ) ; CarbonUtil . closeStreams ( dataOutputStream ) ; } }

Se utilizará por debajo del método para escribir el archivo temporal de TEMP


public double collisionTime  ( Disk other ) { Vector toOther = other . position . minus ( position ) ; double distanceCollision = other . radius + radius ; if ( toOther . length2 ( ) <= distanceCollision * distanceCollision ) return 0 ; Vector relativeSpeed = speed . minus ( other . speed ) ; double a = relativeSpeed . length2 ( ) ; double b = - 2 * relativeSpeed . dot ( toOther ) ; double c = toOther . length2 ( ) - distanceCollision * distanceCollision ; List < Complex > solutions = QuadraticEquation . solve ( a , b , c ) ; if ( solutions . size ( ) == 0 ) { return Double . MAX_VALUE ; } if ( solutions . size ( ) == 1 ) { double solution = solutions . get ( 0 ) . getReal ( ) ; if ( solution >= 0 ) return solution ; return Double . MAX_VALUE ; } Complex root1 = solutions . get ( 0 ) ; if ( ! root1 . isReal ( ) ) { return Double . MAX_VALUE ; } double root1Solution = root1 . getReal ( ) ; if ( root1Solution >= 0 ) return root1Solution ; double root2Solution = solutions . get ( 1 ) . getReal ( ) ; if ( root2Solution >= 0 ) return root2Solution ; return Double . MAX_VALUE ; }

Devuelve el tiempo más corto, cuando los dos discos coleccionarán considerando que cada disco se está moviendo a su unidad de velocidad por unidad de tiempo. Una colisión ocurre cuando los dos círculos se tocan entre sí, regresarán a doble.max_value si no se produce una colisión.


protected void afterMove  ( ) { if ( ! Silent ) synchronized ( System . err ) { System . err . println ( this . getName ( ) + ":" + "Move finished..." ) ; } super . afterMove ( ) ; addBehaviour ( new InformForCompleteMoveBehaviour ( ) ) ; }

Actualiza el despachador a la llegada al contenedor de destino.


@ Override protected Change configureCacheObject  ( SubEquipment subEquipment , Properties properties ) { SubEquipmentCacheObject subEquipmentCacheObject = ( SubEquipmentCacheObject ) subEquipment ; EquipmentConfigurationUpdate update = setCommonProperties ( subEquipment , properties ) ; String tmpStr = properties . getProperty ( "equipmentId" ) ; if ( tmpStr == null ) { tmpStr = properties . getProperty ( "parent_equip_id" ) ; } if ( tmpStr != null ) { try { subEquipmentCacheObject . setParentId ( Long . valueOf ( tmpStr ) ) ; } catch ( NumberFormatException e ) { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , "NumberFormatException: Unable to convert parameter \"parentId\" to Long: " + tmpStr ) ; } } return update ; }

Establece los campos particulares para el subequipismo desde el objeto Propiedades.


private void launchBatchProc  ( String cmdLine , String task , String baseName ) { Process proc = null ; Process proctmp = null ; BufferedReader procStdout = null ; String line = null ; String tmpFile = "./tmp.bat" ; try { FileWriter tmp = new FileWriter ( tmpFile ) ; tmp . write ( cmdLine ) ; tmp . close ( ) ; proctmp = Runtime . getRuntime ( ) . exec ( "chmod +x " + tmpFile ) ; proctmp . waitFor ( ) ; proc = Runtime . getRuntime ( ) . exec ( tmpFile ) ; procStdout = new BufferedReader ( new InputStreamReader ( proc . getInputStream ( ) ) ) ; while ( true ) { line = procStdout . readLine ( ) ; if ( line == null ) break ; System . out . println ( line ) ; } proc . waitFor ( ) ; if ( proc . exitValue ( ) != 0 ) { throw new RuntimeException ( task + " computation failed on file [" + baseName + "]!\n" + "Command line was: [" + cmdLine + "]." ) ; } } catch ( IOException e ) { throw new RuntimeException ( task + " computation provoked an IOException on file [" + baseName + "]." , e ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( task + " computation interrupted on file [" + baseName + "]." , e ) ; } }

Un lanzador de procesos generales para las diversas tareas, pero utilizando un archivo por lotes intermedio (copiado de ESTCALLER.JAVA)


public boolean isCritical  ( ) { return true ; }

¿Es este un comando crítico que solo se puede ejecutar cuando no se está ejecutando otro comando?


public AirMapFlightStatus ( JSONObject statusJson ) { constructFromJson ( statusJson ) ; }

Inicializa un AirMapflightStatus de JSON


public Spatial detachChildAt  ( int index ) { Spatial child = children . remove ( index ) ; if ( child != null ) { child . setParent ( null ) ; } return child ; }

<CÓDIGO> DESTACHCHILDAT </ CODE> elimina a un niño en un índice dado.Ese niño es devuelto para guardar fines.


private static URL fileToURL  ( File file ) throws MalformedURLException  { String name ; try { name = file . getCanonicalPath ( ) ; } catch ( IOException e ) { name = file . getAbsolutePath ( ) ; } name = name . replace ( File . separatorChar , '/' ) ; if ( ! name . startsWith ( "/" ) ) { name = "/" + name ; } if ( ! file . isFile ( ) ) { name = name + "/" ; } return new URL ( "file" , "" , name ) ; }

Devuelve el directorio o la URL de archivo JAR correspondiente al nombre del archivo local especificado.


public static void main  ( String [ ] args ) { ConfigurationReport report = new ConfigurationReport ( 12 , "my.name" , "any_user" ) ; try { for ( int i = 0 ; i != 15 ; i ++ ) { if ( i % 3 == 0 ) { report . addElementReport ( new ConfigurationElementReport ( ConfigConstants . Action . CREATE , ConfigConstants . Entity . ALARM , new Long ( i ) ) ) ; } else if ( i % 3 == 1 ) { report . addElementReport ( new ConfigurationElementReport ( ConfigConstants . Action . CREATE , ConfigConstants . Entity . ALARM , new Long ( i ) , ConfigConstants . Status . WARNING , "Just a little warning" ) ) ; } else { report . addElementReport ( new ConfigurationElementReport ( ConfigConstants . Action . CREATE , ConfigConstants . Entity . ALARM , new Long ( i ) , ConfigConstants . Status . FAILURE , "That sucks" ) ) ; } } throw new IllegalArgumentException ( "nonsense argument in configuration" ) ; } catch ( Exception e ) { report . setExceptionTrace ( e ) ; } System . out . println ( report . getStatusDescription ( ) ) ; System . out . println ( report . toXML ( ) ) ; }


public boolean isUpgradable  ( ) { return canAddSingleRecord ( ) && Const . isUpgradable ( getVersionMajor ( ) , getVersionMinor ( ) ) ; }

Compruebe si el archivo es actualizado a la última versión de los datos de archivos utilizados por la implementación.Si un archivo es actualizado, significa que los datos dentro de ella son válidos tanto en la versión que tiene actualmente como la versión que utiliza la implementación.En ese caso, la implementación de WritaAletsdatafile puede optar por agregar nuevos registros a ese archivo.De lo contrario, tendrá que iniciar un nuevo archivo para escribir registros.


void draw  ( Canvas canvas , Thumb leftThumb , Thumb rightThumb ) { canvas . drawLine ( leftThumb . getX ( ) , mY , rightThumb . getX ( ) , mY , mPaint ) ; }

Dibuja la línea de conexión entre los dos pulgares.


public static SM_SYSTEM_MESSAGE STR_MSG_SKIN_CHANGE_TIME_EXPIRED_IN_WAREHOUSE  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400370 , value0 ) ; }

La apariencia Mantener el tiempo para% 0 en el almacén ha caducado y se ha eliminado el efecto de modificación de la apariencia.


public static String createClubId  ( Delegator delegator , String prefix , int length ) { final String clubSeqName = "PartyClubSeq" ; String clubId = prefix != null ? prefix : "" ; Long seq = delegator . getNextSeqIdLong ( clubSeqName ) ; clubId = clubId + UtilFormatOut . formatPaddedNumber ( seq . longValue ( ) , ( length - clubId . length ( ) - 1 ) ) ; int check = UtilValidate . getLuhnCheckDigit ( clubId ) ; clubId = clubId + Integer . toString ( check ) ; return clubId ; }

Generar un ID de club secuenciado utilizando el prefijo pasado y un valor de secuencia + dígito de verificación


public void stopServer  ( ) { keepRunning = false ; if ( this . serverSocket != null ) { try { this . serverSocket . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } this . serverSocket = null ; } }

Deje de esperar inmediatamente a la espera de los mensajes, y cierre el SocketServer.


public static void validateModuleName  ( String name ) throws SystemConfigException  { char [ ] nameChars = name . toCharArray ( ) ; if ( nameChars . length < 2 ) { LOG . error ( INVALID_MODULE_CONFIGURATION . logFormat ( MODULE_NAME_IS_TOO_SHORT , name ) ) ; throw new SystemConfigException ( INVALID_MODULE_CONFIGURATION . format ( MODULE_NAME_IS_TOO_SHORT , name ) ) ; } List < Character > invalidCharacters = new ArrayList < > ( name . length ( ) ) ; if ( ! Character . isJavaIdentifierStart ( name . charAt ( 0 ) ) ) { invalidCharacters . add ( name . charAt ( 0 ) ) ; } name . substring ( 1 ) . chars ( ) . mapToObj ( null ) . filter ( null ) . forEach ( null ) ; if ( ! invalidCharacters . isEmpty ( ) ) { String message = String . format ( ILLEGAL_CHARACTER_IN_MODULE_NAME , invalidCharacters ) ; LOG . error ( INVALID_MODULE_NAME . logFormat ( name , message ) ) ; throw new SystemConfigException ( INVALID_MODULE_NAME . logFormat ( name , message ) ) ; } }

Un método utilizado para aplicar reglas de validación a los nombres de los módulos encontrados en los archivos de propiedad de recursos.Arroja excepciones cuando no es válido.


public void sin  ( final double [ ] operand , final int operandOffset , final double [ ] result , final int resultOffset ) { double [ ] function = new double [ 1 + order ] ; function [ 0 ] = FastMath . sin ( operand [ operandOffset ] ) ; if ( order > 0 ) { function [ 1 ] = FastMath . cos ( operand [ operandOffset ] ) ; for ( int i = 2 ; i <= order ; ++ i ) { function [ i ] = - function [ i - 2 ] ; } } compose ( operand , operandOffset , function , result , resultOffset ) ; }

Calcule seno de una estructura derivada.


public UsersSearchQuery company  ( String value ) { return unsafeParam ( "company" , value ) ; }

Nombre de la compañía donde trabajan los usuarios.


public boolean pre_jimplify  ( ) { return soot . PhaseOptions . getBoolean ( options , "pre-jimplify" ) ; }

Pre Jimplify: jimplifique todos los métodos antes de comenzar la paleta.Cuando esta opción se establece en VERDADERO, PADDLE convierte todos los métodos disponibles para Jimple antes de comenzar los puntos a análisis.Esto permite que el tiempo de jimplificación se separe de los puntos a tiempo.Sin embargo, aumenta el requisito total de tiempo y memoria, porque todos los métodos están jamplificados, en lugar de los que se consideran accesibles por los puntos a análisis.


public boolean isClassSuperclassOf  ( SootClass parent , SootClass possibleChild ) { parent . checkLevel ( SootClass . HIERARCHY ) ; possibleChild . checkLevel ( SootClass . HIERARCHY ) ; return getSubclassesOf ( parent ) . contains ( possibleChild ) ; }

Devuelve VERDADERO si el niño es una superclase de posibles parentes.


public CompositeComparator ( int size ) { this ( size , false ) ; }

Crea un compositecomparator vacío con la capacidad dada.


Este método se llama cuando un usuario deja la vista.<P> Este método está destinado a anular.


public void stop  ( ) { running = false ; try { client . close ( ) ; } catch ( IOException exception ) { LOG . error ( "Exception while closing EtcdFlagFieldUpdater." , exception ) ; } }

Detiene la observación de los valores de ETCD.


@ Override public StringBuffer format  ( final double value , final StringBuffer buffer , final FieldPosition position ) { return format ( Double . valueOf ( value ) , buffer , position ) ; }

Formats un valor doble como una fracción y agrega el resultado a un StringBuffer.


public Builder withChild  ( Feature childFeature , Range < Integer > versionRange ) { Preconditions . checkNotNull ( childFeature ) ; Preconditions . checkNotNull ( versionRange ) ; Preconditions . checkArgument ( childFeature . getName ( ) . startsWith ( featureName + "/" ) , "Child feature name %s must start with parent feature name %s + '/'" , childFeature . getName ( ) , featureName ) ; String childPart = childFeature . getName ( ) . substring ( featureName . length ( ) + 1 ) ; Preconditions . checkArgument ( childPart . indexOf ( '/' ) == - 1 , "Child feature name must not contain '/'" ) ; childBindings . add ( new ChildBinding ( childFeature , versionRange ) ) ; return this ; }

Incluye automáticamente el niño dado cuando la versión de configuración está en el rango dado.


@ Override public void empty  ( Augmentations augs ) throws XNIException { }


public boolean isSet  ( final OPTION option ) { return options == null ? false : options . contains ( option ) ; }

Si actualmente se establece la opción Pasada en la opción.


private boolean journalRebuildRequired  ( ) { final int redundantOpCompactThreshold = 2000 ; return redundantOpCount >= redundantOpCompactThreshold && redundantOpCount >= lruEntries . size ( ) ; }

Solo reconstruimos la revista cuando reducirá el tamaño del tamaño de la revista y eliminará al menos 2000 operadores.


public static void notNull  ( Object ... arguments ) { for ( int i = 0 ; i < arguments . length ; ) { notNull ( ( String ) arguments [ i ++ ] , arguments [ i ++ ] ) ; } }

Prueba una lista de argumentos para <código> null </ code>.<p> <code> Assert.notnull ("foo", foo, "bar", bar, ...); </ código> </ p>


public short readShort  ( ) { return scanner . nextShort ( ) ; }

Lee el siguiente token de este flujo de entrada, lo analiza como un <tt> corto </ tt>, y devuelve el <tt> corto </ tt>.


@ AssistedInject public PersistentSortedQueue ( @ Assisted String name , @ Assisted boolean readOnly , @ Assisted QueueDAO dao , MetricRegistry metricRegistry ) { this ( name , readOnly , SPLIT_THRESHOLD_BYTES , SPLIT_WORK_BYTES , dao , metricRegistry ) ; }

Crea una cola ordenada que carga su estado inicial en un modo de solo lectura.Esto se puede utilizar para inspeccionar el estado actual de una cola ordenada que no se puede modificar por alguna razón, tal vez porque es propiedad de otro servidor.


String inprogressZNode  ( long ledgerId , long firstTxId , long logSegmentSeqNo ) { return logMetadata . getLogSegmentsPath ( ) + "/" + inprogressZNodeName ( ledgerId , firstTxId , logSegmentSeqNo ) ; }

Obtenga la ruta ZNode para el INPROGRESSZNODE


public Builder considerExifParams  ( boolean considerExifParams ) { this . considerExifParams = considerExifParams ; return this ; }

Establece si ImageLoader considerará los parámetros EXIF de la imagen JPEG (Girar, Flip)


public RoleNotFoundException ( String message , Throwable cause ) { super ( message , cause ) ; }

Crea un <código> RolenotFoundException </ Code> con el mensaje de detalle y la causa especificados.


private EnclosingBall < S , P > moveToFrontBall  ( final List < P > extreme , final int nbExtreme , final List < P > support ) { EnclosingBall < S , P > ball = generator . ballOnSupport ( support ) ; if ( ball . getSupportSize ( ) <= ball . getCenter ( ) . getSpace ( ) . getDimension ( ) ) { for ( int i = 0 ; i < nbExtreme ; ++ i ) { final P pi = extreme . get ( i ) ; if ( ! ball . contains ( pi , tolerance ) ) { support . add ( pi ) ; ball = moveToFrontBall ( extreme , i , support ) ; support . remove ( support . size ( ) - 1 ) ; for ( int j = i ; j > 0 ; -- j ) { extreme . set ( j , extreme . get ( j - 1 ) ) ; } extreme . set ( 0 , pi ) ; } } } return ball ; }

Calcule la bola adjunta usando el movimiento de Welzl al frente heurístico.


private void verifyValidation  ( ) { setErrorMessage ( null ) ; setValid ( getErrorMessage ( ) == null ) ; }

Verificar la selección del método de la interfaz.


public InvalidPluginException ( final String message , final Throwable cause ) { super ( message , cause ) ; }

Construye una nueva excepción inválida con el mensaje de detalle especificado y la causa.


public void testNameAndTenantIdSetWhenFetchingVariables  ( ) { String tenantId = "testTenantId" ; String processInstanceName = "myProcessInstance" ; String deploymentId = repositoryService . createDeployment ( ) . addClasspathResource ( "org/activiti/engine/test/history/oneTaskProcess.bpmn20.xml" ) . tenantId ( tenantId ) . deploy ( ) . getId ( ) ; Map < String , Object > vars = new HashMap < String , Object > ( ) ; vars . put ( "name" , "Kermit" ) ; vars . put ( "age" , 60 ) ; ProcessInstance processInstance = runtimeService . startProcessInstanceByKeyAndTenantId ( "oneTaskProcess" , vars , tenantId ) ; runtimeService . setProcessInstanceName ( processInstance . getId ( ) , processInstanceName ) ; List < ProcessInstance > processInstances = runtimeService . createProcessInstanceQuery ( ) . includeProcessVariables ( ) . list ( ) ; assertEquals ( 1 , processInstances . size ( ) ) ; processInstance = processInstances . get ( 0 ) ; assertEquals ( processInstanceName , processInstance . getName ( ) ) ; assertEquals ( tenantId , processInstance . getTenantId ( ) ) ; Map < String , Object > processInstanceVars = processInstance . getProcessVariables ( ) ; assertEquals ( 2 , processInstanceVars . size ( ) ) ; assertEquals ( "Kermit" , processInstanceVars . get ( "name" ) ) ; assertEquals ( 60 , processInstanceVars . get ( "age" ) ) ; List < HistoricProcessInstance > historicProcessInstances = historyService . createHistoricProcessInstanceQuery ( ) . includeProcessVariables ( ) . list ( ) ; assertEquals ( 1 , historicProcessInstances . size ( ) ) ; HistoricProcessInstance historicProcessInstance = historicProcessInstances . get ( 0 ) ; assertEquals ( processInstanceName , historicProcessInstance . getName ( ) ) ; assertEquals ( tenantId , historicProcessInstance . getTenantId ( ) ) ; Map < String , Object > historicProcessInstanceVars = historicProcessInstance . getProcessVariables ( ) ; assertEquals ( 2 , historicProcessInstanceVars . size ( ) ) ; assertEquals ( "Kermit" , historicProcessInstanceVars . get ( "name" ) ) ; assertEquals ( 60 , historicProcessInstanceVars . get ( "age" ) ) ; repositoryService . deleteDeployment ( deploymentId , true ) ; }


public void clearPendingDownloadNotifications  ( ) { if ( mSharedPrefs . contains ( DOWNLOAD_NOTIFICATION_IDS ) ) { Set < String > downloadIds = getStoredDownloadInfo ( DOWNLOAD_NOTIFICATION_IDS ) ; for ( String id : downloadIds ) { int notificationId = parseNotificationId ( id ) ; if ( notificationId > 0 ) { mDownloadNotifier . cancelNotification ( notificationId ) ; Log . w ( TAG , "Download failed: Cleared download id:" + id ) ; } } mSharedPrefs . edit ( ) . remove ( DOWNLOAD_NOTIFICATION_IDS ) . apply ( ) ; } if ( mSharedPrefs . contains ( PENDING_OMA_DOWNLOADS ) ) { Set < String > omaDownloads = getStoredDownloadInfo ( PENDING_OMA_DOWNLOADS ) ; for ( String omaDownload : omaDownloads ) { OMAEntry entry = OMAEntry . parseOMAEntry ( omaDownload ) ; clearPendingOMADownload ( entry . mDownloadId , entry . mInstallNotifyURI ) ; } } }

Borre cualquier notificación pendiente para descargas incompletas leyendo de los Prefs compartidos.Cuando se reinicia Clank, se aclara las notificaciones antiguas para descargas incompletas.


public void takeDown  ( ) { synchronized ( System . out ) { System . out . println ( "Finished..." + ( new SimpleDateFormat ( "yyyy.MM.dd HH:mm:ss" ) ) . format ( new Date ( ) ) ) ; } }

Apaga el agente, con un mensaje de depuración.


Solo permite la creación a través del método de fábrica.


public VideoEditQuery privacyComment  ( List < String > value ) { return unsafeParam ( "privacy_comment" , value ) ; }

Configuración de privacidad para comentarios en un formato especial.


public static UByte ubyte  ( short value ) throws NumberFormatException  { return UByte . valueOf ( value ) ; }


@ Override public boolean equals  ( Object that ) { if ( this == that ) { return true ; } if ( that == null ) { return false ; } if ( getClass ( ) != that . getClass ( ) ) { return false ; } SysSession other = ( SysSession ) that ; return ( this . getId ( ) == null ? other . getId ( ) == null : this . getId ( ) . equals ( other . getId ( ) ) ) && ( this . getSessionId ( ) == null ? other . getSessionId ( ) == null : this . getSessionId ( ) . equals ( other . getSessionId ( ) ) ) && ( this . getAccount ( ) == null ? other . getAccount ( ) == null : this . getAccount ( ) . equals ( other . getAccount ( ) ) ) && ( this . getIp ( ) == null ? other . getIp ( ) == null : this . getIp ( ) . equals ( other . getIp ( ) ) ) && ( this . getStartTime ( ) == null ? other . getStartTime ( ) == null : this . getStartTime ( ) . equals ( other . getStartTime ( ) ) ) && ( this . getEnable ( ) == null ? other . getEnable ( ) == null : this . getEnable ( ) . equals ( other . getEnable ( ) ) ) && ( this . getRemark ( ) == null ? other . getRemark ( ) == null : this . getRemark ( ) . equals ( other . getRemark ( ) ) ) && ( this . getCreateTime ( ) == null ? other . getCreateTime ( ) == null : this . getCreateTime ( ) . equals ( other . getCreateTime ( ) ) ) && ( this . getCreateBy ( ) == null ? other . getCreateBy ( ) == null : this . getCreateBy ( ) . equals ( other . getCreateBy ( ) ) ) && ( this . getUpdateTime ( ) == null ? other . getUpdateTime ( ) == null : this . getUpdateTime ( ) . equals ( other . getUpdateTime ( ) ) ) && ( this . getUpdateBy ( ) == null ? other . getUpdateBy ( ) == null : this . getUpdateBy ( ) . equals ( other . getUpdateBy ( ) ) ) ; }

Este método fue generado por MyBatis Generator.Este método corresponde a la tabla de la base de datos sys_session


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_ResurrectBase_A_TO_B  ( String skilltarget , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201241 , skilltarget , skillcaster , skillname ) ; }

[% SkillTarget] se ve obligado a resucitar en el punto de enlace porque [% Skillcaster] usó [% de habilidad] en ella.


public boolean isCritical  ( ) { return true ; }

¿Es este un comando crítico que solo se puede ejecutar cuando no se está ejecutando otro comando?


public void train  ( String corpusFileName , String pipelineModelFileName , int numFeatures ) { JavaRDD < String > jrdd = jsc . textFile ( corpusFileName ) ; train ( jrdd . collect ( ) , pipelineModelFileName , numFeatures ) ; }

Trae un modelo de clasificador de espacio en blanco y guarde el modelo de tubería resultante a un archivo externo.


public void uncollapse  ( Set < Integer > toUncollapse , Set < Integer > collapsedIds ) { Set < Integer > newCollapsed = new HashSet < > ( ) ; for ( Node v = getFirstNode ( ) ; v != null ; v = v . getNext ( ) ) { int vId = ( Integer ) v . getInfo ( ) ; if ( toUncollapse . contains ( vId ) && collapsedIds . contains ( vId ) ) { for ( Edge e = v . getFirstOutEdge ( ) ; e != null ; e = v . getNextOutEdge ( e ) ) { Node w = e . getTarget ( ) ; newCollapsed . add ( ( Integer ) w . getInfo ( ) ) ; } } } collapsedIds . removeAll ( toUncollapse ) ; collapsedIds . addAll ( newCollapsed ) ; }

Modifique el conjunto dado de colapsedids para que los ID de tountolapse se desollapten


static Class findProviderClass  ( String className , ClassLoader cl , boolean doFallback ) throws ClassNotFoundException , ConfigurationError { SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { final int lastDot = className . lastIndexOf ( "." ) ; String packageName = className ; if ( lastDot != - 1 ) packageName = className . substring ( 0 , lastDot ) ; security . checkPackageAccess ( packageName ) ; } Class providerClass ; if ( cl == null ) { providerClass = Class . forName ( className ) ; } else { try { providerClass = cl . loadClass ( className ) ; } catch ( ClassNotFoundException x ) { if ( doFallback ) { ClassLoader current = ObjectFactory . class . getClassLoader ( ) ; if ( current == null ) { providerClass = Class . forName ( className ) ; } else if ( cl != current ) { cl = current ; providerClass = cl . loadClass ( className ) ; } else { throw x ; } } else { throw x ; } } } return providerClass ; }

Encuentre una clase usando el cargador de clases especificado


public static String stringifyException  ( Throwable e ) { StringWriter stm = new StringWriter ( ) ; PrintWriter wrt = new PrintWriter ( stm ) ; e . printStackTrace ( wrt ) ; wrt . close ( ) ; return stm . toString ( ) ; }

Hacer una representación de cadena de la excepción.


public List asList  ( ) { List result = new LinkedList ( ) ; for ( Iterator it = iterator ( ) ; it . hasNext ( ) ; ) { result . add ( it . next ( ) ) ; } return result ; }

obtener todas las divisiones en una nueva lista


public synchronized void close  ( ) { done = true ; if ( line != null && line . isOpen ( ) ) { line . close ( ) ; line = null ; notify ( ) ; } }


public double distance  ( final Vector2D p ) { return FastMath . abs ( getOffset ( p ) ) ; }

Calcule la distancia entre la instancia y un punto.<P> Este es un acceso directo para invocar Fastmath.abs (GETOFFSET (P)), y proporciona consistencia con lo que está en org.hipparchus.geometry.euclidean.threed.line Class. </ P>


public void clearAllBits  ( ) { for ( int i = 0 ; i < types . size ( ) * locals . size ( ) ; i ++ ) { clear ( i ) ; } }


public final < V extends  Enum < V > & PaginationFilterProperty > boolean test  ( T object , Class < V > enumType ) { if ( StringUtils . isBlank ( filter ) ) { return true ; } else if ( filter . contains ( SEPARATOR ) ) { if ( StringUtils . containsNone ( StringUtils . substringBefore ( filter , SEPARATOR ) , DELIMITER ) ) { return testFields ( object , enumType ) ; } return testFields ( object , enumType ) && testFulltext ( object , enumType ) ; } return testFulltext ( object , enumType ) ; }

Prueba las propiedades de un objeto según el filtro actual.


public static boolean isNumberDelta  ( String string ) { String s = string . trim ( ) ; if ( s . length ( ) < 2 ) return false ; return ( s . charAt ( 0 ) == '+' || s . charAt ( 0 ) == '-' ) && isUnsignedNumber ( s . substring ( 1 ) ) ; }

Dile a si la cadena contiene un número positivo o negativo delta, es decir, un número con un firme obligatorio + o -


public void __setEntryInfo  ( EntryInfo entryInfo ) { this . entryInfo = entryInfo ; }


protected MessagesGetChatQueryWithChatIds chatIds  ( Integer ... value ) { return unsafeParam ( "chat_ids" , value ) ; }


public static List inlineSite  ( SootMethod inlinee , Stmt toInline , SootMethod container , Map options ) { boolean enableNullPointerCheckInsertion = PhaseOptions . getBoolean ( options , "insert-null-checks" ) ; boolean enableRedundantCastInsertion = PhaseOptions . getBoolean ( options , "insert-redundant-casts" ) ; Hierarchy hierarchy = Scene . v ( ) . getActiveHierarchy ( ) ; JimpleBody containerB = ( JimpleBody ) container . getActiveBody ( ) ; Chain < Unit > containerUnits = containerB . getUnits ( ) ; if ( ! ( inlinee . getDeclaringClass ( ) . isApplicationClass ( ) || inlinee . getDeclaringClass ( ) . isLibraryClass ( ) ) ) return null ; Body inlineeB = inlinee . getActiveBody ( ) ; Chain < Unit > inlineeUnits = inlineeB . getUnits ( ) ; InvokeExpr ie = toInline . getInvokeExpr ( ) ; Value thisToAdd = null ; if ( ie instanceof InstanceInvokeExpr ) thisToAdd = ( ( InstanceInvokeExpr ) ie ) . getBase ( ) ; { boolean targetUsesThis = true ; if ( enableRedundantCastInsertion && ie instanceof InstanceInvokeExpr && targetUsesThis ) { SootClass localType , parameterType ; localType = ( ( RefType ) ( ( InstanceInvokeExpr ) ie ) . getBase ( ) . getType ( ) ) . getSootClass ( ) ; parameterType = inlinee . getDeclaringClass ( ) ; if ( localType . isInterface ( ) || hierarchy . isClassSuperclassOf ( localType , parameterType ) ) { Local castee = Jimple . v ( ) . newLocal ( "__castee" , parameterType . getType ( ) ) ; containerB . getLocals ( ) . add ( castee ) ; containerB . getUnits ( ) . insertBefore ( Jimple . v ( ) . newAssignStmt ( castee , Jimple . v ( ) . newCastExpr ( ( ( InstanceInvokeExpr ) ie ) . getBase ( ) , parameterType . getType ( ) ) ) , toInline ) ; thisToAdd = castee ; } } } { if ( enableNullPointerCheckInsertion && ie instanceof InstanceInvokeExpr ) { boolean caught = TrapManager . isExceptionCaughtAt ( Scene . v ( ) . getSootClass ( "java.lang.NullPointerException" ) , toInline , containerB ) ; if ( caught ) { Stmt insertee = Jimple . v ( ) . newIfStmt ( Jimple . v ( ) . newNeExpr ( ( ( InstanceInvokeExpr ) ie ) . getBase ( ) , NullConstant . v ( ) ) , toInline ) ; containerB . getUnits ( ) . insertBefore ( insertee , toInline ) ; ( ( IfStmt ) insertee ) . setTarget ( toInline ) ; ThrowManager . addThrowAfter ( containerB , insertee ) ; } else { Stmt throwPoint = ThrowManager . getNullPointerExceptionThrower ( containerB ) ; containerB . getUnits ( ) . insertBefore ( Jimple . v ( ) . newIfStmt ( Jimple . v ( ) . newEqExpr ( ( ( InstanceInvokeExpr ) ie ) . getBase ( ) , NullConstant . v ( ) ) , throwPoint ) , toInline ) ; } } } { if ( inlinee . isSynchronized ( ) ) { if ( ie instanceof InstanceInvokeExpr ) SynchronizerManager . v ( ) . synchronizeStmtOn ( toInline , containerB , ( Local ) ( ( InstanceInvokeExpr ) ie ) . getBase ( ) ) ; else { if ( ! container . getDeclaringClass ( ) . isInterface ( ) ) { Local l = SynchronizerManager . v ( ) . addStmtsToFetchClassBefore ( containerB , toInline ) ; SynchronizerManager . v ( ) . synchronizeStmtOn ( toInline , containerB , l ) ; } } } } Stmt exitPoint = ( Stmt ) containerUnits . getSuccOf ( toInline ) ; HashMap < Local , Local > oldLocalsToNew = new HashMap < Local , Local > ( ) ; HashMap < Stmt , Stmt > oldUnitsToNew = new HashMap < Stmt , Stmt > ( ) ; { Stmt cursor = toInline ; for ( Iterator < Unit > currIt = inlineeUnits . iterator ( ) ; currIt . hasNext ( ) ; ) { final Stmt curr = ( Stmt ) currIt . next ( ) ; Stmt currPrime = ( Stmt ) curr . clone ( ) ; if ( currPrime == null ) throw new RuntimeException ( "getting null from clone!" ) ; currPrime . addAllTagsOf ( curr ) ; containerUnits . insertAfter ( currPrime , cursor ) ; cursor = currPrime ; oldUnitsToNew . put ( curr , currPrime ) ; } for ( Iterator < Local > lIt = inlineeB . getLocals ( ) . iterator ( ) ; lIt . hasNext ( ) ; ) { final Local l = lIt . next ( ) ; Local lPrime = ( Local ) l . clone ( ) ; if ( lPrime == null ) throw new RuntimeException ( "getting null from local clone!" ) ; containerB . getLocals ( ) . add ( lPrime ) ; oldLocalsToNew . put ( l , lPrime ) ; } } { Iterator < Unit > it = containerUnits . iterator ( containerUnits . getSuccOf ( toInline ) , containerUnits . getPredOf ( exitPoint ) ) ; while ( it . hasNext ( ) ) { Stmt patchee = ( Stmt ) it . next ( ) ; for ( ValueBox box : patchee . getUseAndDefBoxes ( ) ) { if ( ! ( box . getValue ( ) instanceof Local ) ) continue ; Local lPrime = oldLocalsToNew . get ( box . getValue ( ) ) ; if ( lPrime != null ) box . setValue ( lPrime ) ; else throw new RuntimeException ( "local has no clone!" ) ; } for ( UnitBox box : patchee . getUnitBoxes ( ) ) { Unit uPrime = ( oldUnitsToNew . get ( box . getUnit ( ) ) ) ; if ( uPrime != null ) box . setUnit ( uPrime ) ; else throw new RuntimeException ( "inlined stmt has no clone!" ) ; } } } { Trap prevTrap = null ; for ( Trap t : inlineeB . getTraps ( ) ) { Stmt newBegin = oldUnitsToNew . get ( t . getBeginUnit ( ) ) , newEnd = oldUnitsToNew . get ( t . getEndUnit ( ) ) , newHandler = oldUnitsToNew . get ( t . getHandlerUnit ( ) ) ; if ( newBegin == null || newEnd == null || newHandler == null ) throw new RuntimeException ( "couldn't map trap!" ) ; Trap trap = Jimple . v ( ) . newTrap ( t . getException ( ) , newBegin , newEnd , newHandler ) ; if ( prevTrap == null ) containerB . getTraps ( ) . addFirst ( trap ) ; else containerB . getTraps ( ) . insertAfter ( trap , prevTrap ) ; prevTrap = trap ; } } { Iterator < Unit > it = containerUnits . iterator ( containerUnits . getSuccOf ( toInline ) , containerUnits . getPredOf ( exitPoint ) ) ; ArrayList < Unit > cuCopy = new ArrayList < Unit > ( ) ; while ( it . hasNext ( ) ) { cuCopy . add ( it . next ( ) ) ; } for ( Unit u : cuCopy ) { Stmt s = ( Stmt ) u ; if ( s instanceof IdentityStmt ) { IdentityRef rhs = ( IdentityRef ) ( ( IdentityStmt ) s ) . getRightOp ( ) ; if ( rhs instanceof CaughtExceptionRef ) continue ; else if ( rhs instanceof ThisRef ) { if ( ! ( ie instanceof InstanceInvokeExpr ) ) throw new RuntimeException ( "thisref with no receiver!" ) ; containerUnits . swapWith ( s , Jimple . v ( ) . newAssignStmt ( ( ( IdentityStmt ) s ) . getLeftOp ( ) , thisToAdd ) ) ; } else if ( rhs instanceof ParameterRef ) { ParameterRef pref = ( ParameterRef ) rhs ; containerUnits . swapWith ( s , Jimple . v ( ) . newAssignStmt ( ( ( IdentityStmt ) s ) . getLeftOp ( ) , ie . getArg ( pref . getIndex ( ) ) ) ) ; } } else if ( s instanceof ReturnStmt ) { if ( toInline instanceof InvokeStmt ) { containerUnits . swapWith ( s , Jimple . v ( ) . newGotoStmt ( exitPoint ) ) ; continue ; } if ( ! ( toInline instanceof AssignStmt ) ) throw new RuntimeException ( "invoking stmt neither InvokeStmt nor AssignStmt!??!?!" ) ; Value ro = ( ( ReturnStmt ) s ) . getOp ( ) ; Value lhs = ( ( AssignStmt ) toInline ) . getLeftOp ( ) ; AssignStmt as = Jimple . v ( ) . newAssignStmt ( lhs , ro ) ; containerUnits . insertBefore ( as , s ) ; containerUnits . swapWith ( s , Jimple . v ( ) . newGotoStmt ( exitPoint ) ) ; } else if ( s instanceof ReturnVoidStmt ) containerUnits . swapWith ( s , Jimple . v ( ) . newGotoStmt ( exitPoint ) ) ; } } List < Unit > newStmts = new ArrayList < Unit > ( ) ; for ( Iterator < Unit > i = containerUnits . iterator ( containerUnits . getSuccOf ( toInline ) , containerUnits . getPredOf ( exitPoint ) ) ; i . hasNext ( ) ; ) { newStmts . add ( i . next ( ) ) ; } containerUnits . remove ( toInline ) ; LocalNameStandardizer . v ( ) . transform ( containerB , "ji.lns" ) ; return newStmts ; }

Inline el sitio dado.Tenga en cuenta que este método en realidad no comprueba si es seguro (con respecto a los modificadores de acceso y los invocaciones especiales) para que sean innlinada.Esa funcionalidad es manejada por el InlinersafetManager.


@ Override public boolean isApplicable  ( ) { if ( ProgramProperties . get ( "always-allow-open-fviewer" , false ) ) return true ; final Document doc = ( ( Director ) getDir ( ) ) . getDocument ( ) ; return doc . getActiveViewers ( ) . contains ( cName ) ; }

¿El comando es actualmente aplicable?Utilizado para establecer habilitar el estado de comando