public static int apply  ( Document doc , ViewerBase viewer , String method , Distances distances , boolean normalize ) throws IOException { System . err . println ( "Computing " + method + " distances" ) ; Vector < Double [ ] > input = new Vector < > ( ) ; double [ ] total = new double [ doc . getNumberOfSamples ( ) ] ; int countNodesUsed = 0 ; HashSet < Integer > seen = new HashSet < > ( ) ; for ( Node v = viewer . getGraph ( ) . getFirstNode ( ) ; v != null ; v = v . getNext ( ) ) { Integer id = ( Integer ) v . getInfo ( ) ; if ( viewer . getSelected ( v ) ) { if ( ! seen . contains ( id ) ) { seen . add ( id ) ; countNodesUsed ++ ; final int [ ] counts = ( v . getOutDegree ( ) == 0 ? viewer . getNodeData ( v ) . getSummarized ( ) : viewer . getNodeData ( v ) . getAssigned ( ) ) ; final Double [ ] numbers = new Double [ counts . length ] ; for ( int i = 0 ; i < counts . length ; i ++ ) { numbers [ i ] = ( double ) counts [ i ] ; total [ i ] += numbers [ i ] ; } input . addElement ( numbers ) ; } } } if ( normalize ) { for ( Double [ ] numbers : input ) { for ( int i = 0 ; i < numbers . length ; i ++ ) { if ( total [ i ] > 0 ) { numbers [ i ] /= total [ i ] ; } } } } System . err . println ( "Nodes used: " + seen . size ( ) ) ; Vector < Vector < Double > > upperTriangle ; if ( method . equalsIgnoreCase ( GOODALL ) ) { upperTriangle = EcologicalIndices . getGoodallsDistance ( input , false ) ; } else if ( method . equalsIgnoreCase ( GOODALL_NORMALIZED ) ) { upperTriangle = EcologicalIndices . getGoodallsDistance ( input , true ) ; } else if ( method . equalsIgnoreCase ( CHISSQUARE ) ) { upperTriangle = EcologicalIndices . getChiSquareDistance ( input ) ; } else if ( method . equalsIgnoreCase ( KULCZYNSKI ) ) { upperTriangle = EcologicalIndices . getKulczynskiDistance ( input ) ; } else if ( method . equalsIgnoreCase ( BRAYCURTIS ) ) { upperTriangle = EcologicalIndices . getBrayCurtisDistance ( input ) ; } else if ( method . equalsIgnoreCase ( HELLINGER ) ) { upperTriangle = EcologicalIndices . getHellingerDistance ( input ) ; } else if ( method . equalsIgnoreCase ( EUCLIDEAN ) ) { upperTriangle = EcologicalIndices . getEuclidDistance ( input , false ) ; } else if ( method . equalsIgnoreCase ( EUCLIDEAN_NORMALIZED ) ) { upperTriangle = EcologicalIndices . getEuclidDistance ( input , true ) ; } else throw new IOException ( "Unknown distance: " + method ) ; distances . setFromUpperTriangle ( upperTriangle ) ; return countNodesUsed ; }


public IterationManager ( final int maxIterations ) { this . iterations = new Incrementor ( maxIterations ) ; this . listeners = new CopyOnWriteArrayList < IterationListener > ( ) ; }


public static int compareBytes  ( byte [ ] b1 , int s1 , int l1 , byte [ ] b2 , int s2 , int l2 ) { int end1 = s1 + l1 ; int end2 = s2 + l2 ; for ( int i = s1 , j = s2 ; i < end1 && j < end2 ; i ++ , j ++ ) { int a = ( b1 [ i ] & 0xff ) ; int b = ( b2 [ j ] & 0xff ) ; if ( a != b ) { return a - b ; } } return l1 - l2 ; }


private static void printUsage  ( ) { System . err . println ( "Syntax:\nsummaryEvaluator [-summaryDir=summaries/] [-modelDir=models/]" + "[-nMin=#] [-nMax=#] [-dist=#] [-t=#]" + "[-s] [-use=o|d] [-progress] [-docClass=...] [-compClass=...]" ) ; System . err . println ( "nMin=#\tMin n-gram size.\nnMax=#\tMax n-gram size.\n" + "dist=#\tN-gram window.\n" + "-o=outFile\tThe file to output data. Default is stdout.\n" + "-t=#\tNumber of threads. Defaults to number of available processors declared by system.\n" + "-s\tFor non-verbose output (silent).\n" + "-progress\tFor progress indication (even in silent mode).\n" + "-docClass=...\tA java class identifier to use as Document class. " + "Defaults to jinsect.documentModel.NGramDocument \n" + "-compClass=...\tA java class identifier to use as Comparator class. " + "Defaults to jinsect.documentModel.StandardDocumentComparator \n" + "-?\tShow this screen." ) ; }

Proporciona información de sintaxis de línea de comandos para la función principal.


