Object doWork  ( TaskManager . Task who , Object param ) { if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . entering ( PrepareAndCommitJob . class . getName ( ) , "doWork" , new Object [ ] { who , param } ) ; } Integer res = null ; try { ParticipantHandle handle = ( ParticipantHandle ) param ; TransactionParticipant par = null ; int vote = handle . getPrepState ( ) ; switch ( vote ) { case COMMITTED : case NOTCHANGED : case ABORTED : case PREPARED : if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareAndCommitJob . class . getName ( ) , "doWork" , new Integer ( vote ) ) ; } res = vote ; return res ; } if ( par == null ) par = handle . getParticipant ( ) ; try { if ( ! _directCall && attempt ( who ) > maxtries ) { if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareAndCommitJob . class . getName ( ) , "doWork" , new Integer ( ABORTED ) ) ; } res = ABORTED ; return res ; } } catch ( JobException je ) { if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareAndCommitJob . class . getName ( ) , "doWork" , null ) ; } return null ; } if ( par == null ) { if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareAndCommitJob . class . getName ( ) , "doWork" , null ) ; } return null ; } Integer response = null ; try { TxnMgrProxy cur = ( TxnMgrProxy ) tr . mgr ; boolean optimize = cur . isEmbeddedMgr ( ) ; TransactionManager txnManager = optimize ? cur . createLightProxy ( ) : tr . mgr ; if ( handle . isSuitableForFailover ( ) ) { vote = commitAndPreparePartitionWithEnabledFailover ( handle , txnManager , tr . id , _xid ) ; } else { if ( _xid == null ) { vote = par . prepareAndCommit ( txnManager , tr . id ) ; } else { IRemoteSpace rs = ( IRemoteSpace ) par ; vote = rs . prepareAndCommit ( txnManager , _xid ) ; } } response = vote ; } catch ( UnknownTransactionException ute ) { if ( reCaught != null ) { notifyClient = true ; } vote = ABORTED ; response = vote ; } catch ( RemoteException re ) { reCaught = re ; vote = ABORTED ; response = vote ; } catch ( RuntimeException rte ) { vote = ABORTED ; response = vote ; } if ( response != null ) { handle . setPrepState ( vote ) ; try { log . write ( new PrepareAndCommitRecord ( handle , vote ) ) ; } catch ( com . sun . jini . mahalo . log . LogException le ) { if ( persistenceLogger . isLoggable ( Level . WARNING ) ) { persistenceLogger . log ( Level . WARNING , "Problem writing PrepareAndCommitRecord." , le ) ; } } if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareAndCommitJob . class . getName ( ) , "doWork" , response ) ; } res = response ; return res ; } if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareAndCommitJob . class . getName ( ) , "doWork" , null ) ; } return null ; } finally { if ( _directCall && res != null ) { this . results [ 0 ] = res ; pending = 0 ; } } }

El trabajo a realizar por cada <código> TaskManager.Task </ Code> es proporcionado por el trabajo <Código> </ el código> que lo crea.El trabajo realizado por una tarea que pertenece a los contactos de CommitJob Contacta a un participante, le indica que vota, Roll-Forward / Back y Log adecuadamente.


public static final double metersToFeet  ( double meters ) { return meters * METER_TO_FOOT ; }


@ Override public void redoAction  ( UndoInterface undoRedoObject ) { }


public static BigInteger sizeOfDirectoryAsBigInteger  ( File directory ) { checkDirectory ( directory ) ; final File [ ] files = directory . listFiles ( ) ; if ( files == null ) { return BigInteger . ZERO ; } BigInteger size = BigInteger . ZERO ; for ( final File file : files ) { try { if ( ! isSymlink ( file ) ) { size = size . add ( BigInteger . valueOf ( sizeOf ( file ) ) ) ; } } catch ( IOException ioe ) { } } return size ; }

Cuenta el tamaño de un directorio recursivamente (suma de la longitud de todos los archivos).


public OutputStream put  ( String key ) throws FileNotFoundException  { return new xFileOutputStream ( mCache . newFile ( key ) ) ; }


private < Q , R > void recordFinalStatus  ( JobIdentifier < Q , R > jobId , JobStatus < Q , R > jobStatus ) { try { _jobStatusDAO . updateJobStatus ( jobId , jobStatus ) ; } catch ( Exception e ) { _log . error ( "Failed to record final status for job: [id={}, status={}]" , jobId , jobStatus . getStatus ( ) , e ) ; } }

Intenta registrar el estado final para un trabajo.Registre cualquier error, pero siempre regresa sin lanzar una excepción.


public FindSimilarFacesAction findSimilarFace  ( String faceId , List < String > faceIds , String faceListId , int maxNumOfCandidates ) { Validation . validateArray ( faceIds , 0 , 1000 , new ParameterValidationException ( "faceIds" , "length must be between 1 & 1000" ) ) ; Validation . validateInt ( maxNumOfCandidates , 20 , new ParameterValidationException ( "maxNumOfCandidates" , "length must be between 1 & 20" ) ) ; Validation . validateExclusive ( faceIds , faceListId , new ParameterValidationException ( "faceIds" , "must only supply either faceListId OR a faceId (pass null or empty collection)" ) ) ; return new FindSimilarFacesAction ( cognitiveContext , faceId , faceIds , faceListId , maxNumOfCandidates ) ; }

Encuentre caras de aspecto similar para una cara de consulta de una lista de caras candidatas (dadas por una lista de cara o una matriz de identificación facial) y devuelva las ID de cara similares clasificadas por la similitud.La lista de cara candidata tiene una limitación de 1000 caras.


private boolean isOn  ( long flag ) { return ( options & flag ) > 0 ; }

Prueba si la bandera dada está activada.Si la bandera no es una potencia de 2 (es decir, 3) esto prueba si la combinación de banderas está activada.


private void removeAllJointsAction  ( ) { int choice = JOptionPane . showConfirmDialog ( ControlUtilities . getParentWindow ( this ) , Messages . getString ( "menu.context.jointFolder.removeAll.warning" ) , Messages . getString ( "menu.context.jointFolder.removeAll.warning.title" ) , JOptionPane . YES_NO_CANCEL_OPTION ) ; if ( choice == JOptionPane . YES_OPTION ) { synchronized ( Simulation . LOCK ) { this . simulation . getWorld ( ) . removeAllJoints ( ) ; } this . jointFolder . removeAllChildren ( ) ; this . model . reload ( this . jointFolder ) ; } }

Muestra un mensaje de confirmación para asegurarse de que el usuario quiera continuar.<P> Si el usuario acepta, se eliminan todas las juntas.


public FST ( InputStream inStream , String encoding ) throws IOException { loadHeaderless ( inStream , encoding , false ) ; }

Cargue el FST desde el flujo de entrada dado.Asume formato de archivo heredado sin encaudado.


public MacroList ( Map < Integer , String > arg ) { this . macrosses = arg ; }

Crear nueva instancia de <tt> macrolist </ tt>.


private static int decode4to3  ( byte [ ] source , int srcOffset , byte [ ] destination , int destOffset , byte [ ] decodabet ) { if ( source [ srcOffset + 2 ] == EQUALS_SIGN ) { int outBuff = ( ( decodabet [ source [ srcOffset ] ] << 24 ) >>> 6 ) | ( ( decodabet [ source [ srcOffset + 1 ] ] << 24 ) >>> 12 ) ; destination [ destOffset ] = ( byte ) ( outBuff >>> 16 ) ; return 1 ; } else if ( source [ srcOffset + 3 ] == EQUALS_SIGN ) { int outBuff = ( ( decodabet [ source [ srcOffset ] ] << 24 ) >>> 6 ) | ( ( decodabet [ source [ srcOffset + 1 ] ] << 24 ) >>> 12 ) | ( ( decodabet [ source [ srcOffset + 2 ] ] << 24 ) >>> 18 ) ; destination [ destOffset ] = ( byte ) ( outBuff >>> 16 ) ; destination [ destOffset + 1 ] = ( byte ) ( outBuff >>> 8 ) ; return 2 ; } else { int outBuff = ( ( decodabet [ source [ srcOffset ] ] << 24 ) >>> 6 ) | ( ( decodabet [ source [ srcOffset + 1 ] ] << 24 ) >>> 12 ) | ( ( decodabet [ source [ srcOffset + 2 ] ] << 24 ) >>> 18 ) | ( ( decodabet [ source [ srcOffset + 3 ] ] << 24 ) >>> 24 ) ; destination [ destOffset ] = ( byte ) ( outBuff >> 16 ) ; destination [ destOffset + 1 ] = ( byte ) ( outBuff >> 8 ) ; destination [ destOffset + 2 ] = ( byte ) ( outBuff ) ; return 3 ; } }

Decade cuatro bytes de la matriz <var> fuente </ var> y escribe los bytes resultantes (hasta tres de ellos) a <var> destino </ var>.Las matrices de origen y destino se pueden manipular en cualquier lugar a lo largo de su longitud especificando <var> srcoffset </ var> y <var> destoffset </ var>.Este método no se verifica para asegurarse de que sus matrices sean lo suficientemente grandes para acomodar <var> srcoffset </ var> + 4 para la matriz </ var> para la matriz de <var> fuente </ var> o <var> destoffset </ var> + 3 para el <var> destino </ var> matriz.Este método devuelve el número real de bytes que se convirtieron de la codificación base64.


public AndroidAuthenticator ( Context context , Account account , String authTokenType ) { this ( context , account , authTokenType , false ) ; }


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


public boolean isSplash  ( ) { return splash ; }

Devuelve si esta poción es una poción de salpicaduras.


public boolean addEquipmentId  ( final Long equipmentId ) { if ( equipmentId != null && equipmentId > 0 ) { return equipmentIds . add ( equipmentId ) ; } return false ; }

Agrega la identificación del equipo como dependencia a esta etiqueta


public FloatColumn log1p  ( ) { FloatColumn newColumn = FloatColumn . create ( name ( ) + "[1og1p]" , size ( ) ) ; for ( float value : this ) { newColumn . add ( ( float ) Math . log1p ( value ) ) ; } return newColumn ; }

Devuelve el registro natural de los valores en esta columna, después de agregar 1 a cada uno para que los valores cero no regresen a -infinity


private void initPresenter  ( ) { this . collectionsPresenter = new CollectionsImplementor ( collectionsModel , this ) ; this . pagerPresenter = new PagerImplementor ( this ) ; this . loadPresenter = new LoadImplementor ( loadModel , this ) ; this . scrollPresenter = new ScrollImplementor ( scrollModel , this ) ; this . swipeBackPresenter = new SwipeBackImplementor ( this ) ; }


public DownloadObject ( Photo photo ) { this . photo = photo ; }


private int searchForTag  ( String aName ) { if ( mTagList == null ) return - 1 ; int i = 0 ; Iterator < Tag > it = mTagList . iterator ( ) ; while ( it . hasNext ( ) ) { Tag tag = it . next ( ) ; if ( tag . getName ( ) . equals ( aName ) ) return i ; i ++ ; } return - 1 ; }

Buscar etiqueta llamada <code> aname </ code>


