@ Override protected AuthorizationInfo doGetAuthorizationInfo  ( PrincipalCollection principals ) { AuthorizationInfo authorizationInfo = getUncachedAuthorizationInfoFromPrincipals ( principals ) ; Cache < String , AuthorizationInfo > internalAuthorizationCache = getAvailableInternalAuthorizationCache ( ) ; if ( internalAuthorizationCache != null ) { for ( PrincipalWithRoles principal : getPrincipalsFromPrincipalCollection ( principals ) ) { if ( internalAuthorizationCache . get ( principal . getInternalId ( ) ) == null ) { cacheAuthorizationInfoByInternalId ( principal . getInternalId ( ) , authorizationInfo ) ; } } } return authorizationInfo ; }

Obtiene el AutorizationInfo que coincide con un token.Este método solo se llama si la información aún no está en caché por el reino, por lo que este método no necesita realizar ningún otro almacenamiento en caché.


public String toString  ( ) { return "QueueBrowser for the session:" + m_session . toString ( ) ; }

Devuelve una visión de cadena de este navegador.


public static Map < String , Object > convertDocument  ( DispatchContext dctx , Map < String , ? extends Object > context ) { XMultiComponentFactory xmulticomponentfactory = null ; String stringUrl = "file:///" + context . get ( "filenameFrom" ) ; String stringConvertedFile = "file:///" + context . get ( "filenameTo" ) ; String filterName = "file:///" + context . get ( "filterName" ) ; String oooHost = ( String ) context . get ( "oooHost" ) ; String oooPort = ( String ) context . get ( "oooPort" ) ; try { xmulticomponentfactory = OpenOfficeWorker . getRemoteServer ( oooHost , oooPort ) ; OpenOfficeWorker . convertOODocToFile ( xmulticomponentfactory , stringUrl , stringConvertedFile , filterName ) ; Map results = ServiceUtil . returnSuccess ( ) ; return results ; } catch ( IOException e ) { Debug . logError ( e , "Error in OpenOffice operation: " , module ) ; return ServiceUtil . returnError ( e . toString ( ) ) ; } catch ( Exception e ) { Debug . logError ( e , "Error in OpenOffice operation: " , module ) ; return ServiceUtil . returnError ( e . toString ( ) ) ; } }

Use OpenOffice para convertir documentos entre tipos.


public void componentResized  ( ComponentEvent ev ) { viewer . setSize ( viewer . getSize ( ) ) ; }


static double [ ] loadExpFracA  ( ) { return EXP_FRAC_A . clone ( ) ; }


private void createUI  ( int noOfRows ) { setLayout ( new BorderLayout ( ) ) ; int xPos = 0 ; int width = BasePanel . FIELD_PANEL_WIDTH - xPos - 20 ; int height = BasePanel . WIDGET_HEIGHT * ( noOfRows - 1 ) ; this . setBounds ( 0 , 0 , width , height ) ; textField = new JTextArea ( ) ; textField . setBounds ( xPos , BasePanel . WIDGET_HEIGHT , width , height ) ; Font font = textField . getFont ( ) ; Font updatedFont = new Font ( font . getFontName ( ) , font . getStyle ( ) , FONT_SIZE ) ; textField . setFont ( updatedFont ) ; textField . setEditable ( true ) ; JScrollPane scroll = new JScrollPane ( textField ) ; scroll . setAutoscrolls ( true ) ; add ( scroll , BorderLayout . CENTER ) ; }


V readValueUnderLock  ( IHashEntry < K , V > e ) { lock ( ) ; try { return _h . value ( e ) ; } finally { unlock ( ) ; } }

Lea el campo de valor de una entrada bajo bloqueo.Llamado si el campo de valor siempre parece ser nulo.Esto es posible solo si un compilador reordena una inicialización de iHashentry con su asignación de tabla, que es legal en el modelo de memoria, pero no se sabe que ocurra.


public ViewActionMenu ( int rank , @ NotNull String menuName , @ Nullable Icon icon , @ NotNull List < ViewAction > actions ) { super ( rank , icon , menuName ) ; myActions = actions ; }


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

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


public WallEditQuery markAsAds  ( Boolean value ) { return unsafeParam ( "mark_as_ads" , value ) ; }


public static float unQuantize  ( short s , float fMin , float fRange ) { return ( ( float ) ( ( ( s ) + 32768.0 ) * fRange / 65535.0 - fMin ) ) ; }

Sin cuantificar una camisa firmada de 16 bits sobre un rango de flotador.


public boolean similarTo  ( Object o ) { if ( o == null ) { return false ; } if ( ! ( o instanceof SemanticConcept ) ) { return false ; } SemanticConcept otherConcept = ( SemanticConcept ) o ; HashSet < Integer > synset_intersection = new HashSet < Integer > ( this . synsets ) ; synset_intersection . retainAll ( otherConcept . synsets ) ; if ( ! synset_intersection . isEmpty ( ) ) { return true ; } HashSet < String > concept_intersection = new HashSet < String > ( this . concepts ) ; concept_intersection . retainAll ( otherConcept . concepts ) ; return ! concept_intersection . isEmpty ( ) ; }

SemanticConcepts son similares si comparten un sintonizador o un concepto


public IntArrayList top  ( int n ) { IntArrayList top = new IntArrayList ( ) ; int [ ] values = data . toIntArray ( ) ; IntArrays . parallelQuickSort ( values , ReverseIntComparator . instance ( ) ) ; for ( int i = 0 ; i < n && i < values . length ; i ++ ) { top . add ( values [ i ] ) ; } return top ; }

Devuelve los valores más grandes ("top") n en la columna


public static final Segment scale  ( Segment segment , double scale ) { if ( segment == null ) throw new NullPointerException ( Messages . getString ( "geometry.nullShape" ) ) ; if ( scale <= 0 ) throw new IllegalArgumentException ( Messages . getString ( "geometry.invalidScale" ) ) ; final double length = segment . getLength ( ) * scale * 0.5 ; Vector2 n = segment . vertices [ 0 ] . to ( segment . vertices [ 1 ] ) ; n . normalize ( ) ; n . multiply ( length ) ; return new Segment ( segment . center . sum ( n . x , n . y ) , segment . center . difference ( n . x , n . y ) ) ; }

Devuelve una versión escalada del segmento dado.


public static boolean isWindowsXPLookAndFeel  ( ) { return UIUtils . isWindowsXPLookAndFeel ( ) ; }

Determina si la L & F actual es Windows XP LookandFeel


public String removeReferenceHeaderFromBlastMatch  ( String blastText ) { int index = blastText . indexOf ( "Length" ) ; if ( index == - 1 ) index = blastText . indexOf ( "Score" ) ; if ( index > 0 ) return blastText . substring ( index ) ; else return blastText ; }

Retire el encabezado de un texto de explosión (pero mantenga la declaración de longitud, si está presente)


public static void appendContentPrefix  ( HttpServletRequest request , Appendable urlBuffer , String webSiteId ) throws IOException { if ( request == null ) { Debug . logWarning ( "Request was null in appendContentPrefix; this probably means this was used where it shouldn't be, like using ofbizContentUrl in a screen rendered through a service; using best-bet behavior: standard prefix from url.properties (no WebSite or security setting known)" , module ) ; String prefix = UtilProperties . getPropertyValue ( "url" , "content.url.prefix.standard" ) ; if ( prefix != null ) { urlBuffer . append ( prefix . trim ( ) ) ; } return ; } GenericValue webSite ; if ( webSiteId != null && webSiteId . length ( ) > 0 ) { webSite = WebSiteWorker . findWebSite ( ( Delegator ) request . getAttribute ( "delegator" ) , webSiteId ) ; } else { webSite = WebSiteWorker . getWebSite ( request ) ; } String forwardedProto = request . getHeader ( "X-Forwarded-Proto" ) ; boolean isForwardedSecure = UtilValidate . isNotEmpty ( forwardedProto ) && "HTTPS" . equals ( forwardedProto . toUpperCase ( ) ) ; boolean isSecure = request . isSecure ( ) || isForwardedSecure ; appendContentPrefix ( webSite , isSecure , urlBuffer ) ; }

Anexa el prefijo de contenido para buffer.<p> scipio: modificado para soportar un sitio web explícito


private void requestAddNodesStop  ( ) { enqueue ( new AddNodeMessageClass ( ) . doRequestStop ( ) ) ; logger . debug ( "ZWave controller end inclusion" ) ; }


@ SuppressWarnings ( "unused" ) public void enableLastSlideAlphaExitTransition  ( boolean enableAlphaExitTransition ) { adapter . addEmptySlide ( new LastEmptySlideFragment ( ) ) ; }

Establecer si la última pantalla debe poder salir con la transición alfa


protected UsersGetNearbyQuery longitude  ( float value ) { return unsafeParam ( "longitude" , value ) ; }

Longitud geográfica del lugar se encuentra un usuario, en grados (de -180 a 180)


@ Override public void startDTD  ( XMLLocator locator , Augmentations augs ) throws XNIException { if ( DEBUG_EVENTS ) { System . out . println ( "==>startDTD" ) ; if ( DEBUG_BASEURI ) { System . out . println ( "   expandedSystemId: " + locator . getExpandedSystemId ( ) ) ; System . out . println ( "   baseURI:" + locator . getBaseSystemId ( ) ) ; } } fInDTD = true ; if ( locator != null ) { fBaseURIStack . push ( locator . getBaseSystemId ( ) ) ; } if ( fDeferNodeExpansion || fDocumentImpl != null ) { fInternalSubset = new StringBuffer ( 1024 ) ; } }


public boolean isTransformationApplied  ( ) { return applyTransformation ; }


private static FingerLock createInstance  ( @ NonNull String keyName ) { FingerLock fragment = new FingerLock ( ) ; Bundle arguments = new Bundle ( ) ; arguments . putString ( ARG_KEY_NAME , keyName ) ; fragment . setArguments ( arguments ) ; return fragment ; }

Método de conveniencia para crear la biblioteca sin inicializarlo.


public Polynomial ( int order ) { this . coeffs = new double [ order + 1 ] ; }

Cree un nuevo polinomio del pedido solicitado con todos los coeficientes establecidos en 0.


@ Override protected void runChild  ( Runner runner , RunNotifier notifier ) { ParentRunner < ? > pr = ( ParentRunner < ? > ) runner ; ClassLoader cl = null ; try { cl = Thread . currentThread ( ) . getContextClassLoader ( ) ; Thread . currentThread ( ) . setContextClassLoader ( pr . getTestClass ( ) . getJavaClass ( ) . getClassLoader ( ) ) ; super . runChild ( runner , notifier ) ; } finally { Thread . currentThread ( ) . setContextClassLoader ( cl ) ; } }

Establece el cargador de clase de contexto del hilo en el cargador de clases para la clase de prueba.


@ SuppressWarnings ( "unchecked" ) public static Object eval  ( String expression , Map < String , Object > context ) throws CompilationFailedException { Object o ; if ( expression == null || expression . equals ( "" ) ) { Debug . logError ( "Groovy Evaluation error. Empty expression" , module ) ; return null ; } if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "Evaluating -- " + expression , module ) ; Debug . logVerbose ( "Using Context -- " + context , module ) ; } try { GroovyShell shell = new GroovyShell ( getBinding ( context ) ) ; o = shell . evaluate ( StringUtil . convertOperatorSubstitutions ( expression ) ) ; if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "Evaluated to -- " + o , module ) ; } Binding binding = shell . getContext ( ) ; context . putAll ( binding . getVariables ( ) ) ; } catch ( CompilationFailedException e ) { Debug . logError ( e , "Groovy Evaluation error." , module ) ; throw e ; } return o ; }

Evaluar una condición o expresión maravillosa.


public static String formatBigFraction  ( final BigFraction f ) { return getImproperInstance ( ) . format ( f ) ; }

Este método estático llama a FAICKBACFRACH () en una instancia predeterminada de BigfractorFormat.


public static Bitmap scaleImageTo  ( Bitmap org , int newWidth , int newHeight ) { return scaleImage ( org , ( float ) newWidth / org . getWidth ( ) , ( float ) newHeight / org . getHeight ( ) ) ; }


public static Map < String , Object > addListToSolrIndex  ( DispatchContext dctx , Map < String , Object > context ) throws GenericEntityException { HttpSolrClient client = null ; Map < String , Object > result ; Boolean treatConnectErrorNonFatal = ( Boolean ) context . get ( "treatConnectErrorNonFatal" ) ; try { Collection < SolrInputDocument > docs = new ArrayList < SolrInputDocument > ( ) ; List < Map < String , Object > > fieldList = UtilGenerics . < Map < String , Object > > checkList ( context . get ( "fieldList" ) ) ; if ( fieldList . size ( ) > 0 ) { Debug . logInfo ( "Solr: Generating and adding " + fieldList . size ( ) + " documents to solr index" , module ) ; for ( Iterator < Map < String , Object > > fieldListIterator = fieldList . iterator ( ) ; fieldListIterator . hasNext ( ) ; ) { SolrInputDocument doc1 = SolrUtil . generateSolrDocument ( fieldListIterator . next ( ) ) ; if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "Solr: Indexing document: " + doc1 . toString ( ) , module ) ; } docs . add ( doc1 ) ; } if ( UtilValidate . isNotEmpty ( context . get ( "core" ) ) ) { client = new HttpSolrClient ( SolrUtil . solrUrl + "/" + context . get ( "core" ) ) ; } else { client = new HttpSolrClient ( SolrUtil . solrFullUrl ) ; } client . add ( docs ) ; client . commit ( ) ; } else { Debug . logInfo ( "Solr: No documents to index" , module ) ; } final String statusStr = "Added " + fieldList . size ( ) + " documents to solr index" ; Debug . logInfo ( "Solr: " + statusStr , module ) ; result = ServiceUtil . returnSuccess ( statusStr ) ; } catch ( MalformedURLException e ) { Debug . logError ( e , e . getMessage ( ) , module ) ; result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "urlError" ) ; } catch ( SolrServerException e ) { if ( e . getCause ( ) != null && e . getCause ( ) instanceof ConnectException ) { final String statusStr = "Failure connecting to solr server to commit product list; products not updated" ; if ( Boolean . TRUE . equals ( treatConnectErrorNonFatal ) ) { Debug . logWarning ( e , "Solr: " + statusStr , module ) ; result = ServiceUtil . returnFailure ( statusStr ) ; } else { Debug . logError ( e , "Solr: " + statusStr , module ) ; result = ServiceUtil . returnError ( statusStr ) ; } result . put ( "errorType" , "connectError" ) ; } else { Debug . logError ( e , e . getMessage ( ) , module ) ; result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "solrServerError" ) ; } } catch ( IOException e ) { Debug . logError ( e , e . getMessage ( ) , module ) ; result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "ioError" ) ; } finally { try { if ( UtilValidate . isNotEmpty ( client ) ) client . close ( ) ; } catch ( IOException e ) { result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "ioError" ) ; } } return result ; }