@ Override public void processPacket  ( INetHandler netHandler ) { channel . handle ( packet ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Fall_ME_TO_SELF  ( String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200361 , skillname ) ; }

Fuiste obligado a chocar con el uso de [% de habilidad].


public ActivationExporter ( ActivationID id , Exporter underlyingExporter ) { this ( id , underlyingExporter , null ) ; }

Crea un exportador para un objeto remoto activable con el identificador de activación especificado, exportador subyacente y un cargador de clases </ code> null> null.


protected void prepareWriterAndWriteData  ( List < String > data , String columnId ) throws IOException { ColumnIdentifier columnIdentifier = new ColumnIdentifier ( columnId , null , null ) ; CarbonDictionaryWriter carbonDictionaryWriter = new CarbonDictionaryWriterImpl ( carbonStorePath , carbonTableIdentifier , columnIdentifier ) ; CarbonTablePath carbonTablePath = CarbonStorePath . getCarbonTablePath ( carbonStorePath , carbonTableIdentifier ) ; CarbonUtil . checkAndCreateFolder ( carbonTablePath . getMetadataDirectoryPath ( ) ) ; List < byte [ ] > valueList = convertStringListToByteArray ( data ) ; try { carbonDictionaryWriter . write ( valueList ) ; } finally { carbonDictionaryWriter . close ( ) ; carbonDictionaryWriter . commit ( ) ; } }


@ Override public void visit  ( int version , int access , String name , String signature , String superName , String [ ] interfaces ) { visitedClassName = name ; visitedSuperName = superName ; super . visitField ( Opcodes . ACC_PUBLIC | Opcodes . ACC_STATIC | Opcodes . ACC_VOLATILE | Opcodes . ACC_SYNTHETIC , "$change" , getRuntimeTypeName ( CHANGE_TYPE ) , null , null ) ; access = transformClassAccessForInstantRun ( access ) ; super . visit ( version , access , name , signature , superName , interfaces ) ; }

Asegura que la clase contiene un campo de cambio de $ que se usa para referenciar al despachador IncrementalCange.<P /> También actualiza Package_Private visiblidad a público para que podamos llamar a esta clase desde fuera del paquete.


public static SM_SYSTEM_MESSAGE STR_MSG_ACCUSE_DEGRADE_LEVEL  ( int num0 ) { return new SM_SYSTEM_MESSAGE ( 1400070 , num0 ) ; }

Su fase de restricción se ha reducido a% NUM0 a medida que jugó justo durante un cierto período de tiempo.Por favor, continúe jugando el juego de una manera adecuada.


public void endOfSuite  ( ) throws InterruptedException  { if ( asynchronousThread == null ) { throw new IllegalStateException ( "Reporting thread not yet started" ) ; } this . keepRunning = false ; asynchronousThread . join ( ) ; }

Establece la bandera para indicar que no habrá más pruebas.Espera a informar hilo para terminar su trabajo.


public void makeCurrent  ( EGLSurface drawSurface , EGLSurface readSurface ) { if ( eGLDisplay == EGL14 . EGL_NO_DISPLAY ) { Log . d ( TAG , "NOTE: makeCurrent w/o display" ) ; } if ( ! EGL14 . eglMakeCurrent ( eGLDisplay , drawSurface , readSurface , eGLContext ) ) { throw new RuntimeException ( "eglMakeCurrent(draw,read) failed" ) ; } }

Hace que nuestra corriente de contexto EGL, utilizando las superficies suministradas de "DRABRE" y "LEER".


public static void createTable  ( Database db , boolean ifNotExists ) { String constraint = ifNotExists ? "IF NOT EXISTS " : "" ; db . execSQL ( "CREATE TABLE " + constraint + "\"BANGUMI_CALENDAR\" (" + "\"_id\" INTEGER PRIMARY KEY ," + "\"NAME_CN\" TEXT NOT NULL ," + "\"AIR_WEEKDAY\" INTEGER NOT NULL ," + "\"BANGUMI_ID\" INTEGER NOT NULL ," + "\"BANGUMI_TOTAL\" INTEGER," + "\"BANGUMI_AVERAGE\" REAL," + "\"LARGE_IMAGE\" TEXT," + "\"COMMON_IMAGE\" TEXT," + "\"MEDIUM_IMAGE\" TEXT," + "\"SMALL_IMAGE\" TEXT," + "\"GRID_IMAGE\" TEXT," + "\"RANK\" INTEGER," + "\"NAME_JP\" TEXT);" ) ; }

Crea la tabla de base de datos subyacente.


public void addGlobalNotationDecl  ( XSNotationDecl decl ) { fGlobalNotationDecls . put ( decl . fName , decl ) ; decl . setNamespaceItem ( this ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Poison_A_TO_ME  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200619 , skillcaster , skillname ) ; }

[% Skillcaster] te ha envenenado usando [% de habilidad].


protected boolean requireRecentSdk  ( ) { return false ; }

¿Es adecuado la instalación de SDK BUNDLED (INCOMPLETE) o ¿necesitamos encontrar una instalación válida?


public static < T > Observable < T > doWhile  ( ObservableSource < ? extends T > source , BooleanSupplier postCondition ) { ObjectHelper . requireNonNull ( source , "source is null" ) ; ObjectHelper . requireNonNull ( postCondition , "postCondition is null" ) ; return RxJavaPlugins . onAssembly ( new ObservableWhileDoWhile < T > ( source , AlwaysTrueBooleanSupplier . INSTANCE , postCondition ) ) ; }

Devuelva un observable que vuelva a emitir las emisiones de la fuente observable, y luego re-suscribe a la fuente de largo, ya que una condición es verdadera.<p> <img anchth = "640" src = "https://raw.github.com/wiki/reactivex/rxjava/images/rx- operadores/dowhile.png" alt = "">


public String printConfiguration  ( CustomConfiguration config ) { return config . toStringMultiLine ( true ) ; }

Esto devuelve una representación de cadena de una configuración, en este momento está utilizando un enfoque multilíneo para la representación de CustomConfiguration.


@ Override public void buttonPressed  ( Component buttonExternal ) { JFileChooser fc = new JFileChooser ( ) ; if ( externalFileURL != null ) { String filename = externalFileURL . toExternalForm ( ) ; File currentFile = ExternalFilenames . getFile ( SLDEditorFile . getInstance ( ) . getSLDData ( ) , filename ) ; if ( currentFile . exists ( ) ) { fc . setCurrentDirectory ( currentFile . getParentFile ( ) ) ; } } fc . addChoosableFileFilter ( new ExternalGraphicFilter ( ) ) ; int returnVal = fc . showOpenDialog ( buttonExternal ) ; if ( returnVal == JFileChooser . APPROVE_OPTION ) { try { externalFileURL = fc . getSelectedFile ( ) . toURI ( ) . toURL ( ) ; populateExpression ( externalFileURL . toExternalForm ( ) ) ; UndoManager . getInstance ( ) . addUndoEvent ( new UndoEvent ( this , FieldIdEnum . EXTERNAL_GRAPHIC , oldValueObj , externalFileURL ) ) ; oldValueObj = externalFileURL ; if ( parentObj != null ) { parentObj . externalGraphicValueUpdated ( ) ; } } catch ( MalformedURLException e1 ) { e1 . printStackTrace ( ) ; } } }


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set nodeSize=" ) ; int width = np . getInt ( 0 , 1000 ) ; np . matchIgnoreCase ( ";" ) ; if ( getViewer ( ) instanceof GraphView ) { boolean changed = false ; GraphView viewer = ( GraphView ) getViewer ( ) ; for ( Node v : viewer . getSelectedNodes ( ) ) { viewer . setHeight ( v , width ) ; viewer . setWidth ( v , width ) ; changed = true ; } if ( changed ) { viewer . repaint ( ) ; } } }


public AirMapTfrProperties ( JSONObject propertiesJson ) { constructFromJson ( propertiesJson ) ; }

Inicializa a AirMaptFrProperties de JSON


private ResultPointsAndTransitions transitionsBetween  ( ResultPoint from , ResultPoint to ) { int fromX = ( int ) from . getX ( ) ; int fromY = ( int ) from . getY ( ) ; int toX = ( int ) to . getX ( ) ; int toY = ( int ) to . getY ( ) ; boolean steep = Math . abs ( toY - fromY ) > Math . abs ( toX - fromX ) ; if ( steep ) { int temp = fromX ; fromX = fromY ; fromY = temp ; temp = toX ; toX = toY ; toY = temp ; } int dx = Math . abs ( toX - fromX ) ; int dy = Math . abs ( toY - fromY ) ; int error = - dx / 2 ; int ystep = fromY < toY ? 1 : - 1 ; int xstep = fromX < toX ? 1 : - 1 ; int transitions = 0 ; boolean inBlack = image . get ( steep ? fromY : fromX , steep ? fromX : fromY ) ; for ( int x = fromX , y = fromY ; x != toX ; x += xstep ) { boolean isBlack = image . get ( steep ? y : x , steep ? x : y ) ; if ( isBlack != inBlack ) { transitions ++ ; inBlack = isBlack ; } error += dy ; if ( error > 0 ) { if ( y == toY ) { break ; } y += ystep ; error -= dx ; } } return new ResultPointsAndTransitions ( from , to , transitions ) ; }

Cuenta el número de transiciones negras / blancas entre dos puntos, utilizando algo como el algoritmo de Bresenham.


private final Object fromXml  ( final String xml , final ProcessMessageType processType ) throws Exception { StringReader sr = null ; Serializer serializer = new Persister ( new AnnotationStrategy ( ) ) ; try { sr = new StringReader ( xml ) ; switch ( processType ) { case CONNECT_REQUEST : LOGGER . trace ( "fromXml() : converting from XML to ProcessConnectionRequest." ) ; return serializer . read ( ProcessConnectionRequest . class , sr , false ) ; case CONNECT_RESPONSE : LOGGER . trace ( "fromXml() : converting from XML to ProcessConnectionResponse." ) ; return serializer . read ( ProcessConnectionResponse . class , sr , false ) ; case CONFIG_REQUEST : LOGGER . trace ( "fromXml() : converting from XML to ProcessConfigurationRequest." ) ; return serializer . read ( ProcessConfigurationRequest . class , sr , false ) ; case CONFIG_RESPONSE : LOGGER . trace ( "fromXml() : converting from XML to ProcessConfigurationResponse." ) ; return serializer . read ( ProcessConfigurationResponse . class , sr , false ) ; case DISCONNETION_REQUEST : LOGGER . trace ( "fromXml() : converting from XML to ProcessDisconnectionRequest." ) ; return serializer . read ( ProcessDisconnectionRequest . class , sr , false ) ; default : LOGGER . error ( "fromXml() : Process type not found: " + processType ) ; throw new MessageFormatException ( "fromXml(): Process type not found: " + processType ) ; } } finally { if ( sr != null ) { sr . close ( ) ; } } }

Método estático para crear un objeto de proceso de una cadena XML haciendo uso de la biblioteca XML simpleFramework.


public void write  ( IOutputWriter writer ) throws IOException { writer . writeInt ( RMA2File . MAGIC_NUMBER ) ; writer . writeInt ( 3 ) ; writer . writeString ( getFormatDef ( ) ) ; FormatDefinition formatDefinition = FormatDefinition . fromString ( getFormatDef ( ) ) ; formatDefinition . startWrite ( ) ; for ( Pair < String , FormatDefinition . Type > pair : formatDefinition . getList ( ) ) { if ( pair . getFirst ( ) . equals ( "Creator" ) ) formatDefinition . write ( writer , "Creator" , getCreator ( ) ) ; else if ( pair . getFirst ( ) . equals ( "CreationDate" ) ) formatDefinition . write ( writer , "CreationDate" , getCreationDate ( ) ) ; } formatDefinition . finishWrite ( ) ; }

Escribe los datos de encabezado actuales


private void createLock  ( ) throws IOException  { synchronized ( LockableFileWriter . class ) { if ( ! lockFile . createNewFile ( ) ) { throw new IOException ( "Can't write file, lock " + lockFile . getAbsolutePath ( ) + " exists" ) ; } lockFile . deleteOnExit ( ) ; } }


@ Override public String toString  ( ) { return getName ( ) + "=" + "\"" + getValue ( ) + "\"" ; }

Método no dom para la depuración de la conveniencia.


public void refreshPanel  ( ) { revalidate ( ) ; repaint ( ) ; }


@ Override public long blocksAccessed  ( ) { return sp1 . blocksAccessed ( ) + sp2 . blocksAccessed ( ) ; }

Devuelve el número de accesos de bloques requeridos para MergeJoin las tablas ordenadas.Dado que un MergeJoin se puede preformar con un solo paso a través de cada tabla, el método devuelve la suma de los accesos de bloques de las tablas ordenadas materializadas.Lo hace <em> no </ em> incluye el costo de una sola vez que materializa y ordenando los registros.


protected void verifyContainerIsRunning  ( final boolean expectedState ) throws Throwable { verifyContainerProperty ( "State.Running" , expectedState ) ; }

Realice un comando de inspección para verificar el estado de ejecución del contenedor


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


@ Override public void endMerging  ( ) { ServiceControlConfigValidator . validate ( this , getModel ( ) . getServiceConfig ( ) ) ; }

Valida la sección de configuración de control de la configuración de servicio.


public ExperimentCreateEvent ( UserInfo user , ExperimentBase experiment ) { super ( user ) ; if ( experiment == null ) { throw new IllegalArgumentException ( "Experiment must not be null!" ) ; } this . experiment = experiment ; this . appName = experiment . getApplicationName ( ) ; }

Crea un nuevo evento que denota la creación de experimentos.


public Body jimplify  ( Body b , SootMethod m ) { jBody = ( JimpleBody ) b ; localGenerator = new LocalGenerator ( jBody ) ; deferredInstructions = new ArrayList < DeferableInstruction > ( ) ; instructionsToRetype = new HashSet < RetypeableInstruction > ( ) ; if ( IDalvikTyper . ENABLE_DVKTYPER ) { Debug . printDbg ( IDalvikTyper . DEBUG , "clear dalvik typer" ) ; DalvikTyper . v ( ) . clear ( ) ; } Debug . printDbg ( "\n[jimplify] start for: " , methodSignature ) ; List < Local > paramLocals = new LinkedList < Local > ( ) ; if ( ! isStatic ) { int thisRegister = numRegisters - numParameterRegisters - 1 ; Local thisLocal = Jimple . v ( ) . newLocal ( "$u" + thisRegister , UnknownType . v ( ) ) ; jBody . getLocals ( ) . add ( thisLocal ) ; registerLocals [ thisRegister ] = thisLocal ; JIdentityStmt idStmt = ( JIdentityStmt ) Jimple . v ( ) . newIdentityStmt ( thisLocal , Jimple . v ( ) . newThisRef ( declaringClassType ) ) ; add ( idStmt ) ; paramLocals . add ( thisLocal ) ; if ( IDalvikTyper . ENABLE_DVKTYPER ) { Debug . printDbg ( IDalvikTyper . DEBUG , "constraint: " , idStmt ) ; DalvikTyper . v ( ) . setType ( idStmt . leftBox , jBody . getMethod ( ) . getDeclaringClass ( ) . getType ( ) , false ) ; } } { int i = 0 ; int parameterRegister = numRegisters - numParameterRegisters ; for ( Type t : parameterTypes ) { Local gen = Jimple . v ( ) . newLocal ( "$u" + parameterRegister , UnknownType . v ( ) ) ; jBody . getLocals ( ) . add ( gen ) ; Debug . printDbg ( "add local for parameter register number: " , parameterRegister ) ; registerLocals [ parameterRegister ] = gen ; JIdentityStmt idStmt = ( JIdentityStmt ) Jimple . v ( ) . newIdentityStmt ( gen , Jimple . v ( ) . newParameterRef ( t , i ++ ) ) ; add ( idStmt ) ; paramLocals . add ( gen ) ; if ( IDalvikTyper . ENABLE_DVKTYPER ) { Debug . printDbg ( IDalvikTyper . DEBUG , "constraint: " + idStmt ) ; DalvikTyper . v ( ) . setType ( idStmt . leftBox , t , false ) ; } if ( t instanceof LongType || t instanceof DoubleType ) { parameterRegister ++ ; Local g = Jimple . v ( ) . newLocal ( "$u" + parameterRegister , UnknownType . v ( ) ) ; jBody . getLocals ( ) . add ( g ) ; registerLocals [ parameterRegister ] = g ; } parameterRegister ++ ; } } for ( int i = 0 ; i < ( numRegisters - numParameterRegisters - ( isStatic ? 0 : 1 ) ) ; i ++ ) { Debug . printDbg ( "add local for register number: " , i ) ; registerLocals [ i ] = Jimple . v ( ) . newLocal ( "$u" + i , UnknownType . v ( ) ) ; jBody . getLocals ( ) . add ( registerLocals [ i ] ) ; } storeResultLocal = Jimple . v ( ) . newLocal ( "$u-1" , UnknownType . v ( ) ) ; jBody . getLocals ( ) . add ( storeResultLocal ) ; final boolean isOdex = dexFile instanceof DexBackedDexFile ? ( ( DexBackedDexFile ) dexFile ) . isOdexFile ( ) : false ; int prevLineNumber = - 1 ; for ( DexlibAbstractInstruction instruction : instructions ) { if ( isOdex && instruction instanceof OdexInstruction ) ( ( OdexInstruction ) instruction ) . deOdex ( dexFile ) ; if ( dangling != null ) { dangling . finalize ( this , instruction ) ; dangling = null ; } instruction . jimplify ( this ) ; if ( instruction . getLineNumber ( ) > 0 ) prevLineNumber = instruction . getLineNumber ( ) ; else { instruction . setLineNumber ( prevLineNumber ) ; } } for ( DeferableInstruction instruction : deferredInstructions ) { instruction . deferredJimplify ( this ) ; } if ( tries != null ) addTraps ( ) ; instructions = null ; instructionAtAddress . clear ( ) ; deferredInstructions = null ; dangling = null ; tries = null ; Debug . printDbg ( "body before any transformation : \n" , jBody ) ; Debug . printDbg ( "\nbefore splitting" ) ; Debug . printDbg ( "" , ( Body ) jBody ) ; getLocalSplitter ( ) . transform ( jBody ) ; getUnreachableCodeEliminator ( ) . transform ( jBody ) ; DeadAssignmentEliminator . v ( ) . transform ( jBody ) ; UnusedLocalEliminator . v ( ) . transform ( jBody ) ; DexReturnInliner . v ( ) . transform ( jBody ) ; Debug . printDbg ( "\nafter splitting" ) ; Debug . printDbg ( "" , ( Body ) jBody ) ; for ( RetypeableInstruction i : instructionsToRetype ) i . retype ( jBody ) ; if ( IDalvikTyper . ENABLE_DVKTYPER ) { Debug . printDbg ( "[DalvikTyper] resolving typing constraints..." ) ; DalvikTyper . v ( ) . assignType ( jBody ) ; Debug . printDbg ( "[DalvikTyper] resolving typing constraints... done." ) ; jBody . validateUses ( ) ; jBody . validateValueBoxes ( ) ; Validate . validateArrays ( jBody ) ; Debug . printDbg ( "\nafter Dalvik Typer" ) ; } else { DexNumTransformer . v ( ) . transform ( jBody ) ; DexReturnValuePropagator . v ( ) . transform ( jBody ) ; getCopyPopagator ( ) . transform ( jBody ) ; DexNullThrowTransformer . v ( ) . transform ( jBody ) ; DexNullTransformer . v ( ) . transform ( jBody ) ; DexIfTransformer . v ( ) . transform ( jBody ) ; DeadAssignmentEliminator . v ( ) . transform ( jBody ) ; UnusedLocalEliminator . v ( ) . transform ( jBody ) ; DexNullArrayRefTransformer . v ( ) . transform ( jBody ) ; Debug . printDbg ( "\nafter Num and Null transformers" ) ; } Debug . printDbg ( "" , ( Body ) jBody ) ; if ( IDalvikTyper . ENABLE_DVKTYPER ) { for ( Local l : jBody . getLocals ( ) ) { l . setType ( UnknownType . v ( ) ) ; } } TypeAssigner . v ( ) . transform ( jBody ) ; if ( IDalvikTyper . ENABLE_DVKTYPER ) { for ( Unit u : jBody . getUnits ( ) ) { if ( u instanceof IfStmt ) { ConditionExpr expr = ( ConditionExpr ) ( ( IfStmt ) u ) . getCondition ( ) ; if ( ( ( expr instanceof EqExpr ) || ( expr instanceof NeExpr ) ) ) { Value op1 = expr . getOp1 ( ) ; Value op2 = expr . getOp2 ( ) ; if ( op1 instanceof Constant && op2 instanceof Local ) { Local l = ( Local ) op2 ; Type ltype = l . getType ( ) ; if ( ltype instanceof PrimType ) continue ; if ( ! ( op1 instanceof IntConstant ) ) continue ; IntConstant icst = ( IntConstant ) op1 ; int val = icst . value ; if ( val != 0 ) continue ; expr . setOp1 ( NullConstant . v ( ) ) ; } else if ( op1 instanceof Local && op2 instanceof Constant ) { Local l = ( Local ) op1 ; Type ltype = l . getType ( ) ; if ( ltype instanceof PrimType ) continue ; if ( ! ( op2 instanceof IntConstant ) ) continue ; IntConstant icst = ( IntConstant ) op2 ; int val = icst . value ; if ( val != 0 ) continue ; expr . setOp2 ( NullConstant . v ( ) ) ; } else if ( op1 instanceof Local && op2 instanceof Local ) { } else { throw new RuntimeException ( "error: do not handle if: " + u ) ; } } } } List < ValueBox > uses = jBody . getUseBoxes ( ) ; List < ValueBox > toNullConstantify = new ArrayList < ValueBox > ( ) ; List < Local > toRemove = new ArrayList < Local > ( ) ; for ( Local l : jBody . getLocals ( ) ) { if ( l . getType ( ) instanceof NullType ) { toRemove . add ( l ) ; for ( ValueBox vb : uses ) { Value v = vb . getValue ( ) ; if ( v == l ) toNullConstantify . add ( vb ) ; } } } for ( ValueBox vb : toNullConstantify ) { System . out . println ( "replace valuebox '" + vb + " with null constant" ) ; vb . setValue ( NullConstant . v ( ) ) ; } for ( Local l : toRemove ) { System . out . println ( "removing null_type local " + l ) ; l . setType ( RefType . v ( "java.lang.Object" ) ) ; } } LocalPacker . v ( ) . transform ( jBody ) ; UnusedLocalEliminator . v ( ) . transform ( jBody ) ; LocalNameStandardizer . v ( ) . transform ( jBody ) ; Debug . printDbg ( "\nafter type assigner localpacker and name standardizer" ) ; Debug . printDbg ( "" , ( Body ) jBody ) ; TrapTightener . v ( ) . transform ( jBody ) ; TrapMinimizer . v ( ) . transform ( jBody ) ; Aggregator . v ( ) . transform ( jBody ) ; ConditionalBranchFolder . v ( ) . transform ( jBody ) ; UnreachableCodeEliminator . v ( ) . transform ( jBody ) ; DeadAssignmentEliminator . v ( ) . transform ( jBody ) ; UnusedLocalEliminator . v ( ) . transform ( jBody ) ; NopEliminator . v ( ) . transform ( jBody ) ; if ( m . toString ( ) . equals ( "<org.apache.log4j.config.PropertySetter: void introspect()>" ) ) System . out . println ( "x" ) ; for ( Unit u : jBody . getUnits ( ) ) { if ( u instanceof AssignStmt ) { AssignStmt ass = ( AssignStmt ) u ; if ( ass . getRightOp ( ) instanceof CastExpr ) { CastExpr c = ( CastExpr ) ass . getRightOp ( ) ; if ( c . getType ( ) instanceof NullType ) { Debug . printDbg ( "replacing cast to null_type by nullConstant assignment in " , u ) ; ass . setRightOp ( NullConstant . v ( ) ) ; } } } if ( u instanceof DefinitionStmt ) { DefinitionStmt def = ( DefinitionStmt ) u ; if ( def . getLeftOp ( ) instanceof Local && def . getRightOp ( ) instanceof CaughtExceptionRef ) { Type t = def . getLeftOp ( ) . getType ( ) ; if ( t instanceof RefType ) { RefType rt = ( RefType ) t ; if ( rt . getSootClass ( ) . isPhantom ( ) && ! rt . getSootClass ( ) . hasSuperclass ( ) && ! rt . getSootClass ( ) . getName ( ) . equals ( "java.lang.Throwable" ) ) rt . getSootClass ( ) . setSuperclass ( Scene . v ( ) . getSootClass ( "java.lang.Throwable" ) ) ; } } } } Debug . printDbg ( "\nafter jb pack" ) ; Debug . printDbg ( "" , ( Body ) jBody ) ; for ( Local l : jBody . getLocals ( ) ) { Type t = l . getType ( ) ; if ( t instanceof NullType ) { Debug . printDbg ( "replacing null_type by java.lang.Object for local " , l ) ; l . setType ( RefType . v ( "java.lang.Object" ) ) ; } } return jBody ; }

Devuelve el equivalente al jimplo de este cuerpo.


public PagesGetQuery needSource  ( Boolean value ) { return unsafeParam ( "need_source" , value ) ; }


protected ShoppingCartItem ( GenericValue product , Map < String , GenericValue > additionalProductFeatureAndAppls , Map < String , Object > attributes , String prodCatalogId , ProductConfigWrapper configWrapper , Locale locale , String itemType , ShoppingCart . ShoppingCartItemGroup itemGroup , GenericValue parentProduct ) { this . _product = product ; this . productId = _product . getString ( "productId" ) ; this . _parentProduct = parentProduct ; if ( parentProduct != null ) this . parentProductId = _parentProduct . getString ( "productId" ) ; if ( UtilValidate . isEmpty ( itemType ) ) { if ( UtilValidate . isNotEmpty ( _product . getString ( "productTypeId" ) ) ) { if ( "ASSET_USAGE" . equals ( _product . getString ( "productTypeId" ) ) ) { this . itemType = "RENTAL_ORDER_ITEM" ; } else if ( "ASSET_USAGE_OUT_IN" . equals ( _product . getString ( "productTypeId" ) ) ) { this . itemType = "RENTAL_ORDER_ITEM" ; } else { this . itemType = "PRODUCT_ORDER_ITEM" ; } } else { this . itemType = "PRODUCT_ORDER_ITEM" ; } } else { this . itemType = itemType ; } this . itemGroup = itemGroup ; this . prodCatalogId = prodCatalogId ; this . attributes = ( attributes == null ? new HashMap < String , Object > ( ) : attributes ) ; this . delegator = _product . getDelegator ( ) ; this . delegatorName = _product . getDelegator ( ) . getDelegatorName ( ) ; this . addAllProductFeatureAndAppls ( additionalProductFeatureAndAppls ) ; this . locale = locale ; if ( UtilValidate . isNotEmpty ( configWrapper ) ) { this . configWrapper = configWrapper ; if ( UtilValidate . isEmpty ( configWrapper . getConfigId ( ) ) ) { ProductConfigWorker . storeProductConfigWrapper ( configWrapper , getDelegator ( ) ) ; } } }


public void onCreateApplication  ( Application app ) { MainLoop . getInstance ( ) . onCreate ( ) ; }

Llamado cuando el reproductor multimedia se crea por primera vez.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Blind_ME_TO_SELF  ( String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200277 , skillname ) ; }