@ Override public void copy  ( @ NotNull File from , @ NotNull File to ) { try { copyTemplateResource ( from , to ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }

Copia el archivo de origen dado en el archivo de destino dado (donde se permite que la fuente sea un directorio, en cuyo caso se copia el directorio completo recursivamente)


public static TileGeomResult createTileGeom  ( List < Geometry > g , Envelope tileEnvelope , GeometryFactory geomFactory , MvtLayerParams mvtLayerParams , IGeometryFilter filter ) { final Geometry tileEnvelopeGeom = geomFactory . toGeometry ( tileEnvelope ) ; final AffineTransformation t = new AffineTransformation ( ) ; final double xDiff = tileEnvelope . getWidth ( ) ; final double yDiff = tileEnvelope . getHeight ( ) ; final double xOffset = - tileEnvelope . getMinX ( ) ; final double yOffset = - tileEnvelope . getMinY ( ) ; t . translate ( xOffset , yOffset ) ; t . scale ( 1d / ( xDiff / ( double ) mvtLayerParams . extent ) , - 1d / ( yDiff / ( double ) mvtLayerParams . extent ) ) ; t . translate ( 0d , ( double ) mvtLayerParams . extent ) ; final List < Geometry > intersectedGeoms = flatIntersection ( tileEnvelopeGeom , g ) ; final List < Geometry > transformedGeoms = new ArrayList < > ( intersectedGeoms . size ( ) ) ; Geometry nextTransformGeom ; Object nextUserData ; for ( Geometry nextInterGeom : intersectedGeoms ) { nextUserData = nextInterGeom . getUserData ( ) ; nextTransformGeom = t . transform ( nextInterGeom ) ; nextTransformGeom . apply ( RoundingFilter . INSTANCE ) ; nextTransformGeom = TopologyPreservingSimplifier . simplify ( nextTransformGeom , .1d ) ; nextTransformGeom . setUserData ( nextUserData ) ; if ( filter . accept ( nextTransformGeom ) ) { transformedGeoms . add ( nextTransformGeom ) ; } } return new TileGeomResult ( intersectedGeoms , transformedGeoms ) ; }

Cree geometría recortada y luego convertida a las coordenadas de 'extensión' MVT.El resultado contiene tanto la geometría recortada (intersección) y la geometría transformada para codificar a MVT.


private Stream < MultiTraversal > addRelatesPattern  ( String start , String casting , VarAdmin rolePlayer ) { String other = rolePlayer . getName ( ) ; return Stream . of ( MultiTraversal . create ( Fragment . create ( null , EDGE_BOUNDED , start , casting ) , Fragment . create ( null , EDGE_UNBOUNDED , casting , start ) ) , MultiTraversal . create ( Fragment . create ( null , EDGE_UNIQUE , casting , other ) , Fragment . create ( null , EDGE_BOUNDED , other , casting ) ) ) ; }

Agregue algunos patrones donde esta variable sea una relación y la variable dada es un juego de rol de esa relación


public void removeViewer  ( IDirectableViewer viewer ) { viewers . remove ( viewer ) ; directorListeners . remove ( viewer ) ; ProjectManager . projectWindowChanged ( this , viewer , false ) ; if ( viewers . isEmpty ( ) ) ProjectManager . removeProject ( this ) ; }


public void resetOriginals  ( ) { mStartingStartTrim = 0 ; mStartingEndTrim = 0 ; mStartingRotation = 0 ; setStartTrim ( 0 ) ; setEndTrim ( 0 ) ; setRotation ( 0 ) ; }

Restablecer el Spinner de progreso a la rotación predeterminada, los ángulos de inicio y finalización.


protected final Object readResolve  ( ) { return this ; }

Devuelve este objeto.Este método evita que una subclase declare un método <código> ReadResolve </ código> con una implementación alternativa.


@ VisibleForTesting protected void addOMADownloadToSharedPrefs  ( String omaInfo ) { Set < String > omaDownloads = getStoredDownloadInfo ( PENDING_OMA_DOWNLOADS ) ; omaDownloads . add ( omaInfo ) ; storeDownloadInfo ( PENDING_OMA_DOWNLOADS , omaDownloads ) ; }

Agregar la información de descarga OMA a SharedPrefs.


public Object jjtAccept  ( MithraQLVisitor visitor , Object data ) { return visitor . visit ( this , data ) ; }


public static void main  ( String [ ] args ) throws Exception { List startAudio = new ArrayList ( ) ; double [ ] start = null ; List endAudio = new ArrayList ( ) ; double [ ] end = null ; List referenceAudio = new ArrayList ( ) ; int i = 0 ; String prop ; AudioFormat format = AudioSystem . getAudioInputStream ( new File ( args [ 0 ] ) ) . getFormat ( ) ; while ( ! ( prop = System . getProperty ( "audio." + ( ++ i ) , "args" ) ) . equals ( "args" ) ) { DoubleDataSource dds = null ; if ( prop . startsWith ( "silence:" ) ) { double duration = Double . valueOf ( prop . substring ( prop . indexOf ( ':' ) + 1 ) ) . doubleValue ( ) ; startAudio . add ( new AudioDoubleDataSource ( new SilenceAudioInputStream ( duration , format ) ) ) ; } else { AudioInputStream ais = AudioSystem . getAudioInputStream ( new File ( prop ) ) ; if ( ! format . equals ( ais . getFormat ( ) ) ) ais = AudioSystem . getAudioInputStream ( format , ais ) ; double [ ] signal = new AudioDoubleDataSource ( ais ) . getAllData ( ) ; startAudio . add ( new BufferedDoubleDataSource ( signal ) ) ; referenceAudio . add ( new BufferedDoubleDataSource ( signal ) ) ; } } if ( startAudio . size ( ) > 0 ) start = new SequenceDoubleDataSource ( startAudio ) . getAllData ( ) ; while ( ( prop = System . getProperty ( "audio." + ( ++ i ) ) ) != null ) { DoubleDataSource dds = null ; if ( prop . startsWith ( "silence:" ) ) { double duration = Double . valueOf ( prop . substring ( prop . indexOf ( ':' ) + 1 ) ) . doubleValue ( ) ; endAudio . add ( new AudioDoubleDataSource ( new SilenceAudioInputStream ( duration , format ) ) ) ; } else { AudioInputStream ais = AudioSystem . getAudioInputStream ( new File ( prop ) ) ; if ( ! format . equals ( ais . getFormat ( ) ) ) ais = AudioSystem . getAudioInputStream ( format , ais ) ; double [ ] signal = new AudioDoubleDataSource ( ais ) . getAllData ( ) ; endAudio . add ( new BufferedDoubleDataSource ( signal ) ) ; referenceAudio . add ( new BufferedDoubleDataSource ( signal ) ) ; } } if ( endAudio . size ( ) > 0 ) end = new SequenceDoubleDataSource ( endAudio ) . getAllData ( ) ; EnergyNormaliser powerNormaliser = null ; if ( referenceAudio . size ( ) > 0 ) { powerNormaliser = new EnergyNormaliser ( new SequenceDoubleDataSource ( referenceAudio ) ) ; System . err . println ( "Reference power: " + powerNormaliser . getReferencePower ( ) ) ; } for ( int k = 0 ; k < args . length ; k ++ ) { List result = new ArrayList ( ) ; if ( start != null ) { result . add ( new BufferedDoubleDataSource ( start ) ) ; } File inFile = new File ( args [ k ] ) ; AudioInputStream ais = AudioSystem . getAudioInputStream ( inFile ) ; if ( ! format . equals ( ais . getFormat ( ) ) ) ais = AudioSystem . getAudioInputStream ( format , ais ) ; DoubleDataSource dds = new AudioDoubleDataSource ( ais ) ; if ( powerNormaliser != null ) dds = powerNormaliser . apply ( dds ) ; result . add ( dds ) ; if ( end != null ) { result . add ( new BufferedDoubleDataSource ( end ) ) ; } DoubleDataSource resultDDS = new SequenceDoubleDataSource ( result ) ; AudioInputStream resultStream = new DDSAudioInputStream ( resultDDS , format ) ; String prefix = System . getProperty ( "prefix" , "joined_" ) ; String filename = inFile . getName ( ) ; filename = prefix + filename . substring ( 0 , filename . lastIndexOf ( '.' ) ) + ".wav" ; File outFile = new File ( filename ) ; AudioSystem . write ( resultStream , AudioFileFormat . Type . WAVE , outFile ) ; System . out . println ( "Wrote " + outFile . getPath ( ) ) ; } }

Únase a un prefijo y un sufijo a cada uno de un conjunto de archivos de audio, normalizando estos archivos de audio a la energía del prefijo y sufijo.


public TypeSpec typeSpec  ( ) { return typeSpec ( emptyList ( ) ) ; }

Crea la definición de la clase generada.


public static SM_SYSTEM_MESSAGE STR_MSG_EXCEED_MAX_ITEM_COUNT  ( int num0 ) { return new SM_SYSTEM_MESSAGE ( 1300760 , num0 ) ; }


@ Override protected Expression generateExpression  ( ) { Expression expression = null ; if ( spinner != null ) { expression = getFilterFactory ( ) . literal ( spinner . getDoubleValue ( ) ) ; } return expression ; }


public void ensureCapacity  ( int capacity ) { if ( capacity > _data . length ) { int newCap = Math . max ( _data . length << 1 , capacity ) ; short [ ] tmp = new short [ newCap ] ; System . arraycopy ( _data , 0 , tmp , 0 , _data . length ) ; _data = tmp ; } }

Cultive la matriz interna según sea necesario para acomodar el número especificado de elementos.El tamaño de los pantalones cortos de matriz en cada tamaño de tamaño a menos que la capacidad </ tt> requiera más del doble de la capacidad actual.


public static SM_SYSTEM_MESSAGE STR_EXTEND_CHAR_WAREHOUSE_SIZE_EXTENDED  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300433 , value0 ) ; }

% 0 espacios se han agregado a su almacén personal.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Silence_A_TO_B  ( String skilltarget , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200895 , skilltarget , skillcaster , skillname ) ; }

[% SkillTarget] se silenció en silencio porque [% Skillcaster] usó [% de habilidad].


public boolean optBoolean  ( String key , boolean defaultValue ) { try { return getBoolean ( key ) ; } catch ( Exception e ) { return defaultValue ; } }

Obtenga un booleano opcional asociado con una tecla.Devuelve el valor predeterminado si no hay tal clave, o si no es un booleano o la cadena "Verdadero" o "Falso" (caso insensible).


public static final Capsule scale  ( Capsule capsule , double scale ) { if ( capsule == null ) throw new NullPointerException ( Messages . getString ( "geometry.nullShape" ) ) ; if ( scale <= 0 ) throw new IllegalArgumentException ( Messages . getString ( "geometry.invalidScale" ) ) ; return new Capsule ( capsule . getLength ( ) * scale , capsule . getCapRadius ( ) * 2.0 * scale ) ; }

Devuelve una versión escalada de la cápsula dada.


@ Override protected void onCreate  ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; overridePendingTransition ( 0 , 0 ) ; Scoop . getInstance ( ) . apply ( this ) ; setContentView ( R . layout . activity_main ) ; ButterKnife . bind ( this ) ; Scoop . getInstance ( ) . bind ( this ) ; setSupportActionBar ( mAppBar ) ; }


public static Zmat ahib  ( Zutmat U , Zmat B ) throws JampackException { int i , j , k ; Z x = new Z ( ) ; U . getProperties ( ) ; B . getProperties ( ) ; if ( U . nr != U . nc ) throw new JampackException ( "Rectangular matrix." ) ; if ( U . nr != B . nr ) throw new JampackException ( "Inconsistent dimensions." ) ; Zmat X = new Zmat ( B ) ; for ( i = 0 ; i < U . nr ; i ++ ) { if ( U . re [ i ] [ i ] == 0.0 && U . im [ i ] [ i ] == 0 ) throw new JampackException ( "Zero diagonal in solving lower triangular system" ) ; for ( j = 0 ; j < B . nc ; j ++ ) { X . put0 ( i , j , x . Div ( X . get0 ( i , j ) , x . Conj ( U . get0 ( i , i ) ) ) ) ; for ( k = i + 1 ; k < U . nr ; k ++ ) { X . re [ k ] [ j ] = X . re [ k ] [ j ] - X . re [ i ] [ j ] * U . re [ i ] [ k ] - X . im [ i ] [ j ] * U . im [ i ] [ k ] ; X . im [ k ] [ j ] = X . im [ k ] [ j ] - X . im [ i ] [ j ] * U . re [ i ] [ k ] + X . re [ i ] [ j ] * U . im [ i ] [ k ] ; } } } return X ; }

Resuelve u <sup> h </ sup> x = b, donde eres un zutmat yb es un zmat.


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

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


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

ID del usuario o comunidad que posee la foto.


public static void checkCanceled  ( IProgressMonitor monitor ) { if ( monitor . isCanceled ( ) ) throw new OperationCanceledException ( ) ; }


public MersenneTwister ( int seed ) { mt = new int [ N ] ; setSeed ( seed ) ; }

Crea un nuevo generador de números aleatorios usando una sola semilla INT.


public Shape rectangle  ( double x , double y , double width , double height ) { m_rect . setFrame ( x , y , width , height ) ; return m_rect ; }

Devuelve un rectángulo de las dimensiones dadas.


@ SuppressWarnings ( "unchecked" ) protected < T > T  mathQuery ( String tableName , String [ ] columns , String [ ] conditions , Class < T > type )  { BaseUtility . checkConditionsCorrect ( conditions ) ; Cursor cursor = null ; T result = null ; try { cursor = mDatabase . query ( tableName , columns , getWhereClause ( conditions ) , getWhereArgs ( conditions ) , null , null , null ) ; if ( cursor . moveToFirst ( ) ) { Class < ? > cursorClass = cursor . getClass ( ) ; Method method = cursorClass . getMethod ( genGetColumnMethod ( type ) , int . class ) ; result = ( T ) method . invoke ( cursor , 0 ) ; } } catch ( Exception e ) { throw new DataSupportException ( e . getMessage ( ) ) ; } finally { if ( cursor != null ) { cursor . close ( ) ; } } return result ; }

Maneja la consulta de matemáticas de la tabla dada.


boolean shouldPreviousTapResolve  ( @ Nullable URL url ) { if ( isTapResolveBeyondTheLimit ( ) ) { return false ; } if ( isPromoAvailable ( ) ) { return isBasePageHTTP ( url ) ; } return true ; }

Devuelve si el toque anterior (el último contacto contado) debe resolverlo.


@ Override public void add  ( String ... identifiers ) { blacklist . addAll ( Arrays . asList ( identifiers ) ) ; }

Agrega identificadores a la estrategia de exclusión.


public static double evaluate  ( double x [ ] , double y [ ] , double z ) throws MathIllegalArgumentException { if ( verifyInterpolationArray ( x , y , false ) ) { return evaluateInternal ( x , y , z ) ; } final double [ ] xNew = new double [ x . length ] ; final double [ ] yNew = new double [ y . length ] ; System . arraycopy ( x , 0 , xNew , 0 , x . length ) ; System . arraycopy ( y , 0 , yNew , 0 , y . length ) ; MathArrays . sortInPlace ( xNew , yNew ) ; verifyInterpolationArray ( xNew , yNew , true ) ; return evaluateInternal ( xNew , yNew , z ) ; }

Evalúe el polinomio de Lagrange utilizando <A href="http://mathworld.wolfram.com/nevillesalgorithm.html"> algoritmo de Neville </a>.Se necesita o (n ^ 2) tiempo.


public FaveAddGroupQuery addGroup  ( UserActor actor , int groupId ) { return new FaveAddGroupQuery ( getClient ( ) , actor , groupId ) ; }

Agrega una comunidad a favoritos de usuario.


