@ Override public Histogram histogram  ( ) { return hist ; }

Devuelve el histograma que se aproxima a la distribución de unión de los valores de campo de los resultados de la consulta.


private void createTreeItemMap  ( ) { if ( treeItemMap . isEmpty ( ) ) { StyledLayerDescriptorTreeItem sldTreeItem = new StyledLayerDescriptorTreeItem ( ) ; StyleTreeItem styleTreeItem = new StyleTreeItem ( ) ; FeatureTypeStyleTreeItem ftsTreeItem = new FeatureTypeStyleTreeItem ( ) ; NameLayerTreeItem nameLayerTreeItem = new NameLayerTreeItem ( ) ; UserLayerTreeItem userLayerTreeItem = new UserLayerTreeItem ( ) ; FillTreeItem fillTreeItem = new FillTreeItem ( ) ; StrokeTreeItem strokeTreeItem = new StrokeTreeItem ( ) ; treeItemMap . put ( StyledLayerDescriptorImpl . class , sldTreeItem ) ; treeItemMap . put ( StyleImpl . class , styleTreeItem ) ; treeItemMap . put ( FeatureTypeStyleImpl . class , ftsTreeItem ) ; treeItemMap . put ( RuleImpl . class , ruleTreeItem ) ; treeItemMap . put ( PointSymbolizerImpl . class , symbolizerTreeItem ) ; treeItemMap . put ( LineSymbolizerImpl . class , symbolizerTreeItem ) ; treeItemMap . put ( PolygonSymbolizerImpl . class , symbolizerTreeItem ) ; treeItemMap . put ( TextSymbolizerImpl . class , symbolizerTreeItem ) ; treeItemMap . put ( NamedLayerImpl . class , nameLayerTreeItem ) ; treeItemMap . put ( UserLayerImpl . class , userLayerTreeItem ) ; treeItemMap . put ( StrokeImpl . class , strokeTreeItem ) ; treeItemMap . put ( FillImpl . class , fillTreeItem ) ; treeItemMap . put ( RasterSymbolizerImpl . class , symbolizerTreeItem ) ; } }


private static boolean checkVerticalMarginsSnap  ( ArrayList < SnapCandidate > snapCandidates , ConstraintWidget widget , Point candidatePoint , int margin ) { if ( widget . getParent ( ) == null ) { return false ; } int parentY1 = widget . getParent ( ) . getDrawY ( ) + margin ; int parentY2 = widget . getParent ( ) . getDrawBottom ( ) - margin ; if ( Math . abs ( widget . getDrawY ( ) - parentY1 ) < CONNECTION_SLOPE ) { candidatePoint . y = parentY1 ; SnapCandidate candidate = createSnapCandidate ( widget , ConstraintAnchor . Type . TOP , 0 , parentY1 ) ; candidate . padding = margin ; snapCandidates . add ( candidate ) ; return true ; } if ( Math . abs ( widget . getDrawY ( ) + widget . getHeight ( ) - parentY2 ) < CONNECTION_SLOPE ) { candidatePoint . y = parentY2 - widget . getHeight ( ) ; SnapCandidate candidate = createSnapCandidate ( widget , ConstraintAnchor . Type . BOTTOM , 0 , parentY2 ) ; candidate . padding = margin ; snapCandidates . add ( candidate ) ; return true ; } return false ; }

Compruebe la posición del candidato contra el margen superior e inferior del padre del widget.


protected void parseTimeZone  ( String buffer , int start , int end , DateTimeData date ) throws RuntimeException { if ( start < end ) { if ( ! isNextCharUTCSign ( buffer , start , end ) ) { throw new RuntimeException ( "Error in month parsing" ) ; } else { getTimeZone ( buffer , date , start , end ) ; } } }

Código compartido de tipos de datos de fecha y año.Encuentra si el signo de la zona horaria está presente


public static void install  ( Context context , String filename ) { install ( context , BIN_DIR_NAME , filename ) ; }

Instale el binario específico en / Data / Data / Package-Name / App-Bin Directory.


public static void writeLines  ( File file , String encoding , Collection < ? > lines , String lineEnding , boolean append ) throws IOException { FileOutputStream out = null ; try { out = openOutputStream ( file , append ) ; final BufferedOutputStream buffer = new BufferedOutputStream ( out ) ; IOUtils . writeLines ( lines , lineEnding , buffer , encoding ) ; buffer . flush ( ) ; out . close ( ) ; } finally { IOUtils . closeQuietly ( out ) ; } }

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


public String encrypt  ( String input ) { if ( input == null || input . length ( ) == 0 ) { return input ; } byte [ ] inputBytes = input . getBytes ( UTF_8 ) ; byte [ ] outputBytes = encrypt ( inputBytes ) ; return new String ( outputBytes , UTF_8 ) ; }


public static int nullSafeHashCode  ( char [ ] array ) { if ( array == null ) { return 0 ; } int hash = INITIAL_HASH ; int arraySize = array . length ; for ( int i = 0 ; i < arraySize ; i ++ ) { hash = MULTIPLIER * hash + array [ i ] ; } return hash ; }

Devuelva un código hash basado en el contenido de la matriz especificada.Si <code> Array </ code> es <code> null </ code>, este método devuelve 0.


@ Override public boolean shouldUseFullyQualifiedName  ( @ NotNull PsiFile targetFile , @ NotNull String classQualifiedName ) { if ( classQualifiedName . equals ( CLASS_R ) || classQualifiedName . startsWith ( CLASS_R_PREFIX ) ) { return true ; } int index = classQualifiedName . lastIndexOf ( '.' ) ; if ( index == classQualifiedName . length ( ) - 2 && classQualifiedName . charAt ( index + 1 ) == 'R' ) { String pkg = getApplicationPackage ( targetFile ) ; if ( pkg != null ) { return ! isResourceClassReference ( classQualifiedName , pkg + ".R" ) ; } } else if ( index > 2 && classQualifiedName . charAt ( index - 1 ) == 'R' && classQualifiedName . charAt ( index - 2 ) == '.' ) { return classQualifiedName . startsWith ( CLASS_R ) || ResourceType . getEnum ( classQualifiedName . substring ( index + 1 ) ) != null ; } return false ; }

Nunca importa Android.R, o clases interiores de la aplicación R u clases de Android.R


public MultiDirectionalSimplex ( final double [ ] steps ) { this ( steps , DEFAULT_KHI , DEFAULT_GAMMA ) ; }

Construye un simplex Multidireccional con coeficientes predeterminados.Los valores predeterminados son 2.0 para KHI y 0.5 para Gamma.


public void run  ( String [ ] args ) throws Exception { final ArgsOptions options = new ArgsOptions ( args , this , "Merges reads-to-reference alignments using reference alignment" ) ; options . setVersion ( ProgramProperties . getProgramVersion ( ) ) ; options . setLicense ( "Copyright (C) 2016 Daniel H. Huson. This program comes with ABSOLUTELY NO WARRANTY." ) ; options . setAuthors ( "Daniel H. Huson" ) ; final String referencesAlignmentFile = options . getOptionMandatory ( "-ref" , "refInput" , "file containing multiple alignment of references" , "" ) ; String [ ] readsAlignmentFiles = options . getOption ( "-rea" , "readAlignmentsFile" , "Files containing alignments of reads to references" , new String [ 0 ] ) ; String readsFile = options . getOption ( "-r" , "readsFile" , "File containing all reads" , "" ) ; final boolean dna2ProteinMode = options . getOption ( "-d2p" , "dna2prot" , "Aligned reads are DNA, references are protein" , false ) ; final String outputFile = options . getOption ( "-o" , "output" , "Output file" , "" ) ; final OutputFormat outputFormat = OutputFormat . valueOf ( options . getOption ( "-f" , "format" , "Output format" , OutputFormat . values ( ) , OutputFormat . MSA . toString ( ) ) ) ; final String referenceName = options . getOption ( "-n" , "name" , "Name of references" , Basic . getFileBaseName ( Basic . getFileNameWithoutPath ( referencesAlignmentFile ) ) ) ; options . done ( ) ; if ( outputFormat == OutputFormat . BlastXText ) throw new IOException ( "Option '--format BlastXText': not implemented" ) ; if ( outputFormat == OutputFormat . BlastXText && ! dna2ProteinMode ) throw new IOException ( "Option '--format BlastXText' requires option '--dna2prot'" ) ; if ( outputFormat == OutputFormat . BlastXText && readsFile . length ( ) == 0 ) throw new IOException ( "Option '--format BlastXText' requires option '--readsFile'" ) ; if ( readsAlignmentFiles . length == 1 && ( new File ( readsAlignmentFiles [ 0 ] ) . isDirectory ( ) ) ) { File [ ] files = ( new File ( readsAlignmentFiles [ 0 ] ) ) . listFiles ( ) ; if ( files != null ) { List < String > names = new LinkedList < > ( ) ; for ( File file : files ) { if ( file . isFile ( ) && file . canRead ( ) && ! file . getName ( ) . startsWith ( "." ) ) names . add ( file . getPath ( ) ) ; } readsAlignmentFiles = names . toArray ( new String [ names . size ( ) ] ) ; } } final Map < String , String > referencesGlobalAlignment = new HashMap < > ( ) ; final List < String > referenceNames = new LinkedList < > ( ) ; int refGlobalAlignmentLength = - 1 ; try ( FileInputIterator it = new FileInputIterator ( referencesAlignmentFile ) ) { final ProgressPercentage progress = new ProgressPercentage ( "Processing file: " + referencesAlignmentFile , it . getMaximumProgress ( ) ) ; String name = null ; final List < String > sequences = new LinkedList < > ( ) ; while ( it . hasNext ( ) ) { final String aLine = it . next ( ) ; if ( aLine . startsWith ( ">" ) ) { if ( name != null ) { final String alignedSequence = Basic . toString ( sequences , "" ) ; if ( refGlobalAlignmentLength == - 1 ) refGlobalAlignmentLength = alignedSequence . length ( ) ; else if ( refGlobalAlignmentLength != alignedSequence . length ( ) ) throw new IOException ( "Aligned reference sequences have different lengths: " + refGlobalAlignmentLength + " vs " + alignedSequence . length ( ) ) ; referencesGlobalAlignment . put ( name , alignedSequence ) ; } name = Basic . getWordAfter ( ">" , aLine ) ; if ( referencesGlobalAlignment . keySet ( ) . contains ( name ) ) throw new IOException ( "Reference name occurs more than once: " + name ) ; referenceNames . add ( name ) ; sequences . clear ( ) ; progress . setProgress ( it . getProgress ( ) ) ; } else sequences . add ( aLine . replaceAll ( "\\s+" , "" ) ) ; } if ( name != null ) { final String alignedSequence = Basic . toString ( sequences , "" ) ; referencesGlobalAlignment . put ( name , alignedSequence ) ; if ( refGlobalAlignmentLength == - 1 ) refGlobalAlignmentLength = alignedSequence . length ( ) ; else if ( refGlobalAlignmentLength != alignedSequence . length ( ) ) throw new IOException ( "Aligned reference sequences have different lengths: " + refGlobalAlignmentLength + " vs " + alignedSequence . length ( ) ) ; } progress . close ( ) ; System . err . println ( "Input: " + referencesGlobalAlignment . size ( ) ) ; } if ( referencesGlobalAlignment . size ( ) <= 5 ) { System . err . println ( "Reference alignment (" + referencesGlobalAlignment . size ( ) + " x " + refGlobalAlignmentLength + "):" ) ; for ( String name : referenceNames ) { System . err . println ( referencesGlobalAlignment . get ( name ) ) ; } } final Map < String , String > readsGlobalAlignment = new HashMap < > ( ) ; final List < String > readNames = new LinkedList < > ( ) ; final int readGlobalAlignmentLength = ( dna2ProteinMode ? 3 * refGlobalAlignmentLength : refGlobalAlignmentLength ) ; for ( String readsAlignmentFile : readsAlignmentFiles ) { try ( FileInputIterator it = new FileInputIterator ( readsAlignmentFile ) ) { final ProgressPercentage progress = new ProgressPercentage ( "Processing file: " + readsAlignmentFile , it . getMaximumProgress ( ) ) ; String refName = null ; String refSequence = null ; String readName = null ; String readSequence ; final List < String > sequences = new LinkedList < > ( ) ; while ( it . hasNext ( ) ) { final String aLine = it . next ( ) ; if ( aLine . startsWith ( ">" ) ) { final String name = Basic . getWordAfter ( ">" , aLine ) ; final boolean isRef = referencesGlobalAlignment . keySet ( ) . contains ( name ) ; if ( refName == null ) { refName = name ; } else if ( readName == null ) { if ( refSequence == null ) refSequence = Basic . toString ( sequences , "" ) ; readName = name ; readNames . add ( readName ) ; } else { readSequence = placeBracketsAroundInsertionsInReadSequence ( dna2ProteinMode , refSequence , Basic . toString ( sequences , "" ) ) ; String globallyAlignedReference = referencesGlobalAlignment . get ( refName ) ; if ( globallyAlignedReference == null ) throw new IOException ( "Reference sequence not found: " + refName ) ; String globallyAligned = computeGlobalReadAlignment ( dna2ProteinMode , globallyAlignedReference , readSequence , readGlobalAlignmentLength ) ; if ( globallyAligned . length ( ) != readGlobalAlignmentLength ) throw new IOException ( "Read global alignment has wrong length: " + globallyAligned . length ( ) + ", should be: " + readGlobalAlignmentLength ) ; readsGlobalAlignment . put ( readName , globallyAligned ) ; if ( isRef ) { refName = name ; refSequence = null ; readName = null ; } else { readName = name ; readNames . add ( readName ) ; } } sequences . clear ( ) ; } else { sequences . add ( parseAlignedSequence ( aLine ) ) ; } progress . setProgress ( it . getProgress ( ) ) ; } if ( readName != null ) { readSequence = placeBracketsAroundInsertionsInReadSequence ( dna2ProteinMode , refSequence , Basic . toString ( sequences , "" ) ) ; String globallyAligned = computeGlobalReadAlignment ( dna2ProteinMode , referencesGlobalAlignment . get ( refName ) , readSequence , readGlobalAlignmentLength ) ; readsGlobalAlignment . put ( readName , globallyAligned ) ; } progress . close ( ) ; } } if ( readsGlobalAlignment . size ( ) <= 5 ) { System . err . println ( "Reads alignment (" + readsGlobalAlignment . size ( ) + " x " + readGlobalAlignmentLength + "):" ) ; for ( String name : readNames ) { System . err . println ( readsGlobalAlignment . get ( name ) ) ; } } Map < String , String > readName2ReadSequence = new HashMap < > ( ) ; if ( readsFile . length ( ) > 0 ) { readNames . clear ( ) ; try ( FastAFileIterator it = new FastAFileIterator ( readsFile ) ) { while ( it . hasNext ( ) ) { Pair < String , String > pair = it . next ( ) ; String name = Basic . getFirstWord ( Basic . swallowLeadingGreaterSign ( pair . getFirst ( ) ) ) ; readNames . add ( name ) ; if ( outputFormat == OutputFormat . BlastXText ) readName2ReadSequence . put ( name , pair . get2 ( ) ) ; } } } try ( final Writer w = ( outputFile . length ( ) == 0 ? new OutputStreamWriter ( System . out ) : new FileWriter ( outputFile ) ) ) { ProgressPercentage progress = new ProgressPercentage ( "Writing file: " + outputFile , - 1 ) ; switch ( outputFormat ) { case MSA : { for ( String name : readNames ) { if ( readsGlobalAlignment . get ( name ) != null ) w . write ( String . format ( ">%s\n%s\n" , name , readsGlobalAlignment . get ( name ) ) ) ; } break ; } case BlastNText : { w . write ( "BLASTN computed by MergeAlignments\n\n" ) ; String referenceSequence = computeConsensus ( readsGlobalAlignment , 'N' ) ; for ( String name : readNames ) { if ( readsGlobalAlignment . get ( name ) != null ) { w . write ( "Query= " + name + "\n\n" ) ; w . write ( getPairwiseBlastNAlignment ( referenceName , referenceSequence , readsGlobalAlignment . get ( name ) ) ) ; } } break ; } case BlastXText : { w . write ( "BLASTX computed by MergeAlignments\n\n" ) ; String referenceSequence = computeConsensus ( referencesGlobalAlignment , 'X' ) ; for ( String name : readNames ) { if ( readsGlobalAlignment . get ( name ) != null ) { w . write ( "Query= " + name + "\n\n" ) ; w . write ( getPairwiseBlastXAlignment ( referenceName , referenceSequence , readsGlobalAlignment . get ( name ) , readName2ReadSequence . get ( name ) ) ) ; } } break ; } } progress . close ( ) ; } }


