protected Map < String , List < String > > readLexicon  ( String lexiconFilename ) throws IOException { String line ; Map < String , List < String > > fLexicon = new HashMap < String , List < String > > ( ) ; BufferedReader lexiconFile = new BufferedReader ( new InputStreamReader ( MaryLink . getContext ( ) . getAssets ( ) . open ( lexiconFilename ) ) ) ; while ( ( line = lexiconFile . readLine ( ) ) != null ) { if ( line . trim ( ) . equals ( "" ) || line . startsWith ( "#" ) ) continue ; String [ ] lineParts = line . split ( "\\s*\\|\\s*" ) ; String graphStr = lineParts [ 0 ] ; String phonStr = lineParts [ 1 ] ; try { allophoneSet . splitIntoAllophones ( phonStr ) ; } catch ( RuntimeException re ) { Log . w ( Mary . LOG , "Lexicon '" + lexiconFilename + "': invalid entry for '" + graphStr + "'" , re ) ; } String phonPosStr = phonStr ; if ( lineParts . length > 2 ) { String pos = lineParts [ 2 ] ; if ( ! pos . trim ( ) . equals ( "" ) ) phonPosStr += "|" + pos ; } List < String > transcriptions = fLexicon . get ( graphStr ) ; if ( null == transcriptions ) { transcriptions = new ArrayList < String > ( ) ; fLexicon . put ( graphStr , transcriptions ) ; } transcriptions . add ( phonPosStr ) ; } lexiconFile . close ( ) ; return fLexicon ; }

Lea un léxico.Las líneas deben tener el formato <P /> Graphemestring |PhoneString |Opcional-Parts-of-Speech <P /> El artículo POS es opcional.Los diferentes POS que pertenecen a una cadena de grafombres pueden estar separados por espacios en blanco


public boolean adjustValue  ( K key , short amount ) { int index = index ( key ) ; if ( index < 0 ) { return false ; } else { _values [ index ] += amount ; return true ; } }

Ajusta el valor primitivo asignado a la tecla.


public static final MediaFormat createVideoFormat  ( String mime , int width , int height ) { MediaFormat format = new MediaFormat ( ) ; format . setString ( KEY_MIME , mime ) ; format . setInteger ( KEY_WIDTH , width ) ; format . setInteger ( KEY_HEIGHT , height ) ; return format ; }


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

Escala toda la imagen de origen a la imagen de destino.


@ Override public boolean parse  ( boolean complete ) throws XNIException , IOException { if ( fInputSource != null ) { try { reset ( ) ; fScanner . setInputSource ( fInputSource ) ; fInputSource = null ; } catch ( XNIException ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw ex ; } catch ( IOException ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw ex ; } catch ( RuntimeException ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw ex ; } catch ( Exception ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw new XNIException ( ex ) ; } } try { return fScanner . scanDocument ( complete ) ; } catch ( XNIException ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw ex ; } catch ( IOException ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw ex ; } catch ( RuntimeException ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw ex ; } catch ( Exception ex ) { if ( PRINT_EXCEPTION_STACK_TRACE ) ex . printStackTrace ( ) ; throw new XNIException ( ex ) ; } }

Analiza el documento en una moda de análisis.


public MessagesDeleteDialogQuery offset  ( Integer value ) { return unsafeParam ( "offset" , value ) ; }

Offset se necesita para devolver un subconjunto específico de mensajes.


public void addSoundEvent  ( State event , int resId ) { mSoundMap . put ( event , resId ) ; }

Establezca los sonidos que se reproducen cuando ocurre un evento de tracción.Usted especifica qué sonido se reproduce para qué eventos llamando a este método varias veces para cada evento.<p /> Si ya ha establecido un sonido para un evento determinado, y agregue otro sonido para ese evento, solo se reproducirá el nuevo sonido.


public ConfigDialog switchTab  ( String tabLabel ) { if ( ! tabs . isEmpty ( ) ) { tabs . stream ( ) . filter ( null ) . findFirst ( ) . orElseThrow ( null ) . click ( ) ; } return this ; }

Método utilizado para cambiar la pestaña Abierta real en un diálogo


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

Construye la nueva instancia de paquete de cliente.


public boolean isValid  ( List < S2Point > vertices ) { int n = vertices . size ( ) ; for ( int i = 0 ; i < n ; ++ i ) { if ( ! S2 . isUnitLength ( vertices . get ( i ) ) ) { Log . i ( TAG , "Vertex " + i + " is not unit length" ) ; return false ; } } for ( int i = 1 ; i < n ; ++ i ) { if ( vertices . get ( i - 1 ) . equals ( vertices . get ( i ) ) || vertices . get ( i - 1 ) . equals ( S2Point . neg ( vertices . get ( i ) ) ) ) { Log . i ( TAG , "Vertices " + ( i - 1 ) + " and " + i + " are identical or antipodal" ) ; return false ; } } return true ; }

Devuelve verdadero si los vértices dados forman una polilínea válida.


public void drawScreen  ( int par1 , int par2 , float par3 ) { if ( reinit ) { initGui ( ) ; reinit = false ; } this . guiList . drawScreen ( par1 , par2 , par3 ) ; super . drawScreen ( par1 , par2 , par3 , false ) ; }

Dibuja la pantalla y todos los componentes en él.


protected AbstractUnivariateSolver ( final double relativeAccuracy , final double absoluteAccuracy ) { super ( relativeAccuracy , absoluteAccuracy ) ; }

Construir un solucionador con las precisiones dadas.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SpellATKDrain_Instant_INTERVAL_HEAL_MP_TO_ME  ( int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201157 , num0 , skillname ) ; }

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


public void tabPageLoadStarted  ( int id ) { StripLayoutTab tab = findTabById ( id ) ; if ( tab != null ) tab . pageLoadingStarted ( ) ; }

Llamado cuando una pestaña ha comenzado a cargarse.


private < T > Stream < Collection < T >> partitionedStream  ( Iterator < T > iterator ) { return StreamSupport . stream ( Spliterators . spliteratorUnknownSize ( Iterators . partition ( iterator , batchSize ) , Spliterator . ORDERED ) , false ) ; }

Particione una corriente en un flujo de colecciones, cada una con elementos de tamaño de lotes.


public static DateTimeUnit fromJodaDateTime  ( DateTime dateTime ) { return new DateTimeUnit ( dateTime . getYear ( ) , dateTime . getMonthOfYear ( ) , dateTime . getDayOfMonth ( ) , dateTime . getDayOfWeek ( ) ) ; }

Convierte de JODA-Time DateTime a DateUnit


public void putObject  ( String key , Object obj , Gson gson ) { checkForNullKey ( key ) ; putString ( key , gson . toJson ( obj ) ) ; }

Ponga el objeto cualquier tipo en SharedPreferences con 'Clave' y ahorre


public void simulateMethod  ( SootMethod method , ReferenceVariable thisVar , ReferenceVariable returnVar , ReferenceVariable params [ ] ) { String subSignature = method . getSubSignature ( ) ; { defaultMethod ( method , thisVar , returnVar , params ) ; return ; } }

Implementa el método abstracto simulatemethod.Distribuye la solicitud a los métodos correspondientes por las firmas.


public void paintSelection  ( Graphics g0 ) { if ( selectedBlock . isSelected ( ) ) { Graphics2D g = ( Graphics2D ) g0 ; double xMin = Math . min ( getX ( selectedBlock . getFirstCol ( ) ) , getSize ( ) . width ) ; double xMax = Math . min ( ( getX ( selectedBlock . getLastCol ( ) + 1 ) ) , getSize ( ) . width - 2 ) ; double yMin = Math . min ( getY ( selectedBlock . getFirstRow ( ) - 1 ) , getSize ( ) . height - 3 ) ; double yMax = Math . min ( getY ( selectedBlock . getLastRow ( ) ) , getSize ( ) . height - 3 ) ; Rectangle2D rect = new Rectangle2D . Double ( xMin , yMin , 0 , 0 ) ; rect . add ( xMax , yMax ) ; g . setColor ( highlightColor ) ; g . draw ( rect ) ; g . setColor ( highlightColorSemiTransparent ) ; g . fill ( rect ) ; selectionRectangle . setRectangle ( this , rect ) ; } selectionRectangle . setAnimate ( selectedBlock . isSelected ( ) ) ; }


@ SuppressWarnings ( { "unchecked" , "cast" } ) public SwitchStmt fullCopy  ( ) { SwitchStmt tree = ( SwitchStmt ) 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 static boolean isExtension  ( String filename , String [ ] extensions ) { if ( filename == null ) { return false ; } if ( extensions == null || extensions . length == 0 ) { return indexOfExtension ( filename ) == - 1 ; } String fileExt = getExtension ( filename ) ; for ( String extension : extensions ) { if ( fileExt . equals ( extension ) ) { return true ; } } return false ; }

Comprueba si la extensión del nombre de archivo es una de las especificadas.<p> Este método obtiene la extensión como la parte textual del nombre de archivo después del último punto.No debe haber separador de directorio después del punto.La verificación de extensión distingue entre mayúsculas y minúsculas en todas las plataformas.


public DateColumn ( Class type , int nrows ) { this ( type , nrows , nrows , 0L ) ; }


public soot . jimple . JimpleBody createJimpleBody  ( polyglot . ast . Block block , List formals , soot . SootMethod sootMethod ) { createBody ( sootMethod ) ; lg = new LocalGenerator ( body ) ; if ( ! soot . Modifier . isStatic ( sootMethod . getModifiers ( ) ) ) { soot . RefType type = sootMethod . getDeclaringClass ( ) . getType ( ) ; specialThisLocal = soot . jimple . Jimple . v ( ) . newLocal ( "this" , type ) ; body . getLocals ( ) . add ( specialThisLocal ) ; soot . jimple . ThisRef thisRef = soot . jimple . Jimple . v ( ) . newThisRef ( type ) ; soot . jimple . Stmt thisStmt = soot . jimple . Jimple . v ( ) . newIdentityStmt ( specialThisLocal , thisRef ) ; body . getUnits ( ) . add ( thisStmt ) ; } int formalsCounter = 0 ; int outerIndex = sootMethod . getDeclaringClass ( ) . getName ( ) . lastIndexOf ( "$" ) ; if ( ( outerIndex != - 1 ) && ( sootMethod . getName ( ) . equals ( "<init>" ) ) ) { SootField this0Field = sootMethod . getDeclaringClass ( ) . getFieldByNameUnsafe ( "this$0" ) ; if ( this0Field != null ) { soot . SootClass outerClass = ( ( soot . RefType ) this0Field . getType ( ) ) . getSootClass ( ) ; soot . Local outerLocal = lg . generateLocal ( outerClass . getType ( ) ) ; soot . jimple . ParameterRef paramRef = soot . jimple . Jimple . v ( ) . newParameterRef ( outerClass . getType ( ) , formalsCounter ) ; paramRefCount ++ ; soot . jimple . Stmt stmt = soot . jimple . Jimple . v ( ) . newIdentityStmt ( outerLocal , paramRef ) ; stmt . addTag ( new soot . tagkit . EnclosingTag ( ) ) ; body . getUnits ( ) . add ( stmt ) ; ( ( soot . javaToJimple . PolyglotMethodSource ) sootMethod . getSource ( ) ) . setOuterClassThisInit ( outerLocal ) ; outerClassParamLocal = outerLocal ; formalsCounter ++ ; } } if ( formals != null ) { ArrayList < String > formalNames = new ArrayList < String > ( ) ; Iterator formalsIt = formals . iterator ( ) ; while ( formalsIt . hasNext ( ) ) { polyglot . ast . Formal formal = ( polyglot . ast . Formal ) formalsIt . next ( ) ; createFormal ( formal , formalsCounter ) ; formalNames . add ( formal . name ( ) ) ; formalsCounter ++ ; } body . getMethod ( ) . addTag ( new soot . tagkit . ParamNamesTag ( formalNames ) ) ; } ArrayList < SootField > finalsList = ( ( PolyglotMethodSource ) body . getMethod ( ) . getSource ( ) ) . getFinalsList ( ) ; if ( finalsList != null ) { Iterator < SootField > finalsIt = finalsList . iterator ( ) ; while ( finalsIt . hasNext ( ) ) { soot . SootField sf = finalsIt . next ( ) ; soot . jimple . ParameterRef paramRef = soot . jimple . Jimple . v ( ) . newParameterRef ( sf . getType ( ) , formalsCounter ) ; paramRefCount ++ ; soot . jimple . Stmt stmt = soot . jimple . Jimple . v ( ) . newIdentityStmt ( lg . generateLocal ( sf . getType ( ) ) , paramRef ) ; body . getUnits ( ) . add ( stmt ) ; formalsCounter ++ ; } } createBlock ( block ) ; if ( sootMethod . getName ( ) . equals ( "<clinit>" ) ) { handleAssert ( sootMethod ) ; handleStaticFieldInits ( sootMethod ) ; handleStaticInitializerBlocks ( sootMethod ) ; } boolean hasReturn = false ; if ( block != null ) { Iterator it = block . statements ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Object next = it . next ( ) ; if ( next instanceof polyglot . ast . Return ) { hasReturn = true ; } } } soot . Type retType = body . getMethod ( ) . getReturnType ( ) ; if ( ( ! hasReturn ) && ( retType instanceof soot . VoidType ) ) { soot . jimple . Stmt retStmt = soot . jimple . Jimple . v ( ) . newReturnVoidStmt ( ) ; body . getUnits ( ) . add ( retStmt ) ; } if ( exceptionTable != null ) { Iterator < Trap > trapsIt = exceptionTable . iterator ( ) ; while ( trapsIt . hasNext ( ) ) { body . getTraps ( ) . add ( trapsIt . next ( ) ) ; } } return body ; }


