public static void main  ( String [ ] args ) throws MalformedURLException  { String master = "local[*]" ; String inputFileName = "" ; String outputFileName = "" ; String url = "" ; Options options = new Options ( ) ; options . addOption ( "m" , true , "master" ) ; options . addOption ( "i" , true , "input file name)" ) ; options . addOption ( "o" , true , "output file name" ) ; options . addOption ( "u" , true , "input URL" ) ; options . addOption ( "v" , false , "verbose" ) ; options . addOption ( "s" , false , "whitespace classification" ) ; CommandLineParser parser = new PosixParser ( ) ; CommandLine cm ; try { cm = parser . parse ( options , args ) ; if ( cm . hasOption ( "m" ) ) { master = cm . getOptionValue ( "m" ) ; } String dataFolder = "/export/dat/tok" ; Tokenizer tokenizer = null ; if ( cm . hasOption ( "s" ) ) { tokenizer = new Tokenizer ( master , dataFolder + "/lexicon.xml" , dataFolder + "/regexp.txt" , dataFolder + "/whitespace.model" , true ) ; } else { tokenizer = new Tokenizer ( master , dataFolder + "/lexicon.xml" , dataFolder + "/regexp.txt" , dataFolder + "/syllables2M.arpa" ) ; } if ( cm . hasOption ( "v" ) ) { tokenizer . setVerbose ( true ) ; } if ( cm . hasOption ( "i" ) ) { inputFileName = cm . getOptionValue ( "i" ) ; } if ( cm . hasOption ( "u" ) ) { url = cm . getOptionValue ( "u" ) ; } if ( inputFileName . length ( ) == 0 && url . length ( ) == 0 ) { System . err . println ( "Either an input file or an URL must be provided!" ) ; System . exit ( 1 ) ; } else if ( inputFileName . length ( ) > 0 ) { if ( cm . hasOption ( "o" ) ) { outputFileName = cm . getOptionValue ( "o" ) ; tokenizer . tokenize ( inputFileName , outputFileName ) ; } else { try { PrintWriter writer = new PrintWriter ( new OutputStreamWriter ( System . out , "UTF-8" ) ) ; tokenizer . tokenize ( inputFileName , writer ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } } } else { try { PrintWriter writer = null ; if ( cm . hasOption ( "o" ) ) { outputFileName = cm . getOptionValue ( "o" ) ; writer = new PrintWriter ( new OutputStreamWriter ( new FileOutputStream ( outputFileName ) , "UTF-8" ) ) ; tokenizer . tokenize ( new URL ( url ) , writer ) ; writer . close ( ) ; } else { writer = new PrintWriter ( new OutputStreamWriter ( System . out , "UTF-8" ) ) ; tokenizer . tokenize ( new URL ( url ) , writer ) ; } } catch ( UnsupportedEncodingException | FileNotFoundException e ) { e . printStackTrace ( ) ; } } } catch ( ParseException e ) { e . printStackTrace ( ) ; } System . out . println ( "Done." ) ; }


public boolean hasError  ( ) { return error ; }

Obtiene la bandera si ocurrió un error al analizar el documento.


@ Override public void attributeSelection  ( String field ) { }


public void afterTransactionSynchronization  ( TransactionData transactionData ) { }

Activado después de la sincronización de una transacción se completó con éxito.


public XML11NonValidatingConfiguration ( SymbolTable symbolTable , XMLGrammarPool grammarPool , XMLComponentManager parentSettings ) { super ( parentSettings ) ; fComponents = new ArrayList ( ) ; fXML11Components = new ArrayList ( ) ; fCommonComponents = new ArrayList ( ) ; fRecognizedFeatures = new ArrayList ( ) ; fRecognizedProperties = new ArrayList ( ) ; fFeatures = new HashMap ( ) ; fProperties = new HashMap ( ) ; final String [ ] recognizedFeatures = { CONTINUE_AFTER_FATAL_ERROR , VALIDATION , NAMESPACES , EXTERNAL_GENERAL_ENTITIES , EXTERNAL_PARAMETER_ENTITIES , PARSER_SETTINGS } ; addRecognizedFeatures ( recognizedFeatures ) ; fFeatures . put ( VALIDATION , Boolean . FALSE ) ; fFeatures . put ( NAMESPACES , Boolean . TRUE ) ; fFeatures . put ( EXTERNAL_GENERAL_ENTITIES , Boolean . TRUE ) ; fFeatures . put ( EXTERNAL_PARAMETER_ENTITIES , Boolean . TRUE ) ; fFeatures . put ( CONTINUE_AFTER_FATAL_ERROR , Boolean . FALSE ) ; fFeatures . put ( PARSER_SETTINGS , Boolean . TRUE ) ; final String [ ] recognizedProperties = { XML_STRING , SYMBOL_TABLE , ERROR_HANDLER , ENTITY_RESOLVER , ERROR_REPORTER , ENTITY_MANAGER , DOCUMENT_SCANNER , DTD_SCANNER , DTD_VALIDATOR , DATATYPE_VALIDATOR_FACTORY , VALIDATION_MANAGER , XML_STRING , XMLGRAMMAR_POOL } ; addRecognizedProperties ( recognizedProperties ) ; if ( symbolTable == null ) { symbolTable = new SymbolTable ( ) ; } fSymbolTable = symbolTable ; fProperties . put ( SYMBOL_TABLE , fSymbolTable ) ; fGrammarPool = grammarPool ; if ( fGrammarPool != null ) { fProperties . put ( XMLGRAMMAR_POOL , fGrammarPool ) ; } fEntityManager = new XMLEntityManager ( ) ; fProperties . put ( ENTITY_MANAGER , fEntityManager ) ; addCommonComponent ( fEntityManager ) ; fErrorReporter = new XMLErrorReporter ( ) ; fErrorReporter . setDocumentLocator ( fEntityManager . getEntityScanner ( ) ) ; fProperties . put ( ERROR_REPORTER , fErrorReporter ) ; addCommonComponent ( fErrorReporter ) ; fNamespaceScanner = new XMLNSDocumentScannerImpl ( ) ; fProperties . put ( DOCUMENT_SCANNER , fNamespaceScanner ) ; addComponent ( fNamespaceScanner ) ; fDTDScanner = new XMLDTDScannerImpl ( ) ; fProperties . put ( DTD_SCANNER , fDTDScanner ) ; addComponent ( ( XMLComponent ) fDTDScanner ) ; fDatatypeValidatorFactory = DTDDVFactory . getInstance ( ) ; fProperties . put ( DATATYPE_VALIDATOR_FACTORY , fDatatypeValidatorFactory ) ; fValidationManager = new ValidationManager ( ) ; fProperties . put ( VALIDATION_MANAGER , fValidationManager ) ; fVersionDetector = new XMLVersionDetector ( ) ; if ( fErrorReporter . getMessageFormatter ( XMLMessageFormatter . XML_DOMAIN ) == null ) { XMLMessageFormatter xmft = new XMLMessageFormatter ( ) ; fErrorReporter . putMessageFormatter ( XMLMessageFormatter . XML_DOMAIN , xmft ) ; fErrorReporter . putMessageFormatter ( XMLMessageFormatter . XMLNS_DOMAIN , xmft ) ; } try { setLocale ( Locale . getDefault ( ) ) ; } catch ( XNIException e ) { } fConfigUpdated = false ; }

Construye una configuración de analizador utilizando la tabla de símbolos especificados, la agrupación gramática y la configuración de los padres.<p /> <strong> revisit: </ strong> la gramática se actualizará cuando se implemente el nuevo motor de validación.


public boolean use_original_names  ( ) { return soot . PhaseOptions . getBoolean ( options , "use-original-names" ) ; }

Usa nombres originales -.Conserve los nombres originales para las variables locales cuando la fuente incluye esos nombres.De lo contrario, el hollín da nombres genéricos de variables en función de sus tipos.


public static void i  ( String tag , String s , Throwable e ) { if ( LOG . INFO >= LOGLEVEL ) Log . i ( tag , s , e ) ; }


public synchronized void showGlobalTrace  ( ) { acquireExclusiveAccess ( ) ; try { if ( _traceLoggingLevel == OFF_VALUE && ! _hasAssociatedLogOn ) return ; _logger . log ( Level . INFO , "Trace Global Start [" + _traceLength + "]" ) ; sortTrace ( _globalTrace ) ; for ( LogRecord record : _globalTrace ) traceLogRecord ( record ) ; if ( _associatedLoggers != null ) { for ( String associatedLogName : _associatedLoggers ) TraceableLogger . getLogger ( associatedLogName ) . showGlobalTrace ( ) ; } _logger . log ( Level . INFO , "Trace Global End [" + _traceLength + "]" ) ; } finally { releaseExclusiveAccess ( ) ; } }


public boolean drawGroup  ( @ NotNull Graphics2D gc , @ NotNull ScreenView screenView , @ NotNull NlComponent component ) { return false ; }

Pinta el componente y sus hijos en el contexto dado.


private void onProcessUp  ( final Long processId , final Timestamp pTimestamp , final String pMessage ) { if ( LOGGER . isDebugEnabled ( ) ) { StringBuffer str = new StringBuffer ( "onProcessUp(" ) ; str . append ( "Process with Id " + processId ) ; str . append ( ", " ) ; str . append ( pTimestamp ) ; str . append ( ") called." ) ; LOGGER . debug ( str . toString ( ) ) ; } processFacade . resume ( processId , pTimestamp , pMessage ) ; final Process process = processCache . getCopy ( processId ) ; Long stateTagId = process . getStateTagId ( ) ; controlTagCache . acquireWriteLockOnKey ( stateTagId ) ; try { ControlTag stateTag = controlTagCache . get ( stateTagId ) ; if ( stateTag . getValue ( ) == null || ! stateTag . getValue ( ) . equals ( SupervisionStatus . RUNNING . toString ( ) ) || ! stateTag . isValid ( ) ) { if ( process . getLocalConfig ( ) != null && process . getLocalConfig ( ) . equals ( LocalConfig . Y ) ) { LOGGER . debug ( "onProcessUp(): Process is running on a local configuration, setting status to RUNNING_LOCAL" ) ; controlTagFacade . updateAndValidate ( stateTagId , SupervisionStatus . RUNNING_LOCAL . toString ( ) , pMessage , pTimestamp ) ; } else if ( stateTag . getValue ( ) == null || ! stateTag . getValue ( ) . equals ( SupervisionStatus . RUNNING . toString ( ) ) ) { controlTagFacade . updateAndValidate ( stateTagId , SupervisionStatus . RUNNING . toString ( ) , pMessage , pTimestamp ) ; } } } catch ( CacheElementNotFoundException controlCacheEx ) { LOGGER . error ( "Unable to locate state tag in cache (id is " + stateTagId + ")" , controlCacheEx ) ; } finally { controlTagCache . releaseWriteLockOnKey ( stateTagId ) ; } }

TODO Write ... El método de ONUP () se llama en uno de los siguientes casos: <ul> <li> Se ha recibido una etiqueta viva adjunta a un proceso / equipo <li> se ha recibido una falla de comunicación que indica que un equipo se está ejecutando.recibió.</ Ul> El método de ONUP () establece el valor de la etiqueta de estado asociada con el proceso / equipo para "ejecutar".Si el valor de la etiqueta del estado ya está "funcionando", no se toma ninguna otra acción.Más detalles: Si la etiqueta de estado es válida y no se "ejecuta", se actualiza a "Ejecutar" (al igual que el campo de proceso asociado).Además, si el estado está reducido debido a un vencimiento vivo, entonces se realiza una solicitud al DAQ para enviar los últimos valores.Observe que el proceso vivo está revalidado por supuesto en la recepción de un nuevo vivo.


public boolean hasSuperClassAccess  ( ) { return getSuperClassAccessOpt ( ) . getNumChild ( ) != 0 ; }

Compruebe si existe el hijo Opcional SuperClassAccess.


public void addHandlerSideQuestDrop  ( int questId , int npcId , int itemId , int amount , int chance ) { HandlerSideDrop hsd = new HandlerSideDrop ( questId , npcId , itemId , amount , chance ) ; QuestService . addQuestDrop ( hsd . getNpcId ( ) , hsd ) ; }

Añadir gota lateral del controlador (si no está ya en XML)


public Criteria or  ( ) { Criteria criteria = createCriteriaInternal ( ) ; oredCriteria . add ( criteria ) ; return criteria ; }

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


@ Deployment ( resources = { "org/activiti/engine/test/api/runtime/nestedSubProcess.bpmn20.xml" , "org/activiti/engine/test/api/runtime/subProcess.bpmn20.xml" } ) public void testSubProcessInstanceEvents  ( ) throws Exception  { ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "nestedSimpleSubProcess" ) ; assertNotNull ( processInstance ) ; String processDefinitionId = processInstance . getProcessDefinitionId ( ) ; assertEquals ( 11 , listener . getEventsReceived ( ) . size ( ) ) ; assertTrue ( listener . getEventsReceived ( ) . get ( 0 ) instanceof ActivitiEntityEvent ) ; ActivitiEntityEvent event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; assertEquals ( processInstance . getId ( ) , ( ( ProcessInstance ) event . getEntity ( ) ) . getId ( ) ) ; assertEquals ( processInstance . getId ( ) , event . getProcessInstanceId ( ) ) ; assertEquals ( processInstance . getId ( ) , event . getExecutionId ( ) ) ; assertEquals ( processDefinitionId , event . getProcessDefinitionId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 1 ) ; String processExecutionId = event . getExecutionId ( ) ; assertEquals ( ActivitiEventType . PROCESS_CREATED , event . getType ( ) ) ; assertEquals ( processInstance . getId ( ) , event . getProcessInstanceId ( ) ) ; assertEquals ( processInstance . getId ( ) , processExecutionId ) ; assertEquals ( processDefinitionId , event . getProcessDefinitionId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 2 ) ; processExecutionId = event . getExecutionId ( ) ; assertEquals ( ActivitiEventType . ENTITY_INITIALIZED , event . getType ( ) ) ; assertEquals ( processInstance . getId ( ) , event . getProcessInstanceId ( ) ) ; assertEquals ( processInstance . getId ( ) , processExecutionId ) ; assertEquals ( processDefinitionId , event . getProcessDefinitionId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 3 ) ; processExecutionId = event . getExecutionId ( ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; assertEquals ( processInstance . getId ( ) , event . getProcessInstanceId ( ) ) ; assertNotEquals ( processInstance . getId ( ) , processExecutionId ) ; assertEquals ( processDefinitionId , event . getProcessDefinitionId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 4 ) ; assertEquals ( ActivitiEventType . ENTITY_INITIALIZED , event . getType ( ) ) ; assertEquals ( processInstance . getId ( ) , event . getProcessInstanceId ( ) ) ; assertNotEquals ( processInstance . getId ( ) , ( ( ExecutionEntity ) event . getEntity ( ) ) . getId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 5 ) ; assertEquals ( ActivitiEventType . PROCESS_STARTED , event . getType ( ) ) ; assertEquals ( processInstance . getId ( ) , event . getProcessInstanceId ( ) ) ; assertEquals ( processInstance . getProcessDefinitionId ( ) , event . getProcessDefinitionId ( ) ) ; assertTrue ( event instanceof ActivitiProcessStartedEvent ) ; assertNull ( ( ( ActivitiProcessStartedEvent ) event ) . getNestedProcessDefinitionId ( ) ) ; assertNull ( ( ( ActivitiProcessStartedEvent ) event ) . getNestedProcessInstanceId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 6 ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; ExecutionEntity subProcessEntity = ( ExecutionEntity ) event . getEntity ( ) ; assertEquals ( processExecutionId , subProcessEntity . getSuperExecutionId ( ) ) ; String subProcessInstanceId = subProcessEntity . getProcessInstanceId ( ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 7 ) ; assertEquals ( ActivitiEventType . PROCESS_CREATED , event . getType ( ) ) ; subProcessEntity = ( ExecutionEntity ) event . getEntity ( ) ; assertEquals ( processExecutionId , subProcessEntity . getSuperExecutionId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 8 ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; assertEquals ( subProcessInstanceId , event . getProcessInstanceId ( ) ) ; assertNotEquals ( subProcessInstanceId , event . getExecutionId ( ) ) ; String subProcessDefinitionId = ( ( ExecutionEntity ) event . getEntity ( ) ) . getProcessDefinitionId ( ) ; assertNotNull ( subProcessDefinitionId ) ; ProcessDefinition subProcessDefinition = repositoryService . getProcessDefinition ( subProcessDefinitionId ) ; assertEquals ( "simpleSubProcess" , subProcessDefinition . getKey ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 9 ) ; assertEquals ( ActivitiEventType . ENTITY_INITIALIZED , event . getType ( ) ) ; assertEquals ( subProcessInstanceId , event . getProcessInstanceId ( ) ) ; assertNotEquals ( subProcessInstanceId , event . getExecutionId ( ) ) ; subProcessDefinitionId = ( ( ExecutionEntity ) event . getEntity ( ) ) . getProcessDefinitionId ( ) ; assertNotNull ( subProcessDefinitionId ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 10 ) ; assertEquals ( ActivitiEventType . PROCESS_STARTED , event . getType ( ) ) ; assertEquals ( subProcessInstanceId , event . getProcessInstanceId ( ) ) ; assertEquals ( subProcessDefinitionId , event . getProcessDefinitionId ( ) ) ; assertTrue ( event instanceof ActivitiProcessStartedEvent ) ; assertEquals ( processDefinitionId , ( ( ActivitiProcessStartedEvent ) event ) . getNestedProcessDefinitionId ( ) ) ; assertEquals ( processInstance . getId ( ) , ( ( ActivitiProcessStartedEvent ) event ) . getNestedProcessInstanceId ( ) ) ; listener . clearEventsReceived ( ) ; }

Prueba Crear, actualizar y eliminar eventos de instancias de proceso.


public static < T > T  make ( Class < T > shieldClass , RxJava1Hub rxJava1Hub )  { return inst . make ( shieldClass , rxJava1Hub , RxJava1Hub . class ) ; }

Ayudante Método estático para generar instancias de escudo.


private boolean isValidItemIndex  ( int index ) { return viewAdapter != null && viewAdapter . getItemsCount ( ) > 0 && ( isCyclic || index >= 0 && index < viewAdapter . getItemsCount ( ) ) ; }


private void removeProcessControlTags  ( Process process , ConfigurationElementReport processReport ) { LOGGER . debug ( "Removing Process control tags for process " + process . getId ( ) ) ; Long aliveTagId = process . getAliveTagId ( ) ; if ( aliveTagId != null ) { ConfigurationElementReport tagReport = new ConfigurationElementReport ( Action . REMOVE , Entity . CONTROLTAG , aliveTagId ) ; processReport . addSubReport ( tagReport ) ; controlTagConfigHandler . removeControlTag ( aliveTagId , tagReport ) ; } Long stateTagId = process . getStateTagId ( ) ; ConfigurationElementReport tagReport = new ConfigurationElementReport ( Action . REMOVE , Entity . CONTROLTAG , stateTagId ) ; processReport . addSubReport ( tagReport ) ; controlTagConfigHandler . removeControlTag ( stateTagId , tagReport ) ; }

Elimina el proceso vivo y las etiquetas estatales (de DB y de caché).


private static < T > Type < T > intern  ( final Class < T > rawType , final java . lang . reflect . Type [ ] typeArguments , final Set < java . lang . reflect . Type > recursiveBounds ) { Type < ? > [ ] convertedArguments = TypeUtil . convertTypeArguments ( rawType , typeArguments , recursiveBounds ) ; TypeKey key = TypeKey . valueOf ( rawType , convertedArguments ) ; WeakReference < Type < ? > > mapped = typeCache . get ( key ) ; Type < T > typeResult = null ; if ( mapped != null ) { typeResult = ( Type < T > ) mapped . get ( ) ; } if ( typeResult == null ) { synchronized ( rawType ) { mapped = typeCache . get ( key ) ; if ( mapped != null ) { typeResult = ( Type < T > ) mapped . get ( ) ; } if ( typeResult == null ) { typeResult = createType ( key , rawType , convertedArguments ) ; mapped = new WeakReference < Type < ? > > ( typeResult ) ; WeakReference < Type < ? > > existing = typeCache . putIfAbsent ( key , mapped ) ; if ( existing != null ) { if ( existing . get ( ) == null ) { typeCache . put ( key , mapped ) ; } else { mapped = existing ; typeResult = ( Type < T > ) mapped . get ( ) ; } } } } } return typeResult ; }

Almacene la combinación de RAWTYPE y escriba los argumentos como un tipo dentro del tipo caché de tipo. <br> Use el tipo existente si ya está disponible;Intentamos hacer cumplir ese tipo debe ser inmutable.


private static byte [ ] encode3to4  ( byte [ ] source , int srcOffset , int numSigBytes , byte [ ] destination , int destOffset , int options ) { byte [ ] ALPHABET = getAlphabet ( options ) ; int inBuff = ( numSigBytes > 0 ? ( ( source [ srcOffset ] << 24 ) >>> 8 ) : 0 ) | ( numSigBytes > 1 ? ( ( source [ srcOffset + 1 ] << 24 ) >>> 16 ) : 0 ) | ( numSigBytes > 2 ? ( ( source [ srcOffset + 2 ] << 24 ) >>> 24 ) : 0 ) ; switch ( numSigBytes ) { case 3 : destination [ destOffset ] = ALPHABET [ ( inBuff >>> 18 ) ] ; destination [ destOffset + 1 ] = ALPHABET [ ( inBuff >>> 12 ) & 0x3f ] ; destination [ destOffset + 2 ] = ALPHABET [ ( inBuff >>> 6 ) & 0x3f ] ; destination [ destOffset + 3 ] = ALPHABET [ ( inBuff ) & 0x3f ] ; return destination ; case 2 : destination [ destOffset ] = ALPHABET [ ( inBuff >>> 18 ) ] ; destination [ destOffset + 1 ] = ALPHABET [ ( inBuff >>> 12 ) & 0x3f ] ; destination [ destOffset + 2 ] = ALPHABET [ ( inBuff >>> 6 ) & 0x3f ] ; destination [ destOffset + 3 ] = EQUALS_SIGN ; return destination ; case 1 : destination [ destOffset ] = ALPHABET [ ( inBuff >>> 18 ) ] ; destination [ destOffset + 1 ] = ALPHABET [ ( inBuff >>> 12 ) & 0x3f ] ; destination [ destOffset + 2 ] = EQUALS_SIGN ; destination [ destOffset + 3 ] = EQUALS_SIGN ; return destination ; default : return destination ; } }

 Codifica hasta tres bytes de la matriz <var> fuente </ var> y escribe los cuatro bytes Base64 resultantes a <var> destino </ var>.Las matrices de origen y destino se pueden manipular en cualquier lugar a lo largo de su longitud especificando <var> srcoffset </ var> y <var> destoffset </ var>.Este método no se verifica para asegurarse de que sus matrices sean lo suficientemente grandes como para acomodar <var> srcoffset </ var> + 3 para la matriz </ var> para la matriz de </ var> o <var> DATOFFSET </ var> + 4 para el <var> destino </ var> matriz.El número real de bytes significativos en su matriz se le da por <var> numsigbytes </ var>.

 Este es el nivel más bajo de los métodos de codificación con todos los parámetros posibles.


@ Override public void endExternalSubset  ( Augmentations augmentations ) throws XNIException { }


@ Override public boolean onBackPressed  ( ) { return getActiveLayout ( ) != null && getActiveLayout ( ) . onBackPressed ( ) ; }

Debe llamarse cuando el usuario presione el botón ATRÁS en el teléfono.


public boolean handleRequest  ( ZWaveController zController , SerialMessage lastSentMessage , SerialMessage incomingMessage ) throws ZWaveSerialMessageException { logger . warn ( "TODO: {} unsupported REQUEST." , incomingMessage . getMessageClass ( ) . getLabel ( ) ) ; return false ; }

Método para manejar la solicitud del controlador.


public void clearSounds  ( ) { mSoundMap . clear ( ) ; }

Borra todos los sonidos y eventos establecidos anteriormente.


HTMLCollectionImpl ( HTMLElement topLevel , short lookingFor )  { if ( topLevel == null ) throw new NullPointerException ( "HTM011 Argument 'topLevel' is null." ) ; _topLevel = topLevel ; _lookingFor = lookingFor ; }

Construya una nueva colección que recupere el elemento del tipo específico (<código> buscando </ código>) de la parte específica del documento (<código> Toplevel </ Code>).


private int read  ( int bytesToRead , int offset ) throws IOException { int nBytesRead = 0 ; int nBytesTotalRead = 0 ; if ( inputBuffer . length < bytesToRead + offset ) inputBuffer = new byte [ bytesToRead + offset ] ; while ( nBytesRead != - 1 && bytesToRead > 0 ) { nBytesRead = in . read ( inputBuffer , offset + nBytesTotalRead , bytesToRead ) ; if ( nBytesRead != - 1 ) { bytesToRead -= nBytesRead ; nBytesTotalRead += nBytesRead ; } } if ( nBytesRead == - 1 ) endOfFile = true ; return nBytesTotalRead ; }

Lee exactamente el número especificado de bytes, si no se ha alcanzado el extremo de la secuencia.Si se ha alcanzado el final de la corriente, se ha alcanzado todo, el número de bytes leído se recuperará.


private void removeResourcePoolElasticity  ( ElasticPlacementZoneState epz , Consumer < Throwable > callback ) { List < Object > propertiesToRemove = new ArrayList < > ( ) ; propertiesToRemove . add ( ResourcePoolProperty . ELASTIC ) ; Map < String , Collection < Object > > itemsToRemove = new HashMap < > ( ) ; itemsToRemove . put ( ResourcePoolState . FIELD_NAME_PROPERTIES , propertiesToRemove ) ; ResourcePoolState patchRpState = new ResourcePoolState ( ) ; patchRpState . properties = EnumSet . noneOf ( ResourcePoolProperty . class ) ; sendRequest ( Operation . createPatch ( getHost ( ) , epz . resourcePoolLink ) . setBody ( ServiceStateCollectionUpdateRequest . create ( null , itemsToRemove ) ) . setCompletion ( null ) ) ; }

Elimina la elasticidad del grupo de recursos vinculados.


protected CreateSimpleLexer sourceDecorator  ( Map < String , Object > options ) throws Exception { List < List < Object > > shortcutStylePatterns = new ArrayList < List < Object > > ( ) ; List < List < Object > > fallthroughStylePatterns = new ArrayList < List < Object > > ( ) ; if ( Util . getVariableValueAsBoolean ( options . get ( "tripleQuotedStrings" ) ) ) { shortcutStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_STRING , Pattern . compile ( "^(?:\\'\\'\\'(?:[^\\'\\\\]|\\\\[\\s\\S]|\\'{1,2}(?=[^\\']))*(?:\\'\\'\\'|$)|\\\"\\\"\\\"(?:[^\\\"\\\\]|\\\\[\\s\\S]|\\\"{1,2}(?=[^\\\"]))*(?:\\\"\\\"\\\"|$)|\\'(?:[^\\\\\\']|\\\\[\\s\\S])*(?:\\'|$)|\\\"(?:[^\\\\\\\"]|\\\\[\\s\\S])*(?:\\\"|$))" ) , null , "'\"" } ) ) ; } else if ( Util . getVariableValueAsBoolean ( options . get ( "multiLineStrings" ) ) ) { shortcutStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_STRING , Pattern . compile ( "^(?:\\'(?:[^\\\\\\']|\\\\[\\s\\S])*(?:\\'|$)|\\\"(?:[^\\\\\\\"]|\\\\[\\s\\S])*(?:\\\"|$)|\\`(?:[^\\\\\\`]|\\\\[\\s\\S])*(?:\\`|$))" ) , null , "'\"`" } ) ) ; } else { shortcutStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_STRING , Pattern . compile ( "^(?:\\'(?:[^\\\\\\'\r\n]|\\\\.)*(?:\\'|$)|\\\"(?:[^\\\\\\\"\r\n]|\\\\.)*(?:\\\"|$))" ) , null , "\"'" } ) ) ; } if ( Util . getVariableValueAsBoolean ( options . get ( "verbatimStrings" ) ) ) { fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_STRING , Pattern . compile ( "^@\\\"(?:[^\\\"]|\\\"\\\")*(?:\\\"|$)" ) , null } ) ) ; } Object hc = options . get ( "hashComments" ) ; if ( Util . getVariableValueAsBoolean ( hc ) ) { if ( Util . getVariableValueAsBoolean ( options . get ( "cStyleComments" ) ) ) { if ( ( hc instanceof Integer ) && ( Integer ) hc > 1 ) { shortcutStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_COMMENT , Pattern . compile ( "^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)" ) , null , "#" } ) ) ; } else { shortcutStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_COMMENT , Pattern . compile ( "^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\\b|[^\r\n]*)" ) , null , "#" } ) ) ; } fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_STRING , Pattern . compile ( "^<(?:(?:(?:\\.\\.\\/)*|\\/?)(?:[\\w-]+(?:\\/[\\w-]+)+)?[\\w-]+\\.h(?:h|pp|\\+\\+)?|[a-z]\\w*)>" ) , null } ) ) ; } else { shortcutStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_COMMENT , Pattern . compile ( "^#[^\r\n]*" ) , null , "#" } ) ) ; } } if ( Util . getVariableValueAsBoolean ( options . get ( "cStyleComments" ) ) ) { fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_COMMENT , Pattern . compile ( "^\\/\\/[^\r\n]*" ) , null } ) ) ; fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_COMMENT , Pattern . compile ( "^\\/\\*[\\s\\S]*?(?:\\*\\/|$)" ) , null } ) ) ; } Object regexLiterals = options . get ( "regexLiterals" ) ; if ( Util . getVariableValueAsBoolean ( regexLiterals ) ) { String regexExcls = Util . getVariableValueAsInteger ( regexLiterals ) > 1 ? "" : "\n\r" ; String regexAny = ! regexExcls . isEmpty ( ) ? "." : "[\\S\\s]" ; String REGEX_LITERAL = "/(?=[^/*" + regexExcls + "])" + "(?:[^/\\x5B\\x5C" + regexExcls + "]" + "|\\x5C" + regexAny + "|\\x5B(?:[^\\x5C\\x5D" + regexExcls + "]" + "|\\x5C" + regexAny + ")*(?:\\x5D|$))+" + "/" ; fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { "lang-regex" , Pattern . compile ( "^" + REGEXP_PRECEDER_PATTERN + "(" + REGEX_LITERAL + ")" ) } ) ) ; } Pattern types = ( Pattern ) options . get ( "types" ) ; if ( Util . getVariableValueAsBoolean ( types ) ) { fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_TYPE , types } ) ) ; } String keywords = ( String ) options . get ( "keywords" ) ; if ( keywords != null ) { keywords = keywords . replaceAll ( "^ | $" , "" ) ; if ( keywords . length ( ) != 0 ) { fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_KEYWORD , Pattern . compile ( "^(?:" + keywords . replaceAll ( "[\\s,]+" , "|" ) + ")\\b" ) , null } ) ) ; } } shortcutStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_PLAIN , Pattern . compile ( "^\\s+" ) , null , " \r\n\t" + Character . toString ( ( char ) 0xA0 ) } ) ) ; fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_LITERAL , Pattern . compile ( "^@[a-z_$][a-z_$@0-9]*" , Pattern . CASE_INSENSITIVE ) , null } ) ) ; fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_TYPE , Pattern . compile ( "^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\\w+_t\\b)" ) , null } ) ) ; fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_PLAIN , Pattern . compile ( "^[a-z_$][a-z_$@0-9]*" , Pattern . CASE_INSENSITIVE ) , null } ) ) ; fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_LITERAL , Pattern . compile ( "^(?:" + "0x[a-f0-9]+" + "|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)" + "(?:e[+\\-]?\\d+)?" + ')' + "[a-z]*" , Pattern . CASE_INSENSITIVE ) , null , "0123456789" } ) ) ; fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_PLAIN , Pattern . compile ( "^\\\\[\\s\\S]?" ) , null } ) ) ; String punctuation = "^.[^\\s\\w.$@'\"`/\\\\]*" ; if ( Util . getVariableValueAsBoolean ( options . get ( "regexLiterals" ) ) ) { punctuation += "(?!\\s*/)" ; } fallthroughStylePatterns . add ( Arrays . asList ( new Object [ ] { PR_PUNCTUATION , Pattern . compile ( punctuation ) , null } ) ) ; return new CreateSimpleLexer ( shortcutStylePatterns , fallthroughStylePatterns ) ; }