public NumericHaving withAggregation  ( String aggregation ) { return new NumericHaving ( getType ( ) , aggregation , getValue ( ) ) ; }

Obtenga una nueva instancia de esto con la agregación dada.


public < RES > MatcherNext < RES , ARG > as ( Class < RES > dummy ) { return new MatcherNext < > ( arg ) ; }

CHIM para establecer el tipo de resultado de la extracción.Esto es útil si desea devolver una super clase donde las expresiones generan subclases.


public boolean isGlobalFindable  ( ) { return table . getGrid ( ) . getRowCount ( ) > 0 ; }


public void stop  ( String name ) { getTimer ( name ) . stop ( verbose ) ; }

Detiene el temporizador con el nombre dado.


public static byte indicator  ( final byte x ) { return ( x >= ZB ) ? PB : NB ; }

Para un valor de byte x, este método devuelve (byte) (+ 1) si x> = 0 y (byte) (- 1) si x <0.


public JSONArray put  ( boolean value ) { put ( value ? Boolean . TRUE : Boolean . FALSE ) ; return this ; }

Anejar un valor booleano.Esto aumenta la longitud de la matriz por uno.


public Matrix3f ( float m00 , float m01 , float m02 , float m10 , float m11 , float m12 , float m20 , float m21 , float m22 ) { this . m00 = m00 ; this . m01 = m01 ; this . m02 = m02 ; this . m10 = m10 ; this . m11 = m11 ; this . m12 = m12 ; this . m20 = m20 ; this . m21 = m21 ; this . m22 = m22 ; }

Construye una matriz con los valores dados.


public void flattenHierarchy  ( ConstraintWidgetContainer root ) { ArrayList < ConstraintWidgetContainer > containers = gatherContainers ( root ) ; while ( containers . size ( ) > 0 ) { for ( ConstraintWidgetContainer container : containers ) { removeContainer ( container ) ; } containers = gatherContainers ( root ) ; } }

Aplanar la jerarquía: elimine todos los contenedores existentes niños del contenedor dado


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

Número de usuarios y comunidades para devolver.


public static byte [ ] decode  ( byte [ ] data , String pri_key ) { try { Cipher cipher = Cipher . getInstance ( "RSA/ECB/PKCS1Padding" ) ; java . security . Key k = getPrivateKey ( pri_key ) ; cipher . init ( Cipher . DECRYPT_MODE , k ) ; byte [ ] deBytes = cipher . doFinal ( data ) ; return deBytes ; } catch ( Exception e ) { log . error ( pri_key , e ) ; } return null ; }


void print  ( cp_info constant_pool [ ] ) { G . v ( ) . out . println ( prototype ( constant_pool ) ) ; ByteCode . showCode ( instructions , constant_pool ) ; }

Muestra este método, imprimiendo un prototipo seguido de la lista de instrucciones.


ConfigurationError ( String msg , Exception x )  { super ( msg ) ; this . exception = x ; }

Construya una nueva instancia con la cadena de detalles especificada y la excepción.


public void start  ( ) { doGarbageCollecting ( ) ; startTime = nanoTime ( ) ; if ( hasStarted ) throw new RuntimeException ( "timer " + name + " has already been started!" ) ; hasStarted = true ; if ( ! G . v ( ) . Timer_isGarbageCollecting ) { G . v ( ) . Timer_outstandingTimers . add ( this ) ; } }


public void writeString  ( String str ) throws IOException { if ( str == null ) writeInt ( 0 ) ; else { if ( useCompression && str . length ( ) >= Compressor . MIN_SIZE_FOR_DEFLATION ) { byte [ ] bytes = compressor . deflateString2ByteArray ( str ) ; writeInt ( - bytes . length ) ; io . write ( bytes , 0 , bytes . length ) ; } else { byte [ ] bytes = str . getBytes ( "UTF-8" ) ; writeInt ( bytes . length ) ; io . write ( bytes , 0 , bytes . length ) ; } } }


public BoardEditCommentQuery editComment  ( UserActor actor , int groupId , int topicId , int commentId ) { return new BoardEditCommentQuery ( getClient ( ) , actor , groupId , topicId , commentId ) ; }

Edita un comentario sobre un tema en la Junta de Discusión de la Comunidad.


public static Color fromBGR  ( int bgr ) throws IllegalArgumentException  { Validate . isTrue ( ( bgr >> 24 ) == 0 , "Extrenuous data in: " , bgr ) ; return fromBGR ( bgr >> 16 & BIT_MASK , bgr >> 8 & BIT_MASK , bgr >> 0 & BIT_MASK ) ; }

Crea un nuevo objeto de color de un número entero que contiene los bytes azul, verde y rojo en el orden más bajo 24 bits.


public boolean isEmpty  ( ) { return mSize <= 0 ; }

Devuelve verdadero si el mapa de matriz no contiene artículos.


public void flush  ( LogSeqNum lsn ) { logMgrLock . lock ( ) ; try { if ( lsn . compareTo ( lastFlushedLsn ) >= 0 ) flush ( ) ; } finally { logMgrLock . unlock ( ) ; } }

Asegura que los registros de registro correspondientes al LSN especificado se hayan escrito en el disco.Todos los registros de registro anteriores también se escribirán en el disco.


public JSONArray put  ( int index , Map value ) throws JSONException { put ( index , new JSONObject ( value ) ) ; return this ; }

Ponga un valor en el JSONARRAY, donde el valor será un JSONOBJECT, que se produce a partir de un mapa.


public static void showError  ( String message , long milliseconds ) { showNotification ( title , message , Mode . error , Pos . BOTTOM_LEFT , milliseconds ) ; }


public LikesIsLikedQuery userId  ( Integer value ) { return unsafeParam ( "user_id" , value ) ; }


public String post  ( ) throws HttpClientException  { return sendHttpRequest ( "post" ) ; }


protected void addRow  ( Object [ ] carbonTuple ) throws SliceMergerException { Object [ ] rowInWritableFormat ; rowInWritableFormat = tupleConvertor . getObjectArray ( carbonTuple ) ; try { this . dataHandler . addDataToStore ( rowInWritableFormat ) ; } catch ( CarbonDataWriterException e ) { throw new SliceMergerException ( "Problem in merging the slice" , e ) ; } }

Se utilizará por debajo del método para agregar una fila ordenada


public < T > T  recall ( String pathName , Class < T > type )  throws IOException  { return recall ( new Path ( pathName ) , type ) ; }

Recupera el objeto almacenado en el nombre de la ruta dado en HDFS.


public void addException  ( Access node ) { List < Access > list = ( parent == null || state == null ) ? getExceptionListNoTransform ( ) : getExceptionList ( ) ; list . addChild ( node ) ; }

Anexar un elemento a la lista de excepciones.


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

NOTA: Es dependiente de la plataforma, cree una nueva cadena, debe ser verificada.java.lang.string maplibraryname (java.lang.string);


private void siftUp  ( Item item ) { Item parent = getParent ( item ) ; while ( item . idx > 0 && parent . position . compareTo ( item . position ) > 0 ) { swap ( item , parent ) ; parent = getParent ( item ) ; } }

Empuje el artículo hacia la raíz del árbol (posición de lectura más baja)


public boolean equivTo  ( Object c ) { if ( sourcename instanceof Value ) return ( c instanceof AbstractDataSource && ( ( Value ) sourcename ) . equivTo ( ( ( AbstractDataSource ) c ) . sourcename ) ) ; return ( c instanceof AbstractDataSource && ( ( AbstractDataSource ) c ) . sourcename . equals ( sourcename ) ) ; }

Devuelve VERDADERO si este objeto es estructuralmente equivalente a c.ResumenDataSources son iguales y equivalentes si su SourceName es el mismo


public XSCMLeaf ( int type , Object leaf , int id , int position ) { super ( type ) ; fLeaf = leaf ; fParticleId = id ; fPosition = position ; }

Construye una hoja de modelo de contenido.


public void addFiles  ( String fileUris , String group , Host host ) { ParamValidationUtil . validateParamNotNull ( fileUris , "fileUris" ) ; ParamValidationUtil . validateParamNotNull ( group , "group" ) ; Host cleanHost = UtilMethods . isSet ( host ) ? host : HostTools . getCurrentHost ( request ) ; for ( String fileUri : StringListUtil . getCleanStringList ( fileUris ) ) { FileAsset fileAsset = FileTools . getFileAssetByURI ( fileUri , cleanHost , isLiveMode ) ; if ( fileAsset != null ) { if ( ! fileMap . containsKey ( group ) ) { fileMap . put ( group , new LinkedHashSet < FileAsset > ( ) ) ; } fileMap . get ( group ) . add ( fileAsset ) ; } } }

Agrega los URI dados al grupo dado usando el host DOTCMS dado como el anfitrión que los URIS deben ser buscados


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set labelColor=" ) ; Color color = null ; if ( np . peekMatchIgnoreCase ( "null" ) ) np . matchIgnoreCase ( "null" ) ; else color = np . getColor ( ) ; np . matchIgnoreCase ( ";" ) ; if ( getViewer ( ) instanceof GraphView ) { boolean changed = false ; GraphView viewer = ( GraphView ) getViewer ( ) ; for ( Node v : viewer . getSelectedNodes ( ) ) { if ( viewer . isLabelVisible ( v ) ) { viewer . setLabelColor ( v , color ) ; changed = true ; } } for ( Edge edge : viewer . getSelectedEdges ( ) ) { if ( viewer . isLabelVisible ( edge ) ) { viewer . setLabelColor ( edge , color ) ; changed = true ; } } if ( changed ) { viewer . repaint ( ) ; } } }