Te hiciste cegado después de usar [% de habilidad].


public static < T > MaybeConsumer < T > noop  ( ) { return ( MaybeConsumer < T > ) NOOP ; }

Un acumulador de Maybeconsumer que no hace nada, con un tipo genérico en particular.


public ItemStack ( final ItemStack stack ) throws IllegalArgumentException { Validate . notNull ( stack , "Cannot copy null stack" ) ; this . type = stack . getTypeId ( ) ; this . amount = stack . getAmount ( ) ; this . durability = stack . getDurability ( ) ; this . data = stack . getData ( ) ; if ( stack . hasItemMeta ( ) ) { setItemMeta0 ( stack . getItemMeta ( ) , getType0 ( ) ) ; } }

Crea una nueva pila de elementos derivada de la pila especificada


public float length  ( ) { return FastMath . sqrt ( lengthSquared ( ) ) ; }

<Código> Longitud </ code> Calcula la magnitud de este vector.


private boolean isTestMode  ( ) { return ( ( System . getProperty ( "c2mon.server.testMode" ) ) != null && ( System . getProperty ( "c2mon.server.testMode" ) . equals ( "true" ) ) ) ; }

Comprueba si el modo de prueba está encendido


private boolean appendFilter  ( ) { if ( isFiltering ( ) ) { useFilteredFromEntries ( filteredEntries ) ; return true ; } return applyFilter ( ) ; }

Anexa el nuevo filtro a los artículos ya filtrados.


@ Override public Filter createFilter  ( ) { return new OrExtended ( ) ; }


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


public boolean containsKey  ( Object key ) { return indexOfKey ( key ) >= 0 ; }

Compruebe si existe una clave en la matriz.


public MediaFormat ( ) { mMap = new HashMap < String , Object > ( ) ; }


static public void reversePrint  ( Result [ ] result ) { for ( int i = ( result . length - 1 ) ; i >= 0 ; i -- ) { System . err . println ( "Gen" + result [ i ] . getGenNum ( ) + ":   scale of " + result [ i ] . getScale ( ) + "  " + result [ i ] . getRemark ( ) ) ; } }


public synchronized TrueTime withSharedPreferences  ( Context context ) { DISK_CACHE_CLIENT . enableDiskCaching ( context ) ; return INSTANCE ; }

Información de inicialización de la caché TrueTime en SharedPreferences Esto puede ayudar a evitar la inicialización adicional de TrueTime en la aplicación Kills


private void computeDoublesForAllZoomLevels  ( ) { int numFrames = mSoundFile . getNumFrames ( ) ; int [ ] frameGains = mSoundFile . getFrameGains ( ) ; double [ ] smoothedGains = new double [ numFrames ] ; if ( numFrames == 1 ) { smoothedGains [ 0 ] = frameGains [ 0 ] ; } else if ( numFrames == 2 ) { smoothedGains [ 0 ] = frameGains [ 0 ] ; smoothedGains [ 1 ] = frameGains [ 1 ] ; } else if ( numFrames > 2 ) { smoothedGains [ 0 ] = ( double ) ( ( frameGains [ 0 ] / 2.0 ) + ( frameGains [ 1 ] / 2.0 ) ) ; for ( int i = 1 ; i < numFrames - 1 ; i ++ ) { smoothedGains [ i ] = ( double ) ( ( frameGains [ i - 1 ] / 3.0 ) + ( frameGains [ i ] / 3.0 ) + ( frameGains [ i + 1 ] / 3.0 ) ) ; } smoothedGains [ numFrames - 1 ] = ( double ) ( ( frameGains [ numFrames - 2 ] / 2.0 ) + ( frameGains [ numFrames - 1 ] / 2.0 ) ) ; } double maxGain = 1.0 ; for ( int i = 0 ; i < numFrames ; i ++ ) { if ( smoothedGains [ i ] > maxGain ) { maxGain = smoothedGains [ i ] ; } } double scaleFactor = 1.0 ; if ( maxGain > 255.0 ) { scaleFactor = 255 / maxGain ; } maxGain = 0 ; int gainHist [ ] = new int [ 256 ] ; for ( int i = 0 ; i < numFrames ; i ++ ) { int smoothedGain = ( int ) ( smoothedGains [ i ] * scaleFactor ) ; if ( smoothedGain < 0 ) smoothedGain = 0 ; if ( smoothedGain > 255 ) smoothedGain = 255 ; if ( smoothedGain > maxGain ) maxGain = smoothedGain ; gainHist [ smoothedGain ] ++ ; } double minGain = 0 ; int sum = 0 ; while ( minGain < 255 && sum < numFrames / 20 ) { sum += gainHist [ ( int ) minGain ] ; minGain ++ ; } sum = 0 ; while ( maxGain > 2 && sum < numFrames / 100 ) { sum += gainHist [ ( int ) maxGain ] ; maxGain -- ; } if ( maxGain <= 50 ) { maxGain = 80 ; } else if ( maxGain > 50 && maxGain < 120 ) { maxGain = 142 ; } else { maxGain += 10 ; } double [ ] heights = new double [ numFrames ] ; double range = maxGain - minGain ; for ( int i = 0 ; i < numFrames ; i ++ ) { double value = ( smoothedGains [ i ] * scaleFactor - minGain ) / range ; if ( value < 0.0 ) value = 0.0 ; if ( value > 1.0 ) value = 1.0 ; heights [ i ] = value * value ; } mNumZoomLevels = 5 ; mLenByZoomLevel = new int [ 5 ] ; mZoomFactorByZoomLevel = new double [ 5 ] ; mValuesByZoomLevel = new double [ 5 ] [ ] ; mLenByZoomLevel [ 0 ] = numFrames * 2 ; System . out . println ( "ssnum" + numFrames ) ; mZoomFactorByZoomLevel [ 0 ] = 2.0 ; mValuesByZoomLevel [ 0 ] = new double [ mLenByZoomLevel [ 0 ] ] ; if ( numFrames > 0 ) { mValuesByZoomLevel [ 0 ] [ 0 ] = 0.5 * heights [ 0 ] ; mValuesByZoomLevel [ 0 ] [ 1 ] = heights [ 0 ] ; } for ( int i = 1 ; i < numFrames ; i ++ ) { mValuesByZoomLevel [ 0 ] [ 2 * i ] = 0.5 * ( heights [ i - 1 ] + heights [ i ] ) ; mValuesByZoomLevel [ 0 ] [ 2 * i + 1 ] = heights [ i ] ; } mLenByZoomLevel [ 1 ] = numFrames ; mValuesByZoomLevel [ 1 ] = new double [ mLenByZoomLevel [ 1 ] ] ; mZoomFactorByZoomLevel [ 1 ] = 1.0 ; for ( int i = 0 ; i < mLenByZoomLevel [ 1 ] ; i ++ ) { mValuesByZoomLevel [ 1 ] [ i ] = heights [ i ] ; } for ( int j = 2 ; j < 5 ; j ++ ) { mLenByZoomLevel [ j ] = mLenByZoomLevel [ j - 1 ] / 2 ; mValuesByZoomLevel [ j ] = new double [ mLenByZoomLevel [ j ] ] ; mZoomFactorByZoomLevel [ j ] = mZoomFactorByZoomLevel [ j - 1 ] / 2.0 ; for ( int i = 0 ; i < mLenByZoomLevel [ j ] ; i ++ ) { mValuesByZoomLevel [ j ] [ i ] = 0.5 * ( mValuesByZoomLevel [ j - 1 ] [ 2 * i ] + mValuesByZoomLevel [ j - 1 ] [ 2 * i + 1 ] ) ; } } if ( numFrames > 5000 ) { mZoomLevel = 3 ; } else if ( numFrames > 1000 ) { mZoomLevel = 2 ; } else if ( numFrames > 300 ) { mZoomLevel = 1 ; } else { mZoomLevel = 0 ; } mInitialized = true ; }

Llamado una vez cuando se agrega un nuevo archivo de sonido


public void paint  ( Graphics graphics ) { super . paint ( graphics ) ; Graphics2D gc = ( Graphics2D ) graphics ; gc . setColor ( Color . WHITE ) ; gc . fill ( getVisibleRect ( ) ) ; draw ( gc , null ) ; }


@ Override public boolean isFragmentResolved  ( ) throws XNIException  { return fIsFragmentResolved ; }

Devuelve VERDADERO si el nodo coincide o es un niño de un elemento coincidente () Esquema XOPEPER.


public AuthenticatorException ( String msg , Throwable nested ) { super ( msg , nested ) ; }

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


public void doStart  ( ) { try { if ( gigaSpace == null ) { initSpace ( ) ; } super . doStart ( ) ; } catch ( Exception e ) { Log . getLog ( ) . warn ( "Problem initialising session ids" , e ) ; throw new IllegalStateException ( e ) ; } }

Iniciar el administrador de identificación.


public Approximator ( ApproximatorType type , double tolerance ) { setup ( type , tolerance ) ; }

Inicializa el aproximado con el tipo y la tolerancia dados.Si toleranec <= 0, no se realizará ningún filtrado.


public SM_TITLE_INFO ( Player player ) { this . action = 0 ; this . titleList = player . getTitleList ( ) ; }


private final static TypeDecl mostSpecificSuperClass  ( final TypeDecl t ) { HashSet superTypes = new HashSet ( ) ; addSuperClasses ( t , superTypes ) ; if ( superTypes . isEmpty ( ) ) return t . typeObject ( ) ; ArrayList result = new ArrayList ( superTypes . size ( ) ) ; result . addAll ( superTypes ) ; greatestLowerBounds ( result ) ; if ( result . size ( ) == 1 ) return ( TypeDecl ) result . get ( 0 ) ; else return ( TypeDecl ) t . typeObject ( ) ; }

