public static void redirectToPreds  ( Body body , Unit remove ) { boolean debug = Options . v ( ) . debug ( ) ; if ( body instanceof ShimpleBody ) debug |= ( ( ShimpleBody ) body ) . getOptions ( ) . debug ( ) ; Chain < Unit > units = body . getUnits ( ) ; List < UnitBox > boxesPointingToThis = remove . getBoxesPointingToThis ( ) ; if ( boxesPointingToThis . isEmpty ( ) ) return ; for ( UnitBox pointer : boxesPointingToThis ) { if ( ! pointer . isBranchTarget ( ) ) break ; } Set < Unit > preds = new HashSet < Unit > ( ) ; Set < PhiExpr > phis = new HashSet < PhiExpr > ( ) ; if ( ! remove . equals ( units . getFirst ( ) ) ) { Unit possiblePred = ( Unit ) units . getPredOf ( remove ) ; if ( possiblePred . fallsThrough ( ) ) preds . add ( possiblePred ) ; } for ( Unit unit : units ) { for ( UnitBox targetBox : unit . getUnitBoxes ( ) ) { if ( remove . equals ( targetBox . getUnit ( ) ) ) { if ( targetBox . isBranchTarget ( ) ) preds . add ( unit ) ; else { PhiExpr phiExpr = Shimple . getPhiExpr ( unit ) ; if ( phiExpr != null ) phis . add ( phiExpr ) ; } } } } if ( phis . size ( ) == 0 ) { if ( debug ) G . v ( ) . out . println ( "Warning: Orphaned UnitBoxes to " + remove + "? Shimple.redirectToPreds is giving up." ) ; return ; } if ( preds . size ( ) == 0 ) { if ( debug ) G . v ( ) . out . println ( "Warning: Shimple.redirectToPreds couldn't find any predecessors for " + remove + " in " + body . getMethod ( ) + "." ) ; if ( ! remove . equals ( units . getFirst ( ) ) ) { Unit pred = ( Unit ) units . getPredOf ( remove ) ; if ( debug ) G . v ( ) . out . println ( "Warning: Falling back to immediate chain predecessor: " + pred + "." ) ; preds . add ( pred ) ; } else if ( ! remove . equals ( units . getLast ( ) ) ) { Unit succ = ( Unit ) units . getSuccOf ( remove ) ; if ( debug ) G . v ( ) . out . println ( "Warning: Falling back to immediate chain successor: " + succ + "." ) ; preds . add ( succ ) ; } else throw new RuntimeException ( "Assertion failed." ) ; } Iterator < PhiExpr > phiIt = phis . iterator ( ) ; while ( phiIt . hasNext ( ) ) { PhiExpr phiExpr = phiIt . next ( ) ; ValueUnitPair argBox = phiExpr . getArgBox ( remove ) ; if ( argBox == null ) throw new RuntimeException ( "Assertion failed." ) ; Value arg = argBox . getValue ( ) ; phiExpr . removeArg ( argBox ) ; Iterator < Unit > predsIt = preds . iterator ( ) ; while ( predsIt . hasNext ( ) ) { Unit pred = predsIt . next ( ) ; phiExpr . addArg ( arg , pred ) ; } } }

Si está eliminando una unidad de una cadena unitaria que contiene PHIEXPR, es posible que desee llamar a esta función de utilidad para actualizar cualquier puntero PHIEXPR a la unidad para que apunte a los predecesor (s) de la unidad.Esta función no modificará las cajas de unidades de "Branch Target".<p> Normalmente, no debe tener que llamar directamente a esta función, ya que los parches se atienden a la implementación interna de Shimple de PatchingChain.


public static final String digitsAndPlusOnly  ( Matcher matcher ) { StringBuilder buffer = new StringBuilder ( ) ; String matchingRegion = matcher . group ( ) ; for ( int i = 0 , size = matchingRegion . length ( ) ; i < size ; i ++ ) { char character = matchingRegion . charAt ( i ) ; if ( character == '+' || Character . isDigit ( character ) ) { buffer . append ( character ) ; } } return buffer . toString ( ) ; }

Método de conveniencia para devolver solo los dígitos y los signos más en la cadena correspondiente.


private void asyncOpenLedger  ( LedgerDescriptor ledgerDesc , AsyncCallback . OpenCallback callback , Object ctx ) { try { if ( ! ledgerDesc . isFenced ( ) ) { bkc . get ( ) . asyncOpenLedgerNoRecovery ( ledgerDesc . getLedgerId ( ) , BookKeeper . DigestType . CRC32 , digestpw . getBytes ( UTF_8 ) , callback , ctx ) ; } else { bkc . get ( ) . asyncOpenLedger ( ledgerDesc . getLedgerId ( ) , BookKeeper . DigestType . CRC32 , digestpw . getBytes ( UTF_8 ) , callback , ctx ) ; } } catch ( IOException ace ) { callback . openComplete ( BKException . Code . BookieHandleNotAvailableException , null , ctx ) ; } }

Abra el libro mayor dado <i> LedgerDesc </ i>.


@ Override public IntegerDistribution makeDistribution  ( ) { return new PascalDistribution ( 10 , 0.70 ) ; }

Crea la instancia de distribución discreta por defecto para usar en las pruebas.


public static void resetDimensionConstants  ( Context context ) { Resources res = context . getResources ( ) ; sDpToPx = res . getDisplayMetrics ( ) . density ; sPxToDp = 1.0f / sDpToPx ; sCompositorButtonSlop = res . getDimension ( R . dimen . compositor_button_slop ) * sPxToDp ; }

Función auxiliar que recoge las constantes estáticas de los valores / dimens.xml.


public AndFileFilter ( IOFileFilter filter1 , IOFileFilter filter2 ) { if ( filter1 == null || filter2 == null ) { throw new IllegalArgumentException ( "The filters must not be null" ) ; } this . fileFilters = new ArrayList < IOFileFilter > ( 2 ) ; addFileFilter ( filter1 ) ; addFileFilter ( filter2 ) ; }

Construye un nuevo filtro de archivos que y es el resultado de otros dos filtros.


public static void installTinker  ( ApplicationLike appLike ) { if ( isInstalled ) { TinkerLog . w ( TAG , "install tinker, but has installed, ignore" ) ; return ; } LoadReporter loadReporter = new SampleLoadReporter ( appLike . getApplication ( ) ) ; PatchReporter patchReporter = new SamplePatchReporter ( appLike . getApplication ( ) ) ; PatchListener patchListener = new SamplePatchListener ( appLike . getApplication ( ) ) ; AbstractPatch upgradePatchProcessor = new UpgradePatch ( ) ; AbstractPatch repairPatchProcessor = new RepairPatch ( ) ; TinkerInstaller . install ( appLike , loadReporter , patchReporter , patchListener , SampleResultService . class , upgradePatchProcessor , repairPatchProcessor ) ; isInstalled = true ; }

Puedes especificar toda clase que quieras.¡A veces, solo puede instalar Tinker en algún proceso que desee!


public PhotosSaveOwnerPhotoQuery ( VkApiClient client , UserActor actor ) { super ( client , "photos.saveOwnerPhoto" , SaveOwnerPhotoResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public AdsGetSuggestionsQueryWithSchools ( VkApiClient client , UserActor actor , AdsGetSuggestionsSection section ) { super ( client , "ads.getSuggestions" , Utils . buildParametrizedType ( List . class , TargSuggestionsSchools . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; section ( section ) ; }


public GSMessageConsumerImpl ( GSSessionImpl session , Destination dest , String consumerID , String subsriptionName , String selector , boolean noLocal ) throws JMSException { if ( session == null ) { throw new IllegalArgumentException ( "Argument 'session' is null" ) ; } if ( dest == null ) { throw new InvalidDestinationException ( "Argument 'dest' is null" ) ; } m_session = session ; m_dest = dest ; m_destName = m_dest . toString ( ) ; m_consumerID = consumerID ; m_durableSubscriptionName = subsriptionName ; m_selector = selector ; m_space = m_session . getConn ( ) . getSpace ( ) ; connectionKey = m_session . getConn ( ) . getCnxKey ( ) ; m_noLocal = noLocal ; initTemplates ( ) ; try { m_space . snapshot ( m_jmsMessageTemplate ) ; } catch ( RemoteException re ) { JMSException e = new JMSException ( "RemoteException while space.snapshot(): " , re . toString ( ) ) ; e . setLinkedException ( re ) ; throw e ; } catch ( Exception e ) { JMSException jmse = new JMSException ( "Exception while space.snapshot(): " , e . toString ( ) ) ; jmse . setLinkedException ( e ) ; throw jmse ; } if ( m_dest instanceof GSTopicImpl ) { m_isQueue = false ; onMessageEventListener = new OnMessageEventListener ( ) ; try { createEventSessionConfig ( ) ; } catch ( IOException e ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , toString2 ( ) + "IOException inside GSMessageConsumerImpl: Failed to create DataEventSession configuration" , e ) ; } JMSException e1 = new JMSException ( "Failed to create DataEventSession configuration: " + e . toString ( ) ) ; e1 . setLinkedException ( e ) ; throw e1 ; } registerToNotifications ( ) ; } else if ( m_dest instanceof GSQueueImpl ) { m_isQueue = true ; } if ( m_dest instanceof GSTemporaryQueueImpl ) { String tempQueueSrcID = ( ( GSTemporaryQueueImpl ) m_dest ) . getSourceID ( ) ; if ( StringsUtils . isEmpty ( tempQueueSrcID ) || ! tempQueueSrcID . equals ( m_session . getSessionID ( ) ) ) throw new JMSSecurityException ( "Forbidden consumer with SessionID " + m_session . getSessionID ( ) + " on this " + "temporary queue with the session src id  " + tempQueueSrcID + " |  queueName: " + m_destName ) ; } else if ( m_dest instanceof GSTemporaryTopicImpl ) { String tempTopicSrcID = ( ( GSTemporaryTopicImpl ) m_dest ) . getSourceID ( ) ; if ( StringsUtils . isEmpty ( tempTopicSrcID ) || ! tempTopicSrcID . equals ( m_session . getSessionID ( ) ) ) throw new JMSSecurityException ( "Forbidden consumer with SessionID " + m_session . getSessionID ( ) + " on this " + "temporary topic with the session src id  " + tempTopicSrcID + " |  topicName: " + m_destName ) ; m_isQueue = false ; } }


@ DELETE @ Path ( "{experimentID}/buckets/{bucketLabel}" ) @ Produces ( APPLICATION_JSON ) @ ApiOperation ( value = "Delete a bucket in an experiment" , notes = "Can only delete a bucket for experiment that is in DRAFT state.  The default call is " + "safe to use, but other than that please only delete buckets which you have created." ) @ Timed public Response deleteBucket  ( @ PathParam ( "experimentID" ) @ ApiParam ( value = "Experiment ID" ) final Experiment . ID experimentID , @ PathParam ( "bucketLabel" ) @ ApiParam ( value = "Bucket Label" ) final Bucket . Label bucketLabel , @ HeaderParam ( AUTHORIZATION ) @ ApiParam ( value = EXAMPLE_AUTHORIZATION_HEADER , required = true ) final String authorizationHeader ) { Username userName = authorization . getUser ( authorizationHeader ) ; Experiment experiment = experiments . getExperiment ( experimentID ) ; if ( experiment == null ) { throw new ExperimentNotFoundException ( experimentID ) ; } authorization . checkUserPermissions ( userName , experiment . getApplicationName ( ) , Permission . DELETE ) ; UserInfo user = authorization . getUserInfo ( userName ) ; buckets . deleteBucket ( experimentID , bucketLabel , user ) ; return httpHeader . headers ( NO_CONTENT ) . build ( ) ; }

Si el experimento está en estado "Borrador", elimina de inmediato el cubo especificado.De lo contrario, devuelve un error.


public CrossesExtended ( ) { super ( null  , null ) ; }


public void doGet  ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { this . doPost ( request , response ) ; }

El método Doget del servlet.<br> Este método se llama cuando un formulario tiene su método de valor de etiqueta es igual a obtener.


public final void finalize  ( ) { this . fFileController . finalize ( ) ; }


public static int addAndCheck  ( int x , int y ) { long s = ( long ) x + ( long ) y ; if ( s < Integer . MIN_VALUE || s > Integer . MAX_VALUE ) { throw new ArithmeticException ( "overflow: add" ) ; } return ( int ) s ; }

Añadir dos enteros, comprobando el desbordamiento.


public static < T > String  join ( List < T > list , String separator , T nullReplacement )  { if ( list == null ) { return null ; } List < T > objects = new ArrayList < > ( list ) ; if ( nullReplacement != null ) { Collections . replaceAll ( objects , null , nullReplacement ) ; } return StringUtils . join ( objects , separator ) ; }

Se une a los elementos de la matriz proporcionada en una sola cadena que contiene la lista proporcionada de elementos.


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

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


public void showUpdateInfobarIfNecessary  ( ChromeActivity activity ) { if ( mMustShowInfoBar ) showUpdateInfoBar ( activity ) ; }

Muestra el infobar si necesita ser mostrado.


public static FunktionConfig load  ( ) throws IOException  { return findFromFolder ( new File ( "." ) ) ; }

Intenta cargar el archivo de configuración desde el directorio actual


public void dragAndDrop  ( ConstraintWidget widget , int x , int y ) { mMouseMode = MouseMode . MOVE ; mWidgetMotion . dragWidget ( new Point ( x , y ) , new Selection . Element ( widget ) , x , y , true , isShiftDown ( ) , mViewTransform ) ; }


public Timer ( String threadName ) { super ( threadName ) ; this . setDaemon ( true ) ; }


public static SM_SYSTEM_MESSAGE STR_DUEL_START_BROADCAST  ( String value0 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1300136 , value0 , value1 ) ; }


public static SM_SYSTEM_MESSAGE STR_MSG_ITEM_SEAL_WARNING_START  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400809 , value0 ) ; }