Item newFloat  ( final float value ) { key . set ( value ) ; Item result = get ( key ) ; if ( result == null ) { pool . putByte ( FLOAT ) . putInt ( key . intVal ) ; result = new Item ( index ++ , key ) ; put ( result ) ; } return result ; }

Agrega un flotador al grupo constante de la estructura de la clase.No hace nada si el grupo constante ya contiene un artículo similar.


void refreshFinish  ( int width , int height ) { mWXSDKInstance . onRefreshSuccess ( width , height ) ; }


public boolean hasPermissionByInternalId  ( String internalId , Permission permission ) { return hasPermissionsByInternalId ( internalId , ImmutableList . of ( permission ) ) ; }

Prueba para si una clave API tiene un permiso específico usando su ID interna.


public static InputStream toInputStream  ( CharSequence input ) { return toInputStream ( input , Charset . defaultCharset ( ) ) ; }

Convierta la carletencia especificada a un flujo de entrada, codificado como bytes utilizando la codificación de caracteres predeterminada de la plataforma.


public static double acos  ( double x ) { if ( Double . isNaN ( x ) ) { return Double . NaN ; } if ( x > 1.0 || x < - 1.0 ) { return Double . NaN ; } if ( x == - 1.0 ) { return Math . PI ; } if ( x == 1.0 ) { return 0.0 ; } if ( x == 0 ) { return Math . PI / 2.0 ; } double temp = x * HEX_40000000 ; final double xa = x + temp - temp ; final double xb = x - xa ; double ya = xa * xa ; double yb = xa * xb * 2.0 + xb * xb ; ya = - ya ; yb = - yb ; double za = 1.0 + ya ; double zb = - ( za - 1.0 - ya ) ; temp = za + yb ; zb += - ( temp - za - yb ) ; za = temp ; double y = sqrt ( za ) ; temp = y * HEX_40000000 ; ya = y + temp - temp ; yb = y - ya ; yb += ( za - ya * ya - 2 * ya * yb - yb * yb ) / ( 2.0 * y ) ; yb += zb / ( 2.0 * y ) ; y = ya + yb ; yb = - ( y - ya - yb ) ; double r = y / x ; if ( Double . isInfinite ( r ) ) { return Math . PI / 2 ; } double ra = doubleHighPart ( r ) ; double rb = r - ra ; rb += ( y - ra * xa - ra * xb - rb * xa - rb * xb ) / x ; rb += yb / x ; temp = ra + rb ; rb = - ( temp - ra - rb ) ; ra = temp ; return atan ( ra , rb , x < 0 ) ; }

Calcular el coseno de arco de un número.


public Waterfall waterfall  ( Task ... tasks ) { return new Waterfall ( this . executor_ , tasks ) ; }

Crea una estrategia de flujo de control de cascada.


public static JsonValue value  ( double value ) { if ( Double . isInfinite ( value ) || Double . isNaN ( value ) ) { throw new IllegalArgumentException ( "Infinite and NaN values not permitted in JSON" ) ; } return new JsonNumber ( cutOffPointZero ( Double . toString ( value ) ) ) ; }

Devuelve una instancia de JSONVALUE que representa el valor de Double Double </ Code>.


public static boolean hasHoneycomb  ( ) { return Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ; }


public void remove  ( IAdaptable a ) { children . remove ( a ) ; }

Agrega el objeto adaptable dado a esta lista.


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

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


private static void computeStringConstants  ( final int highPrecisionDecimalDigits ) { if ( sqr2String == null || sqr2String . length ( ) < highPrecisionDecimalDigits - 3 ) { final DfpField highPrecisionField = new DfpField ( highPrecisionDecimalDigits , false ) ; final Dfp highPrecisionOne = new Dfp ( highPrecisionField , 1 ) ; final Dfp highPrecisionTwo = new Dfp ( highPrecisionField , 2 ) ; final Dfp highPrecisionThree = new Dfp ( highPrecisionField , 3 ) ; final Dfp highPrecisionSqr2 = highPrecisionTwo . sqrt ( ) ; sqr2String = highPrecisionSqr2 . toString ( ) ; sqr2ReciprocalString = highPrecisionOne . divide ( highPrecisionSqr2 ) . toString ( ) ; final Dfp highPrecisionSqr3 = highPrecisionThree . sqrt ( ) ; sqr3String = highPrecisionSqr3 . toString ( ) ; sqr3ReciprocalString = highPrecisionOne . divide ( highPrecisionSqr3 ) . toString ( ) ; piString = computePi ( highPrecisionOne , highPrecisionTwo , highPrecisionThree ) . toString ( ) ; eString = computeExp ( highPrecisionOne , highPrecisionOne ) . toString ( ) ; ln2String = computeLn ( highPrecisionTwo , highPrecisionOne , highPrecisionTwo ) . toString ( ) ; ln5String = computeLn ( new Dfp ( highPrecisionField , 5 ) , highPrecisionOne , highPrecisionTwo ) . toString ( ) ; ln10String = computeLn ( new Dfp ( highPrecisionField , 10 ) , highPrecisionOne , highPrecisionTwo ) . toString ( ) ; } }

Recompuga las constantes de cadena de alta precisión.


public XmlStreamReaderException ( String msg , String ctMime , String ctEnc , String bomEnc , String xmlGuessEnc , String xmlEnc ) { super ( msg ) ; contentTypeMime = ctMime ; contentTypeEncoding = ctEnc ; bomEncoding = bomEnc ; xmlGuessEncoding = xmlGuessEnc ; xmlEncoding = xmlEnc ; }

Crea una instancia de excepción si no se pudo determinar la codificación de caracteres.<P> Las instancias de esta excepción son lanzadas por el XMLStreamReader.


public static boolean isNetworkAvailable  ( Context context ) { ConnectivityManager manager = ( ConnectivityManager ) context . getApplicationContext ( ) . getSystemService ( Context . CONNECTIVITY_SERVICE ) ; if ( null == manager ) return false ; NetworkInfo info = manager . getActiveNetworkInfo ( ) ; if ( null == info || ! info . isAvailable ( ) ) return false ; return true ; }


default String subjectRole  ( String relationId ) { return OwlModel . SUBJECT . owlname ( ) + "-" + relationId ; }

Haga un nombre para el tipo de rol correspondiente al sujeto (es decir, dominio) de una propiedad de objetos de búho.


private void synchronizeTagValues  ( final Set < Long > newTags ) throws JMSException { if ( ! newTags . isEmpty ( ) ) { ClientDataTagImpl newTag = null ; Collection < TagValueUpdate > requestedTagValues = tagRequestHandler . requestTagValues ( newTags ) ; for ( TagValueUpdate tagValueUpdate : requestedTagValues ) { newTag = liveCache . get ( tagValueUpdate . getId ( ) ) ; if ( newTag != null ) { newTag . update ( tagValueUpdate ) ; } } } }

Método interno que se actualiza una segunda vez en caso de que se envió una actualización antes de que la etiqueta se suscribiera al tema.


public void removeSelectionListener  ( ExplorerSelectionListener listener ) { selectionListeners . remove ( listener ) ; }

Elimina el oyente de selección de árbol Explorer.


String parseCharsetFromHeader  ( String contentType ) { String result = "ISO-8859-1" ; if ( contentType != null ) { String [ ] paramList = contentType . split ( ";" ) ; for ( String param : paramList ) { if ( param . toLowerCase ( ) . trim ( ) . startsWith ( "charset" ) && param . indexOf ( "=" ) != - 1 ) { result = param . substring ( param . indexOf ( "=" ) + 1 ) . trim ( ) ; } } } return result ; }

El tipo de contenido de respuesta podría ser algo así: Aplicación / X-NS-Proxy-Autoconfig;Charset = UTF-8


public int size  ( ) { return playerTemplates . size ( ) ; }


public static void enableSvcs  ( boolean enable ) { ServiceDispatcher . enableSvcs = enable ; }

Habilita / desactiva los servicios de inicio a nivel mundial (esto no afectará a ningún despachador que se esté ejecutando)


private void createWhile2  ( polyglot . ast . While whileStmt ) { soot . jimple . Stmt brchTgt = soot . jimple . Jimple . v ( ) . newNopStmt ( ) ; soot . jimple . Stmt beginTgt = soot . jimple . Jimple . v ( ) . newNopStmt ( ) ; body . getUnits ( ) . add ( beginTgt ) ; endControlNoop . push ( soot . jimple . Jimple . v ( ) . newNopStmt ( ) ) ; condControlNoop . push ( soot . jimple . Jimple . v ( ) . newNopStmt ( ) ) ; soot . jimple . Stmt continueStmt = condControlNoop . pop ( ) ; body . getUnits ( ) . add ( continueStmt ) ; condControlNoop . push ( continueStmt ) ; polyglot . ast . Expr condition = whileStmt . cond ( ) ; createBranchingExpr ( condition , brchTgt , false ) ; createStmt ( whileStmt . body ( ) ) ; soot . jimple . GotoStmt gotoLoop = soot . jimple . Jimple . v ( ) . newGotoStmt ( beginTgt ) ; body . getUnits ( ) . add ( gotoLoop ) ; body . getUnits ( ) . add ( ( endControlNoop . pop ( ) ) ) ; body . getUnits ( ) . add ( brchTgt ) ; condControlNoop . pop ( ) ; }


public PspRuntimeException ( String message ) { super ( message ) ; }


public ViterbiPoint ( Item item ) { this . item = item ; }

Crea un viterbiPoint para el artículo dado.Un artículo típico de elección es un elemento de segmento.


protected void handleDeleteOrTerminate  ( T oldObject ) { executor . addForTermination ( oldObject ) ; }

Este método se llama con un objeto existente que no se encuentra en la nueva fuente.La implementación predeterminada es llamar al ejecutor.AddFortal


public static Map < String , String > toKeyValuePairs  ( String httpString , boolean performUrlDecode ) { if ( httpString == null || httpString . length ( ) == 0 ) { return null ; } Map < String , String > keyValuePairs = new HashMap < String , String > ( ) ; StringTokenizer st = new StringTokenizer ( httpString ) ; String newToken = null ; String param , val ; int equalSignInd ; while ( st . hasMoreTokens ( ) && ( newToken = st . nextToken ( "&" ) ) != null ) { equalSignInd = newToken . indexOf ( "=" ) ; param = newToken ; val = "" ; if ( equalSignInd > - 1 ) { param = newToken . substring ( 0 , equalSignInd ) ; val = newToken . substring ( equalSignInd + 1 ) ; } if ( performUrlDecode ) { param = StringUtils . urlDecode ( param ) ; val = StringUtils . urlDecode ( val ) ; } keyValuePairs . put ( param , val ) ; } return keyValuePairs ; }

Convertir la cadena de solicitud HTTP en pares de valor clave


public void dumpASCII  ( ) { dumpASCII ( new OutputStreamWriter ( System . out ) ) ; }

Vuela los datos de la onda asociados con este resultado.


@ Override public long limit  ( ) { return limit ; }


@ Override public boolean shouldExecute  ( ) { if ( entity . getGrowingAge ( ) < 1 && ! entity . isInLove ( ) ) { if ( entity instanceof EntityWolf ) { if ( ! ( ( EntityWolf ) entity ) . isTamed ( ) ) return false ; } BlockPos entityPos = entity . getPosition ( ) ; if ( targetItem == null ) { List < EntityItem > entityItems = entity . getEntityWorld ( ) . getEntitiesWithinAABB ( EntityItem . class , new AxisAlignedBB ( entityPos , entityPos . add ( 1 , 1 , 1 ) ) . expand ( 5 , 5 , 5 ) ) ; if ( ! entityItems . isEmpty ( ) ) { for ( EntityItem item : entityItems ) { if ( entity . isBreedingItem ( item . getEntityItem ( ) ) ) { targetItem = item ; break ; } } } } if ( targetItem != null ) { BlockPos targetPos = targetItem . getPosition ( ) ; if ( entityPos . getDistance ( targetPos . getX ( ) , targetPos . getY ( ) , targetPos . getZ ( ) ) <= 2D && targetItem . getEntityItem ( ) . stackSize > 0 ) { processItemEating ( ) ; return false ; } else { return true ; } } } return false ; }

Devuelve si la entedaibase debe comenzar la ejecución.


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

Método de ayudante para descifrar que encapsula toda la función necesaria.<P /> Esto solo debe usarse en AdapterView's, como ListView, ya que solo llama a ScrollRinLby () con el ScrollRange = 0. AdapterView no tiene una gama de desplazamiento (es decir, el pendiente () no funciona).


public Builder addColumnTime  ( String columnName , TimeZone timeZone ) { return addColumnTime ( columnName , DateTimeZone . forTimeZone ( timeZone ) ) ; }

Agregue una columna de tiempo sin restricciones en los tiempos de MIN / MAX permitidos <B> Nota </ b>: Las columnas de tiempo están representadas por valores largos (época milisegundos).Para los valores de tiempo en formatos legibles humanos, use columnas de cadena + StringTotimeTransform


protected WallReportPostQuery postId  ( int value ) { return unsafeParam ( "post_id" , value ) ; }


private void clearAllSnapshots  ( ) { this . snapshots . clear ( ) ; while ( this . mnuSnapshot . getItemCount ( ) > 3 ) { this . mnuSnapshot . remove ( 3 ) ; } }