public boolean shouldAllowBridgeAccess  ( String url ) { for ( PluginEntry entry : this . entryMap . values ( ) ) { CordovaPlugin plugin = pluginMap . get ( entry . service ) ; if ( plugin != null ) { Boolean result = plugin . shouldAllowBridgeAccess ( url ) ; if ( result != null ) { return result ; } } } return url . startsWith ( "file://" ) ; }

Llamado cuando el WebView está solicitando que el puente EXEC () esté habilitado.


public static int [ ] transformIntArray  ( Integer [ ] source ) { int [ ] destin = new int [ source . length ] ; for ( int i = 0 ; i < source . length ; i ++ ) { destin [ i ] = source [ i ] ; } return destin ; }

Convierte la matriz entera a la matriz int


public void apply  ( NexusStreamParser np ) throws Exception { }


public static Map < String , Object > sendMailFromScreen  ( DispatchContext dctx , Map < String , ? extends Object > rServiceContext ) { Map < String , Object > serviceContext = UtilMisc . makeMapWritable ( rServiceContext ) ; LocalDispatcher dispatcher = dctx . getDispatcher ( ) ; String webSiteId = ( String ) serviceContext . remove ( "webSiteId" ) ; String bodyText = ( String ) serviceContext . remove ( "bodyText" ) ; String bodyScreenUri = ( String ) serviceContext . remove ( "bodyScreenUri" ) ; String xslfoAttachScreenLocationParam = ( String ) serviceContext . remove ( "xslfoAttachScreenLocation" ) ; String attachmentNameParam = ( String ) serviceContext . remove ( "attachmentName" ) ; List < String > xslfoAttachScreenLocationListParam = UtilGenerics . checkList ( serviceContext . remove ( "xslfoAttachScreenLocationList" ) ) ; List < String > attachmentNameListParam = UtilGenerics . checkList ( serviceContext . remove ( "attachmentNameList" ) ) ; List < String > xslfoAttachScreenLocationList = new LinkedList < String > ( ) ; List < String > attachmentNameList = new LinkedList < String > ( ) ; if ( UtilValidate . isNotEmpty ( xslfoAttachScreenLocationParam ) ) xslfoAttachScreenLocationList . add ( xslfoAttachScreenLocationParam ) ; if ( UtilValidate . isNotEmpty ( attachmentNameParam ) ) attachmentNameList . add ( attachmentNameParam ) ; if ( UtilValidate . isNotEmpty ( xslfoAttachScreenLocationListParam ) ) xslfoAttachScreenLocationList . addAll ( xslfoAttachScreenLocationListParam ) ; if ( UtilValidate . isNotEmpty ( attachmentNameListParam ) ) attachmentNameList . addAll ( attachmentNameListParam ) ; Locale locale = ( Locale ) serviceContext . get ( "locale" ) ; Map < String , Object > bodyParameters = UtilGenerics . checkMap ( serviceContext . remove ( "bodyParameters" ) ) ; if ( bodyParameters == null ) { bodyParameters = MapStack . create ( ) ; } if ( ! bodyParameters . containsKey ( "locale" ) ) { bodyParameters . put ( "locale" , locale ) ; } else { locale = ( Locale ) bodyParameters . get ( "locale" ) ; } String partyId = ( String ) serviceContext . get ( "partyId" ) ; if ( partyId == null ) { partyId = ( String ) bodyParameters . get ( "partyId" ) ; } String orderId = ( String ) bodyParameters . get ( "orderId" ) ; String custRequestId = ( String ) bodyParameters . get ( "custRequestId" ) ; bodyParameters . put ( "communicationEventId" , serviceContext . get ( "communicationEventId" ) ) ; NotificationServices . setBaseUrl ( dctx . getDelegator ( ) , webSiteId , bodyParameters ) ; String contentType = ( String ) serviceContext . remove ( "contentType" ) ; StringWriter bodyWriter = new StringWriter ( ) ; MapStack < String > screenContext = MapStack . create ( ) ; screenContext . put ( "locale" , locale ) ; ScreenRenderer screens = new ScreenRenderer ( bodyWriter , screenContext , htmlScreenRenderer ) ; screens . populateContextForService ( dctx , bodyParameters ) ; screenContext . putAll ( bodyParameters ) ; if ( bodyScreenUri != null ) { try { screens . render ( bodyScreenUri ) ; } catch ( GeneralException e ) { Debug . logError ( e , "Error rendering screen for email: " + e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendRenderingScreenEmailError" , UtilMisc . toMap ( "errorString" , e . toString ( ) ) , locale ) ) ; } catch ( IOException e ) { Debug . logError ( e , "Error rendering screen for email: " + e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendRenderingScreenEmailError" , UtilMisc . toMap ( "errorString" , e . toString ( ) ) , locale ) ) ; } catch ( SAXException e ) { Debug . logError ( e , "Error rendering screen for email: " + e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendRenderingScreenEmailError" , UtilMisc . toMap ( "errorString" , e . toString ( ) ) , locale ) ) ; } catch ( ParserConfigurationException e ) { Debug . logError ( e , "Error rendering screen for email: " + e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendRenderingScreenEmailError" , UtilMisc . toMap ( "errorString" , e . toString ( ) ) , locale ) ) ; } } boolean isMultiPart = false ; if ( UtilValidate . isNotEmpty ( xslfoAttachScreenLocationList ) ) { List < Map < String , ? extends Object > > bodyParts = new LinkedList < Map < String , ? extends Object > > ( ) ; if ( bodyText != null ) { bodyText = FlexibleStringExpander . expandString ( bodyText , screenContext , locale ) ; bodyParts . add ( UtilMisc . < String , Object > toMap ( "content" , bodyText , "type" , "text/html" ) ) ; } else { bodyParts . add ( UtilMisc . < String , Object > toMap ( "content" , bodyWriter . toString ( ) , "type" , "text/html" ) ) ; } for ( int i = 0 ; i < xslfoAttachScreenLocationList . size ( ) ; i ++ ) { String xslfoAttachScreenLocation = xslfoAttachScreenLocationList . get ( i ) ; String attachmentName = "Details.pdf" ; if ( UtilValidate . isNotEmpty ( attachmentNameList ) && attachmentNameList . size ( ) >= i ) { attachmentName = attachmentNameList . get ( i ) ; } isMultiPart = true ; try { Writer writer = new StringWriter ( ) ; MapStack < String > screenContextAtt = MapStack . create ( ) ; ScreenRenderer screensAtt = new ScreenRenderer ( writer , screenContext , foScreenRenderer ) ; screensAtt . populateContextForService ( dctx , bodyParameters ) ; screenContextAtt . putAll ( bodyParameters ) ; screensAtt . render ( xslfoAttachScreenLocation ) ; StreamSource src = new StreamSource ( new StringReader ( writer . toString ( ) ) ) ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; Fop fop = ApacheFopWorker . createFopInstance ( baos , MimeConstants . MIME_PDF ) ; ApacheFopWorker . transform ( src , null , fop ) ; baos . flush ( ) ; baos . close ( ) ; bodyParts . add ( UtilMisc . < String , Object > toMap ( "content" , baos . toByteArray ( ) , "type" , "application/pdf" , "filename" , attachmentName ) ) ; } catch ( Exception e ) { Debug . logError ( e , "Error rendering PDF attachment for email: " + e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendRenderingScreenPdfError" , UtilMisc . toMap ( "errorString" , e . toString ( ) ) , locale ) ) ; } serviceContext . put ( "bodyParts" , bodyParts ) ; } } else { isMultiPart = false ; if ( bodyText != null ) { bodyText = FlexibleStringExpander . expandString ( bodyText , screenContext , locale ) ; serviceContext . put ( "body" , bodyText ) ; } else { serviceContext . put ( "body" , bodyWriter . toString ( ) ) ; } if ( contentType != null && contentType . equalsIgnoreCase ( "text/plain" ) ) { serviceContext . put ( "contentType" , "text/plain" ) ; } else { serviceContext . put ( "contentType" , "text/html" ) ; } } String subject = ( String ) serviceContext . remove ( "subject" ) ; subject = FlexibleStringExpander . expandString ( subject , screenContext , locale ) ; Debug . logInfo ( "Expanded email subject to: " + subject , module ) ; serviceContext . put ( "subject" , subject ) ; serviceContext . put ( "partyId" , partyId ) ; if ( UtilValidate . isNotEmpty ( orderId ) ) { serviceContext . put ( "orderId" , orderId ) ; } if ( UtilValidate . isNotEmpty ( custRequestId ) ) { serviceContext . put ( "custRequestId" , custRequestId ) ; } if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "sendMailFromScreen sendMail context: " + serviceContext , module ) ; Map < String , Object > result = ServiceUtil . returnSuccess ( ) ; Map < String , Object > sendMailResult ; Boolean hideInLog = ( Boolean ) serviceContext . get ( "hideInLog" ) ; hideInLog = hideInLog == null ? false : hideInLog ; try { if ( ! hideInLog ) { if ( isMultiPart ) { sendMailResult = dispatcher . runSync ( "sendMailMultiPart" , serviceContext ) ; } else { sendMailResult = dispatcher . runSync ( "sendMail" , serviceContext ) ; } } else { if ( isMultiPart ) { sendMailResult = dispatcher . runSync ( "sendMailMultiPartHiddenInLog" , serviceContext ) ; } else { sendMailResult = dispatcher . runSync ( "sendMailHiddenInLog" , serviceContext ) ; } } } catch ( Exception e ) { Debug . logError ( e , "Error send email:" + e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendError" , UtilMisc . toMap ( "errorString" , e . toString ( ) ) , locale ) ) ; } if ( ServiceUtil . isError ( sendMailResult ) ) { return ServiceUtil . returnError ( ServiceUtil . getErrorMessage ( sendMailResult ) ) ; } result . put ( "messageWrapper" , sendMailResult . get ( "messageWrapper" ) ) ; result . put ( "body" , bodyWriter . toString ( ) ) ; result . put ( "subject" , subject ) ; result . put ( "communicationEventId" , sendMailResult . get ( "communicationEventId" ) ) ; if ( UtilValidate . isNotEmpty ( orderId ) ) { result . put ( "orderId" , orderId ) ; } if ( UtilValidate . isNotEmpty ( custRequestId ) ) { result . put ( "custRequestId" , custRequestId ) ; } return result ; }

Servicio de JavaMail que obtiene contenido corporal de un widget de pantalla definido en el registro de la tienda del producto y, si está disponible también como archivo adjunto.


private void populateCRSList  ( ) { if ( crsDataList . isEmpty ( ) ) { Hints hints = null ; for ( AuthorityFactory factory : ReferencingFactoryFinder . getCRSAuthorityFactories ( hints ) ) { String authorityCode = "" ; Citation citation = factory . getAuthority ( ) ; if ( citation != null ) { @ SuppressWarnings ( "unchecked" ) Collection < Identifier > identifierList = ( Collection < Identifier > ) citation . getIdentifiers ( ) ; authorityCode = identifierList . iterator ( ) . next ( ) . getCode ( ) ; } Set < String > codeList ; try { codeList = factory . getAuthorityCodes ( CoordinateReferenceSystem . class ) ; VendorOptionVersion vendorOptionVersion = VendorOptionManager . getInstance ( ) . getDefaultVendorOptionVersion ( ) ; for ( String code : codeList ) { String fullCode = String . format ( "%s:%s" , authorityCode , code ) ; String descriptionText = factory . getDescriptionText ( code ) . toString ( ) ; String text = String . format ( "%s - %s" , fullCode , descriptionText ) ; ValueComboBoxData value = new ValueComboBoxData ( fullCode , text , vendorOptionVersion ) ; crsDataList . add ( value ) ; crsMap . put ( fullCode , value ) ; } } catch ( NoSuchAuthorityCodeException e ) { } catch ( FactoryException e ) { ConsoleManager . getInstance ( ) . exception ( this , e ) ; } } } }


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

ID de usuario o ID de la comunidad.Use un valor negativo para designar un ID de comunidad.


public PhotosGetByIdQuery ( VkApiClient client , List < String > photos ) { super ( client , "photos.getById" , Utils . buildParametrizedType ( List . class , Photo . class ) ) ; photos ( photos ) ; }

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


public void java_lang_Object_getClass  ( SootMethod method , ReferenceVariable thisVar , ReferenceVariable returnVar , ReferenceVariable params [ ] ) { helper . assignObjectTo ( returnVar , Environment . v ( ) . getClassObject ( ) ) ; }

La variable de retorno se le asigna un objeto abstracto que representa a todas las clases (unknowclassObject) del entorno.Público Final Nativo Java.lang.Class GetClass ();


@ Override public void write  ( char [ ] chr ) { }

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


public synchronized void clearDamage  ( ) { if ( m_damageRedraw ) m_clip . reset ( ) ; }

Borra cualquier informe de regiones dañadas, lo que hace que la pantalla cree que los contenidos de la pantalla están actualizados.Si se usa incorrectamente, esto puede causar una representación inexacta.<strong> Llame a este método solo si sabe lo que está haciendo. </ strong>


private void write  ( String s ) throws SAXException  { try { output . write ( s ) ; } catch ( IOException e ) { throw new SAXException ( e ) ; } }


@ Override public String toString  ( ) { return new String ( toByteArray ( ) ) ; }

Obtiene los contenidos curiosos de este flujo de bytes como una cadena.


public void softRestart  ( ) { if ( mediaPlayer != null ) { resetPlayer ( ) ; prepare ( ) ; } }

