public static void main  ( String [ ] sArgs ) { TAC2008UpdateSummarizationFileSet t = new TAC2008UpdateSummarizationFileSet ( "/home/ggianna/JInsect/TAC2008/UpdateSumm08_test_docs_files/" ) ; t . createSets ( ) ; System . err . println ( "Training set:" ) ; System . err . println ( utils . printIterable ( t . getTrainingSet ( ) , "\n" ) ) ; System . err . println ( "Training set:" ) ; System . err . println ( utils . printIterable ( t . getTestSet ( ) , "\n" ) ) ; System . err . println ( "Per category:" ) ; for ( String sCategory : ( List < String > ) t . getCategories ( ) ) { System . err . println ( utils . printIterable ( t . getFilesFromCategory ( sCategory ) , "\n" ) ) ; } String sLastCat = ( String ) t . getCategories ( ) . get ( t . getCategories ( ) . size ( ) - 1 ) ; String sFile = ( ( CategorizedFileEntry ) t . getFilesFromCategory ( sLastCat ) . get ( 0 ) ) . getFileName ( ) ; System . out . println ( t . loadFile ( sFile ) ) ; }


public Property addNodeProperty  ( String nodePath , String propertyName , String propertyValue , int propertyType ) throws RepositoryException { LOG . debug ( "Adding property '{}'='{}' to node '{}'" , propertyName , propertyValue , nodePath ) ; session . refresh ( true ) ; Node node = session . getNode ( nodePath ) ; Property property = node . setProperty ( propertyName , propertyValue , propertyType ) ; session . save ( ) ; return property ; }

Agrega la propiedad al nodo debajo de la ruta especificada.


public static UShort valueOf  ( int value ) throws NumberFormatException  { return new UShort ( value ) ; }

Crear un <código> sin firmar corto </ code>


protected AbstractFormat ( final NumberFormat format ) { this ( format , ( NumberFormat ) format . clone ( ) ) ; }

Cree una instancia de formato inadecuada con un formato de número personalizado tanto para el numerador como para el denominador.


@ Override public int hashCode  ( ) { return 37 * ( 37 * 17 + numerator ) + denominator ; }


public static void w  ( String tag , String msg , Throwable throwable ) { if ( sLevel > LEVEL_WARNING ) { return ; } Log . w ( tag , msg , throwable ) ; }

Enviar un mensaje de registro de advertencia


public UnregisterReplicationLocalViewRequestInfo ( ) { }


public HttpClient ( URL url , Map < String , Object > parameters ) { this . url = url . toExternalForm ( ) ; this . parameters = parameters ; }


public CountModifiers remove  ( CountModifiers modifiers ) { return createIfNeeded ( super . remove ( modifiers ) ) ; }

Crea una nueva instancia de modificadores que excluye los modificadores especificados de esta instancia.


public AccountLookupContactsQuery contacts  ( List < String > value ) { return unsafeParam ( "contacts" , value ) ; }


public Polygon2D ( int [ ] xpoints , int [ ] ypoints , int npoints ) { if ( npoints > xpoints . length || npoints > ypoints . length ) { throw new IndexOutOfBoundsException ( "npoints > xpoints.length || npoints > ypoints.length" ) ; } this . npoints = npoints ; this . xpoints = new float [ npoints ] ; this . ypoints = new float [ npoints ] ; for ( int i = 0 ; i < npoints ; i ++ ) { this . xpoints [ i ] = xpoints [ i ] ; this . ypoints [ i ] = ypoints [ i ] ; } calculatePath ( ) ; }

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


public boolean isNavigationAtBottom  ( ) { return ( mSmallestWidthDp >= 600 || mInPortrait ) ; }

¿Debería aparecer una barra de navegación en la parte inferior de la pantalla en la configuración del dispositivo actual?Puede aparecer una barra de navegación en el lado derecho de la pantalla en ciertas configuraciones.


public static boolean isNoReturnValue  ( int mod ) { return Modifiers . contains ( mod , UpdateModifiers . NO_RETURN_VALUE ) ; }

RETURSE <TT> True </ TT> Si el argumento entero incluye el modificador <TT> NO_RETURN_VALUE </ TT>, <TT> FALSO </ TT> de lo contrario.


public int delete_file1  ( String file_id ) throws IOException , MyException { String [ ] parts = new String [ 2 ] ; this . errno = this . split_file_id ( file_id , parts ) ; if ( this . errno != 0 ) { return this . errno ; } return this . delete_file ( parts [ 0 ] , parts [ 1 ] ) ; }

Eliminar archivo desde el servidor de almacenamiento


public BreadthFirstIterator ( Iterator it , int depth , int traversal ) { init ( it , depth , traversal ) ; }

Cree un nuevo FirstEstiterator que comienza a partir de los nodos de origen dados.


protected MarketDeleteAlbumQuery ownerId  ( int value ) { return unsafeParam ( "owner_id" , value ) ; }

Identificador del propietario de la colección Nota que la identificación de la comunidad en el parámetro 'propietario_id' debe ser un número negativo.Por ejemplo, 'propietario_id' = - 1 coincide con la comunidad [vk.com/apiclub|vk api]


public boolean isAssignableFrom  ( final Class < ? > other ) { if ( other == null ) { return false ; } if ( this . isParameterized ( ) ) { return false ; } return this . getRawType ( ) . isAssignableFrom ( other ) ; }

Prueba si este tipo es asignable de la otra clase;Devuelve VERDADERO si este tipo no está parametrizado y el tipo RAW está asignable.


public PhotosGetQuery extended  ( Boolean value ) { return unsafeParam ( "extended" , value ) ; }

Devuelva "gustos" adicionales, "Comentarios" y campos "Etiquetas"


@ Override public int searchOrderCount  ( OrderReqDto reqDto ) { return sessionTemplate . selectOne ( NAMESPACE + ".searchOrderCount" , reqDto ) ; }


public BoardGetTopicsQuery order  ( BoardGetTopicsOrder value ) { return unsafeParam ( "order" , value ) ; }

Orden de clasificación Si no se especifica ningún orden de clasificación, los temas se devuelven en el pedido especificado por el administrador del grupo.Los temas fijos se devuelven primero, independientemente de la clasificación.


public PaddingDecimalFormat ( String pattern , DecimalFormatSymbols symbols , int minLength ) { super ( pattern , symbols ) ; minimumLength = minLength ; }

Crea un paddingdecimalformat utilizando el patrón, los símbolos y la longitud mínima mínima.


@ Override public void resetMediaPlayer  ( ) { if ( SHOW_LOGS ) Logger . v ( TAG , ">> resetMediaPlayer, mCurrentPlayerState " + mCurrentPlayerState ) ; mPlayerHandler . pauseQueueProcessing ( TAG ) ; if ( SHOW_LOGS ) Logger . v ( TAG , "resetMediaPlayer, mCurrentPlayerState " + mCurrentPlayerState ) ; mPlayerHandler . clearAllPendingMessages ( TAG ) ; resetReleaseClearCurrentPlayer ( ) ; mPlayerHandler . resumeQueueProcessing ( TAG ) ; if ( SHOW_LOGS ) Logger . v ( TAG , "<< resetMediaPlayer, mCurrentPlayerState " + mCurrentPlayerState ) ; }

Este método deja de la reproducción actual y restablece MediaPlayer.Llámalo cuando ya no lo necesite.


public void Notify  ( Object oSender , Object oParams ) { double dVar = ( ( Double ) oParams ) . doubleValue ( ) ; long lLeft = ( long ) ( ( 1.0 - dVar ) * ( double ) ( new Date ( ) . getTime ( ) - dStart . getTime ( ) ) / dVar ) ; String sLeft ; if ( ( ( int ) ( dVar * 10000 ) % 5 ) == 0 ) { if ( dVar < 0.0001 ) sLeft = "Calculating remaining time..." ; else sLeft = String . format ( "%35s" , gr . demokritos . iit . jinsect . utils . millisToMinSecString ( lLeft ) ) ; System . err . print ( String . format ( "%5.3f%%" , ( ( Double ) oParams ) . doubleValue ( ) * 100.0 ) + " complete..." + sLeft + "\r" ) ; } }

Esperando un número doble como parámetro para indicar el progreso.


public HttpTemplateParser ( DiagCollector diagCollector , Location location , String template , int configVersion ) { this . diagCollector = diagCollector ; this . location = location ; this . template = template ; this . configVersion = configVersion ; Matcher matcher = CUSTOM_VERB_PATTERN . matcher ( template ) ; if ( matcher . find ( ) ) { this . customVerb = matcher . group ( 1 ) ; this . tokens = TOKEN_PATTERN . matcher ( template . substring ( 0 , matcher . start ( ) ) ) ; } else { this . customVerb = null ; this . tokens = TOKEN_PATTERN . matcher ( template ) ; } this . current = tokens . find ( ) ? tokens . group ( ) . trim ( ) : null ; }

Construye un analizador de plantillas.Los errores se informan al colector DIAG en la ubicación dada.


public int size  ( ) { return m_fields . length ; }

Devuelve el número de campos en este tipo de especificación.


static String [ ] splitOnTokens  ( String text ) { if ( text . indexOf ( '?' ) == - 1 && text . indexOf ( '*' ) == - 1 ) { return new String [ ] { text } ; } char [ ] array = text . toCharArray ( ) ; ArrayList < String > list = new ArrayList < String > ( ) ; StringBuilder buffer = new StringBuilder ( ) ; for ( int i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] == '?' || array [ i ] == '*' ) { if ( buffer . length ( ) != 0 ) { list . add ( buffer . toString ( ) ) ; buffer . setLength ( 0 ) ; } if ( array [ i ] == '?' ) { list . add ( "?" ) ; } else if ( list . isEmpty ( ) || i > 0 && list . get ( list . size ( ) - 1 ) . equals ( "*" ) == false ) { list . add ( "*" ) ; } } else { buffer . append ( array [ i ] ) ; } } if ( buffer . length ( ) != 0 ) { list . add ( buffer . toString ( ) ) ; } return list . toArray ( new String [ list . size ( ) ] ) ; }

Divide una cadena en una serie de tokens.El texto se divide por '?'y '*'.Donde se producen múltiples '*' ocurren consecutivamente en un solo '*'.


private void createFilterList  ( FilterNode node , List < Filter > filterList ) { for ( int index = 0 ; index < node . getChildCount ( ) ; index ++ ) { FilterNode filterNode = ( FilterNode ) node . getChildAt ( index ) ; Filter filter = addFilter ( filterNode ) ; filterList . add ( filter ) ; } }


public DatagramPacket readPacket  ( ) throws IOException  { DatagramPacket dp = new DatagramPacket ( new byte [ 65535 ] , 65535 ) ; try { socket . receive ( dp ) ; dp . setData ( Arrays . copyOf ( dp . getData ( ) , dp . getLength ( ) ) ) ; return dp ; } catch ( SocketTimeoutException e ) { return null ; } }

Lee un paquete del zócalo (no bloqueo).Si no se recibe ningún paquete, el método devolverá <CÓDIGO> NULL. </ CODE>


public void grow  ( double b ) { clip [ 6 ] += b ; clip [ 7 ] += b ; }

Cultive el ancho y la altura del clip por el valor dado.Las coordenadas mínimas se mantendrán sin cambios.


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


private OCFile ( Parcel source ) { mId = source . readLong ( ) ; mParentId = source . readLong ( ) ; mLength = source . readLong ( ) ; mCreationTimestamp = source . readLong ( ) ; mModifiedTimestamp = source . readLong ( ) ; mModifiedTimestampAtLastSyncForData = source . readLong ( ) ; mRemotePath = source . readString ( ) ; mLocalPath = source . readString ( ) ; mMimeType = source . readString ( ) ; mNeedsUpdating = source . readInt ( ) == 0 ; mFavorite = source . readInt ( ) == 1 ; mLastSyncDateForProperties = source . readLong ( ) ; mLastSyncDateForData = source . readLong ( ) ; mEtag = source . readString ( ) ; mShareByLink = source . readInt ( ) == 1 ; mPublicLink = source . readString ( ) ; mPermissions = source . readString ( ) ; mRemoteId = source . readString ( ) ; mNeedsUpdateThumbnail = source . readInt ( ) == 1 ; mIsDownloading = source . readInt ( ) == 1 ; mEtagInConflict = source . readString ( ) ; mShareWithSharee = source . readInt ( ) == 1 ; }