public static byte [ ] decodeLines  ( String s ) { char [ ] buf = new char [ s . length ( ) + 3 ] ; int p = 0 ; for ( int ip = 0 ; ip < s . length ( ) ; ip ++ ) { char c = s . charAt ( ip ) ; if ( c != ' ' && c != '\r' && c != '\n' && c != '\t' ) buf [ p ++ ] = c ; } while ( ( p % 4 ) != 0 ) buf [ p ++ ] = '0' ; return decode ( buf , 0 , p ) ; }

Decodifica una matriz de bytes del formato base64 e ignora los separadores de línea, las pestañas y los espacios en blanco.Los caracteres CR, LF, TAB y ESPACIO se ignoran en los datos de entrada.Este método es compatible con <código> sol.misc.base64decoder.decodebuffer (STRING) </ CODE>.


private static boolean removeCryptographyRestrictions  ( ) { Logger logger = LoggerFactory . getLogger ( Stack . class ) ; if ( isRestrictedCryptography ( ) ) { try { final Class < ? > jceSecurity = Class . forName ( "javax.crypto.JceSecurity" ) ; final Class < ? > cryptoPermissions = Class . forName ( "javax.crypto.CryptoPermissions" ) ; final Class < ? > cryptoAllPermission = Class . forName ( "javax.crypto.CryptoAllPermission" ) ; final Field isRestrictedField = jceSecurity . getDeclaredField ( "isRestricted" ) ; isRestrictedField . setAccessible ( true ) ; final Field modifiersField = Field . class . getDeclaredField ( "modifiers" ) ; modifiersField . setAccessible ( true ) ; modifiersField . setInt ( isRestrictedField , isRestrictedField . getModifiers ( ) & ~ Modifier . FINAL ) ; isRestrictedField . set ( null , false ) ; final Field defaultPolicyField = jceSecurity . getDeclaredField ( "defaultPolicy" ) ; defaultPolicyField . setAccessible ( true ) ; final PermissionCollection defaultPolicy = ( PermissionCollection ) defaultPolicyField . get ( null ) ; final Field perms = cryptoPermissions . getDeclaredField ( "perms" ) ; perms . setAccessible ( true ) ; ( ( Map < ? , ? > ) perms . get ( defaultPolicy ) ) . clear ( ) ; final Field instance = cryptoAllPermission . getDeclaredField ( "INSTANCE" ) ; instance . setAccessible ( true ) ; defaultPolicy . add ( ( Permission ) instance . get ( null ) ) ; logger . info ( "Successfully removed cryptography restrictions." ) ; return true ; } catch ( final Exception e ) { logger . warn ( "Failed to remove cryptography restrictions." , e ) ; return false ; } } return true ; }

Haga lo siguiente, pero con la reflexión para pasar por alto los controles de acceso: <p> jesecurity.isrestricted = false;Jesecurity.defaultpolicy.perms.clear ();Jesecurity.defaultpolicy.add (cryptoallpermission.instance);


private static int mapToRank  ( String rank , int taxonId ) { int targetLevel = TaxonomicLevels . getId ( rank ) ; Node v = TaxonomyData . getTree ( ) . getANode ( taxonId ) ; while ( v != null ) { int level = TaxonomyData . getTaxonomicRank ( taxonId ) ; if ( level != 0 && level == targetLevel ) return taxonId ; if ( v . getInDegree ( ) == 0 ) v = null ; else { v = v . getFirstInEdge ( ) . getSource ( ) ; taxonId = ( Integer ) v . getInfo ( ) ; } } return 0 ; }

Hace el taxón dado al taxón ancestro del rango dado.


protected Criteria createCriteriaInternal  ( ) { Criteria criteria = new Criteria ( ) ; return criteria ; }

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


public double standardDeviation  ( boolean bOnlyValue ) { return Math . sqrt ( variance ( bOnlyValue ) ) ; }

Calcula la desviación estándar (raíz cuadrada de la varianza) de la distribución, ya sea para los valores solamente, o teniendo en cuenta las claves.


public static S1Interval fromPointPair  ( double p1 , double p2 ) { if ( p1 == - S2 . M_PI ) { p1 = S2 . M_PI ; } if ( p2 == - S2 . M_PI ) { p2 = S2 . M_PI ; } if ( positiveDistance ( p1 , p2 ) <= S2 . M_PI ) { return new S1Interval ( p1 , p2 , true ) ; } else { return new S1Interval ( p2 , p1 , true ) ; } }

Método de conveniencia para construir el intervalo mínimo que contiene los dos puntos dados.Esto es equivalente a comenzar con un intervalo vacío y llamar a Agregar punto () dos veces, pero es más eficiente.


private String nestedTagsRegex  ( int depth ) { if ( depth == 0 ) { return "" ; } else { return "(?:<[a-z/!$](?:[^<>]|" + nestedTagsRegex ( depth - 1 ) + ")*>)" ; } }

Regex para hacer coincidir una etiqueta, posiblemente con etiquetas anidadas como <a href="<mtfoo> ">.