Reinicia el jugador de la manera suave (no lanzó todos los resúmenes y devoluciones de llamada)


public BoardGetTopicsQuery preview  ( BoardGetTopicsPreview value ) { return unsafeParam ( "preview" , value ) ; }


private void updateStoreLocation  ( ) { loadFolderLoc = CarbonDataProcessorUtil . getLocalDataFolderLocation ( meta . getDatabaseName ( ) , meta . getTableName ( ) , meta . getTaskNo ( ) , meta . getPartitionID ( ) , meta . getSegmentId ( ) + "" , false ) ; }


public static void initManager  ( Context context ) { if ( mInstance == null ) { mInstance = new AssetsDatabaseManager ( context ) ; } }


public static < T > T  root ( @ NotNull ScopedFunction < T > scopedFunction ) { return push ( null , scopedFunction ) ; }

Ejecuta una función de alcance en un nuevo alcance de la raíz.


protected BoardDeleteTopicQuery topicId  ( int value ) { return unsafeParam ( "topic_id" , value ) ; }


public void updateClipPreview  ( ) { clipboardPreview . setText ( cth . getPreviewString ( ) ) ; clipboardMaxLength . setText ( "(" + cth . getMaxLength ( ) + " characters)" ) ; }

Actualiza la cadena de vista previa y el indicador de longitud.


private static void assignLeftOverBlocks  ( Map < String , List < Distributable > > outputMap , Set < Distributable > uniqueBlocks , int noOfBlocksPerNode , List < String > activeNodes ) { if ( activeNodes != null ) { for ( String activeNode : activeNodes ) { List < Distributable > blockLst = outputMap . get ( activeNode ) ; if ( null == blockLst ) { blockLst = new ArrayList < Distributable > ( CarbonCommonConstants . DEFAULT_COLLECTION_SIZE ) ; } populateBlocks ( uniqueBlocks , noOfBlocksPerNode , blockLst ) ; if ( blockLst . size ( ) > 0 ) { outputMap . put ( activeNode , blockLst ) ; } } } else { for ( Map . Entry < String , List < Distributable > > entry : outputMap . entrySet ( ) ) { List < Distributable > blockLst = entry . getValue ( ) ; populateBlocks ( uniqueBlocks , noOfBlocksPerNode , blockLst ) ; } } for ( Map . Entry < String , List < Distributable > > entry : outputMap . entrySet ( ) ) { Iterator < Distributable > blocks = uniqueBlocks . iterator ( ) ; if ( blocks . hasNext ( ) ) { Distributable block = blocks . next ( ) ; List < Distributable > blockLst = entry . getValue ( ) ; blockLst . add ( block ) ; blocks . remove ( ) ; } } }

Si se presentan los bloques de datos a la izquierda, asignan los nodos en Round Robin Way.


@ Override public boolean accept  ( File directory , String fileName ) { if ( fileName . startsWith ( "!!!" ) ) return true ; if ( ! super . accept ( directory , fileName ) ) return false ; String firstLine = Basic . getFirstLineFromFile ( new File ( fileName ) ) ; return firstLine != null && firstLine . startsWith ( "BLASTP" ) ; }


public void softAssertion  ( String message ) { fail ( ) ; logEntries . add ( new SoftAssertionFailedEntry ( message ) ) ; }

Marque la prueba como falló y registra una afirmación suave fallida.


public ByteVector putByteArray  ( final byte [ ] b , final int off , final int len ) { if ( length + len > data . length ) { enlarge ( len ) ; } if ( b != null ) { System . arraycopy ( b , off , data , length , len ) ; } length += len ; return this ; }

Pone una matriz de bytes en este vector de bytes.El vector de byte se amplía automáticamente si es necesario.


public void addHostAndIncludeSystemHost  ( String hostIdentifier ) { query . append ( " +(conhost:SYSTEM_HOST conhost:" + hostIdentifier + ")" ) ; }

Agrega un límite de host a la consulta (Dado host y host del sistema


public LUDecomposition lu  ( ) { return new LUDecomposition ( this ) ; }


public void register  ( Class < ? extends Lang > clazz ) throws Exception { if ( clazz == null ) { throw new NullPointerException ( "argument 'clazz' cannot be null" ) ; } List < String > fileExtensions = getFileExtensionsFromClass ( clazz ) ; for ( int i = fileExtensions . size ( ) ; -- i >= 0 ; ) { String ext = fileExtensions . get ( i ) ; if ( langHandlerRegistry . get ( ext ) == null ) { langHandlerRegistry . put ( ext , clazz ) ; } else { throw new Exception ( "cannot override language handler " + ext ) ; } } }

Registrar el manejador de idiomas.El Clazz no será instanciado.


public Matrix fitScreen  ( ) { Matrix save = new Matrix ( ) ; fitScreen ( save ) ; return save ; }

Restablece todo zoom y arrastre y hace que la tabla se ajuste a sus límites.


protected String normalizeAppName  ( String app ) { String app2 = app . replaceAll ( "\\W" , "" ) ; if ( app . length ( ) == 0 ) { throw new IllegalArgumentException ( "Bad app name: " + app ) ; } return app2 ; }

Normalizar el nombre de la aplicación suministrada.


public MarketEditAlbumQuery editAlbum  ( UserActor actor , int ownerId , int albumId , String title ) { return new MarketEditAlbumQuery ( getClient ( ) , actor , ownerId , albumId , title ) ; }


public static double min  ( double a , double b ) { return ( a <= b ) ? a : b ; }

Devuelve los valores más pequeños de dos <código> Double </ Code>.Es decir, el resultado es el valor más cercano al infinito negativo.Si los argumentos tienen el mismo valor, el resultado es el mismo valor.No hace ninguno de los controles especiales para NAN o -0.0F que <Code> math.max </ code> lo hace.


private Object parseElementRaw  ( Node element ) throws ParseException { ElementType type = ElementType . valueOf ( element . getNodeName ( ) . toUpperCase ( ) ) ; switch ( type ) { case INTEGER : return parseInt ( getValue ( element ) ) ; case REAL : return Double . valueOf ( getValue ( element ) ) ; case STRING : return getValue ( element ) ; case DATE : return this . m_dateFormat . parse ( getValue ( element ) ) ; case DATA : return base64decode ( getValue ( element ) ) ; case ARRAY : return parseArray ( element . getChildNodes ( ) ) ; case TRUE : return Boolean . TRUE ; case FALSE : return Boolean . FALSE ; case DICT : return parseDict ( element . getChildNodes ( ) ) ; default : throw new RuntimeException ( "Unexpected type: " + element . getNodeName ( ) ) ; } }


public static double deviation  ( Iterator tuples , String field , double mean ) { try { int count = 0 ; double sumsq = 0 ; double x ; while ( tuples . hasNext ( ) ) { x = ( ( Tuple ) tuples . next ( ) ) . getDouble ( field ) - mean ; sumsq += x * x ; ++ count ; } return Math . sqrt ( sumsq / count ) ; } catch ( Exception e ) { return Double . NaN ; } }

Obtenga la desviación estándar de un valor de datos de tupla.Si alguna tupla no tiene el campo nombrado o el campo, no es un tipo de datos numérico, se devolverá NAN.


public AppsGetCatalogQuery ( VkApiClient client , UserActor actor , int count ) { super ( client , "apps.getCatalog" , GetCatalogResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; count ( count ) ; }

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


public static S2Cap fromAxisArea  ( S2Point axis , double area ) { return new S2Cap ( axis , area / ( 2 * S2 . M_PI ) ) ; }

Crea una tapa dada su eje y su área en los esteriles.'Axis' debe ser un vector de longitud de unidad, y el 'área' debe estar entre 0 y 4 * M_PI.


public DOMStringListImpl ( ArrayList params ) { fStrings = params ; }

Construir un domstringlistimpl de un arraylist


public void scale  ( double scaleFactor ) { for ( K key : keySet ( ) ) { Counter < V > counts = getCounter ( key ) ; counts . scale ( scaleFactor ) ; } }

Escala todas las entradas en <código> contrampar </ código> por <Code> ScaleFactor </ Code>


@ Override public void createRaster  ( Symbolizer symbolizer ) { }


public boolean isApplicable  ( ) { return getViewer ( ) != null ; }

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


@ Override @ Timed public void updateBucketAssignmentCount  ( Experiment experiment , Assignment assignment , boolean countUp ) { Bucket . Label bucketLabel = assignment . getBucketLabel ( ) ; Bucket . Label bucketLabel1 = null ; String CQL ; bucketLabel1 = ( bucketLabel == null ) ? Bucket . Label . valueOf ( "NULL" ) : bucketLabel ; if ( countUp ) { CQL = "UPDATE bucket_assignment_counts SET bucket_assignment_count = bucket_assignment_count + 1 " + "WHERE experiment_id =? and bucket_label = ?" ; } else { CQL = "UPDATE bucket_assignment_counts SET bucket_assignment_count = bucket_assignment_count - 1 " + "WHERE experiment_id =? and bucket_label = ?" ; } try { driver . getKeyspace ( ) . prepareQuery ( keyspace . bucketAssignmentCountsCF ( ) ) . withCql ( CQL ) . asPreparedStatement ( ) . withByteBufferValue ( experiment . getID ( ) , ExperimentIDSerializer . get ( ) ) . withByteBufferValue ( bucketLabel1 , BucketLabelSerializer . get ( ) ) . execute ( ) ; } catch ( ConnectionException e ) { throw new RepositoryException ( "Could not update the bucket count for experiment " + experiment . getID ( ) + " bucket " + bucketLabel1 . toString ( ) , e ) ; } }

Actualiza el recuento de asignación de un experimento en una base de bucket


public boolean isDistinct  ( ) { return distinct ; }

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


public synchronized final void close  ( ) { _closed = true ; if ( _leaseReaperDaemon != null ) _leaseReaperDaemon . clean ( ) ; }

Cierra el gerente de arrendamiento despertando el hilo de demonio de reaperador de arrendamiento y espera que se muera con gracia.


public void createSite  ( ) { creteSiteButton . click ( ) ; }


public static boolean instanceOf  ( Class < ? > objectClass , String typeName , ClassLoader loader ) { Class < ? > infoClass = loadInfoClass ( typeName , loader ) ; if ( infoClass == null ) throw new IllegalArgumentException ( "Illegal type found in info map (could not load class for specified type)" ) ; return instanceOf ( objectClass , infoClass ) ; }

Pruebas Si una clase es una clase de una subclase de o implementa adecuadamente una interfaz.


public static long retryInfinitelyLong  ( final Callable < Long > callable ) { return longResponseRetryer . retryInfinitely ( callable ) ; }


void mutateField  ( Local left , String field ) { Iterator it = locals . get ( left ) . iterator ( ) ; while ( it . hasNext ( ) ) { PurityNode n = ( PurityNode ) it . next ( ) ; if ( ! n . isInside ( ) ) mutated . put ( n , field ) ; } if ( doCheck ) sanityCheck ( ) ; }

Almacenar un tipo primitivo en un campo no estático a la izquierda.field = v


public static void disable  ( String event ) { instance . disabled . add ( event ) ; log ( event + " disabled" ) ; }

Deshabilitar el evento (si está habilitado)


public boolean isApplicable  ( ) { AlignmentViewer viewer = ( AlignmentViewer ) getViewer ( ) ; return viewer . getAlignment ( ) . getNumberOfSequences ( ) > 0 ; }


private void correctErrors  ( byte [ ] codewordBytes , int numDataCodewords ) throws ChecksumException { int numCodewords = codewordBytes . length ; int [ ] codewordsInts = new int [ numCodewords ] ; for ( int i = 0 ; i < numCodewords ; i ++ ) { codewordsInts [ i ] = codewordBytes [ i ] & 0xFF ; } int numECCodewords = codewordBytes . length - numDataCodewords ; try { rsDecoder . decode ( codewordsInts , numECCodewords ) ; } catch ( ReedSolomonException ignored ) { throw ChecksumException . getChecksumInstance ( ) ; } for ( int i = 0 ; i < numDataCodewords ; i ++ ) { codewordBytes [ i ] = ( byte ) codewordsInts [ i ] ; } }

Dados los datos y los códigos de códigos de corrección de errores recibidos, posiblemente corrompidos por errores, intentos de corregir los errores en el lugar utilizando la corrección de errores de Reed-Solomon.


@ Deprecated public ShapelessRecipe removeIngredient  ( int count , Material ingredient , int rawdata ) { Iterator < ItemStack > iterator = ingredients . iterator ( ) ; while ( count > 0 && iterator . hasNext ( ) ) { ItemStack stack = iterator . next ( ) ; if ( stack . getType ( ) == ingredient && stack . getDurability ( ) == rawdata ) { iterator . remove ( ) ; count -- ; } } return this ; }

Elimina múltiples instancias de un ingrediente de la lista.Si hay menos instancias, se especifique todo, se eliminará todo.Si el valor de datos es -1, solo se eliminarán los ingredientes con un valor de datos -1.


public int order  ( ) { return soot . PhaseOptions . getInt ( options , "order" ) ; }

PEDIDO VARIABLE -.Selecciona uno de los pedidos de variables BDD con codificación dura en la paleta.


public boolean hasProgramStage  ( ) { return programStage != null ; }

Indica si este objeto tiene una etapa de programa.


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


@ Override public void publish  ( long sequence ) { sequencer . publish ( sequence ) ; }

Publicar la secuencia especificada.Esta acción marca este mensaje en particular que está disponible para ser leído.


public static SM_SYSTEM_MESSAGE STR_UNION_CHANGE_LEADER_TIMEOUT  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400588 , value0 ) ; }