No puede comercializar, mejorar, destruir, vender, extraer o extraer elementos sellados, y se necesita% 0 días para desalojarlos por completo.


private void run_implementation_  ( PushProcessor p ) throws Exception { final Map < GroupName , Alert > alerts = registry_ . getCollectionAlerts ( ) ; final TimeSeriesCollection tsdata = registry_ . getCollectionData ( ) ; p . accept ( tsdata , unmodifiableMap ( alerts ) , registry_ . getFailedCollections ( ) ) ; }

Ejecute la implementación de la carga de los valores y alertas.


private void addHullFixtureAction  ( ) { TreePath path = this . tree . getSelectionPath ( ) ; if ( path != null ) { DefaultMutableTreeNode node = ( DefaultMutableTreeNode ) path . getLastPathComponent ( ) ; if ( node . getUserObject ( ) instanceof SandboxBody ) { BodyFixture fixture = AddConvexHullFixtureDialog . show ( ControlUtilities . getParentWindow ( this ) ) ; SandboxBody body = ( SandboxBody ) node . getUserObject ( ) ; if ( fixture != null ) { synchronized ( Simulation . LOCK ) { body . addFixture ( fixture ) ; if ( ! body . isMassExplicit ( ) ) { body . updateMass ( ) ; } } DefaultMutableTreeNode fixtureNode = new DefaultMutableTreeNode ( fixture ) ; this . model . insertNodeInto ( fixtureNode , node , node . getChildCount ( ) ) ; this . tree . expandPath ( new TreePath ( fixtureNode . getPath ( ) ) . getParentPath ( ) ) ; } } } }

Muestra el cuadro de diálogo Agregar nuevo accesorio de casco convexo.<p> Si el usuario hace clic en el botón Agregar, la forma y el accesorio se crean y se agregan al cuerpo seleccionado.


public static LineSymbolizer createDefaultLineSymbolizer  ( ) { Stroke stroke = styleFactory . createStroke ( ff . literal ( DEFAULT_LINE_COLOUR ) , ff . literal ( 2 ) ) ; LineSymbolizer lineSymbolizer = styleFactory . createLineSymbolizer ( ) ; lineSymbolizer . setStroke ( stroke ) ; return lineSymbolizer ; }

Crea el simbolizador de línea predeterminado.


private boolean isValidSelection  ( String selection ) { return isValidSelection ( selection , getBaseContentView ( ) ) ; }

Determina si la selección dada es válida o no.


public synchronized void removeAll  ( ) { list . clear ( ) ; }

Elimina todos los artículos de esta salida.


protected void postProcessEntities  ( List < T > entityList ) { }

Anular a las entidades de proceso después de que se haya recuperado del almacenamiento y antes de que se devuelva a la vista.Las entidades son seguras nulas.


@ Override public WeibullDistribution makeDistribution  ( ) { return new WeibullDistribution ( 1.2 , 2.1 ) ; }

Crea la instancia de distribución continua predeterminada para usar en las pruebas.


public static boolean checkIfRightExpressionRequireEvaluation  ( Expression expression ) { if ( expression . getFilterExpressionType ( ) == ExpressionType . UNKNOWN || ! ( expression instanceof LiteralExpression ) && ! ( expression instanceof ListExpression ) ) { return true ; } for ( Expression child : expression . getChildren ( ) ) { if ( checkIfRightExpressionRequireEvaluation ( child ) ) { return true ; } } return false ; }

Este método verificará si una expresión dada contiene una expresión de columna recursivamente.


public void addGeneratedSourceFolder  ( @ NotNull String path ) { File directory = myFileStructure . createProjectDir ( path ) ; myGeneratedSourceFolders . add ( directory ) ; }

Agrega la ruta dada a la lista de directorios de origen generados.También crea el directorio en el sistema de archivos.


public static < V > boolean addListNotNullValue  ( List < V > sourceList , V value ) { return ( sourceList != null && value != null ) ? sourceList . add ( value ) : false ; }


public static boolean isUnsignedNumber  ( String string ) { String s = string . trim ( ) ; if ( s . length ( ) < 1 ) return false ; if ( s . charAt ( 0 ) != '+' && s . charAt ( 0 ) != '-' ) { double value = 0 ; try { value = Double . parseDouble ( s ) ; } catch ( NumberFormatException e ) { return false ; } return true ; } return false ; }

Decir si la cadena contiene un número sin firmar.


@ Override public void emptyElement  ( QName element , XMLAttributes attributes , Augmentations augs ) throws XNIException { startElement ( element , attributes , augs ) ; endElement ( element , augs ) ; }


@ Override public synchronized String format  ( LogRecord record ) { StringBuffer text = new StringBuffer ( ) ; setArgsWithRecordData ( record ) ; messageFormat . format ( _args , text , null ) ; Throwable thrown = record . getThrown ( ) ; if ( thrown != null ) { Logger exceptionLogger = Logger . getLogger ( com . gigaspaces . logger . Constants . LOGGER_EXCEPTIONS ) ; if ( exceptionLogger . isLoggable ( record . getLevel ( ) ) || thrown instanceof RuntimeException ) { try { StringWriter sw = new StringWriter ( ) ; PrintWriter pw = new PrintWriter ( sw ) ; thrown . printStackTrace ( pw ) ; pw . close ( ) ; text . append ( "; Caused by: " ) . append ( sw . toString ( ) ) ; } catch ( Exception ex ) { text . append ( "; Caused by: " ) . append ( record . getThrown ( ) . toString ( ) ) ; text . append ( " - Unable to parse stack trace; Caught: " ) . append ( ex ) ; } } else { text . append ( "; Caused by: " ) . append ( record . getThrown ( ) . toString ( ) ) ; } } text . append ( lineSeparator ) ; return text . toString ( ) ; }


@ Override public String toString  ( ) { StringBuilder sb = new StringBuilder ( ) ; if ( hostIp != null ) { sb . append ( hostIp ) ; sb . append ( ":" ) ; } if ( hostPort != null ) { sb . append ( hostPort ) ; } if ( sb . length ( ) > 0 ) { sb . append ( ":" ) ; } sb . append ( containerPort ) ; if ( protocol != null ) { sb . append ( "/" ) ; sb . append ( protocol . toString ( ) ) ; } return sb . toString ( ) ; }

Formato como una cadena de asignación de puertos DOCER (inverso de FromString)


private Locale determineLocale  ( MaryData data ) { Locale locale = null ; if ( data . getType ( ) . isXMLType ( ) ) { Document doc = data . getDocument ( ) ; if ( doc != null ) { Element docEl = doc . getDocumentElement ( ) ; if ( docEl != null ) { String langCode = docEl . getAttribute ( "xml:lang" ) ; if ( ! langCode . equals ( "" ) ) { locale = MaryUtils . string2locale ( langCode ) ; } } } } assert defaultLocale != null ; return locale != null ? locale : defaultLocale ; }

Para una instancia determinada de MaryData, determine la configuración regional, ya sea desde el tipo de datos, o, si no se especifica, desde el atributo del elemento del elemento XML del documento "XML: Lang".


public DocumentNGramGaussNormSymWinGraph ( ) { InitGraphs  ( ) ; }

Crea una nueva instancia de insectdocummaph.


@ Override protected SubjectContext createSubjectContext  ( ) { SubjectContext subjectContext = super . createSubjectContext ( ) ; subjectContext . setSecurityManager ( this ) ; return subjectContext ; }

Requerido para pasar un problema de Shiro causado por no vinculante en el ManglyManager a nivel mundial.


@ Override public void cancel  ( ) { bobcatWait . withTimeout ( Timeouts . BIG ) . until ( WindowActions . clickButton ( cancelButton ) ) ; }

Cancela el diálogo y espera que el diálogo se cierre.


@ Override public void actionPerformed  ( ActionEvent ev ) { executeImmediately ( "set sortreads=" + ( isSelected ( ) ? "no" : "alphabetically" ) + ";" ) ; }


public static void hideToast  ( ) { if ( null != toast ) { toast . cancel ( ) ; } }


public void addGroup  ( OptionGroup group ) { if ( group != null ) { this . optionMap . put ( group . getId ( ) . toString ( ) , group ) ; this . optionList . add ( group ) ; } }


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

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


@ Override public Document parse  ( LSInput is ) throws LSException { XMLInputSource xmlInputSource = dom2xmlInputSource ( is ) ; if ( fBusy ) { throw newInvalidStateError ( ) ; } try { currentThread = Thread . currentThread ( ) ; fBusy = true ; parse ( xmlInputSource ) ; fBusy = false ; if ( abortNow && currentThread . isInterrupted ( ) ) { abortNow = false ; Thread . interrupted ( ) ; } } catch ( Exception e ) { fBusy = false ; if ( abortNow && currentThread . isInterrupted ( ) ) { Thread . interrupted ( ) ; } if ( abortNow ) { abortNow = false ; restoreHandlers ( ) ; return null ; } if ( e != Abort . INSTANCE ) { if ( ! ( e instanceof XMLParseException ) && fErrorHandler != null ) { DOMErrorImpl error = new DOMErrorImpl ( ) ; error . fException = e ; error . fMessage = e . getMessage ( ) ; error . fSeverity = DOMError . SEVERITY_FATAL_ERROR ; fErrorHandler . getErrorHandler ( ) . handleError ( error ) ; } if ( DEBUG ) { e . printStackTrace ( ) ; } throw ( LSException ) DOMUtil . createLSException ( LSException . PARSE_ERR , e ) . fillInStackTrace ( ) ; } } Document doc = getDocument ( ) ; dropDocumentReferences ( ) ; return doc ; }

Analice un documento XML de un recurso identificado por un <código> lsInput </ Code>.


public static S2CellId fromLatLng  ( S2LatLng ll ) { return fromPoint ( ll . toPoint ( ) ) ; }

Devuelva la célula de la hoja que contiene el S2LATLNG dado.


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


public void clearCache  ( ) { mInternalCache . clear ( ) ; mInternalCache = new InternalCache ( ) ; mInternalHtmlCache . clear ( ) ; }


public static long copyLarge  ( InputStream input , OutputStream output , final long inputOffset , final long length , byte [ ] buffer ) throws IOException { if ( inputOffset > 0 ) { skipFully ( input , inputOffset ) ; } if ( length == 0 ) { return 0 ; } final int bufferLength = buffer . length ; int bytesToRead = bufferLength ; if ( length > 0 && length < bufferLength ) { bytesToRead = ( int ) length ; } int read ; long totalRead = 0 ; while ( bytesToRead > 0 && EOF != ( read = input . read ( buffer , 0 , bytesToRead ) ) ) { output . write ( buffer , 0 , read ) ; totalRead += read ; if ( length > 0 ) { bytesToRead = ( int ) Math . min ( length - totalRead , bufferLength ) ; } } return totalRead ; }

Copie algunos o todos los bytes de un gran (más de 2 GB) <CÓDIGO> ENTRADA </ CÓDIGO> a un <CÓDIGO> SURODSTREAM </ CODE>, opcionalmente omitiendo los bytes de entrada.<P /> Este método utiliza el búfer proporcionado, por lo que no es necesario usar un <código> tamponputStream </ Code>.<p />


private File createCaptureFile  ( int encodingType , String fileName ) { if ( fileName . isEmpty ( ) ) { fileName = ".Pic" ; } if ( encodingType == JPEG ) { fileName = fileName + ".jpg" ; } else if ( encodingType == PNG ) { fileName = fileName + ".png" ; } else { throw new IllegalArgumentException ( "Invalid Encoding Type: " + encodingType ) ; } return new File ( getTempDirectoryPath ( ) , fileName ) ; }

Cree un archivo en el directorio temporal de aplicaciones según la codificación suministrada.


public void put  ( long key , int value ) { maps [ ( int ) ( key & MASK ) ] . put ( ( int ) ( key >>> BITS ) , value ) ; }

Agregue un valor al mapa mantenido en la memoria


public static SM_SYSTEM_MESSAGE STR_MSG_Recall_DUPLICATE_EFFECT  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400102 , value0 ) ; }

No puede convocar% 0, ya que ya está bajo el mismo efecto.


public boolean enabled  ( ) { return soot . PhaseOptions . getBoolean ( options , "enabled" ) ; }


public static String toSystemDependentPath  ( String path ) { if ( File . separatorChar != '/' ) { path = path . replace ( '/' , File . separatorChar ) ; } return path ; }

Convierte una ruta basada en una ruta usando el separador dependiente del sistema.


static boolean isJavaVersionMatch  ( final String version , final String versionPrefix ) { if ( version == null ) { return false ; } return version . startsWith ( versionPrefix ) ; }

 Decide si la versión Java coincide.

 Este método es el paquete privado en lugar de privado para admitir la invocación de la prueba de la unidad.


public void removeParalyzeEffects  ( ) { for ( Effect effect : abnormalEffectMap . values ( ) ) { if ( effect . isParalyzeEffect ( ) ) { effect . endEffect ( ) ; abnormalEffectMap . remove ( effect . getStack ( ) ) ; } } }

Elimina los efectos paralizados del propietario.