public GroupsGetMembersQueryWithFields ( VkApiClient client , Actor actor , UserField ... fields ) { super ( client , "groups.getMembers" , GetMembersFieldsResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; fields ( fields ) ; }

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


public static boolean isWindowsSystem  ( ) { return SYSTEM_SEPARATOR == WINDOWS_SEPARATOR ; }

Determina si el sistema de archivos de Windows está en uso.


@ MainThread public static void onPause  ( @ NonNull final String componentId ) { checkMainThread ( ) ; activeComponentIdsToTargets . remove ( componentId ) ; }

Llame a esto para señalar una "pausa" del componente dado.<p> No pasará ninguna otra ejecución para este componente.


public final ScheduledTask schedule  ( SchedulerTask task , Quantum interval ) { return schedule ( task , interval , true ) ; }

Horarios Una nueva tarea que se debe ejecutar con el intervalo dado, la tarea recién programada se extrae fuera de orden en el momento de la programación. El resultado de esta operación debe estar almacenado en caché por la persona que llama; De lo contrario, la tarea se incorporará inmediatamente.


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


public LeadsCompleteQuery ( VkApiClient client , String vkSid , String secret ) { super ( client , "leads.complete" , Complete . class ) ; vkSid ( vkSid ) ; secret ( secret ) ; }


public static void equals  ( final DataTagCacheObject dataTag1 , final DataTagCacheObject dataTag2 ) { equalsTag ( dataTag1 , dataTag2 ) ; assertEquals ( dataTag1 . getEquipmentId ( ) , dataTag2 . getEquipmentId ( ) ) ; assertEquals ( dataTag1 . getAddress ( ) . toConfigXML ( ) , dataTag2 . getAddress ( ) . toConfigXML ( ) ) ; assertEquals ( dataTag1 . getCacheTimestamp ( ) , dataTag2 . getCacheTimestamp ( ) ) ; assertEquals ( dataTag1 . getDaqTimestamp ( ) , dataTag2 . getDaqTimestamp ( ) ) ; assertEquals ( dataTag1 . getStatus ( ) , dataTag2 . getStatus ( ) ) ; assertEquals ( dataTag1 . getProcessId ( ) , dataTag2 . getProcessId ( ) ) ; assertEquals ( dataTag1 . isLogged ( ) , dataTag2 . isLogged ( ) ) ; }


public static boolean isMonth  ( String s ) { if ( isEmpty ( s ) ) return defaultEmptyOK ; return isIntegerInRange ( s , 1 , 12 ) ; }

IsMesth devuelve VERDADERO si la cadena S es un número de mes válido entre 1 y 12.


public static ByteBuffer createByteBuffer  ( int size ) { ByteBuffer buf = ByteBuffer . allocateDirect ( size ) . order ( ByteOrder . nativeOrder ( ) ) ; buf . clear ( ) ; if ( trackDirectMemory ) { trackingHash . put ( buf , ref ) ; } return buf ; }

Cree un nuevo byteBuffer del tamaño especificado.


@ Override public List < Period > generatePeriods  ( DateTimeUnit dateTimeUnit ) { org . hisp . dhis . calendar . Calendar cal = getCalendar ( ) ; dateTimeUnit . setMonth ( 1 ) ; dateTimeUnit . setDay ( 1 ) ; int year = dateTimeUnit . getYear ( ) ; List < Period > periods = Lists . newArrayList ( ) ; while ( year == dateTimeUnit . getYear ( ) ) { periods . add ( createPeriod ( dateTimeUnit , cal ) ) ; dateTimeUnit = cal . plusMonths ( dateTimeUnit , 3 ) ; } return periods ; }

Genera períodos trimestrales para todo el año en el que existe el inicio del período dado.


private boolean update  ( final Object pValue , final String pValueDesc , final Timestamp pTimestamp ) { boolean retval = false ; synchronized ( BUFFER_LOCK ) { if ( this . timestamp . before ( pTimestamp ) || this . timestamp . equals ( pTimestamp ) ) { this . value = pValue ; this . qualityCollection . clear ( ) ; this . qualityDescriptions . clear ( ) ; this . valueDesc = pValueDesc ; this . timestamp = pTimestamp ; retval = true ; } } return retval ; }

Actualiza los valores de esta instancia de <código> bufferObject </ código> (todo el estado no válido "se eliminan)


public JPanel createLegendPanel  ( ) { JPanel legendPanel = new JPanel ( ) ; legendPanel . setLayout ( new GridLayout ( 2 , 1 ) ) ; legendPanel . add ( getLegendPanel ( ) ) ; JPanel symbolTreePanel = getSymbolTree ( ) ; legendPanel . add ( symbolTreePanel ) ; return legendPanel ; }


int convertMouse  ( MouseEvent event ) { int result ; if ( panelFont == null ) return ( NO_MOUSE ) ; int colOff = event . getX ( ) - GRID_WIDTH - PANEL_MARGIN ; int colNum = colOff / horizStep ; int colRem = colOff % horizStep ; if ( ( colNum >= panelColumns ) || ( colRem < TEXT_MARGIN ) || ( colRem > ( horizStep - GRID_WIDTH - TEXT_MARGIN ) ) ) { return ( NO_MOUSE ) ; } int rowOff = event . getY ( ) - GRID_WIDTH - PANEL_MARGIN ; int rowNum = rowOff / vertiStep ; int rowRem = rowOff % vertiStep ; if ( ( rowRem < TEXT_MARGIN ) || ( rowRem > ( vertiStep - GRID_WIDTH - TEXT_MARGIN ) ) ) { return ( NO_MOUSE ) ; } result = cornerIndex + ( rowNum * panelColumns ) + colNum ; if ( result >= cellCount ) return ( NO_MOUSE ) ; return ( result ) ; }

Convertir el mouse.Convertir las coordenadas del mouse a un índice de células.Devuelve <no_mouse> si el mouse no está bien centrado en un carácter definido.


public static SM_SYSTEM_MESSAGE STR_QUEST_QIMSG_ACQUIRE  ( ) { return new SM_SYSTEM_MESSAGE ( 1300609 ) ; }


public static Map < String , Object > sendMailFromUrl  ( DispatchContext ctx , Map < String , ? extends Object > rcontext ) { Map < String , Object > sendMailContext = UtilMisc . makeMapWritable ( rcontext ) ; String bodyUrl = ( String ) sendMailContext . remove ( "bodyUrl" ) ; Map < String , Object > bodyUrlParameters = UtilGenerics . checkMap ( sendMailContext . remove ( "bodyUrlParameters" ) ) ; Locale locale = ( Locale ) rcontext . get ( "locale" ) ; LocalDispatcher dispatcher = ctx . getDispatcher ( ) ; URL url = null ; try { url = new URL ( bodyUrl ) ; } catch ( MalformedURLException e ) { Debug . logWarning ( e , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendMalformedUrl" , UtilMisc . toMap ( "bodyUrl" , bodyUrl , "errorString" , e . toString ( ) ) , locale ) ) ; } HttpClient httpClient = new HttpClient ( url , bodyUrlParameters ) ; String body = null ; try { body = httpClient . post ( ) ; } catch ( HttpClientException e ) { Debug . logWarning ( e , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendGettingError" , UtilMisc . toMap ( "errorString" , e . toString ( ) ) , locale ) ) ; } sendMailContext . put ( "body" , body ) ; Map < String , Object > sendMailResult ; try { sendMailResult = dispatcher . runSync ( "sendMail" , sendMailContext ) ; } catch ( GenericServiceException e ) { Debug . logError ( e , module ) ; return ServiceUtil . returnError ( e . getMessage ( ) ) ; } return sendMailResult ; }

Servicio de JavaMail que recibe contenido corporal de una URL


public PhotosGetQuery photoIds  ( String ... value ) { return unsafeParam ( "photo_ids" , value ) ; }


public void callHandler  ( String handlerName , String data , CallBackFunction callBack ) { doSend ( handlerName , data , callBack ) ; }


public static void process  ( List < Packages > pkgList ) throws Exception { init ( ) ; String [ ] temps = templates . split ( "," ) ; String [ ] vmFiles = new String [ temps . length ] ; for ( int i = 0 ; i < temps . length ; i ++ ) { vmFiles [ i ] = temps [ i ] + ".vm" ; } for ( Packages pkg : pkgList ) { for ( String vmFile : vmFiles ) { generator ( vmFile , pkg ) ; } } }

Procesar la lógica principal para crear un archivo.


public byte readByte  ( int position ) { if ( position < 0 || position >= Page . pageSize ) { throw new PageException ( "readByte is out of bounds of page" ) ; } return pageData . get ( position ) ; }

Lea el único byte en la posición de desplazamiento.


public HTTPTunnelConnector ( String proxyHost , int proxyPort , String proxyUser , String proxyPass ) { this . proxyHost = proxyHost ; this . proxyPort = proxyPort ; this . proxyUser = proxyUser ; this . proxyPass = proxyPass ; }


protected void onLoadMore  ( WXScrollView scrollView , int x , int y ) { try { String offset = mDomObj . attr . getLoadMoreOffset ( ) ; if ( TextUtils . isEmpty ( offset ) ) { return ; } int contentH = scrollView . getChildAt ( 0 ) . getHeight ( ) ; int scrollerH = scrollView . getHeight ( ) ; int offScreenY = contentH - y - scrollerH ; if ( offScreenY < Integer . parseInt ( offset ) ) { if ( WXEnvironment . isApkDebugable ( ) ) { WXLogUtils . d ( "[WXScroller-onScroll] offScreenY :" + offScreenY ) ; } if ( mContentHeight != contentH ) { WXSDKManager . getInstance ( ) . fireEvent ( mInstanceId , mDomObj . ref , WXEventType . LIST_LOAD_MORE ) ; mContentHeight = contentH ; } } } catch ( Exception e ) { WXLogUtils . d ( "[WXScroller-onScroll] " , e ) ; } }

Manejar el evento de Loadmore.Cuando Scroller tiene un evento de LOADMOREME y configure el ARTH OFRMORMEOFFSET, le dirá a la JS que manejará el evento de OnLoLeMore;


public static final byte [ ] multiplyBytes  ( final byte [ ] in , final int count , final int mul ) { byte [ ] ret = new byte [ count * mul ] ; for ( int x = 0 ; x < count * mul ; x ++ ) { ret [ x ] = in [ x % count ] ; } return ret ; }

Repite <Código> CUENTA </ CODE> BYTES DE <CÓDIGO> EN </ CODE> <CÓDIGO> MUL </ CODE> Tiempos.


public void put  ( String sample , HiddenAttribute attribute , Object value ) { put ( sample , attribute . toString ( ) , value ) ; }


public boolean isDistinct  ( ) { return distinct ; }

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


public static SM_SYSTEM_MESSAGE STR_MSG_ITEM_SEAL_STATUS_UNSEALMAX  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400805 , value0 ) ; }

Puedes tener solo% 0 artículos pendientes sin sellar a la vez.


public static Object evaluate  ( String language , String script , Class < ? > scriptClass , Map < String , Object > context ) throws Exception { Assert . notNull ( "context" , context ) ; if ( scriptClass != null ) { return InvokerHelper . createScript ( scriptClass , GroovyUtil . getBinding ( context ) ) . run ( ) ; } try { CompiledScript compiledScript = compileScriptString ( language , script ) ; if ( compiledScript != null ) { return executeScript ( compiledScript , null , createScriptContext ( context ) , null ) ; } ScriptEngineManager manager = new ScriptEngineManager ( ) ; ScriptEngine engine = manager . getEngineByName ( language ) ; if ( engine == null ) { throw new IllegalArgumentException ( "The script type is not supported for language: " + language ) ; } if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "Begin processing script [" + script + "] using engine " + engine . getClass ( ) . getName ( ) , module ) ; } ScriptContext scriptContext = createScriptContext ( context ) ; return engine . eval ( script , scriptContext ) ; } catch ( Exception e ) { String errMsg = "Error running " + language + " script [" + script + "]: " + e . toString ( ) ; Debug . logWarning ( e , errMsg , module ) ; throw new IllegalArgumentException ( errMsg ) ; } }

Ejecuta un script <código> cadena </ code> y devuelve el resultado.


static Object newInstance  ( String className , ClassLoader cl , boolean doFallback ) throws ConfigurationError { try { Class providerClass = findProviderClass ( className , cl , doFallback ) ; Object instance = providerClass . newInstance ( ) ; if ( DEBUG ) debugPrintln ( "created new instance of " + providerClass + " using ClassLoader: " + cl ) ; return instance ; } catch ( ClassNotFoundException x ) { throw new ConfigurationError ( "Provider " + className + " not found" , x ) ; } catch ( Exception x ) { throw new ConfigurationError ( "Provider " + className + " could not be instantiated: " + x , x ) ; } }

Cree una instancia de una clase usando el cargador de clases especificado


public void readAuxBlocks  ( FileFooterRMA3 fileFooter , IInputReader reader , Map < String , byte [ ] > name2AuxBlock ) throws IOException { reader . seek ( fileFooter . getAuxStart ( ) ) ; for ( int i = 0 ; i < count && reader . getPosition ( ) < fileFooter . getAuxFooter ( ) ; i ++ ) { String name = reader . readString ( ) ; int length = reader . readInt ( ) ; byte [ ] bytes = new byte [ length ] ; reader . read ( bytes , 0 , length ) ; name2AuxBlock . put ( name , bytes ) ; } }


public static String formatPercentage  ( Double percentage ) { if ( percentage == null ) return "" ; return formatPercentage ( percentage . doubleValue ( ) ) ; }

Formatos un doble que representa un porcentaje en una cadena


public AemList removeItem  ( final AemListItem item ) { item . remove ( ) ; bobcatWait . withTimeout ( Timeouts . BIG ) . until ( null , 2 ) ; return this ; }

Elimina el artículo de la lista y espera 1 segundo.


private static void computeCorrelationMatrix  ( int rank , double [ ] [ ] vectors , Distances distances ) { double [ ] mean = new double [ rank ] ; for ( double [ ] row : vectors ) { for ( int col = 0 ; col < rank ; col ++ ) { mean [ col ] += row [ col ] ; } } for ( int col = 0 ; col < rank ; col ++ ) { mean [ col ] /= vectors . length ; } double [ ] stddev = new double [ rank ] ; for ( double [ ] row : vectors ) { for ( int col = 0 ; col < rank ; col ++ ) { stddev [ col ] += ( row [ col ] - mean [ col ] ) * ( row [ col ] - mean [ col ] ) ; } } for ( int col = 0 ; col < rank ; col ++ ) { stddev [ col ] = Math . sqrt ( stddev [ col ] / vectors . length ) ; } for ( int di = 0 ; di < rank ; di ++ ) { distances . set ( di + 1 , di + 1 , 0 ) ; for ( int dj = di + 1 ; dj < rank ; dj ++ ) { double cor = 0 ; for ( double [ ] row : vectors ) { cor += ( row [ di ] - mean [ di ] ) * ( row [ dj ] - mean [ dj ] ) / ( stddev [ di ] * stddev [ dj ] ) ; } cor /= vectors . length ; distances . set ( di + 1 , dj + 1 , cor ) ; } } }