Devuelve la superclase más específica de t.


private int visitNodesRec  ( Node v , EdgeMap < Integer > edgeWeight ) { int maxValue = 0 ; for ( Edge e = v . getFirstOutEdge ( ) ; e != null ; e = v . getNextOutEdge ( e ) ) { if ( edgeWeight . get ( e ) == null ) { edgeWeight . set ( e , visitNodesRec ( e . getTarget ( ) , edgeWeight ) + 1 ) ; } maxValue = Math . max ( maxValue , edgeWeight . get ( e ) ) ; } return maxValue ; }

visitar recursivamente todos los nodos y establecer pesas de borde


public ArithmeticMaker ( MetricDictionary metricDictionary , ArithmeticPostAggregationFunction function , ColumnMapper resultSetMapper ) { super ( metricDictionary ) ; this . function = function ; this . resultSetMapper = resultSetMapper ; }

Construir un aritmético completamente especificado.


private void runTest  ( String source , String docPath ) { normalizer = new SourceNormalizer ( diagCollector , docPath ) ; testOutput ( ) . println ( normalizer . process ( source , SimpleLocation . TOPLEVEL , element ) ) ; for ( Diag diag : diagCollector . getErrors ( ) ) { testOutput ( ) . println ( DiagUtils . getDiagToPrint ( diag , true ) ) ; } }

Ejecuta la prueba para normalizar la fuente dada y comparar el resultado con el resultado de la línea de base.


public static String formatRateString  ( float rate ) { return String . format ( Locale . US , "%.2fx" , rate ) ; }

Obtenga la velocidad de reproducción actual formateada en forma de 1.00x


public boolean end  ( ) { ByteArrayInputStream bais = new ByteArrayInputStream ( outputData ) ; AudioInputStream ais = new AudioInputStream ( bais , currentFormat , outputData . length / currentFormat . getFrameSize ( ) ) ; String name = baseName ; name = name + fileCount ; name = name + "." + outputType . getExtension ( ) ; File file = new File ( name ) ; try { AudioSystem . write ( ais , outputType , file ) ; System . out . println ( "Wrote synthesized speech to " + name ) ; } catch ( IOException ioe ) { System . err . println ( "Can't write audio to " + file ) ; return false ; } catch ( IllegalArgumentException iae ) { System . err . println ( "Can't write audio type " + outputType ) ; return false ; } fileCount ++ ; return true ; }

Marca el final de un conjunto de datos.Los datos de audio para una sola expresión deben ser un grupo entre pares de inicio / finales.


public ClearCacheRequest ( Cache cache , Runnable callback ) { super ( Method . GET  , null  , null ) ; mCache = cache ; mCallback = callback ; }

Crea una solicitud sintética para eliminar el caché.


private boolean isPrimitiveTypeWrapper  ( ModelImpl modelImpl ) { return ( modelImpl . getProperties ( ) == null && modelImpl . getAdditionalProperties ( ) == null ) && ! Strings . isNullOrEmpty ( modelImpl . getType ( ) ) && ! "object" . equalsIgnoreCase ( modelImpl . getType ( ) ) && WellKnownTypeUtils . isPrimitiveType ( modelImpl . getType ( ) ) ; }

Devuelve VERDADERO si el modeloimpl es una envoltura de tipo primitivo, como cadena, flotando, etc.falso de lo contrario


public Math_Vector nor  ( ) { double len = len ( ) ; if ( len != 0 ) { this . x /= len ; this . y /= len ; } return this ; }


private void addOptionalSpringLibs  ( StringBuilder classpath ) { addLibs ( classpath , gsLibOptional + "spring" ) ; }

Añadir todos los frascos bajo lib / opcional / resortes


public boolean isCritical  ( ) { return true ; }

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


public void start  ( String tag , String [ ] names , String [ ] values , int nattr ) { tag ( tag , names , values , nattr , false ) ; }

Imprimir una etiqueta de inicio con atributos.La etiqueta será seguida por una nueva línea, y se incrementará el nivel de indentación.


@ Override public void start  ( Map < String , String > props ) { fProperties = props ; }


public boolean isCollection  ( ) { return myObject instanceof Map || myObject instanceof Object [ ] || myObject instanceof byte [ ] ; }


@ deprecated public UScriptRun ( String text ) { reset ( text ) ; }


public static double squaredLoss  ( double [ ] x , double [ ] y , double w_0 , double w_1 ) { double sum = 0 ; for ( int j = 0 ; j < x . length ; j ++ ) { sum += Math . pow ( ( y [ j ] - ( w_1 * x [ j ] + w_0 ) ) , 2 ) ; } return sum ; }

Esto devolverá la pérdida cuadrada de los puntos dados.


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

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


public int next  ( ) { if ( index >= bits . length ) throw new NoSuchElementException ( ) ; long k = ( save & ( save - 1 ) ) ; long diff = save ^ k ; save = k ; int result = ( diff < 0 ) ? 64 * index + 63 : 64 * index + lookup [ ( int ) ( diff % 67 ) ] ; if ( save == 0 ) { index ++ ; while ( index < bits . length && bits [ index ] == 0L ) index ++ ; if ( index < bits . length ) save = bits [ index ] ; } return result ; }

Devuelve el índice del siguiente bit.Tenga en cuenta que el tipo de retorno es int y no objeto.


public boolean isBeginningInstruction  ( ) { if ( predecessors . size ( ) == 0 ) { return false ; } if ( predecessors . first ( ) . instructionIndex == - 1 ) { return true ; } return false ; }

Es esta instrucción una "instrucción inicial".Se define una instrucción inicial para ser una instrucción que puede ser la primera instrucción ejecutada con éxito en el método.La primera instrucción es siempre una instrucción inicial.Si la primera instrucción puede lanzar una excepción, y está cubierta por un bloque de prueba, entonces la primera instrucción de cualquier controlador de excepciones para ese bloque de prueba también es una instrucción inicial.Y si alguna de esas instrucciones puede lanzar una excepción y están cubiertas por los bloques de prueba, la primera instrucción del controlador de excepciones correspondiente es una instrucción inicial, etc. Para determinar esto, simplemente verificamos si el primer predecesor es el falso "StartofMethod"Instrucción, que tiene un índice de instrucciones de -1.


final boolean isEar  ( EarClippingVertex vertex , int n ) { if ( vertex . reflex ) return false ; boolean ear = true ; Vector2 a = vertex . point ; Vector2 b = vertex . next . point ; Vector2 c = vertex . prev . point ; EarClippingVertex tNode = vertex . next . next ; for ( int j = 0 ; j < n - 3 ; j ++ ) { if ( tNode . reflex ) { if ( this . contains ( a , b , c , tNode . point ) ) { ear = false ; break ; } } tNode = tNode . next ; } return ear ; }

Devuelve verdadero si el vértice dado se considera un vértice del oído.<p> Un vértice es un vértice de oreja si el triángulo creado por los vértices adyacentes del vértice dado no contiene otros vértices dentro de ella.<p> Un vértice reflejo no puede ser un oído.


public static void deserializeReport  ( IDexUnit unit , StructureInfo struInfo ) { Mapping baseMapping = null ; Mapping newMapping = null ; try ( ObjectInputStream inBaseMapping = new ObjectInputStream ( new FileInputStream ( System . getProperty ( "user.home" ) + "/Desktop/baseMapping.obj" ) ) ; ObjectInputStream inNewMapping = new ObjectInputStream ( new FileInputStream ( System . getProperty ( "user.home" ) + "/Desktop/newMapping.obj" ) ) ) { baseMapping = ( Mapping ) inBaseMapping . readObject ( ) ; newMapping = ( Mapping ) inNewMapping . readObject ( ) ; } catch ( Exception e1 ) { logger . catching ( e1 ) ; e1 . printStackTrace ( ) ; } if ( baseMapping == null ) { logger . info ( "it is null" ) ; } Map < String , String > baseClassMap = baseMapping . getClassMap ( ) ; Map < String , Map < String , String > > baseMethodMap = baseMapping . getMethodMap ( ) ; Map < String , String > newClassMap = newMapping . getClassMap ( ) ; Map < String , Map < String , String > > newMethodMap = newMapping . getMethodMap ( ) ; File baseOnlyMatchFile = new File ( System . getProperty ( "user.home" ) + "/Desktop" , "baseOnlyMatch.txt" ) ; File newOnlyMatchFile = new File ( System . getProperty ( "user.home" ) + "/Desktop" , "newOnlyMatch.txt" ) ; File bothMatchFile = new File ( System . getProperty ( "user.home" ) + "/Desktop" , "bothMatch.txt" ) ; try ( BufferedWriter writerBase = new BufferedWriter ( new FileWriter ( baseOnlyMatchFile ) ) ; BufferedWriter writerNew = new BufferedWriter ( new FileWriter ( newOnlyMatchFile ) ) ; BufferedWriter writerBoth = new BufferedWriter ( new FileWriter ( bothMatchFile ) ) ) { for ( Map . Entry < String , String > entry : baseClassMap . entrySet ( ) ) { boolean baseFlag = false , newFlag = false , bothFlag = false ; String baseClassPath = entry . getValue ( ) ; String newClassPath = newClassMap . get ( entry . getKey ( ) ) ; if ( baseClassPath . equals ( "null" ) && newClassPath . equals ( "null" ) ) { continue ; } if ( ! baseClassPath . equals ( "null" ) && ! newClassPath . equals ( "null" ) ) { bothFlag = true ; if ( baseClassPath . equals ( newClassPath ) ) { writerBoth . write ( entry . getKey ( ) + " -------> " + baseClassPath + "\n" ) ; } else { writerBoth . write ( "base: " + entry . getKey ( ) + " -------> " + baseClassPath + "\n" ) ; writerBoth . write ( "new: " + entry . getKey ( ) + " -------> " + newClassPath + "\n" ) ; } } else { if ( ! baseClassPath . equals ( "null" ) ) { writerBase . write ( entry . getKey ( ) + " -------> " + baseClassPath + "\n" ) ; baseFlag = true ; } if ( ! newClassPath . equals ( "null" ) ) { writerNew . write ( entry . getKey ( ) + " -------> " + newClassPath + "\n" ) ; newFlag = true ; } } Map < String , String > baseMMap = baseMethodMap . get ( entry . getKey ( ) ) ; Map < String , String > newMMap = newMethodMap . get ( entry . getKey ( ) ) ; if ( bothFlag ) { for ( Map . Entry < String , String > entry1 : baseMMap . entrySet ( ) ) { String baseMPath = entry1 . getValue ( ) ; String newMPath = newMMap . get ( entry1 . getKey ( ) ) ; if ( baseMPath . equals ( "null" ) && newMPath . equals ( "null" ) ) { continue ; } if ( baseMPath . equals ( newMPath ) ) { writerBoth . write ( "\torg: " + entry1 . getKey ( ) + "\n" ) ; writerBoth . write ( "\tmat: " + baseMPath + "\n" ) ; } else { writerBoth . write ( "\t*[base]org: " + entry1 . getKey ( ) + "\n" ) ; writerBoth . write ( "\t*[base]mat: " + baseMPath + "\n" ) ; writerBoth . write ( "\t*[new]org: " + entry1 . getKey ( ) + "\n" ) ; writerBoth . write ( "\t*[new]mat: " + newMPath + "\n" ) ; } } } if ( baseFlag ) { for ( Map . Entry < String , String > entry1 : baseMMap . entrySet ( ) ) { String baseMPath = entry1 . getValue ( ) ; if ( baseMPath . equals ( "null" ) ) { continue ; } writerBase . write ( "\torg: " + entry1 . getKey ( ) + "\n" ) ; writerBase . write ( "\tmat: " + baseMPath + "\n" ) ; } } if ( newFlag ) { for ( Map . Entry < String , String > entry1 : newMMap . entrySet ( ) ) { String newMPath = newMMap . get ( entry1 . getKey ( ) ) ; if ( newMPath . equals ( "null" ) ) { continue ; } writerNew . write ( "\torg: " + entry1 . getKey ( ) + "\n" ) ; writerNew . write ( "\tmat: " + newMPath + "\n" ) ; } } } } catch ( IOException e ) { e . printStackTrace ( ) ; } }


@ Override public void startGroup  ( Augmentations augs ) throws XNIException { fDepth ++ ; initializeContentModelStack ( ) ; fMixed = false ; }

Un inicio de un modelo de contenido mixto o de niños.Un modelo de contenido mixto será seguido inmediatamente por una llamada al método <código> PCDATA () </ CODE>.Un modelo de contenido de niños contendrá grupos y / o elementos adicionales.


private void checkDimensionsEquality  ( final int d1 , final int d2 ) throws MathIllegalArgumentException  { if ( d1 != d2 ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . DIMENSIONS_MISMATCH , d2 , d1 ) ; } }


public boolean isApplicable  ( ) { AlignmentViewer viewer = ( AlignmentViewer ) getViewer ( ) ; return viewer . getAlignment ( ) . getNumberOfSequences ( ) > 0 && viewer . getSelectedBlock ( ) . isSelected ( ) && viewer . getSelectedBlock ( ) . getLastRow ( ) < viewer . getAlignment ( ) . getNumberOfSequences ( ) - 1 ; }

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


public static List < UserLayer > extractUserLayers  ( StyledLayerDescriptor sld ) { List < UserLayer > userLayerList = new ArrayList < UserLayer > ( ) ; if ( sld != null ) { for ( StyledLayer layer : sld . layers ( ) ) { if ( layer instanceof UserLayer ) { UserLayer userLayer = ( UserLayer ) layer ; userLayerList . add ( userLayer ) ; } } } return userLayerList ; }


public synchronized void flush  ( ) throws IOException  { checkNotClosed ( ) ; trimToSize ( ) ; journalWriter . flush ( ) ; }

Forzar las operaciones tamponadas al sistema de archivos.


public boolean hasNavigtionBar  ( ) { return mHasNavigationBar ; }