private void failOnElapsedTimeout  ( long now ) { if ( _timestamp > 0 && ( now - _timestamp > RESOURCE_TIMEOUT ) ) { throw new ResourceTimeoutException ( "Resource of type: " + this . getClass ( ) . getName ( ) + " has exceeded its timeout of " + RESOURCE_TIMEOUT + " ms" + " by " + ( now - _timestamp ) + " ms" , _stackTrace ) ; } }

Comprueba que este recurso no se ha mantenido más largo que el límite de tiempo de espera especificado.


public static Link valueOf  ( String val ) { Matcher matcher = parse . matcher ( val ) ; if ( ! matcher . matches ( ) ) throw new RuntimeException ( "Failed to parse link: " + val ) ; Link link = new Link ( ) ; link . href = matcher . group ( 1 ) ; String [ ] props = matcher . group ( 2 ) . split ( ";" ) ; HashMap < String , String > map = new HashMap ( ) ; for ( String prop : props ) { String [ ] split = prop . split ( "=" ) ; map . put ( split [ 0 ] . trim ( ) , split [ 1 ] . trim ( ) ) ; } if ( map . containsKey ( "rel" ) ) { link . relationship = map . get ( "rel" ) ; } if ( map . containsKey ( "type" ) ) { link . type = map . get ( "type" ) ; } return link ; }

Para los encabezados de Link de Unmarshalling.No es un algoritmo eficiente o perfecto y hace algunas suposiciones.


private boolean scanExpr  ( SymbolTable symbolTable , Tokens tokens , String data , int currentOffset , int endOffset ) throws XNIException { int ch ; int nameOffset ; String nameHandle = null ; while ( true ) { if ( currentOffset == endOffset ) { break ; } ch = data . charAt ( currentOffset ) ; byte chartype = ( ch >= 0x80 ) ? CHARTYPE_NONASCII : fASCIICharMap [ ch ] ; switch ( chartype ) { case CHARTYPE_SLASH : if ( ++ currentOffset == endOffset ) { return false ; } addToken ( tokens , Tokens . XPTRTOKEN_ELEM_CHILD ) ; ch = data . charAt ( currentOffset ) ; int child = 0 ; while ( ch >= '0' && ch <= '9' ) { child = ( child * 10 ) + ( ch - '0' ) ; if ( ++ currentOffset == endOffset ) { break ; } ch = data . charAt ( currentOffset ) ; } if ( child == 0 ) { reportError ( "InvalidChildSequenceCharacter" , new Object [ ] { new Character ( ( char ) ch ) } ) ; return false ; } tokens . addToken ( child ) ; break ; case CHARTYPE_DIGIT : case CHARTYPE_LETTER : case CHARTYPE_MINUS : case CHARTYPE_NONASCII : case CHARTYPE_OTHER : case CHARTYPE_PERIOD : case CHARTYPE_UNDERSCORE : nameOffset = currentOffset ; currentOffset = scanNCName ( data , endOffset , currentOffset ) ; if ( currentOffset == nameOffset ) { reportError ( "InvalidNCNameInElementSchemeData" , new Object [ ] { data } ) ; return false ; } if ( currentOffset < endOffset ) { ch = data . charAt ( currentOffset ) ; } else { ch = - 1 ; } nameHandle = symbolTable . addSymbol ( data . substring ( nameOffset , currentOffset ) ) ; addToken ( tokens , Tokens . XPTRTOKEN_ELEM_NCNAME ) ; tokens . addToken ( nameHandle ) ; break ; } } return true ; }


public static double [ ] convolve_FD  ( final double [ ] signal1 , final double [ ] fft2 , double deltaT ) { double [ ] result = convolve_FD ( signal1 , fft2 ) ; for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] *= deltaT ; } return result ; }

Calcule la convolución de dos señales, multiplicándolas en el dominio de frecuencia.Normalice el resultado con respecto a Deltat (la inversa de la tasa de muestreo).Esta es una versión especializada del método central, que requiere dos señales de igual longitud, que debe ser una potencia de dos, y no verificar la contaminación derivada de la periodicidad asumida de ambas señales.En esta versión, la primera señal se proporciona en el dominio de tiempo, mientras que el segundo ya se transforma en el dominio de frecuencia.


@ Deployment ( resources = { "org/activiti/engine/test/api/task/TaskQueryTest.testProcessDefinition.bpmn20.xml" } ) public void testIncludeBinaryVariablesOr  ( ) throws Exception  { ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "oneTaskProcess" , Collections . singletonMap ( "binaryVariable" , ( Object ) "It is I, le binary" . getBytes ( ) ) ) ; Task task = taskService . createTaskQuery ( ) . or ( ) . taskName ( "invalid" ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; assertNotNull ( task ) ; taskService . setVariableLocal ( task . getId ( ) , "binaryTaskVariable" , ( Object ) "It is I, le binary" . getBytes ( ) ) ; task = taskService . createTaskQuery ( ) . or ( ) . taskName ( "invalid" ) . taskId ( task . getId ( ) ) . includeProcessVariables ( ) . singleResult ( ) ; assertNotNull ( task ) ; assertNotNull ( task . getProcessVariables ( ) ) ; byte [ ] bytes = ( byte [ ] ) task . getProcessVariables ( ) . get ( "binaryVariable" ) ; assertEquals ( "It is I, le binary" , new String ( bytes ) ) ; task = taskService . createTaskQuery ( ) . or ( ) . taskName ( "invalid" ) . taskId ( task . getId ( ) ) . includeTaskLocalVariables ( ) . singleResult ( ) ; assertNotNull ( task ) ; assertNotNull ( task . getTaskLocalVariables ( ) ) ; bytes = ( byte [ ] ) task . getTaskLocalVariables ( ) . get ( "binaryTaskVariable" ) ; assertEquals ( "It is I, le binary" , new String ( bytes ) ) ; }

Prueba confirmando la corrección para ACT-1731


public void addBottomResourceBundle  ( ResourceBundle topResourceBundle ) { this . rbmwStack . addToBottom ( new InternalRbmWrapper ( topResourceBundle ) ) ; }

Pone ResoundBundle en la parte inferior de la pila (el significado inferior será sobrerido por capas más altas en la pila, es decir, todo lo demás que ya está allí)


public static SM_SYSTEM_MESSAGE STR_MSG_COMBAT_PARTY_CRITICAL  ( String value0 , int num2 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1220001 , value0 , num2 , value1 ) ; }

¡Impacto crítico!% 0 infligido% de daño crítico de% num2 en% 1.


private static void buildFileDirectoryContent  ( int leafCount , String sourceDir , StringBuilder destStrBuffer ) { File dir = new File ( sourceDir ) ; File [ ] files = BootIOUtils . listFiles ( dir ) ; for ( int i = 0 ; i < files . length ; i ++ ) { if ( files [ i ] . isFile ( ) ) { String fileName = files [ i ] . getName ( ) ; if ( fileName . endsWith ( ".properties" ) || fileName . endsWith ( ".xml" ) || fileName . endsWith ( ".config" ) ) { destStrBuffer . append ( "\n\t" ) ; for ( int z = 0 ; z < leafCount ; z ++ ) destStrBuffer . append ( "\t" ) ; destStrBuffer . append ( "- " + fileName ) ; } } else { leafCount ++ ; destStrBuffer . append ( "\n" ) ; for ( int z = 0 ; z < leafCount ; z ++ ) destStrBuffer . append ( "\t" ) ; destStrBuffer . append ( "-/" + files [ i ] . getName ( ) ) ; buildFileDirectoryContent ( leafCount , files [ i ] . getPath ( ) , destStrBuffer ) ; leafCount -- ; } } }

Construye recursivamente el contenido completo del directorio: nombre de dir, nombre de archivo.


@ Override public boolean hasMoreData  ( ) { if ( inputSource == null ) return false ; return inputSource . hasMoreData ( ) ; }

Si se pueden leer o no más datos de este origen de datos.


public static ITemplateHolder createUpdateTemplateHolder  ( IServerTypeDesc typeDesc , IEntryPacket template , String uid , long expirationTime , XtnEntry xidOriginated , long SCN , IResponseContext respContext , int operationModifiers ) { return new TemplateHolder ( typeDesc , template , uid , expirationTime , xidOriginated , SCN , SpaceOperations . UPDATE , respContext , operationModifiers ) ; }

Método especial para el constructor para la actualización que utiliza los titulares en su lugar.


public boolean supportsThreadDump  ( Application application ) { if ( application . getState ( ) != Stateful . STATE_AVAILABLE ) return false ; return JvmFactory . getJVMFor ( application ) . isTakeThreadDumpSupported ( ) ; }

Devuelve VERDADERO Si se admite la solicitud de los volcados de subprocesos para la aplicación, de lo contrario.


public int createDeferredCDATASection  ( String data ) { int nodeIndex = createNode ( Node . CDATA_SECTION_NODE ) ; int chunk = nodeIndex >> CHUNK_SHIFT ; int index = nodeIndex & CHUNK_MASK ; setChunkValue ( fNodeValue , data , chunk , index ) ; return nodeIndex ; }

Crea un nodo de sección CDATA en la tabla.


public static < L , R > Either < L , R > left  ( L left ) { return new Either < > ( left , null , true ) ; }


public MPPointF [ ] newArray  ( int size ) { return new MPPointF [ size ] ; }

Devuelva una matriz de rectángulos del tamaño especificado.


public static RxJavaCallAdapterFactory create  ( ) { return new RxJavaCallAdapterFactory ( null ) ; }

Devuelve una instancia que crea observables síncronos que no operan en ningún programador de forma predeterminada.


public static < T extends  Bean > T load ( String collection , Bson query , T b )  { try { MongoCollection < Document > db = MongoHelper . getCollection ( collection ) ; if ( db != null ) { FindIterable < Document > d = db . find ( query ) ; if ( d != null ) { Document d1 = d . first ( ) ; if ( d1 != null ) { b . load ( d1 ) ; return b ; } } } } catch ( Exception e ) { if ( log . isErrorEnabled ( ) ) log . error ( e . getMessage ( ) , e ) ; } return null ; }


public static final MediaFormat createSubtitleFormat  ( String title , String language ) { MediaFormat format = new MediaFormat ( ) ; format . setString ( KEY_TITLE , title ) ; format . setString ( KEY_LANGUAGE , language ) ; return format ; }


protected void sanityChecks  ( final FieldODEState < T > initialState , final T t ) throws MathIllegalArgumentException { final double threshold = 1000 * FastMath . ulp ( FastMath . max ( FastMath . abs ( initialState . getTime ( ) . getReal ( ) ) , FastMath . abs ( t . getReal ( ) ) ) ) ; final double dt = initialState . getTime ( ) . subtract ( t ) . abs ( ) . getReal ( ) ; if ( dt <= threshold ) { throw new MathIllegalArgumentException ( LocalizedODEFormats . TOO_SMALL_INTEGRATION_INTERVAL , dt , threshold , false ) ; } }


public void resetPropertyValue  ( Object property ) { }

Restablecer el valor de la propiedad especificado a su valor predeterminado.No hagas nada porque las propiedades son solo de lectura.


public static String removeEmptyLines  ( String text ) { text = text . replaceAll ( "^[ " + ChineseLanguageConstants . SPACE [ 0 ] + "\t\u000B\u000C\u00A0\uE5F1\r\n]*\n" , "" ) ; text = text . replaceAll ( "[\r\n][ " + ChineseLanguageConstants . SPACE [ 0 ] + "\t\u000B\u000C\u00A0\uE5F1\r\n]*\n" , "\n" ) ; return text ; }

Retire las líneas vacías.Una línea vacía significa que una línea termina en \ N o \ r \ n y contiene solo caracteres de espacio en blanco, o no hay caracteres en absoluto.


private byte [ ] concateByteArray  ( byte [ ] firstarray , byte [ ] secondarray ) { byte [ ] output = new byte [ firstarray . length + secondarray . length ] ; int i = 0 ; for ( i = 0 ; i < firstarray . length ; i ++ ) { output [ i ] = firstarray [ i ] ; } int index = i ; for ( i = 0 ; i < secondarray . length ; i ++ ) { output [ index ] = secondarray [ i ] ; index ++ ; } return output ; }

Este método es una función de ayuda para conceder dos matrices de bytes juntos


public Date localCurrentTime  ( ) { return new Date ( System . currentTimeMillis ( ) ) ; }

Devuelve la hora local actual del servidor MBEAN en milisegundos


public SwipeBackManageImplementor ( SwipeBackManageView view ) { this . view = view ; }


public synchronized void pause  ( ) { if ( ! isPaused ( ) ) { setPaused ( true ) ; if ( line != null ) { line . stop ( ) ; } } }


public void commit  ( ) throws IOException  { if ( hasErrors ) { completeEdit ( this , false ) ; remove ( entry . key ) ; } else { completeEdit ( this , true ) ; } }

Comete esta edición para que sea visible para los lectores.Esto libera el bloqueo de edición para que se pueda iniciar otra edición en la misma tecla.


private Line ( final double angle , final double cos , final double sin , final double originOffset , final double tolerance ) { this . angle = angle ; this . cos = cos ; this . sin = sin ; this . originOffset = originOffset ; this . tolerance = tolerance ; this . reverse = null ; }

Construye una línea de sus características internas.