public void shutdown  ( final long timeout , final TimeUnit timeUnit ) throws TimeoutException { final long timeOutAt = System . currentTimeMillis ( ) + timeUnit . toMillis ( timeout ) ; while ( hasBacklog ( ) ) { if ( timeout >= 0 && System . currentTimeMillis ( ) > timeOutAt ) { throw TimeoutException . INSTANCE ; } } halt ( ) ; }

 espera hasta que todos los eventos actualmente en el disruptor han sido procesados por todos los procesadores de eventos y luego detienen los procesadores.

 Este método no apagará el ejecutor, ni esperará la terminación final deLos hilos del procesador.


private void updateRingColor  ( float interpolatedTime , Ring ring ) { if ( interpolatedTime > COLOR_START_DELAY_OFFSET ) { ring . setColor ( evaluateColorChange ( ( interpolatedTime - COLOR_START_DELAY_OFFSET ) / ( 1.0f - COLOR_START_DELAY_OFFSET ) , ring . getStartingColor ( ) , ring . getNextColor ( ) ) ) ; } }

Actualice el color del anillo si se encuentra en el último 25% de la animación.El nuevo color del anillo será una traducción del color de anillo inicial al siguiente color.


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

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


public void add  ( int val ) { ensureCapacity ( _pos + 1 ) ; _data [ _pos ++ ] = val ; }

Agrega <tt> val </ tt> al final de la lista, creciendo según sea necesario.


public final void dbUnavailable  ( final boolean alarmUp , final String exceptionMsg , final String dbInfo ) { if ( alarmUp == FallbackAlarmsInterface . ACTIVATED ) { ArrayList recipients = new ArrayList ( ) ; MailDetailsBean mailDetails = new MailDetailsBean ( ) ; mailDetails . setSender ( "mruizgar@cern.ch" ) ; recipients . add ( "mruizgar@cern.ch" ) ; mailDetails . setToRecipients ( recipients ) ; mailDetails . setSubject ( "DB Unavailable" ) ; mailDetails . setMessage ( "The DB connection to " + dbInfo + "could not be established due to: " + exceptionMsg ) ; mailDetails . setServer ( "cernmx.cern.ch" ) ; SMTPMailSender mailSender = new SMTPMailSender ( ) ; try { mailSender . sendMail ( mailDetails ) ; } catch ( MailSenderException e ) { LOG . debug ( e . getMessage ( ) ) ; } } }

Envía una advertencia por correo electrónico sobre los problemas de DB


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

Nuevos permisos de acceso para el álbum.


private String computeGlobalReadAlignment  ( boolean dna2ProteinMode , String globallyAlignedReference , String locallyAlignedRead , int readGlobalAlignmentLength ) throws IOException { if ( readGlobalAlignmentLength < 20 ) { System . err . print ( "\nreference:  " ) ; if ( ! dna2ProteinMode ) { for ( int i = 0 ; i < globallyAlignedReference . length ( ) ; i ++ ) { System . err . print ( " " + globallyAlignedReference . charAt ( i ) + " " ) ; } } else { for ( int i = 0 ; i < globallyAlignedReference . length ( ) ; i ++ ) { System . err . print ( " <" + globallyAlignedReference . charAt ( i ) + "> " ) ; } } System . err . println ( "\t\ttotal: " + globallyAlignedReference . length ( ) + " letters: " + ( globallyAlignedReference . length ( ) - Basic . countOccurrences ( globallyAlignedReference , '-' ) ) + " gaps: " + Basic . countOccurrences ( globallyAlignedReference , '-' ) ) ; System . err . print ( "local read: " ) ; if ( ! dna2ProteinMode ) { for ( int i = 0 ; i < locallyAlignedRead . length ( ) ; i ++ ) { System . err . print ( " " + locallyAlignedRead . charAt ( i ) + " " ) ; } } else { int i = 0 ; while ( i < locallyAlignedRead . length ( ) ) { if ( locallyAlignedRead . charAt ( i ) == '[' ) { System . err . print ( "[" ) ; i ++ ; } else System . err . print ( " " ) ; System . err . print ( String . format ( "%c%c%c" , locallyAlignedRead . charAt ( i ++ ) , locallyAlignedRead . charAt ( i ++ ) , locallyAlignedRead . charAt ( i ++ ) ) ) ; if ( i < locallyAlignedRead . length ( ) && locallyAlignedRead . charAt ( i ) == ']' ) { System . err . print ( "]" ) ; i ++ ; } else System . err . print ( " " ) ; } } System . err . println ( "\t\ttotal: " + locallyAlignedRead . length ( ) + " letters: " + ( locallyAlignedRead . length ( ) - Basic . countOccurrences ( locallyAlignedRead , '-' ) ) + " gaps: " + Basic . countOccurrences ( locallyAlignedRead , '-' ) ) ; } final StringBuilder buf = new StringBuilder ( ) ; if ( dna2ProteinMode ) { int localPos = 0 ; boolean inInsertion = false ; for ( int globalPos = 0 ; globalPos < globallyAlignedReference . length ( ) && localPos < locallyAlignedRead . length ( ) ; globalPos ++ ) { if ( locallyAlignedRead . charAt ( localPos ) == '[' ) { if ( inInsertion ) throw new IOException ( "inInsertion=true: Already in insertion" ) ; inInsertion = true ; localPos ++ ; } else if ( locallyAlignedRead . charAt ( localPos ) == ']' ) { if ( ! inInsertion ) throw new IOException ( "inInsertion=false: Not in insertion" ) ; inInsertion = false ; localPos ++ ; } if ( inInsertion ) { if ( globallyAlignedReference . charAt ( globalPos ) == '-' ) { buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; } else localPos += 3 ; } else { if ( globallyAlignedReference . charAt ( globalPos ) == '-' ) { buf . append ( "---" ) ; } else { buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; } } } } else { int localPos = 0 ; boolean inInsertion = false ; for ( int globalPos = 0 ; globalPos < globallyAlignedReference . length ( ) && localPos < locallyAlignedRead . length ( ) ; globalPos ++ ) { if ( locallyAlignedRead . charAt ( localPos ) == '[' ) { if ( inInsertion ) throw new IOException ( "inInsertion=true: Already in insertion" ) ; inInsertion = true ; localPos ++ ; } else if ( locallyAlignedRead . charAt ( localPos ) == ']' ) { if ( ! inInsertion ) throw new IOException ( "inInsertion=false: Not in insertion" ) ; inInsertion = false ; localPos ++ ; } if ( inInsertion ) { if ( globallyAlignedReference . charAt ( globalPos ) == '-' ) { buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; } else localPos ++ ; } else { if ( globallyAlignedReference . charAt ( globalPos ) == '-' ) { buf . append ( "-" ) ; } else { buf . append ( locallyAlignedRead . charAt ( localPos ++ ) ) ; } } } } String result = buf . toString ( ) ; if ( result . length ( ) == readGlobalAlignmentLength ) return result ; else { int missing = readGlobalAlignmentLength - result . length ( ) ; for ( int i = 0 ; i < missing ; i ++ ) { buf . append ( "-" ) ; } return buf . toString ( ) ; } }

calcular la alineación global de una lectura alineada localmente


public CMUDiphoneVoice ( String name , Gender gender , Age age , String description , Locale locale , String domain , String organization , CMULexicon lexicon , URL database ) { super ( name , gender , age , description , locale , domain , organization , lexicon ) ; setRate ( 150f ) ; setPitch ( 100F ) ; setPitchRange ( 11F ) ; this . database = database ; }


private void normalizedPowerFFT  ( double [ ] re ) { double [ ] im = new double [ re . length ] ; double r , i ; fft ( re , im , FFT_FORWARD ) ; for ( int j = 0 ; j < re . length ; j ++ ) { r = re [ j ] / windowFunctionSum * 2 ; i = im [ j ] / windowFunctionSum * 2 ; re [ j ] = r * r + i * i ; } }

Calcula el espectro de potencia de una secuencia real (en su lugar).


public TrainedLTS ( AllophoneSet aPhonSet , InputStream treeStream , boolean removeTrailingOneFromPhones ) throws IOException , MaryConfigurationException  { this . allophoneSet = aPhonSet ; this . loadTree ( treeStream ) ; this . removeTrailingOneFromPhones = removeTrailingOneFromPhones ; }

Inicializa la letra al sistema de sonido con un teléfono telefónico y cargue el árbol de decisión del archivo dado.


public static void main  ( String [ ] args ) { EnvVarDlg dlg = new EnvVarDlg ( EnvironmentVariableManager . getInstance ( ) ) ; dlg . showDialog ( ) ; }


public static void ensureUnarchived  ( Experiment experiment , Project project , DataController dc ) { if ( experiment != null ) { if ( experiment . isArchived ( ) ) { experiment . setArchived ( false ) ; dc . updateExperiment ( experiment , LoggingConsumer . < Success > expectSuccess ( TAG , "Unarchiving experiment" ) ) ; } if ( project != null ) { if ( experiment . getProjectId ( ) . equals ( project . getProjectId ( ) ) ) { if ( project . isArchived ( ) ) { project . setArchived ( false ) ; dc . updateProject ( project , LoggingConsumer . < Success > expectSuccess ( TAG , "Unarchiving project" ) ) ; } } else { throw new IllegalStateException ( "Selected project " + project . getProjectId ( ) + " is not the right parent of selected experiment " + experiment . getExperimentId ( ) + " (should be " + experiment . getProjectId ( ) + ")" ) ; } } } }

Asegura que el proyecto y el experimento no sean solicitados, en caso de que hagamos una nueva ejecución o etiqueta en ellos.


protected PhotosSaveMarketPhotoQuery server  ( int value ) { return unsafeParam ( "server" , value ) ; }

Parámetro devuelto cuando las fotos se cargan en el servidor.


@ Override public synchronized void mark  ( int readlimit ) { markFbIndex = fbIndex ; markedAtStart = firstBytes == null ; in . mark ( readlimit ) ; }

Invoca el método <Código> marca (int) </ código> del delegado.


private void load  ( ByteBuffer input ) { magic = input . getInt ( ) ; version = input . getInt ( ) ; type = input . getInt ( ) ; }


private static void checkValidFunction  ( final Object function ) { if ( ! Thinr . runtimeChecksEnabled ) { return ; } if ( function == null ) { throw new IllegalArgumentException ( "Don't pass NULL." ) ; } Field [ ] functionFields = function . getClass ( ) . getDeclaredFields ( ) ; if ( functionFields . length > 0 ) { for ( Field functionField : functionFields ) { if ( ! FUNCTION_CLASS_FIELD_WHITE_LIST . contains ( functionField . getName ( ) ) ) { throw new IllegalArgumentException ( "Don't reference outer variables and fields from Lambdas / nested classes used here." + Arrays . toString ( functionFields ) ) ; } } } }

Lanza una excepción si la función causará una fuga.


protected void resetInternalState  ( ) { setStepStart ( null ) ; setStepSize ( minStep . multiply ( maxStep ) . sqrt ( ) ) ; }

Restablecer el estado interno a los valores ficticios.


public ValueUnitPair ( Value value , Unit unit ) { setValue ( value ) ; setUnit ( unit ) ; }

Construye un valinunitpair de un objeto unitario y un objeto de valor.


public GoogleUserCredentialProvider ( OkHttpClient client , Time time ) throws LoginFailedException , RemoteServerException  { this . time = time ; this . client = client ; }

Se utiliza para iniciar sesión cuando no tenga un token de actualización persistente.


public void connect  ( ) { connection . connect ( ) ; this . folder = connection . getFolder ( ) ; }


@ Override public void endCDATA  ( Augmentations augs ) throws XNIException { }


public String reflection_log  ( ) { return soot . PhaseOptions . getString ( options , "reflection-log" ) ; }

Registro de reflexiones: utiliza un registro de reflexión para resolver llamadas reflexivas. Cargue un registro de reflexión del archivo dado y use este registro para resolver los sitios de llamadas reflectantes.Tenga en cuenta que cuando se administra un registro, las siguientes opciones no tienen ningún efecto: Safe-forname, Safe-NewInstance.


public void uploadUpdate  ( Context context , Account account , OCFile [ ] existingFiles , Integer behaviour , Boolean forceOverwrite ) { Intent intent = new Intent ( context , FileUploader . class ) ; intent . putExtra ( FileUploader . KEY_ACCOUNT , account ) ; intent . putExtra ( FileUploader . KEY_FILE , existingFiles ) ; intent . putExtra ( FileUploader . KEY_LOCAL_BEHAVIOUR , behaviour ) ; intent . putExtra ( FileUploader . KEY_FORCE_OVERWRITE , forceOverwrite ) ; context . startService ( intent ) ; }

Llame para actualizar múltiples archivos ya cargados