public int read  ( BufferedReader r , boolean headerOnly ) throws IOException { try { Set < String > disabledSamples = new HashSet < > ( ) ; clear ( ) ; int lineNumber = 0 ; String aLine ; while ( ( aLine = r . readLine ( ) ) != null ) { lineNumber ++ ; aLine = aLine . trim ( ) ; if ( aLine . length ( ) == 0 || aLine . startsWith ( "#" ) ) continue ; final String [ ] tokens = aLine . split ( "\t" ) ; if ( lineNumber == 1 && ( aLine . equals ( MEGAN6_SUMMARY_TAG_NOT_USED_ANYMORE ) || aLine . equals ( MEGAN4_SUMMARY_TAG ) || aLine . equals ( "!MEGAN4" ) ) ) continue ; if ( aLine . equals ( "BEGIN_METADATA_TABLE" ) || aLine . equals ( "END_OF_DATA_TABLE" ) ) break ; if ( aLine . startsWith ( "@" ) ) { switch ( tokens [ 0 ] ) { case CONTENT_TYPE : { StringBuilder buf = new StringBuilder ( ) ; for ( int i = 1 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; contentType = buf . toString ( ) . trim ( ) ; if ( ! contentType . startsWith ( MEGAN6SummaryFormat_NotUsedAnyMore ) && ! contentType . startsWith ( MEGAN4SummaryFormat ) ) throw new IOException ( "Wrong content type: " + contentType + ", expected: " + MEGAN4SummaryFormat ) ; break ; } case CREATOR : { StringBuilder buf = new StringBuilder ( ) ; for ( int i = 1 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; creator = buf . toString ( ) . trim ( ) ; break ; } case CREATION_DATE : { StringBuilder buf = new StringBuilder ( ) ; for ( int i = 1 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; creationDate = buf . toString ( ) . trim ( ) ; break ; } case BLAST_MODE : for ( int i = 1 ; i < tokens . length ; i ++ ) { BlastMode blastMode = BlastMode . valueOfIgnoreCase ( tokens [ i ] ) ; if ( blastMode == null ) blastMode = BlastMode . Unknown ; blastModes . add ( blastMode ) ; } break ; case NAMES : sampleNames . addAll ( Arrays . asList ( tokens ) . subList ( 1 , tokens . length ) ) ; break ; case DISABLED : disabledSamples . addAll ( Arrays . asList ( tokens ) . subList ( 1 , tokens . length ) ) ; break ; case UIDS : for ( int i = 1 ; i < tokens . length ; i ++ ) if ( tokens [ i ] != null && ! tokens [ i ] . equals ( "null" ) ) sampleUIds . add ( Long . parseLong ( tokens [ i ] ) ) ; break ; case SIZES : for ( int i = 1 ; i < tokens . length ; i ++ ) sampleSizes . add ( Basic . parseInt ( tokens [ i ] ) ) ; break ; case TOTAL_READS : totalReads = ( Integer . parseInt ( tokens [ 1 ] ) ) ; break ; case ADDITIONAL_READS : additionalReads = ( Basic . parseInt ( tokens [ 1 ] ) ) ; break ; case COLLAPSE : if ( tokens . length > 1 ) { String data = tokens [ 1 ] ; Set < Integer > collapsedIds = new HashSet < > ( ) ; classification2collapsedIds . put ( data , collapsedIds ) ; for ( int i = 2 ; i < tokens . length ; i ++ ) collapsedIds . add ( Integer . parseInt ( tokens [ i ] ) ) ; } break ; case ALGORITHM : if ( tokens . length > 1 ) { String data = tokens [ 1 ] ; StringBuilder buf = new StringBuilder ( ) ; for ( int i = 2 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; classification2algorithm . put ( data , buf . toString ( ) . trim ( ) ) ; } break ; case NODE_STYLE : if ( tokens . length > 1 ) { String data = tokens [ 1 ] ; StringBuilder buf = new StringBuilder ( ) ; for ( int i = 2 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; classification2NodeStyle . put ( data , buf . toString ( ) . trim ( ) ) ; } break ; case COLOR_TABLE : colorTable = tokens [ 1 ] ; colorByPosition = false ; for ( int k = 2 ; k < tokens . length ; k ++ ) { if ( tokens [ k ] . equals ( "byPosition" ) ) colorByPosition = true ; else colorTableHeatMap = tokens [ k ] ; } break ; case COLOR_EDITS : if ( tokens . length > 1 ) { colorEdits = Basic . toString ( tokens , 1 , tokens . length - 1 , "\t" ) ; } else colorEdits = null ; break ; case NODE_FORMATS : if ( tokens . length > 1 ) { String data = tokens [ 1 ] ; StringBuilder buf = new StringBuilder ( ) ; for ( int i = 2 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; classification2NodeFormats . put ( data , buf . toString ( ) . trim ( ) ) ; } break ; case EDGE_FORMATS : if ( tokens . length > 1 ) { String data = tokens [ 1 ] ; StringBuilder buf = new StringBuilder ( ) ; for ( int i = 2 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; classification2EdgeFormats . put ( data , buf . toString ( ) . trim ( ) ) ; } break ; case PARAMETERS : if ( tokens . length > 1 ) { StringBuilder buf = new StringBuilder ( ) ; for ( int i = 1 ; i < tokens . length ; i ++ ) buf . append ( " " ) . append ( tokens [ i ] ) ; parameters = buf . toString ( ) . trim ( ) ; } break ; default : System . err . println ( "Line: " + lineNumber + ": Skipping unknown token: " + tokens [ 0 ] ) ; break ; } } else { if ( headerOnly ) break ; if ( tokens . length > 2 ) { String classification = ClassificationType . getFullName ( tokens [ 0 ] ) ; Integer classId = Integer . parseInt ( tokens [ 1 ] ) ; Map < Integer , Integer [ ] > class2counts = classification2class2counts . get ( classification ) ; if ( class2counts == null ) { class2counts = new HashMap < > ( ) ; classification2class2counts . put ( classification , class2counts ) ; } Integer [ ] counts = class2counts . get ( classId ) ; if ( counts == null ) { counts = new Integer [ Math . min ( getNumberOfSamples ( ) , tokens . length - 2 ) ] ; class2counts . put ( classId , counts ) ; } for ( int i = 2 ; i < Math . min ( tokens . length , counts . length + 2 ) ; i ++ ) { counts [ i - 2 ] = Integer . parseInt ( tokens [ i ] ) ; } } else System . err . println ( "Line " + lineNumber + ": Too few tokens in classification: " + aLine ) ; } } if ( disabledSamples . size ( ) > 0 ) { disableSamples ( disabledSamples ) ; } if ( blastModes . size ( ) < getNumberOfSamples ( ) ) { for ( int i = blastModes . size ( ) ; i < getNumberOfSamples ( ) ; i ++ ) { blastModes . add ( BlastMode . Unknown ) ; } } return lineNumber ; } catch ( IOException ex ) { Basic . caught ( ex ) ; throw ex ; } catch ( Exception ex ) { Basic . caught ( ex ) ; throw new IOException ( ex ) ; } }


public void addFooterView  ( View v ) { addFooterView ( v , null , true ) ; }

Agregue una vista fija para aparecer en la parte inferior de la lista.Si Addfooterview se llama más de una vez, las vistas aparecerán en el orden en que se agregaron.Las vistas agregadas con esta llamada pueden afectarse si lo desean.<p> NOTA: Llame a esto antes de llamar a SetAdapter.Esto es así que ListView puede envolver el cursor suministrado con uno que también explicará las vistas de encabezado y pie de página.


private void drawShadows  ( Canvas canvas ) { int height = ( int ) ( 3 * getItemHeight ( ) ) ; topShadow . setBounds ( 0 , 0 , getWidth ( ) , height ) ; topShadow . draw ( canvas ) ; bottomShadow . setBounds ( 0 , getHeight ( ) - height , getWidth ( ) , getHeight ( ) ) ; bottomShadow . draw ( canvas ) ; }

Dibuja sombras en la parte superior e inferior del control.


public void markDownloadTaskFinished  ( long downloadId ) { DownloadManager downloadManager = ( DownloadManager ) UpodsApplication . getContext ( ) . getSystemService ( Context . DOWNLOAD_SERVICE ) ; DownloadManager . Query query = new DownloadManager . Query ( ) ; query . setFilterById ( downloadId ) ; Cursor c = downloadManager . query ( query ) ; if ( c . moveToFirst ( ) ) { DownloadTask task = getTaskById ( downloadId ) ; int columnIndex = c . getColumnIndex ( DownloadManager . COLUMN_STATUS ) ; if ( task != null ) { if ( DownloadManager . STATUS_SUCCESSFUL == c . getInt ( columnIndex ) ) { if ( task . track instanceof Episode ) { ( ( Episode ) task . track ) . setPathOnDisk ( task . filePath ) ; } ProfileManager . getInstance ( ) . addDownloadedTrack ( task . mediaItem , task . track ) ; task . contentLoadListener . onContentLoaded ( ) ; } allTasks . remove ( task ) ; } } c . close ( ) ; }

Debe llamarse cuando los descargadores terminen para descargar el artículo


FieldSpec bean  ( ) { return bean . get ( ) ; }

Un campo que tiene una instancia del tipo de frijol.


public boolean isStrict1  ( ) { return this . strict1 ; }

Devuelve VERDADERO si esta condición utiliza una comparación de tipo estricto para el primer tipo.


private List < Protos . TaskID > install  ( ) { List < Protos . TaskID > taskIds = new ArrayList < > ( ) ; Plan plan = defaultScheduler . getPlan ( ) ; taskIds . add ( installBlock ( 0 , 0 , getSufficientOfferForTaskA ( ) ) ) ; taskIds . add ( installBlock ( 1 , 0 , getSufficientOfferForTaskB ( ) ) ) ; taskIds . add ( installBlock ( 1 , 1 , getSufficientOfferForTaskB ( ) ) ) ; Assert . assertEquals ( Arrays . asList ( Status . COMPLETE , Status . COMPLETE , Status . COMPLETE ) , getBlockStatuses ( plan ) ) ; Assert . assertTrue ( stateStore . isSuppressed ( ) ) ; return taskIds ; }


public GTPMRuleExpression ( final String pExpression ) throws RuleFormatException { super ( pExpression , RuleType . ConditionedRule ) ; String [ ] subConditions = pExpression . split ( "," ) ; this . conditions = new ArrayList < IRuleCondition > ( ) ; for ( int i = 0 ; i != subConditions . length ; i ++ ) { this . conditions . add ( new GTPMRuleCondition ( subConditions [ i ] ) ) ; } }

Cree un objeto de expresión de reglas GTPM de una expresión de cadena.


private void readDetailedResultsFromFile  ( String sFilename ) { PerformanceTableModel tTmp = new PerformanceTableModel ( ) ; String sDetailedRes = utils . loadFileToStringWithNewlines ( sFilename ) ; String [ ] sRows = sDetailedRes . split ( "\n" ) ; for ( int iRowCnt = 0 ; iRowCnt < sRows . length ; iRowCnt ++ ) { String sLine = sRows [ iRowCnt ] ; if ( sLine . startsWith ( "Theme" ) ) continue ; String [ ] sResult = sLine . split ( "\\s+" ) ; if ( sResult . length > 0 ) tTmp . append ( sResult [ 1 ] , sResult [ 0 ] , Double . valueOf ( sResult [ 3 ] ) . doubleValue ( ) ) ; } DetailedResultsTbl . setModel ( tTmp ) ; }

Lea los resultados detallados en la tabla GUI correspondiente.


public static SM_SYSTEM_MESSAGE STR_MSG_INSTANCE_REGISTER_CANCELED  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400183 , value0 ) ; }

Abortaste entrando en% 0.Puedes postularse de nuevo después de 10 segundos.


public boolean frame  ( ) { frameCount ++ ; long time = System . currentTimeMillis ( ) ; if ( periodStart <= 0 ) periodStart = time ; long elapsed = time - periodStart ; if ( elapsed >= 1000 ) { currentFPS = ( 1000 * frameCount ) / ( float ) elapsed ; frameCount = 0 ; periodStart = time ; return true ; } return false ; }

Llame a esta función durante cada cuadro.El recuento de marcos transcurridos se incrementará y, si se ha transcurrido un segundo desde el último cálculo de FPS, se calculará un nuevo valor FPS.Si esto sucede, entonces la función devolverá VERDADERA.


public static boolean shoudUseLightForegroundOnBackground  ( int backgroundColor ) { return getContrastForColor ( backgroundColor ) >= CONTRAST_LIGHT_ITEM_THRESHOLD ; }

Compruebe si se deben usar elementos de primer plano más livianos o más oscuros (es decir, los dibujables, etc.), dependiendo del color de fondo dado.


public void clear  ( ) { clearHelper ( root ) ; root = factory . getQuadTreeNode ( ) ; }

Borra el Quadtree de todas las entradas.


public static SM_SYSTEM_MESSAGE STR_DUEL_REJECT_DUEL  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1301064 , value0 ) ; }

Rechaste el desafío de% 0 para un duelo.


@ Override public void write  ( byte [ ] b , int off , int len ) { }

No hace nada: salida a <código> / dev / null </ code>.


private void readObject  ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { }

El localizador no debe contener ningún diche de caché y, por lo tanto, este método se debe sobreirir por un método vacío.


public static boolean checkSimpleDerivationOk  ( XSSimpleType derived , XSTypeDefinition base , short block ) { if ( derived == SchemaGrammar . fAnySimpleType ) { return ( base == SchemaGrammar . fAnyType || base == SchemaGrammar . fAnySimpleType ) ; } if ( base . getTypeCategory ( ) == XSTypeDefinition . COMPLEX_TYPE ) { if ( base == SchemaGrammar . fAnyType ) base = SchemaGrammar . fAnySimpleType ; else return false ; } return checkSimpleDerivation ( derived , ( XSSimpleType ) base , block ) ; }

Compruebe si el tipo simple derivado es válido derivado de la base, dado un subconjunto de {restricción, extensión}.


public Zdiagmat ( Zmat A ) throws JampackException { this ( A , 0 ) ; }

Construye un Zdiagmat e inicializa a la diagonal principal de un ZMAT.


public InvalidMidiDataException ( ) { super ( ) ; }

Construye un <código> InvalidMididAexceptionception </ Code> con <Code> Null </ Code> para su mensaje de detalle de error.


public StartNavigator ( Activity activity ) { this . activity = activity ; }


private static boolean canGenerateAsm  ( Member member ) { if ( ! Modifier . isPrivate ( member . getModifiers ( ) ) && member . getDeclaringClass ( ) . getClassLoader ( ) != null ) return true ; if ( _logger . isLoggable ( Level . FINE ) ) _logger . log ( Level . FINE , "Cannot generate ASM for member " + member . getName ( ) + " on class " + member . getDeclaringClass ( ) . getName ( ) + " - using standard reflection instead." ) ; return false ; }

Solo podemos usar ASM si está permitido por una propiedad del sistema, el método es público, y la clase de declaración no es un anónimo.


public static void json  ( String json ) { printer . json ( json ) ; }

Formatos del contenido de JSON e imprimiéndolo.


private void registerMetricsAppender  ( ) { LoggerContext factory = ( LoggerContext ) LoggerFactory . getILoggerFactory ( ) ; Logger rootLogger = factory . getLogger ( org . slf4j . Logger . ROOT_LOGGER_NAME ) ; InstrumentedAppender appender = new InstrumentedAppender ( MetricRegistryFactory . getRegistry ( ) ) ; appender . setContext ( rootLogger . getLoggerContext ( ) ) ; appender . start ( ) ; rootLogger . addAppender ( appender ) ; }

Cree un apartamento métrico de cunahale y agregue al registrador de raíces.


public void initSiegeLocations  ( ) { if ( SiegeConfig . SIEGE_ENABLED ) { log . info ( "Loading Siege Locations..." ) ; if ( siegeSchedule != null ) { log . error ( "SiegeService should not be initialized two times!" ) ; return ; } artifacts = DataManager . SIEGE_LOCATION_DATA . getArtifacts ( ) ; fortresses = DataManager . SIEGE_LOCATION_DATA . getFortress ( ) ; outposts = DataManager . SIEGE_LOCATION_DATA . getOutpost ( ) ; locations = DataManager . SIEGE_LOCATION_DATA . getSiegeLocations ( ) ; DAOManager . getDAO ( SiegeDAO . class ) . loadSiegeLocations ( locations ) ; log . info ( "Loaded " + locations . size ( ) + " siege locations" ) ; } else { artifacts = Collections . emptyMap ( ) ; fortresses = Collections . emptyMap ( ) ; outposts = Collections . emptyMap ( ) ; locations = Collections . emptyMap ( ) ; log . info ( "Sieges are disabled in config." ) ; } }


private static void applyOpenSSLFix  ( ) throws SecurityException  { if ( ( Build . VERSION . SDK_INT < VERSION_CODE_JELLY_BEAN ) || ( Build . VERSION . SDK_INT > VERSION_CODE_JELLY_BEAN_MR2 ) ) { return ; } try { Class . forName ( "org.apache.harmony.xnet.provider.jsse.NativeCrypto" ) . getMethod ( "RAND_seed" , byte [ ] . class ) . invoke ( null , generateSeed ( ) ) ; int bytesRead = ( Integer ) Class . forName ( "org.apache.harmony.xnet.provider.jsse.NativeCrypto" ) . getMethod ( "RAND_load_file" , String . class , long . class ) . invoke ( null , "/dev/urandom" , 1024 ) ; if ( bytesRead != 1024 ) { throw new IOException ( "Unexpected number of bytes read from Linux PRNG: " + bytesRead ) ; } } catch ( Exception e ) { if ( ALLOW_BROKEN_PRNG ) { Log . w ( PrngFixes . class . getSimpleName ( ) , "Failed to seed OpenSSL PRNG" , e ) ; } else { throw new SecurityException ( "Failed to seed OpenSSL PRNG" , e ) ; } } }

Aplica la solución para OpenSSL PRNG que tiene entrecimiento bajo.No hace nada si la solución no es necesaria.


protected boolean isFooterEnabled  ( ) { return false ; }

La vista de pie de página predeterminada está deshabilitada, anula en subclase y devuelva VERDADERO si desea habilitarlo.


public int upperEndpoint  ( ) { return upperBound . endpoint ( ) ; }

Devuelve el punto final superior de este rango.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "close" ) ; final String what ; if ( np . peekMatchAnyTokenIgnoreCase ( "what" ) ) { np . matchIgnoreCase ( "what=" ) ; what = np . getWordMatchesIgnoringCase ( "current others" ) ; } else what = "current" ; np . matchIgnoreCase ( ";" ) ; if ( what . equalsIgnoreCase ( "current" ) ) { if ( getViewer ( ) instanceof MainViewer ) { if ( getViewer ( ) . isLocked ( ) ) { if ( ProgramProperties . isUseGUI ( ) ) { int result = JOptionPane . showConfirmDialog ( getViewer ( ) . getFrame ( ) , "Process running, close anyway?" , "Close?" , JOptionPane . YES_NO_OPTION ) ; if ( result != JOptionPane . YES_OPTION ) return ; } else { System . err . println ( "Internal error: process running, close request ignored" ) ; return ; } } if ( ProjectManager . getNumberOfProjects ( ) == 1 ) executeImmediately ( "quit;" ) ; else { try { if ( getDir ( ) . getDocument ( ) . getProgressListener ( ) != null ) getDir ( ) . getDocument ( ) . getProgressListener ( ) . setUserCancelled ( true ) ; getDir ( ) . close ( ) ; } catch ( CanceledException ex ) { } } } else if ( getViewer ( ) != null ) { getViewer ( ) . destroyView ( ) ; } else if ( getParent ( ) instanceof GraphView ) { ( ( GraphView ) getParent ( ) ) . getFrame ( ) . setVisible ( false ) ; } } else if ( what . equalsIgnoreCase ( "others" ) ) { final ArrayList < IDirector > projects = new ArrayList < > ( ) ; projects . addAll ( ProjectManager . getProjects ( ) ) ; for ( IDirector aDir : projects ) { if ( aDir == getDir ( ) ) { for ( IDirectableViewer viewer : ( ( Director ) aDir ) . getViewers ( ) ) { if ( ! ( viewer instanceof MainViewer ) && viewer != getViewer ( ) ) { viewer . destroyView ( ) ; } } } else if ( ProjectManager . getProjects ( ) . contains ( aDir ) && ! ( ( Director ) aDir ) . isLocked ( ) ) { int numberOfProjects = ProjectManager . getNumberOfProjects ( ) ; aDir . executeImmediately ( "close;" , ( ( Director ) aDir ) . getCommandManager ( ) ) ; if ( numberOfProjects == ProjectManager . getNumberOfProjects ( ) ) { System . err . println ( "(Failed to close window, canceled?)" ) ; break ; } } } } }


private Rect stripWhitespace  ( BufferedImage source ) { WritableRaster alphaRaster = source . getAlphaRaster ( ) ; if ( alphaRaster == null || ( ! settings . stripWhitespaceX && ! settings . stripWhitespaceY ) ) return new Rect ( source , 0 , 0 , source . getWidth ( ) , source . getHeight ( ) , false ) ; final byte [ ] a = new byte [ 1 ] ; int top = 0 ; int bottom = source . getHeight ( ) ; if ( settings . stripWhitespaceX ) { outer : for ( int y = 0 ; y < source . getHeight ( ) ; y ++ ) { for ( int x = 0 ; x < source . getWidth ( ) ; x ++ ) { alphaRaster . getDataElements ( x , y , a ) ; int alpha = a [ 0 ] ; if ( alpha < 0 ) alpha += 256 ; if ( alpha > settings . alphaThreshold ) break outer ; } top ++ ; } outer : for ( int y = source . getHeight ( ) ; -- y >= top ; ) { for ( int x = 0 ; x < source . getWidth ( ) ; x ++ ) { alphaRaster . getDataElements ( x , y , a ) ; int alpha = a [ 0 ] ; if ( alpha < 0 ) alpha += 256 ; if ( alpha > settings . alphaThreshold ) break outer ; } bottom -- ; } } int left = 0 ; int right = source . getWidth ( ) ; if ( settings . stripWhitespaceY ) { outer : for ( int x = 0 ; x < source . getWidth ( ) ; x ++ ) { for ( int y = top ; y < bottom ; y ++ ) { alphaRaster . getDataElements ( x , y , a ) ; int alpha = a [ 0 ] ; if ( alpha < 0 ) alpha += 256 ; if ( alpha > settings . alphaThreshold ) break outer ; } left ++ ; } outer : for ( int x = source . getWidth ( ) ; -- x >= left ; ) { for ( int y = top ; y < bottom ; y ++ ) { alphaRaster . getDataElements ( x , y , a ) ; int alpha = a [ 0 ] ; if ( alpha < 0 ) alpha += 256 ; if ( alpha > settings . alphaThreshold ) break outer ; } right -- ; } } int newWidth = right - left ; int newHeight = bottom - top ; if ( newWidth <= 0 || newHeight <= 0 ) { if ( settings . ignoreBlankImages ) return null ; else return new Rect ( emptyImage , 0 , 0 , 1 , 1 , false ) ; } return new Rect ( source , left , top , newWidth , newHeight , false ) ; }

Strips Whitespace y devuelve el Rect, o nulo si la imagen debe ser ignorada.


public static void emptyBody  ( Body jBody ) { LocalGenerator lg = new LocalGenerator ( jBody ) ; List < Unit > idStmts = new ArrayList < Unit > ( ) ; for ( Unit u : jBody . getUnits ( ) ) { if ( u instanceof IdentityStmt ) { IdentityStmt i = ( IdentityStmt ) u ; if ( i . getRightOp ( ) instanceof ParameterRef || i . getRightOp ( ) instanceof ThisRef ) idStmts . add ( u ) ; } } jBody . getUnits ( ) . clear ( ) ; jBody . getTraps ( ) . clear ( ) ; for ( Unit u : idStmts ) jBody . getUnits ( ) . add ( u ) ; Type rType = jBody . getMethod ( ) . getReturnType ( ) ; jBody . getUnits ( ) . add ( Jimple . v ( ) . newNopStmt ( ) ) ; if ( rType instanceof VoidType ) { jBody . getUnits ( ) . add ( Jimple . v ( ) . newReturnVoidStmt ( ) ) ; } else { Type t = jBody . getMethod ( ) . getReturnType ( ) ; Local l = lg . generateLocal ( t ) ; AssignStmt ass = null ; if ( t instanceof RefType || t instanceof ArrayType ) { ass = Jimple . v ( ) . newAssignStmt ( l , NullConstant . v ( ) ) ; } else if ( t instanceof LongType ) { ass = Jimple . v ( ) . newAssignStmt ( l , LongConstant . v ( 0 ) ) ; } else if ( t instanceof FloatType ) { ass = Jimple . v ( ) . newAssignStmt ( l , FloatConstant . v ( 0.0f ) ) ; } else if ( t instanceof IntType ) { ass = Jimple . v ( ) . newAssignStmt ( l , IntConstant . v ( 0 ) ) ; } else if ( t instanceof DoubleType ) { ass = Jimple . v ( ) . newAssignStmt ( l , DoubleConstant . v ( 0 ) ) ; } else if ( t instanceof BooleanType || t instanceof ByteType || t instanceof CharType || t instanceof ShortType ) { ass = Jimple . v ( ) . newAssignStmt ( l , IntConstant . v ( 0 ) ) ; } else { throw new RuntimeException ( "error: return type unknown: " + t + " class: " + t . getClass ( ) ) ; } jBody . getUnits ( ) . add ( ass ) ; jBody . getUnits ( ) . add ( Jimple . v ( ) . newReturnStmt ( l ) ) ; } }

Eliminar todas las declaraciones, excepto de las administraciones de identificación para los parámetros.Devuelva el valor predeterminado (nulo o cero o nada dependiendo del tipo de retorno).


public Observable < Bitmap > captureRx  ( @ Nullable View ... ignoredViews ) { InstaCapture . startTime = System . currentTimeMillis ( ) ; final Activity activity = activityReferenceManager . getValidatedActivity ( ) ; if ( activity == null ) { return Observable . error ( new ActivityNotRunningException ( MESSAGE_IS_ACTIVITY_RUNNING ) ) ; } if ( mScreenCapturingListener != null ) { mScreenCapturingListener . onCaptureStarted ( ) ; } return screenshotProvider . getScreenshotBitmap ( activity , ignoredViews ) . observeOn ( AndroidSchedulers . mainThread ( ) ) ; }


public void openDriver  ( SurfaceHolder holder ) throws IOException { if ( camera == null ) { camera = Camera . open ( ) ; if ( camera == null ) { throw new IOException ( ) ; } camera . setPreviewDisplay ( holder ) ; if ( ! initialized ) { initialized = true ; configManager . initFromCameraParameters ( camera ) ; } configManager . setDesiredCameraParameters ( camera ) ; FlashlightManager . enableFlashlight ( ) ; } }

Abre el controlador de la cámara e inicializa los parámetros de hardware.


public VideoDeleteQuery delete  ( UserActor actor , int videoId ) { return new VideoDeleteQuery ( getClient ( ) , actor , videoId ) ; }

Elimina un video de un usuario o página de la comunidad.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SpellATK_Instant_A_TO_B  ( String skillcaster , int num0 , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201025 , skillcaster , num0 , skilltarget , skillname ) ; }