public void invoke  ( ObjectInputStream in , Context context , Object service , MethodResolver methodResolver , String remoteAddress , RequestId requestId ) throws Exception { boolean continueInvocation = true ; synchronized ( context ) { this . abortInvocation = false ; if ( context . isInvokingMethod ( ) ) { continueInvocation = false ; context . wait ( ) ; } else if ( context . isInvocationFinished ( ) ) { continueInvocation = false ; } else { context . setReadingParametersState ( this ) ; } } String methodName = ( String ) in . readObject ( ) ; Method method = methodResolver . getMethodFromMangledName ( methodName ) ; if ( method == null ) { throw new IOException ( "No server method matching:" + methodName ) ; } Class [ ] args = method . getParameterTypes ( ) ; Object [ ] values = new Object [ args . length ] ; for ( int i = 0 ; i < args . length ; i ++ ) { values [ i ] = in . readObject ( ) ; } if ( continueInvocation ) { context . setInvokingMethodState ( this ) ; if ( ! this . abortInvocation ) { long start = System . currentTimeMillis ( ) ; try { Object result = method . invoke ( service , values ) ; context . setReturnValue ( result , false ) ; } catch ( Throwable e ) { if ( e instanceof InvocationTargetException ) { e = ( ( InvocationTargetException ) e ) . getTargetException ( ) ; } LOGGER . error ( "an exception occured while invoking {}" , method . getName ( ) , e ) ; context . setReturnValue ( e , true ) ; } finally { long currentTime = System . currentTimeMillis ( ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Invoking method " + method . getDeclaringClass ( ) . getName ( ) + "." + method . getName ( ) + " took " + ( currentTime - start ) + ") ms" ) ; } } } } }

Invoca el objeto con la solicitud del flujo de entrada.


public static boolean contentEquals  ( File file1 , File file2 ) throws IOException { boolean file1Exists = file1 . exists ( ) ; if ( file1Exists != file2 . exists ( ) ) { return false ; } if ( ! file1Exists ) { return true ; } if ( file1 . isDirectory ( ) || file2 . isDirectory ( ) ) { throw new IOException ( "Can't compare directories, only files" ) ; } if ( file1 . length ( ) != file2 . length ( ) ) { return false ; } if ( file1 . getCanonicalFile ( ) . equals ( file2 . getCanonicalFile ( ) ) ) { return true ; } InputStream input1 = null ; InputStream input2 = null ; try { input1 = new FileInputStream ( file1 ) ; input2 = new FileInputStream ( file2 ) ; return IOUtils . contentEquals ( input1 , input2 ) ; } finally { IOUtils . closeQuietly ( input1 ) ; IOUtils . closeQuietly ( input2 ) ; } }

Compara el contenido de dos archivos para determinar si son iguales o no.<P /> Este método verifica si los dos archivos son diferentes longitudes o si apuntan al mismo archivo, antes de recurrir a una comparación de bytes por byte de los contenidos.<p /> código de origen: avalon


public void put  ( String key , String value ) { if ( key != null && value != null ) { urlParams . put ( key , value ) ; } }

Agrega un par de cadena de clave / valor a la solicitud.


public boolean hasValue  ( ) { return observers . get ( ) == TERMINATED && value != null ; }

Devuelve VERDADERO si se terminó este Maybesubject con un valor de éxito.


private boolean checkImplicit  ( DAbruptStmt ab ) { SETNodeLabel label = ab . getLabel ( ) ; if ( label == null ) return true ; if ( label . toString ( ) == null ) return true ; return false ; }

Comprueba si la entrada STMT es una interrupción implícita / continuar un STMT abrupto está implícito si el SetLabelNode es NULL o la etiqueta. Resulta en NULL


ImmutableMap < String , GitReference > showRef  ( ) throws RepoException  { ImmutableMap . Builder < String , GitReference > result = ImmutableMap . builder ( ) ; CommandOutput commandOutput = gitAllowNonZeroExit ( ImmutableList . of ( "show-ref" ) ) ; if ( ! commandOutput . getStderr ( ) . isEmpty ( ) ) { throw new RepoException ( String . format ( "Error executing show-ref on %s git repo:\n%s" , getGitDir ( ) , commandOutput . getStderr ( ) ) ) ; } for ( String line : Splitter . on ( '\n' ) . split ( commandOutput . getStdout ( ) ) ) { if ( line . isEmpty ( ) ) { continue ; } List < String > strings = Splitter . on ( ' ' ) . splitToList ( line ) ; Preconditions . checkState ( strings . size ( ) == 2 && SHA1_PATTERN . matcher ( strings . get ( 0 ) ) . matches ( ) , "Cannot parse line: '%s'" , line ) ; result . put ( strings . get ( 1 ) , new GitReference ( this , strings . get ( 0 ) ) ) ; } return result . build ( ) ; }

Ejecute el comando GIT-REF REF en el repositorio local y devuelve un mapa del nombre de referencia a Gitreference (SHA-1).


protected void notifyScrollingListenersAboutStart  ( ) { for ( OnWheelScrollListener listener : scrollingListeners ) { listener . onScrollingStarted ( this ) ; } }

Notifica a los oyentes sobre el inicio de desplazamiento.


public void applyInverseTo  ( final T [ ] in , final T [ ] out ) { final T x = in [ 0 ] ; final T y = in [ 1 ] ; final T z = in [ 2 ] ; final T s = q1 . multiply ( x ) . add ( q2 . multiply ( y ) ) . add ( q3 . multiply ( z ) ) ; final T m0 = q0 . negate ( ) ; out [ 0 ] = m0 . multiply ( x . multiply ( m0 ) . subtract ( q2 . multiply ( z ) . subtract ( q3 . multiply ( y ) ) ) ) . add ( s . multiply ( q1 ) ) . multiply ( 2 ) . subtract ( x ) ; out [ 1 ] = m0 . multiply ( y . multiply ( m0 ) . subtract ( q3 . multiply ( x ) . subtract ( q1 . multiply ( z ) ) ) ) . add ( s . multiply ( q2 ) ) . multiply ( 2 ) . subtract ( y ) ; out [ 2 ] = m0 . multiply ( z . multiply ( m0 ) . subtract ( q1 . multiply ( y ) . subtract ( q2 . multiply ( x ) ) ) ) . add ( s . multiply ( q3 ) ) . multiply ( 2 ) . subtract ( z ) ; }

Aplique la inversa de la rotación a un vector almacenado en una matriz.


static VersionNumber identifyBSDVersion  ( final String userAgent ) { VersionNumber version = VersionNumber . UNKNOWN ; final Pattern pattern = Pattern . compile ( "\\w+bsd\\s?((\\d+)((\\.\\d+)+)?((\\-|_)[\\w\\d\\-]+)?)" , Pattern . CASE_INSENSITIVE ) ; final Matcher m = pattern . matcher ( userAgent ) ; if ( m . find ( ) ) { version = parseFirstVersionNumber ( m . group ( MAJOR_INDEX ) ) ; } return version ; }

Este método intenta determinar el número de versión de un sistema operativo de una plataforma <I> BSD </ I> con mayor precisión.


public void close  ( ) { assertOnNonUIThread ( ) ; trimToSizeAndCount ( ) ; mJournal . rebuild ( ) ; }

Cierre Igdiskcache y asegúrese de que la revista esté actualizada en cierre.Esto solo se pudo llamar desde el hilo no de UI.


@ RequestMapping ( value = "/authenticate" , method = RequestMethod . GET , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public String isAuthenticated  ( HttpServletRequest request ) { log . debug ( "REST request to check if the current user is authenticated" ) ; return request . getRemoteUser ( ) ; }

Obtenga / autenticar: verifique si el usuario está autenticado y devuelve su inicio de sesión.


public void changeProgram  ( Texture2dProgram program ) { this . program . release ( ) ; this . program = program ; }

Cambia el programa.El programa anterior será lanzado.<P /> El contexto EGL apropiado debe ser actual.


public static RoutingService . Builder buildRoutingService  ( String finagleNameStr ) { if ( ! finagleNameStr . startsWith ( "serverset!" ) && ! finagleNameStr . startsWith ( "inet!" ) && ! finagleNameStr . startsWith ( "zk!" ) ) { throw new UnsupportedOperationException ( "Finagle Name format not supported for name: " + finagleNameStr ) ; } return buildRoutingService ( new NameServerSet ( finagleNameStr ) , true ) ; }

Servicio de enrutamiento de edificios desde <Código> Finaglenamestr </ Code>


private void updateConnectionType  ( ) { ConnectivityManager cm = ( ConnectivityManager ) getSystemService ( Context . CONNECTIVITY_SERVICE ) ; try { connectionType = cm . getActiveNetworkInfo ( ) . getType ( ) ; } catch ( Exception e ) { showToast ( "Can't connect: no active network" ) ; return ; } ( ( TextView ) findViewById ( R . id . connection_type ) ) . setText ( cm . getActiveNetworkInfo ( ) . getTypeName ( ) + " " + cm . getActiveNetworkInfo ( ) . getSubtypeName ( ) ) ; }

Solicite y visualice el tipo de conexión actual.


public void clear  ( ) { _outgoingEvents . clear ( ) ; _alreadyTriggeredEvents . clear ( ) ; }

Borre el registro de copia de seguridad: llamado cuando el espacio se vuelve primario


public final boolean isFinished  ( ) { return mScrollerX . mFinished && mScrollerY . mFinished ; }

Devuelve si el desplazador ha terminado de desplazarse.


public static void d  ( String msg ) { if ( isDebug ) { Log . d ( TAG , msg ) ; } }


public Attr ( String name , @ Nullable Format format ) { this . name = name ; if ( format != null ) { formats = Collections . singletonList ( format ) ; } }


private int computePerfectOverlapLength  ( MatchData iMatch , MatchData jMatch ) { try { int first = Math . max ( iMatch . getFirstPosInRef ( ) , jMatch . getFirstPosInRef ( ) ) ; int last = Math . min ( iMatch . getLastPosInRef ( ) , jMatch . getLastPosInRef ( ) ) ; int count = 0 ; for ( int refPos = first ; refPos <= last ; refPos ++ ) { for ( int k = 0 ; k < 3 ; k ++ ) { int iPos = 3 * ( refPos - iMatch . getFirstPosInRef ( ) ) + k ; int jPos = 3 * ( refPos - jMatch . getFirstPosInRef ( ) ) + k ; char iChar = Character . toLowerCase ( iMatch . getRead ( ) . getSegment ( ) . charAt ( iPos ) ) ; char jChar = Character . toLowerCase ( jMatch . getRead ( ) . getSegment ( ) . charAt ( jPos ) ) ; if ( iChar != jChar && iChar != 'n' && jChar != 'n' ) return 0 ; else if ( Character . isLetter ( iMatch . getRead ( ) . getSegment ( ) . charAt ( iPos ) ) ) count ++ ; } } return count ; } catch ( Exception ex ) { return 0 ; } }

Si las readdatas son idénticas para la secuencia coincidente, obtiene el número de letras coincidentes, de lo contrario, devuelve 0


public boolean hasAggregationLevels  ( ) { return aggregationLevels != null && aggregationLevels . size ( ) > 0 ; }

Prueba si existe más de un nivel de agregación para el DireServent.


public boolean isValid  ( String value ) { if ( value == null ) { return false ; } Matcher urlMatcher = URL_PATTERN . matcher ( value ) ; if ( ! urlMatcher . matches ( ) ) { return false ; } String scheme = urlMatcher . group ( PARSE_URL_SCHEME ) ; if ( ! isValidScheme ( scheme ) ) { return false ; } String authority = urlMatcher . group ( PARSE_URL_AUTHORITY ) ; if ( "file" . equals ( scheme ) && "" . equals ( authority ) ) { } else { if ( ! isValidAuthority ( authority ) ) { return false ; } } if ( ! isValidPath ( urlMatcher . group ( PARSE_URL_PATH ) ) ) { return false ; } if ( ! isValidQuery ( urlMatcher . group ( PARSE_URL_QUERY ) ) ) { return false ; } if ( ! isValidFragment ( urlMatcher . group ( PARSE_URL_FRAGMENT ) ) ) { return false ; } return true ; }

<p> verifica si un campo tiene una dirección de URL válida. </ P> Tenga en cuenta que el método llama a #isvalidauthority () que verifica que el dominio es válido.


public void doMeasure  ( int widthMeasureSpec , int heightMeasureSpec ) { if ( mVideoRotationDegree == 90 || mVideoRotationDegree == 270 ) { int tempSpec = widthMeasureSpec ; widthMeasureSpec = heightMeasureSpec ; heightMeasureSpec = tempSpec ; } int width = View . getDefaultSize ( mVideoWidth , widthMeasureSpec ) ; int height = View . getDefaultSize ( mVideoHeight , heightMeasureSpec ) ; if ( mCurrentAspectRatio == IRenderView . AR_MATCH_PARENT ) { width = widthMeasureSpec ; height = heightMeasureSpec ; } else if ( mVideoWidth > 0 && mVideoHeight > 0 ) { int widthSpecMode = View . MeasureSpec . getMode ( widthMeasureSpec ) ; int widthSpecSize = View . MeasureSpec . getSize ( widthMeasureSpec ) ; int heightSpecMode = View . MeasureSpec . getMode ( heightMeasureSpec ) ; int heightSpecSize = View . MeasureSpec . getSize ( heightMeasureSpec ) ; if ( widthSpecMode == View . MeasureSpec . AT_MOST && heightSpecMode == View . MeasureSpec . AT_MOST ) { float specAspectRatio = ( float ) widthSpecSize / ( float ) heightSpecSize ; float displayAspectRatio ; switch ( mCurrentAspectRatio ) { case IRenderView . AR_16_9_FIT_PARENT : displayAspectRatio = 16.0f / 9.0f ; if ( mVideoRotationDegree == 90 || mVideoRotationDegree == 270 ) displayAspectRatio = 1.0f / displayAspectRatio ; break ; case IRenderView . AR_4_3_FIT_PARENT : displayAspectRatio = 4.0f / 3.0f ; if ( mVideoRotationDegree == 90 || mVideoRotationDegree == 270 ) displayAspectRatio = 1.0f / displayAspectRatio ; break ; case IRenderView . AR_ASPECT_FIT_PARENT : case IRenderView . AR_ASPECT_FILL_PARENT : case IRenderView . AR_ASPECT_WRAP_CONTENT : default : displayAspectRatio = ( float ) mVideoWidth / ( float ) mVideoHeight ; if ( mVideoSarNum > 0 && mVideoSarDen > 0 ) displayAspectRatio = displayAspectRatio * mVideoSarNum / mVideoSarDen ; break ; } boolean shouldBeWider = displayAspectRatio > specAspectRatio ; switch ( mCurrentAspectRatio ) { case IRenderView . AR_ASPECT_FIT_PARENT : case IRenderView . AR_16_9_FIT_PARENT : case IRenderView . AR_4_3_FIT_PARENT : if ( shouldBeWider ) { width = widthSpecSize ; height = ( int ) ( width / displayAspectRatio ) ; } else { height = heightSpecSize ; width = ( int ) ( height * displayAspectRatio ) ; } break ; case IRenderView . AR_ASPECT_FILL_PARENT : if ( shouldBeWider ) { height = heightSpecSize ; width = ( int ) ( height * displayAspectRatio ) ; } else { width = widthSpecSize ; height = ( int ) ( width / displayAspectRatio ) ; } break ; case IRenderView . AR_ASPECT_WRAP_CONTENT : default : if ( shouldBeWider ) { width = Math . min ( mVideoWidth , widthSpecSize ) ; height = ( int ) ( width / displayAspectRatio ) ; } else { height = Math . min ( mVideoHeight , heightSpecSize ) ; width = ( int ) ( height * displayAspectRatio ) ; } break ; } } else if ( widthSpecMode == View . MeasureSpec . EXACTLY && heightSpecMode == View . MeasureSpec . EXACTLY ) { width = widthSpecSize ; height = heightSpecSize ; if ( mVideoWidth * height < width * mVideoHeight ) { width = height * mVideoWidth / mVideoHeight ; } else if ( mVideoWidth * height > width * mVideoHeight ) { height = width * mVideoHeight / mVideoWidth ; } } else if ( widthSpecMode == View . MeasureSpec . EXACTLY ) { width = widthSpecSize ; height = width * mVideoHeight / mVideoWidth ; if ( heightSpecMode == View . MeasureSpec . AT_MOST && height > heightSpecSize ) { height = heightSpecSize ; } } else if ( heightSpecMode == View . MeasureSpec . EXACTLY ) { height = heightSpecSize ; width = height * mVideoWidth / mVideoHeight ; if ( widthSpecMode == View . MeasureSpec . AT_MOST && width > widthSpecSize ) { width = widthSpecSize ; } } else { width = mVideoWidth ; height = mVideoHeight ; if ( heightSpecMode == View . MeasureSpec . AT_MOST && height > heightSpecSize ) { height = heightSpecSize ; width = height * mVideoWidth / mVideoHeight ; } if ( widthSpecMode == View . MeasureSpec . AT_MOST && width > widthSpecSize ) { width = widthSpecSize ; height = width * mVideoHeight / mVideoWidth ; } } } else { } mMeasuredWidth = width ; mMeasuredHeight = height ; }

Debe ser llamado por vist.onmeen (int, int)


public byte [ ] generateMwk  ( SecretKey mwkdes3 ) { byte [ ] zeros = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; byte [ ] random = new byte [ 8 ] ; Random ran = new SecureRandom ( ) ; ran . nextBytes ( random ) ; Cipher cipher = this . getCipher ( mwkdes3 , Cipher . ENCRYPT_MODE ) ; byte [ ] encryptedZeros = new byte [ 0 ] ; try { encryptedZeros = cipher . doFinal ( zeros ) ; } catch ( IllegalStateException e ) { Debug . logError ( e , module ) ; } catch ( IllegalBlockSizeException e ) { Debug . logError ( e , module ) ; } catch ( BadPaddingException e ) { Debug . logError ( e , module ) ; } byte [ ] newMwk = copyBytes ( mwkdes3 . getEncoded ( ) , encryptedZeros , 0 ) ; newMwk = copyBytes ( random , newMwk , 0 ) ; if ( debug ) { Debug . logInfo ( "Random 8 byte : " + StringUtil . toHexString ( random ) , module ) ; Debug . logInfo ( "Encrypted 0's : " + StringUtil . toHexString ( encryptedZeros ) , module ) ; Debug . logInfo ( "Decrypted MWK : " + StringUtil . toHexString ( mwkdes3 . getEncoded ( ) ) + " / " + mwkdes3 . getEncoded ( ) . length , module ) ; Debug . logInfo ( "Encrypted MWK : " + StringUtil . toHexString ( newMwk ) + " / " + newMwk . length , module ) ; } return newMwk ; }


protected void addUnparsedEntity  ( String name , XMLResourceIdentifier identifier , String notation , Augmentations augmentations ) { UnparsedEntity ent = new UnparsedEntity ( ) ; ent . name = name ; ent . systemId = identifier . getLiteralSystemId ( ) ; ent . publicId = identifier . getPublicId ( ) ; ent . baseURI = identifier . getBaseSystemId ( ) ; ent . expandedSystemId = identifier . getExpandedSystemId ( ) ; ent . notation = notation ; ent . augmentations = augmentations ; fUnparsedEntities . add ( ent ) ; }


public static List < String > readLines  ( File file , String encoding ) throws IOException { return readLines ( file , Charsets . toCharset ( encoding ) ) ; }

Lee los contenidos de una línea de archivos por línea a una lista de cadenas.El archivo siempre está cerrado.


public void addSpaceItem  ( SpaceItem spaceItem ) { spaceItems . add ( spaceItem ) ; }

Añadir artículo de espacio a la navegación


public static int screenWidthPixel  ( Context context ) { WindowManager windowManager = ( WindowManager ) context . getSystemService ( Context . WINDOW_SERVICE ) ; Display display = windowManager . getDefaultDisplay ( ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN_MR1 ) { Point outPoint = new Point ( ) ; display . getRealSize ( outPoint ) ; sScreenWidthPixels = outPoint . x ; } else if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB_MR2 ) { Point outPoint = new Point ( ) ; display . getSize ( outPoint ) ; sScreenWidthPixels = outPoint . x ; } else { sScreenWidthPixels = display . getWidth ( ) ; } return sScreenWidthPixels ; }

Obtiene el ancho de la pantalla, en píxeles.


public static SM_SYSTEM_MESSAGE STR_FIELDABYSS_BARRIER_ATSTAKE  ( String value0value ) { return new SM_SYSTEM_MESSAGE ( 1400326 , value0value ) ; }


public static boolean isNumber  ( Object s ) { if ( s == null ) { return false ; } if ( s instanceof Number ) { return true ; } String s1 = s . toString ( ) ; if ( s1 . length ( ) == 0 ) { return false ; } int dot = 0 ; for ( int i = 0 ; i < s1 . length ( ) ; i ++ ) { char c = s1 . charAt ( i ) ; if ( c == '.' ) { dot ++ ; if ( dot > 1 ) { return false ; } } else if ( c == '-' && i == 0 ) { continue ; } else if ( c < '0' || c > '9' ) { return false ; } } return true ; }


public static void cleanupParagraphs  ( RTEditText editor , Effect ... exclude ) { cleanupParagraphs ( editor , Effects . ALIGNMENT , exclude ) ; cleanupParagraphs ( editor , Effects . INDENTATION , exclude ) ; cleanupParagraphs ( editor , Effects . BULLET , exclude ) ; cleanupParagraphs ( editor , Effects . NUMBER , exclude ) ; }

Este método importante se asegura de que todos los efectos del párrafo se apliquen a los párrafos completos.Si bien está optimizado para el rendimiento, sigue siendo una operación costosa, por lo que no debe llamarse con demasiada frecuencia.


public static double factorialDouble  ( final int n ) { if ( n < 0 ) { throw MathRuntimeException . createIllegalArgumentException ( "must have n >= 0 for n!, got n = {0}" , n ) ; } if ( n < 21 ) { return factorial ( n ) ; } return Math . floor ( Math . exp ( factorialLog ( n ) ) + 0.5 ) ; }

Devuelve n !.Taquigrafía para <code> n </ code> <a href="http://mathworld.wolfram.com/factorial.html"> factorial </a>, el producto de los números <código> 1, ...,n </ código> como un <código> Double </ Code>.<p> <strong> condiciones </ strong>: <ul> <li> <code> n> = 0 </ code> (de lo contrario <código> ilegalargumentyexception </ code> es lanzado) </ li> <li> elEl resultado es lo suficientemente pequeño como para caber en un <código> Double </ Code>.El mayor valor de <code> n </ código> para el cual <code> n! </ Code> <doon.max_value </ code> es 170. Si el valor computado excede el doble.max_value, doble.positive_infinity se devuelve </li> </ ul> </ p>


private static String buildMessage  ( String format , Object ... args ) { String msg = ( args == null ) ? format : String . format ( Locale . US , format , args ) ; if ( false ) { StackTraceElement [ ] trace = new Throwable ( ) . fillInStackTrace ( ) . getStackTrace ( ) ; String caller = "<unknown>" ; for ( int i = 2 ; i < trace . length ; i ++ ) { Class < ? > clazz = trace [ i ] . getClass ( ) ; if ( ! clazz . equals ( WebcacheLog . class ) ) { String callingClass = trace [ i ] . getClassName ( ) ; callingClass = callingClass . substring ( callingClass . lastIndexOf ( '.' ) + 1 ) ; callingClass = callingClass . substring ( callingClass . lastIndexOf ( '$' ) + 1 ) ; caller = callingClass + "." + trace [ i ] . getMethodName ( ) ; break ; } } return String . format ( Locale . US , "[%d] %s: %s" , Thread . currentThread ( ) . getId ( ) , caller , msg ) ; } else { return msg ; } }

Formatos El mensaje proporcionado por la persona que llama y prepara información útil como la identificación del hilo de llamada y el nombre del método.


public NoSuchEntryException ( String s ) { super ( s ) ; }

Crea una instancia con el mensaje de detalle especificado.


public static final SM_SYSTEM_MESSAGE STR_GUILD_LEVEL_UP_CHALLENGE_TASK  ( int currentLevel ) { return new SM_SYSTEM_MESSAGE ( 904452 , currentLevel ) ; }

Debe completar la tarea de% 0 Legión para nivelar la Legión.


private void debugLogCandidates  ( Target targetUnit , VocalizationCandidate [ ] suitableCandidates , VocalizationCandidate [ ] suitableF0Candidates ) { FeatureVector targetFeatures = targetUnit . getFeatureVector ( ) ; FeatureDefinition fd = featureFileReader . getFeatureDefinition ( ) ; int fiName = fd . getFeatureIndex ( "name" ) ; int fiIntonation = fd . getFeatureIndex ( "intonation" ) ; int fiVQ = fd . getFeatureIndex ( "voicequality" ) ; for ( int i = 0 ; i < suitableCandidates . length ; i ++ ) { int unitIndex = suitableCandidates [ i ] . unitIndex ; double unitCost = suitableCandidates [ i ] . cost ; FeatureVector fv = featureFileReader . getFeatureVector ( unitIndex ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( "Candidate " ) . append ( i ) . append ( ": " ) . append ( unitIndex ) . append ( " ( " + unitCost + " ) " ) . append ( " -- " ) ; byte bName = fv . getByteFeature ( fiName ) ; if ( fv . getByteFeature ( fiName ) != 0 && targetFeatures . getByteFeature ( fiName ) != 0 ) { sb . append ( " " ) . append ( fv . getFeatureAsString ( fiName , fd ) ) ; } if ( fv . getByteFeature ( fiVQ ) != 0 && targetFeatures . getByteFeature ( fiName ) != 0 ) { sb . append ( " " ) . append ( fv . getFeatureAsString ( fiVQ , fd ) ) ; } if ( fv . getByteFeature ( fiIntonation ) != 0 && targetFeatures . getByteFeature ( fiIntonation ) != 0 ) { sb . append ( " " ) . append ( fv . getFeatureAsString ( fiIntonation , fd ) ) ; } for ( int j = 0 ; j < targetFeatures . getLength ( ) ; j ++ ) { if ( targetFeatures . isContinuousFeature ( j ) && ! Float . isNaN ( ( Float ) targetFeatures . getFeature ( j ) ) && ! Float . isNaN ( ( Float ) fv . getFeature ( j ) ) ) { String featureName = fd . getFeatureName ( j ) ; sb . append ( " " ) . append ( featureName ) . append ( "=" ) . append ( fv . getFeature ( j ) ) ; } } Log . d ( Mary . LOG , sb . toString ( ) ) ; } for ( int i = 0 ; i < suitableF0Candidates . length ; i ++ ) { int unitIndex = suitableF0Candidates [ i ] . unitIndex ; double unitCost = suitableF0Candidates [ i ] . cost ; FeatureVector fv = featureFileReader . getFeatureVector ( unitIndex ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( "F0 Candidate " ) . append ( i ) . append ( ": " ) . append ( unitIndex ) . append ( " ( " + unitCost + " ) " ) . append ( " -- " ) ; byte bName = fv . getByteFeature ( fiName ) ; if ( fv . getByteFeature ( fiName ) != 0 && targetFeatures . getByteFeature ( fiName ) != 0 ) { sb . append ( " " ) . append ( fv . getFeatureAsString ( fiName , fd ) ) ; } if ( fv . getByteFeature ( fiVQ ) != 0 && targetFeatures . getByteFeature ( fiName ) != 0 ) { sb . append ( " " ) . append ( fv . getFeatureAsString ( fiVQ , fd ) ) ; } if ( fv . getByteFeature ( fiIntonation ) != 0 && targetFeatures . getByteFeature ( fiIntonation ) != 0 ) { sb . append ( " " ) . append ( fv . getFeatureAsString ( fiIntonation , fd ) ) ; } for ( int j = 0 ; j < targetFeatures . getLength ( ) ; j ++ ) { if ( targetFeatures . isContinuousFeature ( j ) && ! Float . isNaN ( ( Float ) targetFeatures . getFeature ( j ) ) && ! Float . isNaN ( ( Float ) fv . getFeature ( j ) ) ) { String featureName = fd . getFeatureName ( j ) ; sb . append ( " " ) . append ( featureName ) . append ( "=" ) . append ( fv . getFeature ( j ) ) ; } } Log . d ( Mary . LOG , sb . toString ( ) ) ; } }

Mensajes de depuración para candidatos seleccionados


private static final List < AttackResult > splitPhysicalDamage  ( final Creature attacker , final Creature attacked , int hitCount , int damage , AttackStatus status , List < AttackResult > attackList ) { WeaponType weaponType ; switch ( AttackStatus . getBaseStatus ( status ) ) { case BLOCK : int reduce = damage - attacked . getGameStats ( ) . getPositiveReverseStat ( StatEnum . DAMAGE_REDUCE , damage ) ; if ( attacked instanceof Player ) { Item shield = ( ( Player ) attacked ) . getEquipment ( ) . getEquippedShield ( ) ; if ( shield != null ) { int reduceMax = shield . getItemTemplate ( ) . getWeaponStats ( ) . getReduceMax ( ) ; if ( reduceMax > 0 && reduceMax < reduce ) { reduce = reduceMax ; } } } damage -= reduce ; break ; case DODGE : damage = 0 ; break ; case PARRY : damage *= 0.6 ; break ; default : break ; } if ( status . isCritical ( ) ) { if ( attacker instanceof Player ) { weaponType = ( ( Player ) attacker ) . getEquipment ( ) . getMainHandWeaponType ( ) ; damage = ( int ) calculateWeaponCritical ( attacked , damage , weaponType , StatEnum . PHYSICAL_CRITICAL_DAMAGE_REDUCE ) ; applyEffectOnCritical ( ( Player ) attacker , attacked ) ; } else { damage = ( int ) calculateWeaponCritical ( attacked , damage , null , StatEnum . PHYSICAL_CRITICAL_DAMAGE_REDUCE ) ; } } if ( damage < 1 ) { damage = 0 ; } int firstHit = ( int ) ( damage * ( 1f - ( 0.1f * ( hitCount - 1 ) ) ) ) ; int otherHits = Math . round ( damage * 0.1f ) ; for ( int i = 0 ; i < hitCount ; i ++ ) { int dmg = ( i == 0 ? firstHit : otherHits ) ; attackList . add ( new AttackResult ( dmg , status , HitType . PHHIT ) ) ; } return attackList ; }

Generar resultados de ataque basados en el recuento de golpes de armas


public JsonParser ( ) { this  ( StandardCharsets . UTF_8 ) ; }

Construye un analizador JSON que utiliza la característica UTF-8 para decodificar los datos de entrada


public SootClass resolveClass  ( String className , int desiredLevel ) { SootClass resolvedClass = null ; try { resolvedClass = makeClassRef ( className ) ; addToResolveWorklist ( resolvedClass , desiredLevel ) ; processResolveWorklist ( ) ; return resolvedClass ; } catch ( SootClassNotFoundException e ) { if ( resolvedClass != null ) { assert resolvedClass . resolvingLevel ( ) == SootClass . DANGLING ; Scene . v ( ) . removeClass ( resolvedClass ) ; } throw e ; } }

Resuelve la clase dada.Dependiendo de la configuración del resolutor, puede decidir resolver otras clases también.Si la clase ya se ha resuelto, simplemente devuelva la clase que ya se resolvió.


public DefaultVocabCache ( int minWordFrequency ) { this . minWordFrequency = minWordFrequency ; }

Instantiate con una frecuencia mínima de la palabra


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


public static SM_SYSTEM_MESSAGE STR_GATHER_SUCCESS_4_FISHING  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1330019 , value0 ) ; }


public void stem  ( ) { k = i - 1 ; if ( k > 1 ) { step1 ( ) ; step2 ( ) ; step3 ( ) ; step4 ( ) ; step5 ( ) ; step6 ( ) ; } i_end = k + 1 ; i = 0 ; }

STEM La palabra colocada en el tampón del muesco a través de las llamadas para agregar ().Devuelve VERDADERO si el proceso de stemming resultó en una palabra diferente de la entrada.Puede recuperar el resultado con getResultLength () / getResultBuffer () o Tostring ().


@ Override public boolean equals  ( Object o ) { if ( o == null ) return false ; if ( o == this ) return true ; if ( ! ( o instanceof Attribute ) ) return false ; final Attribute attribute = ( Attribute ) o ; if ( name != null ? ! name . equals ( attribute . name ) : attribute . name != null ) return false ; if ( compareValue ) if ( value != null ? ! value . equals ( attribute . value ) : attribute . value != null ) return false ; return true ; }

Devuelve VERDADERO si los nombres de los atributos son los mismos.


protected void doOptimizedEval  ( final Semaphore sSem , PrintStream pOverallResultsOutStream , int WordNGramSize_Min , int WordNGramSize_Max , int Word_Dmax , int CharacterNGramSize_Min , int CharacterNGramSize_Max , int Character_Dmax , boolean bDoCharNGrams , boolean bDoWordNGrams , String sSummaryDir , String sModelDir , int iThreads , boolean bSilent , boolean bProgress ) { if ( pOverallResultsOutStream == null ) pOverallResultsOutStream = System . out ; ThreadList tqRobin = new ThreadList ( iThreads ) ; DocumentSet dsSummarySet = new DocumentSet ( sSummaryDir , 1.0 ) ; final DocumentSet dsModelSet = new DocumentSet ( sModelDir , 1.0 ) ; dsSummarySet . createSets ( ) ; dsModelSet . createSets ( ) ; HashMap hmCategoryResults = new HashMap ( ) ; if ( dsSummarySet . getTrainingSet ( ) . size ( ) * dsModelSet . getTrainingSet ( ) . size ( ) == 0 ) { System . err . println ( "Empty document set..." ) ; System . exit ( - 1 ) ; } pOverallResultsOutStream . print ( "Theme\t" ) ; pOverallResultsOutStream . print ( "SystemID\t" ) ; if ( bDoWordNGrams ) { pOverallResultsOutStream . print ( "GraphCooccurence\t" ) ; pOverallResultsOutStream . print ( "GraphValue\t" ) ; pOverallResultsOutStream . print ( "GraphSize\t" ) ; pOverallResultsOutStream . print ( "HistoContainmentSimilarity\t" ) ; pOverallResultsOutStream . print ( "HistoValue\t" ) ; pOverallResultsOutStream . print ( "HistoSize\t" ) ; pOverallResultsOutStream . print ( "OverallSimil\t" ) ; } if ( bDoCharNGrams ) { pOverallResultsOutStream . print ( "CharGraphCooccurence\t" ) ; pOverallResultsOutStream . print ( "CharGraphValue\t" ) ; pOverallResultsOutStream . print ( "CharGraphSize\t" ) ; pOverallResultsOutStream . print ( "NHistoContainmentSimilarity\t" ) ; pOverallResultsOutStream . print ( "NHistoValue\t" ) ; pOverallResultsOutStream . print ( "NHistoSize\t" ) ; pOverallResultsOutStream . print ( "NOverallSimil\t" ) ; } pOverallResultsOutStream . println ( ) ; int iTotal = dsSummarySet . getTrainingSet ( ) . size ( ) ; int iCur = 0 ; Iterator iCatIter = dsModelSet . getCategories ( ) . iterator ( ) ; Date dStart = new Date ( ) ; while ( iCatIter . hasNext ( ) ) { String sCurCategory = ( String ) iCatIter . next ( ) ; if ( ! bSilent ) System . err . println ( "Processing category:" + sCurCategory ) ; hModelCache . clear ( ) ; hNModelCache . clear ( ) ; List lModelFiles = dsModelSet . getFilesFromCategory ( sCurCategory ) ; Iterator iIter = dsSummarySet . getFilesFromCategory ( sCurCategory , dsSummarySet . FROM_TRAINING_SET ) . iterator ( ) ; while ( iIter . hasNext ( ) ) { final CategorizedFileEntry cfeCur = ( CategorizedFileEntry ) iIter . next ( ) ; Runnable r = new GaussCalcSimilRunner ( WordNGramSize_Min , WordNGramSize_Max , Word_Dmax , CharacterNGramSize_Min , CharacterNGramSize_Max , Character_Dmax , cfeCur , lModelFiles , sSem , bDoCharNGrams , bDoWordNGrams , pOverallResultsOutStream , bSilent , this , WeightMethod , Progress ) ; while ( ! tqRobin . addThreadFor ( r ) ) Thread . yield ( ) ; Date dCurTime = new Date ( ) ; long lRemaining = ( iTotal - iCur + 1 ) * ( long ) ( ( double ) ( dCurTime . getTime ( ) - dStart . getTime ( ) ) / iCur ) ; if ( ! bSilent || ( bProgress ) ) System . err . print ( "Completed " + String . format ( "%7.4f" , ( double ) iCur ++ / iTotal * 100 ) + "%" + String . format ( " - Remaining %50s\r" , gr . demokritos . iit . jinsect . utils . millisToMinSecString ( lRemaining ) ) ) ; } } try { tqRobin . waitUntilCompletion ( ) ; } catch ( InterruptedException ex ) { System . err . println ( "Could not complete execution of all tasks." ) ; ex . printStackTrace ( System . err ) ; } System . err . println ( "Completed 100%. A total of " + iTotal + " comparisons were " + "performed." ) ; }

Realiza una evaluación optimizada de un conjunto dado de resúmenes, dado un directorio modelo.


public synchronized void writeTo  ( OutputStream out ) throws IOException { int remaining = count ; for ( byte [ ] buf : buffers ) { int c = Math . min ( buf . length , remaining ) ; out . write ( buf , 0 , c ) ; remaining -= c ; if ( remaining == 0 ) { break ; } } }

Escribe todo el contenido de este flujo de bytes al flujo de salida especificado.


public < T > T  inject ( Class < T > clazz , String framePath )  { return inject ( clazz , FramePath . parsePath ( framePath ) ) ; }

Analice la ruta proporcionada como una cadena y luego llame a la llamada (Clase & LT; T & GT; CLAZZ, Framepath Framepath).


public QRDecomposition ( RealMatrix matrix , double threshold ) { this . threshold = threshold ; final int m = matrix . getRowDimension ( ) ; final int n = matrix . getColumnDimension ( ) ; qrt = matrix . transpose ( ) . getData ( ) ; rDiag = new double [ FastMath . min ( m , n ) ] ; cachedQ = null ; cachedQT = null ; cachedR = null ; cachedH = null ; decompose ( qrt ) ; }

Calcula la descomposición QR de la matriz dada.


public static String formatCurrency  ( double price , String isoCode , Locale locale , int maximumFractionDigits ) { com . ibm . icu . text . NumberFormat nf = com . ibm . icu . text . NumberFormat . getCurrencyInstance ( locale ) ; if ( isoCode != null && isoCode . length ( ) > 1 ) { nf . setCurrency ( com . ibm . icu . util . Currency . getInstance ( isoCode ) ) ; } else { if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "No isoCode specified to format currency value:" + price , module ) ; } if ( maximumFractionDigits >= 0 ) { nf . setMaximumFractionDigits ( maximumFractionDigits ) ; } return nf . format ( price ) ; }

Formats un doble en una cadena de moneda correctamente formateada basada en isocode y locale


public boolean lessThan  ( DMatch it ) { return distance < it . distance ; }


int readCorner3  ( int numRows , int numColumns ) { int currentByte = 0 ; if ( readModule ( numRows - 1 , 0 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( numRows - 1 , numColumns - 1 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 0 , numColumns - 3 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 0 , numColumns - 2 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 0 , numColumns - 1 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 1 , numColumns - 3 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 1 , numColumns - 2 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 1 , numColumns - 1 , numRows , numColumns ) ) { currentByte |= 1 ; } return currentByte ; }

 Lee los 8 bits de la condición de esquina especial 3.

 Ver ISO 16022: 2006, Figura F.5


public TextMessage createTextMessage  ( String text ) throws JMSException { ensureOpen ( ) ; GSTextMessageImpl textMsg = new GSTextMessageImpl ( this , text ) ; return textMsg ; }

Crea un objeto FIGITED <COIGE> TextSage </ Code>.Se utiliza un objeto <código> TextMessage </ code> para enviar un mensaje que contiene una cadena </ code>.


@ SafeVarargs public static final < T > List < T > distinctUnion  ( final List < T > ... lists ) { final List < T > union = new UniqueArrayList < > ( ) ; for ( List < T > list : lists ) { union . addAll ( list ) ; } return union ; }

Sindicatos La matriz dada de listas en una sola lista con elementos distintos.


@ Override public void startConditional  ( short type , Augmentations augs ) throws XNIException { }


public SpaceTypeDescriptorBuilder addFixedProperty  ( String propertyName , Class < ? > propertyType , SpaceDocumentSupport documentSupport ) { return addFixedProperty ( propertyName , propertyType , documentSupport , StorageType . DEFAULT ) ; }

Agrega una propiedad al conjunto de propiedades fijas.


public void enqueue  ( RemoteEvent theEvent ) { EntryArrivedRemoteEvent event = ( EntryArrivedRemoteEvent ) theEvent ; SingleProducer producer = getProducer ( event ) ; while ( ! _interrupted && ! tryInsert ( event ) ) { Thread currentThread = Thread . currentThread ( ) ; producer . orderedThreadEventsMap . put ( theEvent . getSequenceNumber ( ) , currentThread ) ; if ( tryInsert ( event ) ) { producer . orderedThreadEventsMap . remove ( theEvent . getSequenceNumber ( ) ) ; break ; } if ( ! _interrupted ) LockSupport . park ( ) ; } }

Agregar nuevo objeto de evento a la cola.La operación bloqueará si: la cola excedió su número máximo de secuencia de capacidades y eventos excedió el número máximo de secuencia en la cola,


Crea un nuevo sumador con la suma inicial de cero.


protected LogicalTable generateTable  ( String tableName , Granularity granularity , LogicalTableDictionary tableDictionary ) throws BadApiRequestException { LogicalTable generated = tableDictionary . get ( new TableIdentifier ( tableName , granularity ) ) ; if ( generated == null ) { String msg = TABLE_GRANULARITY_MISMATCH . logFormat ( granularity , tableName ) ; LOG . error ( msg ) ; throw new BadApiRequestException ( msg ) ; } LOG . trace ( "Generated logical table: {} with granularity {}" , generated , granularity ) ; return generated ; }

Extrae un objeto de tabla lógico específico dado un nombre de tabla válido y una granularidad válida.


public void update  ( ) { if ( classificationViewer . getTree ( ) . getNumberOfNodes ( ) > 1 ) { removeAll ( ) ; id2node . clear ( ) ; inducedTree . clear ( ) ; id2NodesInInducedTree . clear ( ) ; if ( classificationViewer . getDocument ( ) . getNumberOfReads ( ) > 0 ) classificationViewer . computeInduceTreeWithNoCollapsedNodes ( inducedTree , id2NodesInInducedTree ) ; final Node root = classificationViewer . getClassification ( ) . getFullTree ( ) . getRoot ( ) ; final int id = ( Integer ) root . getInfo ( ) ; final MyJTreeNode node = new MyJTreeNode ( root ) ; final DefaultTreeModel model = ( DefaultTreeModel ) getModel ( ) ; model . setRoot ( node ) ; id2node . put ( id , node ) ; setRootVisible ( true ) ; setShowsRootHandles ( true ) ; addChildren ( node ) ; } }


public static ServiceItem [ ] toServiceItem  ( ArrayList reps ) { ServiceItem [ ] items = null ; if ( reps != null ) { items = new ServiceItem [ reps . size ( ) ] ; for ( int i = items . length ; -- i >= 0 ; ) { items [ i ] = ( ( Item ) reps . get ( i ) ) . get ( ) ; } } return items ; }

Convierte un arraylist de artículo a una matriz de servicio de servicio.


public Builder dlConf  ( DistributedLogConfiguration dlConf ) { this . _dlConf = dlConf ; return this ; }


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

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


public boolean contains  ( Split split ) { return split2index . keySet ( ) . contains ( split ) ; }

Determina si la división dada ya está contenida en el sistema.


public void removeTable  ( String tableUniquName ) { tableInfoMap . remove ( convertToLowerCase ( tableUniquName ) ) ; }


private void validateMergingLaunches  ( List < Launch > launches , User user , Project project ) { expect ( launches . size ( ) , not ( equalTo ( 0 ) ) ) . verify ( BAD_REQUEST_ERROR , launches ) ; boolean isUserValidate = ! ( user . getRole ( ) . equals ( ADMINISTRATOR ) || project . getUsers ( ) . get ( user . getId ( ) ) . getProjectRole ( ) . getRoleLevel ( ) >= LEAD . getRoleLevel ( ) ) ; launches . stream ( ) . forEach ( null ) ; }

Validaciones para combinar los parámetros y datos de solicitud


private void sendBroadcastNewOperation  ( Target target , RemoteOperation operation ) { Intent intent = new Intent ( ACTION_OPERATION_ADDED ) ; if ( target . mAccount != null ) { intent . putExtra ( EXTRA_ACCOUNT , target . mAccount ) ; } else { intent . putExtra ( EXTRA_SERVER_URL , target . mServerUrl ) ; } sendStickyBroadcast ( intent ) ; }

Envía una transmisión cuando se agrega una nueva operación a la cola.Las transmisiones locales solo se entregan a las actividades en el mismo proceso, pero no se pueden hacer pegajosas: \


public void initializeLogging  ( ) { LogWrapper logWrapper = new LogWrapper ( ) ; Log . setLogNode ( logWrapper ) ; Log . i ( TAG , "Ready" ) ; }

Configure objetivos para recibir datos de registro


public final void removePropertyChangeListener  ( String propertyName , PropertyChangeListener listener ) { getChangeSupport ( ) . removePropertyChangeListener ( propertyName , listener ) ; }

Retire un campingHangelistedor para una propiedad específica.Si se agregó más de una vez a la misma fuente de evento para la propiedad especificada, se notificará una vez menos después de ser eliminado.Si <code> PropertyName </ Code> es nulo, no se tira ninguna excepción y no se toma ninguna acción.Si <code> el oyente </ code> es nulo, o nunca se agregó para la propiedad especificada, no se tira ninguna excepción y no se toma ninguna acción.


EventOccurrence ( final Action action , final FieldODEState < T > newState , final T stopTime )  { this . action = action ; this . newState = newState ; this . stopTime = stopTime ; }


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

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


private synchronized void trim  ( ) { while ( mCurrentSize > mSizeLimit ) { byte [ ] buf = mBuffersByLastUse . remove ( 0 ) ; mBuffersBySize . remove ( buf ) ; mCurrentSize -= buf . length ; } }

Elimina los tampones de la piscina hasta que esté bajo su límite de tamaño.


private void resize  ( ) { Entry [ ] oldTab = table ; int oldLen = oldTab . length ; int newLen = oldLen * 2 ; Entry [ ] newTab = new Entry [ newLen ] ; int count = 0 ; for ( int j = 0 ; j < oldLen ; ++ j ) { Entry e = oldTab [ j ] ; if ( e != null ) { int h = e . key . hashCode & ( newLen - 1 ) ; while ( newTab [ h ] != null ) h = nextIndex ( h , newLen ) ; newTab [ h ] = e ; count ++ ; } } setThreshold ( newLen ) ; size = count ; table = newTab ; }


public void processReadHits  ( ) throws CanceledException  { if ( getMeganFile ( ) . hasDataConnector ( ) ) { try { final int readsFound = DataProcessor . apply ( this ) ; { getSampleAttributeTable ( ) . addAttribute ( "Size" , numberReads , true ) ; } try { saveAuxiliaryData ( ) ; } catch ( IOException e ) { Basic . caught ( e ) ; } if ( readsFound > getNumberOfReads ( ) ) setNumberReads ( readsFound ) ; if ( getNumberOfReads ( ) == 0 && getDir ( ) != null ) getDir ( ) . getMainViewer ( ) . collapseToDefault ( ) ; if ( sampleAttributeTable . getSampleOrder ( ) . size ( ) == 0 ) sampleAttributeTable . setSampleOrder ( getSampleNames ( ) ) ; } finally { getProgressListener ( ) . setCancelable ( true ) ; } } lastRecomputeTime = System . currentTimeMillis ( ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_protect_PROTECT_SKILL_HEAL_A_to_ME  ( String protector , int num0 , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201179 , protector , num0 , skillcaster , skillname ) ; }

[% Protector] recibió el daño de% NUM0 infligido por [% de habilidades de habilidad] [%], debido al efecto de protección.


public ResponsePacket visit  ( SetAutoCommitRequest request , QuerySession session ) throws LeaseDeniedException , RemoteException , TransactionException { ResponsePacket response = new ResponsePacket ( ) ; if ( request . isAutoCommit ( ) == session . isAutoCommit ( ) ) return response ; if ( request . isAutoCommit ( ) ) { if ( session . getTransaction ( ) != null ) try { session . getTransaction ( ) . abort ( ) ; } catch ( Exception e ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , "Failed to abort transaction." , e ) ; } } session . setTransaction ( null ) ; session . clearUnderTransaction ( ) ; } else { session . setTransaction ( createTransaction ( ) ) ; } session . setAutoCommit ( request . isAutoCommit ( ) ) ; session . setSelectedForUpdate ( null ) ; response . setIntResult ( 0 ) ; return response ; }

Manejar el ajuste automático [OFF OFF] Solicitud


protected int doSocketRead  ( ByteBuffer destinationBuffer ) throws IOException { return this . socketChannel . read ( destinationBuffer ) ; }

Un método que se puede sobrescribir en las clases simuladas, para no leer de un socketchannel, pero desde por ejemplo.una matriz de bytes predefinidos.


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

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


private void initCleanerThreadIfNeeded  ( ) { if ( _entryVersionCleanerThread == null ) { synchronized ( this ) { if ( ! _cleanerThreadInitialized ) { ClassLoader origClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( SystemBoot . isRunningWithinGSC ( ) ) { ClassLoaderHelper . setContextClassLoader ( CommonClassLoader . getInstance ( ) , true ) ; } _entryVersionCleanerThread = new EntryVersionCleaner < V > ( this . getClass ( ) . getSimpleName ( ) , _freeEntryQueue , _entryInfos ) ; _entryVersionCleanerThread . start ( ) ; _cleanerThreadInitialized = true ; if ( SystemBoot . isRunningWithinGSC ( ) ) { ClassLoaderHelper . setContextClassLoader ( origClassLoader , true ) ; } } } } }

Inicie el hilo del limpiador solo una vez si es necesario


public void abort  ( ) { checkReady ( ) ; state = DONE ; LIB . mdb_txn_abort ( ptr ) ; }


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

Crea un <código> RoledataAccessException </ Code> con el mensaje de detalle y la causa especificados.


public char next  ( ) { char c = more ( ) ? this . mySource . charAt ( this . myIndex ) : 0 ; this . myIndex += 1 ; return c ; }

Obtenga el siguiente personaje en la cadena de origen.


public void load  ( String fileName ) throws IOException , MaryConfigurationException  { DataInputStream dis = null ; try { dis = new DataInputStream ( new BufferedInputStream ( new FileInputStream ( fileName ) ) ) ; } catch ( FileNotFoundException e ) { throw new RuntimeException ( "File [" + fileName + "] was not found." ) ; } try { hdr = new MaryHeader ( dis ) ; if ( hdr . getType ( ) != MaryHeader . LISTENERFEATS ) { throw new RuntimeException ( "File [" + fileName + "] is not a valid Mary Units file." ) ; } windowSize = dis . readFloat ( ) ; if ( this . windowSize <= 0 ) { throw new RuntimeException ( "File [" + fileName + "] has a negative number for window size. Aborting." ) ; } skipSize = dis . readFloat ( ) ; if ( this . skipSize <= 0 ) { throw new RuntimeException ( "File [" + fileName + "] has a negative number for window size. Aborting." ) ; } numberOfUnits = dis . readInt ( ) ; if ( numberOfUnits < 0 ) { throw new RuntimeException ( "File [" + fileName + "] has a negative number of units. Aborting." ) ; } contours = new double [ numberOfUnits ] [ ] ; coeffs = new double [ numberOfUnits ] [ ] ; voiced = new boolean [ numberOfUnits ] [ ] ; for ( int i = 0 ; i < numberOfUnits ; i ++ ) { int polyOrder = dis . readInt ( ) ; coeffs [ i ] = new double [ polyOrder ] ; for ( int j = 0 ; j < polyOrder ; j ++ ) { coeffs [ i ] [ j ] = dis . readFloat ( ) ; } int f0ContourLength = dis . readInt ( ) ; contours [ i ] = new double [ f0ContourLength ] ; voiced [ i ] = new boolean [ f0ContourLength ] ; Arrays . fill ( voiced [ i ] , false ) ; for ( int j = 0 ; j < f0ContourLength ; j ++ ) { contours [ i ] [ j ] = dis . readFloat ( ) ; if ( contours [ i ] [ j ] > 0 ) { voiced [ i ] [ j ] = true ; } } } } catch ( IOException e ) { throw new RuntimeException ( "Reading the Mary header from file [" + fileName + "] failed." , e ) ; } }


public boolean permitCallingEvictionStrategy  ( ) { if ( _needToRemoveFromEvictionStrategy || ! isInEvictionStrategy ( ) ) return false ; int res = _numOfCurrentEvictionStrategyCallersUpdater . incrementAndGet ( this ) ; return res > 0 ; }

¿Se puede llamar a la estrategia de desalojo?


private void fireUpdateReceivedEvent  ( ) { try { listenersLock . readLock ( ) . lock ( ) ; for ( BaseTagListener listener : listeners ) { listener . onUpdate ( this ) ; } } finally { listenersLock . readLock ( ) . unlock ( ) ; } }

Método privado para informar a los oyentes sobre una actualización de esta regla del cliente


public Circle ( final S2Point first , final S2Point second , final double tolerance ) { reset ( first . getVector ( ) . crossProduct ( second . getVector ( ) ) ) ; this . tolerance = tolerance ; }

Construye un gran círculo de dos puntos no alineados.<p> El círculo está orientado desde el primer a segundo punto utilizando la ruta más pequeña que \ (\ PI \). </ P>


public void or  ( Criteria criteria ) { oredCriteria . add ( criteria ) ; }

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


public void pushTemplateFolder  ( @ NotNull String folderName ) throws IOException { myLastTemplateFolders . push ( resolveName ( folderName ) ) ; }

Resuelva el nombre de foldername y presione la carpeta resultante como la última carpeta de plantillas.


public static XorSpacePredicate xor  ( ISpacePredicate leftPredicate , ISpacePredicate rightPredicate ) { return new XorSpacePredicate ( leftPredicate , rightPredicate ) ; }

Crea un predicado XOR envolviendo los predicados especificados.


public String toString  ( ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( "Taxa (" ) . append ( size ( ) ) . append ( "):\n" ) ; for ( Iterator it = iterator ( ) ; it . hasNext ( ) ; ) { String name = ( String ) it . next ( ) ; buf . append ( name ) . append ( "\n" ) ; } return buf . toString ( ) ; }


public static boolean needsAnnotationsJarInClasspath  ( @ NotNull IAndroidTarget target ) { return target . getVersion ( ) . getApiLevel ( ) <= 15 ; }

Indica si Anotations.jar debe agregarse a la carrera de un SDK de Android.Anotaciones. No es necesario para API 16 o más nuevo.Las anotaciones ya están incluidas en Android.jar.


public KeywordSearchTupleSet ( ) { m_lucene = new LuceneSearcher ( ) ; }

Crea un nuevo PalkSearchFocusset utilizando un índice de búsqueda en memoria.


public static java . sql . Timestamp toTimestamp  ( int month , int day , int year , int hour , int minute , int second ) { java . util . Date newDate = toDate ( month , day , year , hour , minute , second ) ; if ( newDate != null ) { return new java . sql . Timestamp ( newDate . getTime ( ) ) ; } else { return null ; } }

Hace una marca de tiempo desde un INTS separado durante el mes, el día, el año, la hora, el minuto y el segundo.


protected void onPrepareRequest  ( HttpUriRequest request ) throws IOException { }

Llamado antes de que se ejecute la solicitud usando el HTTPClient subyacente.<p> sobrescribir en subclases para aumentar la solicitud. </ p>


public Iterator neighbors  ( Node n ) { return new NeighborIterator ( n , edges ( n ) ) ; }

Obtenga un iterador sobre todos los nodos vecinos para el nodo dado en el gráfico.


public UseItemEggIncubatorResponse . Result incubate  ( EggIncubator incubator ) throws LoginFailedException , RemoteServerException { if ( incubator . isInUse ( ) ) { throw new IllegalArgumentException ( "Incubator already used" ) ; } return incubator . hatchEgg ( this ) ; }


public void addHeaderView  ( View view , int viewHeight ) { addHeaderView ( view , viewHeight , - 1 ) ; }

Agregar vista del encabezado con la altura del encabezado


public NGramDistroDocument ( ) { Graph = new DocumentNGramDistroGraph ( ) ; Histogram = new DocumentNGramHistogram ( ) ; }

Crea una nueva instancia de ngramdistrodocument.


public String makeStringLiteral  ( String value ) { if ( value == null ) { return this . literalDQStringDefault ; } else if ( value . isEmpty ( ) ) { return "\"\"" ; } else if ( ! value . contains ( "\"" ) ) { return "r\"" + value + "\"" ; } else { return "\"" + makeStringValue ( value ) + "\"" ; } }

Scipio: hace un literal de cadena Freemarker escape, incluida la cerradura de doble cotizaciones.<p> destinado a prevenir toda la ejecución / interpretación / interpolación dentro del literal de cadena.Puede o no puede producir una cadena cruda Freemarker, según corresponda.


private Options createOptions  ( ) { Options options = new Options ( ) ; Option optionHelp = new Option ( "h" , "help" , false , "Print out the help documentation for this command line execution" ) ; optionHelp . setRequired ( false ) ; options . addOption ( optionHelp ) ; Option optionJar = new Option ( "j" , "jar" , true , "required -- Fully qualified jar file" ) ; optionJar . setRequired ( false ) ; options . addOption ( optionJar ) ; String tests = "testNum = 1: Wideskies Tests\n" ; tests += "Subtests:\n" ; tests += "E - Elasticsearch MapReduce\n" ; tests += "J - JSON/HDFS MapReduce\n" ; tests += "ES - Elasticsearch Spark \n" ; tests += "JS - JSON/HDFS Spark \n" ; tests += "SS - Spark Streaming Tests \n" ; tests += "JSS - JSON/HDFS Spark Streaming \n" ; tests += "ESS - Elasticsearch Spark Streaming \n" ; Option optionTestSelection = new Option ( "t" , "tests" , true , "optional -- Select which tests to execute: \n" + tests ) ; optionTestSelection . setRequired ( false ) ; optionTestSelection . setArgName ( "<testNum>:<subtestDesignator>" ) ; optionTestSelection . setType ( String . class ) ; options . addOption ( optionTestSelection ) ; return options ; }

Crea las opciones disponibles para el DistributedTestDriver.


public static Patterns jars  ( String [ ] includes ) { return new Patterns ( includes , new String [ ] { } ) ; }

Establece los patrones de jarra para escanear


public ChangeSet addAllToCollection  ( String path , Collection < ? extends Serializable > newItems ) { return add ( new AddAllToCollectionSpaceEntryMutator ( path , newItems ) ) ; }

Agrega los artículos dados a una propiedad de colección


public boolean enabled  ( ) { return soot . PhaseOptions . getBoolean ( options , "enabled" ) ; }


@ Deprecated public short toDamageValue  ( ) { return 0 ; }

Convierte esta poción a un daño válido de poción corta, utilizable para las pilas de artículos de poción.


public static boolean checkPermission  ( Context context , String ... permissions ) { return PermissionUtils . getDeniedPermissions ( context , permissions ) . length <= 0 ; }


public Base64OutputStream ( OutputStream outputStream , int wrapAt ) { this . outputStream = outputStream ; this . linelength = wrapAt ; }

 Construye una transmisión de salida de codificación base64 que escribe los datos codificados en el flujo subyacente dado.

 Los datos codificados se envuelven a una nueva línea (con una secuencia de CRLF) cada  Wrapat  bytes enviados a la corriente subyacente.Si el valor suministrado  WRAPAT  es inferior a 1, los datos codificados no se envolverán.


public void inverseRotateVect  ( Vector3f vec ) { float vx = vec . x , vy = vec . y , vz = vec . z ; vec . x = vx * m00 + vy * m10 + vz * m20 ; vec . y = vx * m01 + vy * m11 + vz * m21 ; vec . z = vx * m02 + vy * m12 + vz * m22 ; }

<Código> InverserotateVect </ code> gira un vector3F dado por la parte de rotación de esta matriz.


public static String toStringUnpacked  ( byte [ ] unpacked ) { StringBuilder buf = new StringBuilder ( ) ; for ( byte a : unpacked ) buf . append ( String . format ( "%d" , a ) ) ; return buf . toString ( ) ; }

Secuencia de informes en formato desempaquetado de legislación humana.


public boolean zip  ( File [ ] src , File dest ) { return false ; }

Implementando en su proyecto, agrupe los archivos en un archivo zip.


public boolean naive  ( ) { return soot . PhaseOptions . getBoolean ( options , "naive" ) ; }

Construir gráfico de dependencia ingenuo -.Cuando se establece en VERDADERO, el gráfico de dependencia se construye con un nodo para cada declaración, sin fusionar los nodos para declaraciones equivalentes.Esto hace posible medir el efecto de fusionar nodos para declaraciones equivalentes sobre el tamaño del gráfico de dependencia.


public static byte [ ] hash  ( byte [ ] data , int offset , int len ) { try { MessageDigest a = MessageDigest . getInstance ( "SHA-256" ) ; a . update ( data , offset , len ) ; return a . digest ( ) ; } catch ( NoSuchAlgorithmException e ) { throw new RuntimeException ( e ) ; } }


public Row ( String json ) { set ( json ) ; }


public void addSample  ( String sample , Document docToAdd ) { getDataTable ( ) . addSample ( sample , docToAdd . getDataTable ( ) ) ; Set < String > samples = new HashSet < > ( ) ; samples . add ( sample ) ; getSampleAttributeTable ( ) . addTable ( docToAdd . getSampleAttributeTable ( ) . extractTable ( samples ) , false , true ) ; }

Añadir la muestra nombrada para el documento dado


private double [ ] computeMedians  ( int [ ] sample1 , int [ ] sample2 , int resamplingSize , int repeats ) throws CanceledException { assert ( sample1 . length == sample2 . length ) ; int length = sample1 . length ; int [ ] [ ] diff = new int [ repeats ] [ length ] ; progressListener . setSubtask ( "random sampling" ) ; progressListener . setMaximum ( repeats ) ; for ( int i = 0 ; i < repeats ; i ++ ) { int [ ] N1 = getRandomSample ( sample1 , resamplingSize ) ; int [ ] N2 = getRandomSample ( sample2 , resamplingSize ) ; diff [ i ] = getAbsoluteDifference ( N1 , N2 ) ; progressListener . setProgress ( i ) ; } progressListener . setSubtask ( "computing medians" ) ; progressListener . setMaximum ( - 1 ) ; progressListener . setProgress ( - 1 ) ; double [ ] median = new double [ length ] ; for ( int j = 0 ; j < length ; j ++ ) { int [ ] row = extractRow ( diff , j ) ; median [ j ] = getMedian ( row ) ; progressListener . setProgress ( j ) ; } return median ; }

Calcula las medianas para las dos muestras.


public String indexName  ( ) { return idxName ; }


public static DataFrame normalize  ( DataFrame dataFrame , double min , double max ) { return normalize ( dataFrame , min , max , Collections . < String > emptyList ( ) ) ; }


public static void d  ( String tag , String s , Object ... args ) { if ( LOG . DEBUG >= LOGLEVEL ) Log . d ( tag , String . format ( s , args ) ) ; }

Mensaje de registro de depuración con Formato de impresión.


public static boolean isMultiTenantEnabled  ( ) { return "Y" . equalsIgnoreCase ( UtilProperties . getPropertyValue ( "general.properties" , "multitenant" ) ) ; }

Devuelve <código> True </ code> si se ha habilitado multi-inquilino.<P> Las características de múltiples inquilinos están habilitadas configurando la propiedad <código> Multitenant </ Code> en <Code> General.properties </ Code> a "Y". </ P>


public boolean usedDevice  ( @ NotNull IDevice device ) { return myDevicesUsedInLaunch . contains ( device . getSerialNumber ( ) ) ; }

Si el dispositivo dado se usó en este lanzamiento.


public static void addPattern  ( String emojiText , Object icon ) { emoticons . put ( Pattern . compile ( Pattern . quote ( emojiText ) ) , icon ) ; }


public ListModel ( final Object [ ] items ) { for ( int i = 0 ; i < items . length ; ++ i ) m_items . add ( items [ i ] ) ; }

Cree un elemento listmoel con los elementos proporcionados.


private Point estimateContentSize  ( ) { Point screenSize = new Point ( ) ; WindowManager wm = ( WindowManager ) mApplication . getSystemService ( Context . WINDOW_SERVICE ) ; wm . getDefaultDisplay ( ) . getSize ( screenSize ) ; Resources resources = mApplication . getResources ( ) ; int statusBarId = resources . getIdentifier ( "status_bar_height" , "dimen" , "android" ) ; try { screenSize . y -= resources . getDimensionPixelSize ( R . dimen . custom_tabs_control_container_height ) ; screenSize . y -= resources . getDimensionPixelSize ( statusBarId ) ; } catch ( Resources . NotFoundException e ) { } float density = resources . getDisplayMetrics ( ) . density ; screenSize . x /= density ; screenSize . y /= density ; return screenSize ; }

Proporciona una estimación del tamaño del contenido.La estimación es probable que sea incorrecta.Esto no es un problema, ya que el objetivo es evitar obtener un diseño y recursos diferentes de lo necesario en Render Time.


public static boolean isConcreteType  ( @ NotNull TypeMirror typeMirror ) { if ( typeMirror . getKind ( ) == TypeKind . TYPEVAR ) { return false ; } if ( isPrimitive ( typeMirror , sTypeUtils ) ) { return true ; } if ( typeMirror instanceof DeclaredType ) { List < ? extends TypeMirror > typeMirrors = ( ( DeclaredType ) typeMirror ) . getTypeArguments ( ) ; for ( TypeMirror type : typeMirrors ) { if ( type . getKind ( ) == TypeKind . TYPEVAR ) { return false ; } } } return true ; }

Determina si el TypeMirror es o no un tipo de concreto.Si el tipo es un tipo genérico o contiene argumentos de tipo genérico (es decir, un tipo parameriado), este método devolverá falso.


public boolean hasAny  ( ) { return partitions != null && ! partitions . isEmpty ( ) ; }

Indica si esta instancia tiene alguna partición.