public static void testValidity  ( Object o ) throws JSONException  { if ( o != null ) { if ( o instanceof Double ) { if ( ( ( Double ) o ) . isInfinite ( ) || ( ( Double ) o ) . isNaN ( ) ) { throw new JSONException ( "JSON does not allow non-finite numbers." ) ; } } else if ( o instanceof Float ) { if ( ( ( Float ) o ) . isInfinite ( ) || ( ( Float ) o ) . isNaN ( ) ) { throw new JSONException ( "JSON does not allow non-finite numbers." ) ; } } } }

Lanzar una excepción si el objeto es un número NAN o Infinite.


public MessagesGetHistoryQuery ( VkApiClient client , Actor actor ) { super ( client , "messages.getHistory" , GetHistoryResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public void addFooter  ( @ LayoutRes int layoutId , Object data ) { int absoluteFootersCount = getAbsoluteFootersCount ( ) ; if ( absoluteFootersCount > 0 ) { int position = getItemCount ( ) <= absoluteFootersCount ? 0 : getItemCount ( ) - absoluteFootersCount ; mInserts . add ( position , new Insertion ( layoutId , data , Insertion . TYPE_FOOTER ) ) ; getItems ( ) . add ( position , null ) ; mFootersCount += 1 ; } else { mInserts . add ( new Insertion ( layoutId , data , Insertion . TYPE_FOOTER ) ) ; getItems ( ) . add ( null ) ; mFootersCount += 1 ; } notifyIfNeed ( ) ; }

Agregue el pie de página después de todos los artículos y antes de Type_Absolute_Footer


@ Override public void apply  ( NexusStreamParser np ) throws Exception { final Director dir = getDir ( ) ; final MainViewer viewer = dir . getMainViewer ( ) ; final Document doc = dir . getDocument ( ) ; if ( ! ProgramProperties . isUseGUI ( ) || doc . neverOpenedReads ) { doc . neverOpenedReads = false ; np . matchIgnoreCase ( "import blastFile=" ) ; LinkedList < String > blastFiles = new LinkedList < > ( ) ; while ( true ) { boolean comma = false ; String name = np . getAbsoluteFileName ( ) ; if ( name . endsWith ( "," ) ) { name = name . substring ( 0 , name . length ( ) - 1 ) ; comma = true ; } blastFiles . add ( name ) ; if ( ! comma && np . peekMatchIgnoreCase ( "," ) ) { np . matchIgnoreCase ( "," ) ; comma = true ; } if ( ! comma && np . peekMatchAnyTokenIgnoreCase ( "fastaFile readFile meganFile ;" ) ) break ; } LinkedList < String > readsFiles = new LinkedList < > ( ) ; if ( np . peekMatchAnyTokenIgnoreCase ( "fastaFile readFile" ) ) { np . matchAnyTokenIgnoreCase ( "fastaFile readFile" ) ; np . matchIgnoreCase ( "=" ) ; while ( true ) { boolean comma = false ; String name = np . getAbsoluteFileName ( ) ; if ( name . endsWith ( "," ) ) { name = name . substring ( 0 , name . length ( ) - 1 ) ; comma = true ; } readsFiles . add ( name ) ; if ( ! comma && np . peekMatchIgnoreCase ( "," ) ) { np . matchIgnoreCase ( "," ) ; comma = true ; } if ( ! comma && np . peekMatchAnyTokenIgnoreCase ( "meganFile ;" ) ) break ; } } np . matchIgnoreCase ( "meganFile=" ) ; final String meganFileName = np . getAbsoluteFileName ( ) ; boolean useCompression = true ; if ( np . peekMatchIgnoreCase ( "useCompression" ) ) { np . matchIgnoreCase ( "useCompression=" ) ; useCompression = np . getBoolean ( ) ; } np . matchIgnoreCase ( "format=" ) ; final BlastFileFormat format = BlastFileFormat . valueOfIgnoringCase ( np . getWordMatchesIgnoringCase ( Basic . toString ( BlastFileFormat . valuesExceptUnknown ( ) , " " ) ) ) ; np . matchIgnoreCase ( "mode=" ) ; doc . setBlastMode ( BlastMode . valueOfIgnoringCase ( np . getWordMatchesIgnoringCase ( Basic . toString ( BlastMode . valuesExceptUnknown ( ) , " " ) ) ) ) ; int maxMatchesPerRead = 25 ; if ( np . peekMatchIgnoreCase ( "maxMatches" ) ) { np . matchIgnoreCase ( "maxMatches=" ) ; maxMatchesPerRead = np . getInt ( 0 , Integer . MAX_VALUE ) ; } if ( np . peekMatchIgnoreCase ( "minScore" ) ) { np . matchIgnoreCase ( "minScore=" ) ; doc . setMinScore ( ( float ) np . getDouble ( 0 , Float . MAX_VALUE ) ) ; } if ( np . peekMatchIgnoreCase ( "maxExpected" ) ) { np . matchIgnoreCase ( "maxExpected=" ) ; doc . setMaxExpected ( ( float ) np . getDouble ( 0 , Float . MAX_VALUE ) ) ; } if ( np . peekMatchIgnoreCase ( "minPercentIdentity" ) ) { np . matchIgnoreCase ( "minPercentIdentity=" ) ; doc . setMinPercentIdentity ( ( float ) np . getDouble ( 0 , Float . MAX_VALUE ) ) ; } if ( np . peekMatchIgnoreCase ( "topPercent" ) ) { np . matchIgnoreCase ( "topPercent=" ) ; doc . setTopPercent ( ( float ) np . getDouble ( 0 , 100 ) ) ; } if ( np . peekMatchIgnoreCase ( "minSupportPercent" ) ) { np . matchIgnoreCase ( "minSupportPercent=" ) ; doc . setMinSupportPercent ( ( float ) np . getDouble ( 0 , 100 ) ) ; } else doc . setMinSupportPercent ( 0 ) ; if ( np . peekMatchIgnoreCase ( "minSupport" ) ) { np . matchIgnoreCase ( "minSupport=" ) ; doc . setMinSupport ( np . getInt ( 1 , Integer . MAX_VALUE ) ) ; } else doc . setMinScore ( 1 ) ; if ( np . peekMatchIgnoreCase ( "weightedLCA" ) ) { np . matchIgnoreCase ( "weightedLCA=" ) ; getDoc ( ) . setWeightedLCA ( np . getBoolean ( ) ) ; ProgramProperties . put ( "weightedLCA" , doc . isWeightedLCA ( ) ) ; } if ( np . peekMatchIgnoreCase ( "weightedLCAPercent" ) ) { np . matchIgnoreCase ( "weightedLCAPercent=" ) ; getDoc ( ) . setWeightedLCAPercent ( ( float ) np . getDouble ( 1 , 100 ) ) ; ProgramProperties . put ( "weightedLCAPercent" , doc . getWeightedLCAPercent ( ) ) ; } if ( np . peekMatchIgnoreCase ( "minComplexity" ) ) { np . matchIgnoreCase ( "minComplexity=" ) ; doc . setMinComplexity ( ( float ) np . getDouble ( - 1.0 , 1.0 ) ) ; } if ( np . peekMatchIgnoreCase ( "useIdentityFilter" ) ) { np . matchIgnoreCase ( "useIdentityFilter=" ) ; getDoc ( ) . setUseIdentityFilter ( np . getBoolean ( ) ) ; } Collection < String > known = ClassificationManager . getAllSupportedClassifications ( ) ; if ( np . peekMatchIgnoreCase ( "fNames=" ) ) { doc . getActiveViewers ( ) . clear ( ) ; np . matchIgnoreCase ( "fNames=" ) ; while ( ! np . peekMatchIgnoreCase ( ";" ) ) { String token = np . getWordRespectCase ( ) ; if ( ! known . contains ( token ) ) { np . pushBack ( ) ; break ; } doc . getActiveViewers ( ) . add ( token ) ; } doc . getActiveViewers ( ) . add ( Classification . Taxonomy ) ; } if ( np . peekMatchIgnoreCase ( "paired" ) ) { np . matchIgnoreCase ( "paired=" ) ; boolean paired = np . getBoolean ( ) ; doc . setPairedReads ( paired ) ; if ( paired ) { np . matchIgnoreCase ( "pairSuffixLength=" ) ; doc . setPairedReadSuffixLength ( np . getInt ( 0 , 10 ) ) ; System . err . println ( "Assuming paired-reads distinguishing suffix has length: " + doc . getPairedReadSuffixLength ( ) ) ; } } boolean hasMagnitudes = false ; if ( np . peekMatchIgnoreCase ( "hasMagnitudes" ) ) { np . matchIgnoreCase ( "hasMagnitudes=" ) ; hasMagnitudes = np . getBoolean ( ) ; ReadMagnitudeParser . setEnabled ( hasMagnitudes ) ; ProgramProperties . put ( "allow-read-weights" , hasMagnitudes ) ; } String description = null ; if ( np . peekMatchIgnoreCase ( "description" ) ) { np . matchIgnoreCase ( "description=" ) ; description = np . getWordFileNamePunctuation ( ) . trim ( ) ; } np . matchIgnoreCase ( ";" ) ; ReadMagnitudeParser . setUnderScoreEnabled ( ProgramProperties . get ( "allow-read-weights-underscore" , false ) ) ; if ( meganFileName == null ) throw new IOException ( "Must specify MEGAN file" ) ; if ( format == null ) throw new IOException ( "Failed to determine file format" ) ; File meganFile = new File ( meganFileName ) ; if ( meganFile . exists ( ) ) { if ( meganFile . delete ( ) ) System . err . println ( "Deleting existing file: " + meganFile . getPath ( ) ) ; } final String [ ] blastFileNames = blastFiles . toArray ( new String [ blastFiles . size ( ) ] ) ; final String [ ] readFileNames = readsFiles . toArray ( new String [ readsFiles . size ( ) ] ) ; doc . getMeganFile ( ) . setFile ( meganFileName , MeganFile . Type . RMA6_FILE ) ; RMA6FromBlastCreator rma6Creator = new RMA6FromBlastCreator ( ProgramProperties . getProgramName ( ) , format , doc . getBlastMode ( ) , blastFileNames , readFileNames , doc . getMeganFile ( ) . getFileName ( ) , useCompression , doc , maxMatchesPerRead , hasMagnitudes ) ; rma6Creator . parseFiles ( doc . getProgressListener ( ) ) ; doc . loadMeganFile ( ) ; if ( description != null && description . length ( ) > 0 ) { description = description . replaceAll ( "^ +| +$|( )+" , "$1" ) ; final String sampleName = Basic . replaceFileSuffix ( Basic . getFileNameWithoutPath ( doc . getMeganFile ( ) . getFileName ( ) ) , "" ) ; doc . getSampleAttributeTable ( ) . put ( sampleName , SampleAttributeTable . DescriptionAttribute , description ) ; } MeganProperties . addRecentFile ( meganFileName ) ; if ( doc . getNumberOfReads ( ) == 0 ) NotificationsInSwing . showWarning ( getViewer ( ) . getFrame ( ) , "No reads found" ) ; if ( dir . getViewerByClass ( InspectorWindow . class ) != null ) ( ( InspectorWindow ) dir . getViewerByClass ( InspectorWindow . class ) ) . clear ( ) ; viewer . setCollapsedIds ( TaxonomyData . getTree ( ) . getAllAtLevel ( 3 ) ) ; viewer . setDoReset ( true ) ; viewer . setDoReInduce ( true ) ; ProgramProperties . put ( MeganProperties . DEFAULT_PROPERTIES , doc . getParameterString ( ) ) ; } else { final Director newDir = Director . newProject ( ) ; newDir . getMainViewer ( ) . getFrame ( ) . setVisible ( true ) ; newDir . getMainViewer ( ) . setDoReInduce ( true ) ; newDir . getMainViewer ( ) . setDoReset ( true ) ; newDir . execute ( np . getQuotedTokensRespectCase ( null , ";" ) + ";" , newDir . getMainViewer ( ) . getCommandManager ( ) ) ; } }


public static StorableTimeFence inWednesdayInterval  ( TimeZone timeZone , long startTimeOfDayMillis , long stopTimeOfDayMillis ) { return new StorableTimeFence ( WEDNESDAY , timeZone , startTimeOfDayMillis , stopTimeOfDayMillis ) ; }

Crea una cerca de tiempo almacenable que será válida el miércoles en el marco de tiempo diario dado.


private List < ProcessChange > updateControlTagInformation  ( final ConfigurationElement element , final Equipment equipment ) { List < ProcessChange > changes = new ArrayList < ProcessChange > ( 3 ) ; Long processId = equipment . getProcessId ( ) ; Long equipmentId = equipment . getId ( ) ; if ( equipment . getAliveTagId ( ) != null ) { ControlTag aliveTagCopy = controlCache . getCopy ( equipment . getAliveTagId ( ) ) ; if ( aliveTagCopy != null ) { setEquipmentId ( ( ControlTagCacheObject ) aliveTagCopy , equipmentId , processId ) ; if ( aliveTagCopy . getAddress ( ) != null ) { IChange toAdd = new DataTagAdd ( element . getSequenceId ( ) , equipmentId , controlTagFacade . generateSourceDataTag ( aliveTagCopy ) ) ; ConfigurationElementReport report = new ConfigurationElementReport ( Action . CREATE , Entity . CONTROLTAG , aliveTagCopy . getId ( ) ) ; ProcessChange change = new ProcessChange ( processId , toAdd ) ; change . setNestedSubReport ( report ) ; changes . add ( change ) ; } } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No Alive tag (%s) found for equipment #%d (%s)." , equipment . getAliveTagId ( ) , equipment . getId ( ) , equipment . getName ( ) ) ) ; } } ControlTag commFaultTagCopy = controlCache . getCopy ( equipment . getCommFaultTagId ( ) ) ; if ( commFaultTagCopy != null ) { setEquipmentId ( ( ControlTagCacheObject ) commFaultTagCopy , equipmentId , processId ) ; } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No CommFault tag (%s) found for equipment #%d (%s)." , equipment . getCommFaultTagId ( ) , equipment . getId ( ) , equipment . getName ( ) ) ) ; } ControlTag statusTagCopy = controlCache . getCopy ( equipment . getStateTagId ( ) ) ; if ( statusTagCopy != null ) { setEquipmentId ( ( ControlTagCacheObject ) statusTagCopy , equipmentId , processId ) ; } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No Status tag (%s) found for equipment #%d (%s)." , equipment . getStateTagId ( ) , equipment . getId ( ) , equipment . getName ( ) ) ) ; } return changes ; }

Asegura que las etiquetas vivas, de estado y comunidad tengan adecuadamente el conjunto de identificación del equipo.


public static boolean isHighSurrogate  ( int c ) { return ( 0xD800 <= c && c <= 0xDBFF ) ; }

Devuelve si el personaje dado es un alto sustituto.


public static final Object [ ] resize  ( Object [ ] a , int size ) { if ( a . length >= size ) return a ; Object [ ] b = new Object [ size ] ; System . arraycopy ( a , 0 , b , 0 , a . length ) ; return b ; }

Cambie el tamaño de la matriz dada según sea necesario para cumplir con un tamaño objetivo.


private static Unit insertGotoAfter  ( Chain < Unit > unitChain , Unit node , Unit target ) { Unit newGoto = Jimple . v ( ) . newGotoStmt ( target ) ; unitChain . insertAfter ( newGoto , node ) ; return newGoto ; }

Inserta un jimple <código> goto </ codigo> a <Code> Destino, directamente después de <código> Nodo </ código> en el <código> sinitchain </ code>. <br> A medida que usamos <código> jgoto </ Código> La cadena debe contener Jimple-STMTS.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Silence_ME_TO_SELF  ( String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200283 , skillname ) ; }

Se sintió silenciado después de usar [% de habilidad].


private String readMemberBasedOnNoDictionaryVal  ( DimColumnResolvedFilterInfo dimColumnEvaluatorInfo , VariableLengthDimensionDataChunk dimensionColumnDataChunk , int index ) { byte [ ] noDictionaryVals ; if ( null != dimensionColumnDataChunk . getAttributes ( ) . getInvertedIndexesReverse ( ) ) { noDictionaryVals = dimensionColumnDataChunk . getCompleteDataChunk ( ) . get ( dimensionColumnDataChunk . getAttributes ( ) . getInvertedIndexesReverse ( ) [ index ] ) ; } else { noDictionaryVals = dimensionColumnDataChunk . getCompleteDataChunk ( ) . get ( index ) ; } return new String ( noDictionaryVals , Charset . forName ( CarbonCommonConstants . DEFAULT_CHARSET ) ) ; }

Leyendo los bloques para que no hay datos de Diccionario, en ningún caso directamente, directamente, los datos del filtro leerán, sin necesidad de escanear el diccionario o leer el valor del diccionario.


public double searchDurInCartTree  ( HTSModel m , FeatureVector fv , HMMData htsData , double diffdur ) { return searchDurInCartTree ( m , fv , htsData , false , false , diffdur ) ; }

Búsquedas FV en el carro de Durtree [] Conjunto de árboles, por estado y llenan la información en el HTSMODEL M.


protected boolean isEnabledForAddedResources  ( ) { return false ; }

Los recursos agregados no tienen ningún detalle para comparar contra TODO si la adición se debe a una copia, se debe permitir que se debe permitir (requiere alguna forma de obtener el recurso remoto de la ubicación original)


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

Realiza una evaluación optimizada de los documentos en DIG, dado, dado un documento y un nombre de clase de comparación, así como un conjunto de parámetros de evaluación.


protected void undeferChildren  ( Node node ) { Node top = node ; while ( null != node ) { if ( ( ( NodeImpl ) node ) . needsSyncData ( ) ) { ( ( NodeImpl ) node ) . synchronizeData ( ) ; } NamedNodeMap attributes = node . getAttributes ( ) ; if ( attributes != null ) { int length = attributes . getLength ( ) ; for ( int i = 0 ; i < length ; ++ i ) { undeferChildren ( attributes . item ( i ) ) ; } } Node nextNode = null ; nextNode = node . getFirstChild ( ) ; while ( null == nextNode ) { if ( top . equals ( node ) ) break ; nextNode = node . getNextSibling ( ) ; if ( null == nextNode ) { node = node . getParentNode ( ) ; if ( ( null == node ) || ( top . equals ( node ) ) ) { nextNode = null ; break ; } } } node = nextNode ; } }

Atraviesa el árbol DOM y expande los nodos diferidos y sus hijos.


public PlacesCheckinQuery friendsOnly  ( Boolean value ) { return unsafeParam ( "friends_only" , value ) ; }

Heck-in estará disponible solo para amigos.


public MonsterToQuestCursor queryMonsterToQuestMonster  ( long id ) { QueryHelper qh = new QueryHelper ( ) ; qh . Distinct = true ; qh . Table = S . TABLE_MONSTER_TO_QUEST ; qh . Columns = null ; qh . Selection = "mtq." + S . COLUMN_MONSTER_TO_QUEST_MONSTER_ID + " = ? " ; qh . SelectionArgs = new String [ ] { "" + id } ; qh . GroupBy = null ; qh . Having = null ; qh . OrderBy = "CASE q." + S . COLUMN_QUESTS_HUB + " WHEN 'Village' THEN 0 WHEN 'Guild' THEN 1 WHEN 'Permit' THEN 2 ELSE (3||q." + S . COLUMN_QUESTS_HUB + ") END, " + "q." + S . COLUMN_QUESTS_STARS + " ASC" ; qh . Limit = null ; return new MonsterToQuestCursor ( wrapJoinHelper ( builderMonsterToQuest ( qh . Distinct ) , qh ) ) ; }

****************************** Monstruo a las consultas de misiones


public static float handle  ( float digSpeed , World world , IBlockState state , BlockPos pos ) { DigSpeed event = new DigSpeed ( digSpeed , world , state , pos ) ; return ! OpenModLoader . getEventBus ( ) . post ( event ) || event . getDigSpeed ( ) < 0.0F ? 0.0F : event . getDigSpeed ( ) ; }

Hoja para hacer parches relacionados mucho más limpios.


private static void doCopyDirectory  ( File srcDir , File destDir , FileFilter filter , boolean preserveFileDate , List < String > exclusionList ) throws IOException { File [ ] srcFiles = filter == null ? srcDir . listFiles ( ) : srcDir . listFiles ( filter ) ; if ( srcFiles == null ) { throw new IOException ( "Failed to list contents of " + srcDir ) ; } if ( destDir . exists ( ) ) { if ( destDir . isDirectory ( ) == false ) { throw new IOException ( "Destination '" + destDir + "' exists but is not a directory" ) ; } } else { if ( ! destDir . mkdirs ( ) && ! destDir . isDirectory ( ) ) { throw new IOException ( "Destination '" + destDir + "' directory cannot be created" ) ; } } if ( destDir . canWrite ( ) == false ) { throw new IOException ( "Destination '" + destDir + "' cannot be written to" ) ; } for ( File srcFile : srcFiles ) { File dstFile = new File ( destDir , srcFile . getName ( ) ) ; if ( exclusionList == null || ! exclusionList . contains ( srcFile . getCanonicalPath ( ) ) ) { if ( srcFile . isDirectory ( ) ) { doCopyDirectory ( srcFile , dstFile , filter , preserveFileDate , exclusionList ) ; } else { doCopyFile ( srcFile , dstFile , preserveFileDate ) ; } } } if ( preserveFileDate ) { destDir . setLastModified ( srcDir . lastModified ( ) ) ; } }


public static R1Interval fromPointPair  ( double p1 , double p2 ) { if ( p1 <= p2 ) { return new R1Interval ( p1 , p2 ) ; } else { return new R1Interval ( p2 , p1 ) ; } }

Método de conveniencia para construir el intervalo mínimo que contiene los dos puntos dados.Esto es equivalente a comenzar con un intervalo vacío y llamar a Agregar punto () dos veces, pero es más eficiente.


public void addDoubleOpt  ( String key , String val ) { addSingleOpt ( key ) ; addSingleOpt ( val ) ; }


@ RequestMapping ( value = "/" , method = POST , produces = APPLICATION_JSON_VALUE ) public ResponseEntity < RoleDTO > create  ( @ RequestBody RoleDTO roleDTO ) throws URISyntaxException { log . debug ( "Create RoleDTO : {}" , roleDTO ) ; if ( roleDTO . isIdSet ( ) ) { return ResponseEntity . badRequest ( ) . header ( "Failure" , "Cannot create Role with existing ID" ) . body ( null ) ; } RoleDTO result = roleDTOService . save ( roleDTO ) ; return ResponseEntity . created ( new URI ( "/api/roles/" + result . id ) ) . body ( result ) ; }


@ Override public void onStreamReceived  ( Session session , Stream stream ) { if ( mSubscriber == null ) { startSubscribing ( stream ) ; sendEvent ( Events . EVENT_SUBSCRIBE_START , Arguments . createMap ( ) ) ; } }


@ Nullable public StringLiteral findChildReferenceToTarget  ( final FuncallExpression targetRule ) { final StringLiteral [ ] child = new StringLiteral [ 1 ] ; Processor < StringLiteral > processor = null ; PsiUtils . processChildrenOfType ( this , processor , StringLiteral . class ) ; return child [ 0 ] ; }

Busca a todos los niños de Stringliteral de este elemento, para uno que hace referencia a la expresión objetivo deseada.


private void zzDoEOF  ( ) throws java . io . IOException { if ( ! zzEOFDone ) { zzEOFDone = true ; yyclose ( ) ; } }

Contiene el código EOF del usuario, que se ejecutará exactamente una vez, cuando se alcance el final del archivo


private static void bitReversalShuffle2  ( double [ ] a , double [ ] b ) { final int n = a . length ; assert b . length == n ; final int halfOfN = n >> 1 ; int j = 0 ; for ( int i = 0 ; i < n ; i ++ ) { if ( i < j ) { double temp = a [ i ] ; a [ i ] = a [ j ] ; a [ j ] = temp ; temp = b [ i ] ; b [ i ] = b [ j ] ; b [ j ] = temp ; } int k = halfOfN ; while ( k <= j && k > 0 ) { j -= k ; k >>= 1 ; } j += k ; } }

Realiza los barajos de reversión de bits de índice idénticos en dos matrices de tamaño idéntico.Cada elemento en la matriz se cambia con otro elemento basado en la reversión de bits del índice.Por ejemplo, en una matriz con longitud 16, el elemento en el índice binario 0011 (decimal 3) se intercambiaría con el elemento en el índice binario 1100 (decimal 12).


public LibraryObject ( String title , String subtitle , String uri ) { this . title = title ; this . subtitle = subtitle ; this . uri = uri ; }


public void updateEnableStateSwingItems  ( ) { if ( SwingUtilities . isEventDispatchThread ( ) ) super . updateEnableState ( ) ; }

Actualice el estado de habilitación para solo los elementos del menú Swing


@ Override public void endElement  ( QName element , Augmentations augs ) throws XNIException { }


@ Override public void addRelations  ( Task task , Iterable < ObjectId > projectIds , String fieldName ) { List < Project > newProjectList = new LinkedList < > ( ) ; Iterable < Project > projectsToAdd = projectRepository . findAll ( projectIds , null ) ; for ( Project project : projectsToAdd ) { newProjectList . add ( project ) ; } try { if ( PropertyUtils . getProperty ( task , fieldName ) != null ) { Iterable < Project > projects = ( Iterable < Project > ) PropertyUtils . getProperty ( task , fieldName ) ; for ( Project project : projects ) { newProjectList . add ( project ) ; } } } catch ( Exception e ) { throw new RuntimeException ( e ) ; } try { PropertyUtils . setProperty ( task , fieldName , newProjectList ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } taskRepository . save ( task ) ; }

Una aplicación simple del método de adjección que presenta el concepto general del método.No debe utilizarse en la producción debido a la posible condición de raza: el código de producción listo debe realizar una operación atómica.


private void reduceInstructions  ( ) { for ( int i = 0 ; i < this . insns . size ( ) - 1 ; i ++ ) { Insn curInsn = this . insns . get ( i ) ; if ( curInsn instanceof AddressInsn ) continue ; if ( ! curInsn . getOpcode ( ) . name . startsWith ( "move/" ) ) continue ; Insn nextInsn = null ; int nextIndex = - 1 ; for ( int j = i + 1 ; j < this . insns . size ( ) ; j ++ ) { Insn candidate = this . insns . get ( j ) ; if ( candidate instanceof AddressInsn ) continue ; nextInsn = candidate ; nextIndex = j ; break ; } if ( nextInsn == null || ! nextInsn . getOpcode ( ) . name . startsWith ( "move/" ) ) continue ; if ( nextIndex == this . insns . size ( ) - 1 ) continue ; Register firstTarget = curInsn . getRegs ( ) . get ( 0 ) ; Register firstSource = curInsn . getRegs ( ) . get ( 1 ) ; Register secondTarget = nextInsn . getRegs ( ) . get ( 0 ) ; Register secondSource = nextInsn . getRegs ( ) . get ( 1 ) ; if ( firstTarget . equals ( secondSource ) && secondTarget . equals ( firstSource ) ) { Stmt origStmt = insnStmtMap . get ( nextInsn ) ; if ( origStmt == null || ! isJumpTarget ( origStmt ) ) { Insn nextStmt = this . insns . get ( nextIndex + 1 ) ; insns . remove ( nextIndex ) ; if ( origStmt != null ) { insnStmtMap . remove ( nextInsn ) ; insnStmtMap . put ( nextStmt , origStmt ) ; } } } } }

Reduce la lista de instrucciones eliminando pares de instrucciones innecesarias, como Move V0 V1;Mover V1 V0;


@ Override public void requestUser  ( ) { view . initRefreshStart ( ) ; listener = new OnRequestUserProfileListener ( ) ; model . getService ( ) . requestUserProfile ( model . getUser ( ) . username , listener ) ; }


public MessagesSendQuery message  ( String value ) { return unsafeParam ( "message" , value ) ; }

Texto del mensaje.Se requiere si los "archivos adjuntos" no están configurados.


long freeSpaceWindows  ( String path , long timeout ) throws IOException { path = FilenameUtils . normalize ( path , false ) ; if ( path . length ( ) > 0 && path . charAt ( 0 ) != '"' ) { path = "\"" + path + "\"" ; } String [ ] cmdAttribs = new String [ ] { "cmd.exe" , "/C" , "dir /a /-c " + path } ; List < String > lines = performCommand ( cmdAttribs , Integer . MAX_VALUE , timeout ) ; for ( int i = lines . size ( ) - 1 ; i >= 0 ; i -- ) { String line = lines . get ( i ) ; if ( line . length ( ) > 0 ) { return parseDir ( line , path ) ; } } throw new IOException ( "Command line 'dir /-c' did not return any info " + "for path '" + path + "'" ) ; }

Encuentre espacio libre en la plataforma Windows con el comando 'dir'.


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


@ Override public String asFieldName  ( ) { return fldName ; }

Desvela el nombre del campo y lo devuelve.


public void addVariableDecl  ( VariableDecl node ) { List < VariableDecl > list = ( parent == null || state == null ) ? getVariableDeclListNoTransform ( ) : getVariableDeclList ( ) ; list . addChild ( node ) ; }

Anexar un elemento a la lista VariodleCl.


private static Map < String , Object > createBillingAccountFromReturn  ( GenericValue returnHeader , List < GenericValue > returnItems , DispatchContext dctx , Map < String , ? extends Object > context ) { LocalDispatcher dispatcher = dctx . getDispatcher ( ) ; GenericValue userLogin = ( GenericValue ) context . get ( "userLogin" ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; try { List < GenericValue > orders = EntityUtil . getRelated ( "OrderHeader" , null , returnItems , false ) ; List < GenericValue > productStores = EntityUtil . getRelated ( "ProductStore" , null , orders , false ) ; Long storeCreditValidDays = null ; for ( GenericValue productStore : productStores ) { Long thisStoreValidDays = productStore . getLong ( "storeCreditValidDays" ) ; if ( thisStoreValidDays == null ) continue ; if ( storeCreditValidDays == null ) { storeCreditValidDays = thisStoreValidDays ; } else if ( thisStoreValidDays . compareTo ( storeCreditValidDays ) < 0 ) { storeCreditValidDays = thisStoreValidDays ; } } Timestamp thruDate = null ; if ( storeCreditValidDays != null ) thruDate = UtilDateTime . getDayEnd ( UtilDateTime . nowTimestamp ( ) , storeCreditValidDays ) ; Map < String , Object > input = UtilMisc . < String , Object > toMap ( "accountLimit" , BigDecimal . ZERO , "description" , "Credit Account for Return #" + returnHeader . get ( "returnId" ) , "userLogin" , userLogin ) ; input . put ( "accountCurrencyUomId" , returnHeader . get ( "currencyUomId" ) ) ; input . put ( "thruDate" , thruDate ) ; Map < String , Object > results = dispatcher . runSync ( "createBillingAccount" , input ) ; if ( ServiceUtil . isError ( results ) ) return results ; String billingAccountId = ( String ) results . get ( "billingAccountId" ) ; input = UtilMisc . toMap ( "billingAccountId" , billingAccountId , "partyId" , returnHeader . get ( "fromPartyId" ) , "roleTypeId" , "BILL_TO_CUSTOMER" , "userLogin" , userLogin ) ; Map < String , Object > roleResults = dispatcher . runSync ( "createBillingAccountRole" , input ) ; if ( ServiceUtil . isError ( roleResults ) ) { Debug . logError ( "Error with createBillingAccountRole: " + roleResults . get ( ModelService . ERROR_MESSAGE ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "OrderErrorWithCreateBillingAccountRole" , locale ) + roleResults . get ( ModelService . ERROR_MESSAGE ) ) ; } return results ; } catch ( GenericEntityException e ) { Debug . logError ( e , "Entity error when creating BillingAccount: " + e . getMessage ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "OrderProblemsCreatingBillingAccount" , locale ) ) ; } catch ( GenericServiceException e ) { Debug . logError ( e , "Service error when creating BillingAccount: " + e . getMessage ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "OrderProblemsCreatingBillingAccount" , locale ) ) ; } }

Método de ayuda para generar un BillingAccount (crédito de la tienda) de un encabezado de retorno.Este método cuida toda la lógica empresarial relacionada con la inicialización de una cuenta de facturación de los datos de retorno.El BillingAccount.Trudate se establecerá en (ahora + ProductStore.StoreReditValiddays + Fin del día).Las tiendas de productos se obtienen a través de las órdenes de devolución, y se utilizarán los storeCreditvaliddays mínimos.El valor predeterminado es establecer a Twudate a NULL, lo que implica no vencimiento.Tenga en cuenta que establecemos billingaccount.accountlimit a 0.0 para créditos de la tienda.Esto se debe a que el saldo disponible de BillingAccounts se calcula como Cuenta Limpia + suma de pagos: suma de facturas.


public boolean isBinaryObject  ( ) { return myObject instanceof BinaryObject ; }

Determine si este objeto es un objeto binario.


public RequestHandle put  ( Context context , String url , Header [ ] headers , HttpEntity entity , String contentType , ResponseHandlerInterface responseHandler ) { HttpEntityEnclosingRequestBase request = addEntityToRequestBase ( new HttpPut ( url ) , entity ) ; if ( headers != null ) request . setHeaders ( headers ) ; return sendRequest ( httpClient , httpContext , request , 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


@ RequestMapping ( value = { "/rest/v1/proxyui" } , method = RequestMethod . POST , consumes = MediaType . APPLICATION_JSON_VALUE , produces = MediaType . APPLICATION_JSON_VALUE ) @ ResponseStatus ( value = HttpStatus . OK ) public ModelAndView returnProxyDetails  ( @ RequestBody ProxyEntity proxyEntity ) throws DASTProxyException { if ( proxyEntity != null ) { if ( proxyEntity . getUser ( ) != null && proxyEntity . getUser ( ) . getUserId ( ) != null ) { if ( AppScanUtils . getLoggedInUser ( ) != null && AppScanUtils . getLoggedInUser ( ) . getUserId ( ) != null ) { if ( openProxyServers . containsKey ( AppScanUtils . getLoggedInUser ( ) . getUserId ( ) ) ) { proxyEntity = openProxyServers . get ( AppScanUtils . getLoggedInUser ( ) . getUserId ( ) ) ; proxyEntity . getProxy ( ) . setNewlyCreated ( false ) ; } else { final ProxyServer newProxyServerForUser = getBrowserMobServiceBean ( ) . setUpProxyAndStartRecordForUser ( AppScanUtils . getLoggedInUser ( ) . getUserId ( ) ) ; if ( AppScanUtils . isNotNull ( newProxyServerForUser ) ) { proxyEntity . setUser ( AppScanUtils . getLoggedInUser ( ) ) ; proxyEntity . setProxyServer ( newProxyServerForUser ) ; proxyEntity . setProxy ( new Proxy ( AppScanUtils . getIpAddress ( ) , newProxyServerForUser . getPort ( ) , true ) ) ; openProxyServers . put ( AppScanUtils . getLoggedInUser ( ) . getUserId ( ) , proxyEntity ) ; } else { LOGGER . error ( "Error in returnProxyDetails function. Browser Mob Service bean didn't send me a proxy server" ) ; } } } else { LOGGER . error ( "Error in returnProxyDetails function. There is no logged in user, even though a proxy entity has arrived claiming to be from a logged in user." ) ; } } else { if ( openProxyServers . containsKey ( proxyEntity . toString ( ) ) ) { final ProxyEntity proxyEntityForBluefinTestCase = openProxyServers . get ( proxyEntity . toString ( ) ) ; proxyEntity = proxyEntityForBluefinTestCase ; } else { if ( ! AppScanUtils . isNotNull ( proxyEntity . getProxyIdentifier ( ) ) ) { throw new DASTProxyException ( "Please provide a valid AppScan Test Identifier" ) ; } if ( ! AppScanUtils . isNotNull ( proxyEntity . getUser ( ) ) || ! AppScanUtils . isNotNull ( proxyEntity . getUser ( ) . getUserId ( ) ) ) { throw new DASTProxyException ( "Please provide a valid AppScan User Id" ) ; } final ProxyServer newProxyServerFoBluefinTestCase = getBrowserMobServiceBean ( ) . setUpProxyAndStartRecordForUser ( proxyEntity . getProxyIdentifier ( ) ) ; proxyEntity . setProxy ( new Proxy ( AppScanUtils . getIpAddress ( ) , newProxyServerFoBluefinTestCase . getPort ( ) , true ) ) ; proxyEntity . setProxyServer ( newProxyServerFoBluefinTestCase ) ; openProxyServers . put ( proxyEntity . toString ( ) , proxyEntity ) ; } } } else { LOGGER . error ( "Error in returnProxyDetails function. The 'ProxyEntity' sent is null. No way to track a proxy server." ) ; } return new ModelAndView ( view , AppScanConstants . JSON_RESPONSE_DATA_IDENTIFIER , proxyEntity ) ; }

Este punto final API devuelve los detalles de un proxy para una solicitud. Ahora hay dos condiciones aquí: 1. La solicitud viene desde la parte delantera de esta aplicación, la aplicación se ha diseñado de manera que un usuario debe iniciar sesión en la aplicación (Fase 2). Dado que habría un usuario único, el proxy le puede ser asignado a él. Por lo tanto, en un objeto de 'entidad proxy', el mapeo definitorio sería el objeto del usuario. 2. La solicitud viene de un caso de prueba de azul / brisa / selenio cuando finalmente hay soporte de integración de Bluefin / Breeze / Selenium, la solicitud entrará en los casos de prueba. En este caso, requerimos que Bluefin / Breeze / Selenium envíe en un objeto "entidad proxy" vacía con solo el valor 'Identificador de proxy'. En este caso, se creará un nuevo 'servidor proxy' y se devolverá. Por lo tanto, el identificador único para los servidores proxy individuales sería 'proxyAddress: proxyport: proxyidentifier' en ese formato. Por lo tanto, a menos que Bluefin / Breeze / Selenium envíe estos tres valores, no habría manera de rastrear un proxy abierto. ToDo tiene que eliminar los proxies abiertos y abandonados.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SignetBurst_A_TO_B  ( String skillcaster , int num0 , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201021 , skillcaster , num0 , skilltarget , skillname ) ; }

[% Skillcaster] infligido% de daño NUM0 en [% SkillTarget] usando [% de habilidad].


public static ValueGetterSpacePredicate < ServerEntry > propertyIn  ( String propertyName , Object ... values ) { return property ( propertyName , in ( values ) ) ; }

Atajo para la propiedad (propiedad name, en (valores)).


private void loadInstantUploadVideoPath  ( ) { SharedPreferences appPrefs = PreferenceManager . getDefaultSharedPreferences ( getApplicationContext ( ) ) ; mUploadVideoPath = appPrefs . getString ( "instant_video_upload_path" , getString ( R . string . instant_upload_path ) ) ; mPrefInstantVideoUploadPath . setSummary ( mUploadVideoPath ) ; }

Cargar Subir la ruta de video establecida en las preferencias


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

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


void addToSubroutine  ( final long id , final int nbSubroutines ) { if ( ( status & VISITED ) == 0 ) { status |= VISITED ; srcAndRefPositions = new int [ ( nbSubroutines - 1 ) / 32 + 1 ] ; } srcAndRefPositions [ ( int ) ( id >>> 32 ) ] |= ( int ) id ; }

Marca este bloque básico como perteneciente a la subrutina dada.


private static final UInteger [ ] mkValues  ( ) { int precacheSize = getPrecacheSize ( ) ; UInteger [ ] ret ; if ( precacheSize <= 0 ) return null ; ret = new UInteger [ precacheSize ] ; for ( int i = 0 ; i < precacheSize ; i ++ ) ret [ i ] = new UInteger ( i ) ; return ret ; }

Generar un valor en caché para los valores de enteros sin firmar iniciales.


private static String [ ] toSuffixes  ( String [ ] extensions ) { String [ ] suffixes = new String [ extensions . length ] ; for ( int i = 0 ; i < extensions . length ; i ++ ) { suffixes [ i ] = "." + extensions [ i ] ; } return suffixes ; }

Convierte una matriz de extensiones de archivo a los sufijos para su uso con IofileFilters.


public static String prepareInitiator  ( Exchange exchange , ActivitiEndpoint activitiEndpoint ) { String initiator = null ; if ( activitiEndpoint . isSetProcessInitiator ( ) ) { try { initiator = exchange . getIn ( ) . getHeader ( activitiEndpoint . getProcessInitiatorHeaderName ( ) , String . class ) ; } catch ( TypeConversionException e ) { throw new ActivitiException ( "Initiator header '" + activitiEndpoint . getProcessInitiatorHeaderName ( ) + "': Value must be of type String." , e ) ; } if ( StringUtils . isEmpty ( initiator ) ) { throw new ActivitiException ( "Initiator header '" + activitiEndpoint . getProcessInitiatorHeaderName ( ) + "': Value must be provided" ) ; } } return initiator ; }

Obtiene el valor del encabezado del camello que contiene el ID de usuario que se configurará como iniciador de proceso.Devuelve NULL si no se especificó ningún nombre en el encabezado en la ruta del camello.


public Session store  ( long expired ) { this . setExpired ( expired ) ; if ( ! Cache . set ( "session/" + sid , this ) ) { log . error ( "set session failed !" , new Exception ( "store session failed" ) ) ; } return this ; }


public void processAlignment  ( Alignment alignment ) { clear ( ) ; if ( alignment != null ) { LinkedList < Pair < Integer , Integer > > events = new LinkedList < > ( ) ; for ( int row = 0 ; row < alignment . getNumberOfSequences ( ) ; row ++ ) { Lane lane = alignment . getLane ( row ) ; Pair < Integer , Integer > startEvent = new Pair < > ( lane . getFirstNonGapPosition ( ) , - 1 ) ; events . add ( startEvent ) ; Pair < Integer , Integer > endEvent = new Pair < > ( lane . getLastNonGapPosition ( ) , 1 ) ; events . add ( endEvent ) ; } Pair < Integer , Integer > [ ] array = ( Pair < Integer , Integer > [ ] ) events . toArray ( new Pair [ events . size ( ) ] ) ; Arrays . sort ( array ) ; int lastStart = 0 ; int coverage = 0 ; for ( Pair < Integer , Integer > event : array ) { if ( event . getSecond ( ) == - 1 ) { if ( coverage == 0 ) { if ( event . getFirst ( ) - 1 >= 0 && lastStart != - 1 ) { origGapColumns . add ( new Pair < > ( lastStart , event . getFirst ( ) - 1 ) ) ; orig2jump . put ( lastStart , event . getFirst ( ) - lastStart ) ; lastStart = - 1 ; } } coverage ++ ; } else if ( event . getSecond ( ) == 1 ) { coverage -- ; if ( coverage == 0 ) lastStart = event . getFirst ( ) ; } } if ( lastStart != - 1 && lastStart < alignment . getLength ( ) ) { origGapColumns . add ( new Pair < > ( lastStart , alignment . getLength ( ) ) ) ; orig2jump . put ( lastStart , alignment . getLength ( ) - lastStart ) ; } originalColumns = alignment . getLength ( ) ; for ( Pair < Integer , Integer > col : origGapColumns ) { layout2jump . put ( col . getFirst ( ) - jumped , orig2jump . get ( col . getFirst ( ) ) ) ; jumped += orig2jump . get ( col . getFirst ( ) ) ; } } }

Columnas de brecha de cómputo para alineación


@ NotNull public File createProjectDir  ( @ NotNull String path ) { File dir = createDirectory ( myRootDir , path ) ; String msg = String . format ( "Directory '%s' should exist" , path ) ; Assert . assertTrue ( msg , dir . isDirectory ( ) ) ; return dir ; }


public void deactivate  ( ) { if ( ! inSelection ) { inSelection = true ; try { chartSelection . clearSelectionAttributes ( ) ; this . repaint ( ) ; } finally { inSelection = false ; } } }

Llame a esto cuando la lista que contiene la pestaña esté desactivada


public void addDetailsView  ( DetailsView detailsView , int location ) { DisplayArea displayArea = getDisplayArea ( location ) ; if ( displayArea != null ) { if ( "" . equals ( displayArea . getCaption ( ) ) ) displayArea . setCaption ( detailsView . getTab ( ) . getName ( ) ) ; displayArea . addTab ( detailsView . getTab ( ) ) ; revalidate ( ) ; repaint ( ) ; } }


public TShortObjectHashMap ( int initialCapacity , TShortHashingStrategy strategy ) { super ( initialCapacity , strategy ) ; }

Crea una nueva instancia de <code> tshortobjecthashashashashashashashashashashashashashShashShashShashShashShashShash MMAP </ CODE>.


public void removeWord  ( String sWord ) { removeWord ( sWord , RemoveSubStrings ) ; }

Elimina la palabra espada sin quitar las subcadenas.


@ deprecated public Object parseObject  ( String source , ParsePosition pos ) { return parse ( source , pos ) ; }


public boolean hasTag  ( String aName ) { return ( searchForTag ( aName ) != - 1 ) ; }

Mira si este host tiene una etiqueta llamada <code> aname </ code>


protected GenericDelegator ( String delegatorFullName ) throws GenericEntityException { this . setDelegatorNames ( delegatorFullName ) ; this . delegatorInfo = EntityConfig . getInstance ( ) . getDelegator ( delegatorBaseName ) ; String kekText ; if ( UtilValidate . isNotEmpty ( this . delegatorTenantId ) ) { Delegator baseDelegator = DelegatorFactory . getDelegator ( this . delegatorBaseName ) ; GenericValue tenant = EntityQuery . use ( baseDelegator ) . from ( "Tenant" ) . where ( "tenantId" , this . delegatorTenantId ) . cache ( true ) . queryOne ( ) ; if ( tenant == null ) { throw new GenericEntityException ( "No Tenant record found for delegator [" + this . delegatorFullName + "] with tenantId [" + this . delegatorTenantId + "]" ) ; } else if ( "Y" . equals ( tenant . getString ( "disabled" ) ) ) { throw new GenericEntityException ( "No Tenant record found for delegator [" + this . delegatorFullName + "] with tenantId [" + this . delegatorTenantId + "]" ) ; } GenericValue kekValue = EntityQuery . use ( baseDelegator ) . from ( "TenantKeyEncryptingKey" ) . where ( "tenantId" , getDelegatorTenantId ( ) ) . cache ( true ) . queryOne ( ) ; if ( kekValue != null ) { kekText = kekValue . getString ( "kekText" ) ; } else { kekText = this . delegatorInfo . getKeyEncryptingKey ( ) ; } } else { kekText = this . delegatorInfo . getKeyEncryptingKey ( ) ; } this . modelReader = ModelReader . getModelReader ( delegatorBaseName ) ; this . modelGroupReader = ModelGroupReader . getModelGroupReader ( delegatorBaseName ) ; cache = new Cache ( delegatorFullName ) ; List < String > warningList = new LinkedList < String > ( ) ; Debug . logInfo ( "Doing entity definition check..." , module ) ; ModelEntityChecker . checkEntities ( this , warningList ) ; if ( warningList . size ( ) > 0 ) { Debug . logWarning ( "=-=-=-=-= Found " + warningList . size ( ) + " warnings when checking the entity definitions:" , module ) ; for ( String warning : warningList ) { Debug . logWarning ( warning , module ) ; } } Set < String > groupNames = getModelGroupReader ( ) . getGroupNames ( delegatorBaseName ) ; List < Future < Void > > futures = new LinkedList < Future < Void > > ( ) ; for ( String groupName : groupNames ) { futures . add ( ExecutionPool . GLOBAL_BATCH . submit ( createHelperCallable ( groupName ) ) ) ; } ExecutionPool . getAllFutures ( futures ) ; this . crypto = new EntityCrypto ( this , kekText ) ; }

Solo permite la creación a través del método de fábrica.


public int scanLiteral  ( int quote , XMLString content ) throws IOException { if ( DEBUG_BUFFER ) { System . out . print ( "(scanLiteral, '" + ( char ) quote + "': " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } else if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { fCurrentEntity . ch [ 0 ] = fCurrentEntity . ch [ fCurrentEntity . count - 1 ] ; load ( 1 , false ) ; fCurrentEntity . position = 0 ; fCurrentEntity . startPosition = 0 ; } int offset = fCurrentEntity . position ; int c = fCurrentEntity . ch [ offset ] ; int newlines = 0 ; boolean external = fCurrentEntity . isExternal ( ) ; if ( c == '\n' || ( c == '\r' && external ) ) { if ( DEBUG_BUFFER ) { System . out . print ( "[newline, " + offset + ", " + fCurrentEntity . position + ": " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } do { c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( c == '\r' && external ) { newlines ++ ; fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count ) { offset = 0 ; fCurrentEntity . baseCharOffset += ( fCurrentEntity . position - fCurrentEntity . startPosition ) ; fCurrentEntity . position = newlines ; fCurrentEntity . startPosition = newlines ; if ( load ( newlines , false ) ) { break ; } } if ( fCurrentEntity . ch [ fCurrentEntity . position ] == '\n' ) { fCurrentEntity . position ++ ; offset ++ ; } else { newlines ++ ; } } else if ( c == '\n' ) { newlines ++ ; fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count ) { offset = 0 ; fCurrentEntity . baseCharOffset += ( fCurrentEntity . position - fCurrentEntity . startPosition ) ; fCurrentEntity . position = newlines ; fCurrentEntity . startPosition = newlines ; if ( load ( newlines , false ) ) { break ; } } } else { fCurrentEntity . position -- ; break ; } } while ( fCurrentEntity . position < fCurrentEntity . count - 1 ) ; for ( int i = offset ; i < fCurrentEntity . position ; i ++ ) { fCurrentEntity . ch [ i ] = '\n' ; } int length = fCurrentEntity . position - offset ; if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { content . setValues ( fCurrentEntity . ch , offset , length ) ; if ( DEBUG_BUFFER ) { System . out . print ( "]newline, " + offset + ", " + fCurrentEntity . position + ": " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } return - 1 ; } if ( DEBUG_BUFFER ) { System . out . print ( "]newline, " + offset + ", " + fCurrentEntity . position + ": " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } } while ( fCurrentEntity . position < fCurrentEntity . count ) { c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( ( c == quote && ( ! fCurrentEntity . literal || external ) ) || c == '%' || ! XMLChar . isContent ( c ) ) { fCurrentEntity . position -- ; break ; } } int length = fCurrentEntity . position - offset ; fCurrentEntity . columnNumber += length - newlines ; content . setValues ( fCurrentEntity . ch , offset , length ) ; if ( fCurrentEntity . position != fCurrentEntity . count ) { c = fCurrentEntity . ch [ fCurrentEntity . position ] ; if ( c == quote && fCurrentEntity . literal ) { c = - 1 ; } } else { c = - 1 ; } if ( DEBUG_BUFFER ) { System . out . print ( ")scanLiteral, '" + ( char ) quote + "': " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( " -> '" + ( char ) c + "'" ) ; } return c ; }

Escanea una gama de datos de valor de atributos, configurando los campos de la estructura XMLString, adecuadamente.<p /> <strong> Nota: </ strong> los personajes se consumen.<p /> <strong> Nota: </ strong> Este método no garantiza devolver la ejecución más larga de los datos del valor del atributo.Este método puede regresar antes del carácter de cotización debido a que llegue al final del búfer de entrada o cualquier otra razón.<p /> <strong> Nota: </ strong> Los campos contenidos en la estructura XMLString no están garantizados para permanecer válidos en las llamadas posteriores al escáner de la entidad.Por lo tanto, la persona que llama es responsable de utilizar de inmediato los datos de caracteres devueltos o hacer una copia de los datos de caracteres.


public boolean isBigEndian  ( ) { return bigEndian ; }

Indica si los datos de audio se almacenan en un orden de byte Big-Endian o Little-Endian.Si el tamaño de la muestra no es más de un byte, el valor de retorno es irrelevante.


@ Override public void stop  ( ) throws ContainerException  { this . pollTimer . shutdown ( ) ; Debug . logWarning ( "stop JavaMail poller" , module ) ; }


private void prepareBitmaps  ( ) { trigger . setEnabled ( false ) ; bitmapArray = new Bitmap [ apiList . size ( ) ] ; for ( int i = 0 ; i < bitmapArray . length ; i ++ ) { bitmapArray [ i ] = BitmapFactory . decodeByteArray ( apiList . get ( i ) . getImage ( ) , 0 , apiList . get ( i ) . getImage ( ) . length ) ; } slot1 . setImageBitmap ( bitmapArray [ new Random ( ) . nextInt ( bitmapArray . length - 1 ) ] ) ; slot2 . setImageBitmap ( bitmapArray [ new Random ( ) . nextInt ( bitmapArray . length - 1 ) ] ) ; slot3 . setImageBitmap ( bitmapArray [ new Random ( ) . nextInt ( bitmapArray . length - 1 ) ] ) ; showMessage ( "Slot machine ready" ) ; }

Asignación aleatoria de los logotipos de API a las tres ranuras.


public void add  ( String expr , StrokeAction f ) { Predicate p = ( Predicate ) ExpressionParser . parse ( expr ) ; super . add ( p , f ) ; }

Agregue una regla de mapeo a esta Strakeaction.VisualItems que coincidan con la expresión proporcionada, se le asignará el valor básico dado (asumiendo que no coinciden con una regla anterior).La cadena de expresión proporcionada se analizará para generar el predicado de la regla necesaria.


public static String contextualEncode  ( String s , Type t , boolean template ) { return _encode ( s , t , template , true ) ; }

Codifica contextualmente los caracteres de la cadena que son caracteres no ASCII o son caracteres ASCII que deben estar codificados porcentuales utilizando la codificación UTF-8.Los caracteres codificados porcentuales serán reconocidos y no se codificaron doble.


@ Override public byte [ ] asBytes  ( int rowNumber ) { return ByteBuffer . allocate ( 4 ) . putInt ( getInt ( rowNumber ) ) . array ( ) ; }

Devuelve los contenidos de la celda en Rownumber como un byte []


public void writeLong  ( long a ) throws IOException  { outs . write ( ( byte ) ( a >> 56 ) ) ; outs . write ( ( byte ) ( a >> 48 ) ) ; outs . write ( ( byte ) ( a >> 40 ) ) ; outs . write ( ( byte ) ( a >> 32 ) ) ; outs . write ( ( byte ) ( a >> 24 ) ) ; outs . write ( ( byte ) ( a >> 16 ) ) ; outs . write ( ( byte ) ( a >> 8 ) ) ; outs . write ( ( byte ) ( a ) ) ; position += 8 ; }


public void stop  ( ) { mBasoStatus = BasoStatus . ERROR ; toggleLayout ( ) ; }


public IntElemValPair ( String name , char kind , int val ) { super ( name , kind ) ; this . val = new IntegerCP ( val ) ; }

Nota: un ATTR de anotación está asociado con una clase <EM> Clase </ EM>, Método o campo, por lo que debe crear un nuevo VisibilityAnNotationAttr para


private boolean greaterThan  ( VersionData versionData ) { if ( versionData . majorNumber > this . majorNumber ) { return true ; } else if ( versionData . majorNumber == this . majorNumber ) { if ( versionData . minorNumber > this . minorNumber ) { return true ; } else if ( versionData . minorNumber == this . minorNumber ) { if ( versionData . pointNumber >= this . pointNumber ) { return true ; } } } return false ; }


@ After public void afterTest  ( ) { removeTestData ( ) ; }

Elimina los valores de prueba después de la prueba.


protected static String cast  ( String value , Type < ? > type ) { String castValue = value . trim ( ) ; String typeName = type . getCanonicalName ( ) ; if ( ! "null" . equals ( value ) ) { if ( type . isPrimitive ( ) ) { if ( type . getRawType ( ) == Character . TYPE ) { castValue = format ( "(\"\"+%s).charAt(0)" , castValue ) ; } else if ( ! isPrimitiveLiteral ( castValue , type ) ) { castValue = format ( "%s.valueOf(\"\"+%s).%sValue()" , type . getWrapperType ( ) . getCanonicalName ( ) , castValue , type ) ; } } else if ( type . isPrimitiveWrapper ( ) && isPrimitiveLiteral ( castValue , type ) ) { castValue = format ( "%s.valueOf(%s)" , type . getWrapperType ( ) . getCanonicalName ( ) , castValue ) ; } else if ( ! value . startsWith ( "(" + typeName + ")" ) && ! value . startsWith ( "((" + typeName + ")" ) ) { castValue = "((" + typeName + ")" + castValue + ")" ; } } return castValue ; }

Devuelve el código Java que proporciona un elenco del valor especificado al tipo de esta propiedad ref


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_FPATK_A_TO_SELF  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200821 , skillcaster , skillname ) ; }

[% Skillcaster] recibirá la disminución del efecto del tiempo de vuelo en un momento porque usó [% de nombre de habilidad].


public String convertUtt  ( Utterance utt ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( "===Utterance===\n" ) ; buf . append ( VOICEMARKER + FreeTTSVoices . getMaryVoice ( utt . getVoice ( ) ) . getName ( ) + "\n" ) ; buf . append ( "==Segment==\n" ) ; buf . append ( "#\n" ) ; Relation segmentRelation = utt . getRelation ( Relation . SEGMENT ) ; assert segmentRelation != null ; Item segmentItem = segmentRelation . getHead ( ) ; while ( segmentItem != null ) { float endInSeconds = segmentItem . getFeatures ( ) . getFloat ( "end" ) ; String segmentString = segmentItem . toString ( ) ; buf . append ( String . valueOf ( endInSeconds ) + " 100 " + segmentString + "\n" ) ; segmentItem = segmentItem . getNext ( ) ; } buf . append ( "==Target==\n" ) ; buf . append ( "#\n" ) ; Relation targetRelation = utt . getRelation ( Relation . TARGET ) ; assert targetRelation != null ; Item targetItem = targetRelation . getHead ( ) ; while ( targetItem != null ) { float posInSeconds = targetItem . getFeatures ( ) . getFloat ( "pos" ) ; float f0Value = targetItem . getFeatures ( ) . getFloat ( "f0" ) ; buf . append ( String . valueOf ( posInSeconds ) + " 100 " + String . valueOf ( f0Value ) + "\n" ) ; targetItem = targetItem . getNext ( ) ; } buf . append ( "==Syllable==\n" ) ; buf . append ( "#\n" ) ; Relation syllStrucRelation = utt . getRelation ( Relation . SYLLABLE_STRUCTURE ) ; assert syllStrucRelation != null ; StringBuilder word = new StringBuilder ( ) ; word . append ( "==Word==\n" ) ; word . append ( "#\n" ) ; StringBuilder iE = new StringBuilder ( ) ; iE . append ( "==IntEvent==\n" ) ; iE . append ( "#\n" ) ; Item syllStrucItem = syllStrucRelation . getHead ( ) ; while ( syllStrucItem != null ) { Item syllItem = syllStrucItem . getDaughter ( ) ; float end = 0 ; while ( syllItem != null ) { end = syllItem . getLastDaughter ( ) . getFeatures ( ) . getFloat ( "end" ) ; StringBuilder syllable = new StringBuilder ( ) ; Item segItem = syllItem . getDaughter ( ) ; while ( segItem != null ) { syllable . append ( segItem . toString ( ) ) ; segItem = segItem . getNext ( ) ; } String stress = syllItem . getFeatures ( ) . getString ( "stress" ) ; buf . append ( String . valueOf ( end ) + " 100 " + syllable . toString ( ) + " ; stress " + stress + "\n" ) ; if ( syllItem . getFeatures ( ) . isPresent ( "accent" ) ) { iE . append ( String . valueOf ( end ) + " 100 " + syllItem . getFeatures ( ) . getString ( "accent" ) + "\n" ) ; } if ( syllItem . getFeatures ( ) . isPresent ( "endtone" ) ) { iE . append ( String . valueOf ( end ) + " 100 " + syllItem . getFeatures ( ) . getString ( "endtone" ) + "\n" ) ; } syllItem = syllItem . getNext ( ) ; } word . append ( String . valueOf ( end ) + " 100 " + syllStrucItem . toString ( ) + "\n" ) ; syllStrucItem = syllStrucItem . getNext ( ) ; } buf . append ( word . toString ( ) ) ; buf . append ( iE . toString ( ) ) ; buf . append ( "==Phrase==\n" ) ; buf . append ( "#\n" ) ; Relation phraseRelation = utt . getRelation ( Relation . PHRASE ) ; assert phraseRelation != null ; Item phraseItem = phraseRelation . getHead ( ) ; while ( phraseItem != null ) { float end = 0 ; int phraseBreak ; if ( phraseItem . getFeatures ( ) . getString ( "name" ) . equals ( "BB" ) ) { phraseBreak = 4 ; } else if ( phraseItem . getFeatures ( ) . getString ( "name" ) . equals ( "B" ) ) { phraseBreak = 3 ; } else { Log . d ( Mary . LOG , "Unexpected phrase name: '" + phraseItem . getFeatures ( ) . getString ( "name" ) + "'" ) ; phraseBreak = 1 ; } Item wordItemInPhrase = phraseItem . getDaughter ( ) ; while ( wordItemInPhrase != null ) { Item next = wordItemInPhrase . getNext ( ) ; Item lastSegmentItem = wordItemInPhrase . findItem ( "R:SylStructure.daughtern.daughtern" ) ; if ( lastSegmentItem != null ) { end = lastSegmentItem . getFeatures ( ) . getFloat ( "end" ) ; int thisBreak = 1 ; if ( next == null ) { thisBreak = phraseBreak ; } buf . append ( end + " 100 " + thisBreak + "\n" ) ; } wordItemInPhrase = next ; } phraseItem = phraseItem . getNext ( ) ; } return buf . toString ( ) ; }

Convierta una expresión de la representación de Freetts a una cadena en formato Festival_UTT, es decir, como una secuencia de archivos de relaciones de festival.


public Builder removeColumns  ( String ... columnNames ) { return transform ( new RemoveColumnsTransform ( columnNames ) ) ; }

Retire todas las columnas especificadas, por nombre


public AdsUpdateClientsQuery ( VkApiClient client , UserActor actor , int accountId , String data ) { super ( client , "ads.updateClients" , Integer . class ) ; accessToken ( actor . getAccessToken ( ) ) ; accountId ( accountId ) ; data ( data ) ; }

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


public void clickOption  ( ToolbarOptions option ) { By locator = By . xpath ( String . format ( BUTTON_XPATH_TEMPLATE , option . getTitle ( ) ) ) ; toolbar . findElement ( locator ) . click ( ) ; }

El método encuentra la opción de la barra de herramientas Dada y realiza clic en Acción en él.


@ deprecated public final void reset  ( ) { while ( stackIsNotEmpty ( ) ) { pop ( ) ; } this . scriptStart = this . textStart ; this . scriptLimit = this . textStart ; this . scriptCode = - 1 ; this . parenSP = - 1 ; this . pushCount = 0 ; this . fixupCount = 0 ; this . textIndex = this . textStart ; }


public static Document parseDocument  ( File file , boolean validating ) throws ParserConfigurationException , SAXException , IOException { return parseDocument ( new FileInputStream ( file ) , validating ) ; }

Analice los datos XML en una representación de DOM, teniendo en cuenta los recursos locales y los esquemas.


public static SM_SYSTEM_MESSAGE STR_SKILL_DODGED_A_TO_B  ( String skilltarget , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201104 , skilltarget , skillcaster , skillname ) ; }

[% SkillTarget] Evadió [% Skillcaster] 's [% de habilidad].


protected MarketDeleteAlbumQuery albumId  ( int value ) { return unsafeParam ( "album_id" , value ) ; }


public JSONObject put  ( String key , Object value ) throws JSONException { if ( key == null ) { throw new NullPointerException ( "Null key." ) ; } if ( value != null ) { testValidity ( value ) ; this . map . put ( key , value ) ; } else { this . remove ( key ) ; } return this ; }

Ponga un par de claves / valor en el JSONOBJECT.Si el valor es nulo, entonces la tecla se eliminará del JSONOBJECT si está presente.


public void reset  ( ) { fSubGroupsB . clear ( ) ; fSubGroups . clear ( ) ; }

Borrar el registro interno de la información del grupo de sustitución.


public void selectAll  ( int skipViewType ) { Log . v ( TAG , "selectAll" ) ; selectedItems = new ArrayList < Integer > ( getItemCount ( ) ) ; for ( int i = 0 ; i < getItemCount ( ) ; i ++ ) { if ( getItemViewType ( i ) == skipViewType ) continue ; selectedItems . add ( i ) ; Log . v ( TAG , "selectAll notifyItemChanged on position " + i ) ; notifyItemChanged ( i ) ; } }

Agregue el estado de selección para todos los elementos.
 El contenedor selector se llena secuencialmente con todas las posiciones de los elementos.
  Nota:  Todos los artículos están invalidados y rebotan uno por uno!


public < T extends  DataQueryParams > T copyTo ( T params )  { params . dimensions = DimensionalObjectUtils . getCopies ( this . dimensions ) ; params . filters = DimensionalObjectUtils . getCopies ( this . filters ) ; params . aggregationType = this . aggregationType ; params . measureCriteria = this . measureCriteria ; params . preAggregateMeasureCriteria = this . preAggregateMeasureCriteria ; params . skipMeta = this . skipMeta ; params . skipData = this . skipData ; params . skipHeaders = this . skipHeaders ; params . skipRounding = this . skipRounding ; params . completedOnly = this . completedOnly ; params . hierarchyMeta = this . hierarchyMeta ; params . dimensionItemMeta = this . dimensionItemMeta ; params . ignoreLimit = this . ignoreLimit ; params . hideEmptyRows = this . hideEmptyRows ; params . showHierarchy = this . showHierarchy ; params . includeNumDen = this . includeNumDen ; params . displayProperty = this . displayProperty ; params . outputIdScheme = this . outputIdScheme ; params . outputFormat = this . outputFormat ; params . approvalLevel = this . approvalLevel ; params . startDate = this . startDate ; params . endDate = this . endDate ; params . partitions = new Partitions ( this . partitions ) ; params . dataType = this . dataType ; params . periodType = this . periodType ; params . dataPeriodType = this . dataPeriodType ; params . skipPartitioning = this . skipPartitioning ; params . timely = this . timely ; params . restrictByOrgUnitOpeningClosedDate = this . restrictByOrgUnitOpeningClosedDate ; params . restrictByCategoryOptionStartEndDate = this . restrictByCategoryOptionStartEndDate ; params . dataApprovalLevels = new HashMap < > ( this . dataApprovalLevels ) ; return params ; }

Copia todas las propiedades de esta consulta en la consulta dada.


public boolean write  ( byte [ ] audioData ) { return write ( audioData , 0 , audioData . length ) ; }

Escribe los bytes dados a la corriente de audio.


@ SuppressWarnings ( "unchecked" ) private void addVertex  ( Configuration configuration , String configName , Consumer < String > nameValidator ) { if ( ! configuration . containsKey ( MODULE_NAME_KEY ) ) { LOG . warn ( MODULE_NAME_MISSING . logFormat ( configName ) ) ; return ; } String moduleName = configuration . getString ( MODULE_NAME_KEY ) ; nameValidator . accept ( moduleName ) ; LOG . debug ( MODULE_FOUND_MESSAGE . logFormat ( moduleName , configName ) ) ; if ( moduleConfigurations . containsKey ( moduleName ) ) { LOG . error ( MODULE_NAME_DUPLICATION . format ( configName , moduleName ) ) ; throw new SystemConfigException ( MODULE_NAME_DUPLICATION . format ( configName , moduleName ) ) ; } moduleConfigurations . put ( moduleName , configuration ) ; List < String > dependencies = new ArrayList < > ( configuration . getList ( DEPENDENT_MODULE_KEY , Collections . < String > emptyList ( ) ) ) ; Collections . reverse ( dependencies ) ; moduleDependencies . put ( moduleName , dependencies ) ; }

Tome una configuración y si es un módulo válido, carguelo en el mapa de moduleconfiguraciones y cargue sus modulaciones de dependencia de la dependencia.


public static String formatQuantity  ( double quantity ) { return quantityDecimalFormat . format ( quantity ) ; }

Formatos un doble que representa una cantidad en una cadena


@ Override public Iterator < E > iterator  ( ) { return this . inOrderIterator ( ) ; }

Devuelve el iterador en orden (ascendente).


protected DfpDec ( final DfpField factory , long x ) { super ( factory , x ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SummonGroupGate_A_TO_SELF  ( String skillcaster , String value0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200882 , skillcaster , value0 , skillname ) ; }

[% Skillcaster] convocada% 0 usando [% SkillName].


private boolean isCallerValid  ( Context context , int authRequirements , String packageToMatch ) { boolean shouldBeGoogleSigned = ( authRequirements & FLAG_SHOULD_BE_GOOGLE_SIGNED ) != 0 ; boolean shouldBeSystem = ( authRequirements & FLAG_SHOULD_BE_SYSTEM ) != 0 ; String [ ] callingPackages = getCallingPackages ( context ) ; PackageManager pm = context . getApplicationContext ( ) . getPackageManager ( ) ; boolean matchFound = false ; for ( String packageName : callingPackages ) { if ( ! TextUtils . isEmpty ( packageToMatch ) && ! packageName . equals ( packageToMatch ) ) continue ; matchFound = true ; if ( ( shouldBeGoogleSigned && ! isGoogleSigned ( pm , packageName ) ) || ( shouldBeSystem && ! isSystemBuild ( pm , packageName ) ) ) { return false ; } } return matchFound ; }

Devuelve si las personas que llaman de la transacción actual contienen un paquete que coincide con los requisitos de autenticación.


public static void touch  ( File file ) throws IOException { if ( ! file . exists ( ) ) { OutputStream out = openOutputStream ( file ) ; IOUtils . closeQuietly ( out ) ; } boolean success = file . setLastModified ( System . currentTimeMillis ( ) ) ; if ( ! success ) { throw new IOException ( "Unable to set the last modification time for " + file ) ; } }

Implementa el mismo comportamiento que la utilidad "táctil" en UNIX.Crea un nuevo archivo con tamaño 0 o, si el archivo ya existe, se abre y se cierra sin modificarlo, pero actualizar la fecha y la hora del archivo.<p> Nota: A partir de V1.3, este método arroja una excepción IOException si no se puede configurar la última fecha modificada del archivo.Además, a partir de V1.3 Este método crea directorios de padres si no existen.


public boolean delete  ( ) { return deleteStrategy . deleteQuietly ( new File ( path ) ) ; }

Elimina el archivo asociado con esta instancia de rastreador.


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


@ Override public Histogram histogram  ( ) { return hist ; }

Devuelve el histograma que se aproxima a la distribución de unión de los valores de campo de los resultados de la consulta.


public final String loadDocumentElement  ( String sDocID , String sElement ) { Node nDoc = XMLDoc . getElementById ( sDocID ) ; if ( nDoc == null ) return null ; Element eDoc = ( Element ) nDoc ; NodeList nDocElements = nDoc . getChildNodes ( ) ; Node n = null ; for ( int iCnt = 0 ; iCnt < nDocElements . getLength ( ) ; iCnt ++ ) { if ( nDocElements . item ( iCnt ) . getNodeName ( ) . equalsIgnoreCase ( sElement ) ) { n = nDocElements . item ( iCnt ) ; break ; } } String sRes ; if ( n != null ) sRes = n . getTextContent ( ) ; else sRes = "" ; return sRes ; }

Devuelve un elemento dado de un documento dado como una cadena, si existe el elemento.


public static Equipment buildCreateBasicEquipment  ( Properties properties ) { if ( properties == null ) { properties = new Properties ( ) ; } Equipment equipment = Equipment . create ( "E_TEST" , "cern.c2mon.daq.testhandler.TestMessageHandler" ) . build ( ) ; equipment . setProcessId ( 1L ) ; properties . setProperty ( "name" , "E_TEST" ) ; properties . setProperty ( "description" , "<no description provided>" ) ; properties . setProperty ( "statusTagId" , String . valueOf ( 101l ) ) ; properties . setProperty ( "commFaultTagId" , String . valueOf ( 100l ) ) ; properties . setProperty ( "aliveInterval" , String . valueOf ( 60000 ) ) ; properties . setProperty ( "processId" , String . valueOf ( 1l ) ) ; properties . setProperty ( "handlerClass" , "cern.c2mon.daq.testhandler.TestMessageHandler" ) ; return equipment ; }

La ID generada prevista es 10. El ID de proceso esperado es 1. ID de etiqueta de estado esperado es 101 la identificación de la etiqueta de comunicación esperada es 100


static String leftTrim  ( String str , int len ) { return str . substring ( str . length ( ) - len ) ; }


private SLDTreeLeafFactory ( ) { populate  ( ) ; }

Instantánea una nueva fábrica de hojas de árbol de SLD.


public void close  ( ) throws CanceledException  { notifyDestroyViewer ( ) ; }


static BitArray interleaveWithECBytes  ( BitArray bits , int numTotalBytes , int numDataBytes , int numRSBlocks ) throws WriterException { if ( bits . getSizeInBytes ( ) != numDataBytes ) { throw new WriterException ( "Number of bits and data bytes does not match" ) ; } int dataBytesOffset = 0 ; int maxNumDataBytes = 0 ; int maxNumEcBytes = 0 ; Collection < BlockPair > blocks = new ArrayList < > ( numRSBlocks ) ; for ( int i = 0 ; i < numRSBlocks ; ++ i ) { int [ ] numDataBytesInBlock = new int [ 1 ] ; int [ ] numEcBytesInBlock = new int [ 1 ] ; getNumDataBytesAndNumECBytesForBlockID ( numTotalBytes , numDataBytes , numRSBlocks , i , numDataBytesInBlock , numEcBytesInBlock ) ; int size = numDataBytesInBlock [ 0 ] ; byte [ ] dataBytes = new byte [ size ] ; bits . toBytes ( 8 * dataBytesOffset , dataBytes , 0 , size ) ; byte [ ] ecBytes = generateECBytes ( dataBytes , numEcBytesInBlock [ 0 ] ) ; blocks . add ( new BlockPair ( dataBytes , ecBytes ) ) ; maxNumDataBytes = Math . max ( maxNumDataBytes , size ) ; maxNumEcBytes = Math . max ( maxNumEcBytes , ecBytes . length ) ; dataBytesOffset += numDataBytesInBlock [ 0 ] ; } if ( numDataBytes != dataBytesOffset ) { throw new WriterException ( "Data bytes does not match offset" ) ; } BitArray result = new BitArray ( ) ; for ( int i = 0 ; i < maxNumDataBytes ; ++ i ) { for ( BlockPair block : blocks ) { byte [ ] dataBytes = block . getDataBytes ( ) ; if ( i < dataBytes . length ) { result . appendBits ( dataBytes [ i ] , 8 ) ; } } } for ( int i = 0 ; i < maxNumEcBytes ; ++ i ) { for ( BlockPair block : blocks ) { byte [ ] ecBytes = block . getErrorCorrectionBytes ( ) ; if ( i < ecBytes . length ) { result . appendBits ( ecBytes [ i ] , 8 ) ; } } } if ( numTotalBytes != result . getSizeInBytes ( ) ) { throw new WriterException ( "Interleaving error: " + numTotalBytes + " and " + result . getSizeInBytes ( ) + " differ." ) ; } return result ; }

Interlidea "bits" con los bytes de corrección de errores correspondientes.Sobre el éxito, almacene el resultado en "resultado".La regla de intercalación es complicada.Consulte 8.6 de JISX0510: 2004 (P.37) para más detalles.


public static String toString  ( Reader input ) throws IOException { StringBuilderWriter sw = new StringBuilderWriter ( ) ; copy ( input , sw ) ; return sw . toString ( ) ; }

Obtenga los contenidos de un lector </ code> como una cadena.<P /> Este método almacena la entrada internamente, por lo que no es necesario usar un lector de búquera </ código>.


public ModelKeyMap findKeyMapByRelated  ( String relFieldName ) { for ( ModelKeyMap keyMap : keyMaps ) { if ( keyMap . getRelFieldName ( ) . equals ( relFieldName ) ) return keyMap ; } return null ; }

Encuentra un keymap con el Nombre de Relfield especificado


public GroupsLeaveQuery ( VkApiClient client , UserActor actor , int groupId ) { super ( client , "groups.leave" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; groupId ( groupId ) ; }

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


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

Multiplica una matriz por un escalar, c = s * a


@ Override public synchronized void invalidate  ( String key , boolean fullExpire ) { Entry entry = get ( key ) ; if ( entry != null ) { entry . softTtl = 0 ; if ( fullExpire ) { entry . ttl = 0 ; } put ( key , entry ) ; } }


private void expandTo  ( int size ) { final double [ ] tempArray = new double [ size ] ; System . arraycopy ( internalArray , 0 , tempArray , 0 , internalArray . length ) ; internalArray = tempArray ; }

Expande la matriz de almacenamiento interna al tamaño especificado.


public static void suspend  ( ) { TrafficService service = getAirMapTrafficService ( ) ; if ( service != null && service . isConnected ( ) ) { service . disconnect ( ) ; } }

Esta función se debe llamar cuando la aplicación ingrese al fondo (ONDESTROY, ONSTOP, ONPAIDA)


public double quadraticMean  ( ) { return NumericReduceUtils . quadraticMean . reduce ( this ) ; }

Devuelve el cuadrático, también conocido como el cuadrado de la raíz, para todos los valores en esta columna


protected boolean isAwareOf  ( VisibleObject newObject ) { return true ; }

Ya sea que el propietario de la Lista conocida sea consciente del objeto encontrado (debe mantenerse en la lista conocida)