¿Este dispositivo tiene una barra de navegación del sistema?


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Heal_Instant_HEAL_ME_TO_SELF  ( int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200370 , num0 , skillname ) ; }


public static void checkSymmetric  ( RealMatrix matrix , double eps ) { isSymmetricInternal ( matrix , eps , true ) ; }


public static void shutdown  ( ) { LRMIRuntime . getRuntime ( ) . shutdown ( ) ; ClassLoaderCache . getCache ( ) . shutdown ( ) ; }

Gigaspaces crea recursos estáticos implícitamente al crear componentes de gigaspaces, como los proxies espaciales remotos / incrustados. Cuando se usa gigaspacios fuera de los contenedores de gigaspacios (GSC) y unidad de procesamiento, en algunos escenarios, estos recursos deben limpiarse cuando ya no se necesitan. Esto es relevante al alojar los componentes de Gigaspaces dentro de otro servidor de aplicaciones que crean un nuevo cargador de clase por despliegue, lo que carga las bibliotecas Gigaspaces en ese cargador de clase cada vez. Cuando este cargador de clase se descarga (debido a un despliegue de la aplicación / servicio), este método debe llamarse para limpiar los recursos que se crearon implícitamente. Este método apagado Gigaspaces Runtime, una vez invocado, el tiempo de ejecución de Gigaspaces se destruye y no se puede reutilizar en el cargador de clase actual en el que se creó, como resultado, este es un proceso irreversible. Esto solo limpiará los hilos y los recursos que se crean implícitamente al usar Gigaspaces Runtime, no limpiará los recursos que el usuario ha creado explícitamente, como los proxies de espacio, las instancias espaciales y otros componentes, estos componentes deben ser destruidos explícitamente por el Creador. Esto solo debe usarse cuando se usa tiempo de ejecución de Gigaspaces fuera de los contenedores de gigaspacios (GSC), y solo si las bibliotecas de Gigaspaces se cargan en la cargadora de nueva clase en cada implementación y no se comparten en varios cargadores de clase.


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


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


private void confirmDelete  ( Project project , int position ) { Bundle extras = new Bundle ( ) ; extras . putString ( ARG_DELETE_PROJECT_ID , project . getProjectId ( ) ) ; extras . putInt ( ARG_DELETE_PROJECT_POSITION , position ) ; DeleteMetadataItemDialog dialog = DeleteMetadataItemDialog . newInstance ( R . string . delete_project_dialog_title , R . string . delete_project_dialog_message , extras ) ; dialog . show ( getChildFragmentManager ( ) , DeleteMetadataItemDialog . TAG ) ; if ( mUndoSnackbar != null ) { mUndoSnackbar . dismiss ( ) ; } }

Muestra al usuario un diálogo que confirma la eliminación.


public void previous  ( ) { goToPage ( getRowCount ( ) , getCurrentPage ( ) - 1 ) ; }

Mueva la fila de inicio hacia atrás por las filas 'Pagesize'.


public int addItemToEnd  ( String productId , BigDecimal amount , BigDecimal quantity , BigDecimal unitPrice , Timestamp reservStart , BigDecimal reservLength , BigDecimal reservPersons , HashMap < String , GenericValue > features , HashMap < String , Object > attributes , String prodCatalogId , String itemType , LocalDispatcher dispatcher , Boolean triggerExternalOps , Boolean triggerPriceRules , Boolean skipInventoryChecks , Boolean skipProductChecks ) throws CartItemModifyException , ItemNotFoundException { return addItemToEnd ( ShoppingCartItem . makeItem ( null , productId , amount , quantity , unitPrice , reservStart , reservLength , reservPersons , null , null , features , attributes , prodCatalogId , null , itemType , null , dispatcher , this , triggerExternalOps , triggerPriceRules , null , skipInventoryChecks , skipProductChecks ) ) ; }

Agregue un artículo (alquiler) a la cesta de la compra.


public String encodeRootCertificateAsPem  ( ) { return securityProviderTool . encodeCertificateAsPem ( generatedCertificateAndKey . get ( ) . getCertificate ( ) ) ; }

Devuelve el certificado raíz generado como una cadena codificada por PEM.


public static final void shuffle  ( float [ ] a , Random r ) { shuffle ( a , 0 , a . length , r ) ; }

Permuta al azar los contenidos de una matriz.


public Map . Entry < K , V > floorEntry  ( K key ) { return getNear ( key , LT | EQ ) ; }

Devuelve un mapeo de valor clave asociado con la clave más grande menor o igual a la clave dada, o <tt> null </ tt> si no hay tal clave.La entrada devuelta <EM> no </ em> admite el método <TT> Entry.SetValue </ tt>.


private static void addAndroidLibrary  ( @ NotNull AndroidLibrary library , @ NotNull DependencySet dependencies , @ NotNull DependencyScope scope , @ NotNull Set < File > unique , boolean supportsDependencyGraph ) { File folder = library . getFolder ( ) ; if ( unique . contains ( folder ) ) { return ; } unique . add ( folder ) ; ModuleDependency mainDependency = null ; String gradleProjectPath = library . getProject ( ) ; if ( isNotEmpty ( gradleProjectPath ) ) { mainDependency = addAndroidModule ( library , gradleProjectPath , dependencies , scope , unique , supportsDependencyGraph ) ; } if ( mainDependency == null ) { dependencies . add ( createLibraryDependency ( library , scope ) ) ; addTransitiveDependencies ( library , dependencies , scope , unique , supportsDependencyGraph ) ; } else { LibraryDependency backup = createLibraryDependency ( library , scope ) ; mainDependency . setBackupDependency ( backup ) ; } }

Añadir una biblioteca de Android, junto con cualquier dependencia de biblioteca recursiva


public AsyncWebServiceRequestHandler ( DruidWebService druidWebService , ObjectMapper mapper ) { super ( mapper ) ; this . druidWebService = druidWebService ; }


@ Override public Node cloneNode  ( boolean deep ) { CoreDocumentImpl newdoc = new CoreDocumentImpl ( ) ; callUserDataHandlers ( this , newdoc , UserDataHandler . NODE_CLONED ) ; cloneNode ( newdoc , deep ) ; return newdoc ; }

Clone profundo un documento, incluido el propietario de la fijación para los niños clonados.Tenga en cuenta que esto requiere pasar por alto la protección contra el incorrecto_document_err.He elegido implementarlo llamando a ImportNode, que es DOM Nivel 2.


private void processDataTag  ( final SourceDataTagValue sourceDataTagValue ) { try { if ( LOGGER . isTraceEnabled ( ) ) { LOGGER . trace ( "Processing incoming update for datatag #" + sourceDataTagValue . getId ( ) ) ; } dataTagFacade . updateFromSource ( sourceDataTagValue . getId ( ) , sourceDataTagValue ) ; } catch ( CacheElementNotFoundException cacheEx ) { LOGGER . warn ( "Received unrecognized data tag #" + sourceDataTagValue . getId ( ) + ": ignoring the update" ) ; } }

Realiza las operaciones necesarias en la recepción de una etiqueta de datos.


public PhotosCreateCommentQuery accessKey  ( String value ) { return unsafeParam ( "access_key" , value ) ; }


private void ensureDependenciesResolved  ( ) { ClassLoader ldr = getClass ( ) . getClassLoader ( ) ; if ( ldr == null ) { ldr = ClassLoader . getSystemClassLoader ( ) ; } trustGetContextClassLoader0 ( Thread . class ) ; getContextClassLoader ( ) ; synchronized ( subPolicies ) { lookupSubPolicy ( ldr ) ; } }

Asegura que las clases dependan de este proveedor de políticas se resuelvan.Esto es para evitar la resolución perezosa de dichas clases durante el funcionamiento del proveedor, lo que puede resultar en un punto muerto descrito por el error 4911907.


public static String updateAssociatedDistributor  ( HttpServletRequest request , HttpServletResponse response ) { Delegator delegator = ( Delegator ) request . getAttribute ( "delegator" ) ; GenericValue userLogin = ( GenericValue ) request . getSession ( ) . getAttribute ( "userLogin" ) ; GenericValue party = null ; java . net . URL shopPropertiesUrl = null ; try { shopPropertiesUrl = ( ( ServletContext ) request . getAttribute ( "servletContext" ) ) . getResource ( "/WEB-INF/shop.properties" ) ; } catch ( java . net . MalformedURLException e ) { Debug . logWarning ( e , module ) ; } String store = UtilProperties . getPropertyValue ( shopPropertiesUrl , "distributor.store.customer" ) ; if ( store == null || store . toUpperCase ( ) . startsWith ( "N" ) ) { return "success" ; } String storeOnClick = UtilProperties . getPropertyValue ( shopPropertiesUrl , "distributor.store.onclick" ) ; if ( storeOnClick == null || storeOnClick . toUpperCase ( ) . startsWith ( "N" ) ) { return "success" ; } try { party = userLogin == null ? null : userLogin . getRelatedOne ( "Party" , false ) ; } catch ( GenericEntityException gee ) { Debug . logWarning ( gee , module ) ; } if ( party != null ) { String currentDistributorId = getId ( party , "DISTRIBUTOR" ) ; if ( UtilValidate . isEmpty ( currentDistributorId ) ) { String distributorId = ( String ) request . getSession ( ) . getAttribute ( DISTRIBUTOR_ID ) ; if ( UtilValidate . isNotEmpty ( distributorId ) ) { List < GenericValue > toBeStored = new LinkedList < GenericValue > ( ) ; GenericValue partyRelationship = delegator . makeValue ( "PartyRelationship" , UtilMisc . toMap ( "partyIdFrom" , party . getString ( "partyId" ) , "partyIdTo" , distributorId , "roleTypeIdFrom" , "CUSTOMER" , "roleTypeIdTo" , "DISTRIBUTOR" ) ) ; partyRelationship . set ( "fromDate" , UtilDateTime . nowTimestamp ( ) ) ; partyRelationship . set ( "partyRelationshipTypeId" , "DISTRIBUTION_CHANNEL" ) ; toBeStored . add ( partyRelationship ) ; toBeStored . add ( delegator . makeValue ( "Party" , UtilMisc . toMap ( "partyId" , distributorId ) ) ) ; toBeStored . add ( delegator . makeValue ( "PartyRole" , UtilMisc . toMap ( "partyId" , distributorId , "roleTypeId" , "DISTRIBUTOR" ) ) ) ; try { delegator . storeAll ( toBeStored ) ; if ( Debug . infoOn ( ) ) Debug . logInfo ( "Distributor for user " + party . getString ( "partyId" ) + " set to " + distributorId , module ) ; } catch ( GenericEntityException gee ) { Debug . logWarning ( gee , module ) ; } } else { Debug . logInfo ( "No distributor in session or already associated with user " + userLogin . getString ( "partyId" ) , module ) ; return "success" ; } } else { request . getSession ( ) . setAttribute ( DISTRIBUTOR_ID , currentDistributorId ) ; } return "success" ; } else { Debug . logWarning ( "Cannot associate distributor since not logged in yet" , module ) ; return "success" ; } }

Actualice la asociación del distribuidor para el usuario registrado, si es posible.


public boolean isApplicable  ( ) { return true ; }


public static void resetRequestVars  ( HttpServletRequest request , Map < String , Object > context , Environment env ) throws TemplateModelException { RequestVarMapWrapper mapWrapper = new RequestVarMapWrapper ( ) ; if ( request != null ) { request . setAttribute ( ContextFtlUtil . REQUEST_VAR_MAP_NAME_REQATTRIBS , mapWrapper ) ; } Map < String , Object > globalContext = getGlobalContext ( context , env ) ; if ( globalContext != null ) { globalContext . put ( ContextFtlUtil . REQUEST_VAR_MAP_NAME_GLOBALCONTEXT , mapWrapper ) ; } if ( env != null ) { env . setGlobalVariable ( ContextFtlUtil . REQUEST_VAR_MAP_NAME_FTLGLOBALS , new RequestVarMapWrapperModel ( mapWrapper . getRawMap ( ) ) ) ; } }

Toje todas las solicitudes de Vars y establece un nuevo mapa del titular.<p> intenta establecer el mismo mapa para que se presenten la mayor cantidad de contextos posible, para la compatibilidad.<p> <em> Nota: </ em> En algunos casos, esta llamada no es necesaria, pero es una buena idea de todos modos porque establecerá el mismo mapa para solicitar y contexto (pero no FTL - FIXME?), Que podría prevenirProblemas en casos de representación impar.Esto debe llamarse al comienzo de la representación en un punto en que ya sea que muchos de los parámetros no sean nulos como sea posible (pero en general, probablemente, por lo general, será NULL).


public void remove  ( RequestFilter filter ) { filters . remove ( filter ) ; }

Filtro de NoGistrito (no obtendrá más eventos)


public TokenizerImpl ( Reader file ) { setInputReader ( file ) ; }

Crea un tokenizador que volverá tokens del archivo dado.


public void addColumn  ( String name , Class type , Object defaultValue ) { if ( m_locked ) { throw new IllegalStateException ( "Can not add column to a locked Schema." ) ; } if ( name == null ) { throw new IllegalArgumentException ( "Null column names are not allowed." ) ; } if ( type == null ) { throw new IllegalArgumentException ( "Null column types are not allowed." ) ; } for ( int i = 0 ; i < m_size ; ++ i ) { if ( m_names [ i ] . equals ( name ) ) { throw new IllegalArgumentException ( "Duplicate column names are not allowed: " + m_names [ i ] ) ; } } if ( m_names . length == m_size ) { int capacity = ( 3 * m_names . length ) / 2 + 1 ; String [ ] names = new String [ capacity ] ; Class [ ] types = new Class [ capacity ] ; Object [ ] dflts = new Object [ capacity ] ; System . arraycopy ( m_names , 0 , names , 0 , m_size ) ; System . arraycopy ( m_types , 0 , types , 0 , m_size ) ; System . arraycopy ( m_dflts , 0 , dflts , 0 , m_size ) ; m_names = names ; m_types = types ; m_dflts = dflts ; } m_names [ m_size ] = name ; m_types [ m_size ] = type ; m_dflts [ m_size ] = defaultValue ; if ( m_lookup != null ) m_lookup . put ( name , new Integer ( m_size ) ) ; ++ m_size ; }