Devuelve una función que produce una lista de decoraciones del texto de origen.Este código trata ", ', y` como delimitadores de cadena, y \ como una cadena de escape. No reconoce las cadenas de estilo QQ () de Perl. No tiene un manejo especial para escapes de doble delimitador como en básico, o los delimitadores triplicados utilizados enPython, pero debe trabajar en aquellos, independientemente, aunque en aquellos casos, se puede dividir un literal de cuerdas único en múltiples literales de cadenas adyacentes. Reconoce C, C ++ y comentarios de estilo de concha.


Map < String , List < ChartObject > > loadContentByFilterType  ( Optional < UserFilter > userFilter , String projectName , ContentOptions contentOptions ) { Map < String , List < ChartObject > > content ; if ( userFilter . isPresent ( ) && Log . class . equals ( userFilter . get ( ) . getFilter ( ) . getTarget ( ) ) ) { content = new HashMap < > ( ) ; } else { BuildFilterStrategy filterStrategy = buildFilterStrategy . get ( GadgetTypes . findByName ( contentOptions . getGadgetType ( ) ) . get ( ) ) ; expect ( filterStrategy , notNull ( ) ) . verify ( UNABLE_LOAD_WIDGET_CONTENT , Suppliers . formattedSupplier ( "Unknown gadget type: '{}'." , contentOptions . getGadgetType ( ) ) ) ; content = filterStrategy . buildFilterAndLoadContent ( userFilter . orElse ( null ) , contentOptions , projectName ) ; } return content ; }

