protected void initializeSchedulerProperties  ( Properties properties ) { if ( this . schedulerProperties != null ) { throw new IllegalStateException ( "Can't overwrite scheduler properties when they are already set. Set the properties before adding Jobs, and do not change them afterwards." ) ; } this . schedulerProperties = properties ; }

Establezca las propiedades que usará el programador org.quartz.Solo se puede llamar una vez, y solo antes de que se agregue un trabajo.


private void checkState  ( ) { if ( isCancelled ( ) ) throw new CancellationException ( "task was cancelled" ) ; }

Arroja cancelación de cancelación si se canceló el futuro.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_PetOrderUnSummon_A_TO_ME  ( String skillname , String skillcaster ) { return new SM_SYSTEM_MESSAGE ( 1201205 , skillname , skillcaster ) ; }

Tu espíritu no estaba en contacto con el efecto del [% de habilidad] utilizado por [% Skillcaster].


public static int convertToDIP  ( int pixels ) { return Math . round ( TypedValue . applyDimension ( TypedValue . COMPLEX_UNIT_DIP , pixels , Resources . getSystem ( ) . getDisplayMetrics ( ) ) ) ; }

Devuelve un valor de píxel independiente de densidad redondeado al entero más cercano para la dimensión deseada.


public static SM_SYSTEM_MESSAGE STR_PARTY_ALLIANCE_CAN_NOT_INVITE_HIM_HE_IS_NOT_PARTY_LEADER  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300194 , value0 ) ; }

No puedes invitar a% 0 a la Alianza, ya que él o ella no es un líder del grupo.


public static void writeLines  ( Collection < ? > lines , String lineEnding , OutputStream output , String encoding ) throws IOException { writeLines ( lines , lineEnding , output , Charsets . toCharset ( encoding ) ) ; }

Escribe el valor <código> TOSTRING () </ CODE> de cada elemento en una colección a una línea </ código> de SURODSTREAM </ CODE>, utilizando la codificación de caracteres especificada y la finalización de la línea especificada.<p /> Los nombres de codificación de caracteres se pueden encontrar en <a href="http://www.iana.org/assignments/Character-sets"> IANA </A>.


public WallDeleteCommentQuery deleteComment  ( UserActor actor , int commentId ) { return new WallDeleteCommentQuery ( getClient ( ) , actor , commentId ) ; }

Borra un comentario en un poste en una pared de usuario o pared comunitaria.


public Matrix uminus  ( ) { Matrix X = new Matrix ( m , n ) ; double [ ] [ ] C = X . getArray ( ) ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { C [ i ] [ j ] = - A [ i ] [ j ] ; } } return X ; }


public boolean isInUse  ( ) { return getKmTarget ( ) > api . getPlayerProfile ( ) . getStats ( ) . getKmWalked ( ) ; }

¿Se está utilizando actualmente la incubadora?


public static double mouseY  ( ) { synchronized ( mouseLock ) { return mouseY ; } }

Devuelve el <em> y </ em> -boordinar del mouse.


private void resetList  ( ) { getPreferenceScreen ( ) . removeAll ( ) ; addPreferencesFromResource ( R . xml . website_preferences ) ; configureGlobalToggles ( ) ; if ( ( mCategory . showJavaScriptSites ( ) && ! PrefServiceBridge . getInstance ( ) . javaScriptEnabled ( ) ) ) { getPreferenceScreen ( ) . addPreference ( new AddExceptionPreference ( getActivity ( ) , ADD_EXCEPTION_KEY , getAddExceptionDialogMessage ( ) , this ) ) ; } }

Restablecer la pantalla de preferencia y volver a inicializarla.


public synchronized void returnBuf  ( byte [ ] buf ) { if ( buf == null || buf . length > mSizeLimit ) { return ; } mBuffersByLastUse . add ( buf ) ; int pos = Collections . binarySearch ( mBuffersBySize , buf , BUF_COMPARATOR ) ; if ( pos < 0 ) { pos = - pos - 1 ; } mBuffersBySize . add ( pos , buf ) ; mCurrentSize += buf . length ; trim ( ) ; }

Devuelve un búfer a la piscina, desechando los buffers viejos si la piscina superaría su tamaño asignado.


public void putImplementationDataTagChanger  ( final long equipmentId , final IDataTagChanger dataTagChanger ) { if ( dataTagChanger == null ) dataTagChangers . remove ( equipmentId ) ; else dataTagChangers . put ( equipmentId , dataTagChanger ) ; }

Pone un cambiador de etiquetas de datos de implementación a este controlador.Solo puede haber uno por equipo.


@ Nullable public static < T extends  Facet > T findFacet ( @ NotNull Module module , @ NotNull IdeModifiableModelsProvider modelsProvider , @ NotNull FacetTypeId < T > typeId ) { T facet = FacetManager . getInstance ( module ) . getFacetByType ( typeId )  ; if ( facet == null ) { ModifiableFacetModel facetModel = modelsProvider . getModifiableFacetModel ( module ) ; facet = facetModel . getFacetByType ( typeId ) ; } return facet ; }

Intenta encontrar una faceta particular de un módulo de FacetManager, si no puede encontrar, Fallo para encontrar la faceta de modificación de los modelos.


public SampleSet ( ByteBuffer bb ) throws IOException { int numSamples ; sampleInfo = new SampleInfo ( bb ) ; numSamples = bb . getInt ( ) ; this . samples = new Sample [ numSamples ] ; for ( int i = 0 ; i < numSamples ; i ++ ) { samples [ i ] = Sample . loadBinary ( bb ) ; } }

Crea un SampleSet leyendo el búfer de byte dado


private boolean directoryIsValid  ( File directory ) { if ( directory . exists ( ) ) { if ( ! directory . canWrite ( ) ) { log . info ( "Directory " + directory . getAbsolutePath ( ) + " is not writeable" ) ; return false ; } } else { try { if ( ! directory . mkdirs ( ) ) { log . info ( "Directory " + directory . getAbsolutePath ( ) + " cannot be created" ) ; return false ; } } catch ( SecurityException ex ) { log . info ( "Directory " + directory . getAbsolutePath ( ) + " cannot be accessed" ) ; return false ; } } return true ; }

Prueba si el directorio es escritura por la aplicación si existe el directorio.Intenta crear el directorio, incluidos los directorios de los padres necesarios si el directorio no existe, y prueba si la construcción de directorios fue exitosa y no fue prevenida por un SecurityManager de ninguna manera.


public static String decodeFilename  ( Map < String , String > map ) { if ( map != null ) { return map . get ( DataSourceConnectorInterface . FILE_MAP_KEY ) ; } return null ; }


public FriendsGetAvailableForCallQuery ( VkApiClient client , UserActor actor ) { super ( client , "friends.getAvailableForCall" , GetAvailableForCallResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

Crea una instancia abstractQueryBuilder que se puede usar para construir una solicitud API con varios parámetros


public static SM_SYSTEM_MESSAGE STR_FIELDABYSS_PVP_OFF  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400293 , value0 ) ; }


protected List < Target > overridableCreateTargetsWithPauses  ( List < Element > segmentsAndBoundaries , String pauseSymbol ) { return TargetFeatureLister . createTargetsWithPauses ( segmentsAndBoundaries , pauseSymbol ) ; }

Acceda al código desde el código de nuestro propio propio, para que una subclase pueda anularla.Use esto en lugar del método estático público en el código local.


@ Override public void comment  ( XMLString text , Augmentations augs ) throws XNIException { }


public int kind  ( ) { String s = soot . PhaseOptions . getString ( options , "kind" ) ; if ( s . equalsIgnoreCase ( "optimistic" ) ) return kind_optimistic ; if ( s . equalsIgnoreCase ( "pessimistic" ) ) return kind_pessimistic ; throw new RuntimeException ( "Invalid value " + s + " of phase option kind" ) ; }


@ Override public boolean scanDTDExternalSubset  ( boolean complete ) throws IOException , XNIException { fEntityManager . setEntityHandler ( this ) ; if ( fScannerState == SCANNER_STATE_TEXT_DECL ) { fSeenExternalDTD = true ; boolean textDecl = scanTextDecl ( ) ; if ( fScannerState == SCANNER_STATE_END_OF_INPUT ) { return false ; } else { setScannerState ( SCANNER_STATE_MARKUP_DECL ) ; if ( textDecl && ! complete ) { return true ; } } } do { if ( ! scanDecls ( complete ) ) { return false ; } } while ( complete ) ; return true ; }

Escanea el subconjunto externo del documento.


void commit  ( ) { queryExecutor . submit ( null ) ; }

Cometer y reportar cualquier error al cliente.


public void print  ( List < BOMNode > arr ) { print ( arr , 0 , false ) ; }

Visita el árbol en memoria que representa una factura de materiales y recopila información de sus nodos en la lista.Método utilizado para la desglose de la BOM (explosión / implosión).


private Pair < Long , Long > buildExecutionTimesFromXml  ( XmlPullParser parser ) throws NumberFormatException { final long nowWallclock = System . currentTimeMillis ( ) ; final long nowElapsed = SystemClock . elapsedRealtime ( ) ; long earliestRunTimeElapsed = JobStatus . NO_EARLIEST_RUNTIME ; long latestRunTimeElapsed = JobStatus . NO_LATEST_RUNTIME ; String val = parser . getAttributeValue ( null , "deadline" ) ; if ( val != null ) { long latestRuntimeWallclock = Long . valueOf ( val ) ; long maxDelayElapsed = Math . max ( latestRuntimeWallclock - nowWallclock , 0 ) ; latestRunTimeElapsed = nowElapsed + maxDelayElapsed ; } val = parser . getAttributeValue ( null , "delay" ) ; if ( val != null ) { long earliestRuntimeWallclock = Long . valueOf ( val ) ; long minDelayElapsed = Math . max ( earliestRuntimeWallclock - nowWallclock , 0 ) ; earliestRunTimeElapsed = nowElapsed + minDelayElapsed ; } return Pair . create ( earliestRunTimeElapsed , latestRunTimeElapsed ) ; }

Función de conveniencia para leer y convertir la fecha límite y retardar de XML en tiempo real transcurrido.


public void save  ( EpoxyViewHolder holder ) { if ( ! holder . getModel ( ) . shouldSaveViewState ( ) ) { return ; } ViewState state = get ( holder . getItemId ( ) ) ; if ( state == null ) { state = new ViewState ( ) ; } state . save ( holder . itemView ) ; put ( holder . getItemId ( ) , state ) ; }

Guarde el estado de la vista unido al titular dado.


public boolean hasNonEmptyIntersection  ( PointsToSet other ) { return false ; }

Devuelve VERDADERO si este conjunto comparte algunos objetos con otros.


public SM_ACCOUNT_RECONNECT_KEY ( int accountId ) { super ( 0x02 ) ; this . accountId = accountId ; }

Construye una nueva instancia de <tt> sm_account_reconnect_key </ tt> Packet.


public static void addSetMethod  ( ClassName builderParentClassName , TypeSpec . Builder builder , ClassName type ) { String fullName = getSourceCodeName ( type ) ; String simpleName = type . simpleName ( ) ; String methodName = Character . toLowerCase ( simpleName . charAt ( 0 ) ) + simpleName . substring ( 1 ) ; builder . addField ( type , fullName , Modifier . PRIVATE ) ; String argName = "arg" ; MethodSpec . Builder methodBuilder = MethodSpec . methodBuilder ( methodName ) . addModifiers ( Modifier . PUBLIC ) . addParameter ( type , argName ) . returns ( ClassName . get ( builderParentClassName . packageName ( ) , builderParentClassName . simpleName ( ) , "Builder" ) ) . addCode ( "this.$N = $N;" , fullName , argName ) . addCode ( "return this;" ) ; builder . addMethod ( methodBuilder . build ( ) ) ; }

Agrega el método establecido para el tipo a constructor.


public ReliableLog ( String dirPath , LogHandler handler ) throws IOException { dir = new File ( dirPath ) ; if ( ! ( dir . exists ( ) ? dir . isDirectory ( ) : dir . mkdirs ( ) ) ) { throw new LogException ( "could not create directory for log: " + dirPath ) ; } this . handler = handler ; try { DataInputStream in = new DataInputStream ( new FileInputStream ( fName ( versionFile ) ) ) ; try { version = in . readInt ( ) ; } finally { in . close ( ) ; } } catch ( IOException ex ) { writeVersionFile ( ) ; } if ( version < 0 ) { throw new LogException ( "corrupted version file" ) ; } }

Crea un ReliBlellog para manejar instantáneas y registrar un directorio de almacenamiento estable, y configura para recuperar los datos existentes del directorio de almacenamiento estable.Si no hay datos existentes, se debe llamar a la instantánea siguiente, de lo contrario, se debe recuperar la recuperación siguiente.