public static synchronized void checkAuth  ( SessionKey key , GsConnection gsConnection ) { LoginConnection con = accountsOnLS . get ( key . accountId ) ; if ( con != null && con . getSessionKey ( ) . checkSessionKey ( key ) ) { accountsOnLS . remove ( key . accountId ) ; GameServerInfo gsi = gsConnection . getGameServerInfo ( ) ; Account acc = con . getAccount ( ) ; gsi . addAccountToGameServer ( acc ) ; acc . setLastServer ( gsi . getId ( ) ) ; getAccountDAO ( ) . updateLastServer ( acc . getId ( ) , acc . getLastServer ( ) ) ; long toll = DAOManager . getDAO ( PremiumDAO . class ) . getPoints ( acc . getId ( ) ) ; gsConnection . sendPacket ( new SM_ACCOUNT_AUTH_RESPONSE ( key . accountId , true , acc . getName ( ) , acc . getAccessLevel ( ) , acc . getMembership ( ) , toll ) ) ; } else { gsConnection . sendPacket ( new SM_ACCOUNT_AUTH_RESPONSE ( key . accountId , false , null , ( byte ) 0 , ( byte ) 0 , 0 ) ) ; } }

Este método es para responder a GameServer Pregunta sobre la autenticación de la cuenta en Gameserver Side.


public void merge  ( DocumentNGramGraph dgOtherObject , double fWeightPercent ) { mergeGraph ( dgOtherObject , fWeightPercent ) ; }

Consulte el miembro <I> Mergegaph </ i> para más detalles.Implementa la interfaz de combinación.


public void parse  ( byte [ ] aLine , int length ) throws IOException { int numberOfTokens = 0 ; int start = 0 ; while ( start < length ) { int end = start ; while ( aLine [ end ] != '\t' && end < length ) end ++ ; if ( numberOfTokens == tokens . length ) { String [ ] tmp = new String [ 2 * tokens . length ] ; System . arraycopy ( tokens , 0 , tmp , 0 , tokens . length ) ; tokens = tmp ; } tokens [ numberOfTokens ++ ] = Basic . toString ( aLine , start , end - start ) ; start = end + 1 ; } parse ( tokens , numberOfTokens ) ; }


public ContextStack ( ) { deque = new ArrayDeque < > ( ) ; }

Construye ContextStack, inicializa la pila de contexto a una cola vacía.


private void sendCharactersToSchemaParser  ( String str , boolean whitespace ) { if ( str != null ) { final int length = str . length ( ) ; final int remainder = length & CHUNK_MASK ; if ( remainder > 0 ) { str . getChars ( 0 , remainder , fCharBuffer , 0 ) ; fTempString . setValues ( fCharBuffer , 0 , remainder ) ; if ( whitespace ) { fSchemaDOMParser . ignorableWhitespace ( fTempString , null ) ; } else { fSchemaDOMParser . characters ( fTempString , null ) ; } } int i = remainder ; while ( i < length ) { str . getChars ( i , i += CHUNK_SIZE , fCharBuffer , 0 ) ; fTempString . setValues ( fCharBuffer , 0 , CHUNK_SIZE ) ; if ( whitespace ) { fSchemaDOMParser . ignorableWhitespace ( fTempString , null ) ; } else { fSchemaDOMParser . characters ( fTempString , null ) ; } } } }

Envíe caracteres al validador en chunk_size Chunks.


synchronized void releaseValidator  ( String schemaType , String xmlVersion , RevalidationHandler validator ) { if ( schemaType == XMLGrammarDescription . XML_SCHEMA ) { ++ freeSchemaValidatorIndex ; if ( schemaValidators . length == freeSchemaValidatorIndex ) { schemaValidatorsCurrentSize += SIZE ; SoftReference newarray [ ] = new SoftReference [ schemaValidatorsCurrentSize ] ; System . arraycopy ( schemaValidators , 0 , newarray , 0 , schemaValidators . length ) ; schemaValidators = newarray ; } SoftReference ref = schemaValidators [ freeSchemaValidatorIndex ] ; if ( ref != null ) { RevalidationHandlerHolder holder = ( RevalidationHandlerHolder ) ref . get ( ) ; if ( holder != null ) { holder . handler = validator ; return ; } } schemaValidators [ freeSchemaValidatorIndex ] = new SoftReference ( new RevalidationHandlerHolder ( validator ) ) ; } else if ( schemaType == XMLGrammarDescription . XML_DTD ) { if ( "1.1" . equals ( xmlVersion ) ) { ++ freeXML11DTDValidatorIndex ; if ( xml11DTDValidators . length == freeXML11DTDValidatorIndex ) { xml11DTDValidatorsCurrentSize += SIZE ; SoftReference [ ] newarray = new SoftReference [ xml11DTDValidatorsCurrentSize ] ; System . arraycopy ( xml11DTDValidators , 0 , newarray , 0 , xml11DTDValidators . length ) ; xml11DTDValidators = newarray ; } SoftReference ref = xml11DTDValidators [ freeXML11DTDValidatorIndex ] ; if ( ref != null ) { RevalidationHandlerHolder holder = ( RevalidationHandlerHolder ) ref . get ( ) ; if ( holder != null ) { holder . handler = validator ; return ; } } xml11DTDValidators [ freeXML11DTDValidatorIndex ] = new SoftReference ( new RevalidationHandlerHolder ( validator ) ) ; } else { ++ freeXML10DTDValidatorIndex ; if ( xml10DTDValidators . length == freeXML10DTDValidatorIndex ) { xml10DTDValidatorsCurrentSize += SIZE ; SoftReference [ ] newarray = new SoftReference [ xml10DTDValidatorsCurrentSize ] ; System . arraycopy ( xml10DTDValidators , 0 , newarray , 0 , xml10DTDValidators . length ) ; xml10DTDValidators = newarray ; } SoftReference ref = xml10DTDValidators [ freeXML10DTDValidatorIndex ] ; if ( ref != null ) { RevalidationHandlerHolder holder = ( RevalidationHandlerHolder ) ref . get ( ) ; if ( holder != null ) { holder . handler = validator ; return ; } } xml10DTDValidators [ freeXML10DTDValidatorIndex ] = new SoftReference ( new RevalidationHandlerHolder ( validator ) ) ; } } }


@ Override public Filter createFilter  ( ) { return new TouchesExtended ( ) ; }


public static IOCase forName  ( String name ) { if ( IOCase . SENSITIVE . name . equals ( name ) ) { return IOCase . SENSITIVE ; } if ( IOCase . INSENSITIVE . name . equals ( name ) ) { return IOCase . INSENSITIVE ; } if ( IOCase . SYSTEM . name . equals ( name ) ) { return IOCase . SYSTEM ; } throw new IllegalArgumentException ( "Invalid IOCase name: " + name ) ; }

Método de fábrica para crear una IOCIase de un nombre.


public void performQuery  ( ) throws IOException , PIRException  { logger . info ( "Performing query: " ) ; JavaRDD < MapWritable > inputRDD ; switch ( dataInputFormat ) { case InputFormatConst . BASE_FORMAT : inputRDD = readData ( ) ; break ; case InputFormatConst . ES : inputRDD = readDataES ( ) ; break ; default : throw new PIRException ( "Unknown data input format " + dataInputFormat ) ; } performQuery ( inputRDD ) ; }

Método para leer en datos de una fuente / formato de entrada permitida y realizar la consulta


@ NotNull public DescribeImageAction describeImage  ( int maxCandidates , @ NotNull InputStream image ) { return new DescribeImageAction ( cognitiveContext , maxCandidates , image ) ; }

Esta operación genera una descripción de una imagen en lenguaje legible humano con oraciones completas.La descripción se basa en una colección de etiquetas de contenido, que también son devueltas por la operación.Se puede generar más de una descripción para cada imagen.Las descripciones son ordenadas por su puntaje de confianza.Todas las descripciones están en inglés.


private void createUI  ( Class < ? > panelDetails , String configFile ) { PrefManager . getInstance ( ) . addVendorOptionListener ( this ) ; createVendorOptionPanel ( ) ; readConfigFile ( vendorOptionFillFactory , this , configFile ) ; symbolTypeFactory . populate ( this , panelDetails , fieldConfigManager ) ; }


@ Override boolean shouldImportAsCurrentTranslation  ( Long tmTextUnitId ) { TranslationKitExportedImportedAndCurrentTUV translationKitExportedAndCurrentTUV = translationKitExportedAndCurrentTUVs . get ( tmTextUnitId ) ; boolean isTKReimport = Objects . equals ( translationKitExportedAndCurrentTUV . getCurrentTmTextUnitVariant ( ) , translationKitExportedAndCurrentTUV . getImportedTmTextUnitVariant ( ) ) ; boolean noExternalTranslationAdded = Objects . equals ( translationKitExportedAndCurrentTUV . getCurrentTmTextUnitVariant ( ) , translationKitExportedAndCurrentTUV . getExportedTmTextUnitVariant ( ) ) ; return isTKReimport || noExternalTranslationAdded ; }

La unidad de texto debe importarse si la traducción actual es la misma que la traducción importada anteriormente en este TK (se está realizando una re-importar) o si no se ha agregado ninguna traducción ya que se exportó TK (esto incluye no tener traducción para estounidad de texto).Tenga en cuenta que eliminar o cambiar el estado de la traducción evitará un reemplacimiento.


protected boolean writeAttributes  ( DataOutputStream dd , int attributes_count , attribute_info [ ] ai ) throws IOException { attribute_info a = null ; int i ; for ( i = 0 ; i < attributes_count ; i ++ ) { a = ai [ i ] ; dd . writeShort ( a . attribute_name ) ; dd . writeInt ( ( int ) a . attribute_length ) ; if ( a instanceof SourceFile_attribute ) { SourceFile_attribute sa = ( SourceFile_attribute ) a ; dd . writeShort ( sa . sourcefile_index ) ; } else if ( a instanceof ConstantValue_attribute ) { ConstantValue_attribute ca = ( ConstantValue_attribute ) a ; dd . writeShort ( ca . constantvalue_index ) ; } else if ( a instanceof Code_attribute ) { Code_attribute ca = ( Code_attribute ) a ; dd . writeShort ( ca . max_stack ) ; dd . writeShort ( ca . max_locals ) ; dd . writeInt ( ( int ) ca . code_length ) ; dd . write ( ca . code , 0 , ( int ) ca . code_length ) ; dd . writeShort ( ca . exception_table_length ) ; int k ; exception_table_entry e ; for ( k = 0 ; k < ca . exception_table_length ; k ++ ) { e = ca . exception_table [ k ] ; dd . writeShort ( e . start_pc ) ; dd . writeShort ( e . end_pc ) ; dd . writeShort ( e . handler_pc ) ; dd . writeShort ( e . catch_type ) ; } dd . writeShort ( ca . attributes_count ) ; if ( ca . attributes_count > 0 ) writeAttributes ( dd , ca . attributes_count , ca . attributes ) ; } else if ( a instanceof Exception_attribute ) { Exception_attribute ea = ( Exception_attribute ) a ; dd . writeShort ( ea . number_of_exceptions ) ; if ( ea . number_of_exceptions > 0 ) { int k ; for ( k = 0 ; k < ea . number_of_exceptions ; k ++ ) dd . writeShort ( ea . exception_index_table [ k ] ) ; } } else if ( a instanceof LineNumberTable_attribute ) { LineNumberTable_attribute la = ( LineNumberTable_attribute ) a ; dd . writeShort ( la . line_number_table_length ) ; int k ; line_number_table_entry e ; for ( k = 0 ; k < la . line_number_table_length ; k ++ ) { e = la . line_number_table [ k ] ; dd . writeShort ( e . start_pc ) ; dd . writeShort ( e . line_number ) ; } } else if ( a instanceof LocalVariableTable_attribute ) { LocalVariableTable_attribute la = ( LocalVariableTable_attribute ) a ; dd . writeShort ( la . local_variable_table_length ) ; int k ; local_variable_table_entry e ; for ( k = 0 ; k < la . local_variable_table_length ; k ++ ) { e = la . local_variable_table [ k ] ; dd . writeShort ( e . start_pc ) ; dd . writeShort ( e . length ) ; dd . writeShort ( e . name_index ) ; dd . writeShort ( e . descriptor_index ) ; dd . writeShort ( e . index ) ; } } else { G . v ( ) . out . println ( "Generic/Unknown Attribute in output" ) ; Generic_attribute ga = ( Generic_attribute ) a ; if ( ga . attribute_length > 0 ) { dd . write ( ga . info , 0 , ( int ) ga . attribute_length ) ; } } } return true ; }

Escribe la matriz dada de atributos al flujo dado.


@ Override public boolean checkCanSwipeBack  ( int dir ) { return view . checkCanSwipeBack ( dir ) ; }


public RetriableException ( String msg ) { this ( msg , null ) ; }

Una nueva excepción retriable con un mensaje.


static Iterable < Enum > createAdditionalServiceEnums  ( ) { String fileName = "struct.proto" ; List < Enum > additionalEnums = Lists . newArrayList ( ) ; additionalEnums . add ( TypesBuilderFromDescriptor . createEnum ( NullValue . getDescriptor ( ) . getFullName ( ) , NullValue . getDescriptor ( ) . toProto ( ) , fileName ) ) ; return additionalEnums ; }

Crea enumias adicionales (NullValue) que se agregarán a la configuración de servicio.


public IntDataType ( int i ) { this . i = i ; }


public static String makeTag  ( Class < ? > cls , @ IdRes int viewId ) { return cls . getName ( ) + ":" + viewId ; }


public CholeskyDecomposition chol  ( ) { return new CholeskyDecomposition ( this ) ; }


public static boolean validationOn  ( ) { return ! "none" . equals ( UtilProperties . getPropertyValue ( "minilang.properties" , "validation.level" ) ) ; }