Cargue el contenido del widget según el tipo de filtro.


public final < T > T  make ( Class < T > shieldClass , H rHub , Class < H > rHubClass )  { Constructor < T > constructor = getShieldImpl ( shieldClass , rHubClass ) ; if ( constructor == null ) { throw new RuntimeException ( "Unable to find implementation for " + shieldClass ) ; } try { return constructor . newInstance ( rHub ) ; } catch ( IllegalAccessException e ) { throw new RuntimeException ( "Unable to invoke " + constructor , e ) ; } catch ( InstantiationException e ) { throw new RuntimeException ( "Unable to invoke " + constructor , e ) ; } catch ( InvocationTargetException e ) { Throwable cause = e . getCause ( ) ; if ( cause instanceof RuntimeException ) { throw ( RuntimeException ) cause ; } if ( cause instanceof Error ) { throw ( Error ) cause ; } throw new RuntimeException ( "Unable to create shield instance." , cause ) ; } }

Genera instancia para una interfaz de Shielchlass dada.


public LeaseRenewalEvent ( Object source , Lease lease , long expiration , Throwable ex ) { super ( source ) ; this . lease = lease ; this . expiration = expiration ; this . ex = ex ; }

Construye una instancia de esta clase con el estado especificado.


public static boolean isAndroidSdkDirInLocalPropertiesFile  ( @ NotNull File projectDir ) { String androidHome = getAndroidHomeFromLocalPropertiesFile ( projectDir ) ; if ( ! Strings . isNullOrEmpty ( androidHome ) ) { String msg = String . format ( "Found Android SDK home at '%1$s' (from local.properties file)" , androidHome ) ; LOG . info ( msg ) ; return true ; } return false ; }

Indica si la ruta del directorio de inicio de Android SDK se especifica en un archivo local.properties.


public boolean filterOut  ( final SAMRecord first , final SAMRecord second ) { throw new UnsupportedOperationException ( "Paired *Filter not implemented!" ) ; }

Determina si un par de samrecord coincide con este filtro


public void addWorking  ( boolean working ) { query . append ( " +working:" + working ) ; }


public void configureIndicator  ( int indicatorWidth , int indicatorHeight , int indicatorMargin ) { configureIndicator ( indicatorWidth , indicatorHeight , indicatorMargin , R . animator . scale_with_alpha , 0 , R . drawable . white_radius , R . drawable . white_radius ) ; }

Cree y configure el indicador en el código Java.


public static CertChainKeyPair generateSignedForClient  ( String fqdn , X509Certificate issuerCertificate , PrivateKey issuerPrivateKey ) { try { return generateCertificateAndSign ( fqdn , issuerCertificate , issuerPrivateKey , getClientExtensions ( ) ) ; } catch ( CertIOException | CertificateException | OperatorCreationException e ) { throw new RuntimeException ( String . format ( "Failed to generate client certificate, reason: %s" , e . getMessage ( ) ) , e ) ; } }

Genera un certificado firmado y una clave privada para la autenticación del cliente.


@ TargetApi ( Build . VERSION_CODES . M ) public static boolean hasPermission  ( Activity activity , String [ ] permissions ) { for ( String permission : permissions ) { if ( activity . checkSelfPermission ( permission ) != PackageManager . PERMISSION_GRANTED ) { return false ; } } return true ; }

Devuelve VERDADERO si la actividad tiene acceso a un permiso completo.


public static double adjustedrSquared  ( double rSquared , int numRegressors , int numDataPoints ) { double divide = ( numDataPoints - 1.0 ) / ( numDataPoints - numRegressors - 1.0 ) ; double rSquaredDiff = 1 - rSquared ; return 1 - ( rSquaredDiff * divide ) ; }

Esto calcula el R ^ 2 ajustado, incluidos los grados de libertad.También conocido como calculando la "fuerza" de una regresión.


public static boolean isMasterCard  ( String cc ) { int firstdig = Integer . parseInt ( cc . substring ( 0 , 1 ) ) ; int seconddig = Integer . parseInt ( cc . substring ( 1 , 2 ) ) ; if ( ( cc . length ( ) == 16 ) && ( firstdig == 5 ) && ( ( seconddig >= 1 ) && ( seconddig <= 5 ) ) ) return isCreditCard ( cc ) ; return false ; }

Cheques para ver si el número de CC es un número de tarjeta maestra válido


public void clear  ( ) { super . clear ( ) ; location = null ; }


public static String readFileToString  ( File file , String encoding ) throws IOException { return readFileToString ( file , Charsets . toCharset ( encoding ) ) ; }

Lee los contenidos de un archivo en una cadena.El archivo siempre está cerrado.


public static String booleanToString  ( Boolean value ) { return value . toString ( ) ; }


public ResourcesPoet addStyle  ( String name , @ Nullable String parentRef , @ Nullable List < StyleItem > styleItems ) { Element element = document . createElement ( "style" ) ; element . setAttribute ( "name" , name ) ; if ( parentRef != null ) { element . setAttribute ( "parent" , parentRef ) ; } if ( styleItems != null ) { for ( StyleItem item : styleItems ) { Element valueElement = document . createElement ( "item" ) ; valueElement . setAttribute ( "name" , item . name ) ; valueElement . appendChild ( document . createTextNode ( item . value ) ) ; element . appendChild ( valueElement ) ; } } resourceElement . appendChild ( element ) ; return this ; }


public static ValueGetterSpacePredicate < ServerEntry > path  ( String path , ISpacePredicate predicate ) { return new ValueGetterSpacePredicate < ServerEntry > ( new SpaceEntryPathGetter ( path ) , predicate ) ; }

Crea un predicado para obtener un valor de propiedad y probarlo con otro predicado.


public boolean hasDataElement  ( DataElement dataElement ) { for ( DataSet dataSet : dataSets ) { if ( dataSet . getDataElements ( ) . contains ( dataElement ) ) { return true ; } } return false ; }

Indica si esta unidad de organización está asociada con el elemento de datos dado a través de sus asociaciones de conjunto de datos.


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 SM_SYSTEM_MESSAGE STR_SKILL_SUCC_ConvertHeal_INTERVAL_HEAL_MP_TO_ME  ( int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201049 , num0 , skillname ) ; }

Usted recuperó% NUM0 MP debido al efecto de [% de habilidad].