SAXParserImpl ( SAXParserFactoryImpl spf , Hashtable features , boolean secureProcessing )  throws SAXException  { xmlReader = new JAXPSAXParser ( this ) ; xmlReader . setFeature0 ( NAMESPACES_FEATURE , spf . isNamespaceAware ( ) ) ; xmlReader . setFeature0 ( NAMESPACE_PREFIXES_FEATURE , ! spf . isNamespaceAware ( ) ) ; if ( spf . isXIncludeAware ( ) ) { xmlReader . setFeature0 ( XINCLUDE_FEATURE , true ) ; } if ( secureProcessing ) { xmlReader . setProperty0 ( SECURITY_MANAGER , new SecurityManager ( ) ) ; } setFeatures ( features ) ; if ( spf . isValidating ( ) ) { fInitErrorHandler = new DefaultValidationErrorHandler ( ) ; xmlReader . setErrorHandler ( fInitErrorHandler ) ; } else { fInitErrorHandler = xmlReader . getErrorHandler ( ) ; } xmlReader . setFeature0 ( VALIDATION_FEATURE , spf . isValidating ( ) ) ; this . grammar = spf . getSchema ( ) ; if ( grammar != null ) { XMLParserConfiguration config = xmlReader . getXMLParserConfiguration ( ) ; XMLComponent validatorComponent = null ; if ( grammar instanceof XSGrammarPoolContainer ) { validatorComponent = new XMLSchemaValidator ( ) ; fSchemaValidationManager = new ValidationManager ( ) ; fUnparsedEntityHandler = new UnparsedEntityHandler ( fSchemaValidationManager ) ; config . setDTDHandler ( fUnparsedEntityHandler ) ; fUnparsedEntityHandler . setDTDHandler ( xmlReader ) ; xmlReader . setDTDSource ( fUnparsedEntityHandler ) ; fSchemaValidatorComponentManager = new SchemaValidatorConfiguration ( config , ( XSGrammarPoolContainer ) grammar , fSchemaValidationManager ) ; } else { validatorComponent = new JAXPValidatorComponent ( grammar . newValidatorHandler ( ) ) ; fSchemaValidationManager = null ; fUnparsedEntityHandler = null ; fSchemaValidatorComponentManager = config ; } config . addRecognizedFeatures ( validatorComponent . getRecognizedFeatures ( ) ) ; config . addRecognizedProperties ( validatorComponent . getRecognizedProperties ( ) ) ; config . setDocumentHandler ( ( XMLDocumentHandler ) validatorComponent ) ; ( ( XMLDocumentSource ) validatorComponent ) . setDocumentHandler ( xmlReader ) ; xmlReader . setDocumentSource ( ( XMLDocumentSource ) validatorComponent ) ; fSchemaValidator = validatorComponent ; } else { fSchemaValidationManager = null ; fUnparsedEntityHandler = null ; fSchemaValidatorComponentManager = null ; fSchemaValidator = null ; } fInitEntityResolver = xmlReader . getEntityResolver ( ) ; }

Crear un analizador SAX con las características asociadas.


public SimpleMetricGroup ( GroupName name , Iterable < ? extends Metric > m ) { this ( name ) ; m . forEach ( null ) ; }

Crea un grupo métrico con las métricas dadas.


private void initializeFragmentState  ( ) { AddEditBookmarkFragment baseAddEditFragment = ( AddEditBookmarkFragment ) getFragmentManager ( ) . findFragmentByTag ( BASE_ADD_EDIT_FRAGMENT_TAG ) ; setActionListenerOnAddEdit ( baseAddEditFragment ) ; Fragment selectFolderFragment = getFragmentManager ( ) . findFragmentByTag ( BASE_SELECT_FOLDER_FRAGMENT_TAG ) ; if ( selectFolderFragment != null ) { setActionListenerOnFolderSelection ( ( SelectBookmarkFolderFragment ) selectFolderFragment ) ; FragmentTransaction fragmentTransaction = getFragmentManager ( ) . beginTransaction ( ) ; fragmentTransaction . hide ( baseAddEditFragment ) ; Fragment addFolderFragment = getFragmentManager ( ) . findFragmentByTag ( ADD_FOLDER_FRAGMENT_TAG ) ; if ( addFolderFragment != null ) { fragmentTransaction . hide ( selectFolderFragment ) ; setActionListenerOnAddEdit ( ( AddEditBookmarkFragment ) addFolderFragment ) ; Fragment addFolderSelectFolderFragment = getFragmentManager ( ) . findFragmentByTag ( ADD_FOLDER_SELECT_FOLDER_FRAGMENT_TAG ) ; if ( addFolderSelectFolderFragment != null ) { setActionListenerOnFolderSelection ( ( SelectBookmarkFolderFragment ) addFolderSelectFolderFragment ) ; fragmentTransaction . hide ( addFolderFragment ) ; fragmentTransaction . show ( addFolderSelectFolderFragment ) ; } else { fragmentTransaction . show ( addFolderFragment ) ; } } else { fragmentTransaction . show ( selectFolderFragment ) ; } fragmentTransaction . commit ( ) ; } }

Inicializa el estado de fragmento después de una restauración estatal.<P> Reinicializa a todos los oyentes de eventos en los fragmentos, ya que no se persisten en la recreación de la actividad (y hicieron referencia a la actividad antigua de todos modos).<p> El estado oculto de los fragmentos tampoco se persisten en los cambios de actividad, por lo que necesitamos ocultar y mostrar los fragmentos en consecuencia (ya que sabemos que la jerarquía de los fragmentos podemos hacer esto como un simple condicional anidado).


public static X509Certificate [ ] createCertificateChain  ( String certChainPEM ) { AssertUtil . assertNotNull ( certChainPEM , "certChainPEM should not be null." ) ; List < X509Certificate > chain = new ArrayList < > ( ) ; try ( PEMParser parser = new PEMParser ( new StringReader ( certChainPEM ) ) ) { JcaX509CertificateConverter converter = new JcaX509CertificateConverter ( ) ; X509CertificateHolder certificateHolder ; while ( ( certificateHolder = ( X509CertificateHolder ) parser . readObject ( ) ) != null ) { chain . add ( converter . getCertificate ( certificateHolder ) ) ; } } catch ( IOException | CertificateException e ) { throw new RuntimeException ( "Failed to create certificate: " + certChainPEM , e ) ; } if ( chain . isEmpty ( ) ) { throw new RuntimeException ( "A valid certificate was not found: " + certChainPEM ) ; } return chain . toArray ( new X509Certificate [ chain . size ( ) ] ) ; }

Método de utilidad para decodificar una cadena de certificado PEM Cadena codificada Valor a una matriz de instancias de certificados X509Certificados.


protected void drawLabels  ( Canvas c , float pos , PointF anchor ) { final float labelRotationAngleDegrees = mXAxis . getLabelRotationAngle ( ) ; float [ ] position = new float [ ] { 0f , 0f } ; for ( int i = mMinX ; i <= mMaxX ; i += mXAxis . mAxisLabelModulus ) { position [ 0 ] = i ; mTrans . pointValuesToPixel ( position ) ; if ( mViewPortHandler . isInBoundsX ( position [ 0 ] ) ) { String label = mXAxis . getValues ( ) . get ( i ) ; if ( mXAxis . isAvoidFirstLastClippingEnabled ( ) ) { if ( i == mXAxis . getValues ( ) . size ( ) - 1 && mXAxis . getValues ( ) . size ( ) > 1 ) { float width = Utils . calcTextWidth ( mAxisLabelPaint , label ) ; if ( width > mViewPortHandler . offsetRight ( ) * 2 && position [ 0 ] + width > mViewPortHandler . getChartWidth ( ) ) position [ 0 ] -= width / 2 ; } else if ( i == 0 ) { float width = Utils . calcTextWidth ( mAxisLabelPaint , label ) ; position [ 0 ] += width / 2 ; } } drawLabel ( c , label , i , position [ 0 ] , pos , anchor , labelRotationAngleDegrees ) ; } } }

Dibuja las etiquetas X en la posición Y especificada


public TObjectHash ( int initialCapacity ) { super ( initialCapacity ) ; this . _hashingStrategy = this ; }

Crea una nueva instancia de <código> tobjecthash </ code> cuya capacidad es la próxima prima más alta arriba <tt> inicialcapacity + 1 </ tt> a menos que ese valor ya esté primordial.


@ Override public long longValue  ( ) { return ( long ) doubleValue ( ) ; }

Obtiene la fracción como un <tt> Long </ tt>.Esto devuelve la parte número entera de la fracción.


private long calculateBezier  ( float interpolatedTime , float point0 , float point1 , float point2 ) { return Math . round ( ( Math . pow ( ( 1 - interpolatedTime ) , 2 ) * point0 ) + ( 2 * ( 1 - interpolatedTime ) * interpolatedTime * point1 ) + ( Math . pow ( interpolatedTime , 2 ) * point2 ) ) ; }

Calcule la posición en una curva bezier cuadrática mediante tres puntos y el porcentaje de tiempo pasado.<P /> de http://en.wikipedia.org/wiki/B%C3%A9zier_curve


public static String byteCountToDisplaySize  ( long size ) { return byteCountToDisplaySize ( BigInteger . valueOf ( size ) ) ; }

Devuelve una versión legible por humanos del tamaño del archivo, donde la entrada representa un número específico de bytes.
 Si el tamaño es superior a 1 GB, el tamaño se devuelve como el número de GB completo, es decir, el tamaño se redondea al límite de GB más cercano.

 de manera similar para los límites de 1 MB y 1KB.


public static int hash  ( double value ) { return new Double ( value ) . hashCode ( ) ; }

Devuelve un código de hash entero que representa el valor doble dado.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_ResurrectBase_A_TO_ME  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201240 , skillcaster , skillname ) ; }

Se le obliga a resucitar en el punto de enlace porque [% Skillcaster] usó [% SkillName] en usted.


public void addWord  ( String sWord ) { if ( ! AddSubStrings ) { WordDefinition wd = new WordDefinition ( sWord ) ; WordDefs . add ( wd ) ; return ; } int iLen = sWord . length ( ) ; for ( int iNGramSize = 1 ; iNGramSize <= iLen ; iNGramSize ++ ) { for ( int iCurStart = 0 ; iCurStart < iLen ; iCurStart ++ ) { if ( iLen < iCurStart + iNGramSize ) break ; String sCurNGram = sWord . substring ( iCurStart , iCurStart + iNGramSize ) ; if ( sCurNGram . length ( ) <= this . MaxWordSize ) { WordDefinition wdDef = new WordDefinition ( sCurNGram ) ; this . WordDefs . add ( wdDef ) ; } } } }

Agrega una palabra, creando la definición correspondiente, al diccionario.También agrega subcadenas.


public void tabClosingEffect  ( long time , int id ) { if ( mStackTabs == null ) return ; int newIndex = 0 ; boolean needAnimation = false ; for ( int i = 0 ; i < mStackTabs . length ; ++ i ) { if ( mStackTabs [ i ] . getId ( ) == id ) { needAnimation |= ! mStackTabs [ i ] . isDying ( ) ; mStackTabs [ i ] . setDying ( true ) ; } else { mStackTabs [ i ] . setNewIndex ( newIndex ++ ) ; } } if ( needAnimation ) { mScrollOffsetForDyingTabs = mScrollOffset ; mSpacing = computeSpacing ( newIndex ) ; startAnimation ( time , OverviewAnimationType . DISCARD ) ; } if ( newIndex == 0 ) { mIsDying = true ; } }


public String loadDocumentDatelineToString  ( String sDocID ) { return loadDocumentElement ( sDocID , DATELINE_TAG ) ; }

Devuelve la parte de línea de datos de un documento dado como una cadena, si existe la línea de datos.


public static final void expelAlliance  ( Player expelledPlayer , Player expelGiver ) { Preconditions . checkNotNull ( expelledPlayer , "Expelled player should not be null" ) ; Preconditions . checkNotNull ( expelGiver , "ExpelGiver player should not be null" ) ; Preconditions . checkArgument ( expelGiver . isInLeague ( ) , "Expelled player should be in league" ) ; Preconditions . checkArgument ( expelledPlayer . isInLeague ( ) , "ExpelGiver should be in league" ) ; Preconditions . checkArgument ( expelGiver . getPlayerAlliance2 ( ) . getLeague ( ) . isLeader ( expelGiver . getPlayerAlliance2 ( ) ) , "ExpelGiver alliance should be the leader of league" ) ; Preconditions . checkArgument ( expelGiver . getPlayerAlliance2 ( ) . isLeader ( expelGiver ) , "ExpelGiver should be the leader of alliance" ) ; PlayerAlliance alliance = expelGiver . getPlayerAlliance2 ( ) ; League league = alliance . getLeague ( ) ; league . onEvent ( new LeagueLeftEvent ( league , expelledPlayer . getPlayerAlliance2 ( ) , LeaveReson . EXPEL ) ) ; }

Eliminar la alianza de la liga (expulsar)


public static Map < String , Object > updateContentAssoc  ( DispatchContext dctx , Map < String , ? extends Object > rcontext ) { Map < String , Object > context = UtilMisc . makeMapWritable ( rcontext ) ; context . put ( "entityOperation" , "_UPDATE" ) ; List < String > targetOperationList = ContentWorker . prepTargetOperationList ( context , "_UPDATE" ) ; List < String > contentPurposeList = ContentWorker . prepContentPurposeList ( context ) ; context . put ( "targetOperationList" , targetOperationList ) ; context . put ( "contentPurposeList" , contentPurposeList ) ; context . put ( "skipPermissionCheck" , null ) ; Map < String , Object > result = updateContentAssocMethod ( dctx , context ) ; return result ; }

Actualizar un servicio de contentassoc.El trabajo se realiza en un método separado para que los servicios complejos que necesitan esta funcionalidad no necesitan incurrir en la penalización de rendimiento de reflexión.