Devuelve <CÓDIGO> Verdadero </ código> Si <Code> Validation.level </ code> está configurado en Leniente o estricto.


public static void putStringSet  ( String key , Set < String > values ) { prefs . edit ( ) . putStringSet ( key , values ) . commit ( ) ; }

Establezca un conjunto de valores de cadena en el editor de preferencias, para ser escrito


public static int exportName2ReadNames  ( String format , ViewerBase cViewer , File file , char separator , ProgressListener progressListener ) throws IOException { int totalLines = 0 ; try { final Classification classification = ClassificationManager . get ( cViewer . getClassName ( ) , true ) ; final String shortName = ( cViewer . getClassName ( ) . toLowerCase ( ) . equals ( "taxonomy" ) ? "Taxon" : cViewer . getClassName ( ) ) ; try ( BufferedWriter w = new BufferedWriter ( new FileWriter ( file ) ) ) { IConnector connector = cViewer . getDocument ( ) . getConnector ( ) ; java . util . Collection < Integer > ids = cViewer . getSelectedIds ( ) ; progressListener . setSubtask ( shortName + " to read names" ) ; progressListener . setMaximum ( ids . size ( ) ) ; progressListener . setProgress ( 0 ) ; final IClassificationBlock classificationBlock = connector . getClassificationBlock ( cViewer . getClassName ( ) ) ; if ( classificationBlock != null ) { for ( int classId : ids ) { final Set < Integer > allBelow ; Node v = classification . getFullTree ( ) . getANode ( classId ) ; if ( v . getOutDegree ( ) > 0 ) allBelow = classification . getFullTree ( ) . getAllDescendants ( classId ) ; else { allBelow = new HashSet < > ( ) ; allBelow . add ( classId ) ; } boolean hasSome = false ; for ( int id : allBelow ) { if ( classificationBlock . getSum ( id ) > 0 ) { if ( ! hasSome ) { w . write ( getLabelSource ( shortName , classification , format , v ) ) ; hasSome = true ; } try ( IReadBlockIterator it = connector . getReadsIterator ( cViewer . getClassName ( ) , id , 0 , 10000 , true , false ) ) { while ( it . hasNext ( ) ) { String readId = it . next ( ) . getReadName ( ) ; w . write ( separator + " " + readId ) ; } } progressListener . checkForCancel ( ) ; } } if ( hasSome ) { w . write ( "\n" ) ; totalLines ++ ; } progressListener . incrementProgress ( ) ; } } } } catch ( CanceledException canceled ) { System . err . println ( "USER CANCELED" ) ; } return totalLines ; }

Nombre de exportación a la asignación de lectura-identificaciones


private static boolean possiblyValidStringLiteral  ( PsiElement element ) { if ( element instanceof StringLiteral ) { return true ; } if ( element instanceof LiteralExpression ) { return false ; } if ( element instanceof LoadStatement || element instanceof FunctionStatement || element instanceof GlobExpression ) { return false ; } return true ; }

Devuelve False IFF Sabemos con certeza de que el elemento no puede resolverse con un literal de cadena.


private Set < String > loadAndroidCallbacks  ( ) throws IOException  { Set < String > androidCallbacks = new HashSet < String > ( ) ; BufferedReader rdr = null ; try { String fileName = JadeCfg . getCallback_file ( ) ; if ( ! new File ( fileName ) . exists ( ) ) { fileName = "../soot-infoflow-android/AndroidCallbacks.txt" ; if ( ! new File ( fileName ) . exists ( ) ) throw new RuntimeException ( "Callback definition file not found" ) ; } rdr = new BufferedReader ( new FileReader ( fileName ) ) ; String line ; while ( ( line = rdr . readLine ( ) ) != null ) if ( ! line . isEmpty ( ) ) androidCallbacks . add ( line ) ; } finally { if ( rdr != null ) rdr . close ( ) ; } return androidCallbacks ; }

Carga el conjunto de interfaces que se utilizan para implementar manipuladores de devolución de llamada de Android desde un archivo en el disco


private void initModel  ( Activity a , int type ) { this . photosModel = new PhotosObject ( a , type ) ; this . loadModel = new LoadObject ( LoadObject . LOADING_STATE ) ; this . scrollModel = new ScrollObject ( ) ; }


@ Override public synchronized void clear  ( ) { File [ ] files = mRootDirectory . listFiles ( ) ; if ( files != null ) { for ( File file : files ) { file . delete ( ) ; } } mEntries . clear ( ) ; mTotalSize = 0 ; VolleyLog . d ( "Cache cleared." ) ; }

Borra el caché.Elimina todos los archivos en caché desde el disco.


public static CommandResult execCommand  ( String command , boolean isRoot ) { return execCommand ( new String [ ] { command } , isRoot , true ) ; }

Ejecutar comando shell, resultado de antemano predeterminado msg


TestItem awareTestItemIssueTypeFromStatus  ( final TestItem testItem , final Issue providedIssue , final Project project ) { if ( FAILED . equals ( testItem . getStatus ( ) ) || SKIPPED . equals ( testItem . getStatus ( ) ) ) { if ( null != providedIssue ) { verifyIssue ( testItem . getId ( ) , providedIssue , project . getConfiguration ( ) ) ; String issueType = providedIssue . getIssueType ( ) ; if ( ! issueType . equalsIgnoreCase ( NOT_ISSUE_FLAG . getValue ( ) ) ) { testItem . setIssue ( new TestItemIssue ( project . getConfiguration ( ) . getByLocator ( issueType ) . getLocator ( ) , providedIssue . getComment ( ) ) ) ; } } else { testItem . setIssue ( new TestItemIssue ( ) ) ; Launch launch = launchRepository . findOne ( testItem . getLaunchRef ( ) ) ; expect ( launch , notNull ( ) ) . verify ( LAUNCH_NOT_FOUND , testItem . getLaunchRef ( ) ) ; if ( Mode . DEFAULT . equals ( launch . getMode ( ) ) && project . getConfiguration ( ) . getIsAutoAnalyzerEnabled ( ) ) finalizeFailed ( testItem ) ; } } return testItem ; }

Problema de reconocimiento de tipo para el elemento de prueba especificado de


public void Notify  ( Object oSender , Object oParams ) { double dProgress = ( ( Double ) oParams ) . doubleValue ( ) ; System . err . print ( "Comparison " + String . format ( "%4.2f%%" , dProgress ) + "\r" ) ; }

Actúa como notificador, generando información de depuración al error estándar, indicativo del progreso de la comparación.


public SortPlan ( Plan p , List < String > sortFields , List < Integer > sortDirs , Transaction tx ) { this . p = p ; comp = new RecordComparator ( sortFields , sortDirs ) ; this . sortFlds = sortFields ; this . sortDirs = sortDirs ; this . tx = tx ; schema = p . schema ( ) ; }

Crea un plan de clasificación para la consulta especificada.


public boolean isCritical  ( ) { return true ; }

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


void read  ( BlockId blk , IoBuffer buffer ) { try { IoChannel fileChannel = getFileChannel ( blk . fileName ( ) ) ; buffer . clear ( ) ; fileChannel . read ( buffer , blk . number ( ) * BLOCK_SIZE ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; throw new RuntimeException ( "cannot read block " + blk ) ; } }

Lee los contenidos de un bloque de disco en un búfer de bytes.


public static boolean isRootModuleWithNoSources  ( @ NotNull Module module ) { if ( ModuleRootManager . getInstance ( module ) . getSourceRoots ( ) . length == 0 ) { String gradlePath = getGradlePath ( module ) ; if ( gradlePath == null || gradlePath . equals ( ":" ) ) { return true ; } } return false ; }

Devuelve si el módulo dado es el módulo correspondiente a la raíz del proyecto (es decir, la ruta de engranajes de ":") y no tiene raíces de origen.<P /> Los proyectos predeterminados de Android Studio crean un módulo vacío en el nivel de raíz.En teoría, los usuarios podrían agregar fuentes a ese módulo, pero esperamos que la mayoría no tenga y mantenga eso como un módulo simplemente para atar otros módulos.


public static String toUTF8  ( String sStr ) { byte [ ] baBytes = sStr . getBytes ( ) ; try { return new String ( baBytes , "UTF-8" ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return new String ( baBytes ) ; } }

Convierte una cadena a la codificación UTF-8.


Instantánea un nuevo envoltorio de estilo.


public static String formatCreateDate  ( String createDate ) { String result = "" ; if ( ! TextUtils . isEmpty ( createDate ) && createDate . length ( ) >= 10 ) { result = createDate . substring ( 0 , 10 ) ; } return result ; }


public DataFrame createDataFrame  ( List < String > taggedSentences ) { List < String > wordSequences = new LinkedList < String > ( ) ; List < String > tagSequences = new LinkedList < String > ( ) ; for ( String taggedSentence : taggedSentences ) { StringBuilder wordBuf = new StringBuilder ( ) ; StringBuilder tagBuf = new StringBuilder ( ) ; String [ ] tokens = taggedSentence . split ( "\\s+" ) ; for ( String token : tokens ) { String [ ] parts = token . split ( "/" ) ; if ( parts . length == 2 ) { wordBuf . append ( parts [ 0 ] ) ; wordBuf . append ( ' ' ) ; tagBuf . append ( parts [ 1 ] ) ; tagBuf . append ( ' ' ) ; } else { wordBuf . append ( '/' ) ; wordBuf . append ( ' ' ) ; tagBuf . append ( '/' ) ; tagBuf . append ( ' ' ) ; } } wordSequences . add ( wordBuf . toString ( ) . trim ( ) ) ; tagSequences . add ( tagBuf . toString ( ) . trim ( ) ) ; } if ( verbose ) { System . out . println ( "Number of sentences = " + wordSequences . size ( ) ) ; } List < Row > rows = new LinkedList < Row > ( ) ; for ( int i = 0 ; i < wordSequences . size ( ) ; i ++ ) { rows . add ( RowFactory . create ( wordSequences . get ( i ) , tagSequences . get ( i ) ) ) ; } JavaRDD < Row > jrdd = jsc . parallelize ( rows ) ; StructType schema = new StructType ( new StructField [ ] { new StructField ( "sentence" , DataTypes . StringType , false , Metadata . empty ( ) ) , new StructField ( "partOfSpeech" , DataTypes . StringType , false , Metadata . empty ( ) ) } ) ; return new SQLContext ( jsc ) . createDataFrame ( jrdd , schema ) ; }

Crea un marco de datos de una lista de oraciones etiquetadas.


public void mouseMoved  ( MouseEvent e ) { mIsControlDown = e . isControlDown ( ) ; mIsShiftDown = e . isShiftDown ( ) ; mIsAltDown = e . isAltDown ( ) ; float x = mViewTransform . getAndroidFX ( e . getX ( ) ) ; float y = mViewTransform . getAndroidFY ( e . getY ( ) ) ; mouseMoved ( x , y ) ; }


void jimpleTargetFixup  ( ) { BasicBlock b ; BBQ bbq = new BBQ ( ) ; Code_attribute c = method . locate_code_attribute ( ) ; if ( c == null ) return ; { BasicBlock bb = cfg ; while ( bb != null ) { bb . done = true ; bb = bb . next ; } } bbq . push ( cfg ) ; processTargetFixup ( bbq ) ; if ( bbq . isEmpty ( ) ) { int i ; for ( i = 0 ; i < c . exception_table_length ; i ++ ) { b = c . exception_table [ i ] . b ; if ( b != null && b . done ) { bbq . push ( b ) ; processTargetFixup ( bbq ) ; if ( ! bbq . isEmpty ( ) ) { G . v ( ) . out . println ( "Error 2nd processing exception block." ) ; break ; } } } } }

Después de la construcción inicial de Jimple, se realiza una segunda pasada para arreglar los objetivos de STMT que faltan para <TT> goto </ tt> s, <tt> si </ tt> 's etc.


private void findRepeatedDataItems  ( ) { for ( JsTreeDataItem dataItem : this ) { Integer timesRepeated = 0 ; if ( hasTreeDataItem ( dataItem ) ) { if ( sameIdDataItemsMap . containsKey ( dataItem . getOriginalId ( ) ) ) timesRepeated = sameIdDataItemsMap . get ( dataItem . getOriginalId ( ) ) ; timesRepeated ++ ; sameIdDataItemsMap . put ( dataItem . getOriginalId ( ) , timesRepeated ) ; } } }

Encuentra todos los elementos repetidos, o básicamente los que tienen la misma ID para que puedan ser tratados más adelante en


public NoBracketingException ( Localizable specific , double lo , double hi , double fLo , double fHi , Object ... args ) { super ( specific , Double . valueOf ( lo ) , Double . valueOf ( hi ) , Double . valueOf ( fLo ) , Double . valueOf ( fHi ) , args ) ; this . lo = lo ; this . hi = hi ; this . fLo = fLo ; this . fHi = fHi ; }

Construye la excepción con un contexto específico.


public float [ ] toArray  ( float [ ] floats ) { if ( floats == null ) { floats = new float [ 3 ] ; } floats [ 0 ] = x ; floats [ 1 ] = y ; floats [ 2 ] = z ; return floats ; }

Guarda este vector3F en el objeto FLOAT [] dado.


public boolean isCDataElement  ( String tagName ) { int i ; if ( _cdataElements == null ) return false ; for ( i = 0 ; i < _cdataElements . length ; ++ i ) if ( _cdataElements [ i ] . equals ( tagName ) ) return true ; return false ; }

Devuelve VERDADERO si el nodo de texto, los niños de los elementos dado deben emitirse como CDATA.


public CreateSiteWindow selectLanguages  ( List < String > languages ) { clickLanguageCheckBox ( "English (United Kingdom)" ) ; languages . forEach ( null ) ; return this ; }


public static void main  ( String [ ] args ) throws Exception { if ( args . length != 2 ) { System . err . println ( "Usage: java " + VocalTractLinearScalerEffect . class . getName ( ) + " <factor> <filename>" ) ; System . exit ( 1 ) ; } float factor = Float . parseFloat ( args [ 0 ] ) ; String filename = args [ 1 ] ; AudioDoubleDataSource input = new AudioDoubleDataSource ( AudioSystem . getAudioInputStream ( new File ( filename ) ) ) ; AudioFormat format = input . getAudioFormat ( ) ; VocalTractLinearScalerEffect effect = new VocalTractLinearScalerEffect ( ( int ) format . getSampleRate ( ) ) ; DoubleDataSource output = effect . apply ( input , "amount:" + factor ) ; DDSAudioInputStream audioOut = new DDSAudioInputStream ( output , format ) ; String outFilename = FilenameUtils . removeExtension ( filename ) + "_" + factor + ".wav" ; AudioSystem . write ( audioOut , AudioFileFormat . Type . WAVE , new File ( outFilename ) ) ; System . out . println ( "Created file " + outFilename ) ; }

Interfaz de línea de comandos para el efecto de escalador lineal del tracto vocal.


public static double parseDouble  ( byte [ ] bytes , int start , int length ) throws NumberFormatException { if ( length == 0 ) { throw new NumberFormatException ( "cannot parse empty string as double" ) ; } int end = start + length ; int i = start ; char c = ( char ) bytes [ i ] ; if ( c == 'N' ) { if ( match ( "NaN" , bytes , i , end ) ) { return Double . NaN ; } else { throw newNumberFormatException ( "cannot parse string as double" , bytes , start , length ) ; } } double sigNum ; if ( c == '-' ) { sigNum = - 1D ; i ++ ; c = ( char ) bytes [ i ] ; } else if ( c == '+' ) { sigNum = 1D ; i ++ ; c = ( char ) bytes [ i ] ; } else { sigNum = 1D ; } if ( c == 'I' ) { if ( match ( "Infinity" , bytes , i , end ) ) { return sigNum == - 1 ? Double . NEGATIVE_INFINITY : Double . POSITIVE_INFINITY ; } else { throw newNumberFormatException ( "cannot parse string as double" , bytes , start , length ) ; } } if ( ( c < '0' || c > '9' ) && c != '.' ) { throw newNumberFormatException ( "leading digit or '.' required" , bytes , start , length ) ; } long decimal = 0 ; int decimalPoint = - 1 ; while ( true ) { int digit = c - '0' ; if ( digit >= 0 && digit < 10 ) { long tmp = decimal * 10 + digit ; if ( decimal > LONG_MAX_DIV10 || tmp < decimal ) { return Double . parseDouble ( new String ( bytes , start , length , StandardCharsets . UTF_8 ) ) ; } decimal = tmp ; } else if ( c == '.' && decimalPoint == - 1 ) { decimalPoint = i ; } else { break ; } if ( ++ i >= end ) { break ; } c = ( char ) bytes [ i ] ; } int fractionLength = ( decimalPoint >= 0 ) ? i - decimalPoint - 1 : 0 ; int exp = 0 ; if ( i < end ) { if ( c == 'E' || c == 'e' ) { c = ( char ) bytes [ ++ i ] ; boolean isNegativeExp = ( c == '-' ) ; if ( ( isNegativeExp || ( c == '+' ) ) && ( ++ i < end ) ) { c = ( char ) bytes [ i ] ; } if ( ( c < '0' ) || ( c > '9' ) ) { throw newNumberFormatException ( "invalid exponent" , bytes , start , length ) ; } while ( true ) { int digit = c - '0' ; if ( ( digit >= 0 ) && ( digit < 10 ) ) { int tmp = exp * 10 + digit ; if ( ( exp > INT_MAX_DIV10 ) || ( tmp < exp ) ) { return Double . parseDouble ( new String ( bytes , start , length , StandardCharsets . UTF_8 ) ) ; } exp = tmp ; } else break ; if ( ++ i >= end ) { break ; } c = ( char ) bytes [ i ] ; } if ( isNegativeExp ) { exp = - exp ; } } else { throw newNumberFormatException ( "extra characters" , bytes , start , length ) ; } } return sigNum * toDoublePow10 ( decimal , exp - fractionLength ) ; }

Analiza el byte especificado [] la rebanada como un doble </ código>.


@ Override public void onAddDataTag  ( final ISourceDataTag sourceDataTag , final ChangeReport changeReport ) { changeReport . appendError ( "The equipment has no implementation to" + " add data tags. You have to restart the DAQ." ) ; changeReport . setState ( CHANGE_STATE . REBOOT ) ; }

Llamado cuando se agrega una etiqueta de comando.Cada llamada de este método requeriría una reacción específica del equipo.Por lo tanto, siempre establecerá el estado de reinicio en el informe.


Object computeResult  ( ) throws JobException  { if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . entering ( PrepareJob . class . getName ( ) , "computeResult" ) ; } try { if ( ! isCompleted ( 0 ) ) throw new ResultNotReadyException ( "Cannot compute result " + "since there are jobs pending" ) ; } catch ( JobNotStartedException jnse ) { throw new ResultNotReadyException ( "Cannot compute result since" + " jobs were not created" ) ; } int prepstate = NOTCHANGED ; int tmp = 0 ; checkresults : for ( int i = 0 ; i < results . length ; i ++ ) { tmp = ( ( Integer ) results [ i ] ) . intValue ( ) ; switch ( tmp ) { case NOTCHANGED : break ; case ABORTED : prepstate = ABORTED ; break checkresults ; case PREPARED : if ( prepstate == NOTCHANGED ) prepstate = PREPARED ; break ; } } Integer result = new Integer ( prepstate ) ; if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareJob . class . getName ( ) , "computeResult" , result ) ; } return result ; }