[% Skillcaster] infligido% de daño NUM0 en [% SkillTarget] usando [% de habilidad].


public MessagesGetChatQueryWithChatIds ( VkApiClient client , UserActor actor , List < Integer > chatIds ) { super ( client , "messages.getChat" , Utils . buildParametrizedType ( List . class , Chat . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; chatIds ( chatIds ) ; }

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


public void dumpRelations  ( String title ) { dump ( new PrintWriter ( System . out ) , 0 , title , true ) ; }


public ApiRequest ( String format , @ NotNull String perPage , @ NotNull String page , UriInfo uriInfo ) throws BadApiRequestException { this ( format , SYNCHRONOUS_REQUEST_FLAG , perPage , page , uriInfo ) ; }

Analiza la URL de solicitud API y genera el objeto de solicitud API.Los valores predeterminados asincpteran nunca.


public void closeListeners  ( ) throws GenericServiceException  { loadable = 0 ; for ( String serverKey : listeners . keySet ( ) ) { closeListener ( serverKey ) ; } }

Cierre todos los oyentes de Mensaje JMS.


public static ServiceClient createServiceClient  ( TrustManager trustManager , KeyManager keyManager , int requestPayloadSizeLimit ) { return createServiceClient ( CertificateUtil . createSSLContext ( trustManager , keyManager ) , requestPayloadSizeLimit ) ; }

Cree una instancia de servicio de servicio usando el TrustManager, KeyManager y SemplEspayPaySizelimit


public static List < String > tokenize  ( String str , String delim , boolean duplicates ) { ArrayList < String > listToken = new ArrayList < String > ( ) ; if ( str == null ) return listToken ; StringTokenizer st ; if ( delim != null ) st = new StringTokenizer ( str , delim ) ; else st = new StringTokenizer ( str ) ; while ( st . hasMoreTokens ( ) ) { String token = st . nextToken ( ) . trim ( ) ; if ( ! duplicates && listToken . contains ( token ) ) continue ; listToken . add ( token ) ; } return listToken ; }

Tokenizar la cadena suministrada y devolver todos los tokens en la instancia de la lista.


private static void convertActivityToTranslucentAfterL  ( Activity activity ) { try { Method getActivityOptions = Activity . class . getDeclaredMethod ( "getActivityOptions" ) ; getActivityOptions . setAccessible ( true ) ; Object options = getActivityOptions . invoke ( activity ) ; Class < ? > [ ] classes = Activity . class . getDeclaredClasses ( ) ; Class < ? > translucentConversionListenerClazz = null ; for ( Class clazz : classes ) { if ( clazz . getSimpleName ( ) . contains ( "TranslucentConversionListener" ) ) { translucentConversionListenerClazz = clazz ; } } Method convertToTranslucent = Activity . class . getDeclaredMethod ( "convertToTranslucent" , translucentConversionListenerClazz , ActivityOptions . class ) ; convertToTranslucent . setAccessible ( true ) ; convertToTranslucent . invoke ( activity , null , options ) ; } catch ( Throwable t ) { } }

Llamando al método ConvertTotranslucent en plataformas después de Android 5.0


public AppsGetQuery appId  ( Integer value ) { return unsafeParam ( "app_id" , value ) ; }


public final TestSubscriber < T > assertContainValues  ( Set < ? extends T > expectedValues ) { if ( ! valuesStorage ) { throw new IllegalStateException ( "Using assertNoValues() requires enabling values storage" ) ; } if ( expectedValues . size ( ) > values . size ( ) ) { throw new AssertionError ( "Actual contains fewer elements" + values , null ) ; } Iterator < ? extends T > expected = expectedValues . iterator ( ) ; for ( ; ; ) { boolean n2 = expected . hasNext ( ) ; if ( n2 ) { T t2 = expected . next ( ) ; if ( ! values . contains ( t2 ) ) { throw new AssertionError ( "The element is not contained in the " + "received resuls" + " = " + valueAndClass ( t2 ) + " :: " + values , null ) ; } } else { break ; } } return this ; }

Afirme que se han recibido los valores especificados.Los valores de almacenamiento deben estar habilitados para usar este método.


public static boolean isGoDown  ( KeyEvent event ) { return isActionDown ( event ) && ( event . getKeyCode ( ) == KeyEvent . KEYCODE_DPAD_DOWN || ( ! event . isNumLockOn ( ) && event . getKeyCode ( ) == KeyEvent . KEYCODE_NUMPAD_2 ) ) ; }

Comprueba si el evento dado es cualquiera de DPAD DOWN o NUMPAD DOWN.


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

Drops la tabla de base de datos subyacente.


BKLogWriteHandler ( ZKLogMetadataForWriter logMetadata , DistributedLogConfiguration conf , ZooKeeperClientBuilder zkcBuilder , BookKeeperClientBuilder bkcBuilder , LogSegmentMetadataStore metadataStore , OrderedScheduler scheduler , LedgerAllocator allocator , StatsLogger statsLogger , StatsLogger perLogStatsLogger , AlertStatsLogger alertStatsLogger , String clientId , int regionId , PermitLimiter writeLimiter , FeatureProvider featureProvider , DynamicDistributedLogConfiguration dynConf , DistributedLock lock )  { super ( logMetadata , conf , zkcBuilder , bkcBuilder , metadataStore , scheduler , statsLogger , alertStatsLogger , null , WRITE_HANDLE_FILTER , clientId ) ; this . perLogStatsLogger = perLogStatsLogger ; this . writeLimiter = writeLimiter ; this . featureProvider = featureProvider ; this . dynConf = dynConf ; this . ledgerAllocator = allocator ; this . lock = lock ; this . metadataUpdater = LogSegmentMetadataStoreUpdater . createMetadataUpdater ( conf , metadataStore ) ; ensembleSize = conf . getEnsembleSize ( ) ; if ( ensembleSize < conf . getWriteQuorumSize ( ) ) { writeQuorumSize = ensembleSize ; LOG . warn ( "Setting write quorum size {} greater than ensemble size {}" , conf . getWriteQuorumSize ( ) , ensembleSize ) ; } else { writeQuorumSize = conf . getWriteQuorumSize ( ) ; } if ( writeQuorumSize < conf . getAckQuorumSize ( ) ) { ackQuorumSize = writeQuorumSize ; LOG . warn ( "Setting write ack quorum size {} greater than write quorum size {}" , conf . getAckQuorumSize ( ) , writeQuorumSize ) ; } else { ackQuorumSize = conf . getAckQuorumSize ( ) ; } if ( conf . getEncodeRegionIDInLogSegmentMetadata ( ) ) { this . regionId = regionId ; } else { this . regionId = DistributedLogConstants . LOCAL_REGION_ID ; } this . sanityCheckTxnId = conf . getSanityCheckTxnID ( ) ; this . validateLogSegmentSequenceNumber = conf . isLogSegmentSequenceNumberValidationEnabled ( ) ; maxLogSegmentSequenceNo = new MaxLogSegmentSequenceNo ( logMetadata . getMaxLSSNData ( ) ) ; inprogressLSSNs = new LinkedList < Long > ( ) ; maxTxId = new MaxTxId ( zooKeeperClient , logMetadata . getMaxTxIdPath ( ) , conf . getSanityCheckTxnID ( ) , logMetadata . getMaxTxIdData ( ) ) ; scheduleGetLedgersTask ( false , true ) ; setLastLedgerRollingTimeMillis ( Utils . nowInMillis ( ) ) ; if ( conf . getLogSegmentRollingIntervalMinutes ( ) > 0 ) { rollingPolicy = new TimeBasedRollingPolicy ( conf . getLogSegmentRollingIntervalMinutes ( ) * 60 * 1000L ) ; } else { rollingPolicy = new SizeBasedRollingPolicy ( conf . getMaxLogSegmentBytes ( ) ) ; } StatsLogger segmentsStatsLogger = statsLogger . scope ( "segments" ) ; openOpStats = segmentsStatsLogger . getOpStatsLogger ( "open" ) ; closeOpStats = segmentsStatsLogger . getOpStatsLogger ( "close" ) ; recoverOpStats = segmentsStatsLogger . getOpStatsLogger ( "recover" ) ; deleteOpStats = segmentsStatsLogger . getOpStatsLogger ( "delete" ) ; }

Construya un gerente de revistas contables.


public static ShapeDrawable toRoundDrawable  ( int color , int radius ) { int r = toPx ( radius ) ; float [ ] outerR = new float [ ] { r , r , r , r , r , r , r , r } ; RoundRectShape shape = new RoundRectShape ( outerR , null , null ) ; ShapeDrawable drawable = new ShapeDrawable ( shape ) ; drawable . getPaint ( ) . setColor ( color ) ; return drawable ; }


public static boolean identical  ( ItemStack a , ItemStack b ) { if ( a == null && b == null ) { return true ; } else if ( a == null || b == null ) { return false ; } return couldMerge ( a , b ) ; }

devuelva si los dos artículos de artículo son idénticos, exceptuando stacksize


public void addCategory  ( String category ) { if ( TextUtils . isEmpty ( category ) ) return ; mIntent . addCategory ( category ) ; }


public Type < ? > findAncestor  ( final Class < ? > ancestor ) { if ( ancestor . isInterface ( ) ) { return findInterface ( ancestor ) ; } else { if ( this . getRawType ( ) . equals ( ancestor ) ) { return this ; } else if ( ! TypeFactory . TYPE_OF_OBJECT . equals ( this ) ) { return getSuperType ( ) . findAncestor ( ancestor ) ; } else { return null ; } } }

Encuentra una clase o interfaz que es un antepasado de este tipo


public boolean isTimeGrainValid  ( ) { if ( nestedQuery != null ) { TimeGrain nestedTimeGrain = nestedQuery . getTimeGrain ( ) ; return timeGrain == null || nestedTimeGrain == null || timeGrain . satisfiedBy ( nestedTimeGrain ) ; } return true ; }

Compruebe si el Tiempo OuterGrain es compatible con TimeGrain interno.


private DomainSuffixes ( ) { String file = "domain-suffixes.xml" ; InputStream input = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( file ) ; assert input != null ; try { new DomainSuffixesReader ( ) . read ( this , input ) ; } catch ( Exception ex ) { LOG . warn ( StringUtils . stringifyException ( ex ) ) ; } }


public boolean isCancelled  ( ) { return this . request != null && request . isCancelled ( ) ; }

Devuelve VERDADERO si esta tarea se canceló antes de que se complete normalmente.


@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) public static < R extends  Remote > RemoteAsyncCommandResult < R > executeAsync ( RemoteJavaCommand < R > command , File dir )  throws ExecutionException  { try { Process process = forkProcess ( command , dir ) ; return new RemoteAsyncCommandResult ( process , command ) ; } catch ( ExecutionException ex ) { throw ex ; } catch ( Throwable th ) { throw new ExecutionException ( "Failed to execute remote async command: [" + command + "]" , th ) ; } }

Comience el comando de Java remoto dado de manera asíncrona.


@ NotNull public ListPersonsInPersonGroupAction listPersonsInPersonGroup  ( @ NotNull String personGroupId ) { Validation . validate ( personGroupId , "^[a-z0-9_-]{1,64}$" , new ParameterValidationException ( "personGroupId" , "Person group ID is invalid. Valid format should be a string composed by numbers, english letters in lower case, '-', '_', and no longer than 64 characters." ) ) ; return new ListPersonsInPersonGroupAction ( cognitiveContext , personGroupId ) ; }

Enumere a todas las personas en grupo de personas, y recupere la información de la persona (incluida la identificación de la persona, el nombre, los datos de usuario y las caras registradas de la persona).


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set layout=" ) ; String layout = np . getWordMatchesIgnoringCase ( Basic . toString ( AlignmentViewer . AlignmentLayout . values ( ) , " " ) ) ; np . matchIgnoreCase ( ";" ) ; AlignmentViewer viewer = ( AlignmentViewer ) getViewer ( ) ; viewer . getSelectedBlock ( ) . clear ( ) ; viewer . setAlignmentLayout ( AlignmentViewer . AlignmentLayout . valueOfIgnoreCase ( layout ) , ( ( Director ) getDir ( ) ) . getDocument ( ) . getProgressListener ( ) ) ; viewer . getAlignmentViewerPanel ( ) . zoom ( "both" , "fit" , null ) ; }


@ Override public String encodeSLD  ( URL resourceLocator , StyledLayerDescriptor sld ) { String xml = "" ; if ( sld != null ) { DuplicatingStyleVisitor duplicator = new DuplicatingStyleVisitor ( ) ; sld . accept ( duplicator ) ; StyledLayerDescriptor sldCopy = ( StyledLayerDescriptor ) duplicator . getCopy ( ) ; if ( resourceLocator != null ) { SLDExternalImages . updateOnlineResources ( resourceLocator , sldCopy ) ; } SLDTransformer transformer = new SLDTransformer ( ) ; transformer . setIndentation ( 2 ) ; try { xml = transformer . transform ( sldCopy ) ; } catch ( TransformerException e ) { ConsoleManager . getInstance ( ) . exception ( this , e ) ; } } return xml ; }


public String encodeSLD  ( StyledLayerDescriptor sld ) { String xml = "" ; if ( sld != null ) { SLDTransformer transformer = new SLDTransformer ( ) ; transformer . setIndentation ( 2 ) ; try { xml = transformer . transform ( sld ) ; } catch ( TransformerException e ) { ConsoleManager . getInstance ( ) . exception ( this , e ) ; } } return xml ; }


public void load  ( ) throws IOException  { if ( magicNumber == 0 ) { try ( InputReaderLittleEndian ins = new InputReaderLittleEndian ( new FileInputStreamAdapter ( fileName ) ) ) { magicNumber = ins . readLong ( ) ; if ( magicNumber != MAGIC_NUMBER ) throw new IOException ( "Input file is not a DAA file." ) ; version = ins . readLong ( ) ; if ( version > DAA_VERSION ) throw new IOException ( "DAA version requires later version of MEGAN." ) ; diamondBuild = ins . readLong ( ) ; dbSeqs = ins . readLong ( ) ; dbSeqsUsed = ins . readLong ( ) ; dbLetters = ins . readLong ( ) ; flags = ins . readLong ( ) ; queryRecords = ins . readLong ( ) ; modeRank = ins . readInt ( ) ; gapOpen = ins . readInt ( ) ; gapExtend = ins . readInt ( ) ; reward = ins . readInt ( ) ; penalty = ins . readInt ( ) ; reserved1 = ins . readInt ( ) ; reserved2 = ins . readInt ( ) ; reserved3 = ins . readInt ( ) ; k = ins . readDouble ( ) ; lambda = ins . readDouble ( ) ; reserved4 = ins . readDouble ( ) ; reserved5 = ins . readDouble ( ) ; for ( int i = 0 ; i < scoreMatrix . length ; i ++ ) { scoreMatrix [ i ] = ( byte ) ins . read ( ) ; } scoreMatrixName = Basic . toString ( scoreMatrix ) ; for ( int i = 0 ; i < blockSize . length ; i ++ ) blockSize [ i ] = ins . readLong ( ) ; if ( blockSize [ 0 ] == 0 ) throw new IOException ( "Invalid DAA file. DIAMOND run probably has not completed successfully." ) ; for ( int i = 0 ; i < blockTypeRank . length ; i ++ ) { blockTypeRank [ i ] = ( byte ) ins . read ( ) ; switch ( BlockType . value ( blockTypeRank [ i ] ) ) { case ref_names : if ( refNamesBlockIndex != - 1 ) throw new IOException ( "DAA file contains multiple ref_names blocks, not implemented." ) ; refNamesBlockIndex = i ; break ; case ref_lengths : if ( refLengthsBlockIndex != - 1 ) throw new IOException ( "DAA file contains multiple ref_lengths blocks, not implemented." ) ; refLengthsBlockIndex = i ; break ; case alignments : if ( alignmentsBlockIndex != - 1 ) throw new IOException ( "DAA file contains multiple alignments blocks, not implemented." ) ; alignmentsBlockIndex = i ; break ; } } if ( refNamesBlockIndex == - 1 ) throw new IOException ( "DAA file contains 0 ref_names blocks, not implemented." ) ; if ( refLengthsBlockIndex == - 1 ) throw new IOException ( "DAA file contains 0 ref_lengths blocks, not implemented." ) ; if ( alignmentsBlockIndex == - 1 ) throw new IOException ( "DAA file contains 0 alignments blocks, not implemented." ) ; if ( refLengthsBlockIndex < refNamesBlockIndex ) throw new IOException ( "DAA file contains ref_lengths block before ref_names block, not implemented." ) ; headerSize = ins . getPosition ( ) ; lnK = Math . log ( k ) ; } } }

Lea el encabezado de un archivo DAA y todos los nombres de referencia


@ Override public int countMissing  ( ) { int count = 0 ; for ( int i = 0 ; i < size ( ) ; i ++ ) { if ( getByte ( i ) == MISSING_VALUE ) { count ++ ; } } return count ; }

Devuelve el recuento de valores faltantes en esta columna.


public Shape triangle_up  ( float x , float y , float height ) { m_path . reset ( ) ; m_path . moveTo ( x , y + height ) ; m_path . lineTo ( x + height / 2 , y ) ; m_path . lineTo ( x + height , ( y + height ) ) ; m_path . closePath ( ) ; return m_path ; }

Devuelve un triángulo puntiagudo de las dimensiones dadas.


public static void addStrut  ( JComponent b , int layout , int size ) { if ( size < 1 ) return ; b . add ( getAxis ( b , layout ) == BoxLayout . X_AXIS ? Box . createHorizontalStrut ( size ) : Box . createVerticalStrut ( size ) ) ; }

Agregue un puntal, o espaciado rígido, a un componente de UI


protected void startAuthenticationAndInjectCsrfToken  ( HttpRequest request ) { logger . debug ( "Authenticate because no session is found in cookie store or it doesn't match with the one used to get the CSRF token we have." ) ; startAuthenticationFlow ( ) ; logger . debug ( "Injecting CSRF token" ) ; injectCsrfTokenIntoHeader ( request , latestCsrfToken ) ; }

Inicie el flujo de autenticación e inyectar el token de CSRF


@ Deprecated public void showDoneButton  ( boolean showDone ) { setProgressButtonEnabled ( showDone ) ; }

Muestra o se esconde el botón hecho, reemplazado con SetProgressButtoneNabled


public ResourcesPoet addInteger  ( String name , String value ) { Element bool = document . createElement ( "integer" ) ; bool . setAttribute ( "name" , name ) ; bool . appendChild ( document . createTextNode ( String . valueOf ( value ) ) ) ; resourceElement . appendChild ( bool ) ; return this ; }


public TShortLongHashMap ( int initialCapacity , TShortHashingStrategy strategy ) { super ( initialCapacity , strategy ) ; }

Crea una nueva instancia de <code> tshortlonghashashashashashachshashashashashashashashashashachshashashashashashashach.


public PhotosSaveWallPhotoQuery groupId  ( Integer value ) { return unsafeParam ( "group_id" , value ) ; }

ID de comunidad en cuyo muro se guardará la foto.


public Builder clearMessage  ( ) { message_ = getDefaultInstance ( ) . getMessage ( ) ; onChanged ( ) ; return this ; }

<Código> Mensaje de cadena opcional = 1; </ código>


@ Override public long limit  ( ) { return limit ; }


public final boolean canGetDouble  ( String field ) { return m_table . canGetDouble ( field ) ; }

Compruebe si el campo de datos dado puede devolver los valores primitivos <código> dobles </ code>.


@ Override protected void checkProperty  ( String propertyId ) throws XMLConfigurationException  { super . checkProperty ( propertyId ) ; }

Compruebe una propiedad.Si la propiedad es conocida y admitida, este método simplemente regresa.De lo contrario, la excepción apropiada es lanzada.


protected void actionPerformed  ( GuiButton par1GuiButton ) { if ( par1GuiButton . enabled ) { if ( par1GuiButton . id == ID_GENERIC_DONE ) { Minecraft . getMinecraft ( ) . vrSettings . saveOptions ( ) ; this . mc . displayGuiScreen ( this . parentGuiScreen ) ; } else if ( par1GuiButton . id == ID_GENERIC_DEFAULTS ) { this . guivrSettings . crosshairScale = 1.0f ; this . guivrSettings . renderBlockOutlineMode = VRSettings . RENDER_BLOCK_OUTLINE_MODE_ALWAYS ; this . guivrSettings . renderInGameCrosshairMode = VRSettings . RENDER_CROSSHAIR_MODE_ALWAYS ; this . guivrSettings . menuCrosshairScale = 1f ; this . guivrSettings . useCrosshairOcclusion = false ; Minecraft . getMinecraft ( ) . vrSettings . saveOptions ( ) ; this . reinit = true ; } else if ( par1GuiButton instanceof GuiSmallButtonEx ) { VRSettings . VrOptions num = VRSettings . VrOptions . getEnumOptions ( par1GuiButton . id ) ; this . guivrSettings . setOptionValue ( ( ( GuiSmallButtonEx ) par1GuiButton ) . returnVrEnumOptions ( ) , 1 ) ; par1GuiButton . displayString = this . guivrSettings . getKeyBinding ( VRSettings . VrOptions . getEnumOptions ( par1GuiButton . id ) ) ; } } }

Disparado cuando se hace clic en un control.Este es el equivalente de ActionListener.actionFermed (ActionEvent E).


protected boolean shouldUseHomeAsUp  ( ) { return false ; }

Anular este método para que la actividad maneje el botón ARRIBA.Cuando se presiona, navegará al usuario al padre de la actividad.


public static boolean isLazy  ( List < Annotation > annotations , boolean defaultValue ) { JsonApiIncludeByDefault includeByDefaultAnnotation = null ; JsonApiToMany toManyAnnotation = null ; JsonApiToOne toOneAnnotation = null ; for ( Annotation annotation : annotations ) { if ( annotation . annotationType ( ) . equals ( JsonApiIncludeByDefault . class ) ) { includeByDefaultAnnotation = ( JsonApiIncludeByDefault ) annotation ; } if ( annotation . annotationType ( ) . equals ( JsonApiToMany . class ) ) { toManyAnnotation = ( JsonApiToMany ) annotation ; } if ( annotation . annotationType ( ) . equals ( JsonApiToOne . class ) ) { toOneAnnotation = ( JsonApiToOne ) annotation ; } } if ( includeByDefaultAnnotation != null ) { return false ; } else if ( toManyAnnotation != null ) { return toManyAnnotation . lazy ( ) ; } else if ( toOneAnnotation != null ) { return toOneAnnotation . lazy ( ) ; } return defaultValue ; }

Devuelve una bandera que indica si un campo no debe ser serializado automáticamente.


public void loadDataStringFromFile  ( String sFilename , boolean clearCurrentData ) { loadDataStringFromFile ( sFilename , clearCurrentData , utils . getSystemEncoding ( ) ) ; }

Carga los contenidos de un archivo como el duboscendiente.


public static GridLayout createGridLayout  ( int numColumns , PixelConverter converter , int margins ) { Assert . isTrue ( margins == MARGINS_DEFAULT || margins == MARGINS_NONE || margins == MARGINS_DIALOG ) ; final GridLayout layout = new GridLayout ( numColumns , false ) ; layout . horizontalSpacing = converter . convertHorizontalDLUsToPixels ( IDialogConstants . HORIZONTAL_SPACING ) ; layout . verticalSpacing = converter . convertVerticalDLUsToPixels ( IDialogConstants . VERTICAL_SPACING ) ; switch ( margins ) { case MARGINS_NONE : layout . marginLeft = layout . marginRight = 0 ; layout . marginTop = layout . marginBottom = 0 ; break ; case MARGINS_DIALOG : layout . marginLeft = layout . marginRight = converter . convertHorizontalDLUsToPixels ( IDialogConstants . HORIZONTAL_MARGIN ) ; layout . marginTop = layout . marginBottom = converter . convertVerticalDLUsToPixels ( IDialogConstants . VERTICAL_MARGIN ) ; break ; case MARGINS_DEFAULT : layout . marginLeft = layout . marginRight = layout . marginWidth ; layout . marginTop = layout . marginBottom = layout . marginHeight ; } layout . marginWidth = layout . marginHeight = 0 ; return layout ; }

Cree un diseño de cuadrícula con el número especificado de columnas y los espaciadores estándar.


public void testAddAfterStop  ( ) throws Exception  { deleteAllDocs ( ) ; send ( "stopIndex" ) ; try { send ( "addDocument" , "{fields: {}}" ) ; fail ( ) ; } catch ( IOException ioe ) { } send ( "startIndex" ) ; }

Asegúrese de obtener un error si intenta adddocument después de que se detiene el índice


public void addResource  ( RType rType , IdType idType , String name , String idValue ) { Set < RDotTxtEntry > resourceSet = null ; if ( this . rTypeResourceMap . containsKey ( rType ) ) { resourceSet = this . rTypeResourceMap . get ( rType ) ; } else { resourceSet = new HashSet < RDotTxtEntry > ( ) ; this . rTypeResourceMap . put ( rType , resourceSet ) ; } RDotTxtEntry rDotTxtEntry = new RDotTxtEntry ( idType , rType , name , idValue ) ; boolean increaseResource = false ; if ( ! resourceSet . contains ( rDotTxtEntry ) ) { if ( this . originalResourceMap . containsKey ( rDotTxtEntry ) ) { this . rTypeEnumeratorMap . get ( rType ) . previous ( ) ; rDotTxtEntry = this . originalResourceMap . get ( rDotTxtEntry ) ; } else { increaseResource = true ; } resourceSet . add ( rDotTxtEntry ) ; } Set < RDotTxtEntry > increaseResourceSet = null ; if ( this . rTypeIncreaseResourceMap . containsKey ( rType ) ) { increaseResourceSet = this . rTypeIncreaseResourceMap . get ( rType ) ; } else { increaseResourceSet = new HashSet < RDotTxtEntry > ( ) ; this . rTypeIncreaseResourceMap . put ( rType , increaseResourceSet ) ; } if ( increaseResource ) { increaseResourceSet . add ( rDotTxtEntry ) ; } }


private static void addToArray  ( Integer [ ] sum , int [ ] add ) { for ( int i = 0 ; i < add . length ; i ++ ) { sum [ i ] += add [ i ] ; } }


public ParticipantTask ( TaskManager manager , WakeupManager wm , Job myjob , ParticipantHandle handle ) { super ( manager , wm ) ; this . myjob = myjob ; this . handle = handle ; }

Construye un <código> ParticipantTask </ Code>.


public LinearConstraintSet ( LinearConstraint ... constraints ) { for ( LinearConstraint c : constraints ) { linearConstraints . add ( c ) ; } }

Crea un conjunto que contiene las restricciones dadas.


@ Override public boolean equals  ( Object o ) { return toString ( ) . equals ( o . toString ( ) ) ; }

Los proxies para los servidores con el mismo uuid se consideran iguales.


public static String destroyCart  ( HttpServletRequest request , HttpServletResponse response ) { HttpSession session = request . getSession ( ) ; clearCart ( request , response ) ; session . removeAttribute ( "shoppingCart" ) ; session . removeAttribute ( "orderPartyId" ) ; session . removeAttribute ( "orderMode" ) ; session . removeAttribute ( "productStoreId" ) ; session . removeAttribute ( "CURRENT_CATALOG_ID" ) ; return "success" ; }

Totalmente limpie el carrito, elimina toda la información almacenada.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( getSyntax ( ) ) ; CompareWindow viewer = ( CompareWindow ) getParent ( ) ; viewer . getJList ( ) . clearSelection ( ) ; }