% 0 se confió automáticamente con la autoridad líder de la liga.


public void clear  ( ) { entries . clear ( ) ; if ( filteredEntries != null ) { filteredEntries . clear ( ) ; } if ( entryLookup != null ) { entryLookup . clear ( ) ; } logCount = 0 ; warningCount = 0 ; errorCount = 0 ; }


public double optDouble  ( int index ) { LazyNode token = getOptionalValueToken ( index ) ; if ( token == null ) return 0.0 ; if ( token . type == LazyNode . VALUE_NULL ) return 0.0 ; return token . getDoubleValue ( cbuf ) ; }

Devuelve el doble valor almacenado en el índice dado o 0.0 si no hubo tal valor.


public InventoryException ( ) { super ( ) ; }

Crea una nueva instancia de InventoryException.


static float distance  ( Rectangle a , Rectangle b ) { float ax1 , ax2 , ay1 , ay2 ; float bx1 , bx2 , by1 , by2 ; ax1 = a . x ; ax2 = a . x + a . width ; ay1 = a . y ; ay2 = a . y + a . height ; bx1 = b . x ; bx2 = b . x + b . width ; by1 = b . y ; by2 = b . y + b . height ; float xdiff11 = Math . abs ( ax1 - bx1 ) ; float xdiff12 = Math . abs ( ax1 - bx2 ) ; float xdiff21 = Math . abs ( ax2 - bx1 ) ; float xdiff22 = Math . abs ( ax2 - bx2 ) ; float ydiff11 = Math . abs ( ay1 - by1 ) ; float ydiff12 = Math . abs ( ay1 - by2 ) ; float ydiff21 = Math . abs ( ay2 - by1 ) ; float ydiff22 = Math . abs ( ay2 - by2 ) ; float xmin = Math . min ( Math . min ( xdiff11 , xdiff12 ) , Math . min ( xdiff21 , xdiff22 ) ) ; float ymin = Math . min ( Math . min ( ydiff11 , ydiff12 ) , Math . min ( ydiff21 , ydiff22 ) ) ; boolean yOverlap = ay1 <= by2 && by1 <= ay2 ; boolean xOverlap = ax1 <= bx2 && bx1 <= ax2 ; float xReturn = ( yOverlap ) ? xmin : ( float ) Math . hypot ( xmin , ymin ) ; float yReturn = ( xOverlap ) ? ymin : ( float ) Math . hypot ( xmin , ymin ) ; return Math . min ( xReturn , yReturn ) ; }

Calcula la distancia entre dos widgets (asumido para ser rectángulos)


private void handleDoubleClick  ( DoubleClickEvent e ) { ISelection selection = e . getSelection ( ) ; if ( selection instanceof IStructuredSelection ) { IStructuredSelection structured = ( IStructuredSelection ) selection ; if ( structured . size ( ) == 1 ) { Object first = structured . getFirstElement ( ) ; if ( first instanceof ISVNRemoteFile ) { openAction . selectionChanged ( null , selection ) ; openAction . run ( null ) ; } else { treeViewer . setExpandedState ( first , ! treeViewer . getExpandedState ( first ) ) ; } } } }

El mouse se ha hecho doble clic en el árbol, realice el comportamiento apropiado.


public static long min  ( final long a , final long b ) { return ( a <= b ) ? a : b ; }


@ Override public void vendorOptionsUpdated  ( List < VersionData > vendorOptionVersionsList ) { this . vendorOptionVersionList = vendorOptionVersionsList ; updateVendorOptionPanels ( ) ; }


@ Override public void onFailure  ( ) { }

La función de devolución de llamada se invocará una API de no bloque que se ha completado sin éxito.


public Builder stepNumberBackgroundColor  ( int stepNumberBackgroundColor ) { this . stepNumberBackgroundColor = stepNumberBackgroundColor ; return this ; }

Establece el color de fondo de los círculos izquierdos.


public int size  ( ) { final Segment < K , V > [ ] segments = this . segments ; long sum = 0 ; long check = 0 ; int [ ] mc = new int [ segments . length ] ; for ( int k = 0 ; k < RETRIES_BEFORE_LOCK ; ++ k ) { check = 0 ; sum = 0 ; int mcsum = 0 ; for ( int i = 0 ; i < segments . length ; ++ i ) { sum += segments [ i ] . count ; mcsum += mc [ i ] = segments [ i ] . modCount ; } if ( mcsum != 0 ) { for ( int i = 0 ; i < segments . length ; ++ i ) { check += segments [ i ] . count ; if ( mc [ i ] != segments [ i ] . modCount ) { check = - 1 ; break ; } } } if ( check == sum ) break ; } if ( check != sum ) { sum = 0 ; for ( int i = 0 ; i < segments . length ; ++ i ) segments [ i ] . lock ( ) ; for ( int i = 0 ; i < segments . length ; ++ i ) sum += segments [ i ] . count ; for ( int i = 0 ; i < segments . length ; ++ i ) segments [ i ] . unlock ( ) ; } if ( sum > Integer . MAX_VALUE ) return Integer . MAX_VALUE ; else return ( int ) sum ; }

Devuelve el número de asignaciones de valor clave en este mapa.Si el mapa contiene más de <tt> INTEGER.MAX_VALUE </ TT> Elements, devuelve <TT> INTEGER.MAX_VALUE </ TT>.


public LockableFileWriter ( File file , Charset encoding ) throws IOException { this ( file , encoding , false , null ) ; }

Construye un archivo de bloqueo con una codificación de archivos.


public int double_set_old  ( ) { String s = soot . PhaseOptions . getString ( options , "double-set-old" ) ; if ( s . equalsIgnoreCase ( "hash" ) ) return double_set_old_hash ; if ( s . equalsIgnoreCase ( "bit" ) ) return double_set_old_bit ; if ( s . equalsIgnoreCase ( "hybrid" ) ) return double_set_old_hybrid ; if ( s . equalsIgnoreCase ( "array" ) ) return double_set_old_array ; if ( s . equalsIgnoreCase ( "heintze" ) ) return double_set_old_heintze ; if ( s . equalsIgnoreCase ( "sharedlist" ) ) return double_set_old_sharedlist ; throw new RuntimeException ( "Invalid value " + s + " of phase option double-set-old" ) ; }

Doble conjunto antiguo: seleccione Implementación de puntos: para establecer una parte antigua del doble conjunto.Seleccione una implementación para conjuntos de objetos antiguos en los puntos dobles, para configurar la implementación.Esta opción no tiene ningún efecto a menos que la implementación establezca se lleve a doble.


protected int createInstances  ( DelegateExecution execution ) { int nrOfInstances = resolveNrOfInstances ( execution ) ; if ( nrOfInstances < 0 ) { throw new ActivitiIllegalArgumentException ( "Invalid number of instances: must be non-negative integer value" + ", but was " + nrOfInstances ) ; } execution . setMultiInstanceRoot ( true ) ; setLoopVariable ( execution , NUMBER_OF_INSTANCES , nrOfInstances ) ; setLoopVariable ( execution , NUMBER_OF_COMPLETED_INSTANCES , 0 ) ; setLoopVariable ( execution , NUMBER_OF_ACTIVE_INSTANCES , nrOfInstances ) ; List < DelegateExecution > concurrentExecutions = new ArrayList < DelegateExecution > ( ) ; for ( int loopCounter = 0 ; loopCounter < nrOfInstances ; loopCounter ++ ) { DelegateExecution concurrentExecution = Context . getCommandContext ( ) . getExecutionEntityManager ( ) . createChildExecution ( ( ExecutionEntity ) execution ) ; concurrentExecution . setCurrentFlowElement ( activity ) ; concurrentExecution . setActive ( true ) ; concurrentExecution . setScope ( false ) ; concurrentExecutions . add ( concurrentExecution ) ; logLoopDetails ( concurrentExecution , "initialized" , loopCounter , 0 , nrOfInstances , nrOfInstances ) ; } for ( int loopCounter = 0 ; loopCounter < nrOfInstances ; loopCounter ++ ) { DelegateExecution concurrentExecution = concurrentExecutions . get ( loopCounter ) ; if ( concurrentExecution . isActive ( ) && ! concurrentExecution . isEnded ( ) && concurrentExecution . getParent ( ) . isActive ( ) && ! concurrentExecution . getParent ( ) . isEnded ( ) ) { setLoopVariable ( concurrentExecution , getCollectionElementIndexVariable ( ) , loopCounter ) ; executeOriginalBehavior ( concurrentExecution , loopCounter ) ; } } if ( ! concurrentExecutions . isEmpty ( ) ) { ExecutionEntity executionEntity = ( ExecutionEntity ) execution ; executionEntity . setActive ( false ) ; } return nrOfInstances ; }

Maneja el caso paralelo de desove las instancias.Creará ejecuciones infantiles en consecuencia para cada instancia necesaria.


public DefaultScrollableDataIterator ( String hQuery , SessionFactory sessionFactory , int fetchSize , int from , int size ) { super ( hQuery , sessionFactory , fetchSize , from , size ) ; }

Construye un iterador desplazable sobre la cadena de consulta de hibernación dada.


public static SM_SYSTEM_MESSAGE STR_MSG_CANNOT_POLISH_ITEM  ( DescriptionId descriptionId ) { return new SM_SYSTEM_MESSAGE ( 1401648 , descriptionId ) ; }


protected DocsGetByIdQuery docs  ( List < String > value ) { return unsafeParam ( "docs" , value ) ; }


public Builder offset  ( Point offset ) { this . offset = offset ; return this ; }

El desplazamiento de la posición emergente.Útil para controlar el ancla de la ventana emergente al abrirlo en algunas superposiciones.


@ Override protected void onDetachedFromWindow  ( ) { super . onDetachedFromWindow ( ) ; if ( mReceiver != null ) { mContext . unregisterReceiver ( mReceiver ) ; } }

Compruebe si ya se ha creado un receptor de transmisión, en caso afirmativo, no registre.


public static boolean deleteQuietly  ( File file ) { if ( file == null ) { return false ; } try { if ( file . isDirectory ( ) ) { cleanDirectory ( file ) ; } } catch ( Exception ignored ) { } try { return file . delete ( ) ; } catch ( Exception ignored ) { return false ; } }

Borra un archivo, nunca arrojando una excepción.Si el archivo es un directorio, elimínelo y todos los subdirectorios.<p /> La diferencia entre File.delete () y este método son: <ul> <li> que se eliminará un directorio no tiene que estar vacío. </ li> <li> No se lanzan excepciones cuando un archivo oEl directorio no se puede eliminar. </ li> </ ul>


private int nextToken  ( ) throws XNIException  { if ( fCurrentTokenIndex == fTokenCount ) reportError ( "XPointerElementSchemeProcessingError" , null ) ; return fTokens [ fCurrentTokenIndex ++ ] ; }

Obtiene el token en la posición actual, luego avance la posición actual por uno.<p /> Si no hay tal token siguiente, este método lanza <tt> nueva xniexception ("InvalidxPointExpression"); </ tt>.


public void back  ( ) throws JSONException  { if ( this . usePrevious || this . index <= 0 ) { throw new JSONException ( "Stepping back two steps is not supported" ) ; } this . index -= 1 ; this . character -= 1 ; this . usePrevious = true ; this . eof = false ; }

Hacer una copia de seguridad de un personaje.Esto proporciona una especie de capacidad de lookahead, de modo que puede probar un dígito o una letra antes de intentar analizar el siguiente número o identificador.


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

Construir una instancia con el mensaje especificado.


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

[% Skillcaster] Bloqueado% NUM0 DAÑO usando [% SkillName].


public static SM_SYSTEM_MESSAGE STR_BUDDYLIST_BUDDY_LOGON  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300890 , value0 ) ; }