@ Override public void propagate  ( GeomPointsTo ptAnalyzer , IWorklist worklist ) { int i , j ; AllocNode obj ; SegmentNode pts , pe , int_entry1 [ ] , int_entry2 [ ] ; PtInsIntervalManager pim1 , pim2 ; PtInsNode qn , objn ; boolean added , has_new_edges ; if ( complex_cons != null ) { for ( Map . Entry < AllocNode , PtInsIntervalManager > entry : new_pts . entrySet ( ) ) { obj = entry . getKey ( ) ; int_entry1 = entry . getValue ( ) . getFigures ( ) ; for ( PlainConstraint pcons : complex_cons ) { objn = ( PtInsNode ) ptAnalyzer . findAndInsertInstanceField ( obj , pcons . f ) ; if ( objn == null ) { pt_objs . put ( obj , ( PtInsIntervalManager ) deadManager ) ; entry . setValue ( ( PtInsIntervalManager ) deadManager ) ; break ; } if ( objn . willUpdate == false ) { continue ; } qn = ( PtInsNode ) pcons . otherSide ; for ( i = 0 ; i < HeapInsIntervalManager . Divisions ; ++ i ) { pts = int_entry1 [ i ] ; while ( pts != null && pts . is_new ) { switch ( pcons . type ) { case Constants . STORE_CONS : if ( qn . add_simple_constraint_3 ( objn , pcons . code == GeometricManager . ONE_TO_ONE ? pts . I1 : 0 , pts . I2 , pts . L ) ) worklist . push ( qn ) ; break ; case Constants . LOAD_CONS : if ( objn . add_simple_constraint_3 ( qn , pts . I2 , pcons . code == GeometricManager . ONE_TO_ONE ? pts . I1 : 0 , pts . L ) ) worklist . push ( objn ) ; break ; } pts = pts . next ; } } } } } for ( Map . Entry < PtInsNode , PtInsIntervalManager > entry1 : flowto . entrySet ( ) ) { added = false ; qn = entry1 . getKey ( ) ; pim1 = entry1 . getValue ( ) ; int_entry1 = pim1 . getFigures ( ) ; has_new_edges = pim1 . isThereUnprocessedFigures ( ) ; Map < AllocNode , PtInsIntervalManager > objs = ( has_new_edges ? pt_objs : new_pts ) ; for ( Map . Entry < AllocNode , PtInsIntervalManager > entry2 : objs . entrySet ( ) ) { obj = entry2 . getKey ( ) ; pim2 = entry2 . getValue ( ) ; if ( pim2 == deadManager ) continue ; if ( ! ptAnalyzer . castNeverFails ( obj . getType ( ) , qn . getWrappedNode ( ) . getType ( ) ) ) continue ; int_entry2 = pim2 . getFigures ( ) ; for ( i = 0 ; i < PtInsIntervalManager . Divisions ; ++ i ) { pts = int_entry2 [ i ] ; while ( pts != null ) { if ( ! has_new_edges && ! pts . is_new ) break ; for ( j = 0 ; j < PtInsIntervalManager . Divisions ; ++ j ) { pe = int_entry1 [ j ] ; while ( pe != null ) { if ( pts . is_new || pe . is_new ) { if ( add_new_points_to_tuple ( pts , pe , obj , qn ) ) added = true ; } else break ; pe = pe . next ; } } pts = pts . next ; } } } if ( added ) worklist . push ( qn ) ; if ( has_new_edges ) { pim1 . flush ( ) ; } } }

Una implementación eficiente de la propagación diferencial.


public static void closeSilently  ( Closeable c ) { if ( c == null ) { return ; } try { c . close ( ) ; } catch ( Throwable t ) { LogUtils . warn ( t ) ; } }


public double observationCount  ( boolean bOnlyValue ) { if ( bOnlyValue ) return hDistro . keySet ( ) . size ( ) ; else { int iCnt = 0 ; Iterator iKeyIter = hDistro . keySet ( ) . iterator ( ) ; while ( iKeyIter . hasNext ( ) ) { Object oNextKey = iKeyIter . next ( ) ; iCnt += ( ( Double ) hDistro . get ( oNextKey ) ) ; } return iCnt ; } }

Devuelve el número de observaciones dentro de la distribución.


private void manyToAnyConditions  ( String className , Field field , int action ) throws ClassNotFoundException { if ( isCollection ( field . getType ( ) ) ) { String genericTypeName = getGenericTypeName ( field ) ; if ( LitePalAttr . getInstance ( ) . getClassNames ( ) . contains ( genericTypeName ) ) { Class < ? > reverseDynamicClass = Class . forName ( genericTypeName ) ; Field [ ] reverseFields = reverseDynamicClass . getDeclaredFields ( ) ; boolean reverseAssociations = false ; for ( int i = 0 ; i < reverseFields . length ; i ++ ) { Field reverseField = reverseFields [ i ] ; if ( ! Modifier . isStatic ( reverseField . getModifiers ( ) ) ) { Class < ? > reverseFieldTypeClass = reverseField . getType ( ) ; if ( className . equals ( reverseFieldTypeClass . getName ( ) ) ) { if ( action == GET_ASSOCIATIONS_ACTION ) { addIntoAssociationModelCollection ( className , genericTypeName , genericTypeName , Const . Model . MANY_TO_ONE ) ; } else if ( action == GET_ASSOCIATION_INFO_ACTION ) { addIntoAssociationInfoCollection ( className , genericTypeName , genericTypeName , field , reverseField , Const . Model . MANY_TO_ONE ) ; } reverseAssociations = true ; } else if ( isCollection ( reverseFieldTypeClass ) ) { String reverseGenericTypeName = getGenericTypeName ( reverseField ) ; if ( className . equals ( reverseGenericTypeName ) ) { if ( action == GET_ASSOCIATIONS_ACTION ) { addIntoAssociationModelCollection ( className , genericTypeName , null , Const . Model . MANY_TO_MANY ) ; } else if ( action == GET_ASSOCIATION_INFO_ACTION ) { addIntoAssociationInfoCollection ( className , genericTypeName , null , field , reverseField , Const . Model . MANY_TO_MANY ) ; } reverseAssociations = true ; } } } } if ( ! reverseAssociations ) { if ( action == GET_ASSOCIATIONS_ACTION ) { addIntoAssociationModelCollection ( className , genericTypeName , genericTypeName , Const . Model . MANY_TO_ONE ) ; } else if ( action == GET_ASSOCIATION_INFO_ACTION ) { addIntoAssociationInfoCollection ( className , genericTypeName , genericTypeName , field , null , Const . Model . MANY_TO_ONE ) ; } } } } }

Se ocupa de uno a cualquier condición de asociación.p.ej.Canción y álbum.Un álbum tiene muchas canciones, y una canción pertenece a un álbum.Por lo tanto, si hay un modelo de álbum definido en la canción con modificador privado, y en el álbum hay una lista o se establece con un tipo genérico de canción y declarado como modificador privado, son una asociación de una sola base.Si no hay lista ni establecido definido en el álbum, se convertirán en asociaciones de una solancia.Si también hay un modelo de canción definido en el álbum con modificador privado, tal vez el álbum solo tenga una canción, también son una asociación única.Cuando se trata de una asociación, es fácil simplemente agregar una columna de identificación extranjera a la mesa de muchos modelos laterales.Pero cuando se trata de una asociación de 22man, no se puede hacer sin una tabla de unión intermedia en la base de datos.LitePal asume que este nombre de la tabla de uniones es la concatenación de los dos nombres de tablas de destino en orden alfabético.


public void rootN  ( final double [ ] operand , final int operandOffset , final int n , final double [ ] result , final int resultOffset ) { double [ ] function = new double [ 1 + order ] ; double xk ; if ( n == 2 ) { function [ 0 ] = FastMath . sqrt ( operand [ operandOffset ] ) ; xk = 0.5 / function [ 0 ] ; } else if ( n == 3 ) { function [ 0 ] = FastMath . cbrt ( operand [ operandOffset ] ) ; xk = 1.0 / ( 3.0 * function [ 0 ] * function [ 0 ] ) ; } else { function [ 0 ] = FastMath . pow ( operand [ operandOffset ] , 1.0 / n ) ; xk = 1.0 / ( n * FastMath . pow ( function [ 0 ] , n - 1 ) ) ; } final double nReciprocal = 1.0 / n ; final double xReciprocal = 1.0 / operand [ operandOffset ] ; for ( int i = 1 ; i <= order ; ++ i ) { function [ i ] = xk ; xk *= xReciprocal * ( nReciprocal - i ) ; } compose ( operand , operandOffset , function , result , resultOffset ) ; }

Calcular n <sup> th </ sup> raíz de una estructura derivada.


public static TransferDevice createTransferDevice  ( Device device , String className ) { TransferDeviceImpl transferDevice = new TransferDeviceImpl ( device . getId ( ) , device . getName ( ) , device . getDeviceClassId ( ) , className ) ; transferDevice . addDeviceProperties ( device . getDeviceProperties ( ) ) ; transferDevice . addDeviceCommands ( device . getDeviceCommands ( ) ) ; return transferDevice ; }

Crea un objeto <código> transferdevice </ code> para el dispositivo dado.


public void onLoadApplyEquipmentStats  ( ) { Item twoHanded = null ; for ( Item item : equipment . values ( ) ) { if ( ( item . getEquipmentSlot ( ) & ItemSlot . MAIN_OFF_HAND . getSlotIdMask ( ) ) == 0 && ( item . getEquipmentSlot ( ) & ItemSlot . SUB_OFF_HAND . getSlotIdMask ( ) ) == 0 ) { if ( item . getItemTemplate ( ) . isTwoHandWeapon ( ) ) { if ( twoHanded != null ) { continue ; } twoHanded = item ; } if ( item . getOptionalSocket ( ) == - 1 ) { log . warn ( "on load all eqipment, item can't be equiped because hasTune" + item . getObjectId ( ) ) ; continue ; } ItemEquipmentListener . onItemEquipment ( item , owner ) ; owner . getLifeStats ( ) . synchronizeWithMaxStats ( ) ; } } }

Debe llamarse solo cuando el objeto del equipo construido totalmente en la carga del jugador.Aplica todos los modificadores de estadísticas de elementos equipados


public static PublicKey generatePublicKey  ( String encodedPublicKey ) { try { byte [ ] decodedKey = Base64 . decode ( encodedPublicKey , Base64 . DEFAULT ) ; KeyFactory keyFactory = KeyFactory . getInstance ( KEY_FACTORY_ALGORITHM ) ; return keyFactory . generatePublic ( new X509EncodedKeySpec ( decodedKey ) ) ; } catch ( NoSuchAlgorithmException e ) { throw new RuntimeException ( e ) ; } catch ( InvalidKeySpecException e ) { Log . e ( TAG , "Invalid key specification." ) ; throw new IllegalArgumentException ( e ) ; } }

Genera una instancia de PUBLICKEY de una cadena que contiene la clave pública codificada por Base64.


public static Builder newBuilder  ( ) { return new DataQueryParams . Builder ( ) ; }

Crea un nuevo constructor para DataQueryParams.