private void populate  ( String wktString ) { wktGeometry = WKTConversion . parseWKTString ( wktString ) ; WKTType geometryType = null ; boolean valid = false ; if ( wktGeometry != null ) { geometryType = wktGeometry . getGeometryType ( ) ; valid = wktGeometry . isValid ( ) ; } model . setSelectedItem ( geometryType ) ; updateUI ( geometryType ) ; if ( valid ) { if ( geometryType . canHaveMultipleShapes ( ) ) { populateMultiShapeList ( ) ; } else { populateSegmentList ( 0 ) ; } } wktTextArea . setText ( wktString ) ; updateWKTString ( ) ; }

Pulque el diálogo usando WKT: // String.


public VideoAddAlbumQuery privacy  ( String ... value ) { return unsafeParam ( "privacy" , value ) ; }

Nuevos permisos de acceso para el álbum.


public static void requestWriteExternalStoreagePermission  ( Activity activity ) { ActivityCompat . requestPermissions ( activity , new String [ ] { Manifest . permission . WRITE_EXTERNAL_STORAGE } , PERMISSIONS_WRITE_EXTERNAL_STORAGE ) ; }

Solicite el permiso de escritura para el almacenamiento externo.


private ExpressionPanelFactory ( ) { PrefManager . getInstance  ( ) . addListener ( this ) ; PrefManager . getInstance ( ) . addVendorOptionListener ( this ) ; EnvironmentManagerInterface envMgr = EnvironmentVariableManager . getInstance ( ) ; ExpressionNode . setEnvMgr ( envMgr ) ; }