long [ ] requestTime  ( String ntpHost , int timeoutInMillis ) throws IOException { DatagramSocket socket = null ; try { byte [ ] buffer = new byte [ NTP_PACKET_SIZE ] ; InetAddress address = InetAddress . getByName ( ntpHost ) ; DatagramPacket request = new DatagramPacket ( buffer , buffer . length , address , NTP_PORT ) ; _writeVersion ( buffer ) ; long requestTime = System . currentTimeMillis ( ) ; long requestTicks = SystemClock . elapsedRealtime ( ) ; _writeTimeStamp ( buffer , INDEX_TRANSMIT_TIME , requestTime ) ; socket = new DatagramSocket ( ) ; socket . setSoTimeout ( timeoutInMillis ) ; socket . send ( request ) ; long t [ ] = new long [ RESPONSE_INDEX_SIZE ] ; DatagramPacket response = new DatagramPacket ( buffer , buffer . length ) ; socket . receive ( response ) ; long responseTicks = SystemClock . elapsedRealtime ( ) ; t [ RESPONSE_INDEX_RESPONSE_TICKS ] = responseTicks ; long originateTime = _readTimeStamp ( buffer , INDEX_ORIGINATE_TIME ) ; long receiveTime = _readTimeStamp ( buffer , INDEX_RECEIVE_TIME ) ; long transmitTime = _readTimeStamp ( buffer , INDEX_TRANSMIT_TIME ) ; long responseTime = requestTime + ( responseTicks - requestTicks ) ; t [ RESPONSE_INDEX_ORIGINATE_TIME ] = originateTime ; t [ RESPONSE_INDEX_RECEIVE_TIME ] = receiveTime ; t [ RESPONSE_INDEX_TRANSMIT_TIME ] = transmitTime ; t [ RESPONSE_INDEX_RESPONSE_TIME ] = responseTime ; long rootDelay = _read ( buffer , INDEX_ROOT_DELAY ) ; t [ RESPONSE_INDEX_ROOT_DELAY ] = rootDelay ; if ( rootDelay > 100 ) { throw new InvalidNtpServerResponseException ( "Invalid response from NTP server. Root delay violation " + rootDelay ) ; } long rootDispersion = _read ( buffer , INDEX_ROOT_DISPERSION ) ; t [ RESPONSE_INDEX_DISPERSION ] = rootDispersion ; if ( rootDispersion > 100 ) { throw new InvalidNtpServerResponseException ( "Invalid response from NTP server. Root dispersion violation " + rootDispersion ) ; } final byte mode = ( byte ) ( buffer [ 0 ] & 0x7 ) ; if ( mode != 4 && mode != 5 ) { throw new InvalidNtpServerResponseException ( "untrusted mode value for TrueTime: " + mode ) ; } final int stratum = buffer [ 1 ] & 0xff ; t [ RESPONSE_INDEX_STRATUM ] = stratum ; if ( stratum < 1 || stratum > 15 ) { throw new InvalidNtpServerResponseException ( "untrusted stratum value for TrueTime: " + stratum ) ; } final byte leap = ( byte ) ( ( buffer [ 0 ] >> 6 ) & 0x3 ) ; if ( leap == 3 ) { throw new InvalidNtpServerResponseException ( "unsynchronized server responded for TrueTime" ) ; } long delay = Math . abs ( ( responseTime - originateTime ) - ( transmitTime - receiveTime ) ) ; if ( delay >= 100 ) { throw new InvalidNtpServerResponseException ( "Server response delay too large for comfort " + delay ) ; } long timeElapsedSinceRequest = Math . abs ( originateTime - System . currentTimeMillis ( ) ) ; if ( timeElapsedSinceRequest >= 10_000 ) { throw new InvalidNtpServerResponseException ( "Request was sent more than 10 seconds back " + timeElapsedSinceRequest ) ; } _sntpInitialized = true ; TrueLog . i ( TAG , "---- SNTP successful response from " + ntpHost ) ; cacheTrueTimeInfo ( t ) ; return t ; } catch ( Exception e ) { TrueLog . d ( TAG , "---- SNTP request failed for " + ntpHost ) ; throw e ; } finally { if ( socket != null ) { socket . close ( ) ; } } }

Envía una solicitud NTP al host dado y procesa la respuesta.


private void pruneIfNeeded  ( int neededSpace ) { if ( ( mTotalSize + neededSpace ) < mMaxCacheSizeInBytes ) { return ; } if ( VolleyLog . DEBUG ) { VolleyLog . v ( "Pruning old cache entries." ) ; } long before = mTotalSize ; int prunedFiles = 0 ; long startTime = SystemClock . elapsedRealtime ( ) ; Iterator < Map . Entry < String , CacheHeader > > iterator = mEntries . entrySet ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { Map . Entry < String , CacheHeader > entry = iterator . next ( ) ; CacheHeader e = entry . getValue ( ) ; boolean deleted = getFileForKey ( e . key ) . delete ( ) ; if ( deleted ) { mTotalSize -= e . size ; } else { VolleyLog . d ( "Could not delete cache entry for key=%s, filename=%s" , e . key , getFilenameForKey ( e . key ) ) ; } iterator . remove ( ) ; prunedFiles ++ ; if ( ( mTotalSize + neededSpace ) < mMaxCacheSizeInBytes * HYSTERESIS_FACTOR ) { break ; } } if ( VolleyLog . DEBUG ) { VolleyLog . v ( "pruned %d files, %d bytes, %d ms" , prunedFiles , ( mTotalSize - before ) , SystemClock . elapsedRealtime ( ) - startTime ) ; } }

PRURES El caché para adaptarse a la cantidad de bytes especificados.


Llamado cuando se libera el arrastre y ha excedido la distancia de desestimación del umbral.


BitSetIterator ( long [ ] bits )  { this . bits = bits ; index = 0 ; while ( index < bits . length && bits [ index ] == 0L ) index ++ ; if ( index < bits . length ) save = bits [ index ] ; }


public void testDoubleField  ( ) throws Exception  { AnObject empty = new AnObject ( ) ; AnObject full = helper . fill ( new AnObject ( ) ) ; assertTrue ( helper . areEquals ( full , full ) ) ; assertFalse ( helper . areEquals ( empty , full ) ) ; }

El campo doble siempre debe asignarse 1.0


public boolean connectsToEmergencyNumber  ( String number , String regionCode ) { return matchesEmergencyNumberHelper ( number , regionCode , true ) ; }

Devuelve VERDADERO si el número dado, exactamente como marcado, podría usarse para conectarse a un servicio de emergencia en la región dada.<P> Este método acepta una cadena, en lugar de un número de foneneno, ya que debe distinguir casos como "+1 911" y "911", donde el primero puede no conectarse a un servicio de emergencia en todos los casos, pero este último lo haría.Este método tiene en cuenta los casos en los que el número puede contener el formato, o podría tener dígitos adicionales anexados (cuando está bien hacer eso en la región especificada).


public Future execute  ( CompletionCallback < Object > callback ) { if ( callback == null ) throw new IllegalArgumentException ( "Callback cannot be null" ) ; TaskManagerImpl taskManager = new TaskManagerImpl ( this . executor_ , this . cond_ , this . task_ , callback ) ; this . executor_ . execute ( taskManager ) ; return new Future ( taskManager ) ; }

Ejecute la tarea con N reintentos, y un intervalo entre reintentos.


private void checkForControlCommand  ( ) { String command = "" ; boolean quitHandlerFired = false ; IWantToQuit quitHandler = ( currentMissionBehaviour ( ) != null ) ? currentMissionBehaviour ( ) . quitProducer : null ; command = ClientStateMachine . this . controlInputPoller . getCommand ( ) ; while ( command != null && command . length ( ) > 0 && ! quitHandlerFired ) { boolean handled = handleCommand ( command ) ; command = ClientStateMachine . this . controlInputPoller . getCommand ( ) ; if ( command != null && command . length ( ) > 0 && handled ) quitHandlerFired = ( quitHandler != null && quitHandler . doIWantToQuit ( currentMissionInit ( ) ) ) ; } }

Compruebe si se han recibido las instrucciones de control y actúe sobre ellas, de ser así.


@ Override protected FieldConfigBase createCopy  ( FieldConfigBase fieldConfigBase ) { FieldConfigColourMap copy = null ; if ( fieldConfigBase != null ) { copy = new FieldConfigColourMap ( fieldConfigBase . getCommonData ( ) ) ; } return copy ; }


public long readLong  ( ) throws IOException  { if ( ins . read ( bytes , 0 , 8 ) < 8 ) throw new IOException ( "buffer underflow" ) ; return ( ( ( long ) bytes [ 0 ] & 0xFF ) ) | ( ( ( long ) bytes [ 1 ] & 0xFF ) << 8 ) | ( ( ( long ) bytes [ 2 ] & 0xFF ) << 16 ) | ( ( ( long ) bytes [ 3 ] & 0xFF ) << 24 ) | ( ( ( long ) bytes [ 4 ] & 0xFF ) << 32 ) | ( ( ( long ) bytes [ 5 ] & 0xFF ) << 40 ) | ( ( ( long ) bytes [ 6 ] & 0xFF ) << 48 ) | ( ( ( long ) bytes [ 7 ] & 0xFF ) << 56 ) ; }


public boolean isBatchingAckTrackerEmpty  ( ) { return batchMessageAckTracker . isEmpty ( ) ; }

Método de ayuda que devuelve el estado actual de la estructura de datos utilizada para rastrear ACKS para los mensajes por lotes


public static double sumDifference  ( final double [ ] sample1 , final double [ ] sample2 ) throws MathIllegalArgumentException { int n = sample1 . length ; MathArrays . checkEqualLength ( sample1 , sample2 ) ; if ( n <= 0 ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . INSUFFICIENT_DIMENSION ) ; } double result = 0 ; for ( int i = 0 ; i < n ; i ++ ) { result += sample1 [ i ] - sample2 [ i ] ; } return result ; }

Devuelve la suma de las diferencias (firmadas) entre los elementos correspondientes de las matrices de entrada - I.E., suma (Sample1 [I] - Sample2 [I]).


public String [ ] upload_file  ( String local_filename , String file_ext_name , NameValuePair [ ] meta_list ) throws IOException , MyException { final String group_name = null ; return this . upload_file ( group_name , local_filename , file_ext_name , meta_list ) ; }

Sube archivo en el servidor de almacenamiento (por nombre de archivo)


public static boolean canUseWarehouse  ( Player player ) { for ( Restrictions restrictions : RESTRICTIONS [ RestrictionMode . canUseWarehouse . ordinal ( ) ] ) { if ( ! restrictions . canUseWarehouse ( player ) ) { return false ; } } return true ; }

Compruebe si el jugador puede usar el almacén