Agrega una lista de productos al índice SOLR.<p> Esto es más rápido que refrescar el índice cada vez.


public void onCompletion  ( MediaPlayer player ) { Log . d ( LOG_TAG , "on completion is calling stopped" ) ; this . setState ( STATE . MEDIA_STOPPED ) ; }

La devolución de llamada se invocará cuando se haya completado la reproducción de una fuente de medios.


public int optInt  ( int index ) { LazyNode token = getOptionalValueToken ( index ) ; if ( token == null ) return 0 ; if ( token . type == LazyNode . VALUE_NULL ) return 0 ; return token . getIntValue ( cbuf ) ; }

Devuelve el valor INT almacenado en el índice dado o 0 si no hubo tal valor.


public void createSets  ( ) { createSets ( true , 1.0 , false ) ; }

Inicializa los conjuntos de documentos con todos los archivos del subárbol de directorio base utilizado.


public List < ShoppingCartItem > items  ( ) { List < ShoppingCartItem > result = FastList . newInstance ( ) ; result . addAll ( cartLines ) ; return result ; }

Devuelve una colección de artículos en el objeto del carrito.


private void insertTestData  ( List < ? extends MithraDataObject > dataObjects , Object source ) { if ( dataObjects != null && ! dataObjects . isEmpty ( ) ) { MithraDataObject firstData = dataObjects . get ( 0 ) ; RelatedFinder finder = firstData . zGetMithraObjectPortal ( ) . getFinder ( ) ; ( ( MithraAbstractDatabaseObject ) finder . getMithraObjectPortal ( ) . getDatabaseObject ( ) ) . insertData ( Arrays . asList ( finder . getPersistentAttributes ( ) ) , dataObjects , source ) ; finder . getMithraObjectPortal ( ) . clearQueryCache ( ) ; } }

Este método se utiliza para insertar datos de prueba en una base de datos de prueba.Este método supone que la configuración () se ha llamado en esta instancia de Mithratestreurce y que el tipo MitHraObject se ha incluido en la configuración de tiempo de ejecución.


public boolean continueExecuting  ( ) { return this . mate . isEntityAlive ( ) && isWillingToMate ( mate ) && this . spawnBabyDelay < 60 ; }

Devuelve si un entidad en progreso debe continuar ejecutando


public ArrowIcon ( int direction , boolean isPressedView ) { this ( DEFAULT_SIZE , direction , isPressedView ) ; }


private void startDrawFragment  ( ) { changeToFragment ( DrawFragment . newInstance ( imageUri ) ) ; }

Cambie el contenedor de la vista para un fragmento de dibujo, restaura el fragmento anterior si existe uno.


private float [ ] loadBitmapData  ( Bitmap bitmap ) { final int [ ] pixels = new int [ width * height ] ; bitmap . getPixels ( pixels , 0 , width , 0 , 0 , width , height ) ; bitmap . recycle ( ) ; final float [ ] heightmapVertices = new float [ width * height * POSITION_COMPONENT_COUNT ] ; int offset = 0 ; for ( int row = 0 ; row < height ; row ++ ) { for ( int col = 0 ; col < width ; col ++ ) { final float xPosition = ( ( float ) col / ( float ) ( width - 1 ) ) - 0.5f ; final float yPosition = ( float ) Color . red ( pixels [ ( row * height ) + col ] ) / ( float ) 255 ; final float zPosition = ( ( float ) row / ( float ) ( height - 1 ) ) - 0.5f ; heightmapVertices [ offset ++ ] = xPosition ; heightmapVertices [ offset ++ ] = yPosition ; heightmapVertices [ offset ++ ] = zPosition ; } } return heightmapVertices ; }

Copie los datos de MAYMAP en un objeto de búfer de vértices.


private ChannelSelection createChannelSelectionError  ( StyleFactoryImpl styleFactory , ContrastMethod contrastMethod ) { ContrastEnhancement contrastEnhancement = ( ContrastEnhancement ) styleFactory . contrastEnhancement ( null , contrastMethod . name ( ) ) ; FilterFactory ff = CommonFactoryFinder . getFilterFactory ( ) ; Map < String , Expression > options = contrastEnhancement . getOptions ( ) ; options . put ( "algorithm" , ff . literal ( "TestStretchToMinimumMaximum" ) ) ; options . put ( "minValue" , ff . literal ( "1.0" ) ) ; options . put ( "maxValue" , ff . literal ( "5.0" ) ) ; SelectedChannelType channelType = styleFactory . createSelectedChannelType ( "channel name" , contrastEnhancement ) ; SelectedChannelType [ ] channels = new SelectedChannelType [ 3 ] ; channels [ 0 ] = channelType ; channels [ 1 ] = channelType ; channels [ 2 ] = channelType ; ChannelSelection channelSelection = styleFactory . createChannelSelection ( channels ) ; return channelSelection ; }

Crea el objeto de error de selección de canal.


public boolean isOpaqueCube  ( IBlockState state ) { return false ; }

Se utiliza para determinar la oclusión ambiental y el sacrificio al reconstruir trozos para renderizar


public static void main  ( String [ ] arguments ) { final Knock024A ab = new Knock024B ( ) ; System . out . println ( ab . getString ( ) ) ; }


Las instancias no deben construirse en la programación estándar.


@ Override public String toString  ( ) { return this . getClass ( ) . getSimpleName ( ) + ": Includes fields with these names: " + whitelist . toString ( ) ; }

Devuelve una explicación cómo funciona esta estrategia.


public Rotation toRotation  ( ) { return new Rotation ( q0 . getReal ( ) , q1 . getReal ( ) , q2 . getReal ( ) , q3 . getReal ( ) , false ) ; }

Convertir a un vector constante sin derivados.


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


public static void drawCircledText  ( Graphics2D g , Font font , String text , int x , int y ) { Graphics2D g2 = ( Graphics2D ) g . create ( ) ; g2 . setFont ( font ) ; FontMetrics fm = g2 . getFontMetrics ( ) ; int padding = 4 ; Rectangle2D bounds = fm . getStringBounds ( text , g2 ) ; double th = bounds . getHeight ( ) ; double tw = bounds . getWidth ( ) ; float radius = ( float ) ( Math . max ( th , tw ) / 2f + padding ) ; Ellipse2D . Float circle = new Ellipse2D . Float ( x - radius , y - radius , 2 * radius + 1 , 2 * radius + 1 ) ; g2 . fill ( circle ) ; g2 . setColor ( Color . BLACK ) ; g2 . drawString ( text , ( int ) ( x - tw / 2 ) , ( y + fm . getAscent ( ) / 2 ) ) ; if ( DEBUG ) { g2 . setColor ( Color . RED ) ; g2 . drawLine ( x - 50 , y , x + 50 , y ) ; g2 . drawLine ( x , y - 50 , x , y + 50 ) ; } g2 . dispose ( ) ; }

Función de utilidad para dibujar un texto del círculo centrado en las coordenadas (x, y)


RestMethod analyzeMethod  ( Method method , HttpAttribute httpConfig ) { RestMethod restMethod = createSpecialMethod ( method , httpConfig ) ; if ( restMethod == null ) { MethodMatcher matcher = null ; for ( MethodPattern pattern : RestPatterns . METHOD_PATTERNS ) { matcher = new MethodMatcher ( pattern , method , httpConfig ) ; if ( matcher . matches ) { break ; } matcher = null ; } if ( matcher != null ) { restMethod = matcher . createRestMethod ( ) ; } else { diagnose ( method , httpConfig ) ; restMethod = createCustomMethod ( method , httpConfig , "" ) ; } } String collectionName = restMethod . getRestCollectionName ( ) ; CollectionAttribute collection = collectionMap . get ( collectionName ) ; if ( collection == null ) { collection = new CollectionAttribute ( aspect . getModel ( ) , collectionName ) ; collectionMap . put ( collectionName , collection ) ; } RestMethod oldMethod = collection . addMethod ( restMethod ) ; if ( oldMethod != null ) { aspect . lintWarning ( METHOD_SHADOWED_RULE_NAME , restMethod . getBaseMethod ( ) , "REST method '%s' from rpc method '%s' at '%s' on collection '%s' is shadowed by REST " + "method of same name from this rpc. The original method will not be available in " + "REST discovery and derived artifacts." , oldMethod . getRestMethodName ( ) , oldMethod . getBaseMethod ( ) . getFullName ( ) , oldMethod . getBaseMethod ( ) . getLocation ( ) . getDisplayString ( ) , oldMethod . getRestCollectionName ( ) ) ; } return restMethod ; }

Analiza el método dado y la configuración HTTP y devuelve un método de reposo.


public boolean hasLure  ( ) { try { return hasLure ( false ) ; } catch ( LoginFailedException | RemoteServerException e ) { } return false ; }

Devuelve si este Pokestop tiene un atractivo activo cuando se detecta en el mapa.