public static boolean orderedCCW  ( S2Point a , S2Point b , S2Point c , S2Point o ) { int sum = 0 ; if ( robustCCW ( b , o , a ) >= 0 ) { ++ sum ; } if ( robustCCW ( c , o , b ) >= 0 ) { ++ sum ; } if ( robustCCW ( a , o , c ) > 0 ) { ++ sum ; } return sum >= 2 ; }

Devuelve VERDADERO si los bordes OA, OB y OC se encuentran en ese orden mientras barren CCW alrededor del punto O. Puede pensar en esto como prueba si A & LT; = B & LT; = C con respecto a un CCW continuo ordenando alrededor de O. PROPIEDADES: <OL> <LI> SI PEDIDAEDCW (A, B, C, O) & AMP; & AMP;OrderedCCW (B, A, C, O), luego A == B </ LI> <li> si se ordedench (a, b, c, o) & amp; & amp;OrderedCCW (A, C, B, O), luego B == C </ LI> <li> si se ordena, (a, b, c, o) & amp; & amp; & amp;OrderedCCW (C, B, A, O), luego A == B == C </ LI> <LI> Si A == B o B == C, entonces OrderEdCCW (A, B, C, O) es verdadero</ li> <li> de lo contrario si A == C, entonces OrderEdCCW (A, B, C, O) es falso </ li> </ ol>


@ PUT @ Path ( "applications/{applicationName}/experiments/{experimentLabel}/users/{userID}" ) @ Consumes ( APPLICATION_JSON ) @ Produces ( APPLICATION_JSON ) @ Timed public Response updateAssignment  ( @ PathParam ( "applicationName" ) @ ApiParam ( value = "Application Name" ) final Application . Name applicationName , @ PathParam ( "experimentLabel" ) @ ApiParam ( value = "Experiment Label" ) final Experiment . Label experimentLabel , @ PathParam ( "userID" ) @ ApiParam ( value = "User ID" ) final User . ID userID , @ ApiParam ( value = "Submitted Data" ) final Map < String , Object > submittedData , @ QueryParam ( "context" ) @ DefaultValue ( "PROD" ) @ ApiParam ( value = "context for the experiment, eg \"QA\", \"PROD\"" ) final Context context ) { if ( submittedData == null ) { throw new IllegalArgumentException ( "Assignment JSON not found in request body" ) ; } Label submittedLabel ; boolean overwrite ; if ( submittedData . containsKey ( "assignment" ) ) { String submittedAssignment = ( String ) submittedData . get ( "assignment" ) ; submittedLabel = submittedAssignment != null ? Label . valueOf ( submittedAssignment ) : null ; } else { throw new IllegalArgumentException ( "Request entity JSON must contain an \"assignment\" property" ) ; } overwrite = submittedData . containsKey ( "overwrite" ) && ( boolean ) submittedData . get ( "overwrite" ) ; Assignment response = assignments . putAssignment ( userID , applicationName , experimentLabel , context , submittedLabel , overwrite ) ; return httpHeader . headers ( ) . entity ( toMap ( response ) ) . build ( ) ; }

Especifique una asignación de cubo para el usuario especificado dentro del contexto de una aplicación y experimento específico.No se puede usar cuando el experimento está en estado de borrador porque los cubos pueden cambiar.


synchronized public void performHostDiscovery  ( MetricRegistry metricRegistry ) { if ( _hostDiscoveryPerformed ) { return ; } Iterable < String > hosts = null ; if ( _seeds != null ) { hosts = Splitter . on ( ',' ) . trimResults ( ) . split ( _seeds ) ; } if ( _zooKeeperServiceName != null ) { checkState ( hosts == null , "Too many host discovery mechanisms configured." ) ; checkState ( _curator != null , "ZooKeeper host discovery is configured but withZooKeeperHostDiscovery() was not called." ) ; try ( HostDiscovery hostDiscovery = new ZooKeeperHostDiscovery ( _curator , _zooKeeperServiceName , metricRegistry ) ) { List < String > hostList = Lists . newArrayList ( ) ; for ( ServiceEndPoint endPoint : hostDiscovery . getHosts ( ) ) { hostList . add ( endPoint . getId ( ) ) ; if ( _partitioner == null && endPoint . getPayload ( ) != null ) { JsonNode payload = JsonHelper . fromJson ( endPoint . getPayload ( ) , JsonNode . class ) ; String partitioner = payload . path ( "partitioner" ) . textValue ( ) ; if ( partitioner != null ) { _partitioner = CassandraPartitioner . fromClass ( partitioner ) ; } } } hosts = hostList ; } catch ( IOException ex ) { } } checkState ( hosts != null , "No Cassandra host discovery mechanisms are configured." ) ; checkState ( ! Iterables . isEmpty ( hosts ) , "Unable to discover any Cassandra seed instances." ) ; checkState ( _partitioner != null , "Cassandra partitioner not configured or discoverable." ) ; _seeds = Joiner . on ( ',' ) . join ( hosts ) ; _hostDiscoveryPerformed = true ; }

Descubre las semillas de Cassandra y el particionador, si no está configurado estáticamente.


public ConfigurationParser ( ) throws ParserConfigurationException  { this ( false , Thread . currentThread ( ) . getContextClassLoader ( ) ) ; }

Cree un nuevo programa de configuración, sin validación de documentos.


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

Convertir una matriz larga a una larga matriz


public boolean hasNonUidOutputIdScheme  ( ) { return outputIdScheme != null && ! IdentifiableProperty . UID . equals ( outputIdScheme ) ; }

Indica si esta consulta define un esquema de identificador diferente de UID.


protected boolean isValidUser  ( String user ) { return USER_PATTERN . matcher ( user ) . matches ( ) ; }

Devuelve VERDADERO si el componente del usuario de una dirección de correo electrónico es válida.


public static boolean isNotNull  ( final Object object ) { boolean isNotNull = false ; if ( object != null ) { isNotNull = true ; } return isNotNull ; }

Este método de utilidad verifica si un objeto en particular es nulo o no.


@ Override public Fraction multiply  ( final int i ) { return multiply ( new Fraction ( i ) ) ; }


public boolean isApplicable  ( ) { return getViewer ( ) instanceof GraphView && ( ( ( GraphView ) getViewer ( ) ) . getSelectedNodes ( ) . size ( ) > 0 || ( ( GraphView ) getViewer ( ) ) . getSelectedEdges ( ) . size ( ) > 0 ) ; }

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


private void decode  ( byte [ ] data , int width , int height ) { long start = System . currentTimeMillis ( ) ; Result rawResult = null ; PlanarYUVLuminanceSource source = activity . getCameraManager ( ) . buildLuminanceSource ( data , width , height ) ; if ( source != null ) { BinaryBitmap bitmap = new BinaryBitmap ( new HybridBinarizer ( source ) ) ; try { rawResult = multiFormatReader . decodeWithState ( bitmap ) ; } catch ( ReaderException re ) { } finally { multiFormatReader . reset ( ) ; } } Handler handler = activity . getHandler ( ) ; if ( rawResult != null ) { long end = System . currentTimeMillis ( ) ; Log . d ( TAG , "Found barcode in " + ( end - start ) + " ms" ) ; if ( handler != null ) { Message message = Message . obtain ( handler , R . id . decode_succeeded , rawResult ) ; Bundle bundle = new Bundle ( ) ; bundleThumbnail ( source , bundle ) ; message . setData ( bundle ) ; message . sendToTarget ( ) ; } } else { if ( handler != null ) { Message message = Message . obtain ( handler , R . id . decode_failed ) ; message . sendToTarget ( ) ; } } }

Deccriba los datos dentro del rectángulo del visor y el tiempo cuánto tiempo tomó.Para la eficiencia, reutilice los mismos objetos de lector de una decodificación a la siguiente.


public boolean hasChild  ( Spatial spat ) { if ( children . contains ( spat ) ) { return true ; } for ( int i = 0 , max = getQuantity ( ) ; i < max ; i ++ ) { Spatial child = children . get ( i ) ; if ( child instanceof Node && ( ( Node ) child ) . hasChild ( spat ) ) { return true ; } } return false ; }

Determina si el espacial proporcionado está contenido en la lista de niños de este nodo.


public SparseGradient toDegrees  ( ) { return new SparseGradient ( FastMath . toDegrees ( value ) , FastMath . toDegrees ( 1.0 ) , derivatives ) ; }

Convertir radios a grados, con error de menos de 0.5 ULP


public boolean match  ( Context context , IEntryHolder entry , ITemplateHolder template , int skipAlreadyMatchedFixedPropertyIndex , String skipAlreadyMatchedIndexPath , boolean safeEntry ) { MatchResult res = template . match ( _cacheManager , entry , skipAlreadyMatchedFixedPropertyIndex , skipAlreadyMatchedIndexPath , safeEntry , context , _regexCache ) ; return res != MatchResult . NONE ; }

Comprueba si la plantilla especificada coincide con la entrada especificada.Asume la plantilla es una superclase de entrada (en el sentido más amplio).Asume la plantilla y la entrada no se elimina, caducó.


protected void drawXAxis  ( Graphics2D gc ) { }


public Matrix inverse  ( ) { return solve ( identity ( m , m ) ) ; }


public ConnectionConsumer createDurableConnectionConsumer  ( Topic topic , String subscriptionName , String messageSelector , ServerSessionPool sessionPool , int maxMessages ) throws JMSException { throw new IllegalStateException ( "Forbidden call on a QueueConnection." ) ; }

Cuando se llama en un <código> QueueConnection </ Code> Tiro <Code> ilegalStateException </ Code>.


@ Deprecated public ItemStack ( final int type , final int amount , final short damage ) { this . type = type ; this . amount = amount ; this . durability = damage ; }

Una pila de artículos con el daño / durabilidad especificados


public static void unsetHistory  ( ) { History = false ; }


public WallRepostQuery repost  ( UserActor actor , String object ) { return new WallRepostQuery ( getClient ( ) , actor , object ) ; }

Reposts (copias) un objeto a un muro de usuario o pared comunitaria.


public boolean containsCause  ( Class < ? extends Throwable > exceptionClass ) { return containsCause ( exceptionClass , getCauses ( ) ) ; }

Devuelve VERDADERO si la clase de excepción dada es una causa directa de esta excepción


public static void disableConsoleLogging  ( ) { consoleLoggingEnabled = false ; }

Apague todos los registros de la consola, debe volver a habilitar el registro cuando haya terminado


public ScriptingExecutor < T > scriptingExecutor  ( ) { return remotingConfigurer . proxy ( ) ; }

Crear un nuevo evento accionado <código> ScriptingExecutor </ code> proxy


@ Override public void propertyChange  ( PropertyChangeEvent evt ) { String prop = evt . getPropertyName ( ) ; if ( "AccessibleValue" . equals ( prop ) || "AccessibleText" . equals ( prop ) || ( "AccessibleVisibleData" . equals ( prop ) && evt . getSource ( ) . getClass ( ) . getName ( ) . contains ( "JList" ) ) ) { _modified = true ; } }

Se utiliza para rastrear las modificaciones de los componentes.


private static boolean checkNullForMeasures  ( Object object ) { Object [ ] measures = ( Object [ ] ) object ; for ( Object measure : measures ) { if ( null != measure ) { return false ; } } return true ; }

Para comprobar si las medidas están vacías / nulas.


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

Compruebe si existe el hijo Opcional SuperClassAccess.


@ SuppressWarnings ( "serial" ) public RequestParams ( final String key , final String value ) { this ( new HashMap < String , String > ( ) { { put ( key , value ) ; } } ) ; }

Construye una nueva instancia de Solicitud y llámela con una única clave de clavija / valor inicial.


public static byte [ ] hexStringToByte  ( String hex ) { byte [ ] bts = new byte [ hex . length ( ) / 2 ] ; for ( int i = 0 ; i < bts . length ; i ++ ) { bts [ i ] = ( byte ) Integer . parseInt ( hex . substring ( 2 * i , 2 * i + 2 ) , 16 ) ; } return bts ; }

Dado un hexstring esto devolverá la matriz de bytes correspondiente a la cadena


private void eliminateFallthroughIfs  ( Body body ) { boolean changed = false ; do { changed = false ; IfStmt ifs = null ; Iterator < Unit > unitIt = body . getUnits ( ) . snapshotIterator ( ) ; while ( unitIt . hasNext ( ) ) { Unit u = unitIt . next ( ) ; if ( ifs != null && ifs . getTarget ( ) == u ) { body . getUnits ( ) . remove ( ifs ) ; changed = true ; } ifs = null ; if ( u instanceof IfStmt ) ifs = ( IfStmt ) u ; } } while ( changed ) ; }

Elimina si las declaraciones que saltan al sucesor de caída.


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


public static Paint newGuidelinePaint  ( @ NonNull Resources resources ) { final Paint paint = new Paint ( ) ; paint . setStyle ( Paint . Style . STROKE ) ; paint . setStrokeWidth ( resources . getDimension ( R . dimen . guideline_thickness ) ) ; paint . setColor ( resources . getColor ( R . color . guideline ) ) ; return paint ; }

Crea el objeto de pintura para dibujar las pautas de la ventana de cultivos.


@ Override public void undoAction  ( UndoInterface undoRedoObject ) { if ( ( attributeComboBox != null ) && ( undoRedoObject != null ) ) { if ( undoRedoObject . getOldValue ( ) instanceof String ) { String oldValue = ( String ) undoRedoObject . getOldValue ( ) ; attributeComboBox . setSelectedItem ( oldValue ) ; } } }