Recopila resultados parciales presentados por tareas y produce un solo resultado.


public double predict  ( double x ) { return beta * x + alpha ; }

Devuelve la respuesta esperada <tt> y </ tt> Dado el valor de la variable predictor <tt> x </ tt>.


public NoBracketingException ( double lo , double hi , double fLo , double fHi ) { this ( LocalizedFormats . SAME_SIGN_AT_ENDPOINTS , lo , hi , fLo , fHi ) ; }


public static String slurpURLNoExceptions  ( URL u ) { try { return slurpURL ( u ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return null ; } }


public ForceSimulator ( ) { this  ( new RungeKuttaIntegrator ( ) ) ; }

Crea un nuevo pechugo vacío.Un rungekutteGrator se usa de forma predeterminada.


public static List < String > toLabeledSentences  ( List < DependencyGraph > graphs ) { List < String > list = new LinkedList < String > ( ) ; for ( DependencyGraph graph : graphs ) { StringBuilder sb = new StringBuilder ( ) ; Sentence sentence = graph . getSentence ( ) ; String [ ] labels = graph . getLabels ( ) ; for ( int i = 1 ; i < sentence . length ( ) ; i ++ ) { sb . append ( sentence . getToken ( i ) ) ; sb . append ( ';' ) ; sb . append ( sentence . getTag ( i ) ) ; sb . append ( '/' ) ; sb . append ( labels [ i ] ) ; sb . append ( ' ' ) ; } list . add ( sb . toString ( ) . trim ( ) ) ; } return list ; }

Convierte una lista de gráficos a una lista de oraciones etiquetadas.


private boolean superSetOf  ( AllocAndContextSet onePts , final AllocAndContextSet otherPts ) { return onePts . containsAll ( otherPts ) ; }

Devuelve <código> Verdadero </ code> si <code> ONTOPTS </ CODE> es un superset (no estricto) de <código> OTROSPTS </ CODE>.


public boolean isCritical  ( ) { return true ; }

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


public static void with  ( @ NonNull Application application , @ NonNull ShakeDelegate delegate ) { LifecycleCallbacks lifecycleCallbacks = new LifecycleCallbacks ( application , delegate ) ; application . registerActivityLifecycleCallbacks ( lifecycleCallbacks ) ; }

Punto de entrada en esta API.Registra inestable a la aplicación actual.


public long maxSize  ( ) { return maxSize ; }

Devuelve el número máximo de bytes que este caché debe usar para almacenar sus datos.


public static String localizePath  ( String path ) { String fileNameSeparator = ( "\\" . equals ( File . separator ) ? "\\" + File . separator : File . separator ) ; return path . replaceAll ( "/+|\\\\+" , fileNameSeparator ) ; }

Convierte una ruta de archivo a una que es compatible con el sistema operativo del host.


public static boolean isEmpty  ( Map < ? , ? > map ) { return ( map == null || map . isEmpty ( ) ) ; }

Devuelva <CÓDIGO> Verdadero </ código> Si el mapa </ code> suministrado es nulo o vacío.De lo contrario, devuelva <código> FALSO </ CODE>.


@ Override public void externalEntityDecl  ( String name , XMLResourceIdentifier identifier , Augmentations augmentations ) throws XNIException { }


public static boolean isEmbedded  ( ) { return Boolean . valueOf ( ConfigurationUtil . getProperty ( EMBEDDED_MODE_PROPERTY ) ) ; }

Devuelve si el almirante se está ejecutando en modo incrustado o no en función de la propiedad de configuración "incrustada".


public IntegerConstant ( int n ) { val = n ; }

Cree una constante envolviendo el INT especificado.


public synchronized void openDriver  ( SurfaceHolder holder ) throws IOException { OpenCamera theCamera = camera ; if ( theCamera == null ) { theCamera = OpenCameraInterface . open ( requestedCameraId ) ; if ( theCamera == null ) { throw new IOException ( "Camera.open() failed to return object from driver" ) ; } camera = theCamera ; } if ( ! initialized ) { initialized = true ; configManager . initFromCameraParameters ( theCamera ) ; if ( requestedFramingRectWidth > 0 && requestedFramingRectHeight > 0 ) { setManualFramingRect ( requestedFramingRectWidth , requestedFramingRectHeight ) ; requestedFramingRectWidth = 0 ; requestedFramingRectHeight = 0 ; } } Camera cameraObject = theCamera . getCamera ( ) ; Camera . Parameters parameters = cameraObject . getParameters ( ) ; String parametersFlattened = parameters == null ? null : parameters . flatten ( ) ; try { configManager . setDesiredCameraParameters ( theCamera , false ) ; } catch ( RuntimeException re ) { Log . w ( TAG , "Camera rejected parameters. Setting only minimal safe-mode parameters" ) ; Log . i ( TAG , "Resetting to saved camera params: " + parametersFlattened ) ; if ( parametersFlattened != null ) { parameters = cameraObject . getParameters ( ) ; parameters . unflatten ( parametersFlattened ) ; try { cameraObject . setParameters ( parameters ) ; configManager . setDesiredCameraParameters ( theCamera , true ) ; } catch ( RuntimeException re2 ) { Log . w ( TAG , "Camera rejected even safe-mode parameters! No configuration" ) ; } } } cameraObject . setPreviewDisplay ( holder ) ; }

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


public Gym ( PokemonGo api , FortData proto ) { this . api = api ; this . proto = proto ; this . details = null ; }


public RecyclerView build  ( ) { return mRecyclerView ; }


public void testPojoAccessors  ( ) { final Class < ? > type = PojoAccessors . class ; PojoTypeInfo typeInfo = PojoTypeInfoRepository . getPojoTypeInfo ( type ) ; assertPojoTypeInfo ( typeInfo , type ) ; Assert . assertEquals ( "numOfProperties" , 5 , typeInfo . getNumOfProperties ( ) ) ; assertPojoPropertyInfo ( typeInfo , "class" , Class . class , true , false ) ; assertPojoPropertyInfo ( typeInfo , "publicName" , String . class , true , true ) ; assertPojoPropertyInfo ( typeInfo , "protectedName" , String . class , true , true ) ; assertPojoPropertyInfo ( typeInfo , "privateName" , String . class , true , true ) ; assertPojoPropertyInfo ( typeInfo , "defaultName" , String . class , true , true ) ; }

Probado manualmente porque la introspector de Java solo recibe métodos públicos.


public static ArrayList < SelectableColor > loadMaterialDesignColors500  ( Context context , boolean sortByName ) { return Utils . convertResourceArraysToColorsArrayList ( context , sortByName , R . array . selectiondialogs_materialdesign500_ids , R . array . selectiondialogs_materialdesign500_names , R . array . selectiondialogs_materialdesign500_colors ) ; }

Crea colores de diseño de material predeterminado (500 - primario) como Arraylist.Los colores se pueden ordenar por nombre en tiempo de ejecución, tenga en cuenta que los colores se ordenarán en las pantallas de idioma al usuario.


public ScratchoffController reset  ( ) { if ( scratchableLayout == null ) throw new IllegalStateException ( "Cannot attach to a null View! Ensure you call attach(View, View) with valid Views!" ) ; safelyStopProcessors ( ) ; scratchableLayout . clearAnimation ( ) ; scratchableLayout . setVisibility ( View . VISIBLE ) ; scratchableLayout . invalidate ( ) ; this . layoutDrawer = new ScratchableLayoutDrawer ( ) . attach ( this , scratchableLayout , behindView ) ; scratchableLayout . setOnTouchListener ( this ) ; this . processor = new ScratchoffProcessor ( this ) ; if ( scratchableLayout instanceof ScratchableLayout ) ( ( ScratchableLayout ) scratchableLayout ) . initialize ( this ) ; return this ; }

Restablecer el controlador a su estado pre-rayado.Adjuntar (ver, ver) debe llamarse antes de restablecer.


@ Deprecated public Builder cacheOnDisc  ( ) { return cacheOnDisk ( true ) ; }

La imagen cargada se almacenará en caché en el disco.


public boolean forEachDescending  ( TIntProcedure procedure ) { for ( int i = _pos ; i -- > 0 ; ) { if ( ! procedure . execute ( _data [ i ] ) ) { return false ; } } return true ; }

Aplica el procedimiento a cada valor en la lista en orden descendente (de regreso al frente).


public VideoReportQuery report  ( UserActor actor , int ownerId , int videoId ) { return new VideoReportQuery ( getClient ( ) , actor , ownerId , videoId ) ; }

Informes (envía una queja sobre) un video.


public ImageRecordReader ( ) { super ( ) ; }

Carga de imágenes con altura = 28, ancho = 28, y canales = 1, agregando etiquetas.