public void parseFiles  ( final ProgressListener progress ) throws IOException , CanceledException { progress . setTasks ( "Generating RMA6 file" , "Parsing matches" ) ; final HashMap < String , Long > read2PairedReadLocation ; if ( pairedReads ) read2PairedReadLocation = new HashMap < > ( 1000000 ) ; else read2PairedReadLocation = null ; final byte [ ] queryName = new byte [ 100000 ] ; final Single < byte [ ] > fastAText = new Single < > ( new byte [ 1000 ] ) ; final MatchLineRMA6 [ ] matchLineRMA6s = new MatchLineRMA6 [ maxMatchesPerRead ] ; for ( int i = 0 ; i < matchLineRMA6s . length ; i ++ ) { matchLineRMA6s [ i ] = new MatchLineRMA6 ( cNames . length , taxonMapperIndex ) ; } final int [ ] [ ] match2classification2id = new int [ maxMatchesPerRead ] [ cNames . length ] ; rma6FileCreator . startAddingQueries ( ) ; long totalNumberOfReads = 0 ; long totalNumberOfMatches = 0 ; for ( int fileNumber = 0 ; fileNumber < blastFiles . length ; fileNumber ++ ) { int missingReadWarnings = 0 ; final String blastFile = blastFiles [ fileNumber ] ; progress . setTasks ( "Parsing file:" , Basic . getFileNameWithoutPath ( blastFile ) ) ; System . err . println ( "Parsing file: " + blastFile ) ; final ISAMIterator iterator = IteratorManager . getIterator ( blastFile , format , blastMode , maxMatchesPerRead ) ; progress . setProgress ( 0 ) ; progress . setMaximum ( iterator . getMaximumProgress ( ) ) ; final FileIterator fastaIterator ; final boolean isFasta ; if ( readsFiles != null && readsFiles . length > fileNumber && Basic . fileExistsAndIsNonEmpty ( readsFiles [ fileNumber ] ) ) { fastaIterator = new FileIterator ( readsFiles [ fileNumber ] ) ; isFasta = ( fastaIterator . peekNextByte ( ) == '>' ) ; if ( ! isFasta && ( fastaIterator . peekNextByte ( ) != '@' ) ) throw new IOException ( "Cannot determine type of reads file (doesn't start with '>' or '@': " + readsFiles [ fileNumber ] ) ; } else { fastaIterator = null ; isFasta = false ; } while ( iterator . hasNext ( ) ) { totalNumberOfReads ++ ; final int numberOfMatches = iterator . next ( ) ; totalNumberOfMatches += numberOfMatches ; final byte [ ] matchesText = iterator . getMatchesText ( ) ; final int matchesTextLength = iterator . getMatchesTextLength ( ) ; final int queryNameLength = Basic . getFirstWord ( matchesText , queryName ) ; Long mateLocation = null ; if ( pairedReads ) { final String strippedName = Basic . toString ( queryName , 0 , queryNameLength - pairedReadSuffixLength ) ; mateLocation = read2PairedReadLocation . get ( strippedName ) ; if ( mateLocation == null ) { read2PairedReadLocation . put ( strippedName , rma6FileCreator . getPosition ( ) ) ; } else { read2PairedReadLocation . remove ( strippedName ) ; } } byte [ ] queryText = null ; int queryTextLength = 0 ; if ( fastaIterator != null ) { if ( Utilities . findQuery ( queryName , queryNameLength , fastaIterator , isFasta ) ) { queryTextLength = Utilities . getFastAText ( fastaIterator , isFasta , fastAText ) ; queryText = fastAText . get ( ) ; } else { if ( missingReadWarnings ++ < 50 ) System . err . println ( "WARNING: Failed to find read '" + Basic . toString ( queryName , 0 , queryNameLength ) + "' in file: " + readsFiles [ fileNumber ] ) ; if ( missingReadWarnings == 50 ) System . err . println ( "No further 'failed to find read' warnings..." ) ; } } if ( iterator . getQueryText ( ) != null ) { queryText = iterator . getQueryText ( ) ; queryTextLength = iterator . getQueryText ( ) . length ; } if ( queryText == null ) { queryText = queryName ; queryTextLength = queryNameLength ; } int offset = 0 ; for ( int matchCount = 0 ; matchCount < numberOfMatches ; matchCount ++ ) { final String refName = Utilities . getToken ( 2 , matchesText , offset ) ; final MatchLineRMA6 matchLineRMA6 = matchLineRMA6s [ matchCount ] ; matchLineRMA6 . parse ( matchesText , offset ) ; for ( int i = 0 ; i < parsers . length ; i ++ ) { final int id = parsers [ i ] . getIdFromHeaderLine ( refName ) ; match2classification2id [ matchCount ] [ i ] = id ; matchLineRMA6 . setFId ( i , id ) ; } offset = Utilities . nextNewLine ( matchesText , offset ) + 1 ; } rma6FileCreator . addQuery ( queryText , queryTextLength , numberOfMatches , matchesText , matchesTextLength , match2classification2id , mateLocation != null ? mateLocation : 0 ) ; progress . setProgress ( iterator . getProgress ( ) ) ; } } rma6FileCreator . endAddingQueries ( ) ; if ( progress instanceof ProgressPercentage ) ( ( ProgressPercentage ) progress ) . reportTaskCompleted ( ) ; System . err . println ( String . format ( "Total reads:  %,16d" , totalNumberOfReads ) ) ; System . err . println ( String . format ( "Alignments:    %,15d" , totalNumberOfMatches ) ) ; if ( progress instanceof ProgressPercentage ) ( ( ProgressPercentage ) progress ) . reportTaskCompleted ( ) ; rma6FileCreator . writeClassifications ( null , null , null ) ; rma6FileCreator . writeAuxBlocks ( null ) ; rma6FileCreator . close ( ) ; if ( pairedReads ) { long count = 0 ; if ( progress instanceof ProgressPercentage ) ( ( ProgressPercentage ) progress ) . reportTaskCompleted ( ) ; try ( InputOutputReaderWriter raf = new InputOutputReaderWriter ( rma6File , "rw" ) ; IReadBlockIterator it = ( new RMA6Connector ( rma6File ) ) . getAllReadsIterator ( 0 , 1000 , false , false ) ) { progress . setSubtask ( "Linking paired reads" ) ; progress . setProgress ( 0 ) ; progress . setProgress ( it . getMaximumProgress ( ) ) ; while ( it . hasNext ( ) ) { final IReadBlock readBlock = it . next ( ) ; if ( readBlock . getMateUId ( ) > 0 ) { if ( readBlock . getMateUId ( ) > readBlock . getUId ( ) ) throw new IOException ( "Mate uid=" + readBlock . getMateUId ( ) + ": too big" ) ; raf . seek ( readBlock . getMateUId ( ) ) ; raf . writeLong ( readBlock . getUId ( ) ) ; count ++ ; } progress . setProgress ( it . getProgress ( ) ) ; } System . err . println ( String . format ( "Number of pairs:%,14d" , count ) ) ; } } doc . processReadHits ( ) ; final String sampleName = Basic . replaceFileSuffix ( Basic . getFileNameWithoutPath ( rma6File ) , "" ) ; SyncArchiveAndDataTable . syncRecomputedArchive2Summary ( sampleName , "LCA" , doc . getBlastMode ( ) , doc . getParameterString ( ) , new RMA6Connector ( rma6File ) , doc . getDataTable ( ) , 0 ) ; doc . saveAuxiliaryData ( ) ; }


public ProtocolException ( String s , Throwable ex ) { super ( s , ex ) ; if ( ex == null ) throw new IllegalArgumentException ( "The cause object can't be null." ) ; }

Construye un <código> protocolexception </ code> con el mensaje de detalle especificado y la excepción anidada.


@ SuppressWarnings ( { "unchecked" , "cast" } ) public NumericLiteral fullCopy  ( ) { NumericLiteral tree = ( NumericLiteral ) copy ( ) ; if ( children != null ) { for ( int i = 0 ; i < children . length ; ++ i ) { ASTNode child = ( ASTNode ) children [ i ] ; if ( child != null ) { child = child . fullCopy ( ) ; tree . setChild ( child , i ) ; } } } return tree ; }

Cree una copia profunda del subárbol AST en este nodo.La copia está colgando, es decir, no tiene padre.


public EditResultObject ( ) { this . key = Mysplash . getInstance ( ) . getCollection ( ) ; }


public VideoRemoveTagQuery ownerId  ( Integer value ) { return unsafeParam ( "owner_id" , value ) ; }

ID del usuario o comunidad que posee el video.


public Bundler putAll  ( Bundle bundle ) { this . bundle . putAll ( bundle ) ; return this ; }

Inserta todas las asignaciones del paquete dado en este paquete.


public SoftReferenceSymbolTable ( int initialCapacity , float loadFactor ) { if ( initialCapacity < 0 ) { throw new IllegalArgumentException ( "Illegal Capacity: " + initialCapacity ) ; } if ( loadFactor <= 0 || Float . isNaN ( loadFactor ) ) { throw new IllegalArgumentException ( "Illegal Load: " + loadFactor ) ; } if ( initialCapacity == 0 ) { initialCapacity = 1 ; } fLoadFactor = loadFactor ; fTableSize = initialCapacity ; fBuckets = new SREntry [ fTableSize ] ; fThreshold = ( int ) ( fTableSize * loadFactor ) ; fCount = 0 ; fReferenceQueue = new ReferenceQueue ( ) ; }

Construye un nuevo símbolo vacío con la capacidad inicial especificada y el factor de carga especificado.


public boolean findPrevious  ( String regularExpression ) { return findAndUncollapseNext ( regularExpression , true , false ) > 0 ; }


public void increment  ( final double [ ] data ) throws MathIllegalArgumentException  { int length = data . length ; MathUtils . checkDimension ( length , dimension ) ; for ( int i = 0 ; i < length ; i ++ ) { for ( int j = i ; j < length ; j ++ ) { getElement ( i , j ) . increment ( data [ i ] , data [ j ] ) ; } } }

Incrementa la matriz de covarianza con una fila de datos.


@ Override public String toString  ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( getClass ( ) . getSimpleName ( ) ) ; sb . append ( " [" ) ; sb . append ( "Hash = " ) . append ( hashCode ( ) ) ; sb . append ( ", userId=" ) . append ( userId ) ; sb . append ( ", menuId=" ) . append ( menuId ) ; sb . append ( ", permission=" ) . append ( permission ) ; sb . append ( "]" ) ; return sb . toString ( ) ; }

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


protected DominatorNode < N > fetchDode  ( N gode ) { DominatorNode < N > dode ; if ( godeToDode . containsKey ( gode ) ) { dode = godeToDode . get ( gode ) ; } else { dode = new DominatorNode ( gode ) ; godeToDode . put ( gode , dode ) ; } return dode ; }

Método de conveniencia, asegura que no creamos más de un dominatornodo para un bloque dado.


public static String urlEncodePostalAddress  ( GenericValue postalAddress ) throws GenericEntityException , UnsupportedEncodingException { Assert . notNull ( "postalAddress" , postalAddress ) ; if ( ! "PostalAddress" . equals ( postalAddress . getEntityName ( ) ) ) { throw new IllegalArgumentException ( "postalAddress argument is not a PostalAddress entity" ) ; } StringBuilder sb = new StringBuilder ( ) ; if ( postalAddress . get ( "address1" ) != null ) { sb . append ( postalAddress . get ( "address1" ) ) ; } if ( postalAddress . get ( "address2" ) != null ) { sb . append ( ", " ) . append ( postalAddress . get ( "address2" ) ) ; } if ( postalAddress . get ( "city" ) != null ) { sb . append ( ", " ) . append ( postalAddress . get ( "city" ) ) ; } if ( postalAddress . get ( "stateProvinceGeoId" ) != null ) { GenericValue geoValue = postalAddress . getRelatedOne ( "StateProvinceGeo" , false ) ; if ( geoValue != null ) { sb . append ( ", " ) . append ( geoValue . get ( "geoName" ) ) ; } } else if ( postalAddress . get ( "countyGeoId" ) != null ) { GenericValue geoValue = postalAddress . getRelatedOne ( "CountyGeo" , false ) ; if ( geoValue != null ) { sb . append ( ", " ) . append ( geoValue . get ( "geoName" ) ) ; } } if ( postalAddress . get ( "postalCode" ) != null ) { sb . append ( ", " ) . append ( postalAddress . get ( "postalCode" ) ) ; } if ( postalAddress . get ( "countryGeoId" ) != null ) { GenericValue geoValue = postalAddress . getRelatedOne ( "CountryGeo" , false ) ; if ( geoValue != null ) { sb . append ( ", " ) . append ( geoValue . get ( "geoName" ) ) ; } } String postalAddressString = sb . toString ( ) . trim ( ) ; while ( postalAddressString . contains ( "  " ) ) { postalAddressString = postalAddressString . replace ( "  " , " " ) ; } return URLEncoder . encode ( postalAddressString , "UTF-8" ) ; }

Devuelve un <b> postaladdress </ b> <code> GenericValue </ Code> como una URL codificada <código> cadena </ código>.


public void updateClassifications  ( String [ ] names , List < UpdateItem > updateItemList , ProgressListener progressListener ) throws IOException , CanceledException { UpdateItemList updateItems = ( UpdateItemList ) updateItemList ; final int numClassifications = names . length ; long maxProgress = 0 ; for ( int i = 0 ; i < numClassifications ; i ++ ) { maxProgress += updateItems . getClassIds ( i ) . size ( ) ; } progressListener . setMaximum ( maxProgress ) ; final RMA2Modifier rma2Modifier = new RMA2Modifier ( file ) ; for ( int i = 0 ; i < numClassifications ; i ++ ) { rma2Modifier . startClassificationSection ( names [ i ] ) ; try { for ( Integer classId : updateItems . getClassIds ( i ) ) { int weightedSize = updateItems . getSize ( i , classId ) ; final List < Long > positions = new ArrayList < > ( ) ; if ( weightedSize > 0 ) { for ( UpdateItem item = updateItems . getFirst ( i , classId ) ; item != null ; item = updateItems . getUpdateItem ( item . getNextInClassification ( i ) ) ) { positions . add ( item . getReadUId ( ) ) ; } } rma2Modifier . addToClassification ( classId , weightedSize , positions ) ; progressListener . incrementProgress ( ) ; } } finally { rma2Modifier . finishClassificationSection ( ) ; } } rma2Modifier . close ( ) ; }

Actualiza los valores de Classid para una colección de lecturas.