public static Map < String , Object > checkUpdatePrunRoutingTask  ( DispatchContext ctx , Map < String , ? extends Object > context ) { Delegator delegator = ctx . getDelegator ( ) ; LocalDispatcher dispatcher = ctx . getDispatcher ( ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; GenericValue userLogin = ( GenericValue ) context . get ( "userLogin" ) ; String productionRunId = ( String ) context . get ( "productionRunId" ) ; String routingTaskId = ( String ) context . get ( "routingTaskId" ) ; if ( ! UtilValidate . isEmpty ( productionRunId ) && ! UtilValidate . isEmpty ( routingTaskId ) ) { ProductionRun productionRun = new ProductionRun ( productionRunId , delegator , dispatcher ) ; if ( productionRun . exist ( ) ) { if ( ! "PRUN_CREATED" . equals ( productionRun . getGenericValue ( ) . getString ( "currentStatusId" ) ) && ! "PRUN_SCHEDULED" . equals ( productionRun . getGenericValue ( ) . getString ( "currentStatusId" ) ) ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ManufacturingProductionRunPrinted" , locale ) ) ; } Timestamp estimatedStartDate = ( Timestamp ) context . get ( "estimatedStartDate" ) ; Timestamp pRestimatedStartDate = productionRun . getEstimatedStartDate ( ) ; if ( pRestimatedStartDate . after ( estimatedStartDate ) ) { try { dispatcher . runSync ( "updateProductionRun" , UtilMisc . toMap ( "productionRunId" , productionRunId , "estimatedStartDate" , estimatedStartDate , "userLogin" , userLogin ) ) ; } catch ( GenericServiceException e ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ManufacturingRoutingTaskStartDateBeforePRun" , locale ) ) ; } } Long priority = ( Long ) context . get ( "priority" ) ; List < GenericValue > pRRoutingTasks = productionRun . getProductionRunRoutingTasks ( ) ; boolean first = true ; for ( Iterator < GenericValue > iter = pRRoutingTasks . iterator ( ) ; iter . hasNext ( ) ; ) { GenericValue routingTask = iter . next ( ) ; if ( priority . equals ( routingTask . get ( "priority" ) ) && ! routingTaskId . equals ( routingTask . get ( "workEffortId" ) ) ) return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ManufacturingRoutingTaskSeqIdAlreadyExist" , locale ) ) ; if ( routingTaskId . equals ( routingTask . get ( "workEffortId" ) ) ) { routingTask . set ( "estimatedSetupMillis" , ( ( BigDecimal ) context . get ( "estimatedSetupMillis" ) ) . doubleValue ( ) ) ; routingTask . set ( "estimatedMilliSeconds" , ( ( BigDecimal ) context . get ( "estimatedMilliSeconds" ) ) . doubleValue ( ) ) ; if ( first ) { if ( ! estimatedStartDate . equals ( pRestimatedStartDate ) ) { productionRun . setEstimatedStartDate ( estimatedStartDate ) ; } } if ( ! priority . equals ( routingTask . get ( "priority" ) ) ) { routingTask . set ( "priority" , priority ) ; if ( ! productionRun . store ( ) ) { Debug . logError ( "productionRun.store(), in routingTask.priority update, fail for productionRunId =" + productionRunId , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ManufacturingProductionRunNotUpdated" , locale ) ) ; } productionRun . clearRoutingTasksList ( ) ; } } if ( first ) first = false ; } productionRun . setEstimatedCompletionDate ( productionRun . recalculateEstimatedCompletionDate ( priority , estimatedStartDate ) ) ; if ( productionRun . store ( ) ) { return ServiceUtil . returnSuccess ( ) ; } else { Debug . logError ( "productionRun.store() fail for productionRunId =" + productionRunId , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ManufacturingProductionRunNotUpdated" , locale ) ) ; } } Debug . logError ( "no productionRun for productionRunId =" + productionRunId , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ManufacturingProductionRunNotUpdated" , locale ) ) ; } Debug . logError ( "service updateProductionRun call with productionRunId empty" , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ManufacturingProductionRunNotUpdated" , locale ) ) ; }

Verifique si el campo para la actualización de la máscara de ruta es correcta y, si necesita datos recalculados en la producción de producción.Verifique <ul> <li> si estampado estampado no antes de la producción se estima que se estima. </ Ul> <li> Si no hay otra máscara de ruta con la misma prioridad si la prioridad o el estampado estimado ha cambiado los datos recalculados para la máscara de enrutamiento después de ese.<br/> Actualizar la producción de producción


public Builder normalize  ( String column , Normalize type , DataAnalysis da ) { ColumnAnalysis ca = da . getColumnAnalysis ( column ) ; if ( ! ( ca instanceof NumericalColumnAnalysis ) ) throw new IllegalStateException ( "Column \"" + column + "\" analysis is not numerical. " + "Column is not numerical?" ) ; NumericalColumnAnalysis nca = ( NumericalColumnAnalysis ) ca ; double min = nca . getMinDouble ( ) ; double max = nca . getMaxDouble ( ) ; double mean = nca . getMean ( ) ; double sigma = nca . getSampleStdev ( ) ; switch ( type ) { case MinMax : return transform ( new MinMaxNormalizer ( column , min , max ) ) ; case MinMax2 : return transform ( new MinMaxNormalizer ( column , min , max , - 1 , 1 ) ) ; case Standardize : return transform ( new StandardizeNormalizer ( column , mean , sigma ) ) ; case SubtractMean : return transform ( new SubtractMeanNormalizer ( column , mean ) ) ; case Log2Mean : return transform ( new Log2Normalizer ( column , mean , min , 0.5 ) ) ; case Log2MeanExcludingMin : long countMin = nca . getCountMinValue ( ) ; double meanExMin ; if ( ca . getCountTotal ( ) - countMin == 0 ) { if ( ca . getCountTotal ( ) == 0 ) { log . warn ( "Normalizing with Log2MeanExcludingMin but 0 records present in analysis" ) ; } else { log . warn ( "Normalizing with Log2MeanExcludingMin but all records are the same value" ) ; } meanExMin = mean ; } else { meanExMin = ( mean * ca . getCountTotal ( ) - countMin * min ) / ( ca . getCountTotal ( ) - countMin ) ; } return transform ( new Log2Normalizer ( column , meanExMin , min , 0.5 ) ) ; default : throw new RuntimeException ( "Unknown/not implemented normalization type: " + type ) ; } }

Normalice la columna especificada con un tipo dado de normalización


private static void buildRangeSet  ( List < String > entries , Interval interval , Map < String , RangeSet < DateTime > > container ) { entries . stream ( ) . map ( null ) . forEach ( null ) ; }

Construye el conjunto de intervalos de rango para las entradas.


private void findClassLayoutMappings  ( ) { Iterator < MethodOrMethodContext > rmIterator = Scene . v ( ) . getReachableMethods ( ) . listener ( ) ; while ( rmIterator . hasNext ( ) ) { SootMethod sm = rmIterator . next ( ) . method ( ) ; if ( ! sm . isConcrete ( ) ) continue ; for ( Unit u : sm . retrieveActiveBody ( ) . getUnits ( ) ) if ( u instanceof Stmt ) { Stmt stmt = ( Stmt ) u ; if ( stmt . containsInvokeExpr ( ) ) { InvokeExpr inv = stmt . getInvokeExpr ( ) ; if ( invokesSetContentView ( inv ) ) { for ( Value val : inv . getArgs ( ) ) if ( val instanceof IntConstant ) { IntConstant constVal = ( IntConstant ) val ; Set < Integer > layoutIDs = this . layoutClasses . get ( sm . getDeclaringClass ( ) . getName ( ) ) ; if ( layoutIDs == null ) { layoutIDs = new HashSet < Integer > ( ) ; this . layoutClasses . put ( sm . getDeclaringClass ( ) . getName ( ) , layoutIDs ) ; } layoutIDs . add ( constVal . value ) ; } } } } } }

Encuentra las asignaciones entre las clases y sus respectivos archivos de diseño.


private static Entry [ ] concat  ( Entry [ ] attrs1 , Entry [ ] attrs2 ) { Entry [ ] nattrs = new Entry [ attrs1 . length + attrs2 . length ] ; System . arraycopy ( attrs1 , 0 , nattrs , 0 , attrs1 . length ) ; System . arraycopy ( attrs2 , 0 , nattrs , attrs1 . length , attrs2 . length ) ; return nattrs ; }

Devuelve una concatenación de las dos matrices.


public SoftReferenceSymbolTableConfiguration ( SymbolTable symbolTable ) { this ( symbolTable , null , null ) ; }

Construye una configuración de analizador con la tabla de símbolos especificada.


public static Style createNewStyle  ( ) { Style style = styleFactory . createStyle ( ) ; style . setName ( "New Style" ) ; return style ; }


public List < ModelEntity > induceModelFromDb  ( Collection < String > messages ) { ExecutorService executor = Executors . newFixedThreadPool ( datasourceInfo . getMaxWorkerPoolSize ( ) ) ; TreeSet < String > tableNames = this . getTableNames ( messages ) ; Map < String , Map < String , ColumnCheckInfo > > colInfo = getColumnInfo ( tableNames , true , messages , executor ) ; List < ModelEntity > newEntList = new LinkedList < ModelEntity > ( ) ; boolean isCaseSensitive = getIsCaseSensitive ( messages ) ; for ( String tableName : new TreeSet < String > ( colInfo . keySet ( ) ) ) { Map < String , ColumnCheckInfo > colMap = colInfo . get ( tableName ) ; ModelEntity newEntity = new ModelEntity ( tableName , colMap , modelFieldTypeReader , isCaseSensitive ) ; newEntList . add ( newEntity ) ; } executor . shutdown ( ) ; return newEntList ; }

Crea una lista de objetos de modelentidad basados en metadatos de la base de datos


public static void fullSchemaChecking  ( XSGrammarBucket grammarBucket , SubstitutionGroupHandler SGHandler , CMBuilder cmBuilder , XMLErrorReporter errorReporter ) { SchemaGrammar [ ] grammars = grammarBucket . getGrammars ( ) ; for ( int i = grammars . length - 1 ; i >= 0 ; i -- ) { SGHandler . addSubstitutionGroup ( grammars [ i ] . getSubstitutionGroups ( ) ) ; } XSParticleDecl fakeDerived = new XSParticleDecl ( ) ; XSParticleDecl fakeBase = new XSParticleDecl ( ) ; fakeDerived . fType = XSParticleDecl . PARTICLE_MODELGROUP ; fakeBase . fType = XSParticleDecl . PARTICLE_MODELGROUP ; for ( int g = grammars . length - 1 ; g >= 0 ; g -- ) { XSGroupDecl [ ] redefinedGroups = grammars [ g ] . getRedefinedGroupDecls ( ) ; SimpleLocator [ ] rgLocators = grammars [ g ] . getRGLocators ( ) ; for ( int i = 0 ; i < redefinedGroups . length ; ) { XSGroupDecl derivedGrp = redefinedGroups [ i ++ ] ; XSModelGroupImpl derivedMG = derivedGrp . fModelGroup ; XSGroupDecl baseGrp = redefinedGroups [ i ++ ] ; XSModelGroupImpl baseMG = baseGrp . fModelGroup ; fakeDerived . fValue = derivedMG ; fakeBase . fValue = baseMG ; if ( baseMG == null ) { if ( derivedMG != null ) { reportSchemaError ( errorReporter , rgLocators [ i / 2 - 1 ] , "src-redefine.6.2.2" , new Object [ ] { derivedGrp . fName , "rcase-Recurse.2" } ) ; } } else if ( derivedMG == null ) { if ( ! fakeBase . emptiable ( ) ) { reportSchemaError ( errorReporter , rgLocators [ i / 2 - 1 ] , "src-redefine.6.2.2" , new Object [ ] { derivedGrp . fName , "rcase-Recurse.2" } ) ; } } else { try { particleValidRestriction ( fakeDerived , SGHandler , fakeBase , SGHandler ) ; } catch ( XMLSchemaException e ) { String key = e . getKey ( ) ; reportSchemaError ( errorReporter , rgLocators [ i / 2 - 1 ] , key , e . getArgs ( ) ) ; reportSchemaError ( errorReporter , rgLocators [ i / 2 - 1 ] , "src-redefine.6.2.2" , new Object [ ] { derivedGrp . fName , key } ) ; } } } } XSComplexTypeDecl [ ] types ; SimpleLocator [ ] ctLocators ; boolean further , fullChecked ; int keepType ; SymbolHash elemTable = new SymbolHash ( ) ; for ( int i = grammars . length - 1 , j ; i >= 0 ; i -- ) { keepType = 0 ; fullChecked = grammars [ i ] . fFullChecked ; types = grammars [ i ] . getUncheckedComplexTypeDecls ( ) ; ctLocators = grammars [ i ] . getUncheckedCTLocators ( ) ; for ( j = 0 ; j < types . length ; j ++ ) { if ( ! fullChecked ) { if ( types [ j ] . fParticle != null ) { elemTable . clear ( ) ; try { checkElementDeclsConsistent ( types [ j ] , types [ j ] . fParticle , elemTable , SGHandler ) ; } catch ( XMLSchemaException e ) { reportSchemaError ( errorReporter , ctLocators [ j ] , e . getKey ( ) , e . getArgs ( ) ) ; } } } if ( types [ j ] . fBaseType != null && types [ j ] . fBaseType != SchemaGrammar . fAnyType && types [ j ] . fDerivedBy == XSConstants . DERIVATION_RESTRICTION && ( types [ j ] . fBaseType instanceof XSComplexTypeDecl ) ) { XSParticleDecl derivedParticle = types [ j ] . fParticle ; XSParticleDecl baseParticle = ( ( XSComplexTypeDecl ) ( types [ j ] . fBaseType ) ) . fParticle ; if ( derivedParticle == null ) { if ( baseParticle != null && ! baseParticle . emptiable ( ) ) { reportSchemaError ( errorReporter , ctLocators [ j ] , "derivation-ok-restriction.5.3.2" , new Object [ ] { types [ j ] . fName , types [ j ] . fBaseType . getName ( ) } ) ; } } else if ( baseParticle != null ) { try { particleValidRestriction ( types [ j ] . fParticle , SGHandler , ( ( XSComplexTypeDecl ) ( types [ j ] . fBaseType ) ) . fParticle , SGHandler ) ; } catch ( XMLSchemaException e ) { reportSchemaError ( errorReporter , ctLocators [ j ] , e . getKey ( ) , e . getArgs ( ) ) ; reportSchemaError ( errorReporter , ctLocators [ j ] , "derivation-ok-restriction.5.4.2" , new Object [ ] { types [ j ] . fName } ) ; } } else { reportSchemaError ( errorReporter , ctLocators [ j ] , "derivation-ok-restriction.5.4.2" , new Object [ ] { types [ j ] . fName } ) ; } } XSCMValidator cm = types [ j ] . getContentModel ( cmBuilder , true ) ; further = false ; if ( cm != null ) { try { further = cm . checkUniqueParticleAttribution ( SGHandler ) ; } catch ( XMLSchemaException e ) { reportSchemaError ( errorReporter , ctLocators [ j ] , e . getKey ( ) , e . getArgs ( ) ) ; } } if ( ! fullChecked && further ) types [ keepType ++ ] = types [ j ] ; } if ( ! fullChecked ) { grammars [ i ] . setUncheckedTypeNum ( keepType ) ; grammars [ i ] . fFullChecked = true ; } } }

Se utiliza para verificar las 3 restricciones contra cada tipo complejo (debe ser cada grupo de modelos): Atribución de partículas únicas, derivación de partículas (restricción), declraciones de elementos consistentes.


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

Devuelve la clase que representa el tipo de componente de una matriz.Si esta clase no representa una clase de matriz, este método devuelve nulo.Java.lang.class nativo público. CLASS GETCOMPONENTTYPE ();


@ deprecated public static int matchAfter  ( CharSequence a , CharSequence b , int aIndex , int bIndex ) { int i = aIndex ; int j = bIndex ; int alen = a . length ( ) ; int blen = b . length ( ) ; for ( ; ( i < alen ) && ( j < blen ) ; j ++ ) { char ca = a . charAt ( i ) ; char cb = b . charAt ( j ) ; if ( ca != cb ) { break ; } i ++ ; } int result = i - aIndex ; if ( ( result != 0 ) && ( ! onCharacterBoundary ( a , i ) ) && ( ! onCharacterBoundary ( b , j ) ) ) { result -- ; } return result ; }


public long parseLongHexadecimal  ( ) { ASTNode$State state = state ( ) ; try { long val = 0 ; if ( digits . length ( ) > 16 ) { for ( int i = 0 ; i < digits . length ( ) - 16 ; i ++ ) if ( digits . charAt ( i ) != '0' ) throw new NumberFormatException ( "" ) ; } for ( int i = 0 ; i < digits . length ( ) ; i ++ ) { int c = digits . charAt ( i ) ; if ( c >= 'a' && c <= 'f' ) c = c - 'a' + 10 ; else c = c - '0' ; val = val * 16 + c ; } return val ; } finally { } }


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


@ BeforeClass protected void init  ( ) { LOGGER . info ( "Init: " + this . getClass ( ) . getName ( ) ) ; setPropertyFromSystemProperty ( "application.name" , "application-name" ) ; setPropertyFromSystemProperty ( "experiment.prefix" , "experiment-prefix" ) ; setPropertyFromSystemProperty ( "experiment.count" , "experiment-count" ) ; setPropertyFromSystemProperty ( "page.name" , "page-name" ) ; setPropertyFromSystemProperty ( "buckets.prefix" , "buckets-prefix" ) ; setPropertyFromSystemProperty ( "buckets.in.experiment" , "buckets-in-experiment" ) ; setPropertyFromSystemProperty ( "mutualexclusions" , "mutualexclusions" ) ; applicationName = appProperties . getProperty ( "application-name" , applicationName ) ; experimentPrefix = appProperties . getProperty ( "experiment-prefix" , experimentPrefix ) ; experimentCount = Integer . valueOf ( appProperties . getProperty ( "experiment-count" , String . valueOf ( experimentCount ) ) ) ; pageName = appProperties . getProperty ( "page-name" , Constants . DEFAULT_PAGE_NAME ) ; bucketPrefix = appProperties . getProperty ( "bucket-prefix" , bucketPrefix ) ; bucketCount = Integer . valueOf ( appProperties . getProperty ( "buckets-in-experiment" , String . valueOf ( bucketCount ) ) ) ; mutualExclusive = Boolean . valueOf ( appProperties . getProperty ( "mutualexclusions" , String . valueOf ( mutualExclusive ) ) ) ; LOGGER . info ( "KVP used: applicationName=" + applicationName ) ; LOGGER . info ( "KVP used: experimentCount=" + experimentCount ) ; LOGGER . info ( "KVP used: bucketCount=" + bucketCount ) ; LOGGER . info ( "KVP used: pageName=" + pageName ) ; LOGGER . info ( "KVP used: experimentPrefix=" + experimentPrefix ) ; LOGGER . info ( "KVP used: bucketPrefix=" + bucketPrefix ) ; application = ApplicationFactory . createApplication ( ) . setName ( applicationName ) ; page = PageFactory . createPage ( ) . setName ( pageName ) ; experiments = new ArrayList < > ( experimentCount ) ; ExperimentFactory . createExperiment ( ) . setSerializationStrategy ( new DefaultNameExclusionStrategy ( "creationTime" , "modificationTime" ) ) ; }


public static boolean saveConfig  ( FunktionConfig config , File file ) throws IOException { createObjectMapper ( ) . writeValue ( file , config ) ; return true ; }

Guarda la configuración como YAML en el archivo dado


@ Override public Collection < SerialMessage > initialize  ( boolean refresh ) { ArrayList < SerialMessage > result = new ArrayList < SerialMessage > ( ) ; if ( refresh == true || initialiseDone == false ) { result . add ( this . getSupportedMessage ( ) ) ; } return result ; }

Inicializa la clase de comando del sensor de alarma.Solicita los tipos de alarma compatibles.


public static JSONArray toJSONArray  ( JSONArray names , JSONTokener x ) throws JSONException { if ( names == null || names . length ( ) == 0 ) { return null ; } JSONArray ja = new JSONArray ( ) ; for ( ; ; ) { JSONObject jo = rowToJSONObject ( names , x ) ; if ( jo == null ) { break ; } ja . put ( jo ) ; } if ( ja . length ( ) == 0 ) { return null ; } return ja ; }

Produce un JSONARRAY de JSONOBJECTOS de una cadena de texto delimitada por comas utilizando un JSONARRAY suministrado como la fuente de los nombres de elementos.


private void onFetchVideosInfoError  ( Exception ex ) { Log . e ( TAG , "Error fetching videos from " + getResources ( ) . getString ( R . string . videos_url ) + ", Exception: " + ex . toString ( ) ) ; Toast . makeText ( getContext ( ) , "Error fetching videos from json file" , Toast . LENGTH_LONG ) . show ( ) ; }

Llamado cuando se produjo una excepción al buscar videos Meta Datos de la URL.


public PrefuseTableModel ( Table table ) { m_table = table ; }


@ Ignore ( "go/studio-builder/builders/ubuntu-studio-master-dev-uitests/builds/273" ) @ Test public void testCreateNewTheme  ( ) throws IOException  { guiTest . importSimpleApplication ( ) ; ThemeEditorFixture themeEditor = ThemeEditorGuiTestUtils . openThemeEditor ( guiTest . ideFrame ( ) ) ; JComboBoxFixture themesComboBox = themeEditor . getThemesComboBox ( ) ; String selectedTheme = themesComboBox . selectedItem ( ) ; assertNotNull ( selectedTheme ) ; themesComboBox . selectItem ( "Create New Theme" ) ; NewStyleDialogFixture newStyleDialog = NewStyleDialogFixture . find ( guiTest . robot ( ) ) ; newStyleDialog . clickCancel ( ) ; themeEditor . waitForThemeSelection ( selectedTheme ) ; themesComboBox . selectItem ( "Create New Theme" ) ; newStyleDialog = NewStyleDialogFixture . find ( guiTest . robot ( ) ) ; JTextComponentFixture newNameTextField = newStyleDialog . getNewNameTextField ( ) ; JComboBoxFixture parentComboBox = newStyleDialog . getParentComboBox ( ) ; parentComboBox . requireSelection ( "AppTheme" ) ; String [ ] parentsArray = parentComboBox . contents ( ) ; assertThat ( parentsArray ) . hasLength ( 6 ) ; assertThat ( parentsArray [ 0 ] ) . isEqualTo ( "AppTheme" ) ; assertThat ( parentsArray [ 2 ] ) . isEqualTo ( "Theme.AppCompat.Light.NoActionBar" ) ; assertThat ( parentsArray [ 3 ] ) . isEqualTo ( "Theme.AppCompat.NoActionBar" ) ; assertThat ( parentsArray [ 5 ] ) . isEqualTo ( "Show all themes" ) ; assertThat ( parentsArray [ 1 ] ) . startsWith ( "javax.swing.JSeparator" ) ; assertThat ( parentsArray [ 4 ] ) . startsWith ( "javax.swing.JSeparator" ) ; parentComboBox . selectItem ( "Theme.AppCompat.NoActionBar" ) ; newNameTextField . requireText ( "Theme.AppTheme.NoActionBar" ) ; parentComboBox . selectItem ( "Show all themes" ) ; ThemeSelectionDialogFixture themeSelectionDialog = ThemeSelectionDialogFixture . find ( guiTest . robot ( ) ) ; JTreeFixture categoriesTree = themeSelectionDialog . getCategoriesTree ( ) ; JListFixture themeList = themeSelectionDialog . getThemeList ( ) ; categoriesTree . clickRow ( 5 ) ; themeList . clickItem ( 0 ) ; themeList . requireSelection ( "android:Theme.Holo" ) ; themeSelectionDialog . clickOk ( ) ; parentComboBox . requireSelection ( "android:Theme.Holo" ) ; newNameTextField . requireText ( "Theme.AppTheme" ) ; newNameTextField . deleteText ( ) . enterText ( "NewTheme" ) ; newStyleDialog . clickOk ( ) ; themeEditor . waitForThemeSelection ( "NewTheme" ) ; ThemeEditorTableFixture themeEditorTable = themeEditor . getPropertiesTable ( ) ; TableCell parentCell = row ( 0 ) . column ( 0 ) ; assertEquals ( "android:Theme.Holo" , themeEditorTable . getComboBoxSelectionAt ( parentCell ) ) ; themeEditor . focus ( ) ; guiTest . ideFrame ( ) . invokeMenuPath ( "Window" , "Editor Tabs" , "Select Previous Tab" ) ; EditorFixture editor = guiTest . ideFrame ( ) . getEditor ( ) ; assertThat ( editor . getCurrentFileContents ( ) ) . contains ( "name=\"AppTheme" ) ; editor . moveBetween ( "" , "name=\"NewTheme" ) ; assertThat ( editor . getCurrentLine ( ) . trim ( ) ) . isEqualTo ( "<style name=\"NewTheme\" parent=\"android:Theme.Holo\" />" ) ; guiTest . ideFrame ( ) . invokeMenuPath ( "Window" , "Editor Tabs" , "Select Next Tab" ) ; guiTest . ideFrame ( ) . invokeMenuPath ( "Edit" , "Undo Create new style NewTheme" ) ; themeEditor . waitForThemeSelection ( "AppTheme" ) ; guiTest . ideFrame ( ) . invokeMenuPath ( "Window" , "Editor Tabs" , "Select Previous Tab" ) ; assertThat ( editor . getCurrentFileContents ( ) ) . doesNotContain ( "name=\"NewTheme" ) ; }

Prueba la funcionalidad de creación temática del selector temático y que el deshacer de Intellij puede revertir esta acción.


public void addSubEquipmentIds  ( final Collection < Long > subEquipmentIds ) { for ( Long subEquipmentId : subEquipmentIds ) { addSubEquipmentId ( subEquipmentId ) ; } }

Agrega todas las identificaciones de Sub Equipment de esa lista como dependencia a esta etiqueta


public static int findHighestMajorVersion  ( Collection < Throwable > list ) { int result = 0 ; for ( Throwable t : list ) { if ( t instanceof InconvertibleClassError ) { InconvertibleClassError error = ( InconvertibleClassError ) t ; result = Math . max ( result , error . getMajor ( ) ) ; } } return result ; }

Dado un conjunto de excepciones, devuelva el formato de versión de clase de clase más alta conocido


public boolean isPluginEnabled  ( Plugin plugin ) { if ( ( plugin != null ) && ( plugins . contains ( plugin ) ) ) { return plugin . isEnabled ( ) ; } else { return false ; } }

Verifica si el complemento dado está habilitado o no


public void accept  ( ) { if ( processed ) { return ; } skype . acceptContactRequest ( this ) ; processed = true ; }

Acepta la solicitud de contacto.Ignorado si ya se está concentrado o declinado.


public void add  ( final double [ ] lhs , final int lhsOffset , final double [ ] rhs , final int rhsOffset , final double [ ] result , final int resultOffset ) { for ( int i = 0 ; i < getSize ( ) ; ++ i ) { result [ resultOffset + i ] = lhs [ lhsOffset + i ] + rhs [ rhsOffset + i ] ; } }

Realizar la adición de dos estructuras derivadas.


static < TypeOfValue > boolean arrayContains  ( final TypeOfValue [ ] array , final TypeOfValue value ) { for ( final TypeOfValue arrayValue : array ) { if ( arrayValue == value || ( arrayValue != null && arrayValue . equals ( value ) ) ) { return true ; } } return false ; }

Compruebe si la matriz contiene un valor.


Node previousNode  ( Node node ) { Node result ; if ( node == fRoot ) return null ; result = node . getPreviousSibling ( ) ; if ( result == null ) { result = node . getParentNode ( ) ; return result ; } if ( result . hasChildNodes ( ) && ! ( ! fEntityReferenceExpansion && result != null && result . getNodeType ( ) == Node . ENTITY_REFERENCE_NODE ) ) { while ( result . hasChildNodes ( ) ) { result = result . getLastChild ( ) ; } } return result ; }

El método anterior Nodo (nodo) devuelve el nodo anterior desde el árbol DOM real.


private BSPTree < Euclidean1D > childBefore  ( BSPTree < Euclidean1D > node ) { if ( isDirect ( node ) ) { return node . getMinus ( ) ; } else { return node . getPlus ( ) ; } }

Encuentre el nodo secundario justo antes de un nodo interno.


public ClassPathTestDataLocator ( Class < ? > classContext ) { super ( classContext ) ; this . classLoader = classContext . getClassLoader ( ) ; }

Crea un nuevo localizador de datos de prueba que localiza los datos de prueba relativos a la clase dada.


public ByteArray ( byte [ ] buf , int offset , int length ) { this . buf = buf ; this . offset = offset ; this . length = length ; }


@ VisibleForTesting protected static void releaseWakeLock  ( ) { ThreadUtils . assertOnUiThread ( ) ; if ( sWakeLock != null && sWakeLock . isHeld ( ) ) sWakeLock . release ( ) ; }


private Stream < String > resolve  ( String template , Stream < File > files ) { Stream < Json > json = files . map ( null ) ; return partitionedStream ( json . iterator ( ) ) . map ( null ) . map ( null ) ; }

Convierta el formato de datos nativos a un flujo de plantillas


public RequestHandle put  ( Context context , String url , HttpEntity entity , String contentType , ResponseHandlerInterface responseHandler ) { return sendRequest ( httpClient , httpContext , addEntityToRequestBase ( new HttpPut ( url ) , entity ) , contentType , responseHandler , context ) ; }

Realice una solicitud HTTP PUT y haga un seguimiento del contexto de Android que inició la solicitud.Y establecer encabezados de una sola vez para la solicitud


public AccountGetInfoQuery ( VkApiClient client , UserActor actor ) { super ( client , "account.getInfo" , Info . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


@ ObjectiveCName ( "parse:client:" ) static List < Message > parse  ( String message , DeepstreamClientAbstract client ) { List < Message > messages = new ArrayList < > ( ) ; String [ ] rawMessages = message . split ( MS ) ; Message parsedMessage ; for ( String rawMessage : rawMessages ) { parsedMessage = parseMessage ( rawMessage , client ) ; if ( parsedMessage != null ) { messages . add ( parsedMessage ) ; } } return messages ; }

Método principal de la interfaz.Recibe una cadena de mensajes en bruto, que contiene uno o más mensajes y devuelve una matriz de objetos de mensajes analizados o nulo para mensajes no válidos


public synchronized boolean wasDoubleClicked  ( ) { return this . value == 2 ; }

Devuelve VERDADERO si este botón del mouse se hizo doble clic.<P> Devuelve FALSO Si el botón fue único / triple / etc. hizo clic o actualmente está esperando para ser lanzado.


public static Alarm buildCreateAllFieldsAlarm  ( Long id , Properties properties ) { if ( properties == null ) { properties = new Properties ( ) ; } Alarm alarm = Alarm . create ( "faultFamily" , "faultMember" , 1337 , new ValueCondition ( Integer . class , 1 ) ) . id ( id ) . metadata ( Metadata . builder ( ) . addMetadata ( "testMetadata" , 11 ) . build ( ) ) . build ( ) ; alarm . setDataTagId ( 100L ) ; properties . setProperty ( "faultFamily" , "faultFamily" ) ; properties . setProperty ( "faultMember" , "faultMember" ) ; properties . setProperty ( "faultCode" , "1337" ) ; properties . setProperty ( "dataTagId" , "100" ) ; properties . setProperty ( "alarmCondition" , new ValueCondition ( Integer . class , 1 ) . getXMLCondition ( ) ) ; properties . setProperty ( "metadata" , Metadata . toJSON ( Metadata . builder ( ) . addMetadata ( "testMetadata" , 11 ) . build ( ) ) ) ; return alarm ; }

La identificación del padre esperada es 10.


public boolean onKeyUp  ( int keyCode , KeyEvent event ) { if ( keyCode == KeyEvent . KEYCODE_BACK && mSlidingMenu . isMenuShowing ( ) ) { showContent ( ) ; return true ; } return false ; }


public boolean mustAlias  ( Local val1 , Local val2 , Stmt position ) { if ( val1 == val2 ) return true ; if ( ! ( val1 . getType ( ) instanceof RefLikeType ) || ! ( val2 . getType ( ) instanceof RefLikeType ) ) return false ; LocalMustAliasAnalysis lmaa = strongAliasAnalysis . getUnchecked ( cfg . getMethodOf ( position ) ) ; return lmaa . mustAlias ( val1 , position , val2 , position ) ; }

Obtiene si los dos valores siempre deben apuntar al mismo objeto de tiempo de ejecución


@ RequestMapping ( method = RequestMethod . POST , value = "/api/drops/cancel" ) public CancelDropConfig cancelDrop  ( @ RequestBody CancelDropConfig cancelDropConfig ) throws Exception { PollableFuture cancelDropFuture = dropService . cancelDrop ( cancelDropConfig . getDropId ( ) , PollableTask . INJECT_CURRENT_TASK ) ; cancelDropConfig . setPollableTask ( cancelDropFuture . getPollableTask ( ) ) ; return cancelDropConfig ; }


public RotationControl ( ) { this  ( Control . LEFT_MOUSE_BUTTON ) ; }

Crea un nuevo rotateControl.Se iniciarán rotaciones arrastrando el mouse con el botón izquierdo del ratón presionado.


protected void firePrePaint  ( Graphics2D g ) { if ( m_painters != null && m_painters . size ( ) > 0 ) { Object [ ] lstnrs = m_painters . getArray ( ) ; for ( int i = 0 ; i < lstnrs . length ; ++ i ) { try { ( ( PaintListener ) lstnrs [ i ] ) . prePaint ( this , g ) ; } catch ( Exception e ) { s_logger . warning ( "Exception thrown by PaintListener: " + e + "\n" + StringLib . getStackTrace ( e ) ) ; } } } }

Dispara una notificación de pre-pintura a los líderes de pintura.


private static boolean inStringArray  ( String value , String [ ] stringArray ) { for ( int i = 0 ; i < stringArray . length ; i ++ ) { if ( stringArray [ i ] . equals ( value ) ) { return true ; } } return false ; }

Devuelve VERDADERO si la cadena dada está en la matriz de cadena dada.


public static Map < String , String > strToMap  ( String str , boolean trim ) { return strToMap ( str , "|" , trim ) ; }

Crea un mapa de un nombre codificado / cadena de par de valor


public static float clamp  ( float value , float a , float b ) { float min = ( a > b ) ? b : a ; float max = ( a > b ) ? a : b ; if ( value < min ) { value = min ; } else if ( value > max ) { value = max ; } return value ; }

Devuelve el valor aprobado si reside dentro del rango especificado (incluido).Si no, devolverá el límite más cercano desde el rango.El ordenamiento de los valores de los límites no importa.


public void clearSounds  ( ) { mSoundMap . clear ( ) ; }

Borra todos los sonidos y eventos establecidos anteriormente.


public SiteAdminPage createNewPageReusingDialog  ( String title , String templateName ) { createPageWindow . createPage ( title , templateName ) ; grid . waitForLoaderNotPresent ( ) ; return this ; }

Asume que el cuadro de diálogo "Crear página" ya se ha abierto y crea una nueva página basada en los valores.Durante la creación, la plantilla especificada se utiliza en CreatePageWindow.


synchronized void flushOperations  ( RTEditText editor ) { Stack < Operation > undoStack = getUndoStack ( editor ) ; Stack < Operation > redoStack = getRedoStack ( editor ) ; undoStack . clear ( ) ; redoStack . clear ( ) ; }

Enjuague todas las operaciones para un editor de texto enriquecido específico (método no utilizado en este momento)


public CompletableFuture < Void > disconnect  ( ) { if ( ! closeFuture . isDone ( ) ) { log . info ( "Disconnecting producer: {}" , this ) ; cnx . ctx ( ) . executor ( ) . execute ( null ) ; } return closeFuture ; }

Cierra el productor del lado del servidor y envía comando al cliente para desconectar al productor de la conexión existente sin cerrar esa conexión.


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

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


public void remove  ( Vertex v ) throws Exception { if ( hVertexTypes . containsKey ( v ) ) hVertexTypes . remove ( v ) ; super . remove ( v ) ; }

Elimina un vértice dado del gráfico, también borrando la información del tipo de vértice.


public UsersSearchQuery status  ( UsersSearchRelation value ) { return unsafeParam ( "status" , value ) ; }


public void tag  ( List < String > sentences , String outputFileName , OutputFormat outputFormat ) { List < Row > rows = new LinkedList < Row > ( ) ; for ( String sentence : sentences ) { rows . add ( RowFactory . create ( sentence ) ) ; } StructType schema = new StructType ( new StructField [ ] { new StructField ( "sentence" , DataTypes . StringType , false , Metadata . empty ( ) ) } ) ; SQLContext sqlContext = new SQLContext ( jsc ) ; DataFrame input = sqlContext . createDataFrame ( rows , schema ) ; tag ( input , outputFileName , outputFormat ) ; }

Etiqueta una lista de secuencias y escribe el resultado a un archivo de salida con un formato de salida deseado.


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

ID del usuario o comunidad que posee el (los) álbum (s) de video.


public static int convertToColorInt  ( String argb , boolean useAlpha ) throws NumberFormatException { if ( argb . startsWith ( "#" ) ) { argb = argb . replace ( "#" , "" ) ; } int alpha = - 1 , red = - 1 , green = - 1 , blue = - 1 ; if ( argb . length ( ) == 8 ) { alpha = Integer . parseInt ( argb . substring ( 0 , 2 ) , 16 ) ; red = Integer . parseInt ( argb . substring ( 2 , 4 ) , 16 ) ; green = Integer . parseInt ( argb . substring ( 4 , 6 ) , 16 ) ; blue = Integer . parseInt ( argb . substring ( 6 , 8 ) , 16 ) ; } else if ( argb . length ( ) == 6 ) { alpha = 255 ; red = Integer . parseInt ( argb . substring ( 0 , 2 ) , 16 ) ; green = Integer . parseInt ( argb . substring ( 2 , 4 ) , 16 ) ; blue = Integer . parseInt ( argb . substring ( 4 , 6 ) , 16 ) ; } return Color . argb ( useAlpha ? alpha : - 1 , red , green , blue ) ; }

Conciertos un color de cadena (# FF882465) a un color int


public long parseLongDecimal  ( ) { ASTNode$State state = state ( ) ; try { long val = 0 ; long prev = 0 ; for ( int i = 0 ; i < digits . length ( ) ; i ++ ) { prev = val ; int c = digits . charAt ( i ) ; if ( c >= '0' && c <= '9' ) c = c - '0' ; else throw new NumberFormatException ( "" ) ; val = val * 10 + c ; if ( val < prev ) { boolean negMinValue = i == ( digits . length ( ) - 1 ) && isNegative ( ) && val == Long . MIN_VALUE ; if ( ! negMinValue ) throw new NumberFormatException ( "" ) ; } } if ( val == Long . MIN_VALUE ) return val ; if ( val < 0 ) throw new NumberFormatException ( "" ) ; return isNegative ( ) ? - val : val ; } finally { } }


@ Override public void skippedEntity  ( String name ) throws SAXException { return ; }

El método SAX <CÓDIGO> SALIDA </ CODE> no hace nada.


public IterativeLegendreGaussIntegrator ( final int n , final int minimalIterationCount , final int maximalIterationCount ) throws MathIllegalArgumentException { this ( n , DEFAULT_RELATIVE_ACCURACY , DEFAULT_ABSOLUTE_ACCURACY , minimalIterationCount , maximalIterationCount ) ; }

Construye un integrador con los recuentos de iteración dados.


public static int utf8Length  ( String string ) { CharacterIterator iter = new StringCharacterIterator ( string ) ; char ch = iter . first ( ) ; int size = 0 ; while ( ch != CharacterIterator . DONE ) { if ( ( ch >= 0xD800 ) && ( ch < 0xDC00 ) ) { char trail = iter . next ( ) ; if ( ( trail > 0xDBFF ) && ( trail < 0xE000 ) ) { size += 4 ; } else { size += 3 ; iter . previous ( ) ; } } else if ( ch < 0x80 ) { size ++ ; } else if ( ch < 0x800 ) { size += 2 ; } else { size += 3 ; } ch = iter . next ( ) ; } return size ; }

Para la cadena dada, devuelve el número de bytes UTF-8 requeridos para codificar la cadena.


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


public PhotosSearchQuery q  ( String value ) { return unsafeParam ( "q" , value ) ; }


@ NotNull public RecognizeDomainSpecificContentInImageAction recognizeDomainSpecificContentInImage  ( @ NotNull List < DomainSpecificDetails > model , @ NotNull InputStream image ) { return new RecognizeDomainSpecificContentInImageAction ( cognitiveContext , model , image ) ; }

Esta operación reconoce el contenido dentro de una imagen aplicando un modelo específico de dominio.<P> La lista de modelos específicos de dominio que son compatibles con la API de la visión de la computadora se puede recuperar utilizando la solicitud de acceso / modelos.<P> Actualmente, la API solo proporciona un modelo único específico de dominio: las celebridades.


public AllocDotField findAllocDotField  ( AllocNode an , SparkField field ) { return an . dot ( field ) ; }

Encuentra el campo AllocDotfield para el campo de campo y el campo de la base, o devuelve NULL.


public Peer ( String peerId , InetSocketAddress address ) { this . peerId = peerId ; this . address = address ; this . lastSendTime = System . currentTimeMillis ( ) ; this . creationTime = System . currentTimeMillis ( ) ; }


protected VideoGetQueryWithExtended extended  ( Boolean value ) { return unsafeParam ( "extended" , value ) ; }

Devolver una respuesta extendida con campos adicionales


private void recycleView  ( View view , int index ) { int count = wheel . getViewAdapter ( ) . getItemsCount ( ) ; if ( ( index < 0 || index >= count ) && ! wheel . isCyclic ( ) ) { emptyItems = addView ( view , emptyItems ) ; } else { while ( index < 0 ) { index = count + index ; } index %= count ; items = addView ( view , items ) ; } }

Agrega vista al caché.Determina el tipo de vista (vista del elemento o vacío) por índice.


protected Element insertBoundary  ( Element token , String tone , int bi ) { Element boundary = null ; Log . d ( Mary . LOG , "insertBoundary: after token `" + MaryDomUtils . tokenText ( token ) + "', tone " + tone + ", bi " + bi ) ; Document doc = token . getOwnerDocument ( ) ; TreeWalker tw = ( ( DocumentTraversal ) doc ) . createTreeWalker ( DomUtils . getAncestor ( token , MaryXML . SENTENCE ) , NodeFilter . SHOW_ELEMENT , new NameNodeFilter ( MaryXML . BOUNDARY , MaryXML . TOKEN ) , false ) ; tw . setCurrentNode ( token ) ; Element next = ( Element ) tw . nextNode ( ) ; if ( next != null && next . getTagName ( ) . equals ( MaryXML . BOUNDARY ) ) { boundary = next ; } else if ( isPunctuation ( token ) ) { tw . setCurrentNode ( token ) ; Element prev = ( Element ) tw . previousNode ( ) ; if ( prev != null && prev . getTagName ( ) . equals ( MaryXML . BOUNDARY ) ) { boundary = prev ; } } if ( boundary != null && boundary . getParentNode ( ) . equals ( token . getParentNode ( ) ) ) { if ( tone != null ) { String tagTone = boundary . getAttribute ( "tone" ) ; if ( tagTone . equals ( "" ) || ! tone . equals ( "unknown" ) && tagTone . equals ( "unknown" ) ) { boundary . setAttribute ( "tone" , tone ) ; } } if ( bi > 0 ) { String tagBIString = boundary . getAttribute ( "breakindex" ) ; if ( tagBIString . equals ( "" ) || tagBIString . equals ( "unknown" ) ) { boundary . setAttribute ( "breakindex" , String . valueOf ( bi ) ) ; } } } else { if ( token . getParentNode ( ) == null ) { return null ; } Element eIn = ( Element ) token . getParentNode ( ) ; Element eBefore = DomUtils . getNextSiblingElement ( token ) ; Element mtu = ( Element ) DomUtils . getHighestLevelAncestor ( token , MaryXML . MTU ) ; if ( mtu != null ) { if ( DomUtils . isLastOfItsKindIn ( token , mtu ) ) { eIn = ( Element ) mtu . getParentNode ( ) ; eBefore = DomUtils . getNextSiblingElement ( mtu ) ; } else { return null ; } } boundary = MaryXML . createElement ( doc , MaryXML . BOUNDARY ) ; if ( tone != null ) { boundary . setAttribute ( "tone" , tone ) ; } if ( bi > 0 ) { boundary . setAttribute ( "breakindex" , String . valueOf ( bi ) ) ; } eIn . insertBefore ( boundary , eBefore ) ; } return boundary ; }

Inserte un límite después del token, con el tono dado y el BreakIndex.Si ya existe un elemento de límite después del token (pero antes del siguiente token), se reutiliza, si tanto el token como el límite tienen el mismo nodo principal.Además, si el token es la puntuación, se puede reutilizar un token de límite precedente, si ambos tienen el mismo nodo principal.Al elegir entre los valores ya dados en el elemento existente y los pasados como argumentos a esta función, se toman los valores más altos / concretos: solo si BI es más alto que un BreakIndex ya existente, el valor anterior se reemplaza con BI.Solo si el tono es un tono concreto (como "H-") y el tono anterior fue "desconocido" o no se especifica en absoluto, se tiene en cuenta el tono.


public synchronized boolean putRequest  ( int messageId , RequestResponseHandler handler ) { if ( map . containsKey ( messageId ) ) { return false ; } map . put ( messageId , handler ) ; return true ; }

Agrega este controlador a este mensaje, devuelve Falso si ya existe uno


private void showContactAsBarcode  ( Uri contactUri ) { Log . i ( TAG , "Showing contact URI as barcode: " + contactUri ) ; if ( contactUri == null ) { return ; } ContentResolver resolver = getContentResolver ( ) ; Cursor cursor ; try { cursor = resolver . query ( contactUri , null , null , null , null ) ; } catch ( IllegalArgumentException ignored ) { return ; } if ( cursor == null ) { return ; } String id ; String name ; boolean hasPhone ; try { if ( ! cursor . moveToFirst ( ) ) { return ; } id = cursor . getString ( cursor . getColumnIndex ( BaseColumns . _ID ) ) ; name = cursor . getString ( cursor . getColumnIndex ( ContactsContract . Contacts . DISPLAY_NAME ) ) ; hasPhone = cursor . getInt ( cursor . getColumnIndex ( ContactsContract . Contacts . HAS_PHONE_NUMBER ) ) > 0 ; } finally { cursor . close ( ) ; } Bundle bundle = new Bundle ( ) ; if ( name != null && ! name . isEmpty ( ) ) { bundle . putString ( ContactsContract . Intents . Insert . NAME , massageContactData ( name ) ) ; } if ( hasPhone ) { Cursor phonesCursor = resolver . query ( ContactsContract . CommonDataKinds . Phone . CONTENT_URI , null , ContactsContract . CommonDataKinds . Phone . CONTACT_ID + '=' + id , null , null ) ; if ( phonesCursor != null ) { try { int foundPhone = 0 ; int phonesNumberColumn = phonesCursor . getColumnIndex ( ContactsContract . CommonDataKinds . Phone . NUMBER ) ; int phoneTypeColumn = phonesCursor . getColumnIndex ( ContactsContract . CommonDataKinds . Phone . TYPE ) ; while ( phonesCursor . moveToNext ( ) && foundPhone < Contents . PHONE_KEYS . length ) { String number = phonesCursor . getString ( phonesNumberColumn ) ; if ( number != null && ! number . isEmpty ( ) ) { bundle . putString ( Contents . PHONE_KEYS [ foundPhone ] , massageContactData ( number ) ) ; } int type = phonesCursor . getInt ( phoneTypeColumn ) ; bundle . putInt ( Contents . PHONE_TYPE_KEYS [ foundPhone ] , type ) ; foundPhone ++ ; } } finally { phonesCursor . close ( ) ; } } } Cursor methodsCursor = resolver . query ( ContactsContract . CommonDataKinds . StructuredPostal . CONTENT_URI , null , ContactsContract . CommonDataKinds . StructuredPostal . CONTACT_ID + '=' + id , null , null ) ; if ( methodsCursor != null ) { try { if ( methodsCursor . moveToNext ( ) ) { String data = methodsCursor . getString ( methodsCursor . getColumnIndex ( ContactsContract . CommonDataKinds . StructuredPostal . FORMATTED_ADDRESS ) ) ; if ( data != null && ! data . isEmpty ( ) ) { bundle . putString ( ContactsContract . Intents . Insert . POSTAL , massageContactData ( data ) ) ; } } } finally { methodsCursor . close ( ) ; } } Cursor emailCursor = resolver . query ( ContactsContract . CommonDataKinds . Email . CONTENT_URI , null , ContactsContract . CommonDataKinds . Email . CONTACT_ID + '=' + id , null , null ) ; if ( emailCursor != null ) { try { int foundEmail = 0 ; int emailColumn = emailCursor . getColumnIndex ( ContactsContract . CommonDataKinds . Email . DATA ) ; while ( emailCursor . moveToNext ( ) && foundEmail < Contents . EMAIL_KEYS . length ) { String email = emailCursor . getString ( emailColumn ) ; if ( email != null && ! email . isEmpty ( ) ) { bundle . putString ( Contents . EMAIL_KEYS [ foundEmail ] , massageContactData ( email ) ) ; } foundEmail ++ ; } } finally { emailCursor . close ( ) ; } } Intent intent = new Intent ( Intents . Encode . ACTION ) ; intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ; intent . putExtra ( Intents . Encode . TYPE , Contents . Type . CONTACT ) ; intent . putExtra ( Intents . Encode . DATA , bundle ) ; intent . putExtra ( Intents . Encode . FORMAT , BarcodeFormat . QR_CODE . toString ( ) ) ; Log . i ( TAG , "Sending bundle for encoding: " + bundle ) ; startActivity ( intent ) ; }

Toma un URI de contacto y hace las búsquedas de la base de datos necesarias para recuperar la información de esa persona, luego envía una intención de codificación para hacerlo como un código QR.


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

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


public boolean open_nesting  ( ) { return soot . PhaseOptions . getBoolean ( options , "open-nesting" ) ; }

Use anidamiento abierto: use un modelo de anidamiento abierto.Use un modelo de anidamiento abierto, donde las transacciones internas se le permitan cometer independientemente cualquier transacción externa.


public void validate  ( ) { byte dlsnVersion = getDlsnVersion ( ) ; Preconditions . checkArgument ( dlsnVersion >= DLSN . VERSION0 && dlsnVersion <= DLSN . VERSION1 , "Unknown dlsn version " + dlsnVersion ) ; Preconditions . checkArgument ( getServerThreads ( ) > 0 , "Invalid number of server threads : " + getServerThreads ( ) ) ; Preconditions . checkArgument ( getServerShardId ( ) >= 0 , "Invalid server shard id : " + getServerShardId ( ) ) ; }


public Decider ( INSECTDB dbRepository ) { Repository = dbRepository ; CategoryEvidenceCount = new Distribution < String > ( ) ; }

Crea una nueva instancia de Decider, dada un repositorio de datos.


public static double stringSimilarity  ( String ... strings ) { if ( strings == null ) return 0 ; Counter < String > counter = new Counter < > ( ) ; Counter < String > counter2 = new Counter < > ( ) ; for ( int i = 0 ; i < strings [ 0 ] . length ( ) ; i ++ ) counter . incrementCount ( String . valueOf ( strings [ 0 ] . charAt ( i ) ) , 1.0 ) ; for ( int i = 0 ; i < strings [ 1 ] . length ( ) ; i ++ ) counter2 . incrementCount ( String . valueOf ( strings [ 1 ] . charAt ( i ) ) , 1.0 ) ; Set < String > v1 = counter . keySet ( ) ; Set < String > v2 = counter2 . keySet ( ) ; Set < String > both = SetUtils . intersection ( v1 , v2 ) ; double scalar = 0 , norm1 = 0 , norm2 = 0 ; for ( String k : both ) scalar += counter . getCount ( k ) * counter2 . getCount ( k ) ; for ( String k : v1 ) norm1 += counter . getCount ( k ) * counter . getCount ( k ) ; for ( String k : v2 ) norm2 += counter2 . getCount ( k ) * counter2 . getCount ( k ) ; return scalar / Math . sqrt ( norm1 * norm2 ) ; }

Calcule la similitud de la cadena con los pesos de TFIDF en relación con la frecuencia de cada carácter y cuántas veces aparece un personaje en una cadena determinada


protected void initialise  ( double [ ] impulseResponse , int sliceLen ) { denumeratorCoefficients = new double [ impulseResponse . length ] ; System . arraycopy ( impulseResponse , 0 , denumeratorCoefficients , 0 , impulseResponse . length ) ; if ( ! MathUtils . isPowerOfTwo ( impulseResponse . length + sliceLen ) ) throw new IllegalArgumentException ( "Impulse response length plus slice length must be a power of two" ) ; this . impulseResponseLength = impulseResponse . length ; this . sliceLength = sliceLen ; transformedIR = new double [ sliceLen + impulseResponse . length ] ; System . arraycopy ( impulseResponse , 0 , transformedIR , 0 , impulseResponse . length ) ; FFT . realTransform ( transformedIR , false ) ; }

Inicializa el filtro de respuesta de impulso finito.


private static int indexOf  ( Object o , Object [ ] elements , int index , int fence ) { if ( o == null ) { for ( int i = index ; i < fence ; i ++ ) if ( elements [ i ] == null ) return i ; } else { for ( int i = index ; i < fence ; i ++ ) if ( o . equals ( elements [ i ] ) ) return i ; } return - 1 ; }

Versión estática de indexOF, para permitir llamadas repetidas sin necesidad de re-adquirir la matriz cada vez.


public static void writeLines  ( File file , String encoding , Collection < ? > lines , boolean append ) throws IOException { writeLines ( file , encoding , lines , null , append ) ; }

Escribe el valor <código> TOSTRING () </ CODE> de cada elemento en una colección en el archivo <codigo> especificado </ código> línea por línea, opcionalmente anexar.Se utilizará la codificación de carácter especificada y la finalización de línea predeterminada.


@ Override public void removeListener  ( DataSourceUpdatedInterface listener ) { }


public static Element firstChildElement  ( Element element ) { if ( element == null ) return null ; Node node = element . getFirstChild ( ) ; if ( node != null ) { do { if ( node . getNodeType ( ) == Node . ELEMENT_NODE ) { Element childElement = ( Element ) node ; return childElement ; } } while ( ( node = node . getNextSibling ( ) ) != null ) ; } return null ; }

Devolver el primer elemento secundario devuelve el primer elemento.


public static String toString  ( long l ) { StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < 13 ; i ++ ) { int t = ( int ) ( l & 0x1f ) ; l = l >> 5 ; sb . append ( chars [ t ] ) ; } return sb . reverse ( ) . toString ( ) ; }


public MetadataXmlProvider ( File metadataFile , File workingDir ) throws XmlParsingException , FileNotFoundException  { this . workingDir = workingDir ; this . dpp = loadDpp ( metadataFile ) ; }

Carga y valida metadata.xml.Transforma a metadata.xml en un conjunto de archivos de parámetros para la herramienta BMXLIB.Los archivos de parámetros se crean dentro del directorio de trabajo provisto.


public void destroy  ( ) { if ( this . player != null ) { if ( ( this . state == STATE . MEDIA_RUNNING ) || ( this . state == STATE . MEDIA_PAUSED ) ) { this . player . stop ( ) ; this . setState ( STATE . MEDIA_STOPPED ) ; } this . player . release ( ) ; this . player = null ; } if ( this . recorder != null ) { this . stopRecording ( ) ; this . recorder . release ( ) ; this . recorder = null ; } }

Destruye el jugador y detiene la reproducción de audio o la grabación.


public static Cursor query  ( ContentResolver cr ) { return cr . query ( CONTENT_URI , PROJECTION , WHERE , WHERE_ARGS , SORT_ORDER ) ; }

Consulta las tablas de contactos para cumpleaños con la configuración predeterminada.


private StyledLayerDescriptor createTestPoint  ( URL url ) { StyleBuilder sb = new StyleBuilder ( ) ; StyleFactory styleFactory = sb . getStyleFactory ( ) ; StyledLayerDescriptor sld = styleFactory . createStyledLayerDescriptor ( ) ; NamedLayer namedLayer = styleFactory . createNamedLayer ( ) ; sld . addStyledLayer ( namedLayer ) ; Style style = styleFactory . createStyle ( ) ; namedLayer . addStyle ( style ) ; List < FeatureTypeStyle > ftsList = style . featureTypeStyles ( ) ; FeatureTypeStyle fts = styleFactory . createFeatureTypeStyle ( ) ; ftsList . add ( fts ) ; Rule rule = styleFactory . createRule ( ) ; fts . rules ( ) . add ( rule ) ; PointSymbolizer point = styleFactory . createPointSymbolizer ( ) ; rule . symbolizers ( ) . add ( point ) ; Graphic graphic = createGraphic ( url , styleFactory ) ; point . setGraphic ( graphic ) ; return sld ; }


private static float lerp  ( float a , float b , float t ) { return a + ( b - a ) * t ; }

Interpolar lineal entre A y B con parámetro t.


@ Override public Schema schema  ( ) { return schema ; }

Devuelve el esquema de la unión, que es la unión de los esquemas de las consultas subyacentes.


public boolean isInvul  ( ) { return invul ; }


public void encoding  ( ) { if ( allNum != num + rsNum ) { throw new IllegalArgumentException ( "the addition of data disk num and checksum disk num should equal to allNum" ) ; } int cols , rows ; int [ ] factors ; int [ ] vdm ; int z = rsNum , n = 0 ; char [ ] [ ] buffer ; n = num ; cols = n ; rows = z + n ; factors = new int [ n ] ; buffer = new char [ n ] [ stripe_unit_size ] ; for ( int i = 0 ; i < n ; i ++ ) { for ( int l = 0 ; l < stripe_unit_size ; l ++ ) { buffer [ i ] [ l ] = rs [ i ] [ l ] ; } } for ( int i = 0 ; i < n ; i ++ ) { factors [ i ] = 1 ; } vdm = gf_make_dispersal_matrix ( rows , cols ) ; for ( int iByte = 0 ; iByte < stripe_unit_size ; iByte ++ ) { for ( int iRow = num ; iRow < allNum ; iRow ++ ) { int value = 0 ; for ( int c = 0 ; c < num ; c ++ ) { value ^= multiply ( ( char ) vdm [ iRow * num + c ] , rs [ c ] [ iByte ] ) ; } rs [ iRow ] [ iByte ] = ( char ) value ; } } }

RS Codificación de la función principal.Hay un simple testcase en SetData FUNC


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

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


private int measureShort  ( int measureSpec ) { int result ; int specMode = MeasureSpec . getMode ( measureSpec ) ; int specSize = MeasureSpec . getSize ( measureSpec ) ; if ( specMode == MeasureSpec . EXACTLY ) { result = specSize ; } else { result = ( int ) ( 2 * mRadius + getPaddingTop ( ) + getPaddingBottom ( ) + 1 ) ; if ( specMode == MeasureSpec . AT_MOST ) { result = Math . min ( result , specSize ) ; } } return result ; }


protected ChangeListener createListener  ( ) { return new RangeSliderChangeListener ( ) ; }

Cree un oyente para transmitir eventos de cambio desde el modelo de rango limitado.


private void loadMusic  ( ) { getSupportLoaderManager ( ) . initLoader ( MUSIC_LOADER_ID , null , this ) ; }


public boolean isApplicable  ( ) { return ProjectManager . getNumberOfProjects ( ) == 1 && ( ( Director ) ProjectManager . getProjects ( ) . get ( 0 ) ) . getDocument ( ) . getNumberOfSamples ( ) == 0 ; }

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


public static SM_SYSTEM_MESSAGE STR_MSG_LOCAL_TIME  ( String value0 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1390145 , value0 , value1 ) ; }


public void proceed  ( String username , String password ) { this . handler . proceed ( username , password ) ; }

Indica a WebView para continuar con la autenticación con las credenciales dadas.


public PartialUniqueIndex ( String indexName , Extractor [ ] extractors , int initialCapacity , float loadFactor ) { if ( initialCapacity < 0 ) throw new IllegalArgumentException ( "Illegal Initial Capacity: " + initialCapacity ) ; if ( initialCapacity > MAXIMUM_CAPACITY ) initialCapacity = MAXIMUM_CAPACITY ; if ( loadFactor <= 0 || Float . isNaN ( loadFactor ) ) throw new IllegalArgumentException ( "Illegal Load factor: " + loadFactor ) ; this . extractors = extractors ; hashStrategy = ExtractorBasedHashStrategy . create ( this . extractors ) ; int capacity = 1 ; while ( capacity < initialCapacity ) capacity <<= 1 ; table = new Entry [ capacity ] ; this . loadFactor = loadFactor ; threshold = ( int ) ( capacity * loadFactor ) ; }

Construye un nuevo y vacío <tt> wealpool </ tt> con la capacidad inicial dada y el factor de carga dado.


private void initRecyclerview  ( ) { mRecyclerView . setLayoutManager ( new GridLayoutManager ( this , 3 ) ) ; mPicAdapter = new PicAdapter ( ) ; for ( int i = 0 ; i < names . length ; i ++ ) { mPicAdapter . add ( new Item ( images [ i ] , names [ i ] , textDescription ) ) ; } mRecyclerView . setAdapter ( mPicAdapter ) ; ItemTouchHelper . Callback callback = new CustomItHelperCallback ( this ) ; ItemTouchHelper touchHelper = new ItemTouchHelper ( callback ) ; touchHelper . attachToRecyclerView ( mRecyclerView ) ; }


public ContextPermission ( String name ) { super ( name ) ; }

Crea una instancia con el nombre especificado.


@ Override public void actionPerformed  ( ActionEvent ev ) { execute ( "select what=previous;" ) ; }


public Timer ( ) { this  ( "unnamed" ) ; }


public void put  ( String key , String value ) { parameters . put ( key , value ) ; }

Asocia el valor especificado con la clave especificada en este contexto.Si el contexto contenía previamente un mapeo de la clave, el valor anterior se reemplaza por el valor especificado.


Desactivar para crear una instancia de la base.


private void checkDeclaredElements  ( DTDGrammar grammar ) { int elementIndex = grammar . getFirstElementDeclIndex ( ) ; XMLContentSpec contentSpec = new XMLContentSpec ( ) ; while ( elementIndex >= 0 ) { int type = grammar . getContentSpecType ( elementIndex ) ; if ( type == XMLElementDecl . TYPE_CHILDREN || type == XMLElementDecl . TYPE_MIXED ) { checkDeclaredElements ( grammar , elementIndex , grammar . getContentSpecIndex ( elementIndex ) , contentSpec ) ; } elementIndex = grammar . getNextElementDeclIndex ( elementIndex ) ; } }

Comprueba que todos los elementos mencionados en los modelos de contenido han sido declarados.Este método llama al controlador de errores para indicar advertencias.


protected void addOnPropertyChangedCallback  ( Observable . OnPropertyChangedCallback callback ) { onPropertyChangedCallbacks . add ( callback ) ; getViewModel ( ) . addOnPropertyChangedCallback ( callback ) ; }

Agregue un observable.onPropertyChangedCallback a ViewModel que se eliminará en la vista Destruir <P> Utilizar este método para agregar observable.onPropertyChangedCallback a ViewModel.Todas las devoluciones de llamada serán eliminadas en la visión destruir.Ayuda a evitar fugas de memoria a través de devoluciones de llamada.


public PhotosGetByIdQueryWithExtended photoSizes  ( Boolean value ) { return unsafeParam ( "photo_sizes" , value ) ; }

Devuelve los tamaños de fotos en un formato especial


public static StorableTimeFence inInterval  ( long startTimeMillis , long stopTimeMillis ) { return new StorableTimeFence ( ABSOLUTE , null , startTimeMillis , stopTimeMillis ) ; }

Crea una valla de tiempo almacenable que será válida en el marco de tiempo absoluto dado.


protected ExecuteStorageFunctionQuery funcV  ( Integer value ) { return unsafeParam ( "func_v" , value ) ; }


@ Override public boolean supports  ( Class < ? > clazz ) { boolean result = ActionConfig . class . equals ( clazz ) ; LOG . debug ( "Supports class: " + clazz + ", " + result ) ; return result ; }

Devuelve VERDADERO si la clase es igual a <Code> com.opensymphony.xwork.config.entities.actionConfig </ code>.Falso de lo contrario.


@ Override public final void putAll  ( Map < ? extends String , ? extends Object > m ) { for ( String s : m . keySet ( ) ) { set ( s , m . get ( s ) ) ; } }

Ponga todos los datos en el mapa para frijol.


protected void sendPacket  ( AionServerPacket msg ) { getConnection ( ) . sendPacket ( msg ) ; }

Envíe nuevo AioServerPacket a la conexión que es propietario de este paquete.Este método es equivalente a: getConnection (). SendPacket (MSG);


private Unit copyBlock  ( Block block ) { Map < Unit , List < Trap > > traps = getTraps ( ) ; Set < Trap > openedTraps = new HashSet < Trap > ( ) ; Map < Trap , Trap > copiedTraps = new HashMap < Trap , Trap > ( ) ; Chain < Unit > unitChain = body . getUnits ( ) ; Unit tail = block . getTail ( ) ; Unit immediateSucc = unitChain . getSuccOf ( tail ) ; Unit newGoto = insertGotoAfter ( tail , immediateSucc ) ; Unit last = newGoto ; boolean first = true ; Unit copiedHead = null ; for ( Unit currentUnit = block . getHead ( ) ; currentUnit != newGoto ; currentUnit = ( Unit ) unitChain . getSuccOf ( currentUnit ) ) { last = insertCloneAfter ( unitChain , last , currentUnit ) ; if ( first ) { first = false ; copiedHead = last ; } List < Trap > currentTraps = traps . get ( currentUnit ) ; if ( currentTraps != null ) { for ( Trap trap : currentTraps ) { if ( trap . getBeginUnit ( ) == currentUnit ) { Trap copiedTrap = ( Trap ) trap . clone ( ) ; copiedTrap . setBeginUnit ( last ) ; copiedTraps . put ( trap , copiedTrap ) ; openedTraps . add ( copiedTrap ) ; body . getTraps ( ) . insertAfter ( copiedTrap , trap ) ; } if ( trap . getEndUnit ( ) == currentUnit ) { Trap copiedTrap = copiedTraps . get ( trap ) ; if ( copiedTrap == null ) { copiedTrap = ( Trap ) trap . clone ( ) ; copiedTrap . setBeginUnit ( copiedHead ) ; body . getTraps ( ) . insertAfter ( copiedTrap , trap ) ; } else { openedTraps . remove ( copiedTrap ) ; } copiedTrap . setEndUnit ( last ) ; } } } } Iterator < Trap > openedIterator = openedTraps . iterator ( ) ; while ( openedIterator . hasNext ( ) ) { openedIterator . next ( ) . setEndUnit ( last ) ; } return copiedHead ; }

pone una copia (clon) del bloque dado en el sinitchain.El bloque se garantiza que tenga las mismas excepciones que el bloque original.(Así que modificaremos la cadena de excepciones).Además, el bloque insertado no cambiará el comportamiento del programa. <br> Sin ninguna modificación adicional, el bloque devuelto es inalcanzable.Para que sea accesible, debe <código> goto </ code> a la cabeza devuelta del nuevo bloque.


public PulsarAdmin ( URL serviceUrl , ClientConfiguration pulsarConfig ) throws PulsarClientException { this . auth = pulsarConfig != null ? pulsarConfig . getAuthentication ( ) : null ; LOG . debug ( "created: serviceUrl={}, authMethodName={}" , serviceUrl , auth != null ? auth . getAuthMethodName ( ) : null ) ; ClientConfig httpConfig = new ClientConfig ( ) ; httpConfig . property ( ClientProperties . FOLLOW_REDIRECTS , true ) ; httpConfig . property ( ClientProperties . ASYNC_THREADPOOL_SIZE , 8 ) ; ClientBuilder clientBuilder = ClientBuilder . newBuilder ( ) . withConfig ( httpConfig ) . register ( JacksonConfigurator . class ) . register ( JacksonFeature . class ) ; if ( pulsarConfig != null && pulsarConfig . isUseTls ( ) ) { try { SSLContext sslCtx = null ; X509Certificate trustCertificates [ ] = SecurityUtility . loadCertificatesFromPemFile ( pulsarConfig . getTlsTrustCertsFilePath ( ) ) ; AuthenticationDataProvider authData = pulsarConfig . getAuthentication ( ) . getAuthData ( ) ; if ( authData . hasDataForTls ( ) ) { sslCtx = SecurityUtility . createSslContext ( pulsarConfig . isTlsAllowInsecureConnection ( ) , trustCertificates , authData . getTlsCertificates ( ) , authData . getTlsPrivateKey ( ) ) ; } else { sslCtx = SecurityUtility . createSslContext ( pulsarConfig . isTlsAllowInsecureConnection ( ) , trustCertificates ) ; } clientBuilder . sslContext ( sslCtx ) ; } catch ( Exception e ) { throw new PulsarClientException . InvalidConfigurationException ( e . getMessage ( ) ) ; } } this . client = clientBuilder . build ( ) ; this . serviceUrl = serviceUrl ; WebTarget root = client . target ( serviceUrl . toString ( ) ) ; web = root . path ( "/admin" ) ; if ( auth != null ) { auth . start ( ) ; } this . clusters = new ClustersImpl ( web , auth ) ; this . brokers = new BrokersImpl ( web , auth ) ; this . brokerStats = new BrokerStatsImpl ( web , auth ) ; this . properties = new PropertiesImpl ( web , auth ) ; this . namespaces = new NamespacesImpl ( web , auth ) ; this . persistentTopics = new PersistentTopicsImpl ( web , auth ) ; this . resourceQuotas = new ResourceQuotasImpl ( web , auth ) ; this . lookups = new LookupImpl ( root , auth , pulsarConfig . isUseTls ( ) ) ; }

Construir un nuevo objeto de cliente de administración de PULSAR.<p> Este objeto cliente se puede utilizar para realizar muchas llamadas de API suscentas


private void requestForDownload  ( OCFile file ) { Intent i = new Intent ( mContext , FileDownloader . class ) ; i . putExtra ( FileDownloader . EXTRA_ACCOUNT , mAccount ) ; i . putExtra ( FileDownloader . EXTRA_FILE , file ) ; mContext . startService ( i ) ; mTransferWasRequested = true ; }

Solicitudes de descarga al servicio de Filedownloader


@ Override protected void entryRemoved  ( boolean evicted , String key , BitmapDrawable oldValue , BitmapDrawable newValue ) { if ( RecyclingBitmapDrawable . class . isInstance ( oldValue ) ) { ( ( RecyclingBitmapDrawable ) oldValue ) . setIsCached ( false ) ; } else { if ( Utils . hasHoneycomb ( ) ) { mReusableBitmaps . add ( new SoftReference < Bitmap > ( oldValue . getBitmap ( ) ) ) ; } } }

Notificar la entrada eliminada que ya no se está almacenando en caché


public static String mapToStr  ( Map < ? extends Object , ? extends Object > map ) { if ( map == null ) return null ; StringBuilder buf = new StringBuilder ( ) ; boolean first = true ; for ( Map . Entry < ? extends Object , ? extends Object > entry : map . entrySet ( ) ) { Object key = entry . getKey ( ) ; Object value = entry . getValue ( ) ; if ( ! ( key instanceof String ) || ! ( value instanceof String ) ) continue ; String encodedName = null ; try { encodedName = URLEncoder . encode ( ( String ) key , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { Debug . logError ( e , module ) ; } String encodedValue = null ; try { encodedValue = URLEncoder . encode ( ( String ) value , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { Debug . logError ( e , module ) ; } if ( first ) first = false ; else buf . append ( "|" ) ; buf . append ( encodedName ) ; buf . append ( "=" ) ; buf . append ( encodedValue ) ; } return buf . toString ( ) ; }

Crea una cadena codificada de un mapa de pares de nombre / valor (¡debe ser STRINGS!)


protected void normalizeDocument  ( CoreDocumentImpl document , DOMConfigurationImpl config ) { fDocument = document ; fConfiguration = config ; fAllWhitespace = false ; fNamespaceValidation = false ; String xmlVersion = fDocument . getXmlVersion ( ) ; String schemaType = null ; String [ ] schemaLocations = null ; fSymbolTable = ( SymbolTable ) fConfiguration . getProperty ( DOMConfigurationImpl . SYMBOL_TABLE ) ; fNamespaceContext . reset ( ) ; fNamespaceContext . declarePrefix ( XMLSymbols . EMPTY_STRING , null ) ; if ( ( fConfiguration . features & DOMConfigurationImpl . VALIDATE ) != 0 ) { String schemaLang = ( String ) fConfiguration . getProperty ( DOMConfigurationImpl . JAXP_SCHEMA_LANGUAGE ) ; if ( schemaLang != null && schemaLang . equals ( Constants . NS_XMLSCHEMA ) ) { schemaType = XMLGrammarDescription . XML_SCHEMA ; fValidationHandler = CoreDOMImplementationImpl . singleton . getValidator ( schemaType , xmlVersion ) ; fConfiguration . setFeature ( DOMConfigurationImpl . SCHEMA , true ) ; fConfiguration . setFeature ( DOMConfigurationImpl . SCHEMA_FULL_CHECKING , true ) ; fNamespaceValidation = true ; fPSVI = ( ( fConfiguration . features & DOMConfigurationImpl . PSVI ) != 0 ) ? true : false ; } else { schemaType = XMLGrammarDescription . XML_DTD ; if ( schemaLang != null ) { schemaLocations = ( String [ ] ) fConfiguration . getProperty ( DOMConfigurationImpl . JAXP_SCHEMA_SOURCE ) ; } fConfiguration . setDTDValidatorFactory ( xmlVersion ) ; fValidationHandler = CoreDOMImplementationImpl . singleton . getValidator ( schemaType , xmlVersion ) ; fPSVI = false ; } fConfiguration . setFeature ( DOMConfigurationImpl . XERCES_VALIDATION , true ) ; fDocument . clearIdentifiers ( ) ; if ( fValidationHandler != null ) { ( ( XMLComponent ) fValidationHandler ) . reset ( fConfiguration ) ; } } else { fValidationHandler = null ; } fErrorHandler = ( DOMErrorHandler ) fConfiguration . getParameter ( Constants . DOM_ERROR_HANDLER ) ; if ( fValidationHandler != null ) { fValidationHandler . setDocumentHandler ( this ) ; fValidationHandler . startDocument ( new SimpleLocator ( fDocument . fDocumentURI , fDocument . fDocumentURI , - 1 , - 1 ) , fDocument . encoding , fNamespaceContext , null ) ; fValidationHandler . xmlDecl ( fDocument . getXmlVersion ( ) , fDocument . getXmlEncoding ( ) , fDocument . getXmlStandalone ( ) ? "yes" : "no" , null ) ; } try { if ( schemaType == XMLGrammarDescription . XML_DTD ) { processDTD ( xmlVersion , schemaLocations != null ? schemaLocations [ 0 ] : null ) ; } Node kid , next ; for ( kid = fDocument . getFirstChild ( ) ; kid != null ; kid = next ) { next = kid . getNextSibling ( ) ; kid = normalizeNode ( kid ) ; if ( kid != null ) { next = kid ; } } if ( fValidationHandler != null ) { fValidationHandler . endDocument ( null ) ; fValidationHandler . setDocumentHandler ( null ) ; CoreDOMImplementationImpl . singleton . releaseValidator ( schemaType , xmlVersion , fValidationHandler ) ; fValidationHandler = null ; } } catch ( RuntimeException e ) { if ( fValidationHandler != null ) { fValidationHandler . setDocumentHandler ( null ) ; CoreDOMImplementationImpl . singleton . releaseValidator ( schemaType , xmlVersion , fValidationHandler ) ; fValidationHandler = null ; } if ( e == abort ) { return ; } throw e ; } }

Normaliza el documento.Nota: Restablecer () debe llamarse antes de este método.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_InvulnerableWing_A_TO_B  ( String skillcaster , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201221 , skillcaster , skilltarget , skillname ) ; }

[% Skillcaster] realizó [% SkillTarget] más resistente al estrellamiento y las prohibiciones de volar utilizando [% de habilidad].


public TableIterator iterator  ( ) { return iterator ( rows ( ) ) ; }

Devuelve un secuestrador sobre las filas de esta tabla.


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


public void loadingFinished  ( ) { mLoadTracker . loadingFinished ( ) ; }

Llamado cuando esta pestaña ha terminado de cargar los recursos.


public boolean equals  ( BasicBlock b ) { return ( this == b ) ; }

Es cierto si este bloque representa la misma pieza de código.Básicamente, compara las etiquetas de las instrucciones de la cabeza.


public AudioSetBroadcastQuery targetIds  ( List < Integer > value ) { return unsafeParam ( "target_ids" , value ) ; }

IDS de comunidades y usuarios cuyos estados se incluirán en la transmisión.Use un valor negativo para designar un ID de comunidad.De forma predeterminada, ID de usuario actual.


public static void callNumber  ( Context context , String phoneNumber ) { openDialerActivityWithAction ( context , phoneNumber , Intent . ACTION_CALL ) ; }


public RMIExtendedSocketFactory ( InetAddress inetAddress ) { this . hostInetAddress = inetAddress ; }

Crea un nuevo <código> rmiextendedsocketfactoryfactoryfactoryfactoryfactoryfactory.


boolean appendMarker  ( Node < K , V > f ) { return casNext ( f , new Node < K , V > ( f ) ) ; }

Trata de agregar un marcador de eliminación a este nodo.


public void clearSticky  ( ) { int size = headComponentStack . size ( ) ; while ( size > 0 && headerViewStack . size ( ) == size ) { WXCell headComponent = headComponentStack . pop ( ) ; View headerView = headerViewStack . pop ( ) ; ( ( ViewGroup ) getParent ( ) ) . removeView ( headerView ) ; headComponent . recoverySticky ( ) ; } }


public static float readFloat  ( byte [ ] bytes ) { return ByteBuffer . wrap ( bytes ) . getFloat ( ) ; }

Lee un número de punto flotante de 32 bits firmado de 32 bits.


public static Histogram joinHistogram  ( Histogram hist1 , Histogram hist2 , String fldName1 , String fldName2 ) { Histogram prodHist = ProductPlan . productHistogram ( hist1 , hist2 ) ; Set < String > group = new HashSet < String > ( ) ; group . add ( fldName1 ) ; group . add ( fldName2 ) ; return SelectPlan . joinFieldsHistogram ( prodHist , group ) ; }

Devuelve un histograma que, para cada campo, se aproxima a la distribución del valor de la unión de los histogramas especificados.<p> asume que: <ul> <li> los valores en un cubo tienen la misma frecuencia (frecuencia uniforme) </ li> <li> dados valores dentro de dos rangos iguales (de dos campos unificables), todos los valores en el rango que tieneAparece un número menor de valores en el rango que tiene un número mayor de valores </ li> <li> Las distribuciones de valores en diferentes campos son independientes entre sí </ li> </ ul>


public DiskBasedCache ( File rootDirectory ) { this ( rootDirectory , DEFAULT_DISK_USAGE_BYTES ) ; }

Construye una instancia del DiskBasedCache en el directorio especificado usando el tamaño de caché máximo predeterminado de 5 MB.


private static void expandLargeNumber  ( String numberString , String order , int numberZeroes , WordRelation wordRelation , Item tokenItem ) { int numberDigits = numberString . length ( ) ; int i = numberDigits - numberZeroes ; String part = numberString . substring ( 0 , i ) ; Item oldTail = wordRelation . getTail ( ) ; expandNumber ( part , wordRelation , tokenItem ) ; if ( wordRelation . getTail ( ) == oldTail ) { expandNumberAt ( numberString , i , wordRelation , tokenItem ) ; } else { wordRelation . addWord ( tokenItem , order ) ; expandNumberAt ( numberString , i , wordRelation , tokenItem ) ; } }

Expande una cadena que es un número más de 3 dígitos en una lista de palabras en inglés.Por ejemplo, "1000" en mil.


private View nextFromLimitedList  ( ) { int size = mScrapList . size ( ) ; RecyclerView . ViewHolder closest = null ; int closestDistance = Integer . MAX_VALUE ; for ( int i = 0 ; i < size ; i ++ ) { RecyclerView . ViewHolder viewHolder = mScrapList . get ( i ) ; if ( ! mIsPreLayout && viewHolder . isRemoved ( ) ) { continue ; } final int distance = ( viewHolder . getPosition ( ) - mCurrentPosition ) * mItemDirection ; if ( distance < 0 ) { continue ; } if ( distance < closestDistance ) { closest = viewHolder ; closestDistance = distance ; if ( distance == 0 ) { break ; } } } if ( closest != null ) { mCurrentPosition = closest . getPosition ( ) + mItemDirection ; return closest . itemView ; } return null ; }

Devuelve el siguiente elemento de la lista limitada.<p> Al encontrar un VH válido, establece la posición de elemento actual a vh.itemposition + mitemdirection


public GroupsGetInvitedUsersQuery count  ( Integer value ) { return unsafeParam ( "count" , value ) ; }


@ SuppressLint ( "DefaultLocale" ) public void elementType  ( String name , int model , int memberOf , int flags ) { ElementType e = new ElementType ( name , model , memberOf , flags , this ) ; theElementTypes . put ( name . toLowerCase ( ) , e ) ; if ( memberOf == M_ROOT ) theRoot = e ; }

Agregue o reemplace un tipo de elemento para este esquema.


public final boolean isAlternatingDevice  ( ) { return ( myAlternate & CFG_DEVICE ) != 0 ; }

Devuelve verdadero si se alternaba el dispositivo


public static void showWarning  ( Object parentIgnored , String message ) { showNotification ( title , message , Mode . warning , Pos . BOTTOM_LEFT , 60000 ) ; }


private List < String > splitIntoAllophoneList  ( String allophoneString , boolean includeStressAndSyllableMarkers ) { List < String > phones = new ArrayList < String > ( ) ; boolean haveSeenNucleus = false ; for ( int i = 0 ; i < allophoneString . length ( ) ; i ++ ) { String one = allophoneString . substring ( i , i + 1 ) ; if ( getIgnoreChars ( ) . contains ( one ) ) { if ( includeStressAndSyllableMarkers ) phones . add ( one ) ; continue ; } else if ( one . equals ( " " ) ) { continue ; } Allophone ph = null ; for ( int l = maxAllophoneSymbolLength ; l >= 1 ; l -- ) { if ( i + l <= allophoneString . length ( ) ) { String s = allophoneString . substring ( i , i + l ) ; ph = getAllophone ( s ) ; if ( ph != null ) { i += l - 1 ; break ; } } } if ( ph != null ) { phones . add ( ph . name ( ) ) ; } else { throw new IllegalArgumentException ( "Found unknown symbol `" + allophoneString . charAt ( i ) + "' in phonetic string `" + allophoneString + "' -- ignoring." ) ; } } return phones ; }

Dividir la cadena de alófono en una lista de símbolos de alophón.Incluya (o ignore, dependiendo del parámetro 'IncludeRessandsyllablemarkers') Los marcadores de estrés (',), los límites de la sílaba (-).Ignora los caracteres del espacio.


public static void deleteAircraft  ( AirMapAircraft aircraft , AirMapCallback < Void > listener ) { String url = String . format ( pilotAircraftByIdUrl , AirMap . getUserId ( ) , aircraft . getAircraftId ( ) ) ; AirMap . getClient ( ) . delete ( url , new VoidCallback ( listener ) ) ; }