Instantánea una nueva fábrica de paneles de expresión.


public static boolean propertyValueEqualsIgnoreCase  ( String resource , String name , String compareString ) { String value = getPropertyValue ( resource , name ) ; if ( value == null ) return false ; return value . trim ( ) . equalsIgnoreCase ( compareString ) ; }

Compara la ignoración del caso de la propiedad especificada a la comparación, devuelve verdadero si son iguales, falsas de otra manera


@ Override public void flush  ( Map < TopicPartition , OffsetAndMetadata > offsets ) throws ConnectException { fLog . trace ( "Flush start at " + System . currentTimeMillis ( ) ) ; try { if ( iDelivery > FASTEST ) iWriter . flush ( ) ; if ( iDelivery == SYNCHRONIZED ) { int size = offsets . size ( ) ; String [ ] topicArray = new String [ size ] ; Integer [ ] partitionArray = new Integer [ size ] ; Long [ ] offsetArray = new Long [ size ] ; Iterator < Map . Entry < TopicPartition , OffsetAndMetadata > > iterator = offsets . entrySet ( ) . iterator ( ) ; for ( int i = 0 ; i < size ; ++ i ) { Entry < TopicPartition , OffsetAndMetadata > entry = iterator . next ( ) ; TopicPartition key = entry . getKey ( ) ; OffsetAndMetadata value = entry . getValue ( ) ; topicArray [ i ] = key . topic ( ) ; partitionArray [ i ] = key . partition ( ) ; offsetArray [ i ] = value . offset ( ) ; } iFlushStatement . setArray ( 1 , iConnection . createArrayOf ( "varchar" , topicArray ) ) ; iFlushStatement . setArray ( 2 , iConnection . createArrayOf ( "integer" , partitionArray ) ) ; iFlushStatement . setArray ( 3 , iConnection . createArrayOf ( "bigint" , offsetArray ) ) ; iFlushStatement . executeQuery ( ) ; } } catch ( SQLException | IOException exception ) { throw new ConnectException ( exception ) ; } fLog . trace ( "Flush stop at " + System . currentTimeMillis ( ) ) ; }

Enjuste el contenido a la base de datos.


public boolean isSink  ( ) { return this . sinkSource == SinkSource . Sink || this . sinkSource == SinkSource . Both ; }

Comprueba si esta definición modela un fregadero


private static String resolveMapConflicts  ( String left , String right ) { if ( ! left . equals ( right ) ) { LOG . error ( "Two different casing's detect for parameter: '{}' ('{}' and '{}' found).\n" + "    All casing for identical query parameters must be identical. Cannot proceed." , left . toLowerCase ( Locale . ENGLISH ) , left , right ) ; throw new RuntimeException ( "Found different parameter casing-styles for parameter: " + left ) ; } return left ; }

Función de combinación para combinar elementos de flujo en un mapa.Si dos o más cadenas mapean y no son idénticas, luego registre una advertencia y lanza una excepción.


private boolean resizeAndSaveImage  ( int maxWidth , int maxHeight ) throws IOException { boolean saved = false ; File targetFile = configuration . diskCache . get ( uri ) ; if ( targetFile != null && targetFile . exists ( ) ) { ImageSize targetImageSize = new ImageSize ( maxWidth , maxHeight ) ; DisplayImageOptions specialOptions = new DisplayImageOptions . Builder ( ) . cloneFrom ( options ) . imageScaleType ( ImageScaleType . IN_SAMPLE_INT ) . build ( ) ; ImageDecodingInfo decodingInfo = new ImageDecodingInfo ( memoryCacheKey , Scheme . FILE . wrap ( targetFile . getAbsolutePath ( ) ) , uri , targetImageSize , ViewScaleType . FIT_INSIDE , getDownloader ( ) , specialOptions ) ; Bitmap bmp = decoder . decode ( decodingInfo ) ; if ( bmp != null && configuration . processorForDiskCache != null ) { L . d ( LOG_PROCESS_IMAGE_BEFORE_CACHE_ON_DISK , memoryCacheKey ) ; bmp = configuration . processorForDiskCache . process ( bmp ) ; if ( bmp == null ) { L . e ( ERROR_PROCESSOR_FOR_DISK_CACHE_NULL , memoryCacheKey ) ; } } if ( bmp != null ) { saved = configuration . diskCache . save ( uri , bmp ) ; bmp . recycle ( ) ; } } return saved ; }

Decodifica el archivo de imagen en mapa de bits, redimensionarlo y guardarlo de nuevo


private String faviconUrl  ( ) { String origin = mSite . getAddress ( ) . getOrigin ( ) ; if ( origin == null ) { return "http://" + mSite . getAddress ( ) . getHost ( ) ; } Uri uri = Uri . parse ( origin ) ; if ( uri . getPort ( ) != - 1 ) { uri = uri . buildUpon ( ) . authority ( uri . getHost ( ) ) . build ( ) ; } return uri . toString ( ) ; }

Devuelve la URL del sitio para buscar favicon para.


public void createScriptRunner  ( final IKBus eventBus , final Executor executor ) { if ( scriptRunner == null ) { this . scriptRunner = new ScriptRunner ( eventBus , this , executor ) ; } }

Crea un corredor de guiones para el script si aún no existe.


public void accept  ( AbstractReporter r ) { r . testStart ( this ) ; r . browserInfoEntry ( browserInfoEntry ) ; Iterator < LogEntry > entryIterator = logEntries . iterator ( ) ; while ( entryIterator . hasNext ( ) ) { LogEntry entry = entryIterator . next ( ) ; if ( ! entryIterator . hasNext ( ) ) { entry . setLast ( true ) ; } visit ( entry , r ) ; } r . testEnd ( this ) ; }

Implementación del patrón de visitantes.Toma el informe para una visita guiada a través de toda la información almacenada en la instancia TestInfo, desde el inicio de la prueba a todas las entradas al final de la prueba.Depende de una implementación particular del reportero reaccionar a diferentes tipos de información de prueba y entradas de registro.También, detecta la última entrada de registro sobre la marcha.


private boolean isConfigurationPluginAvailable  ( ) { if ( configurationPluginAvailable == null ) { try { String value = APILocator . getPluginAPI ( ) . loadProperty ( pluginName , "environment" ) ; configurationPluginAvailable = ( value != null ) ; } catch ( Exception e ) { Logger . warn ( this , "Exception while trying to get property 'environment' " , e ) ; configurationPluginAvailable = false ; } Logger . info ( this , "Configuration plugin available: " + configurationPluginAvailable ) ; } return configurationPluginAvailable ; }