public IMethod findOverriddenMethodInHierarchy  ( IType type , IMethod overriding ) throws JavaModelException { IMethod method = findOverriddenMethodInType ( type , overriding ) ; if ( method != null ) { return method ; } IType superClass = fHierarchy . getSuperclass ( type ) ; if ( superClass != null ) { IMethod res = findOverriddenMethodInHierarchy ( superClass , overriding ) ; if ( res != null ) { return res ; } } IType [ ] superInterfaces = fHierarchy . getSuperInterfaces ( type ) ; for ( int i = 0 ; i < superInterfaces . length ; i ++ ) { IMethod res = findOverriddenMethodInHierarchy ( superInterfaces [ i ] , overriding ) ; if ( res != null ) { return res ; } } return method ; }

Encuentra el método directamente anulado en un tipo y sus súper tipos.Primero se examina la super clase y luego las interfaces implementadas.Con genéricos, es posible que se superen los 2 métodos en el mismo tipo al mismo tiempo.En ese caso, se devuelve el primer método anulado.


public WordCloudDrawer createInstance  ( ) { final WordCloudDrawer drawer = new WordCloudDrawer ( ) ; drawer . setViewer ( viewer ) ; drawer . setChartData ( new DefaultChartData ( ) ) ; drawer . setClass2HigherClassMapper ( class2HigherClassMapper ) ; drawer . setSeriesLabelGetter ( seriesLabelGetter ) ; drawer . setExecutorService ( executorService ) ; return drawer ; }

Cree una nueva instancia del tipo de cajón dado, compartiendo estructuras de datos internas


public boolean add_color_tags  ( ) { return soot . PhaseOptions . getBoolean ( options , "add-color-tags" ) ; }

Agregue etiquetas de color: agregue etiquetas de color a los resultados de la matriz de análisis de verificación enlazada .. Agregue etiquetas de color a los resultados del análisis de verificación de los límites de la matriz.


public boolean isSelected  ( ) { ClusterViewer viewer = getViewer ( ) ; return viewer . getPcoaTab ( ) != null && viewer . getPcoaTab ( ) . isShowBiPlot ( ) ; }


public ScrollPaneAdjuster ( JScrollPane scrollPane , Point centerDC ) { Rectangle viewRect = scrollPane . getViewport ( ) . getViewRect ( ) ; scrollBarX = scrollPane . getHorizontalScrollBar ( ) ; scrollBarY = scrollPane . getVerticalScrollBar ( ) ; if ( centerDC == null ) { xPortionOfVisible = 0.5 ; yPortionOfVisible = 0.5 ; } else { xPortionOfVisible = ( centerDC . x - viewRect . x ) / ( double ) viewRect . width ; yPortionOfVisible = ( centerDC . y - viewRect . y ) / ( double ) viewRect . height ; } xFactor = ( scrollBarX . getValue ( ) + xPortionOfVisible * scrollBarX . getVisibleAmount ( ) ) / ( scrollBarX . getMaximum ( ) - scrollBarX . getMinimum ( ) ) ; yFactor = ( scrollBarY . getValue ( ) + yPortionOfVisible * scrollBarY . getVisibleAmount ( ) ) / ( scrollBarY . getMaximum ( ) - scrollBarY . getMinimum ( ) ) ; }

Construir objeto y "Recordar" cómo ScrollPane está centrado actualmente


public boolean add  ( JobStatus jobStatus ) { boolean replaced = mJobSet . remove ( jobStatus ) ; mJobSet . add ( jobStatus ) ; if ( jobStatus . isPersisted ( ) ) { maybeWriteStatusToDiskAsync ( ) ; } if ( DEBUG ) { } return replaced ; }

Agregue un trabajo a la lista maestra, persistiéndola si es necesario.Si el trabajo de trabajo ya existe, será reemplazado.


public void close  ( ) { toolTipHelper . shutdownNow ( ) ; }

Llame a esto cuando la ventana se destruya para liberar el hilo de la información sobre herramientas


private boolean isLeafEdge  ( Edge f , PhyloGraph graph ) { return graph . getDegree ( graph . getSource ( f ) ) == 1 || graph . getDegree ( graph . getTarget ( f ) ) == 1 ; }


public boolean onReceivedHttpAuthRequest  ( CordovaWebView view , ICordovaHttpAuthHandler handler , String host , String realm ) { return false ; }

Llamado cuando el sistema recibió una solicitud de autenticación HTTP.El complemento puede usar el HTTPAuthhandler suministrado para procesar este desafío de autenticación.


public StorelessCovariance ( final int dim ) { this ( dim , true ) ; }

Cree una matriz de covarianza corregida de sesgo con una dimensión dada.


static int databaseCheck  ( String stmt , int offset ) { int length = offset + _DATABASE . length ; if ( stmt . length ( ) >= length && ParseUtil . compare ( stmt , offset , _DATABASE ) ) { if ( stmt . length ( ) > length && stmt . charAt ( length ) != ' ' ) { return OTHER ; } else { return DATABASE ; } } return OTHER ; }


public boolean accept  ( File dir , String name ) { return false ; }


public void addArg  ( Expr node ) { List < Expr > list = ( parent == null || state == null ) ? getArgListNoTransform ( ) : getArgList ( ) ; list . addChild ( node ) ; }


public void addBodyDecl  ( BodyDecl node ) { List < BodyDecl > list = ( parent == null || state == null ) ? getBodyDeclListNoTransform ( ) : getBodyDeclList ( ) ; list . addChild ( node ) ; }


public SyncHttpClient ( int httpPort , int httpsPort ) { super ( false , httpPort , httpsPort ) ; }


protected AbstractUnivariateDifferentiableSolver ( final double absoluteAccuracy ) { super ( absoluteAccuracy ) ; }

Construye un solucionador con precisión absoluta.


@ CheckReturnValue public AddCmd files  ( Iterable < String > files ) { Preconditions . checkState ( ! all , "'all' and passing files is incompatible" ) ; return new AddCmd ( force , false , files ) ; }

Configure los archivos para agregar al índice.


protected void ae  ( int expected , int actual ) { assertEquals ( expected , actual ) ; }


public static boolean instanceOf  ( Object obj , Class < ? > typeClass ) { if ( obj == null ) return true ; Class < ? > objectClass = obj . getClass ( ) ; return instanceOf ( objectClass , typeClass ) ; }

Pruebas Si un objeto es una instancia de una subclase o implementa adecuadamente una interfaz.


public SimplexSolver ( final double epsilon , final int maxUlps , final double cutOff ) { this . epsilon = epsilon ; this . maxUlps = maxUlps ; this . cutOff = cutOff ; this . pivotSelection = PivotSelectionRule . DANTZIG ; }

Construye un solucionador simple con una cantidad de error especificada aceptada.


protected void init  ( ) { mStatus = STATUS_OK ; mFrameCount = 0 ; mGifFrames = new ArrayList < GifFrame > ( ) ; }


public boolean isApplicable  ( ) { return getViewer ( ) . getParentViewer ( ) != null && getViewer ( ) . getParentViewer ( ) . hasComparableData ( ) && getViewer ( ) . getParentViewer ( ) . getSelectedNodes ( ) . size ( ) > 0 ; }

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


public void solve  ( ) { submitInitialSeeds ( ) ; awaitCompletionComputeValuesAndShutdown ( ) ; }

Ejecuta el solucionador en el problema configurado.Esto puede llevar algún tiempo.


private void initResource  ( String path ) { }

Añadir ruta de recursos a la aplicación host.


public void append  ( int key , E value ) { if ( mSize != 0 && key <= mKeys [ mSize - 1 ] ) { put ( key , value ) ; return ; } if ( mGarbage && mSize >= mKeys . length ) { gc ( ) ; } int pos = mSize ; if ( pos >= mKeys . length ) { int n = ContainerHelpers . idealIntArraySize ( pos + 1 ) ; int [ ] nkeys = new int [ n ] ; Object [ ] nvalues = new Object [ n ] ; System . arraycopy ( mKeys , 0 , nkeys , 0 , mKeys . length ) ; System . arraycopy ( mValues , 0 , nvalues , 0 , mValues . length ) ; mKeys = nkeys ; mValues = nvalues ; } mKeys [ pos ] = key ; mValues [ pos ] = value ; mSize = pos + 1 ; }

Pone un par de claves / valor en la matriz, optimizando para el caso donde la clave es mayor que todas las teclas existentes en la matriz.


@ Deprecated public static void write  ( StringBuffer data , Writer output ) throws IOException { if ( data != null ) { output . write ( data . toString ( ) ) ; } }

Escribe caracteres de un <código> StringBuffer </ Code> a un <código> Writer </ Code>.


public static GenericRecord subsetRecord  ( GenericRecord record , Schema subsetSchema ) { return subsetRecord ( record , subsetSchema , null ) ; }

El subconjunto del registro original que contiene los valores para el esquema de subconjunto dado.


public GroupsSetCallbackSettingsQuery messageNew  ( Boolean value ) { return unsafeParam ( "message_new" , value ) ; }


public static final void onPlayerLogout  ( Player player ) { PlayerGroup group = player . getPlayerGroup2 ( ) ; if ( group != null ) { PlayerGroupMember member = group . getMember ( player . getObjectId ( ) ) ; member . updateLastOnlineTime ( ) ; group . onEvent ( new PlayerDisconnectedEvent ( group , player ) ) ; } }

Mundo de hojas de jugador - Set Último online en miembro


private void calculateNewPosition  ( ) { View offsetView = mAnchorView ; int xOffset = 0 ; int yOffset = 0 ; if ( mAnchorBelow ) yOffset = mAnchorView . getHeight ( ) ; while ( offsetView != null ) { xOffset += offsetView . getLeft ( ) ; yOffset += offsetView . getTop ( ) ; if ( ! ( offsetView . getParent ( ) instanceof View ) ) break ; offsetView = ( View ) offsetView . getParent ( ) ; } if ( mCenterView ) { xOffset += mAnchorView . getWidth ( ) / 2 ; } else if ( LocalizationUtils . isLayoutRtl ( ) ) { xOffset += mAnchorView . getWidth ( ) ; } int tooltipWidth = mTooltipText . getMeasuredWidth ( ) ; xOffset -= tooltipWidth / 2 ; getBackground ( ) . getPadding ( mCachedPaddingRect ) ; tooltipWidth += mCachedPaddingRect . left + mCachedPaddingRect . right ; xOffset -= mCachedPaddingRect . left ; int defaultXOffset = xOffset ; View rootView = mAnchorView . getRootView ( ) ; if ( xOffset + tooltipWidth > rootView . getWidth ( ) ) { xOffset = rootView . getWidth ( ) - tooltipWidth - mTooltipEdgeMargin ; } else if ( xOffset < 0 ) { xOffset = mTooltipEdgeMargin ; } int newOffset = - ( xOffset - defaultXOffset ) ; if ( Math . abs ( newOffset ) > mTooltipText . getMeasuredWidth ( ) / 2 - mBubbleTipXMargin ) { newOffset = ( mTooltipText . getMeasuredWidth ( ) / 2 - mBubbleTipXMargin ) * ( int ) Math . signum ( newOffset ) ; } ( ( BubbleBackgroundDrawable ) getBackground ( ) ) . setBubbleArrowXOffset ( newOffset ) ; if ( mAnchorBelow ) { mXPosition = xOffset ; mYPosition = yOffset - mTooltipTopMargin ; } else { mXPosition = xOffset ; mYPosition = mAnchorView . getRootView ( ) . getHeight ( ) - yOffset + mTooltipTopMargin ; } }

Calcula la nueva posición para la burbuja, actualizando MXPOSITION, MYPOSITION, MYOFFSET y la información de desplazamiento de la flecha de burbujas sin actualizar la UI.Para ver los cambios, ShowatCalcationPosition se debe llamar explícitamente.


public Object clone  ( ) { TShortArrayList list = null ; try { list = ( TShortArrayList ) super . clone ( ) ; list . _data = toNativeArray ( ) ; } catch ( CloneNotSupportedException e ) { } return list ; }

Devuelve un clon de esta lista.Dado que esta es una colección primitiva, este será un clon profundo.


public UsersSearchQuery ageTo  ( Integer value ) { return unsafeParam ( "age_to" , value ) ; }


public SetSpawn ( World world , BlockPos spawnPoint ) { super ( world ) ; this . spawnPoint = spawnPoint ; }

Crea un nuevo evento SetSpawn.¡Sólo para uso interno!


public static String decompressForGzip  ( byte [ ] compressed ) { final int BUFFER_SIZE = compressed . length ; GZIPInputStream gis = null ; ByteArrayInputStream is = null ; try { is = new ByteArrayInputStream ( compressed ) ; gis = new GZIPInputStream ( is , BUFFER_SIZE ) ; StringBuilder string = new StringBuilder ( ) ; byte [ ] data = new byte [ BUFFER_SIZE ] ; int bytesRead ; while ( ( bytesRead = gis . read ( data ) ) != - 1 ) { string . append ( new String ( data , 0 , bytesRead , "UTF-8" ) ) ; } return string . toString ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } finally { okhttp3 . internal . Util . closeQuietly ( gis ) ; okhttp3 . internal . Util . closeQuietly ( is ) ; } return null ; }


Crea los valores esperados de prueba de densidad de probabilidad predeterminada.Los valores de referencia son de R, versión versión 2.15.3.


public QueryTemplatePacket and  ( UnionTemplatePacket template ) { LinkedList < QueryTemplatePacket > optimizedPackets = new LinkedList < QueryTemplatePacket > ( ) ; for ( QueryTemplatePacket packet : template . getPackets ( ) ) { QueryTemplatePacket result = new QueryTemplatePacket ( this ) ; result . intersectRanges ( packet ) ; result . intersectUids ( packet ) ; if ( ! result . isAlwaysEmpty ( ) ) optimizedPackets . add ( result ) ; } if ( optimizedPackets . isEmpty ( ) ) template . setAlwaysEmpty ( true ) ; template . setPackets ( optimizedPackets ) ; return template ; }