@ RequestMapping ( value = "/pet-categories" , method = RequestMethod . POST , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public ResponseEntity < PetCategory > createPetCategory  ( @ RequestBody PetCategory petCategory ) throws URISyntaxException { log . debug ( "REST request to save PetCategory : {}" , petCategory ) ; if ( petCategory . getPetCategoryId ( ) != null ) { return ResponseEntity . badRequest ( ) . headers ( HeaderUtil . createFailureAlert ( "petCategory" , "idexists" , "A new petCategory cannot already have an ID" ) ) . body ( null ) ; } PetCategory result = petCategoryService . save ( petCategory ) ; return ResponseEntity . created ( new URI ( "/api/pet-categories/" + result . getPetCategoryId ( ) ) ) . headers ( HeaderUtil . createEntityCreationAlert ( "petCategory" , result . getPetCategoryId ( ) . toString ( ) ) ) . body ( result ) ; }

POST / PET-CATEGORÍSTICAS: Crea un nuevo PetCategory.


public LatestComputation ( UnitGraph unitGraph , DelayabilityAnalysis delayed , Map < Unit , EquivalentValue > equivRhsMap ) { this ( unitGraph , delayed , equivRhsMap , new ArrayPackedSet < EquivalentValue > ( new CollectionFlowUniverse < EquivalentValue > ( equivRhsMap . values ( ) ) ) ) ; }

Dado un análisis de desempeño y los cálculos de cada unidad, calcula el último punto de cómputo para cada expresión.El <CÓDIGO> EQUIVRHSMAP </ código> podría calcularse sobre la marcha, pero es <b> muy </ b> probable que ya exista (ya que los mapas similares se usan para calcular la primera vez, retrasados, ...


public boolean leftAllowed  ( ) { return ( myFlags & LEFT_EDGE ) != 0 ; }

Devuelve VERDADERO si esta política permite cambiar de tamaño del borde izquierdo


public static int scale  ( String source , String file , int w , int h ) { try { BufferedImage img = ImageIO . read ( new File ( source ) ) ; if ( img == null ) return - 1 ; BufferedImage out = new BufferedImage ( w , h , BufferedImage . TYPE_4BYTE_ABGR ) ; Graphics g = out . getGraphics ( ) ; int h1 = img . getHeight ( ) ; int w1 = img . getWidth ( ) ; if ( h <= 0 ) h = h1 ; if ( w <= 0 ) w = w1 ; float fh = ( ( float ) h1 ) / h ; float fw = ( ( float ) w1 ) / w ; int oh = 0 ; int ow = 0 ; if ( fh > fw ) { int w2 = ( int ) ( w1 / fh ) ; ow = ( w - w2 ) / 2 ; w = w2 ; } else { int h2 = ( int ) ( h1 / fw ) ; oh = ( h - h2 ) / 2 ; h = h2 ; } Image tmp = img . getScaledInstance ( w , h , Image . SCALE_SMOOTH ) ; g . drawImage ( tmp , ow , oh , w , h , null ) ; ImageIO . write ( out , "png" , new File ( file ) ) ; return 1 ; } catch ( Exception e ) { log . error ( source , e ) ; } return - 1 ; }

Escala el archivo de imagen de origen al archivo de imagen de destino.


public BafBody newBody  ( Body b ) { return new BafBody ( b , Collections . < String , String > emptyMap ( ) ) ; }

Devuelve un Bafbody construido a partir de b.


public InputStream newInputStream  ( int index ) throws IOException { synchronized ( DiskLruCache . this ) { if ( entry . currentEditor != this ) { throw new IllegalStateException ( ) ; } if ( ! entry . readable ) { return null ; } return new FileInputStream ( entry . getCleanFile ( index ) ) ; } }

Devuelve un flujo de entrada sin fundamento para leer el último valor comprometido, o nulo si no se ha cometido ningún valor.


public UnknownLeaseException ( String reason ) { super ( reason ) ; }

Construye una etknowingleaseException con el mensaje de detalle especificado.


@ Override public Change updateConfig  ( T abstractEquipment , Properties properties ) throws IllegalAccessException { Change change = super . updateConfig ( abstractEquipment , properties ) ; return change ; }

Aguidado, como puede necesitar restablecer también los cachés de comunidades y alivetimer.


public static _Fields findByThriftId  ( int fieldId ) { switch ( fieldId ) { case 1 : return APPKEY ; case 2 : return SEND_TIME ; case 3 : return LOAD_INFO ; case 4 : return STATUS ; default : return null ; } }

Encuentre la constante _fields que coincida con el campo, o nulo si no se encuentra.


public static SM_SYSTEM_MESSAGE STR_MSG_SPLIT_ME_TO_B  ( int num0 , int num1 , int num2 ) { return new SM_SYSTEM_MESSAGE ( 1390247 , num0 , num1 , num2 ) ; }

Distribuyó% NUM0 KinaH a% NUM1 personas, dando a cada% Num2 Kinah.


private static boolean sonyBadgeContentProviderExists  ( Context context ) { boolean exists = false ; ProviderInfo info = context . getPackageManager ( ) . resolveContentProvider ( SONY_HOME_PROVIDER_NAME , 0 ) ; if ( info != null ) { exists = true ; } return exists ; }

Compruebe si existe el último proveedor de contenido de la insignia de Sony.


public void drawIntoImage  ( BufferedImage image ) { Graphics2D gFinal = ( Graphics2D ) image . getGraphics ( ) ; int width = image . getWidth ( ) ; int height = image . getHeight ( ) ; gFinal . setColor ( new Color ( 255 , 255 , 255 , 0 ) ) ; gFinal . fillRect ( 0 , 0 , width , height ) ; float rootAlpha = mRootAlpha ; if ( rootAlpha < 1.0 ) { BufferedImage alphaImage = AssetUtil . newArgbBufferedImage ( width , height ) ; Graphics2D gTemp = ( Graphics2D ) alphaImage . getGraphics ( ) ; drawInternal ( gTemp , width , height ) ; gFinal . setComposite ( AlphaComposite . getInstance ( AlphaComposite . SRC_OVER , rootAlpha ) ) ; gFinal . drawImage ( alphaImage , 0 , 0 , null ) ; gTemp . dispose ( ) ; } else { drawInternal ( gFinal , width , height ) ; } gFinal . dispose ( ) ; }

Dibuja el VDTree en una imagen.Si la raíz alfa es inferior a 1.0, luego dibuja en una imagen temporal, luego dibuja en la imagen de resultados que aplica la mezcla alfa.


@ Override public boolean hasNext  ( ) { return hasNext ; }

¿Se ha procesado todos los bloques asignados a este iterador?


public InvalidPluginException ( final Throwable cause ) { super ( cause ) ; }

Construye una nueva excepción inválida según la excepción dada


MarshalledInstanceInputStream ( InputStream objIn , InputStream locIn , ClassLoader defaultLoader , boolean verifyCodebaseIntegrity , ClassLoader verifierLoader , Collection context )  throws IOException  { super ( objIn , defaultLoader , verifyCodebaseIntegrity , verifierLoader , context ) ; this . locIn = ( locIn == null ? null : new ObjectInputStream ( locIn ) ) ; }

Crea un nuevo <código> MarshalledObjectIntputStream </ Code> que lee sus objetos de <code> objin </ code> y anotaciones de <code> ubicin </ code>.Si <code> ubicin </ code> es <code> null </ code>, entonces todas las anotaciones serán <codigo> null </ code>.


public boolean isCritical  ( ) { return true ; }

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


@ Override public void onConnected  ( SubscriberKit subscriberKit ) { }


public static void addTrafficListener  ( AirMapTrafficListener callback ) { getAirMapTrafficService ( ) . addListener ( callback ) ; }

Agrega una devolución de llamada al servicio de tráfico


@ Override public long addLoginHistory  ( LoginHistory loginHistory ) { return sessionTemplate . insert ( NAMESPACE + ".addLoginHistory" , loginHistory ) ; }

Añadir nuevo historial de inicio de sesión


@ Override public long limit  ( ) { return fileLength >>> 3 ; }

Longitud de la matriz (longitud del archivo / 8)


public Vector ( double x , double y , double z ) { this . x = x ; this . y = y ; this . z = z ; }

Construye el vector con los dobles componentes proporcionados.


public JSONArray put  ( int value ) { put ( new Integer ( value ) ) ; return this ; }

Anexar un valor int.Esto aumenta la longitud de la matriz por uno.


public static int calculateSoloDPReward  ( Player player , Creature target ) { int playerLevel = player . getCommonData ( ) . getLevel ( ) ; int targetLevel = target . getLevel ( ) ; NpcRating npcRating = ( ( Npc ) target ) . getObjectTemplate ( ) . getRating ( ) ; int baseDP = targetLevel * calculateRatingMultipler ( npcRating ) ; int xpPercentage = XPRewardEnum . xpRewardFrom ( targetLevel - playerLevel ) ; float rate = player . getRates ( ) . getDpNpcRate ( ) ; return ( int ) Math . floor ( baseDP * xpPercentage * rate / 100 ) ; }


public static void encodeFileToFile  ( String infile , String outfile ) throws java . io . IOException { String encoded = Base64 . encodeFromFile ( infile ) ; java . io . OutputStream out = null ; try { out = new java . io . BufferedOutputStream ( new java . io . FileOutputStream ( outfile ) ) ; out . write ( encoded . getBytes ( "US-ASCII" ) ) ; } catch ( java . io . IOException e ) { throw e ; } finally { try { out . close ( ) ; } catch ( Exception ex ) { } } }

Lee <tt> infile </ tt> y la codifica a <tt> Outfile </ tt>.


public static List < ? extends Element > childElementList  ( Element element ) { if ( element == null ) return null ; List < Element > elements = new LinkedList < Element > ( ) ; Node node = element . getFirstChild ( ) ; if ( node != null ) { do { if ( node . getNodeType ( ) == Node . ELEMENT_NODE ) { Element childElement = ( Element ) node ; elements . add ( childElement ) ; } } while ( ( node = node . getNextSibling ( ) ) != null ) ; } return elements ; }

Devuelve una lista de objetos de elementos que son niños del elemento dado.


private float calculateSpeed  ( long startTime , long endTime ) { float usedTime = ( ( float ) ( endTime - startTime ) ) / 1000 ; float speed = 0 ; if ( usedTime > 0 ) { int mSize = this . downloadSize - this . lastDownloadSize ; speed = ( ( float ) mSize / usedTime ) / KB_CONSTANT ; speed = ( ( float ) ( ( int ) ( speed * 10 ) ) ) / 10 ; } return speed ; }

Computación de velocidad de descarga en tiempo real


@ Deployment ( resources = { "org/activiti/engine/test/api/event/ProcessInstanceEventsTest.parallelGatewayTwoEndsProcess.bpmn20.xml" } ) public void testProcessCompleted_ParallelGatewayTwoEnds  ( ) throws Exception  { this . runtimeService . startProcessInstanceByKey ( "noEndProcess" ) ; List < ActivitiEvent > events = listener . filterEvents ( ActivitiEventType . PROCESS_COMPLETED ) ; assertEquals ( "ActivitiEventType.PROCESS_COMPLETED was expected 1 time." , 1 , events . size ( ) ) ; }

Prueba + -> START1 START 1 - <> + -> End2 <P /> Proceso en el evento Process_Completed


@ Override protected FlowSet < N > entryInitialFlow  ( ) { FlowSet < N > initSet = ( FlowSet < N > ) emptySet . clone ( ) ; for ( N h : graph . getHeads ( ) ) { initSet . add ( h ) ; } return initSet ; }

Fuera (inicio) contiene todos los nodos principales en el tiempo de inicialización.


public static String s8  ( long v ) { char [ ] result = new char [ 17 ] ; if ( v < 0 ) { result [ 0 ] = '-' ; v = - v ; } else { result [ 0 ] = '+' ; } for ( int i = 0 ; i < 16 ; i ++ ) { result [ 16 - i ] = Character . forDigit ( ( int ) v & 0x0f , 16 ) ; v >>= 4 ; } return new String ( result ) ; }

Formatos de <código> largo </ código> como un valor hexagonal firmado de 8 bytes.


private void removeDuplicates  ( ) { for ( int i = 0 ; i < peerList . size ( ) ; i ++ ) { Peer p1 = peerList . get ( i ) ; for ( int j = 0 ; j < peerList . size ( ) ; j ++ ) { Peer p2 = peerList . get ( j ) ; if ( j != i && p1 . getPeerId ( ) != null && p1 . getPeerId ( ) . equals ( p2 . getPeerId ( ) ) ) { peerList . remove ( p2 ) ; } } } }

Retire los compañeros duplicados del Peerlist.


public void runTest  ( String folder , String testConfig ) { String fullPath = "/" + folder + "/test/" + testConfig ; SldEditorTest testSuite = ( SldEditorTest ) ParseXML . parseFile ( "" , fullPath , SCHEMA_RESOURCE , SldEditorTest . class ) ; Assert . assertNotNull ( "Failed to read test config file : " + fullPath , testSuite ) ; String testsldfile = testSuite . getTestsldfile ( ) ; if ( ! testsldfile . startsWith ( "/" ) ) { testsldfile = "/" + testsldfile ; } System . out . println ( "Opening : " + testsldfile ) ; List < XMLVendorOption > xmlVendorOptionList = testSuite . getVendorOption ( ) ; if ( ( xmlVendorOptionList != null ) && ! xmlVendorOptionList . isEmpty ( ) ) { List < VersionData > versionDataList = new ArrayList < VersionData > ( ) ; for ( XMLVendorOption vo : xmlVendorOptionList ) { try { String vendorOptionClassName = vo . getClassType ( ) . trim ( ) ; Class < ? > vendorOptionClass = Class . forName ( vendorOptionClassName ) ; VersionData versionData = VersionData . decode ( vendorOptionClass , vo . getVersion ( ) ) ; versionDataList . add ( versionData ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; } } if ( ! versionDataList . contains ( VendorOptionManager . getInstance ( ) . getDefaultVendorOptionVersionData ( ) ) ) { versionDataList . add ( VendorOptionManager . getInstance ( ) . getDefaultVendorOptionVersionData ( ) ) ; } sldEditor . setVendorOptions ( versionDataList ) ; } InputStream inputStream = SLDTestRunner . class . getResourceAsStream ( testsldfile ) ; if ( inputStream == null ) { Assert . assertNotNull ( "Failed to find sld test file : " + testsldfile , inputStream ) ; } else { File f = null ; try { f = stream2file ( inputStream ) ; int noOfRetries = 3 ; int attempt = 0 ; while ( attempt < noOfRetries ) { try { sldEditor . openFile ( f . toURI ( ) . toURL ( ) ) ; break ; } catch ( NullPointerException nullException ) { StackTraceElement [ ] stackTraceElements = nullException . getStackTrace ( ) ; System . out . println ( stackTraceElements [ 0 ] . getMethodName ( ) ) ; System . out . println ( "Attempt : " + attempt + 1 ) ; attempt ++ ; } } f . delete ( ) ; } catch ( IOException e1 ) { e1 . printStackTrace ( ) ; } GraphicPanelFieldManager mgr = sldEditor . getFieldDataManager ( ) ; for ( XMLPanelTest test : testSuite . getPanelTests ( ) ) { XMLSetup selectedItem = test . getSetup ( ) ; TreeSelectionData selectionData = new TreeSelectionData ( ) ; selectionData . setLayerIndex ( getXMLValue ( selectedItem . getLayer ( ) ) ) ; selectionData . setStyleIndex ( getXMLValue ( selectedItem . getStyle ( ) ) ) ; selectionData . setFeatureTypeStyleIndex ( getXMLValue ( selectedItem . getFeatureTypeStyle ( ) ) ) ; selectionData . setRuleIndex ( getXMLValue ( selectedItem . getRule ( ) ) ) ; selectionData . setSymbolizerIndex ( getXMLValue ( selectedItem . getSymbolizer ( ) ) ) ; selectionData . setSymbolizerDetailIndex ( getXMLValue ( selectedItem . getSymbolizerDetail ( ) ) ) ; try { selectionData . setSelectedPanel ( Class . forName ( selectedItem . getExpectedPanel ( ) ) ) ; } catch ( ClassNotFoundException e1 ) { Assert . fail ( "Unknown class : " + selectedItem . getExpectedPanel ( ) ) ; } boolean result = sldEditor . selectTreeItem ( selectionData ) ; Assert . assertTrue ( "Failed to select tree item" , result ) ; PopulateDetailsInterface panel = sldEditor . getSymbolPanel ( ) ; String panelClassName = panel . getClass ( ) . getName ( ) ; Assert . assertEquals ( panelClassName , selectedItem . getExpectedPanel ( ) ) ; Assert . assertEquals ( "Check panel data present" , panel . isDataPresent ( ) , selectedItem . isEnabled ( ) ) ; Class < ? > panelId = null ; try { panelId = Class . forName ( selectedItem . getExpectedPanel ( ) ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; } if ( test . getFieldTests ( ) != null ) { for ( XMLFieldTest testItem : test . getFieldTests ( ) ) { if ( testItem != null ) { if ( testItem . getDisabledOrLiteralStringOrLiteralInt ( ) != null ) { for ( Object xmlTestValueObj : testItem . getDisabledOrLiteralStringOrLiteralInt ( ) ) { if ( xmlTestValueObj instanceof XMLSetMultiOptionGroup ) { XMLSetMultiOptionGroup testValue = ( XMLSetMultiOptionGroup ) xmlTestValueObj ; GroupIdEnum groupId = testValue . getMultiOptionGroupId ( ) ; String outputText = "Checking multioption group : " + groupId ; System . out . println ( outputText ) ; Assert . assertNotNull ( outputText , groupId ) ; MultiOptionGroup multiOptionGroup = mgr . getMultiOptionGroup ( panelId , groupId ) ; Assert . assertNotNull ( panelId . getName ( ) + "/" + groupId + " multi option group should exist" , multiOptionGroup ) ; multiOptionGroup . setOption ( testValue . getOption ( ) ) ; OptionGroup optionGroupSelected = multiOptionGroup . getSelectedOptionGroup ( ) ; Assert . assertTrue ( groupId + " should be set" , optionGroupSelected . getId ( ) == testValue . getOption ( ) ) ; } else if ( xmlTestValueObj instanceof XMLSetGroup ) { XMLSetGroup testValue = ( XMLSetGroup ) xmlTestValueObj ; GroupIdEnum groupId = testValue . getGroupId ( ) ; String outputText = "Checking group : " + groupId ; System . out . println ( outputText ) ; Assert . assertNotNull ( outputText , groupId ) ; GroupConfigInterface groupConfig = mgr . getGroup ( panelId , groupId ) ; Assert . assertNotNull ( panelId . getName ( ) + "/" + groupId + " group should exist" , groupConfig ) ; groupConfig . enable ( testValue . isEnable ( ) ) ; Assert . assertTrue ( groupId + " should be set" , groupConfig . isPanelEnabled ( ) == testValue . isEnable ( ) ) ; } else { XMLFieldBase testValue = ( XMLFieldBase ) xmlTestValueObj ; FieldIdEnum fieldId = testValue . getField ( ) ; String outputText = "Checking : " + fieldId ; System . out . println ( outputText ) ; Assert . assertNotNull ( outputText , fieldId ) ; try { Thread . sleep ( 100 ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } FieldConfigBase fieldConfig = mgr . getData ( panelId , fieldId ) ; Assert . assertNotNull ( String . format ( "Failed to field panel %s field %s" , selectedItem . getExpectedPanel ( ) , fieldId ) , fieldConfig ) ; if ( testValue instanceof XMLSetFieldLiteralBase ) { XMLSetFieldLiteralInterface testInterface = ( XMLSetFieldLiteralInterface ) testValue ; testInterface . accept ( fieldConfig , fieldId ) ; if ( ! ( ( XMLSetFieldLiteralBase ) testValue ) . isIgnoreCheck ( ) ) { String sldContentString = sldEditor . getSLDString ( ) ; boolean actualResult = testOutput . testValue ( sldContentString , selectionData , testValue . getField ( ) , testValue ) ; Assert . assertTrue ( fieldId + " should be set" , actualResult ) ; } } else if ( testValue instanceof XMLSetFieldAttribute ) { XMLSetFieldLiteralInterface testInterface = ( XMLSetFieldLiteralInterface ) testValue ; testInterface . accept ( fieldConfig , fieldId ) ; String sldContentString = sldEditor . getSLDString ( ) ; boolean actualResult = testOutput . testAttribute ( sldContentString , selectionData , testValue . getField ( ) , ( XMLSetFieldAttribute ) testValue ) ; Assert . assertTrue ( fieldId + " should be set" , actualResult ) ; } else if ( testValue instanceof XMLFieldDisabled ) { Assert . assertFalse ( fieldId + " should be disabled" , fieldConfig . isEnabled ( ) ) ; } else { Assert . assertTrue ( fieldId + " should be enabled" , fieldConfig . isEnabled ( ) ) ; Expression expression = null ; if ( fieldConfig . isValueOnly ( ) ) { String expectedValue = "" ; if ( testValue instanceof XMLFieldLiteralBase ) { Object literalValue = getLiteralValue ( ( XMLFieldLiteralBase ) testValue ) ; expectedValue = String . valueOf ( literalValue ) ; } else if ( testValue instanceof XMLFieldAttribute ) { expectedValue = ( ( XMLFieldAttribute ) testValue ) . getAttribute ( ) ; } else if ( testValue instanceof XMLFieldExpression ) { expectedValue = ( ( XMLFieldExpression ) testValue ) . getExpression ( ) ; } else { Assert . fail ( fieldId + " has unsupported type " + testValue . getClass ( ) . getName ( ) ) ; } String actualValue = fieldConfig . getStringValue ( ) ; String msg = String . format ( "%s Expected : '%s' Actual : '%s'" , outputText , expectedValue , actualValue ) ; boolean condition ; if ( comparingFilename ( fieldId ) ) { condition = actualValue . endsWith ( expectedValue ) ; } else { condition = ( expectedValue . compareTo ( actualValue ) == 0 ) ; } Assert . assertTrue ( msg , condition ) ; } else { if ( colourFieldsList . contains ( fieldId ) ) { FieldConfigColour fieldColour = ( FieldConfigColour ) fieldConfig ; expression = fieldColour . getColourExpression ( ) ; } else { expression = fieldConfig . getExpression ( ) ; if ( fieldId == FieldIdEnum . SYMBOL_TYPE ) { String string = expression . toString ( ) ; expression = ff . literal ( string . replace ( File . separatorChar , '/' ) ) ; } else if ( fieldId == FieldIdEnum . FONT_FAMILY ) { String string = expression . toString ( ) ; if ( string . compareToIgnoreCase ( DEFAULT_FONT ) != 0 ) { expression = ff . literal ( getFontForOS ( ) ) ; System . out . println ( "Updated font family to test for : " + expression . toString ( ) ) ; } } } if ( expression != null ) { if ( testValue instanceof XMLFieldLiteralBase ) { Object literalValue = getLiteralValue ( ( XMLFieldLiteralBase ) testValue ) ; if ( literalValue . getClass ( ) == Double . class ) { checkLiteralValue ( outputText , expression , ( Double ) literalValue ) ; } else if ( literalValue . getClass ( ) == Integer . class ) { checkLiteralValue ( outputText , expression , ( Integer ) literalValue ) ; } else if ( literalValue . getClass ( ) == String . class ) { if ( fieldId == FieldIdEnum . FONT_FAMILY ) { checkLiteralValue ( outputText , expression , getFontForOS ( ) ) ; } else { checkLiteralValue ( outputText , expression , ( String ) literalValue ) ; } } } } else { String actualValue ; String expectedValue = fieldConfig . getStringValue ( ) ; Object literalValue = getLiteralValue ( ( XMLFieldLiteralBase ) testValue ) ; if ( literalValue . getClass ( ) == Double . class ) { actualValue = String . valueOf ( ( Double ) literalValue ) ; } else if ( literalValue . getClass ( ) == Integer . class ) { actualValue = String . valueOf ( ( Integer ) literalValue ) ; } else if ( literalValue . getClass ( ) == String . class ) { actualValue = ( String ) literalValue ; } else { actualValue = "" ; } String msg = String . format ( "%s Expected : '%s' Actual : '%s'" , outputText , expectedValue , actualValue ) ; boolean condition = ( expectedValue . compareTo ( actualValue ) == 0 ) ; Assert . assertTrue ( msg , condition ) ; } } } } } } } } } } } JFrame frame = sldEditor . getApplicationFrame ( ) ; frame . dispatchEvent ( new WindowEvent ( frame , WindowEvent . WINDOW_CLOSING ) ) ; }


public MultiDirectionalSimplex ( final int n , double sideLength , final double khi , final double gamma ) { super ( n , sideLength ) ; this . khi = khi ; this . gamma = gamma ; }

Construir un simplex multidireccional con coeficientes especificados.


public static List < ParsingContext > decode  ( DependencyGraph graph , FeatureFrame featureFrame ) { List < ParsingContext > data = new ArrayList < ParsingContext > ( ) ; Stack < Integer > stack = new Stack < Integer > ( ) ; Queue < Integer > queue = new LinkedList < Integer > ( ) ; for ( int i = 0 ; i < graph . getSentence ( ) . length ( ) ; i ++ ) queue . add ( i ) ; List < Dependency > currentArcs = new ArrayList < Dependency > ( ) ; FeatureExtractor featureBuilder = new FeatureExtractor ( featureFrame ) ; Configuration config = new Configuration ( graph . getSentence ( ) , stack , queue ) ; config = config . next ( "SH" ) ; while ( ! config . isFinal ( ) ) { List < String > features = featureBuilder . extract ( config ) ; StringBuilder text = new StringBuilder ( ) ; for ( String f : features ) { text . append ( f ) ; text . append ( ' ' ) ; } Integer u = stack . peek ( ) ; Integer v = queue . peek ( ) ; String transition = "" ; if ( graph . hasArc ( v , u ) ) { transition = "LA-" + graph . getLabels ( ) [ u ] ; currentArcs . add ( new Dependency ( v , u , transition ) ) ; } else if ( graph . hasArc ( u , v ) ) { transition = "RA-" + graph . getLabels ( ) [ v ] ; currentArcs . add ( new Dependency ( u , v , transition ) ) ; } else if ( config . isReducible ( ) ) { transition = "RE" ; } else { transition = "SH" ; } ParsingContext pc = new ParsingContext ( ) ; pc . setId ( id ) ; pc . setText ( text . toString ( ) . trim ( ) ) ; pc . setTransition ( transition ) ; data . add ( pc ) ; id ++ ; config = config . next ( transition ) ; } return data ; }

Deriva una secuencia de transición de este gráfico de dependencia.Esto se utiliza para reconstruir el proceso de análisis.


private void checkModified  ( @ NotNull String fqcn ) { if ( DumbService . getInstance ( myModule . getProject ( ) ) . isDumb ( ) ) { return ; } if ( myModuleClassLoader != null && myModuleClassLoader . isSourceModified ( fqcn , myCredential ) && ! myRecentlyModifiedClasses . contains ( fqcn ) ) { myRecentlyModifiedClasses . add ( fqcn ) ; RenderProblem . Html problem = RenderProblem . create ( WARNING ) ; HtmlBuilder builder = problem . getHtmlBuilder ( ) ; String className = fqcn . substring ( fqcn . lastIndexOf ( '.' ) + 1 ) ; builder . addLink ( "The " + className + " custom view has been edited more recently than the last build: " , "Build" , " the project." , myLogger . getLinkManager ( ) . createCompileModuleUrl ( ) ) ; myLogger . addMessage ( problem ) ; } }

Comprueba que la clase dada no se ha editado desde la última compilación (y si tiene, registra una advertencia al usuario)


private void recordMiniFabClick  ( ) { if ( ! miniFabClicked ) { final SharedPreferences sp = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; sp . edit ( ) . putLong ( KEY_FAB_EVER_CLICKED , 1 ) . apply ( ) ; miniFabClicked = true ; } }

registra un clic en un Mini Fab y, por lo tanto,: <OL> <LI> Persiste el hecho de clic </ li> <li> elimina las mini etiquetas FAB </ LI> </ OL>


@ Override public boolean hasStroke  ( Symbolizer symbolizer ) { return true ; }

Cheques para accidentes cerebrovasculares.


@ Override public void audit  ( String msg ) { String hostName = "" ; try { hostName = InetAddress . getLocalHost ( ) . getHostName ( ) ; } catch ( UnknownHostException e ) { hostName = "localhost" ; } String username = "unknown" ; String threadid = "unknown" ; try { threadid = Thread . currentThread ( ) . getId ( ) + "" ; username = UserGroupInformation . getCurrentUser ( ) . getShortUserName ( ) ; } catch ( IOException e ) { username = "unknown" ; } logger . log ( AuditLevel . AUDIT , "[" + hostName + "]" + "[" + username + "]" + "[Thread-" + threadid + "]" + msg ) ; }


public void addMethod  ( short acc , String name , String sig , CodeAttr code , ExceptAttr ex ) { Method x = new Method ( acc , new AsciiCP ( name ) , new AsciiCP ( sig ) , code , ex ) ; x . resolve ( this ) ; methods . addElement ( x ) ; }

Aquí es donde el código se agrega a una clase.


public double [ ] toSplitDouble  ( ) { double split [ ] = new double [ 2 ] ; long mask = 0xffffffffc0000000L ; split [ 0 ] = Double . longBitsToDouble ( Double . doubleToLongBits ( toDouble ( ) ) & mask ) ; split [ 1 ] = subtract ( newInstance ( split [ 0 ] ) ) . toDouble ( ) ; return split ; }

Convertir la instancia en un doble dividido.


SVG ( Picture picture , RectF bounds )  { this . picture = picture ; this . bounds = bounds ; }


public static String u1  ( int v ) { char [ ] result = new char [ 2 ] ; for ( int i = 0 ; i < 2 ; i ++ ) { result [ 1 - i ] = Character . forDigit ( v & 0x0f , 16 ) ; v >>= 4 ; } return new String ( result ) ; }

Formatos un <código> int </ code> como un valor hexagonal sin signo de 1 byte.


private void applyForceAction  ( ) { TreePath path = this . tree . getSelectionPath ( ) ; if ( path != null ) { DefaultMutableTreeNode node = ( DefaultMutableTreeNode ) path . getLastPathComponent ( ) ; if ( node . getUserObject ( ) instanceof SandboxBody ) { SandboxBody body = ( SandboxBody ) node . getUserObject ( ) ; Vector2 f = ApplyForceDialog . show ( ControlUtilities . getParentWindow ( this ) ) ; if ( f != null ) { synchronized ( Simulation . LOCK ) { body . applyForce ( f ) ; } } } } }

Aplica una fuerza al cuerpo dado si el usuario acepta la entrada.


@ Override public void handle  ( ) { spec . handler . accept ( new PacketContext ( ) , this ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_ProcATK_Instant_Ratio_A_TO_ME  ( String skillcaster , int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200697 , skillcaster , num0 , skillname ) ; }

[% Skillcaster] ha infligido% de daño NUM0 en usted mediante el uso de [% de habilidad].


public boolean isStatusBarTintEnabled  ( ) { return mStatusBarTintEnabled ; }

¿Está habilitado el teñido para la barra de estado del sistema?


public String provideUid  ( ) { return "uid" ; }


@ Override public String toString  ( ) { return "View []" ; }


public void expand  ( NodeBase v ) { if ( v != null ) { for ( Enumeration descendants = v . breadthFirstEnumeration ( ) ; descendants . hasMoreElements ( ) ; ) { v = ( NodeBase ) descendants . nextElement ( ) ; dataTree . expandPath ( new TreePath ( v . getPath ( ) ) ) ; } } }


public int [ ] readAllInts  ( ) { String [ ] fields = readAllStrings ( ) ; int [ ] vals = new int [ fields . length ] ; for ( int i = 0 ; i < fields . length ; i ++ ) vals [ i ] = Integer . parseInt ( fields [ i ] ) ; return vals ; }

Lee todas las fichas restantes de este flujo de entrada, los analiza como enteros, y los devuelve como una matriz de enteros.


public static byte [ ] decode  ( String encoded ) { if ( encoded == null ) { return null ; } char [ ] base64Data = encoded . toCharArray ( ) ; int len = removeWhiteSpace ( base64Data ) ; if ( len % FOURBYTE != 0 ) { return null ; } int numberQuadruple = ( len / FOURBYTE ) ; if ( numberQuadruple == 0 ) { return new byte [ 0 ] ; } byte decodedData [ ] = null ; byte b1 = 0 , b2 = 0 , b3 = 0 , b4 = 0 ; char d1 = 0 , d2 = 0 , d3 = 0 , d4 = 0 ; int i = 0 ; int encodedIndex = 0 ; int dataIndex = 0 ; decodedData = new byte [ ( numberQuadruple ) * 3 ] ; for ( ; i < numberQuadruple - 1 ; i ++ ) { if ( ! isData ( ( d1 = base64Data [ dataIndex ++ ] ) ) || ! isData ( ( d2 = base64Data [ dataIndex ++ ] ) ) || ! isData ( ( d3 = base64Data [ dataIndex ++ ] ) ) || ! isData ( ( d4 = base64Data [ dataIndex ++ ] ) ) ) { return null ; } b1 = base64Alphabet [ d1 ] ; b2 = base64Alphabet [ d2 ] ; b3 = base64Alphabet [ d3 ] ; b4 = base64Alphabet [ d4 ] ; decodedData [ encodedIndex ++ ] = ( byte ) ( b1 << 2 | b2 >> 4 ) ; decodedData [ encodedIndex ++ ] = ( byte ) ( ( ( b2 & 0xf ) << 4 ) | ( ( b3 >> 2 ) & 0xf ) ) ; decodedData [ encodedIndex ++ ] = ( byte ) ( b3 << 6 | b4 ) ; } if ( ! isData ( ( d1 = base64Data [ dataIndex ++ ] ) ) || ! isData ( ( d2 = base64Data [ dataIndex ++ ] ) ) ) { return null ; } b1 = base64Alphabet [ d1 ] ; b2 = base64Alphabet [ d2 ] ; d3 = base64Data [ dataIndex ++ ] ; d4 = base64Data [ dataIndex ++ ] ; if ( ! isData ( ( d3 ) ) || ! isData ( ( d4 ) ) ) { if ( isPad ( d3 ) && isPad ( d4 ) ) { if ( ( b2 & 0xf ) != 0 ) { return null ; } byte [ ] tmp = new byte [ i * 3 + 1 ] ; System . arraycopy ( decodedData , 0 , tmp , 0 , i * 3 ) ; tmp [ encodedIndex ] = ( byte ) ( b1 << 2 | b2 >> 4 ) ; return tmp ; } else if ( ! isPad ( d3 ) && isPad ( d4 ) ) { b3 = base64Alphabet [ d3 ] ; if ( ( b3 & 0x3 ) != 0 ) { return null ; } byte [ ] tmp = new byte [ i * 3 + 2 ] ; System . arraycopy ( decodedData , 0 , tmp , 0 , i * 3 ) ; tmp [ encodedIndex ++ ] = ( byte ) ( b1 << 2 | b2 >> 4 ) ; tmp [ encodedIndex ] = ( byte ) ( ( ( b2 & 0xf ) << 4 ) | ( ( b3 >> 2 ) & 0xf ) ) ; return tmp ; } else { return null ; } } else { b3 = base64Alphabet [ d3 ] ; b4 = base64Alphabet [ d4 ] ; decodedData [ encodedIndex ++ ] = ( byte ) ( b1 << 2 | b2 >> 4 ) ; decodedData [ encodedIndex ++ ] = ( byte ) ( ( ( b2 & 0xf ) << 4 ) | ( ( b3 >> 2 ) & 0xf ) ) ; decodedData [ encodedIndex ++ ] = ( byte ) ( b3 << 6 | b4 ) ; } return decodedData ; }


public static Color interpolateHSB  ( Color start , Color end , float p ) { float [ ] startHSB = Color . RGBtoHSB ( start . getRed ( ) , start . getGreen ( ) , start . getBlue ( ) , null ) ; float [ ] endHSB = Color . RGBtoHSB ( end . getRed ( ) , end . getGreen ( ) , end . getBlue ( ) , null ) ; float brightness = ( startHSB [ 2 ] + endHSB [ 2 ] ) / 2 ; float saturation = ( startHSB [ 1 ] + endHSB [ 1 ] ) / 2 ; float hueMax ; float hueMin ; if ( startHSB [ 0 ] > endHSB [ 0 ] ) { hueMax = startHSB [ 0 ] ; hueMin = endHSB [ 0 ] ; } else { hueMin = startHSB [ 0 ] ; hueMax = endHSB [ 0 ] ; } float hue = ( ( hueMax - hueMin ) * p ) + hueMin ; return Color . getHSBColor ( hue , saturation , brightness ) ; }

Fuente de colores interpolados: http://stackoverflow.com/questions/340209/generate-colors-between-red-and-green-for-a-power-meter


public void registerSaveParticipant  ( ) throws CoreException  { IWorkspace ws = ResourcesPlugin . getWorkspace ( ) ; ISavedState ss = ws . addSaveParticipant ( SVNProviderPlugin . getPlugin ( ) , this ) ; if ( ss != null ) { ss . processResourceChangeEvents ( this ) ; } ws . removeSaveParticipant ( SVNProviderPlugin . getPlugin ( ) ) ; }

Registramos un Participante de Guardar para que podamos obtener el Delta desde el inicio de Workbench To Startup.


private static void notifyDrawable  ( Drawable drawable , final boolean isDisplayed ) { if ( drawable instanceof RecyclingBitmapDrawable ) { ( ( RecyclingBitmapDrawable ) drawable ) . setIsDisplayed ( isDisplayed ) ; } else if ( drawable instanceof LayerDrawable ) { LayerDrawable layerDrawable = ( LayerDrawable ) drawable ; for ( int i = 0 , z = layerDrawable . getNumberOfLayers ( ) ; i < z ; i ++ ) { notifyDrawable ( layerDrawable . getDrawable ( i ) , isDisplayed ) ; } } }

Notifica el dibujable que se muestra en el estado que ha cambiado.


private void addToken  ( TokenKind kind , int left , int right ) { addToken ( kind , left , right , null ) ; }

Invariante: los posiciones de símbolos son intervalos medio abiertos.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_OutofSight_ME_TO_SELF  ( String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200302 , skillname ) ; }

Su rango visual se ha reducido porque usó [% de habilidad].


public Builder conditionalReplaceValueTransform  ( String column , Writable newValue , Condition condition ) { return transform ( new ConditionalReplaceValueTransform ( column , newValue , condition ) ) ; }

Reemplace los valores en una columna específica con un nuevo valor específico, si se mantiene alguna condición.Si la condición no se mantiene, los valores originales no se modifican.


public void start  ( ) { start ( false , Thread . NORM_PRIORITY ) ; }


private void updateSalesOrderHeader  ( String reportPath , List < SalesOrderItem > soiList , EntityManager em ) { if ( soiList != null && ! soiList . isEmpty ( ) ) { EntityTransaction transaction = em . getTransaction ( ) ; try { transaction . begin ( ) ; for ( SalesOrderItem orderItem : soiList ) { orderItem . getSalesOrderHeader ( ) . setInvoiceLink ( reportPath ) ; em . merge ( orderItem ) ; } transaction . commit ( ) ; } finally { } } }

Función Implementación de importación para actualizar SalesOrderHeader


public CM_CHARACTER_EDIT ( int opcode , State state , State ... restStates ) { super ( opcode , state , restStates ) ; }

Construye nueva instancia de <tt> cm_create_character </ tt> Packet


public AdsGetAdsLayoutQuery ( VkApiClient client , UserActor actor , int accountId ) { super ( client , "ads.getAdsLayout" , Utils . buildParametrizedType ( List . class , AdLayout . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; accountId ( accountId ) ; }

Crea una instancia abstractQueryBuilder que se puede usar para construir una solicitud API con varios parámetros


@ RequestMapping ( value = "/race-normals" , method = RequestMethod . POST , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public ResponseEntity < RaceNormal > createRaceNormal  ( @ RequestBody RaceNormal raceNormal ) throws URISyntaxException { log . debug ( "REST request to save RaceNormal : {}" , raceNormal ) ; if ( raceNormal . getRaceNormalId ( ) != null ) { return ResponseEntity . badRequest ( ) . headers ( HeaderUtil . createFailureAlert ( "raceNormal" , "idexists" , "A new raceNormal cannot already have an ID" ) ) . body ( null ) ; } RaceNormal result = raceNormalRepository . save ( raceNormal ) ; return ResponseEntity . created ( new URI ( "/api/race-normals/" + result . getRaceId ( ) ) ) . headers ( HeaderUtil . createEntityCreationAlert ( "raceNormal" , result . getRaceId ( ) . toString ( ) ) ) . body ( result ) ; }

POST / NORMALES DE RACERÍA: Crea un nuevo racenormal.


private void initBroadcastReciever  ( ) { IntentFilter intentFilter = new IntentFilter ( ) ; intentFilter . addAction ( ACTION_STOP_SELF ) ; registerReceiver ( mBroadcastReciever , intentFilter ) ; }

Esto establece el receptor de transmisión.


public double [ ] nextSample  ( ) { double [ ] z = getStandardNormalVector ( dimension ) ; Matrix Z = new Matrix ( z , dimension ) ; Matrix sample = chol . getL ( ) . times ( Z ) ; sample . plusEquals ( mean ) ; return sample . getColumnPackedCopy ( ) ; }

Devuelve una muestra extraída de esta distribución gaussiana N-dimensional.


protected List < PointFeature > clip  ( PointFeature v1 , PointFeature v2 , Vector2 n , double offset ) { List < PointFeature > points = new ArrayList < PointFeature > ( 2 ) ; Vector2 p1 = v1 . getPoint ( ) ; Vector2 p2 = v2 . getPoint ( ) ; double d1 = n . dot ( p1 ) - offset ; double d2 = n . dot ( p2 ) - offset ; if ( d1 <= 0.0 ) points . add ( v1 ) ; if ( d2 <= 0.0 ) points . add ( v2 ) ; if ( d1 * d2 < 0.0 ) { Vector2 e = p1 . to ( p2 ) ; double u = d1 / ( d1 - d2 ) ; e . multiply ( u ) ; e . add ( p1 ) ; if ( d1 > 0.0 ) { points . add ( new PointFeature ( e , v1 . getIndex ( ) ) ) ; } else { points . add ( new PointFeature ( e , v2 . getIndex ( ) ) ) ; } } return points ; }

Clips el segmento dado por S1 y S2 por n.


private void fillRightFromCenter  ( int centerViewPosition , int centerViewOffset , RecyclerView . Recycler recycler ) { int leftBorder = - ( settings . getViewWidthPx ( ) + ( isCollapsed ? settings . getViewWidthPx ( ) : 0 ) ) ; int rightBorder = getWidth ( ) + ( settings . getViewWidthPx ( ) + ( isCollapsed ? settings . getViewWidthPx ( ) : 0 ) ) ; int leftViewOffset = centerViewOffset ; int leftViewPosition = centerViewPosition ; final int baseTopMargin = Math . max ( 0 , getHeight ( ) - settings . getViewHeightPx ( ) - settings . getViewWidthPx ( ) / 4 ) ; int overlapDistance ; if ( isCollapsed ) { overlapDistance = - settings . getViewWidthPx ( ) / 4 ; } else { overlapDistance = settings . getViewWidthPx ( ) / 4 ; } boolean fillRight = true ; final int widthSpec = View . MeasureSpec . makeMeasureSpec ( settings . getViewWidthPx ( ) , View . MeasureSpec . EXACTLY ) ; final int heightSpec = View . MeasureSpec . makeMeasureSpec ( settings . getViewHeightPx ( ) , View . MeasureSpec . EXACTLY ) ; boolean hasPendingStateSelectedItem = mPendingSavedState != null && mPendingSavedState . isSelected && mPendingSavedState . mCenterItemPosition != RecyclerView . NO_POSITION ; float deltaOffset = settings . getViewWidthPx ( ) / 2 ; while ( leftViewOffset > leftBorder ) { if ( isCollapsed ) { leftViewOffset -= ( settings . getViewWidthPx ( ) + Math . abs ( overlapDistance ) ) ; } else { leftViewOffset -= ( settings . getViewWidthPx ( ) - Math . abs ( overlapDistance ) ) ; } leftViewPosition -- ; } if ( leftViewPosition < 0 ) { if ( isCollapsed ) { leftViewOffset += ( settings . getViewWidthPx ( ) + Math . abs ( overlapDistance ) ) * Math . abs ( leftViewPosition ) ; } else { leftViewOffset += ( settings . getViewWidthPx ( ) - Math . abs ( overlapDistance ) ) * Math . abs ( leftViewPosition ) ; } leftViewPosition = 0 ; } if ( hasPendingStateSelectedItem && leftViewPosition != mPendingSavedState . mCenterItemPosition ) { leftViewOffset += - deltaOffset ; } while ( fillRight && leftViewPosition < getItemCount ( ) ) { if ( hasPendingStateSelectedItem && leftViewPosition == mPendingSavedState . mCenterItemPosition && leftViewPosition != 0 ) { leftViewOffset += deltaOffset ; } View view = viewCache . get ( leftViewPosition ) ; if ( view == null ) { view = recycler . getViewForPosition ( leftViewPosition ) ; view . setLayerType ( View . LAYER_TYPE_HARDWARE , null ) ; addView ( view ) ; measureChildWithDecorationsAndMargin ( view , widthSpec , heightSpec ) ; layoutDecorated ( view , leftViewOffset , baseTopMargin , leftViewOffset + settings . getViewWidthPx ( ) , baseTopMargin + settings . getViewHeightPx ( ) ) ; } else { attachView ( view ) ; viewCache . remove ( leftViewPosition ) ; } leftViewOffset = leftViewOffset + settings . getViewWidthPx ( ) - overlapDistance ; fillRight = leftViewOffset < rightBorder ; if ( hasPendingStateSelectedItem && leftViewPosition == mPendingSavedState . mCenterItemPosition ) { leftViewOffset += deltaOffset ; } leftViewPosition ++ ; } if ( hasPendingStateSelectedItem ) { View view = findCurrentCenterView ( ) ; if ( view != null ) { view . setScaleX ( animationHelper . getViewScaleFactor ( ) ) ; view . setScaleY ( animationHelper . getViewScaleFactor ( ) ) ; } } }

Método Dibujar Vista utilizando la posición de vista central.


public void addScrollingListener  ( OnWheelScrollListener listener ) { scrollingListeners . add ( listener ) ; }

Agrega el oyente de desplazamiento de la rueda


void mergedWith  ( Node n1 , Node n2 ) { if ( n1 . equals ( n2 ) ) throw new RuntimeException ( "oops" ) ; somethingMerged = true ; if ( ofcg ( ) != null ) ofcg ( ) . mergedWith ( n1 , n2 ) ; Map [ ] maps = { simple , alloc , store , load , simpleInv , allocInv , storeInv , loadInv } ; for ( Map < Node , Object > m : maps ) { if ( ! m . keySet ( ) . contains ( n2 ) ) continue ; Object [ ] os = { m . get ( n1 ) , m . get ( n2 ) } ; int size1 = getSize ( os [ 0 ] ) ; int size2 = getSize ( os [ 1 ] ) ; if ( size1 == 0 ) { if ( os [ 1 ] != null ) m . put ( n1 , os [ 1 ] ) ; } else if ( size2 == 0 ) { } else if ( os [ 0 ] instanceof HashSet ) { if ( os [ 1 ] instanceof HashSet ) { ( ( HashSet ) os [ 0 ] ) . addAll ( ( HashSet ) os [ 1 ] ) ; } else { Node [ ] ar = ( Node [ ] ) os [ 1 ] ; for ( Node element0 : ar ) { ( ( HashSet < Node > ) os [ 0 ] ) . add ( element0 ) ; } } } else if ( os [ 1 ] instanceof HashSet ) { Node [ ] ar = ( Node [ ] ) os [ 0 ] ; for ( Node element0 : ar ) { ( ( HashSet < Node > ) os [ 1 ] ) . add ( element0 ) ; } m . put ( n1 , os [ 1 ] ) ; } else if ( size1 * size2 < 1000 ) { Node [ ] a1 = ( Node [ ] ) os [ 0 ] ; Node [ ] a2 = ( Node [ ] ) os [ 1 ] ; Node [ ] ret = new Node [ size1 + size2 ] ; System . arraycopy ( a1 , 0 , ret , 0 , a1 . length ) ; int j = a1 . length ; outer : for ( Node rep : a2 ) { for ( int k = 0 ; k < j ; k ++ ) if ( rep == ret [ k ] ) continue outer ; ret [ j ++ ] = rep ; } Node [ ] newArray = new Node [ j ] ; System . arraycopy ( ret , 0 , newArray , 0 , j ) ; m . put ( n1 , ret = newArray ) ; } else { HashSet < Node > s = new HashSet < Node > ( size1 + size2 ) ; for ( Object o : os ) { if ( o == null ) continue ; if ( o instanceof Set ) { s . addAll ( ( Set < Node > ) o ) ; } else { Node [ ] ar = ( Node [ ] ) o ; for ( Node element1 : ar ) { s . add ( element1 ) ; } } } m . put ( n1 , s ) ; } m . remove ( n2 ) ; } }

El nodo usa esto para notificar a la paga que N2 se ha fusionado en N1.


public static double turnAngle  ( S2Point a , S2Point b , S2Point c ) { double outAngle = S2Point . crossProd ( b , a ) . angle ( S2Point . crossProd ( c , b ) ) ; return ( robustCCW ( a , b , c ) > 0 ) ? outAngle : - outAngle ; }

Devuelva el ángulo exterior en el vértice B en el triángulo ABC.El valor de retorno es positivo si ABC está a la izquierda y negativo de lo contrario.Si imagina una hormiga caminando de A a B a C, este es el ángulo que la hormiga gira en el vértice B (positiva = izquierda, negativa = derecha).Asegura que Turnangle (A, B, C) == -Turnangle (C, B, A) para todos A, B, C.


public UsersGetNearbyQuery fields  ( UserField ... value ) { return unsafeParam ( "fields" , value ) ; }

Lista de campos adicionales para devolver.


public String toString  ( cp_info constant_pool [ ] ) { CONSTANT_Utf8_info ci = ( CONSTANT_Utf8_info ) ( constant_pool [ string_index ] ) ; return "\"" + ci . convert ( ) + "\"" ; }

Devuelve una representación de cadena de esta entrada.


@ Override @ PreAuthorize ( "hasRole('ALL') or hasRole('F_METADATA_IMPORT')" ) public void deleteObject  ( @ PathVariable String uid , HttpServletRequest request , HttpServletResponse response ) throws Exception { super . deleteObject ( uid , request , response ) ; }

Elimina un MessageConversation.Tenga en cuenta que este es un borrado duro y, por lo tanto, requiere autoridad de anulación para el usuario actual.


static String valueToString  ( Object value ) throws JSONException { if ( value == null || value . equals ( null ) ) { return "null" ; } if ( value instanceof JSONString ) { Object o ; try { o = ( ( JSONString ) value ) . toJSONString ( ) ; } catch ( Exception e ) { throw new JSONException ( e ) ; } if ( o instanceof String ) { return ( String ) o ; } throw new JSONException ( "Bad value from toJSONString: " + o ) ; } if ( value instanceof Number ) { return numberToString ( ( Number ) value ) ; } if ( value instanceof Boolean || value instanceof JSONObject || value instanceof JSONArray ) { return value . toString ( ) ; } if ( value instanceof Map ) { return new JSONObject ( ( Map ) value ) . toString ( ) ; } if ( value instanceof Collection ) { return new JSONArray ( ( Collection ) value ) . toString ( ) ; } if ( value . getClass ( ) . isArray ( ) ) { return new JSONArray ( value ) . toString ( ) ; } return quote ( value . toString ( ) ) ; }

Haga un texto JSON de un valor de objeto.Si el objeto tiene un método Value.TOJSSString (), entonces ese método se utilizará para producir el texto JSON.Se requiere que el método produce un texto estrictamente conforme.Si el objeto no contiene un método TOTSONSIRRING (que es el caso más común), entonces se producirá un texto por otros medios.Si el valor es una matriz o una colección, se lo hará un JSONARRAY de él y se llamará a su método TOJSSSSRING.Si el valor es un mapa, se hará un JSONOBJECT, se lo hará a partir de él y se llamará a su método TOJSSSSRING.De lo contrario, se llamará el método de tosificación del valor y se cotizará el resultado.<P> ADVERTENCIA: Este método asume que la estructura de SignalData es acicagal.


private void loadBinary  ( DataInputStream dis ) throws IOException { int size ; if ( dis . readInt ( ) != MAGIC ) { throw new Error ( "Bad magic in db" ) ; } if ( dis . readInt ( ) != VERSION ) { throw new Error ( "Bad VERSION in db" ) ; } sampleRate = dis . readInt ( ) ; numChannels = dis . readInt ( ) ; lpcMin = dis . readFloat ( ) ; lpcRange = dis . readFloat ( ) ; size = dis . readInt ( ) ; for ( int i = 0 ; i < size ; i ++ ) { Diphone diphone = Diphone . loadBinary ( dis ) ; add ( diphone ) ; } }

Carga los datos binarios del flujo de entrada dado.


public void removeEntries  ( int minSelectionIndex , int maxSelectionIndex ) { if ( ( minSelectionIndex < 0 ) || ( maxSelectionIndex < minSelectionIndex ) || ( maxSelectionIndex >= ftcList . size ( ) ) ) { return ; } int index = maxSelectionIndex ; while ( index >= minSelectionIndex ) { ftcList . remove ( index ) ; index -- ; } this . fireTableDataChanged ( ) ; if ( parentObj != null ) { parentObj . featureTypeConstraintUpdated ( ) ; } }


public InfoflowResults analyzeAPKFile  ( String apkFileName , String xmlFileName , boolean enableImplicitFlows , boolean enableStaticFields , boolean flowSensitiveAliasing ) throws IOException , XmlPullParserException { String androidJars = System . getenv ( "ANDROID_JARS" ) ; if ( androidJars == null ) androidJars = System . getProperty ( "ANDROID_JARS" ) ; if ( androidJars == null ) throw new RuntimeException ( "Android JAR dir not set" ) ; System . out . println ( "Loading Android.jar files from " + androidJars ) ; SetupApplication setupApplication = new SetupApplication ( androidJars , apkFileName ) ; setupApplication . setTaintWrapper ( new EasyTaintWrapper ( "EasyTaintWrapperSource.txt" ) ) ; setupApplication . calculateSourcesSinksEntrypoints ( xmlFileName ) ; setupApplication . setEnableImplicitFlows ( enableImplicitFlows ) ; setupApplication . setEnableStaticFieldTracking ( enableStaticFields ) ; setupApplication . setFlowSensitiveAliasing ( flowSensitiveAliasing ) ; return setupApplication . runInfoflow ( ) ; }

Analiza el archivo APK dado para flujos de datos con un archivo XML dado


public static boolean isFileOlder  ( File file , long timeMillis ) { if ( file == null ) { throw new IllegalArgumentException ( "No specified file" ) ; } if ( ! file . exists ( ) ) { return false ; } return file . lastModified ( ) < timeMillis ; }

Pruebas si el archivo <código> especificado </ el código> es más antiguo que la referencia de tiempo especificada.


public boolean isCritical  ( ) { return true ; }

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


public static SM_SYSTEM_MESSAGE STR_DISABLED_OTHER_CHAT  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1310009 , value0 ) ; }


public static final String repeatString  ( String sStr , int iTimes ) { StringBuffer sb = new StringBuffer ( ) ; for ( int iCnt = 0 ; iCnt < iTimes ; iCnt ++ ) sb . append ( sStr ) ; return sb . toString ( ) ; }

Repite una cadena dada un número específico de veces.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set edgeShape=" ) ; String shapeName = np . getWordMatchesIgnoringCase ( "angular straight curved none" ) ; np . matchIgnoreCase ( ";" ) ; byte shape ; if ( shapeName . equalsIgnoreCase ( "angular" ) ) shape = EdgeView . ARC_LINE_EDGE ; else if ( shapeName . equalsIgnoreCase ( "straight" ) ) shape = EdgeView . STRAIGHT_EDGE ; else if ( shapeName . equalsIgnoreCase ( "curved" ) ) shape = EdgeView . QUAD_EDGE ; else shape = 0 ; if ( getViewer ( ) instanceof GraphView ) { boolean changed = false ; GraphView viewer = ( GraphView ) getViewer ( ) ; for ( Edge e : viewer . getSelectedEdges ( ) ) { viewer . setShape ( e , shape ) ; changed = true ; } if ( changed ) { viewer . repaint ( ) ; } } }


Inicializa la matriz de niños al tamaño correcto.Inicializa la lista y opta a los niños NTA.


public static final void drawLineSegment  ( GL2 gl , Vector2 p1 , Vector2 p2 , boolean points ) { RenderUtilities . drawLineSegment ( gl , p1 . x , p1 . y , p2 . x , p2 . y , points ) ; }

Dibuja el segmento de línea especificado por dos puntos.


private Iterator < byte [ ] > load  ( ColumnIdentifier columnIdentifier , long startOffset , long endOffset ) throws IOException { CarbonDictionaryReader dictionaryReader = getDictionaryReader ( columnIdentifier ) ; try { Iterator < byte [ ] > columnDictionaryChunkWrapper = dictionaryReader . read ( startOffset , endOffset ) ; return columnDictionaryChunkWrapper ; } finally { dictionaryReader . close ( ) ; } }

Este método cargará los datos del diccionario entre un inicio de inicio y extremo dado.


public FrequencyDomainProcessor ( int fftSize , double amount ) { if ( ! MathUtils . isPowerOfTwo ( fftSize ) ) { throw new IllegalArgumentException ( "FFT size must be a power of two" ) ; } this . real = new double [ fftSize ] ; this . imag = new double [ fftSize ] ; this . amount = amount ; this . oneMinusAmount = 1.0 - this . amount ; }

Cree un sicario de frecuencia con el tamaño FFT dado.


public ZkConnection ( String zkServers , int sessionTimeOut , String authStr ) { _servers = zkServers ; _sessionTimeOut = sessionTimeOut ; _authStr = authStr ; }


public boolean simulate_natives  ( ) { return soot . PhaseOptions . getBoolean ( options , "simulate-natives" ) ; }

Simule los nativos: simular efectos de los métodos nativos en la biblioteca de clases estándar.Cuando esta opción se establece en VERDADERO, se simulan los efectos de los métodos nativos en la biblioteca de clase Java estándar.


private Input openInput  ( String name ) { Iterable < String > lines ; try { lines = inputSupplier . readInput ( name ) ; if ( lines == null ) { error ( "cannot open source '%s'" , name ) ; lines = ImmutableList . of ( ) ; } } catch ( IOException e ) { error ( "cannot open source '%s': %s" , name , e . getMessage ( ) ) ; lines = ImmutableList . of ( ) ; } return new Input ( name , lines . iterator ( ) , input ) ; }


public boolean removeEntry  ( int xIndex , int dataSetIndex ) { if ( dataSetIndex >= mDataSets . size ( ) ) return false ; IDataSet dataSet = mDataSets . get ( dataSetIndex ) ; Entry e = dataSet . getEntryForXIndex ( xIndex ) ; if ( e == null || e . getXIndex ( ) != xIndex ) return false ; return removeEntry ( e , dataSetIndex ) ; }

Elimina el objeto de entrada en el XINDEX dado desde el conjunto de datos en el índice especificado.Devuelve VERDADERO si se eliminó una entrada, Falso si no se encontró ninguna entrada que cumple con los requisitos especificados.


public Criteria createCriteria  ( ) { Criteria criteria = createCriteriaInternal ( ) ; if ( oredCriteria . size ( ) == 0 ) { oredCriteria . add ( criteria ) ; } return criteria ; }

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


public NBodyForce ( float gravConstant , float minDistance , float theta ) { params = new float [ ] { gravConstant , minDistance , theta } ; minValues = new float [ ] { DEFAULT_MIN_GRAV_CONSTANT , DEFAULT_MIN_DISTANCE , DEFAULT_MIN_THETA } ; maxValues = new float [ ] { DEFAULT_MAX_GRAV_CONSTANT , DEFAULT_MAX_DISTANCE , DEFAULT_MAX_THETA } ; root = factory . getQuadTreeNode ( ) ; }


public ResultPoint [ ] detect  ( ) throws NotFoundException  { int left = leftInit ; int right = rightInit ; int up = upInit ; int down = downInit ; boolean sizeExceeded = false ; boolean aBlackPointFoundOnBorder = true ; boolean atLeastOneBlackPointFoundOnBorder = false ; boolean atLeastOneBlackPointFoundOnRight = false ; boolean atLeastOneBlackPointFoundOnBottom = false ; boolean atLeastOneBlackPointFoundOnLeft = false ; boolean atLeastOneBlackPointFoundOnTop = false ; while ( aBlackPointFoundOnBorder ) { aBlackPointFoundOnBorder = false ; boolean rightBorderNotWhite = true ; while ( ( rightBorderNotWhite || ! atLeastOneBlackPointFoundOnRight ) && right < width ) { rightBorderNotWhite = containsBlackPoint ( up , down , right , false ) ; if ( rightBorderNotWhite ) { right ++ ; aBlackPointFoundOnBorder = true ; atLeastOneBlackPointFoundOnRight = true ; } else if ( ! atLeastOneBlackPointFoundOnRight ) { right ++ ; } } if ( right >= width ) { sizeExceeded = true ; break ; } boolean bottomBorderNotWhite = true ; while ( ( bottomBorderNotWhite || ! atLeastOneBlackPointFoundOnBottom ) && down < height ) { bottomBorderNotWhite = containsBlackPoint ( left , right , down , true ) ; if ( bottomBorderNotWhite ) { down ++ ; aBlackPointFoundOnBorder = true ; atLeastOneBlackPointFoundOnBottom = true ; } else if ( ! atLeastOneBlackPointFoundOnBottom ) { down ++ ; } } if ( down >= height ) { sizeExceeded = true ; break ; } boolean leftBorderNotWhite = true ; while ( ( leftBorderNotWhite || ! atLeastOneBlackPointFoundOnLeft ) && left >= 0 ) { leftBorderNotWhite = containsBlackPoint ( up , down , left , false ) ; if ( leftBorderNotWhite ) { left -- ; aBlackPointFoundOnBorder = true ; atLeastOneBlackPointFoundOnLeft = true ; } else if ( ! atLeastOneBlackPointFoundOnLeft ) { left -- ; } } if ( left < 0 ) { sizeExceeded = true ; break ; } boolean topBorderNotWhite = true ; while ( ( topBorderNotWhite || ! atLeastOneBlackPointFoundOnTop ) && up >= 0 ) { topBorderNotWhite = containsBlackPoint ( left , right , up , true ) ; if ( topBorderNotWhite ) { up -- ; aBlackPointFoundOnBorder = true ; atLeastOneBlackPointFoundOnTop = true ; } else if ( ! atLeastOneBlackPointFoundOnTop ) { up -- ; } } if ( up < 0 ) { sizeExceeded = true ; break ; } if ( aBlackPointFoundOnBorder ) { atLeastOneBlackPointFoundOnBorder = true ; } } if ( ! sizeExceeded && atLeastOneBlackPointFoundOnBorder ) { int maxSize = right - left ; ResultPoint z = null ; for ( int i = 1 ; i < maxSize ; i ++ ) { z = getBlackPointOnSegment ( left , down - i , left + i , down ) ; if ( z != null ) { break ; } } if ( z == null ) { throw NotFoundException . getNotFoundInstance ( ) ; } ResultPoint t = null ; for ( int i = 1 ; i < maxSize ; i ++ ) { t = getBlackPointOnSegment ( left , up + i , left + i , up ) ; if ( t != null ) { break ; } } if ( t == null ) { throw NotFoundException . getNotFoundInstance ( ) ; } ResultPoint x = null ; for ( int i = 1 ; i < maxSize ; i ++ ) { x = getBlackPointOnSegment ( right , up + i , right - i , up ) ; if ( x != null ) { break ; } } if ( x == null ) { throw NotFoundException . getNotFoundInstance ( ) ; } ResultPoint y = null ; for ( int i = 1 ; i < maxSize ; i ++ ) { y = getBlackPointOnSegment ( right , down - i , right - i , down ) ; if ( y != null ) { break ; } } if ( y == null ) { throw NotFoundException . getNotFoundInstance ( ) ; } return centerEdges ( y , z , x , t ) ; } else { throw NotFoundException . getNotFoundInstance ( ) ; } }

Detecta una región rectangular de código de barras candidata en una imagen.Comienza alrededor del centro de la imagen, aumenta el tamaño de la región candidata hasta que encuentra una región rectangular blanca.


public static void checkArgument  ( boolean expression ) { if ( ! expression ) { throw new IllegalArgumentException ( ) ; } }

Asegura la verdad de una expresión que involucre uno o más parámetros al método de llamada.


public static boolean isLetterOrDigit  ( char c ) { return Character . isLetterOrDigit ( c ) ; }

Devuelve VERDADERO si el carácter C es una letra o un dígito.


public void updateData  ( ) throws IOException  { ProgressListener progress = doc . getProgressListener ( ) ; boolean saveCancelable = false ; if ( progress != null ) { saveCancelable = progress . isCancelable ( ) ; progress . setSubtask ( "updating viewer" ) ; progress . setCancelable ( false ) ; try { progress . setProgress ( - 1 ) ; } catch ( CanceledException e ) { } } totalAssignedReads = 0 ; classification . getFullTree ( ) . computeId2Data ( doc . getNumberOfSamples ( ) , doc . getDataTable ( ) . getClass2Counts ( getClassName ( ) ) , id2NodeData ) ; for ( Integer fId : id2NodeData . keySet ( ) ) { if ( fId > 0 ) { totalAssignedReads += id2NodeData . get ( fId ) . getCountAssigned ( ) ; } } if ( progress != null ) progress . setCancelable ( saveCancelable ) ; getCommandManager ( ) . updateEnableState ( ) ; }


public void exclude  ( ) { this . include ( false ) ; }

Establece el <código> incluyen </ code> bandera a Falso para que el manifiesto sea </ i> no </ i> contenga información sobre este elemento.


@ Override public void write  ( OutputStream outputStream , Storable obj ) throws IOException { Writer writer = new OutputStreamWriter ( outputStream ) ; gson . toJson ( obj , obj . getClass ( ) , writer ) ; writer . close ( ) ; }

Almacena el objeto dado en el flujo de salida como JSON.


public boolean hasLastUpdated  ( ) { return lastUpdated != null ; }

Indica si estos params especifican la última actualización.


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

[% SkillTarget] ha recuperado% NUM0 HP debido a [% de habilidad].


private void preprocess  ( ) { int id ; int s , t ; n_func = Scene . v ( ) . getReachableMethods ( ) . size ( ) + 1 ; call_graph = new CgEdge [ n_func ] ; n_calls = 0 ; n_reach_spark_user_methods = 0 ; id = 1 ; QueueReader < MethodOrMethodContext > smList = Scene . v ( ) . getReachableMethods ( ) . listener ( ) ; while ( smList . hasNext ( ) ) { final SootMethod func = ( SootMethod ) smList . next ( ) ; func2int . put ( func , id ) ; int2func . put ( id , func ) ; if ( Scene . v ( ) . getCallGraph ( ) . isEntryMethod ( func ) || func . isEntryMethod ( ) ) { CgEdge p = new CgEdge ( Constants . SUPER_MAIN , id , null , call_graph [ Constants . SUPER_MAIN ] ) ; call_graph [ Constants . SUPER_MAIN ] = p ; n_calls ++ ; } if ( ! func . isJavaLibraryMethod ( ) ) ++ n_reach_spark_user_methods ; id ++ ; } QueueReader < Edge > edgeList = Scene . v ( ) . getCallGraph ( ) . listener ( ) ; while ( edgeList . hasNext ( ) ) { Edge edge = edgeList . next ( ) ; if ( edge . isClinit ( ) ) { continue ; } SootMethod src_func = edge . src ( ) ; SootMethod tgt_func = edge . tgt ( ) ; s = func2int . get ( src_func ) ; t = func2int . get ( tgt_func ) ; CgEdge p = new CgEdge ( s , t , edge , call_graph [ s ] ) ; call_graph [ s ] = p ; edgeMapping . put ( edge , p ) ; Stmt callsite = edge . srcStmt ( ) ; if ( edge . isThreadRunCall ( ) || edge . kind ( ) . isExecutor ( ) || edge . kind ( ) . isAsyncTask ( ) ) { thread_run_callsites . add ( callsite ) ; } else if ( edge . isInstance ( ) && ! edge . isSpecial ( ) ) { InstanceInvokeExpr expr = ( InstanceInvokeExpr ) callsite . getInvokeExpr ( ) ; p . base_var = findLocalVarNode ( expr . getBase ( ) ) ; if ( SootInfo . countCallEdgesForCallsite ( callsite , true ) > 1 && p . base_var != null ) { multiCallsites . add ( callsite ) ; } } ++ n_calls ; } for ( Iterator < VarNode > it = getVarNodeNumberer ( ) . iterator ( ) ; it . hasNext ( ) ; ) { VarNode vn = it . next ( ) ; IVarAbstraction pn = makeInternalNode ( vn ) ; pointers . add ( pn ) ; } for ( Iterator < AllocDotField > it = getAllocDotFieldNodeNumberer ( ) . iterator ( ) ; it . hasNext ( ) ; ) { AllocDotField adf = it . next ( ) ; SparkField field = adf . getField ( ) ; if ( field instanceof SootField ) { Type decType = ( ( SootField ) field ) . getDeclaringClass ( ) . getType ( ) ; Type baseType = adf . getBase ( ) . getType ( ) ; if ( ! castNeverFails ( baseType , decType ) ) continue ; } IVarAbstraction pn = makeInternalNode ( adf ) ; pointers . add ( pn ) ; } for ( Iterator < AllocNode > it = getAllocNodeNumberer ( ) . iterator ( ) ; it . hasNext ( ) ; ) { AllocNode obj = it . next ( ) ; IVarAbstraction pn = makeInternalNode ( obj ) ; allocations . add ( pn ) ; } for ( Object object : allocSources ( ) ) { IVarAbstraction obj = makeInternalNode ( ( AllocNode ) object ) ; Node [ ] succs = allocLookup ( ( AllocNode ) object ) ; for ( Node element0 : succs ) { PlainConstraint cons = new PlainConstraint ( ) ; IVarAbstraction p = makeInternalNode ( element0 ) ; cons . expr . setPair ( obj , p ) ; cons . type = Constants . NEW_CONS ; constraints . add ( cons ) ; } } Pair < Node , Node > intercall = new Pair < Node , Node > ( ) ; for ( Object object : simpleSources ( ) ) { IVarAbstraction p = makeInternalNode ( ( VarNode ) object ) ; Node [ ] succs = simpleLookup ( ( VarNode ) object ) ; for ( Node element0 : succs ) { PlainConstraint cons = new PlainConstraint ( ) ; IVarAbstraction q = makeInternalNode ( element0 ) ; cons . expr . setPair ( p , q ) ; cons . type = Constants . ASSIGN_CONS ; intercall . setPair ( ( VarNode ) object , element0 ) ; cons . interCallEdges = lookupEdgesForAssignment ( intercall ) ; constraints . add ( cons ) ; } } intercall = null ; assign2edges . clear ( ) ; for ( Object object : loadSources ( ) ) { FieldRefNode frn = ( FieldRefNode ) object ; IVarAbstraction p = makeInternalNode ( frn . getBase ( ) ) ; Node [ ] succs = loadLookup ( frn ) ; for ( Node element0 : succs ) { PlainConstraint cons = new PlainConstraint ( ) ; IVarAbstraction q = makeInternalNode ( element0 ) ; cons . f = frn . getField ( ) ; cons . expr . setPair ( p , q ) ; cons . type = Constants . LOAD_CONS ; constraints . add ( cons ) ; } } for ( Object object : storeSources ( ) ) { IVarAbstraction p = makeInternalNode ( ( VarNode ) object ) ; Node [ ] succs = storeLookup ( ( VarNode ) object ) ; for ( Node element0 : succs ) { PlainConstraint cons = new PlainConstraint ( ) ; FieldRefNode frn = ( FieldRefNode ) element0 ; IVarAbstraction q = makeInternalNode ( frn . getBase ( ) ) ; cons . f = frn . getField ( ) ; cons . expr . setPair ( p , q ) ; cons . type = Constants . STORE_CONS ; constraints . add ( cons ) ; } } n_init_constraints = constraints . size ( ) ; low_cg = new int [ n_func ] ; vis_cg = new int [ n_func ] ; rep_cg = new int [ n_func ] ; indeg_cg = new int [ n_func ] ; scc_size = new int [ n_func ] ; block_num = new int [ n_func ] ; context_size = new long [ n_func ] ; max_context_size_block = new long [ n_func ] ; }

Leer en los hechos del programa generados por Spark.También construimos nuestras propias variables de gráfico y puntero de llamadas.Devolución: un conjunto de punteros base para todos los llamados virtuales (incluyendo llamadas en LIB)


@ Override public void redoAction  ( UndoInterface undoRedoObject ) { if ( undoRedoObject != null ) { if ( undoRedoObject . getNewValue ( ) instanceof ReferencedEnvelope ) { ReferencedEnvelope oldValue = ( ReferencedEnvelope ) undoRedoObject . getNewValue ( ) ; populateField ( oldValue ) ; } } }


@ Override public Object invoke  ( MethodInvocation invocation ) throws Throwable { Subreport subreport = invocation . getMethod ( ) . getAnnotation ( Subreport . class ) ; testEventCollector . startSubreport ( subreport . value ( ) ) ; try { return invocation . proceed ( ) ; } finally { testEventCollector . endSubreport ( subreport . value ( ) ) ; } }

Este es el método de asesoramiento.Recupera el nombre de subreportación de la anotación del subinforme, abre el subinforme, procede con el método y finalmente cierra el subinforme.


public SpaceRemoteEvent ( Object source , long eventID , long seqNum , MarshalledObject handback ) { super ( source , eventID , seqNum , handback ) ; }

Construye un objeto SpacerEmiteVent.<P> El estado abstracto contenido en un objeto REMOTEVENTE incluye una referencia al objeto en el que ocurrió el evento, un largo que identifica el tipo de evento en relación con el objeto en el que ocurrió el evento, un largo que indica el número de secuencia de esteinstancia del tipo de evento, y un MarshalledObject que se devuelve cuando se produce la notificación.La combinación del identificador de eventos y la referencia del objeto obtenida del objeto REMOTEVENT deben identificar de manera única el tipo de evento.


private void initUI  ( ) { this . setLayout ( new BoxLayout ( this , BoxLayout . Y_AXIS ) ) ; Force [ ] forces = fsim . getForces ( ) ; for ( int i = 0 ; i < forces . length ; i ++ ) { Force f = forces [ i ] ; Box v = new Box ( BoxLayout . Y_AXIS ) ; for ( int j = 0 ; j < f . getParameterCount ( ) ; j ++ ) { JValueSlider field = createField ( f , j ) ; field . addChangeListener ( lstnr ) ; v . add ( field ) ; } String name = f . getClass ( ) . getName ( ) ; name = name . substring ( name . lastIndexOf ( "." ) + 1 ) ; v . setBorder ( BorderFactory . createTitledBorder ( name ) ) ; this . add ( v ) ; } }


public boolean isSetCurrentMessageId  ( ) { return this . currentMessageId != null ; }

Devuelve VERDADERO si se establece el campoMessageIdeid (se le ha asignado un valor) y falso de lo contrario


public boolean isLast  ( ) { return last ; }

Devuelve VERDADERO Si esta expresión es la última es una serie de expresiones.


public static void registerWorldGen  ( ResourceLocation id , WorldGenerator generator ) { AutomaticNamespacedRegistry < ResourceLocation , WorldGenerator > registry = Registries . get ( WorldGenerator . class ) ; if ( generator == null ) { throw new NullPointerException ( "Attempted to register a null world generator" ) ; } else if ( id == null ) { throw new NullPointerException ( "Attempted to register a world generator with a null ID" ) ; } else if ( registry . containsKey ( id ) ) { throw new IllegalArgumentException ( String . format ( "The world generator ID \"%s\" has already been registered" , id ) ) ; } registry . register ( id , generator ) ; }


public static final SM_SYSTEM_MESSAGE STR_MSG_HOUSING_AUCTION_SUCCESS  ( int address ) { return new SM_SYSTEM_MESSAGE ( 1401269 , address ) ; }


public static void dropTable  ( Database db , boolean ifExists ) { String sql = "DROP TABLE " + ( ifExists ? "IF EXISTS " : "" ) + "\"THEME_LIST\"" ; db . execSQL ( sql ) ; }

Drops la tabla de base de datos subyacente.


public static int exportReference2ReadName  ( MainViewer viewer , File file , char separator , ProgressListener progressListener ) throws IOException { int totalLines = 0 ; try ( BufferedWriter w = new BufferedWriter ( new FileWriter ( file ) ) ) { Document doc = viewer . getDir ( ) . getDocument ( ) ; IConnector connector = doc . getConnector ( ) ; IClassificationBlock classificationBlock = connector . getClassificationBlock ( ClassificationType . Taxonomy . toString ( ) ) ; java . util . Collection < Integer > taxonIds = viewer . getSelectedIds ( ) ; progressListener . setSubtask ( "Mapping reads to references" ) ; boolean eachReadOnceOnly = ProgramProperties . get ( "each-read-once-only" , false ) ; Map < String , List < String > > reference2reads = new HashMap < > ( ) ; if ( taxonIds . size ( ) == 0 ) { IReadBlockIterator it = connector . getAllReadsIterator ( doc . getMinScore ( ) , doc . getMaxExpected ( ) , true , false ) ; progressListener . setMaximum ( it . getMaximumProgress ( ) ) ; progressListener . setProgress ( 0 ) ; try { while ( it . hasNext ( ) ) { IReadBlock readBlock = it . next ( ) ; for ( int i = 0 ; i < readBlock . getNumberOfAvailableMatchBlocks ( ) ; i ++ ) { IMatchBlock matchBlock = readBlock . getMatchBlock ( i ) ; if ( matchBlock . getBitScore ( ) >= doc . getMinScore ( ) && matchBlock . getExpected ( ) <= doc . getMaxExpected ( ) && matchBlock . getPercentIdentity ( ) >= doc . getMinPercentIdentity ( ) ) { String reference = Basic . getFirstLine ( matchBlock . getText ( ) ) ; List < String > list = reference2reads . get ( reference ) ; if ( list == null ) { list = new LinkedList < > ( ) ; reference2reads . put ( reference , list ) ; } list . add ( readBlock . getReadName ( ) ) ; if ( eachReadOnceOnly ) break ; } } progressListener . setProgress ( it . getProgress ( ) ) ; } } finally { it . close ( ) ; } } else { int maxProgress = taxonIds . size ( ) ; progressListener . setMaximum ( maxProgress ) ; progressListener . setProgress ( 0 ) ; for ( int id : taxonIds ) { if ( classificationBlock . getSum ( id ) > 0 ) { IReadBlockIterator it = connector . getReadsIterator ( ClassificationType . Taxonomy . toString ( ) , id , doc . getMinScore ( ) , doc . getMaxExpected ( ) , true , false ) ; progressListener . setMaximum ( it . getMaximumProgress ( ) ) ; progressListener . setProgress ( 0 ) ; try { while ( it . hasNext ( ) ) { IReadBlock readBlock = it . next ( ) ; for ( int i = 0 ; i < readBlock . getNumberOfAvailableMatchBlocks ( ) ; i ++ ) { IMatchBlock matchBlock = readBlock . getMatchBlock ( i ) ; if ( matchBlock . getBitScore ( ) >= doc . getMinScore ( ) && matchBlock . getExpected ( ) <= doc . getMaxExpected ( ) && matchBlock . getPercentIdentity ( ) >= doc . getMinPercentIdentity ( ) ) { String reference = Basic . getFirstLine ( matchBlock . getText ( ) ) ; List < String > list = reference2reads . get ( reference ) ; if ( list == null ) { list = new LinkedList < > ( ) ; reference2reads . put ( reference , list ) ; } list . add ( readBlock . getReadName ( ) ) ; if ( eachReadOnceOnly ) break ; } } progressListener . setProgress ( it . getProgress ( ) ) ; } } finally { it . close ( ) ; } } } } progressListener . setSubtask ( "writing" ) ; progressListener . setMaximum ( reference2reads . size ( ) ) ; progressListener . setProgress ( 0 ) ; for ( String reference : reference2reads . keySet ( ) ) { w . write ( reference + separator + Basic . toString ( reference2reads . get ( reference ) , "" + separator ) + "\n" ) ; progressListener . incrementProgress ( ) ; totalLines ++ ; } } catch ( CanceledException e ) { System . err . println ( "USER CANCELED" ) ; } return totalLines ; }

Secuencia de referencia de exportación para leer el mapeo


@ Override public void actionPerformed  ( ActionEvent ev ) { executeImmediately ( "set keep1=" + ( ! isSelected ( ) ) + ";" ) ; }


public ReadModifiers ( ReadModifiers ... modifiers ) { super ( modifiers ) ; }

Crea un nuevo modificador de los modificadores especificados.


public static < T > T  checkNotNull ( T reference , String errorMessageTemplate , Object ... errorMessageArgs )  { if ( reference == null ) { throw new NullPointerException ( String . format ( errorMessageTemplate , errorMessageArgs ) ) ; } return reference ; }

Asegura que una referencia de objeto que pase como parámetro al método de llamada no sea nulo.


@ Override public final float readFloat  ( ) throws IOException  { return Float . intBitsToFloat ( readInt ( ) ) ; }

Lea un flotador.Al igual que DataInputStream.readfloat, excepto Little Endian.


private static int computeChecksum  ( byte [ ] buf , int offset , int length , String channel ) { Hasher hasher = Hashing . murmur3_32 ( ) . newHasher ( ) ; hasher . putBytes ( buf , offset , length ) ; hasher . putUnencodedChars ( channel ) ; return hasher . hash ( ) . asInt ( ) & 0xffff ; }

Calcula una suma de comprobación de 16 bits de los contenidos del nombre de byteBuffer y canal específico.


private static ByteBuffer trim  ( ByteBuffer buf ) { if ( buf . capacity ( ) <= 4 * buf . remaining ( ) ) { return buf ; } else { ByteBuffer clone = ByteBuffer . allocate ( buf . remaining ( ) ) ; buf . get ( clone . array ( ) ) ; return clone ; } }

Los objetos compuestos de astyanax serializados usan mucha memoria.Recórtalo hacia abajo.


public TAC2008UpdateSummarizationFileSet ( String sCorpusDir ) { CorpusDir = sCorpusDir ; Categories = null ; TrainingFiles = new ArrayList < CategorizedFileEntry > ( ) ; TestFiles = new ArrayList < CategorizedFileEntry > ( ) ; }

Inicialice el conjunto usando como corpus dir un dir.


@ Override public void disconnect  ( ) { ProcessConfiguration processConfiguration = configurationController . getProcessConfiguration ( ) ; log . debug ( "Disconnecting ActiveMessageReceiver listener with destination to {}" , processConfiguration . getJmsDaqCommandQueue ( ) ) ; listenerContainer . shutdown ( ) ; }


public FTPFile [ ] list  ( String fileSpec ) throws IllegalStateException , IOException , FTPIllegalReplyException , FTPException , FTPDataTransferException , FTPAbortedException , FTPListParseException  { synchronized ( lock ) { if ( ! connected ) { throw new IllegalStateException ( "Client not connected" ) ; } if ( ! authenticated ) { throw new IllegalStateException ( "Client not authenticated" ) ; } communication . sendFTPCommand ( "TYPE A" ) ; FTPReply r = communication . readFTPReply ( ) ; touchAutoNoopTimer ( ) ; if ( ! r . isSuccessCode ( ) ) { throw new FTPException ( r ) ; } FTPDataTransferConnectionProvider provider = openDataTransferChannel ( ) ; boolean mlsdCommand ; if ( mlsdPolicy == MLSD_IF_SUPPORTED ) { mlsdCommand = mlsdSupported ; } else if ( mlsdPolicy == MLSD_ALWAYS ) { mlsdCommand = true ; } else { mlsdCommand = false ; } String command = mlsdCommand ? "MLSD" : "LIST" ; if ( fileSpec != null && fileSpec . length ( ) > 0 ) { command += " " + fileSpec ; } ArrayList lines = new ArrayList ( ) ; boolean wasAborted = false ; communication . sendFTPCommand ( command ) ; try { Socket dtConnection ; try { dtConnection = provider . openDataTransferConnection ( ) ; } finally { provider . dispose ( ) ; } synchronized ( abortLock ) { ongoingDataTransfer = true ; aborted = false ; consumeAborCommandReply = false ; } NVTASCIIReader dataReader = null ; try { dataTransferInputStream = dtConnection . getInputStream ( ) ; if ( modezEnabled ) { dataTransferInputStream = new InflaterInputStream ( dataTransferInputStream ) ; } dataReader = new NVTASCIIReader ( dataTransferInputStream , mlsdCommand ? "UTF-8" : pickCharset ( ) ) ; String line ; while ( ( line = dataReader . readLine ( ) ) != null ) { if ( line . length ( ) > 0 ) { lines . add ( line ) ; } } } catch ( IOException e ) { synchronized ( abortLock ) { if ( aborted ) { throw new FTPAbortedException ( ) ; } else { throw new FTPDataTransferException ( "I/O error in data transfer" , e ) ; } } } finally { if ( dataReader != null ) { try { dataReader . close ( ) ; } catch ( Throwable t ) { ; } } try { dtConnection . close ( ) ; } catch ( Throwable t ) { ; } dataTransferInputStream = null ; synchronized ( abortLock ) { wasAborted = aborted ; ongoingDataTransfer = false ; aborted = false ; } } } finally { r = communication . readFTPReply ( ) ; touchAutoNoopTimer ( ) ; if ( r . getCode ( ) != 150 && r . getCode ( ) != 125 ) { throw new FTPException ( r ) ; } r = communication . readFTPReply ( ) ; if ( ! wasAborted && r . getCode ( ) != 226 ) { throw new FTPException ( r ) ; } if ( consumeAborCommandReply ) { communication . readFTPReply ( ) ; consumeAborCommandReply = false ; } } int size = lines . size ( ) ; String [ ] list = new String [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { list [ i ] = ( String ) lines . get ( i ) ; } FTPFile [ ] ret = null ; if ( mlsdCommand ) { MLSDListParser parser = new MLSDListParser ( ) ; ret = parser . parse ( list ) ; } else { if ( parser != null ) { try { ret = parser . parse ( list ) ; } catch ( FTPListParseException e ) { parser = null ; } } if ( ret == null ) { for ( Iterator i = listParsers . iterator ( ) ; i . hasNext ( ) ; ) { FTPListParser aux = ( FTPListParser ) i . next ( ) ; try { ret = aux . parse ( list ) ; parser = aux ; break ; } catch ( FTPListParseException e ) { continue ; } } } } if ( ret == null ) { throw new FTPListParseException ( ) ; } else { return ret ; } } }

Este método enumera las entradas del directorio de trabajo actual que analiza la respuesta a un comando de lista FTP.La respuesta al comando LISTA se analiza a través de los objetos FTPLISTPARSER registrados en el cliente.La distribución de FTP4J contiene algunos analizadores estándar ya registrados en cada objeto FTPClient creado.Si no funcionan en su caso (se lanza una ftplistParseException), puede crear su propio analizador que implementa la interfaz FTPLISTPARSER y agregarla al cliente llamando a su método AddListParser ().Llamar a este método bloquea el hilo actual hasta que se complete la operación.La operación podría ser interrumpida por otra llamada de hilo abortcurrentdatatransfer ().El método de lista () se romperá con una ftpabortedException.


public void addCatchClause  ( CatchClause node ) { List < CatchClause > list = ( parent == null || state == null ) ? getCatchClauseListNoTransform ( ) : getCatchClauseList ( ) ; list . addChild ( node ) ; }

Anejando un elemento a la lista de Catchcluss.


@ After public void tearDown  ( ) { entityManager . remove ( user ) ; }

Hacer la limpieza después de cada método.