public static boolean isChinese  ( int codePoint ) { return codePoint >= ChineseLanguageConstants . CHINESE_START && codePoint <= ChineseLanguageConstants . CHINESE_END ; }

Usa el punto de código de un personaje para decidir si es un personaje chino.


private void initializeCounterFile  ( ) { try { openCounterDataOutputStream ( ) ; dOutput . write ( "0" ) ; dOutput . newLine ( ) ; dOutput . flush ( ) ; if ( LOG . isDebugEnabled ( ) ) LOG . debug ( "initializeCounterFile() - The counter file has been updated with zero" ) ; } catch ( IOException e ) { LOG . error ( "initializeCounterFile() - Error while trying to write in the counter file" ) ; } catch ( DataFallbackException e ) { LOG . error ( "initializeCounterFile() - The counter file could not be opened" ) ; } finally { try { closeCounterDataOutputStream ( ) ; } catch ( DataFallbackException ex ) { LOG . error ( "initializeCounterFile() - The counter file could not be closed" ) ; } } }

Establece el contador de archivos a cero.


private static String doNormalize  ( String filename , char separator , boolean keepSeparator ) { if ( filename == null ) { return null ; } int size = filename . length ( ) ; if ( size == 0 ) { return filename ; } int prefix = getPrefixLength ( filename ) ; if ( prefix < 0 ) { return null ; } char [ ] array = new char [ size + 2 ] ; filename . getChars ( 0 , filename . length ( ) , array , 0 ) ; char otherSeparator = separator == SYSTEM_SEPARATOR ? OTHER_SEPARATOR : SYSTEM_SEPARATOR ; for ( int i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] == otherSeparator ) { array [ i ] = separator ; } } boolean lastIsDirectory = true ; if ( array [ size - 1 ] != separator ) { array [ size ++ ] = separator ; lastIsDirectory = false ; } for ( int i = prefix + 1 ; i < size ; i ++ ) { if ( array [ i ] == separator && array [ i - 1 ] == separator ) { System . arraycopy ( array , i , array , i - 1 , size - i ) ; size -- ; i -- ; } } for ( int i = prefix + 1 ; i < size ; i ++ ) { if ( array [ i ] == separator && array [ i - 1 ] == '.' && ( i == prefix + 1 || array [ i - 2 ] == separator ) ) { if ( i == size - 1 ) { lastIsDirectory = true ; } System . arraycopy ( array , i + 1 , array , i - 1 , size - i ) ; size -= 2 ; i -- ; } } outer : for ( int i = prefix + 2 ; i < size ; i ++ ) { if ( array [ i ] == separator && array [ i - 1 ] == '.' && array [ i - 2 ] == '.' && ( i == prefix + 2 || array [ i - 3 ] == separator ) ) { if ( i == prefix + 2 ) { return null ; } if ( i == size - 1 ) { lastIsDirectory = true ; } int j ; for ( j = i - 4 ; j >= prefix ; j -- ) { if ( array [ j ] == separator ) { System . arraycopy ( array , i + 1 , array , j + 1 , size - i ) ; size -= i - j ; i = j + 1 ; continue outer ; } } System . arraycopy ( array , i + 1 , array , prefix , size - i ) ; size -= i + 1 - prefix ; i = prefix + 1 ; } } if ( size <= 0 ) { return "" ; } if ( size <= prefix ) { return new String ( array , 0 , size ) ; } if ( lastIsDirectory && keepSeparator ) { return new String ( array , 0 , size ) ; } return new String ( array , 0 , size - 1 ) ; }

Método interno para realizar la normalización.


@ Override public void process  ( WatchedEvent event ) { if ( Event . EventType . None == event . getType ( ) && Event . KeeperState . Expired == event . getState ( ) ) { Set < String > keySet = new HashSet < String > ( listeners . keySet ( ) ) ; for ( String logSegmentsPath : keySet ) { scheduleTask ( logSegmentsPath , new ReadLogSegmentsTask ( logSegmentsPath , this ) , 0L ) ; } return ; } String path = event . getPath ( ) ; if ( null == path ) { return ; } switch ( event . getType ( ) ) { case NodeDeleted : listeners . remove ( path ) ; break ; case NodeChildrenChanged : new ReadLogSegmentsTask ( path , this ) . run ( ) ; break ; default : break ; } }

Procesar los eventos observados para los oyentes registrados.


private void calculateCallbackMethods  ( ARSCFileParser resParser , LayoutFileParser lfp ) throws IOException { AnalyzeJimpleClass jimpleClass = null ; boolean hasChanged = true ; while ( hasChanged ) { hasChanged = false ; soot . G . reset ( ) ; initializeSoot ( ) ; createMainMethod ( ) ; if ( jimpleClass == null ) { if ( callbackClasses == null ) { jimpleClass = new AnalyzeJimpleClass ( entrypoints ) ; } else { jimpleClass = new AnalyzeJimpleClass ( entrypoints , callbackClasses ) ; } jimpleClass . collectCallbackMethods ( ) ; lfp . parseLayoutFile ( apkFileLocation , entrypoints ) ; } else jimpleClass . collectCallbackMethodsIncremental ( ) ; PackManager . v ( ) . getPack ( "wjpp" ) . apply ( ) ; PackManager . v ( ) . getPack ( "cg" ) . apply ( ) ; PackManager . v ( ) . getPack ( "wjtp" ) . apply ( ) ; for ( Entry < String , Set < SootMethodAndClass > > entry : jimpleClass . getCallbackMethods ( ) . entrySet ( ) ) { if ( this . callbackMethods . containsKey ( entry . getKey ( ) ) ) { if ( this . callbackMethods . get ( entry . getKey ( ) ) . addAll ( entry . getValue ( ) ) ) hasChanged = true ; } else { this . callbackMethods . put ( entry . getKey ( ) , new HashSet < > ( entry . getValue ( ) ) ) ; hasChanged = true ; } } if ( entrypoints . addAll ( jimpleClass . getDynamicManifestComponents ( ) ) ) hasChanged = true ; } for ( Entry < String , Set < Integer > > lcentry : jimpleClass . getLayoutClasses ( ) . entrySet ( ) ) { final SootClass callbackClass = Scene . v ( ) . getSootClass ( lcentry . getKey ( ) ) ; for ( Integer classId : lcentry . getValue ( ) ) { AbstractResource resource = resParser . findResource ( classId ) ; if ( resource instanceof StringResource ) { final String layoutFileName = ( ( StringResource ) resource ) . getValue ( ) ; Set < String > callbackMethods = lfp . getCallbackMethods ( ) . get ( layoutFileName ) ; if ( callbackMethods != null ) { for ( String methodName : callbackMethods ) { final String subSig = "void " + methodName + "(android.view.View)" ; SootClass currentClass = callbackClass ; while ( true ) { SootMethod callbackMethod = currentClass . getMethodUnsafe ( subSig ) ; if ( callbackMethod != null ) { addCallbackMethod ( callbackClass . getName ( ) , new AndroidMethod ( callbackMethod ) ) ; break ; } if ( ! currentClass . hasSuperclass ( ) ) { System . err . println ( "Callback method " + methodName + " not found in class " + callbackClass . getName ( ) ) ; break ; } currentClass = currentClass . getSuperclass ( ) ; } } } Set < LayoutControl > controls = lfp . getUserControls ( ) . get ( layoutFileName ) ; if ( controls != null ) for ( LayoutControl lc : controls ) registerCallbackMethodsForView ( callbackClass , lc ) ; } else System . err . println ( "Unexpected resource type for layout class" ) ; } } { Set < SootMethodAndClass > callbacksPlain = new HashSet < SootMethodAndClass > ( ) ; for ( Set < SootMethodAndClass > set : this . callbackMethods . values ( ) ) callbacksPlain . addAll ( set ) ; System . out . println ( "Found " + callbacksPlain . size ( ) + " callback methods for " + this . callbackMethods . size ( ) + " components" ) ; } }

Calcula el conjunto de métodos de devolución de llamada declarada en los archivos de recursos XML o en el código fuente del APP


public static void registerSpaceMBean  ( String spaceName , SpaceImpl spaceImpl ) { MBeanServer mBeanServer = getMBeanServer ( spaceImpl . getContainerName ( ) ) ; if ( mBeanServer == null ) return ; if ( m_MBeansRepository . containsKey ( spaceImpl . getServiceName ( ) ) ) return ; try { IJSpace remoteSpaceProxy = spaceImpl . getSingleProxy ( ) ; JMXSpace mbean = new JMXSpace ( remoteSpaceProxy , JSPACE_MBEAN_DESCR_URL ) ; ObjectName objName = ObjectNameFactory . buildObjectName ( DEFAULT_DOMAIN , mbean . getType ( ) , spaceImpl . getContainerName ( ) + '-' + spaceName ) ; m_MBeansRepository . put ( spaceImpl . getServiceName ( ) , mBeanServer . registerMBean ( mbean , objName ) ) ; JMXSpaceExt mbeanExt = new JMXSpaceExt ( remoteSpaceProxy , mbean . m_spaceConfig , JSPACE_EXT_MBEAN_DESCR_URL ) ; ObjectName objNameExt = ObjectNameFactory . buildObjectName ( DEFAULT_DOMAIN , mbeanExt . getType ( ) , spaceImpl . getContainerName ( ) + '-' + spaceName ) ; m_MBeansRepository . put ( spaceImpl . getServiceName ( ) + "Ext" , mBeanServer . registerMBean ( mbeanExt , objNameExt ) ) ; if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( "\nSpace <" + spaceImpl . getServiceName ( ) + "> MBean was registered successfully.\n" ) ; } } catch ( InstanceAlreadyExistsException e ) { if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( "Space MBean is already registered for <" + spaceImpl . getServiceName ( ) + ">" ) ; } } catch ( Exception ex ) { if ( _logger . isLoggable ( Level . WARNING ) ) { _logger . log ( Level . WARNING , "Failed to register MBean for <" + spaceImpl . getServiceName ( ) + "> space." , ex ) ; } } }

Cree y registre Gest Management Bean para JSPACE específico.


@ Override public void updateClassifications  ( String [ ] names , List < UpdateItem > updateItemList , ProgressListener progressListener ) throws IOException , CanceledException { final UpdateItemList updateItems = ( UpdateItemList ) updateItemList ; final int numClassifications = names . length ; long maxProgress = 0 ; for ( int i = 0 ; i < numClassifications ; i ++ ) { maxProgress += updateItems . getClassIds ( i ) . size ( ) ; } progressListener . setMaximum ( maxProgress ) ; RMA3FileModifier rma3FileModifier = new RMA3FileModifier ( fileName ) ; rma3FileModifier . startModification ( ) ; for ( int i = 0 ; i < numClassifications ; i ++ ) { if ( Basic . toString ( ClassificationType . values ( ) , " " ) . contains ( names [ i ] ) ) { ClassificationType classificationType = ClassificationType . valueOf ( names [ i ] ) ; final Map < Integer , ListOfLongs > classId2Locations = new HashMap < > ( ) ; for ( Integer classId : updateItems . getClassIds ( i ) ) { int weightedSize = updateItems . getSize ( i , classId ) ; final ListOfLongs positions = new ListOfLongs ( ) ; classId2Locations . put ( classId , positions ) ; if ( weightedSize > 0 ) { for ( UpdateItem item = updateItems . getFirst ( i , classId ) ; item != null ; item = updateItems . getUpdateItem ( item . getNextInClassification ( i ) ) ) { positions . add ( item . getReadUId ( ) ) ; } } progressListener . incrementProgress ( ) ; } rma3FileModifier . updateClassification ( classificationType , classId2Locations ) ; } else System . err . println ( "Unsupported classification type: " + names [ i ] ) ; } rma3FileModifier . finishModification ( ) ; }

Clasificaciones de rescanos después de ejecutar el procesador de datos.


protected Set < Map < String , String > > generateSlices  ( PhysicalTableDictionary tableDictionary , UriInfo uriInfo ) throws BadApiRequestException { if ( tableDictionary . isEmpty ( ) ) { String msg = EMPTY_DICTIONARY . logFormat ( "Slices cannot be found. Physical Table" ) ; throw new BadApiRequestException ( msg ) ; } Set < Map < String , String > > generated = tableDictionary . entrySet ( ) . stream ( ) . map ( null ) . collect ( Collectors . toCollection ( null ) ) ; LOG . trace ( "Generated set of slices: {}" , generated ) ; return generated ; }

Genera el conjunto de todas las rodajas disponibles.


protected Object cloneBody  ( ) { if ( Body == null ) { return null ; } byte [ ] body = ( byte [ ] ) Body ; byte [ ] cloned = new byte [ body . length ] ; System . arraycopy ( body , 0 , cloned , 0 , body . length ) ; return cloned ; }