Fusionar plantillas dadas en una plantilla.Por ejemplo: x = 3 y (y = 5 o z = 8) ==> (x = 3 e y = 5) o (x = 3 y z = 8)


public WeightEvaluationQuery ( DruidAggregationQuery < ? > query , int weight ) { super ( makeInnerQuery ( query , weight ) , AllGranularity . INSTANCE , Collections . < Dimension > emptyList ( ) , ( Filter ) null , ( Having ) null , Collections . < Aggregation > singletonList ( new LongSumAggregation ( "count" , "count" ) ) , Collections . < PostAggregation > emptyList ( ) , query . getIntervals ( ) , query . getQueryType ( ) == DefaultQueryType . GROUP_BY ? stripColumnsFromLimitSpec ( query ) : null ) ; }

Generar una consulta que calcula el peso uniforme de la cardinalidad de respuesta de la consulta dada.


public ConstraintWidget findWidgetInSelection  ( float x , float y ) { ConstraintWidget found = null ; ArrayList < ConstraintWidget > selection = mSelection . getWidgets ( ) ; for ( ConstraintWidget widget : selection ) { WidgetCompanion companion = ( WidgetCompanion ) widget . getCompanionWidget ( ) ; WidgetDecorator decorator = companion . getWidgetDecorator ( WidgetDecorator . BLUEPRINT_STYLE ) ; if ( ! decorator . isVisible ( ) ) { continue ; } if ( widget instanceof ConstraintWidgetContainer ) { ConstraintWidget f = findWidget ( ( ConstraintWidgetContainer ) widget , x , y ) ; if ( f != null ) { found = f ; } } else { int l = widget . getDrawX ( ) ; int t = widget . getDrawY ( ) ; int r = l + widget . getWidth ( ) ; int b = t + widget . getHeight ( ) ; if ( x >= l && x <= r && y >= t && y <= b ) { found = widget ; } } } return found ; }

Encuentre un widget en la coordenada (X, Y) en la selección actual, tomando la visibilidad del decorador en cuenta


private boolean isReadyToBeCancelledLocked  ( JobStatus job ) { return ! job . isReady ( ) && isCurrentlyActiveLocked ( job ) ; }

Criterios para cancelar un trabajo activo: - No está listo, se está ejecutando en un JSC.


private void movePos  ( float deltaY ) { if ( ( deltaY < 0 && mPtrIndicator . isInStartPosition ( ) ) ) { if ( DEBUG ) { PtrCLog . e ( LOG_TAG , String . format ( "has reached the top" ) ) ; } return ; } int to = mPtrIndicator . getCurrentPosY ( ) + ( int ) deltaY ; if ( mPtrIndicator . willOverTop ( to ) ) { if ( DEBUG ) { PtrCLog . e ( LOG_TAG , String . format ( "over top" ) ) ; } to = PtrIndicator . POS_START ; } mPtrIndicator . setCurrentPos ( to ) ; int change = to - mPtrIndicator . getLastPosY ( ) ; updatePos ( mPtrIndicator . isHeader ( ) ? change : - change ) ; }

Si Deltay> 0, mueve el contenido hacia abajo


public static < R > Flowable < R > ifThen  ( BooleanSupplier condition , Publisher < ? extends R > then ) { return ifThen ( condition , then , Flowable . < R > empty ( ) ) ; }

Devuelva un fluido que emite las emisiones de un Flowable específico si una condición se evalúa a VERDADERO, de lo contrario, devolver un vacío fluido.<p> <img anchth = "640" src = "https://raw.github.com/wiki/reactivex/rxjava/images/rx- operadores/ifthen.png" alt = "">


private void onRequest  ( HttpServerRequest request ) { AtomicInteger level = new AtomicInteger ( 0 ) ; request . toObservable ( ) . map ( null ) . lift ( new JsonParserOperator ( ) ) . map ( null ) . flatMap ( null ) . count ( ) . subscribe ( null , null ) ; }


private boolean typeIsPresent  ( String index , String type ) { Set < String > types = cacheIndicesTypes . get ( index ) ; return types != null && types . contains ( type ) ; }

Marque el mapa de memoria para saber si se asigna un tipo a un índice.


@ Override protected void onRestoreState  ( Bundle savedInstanceState ) { super . onRestoreState ( savedInstanceState ) ; }


public static boolean kingLike  ( Item tokenItem ) { String kingName = ( ( String ) tokenItem . findFeature ( "p.name" ) ) . toLowerCase ( ) ; if ( inKingSectionLikeHash ( kingName , KING_NAMES ) ) { return true ; } else { String kingTitle = ( ( String ) tokenItem . findFeature ( "p.p.name" ) ) . toLowerCase ( ) ; return inKingSectionLikeHash ( kingTitle , KING_TITLES ) ; } }

Devuelve VERDADERO si el elemento de token dado contiene un token que está en un contexto similar al rey, por ejemplo, "rey" o "louis".


public boolean forEachValue  ( TIntProcedure procedure ) { Object [ ] keys = _set ; int [ ] values = _values ; for ( int i = values . length ; i -- > 0 ; ) { if ( keys [ i ] != FREE && keys [ i ] != REMOVED && ! procedure . execute ( values [ i ] ) ) { return false ; } } return true ; }

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


public EquipmentConfigurationUpdate ( ) { }


public boolean isApplicable  ( ) { if ( getViewer ( ) == null || ! ( getViewer ( ) instanceof megan . remote . RemoteServiceBrowser ) ) return false ; final megan . remote . RemoteServiceBrowser remoteServiceBrowser = ( megan . remote . RemoteServiceBrowser ) getViewer ( ) ; return ! remoteServiceBrowser . isServiceSelected ( ) && remoteServiceBrowser . getURL ( ) . length ( ) > 0 ; }

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


private Object [ ] [ ] prefetchRecordsFromFile  ( int numberOfRecords ) throws CarbonSortKeyAndGroupByException  { Object [ ] [ ] records = new Object [ numberOfRecords ] [ ] ; for ( int i = 0 ; i < numberOfRecords ; i ++ ) { records [ i ] = getRowFromStream ( ) ; } return records ; }

Este método leerá los registros de Ordenar el archivo TEMP y lo mantendrá en un búfer


public static boolean isLinkedResource  ( IResource resource ) { return resource . isLinked ( IResource . CHECK_ANCESTORS ) ; }