protected void flowThrough  ( FlowSet < SynchronizedRegionFlowPair > in , Unit unit , FlowSet < SynchronizedRegionFlowPair > out ) { Stmt stmt = ( Stmt ) unit ; copy ( in , out ) ; if ( unit instanceof AssignStmt ) { boolean isPrep = true ; Iterator < UnitValueBoxPair > uses = slu . getUsesOf ( ( Unit ) unit ) . iterator ( ) ; if ( ! uses . hasNext ( ) ) isPrep = false ; while ( uses . hasNext ( ) ) { UnitValueBoxPair use = uses . next ( ) ; Unit useStmt = use . getUnit ( ) ; if ( ! ( useStmt instanceof EnterMonitorStmt ) && ! ( useStmt instanceof ExitMonitorStmt ) ) { isPrep = false ; break ; } } if ( isPrep ) { prepUnits . add ( unit ) ; if ( optionPrintDebug ) { G . v ( ) . out . println ( "prep: " + unit . toString ( ) ) ; } return ; } } boolean addSelf = ( unit instanceof EnterMonitorStmt ) ; int nestLevel = 0 ; Iterator < SynchronizedRegionFlowPair > outIt0 = out . iterator ( ) ; while ( outIt0 . hasNext ( ) ) { SynchronizedRegionFlowPair srfp = outIt0 . next ( ) ; if ( srfp . tn . nestLevel > nestLevel && srfp . inside == true ) nestLevel = srfp . tn . nestLevel ; } RWSet stmtRead = null ; RWSet stmtWrite = null ; Iterator outIt = out . iterator ( ) ; boolean printed = false ; while ( outIt . hasNext ( ) ) { SynchronizedRegionFlowPair srfp = ( SynchronizedRegionFlowPair ) outIt . next ( ) ; CriticalSection tn = srfp . tn ; if ( tn . entermonitor == stmt ) { srfp . inside = true ; addSelf = false ; } if ( srfp . inside == true && ( tn . nestLevel == nestLevel || optionOpenNesting == false ) ) { printed = true ; if ( ! tn . units . contains ( unit ) ) tn . units . add ( unit ) ; if ( stmt . containsInvokeExpr ( ) ) { String InvokeSig = stmt . getInvokeExpr ( ) . getMethod ( ) . getSubSignature ( ) ; if ( ( InvokeSig . equals ( "void notify()" ) || InvokeSig . equals ( "void notifyAll()" ) ) && tn . nestLevel == nestLevel ) { if ( ! tn . notifys . contains ( unit ) ) tn . notifys . add ( unit ) ; if ( optionPrintDebug ) G . v ( ) . out . print ( "{x,x} " ) ; } else if ( ( InvokeSig . equals ( "void wait()" ) || InvokeSig . equals ( "void wait(long)" ) || InvokeSig . equals ( "void wait(long,int)" ) ) && tn . nestLevel == nestLevel ) { if ( ! tn . waits . contains ( unit ) ) tn . waits . add ( unit ) ; if ( optionPrintDebug ) G . v ( ) . out . print ( "{x,x} " ) ; } if ( ! tn . invokes . contains ( unit ) ) { tn . invokes . add ( unit ) ; if ( optionPrintDebug ) { stmtRead = tasea . readSet ( tn . method , stmt , tn , new HashSet ( ) ) ; stmtWrite = tasea . writeSet ( tn . method , stmt , tn , new HashSet ( ) ) ; G . v ( ) . out . print ( "{" ) ; if ( stmtRead != null ) { G . v ( ) . out . print ( ( ( stmtRead . getGlobals ( ) != null ? stmtRead . getGlobals ( ) . size ( ) : 0 ) + ( stmtRead . getFields ( ) != null ? stmtRead . getFields ( ) . size ( ) : 0 ) ) ) ; } else G . v ( ) . out . print ( "0" ) ; G . v ( ) . out . print ( "," ) ; if ( stmtWrite != null ) { G . v ( ) . out . print ( ( ( stmtWrite . getGlobals ( ) != null ? stmtWrite . getGlobals ( ) . size ( ) : 0 ) + ( stmtWrite . getFields ( ) != null ? stmtWrite . getFields ( ) . size ( ) : 0 ) ) ) ; } else G . v ( ) . out . print ( "0" ) ; G . v ( ) . out . print ( "} " ) ; } } } else if ( unit instanceof ExitMonitorStmt && tn . nestLevel == nestLevel ) { srfp . inside = false ; Stmt nextUnit = stmt ; do { nextUnit = ( Stmt ) units . getSuccOf ( nextUnit ) ; } while ( nextUnit instanceof JNopStmt ) ; if ( nextUnit instanceof ReturnStmt || nextUnit instanceof ReturnVoidStmt || nextUnit instanceof ExitMonitorStmt ) { tn . earlyEnds . add ( new Pair ( nextUnit , stmt ) ) ; } else if ( nextUnit instanceof GotoStmt ) { tn . end = new Pair ( nextUnit , stmt ) ; tn . after = ( Stmt ) ( ( GotoStmt ) nextUnit ) . getTarget ( ) ; } else if ( nextUnit instanceof ThrowStmt ) { tn . exceptionalEnd = new Pair ( nextUnit , stmt ) ; } else throw new RuntimeException ( "Unknown bytecode pattern: exitmonitor not followed by return, exitmonitor, goto, or throw" ) ; if ( optionPrintDebug ) G . v ( ) . out . print ( "[0,0] " ) ; } else { HashSet uses = new HashSet ( ) ; stmtRead = tasea . readSet ( method , stmt , tn , uses ) ; stmtWrite = tasea . writeSet ( method , stmt , tn , uses ) ; tn . read . union ( stmtRead ) ; tn . write . union ( stmtWrite ) ; if ( optionPrintDebug ) { G . v ( ) . out . print ( "[" ) ; if ( stmtRead != null ) { G . v ( ) . out . print ( ( ( stmtRead . getGlobals ( ) != null ? stmtRead . getGlobals ( ) . size ( ) : 0 ) + ( stmtRead . getFields ( ) != null ? stmtRead . getFields ( ) . size ( ) : 0 ) ) ) ; } else G . v ( ) . out . print ( "0" ) ; G . v ( ) . out . print ( "," ) ; if ( stmtWrite != null ) { G . v ( ) . out . print ( ( ( stmtWrite . getGlobals ( ) != null ? stmtWrite . getGlobals ( ) . size ( ) : 0 ) + ( stmtWrite . getFields ( ) != null ? stmtWrite . getFields ( ) . size ( ) : 0 ) ) ) ; } else G . v ( ) . out . print ( "0" ) ; G . v ( ) . out . print ( "] " ) ; } } } } if ( optionPrintDebug ) { if ( ! printed ) { G . v ( ) . out . print ( "[0,0] " ) ; } G . v ( ) . out . println ( unit . toString ( ) ) ; if ( stmt . containsInvokeExpr ( ) && stmt . getInvokeExpr ( ) . getMethod ( ) . getDeclaringClass ( ) . toString ( ) . startsWith ( "java." ) && stmtRead != null && stmtWrite != null ) { if ( stmtRead . size ( ) < 25 && stmtWrite . size ( ) < 25 ) { G . v ( ) . out . println ( "        Read/Write Set for LibInvoke:" ) ; G . v ( ) . out . println ( "Read Set:(" + stmtRead . size ( ) + ")" + stmtRead . toString ( ) . replaceAll ( "\n" , "\n        " ) ) ; G . v ( ) . out . println ( "Write Set:(" + stmtWrite . size ( ) + ")" + stmtWrite . toString ( ) . replaceAll ( "\n" , "\n        " ) ) ; } } } if ( addSelf ) { CriticalSection newTn = new CriticalSection ( false , method , nestLevel + 1 ) ; newTn . entermonitor = stmt ; newTn . beginning = ( Stmt ) units . getSuccOf ( stmt ) ; if ( stmt instanceof EnterMonitorStmt ) newTn . origLock = ( ( EnterMonitorStmt ) stmt ) . getOp ( ) ; if ( optionPrintDebug ) G . v ( ) . out . println ( "Transaction found in method: " + newTn . method . toString ( ) ) ; out . add ( new SynchronizedRegionFlowPair ( newTn , true ) ) ; Iterator < Object > prepUnitsIt = prepUnits . iterator ( ) ; while ( prepUnitsIt . hasNext ( ) ) { Unit prepUnit = ( Unit ) prepUnitsIt . next ( ) ; Iterator < UnitValueBoxPair > uses = slu . getUsesOf ( prepUnit ) . iterator ( ) ; while ( uses . hasNext ( ) ) { UnitValueBoxPair use = ( UnitValueBoxPair ) uses . next ( ) ; if ( use . getUnit ( ) == ( Unit ) unit ) { newTn . prepStmt = ( Stmt ) prepUnit ; } } } } }

Fuera es lo mismo que (en Minus Killset) más el GENSET.


public void configPlugin  ( PluginLoader pluginLoader ) { }


public ContextExtractor ( MarkovOrder markovOrder , String regexpFileName ) { this . markovOrder = markovOrder ; this . tokenConverter = new Converter ( regexpFileName ) ; }


@ Override public Element createElement  ( String tagName ) throws DOMException { if ( errorChecking && ! isXMLName ( tagName , xml11Version ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , "INVALID_CHARACTER_ERR" , null ) ; throw new DOMException ( DOMException . INVALID_CHARACTER_ERR , msg ) ; } return new ElementImpl ( this , tagName ) ; }

Método de fábrica;Crea un elemento que tiene este documento como su propietario.


protected BoardGetCommentsQueryWithExtended topicId  ( int value ) { return unsafeParam ( "topic_id" , value ) ; }


public void init$Children  ( ) { children = new ASTNode [ 4 ] ; setChild ( new List ( ) , 0 ) ; setChild ( new List ( ) , 2 ) ; setChild ( new Opt ( ) , 3 ) ; }

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


public static AnchorPane loadAnchorPane  ( final FXMLLoader loader ) { try { return ( AnchorPane ) loader . load ( ) ; } catch ( IOException e ) { throw new CriticalException ( "Cannot load FXML" , e ) ; } }

Carga un panel de anclaje con el cargador suministrado.


public static double polynomialPearsonProductMomentCorr  ( double [ ] coeffs1 , double [ ] coeffs2 ) { if ( coeffs1 == null || coeffs2 == null ) throw new NullPointerException ( "Received null argument" ) ; if ( coeffs1 . length != coeffs2 . length ) throw new IllegalArgumentException ( "Can only compare polynomials with same order" ) ; double [ ] contour1 = Polynomial . generatePolynomialValues ( coeffs1 , 25 , 0 , 1 ) ; double [ ] contour2 = Polynomial . generatePolynomialValues ( coeffs2 , 25 , 0 , 1 ) ; double meanF01 = MathUtils . mean ( contour1 ) ; double meanF02 = MathUtils . mean ( contour2 ) ; double diffF01Sum = 0 ; double diffF02Sum = 0 ; double diffProductSum = 0 ; for ( int i = 0 ; i < contour1 . length ; i ++ ) { double diffF01 = ( contour1 [ i ] - meanF01 ) ; double diffF02 = ( contour2 [ i ] - meanF02 ) ; double diffProduct = diffF01 * diffF02 ; diffF01Sum += ( diffF01 * diffF01 ) ; diffF02Sum += ( diffF02 * diffF02 ) ; diffProductSum += diffProduct ; } return 1.0 - ( diffProductSum / Math . sqrt ( diffF01Sum * diffF02Sum ) ) ; }

Calcular uno menos la correlación del momento del producto Pearson entre dos polinomios del mismo orden.Ecuación: D = 1 - CORR (F1, F2) Propósito: La distancia debe ser menor para los contornos que tienen una forma similar, por lo que las diferencias en la altura de tono o el rango de tono no deben incluirse en la medida de distancia.


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

Dibuja sombras en la parte superior e inferior del control.


public String toString  ( ) { ArrayList fields = new ArrayList ( 7 ) ; fields . add ( codebase ) ; fields . add ( policy ) ; fields . add ( classpath ) ; fields . add ( implClassName ) ; fields . add ( ( ( serverConfigArgs == null ) ? null : Arrays . asList ( serverConfigArgs ) ) ) ; fields . add ( lifeCycle ) ; fields . add ( servicePreparer ) ; return fields . toString ( ) ; }


private static void logThreadStarting  ( ) { if ( logger . isTraceEnabled ( ) ) { logger . trace ( String . format ( ThreadingUtils . STARTING_THREAD , Thread . currentThread ( ) . getId ( ) , Thread . currentThread ( ) . getName ( ) ) ) ; } }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_DispelNPCDeBuff_ME_TO_B  ( String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201250 , skilltarget , skillname ) ; }

Usted disipó los debuffs mágicos de [% SkillTarget] mediante el uso de [% de habilidad].


public boolean isZero  ( ) { if ( isNaN ( ) ) { field . setIEEEFlagsBits ( DfpField . FLAG_INVALID ) ; dotrap ( DfpField . FLAG_INVALID , LESS_THAN_TRAP , this , newInstance ( getZero ( ) ) ) ; return false ; } return ( mant [ mant . length - 1 ] == 0 ) && ! isInfinite ( ) ; }

Compruebe si la instancia es igual a cero.


public float computeAlignmentBitScore  ( int rawScore ) { return ( float ) ( ( lambda * rawScore - lnK ) / LN_2 ) ; }

calcular el puntaje de bits de un puntaje crudo


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

Devuelve el número de pares de teclas / valor en el objeto.


public void onReset  ( ) { for ( CordovaPlugin plugin : this . pluginMap . values ( ) ) { if ( plugin != null ) { plugin . onReset ( ) ; } } }

Llamado cuando la aplicación navega o se actualiza.


protected void copyBlockDataChunk  ( DimensionColumnDataChunk [ ] dimensionColumnDataChunks , int rowNumber , byte [ ] input ) { byte [ ] data = ( byte [ ] ) dimensionColumnDataChunks [ blockIndex ] . getCompleteDataChunk ( ) ; if ( null != dimensionColumnDataChunks [ blockIndex ] . getAttributes ( ) . getInvertedIndexes ( ) ) { System . arraycopy ( data , dimensionColumnDataChunks [ blockIndex ] . getAttributes ( ) . getInvertedIndexesReverse ( ) [ rowNumber ] * dimensionColumnDataChunks [ blockIndex ] . getAttributes ( ) . getColumnValueSize ( ) , input , 0 , dimensionColumnDataChunks [ blockIndex ] . getAttributes ( ) . getColumnValueSize ( ) ) ; } else { System . arraycopy ( data , rowNumber * dimensionColumnDataChunks [ blockIndex ] . getAttributes ( ) . getColumnValueSize ( ) , input , 0 , dimensionColumnDataChunks [ blockIndex ] . getAttributes ( ) . getColumnValueSize ( ) ) ; } }

El método copiará los datos del soporte del trozo del bloque al byte pasado [], este método también es utilizado por el niño


public AccessPath appendFields  ( SootField [ ] apFields , Type [ ] apFieldTypes , boolean taintSubFields ) { int offset = this . fields == null ? 0 : this . fields . length ; SootField [ ] fields = new SootField [ offset + ( apFields == null ? 0 : apFields . length ) ] ; Type [ ] fieldTypes = new Type [ offset + ( apFields == null ? 0 : apFields . length ) ] ; if ( this . fields != null ) { System . arraycopy ( this . fields , 0 , fields , 0 , this . fields . length ) ; System . arraycopy ( this . fieldTypes , 0 , fieldTypes , 0 , this . fieldTypes . length ) ; } if ( apFields != null && apFields . length > 0 ) { System . arraycopy ( apFields , 0 , fields , offset , apFields . length ) ; System . arraycopy ( apFieldTypes , 0 , fieldTypes , offset , apFieldTypes . length ) ; } return new AccessPath ( this . value , fields , baseType , fieldTypes , taintSubFields ) ; }

Aneja campos adicionales a esta ruta de acceso.


private void internalUpdateSymbol  ( Map < String , String > options , FieldIdEnum field , String key ) { FieldConfigBase fieldConfig = fieldConfigManager . get ( field ) ; if ( fieldConfig instanceof FieldConfigBoolean ) { internal_updateSymbolBooleanField ( options , field , key ) ; } else if ( fieldConfig instanceof FieldConfigInteger ) { internal_updateSymbolIntegerField ( options , field , key ) ; } else if ( fieldConfig instanceof FieldConfigDouble ) { internal_updateSymbolDoubleField ( options , field , key ) ; } else if ( fieldConfig instanceof FieldConfigEnum ) { internal_updateSymbolEnumField ( options , field , key ) ; } else { ConsoleManager . getInstance ( ) . error ( this , "Unsupported field type : " + field + " " + fieldConfig . getClass ( ) . getName ( ) ) ; } }


String nextProducerId  ( ) { return m_sessionID + "_prod_" + m_producersC . increment ( ) ; }

Crea una nueva identificación del productor de mensajes.


@ Override public boolean isDataPresent  ( ) { return false ; }

Cheques Si se presentan datos presentes.


@ NotNull public static ValidationResult validateAndroidNdk  ( @ Nullable File ndkPath , boolean includePathInMessage ) { if ( ndkPath != null ) { WizardUtils . ValidationResult wizardValidationResult = WizardUtils . validateLocation ( ndkPath . getAbsolutePath ( ) , "Android NDK location" , false , WritableCheckMode . DO_NOT_CHECK ) ; if ( ! wizardValidationResult . isOk ( ) ) { return ValidationResult . error ( wizardValidationResult . getFormattedMessage ( ) ) ; } } ValidationResult validationResult = validatedSdkPath ( ndkPath , "NDK" , false , includePathInMessage ) ; if ( validationResult . success && ndkPath != null ) { File toolchainsDirPath = new File ( ndkPath , "toolchains" ) ; if ( ! toolchainsDirPath . isDirectory ( ) ) { String message ; if ( includePathInMessage ) { message = String . format ( "The NDK at\n'%1$s'\ndoes not contain any toolchains." , ndkPath . getPath ( ) ) ; } else { message = "NDK does not contain any toolchains." ; } return ValidationResult . error ( message ) ; } } return validationResult ; }