public VideoDeleteAlbumQuery ( VkApiClient client , UserActor actor , int albumId ) { super ( client , "video.deleteAlbum" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; albumId ( albumId ) ; }

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


public void addImplements  ( Access node ) { List < Access > list = ( parent == null || state == null ) ? getImplementsListNoTransform ( ) : getImplementsList ( ) ; list . addChild ( node ) ; }

Anexar un elemento a la lista de implementos.


private static Map < String , VirtualFile > findSiblings  ( @ Nullable VirtualFile directory , Project project , Set < VirtualFile > seen ) { if ( directory == null ) { return Collections . emptyMap ( ) ; } else { if ( seen . contains ( directory ) ) { return findSiblings ( null , project , seen ) ; } seen . add ( directory ) ; VirtualFile settings = directory . findChild ( SdkConstants . FN_SETTINGS_GRADLE ) ; if ( settings == null ) { return findSiblings ( directory . getParent ( ) , project , seen ) ; } else { return GradleModuleImporter . getSubProjects ( settings , project ) ; } } }

Sube recursivamente el árbol del sistema de archivos para encontrar el proyecto principal con la configuración. Gradle y luego obtener la recopilación de hermanos de ese archivo.


static boolean isPlaintext  ( Buffer buffer ) { try { Buffer prefix = new Buffer ( ) ; long byteCount = buffer . size ( ) < 64 ? buffer . size ( ) : 64 ; buffer . copyTo ( prefix , 0 , byteCount ) ; for ( int i = 0 ; i < 16 ; i ++ ) { if ( prefix . exhausted ( ) ) { break ; } int codePoint = prefix . readUtf8CodePoint ( ) ; if ( Character . isISOControl ( codePoint ) && ! Character . isWhitespace ( codePoint ) ) { return false ; } } return true ; } catch ( EOFException e ) { return false ; } }

Devuelve VERDADERO si el cuerpo en cuestión probablemente contiene texto legible humano.Utiliza una pequeña muestra de puntos de código para detectar caracteres de control de Unicode comúnmente utilizados en las firmas de archivos binarios.


public TrackWiggles ( String filename , GenomicCoords gc , int bdgDataColIdx ) throws IOException { this . setGc ( gc ) ; this . setFilename ( filename ) ; this . bdgDataColIdx = bdgDataColIdx ; if ( Utils . getFileTypeFromName ( this . getFilename ( ) ) . equals ( TrackFormat . BIGWIG ) ) { this . bigWigReader = new BBFileReader ( this . getFilename ( ) ) ; if ( ! this . bigWigReader . getBBFileHeader ( ) . isBigWig ( ) ) { throw new RuntimeException ( "Invalid file type " + this . getFilename ( ) ) ; } } this . update ( ) ; }

Lea Bigwig desde el archivo local o la URL remota.


@ Override public String toString  ( ) { return name ; }

Obtiene una cadena que describe la sensibilidad.


public synchronized int size  ( ) { return count ; }

Devuelva el tamaño actual de la matriz de bytes.


public AemDialog open  ( final By clickableArea ) { open ( currentScope . findElement ( clickableArea ) ) ; return this ; }

Abre el cuadro de diálogo haciendo doble clic en el componente usando un área de clickable.


TypeNode typeNode  ( int id , Type type , ClassHierarchy hierarchy ) { if ( type == null || hierarchy == null ) { throw new InternalTypingException ( ) ; } this . id = id ; this . hierarchy = hierarchy ; type . apply ( this ) ; return result ; }

Cree una nueva instancia de Typenode para el parámetro tipo.


public boolean contains  ( WriteModifiers modifiers ) { return super . contains ( modifiers ) ; }

Verifica si se establece el modificador especificado.


public List < Menu > loadMenu  ( User me , int id , String name ) { Beans < Menu > bs = null ; Menu m = null ; if ( name != null ) { m = Menu . load ( id , name ) ; if ( m != null ) { bs = m . submenu ( ) ; } } else { bs = Menu . submenu ( id ) ; } List < Menu > list = bs == null ? null : bs . getList ( ) ; Menu . filterAccess ( list , me ) ; return list ; }


public PhoneDuration ( float mean , float standardDeviation ) { this . mean = mean ; this . standardDeviation = standardDeviation ; }

Crea una nueva fonexión </ código> con la media y la desviación estándar dada.


protected void initComparator  ( ) { if ( Comparator == null ) Comparator = new NGramCachedGraphComparator ( ) ; }

Se asegura de que el comparador no sea nulo.


@ Override public void createIndex  ( ) { Clusterer = new AverageLinkClusterer ( ) ; initComparator ( ) ; ProgressEvent peCreation = new ProgressEvent ( "Index creation" , 0.0 ) ; if ( Notifier != null ) Notifier . Notify ( this , peCreation . updateSubtask ( "Calculating clusters..." ) ) ; Clusterer . calculateClusters ( NamedObjects , Comparator ) ; if ( Notifier != null ) Notifier . Notify ( this , peCreation . updateSubtask ( "Getting hierarchy..." ) ) ; Hierarchy = Clusterer . getHierarchy ( ) ; }

Crea el índice, creando los grupos, y los gráficos que representan correspondientes para cada clúster.


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

[% Skillcaster] Bloqueado% Num0 Daño a través del efecto del [% de habilidad].


protected void reset  ( ) throws XNIException  { int count = fComponents . size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { XMLComponent c = ( XMLComponent ) fComponents . get ( i ) ; c . reset ( this ) ; } }

Restablecer todos los componentes XML 1.0 antes del retroceso y el contexto del espacio de nombres


public static Map < String , Object > testRandomAuthorize  ( DispatchContext dctx , Map < String , ? extends Object > context ) { Locale locale = ( Locale ) context . get ( "locale" ) ; Map < String , Object > result = ServiceUtil . returnSuccess ( ) ; String refNum = UtilDateTime . nowAsString ( ) ; Random r = new Random ( ) ; int i = r . nextInt ( 9 ) ; if ( i < 5 || i % 2 == 0 ) { result . put ( "authResult" , Boolean . TRUE ) ; result . put ( "authFlag" , "A" ) ; } else { result . put ( "authResult" , Boolean . FALSE ) ; result . put ( "authFlag" , "D" ) ; } result . put ( "processAmount" , context . get ( "processAmount" ) ) ; result . put ( "authRefNum" , refNum ) ; result . put ( "authAltRefNum" , refNum ) ; result . put ( "authCode" , "100" ) ; result . put ( "authMessage" , UtilProperties . getMessage ( resource , "AccountingPaymentTestCapture" , locale ) ) ; return result ; }

Prueba Autorize - ¿Declinaciones aleatorias?


private void initialiseLogger  ( ) { if ( System . getProperty ( LOG_FILE_CONFIG_SYSTEM_PROPERTY ) == null ) System . setProperty ( LOG_FILE_CONFIG_SYSTEM_PROPERTY , getProjectPath ( ) + DEFAULT_LOG_CONFIG_FILE ) ; System . setProperty ( LOG_FILE_OUTPUT_SYSTEM_PROPERTY , getPath ( LOGGING_FILE_PATH ) ) ; if ( ! ( new File ( System . getProperty ( LOG_FILE_CONFIG_SYSTEM_PROPERTY ) ) ) . exists ( ) ) { LoggerFactory . getLogger ( ConfigProperties . class ) . error ( ErrorMessage . NO_LOG_CONFIG_FILE . getMessage ( System . getProperty ( LOG_FILE_CONFIG_SYSTEM_PROPERTY ) ) ) ; } else { LOG = LoggerFactory . getLogger ( ConfigProperties . class ) ; LOG . info ( "Logging configuration file in use:[" + System . getProperty ( LOG_FILE_CONFIG_SYSTEM_PROPERTY ) + "]" ) ; } }

Compruebe si se establece el argumento de JVM "-dlogback.configurationFile".Si no está establecido, lo establece en el predeterminado.También establece la propiedad del sistema -DMindMaps.log.File Igual a la especificada en MindMaps-engine.properties.La propiedad MindMaps.log.file será utilizada por Logback.xml


public SimpleSimilarity ( double dInit ) { Simil = Double . valueOf ( dInit ) ; }

Crea un objeto de similitud simple, con un valor predeterminado dado.


public static SM_SYSTEM_MESSAGE _STR_MSG_Heal_TO_ME  ( int num0 ) { return new SM_SYSTEM_MESSAGE ( 1390216 , num0 ) ; }


public BlurDrawable ( Activity activity ) { this ( activity . getWindow ( ) . getDecorView ( ) ) ; }

utilizado para el cuadro de diálogo / Fragmento / Popwindow / diálogo


private static String [ ] splitWorker  ( String str , String separatorChars , int max , boolean preserveAllTokens ) { if ( str == null ) { return null ; } int len = str . length ( ) ; if ( len == 0 ) { return EMPTY_STRING_ARRAY ; } List list = new ArrayList ( ) ; int sizePlus1 = 1 ; int i = 0 , start = 0 ; boolean match = false ; boolean lastMatch = false ; if ( separatorChars == null ) { while ( i < len ) { if ( Character . isWhitespace ( str . charAt ( i ) ) ) { if ( match || preserveAllTokens ) { lastMatch = true ; if ( sizePlus1 ++ == max ) { i = len ; lastMatch = false ; } list . add ( str . substring ( start , i ) ) ; match = false ; } start = ++ i ; continue ; } lastMatch = false ; match = true ; i ++ ; } } else if ( separatorChars . length ( ) == 1 ) { char sep = separatorChars . charAt ( 0 ) ; while ( i < len ) { if ( str . charAt ( i ) == sep ) { if ( match || preserveAllTokens ) { lastMatch = true ; if ( sizePlus1 ++ == max ) { i = len ; lastMatch = false ; } list . add ( str . substring ( start , i ) ) ; match = false ; } start = ++ i ; continue ; } lastMatch = false ; match = true ; i ++ ; } } else { while ( i < len ) { if ( separatorChars . indexOf ( str . charAt ( i ) ) >= 0 ) { if ( match || preserveAllTokens ) { lastMatch = true ; if ( sizePlus1 ++ == max ) { i = len ; lastMatch = false ; } list . add ( str . substring ( start , i ) ) ; match = false ; } start = ++ i ; continue ; } lastMatch = false ; match = true ; i ++ ; } } if ( match || ( preserveAllTokens && lastMatch ) ) { list . add ( str . substring ( start , i ) ) ; } return ( String [ ] ) list . toArray ( new String [ list . size ( ) ] ) ; }

Realiza la lógica para el <código> Split </ Code> y <Code> SplitPreservealLtokens </ Code> Métodos que devuelven una longitud máxima de matriz.


@ Override public int hashCode  ( ) { return fDomain . hashCode ( ) + fKey . hashCode ( ) ; }

Devuelve un valor de código hash para este XMLERRORCODE.


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


public Jim2Mov ( ImageProvider ip , MovieInfoProvider mip ) { this . ip = ip ; this . mip = mip ; itm = new ImagesToMovie ( this ) ; }


public void onActivityResult  ( int requestCode , int resultCode , Intent data ) { if ( mInitializationComplete ) { mActivityDelegate . onActivityResultWithNative ( requestCode , resultCode , data ) ; } else { if ( mPendingActivityResults == null ) { mPendingActivityResults = new ArrayList < ActivityResult > ( 1 ) ; } mPendingActivityResults . add ( new ActivityResult ( requestCode , resultCode , data ) ) ; } }

Esta es la devolución de llamada de Android OnactivityResult, si es necesario, a cuando la biblioteca nativa se ha cargado.


public Result withMetricValue  ( MetricColumn metricColumn , Object value ) { Map < MetricColumn , Object > newMetricValues = new LinkedHashMap < > ( metricValues ) ; newMetricValues . put ( metricColumn , value ) ; return new Result ( dimensionRows , newMetricValues , timeStamp ) ; }

Copie el resultado, agregar o reemplazar el valor de una métrica no agregue un método de columna, ya que la eliminación de las columnas es mucho menos segura.


public String lookupText  ( String inputtype , String outputtype , String locale , String voice , String inputtext ) throws SQLException { return lookupText ( inputtype , outputtype , locale , voice , null , null , null , inputtext ) ; }

Lleve a cabo una búsqueda en el caché con los parámetros dados.


private static void addVerticalSmallSpring  ( Path2D . Float path , int x0 , int y1 , int y2 ) { int springHeight = 2 ; int springWidth = 2 ; int distance = Math . abs ( y2 - y1 ) ; int numSprings = ( distance / ( springHeight ) ) ; int leftOver = ( distance - ( numSprings * springHeight ) ) / 2 ; path . lineTo ( x0 , y1 ) ; path . lineTo ( x0 , y1 - leftOver ) ; int count = 0 ; if ( y1 > y2 ) { for ( int y = y1 - leftOver ; y > y2 + leftOver ; y -= springHeight ) { int x = ( count % 2 == 0 ) ? x0 - springWidth : x0 + springWidth ; path . lineTo ( x , y ) ; count ++ ; } } else { for ( int y = y1 + leftOver ; y < y2 - leftOver ; y += springHeight ) { int x = ( count % 2 == 0 ) ? x0 - springWidth : x0 + springWidth ; path . lineTo ( x , y ) ; count ++ ; } } path . lineTo ( x0 , y2 + leftOver ) ; path . lineTo ( x0 , y2 ) ; }

Agregue un resorte vertical entre (x0, y1) y (x0, y1) al objeto de ruta dado


public String findTitleFormattingTag  ( ) { bobcatWait . withTimeout ( Timeouts . MEDIUM ) . until ( ExpectedConditions . visibilityOf ( currentScope ) ) ; WebElement titleTagFound = currentScope . findElement ( TITLE_TAG_BY ) ; return titleTagFound . getTagName ( ) ; }

Busque el elemento web del título, ya que podría ser reemplazado por JavaScript mientras tanto.


public static SM_SYSTEM_MESSAGE STR_MSG_PAY_ACCOUNT_OTHER  ( String value0 , long highestValue ) { return new SM_SYSTEM_MESSAGE ( 1390186 , value0 , highestValue ) ; }


public static GenericValue searchDuplicatedAncestor  ( String productId , String productIdKey , String bomType , Date inDate , Delegator delegator , LocalDispatcher dispatcher , GenericValue userLogin ) throws GenericEntityException { return searchDuplicatedAncestor ( productId , productIdKey , null , bomType , inDate , delegator , dispatcher , userLogin ) ; }

Devuelve el valor genérico de ProductAsoc para un antepasado de productos duplicados del producto si está presente, nulo de otra manera.Útil para evitar los bucles al agregar nuevas asociadas (componentes) a una factura de materiales.


public final void testWriteLine  ( ) { FallbackFileController fFileController = new FallbackFileController ( PATH ) ; FallbackImpl fallbackImpl = new FallbackImpl ( ) ; try { fFileController . openFallbackOutputStream ( ) ; fFileController . writeLine ( fallbackImpl ) ; fFileController . closeFallbackOutputStream ( ) ; } catch ( DataFallbackException e ) { fail ( "An error has ocurred while trying to write in the fallback log file" ) ; } assertFalse ( fFileController . isFallBackFileEmpty ( ) ) ; }

Pruebas de que un nuevo objeto de mono corto está registrado correctamente en el archivo de registro Fallback


public void revealHiddenPotential  ( ) { final MapleItemInformationProvider ii = MapleItemInformationProvider . getInstance ( ) ; final int reqLevel = ii . getReqLevel ( getItemId ( ) ) / 10 ; final List < List < StructItemOption > > pots = new LinkedList < > ( MapleItemInformationProvider . getInstance ( ) . getAllPotentialInfo ( ) . values ( ) ) ; if ( getPotentialByLine ( 0 ) < 0 ) { int newState = - getPotentialByLine ( 0 ) ; if ( newState > Equip . LEGENDARY ) { newState = Equip . LEGENDARY ; } else if ( newState < Equip . RARE ) { newState = Equip . RARE ; } while ( getStateByPotential ( getPotential ( ) ) != newState ) { for ( int i = 0 ; i < getPotential ( ) . length ; i ++ ) { if ( getPotentialByLine ( i ) == 0 ) { break ; } boolean rewarded = false ; while ( ! rewarded ) { StructItemOption pot = pots . get ( Randomizer . nextInt ( pots . size ( ) ) ) . get ( reqLevel ) ; if ( pot != null && pot . reqLevel <= reqLevel && GameConstants . optionTypeFits ( pot . optionType , getItemId ( ) ) && GameConstants . potentialIDFits ( pot . opID , newState , i ) && ! GameConstants . isBonusPot ( pot . opID ) ) { setPotentialByLine ( i , pot . opID ) ; rewarded = true ; } } } } } if ( getBonusPotentialByLine ( 0 ) < 0 ) { int newState = - getBonusPotentialByLine ( 0 ) ; if ( newState > Equip . LEGENDARY ) { newState = Equip . LEGENDARY ; } else if ( newState < Equip . RARE ) { newState = Equip . RARE ; } while ( getStateByPotential ( getBonusPotential ( ) ) != newState ) { for ( int i = 0 ; i < getBonusPotential ( ) . length ; i ++ ) { if ( getBonusPotentialByLine ( i ) == 0 ) { break ; } boolean rewarded = false ; while ( ! rewarded ) { StructItemOption pot = pots . get ( Randomizer . nextInt ( pots . size ( ) ) ) . get ( reqLevel ) ; if ( pot != null && pot . reqLevel <= reqLevel && GameConstants . optionTypeFits ( pot . optionType , getItemId ( ) ) && GameConstants . potentialIDFits ( pot . opID , newState , i ) && GameConstants . isBonusPot ( pot . opID ) ) { setBonusPotentialByLine ( i , pot . opID ) ; rewarded = true ; } } } } } }

Revela un potencial oculto en los artículos.Puede ser principal, bonificación o ambos.


public boolean isRepair  ( ) { return repair ; }

Compruebe si este evento fue activado por una operación de reparación de herramientas en lugar de una receta de elaboración.


public int putIfAbsent  ( K key , int value ) { int index = insertionIndex ( key ) ; if ( index < 0 ) return _values [ - index - 1 ] ; return doPut ( key , value , index ) ; }

Inserta un par de claves / valor en el mapa si la tecla especificada aún no está asociada con un valor.


public Builder integerToCategorical  ( String columnName , List < String > categoryStateNames ) { return transform ( new IntegerToCategoricalTransform ( columnName , categoryStateNames ) ) ; }

Convertir la columna especificada de una representación de un entero (asume valores 0 a numcrategories-1) a una representación categórica, dados los nombres de estado especificados


public void addSubstitutionGroup  ( XSElementDecl [ ] elements ) { XSElementDecl subHead , element ; Vector subGroup ; for ( int i = elements . length - 1 ; i >= 0 ; i -- ) { element = elements [ i ] ; subHead = element . fSubGroup ; subGroup = ( Vector ) fSubGroupsB . get ( subHead ) ; if ( subGroup == null ) { subGroup = new Vector ( ) ; fSubGroupsB . put ( subHead , subGroup ) ; } subGroup . addElement ( element ) ; } }

Agregar una lista de información de grupo de sustitución.


public SequenceTemplateParameterContext initSequence  ( SequenceType seqType , SequenceUUID uuid ) { if ( ! sequences . containsKey ( seqType ) || ! sequences . get ( seqType ) . contains ( uuid ) ) { int seqNum = getSequenceCount ( seqType ) ; doAddParameter ( seqType , uuid , SequenceContextParameters . UUID , uuid . getUuid ( ) ) ; doAddParameter ( seqType , uuid , SequenceContextParameters . TYPE , seqType . value ( ) ) ; doAddParameter ( seqType , uuid , SequenceContextParameters . NUM , String . valueOf ( seqNum ) ) ; } return this ; }

Inite un parámetro de secuencia (pista virtual) definida por el UUID dado.Define los parámetros predeterminados (como la secuencia uuid, el tipo y el número).El método debe llamarse para cada secuencia antes de agregar otros parámetros.


public IntervalFeatureSet ( Map < String , List < IntervalFeature > > intervalMap , TrackFormat type ) { this . intervalMap = intervalMap ; this . sortIntervalsWithinChroms ( ) ; this . type = type ; }

Inicialice directamente desde el mapa de los intervalos.


@ ColorInt private int extractIntAttribute  ( Context context , int [ ] attribute ) { TypedValue typedValue = new TypedValue ( ) ; TypedArray a = context . obtainStyledAttributes ( typedValue . data , attribute ) ; int color = a . getColor ( 0 , 0 ) ; a . recycle ( ) ; return color ; }

Extrae el dibujable del tema del contexto que pasa.


private static double calculateAngle  ( SensorEvent event , GeomagneticField magneticField ) { float azimuth = getAzimuth ( event ) ; double angle ; if ( magneticField != null ) { angle = Math . toDegrees ( azimuth ) + magneticField . getDeclination ( ) ; } else { angle = Math . toDegrees ( azimuth ) ; } angle = ( angle + 360 ) % 360 ; return angle ; }

Calcular el ángulo a Norte según los datos sensoreventes


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

ID del usuario o comunidad que posee el video.


public void clearParsys  ( String parsys , String componentName ) { globalBar . switchToEditMode ( ) ; while ( getParsys ( parsys ) . isComponentPresent ( componentName ) ) { deleteComponent ( parsys , componentName ) ; } }

Retire todos los componentes con el nombre.


private void updateThingType  ( ) { if ( getThing ( ) . getThingTypeUID ( ) . equals ( ZWaveBindingConstants . ZWAVE_THING_UID ) == false ) { finalTypeSet = true ; return ; } String parmManufacturer = this . getThing ( ) . getProperties ( ) . get ( ZWaveBindingConstants . PROPERTY_MANUFACTURER ) ; if ( parmManufacturer == null ) { logger . debug ( "NODE {}: MANUFACTURER not set" , nodeId ) ; return ; } String parmDeviceType = this . getThing ( ) . getProperties ( ) . get ( ZWaveBindingConstants . PROPERTY_DEVICETYPE ) ; if ( parmDeviceType == null ) { logger . debug ( "NODE {}: TYPE not set" , nodeId ) ; return ; } String parmDeviceId = this . getThing ( ) . getProperties ( ) . get ( ZWaveBindingConstants . PROPERTY_DEVICEID ) ; if ( parmDeviceId == null ) { logger . debug ( "NODE {}: ID not set" , nodeId ) ; return ; } String parmVersion = this . getThing ( ) . getProperties ( ) . get ( ZWaveBindingConstants . PROPERTY_VERSION ) ; if ( parmVersion == null ) { logger . debug ( "NODE {}: VERSION not set {}" , nodeId ) ; return ; } int deviceType ; int deviceId ; int deviceManufacturer ; try { deviceManufacturer = Integer . parseInt ( parmManufacturer ) ; deviceType = Integer . parseInt ( parmDeviceType ) ; deviceId = Integer . parseInt ( parmDeviceId ) ; } catch ( final NumberFormatException ex ) { logger . debug ( "NODE {}: Unable to parse device data" , nodeId ) ; return ; } ZWaveProduct foundProduct = null ; for ( ZWaveProduct product : ZWaveConfigProvider . getProductIndex ( ) ) { if ( product == null ) { continue ; } if ( product . match ( deviceManufacturer , deviceType , deviceId , parmVersion ) == true ) { foundProduct = product ; break ; } } if ( foundProduct == null ) { return ; } changeThingType ( foundProduct . getThingTypeUID ( ) , getConfig ( ) ) ; finalTypeSet = true ; }

Compruebe el tipo de cosa y cambielo si está mal


public static Document parseDocument  ( File file ) throws ParserConfigurationException , SAXException , IOException  { return parseDocument ( file , false ) ; }

Dom-analizar los datos de entrada dados.Espacio de nombres: consciente pero no validado.


public static long calculateDifferentMinute  ( Date startDate , Date endDate ) { return calculateDifference ( startDate , endDate , DifferenceMode . Minute ) ; }


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


public void removeRecord  ( Record record ) { this . numRecords -- ; int count = 0 ; for ( DataType value : record . getValues ( ) ) { switch ( value . type ( ) ) { case INT : this . histograms . get ( count ) . removeValue ( value . getInt ( ) ) ; break ; case STRING : this . histograms . get ( count ) . removeValue ( value . getString ( ) ) ; break ; case BOOL : this . histograms . get ( count ) . removeValue ( value . getBool ( ) ) ; break ; case FLOAT : this . histograms . get ( count ) . removeValue ( value . getFloat ( ) ) ; break ; default : break ; } count ++ ; } }

Retire las estadísticas para un registro existente.


private void saveProject  ( ) { saveProject ( false ) ; }

Guarda el proyecto y permanece en la misma pantalla.


public void addJVMArg  ( String args ) { if ( args == null ) return ; List < String > listJvmArgs = ExecutorUtils . tokenize ( args , null ) ; for ( String sp : listJvmArgs ) addJVMArg ( new Argument ( sp ) ) ; }


public BaseMqttMessage ( final long id , final String topic , final MqttMessage message ) { super ( id , topic , null , new Date ( ) ) ; this . rawMessage = message ; }

Crea un basemqtTmessage de los parámetros dados.


public String toString  ( ) { int len = this . name . length ( ) ; if ( this . value != null ) len += 1 + this . value . length ( ) ; CharArrayBuffer buffer = new CharArrayBuffer ( len ) ; buffer . append ( this . name ) ; if ( this . value != null ) { buffer . append ( "=" ) ; buffer . append ( this . value ) ; } return buffer . toString ( ) ; }

Obtener una representación de cadena de este par.


public AdamsBashforthFieldIntegrator ( final Field < T > field , final int nSteps , final double minStep , final double maxStep , final double scalAbsoluteTolerance , final double scalRelativeTolerance ) throws MathIllegalArgumentException { super ( field , METHOD_NAME , nSteps , nSteps , minStep , maxStep , scalAbsoluteTolerance , scalRelativeTolerance ) ; }

Construye un integrador Adams-Bashforth con los parámetros de control de pedido y paso dado.


public Inventories ( PokemonGo api ) { this . api = api ; itemBag = new ItemBag ( api ) ; pokebank = new PokeBank ( ) ; candyjar = new CandyJar ( api ) ; pokedex = new Pokedex ( ) ; hatchery = new Hatchery ( api ) ; }

Crea inventarios e inicializa el contenido.


public BrokenInputStream ( IOException exception ) { this . exception = exception ; }

Crea una nueva corriente que siempre arroja la excepción dada.


private double stage  ( final int n , double previousStageResult , double min , double diffMaxMin ) throws MathIllegalStateException { final long np = 1L << ( n - 1 ) ; double sum = 0 ; final double spacing = diffMaxMin / np ; double x = min + 0.5 * spacing ; for ( long i = 0 ; i < np ; i ++ ) { sum += computeObjectiveValue ( x ) ; x += spacing ; } return 0.5 * ( previousStageResult + sum * spacing ) ; }

Calcule la etapa N-TH integral de la regla de punto medio.Esta función solo debe ser llamada por API <CODE> integrar () </ código> en el paquete.Para ahorrar tiempo, no verifica los argumentos: la persona que llama lo hace.<p> El intervalo se divide igualmente en secciones de 2 ^ n en lugar de en las secciones ARBITRARY M porque esta configuración puede utilizar mejor los valores ya calculados. </ p>


public AwsIotCompletion ( String topic , AWSIotQos qos , String payload , long timeout ) { super ( topic , qos , payload ) ; this . timeout = timeout ; this . request = null ; this . isAsync = false ; }

Instantánea un nuevo objeto de finalización con una solicitud síncrona.