Devuelve verdadero si el recurso es parte de un enlace (es decir, un recurso vinculado o uno de sus hijos.


public SpaceTypeDescriptorBuilder ( String typeName , SpaceTypeDescriptor superTypeDescriptor ) { if ( typeName == null || typeName . length ( ) == 0 ) throw new IllegalArgumentException ( "Argument cannot be null or empty - 'typeName'." ) ; if ( typeName . equals ( ROOT_TYPE_NAME ) ) throw new IllegalArgumentException ( "Argument 'typeName' cannot be '" + ROOT_TYPE_NAME + "' - it is reserved for internal usage." ) ; this . _typeName = typeName ; this . _superTypeDescriptor = superTypeDescriptor ; this . _fixedProperties = new TreeMap < String , SpacePropertyDescriptor > ( ) ; this . _indexes = new HashMap < String , SpaceIndex > ( ) ; this . _fifoGroupingIndexes = new HashSet < String > ( ) ; this . _storageType = StorageType . DEFAULT ; this . _blobstoreEnabled = PojoDefaults . BLOBSTORE_ENABLED ; }

Inicialice un generador de descriptores de tipo usando el nombre de tipo especificado y el descriptor de tipo súper.


private void performTemplateOnEntryCoreSA_impl  ( Context context , ITemplateHolder template , IEntryHolder entry , boolean makeWaitForInfo , boolean isShadow , boolean shadowMatches ) throws TransactionConflictException , EntryDeletedException , TemplateDeletedException , TransactionNotActiveException , SAException , FifoException , NoMatchException { XtnEntry templateTransactionEntry = null ; if ( template . getXidOriginatedTransaction ( ) != null ) { templateTransactionEntry = getTransaction ( template . getXidOriginatedTransaction ( ) ) ; if ( templateTransactionEntry == null || ! templateTransactionEntry . m_Active ) throw new TransactionNotActiveException ( template . getXidOriginatedTransaction ( ) ) ; } if ( isShadow ) { if ( template . getXidOriginatedTransaction ( ) != null && template . getXidOriginatedTransaction ( ) . equals ( entry . getWriteLockTransaction ( ) ) ) throw ENTRY_DELETED_EXCEPTION ; } if ( template . isFifoSearch ( ) ) { checkValidityOfFifoTemplateOnEntry ( context , entry , template ) ; if ( context . isNonBlockingReadOp ( ) && entry . isDeleted ( ) ) throw ENTRY_DELETED_EXCEPTION ; } final boolean isReadCommitted = template . isReadOperation ( ) && indicateReadCommitted ( context . isNonBlockingReadOp ( ) ? context . getLastRawMatchSnapshot ( ) : entry . getTxnEntryData ( ) , template ) ; XtnConfilctCheckIndicators cres = checkTransactionConflict ( context , entry , template , isShadow ) ; if ( cres != XtnConfilctCheckIndicators . NO_CONFLICT ) { if ( cres == XtnConfilctCheckIndicators . ENTRY_DELETED || cres == XtnConfilctCheckIndicators . DELETED_BY_OWN_XTN ) { throw ENTRY_DELETED_EXCEPTION ; } boolean skipWFenlist = isReadCommitted && ! isShadow && shadowMatches ; if ( makeWaitForInfo && ! skipWFenlist && ! template . isDeleted ( ) ) { if ( ! template . isInCache ( ) ) { if ( template . isMultipleIdsOperation ( ) ) template . getMultipleIdsContext ( ) . setNonMainThreadUsed ( ) ; _cacheManager . insertTemplate ( context , template , false ) ; } _cacheManager . makeWaitForInfo ( context , entry , template ) ; } if ( ! skipWFenlist && template . isChange ( ) && ! template . isInCache ( ) ) { if ( template . isChangeMultiple ( ) ) ( ( ExtendedAnswerHolder ) ( template . getAnswerHolder ( ) ) ) . addRejectedEntriesInfo ( Context . _operationTimeoutExecption , entry . getEntryData ( ) , entry . getUID ( ) ) ; else template . setRejectedOpOriginalExceptionAndEntry ( new OperationTimeoutException ( ) , entry . getEntryData ( ) ) ; } if ( ! makeWaitForInfo && template . isIfExist ( ) ) context . setPossibleIEBlockingMatch ( true ) ; throw TX_CONFLICT_EXCEPTION ; } if ( template . isFifoTemplate ( ) && ! _isLocalCache && context . isNonBlockingReadOp ( ) ) { checkValidityOfFifoTemplateOnEntry ( context , entry , template ) ; } final IServerTypeDesc tte = _typeManager . getServerTypeDesc ( entry . getClassName ( ) ) ; if ( template . isFifoGroupPoll ( ) ) _fifoGroupsHandler . fifoGroupsOnOperationAction ( context , entry , template , tte ) ; if ( template . isBatchOperation ( ) && template . getBatchOperationContext ( ) . isInProcessedUids ( entry . getUID ( ) ) ) throw NO_MATCH_EXCEPTION ; switch ( template . getTemplateOperation ( ) ) { case SpaceOperations . READ : case SpaceOperations . READ_IE : performReadTemplateOnEntryCoreSA ( context , template , entry , isShadow , isReadCommitted ) ; break ; case SpaceOperations . TAKE : case SpaceOperations . TAKE_IE : if ( template . isInitiatedEvictionOperation ( ) ) performInitiatedEvictionTemplateOnEntryCoreSA ( context , template , entry , tte ) ; else performTakeTemplateOnEntryCoreSA ( context , template , entry , tte ) ; break ; case SpaceOperations . UPDATE : try { performUpdateTemplateOnEntryCoreSA ( context , template , entry , templateTransactionEntry , tte ) ; } catch ( ChangeInternalException ex ) { if ( template . isBatchOperation ( ) ) template . getBatchOperationContext ( ) . addToProcessedUidsIfNeeded ( entry . getUID ( ) ) ; throw NO_MATCH_EXCEPTION ; } break ; default : if ( _logger . isLoggable ( Level . SEVERE ) ) _logger . severe ( "Unknown operation in template." ) ; } }

Realiza la operación de la plantilla especificada en la entrada especificada.ISSHADOW = VERDADERO Si el procesamiento de la sombra necesitaba las sombras de sombra: si la sombra coincide con cuando se llama al maestro con este método, asume que los objetos que deben estar bloqueados están bloqueados.


public boolean contains  ( String name ) { return legionsByName . containsKey ( name . toLowerCase ( ) ) ; }

Devuelve VERDADERO si la legión está en caché por nombre


public long durationRestart  ( ) { long now = System . currentTimeMillis ( ) ; long d = now - t ; t = now ; return d ; }


public JSONArray ( Object array ) throws JSONException { this ( ) ; if ( array . getClass ( ) . isArray ( ) ) { int length = Array . getLength ( array ) ; for ( int i = 0 ; i < length ; i += 1 ) { this . put ( JSONObject . wrap ( Array . get ( array , i ) ) ) ; } } else { throw new JSONException ( "JSONArray initial value should be a string or collection or array." ) ; } }


public static < T > List < T > toList  ( T obj1 ) { List < T > list = new LinkedList < T > ( ) ; list . add ( obj1 ) ; return list ; }

Crear una lista de parámetros objx pasados


public void increment  ( float score ) { cntGenomicLoci ++ ; sumScore += score ; }

Incrementa los atributos por puntuación dada


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

Crea una nueva instancia de la clase de ZwaveBasicCommandClass.


protected boolean rightOn  ( Vector2 a , Vector2 b , Vector2 p ) { return Segment . getLocation ( p , a , b ) <= 0 ; }

Devuelve VERDADERO si el punto dado P está a la derecha o en la línea creada por A-B.


@ FXML private void reset  ( ) { lineChart . getXAxis ( ) . setAutoRanging ( true ) ; lineChart . getYAxis ( ) . setAutoRanging ( true ) ; final ObservableList < XYChart . Series < Number , Number > > data = lineChart . getData ( ) ; lineChart . setData ( FXCollections . < XYChart . Series < Number , Number > > emptyObservableList ( ) ) ; lineChart . setData ( data ) ; lineChart . setData ( FXCollections . < XYChart . Series < Number , Number > > emptyObservableList ( ) ) ; lineChart . setData ( data ) ; lineChart . setAnimated ( true ) ; }

Restablecer tabla.Trabajo derivado creado a partir de los ejemplos de JFxutils (https://github.com/gillius/jfxutils).


public Grammar removeGrammar  ( XMLGrammarDescription desc ) { synchronized ( fGrammars ) { clean ( ) ; int hash = hashCode ( desc ) ; int index = ( hash & 0x7FFFFFFF ) % fGrammars . length ; for ( Entry entry = fGrammars [ index ] ; entry != null ; entry = entry . next ) { if ( ( entry . hash == hash ) && equals ( entry . desc , desc ) ) { return removeEntry ( entry ) ; } } return null ; } }

Elimina la gramática asociada a la descripción de la gramática especificada desde la piscina de gramática y devuelve la gramática eliminada.Actualmente, el nombre del elemento raíz se usa como la clave para las gramáticas DTD y el espacio de nombres de destino se usa como la clave para las gramáticas de esquema.


private void checkNoCharactersMissing  ( int totalLength , List < Token > tokens ) { if ( ! tokens . isEmpty ( ) && tokens . get ( tokens . size ( ) - 1 ) . right != totalLength ) { String error = String . format ( "Lengths don't match: %s instead of %s" , tokens . get ( tokens . size ( ) - 1 ) . right , totalLength ) ; throw new RuntimeException ( error ) ; } int start = 0 ; for ( int i = 0 ; i < tokens . size ( ) ; i ++ ) { Token token = tokens . get ( i ) ; if ( token . left != start ) { throw new RuntimeException ( "Gap/inconsistency at: " + start ) ; } start = token . right ; } }

Código de depuración temporal.Necesitamos tokenizar cada personaje en la cadena de entrada.


public CriteriaHibernateSpaceDataSourceConfigurer augmentInitialLoadEntries  ( boolean augmentInitialLoadEntries ) { this . augmentInitialLoadEntries = augmentInitialLoadEntries ; return this ; }

Interruptor de características para el aumento de entradas de carga inicial (creación de la consulta específica de la partición para las entradas).Por defecto a <Code> True </ Code>.


public void updateConstraints  ( ) { if ( myChildren . size ( ) == myDeleted . size ( ) ) { return ; } for ( NlComponent child : myChildren ) { if ( myDeleted . contains ( child ) ) { continue ; } for ( XmlAttribute attribute : child . getTag ( ) . getAttributes ( ) ) { String id = getId ( attribute ) ; if ( id != null ) { if ( myDeletedIds . contains ( id ) ) { String name = attribute . getLocalName ( ) ; attribute . delete ( ) ; NlComponent deleted = myNodeMap . get ( id ) ; if ( deleted != null ) { ConstraintType type = ConstraintType . fromAttribute ( name ) ; if ( type != null ) { transfer ( deleted , child , type , 0 ) ; } } } } } } }

Actualiza las restricciones en el diseño para manejar la eliminación de un conjunto de nodos.Esto asegura que cualquier restricción que apunte a uno de los nodos eliminados se cambie correctamente para apuntar a un nodo no eliminado con restricciones similares.


public void calculateSourcesSinksEntrypoints  ( String sourceSinkFile ) throws IOException , XmlPullParserException { ISourceSinkDefinitionProvider parser = null ; String fileExtension = sourceSinkFile . substring ( sourceSinkFile . lastIndexOf ( "." ) ) ; fileExtension = fileExtension . toLowerCase ( ) ; if ( fileExtension . equals ( ".xml" ) ) parser = XMLSourceSinkParser . fromFile ( sourceSinkFile ) ; else if ( fileExtension . equals ( ".txt" ) ) parser = PermissionMethodParser . fromFile ( sourceSinkFile ) ; else throw new UnsupportedDataTypeException ( "The Inputfile isn't a .txt or .xml file." ) ; calculateSourcesSinksEntrypoints ( parser ) ; }

Calcula los conjuntos de fuentes, hundimientos, puntos de entrada y métodos de devolución de llamada para el archivo APK dado.


public SplitSystem deleteTaxa  ( List labels , Taxa taxa ) { for ( Object label1 : labels ) { String label = ( String ) label1 ; taxa . remove ( label ) ; } SplitSystem result = new SplitSystem ( ) ; for ( Iterator it = iterator ( ) ; it . hasNext ( ) ; ) { Split split = ( Split ) it . next ( ) ; Split induced = split . getInduced ( taxa . getBits ( ) ) ; if ( result . contains ( induced ) ) { Split other = result . get ( induced ) ; other . setWeight ( other . getWeight ( ) + induced . getWeight ( ) ) ; } else if ( induced . getSplitSize ( ) > 0 ) result . addSplit ( induced ) ; } return result ; }


private synchronized boolean waitResume  ( ) { return true ; }

Espera por curriculum vitae.Si este reproductor de audio está en pausa, espera que el jugador sea reanudado.Devuelve si se reanuda, canceló o se apaga.


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

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


public static INDArray toMatrix  ( List < List < Writable > > records ) { INDArray arr = Nd4j . create ( records . size ( ) , records . get ( 0 ) . size ( ) ) ; for ( int i = 0 ; i < arr . rows ( ) ; i ++ ) { arr . putRow ( i , toArray ( records . get ( i ) ) ) ; } return arr ; }

Convertir un conjunto de registros en una matriz


public JSONArray put  ( int index , Object value ) throws JSONException { JSONObject . testValidity ( value ) ; if ( index < 0 ) { throw new JSONException ( "JSONArray[" + index + "] not found." ) ; } if ( index < this . length ( ) ) { this . myArrayList . set ( index , value ) ; } else { while ( index != this . length ( ) ) { this . put ( JSONObject . NULL ) ; } this . put ( value ) ; } return this ; }

Ponga o reemplace un valor de objeto en el JSONARRAY.Si el índice es mayor que la longitud del JSONARRAY, entonces los elementos nulos se agregarán según sea necesario para rellenarlo.


public T distanceSq  ( final FieldVector3D < T > v ) { final T dx = v . x . subtract ( x ) ; final T dy = v . y . subtract ( y ) ; final T dz = v . z . subtract ( z ) ; return dx . multiply ( dx ) . add ( dy . multiply ( dy ) ) . add ( dz . multiply ( dz ) ) ; }

Calcule el cuadrado de la distancia entre la instancia y otro vector.<p> Llamar a este método es equivalente a la llamada: <código> q.subtract (P) .getnormsq () </ código> Excepto que no se construye un vector intermedio </ p>


public Pair < Set < String > , Set < String > > diff  ( Set < String > segmentsReceived ) { Set < String > segmentsAdded ; Set < String > segmentsRemoved ; synchronized ( logSegments ) { Set < String > segmentsCached = logSegments . keySet ( ) ; segmentsAdded = Sets . difference ( segmentsReceived , segmentsCached ) . immutableCopy ( ) ; segmentsRemoved = Sets . difference ( segmentsCached , segmentsReceived ) . immutableCopy ( ) ; } return Pair . of ( segmentsAdded , segmentsRemoved ) ; }

Diff con la nueva lista de segmentos recibidos <Código> SegmentRecebeived </ Code>.


@ Override public void characters  ( XMLString text , Augmentations augs ) throws XNIException { if ( fDocumentHandler != null && ! fOnlyPassPrefixMappingEvents ) { fDocumentHandler . characters ( text , augs ) ; } }


public java . lang . Boolean isEscaped  ( ) { return escaped ; }

Obtiene el valor de la propiedad escapada.


public static void packHeader  ( PkgHeader header , byte [ ] bs ) throws UnsupportedEncodingException { Arrays . fill ( bs , 0 , FDHT_PROTO_PKG_HEADER_SIZE , ( byte ) 0 ) ; ProtoCommon . int2buff ( header . body_len , bs , PROTO_HEADER_BODY_LEN_INDEX ) ; ProtoCommon . int2buff ( header . key_hash_code , bs , PROTO_HEADER_KEY_HASH_CODE_INDEX ) ; ProtoCommon . int2buff ( header . timestamp , bs , PROTO_HEADER_TIMESTAMP_INDEX ) ; ProtoCommon . int2buff ( header . expires , bs , PROTO_HEADER_EXPIRES_INDEX ) ; bs [ PROTO_HEADER_CMD_INDEX ] = header . cmd ; bs [ PROTO_HEADER_KEEP_ALIVE_INDEX ] = header . keep_alive ; bs [ PROTO_HEADER_STATUS_INDEX ] = header . status ; return ; }

Paquete de encabezado por FastDHT Transfer Protocol


public static void overScrollBy  ( final PullToRefreshBase < ? > view , final int deltaX , final int scrollX , final int deltaY , final int scrollY , final int scrollRange , final boolean isTouchEvent ) { overScrollBy ( view , deltaX , scrollX , deltaY , scrollY , scrollRange , 0 , DEFAULT_OVERSCROLL_SCALE , isTouchEvent ) ; }

Método de ayudante para descifrar que encapsula toda la función necesaria.Esta versión de la llamada se usa para las vistas que necesitan especificar un rango de desplazamiento, pero vuelve a desplazarse a su borde correctamente.


public MarketGetAlbumsQuery ( VkApiClient client , UserActor actor , int ownerId ) { super ( client , "market.getAlbums" , GetAlbumsResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; ownerId ( ownerId ) ; }

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


public void denyAll  ( Map < PermissionFlag , Message > flags ) { generalPermissions . putAll ( flags ) ; }

Cambia el permiso predeterminado para todas las banderas en el mapa, no afectará los permisos y restricciones directas.


private ByteBuffer wrap  ( GSByteArrayOutputStream bos ) { ByteBuffer byteBuffer = ByteBuffer . wrap ( bos . getBuffer ( ) ) ; byteBuffer . order ( ByteOrder . BIG_ENDIAN ) ; return byteBuffer ; }

Envuelve un búfer interno GSBYTEARRAYOUTTSTREAMSTREAM con un bytebuffer


private void writeObject  ( ObjectOutputStream oos ) throws IOException { oos . defaultWriteObject ( ) ; MatrixUtils . serializeRealVector ( coefficients , oos ) ; }


void resume  ( ) { paused . set ( false ) ; synchronized ( pauseLock ) { pauseLock . notifyAll ( ) ; } }

Reanuda el trabajo del motor.Las tareas pausadas "cargar y mostrar" continuarán su trabajo.


@ Override public int compareTo  ( IdentifiableObject object ) { if ( this . getDisplayName ( ) == null ) { return object . getDisplayName ( ) == null ? 0 : 1 ; } return object . getDisplayName ( ) == null ? - 1 : this . getDisplayName ( ) . compareToIgnoreCase ( object . getDisplayName ( ) ) ; }

Compara los objetos basados en el nombre de la pantalla.Se ordena un nombre de pantalla nulo después de un nombre de pantalla no nulo.


private InstallOperation < File , File > createInitSdkOperation  ( InstallContext installContext , double progressRatio ) { File handoffSource = getHandoffAndroidSdkSource ( ) ; if ( handoffSource != null ) { return new MergeOperation ( handoffSource , installContext , progressRatio ) ; } return InstallOperation . wrap ( installContext , new ReturnValue ( ) , 0 ) ; }

<p> crea una operación que preparará SDK para que se puedan instalar los componentes. </ p> <p> escenarios compatibles: </ p> <ol> <li> illing Wizard Hoje el repositorio de SDK para fusionar - Ferge ocurrirá si destinoexiste o no. </ li> <li> SDK válido en el destino: no hagas nada, el asistente actualizará los componentes más tarde </ li> <li> no, no se descargará un SDK válido en el destino: SDK "Seed" se descargará y desempaquetará</ li> </ ol>


public static Zmat o  ( Zmat [ ] [ ] B ) throws JampackException  { int bi , bi0nr , bj , b0jnc , bnc , bnr , i , il , j , jl , nc , nr ; Zmat Bij ; bnr = B . length ; bnc = B [ 0 ] . length ; nc = 0 ; for ( bj = 0 ; bj < bnc ; bj ++ ) { b0jnc = B [ 0 ] [ bj ] . ncol ; for ( bi = 1 ; bi < bnr ; bi ++ ) { if ( B [ bi ] [ bj ] . ncol != b0jnc ) { throw new JampackException ( "Blocks do not conform" ) ; } } nc = nc + b0jnc ; } nr = 0 ; for ( bi = 0 ; bi < bnr ; bi ++ ) { bi0nr = B [ bi ] [ 0 ] . nrow ; for ( bj = 1 ; bj < bnc ; bj ++ ) { if ( B [ bi ] [ bj ] . nrow != bi0nr ) { throw new JampackException ( "Blocks do not conform" ) ; } } nr = nr + bi0nr ; } Zmat A = new Zmat ( nr , nc ) ; il = 0 ; for ( bi = 0 ; bi < bnr ; bi ++ ) { jl = 0 ; for ( bj = 0 ; bj < bnc ; bj ++ ) { Bij = B [ bi ] [ bj ] ; for ( i = il ; i < il + Bij . nrow ; i ++ ) { for ( j = jl ; j < jl + Bij . ncol ; j ++ ) { A . re [ i ] [ j ] = Bij . re [ i - il ] [ j - jl ] ; A . im [ i ] [ j ] = Bij . im [ i - il ] [ j - jl ] ; } } jl = jl + Bij . ncol ; } il = il + B [ bi ] [ 0 ] . nrow ; } return A ; }

Fusiona las matrices en una matriz de zmats.


protected static Dfp [ ] splitDiv  ( final Dfp [ ] a , final Dfp [ ] b ) { final Dfp [ ] result ; result = new Dfp [ 2 ] ; result [ 0 ] = a [ 0 ] . divide ( b [ 0 ] ) ; result [ 1 ] = a [ 1 ] . multiply ( b [ 0 ] ) . subtract ( a [ 0 ] . multiply ( b [ 1 ] ) ) ; result [ 1 ] = result [ 1 ] . divide ( b [ 0 ] . multiply ( b [ 0 ] ) . add ( b [ 0 ] . multiply ( b [ 1 ] ) ) ) ; return result ; }

Divida dos números que se dividen en dos piezas que están destinadas a ser agregadas.Inverso de dividir multiplicar arriba: (A + B) / (C + D) = (A / C) + ((BC-AD) / (C ** 2 + CD))


public static Converter < String , ? > determine  ( Object genericObj ) { Type type = ( ( ParameterizedType ) genericObj . getClass ( ) . getGenericInterfaces ( ) [ 0 ] ) . getActualTypeArguments ( ) [ 0 ] ; Converter < String , ? > converter = determinePrimitiveConverter ( type ) ; if ( converter != null ) { return converter ; } if ( type instanceof ParameterizedType ) { return determineCollectionConverter ( ( ParameterizedType ) type ) ; } return new JsonConverter ( ( Class < ? > ) type ) ; }

Determinar el convertidor con el objeto.


public GroupsSetCallbackSettingsQuery messageDeny  ( Boolean value ) { return unsafeParam ( "message_deny" , value ) ; }


boolean inHalfOpenRange  ( K key , K least , K fence ) { if ( key == null ) throw new NullPointerException ( ) ; return ( ( least == null || compare ( key , least ) >= 0 ) && ( fence == null || compare ( key , fence ) < 0 ) ) ; }

Devuelve VERDADERO si se le da una clave mayor o igual a lo menos y es estrictamente menor que la cerca, evitando la prueba si menos o la cerca son nulos.Necesitaba principalmente en remapa de operaciones.


public void draw  ( Canvas c , Rect bounds ) { final RectF arcBounds = mTempBounds ; arcBounds . set ( bounds ) ; arcBounds . inset ( mStrokeInset , mStrokeInset ) ; final float startAngle = ( mStartTrim + mRotation ) * 360 ; final float endAngle = ( mEndTrim + mRotation ) * 360 ; float sweepAngle = endAngle - startAngle ; mPaint . setColor ( mCurrentColor ) ; c . drawArc ( arcBounds , startAngle , sweepAngle , false , mPaint ) ; drawTriangle ( c , startAngle , sweepAngle , bounds ) ; if ( mAlpha < 255 ) { mCirclePaint . setColor ( mBackgroundColor ) ; mCirclePaint . setAlpha ( 255 - mAlpha ) ; c . drawCircle ( bounds . exactCenterX ( ) , bounds . exactCenterY ( ) , bounds . width ( ) / 2 , mCirclePaint ) ; } }


String imageUrl  ( ) { return mImageUrl ; }

Devuelve la URL donde se puede recuperar el icono de la aplicación.


public Polyline2D ( float [ ] xpoints , float [ ] ypoints , int npoints ) { if ( npoints > xpoints . length || npoints > ypoints . length ) { throw new IndexOutOfBoundsException ( "npoints > xpoints.length || npoints > ypoints.length" ) ; } this . npoints = npoints ; this . xpoints = new float [ npoints + 1 ] ; this . ypoints = new float [ npoints + 1 ] ; System . arraycopy ( xpoints , 0 , this . xpoints , 0 , npoints ) ; System . arraycopy ( ypoints , 0 , this . ypoints , 0 , npoints ) ; calculatePath ( ) ; }

Construye e inicializa un <código> Polyline2D </ código> de los parámetros especificados.


private AudioOption createOption6  ( ChannelType ... channels ) { AudioOption option = new AudioOption ( ) ; option . add ( createTrack ( new Channel ( FL . name ( ) , channels [ 0 ] ) , new Channel ( FR . name ( ) , channels [ 1 ] ) ) ) ; return option ; }


private boolean ownerCanReadTable  ( String ownerId , String table ) { return _internalAuthorizer . hasPermissionByInternalId ( ownerId , getReadPermission ( table ) ) ; }

Determina si un propietario tiene permiso de lectura en una tabla.Esto siempre vuelve al autorizador y no devolverá un valor en caché.


public double norm2  ( ) { return s [ 0 ] ; }


public static boolean onRender  ( Render < ? > render , Entity entity , double x , double y , double z , float yaw , float partialTicks ) { GlStateManager . pushMatrix ( ) ; final boolean successful = OpenModLoader . getEventBus ( ) . post ( new Entities ( render , entity , x , y , z , yaw , partialTicks ) ) ; GlStateManager . popMatrix ( ) ; return successful ; }

Un gancho para hacer parches relacionados mucho más pequeños.


@ Override public void onValueSelected  ( int pickerIndex , int newValue , boolean autoAdvance ) { switch ( pickerIndex ) { case HOUR_INDEX : if ( mAllowAutoAdvance && autoAdvance ) { updateHeaderHour ( newValue , false ) ; setCurrentItemShowing ( MINUTE_INDEX , true , false ) ; announceForAccessibility ( newValue + ". " + mSelectMinutes ) ; } else { updateHeaderHour ( newValue , true ) ; } break ; case MINUTE_INDEX : updateHeaderMinute ( newValue , true ) ; break ; case AMPM_INDEX : updateAmPmLabelStates ( newValue ) ; break ; case ENABLE_PICKER_INDEX : if ( ! isTypedTimeFullyLegal ( ) ) { mTypedTimes . clear ( ) ; } finishKbMode ( ) ; break ; } if ( mOnTimeChangedListener != null ) { mOnTimeChangedListener . onTimeChanged ( this , getCurrentHour ( ) , getCurrentMinute ( ) ) ; } }

Llamado por el selector para actualizar la pantalla del encabezado.


public ImageResizer ( Context context , int imageSize ) { super ( context ) ; setImageSize ( imageSize ) ; }

Inicializar proporcionando un solo tamaño de imagen de destino (utilizado tanto para ancho y altura);


public void add  ( ResourceQuota quota ) { this . msgRateIn += quota . msgRateIn ; this . msgRateOut += quota . msgRateOut ; this . bandwidthIn += quota . bandwidthIn ; this . bandwidthOut += quota . bandwidthOut ; this . memory += quota . memory ; }


public boolean removeColumn  ( C columnKey ) { boolean changed = false ; for ( R rowKey : dataMap . keySet ( ) ) { Map < C , V > row = dataMap . get ( rowKey ) ; if ( row . containsKey ( columnKey ) ) { row . remove ( columnKey ) ; row . keySet ( ) . remove ( columnKey ) ; changed = true ; } } return true ; }


public static SM_SYSTEM_MESSAGE STR_UNION_BAN_HIS_LEADER  ( String value0 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1400575 , value0 , value1 ) ; }

% 0 ha expulsado la alianza de% 1 de la Liga de Alianza.


private void resetTimer  ( ) { if ( fadeOutTime > 0 ) { if ( timer == null || timer . _run == false ) { timer = new FadeTimer ( ) ; timer . execute ( ) ; } else { timer . resetTimer ( ) ; } } }

Restablece el temporizador de desvanecimiento a 0. Creando uno nuevo si es necesario


private void resize  ( ) { Matrix [ ] newData = new Matrix [ data . length * 2 ] ; for ( int i = 0 ; i < data . length ; i ++ ) newData [ i ] = data [ i ] ; data = newData ; }

Cambia el tamaño de la matriz interna que sostiene todas las matrices de puntos.El tamaño de la matriz después de la llamada será el doble del tamaño actual.Se copiarán todos los elementos de la matriz actual.


public boolean isApplicable  ( ) { final LabelsJList list = ( ( ChartViewer ) getViewer ( ) ) . getActiveLabelsJList ( ) ; return list != null && list . getDisabledLabels ( ) . size ( ) > 0 ; }

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


@ Override public void processingInstruction  ( String target , XMLString data , Augmentations augs ) throws XNIException { }

Una instrucción de procesamiento.Las instrucciones de procesamiento consisten en un nombre de destino y, opcionalmente, datos de texto.Los datos solo son significativos para la aplicación.<p /> Típicamente, los datos de una instrucción de procesamiento contendrán una serie de pseudo-atributos.Estos pseudo-atributos siguen la forma de atributos de elementos, pero son <strong> no </ strong> analizados o presentados a la aplicación como otra cosa que no sea texto.La solicitud es responsable de analizar los datos.


public static byte [ ] toByteArray  ( Reader input ) throws IOException { return toByteArray ( input , Charset . defaultCharset ( ) ) ; }

Obtenga los contenidos de un lector </ code> como un byte [] </ código> usando la codificación de caracteres predeterminada de la plataforma.<P /> Este método almacena la entrada internamente, por lo que no es necesario usar un lector de búquera </ código>.


public static String toString  ( URL url , Charset encoding ) throws IOException { InputStream inputStream = url . openStream ( ) ; try { return toString ( inputStream , encoding ) ; } finally { inputStream . close ( ) ; } }


public InterfaceInvokeExpr newInterfaceInvokeExpr  ( Local base , SootMethodRef method , List args ) { return new GInterfaceInvokeExpr ( base , method , args ) ; }

Construye un interfazVookeExpr (Base local, Método de SOOTMetHodref, Lista de EXPR) Chunk Grammar.


protected void serialize  ( HttpServletRequest request , HttpServletResponse response , Object object ) throws IOException { String type = request . getHeader ( "Accept" ) ; type = ! StringUtils . isEmpty ( type ) ? type : request . getContentType ( ) ; type = ! StringUtils . isEmpty ( type ) ? type : MediaType . APPLICATION_JSON_VALUE ; if ( request . getPathInfo ( ) . endsWith ( ".json" ) ) { type = MediaType . APPLICATION_JSON_VALUE ; } else if ( request . getPathInfo ( ) . endsWith ( ".xml" ) ) { type = MediaType . APPLICATION_XML_VALUE ; } if ( isCompatibleWith ( type , MediaType . APPLICATION_JSON ) ) { renderService . toJson ( response . getOutputStream ( ) , object ) ; } else if ( isCompatibleWith ( type , MediaType . APPLICATION_XML ) ) { renderService . toXml ( response . getOutputStream ( ) , object ) ; } }

Serializa un objeto, intenta adivinar el formato de salida utilizando este pedido.


ExperimentStatistics calculateExperimentStatistics  ( final ExperimentCounts counts , BinomialMetric metric , double effectSize , Parameters . Mode mode ) { ExperimentStatistics statistics = new ExperimentStatistics . Builder ( ) . withExperimentCounts ( counts ) . withBuckets ( calculateBucketStatistics ( counts . getBuckets ( ) , metric , effectSize , mode ) ) . build ( ) ; analysisTools . generateRate ( statistics , metric ) ; analysisTools . generateProgress ( statistics ) ; return statistics ; }

Crea un objeto ExperimentStatisticstatistics de un objeto de experiencia en experimentos.


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


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

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


public static List < LoadMetadataDetails > identifySegmentsToBeMerged  ( String storeLocation , CarbonLoadModel carbonLoadModel , int partitionCount , long compactionSize , List < LoadMetadataDetails > segments , CompactionType compactionType ) { List sortedSegments = new ArrayList ( segments ) ; sortSegments ( sortedSegments ) ; List < LoadMetadataDetails > listOfSegmentsAfterPreserve = checkPreserveSegmentsPropertyReturnRemaining ( sortedSegments ) ; List < LoadMetadataDetails > listOfSegmentsLoadedInSameDateInterval = identifySegmentsToBeMergedBasedOnLoadedDate ( listOfSegmentsAfterPreserve ) ; List < LoadMetadataDetails > listOfSegmentsToBeMerged ; if ( compactionType . equals ( CompactionType . MAJOR_COMPACTION ) ) { listOfSegmentsToBeMerged = identifySegmentsToBeMergedBasedOnSize ( compactionSize , listOfSegmentsLoadedInSameDateInterval , carbonLoadModel , partitionCount , storeLocation ) ; } else { listOfSegmentsToBeMerged = identifySegmentsToBeMergedBasedOnSegCount ( listOfSegmentsLoadedInSameDateInterval ) ; } return listOfSegmentsToBeMerged ; }

Para identificar cuáles se pueden fusionar todos los segmentos.


protected VideoGetCatalogSectionQuery from  ( String value ) { return unsafeParam ( "from" , value ) ; }

Valor "siguiente" devuelto con un bloque por el método "Video.GetCatalog".


public static int readUnsignedInt  ( ByteInput in , int zwidth , boolean fillOnRight ) { int result = 0 ; if ( ! fillOnRight ) { for ( int i = zwidth ; i >= 0 ; i -- ) { result = ( result >>> 8 ) | ( ( in . readByte ( ) & 0xff ) << 24 ) ; } result >>>= ( 3 - zwidth ) * 8 ; } else { for ( int i = zwidth ; i >= 0 ; i -- ) { result = ( result >>> 8 ) | ( ( in . readByte ( ) & 0xff ) << 24 ) ; } } return result ; }