Compruebe la tecla "Medio ambiente" en el pluginapi


public boolean isAbnormalState  ( AbnormalState id ) { int state = abnormals & id . getId ( ) ; return state > 0 && state <= id . getId ( ) ; }

Utilizado para comprobaciones de estado anormales compuesto


public char next  ( char c ) throws JSONException  { char n = this . next ( ) ; if ( n != c ) { throw this . syntaxError ( "Expected '" + c + "' and instead saw '" + n + "'" ) ; } return n ; }

Consuma el siguiente carácter, y compruebe que coincida con un carácter específico.


public boolean isAll  ( ) { return all ; }

Devuelve VERDADERO si todos los cuerpos de intersección deben devolverse, FALSO, si solo lo más cercano.


private double dpDistance  ( ) { if ( ( signal == null ) || ( reference == null ) ) { return 1.0e+32 ; } if ( ( signal . length == 0 ) || ( reference . length == 0 ) ) { return 1.0e+32 ; } if ( signal [ 0 ] . length != reference [ 0 ] . length ) { throw new RuntimeException ( "Given signal vector order (" + signal [ 0 ] . length + ") and reference vector order (" + reference [ 0 ] . length + ") are not same." ) ; } weights = weightFunction ( reference . length ) ; RecurssiveDTW rdp = new RecurssiveDTW ( signal . length , reference . length ) ; return rdp . dpCost ; }

El método principal para calcular la puntuación correspondiente entre la señal de prueba seleccionada y la referencia.


private static void unknownPacket  ( State state , int id ) { log . warn ( String . format ( "Unknown packet recived from Game Server: 0x%02X state=%s" , id , state . toString ( ) ) ) ; }


public static void drawVerticalZigZagLine  ( Graphics2D g , int x , int y1 , int y2 ) { drawVerticalZigZagLine ( g , x , y1 , y2 , CENTER_ZIGZAG , CENTER_ZIGZAG ) ; }

Dibuja una línea de zig-zig zig-zag vertical.El color y el estilo utilizado para el dibujo serán los actuales en el contexto de los gráficos.


private String prepareSlowConsumerSleepMsg  ( SocketAddress address , int retriesLeft ) { return "Sleeping - waiting for slow consumer: " + address + " Retry=" + ( _slowConsumerRetries - retriesLeft ) + " SlowConsumerThroughput=" + _slowConsumerThroughput + " SlowConsumerRetries=" + _slowConsumerRetries + " SlowConsumerLatency=" + _slowConsumerLatency ; }


static Object createObject  ( String factoryId , String fallbackClassName ) throws ConfigurationError { return createObject ( factoryId , null , fallbackClassName ) ; }

Encuentra el objeto de la clase de implementación en el orden especificado.El orden especificado es lo siguiente: <ol> <li> consulta la propiedad del sistema utilizando <code> system.getproperty </ code> <li> LEER <CÓDIGO> META-INF / SERVICES / <I> FAICKID </ I> </ Código> Archivo <LI> Use Fallback ClassName </ OL>


public byte [ ] readBytes  ( ) { return readBytes ( 0 , Page . pageSize ) ; }


public int pop  ( ) { return fData [ -- fDepth ] ; }


public static SequenceSchema inferSequence  ( List < List < Writable > > record ) { SequenceSchema . Builder builder = new SequenceSchema . Builder ( ) ; for ( int i = 0 ; i < record . size ( ) ; i ++ ) { if ( record . get ( i ) instanceof DoubleWritable ) builder . addColumnDouble ( String . valueOf ( i ) ) ; else if ( record . get ( i ) instanceof IntWritable ) builder . addColumnInteger ( String . valueOf ( i ) ) ; else if ( record . get ( i ) instanceof LongWritable ) builder . addColumnLong ( String . valueOf ( i ) ) ; else if ( record . get ( i ) instanceof FloatWritable ) builder . addColumnFloat ( String . valueOf ( i ) ) ; else throw new IllegalStateException ( "Illegal writable for infering schema of type " + record . get ( i ) . getClass ( ) . toString ( ) ) ; } builder . minSequenceLength ( record . size ( ) ) ; builder . maxSequenceLength ( record . size ( ) ) ; return builder . build ( ) ; }

Infiere un esquema de secuencia basado en el registro


public NotEqualsSpacePredicate ( Object expectedValue ) { super ( expectedValue , null ) ; }

Crea un predicado escalar utilizando el valor esperado especificado.


private HttpURLConnection createHttpURLConnection  ( IBasicRequest request ) throws Exception { request . onPreExecute ( ) ; String urlStr = request . url ( ) ; Logger . i ( "Request address: " + urlStr ) ; URL url = new URL ( urlStr ) ; HttpURLConnection connection ; Proxy proxy = request . getProxy ( ) ; if ( proxy == null ) connection = URLConnectionFactory . instance ( ) . open ( url ) ; else connection = URLConnectionFactory . instance ( ) . open ( url , proxy ) ; connection . setConnectTimeout ( request . getConnectTimeout ( ) ) ; connection . setReadTimeout ( request . getReadTimeout ( ) ) ; connection . setInstanceFollowRedirects ( false ) ; if ( connection instanceof HttpsURLConnection ) { SSLSocketFactory sslSocketFactory = request . getSSLSocketFactory ( ) ; if ( sslSocketFactory != null ) ( ( HttpsURLConnection ) connection ) . setSSLSocketFactory ( sslSocketFactory ) ; HostnameVerifier hostnameVerifier = request . getHostnameVerifier ( ) ; if ( hostnameVerifier != null ) ( ( HttpsURLConnection ) connection ) . setHostnameVerifier ( hostnameVerifier ) ; } RequestMethod requestMethod = request . getRequestMethod ( ) ; String requestMethodStr = requestMethod . toString ( ) ; Logger . i ( "Request method: " + requestMethodStr ) ; try { connection . setRequestMethod ( requestMethodStr ) ; } catch ( ProtocolException protocol ) { try { Field methodField = connection . getClass ( ) . getDeclaredField ( "method" ) ; methodField . setAccessible ( true ) ; methodField . set ( connection , requestMethodStr ) ; } catch ( Exception noSuchFieldIllegalAccess ) { throw protocol ; } } connection . setDoInput ( true ) ; connection . setDoOutput ( requestMethod . allowRequestBody ( ) ) ; setHeaders ( url . toURI ( ) , connection , request ) ; connection . connect ( ) ; return connection ; }

Se establece la conexión, incluida la cabeza y envíe el organismo de solicitud.


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

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


public final Vertex locateVertexInGraph  ( UniqueVertexGraph gGraph , Vertex vToFind ) { return gGraph . locateVertex ( vToFind ) ; }

Busca un vértice en un gráfico determinado.


public static String checkCreateUpdateAnonUser  ( HttpServletRequest request , HttpServletResponse response ) { throw new UnsupportedOperationException ( "Not implemented" ) ; }

No implementado - actualmente manejado por customerevents.xml # checkcreateupdateanunser.<p> crea / actualiza un usuario de Anon para realizar puestos de pago si se envió un formulario que contiene una solicitud para crear uno (CreateNewuser "Y").<P> Actualmente, siempre creará un nuevo usuario de Anon si la pantalla lo solicitó.Esto al menos puede prevenir (o causar!) Algunos problemas con la sesión.<p> Utilizará un conjunto mínimo de información (nombre y apellido) para crear la persona;El resto debe ser manejado por otros eventos.<p> TIENE TIENE EL VERDIERO FAKE (userloginid "anónimo", PartyID a una nueva parte) en sesión.<P> Basado en CustomErtingVents.xml # ProcessCustomersetingsets.


@ Override protected Expression generateExpression  ( ) { Expression expression = null ; if ( this . comboBox != null ) { ValueComboBoxData selectedValue = comboBox . getSelectedValue ( ) ; if ( selectedValue != null ) { expression = getFilterFactory ( ) . literal ( selectedValue . getKey ( ) ) ; } } return expression ; }


public FriendsEditQuery listIds  ( List < Integer > value ) { return unsafeParam ( "list_ids" , value ) ; }

IDS de las listas de amigos a las que agregar el usuario.


public SimplexSolver ( ) { this  ( DEFAULT_EPSILON , DEFAULT_ULPS , DEFAULT_CUT_OFF ) ; }

Construye un solver Simplex con la configuración predeterminada.


public static String trim  ( String value ) { int start ; int end ; final int lengthMinusOne = value . length ( ) - 1 ; for ( start = 0 ; start <= lengthMinusOne ; ++ start ) { if ( ! isSpace ( value . charAt ( start ) ) ) { break ; } } for ( end = lengthMinusOne ; end >= start ; -- end ) { if ( ! isSpace ( value . charAt ( end ) ) ) { break ; } } if ( start == 0 && end == lengthMinusOne ) { return value ; } if ( start > lengthMinusOne ) { return "" ; } return value . substring ( start , end + 1 ) ; }

Recorta caracteres de espacio como se define por la producción [3] en la especificación XML 1.0 de ambos extremos de la cadena dada.


public static TransformResult of  ( Path path , DummyReference originRef ) throws ValidationException , RepoException { return new TransformResult ( path , originRef , originRef . getAuthor ( ) , "test summary\n" ) ; }

Crea una instancia con los valores predeterminados razonables para las pruebas.


public Builder addColumnString  ( String name , String regex , Integer minAllowableLength , Integer maxAllowableLength ) { return addColumn ( new StringMetaData ( name , regex , minAllowableLength , maxAllowableLength ) ) ; }

Agregar una columna de cadena con las restricciones especificadas


public static Zdiagmat o  ( Zdiagmat D ) { Zdiagmat Dh = new Zdiagmat ( D ) ; for ( int i = 0 ; i < Dh . n ; i ++ ) { Dh . im [ i ] = - Dh . im [ i ] ; } return Dh ; }

Devuelve la transposición conjugada de un Zdiagmat.


public static StatisticLevel toLevel  ( int val , Level defaultLevel ) { return STATISTIC ; }

Devuelve el nivel personalizado para el mensaje de registro del tipo de depuración


public static void apply  ( final ProgressListener progress , final String daaFile , final String metaDataFile , final String [ ] cNames , float minScore , float maxExpected , float minPercentIdentity , float topPercent , float minSupportPercent , int minSupport , boolean pairedReads , int pairedReadsSuffixLength , boolean weightedLCA , float weightedLCAPercent ) throws IOException , CanceledException { progress . setTasks ( "Meganizing" , "init" ) ; DAAReferencesAnnotator . apply ( daaFile , true , cNames , progress ) ; final Document doc = new Document ( ) ; doc . setOpenDAAFileOnlyIfMeganized ( false ) ; doc . getMeganFile ( ) . setFileFromExistingFile ( daaFile , false ) ; doc . getActiveViewers ( ) . add ( Classification . Taxonomy ) ; doc . getActiveViewers ( ) . addAll ( Arrays . asList ( cNames ) ) ; doc . setMinScore ( minScore ) ; doc . setMaxExpected ( maxExpected ) ; doc . setMinPercentIdentity ( minPercentIdentity ) ; doc . setTopPercent ( topPercent ) ; doc . setMinSupportPercent ( minSupportPercent ) ; doc . setMinSupport ( minSupport ) ; doc . setPairedReads ( pairedReads ) ; doc . setPairedReadSuffixLength ( pairedReadsSuffixLength ) ; doc . setBlastMode ( DAAParser . getBlastMode ( daaFile ) ) ; doc . setWeightedLCA ( weightedLCA ) ; doc . setWeightedLCAPercent ( weightedLCAPercent ) ; doc . setProgressListener ( progress ) ; doc . processReadHits ( ) ; final String sampleName = Basic . replaceFileSuffix ( Basic . getFileNameWithoutPath ( daaFile ) , "" ) ; SyncArchiveAndDataTable . syncRecomputedArchive2Summary ( sampleName , "LCA" , doc . getBlastMode ( ) , doc . getParameterString ( ) , doc . getConnector ( ) , doc . getDataTable ( ) , 0 ) ; doc . saveAuxiliaryData ( ) ; if ( metaDataFile . length ( ) > 0 ) { final DAAConnector connector = ( DAAConnector ) doc . getConnector ( ) ; try { System . err . println ( "Saving metadata:" ) ; SampleAttributeTable sampleAttributeTable = new SampleAttributeTable ( ) ; sampleAttributeTable . read ( new FileReader ( metaDataFile ) , Collections . singletonList ( Basic . getFileBaseName ( Basic . getFileNameWithoutPath ( daaFile ) ) ) , false ) ; Map < String , byte [ ] > label2data = new HashMap < > ( ) ; label2data . put ( SampleAttributeTable . SAMPLE_ATTRIBUTES , sampleAttributeTable . getBytes ( ) ) ; connector . putAuxiliaryData ( label2data ) ; System . err . println ( "done" ) ; } catch ( Exception ex ) { Basic . caught ( ex ) ; } } final DAAHeader header = new DAAHeader ( daaFile ) ; header . load ( ) ; header . setReserved3 ( DAAHeader . MEGAN_VERSION ) ; header . save ( ) ; }


public double eatNumericConstant  ( ) { if ( ! matchNumericConstant ( ) ) throw new BadSyntaxException ( ) ; double d = tok . nval ; nextToken ( ) ; return d ; }

Lanza una excepción si el token actual no es un número entero.De lo contrario, devuelve ese entero y se mueve al siguiente token.