Indica si el camino dado pertenece a un NDK de Android válido.


public static void skipFields  ( @ Nonnull DexReader reader , int count ) { for ( int i = 0 ; i < count ; i ++ ) { reader . skipUleb128 ( ) ; reader . skipUleb128 ( ) ; } }

Salta al lector durante el número especificado de estructuras de codificado.


public static boolean isExtension  ( String filename , Collection < String > extensions ) { if ( filename == null ) { return false ; } if ( extensions == null || extensions . isEmpty ( ) ) { return indexOfExtension ( filename ) == - 1 ; } String fileExt = getExtension ( filename ) ; for ( String extension : extensions ) { if ( fileExt . equals ( extension ) ) { return true ; } } return false ; }

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


public static String toString  ( URI uri , String encoding ) throws IOException { return toString ( uri , Charsets . toCharset ( encoding ) ) ; }


public String sprintf  ( String x ) throws IllegalArgumentException  { Enumeration e = vFmt . elements ( ) ; ConversionSpecification cs = null ; char c = 0 ; StringBuilder sb = new StringBuilder ( ) ; while ( e . hasMoreElements ( ) ) { cs = ( ConversionSpecification ) e . nextElement ( ) ; c = cs . getConversionCharacter ( ) ; if ( c == '\0' ) sb . append ( cs . getLiteral ( ) ) ; else if ( c == '%' ) sb . append ( "%" ) ; else sb . append ( cs . internalsprintf ( x ) ) ; } return sb . toString ( ) ; }


public void add  ( Animation animation ) { mAnimations . add ( animation ) ; }

Añadir una animación a la letra de animaciones.


@ Override public void startExternalSubset  ( XMLResourceIdentifier identifier , Augmentations augs ) throws XNIException { fReadingExternalDTD = true ; }


Enrojecimiento de este escritor no tiene efecto.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Heal_ME_TO_B  ( String skillcaster , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200521 , skillcaster , skilltarget , skillname ) ; }

[% Skillcaster] ha causado [% SkillTarget] recuperar HP a lo largo del tiempo usando [% Nombre de habilidad].


public SiteAdminPage clickYesOnConfirmationWindow  ( ) { siteAdminConfirmationWindow . confirm ( ) ; return this ; }

Haga clic en Sí en cualquier ventana de confirmación en SiteAdmin.


public static void unzipFileTo  ( String file , String dest ) throws IOException { File target = new File ( file ) ; if ( ! target . exists ( ) ) throw new IllegalArgumentException ( "Archive doesnt exist" ) ; FileInputStream fin = new FileInputStream ( target ) ; int BUFFER = 2048 ; byte data [ ] = new byte [ BUFFER ] ; if ( file . endsWith ( ".zip" ) || file . endsWith ( ".jar" ) ) { ZipInputStream zis = new ZipInputStream ( fin ) ; ZipEntry ze = zis . getNextEntry ( ) ; while ( ze != null ) { String fileName = ze . getName ( ) ; File newFile = new File ( dest + File . separator + fileName ) ; if ( ze . isDirectory ( ) ) { newFile . mkdirs ( ) ; zis . closeEntry ( ) ; ze = zis . getNextEntry ( ) ; continue ; } log . info ( "file unzip : " + newFile . getAbsoluteFile ( ) ) ; FileOutputStream fos = new FileOutputStream ( newFile ) ; int len ; while ( ( len = zis . read ( data ) ) > 0 ) { fos . write ( data , 0 , len ) ; } fos . flush ( ) ; fos . close ( ) ; zis . closeEntry ( ) ; ze = zis . getNextEntry ( ) ; } zis . close ( ) ; } else if ( file . endsWith ( ".tar" ) ) { BufferedInputStream in = new BufferedInputStream ( fin ) ; TarArchiveInputStream tarIn = new TarArchiveInputStream ( in ) ; TarArchiveEntry entry = null ; while ( ( entry = ( TarArchiveEntry ) tarIn . getNextEntry ( ) ) != null ) { log . info ( "Extracting: " + entry . getName ( ) ) ; if ( entry . isDirectory ( ) ) { File f = new File ( dest + File . separator + entry . getName ( ) ) ; f . mkdirs ( ) ; } else { int count ; FileOutputStream fos = new FileOutputStream ( dest + File . separator + entry . getName ( ) ) ; BufferedOutputStream destStream = new BufferedOutputStream ( fos , BUFFER ) ; while ( ( count = tarIn . read ( data , 0 , BUFFER ) ) != - 1 ) { destStream . write ( data , 0 , count ) ; } destStream . flush ( ) ; ; IOUtils . closeQuietly ( destStream ) ; } } tarIn . close ( ) ; } else if ( file . endsWith ( ".tar.gz" ) || file . endsWith ( ".tgz" ) ) { BufferedInputStream in = new BufferedInputStream ( fin ) ; GzipCompressorInputStream gzIn = new GzipCompressorInputStream ( in ) ; TarArchiveInputStream tarIn = new TarArchiveInputStream ( gzIn ) ; TarArchiveEntry entry = null ; while ( ( entry = ( TarArchiveEntry ) tarIn . getNextEntry ( ) ) != null ) { log . info ( "Extracting: " + entry . getName ( ) ) ; if ( entry . isDirectory ( ) ) { File f = new File ( dest + File . separator + entry . getName ( ) ) ; f . mkdirs ( ) ; } else { int count ; FileOutputStream fos = new FileOutputStream ( dest + File . separator + entry . getName ( ) ) ; BufferedOutputStream destStream = new BufferedOutputStream ( fos , BUFFER ) ; while ( ( count = tarIn . read ( data , 0 , BUFFER ) ) != - 1 ) { destStream . write ( data , 0 , count ) ; } destStream . flush ( ) ; IOUtils . closeQuietly ( destStream ) ; } } tarIn . close ( ) ; } else if ( file . endsWith ( ".gz" ) ) { GZIPInputStream is2 = new GZIPInputStream ( fin ) ; File extracted = new File ( target . getParent ( ) , target . getName ( ) . replace ( ".gz" , "" ) ) ; if ( extracted . exists ( ) ) extracted . delete ( ) ; extracted . createNewFile ( ) ; OutputStream fos = FileUtils . openOutputStream ( extracted ) ; IOUtils . copyLarge ( is2 , fos ) ; is2 . close ( ) ; fos . flush ( ) ; fos . close ( ) ; } }

Extrae archivos al destino especificado.


public static IQueryResultSet < IEntryPacket > aggregate  ( QueryTemplatePacket template , AggregationSet aggregationSet , IJSpace space , Transaction txn , int modifiers ) throws SQLException { AggregationResult aggregateResult = null ; try { aggregateResult = ( ( ISpaceProxy ) space ) . aggregate ( template , aggregationSet , txn , modifiers ) ; return convertAggregationResult ( aggregationSet , aggregateResult ) ; } catch ( Exception e ) { throw new SQLException ( e . getMessage ( ) , e ) ; } }


public void init$Children  ( ) { children = new ASTNode [ 1 ] ; }

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


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

Crea una nueva instancia de par, dados dos objetos.


public static HttpResponse execute  ( HttpMethod method , String targetUrl , String body , Map < String , String > headers , SSLSocketFactory sslSocketFactory ) throws IOException , KeyStoreException , NoSuchAlgorithmException , CertificateException , KeyManagementException { URL url = new URL ( targetUrl ) ; HttpURLConnection conn = ( HttpURLConnection ) url . openConnection ( ) ; setRequestMethodUsingWorkaroundForJREBug ( conn , method . name ( ) ) ; Operation op = new Operation ( ) . addPragmaDirective ( Operation . PRAGMA_DIRECTIVE_FORCE_INDEX_UPDATE ) ; conn . addRequestProperty ( Operation . PRAGMA_HEADER , op . getRequestHeader ( Operation . PRAGMA_HEADER ) ) ; for ( Entry < String , String > entry : headers . entrySet ( ) ) { conn . addRequestProperty ( entry . getKey ( ) , entry . getValue ( ) ) ; } Set < String > userHeaders = headers . keySet ( ) . stream ( ) . map ( null ) . collect ( Collectors . toSet ( ) ) ; if ( ! userHeaders . contains ( Operation . CONTENT_TYPE_HEADER . toUpperCase ( ) ) ) { conn . addRequestProperty ( "Content-type" , Operation . MEDIA_TYPE_APPLICATION_JSON ) ; } if ( ! userHeaders . contains ( Operation . ACCEPT_HEADER . toUpperCase ( ) ) ) { conn . addRequestProperty ( "Accept" , Operation . MEDIA_TYPE_APPLICATION_JSON ) ; } if ( sslSocketFactory != null && UriUtils . HTTPS_SCHEME . equals ( url . getProtocol ( ) ) ) { HttpsURLConnection httpsConn = ( HttpsURLConnection ) conn ; httpsConn . setHostnameVerifier ( ALLOW_ALL_HOSTNAME_VERIFIER ) ; httpsConn . setSSLSocketFactory ( sslSocketFactory ) ; } else if ( UriUtils . HTTPS_SCHEME . equals ( url . getProtocol ( ) ) ) { throw new IllegalArgumentException ( "Https protocol not supported without sslSocketFactory" ) ; } if ( body != null ) { conn . setDoOutput ( true ) ; DataOutputStream dataOut = new DataOutputStream ( conn . getOutputStream ( ) ) ; dataOut . writeBytes ( body ) ; dataOut . flush ( ) ; dataOut . close ( ) ; } BufferedReader in = null ; try { try { in = new BufferedReader ( new InputStreamReader ( conn . getInputStream ( ) , Utils . CHARSET ) ) ; } catch ( Throwable e ) { InputStream errorStream = conn . getErrorStream ( ) ; if ( errorStream != null ) { in = new BufferedReader ( new InputStreamReader ( errorStream , Utils . CHARSET ) ) ; } } StringBuilder stringResponseBuilder = new StringBuilder ( ) ; HttpResponse httpResponse = new HttpResponse ( ) ; httpResponse . statusCode = conn . getResponseCode ( ) ; if ( in == null ) { return validateResponse ( httpResponse ) ; } do { String line = in . readLine ( ) ; if ( line == null ) { break ; } stringResponseBuilder . append ( line ) ; } while ( true ) ; httpResponse . responseBody = stringResponseBuilder . toString ( ) ; httpResponse . headers = conn . getHeaderFields ( ) ; return validateResponse ( httpResponse ) ; } finally { if ( in != null ) { in . close ( ) ; } } }


private void listAssignmentsRec  ( PhyloTree tree , Node v , int level , SortedMap < Integer , Integer > level2count , Map < String , Integer > rank2count ) { int taxonId = ( Integer ) ( tree . getInfo ( v ) ) ; if ( taxonId == IdMapper . UNASSIGNED_ID || taxonId == IdMapper . NOHITS_ID || taxonId == IdMapper . LOW_COMPLEXITY_ID ) { level2count . put ( taxonId , ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) ; } else { final Integer count = level2count . get ( level ) ; if ( count == null ) level2count . put ( level , ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) ; else level2count . put ( level , count + ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) ; final int taxLevel = TaxonomyData . getTaxonomicRank ( taxonId ) ; if ( taxLevel != 0 ) { String rank = TaxonomicLevels . getName ( taxLevel ) ; if ( rank != null ) { final Integer rankCount = rank2count . get ( rank ) ; if ( rankCount == null ) rank2count . put ( rank , ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) ; else rank2count . put ( rank , rankCount + ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) ; } } if ( v . getOutDegree ( ) == 0 ) { level = - 3 ; if ( count == null ) level2count . put ( level , ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) ; else level2count . put ( level , count + ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) ; } else { for ( Edge e = v . getFirstOutEdge ( ) ; e != null ; e = v . getNextOutEdge ( e ) ) { listAssignmentsRec ( tree , e . getTarget ( ) , level + 1 , level2count , rank2count ) ; } } } }


@ Override public boolean markSupported  ( ) { return true ; }

Mark es compatible (devuelve VERDADERO).


public static boolean IsMaltOrDiamondSAMFile  ( File file ) { String suffix = Basic . getFileSuffix ( Basic . getFileNameWithoutZipOrGZipSuffix ( file . getName ( ) ) ) ; if ( suffix == null ) return false ; if ( ! suffix . toLowerCase ( ) . equals ( ".sam" ) ) return false ; try { try ( FileInputIterator it = new FileInputIterator ( file . getPath ( ) ) ) { while ( it . hasNext ( ) ) { String aLine = it . next ( ) ; if ( aLine . startsWith ( "@" ) ) { if ( aLine . contains ( "PN:MALT" ) || ( aLine . contains ( "PN:DIAMOND" ) ) ) return true ; } else { return false ; } } } } catch ( IOException e ) { } return false ; }

¿El archivo dado es un archivo SAM de malta o diamante?


protected MessagesEditChatQuery title  ( String value ) { return unsafeParam ( "title" , value ) ; }