public void mouseDragged  ( MouseEvent me ) { stillDownWithoutMoving = false ; if ( current == inScrollByMouse ) { viewer . setCursor ( Cursors . getClosedHand ( ) ) ; JScrollPane scrollPane = viewer . getScrollPane ( ) ; int dX = me . getX ( ) - downX ; int dY = me . getY ( ) - downY ; if ( dY != 0 ) { JScrollBar scrollBar = scrollPane . getVerticalScrollBar ( ) ; int amount = Math . round ( dY * ( scrollBar . getMaximum ( ) - scrollBar . getMinimum ( ) ) / viewer . getHeight ( ) ) ; if ( amount != 0 ) { scrollBar . setValue ( scrollBar . getValue ( ) - amount ) ; } } if ( dX != 0 ) { JScrollBar scrollBar = scrollPane . getHorizontalScrollBar ( ) ; int amount = Math . round ( dX * ( scrollBar . getMaximum ( ) - scrollBar . getMinimum ( ) ) / viewer . getWidth ( ) ) ; if ( amount != 0 ) { scrollBar . setValue ( scrollBar . getValue ( ) - amount ) ; } } } else if ( current == inRubberband ) { Graphics2D gc = ( Graphics2D ) viewer . getGraphics ( ) ; if ( gc != null ) { gc . setXORMode ( viewer . getCanvasColor ( ) ) ; if ( selRect != null ) gc . drawRect ( selRect . x , selRect . y , selRect . width , selRect . height ) ; selRect = new Rectangle ( downX , downY , 0 , 0 ) ; selRect . add ( me . getX ( ) , me . getY ( ) ) ; gc . drawRect ( selRect . x , selRect . y , selRect . width , selRect . height ) ; } } else if ( viewer . isAllowInternalEdgePoints ( ) && current == inMoveInternalEdgePoint ) { Point p1 = new Point ( downX , downY ) ; Edge e = getHitEdges ( downX , downY ) . getFirstElement ( ) ; downX = me . getX ( ) ; downY = me . getY ( ) ; Point p2 = new Point ( downX , downY ) ; try { if ( e != null ) { viewer . getEV ( e ) . moveInternalPoint ( viewer . trans , p1 , p2 ) ; viewer . repaint ( ) ; } } catch ( NotOwnerException ex ) { } } else if ( current == inMoveNodeLabel ) { if ( hitNodeLabels . size ( ) > 0 ) { Node v = hitNodeLabels . getFirstElement ( ) ; try { if ( ! viewer . getSelected ( v ) || viewer . getNV ( v ) . getLabel ( ) == null ) return ; } catch ( NotOwnerException e ) { return ; } NodeView nv = viewer . getNV ( v ) ; Graphics2D gc = ( Graphics2D ) viewer . getGraphics ( ) ; if ( gc != null ) { Point apt = viewer . trans . w2d ( nv . getLocation ( ) ) ; int meX = me . getX ( ) ; int meY = me . getY ( ) ; gc . setXORMode ( viewer . getCanvasColor ( ) ) ; if ( prevPt != null ) { gc . drawLine ( apt . x , apt . y , prevPt . x , prevPt . y ) ; } else { prevPt = new Point ( downX , downY ) ; Point labPt = nv . getLabelPosition ( viewer . trans ) ; if ( labPt != null ) { offset . x = labPt . x - downX ; offset . y = labPt . y - downY ; } } gc . drawLine ( apt . x , apt . y , meX , meY ) ; nv . hiliteLabel ( gc , viewer . trans , viewer . getFont ( ) ) ; int labX = meX + offset . x ; int labY = meY + offset . y ; nv . setLabelPositionRelative ( labX - apt . x , labY - apt . y ) ; nv . hiliteLabel ( gc , viewer . trans , viewer . getFont ( ) ) ; prevPt . x = meX ; prevPt . y = meY ; nodesWithMovedLabels . add ( v ) ; } } } else if ( current == inMoveEdgeLabel ) { if ( hitEdgeLabels . size ( ) > 0 ) { try { Edge e = hitEdgeLabels . getFirstElement ( ) ; try { if ( ! viewer . getSelected ( e ) || viewer . getEV ( e ) . getLabel ( ) == null ) return ; } catch ( NotOwnerException ex ) { return ; } EdgeView ev = viewer . getEV ( e ) ; Point2D nextToV ; Point2D nextToW ; Graph G = viewer . getGraph ( ) ; NodeView vv = viewer . getNV ( G . getSource ( e ) ) ; NodeView wv = viewer . getNV ( G . getTarget ( e ) ) ; nextToV = wv . getLocation ( ) ; nextToW = vv . getLocation ( ) ; if ( viewer . getInternalPoints ( e ) != null ) { if ( viewer . getInternalPoints ( e ) . size ( ) != 0 ) { nextToV = viewer . getInternalPoints ( e ) . get ( 0 ) ; nextToW = viewer . getInternalPoints ( e ) . get ( viewer . getInternalPoints ( e ) . size ( ) - 1 ) ; } } Point pv = vv . computeConnectPoint ( nextToV , viewer . trans ) ; Point pw = wv . computeConnectPoint ( nextToW , viewer . trans ) ; if ( G . findDirectedEdge ( G . getTarget ( e ) , G . getSource ( e ) ) != null ) viewer . adjustBiEdge ( pv , pw ) ; Graphics2D gc = ( Graphics2D ) viewer . getGraphics ( ) ; if ( gc != null ) { ev . setLabelReferenceLocation ( nextToV , nextToW , viewer . trans ) ; ev . setLabelSize ( gc ) ; Point apt = ev . getLabelReferencePoint ( ) ; int meX = me . getX ( ) ; int meY = me . getY ( ) ; gc . setXORMode ( viewer . getCanvasColor ( ) ) ; if ( prevPt != null ) gc . drawLine ( apt . x , apt . y , prevPt . x , prevPt . y ) ; else { prevPt = new Point ( downX , downY ) ; Point labPt = ev . getLabelPosition ( viewer . trans ) ; offset . x = labPt . x - downX ; offset . y = labPt . y - downY ; } gc . drawLine ( apt . x , apt . y , meX , meY ) ; ev . hiliteLabel ( gc , viewer . trans ) ; if ( false ) ev . drawLabel ( gc , viewer . trans ) ; int labX = meX + offset . x ; int labY = meY + offset . y ; ev . setLabelPositionRelative ( labX - apt . x , labY - apt . y ) ; ev . hiliteLabel ( gc , viewer . trans ) ; if ( false ) ev . drawLabel ( gc , viewer . trans ) ; prevPt . x = meX ; prevPt . y = meY ; } } catch ( NotOwnerException ex ) { Basic . caught ( ex ) ; } } } else if ( current == inNewEdge ) { Graphics gc = viewer . getGraphics ( ) ; if ( gc != null ) { gc . setXORMode ( viewer . getCanvasColor ( ) ) ; if ( selRect != null ) gc . drawLine ( downX , downY , selRect . x , selRect . y ) ; selRect = new Rectangle ( me . getX ( ) , me . getY ( ) , 0 , 0 ) ; gc . drawLine ( downX , downY , me . getX ( ) , me . getY ( ) ) ; } } else if ( current == inMoveMagnifier ) { int meX = me . getX ( ) ; int meY = me . getY ( ) ; if ( meX != downX || meY != downY ) { viewer . trans . getMagnifier ( ) . move ( downX , downY , meX , meY ) ; downX = meX ; downY = meY ; viewer . repaint ( ) ; } } else if ( current == inResizeMagnifier ) { int meY = me . getY ( ) ; if ( meY != downY ) { viewer . trans . getMagnifier ( ) . resize ( downY , meY ) ; downX = me . getX ( ) ; downY = meY ; viewer . repaint ( ) ; } } }


public MessagesGetChatQuery ( VkApiClient client , UserActor actor ) { super ( client , "messages.getChat" , Chat . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public XSModelImpl ( SchemaGrammar [ ] grammars ) { this ( grammars , Constants . SCHEMA_VERSION_1_0 ) ; }

Construya un XSModelimpl, almacenando algunas gramáticas y gramáticas importadas por ellos a este objeto.


public static String md5  ( File file ) { if ( file == null ) throw new IllegalArgumentException ( "file cannot be null" ) ; try { HashCode hc = Files . hash ( file , Hashing . md5 ( ) ) ; return toHex ( hc . asBytes ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }

Obtenga una cadena MD5 que es similar a OS MD5SUM


public int kind  ( ) { String s = soot . PhaseOptions . getString ( options , "kind" ) ; if ( s . equalsIgnoreCase ( "optimistic" ) ) return kind_optimistic ; if ( s . equalsIgnoreCase ( "pessimistic" ) ) return kind_pessimistic ; throw new RuntimeException ( "Invalid value " + s + " of phase option kind" ) ; }


public void putString  ( String key , String value ) { checkForNullKey ( key ) ; checkForNullValue ( value ) ; preferences . edit ( ) . putString ( key , value ) . apply ( ) ; }

Ponga un valor de cadena en SharedPreferences con 'Clave' y ahorre


@ NotNull public UpdatePersonAction updatePerson  ( @ NotNull String personGroupId , @ NotNull String personId , String name , String userData ) { Validation . validate ( personGroupId , "^[a-z0-9_-]{1,64}$" , new ParameterValidationException ( "personGroupId" , "Person group ID is invalid. Valid format should be a string composed by numbers, english letters in lower case, '-', '_', and no longer than 64 characters." ) ) ; Validation . validate ( name , "^.{1,128}$" , new ParameterValidationException ( "name" , "The maximum length is 128" ) ) ; Validation . validate ( userData , 16 , new ParameterValidationException ( "userData" , "The size limit is 16KB" ) ) ; return new UpdatePersonAction ( cognitiveContext , personGroupId , personId , name , userData ) ; }

Actualice el nombre de una persona o el campo UserData.


public static ProbeItemDescriptor discreteToplineItem  ( String name , String description , ItemValueFormatter formatter , double dataFactor , long minValue , long maxValue , boolean filled , int width , boolean fixedWidth ) { return discreteItem ( name , description , formatter , dataFactor , minValue , maxValue , DEFAULT_LINE_WIDTH , DEFAULT_COLOR , filled ? DEFAULT_COLOR : null , width , fixedWidth , true , false ) ; }

Crea el descriptor para un elemento discreto representado por un segmento de línea horizontal, opcionalmente llenado, con valores de ad de datos de datos personalizados.


public boolean dump_types  ( ) { return soot . PhaseOptions . getBoolean ( options , "dump-types" ) ; }

Tipos de descarga: incluyen tipos declarados en volcado.Cuando esta opción se establece en VERDADERO, la representación descargada por la opción PAG de volcado incluye información de tipo para todos los nodos.Esta opción no tiene efecto a menos que la PAG de descarga sea cierta.


int peek  ( ) throws IOException  { int lookaheadChar = in . read ( ) ; in . unread ( lookaheadChar ) ; return lookaheadChar ; }

Consigue el siguiente personaje sin conseguirlo.


public static List < Writable > sampleFromColumnSequence  ( int count , String columnName , Schema schema , JavaRDD < List < List < Writable > > > sequenceData ) { JavaRDD < List < Writable > > flattenedSequence = sequenceData . flatMap ( new SequenceFlatMapFunction ( ) ) ; return sampleFromColumn ( count , columnName , schema , flattenedSequence ) ; }

Valores de muestra al azar de una sola columna, en todas las secuencias.Los valores pueden tomarse de cualquier secuencia (es decir, la orden de secuencia no se conserva)


public static Histogram subtract  ( Histogram x , double y ) { return x . modifyEventCounters ( null ) ; }


private void processCandidateForUnaassign  ( Iterable < User > users , String projectName ) { List < User > updated = StreamSupport . stream ( users . spliterator ( ) , false ) . filter ( null ) . map ( null ) . collect ( toList ( ) ) ; userRepository . save ( updated ) ; }

Validate a los candidatos para unasignos de proyectos, y actualizar el proyecto predeterminado si se requiere


@ ManagedOperation ( description = "Runs task performed on every server restart (does nothing so far)" ) public void refreshAfterStandardRestart  ( ) { }

Operaciones que se ejecutan después de que se reinicien todos los servidores, fijando inconsistencias que podrían deberse al apagado.


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


public Graph ( Table nodes , Table edges , Boolean directed , String nodeKey , String sourceKey , String targetKey ) { init ( nodes , edges , directed , nodeKey , sourceKey , targetKey ) ; }


public static < T > T  checkNotNull ( T reference , @ Nullable String errorMessageTemplate , @ Nullable Object ... errorMessageArgs )  { if ( reference == null ) { throw new NullPointerException ( format ( errorMessageTemplate , errorMessageArgs ) ) ; } return reference ; }

Asegura que una referencia de objeto que pase como parámetro al método de llamada no sea nulo.


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


public void testWriteReadFull  ( ) throws Exception  { ByteArrayOutputStream out = new ByteArrayOutputStream ( 0 ) ; ObjectOutputStream os = new ObjectOutputStream ( out ) ; os . writeObject ( full ) ; ObjectInputStream is = new ObjectInputStream ( new ByteArrayInputStream ( out . toByteArray ( ) ) ) ; LoadBalancingPolicy . LoadBalancingPolicyDescription copy = ( LoadBalancingPolicy . LoadBalancingPolicyDescription ) is . readObject ( ) ; is . close ( ) ; os . close ( ) ; assertTrue ( helper . areEquals ( full , copy ) ) ; }

PRUEBA LEER Y ESCRIBIR CLUSTERPOLÍTICO COMPLETO OBJETO


public void put  ( int key , int value ) { int i = binarySearch ( mKeys , 0 , mSize , key ) ; if ( i >= 0 ) { mValues [ i ] = value ; } else { i = ~ i ; if ( mSize >= mKeys . length ) { int n = Math . max ( mSize + 1 , mKeys . length * 2 ) ; int [ ] nkeys = new int [ n ] ; int [ ] nvalues = new int [ n ] ; System . arraycopy ( mKeys , 0 , nkeys , 0 , mKeys . length ) ; System . arraycopy ( mValues , 0 , nvalues , 0 , mValues . length ) ; mKeys = nkeys ; mValues = nvalues ; } if ( mSize - i != 0 ) { System . arraycopy ( mKeys , i , mKeys , i + 1 , mSize - i ) ; System . arraycopy ( mValues , i , mValues , i + 1 , mSize - i ) ; } mKeys [ i ] = key ; mValues [ i ] = value ; mSize ++ ; } }

Agrega un mapeo de la tecla especificada al valor especificado, reemplazando la asignación anterior de la tecla especificada si hubo una.


public static String bind  ( String id , String binding ) { return bind ( id , new String [ ] { binding } ) ; }

Busque el mensaje con la identificación dada en este catálogo y vincule sus ubicaciones de sustitución con la cadena dada.


public void checkConstraints  ( ) throws IOException  { }

Comprueba si las restricciones cuya comprobación se retrasó cuando esta instancia se decodificó, si corresponde, está satisfecho.Si la instancia no fue decodificada, pero directamente construida, este método no hace nada.


public DividerItemDecoration ( Context context ) { final TypedArray styledAttributes = context . obtainStyledAttributes ( ATTRS ) ; mDivider = styledAttributes . getDrawable ( 0 ) ; styledAttributes . recycle ( ) ; }


protected void assertClose  ( String msg , FieldMatrix < Fraction > m , FieldMatrix < Fraction > n , double tolerance ) { for ( int i = 0 ; i < m . getRowDimension ( ) ; i ++ ) { for ( int j = 0 ; j < m . getColumnDimension ( ) ; j ++ ) { Assert . assertEquals ( msg , m . getEntry ( i , j ) . doubleValue ( ) , n . getEntry ( i , j ) . doubleValue ( ) , tolerance ) ; } } }

Verifica que dos matrices están cerca (1-norma)


La clase solo contiene métodos estáticos.


public static void main  ( String [ ] sArgs ) { Hashtable hSwitches = gr . demokritos . iit . jinsect . utils . parseCommandLineSwitches ( sArgs ) ; String sInputDir = gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "inputDir" , "." ) ; boolean bInputDirFlat = Boolean . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "inputDirFlat" , Boolean . FALSE . toString ( ) ) ) ; String sModel = gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "model" , "" ) ; String sDocumentMatrix = gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "docMatrix" , "" ) ; int iLevels = Integer . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "levels" , "5" ) ) . intValue ( ) ; int iIterations = Integer . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "iters" , "10000" ) ) . intValue ( ) ; int iBurnInIterations = Integer . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "burnIn" , "1000" ) ) . intValue ( ) ; double dAlpha = Double . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "alpha" , "2.0" ) ) . doubleValue ( ) ; double dBeta = Double . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "beta" , "0.5" ) ) . doubleValue ( ) ; int iThreads = Integer . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "threads" , String . valueOf ( Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ) . intValue ( ) ; boolean bRecalc = Boolean . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "recalc" , "FALSE" ) ) . booleanValue ( ) ; int iTextMeanSize = Integer . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "textMeanSize" , "250" ) ) . intValue ( ) ; if ( Boolean . valueOf ( gr . demokritos . iit . jinsect . utils . getSwitch ( hSwitches , "help" , "FALSE" ) ) . booleanValue ( ) ) { printSyntax ( ) ; return ; } ConsoleNotificationListener cnlReporting = new ConsoleNotificationListener ( ) ; TreeMap < Integer , String > tmIdxToStr = new TreeMap < Integer , String > ( ) ; System . err . println ( "Initializing HLDA..." ) ; int [ ] [ ] dtm = null ; boolean bMatrixLoadedOK = false ; if ( ( sDocumentMatrix . length ( ) != 0 ) && ! bRecalc ) { try { System . err . println ( "Loading document-term matrix..." ) ; FileInputStream fis = new FileInputStream ( sDocumentMatrix ) ; ObjectInputStream ois = new ObjectInputStream ( fis ) ; dtm = ( int [ ] [ ] ) ois . readObject ( ) ; tmIdxToStr = ( TreeMap < Integer , String > ) ois . readObject ( ) ; ois . close ( ) ; fis . close ( ) ; bMatrixLoadedOK = true ; } catch ( Exception e ) { System . err . println ( "Could not load document term matrix." ) ; } } ; if ( ! bMatrixLoadedOK ) { DocumentSet dm = new DocumentSet ( sInputDir , 1.0 ) ; dm . createSets ( false , 1.0 , bInputDirFlat ) ; System . err . print ( "Calculating document term matrix..." ) ; dtm = HierLDACaller . getDocumentTermMatrix ( dm . getTrainingSet ( ) , tmIdxToStr ) ; System . err . println ( "Done." ) ; System . err . println ( "Saving document-term matrix..." ) ; if ( sDocumentMatrix . length ( ) != 0 ) { try { FileOutputStream fos = new FileOutputStream ( sDocumentMatrix ) ; ObjectOutputStream oos = new ObjectOutputStream ( fos ) ; oos . writeObject ( dtm ) ; oos . writeObject ( tmIdxToStr ) ; oos . close ( ) ; fos . close ( ) ; } catch ( Exception e ) { System . err . println ( "Could not save document term matrix." ) ; e . printStackTrace ( System . err ) ; } } } HierLDAGibbs hierLDA = null ; boolean bHLDALoadedOK = false ; if ( ( sModel . length ( ) != 0 ) && ! bRecalc ) { File fLDAModel = new File ( sModel ) ; try { System . err . println ( "Loading HLDA model..." ) ; FileInputStream fis = new FileInputStream ( fLDAModel ) ; ObjectInputStream ois = new ObjectInputStream ( fis ) ; hierLDA = ( HierLDAGibbs ) ois . readObject ( ) ; ois . close ( ) ; fis . close ( ) ; bHLDALoadedOK = true ; } catch ( Exception e ) { System . err . println ( "Could not load HLDA model..." ) ; hierLDA = new HierLDAGibbs ( iLevels , dtm , dAlpha , dBeta ) ; System . err . println ( "Performing HLDA sampling..." ) ; hierLDA . setProgressIndicator ( cnlReporting ) ; hierLDA . performGibbs ( iIterations , iBurnInIterations , Runtime . getRuntime ( ) . availableProcessors ( ) ) ; } } else { hierLDA = new HierLDAGibbs ( iLevels , dtm , dAlpha , dBeta ) ; hierLDA . setProgressIndicator ( cnlReporting ) ; System . err . println ( "Performing HLDA sampling..." ) ; hierLDA . performGibbs ( iIterations , iBurnInIterations , Runtime . getRuntime ( ) . availableProcessors ( ) ) ; } if ( ( sModel . length ( ) != 0 ) && ( ! bHLDALoadedOK ) ) { try { System . err . println ( "Saving HLDA model..." ) ; FileOutputStream fos = new FileOutputStream ( sModel ) ; ObjectOutputStream oos = new ObjectOutputStream ( fos ) ; oos . writeObject ( hierLDA ) ; oos . close ( ) ; fos . close ( ) ; } catch ( Exception e ) { System . err . println ( "Could not save document term matrix." ) ; e . printStackTrace ( System . err ) ; } } System . err . println ( "Initializing and training grammaticality estimator..." ) ; grammaticalityEstimator ge = new grammaticalityEstimator ( sInputDir , 1 , - 1 , 1 , 3 , 2 , bInputDirFlat ) ; ge . train ( ) ; System . err . println ( "Initializing text generator..." ) ; HLDATextGenerator tg = new HLDATextGenerator ( hierLDA , new DistributionDocumentEvaluator ( tmIdxToStr , ge ) , tmIdxToStr ) ; for ( int iGramVinc = 1 ; iGramVinc < 2 ; iGramVinc ++ ) { System . err . println ( "Creating text... Grammar rank " + iGramVinc ) ; Vector < Integer > vText = tg . generateNormalText ( iTextMeanSize , iGramVinc ) ; String sText = tg . getVectorToText ( vText ) ; sText = sText . replaceAll ( "_/" , " " ) ; sText = sText . replaceAll ( "\\\\_" , " " ) ; System . out . println ( sText ) ; System . err . println ( "Grammaticality:" + ge . getNormality ( sText ) ) ; } System . err . println ( "Complete." ) ; System . exit ( 0 ) ; }

Método principal de la utilidad que crea un texto aleatorio, basado en un modelo corpus.


public synchronized CompletableFuture < Void > close  ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Closing producer {} -- isClosed={}" , this , isClosed ) ; } if ( ! isClosed ) { isClosed = true ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Trying to close producer {} -- cnxIsActive: {} -- pendingPublishAcks: {}" , this , cnx . isActive ( ) , pendingPublishAcks ) ; } if ( ! cnx . isActive ( ) || pendingPublishAcks == 0 ) { closeNow ( ) ; } } return closeFuture ; }

Cierre el productor inmediatamente si: a.La conexión se cae b.Es un closor agraciado y no quedan ACK PADRY PENDIENTE PENDIENTES MÁS ESPERENDO PENDIENTE PUBLICAR ACKS


private void message  ( String type , SAXParseException exception ) { String filename = exception . getSystemId ( ) ; if ( filename . startsWith ( baseURI ) ) { filename = filename . substring ( baseURI . length ( ) ) ; } System . out . print ( type + ":" + filename + ":" + exception . getLineNumber ( ) ) ; if ( exception . getColumnNumber ( ) > 0 ) { System . out . print ( ":" + exception . getColumnNumber ( ) ) ; } System . out . println ( ":" + exception . getMessage ( ) ) ; }


public void write  ( Writer w ) throws IOException  { boolean useOriginal = ( originalData != null && disabledSamples . size ( ) > 0 ) ; write ( w , useOriginal ) ; }


public void openPageByTitle  ( String title ) { SiteAdminGridRow row = getRowByTitle ( title ) ; if ( row != null ) { row . open ( ) ; } else { String msg = String . format ( "Could not find a page titled %s" , title ) ; throw new IllegalArgumentException ( msg ) ; } }

Abre la página con título proporcionado al hacer doble clic en su fila.


public boolean equals  ( Object o ) { if ( ! ( o instanceof Schema ) ) return false ; Schema s = ( Schema ) o ; if ( m_size != s . getColumnCount ( ) ) return false ; for ( int i = 0 ; i < m_size ; ++ i ) { if ( ! ( m_names [ i ] . equals ( s . getColumnName ( i ) ) && m_types [ i ] . equals ( s . getColumnType ( i ) ) && m_dflts [ i ] . equals ( s . getDefault ( i ) ) ) ) { return false ; } } return true ; }

Compara este esquema con otro para la igualdad.


public static @ ColorInt int scrimify  ( @ ColorInt int color , boolean isDark , @ FloatRange ( from = 0f , to = 1f ) float lightnessMultiplier ) { float [ ] hsl = new float [ 3 ] ; android . support . v4 . graphics . ColorUtils . colorToHSL ( color , hsl ) ; if ( ! isDark ) { lightnessMultiplier += 1f ; } else { lightnessMultiplier = 1f - lightnessMultiplier ; } hsl [ 2 ] = MathUtils . constrain ( 0f , 1f , hsl [ 2 ] * lightnessMultiplier ) ; return android . support . v4 . graphics . ColorUtils . HSLToColor ( hsl ) ; }

Calcule una variante del color para hacerlo más adecuado para la información superpuesta.Los colores claros se aligerarán y los colores oscuros se oscurecerán.


private boolean parseOptions  ( ) throws IOException  { boolean valid ; if ( hasOption ( LOCALPROPFILE ) ) { SystemConfiguration . loadPropsFromFile ( new File ( getOptionValue ( LOCALPROPFILE ) ) ) ; } else if ( hasOption ( HDFSPROPDIR ) ) { FileSystem fs = FileSystem . get ( new Configuration ( ) ) ; SystemConfiguration . loadPropsFromHDFSDir ( getOptionValue ( HDFSPROPDIR ) , fs ) ; } else if ( hasOption ( HDFSPROPFILE ) ) { FileSystem fs = FileSystem . get ( new Configuration ( ) ) ; SystemConfiguration . loadPropsFromFile ( getOptionValue ( HDFSPROPFILE ) , fs ) ; } else { for ( String prop : ResponderProps . PROPSLIST ) { if ( hasOption ( prop ) ) { SystemConfiguration . setProperty ( prop , getOptionValue ( prop ) ) ; } } } valid = ResponderProps . validateResponderProperties ( ) ; return valid ; }

Método para analizar y validar las opciones proporcionadas.


public Matrix uminus  ( ) { 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 ] = - A [ i ] [ j ] ; } } return X ; }


@ Override public void endCDATA  ( Augmentations augs ) throws XNIException { fInCDATA = false ; if ( fDocumentHandler != null ) { fDocumentHandler . endCDATA ( augs ) ; } }


protected static double evaluate  ( double [ ] coefficients , double argument ) throws MathIllegalArgumentException , NullArgumentException { MathUtils . checkNotNull ( coefficients ) ; int n = coefficients . length ; if ( n == 0 ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . EMPTY_POLYNOMIALS_COEFFICIENTS_ARRAY ) ; } double result = coefficients [ n - 1 ] ; for ( int j = n - 2 ; j >= 0 ; j -- ) { result = argument * result + coefficients [ j ] ; } return result ; }

Utiliza el método de Horner para evaluar el polinomio con los coeficientes dados en el argumento.


@ Override public WebElement findElementByTagName  ( String tagName ) { return ( ( FindsByTagName ) super . getWrappedDriver ( ) ) . findElementByTagName ( tagName ) ; }

Encuentra el elemento por nombre de etiqueta.


public CopyOnWriteArrayList ( Object [ ] toCopyIn ) { copyIn ( toCopyIn , 0 , toCopyIn . length ) ; }

Crea una lista sosteniendo una copia de la matriz dada.


protected List < String > parseArgStringMacro  ( CharSequence argStr ) throws ParseException { List < String > argList = new ArrayList < > ( ) ; String [ ] args = argStr . toString ( ) . split ( "(\\s|\\n)+" ) ; for ( String arg : args ) { String [ ] parts = arg . split ( "=" ) ; String name = parts [ 0 ] ; argList . add ( name ) ; } return argList ; }

FixMe: ¡Esto solo es compatible con la sintaxis muy básica!Se romperá fácilmente !!!Los espacios lo romperán !!!¡¡¡Es terrible!!!<P> Nota: omite intencionalmente los valores predeterminados porque generalmente engañan.


public boolean hasProgramStatus  ( ) { return programStatus != null ; }

Indica si estos parámetros especifican un estado del programa.


public static boolean isValidNCName  ( String ncName ) { final int length = ncName . length ( ) ; if ( length == 0 ) { return false ; } char ch = ncName . charAt ( 0 ) ; if ( ! isNCNameStart ( ch ) ) { return false ; } for ( int i = 1 ; i < length ; ++ i ) { ch = ncName . charAt ( i ) ; if ( ! isNCName ( ch ) ) { return false ; } } return true ; }

Compruebe si una cadena es un nombre NCNAME válido de acuerdo con [4] de la Recomendación XML NamesFaces 1.0


public void configureDetailsArea  ( DetailsAreaConfiguration detailsAreaConfiguration , int location ) { DisplayArea displayArea = getDisplayArea ( location ) ; if ( displayArea != null ) { displayArea . setCaption ( detailsAreaConfiguration . getName ( ) ) ; displayArea . setClosable ( detailsAreaConfiguration . isClosable ( ) ) ; } }

Configura las propiedades del área de detalles.


protected boolean isValidLine  ( String line ) { return true ; }

Método sestrado para validar cada línea que se devuelve.Esta implementación siempre devuelve verdadera.


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

Salida de depuración: habilita la salida de depuración, si corresponde, si está habilitada, el hollín puede imprimir advertencias y mensajes útiles para depurar el módulo Shimple.Habilitado automáticamente por el interruptor de depuración global.


void processIncludeActions  ( Element parentElement , List < ? extends Element > preInclElements , List < ? extends Element > postInclElements , List < ModelAction > actions , String currResource , boolean processIncludes , CurrentMenuDefBuildArgs currentMenuDefBuildArgs , GeneralBuildArgs genBuildArgs ) { final boolean useCache = true ; final boolean cacheConsume = false ; if ( processIncludes ) { List < Element > actionInclElements = new ArrayList < Element > ( ) ; if ( preInclElements != null ) { actionInclElements . addAll ( preInclElements ) ; } actionInclElements . addAll ( UtilXml . childElementList ( parentElement , "include-elements" ) ) ; actionInclElements . addAll ( UtilXml . childElementList ( parentElement , "include-actions" ) ) ; if ( postInclElements != null ) { actionInclElements . addAll ( postInclElements ) ; } for ( Element actionInclElement : getMergedIncludeDirectives ( actionInclElements , currResource ) ) { String inclMenuName = actionInclElement . getAttribute ( "menu-name" ) ; String inclResource = actionInclElement . getAttribute ( "resource" ) ; String inclRecursive = actionInclElement . getAttribute ( "recursive" ) ; if ( inclRecursive . isEmpty ( ) ) { inclRecursive = "full" ; } String nextResource = UtilValidate . isNotEmpty ( inclResource ) ? inclResource : currResource ; if ( "no" . equals ( inclRecursive ) || "includes-only" . equals ( inclRecursive ) || "extends-only" . equals ( inclRecursive ) || "full" . equals ( inclRecursive ) ) { Element includedMenuElem = loadIncludedMenu ( inclMenuName , inclResource , parentElement , currResource , genBuildArgs . menuElemCache , useCache , cacheConsume ) ; ModelMenu includedMenuModel = getMenuDefinition ( inclResource , inclMenuName , currResource , parentElement , genBuildArgs ) ; CurrentMenuDefBuildArgs includedNextCurrentMenuDefBuildArgs = new CurrentMenuDefBuildArgs ( includedMenuModel != null ? includedMenuModel : this ) ; if ( includedMenuElem != null ) { if ( "extends-only" . equals ( inclRecursive ) || "full" . equals ( inclRecursive ) ) { String extendedResource = includedMenuElem . getAttribute ( "extends-resource" ) ; String extendedMenuName = includedMenuElem . getAttribute ( "extends" ) ; String extendedNextResource = UtilValidate . isNotEmpty ( extendedResource ) ? extendedResource : nextResource ; if ( UtilValidate . isNotEmpty ( extendedMenuName ) ) { Element extendedMenuElem = loadIncludedMenu ( extendedMenuName , extendedResource , includedMenuElem , nextResource , genBuildArgs . menuElemCache , useCache , cacheConsume ) ; if ( extendedMenuElem != null ) { ModelMenu extendedMenuModel = getMenuDefinition ( extendedResource , extendedMenuName , nextResource , includedMenuElem , genBuildArgs ) ; CurrentMenuDefBuildArgs extendedNextCurrentMenuDefBuildArgs = new CurrentMenuDefBuildArgs ( extendedMenuModel != null ? extendedMenuModel : this ) ; processIncludeActions ( extendedMenuElem , null , null , actions , extendedNextResource , true , extendedNextCurrentMenuDefBuildArgs , genBuildArgs ) ; } else { Debug . logError ( "Failed to find (via include-actions or include-elements) parent menu definition '" + extendedMenuName + "' in resource '" + extendedNextResource + "'" , module ) ; } } } if ( "includes-only" . equals ( inclRecursive ) || "full" . equals ( inclRecursive ) ) { processIncludeActions ( includedMenuElem , null , null , actions , nextResource , true , includedNextCurrentMenuDefBuildArgs , genBuildArgs ) ; } else { processIncludeActions ( includedMenuElem , null , null , actions , nextResource , false , includedNextCurrentMenuDefBuildArgs , genBuildArgs ) ; } } else { Debug . logError ( "Failed to find include-actions or include-elements menu definition '" + inclMenuName + "' in resource '" + nextResource + "'" , module ) ; } } else { Debug . logError ( "Unrecognized include-actions or include-elements recursive mode: " + inclRecursive , module ) ; } } } Element actionsElement = UtilXml . firstChildElement ( parentElement , "actions" ) ; if ( actionsElement != null ) { actions . addAll ( ModelMenuAction . readSubActions ( this , actionsElement ) ) ; } }

Scipio: Los implementos incluyen acciones y acciones de lectura (se mudaron aquí).También incluye elementos.<P> FIXME: Esta interfaz de método y sus argumentos son un desastre.


@ Override public void reset  ( ) throws IOException  { fInputStream . reset ( ) ; }

Restablecer la secuencia.Si la corriente se ha marcado, intente reposicionarlo en la marca.Si la corriente no se ha marcado, intente restablecerlo de alguna manera apropiada para el flujo en particular, por ejemplo, reposicionándolo a su punto de partida.No todos los flujos de entrada de caracteres admiten la operación RESET () y algunos soportes de reinicio () sin la marca de soporte ().


@ ObjectiveCName ( "addToRegister:action:name:event:timeoutListener:timeoutDuration:" ) private void addToRegister  ( Topic topic , Actions action , String name , Event event , UtilTimeoutListener timeoutListener , int timeoutDuration ) { AckTimeout task = new AckTimeout ( topic , action , name , event , timeoutListener , timeoutDuration ) ; if ( this . state == ConnectionState . OPEN ) { ScheduledFuture scheduledFuture = executor . schedule ( task , timeoutDuration , TimeUnit . MILLISECONDS ) ; String uniqueName = this . getUniqueName ( topic , action , name ) ; register . put ( uniqueName , scheduledFuture ) ; } else { this . ackTimers . add ( task ) ; } }

Agrega el nombre unico al registro.Solo programe el temporizador si el estado de conexión está abierto, de lo contrario, se suma a la cola de AKS en espera.


public static void onSimpleFinishTalk  ( NpcAI2 npcAI , Creature creature ) { Npc owner = npcAI . getOwner ( ) ; if ( owner . isTargeting ( creature . getObjectId ( ) ) && npcAI . setSubStateIfNot ( AISubState . NONE ) ) { owner . setTarget ( null ) ; } }


public boolean isSelected  ( ) { ClusterViewer viewer = getViewer ( ) ; return viewer . getPcoaTab ( ) != null && viewer . getPcoaTab ( ) . isShowGroupsAsEllipses ( ) ; }


private int blockWidth  ( final int blockColumn ) { return ( blockColumn == blockColumns - 1 ) ? columns - blockColumn * BLOCK_SIZE : BLOCK_SIZE ; }


@ Override public synchronized void process  ( CAS tcas ) { final AnnotationComboIterator comboIterator = new AnnotationComboIterator ( tcas , this . sentenceType , this . tokenType ) ; for ( AnnotationIteratorPair annotationIteratorPair : comboIterator ) { final List < AnnotationFS > sentenceTokenAnnotationList = new LinkedList < AnnotationFS > ( ) ; final List < String > sentenceTokenList = new LinkedList < String > ( ) ; for ( AnnotationFS tokenAnnotation : annotationIteratorPair . getSubIterator ( ) ) { sentenceTokenAnnotationList . add ( tokenAnnotation ) ; sentenceTokenList . add ( tokenAnnotation . getCoveredText ( ) ) ; } final List < String > posTags = this . posTagger . tag ( sentenceTokenList ) ; double posProbabilities [ ] = null ; if ( this . probabilityFeature != null ) { posProbabilities = this . posTagger . probs ( ) ; } final Iterator < String > posTagIterator = posTags . iterator ( ) ; final Iterator < AnnotationFS > sentenceTokenIterator = sentenceTokenAnnotationList . iterator ( ) ; int index = 0 ; while ( posTagIterator . hasNext ( ) && sentenceTokenIterator . hasNext ( ) ) { final String posTag = posTagIterator . next ( ) ; final AnnotationFS tokenAnnotation = sentenceTokenIterator . next ( ) ; tokenAnnotation . setStringValue ( this . posFeature , posTag ) ; if ( posProbabilities != null ) { tokenAnnotation . setDoubleValue ( this . posFeature , posProbabilities [ index ] ) ; } index ++ ; } if ( this . logger . isLoggable ( Level . FINER ) ) { final StringBuilder sentenceWithPos = new StringBuilder ( ) ; sentenceWithPos . append ( "\"" ) ; for ( final Iterator < AnnotationFS > it = sentenceTokenAnnotationList . iterator ( ) ; it . hasNext ( ) ; ) { final AnnotationFS token = it . next ( ) ; sentenceWithPos . append ( token . getCoveredText ( ) ) ; sentenceWithPos . append ( '\\' ) ; sentenceWithPos . append ( token . getStringValue ( this . posFeature ) ) ; sentenceWithPos . append ( ' ' ) ; } if ( sentenceWithPos . length ( ) > 1 ) sentenceWithPos . setLength ( sentenceWithPos . length ( ) - 1 ) ; sentenceWithPos . append ( "\"" ) ; this . logger . log ( Level . FINER , sentenceWithPos . toString ( ) ) ; } } }

Realiza el etiquetado pos en el objeto TCA dado.


private void transformToLowerBiDiagonal  ( ) { final int m = householderVectors . length ; final int n = householderVectors [ 0 ] . length ; for ( int k = 0 ; k < m ; k ++ ) { final double [ ] hK = householderVectors [ k ] ; double xNormSqr = 0 ; for ( int j = k ; j < n ; ++ j ) { final double c = hK [ j ] ; xNormSqr += c * c ; } final double a = ( hK [ k ] > 0 ) ? - FastMath . sqrt ( xNormSqr ) : FastMath . sqrt ( xNormSqr ) ; main [ k ] = a ; if ( a != 0.0 ) { hK [ k ] -= a ; for ( int i = k + 1 ; i < m ; ++ i ) { final double [ ] hI = householderVectors [ i ] ; double alpha = 0 ; for ( int j = k ; j < n ; ++ j ) { alpha -= hI [ j ] * hK [ j ] ; } alpha /= a * householderVectors [ k ] [ k ] ; for ( int j = k ; j < n ; ++ j ) { hI [ j ] -= alpha * hK [ j ] ; } } } if ( k < m - 1 ) { final double [ ] hKp1 = householderVectors [ k + 1 ] ; xNormSqr = 0 ; for ( int i = k + 1 ; i < m ; ++ i ) { final double c = householderVectors [ i ] [ k ] ; xNormSqr += c * c ; } final double b = ( hKp1 [ k ] > 0 ) ? - FastMath . sqrt ( xNormSqr ) : FastMath . sqrt ( xNormSqr ) ; secondary [ k ] = b ; if ( b != 0.0 ) { hKp1 [ k ] -= b ; for ( int j = k + 1 ; j < n ; ++ j ) { double beta = 0 ; for ( int i = k + 1 ; i < m ; ++ i ) { final double [ ] hI = householderVectors [ i ] ; beta -= hI [ j ] * hI [ k ] ; } beta /= b * hKp1 [ k ] ; for ( int i = k + 1 ; i < m ; ++ i ) { final double [ ] hI = householderVectors [ i ] ; hI [ j ] -= beta * hI [ k ] ; } } } } } }

Transforme la matriz original para bajar la forma bi-diagonal.<P> La transformación se realiza utilizando transformaciones alternativas de casas de campo en filas y columnas. </ p>


@ SuppressWarnings ( "unchecked" ) public static < R > JoinObservable < R > when  ( Plan < R > p1 , Plan < R > p2 , Plan < R > p3 , Plan < R > p4 , Plan < R > p5 , Plan < R > p6 , Plan < R > p7 , Plan < R > p8 ) { return from ( JoinPatterns . when ( p1 , p2 , p3 , p4 , p5 , p6 , p7 , p8 ) ) ; }

Se unen a los resultados de ocho patrones a través de sus planes.<p> <img ancho = "640" src = "https://raw.github.com/wiki/reactivex/rxjava/images/rx-operators/and_then_when.png" alt = "">


public VideoGetCommentsQuery offset  ( Integer value ) { return unsafeParam ( "offset" , value ) ; }

Offset se necesita para devolver un subconjunto específico de comentarios.


public void initPlayerStateUI  ( ) { if ( ! playableMediaItem . getBitrate ( ) . isEmpty ( ) ) { tvTrackInfo . setText ( playableMediaItem . getBitrate ( ) + getString ( R . string . kbps ) ) ; } else { tvTrackInfo . setText ( "" ) ; } if ( universalPlayer . isPrepaired ) { ( ( IToolbarHolder ) getActivity ( ) ) . getToolbar ( ) . setTitle ( R . string . now_paying ) ; if ( btnPlay . isPlay ( ) && universalPlayer . isPlaying ( ) ) { btnPlay . toggle ( ) ; } else if ( ! btnPlay . isPlay ( ) && ! universalPlayer . isPlaying ( ) ) { btnPlay . toggle ( ) ; } } else { ( ( IToolbarHolder ) getActivity ( ) ) . getToolbar ( ) . setTitle ( R . string . buffering ) ; if ( ! btnPlay . isPlay ( ) ) { btnPlay . toggle ( ) ; } } }

Inite la interfaz de usuario del jugador según el estado actual del jugador, llámelo después de ConfigurePlayer ().


@ PostConstruct public void init  ( ) { LOGGER . info ( "Initializing Process cache..." ) ; commonInit ( ) ; doPostConfigurationOfProcessControlTags ( ) ; LOGGER . info ( "... Process cache initialization complete." ) ; }

Ejecutar en la inicialización de frijoles.Establece el campo EHCACHE en el caché apropiado y llama la rutina de precarga si es necesario.


protected void propagate  ( D sourceVal , N target , D targetVal , N relatedCallSite , boolean isUnbalancedReturn ) { propagate ( sourceVal , target , targetVal , relatedCallSite , isUnbalancedReturn , false ) ; }

Propaga el flujo más abajo en el súper gráfico explotado.


private void checkServerResponseCode  ( HttpURLConnection urlConnection ) throws RequestFailureException { try { if ( urlConnection . getResponseCode ( ) != 200 ) { throw new RequestFailureException ( "Received " + urlConnection . getResponseCode ( ) + " code instead of 200 (OK) from the server.  Aborting." ) ; } } catch ( IOException e ) { throw new RequestFailureException ( "Failed to read response code from server: " , e ) ; } }

Confirma que el servidor Omaha envió un código "OK".


public static SM_SYSTEM_MESSAGE STR_MSG_SOLDOUT_ITEM_MULTI  ( String value1 , String value0s ) { return new SM_SYSTEM_MESSAGE ( 1300791 , value1 , value0s ) ; }


public static Locale parseLocale  ( String localeString ) { if ( UtilValidate . isEmpty ( localeString ) ) { return null ; } Locale locale = null ; if ( localeString . length ( ) == 2 ) { locale = new Locale ( localeString ) ; } else if ( localeString . length ( ) == 5 ) { String language = localeString . substring ( 0 , 2 ) ; String country = localeString . substring ( 3 , 5 ) ; locale = new Locale ( language , country ) ; } else if ( localeString . length ( ) > 6 ) { String language = localeString . substring ( 0 , 2 ) ; String country = localeString . substring ( 3 , 5 ) ; String extension = localeString . substring ( 6 ) ; locale = new Locale ( language , country , extension ) ; } else { Debug . logWarning ( "Do not know what to do with the localeString [" + localeString + "], should be length 2, 5, or greater than 6, returning null" , module ) ; } return locale ; }

Analizar un objeto locale de una localidad


public final TestSubscriber < T > configureValuesTimeout  ( Duration timeout ) { this . valuesTimeout = timeout ; return this ; }

Configure el tiempo de espera en segundos para esperar los siguientes valores a recibir (3 segundos de forma predeterminada).


public DTW ( double [ ] [ ] signal , double [ ] [ ] reference , String distanceFunction ) { this . signal = signal ; this . reference = reference ; this . distanceFunction = distanceFunction ; setCost ( dpDistance ( ) ) ; }

Dinámico Tiempo Warping (DTW) Señal de costo y Distancia de referenciaFunction = {"Euclidean" o "Absolute"}


public static Observable < Float > createFrom1D  ( Observable < Float > stream ) { final JKalman kalman = new JKalman ( 2 , 1 ) ; final Matrix m = new Matrix ( 1 , 1 ) ; double [ ] [ ] tr = { { 1 , 0 } , { 0 , 1 } } ; kalman . setTransition_matrix ( new Matrix ( tr ) ) ; kalman . setError_cov_post ( kalman . getError_cov_post ( ) . identity ( ) ) ; return Observable . create ( null ) ; }

Utiliza la corriente de valor de flotador utilizando el filtro de Kalman.


@ Controller ( events = EventType . FILE_SHARED ) public void onFileShared  ( WebSocketSession session , Event event ) { logger . info ( "File shared: {}" , event ) ; }

Se invoca cuando Bot recibe un evento de tipo de archivo compartido.Nota: No puede responder a este evento, ya que SLACK no envía un ID de canal para este tipo de evento.Puede obtener más información sobre <a href="https://api.slack.com/events/file_shared"> file_shared </a> evento de la documentación de la API de Slack.


public Role withDefaults  ( ) { return this ; }


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

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


public void removeConnection  ( final IConnectionWithReconnect connection ) { synchronized ( connections ) { connections . remove ( connection ) ; } }


private void addCalendarEvent  ( String summary , Date start , boolean allDay , Date end , String location , String description , String [ ] attendees ) { Intent intent = new Intent ( Intent . ACTION_INSERT ) ; intent . setType ( "vnd.android.cursor.item/event" ) ; long startMilliseconds = start . getTime ( ) ; intent . putExtra ( "beginTime" , startMilliseconds ) ; if ( allDay ) { intent . putExtra ( "allDay" , true ) ; } long endMilliseconds ; if ( end == null ) { if ( allDay ) { endMilliseconds = startMilliseconds + 24 * 60 * 60 * 1000 ; } else { endMilliseconds = startMilliseconds ; } } else { endMilliseconds = end . getTime ( ) ; } intent . putExtra ( "endTime" , endMilliseconds ) ; intent . putExtra ( "title" , summary ) ; intent . putExtra ( "eventLocation" , location ) ; intent . putExtra ( "description" , description ) ; if ( attendees != null ) { intent . putExtra ( Intent . EXTRA_EMAIL , attendees ) ; } try { rawLaunchIntent ( intent ) ; } catch ( ActivityNotFoundException anfe ) { Log . w ( TAG , "No calendar app available that responds to " + Intent . ACTION_INSERT ) ; intent . setAction ( Intent . ACTION_EDIT ) ; launchIntent ( intent ) ; } }

Envía una intención de crear un nuevo evento de calendario preparando la UI del evento Agregar.Las versiones anteriores del sistema tienen un error en el que no se completará el título del evento.


private static ResultPoint [ ] findVertices  ( BitMatrix matrix , int startRow , int startColumn ) { int height = matrix . getHeight ( ) ; int width = matrix . getWidth ( ) ; ResultPoint [ ] result = new ResultPoint [ 8 ] ; copyToResult ( result , findRowsWithPattern ( matrix , height , width , startRow , startColumn , START_PATTERN ) , INDEXES_START_PATTERN ) ; if ( result [ 4 ] != null ) { startColumn = ( int ) result [ 4 ] . getX ( ) ; startRow = ( int ) result [ 4 ] . getY ( ) ; } copyToResult ( result , findRowsWithPattern ( matrix , height , width , startRow , startColumn , STOP_PATTERN ) , INDEXES_STOP_PATTERN ) ; return result ; }

Localice los vértices y el área de Codewords de un blob negro con los patrones de inicio y detención de los localizadores.


@ Override protected void onCreate  ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_login ) ; }


public boolean isCritical  ( ) { return true ; }

¿Es este un comando crítico que solo se puede ejecutar cuando no se está ejecutando otro comando?


public CacheHeader ( String key , Entry entry ) { this . key = key ; this . size = entry . data . length ; this . etag = entry . etag ; this . serverDate = entry . serverDate ; this . lastModified = entry . lastModified ; this . ttl = entry . ttl ; this . softTtl = entry . softTtl ; this . responseHeaders = entry . responseHeaders ; }

Instantánea un nuevo objeto de CacheHeader


private static void write  ( GigaSpace space , Phrase phrase ) { LeaseContext < Phrase > context = space . write ( phrase ) ; if ( context . getVersion ( ) == 1 ) { System . out . println ( "write - " + phrase ) ; } else { System . out . println ( "update - " + phrase ) ; } }

Escribir (o actualizar) una entidad en la cuadrícula de datos


public void onCreate  ( Bundle savedInstanceState ) { mSlidingMenu = ( SlidingMenu ) LayoutInflater . from ( mActivity ) . inflate ( R . layout . slidingmenumain , null ) ; }

Establece MSLIDESDMENU como un recién inflado de SlidingMenu.Debe llamarse dentro de la actividad de Activitiy ()


@ Nullable public FuncallExpression findRule  ( String name ) { for ( FuncallExpression expr : findChildrenByClass ( FuncallExpression . class ) ) { String ruleName = expr . getNameArgumentValue ( ) ; if ( name . equals ( ruleName ) ) { return expr ; } } return null ; }

Encuentra una regla de nivel superior con un argumento de palabra clave "Nombre" con el valor dado.


public HashChain ( ) { firstItem = lastItem = null ; }


public static final boolean isValidType  ( final short valueDeadbandType ) { return valueDeadbandType >= DEADBAND_NONE && valueDeadbandType <= DEADBAND_PROCESS_RELATIVE_VALUE_DESCR_CHANGE ; }

Compruebe si un parámetro es una banda muerta válida


private < T > T  send ( String method , @ Nullable Object entity ) { try { if ( entity == null ) { builder ( ) . method ( method ) ; } else { builder ( ) . method ( method , shadingSafeEntity ( entity ) ) ; } return null ; } catch ( UniformInterfaceException e ) { throw asEmoClientException ( e ) ; } }

Envía la entidad solicitada opcionalmente con el método provisto.


public synchronized int write  ( InputStream in ) throws IOException { int readCount = 0 ; int inBufferPos = count - filledBufferSum ; int n = in . read ( currentBuffer , inBufferPos , currentBuffer . length - inBufferPos ) ; while ( n != - 1 ) { readCount += n ; inBufferPos += n ; count += n ; if ( inBufferPos == currentBuffer . length ) { needNewBuffer ( currentBuffer . length ) ; inBufferPos = 0 ; } n = in . read ( currentBuffer , inBufferPos , currentBuffer . length - inBufferPos ) ; } return readCount ; }

Escribe todo el contenido del flujo de entrada especificado a este flujo de bytes.Los bytes de la corriente de entrada se leen directamente en los búferes internos de esta transmisión.


public DUCDocumentInfo ( String sDocName ) { sDocName = new File ( sDocName ) . getName ( ) ; if ( isDUCDoc ( sDocName ) ) { String [ ] sArr = sDocName . split ( "[.]" ) ; Topic = sArr [ 0 ] ; Length = Integer . valueOf ( sArr [ 2 ] ) . intValue ( ) ; Selector = sArr [ 3 ] ; Assessor = sArr [ 3 ] ; Summarizer = sArr [ 4 ] ; } else { Topic = "NA" ; Length = - 1 ; Selector = "NA" ; Assessor = "NA" ; Summarizer = "NA" ; } }

Crea una nueva instancia de Ducdocumentinfo.También se puede utilizar para documentos no DUC.


public void clear  ( ) { stateCount ++ ; firstItem = lastItem = null ; map . clear ( ) ; }

Borra los contenidos del Hashchain actual.


private double cov  ( double [ ] vec1 , double [ ] vec2 ) { double result = 0 ; int dim = vec1 . length ; if ( vec2 . length != dim ) ( new IllegalArgumentException ( "vectors are not of same length" ) ) . printStackTrace ( ) ; double meanVec1 = mean ( vec1 ) , meanVec2 = mean ( vec2 ) ; for ( int i = 0 ; i < dim ; i ++ ) { result += ( vec1 [ i ] - meanVec1 ) * ( vec2 [ i ] - meanVec2 ) ; } return result / Math . max ( 1 , dim - 1 ) ; }

Calcule la covarianza entre los dos vectores.


public TransferableDataItem ( Map < NodeInterface , TreePath > selectedData ) { internalPopulate ( selectedData ) ; }

Instantánea un nuevo elemento de datos transferibles.


public void readBookiesBlocking  ( ) throws InterruptedException , KeeperException  { bookieWatcher . readBookiesBlocking ( ) ; }

Forzar una lectura a ZookeEPER para obtener la lista de las LIBRAS.


@ Override public void doctypeDecl  ( String rootElement , String publicId , String systemId , Augmentations augs ) throws XNIException { if ( ! fDeferNodeExpansion ) { if ( fDocumentImpl != null ) { fDocumentType = fDocumentImpl . createDocumentType ( rootElement , publicId , systemId ) ; fCurrentNode . appendChild ( fDocumentType ) ; } } else { fDocumentTypeIndex = fDeferredDocumentImpl . createDeferredDocumentType ( rootElement , publicId , systemId ) ; fDeferredDocumentImpl . appendChild ( fCurrentNodeIndex , fDocumentTypeIndex ) ; } }

Notifica la presencia de la línea DOCTYPE en el documento.


public static SM_SYSTEM_MESSAGE STR_MERCENARY_CANT_ORDER_BY_TOO_DISTANCE  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400484 , value0 ) ; }

Estás demasiado lejos de% 0 para emitir un pedido.


public static < T > List < T > toList  ( T [ ] array ) { return Arrays . asList ( array ) ; }


@ MediumTest public void testPreconditions  ( ) { assertNotNull ( mLibTextView1 ) ; assertNotNull ( mLibTextView2 ) ; }

El nombre 'Pruebe las condiciones previas' es una convención para señalar que si esta prueba no pasa, el caso de prueba no se configuró correctamente y podría explicar todas las fallas en otras pruebas.No se garantiza que esto se ejecute antes de otras pruebas, ya que Junit usa la reflexión para encontrar las pruebas.


protected StatsGetPostReachQuery postId  ( int value ) { return unsafeParam ( "post_id" , value ) ; }

Identificación de poste de pared.Tenga en cuenta que las estadísticas están disponibles solo para "300" las últimas publicaciones (más nuevas) en un muro comunitario.


public GroupsSearchQuery search  ( UserActor actor , String q ) { return new GroupsSearchQuery ( getClient ( ) , actor , q ) ; }


public Grammar parseGrammar  ( String type , XMLInputSource is ) throws XNIException , IOException { if ( type . equals ( XMLGrammarDescription . XML_SCHEMA ) ) { return parseXMLSchema ( is ) ; } else if ( type . equals ( XMLGrammarDescription . XML_DTD ) ) { return parseDTD ( is ) ; } return null ; }

Analice una gramática de una ubicación identificada por un XMlinPutSource.Este método también agrega esta gramática al XMLGrammarPool.


public boolean useClusterSchema  ( ) { return ( _clusterSchema != null ? true : false ) ; }

Devuelva <CÓDIGO> Verdadero </ código> Si se usa esquema de clúster, de lo contrario <código> FALSO </ CODE>.


protected void writePalette  ( ) throws IOException  { out . write ( colorTab , 0 , colorTab . length ) ; int n = ( 3 * 256 ) - colorTab . length ; for ( int i = 0 ; i < n ; i ++ ) { out . write ( 0 ) ; } }


public String toString  ( ) { return "FileAudioPlayer" ; }


private void installSocksProxy  ( Dict proxySettings , ProtocolDispatchSelector ps ) { if ( isActive ( proxySettings . get ( "SOCKSEnable" ) ) ) { String proxyHost = ( String ) proxySettings . get ( "SOCKSProxy" ) ; int proxyPort = ( Integer ) proxySettings . get ( "SOCKSPort" ) ; ps . setSelector ( "socks" , new FixedSocksSelector ( proxyHost , proxyPort ) ) ; Logger . log ( getClass ( ) , LogLevel . TRACE , "OSX socks proxy is {0}:{1}" , proxyHost , proxyPort ) ; } }

Construye un proxy de calcetines y configúralo para el protocolo de calcetines.


public void writeNullTerminatedString  ( byte [ ] bytes ) throws IOException { int pos = 0 ; while ( pos < bytes . length ) { if ( bytes [ pos ] == 0 ) break ; pos ++ ; } if ( pos > 0 ) write ( bytes , 0 , pos ) ; write ( ( byte ) 0 ) ; }

Escribe bytes como una cadena terminada por nulo


boolean aboutEquals  ( float moduleSize , float i , float j ) { if ( Math . abs ( i - getY ( ) ) <= moduleSize && Math . abs ( j - getX ( ) ) <= moduleSize ) { float moduleSizeDiff = Math . abs ( moduleSize - estimatedModuleSize ) ; return moduleSizeDiff <= 1.0f || moduleSizeDiff <= estimatedModuleSize ; } return false ; }

Determina si este patrón de alineación "sobre es igual a" un patrón de alineación en la posición y el tamaño establecido: lo que significa, está en casi el mismo centro con casi el mismo tamaño.


@ Override public Void call  ( ) throws Exception  { try { NodeHolder nodeHolder = processDataRows ( dataRows ) ; int indexInNodeHolderArray = ( sequenceNumber - 1 ) % numberOfCores ; blockletDataHolder . put ( nodeHolder , indexInNodeHolderArray ) ; return null ; } catch ( Throwable throwable ) { consumerExecutorService . shutdownNow ( ) ; resetBlockletProcessingCount ( ) ; throw new CarbonDataWriterException ( throwable . getMessage ( ) ) ; } }

Calcula un resultado, o arroja una excepción si no puede hacerlo.


protected void onDownloadFailed  ( String fileName ) { mDownloadSnackbarController . onDownloadFailed ( fileName ) ; }


public String geom_verify_name  ( ) { return soot . PhaseOptions . getString ( options , "geom-verify-name" ) ; }

Archivo de verificación - nombre de archivo para el archivo de verificación.Si desea comparar la precisión de los puntos: a los resultados con otros solucionadores (por ejemplo, PADDLE), puede usar el 'archivo de verificación' para especificar la lista de métodos (Formato de firma del método de hollín) que sean accesibles por ese solucionador.Durante las evaluaciones internas (consulte la opción Geom-Eal), solo consideramos los métodos que son comunes a ambos solucionadores.


public boolean hasAttributes  ( ) { return attributes != null && ! attributes . isEmpty ( ) ; }

Indica si estos parámetros especifican los atributos.


@ Override public void element  ( String elementName , Augmentations augs ) throws XNIException { }

Un elemento referenciado en un modelo de contenido mixto o de niños.


@ Override public String object2Relation  ( String fieldType ) { if ( fieldType != null ) { if ( fieldType . equals ( "float" ) || fieldType . equals ( "java.lang.Float" ) ) { return "real" ; } if ( fieldType . equals ( "double" ) || fieldType . equals ( "java.lang.Double" ) ) { return "real" ; } } return null ; }

Si el tipo de campo pasado es flotante o doble, lo cambiará de forma real como tipo de columna.


private void dropTables  ( ) { List < String > tableNamesToDrop = findTablesToDrop ( ) ; dropTables ( tableNamesToDrop , mDb ) ; clearCopyInTableSchema ( tableNamesToDrop ) ; }

Deje caer las tablas que no existen en la lista de Mapeo para mantener la sincronización.


public void invalidateGraphicsRenderer  ( ) { myAndroidPreviewPanel . invalidateGraphicsRenderer ( ) ; }

Le dice al panel que necesita volver a cargar su contenido de Android y volver a pintar.


public boolean isDistinct  ( ) { return distinct ; }

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


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

Número máximo de pases: realice como máximo este número de iteraciones de refinamiento. Realice en la mayoría de esta cantidad de iteraciones de refinamiento.Cada iteración atraviesa a lo sumo (transversales / pasa) nodos.


public boolean supportLocale  ( String locale ) { return new File ( path + "/i18n/" + locale + ".lang" ) . exists ( ) ; }


@ NotNull public Emotion findEmotionSingleFace  ( @ NotNull String image ) { List < Emotion > emotions = emotionBuilder . emotionRecognition ( image ) . withResult ( ) ; if ( Utils . isEmpty ( emotions ) || emotions . size ( ) > 1 ) throw new SingleFaceNotFoundException ( Utils . isEmpty ( emotions ) ? 0 : emotions . size ( ) , "a single face was not present" ) ; return emotions . get ( 0 ) ; }

Encuentra una caras dentro de una imagen local.


public static CassandraThriftFacade forSeedsAndPort  ( String seeds , int defaultPort ) { final String seed = seeds . contains ( "," ) ? seeds . substring ( 0 , seeds . indexOf ( ',' ) ) : seeds ; HostAndPort host = HostAndPort . fromString ( seed ) . withDefaultPort ( defaultPort ) ; return new CassandraThriftFacade ( new TFramedTransport ( new TSocket ( host . getHostText ( ) , host . getPort ( ) ) ) ) ; }

Nota: <Código> Semillas </ Code> puede ser una sola lista de host o delimitados por comas.


public LeadsMetricHitQuery ( VkApiClient client , String data ) { super ( client , "leads.metricHit" , MetricHitResponse . class ) ; data ( data ) ; }

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


public VideoEditCommentQuery editComment  ( UserActor actor , int commentId ) { return new VideoEditCommentQuery ( getClient ( ) , actor , commentId ) ; }

Edita el texto de un comentario en un video.


public boolean halfEmpty  ( ) { return count * 2 < capacity && bufferMap . size ( ) == 1 && bufferMap . containsKey ( 0 ) ; }

Devuelve verdadero si hemos utilizado menos de la mitad del almacenamiento asignado.<p> incluye un cheque para asegurarse de que todos los búferes tengan nivel 0;Pero este debería ser siempre el caso.<p> Cuando este método devuelve VERDADERO, todos hemos consumido datos en el almacenamiento y espacio suficiente para hacer una copia del conjunto de datos combinados.


public void handleDirectUpdateSA  ( Context context , final ITemplateHolder template ) { ILockObject templateLock = null ; try { boolean makeWaitForInfo = ( template . getExpirationTime ( ) != 0 ) ; IEntryHolder entry = null ; try { if ( makeWaitForInfo ) template . setInitialIfExistSearchActive ( ) ; try { entry = _engine . getMatchedEntryAndOperateSA ( context , template , makeWaitForInfo , false ) ; } finally { if ( makeWaitForInfo ) template . resetInitialIfExistSearchActive ( ) ; } } catch ( TemplateDeletedException ex ) { return ; } if ( entry != null || template . isDeleted ( ) ) { return ; } if ( ( template . getExpirationTime ( ) == 0 ) ) { context . setOperationAnswer ( template , null , null ) ; return ; } if ( templateLock == null ) templateLock = getTemplateLockObject ( template ) ; synchronized ( templateLock ) { if ( template . hasAnswer ( ) ) return ; if ( ! template . isHasWaitingFor ( ) ) { context . setOperationAnswer ( template , null , null ) ; if ( ! template . isDeleted ( ) && template . isInCache ( ) ) { _cacheManager . removeTemplate ( context , template , false , true , false ) ; } return ; } } } catch ( Exception ex ) { if ( _logger . isLoggable ( Level . SEVERE ) ) { _logger . log ( Level . SEVERE , "Error handling update." , ex ) ; } if ( templateLock == null ) templateLock = getTemplateLockObject ( template ) ; synchronized ( templateLock ) { if ( ! template . hasAnswer ( ) ) context . setOperationAnswer ( template , null , ex ) ; if ( ! template . isDeleted ( ) && template . isInCache ( ) ) _cacheManager . removeTemplate ( context , template , false , true , false ) ; } } finally { if ( templateLock != null ) freeTemplateLockObject ( templateLock ) ; } }

Realice una actualización dada una plantilla que es la entrada actualizada.


private void createNodes  ( DefaultMutableTreeNode top ) { DefaultMutableTreeNode attributeNode = null ; DefaultMutableTreeNode kindNode ; DefaultMutableTreeNode toSelect = null ; String addedAttribute = "" ; for ( String attribute_kind : attribute2taxa2value . keySet ( ) ) { int pos = attribute_kind . indexOf ( ":" ) ; String attribute = attribute_kind . substring ( 0 , pos ) ; String kind = attribute_kind . substring ( pos + 1 , attribute_kind . length ( ) ) ; kindNode = new DefaultMutableTreeNode ( kind ) ; if ( ! attribute . equals ( addedAttribute ) ) { attributeNode = new DefaultMutableTreeNode ( attribute ) ; addedAttribute = attribute ; top . add ( attributeNode ) ; } Map < String , Number > taxa2values = attribute2taxa2value . get ( attribute_kind ) ; int nrOfReadsPerKind = 0 ; int nrOfReadsPerTaxon = 0 ; if ( doSortByAlpha ) { for ( String taxname : taxa2values . keySet ( ) ) { nrOfReadsPerTaxon = taxa2values . get ( taxname ) . intValue ( ) ; if ( nrOfReadsPerTaxon > 0 ) { nrOfReadsPerKind += nrOfReadsPerTaxon ; DefaultMutableTreeNode leaf = new DefaultMutableTreeNode ( taxname , false ) ; leaf . setUserObject ( leaf . getUserObject ( ) . toString ( ) + " [" + nrOfReadsPerTaxon + " Reads]" ) ; kindNode . add ( leaf ) ; if ( toSelect == null ) { selectedTaxon = taxname ; toSelect = leaf ; } } } } else { if ( doSortByNrOfReads ) { if ( attribute2SortedTaxValPair . containsKey ( attribute_kind ) ) { Pair pairTax2Val = attribute2SortedTaxValPair . get ( attribute_kind ) ; String [ ] taxnames = ( String [ ] ) pairTax2Val . getFirst ( ) ; int [ ] nrOfReads = ( int [ ] ) pairTax2Val . getSecond ( ) ; nrOfReadsPerKind = 0 ; for ( int i = taxnames . length - 1 ; i >= 0 ; i -- ) { String taxname = taxnames [ i ] ; nrOfReadsPerTaxon = nrOfReads [ i ] ; if ( nrOfReadsPerTaxon > 0 ) { nrOfReadsPerKind += nrOfReadsPerTaxon ; DefaultMutableTreeNode leaf = new DefaultMutableTreeNode ( taxname , false ) ; leaf . setUserObject ( leaf . getUserObject ( ) . toString ( ) + " [" + nrOfReadsPerTaxon + " Reads]" ) ; kindNode . add ( leaf ) ; if ( toSelect == null ) { selectedTaxon = taxname ; toSelect = leaf ; } } } } } } kindNode . setUserObject ( kindNode . getUserObject ( ) . toString ( ) + " [" + taxa2values . size ( ) + " Taxa, " + nrOfReadsPerKind + " Reads]" ) ; if ( attributeNode != null ) attributeNode . add ( kindNode ) ; } if ( toSelect != null ) { TreeNode [ ] treePath = toSelect . getPath ( ) ; if ( treePath != null ) { tree . expandPath ( new TreePath ( treePath ) ) ; tree . setSelectionPath ( new TreePath ( treePath ) ) ; } } }

Construye los nodos internos y las hojas del jtree.


public String hash  ( String key ) { try { MessageDigest md = MessageDigest . getInstance ( algorithm ) ; byte [ ] keyBytes = key . getBytes ( "UTF-8" ) ; md . update ( keyBytes , 0 , keyBytes . length ) ; byte [ ] binaryhash = md . digest ( ) ; return Base64 . encode ( binaryhash ) ; } catch ( Exception e ) { LOG . warn ( "Failed to get hash encoding for key: {}" , key , e ) ; return key ; } }

Obtenga la codificación de hash de una cadena de llaves.


public JDKRandomGenerator ( ) { delegate = new Random ( ) ; }

Crea una instancia con una semilla arbitraria.


Cree un nuevo objeto que pueda usarse para crear nuevas instancias de clases derivadas de esquema para el paquete: org.smpte_ra.reg._335._2012._13._12.as11


private static void interactiveMode  ( FreeTTS freetts ) { try { while ( true ) { String text ; BufferedReader reader ; reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ; System . out . print ( "Enter text: " ) ; System . out . flush ( ) ; text = reader . readLine ( ) ; if ( ( text == null ) || ( text . length ( ) == 0 ) ) { freetts . shutdown ( ) ; System . exit ( 0 ) ; } else { freetts . batchTextToSpeech ( text ) ; } } } catch ( IOException e ) { } }

Inicia el modo interactivo en los freetts dados.Lee el texto de la consola y la entrega a Freetts para hablar.Termina en el final del archivo.


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

Indocumentado, utilizado por la carga de clase.java.lang.class nativo estático GetCallerClass ();


public boolean isCellEditable  ( int row , int column ) { return false ; }


public void addToWeightList  ( double weight ) { weightList . add ( weight ) ; }


public Set < D > ifdsResultsAt  ( N statement ) { return resultsAt ( statement ) . keySet ( ) ; }

Devuelve el conjunto de hechos que tienen en la declaración dada.


public void loadTree  ( InputStream treeStream ) throws IOException , MaryConfigurationException  { MaryCARTReader cartReader = new MaryCARTReader ( ) ; this . tree = cartReader . loadFromStream ( treeStream ) ; this . featureDefinition = tree . getFeatureDefinition ( ) ; this . indexPredictedFeature = featureDefinition . getFeatureIndex ( PREDICTED_STRING_FEATURENAME ) ; this . convertToLowercase = false ; Properties props = tree . getProperties ( ) ; if ( props == null ) throw new IllegalArgumentException ( "Prediction tree does not contain properties" ) ; convertToLowercase = Boolean . parseBoolean ( props . getProperty ( "lowercase" ) ) ; context = Integer . parseInt ( props . getProperty ( "context" ) ) ; }

Método de conveniencia para cargar el árbol de una entrada de entrada


private void sendResponse  ( final Collection < ? extends ClientRequestResult > response ) { sendJsonResponse ( GSON . toJson ( response ) ) ; }

Método de ayudante.Codifica el informe de progreso en formato JSON.


public static Converter < String , ? > determinePrimitiveConverter  ( Type type ) { if ( String . class . equals ( type ) ) { return StringConverter . INSTANCE ; } else if ( Boolean . class . equals ( type ) || boolean . class . equals ( type ) ) { return BooleanConverter . INSTANCE ; } else if ( Integer . class . equals ( type ) || int . class . equals ( type ) ) { return Ints . stringConverter ( ) ; } else if ( Long . class . equals ( type ) || long . class . equals ( type ) ) { return Longs . stringConverter ( ) ; } else if ( Short . class . equals ( type ) || short . class . equals ( type ) ) { return Shorts . stringConverter ( ) ; } else if ( Float . class . equals ( type ) || float . class . equals ( type ) ) { return Floats . stringConverter ( ) ; } else if ( Double . class . equals ( type ) || double . class . equals ( type ) ) { return Doubles . stringConverter ( ) ; } return null ; }

Determinar el convertidor del tipo primitivo.


protected FaveAddGroupQuery groupId  ( int value ) { return unsafeParam ( "group_id" , value ) ; }


private RbacAuthorizationDetails createAuthDetails  ( ) { RbacAuthorizationDetails authDetails = new RbacAuthorizationDetails ( ) ; authDetails . setRbacClass ( "Manos" ) ; authDetails . setRbacDevice ( "Mark" ) ; authDetails . setRbacProperty ( "Matias" ) ; return authDetails ; }

Método de ayudante privado.Se utiliza para crear ClientCOMMANDTAGIMPL.


public boolean contains  ( JsonElement element ) { return elements . contains ( element ) ; }

Devuelve VERDADERO si esta matriz contiene el elemento especificado.


public static boolean isInitialized  ( Context ctx ) { vitamioPackage = ctx . getPackageName ( ) ; vitamioLibraryPath = ContextUtils . getDataDir ( ctx ) + "lib/" ; return true ; }

Compruebe si Vitamio se inicializa en este dispositivo.


protected final void fireColumnEvent  ( int idx , float prev ) { Object [ ] lstnrs = m_listeners . getArray ( ) ; for ( int i = 0 ; i < lstnrs . length ; ++ i ) ( ( ColumnListener ) lstnrs [ i ] ) . columnChanged ( this , idx , prev ) ; }

Notifica a todos los oyentes registrados de un evento de actualización de columnas


private void addVendorOption  ( VendorOptionTypeInterface vendorOption ) { options . put ( vendorOption , vendorOption . getName ( ) ) ; }


private Reader createASCIIReader  ( InputStream stream ) { return new ASCIIReader ( stream , fTempString . ch . length , fErrorReporter . getMessageFormatter ( XMLMessageFormatter . XML_DOMAIN ) , fErrorReporter . getLocale ( ) ) ; }

Cree un nuevo lector ASCII de la entrada de entrada.


@ Override public void revertToDefaultValue  ( ) { populateField ( defaultValue ) ; }


public void onDestroy  ( ) { this . stop ( ) ; }

Llamado por AccelBroker cuando el oyente debe cerrarse.Detener el oyente.


public long key  ( ) { return _map . _set [ _index ] ; }

Proporciona acceso a la clave del mapeo en la posición del iterador.Tenga en cuenta que debe <tt> avance () </ tt> el iterador al menos una vez antes de invocar este método.


public boolean hasBlock  ( ) { return getBlockOpt ( ) . getNumChild ( ) != 0 ; }

Compruebe si existe el bloque de bloques opcionales.


public void addChangingListener  ( OnWheelChangedListener listener ) { changingListeners . add ( listener ) ; }


public void removeCommandClass  ( CommandClass commandClass ) { supportedCommandClasses . remove ( commandClass ) ; }

Elimina una clase de comando del nodo.Esto se utiliza para eliminar las clases de que un nodo puede informarlo, pero no responde.


public void drawChartTransposed  ( Graphics2D gc ) { int x0 = 2 ; int x1 = getWidth ( ) - 2 ; int y0 = getHeight ( ) - bottomMargin ; int y1 = topMargin ; if ( x0 >= x1 ) return ; if ( inUpdateCoordinates ) { gc . setFont ( getFont ( "Default" ) ) ; gc . setColor ( Color . LIGHT_GRAY ) ; gc . drawString ( "Updating coordinates..." , 20 , 20 ) ; return ; } if ( rTree . size ( ) == 0 ) return ; Rectangle deviceBBox = new Rectangle ( x0 , y1 , x1 - x0 , y0 - y1 ) ; deviceBBox . x += deviceBBox . width / 2 ; deviceBBox . y += deviceBBox . height / 2 ; Rectangle worldBBox = new Rectangle ( ) ; rTree . getBoundingBox ( worldBBox ) ; worldBBox . x += worldBBox . width / 2 ; worldBBox . y += worldBBox . height / 2 ; double xFactor = deviceBBox . width / ( double ) worldBBox . width ; double yFactor = deviceBBox . height / ( double ) worldBBox . height ; if ( xFactor > 1 ) xFactor = 1 ; if ( yFactor > 1 ) yFactor = 1 ; double factor = Math . min ( xFactor , yFactor ) ; SelectionGraphics < String [ ] > sgc = ( gc instanceof SelectionGraphics ? ( SelectionGraphics < String [ ] > ) gc : null ) ; for ( Iterator < Pair < Rectangle2D , Pair < String , Integer > > > it = rTree . iterator ( ) ; it . hasNext ( ) ; ) { Pair < Rectangle2D , Pair < String , Integer > > pair = it . next ( ) ; Rectangle2D rect = pair . get1 ( ) ; String label = pair . get2 ( ) . get1 ( ) ; Integer fontSize = ( int ) ( factor * pair . get2 ( ) . get2 ( ) ) ; if ( fontSize >= 1 ) { gc . setFont ( getFontForSize ( fontSize ) ) ; Color color = getFontColor ( ChartViewer . FontKeys . DrawFont . toString ( ) , null ) ; if ( color == null ) color = getChartColors ( ) . getSampleColor ( label ) ; gc . setColor ( color ) ; double x = rect . getX ( ) ; double y = rect . getY ( ) + rect . getHeight ( ) ; x = factor * ( x - worldBBox . x ) + deviceBBox . x ; y = factor * ( y - worldBBox . y ) + deviceBBox . y ; if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { label , null } ) ; gc . drawString ( label , ( int ) Math . round ( x ) , ( int ) Math . round ( y ) ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; if ( getChartData ( ) . getChartSelection ( ) . isSelected ( label , null ) ) { Dimension labelSize = Basic . getStringSize ( gc , label , gc . getFont ( ) ) . getSize ( ) ; gc . setStroke ( HEAVY_STROKE ) ; gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; drawRect ( gc , x , y , labelSize . width , labelSize . height , 0 ) ; gc . setStroke ( NORMAL_STROKE ) ; } } } }

Dibuja nubes en las que las palabras son clases.


<Strong> Atención: </ strong> Esta clase no está destinada a crear objetos de él.


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

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


public EventPoller < E > newPoller  ( Sequence ... gatingSequences ) { return sequencer . newPoller ( this , gatingSequences ) ; }

Crea un colmoneador de eventos para este tampón de anillo cerrado en las secuencias suministradas.


@ Override public synchronized void write  ( int b ) { int inBufferPos = count - filledBufferSum ; if ( inBufferPos == currentBuffer . length ) { needNewBuffer ( count + 1 ) ; inBufferPos = 0 ; } currentBuffer [ inBufferPos ] = ( byte ) b ; count ++ ; }


public EnterMonitorStmt newEnterMonitorStmt  ( Value op ) { return new JEnterMonitorStmt ( op ) ; }

Construye un trozo de gramática entremonitorstmt (inmediato).


public boolean isConnected  ( Direction direction ) { return mConstraintWidget . getAnchor ( lookupType ( direction ) ) . isConnected ( ) ; }


private void onDying  ( ) { mCache . dropObservables ( mUUID ) ; }

Llamado cuando el anfitrión se va a destruir completamente y no ser recreado.


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


private void upgradeTable  ( ) { if ( hasNewUniqueOrNotNullColumn ( ) ) { createOrUpgradeTable ( mTableModel , mDb , true ) ; Collection < AssociationsInfo > associationsInfo = getAssociationInfo ( mTableModel . getClassName ( ) ) ; for ( AssociationsInfo info : associationsInfo ) { if ( info . getAssociationType ( ) == Const . Model . MANY_TO_ONE || info . getAssociationType ( ) == Const . Model . ONE_TO_ONE ) { if ( info . getClassHoldsForeignKey ( ) . equalsIgnoreCase ( mTableModel . getClassName ( ) ) ) { String associatedTableName = DBUtility . getTableNameByClassName ( info . getAssociatedClassName ( ) ) ; addForeignKeyColumn ( mTableModel . getTableName ( ) , associatedTableName , mTableModel . getTableName ( ) , mDb ) ; } } } } else { hasConstraintChanged = false ; removeColumns ( findColumnsToRemove ( ) ) ; addColumns ( findColumnsToAdd ( ) ) ; changeColumnsType ( findColumnTypesToChange ( ) ) ; changeColumnsConstraints ( ) ; } }

Actualizar acciones de la tabla.Incluya la eliminación de columnas de volcado, agregue nuevas columnas y cambie los tipos de columnas.Todas las acciones anteriores se realizarán por la orden de la descripción.


public static Map < RType , Set < RDotTxtEntry > > readRTxt  ( String rTxtFullFilename ) { Map < RType , Set < RDotTxtEntry > > rTypeResourceMap = new HashMap < RType , Set < RDotTxtEntry > > ( ) ; if ( StringUtil . isNotBlank ( rTxtFullFilename ) && FileUtil . isExist ( rTxtFullFilename ) ) { BufferedReader bufferedReader = null ; try { final Pattern textSymbolLine = Pattern . compile ( "(\\S+) (\\S+) (\\S+) (.+)" ) ; bufferedReader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( rTxtFullFilename ) ) ) ; String line = null ; while ( ( line = bufferedReader . readLine ( ) ) != null ) { Matcher matcher = textSymbolLine . matcher ( line ) ; if ( matcher . matches ( ) ) { IdType idType = IdType . from ( matcher . group ( 1 ) ) ; RType rType = RType . valueOf ( matcher . group ( 2 ) . toUpperCase ( ) ) ; String name = matcher . group ( 3 ) ; String idValue = matcher . group ( 4 ) ; RDotTxtEntry rDotTxtEntry = new RDotTxtEntry ( idType , rType , name , idValue ) ; Set < RDotTxtEntry > hashSet = null ; if ( rTypeResourceMap . containsKey ( rType ) ) { hashSet = rTypeResourceMap . get ( rType ) ; } else { hashSet = new HashSet < RDotTxtEntry > ( ) ; rTypeResourceMap . put ( rType , hashSet ) ; } hashSet . add ( rDotTxtEntry ) ; } } } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { if ( bufferedReader != null ) { try { bufferedReader . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } } } return rTypeResourceMap ; }


public int double_set_new  ( ) { String s = soot . PhaseOptions . getString ( options , "double-set-new" ) ; if ( s . equalsIgnoreCase ( "hash" ) ) return double_set_new_hash ; if ( s . equalsIgnoreCase ( "bit" ) ) return double_set_new_bit ; if ( s . equalsIgnoreCase ( "hybrid" ) ) return double_set_new_hybrid ; if ( s . equalsIgnoreCase ( "array" ) ) return double_set_new_array ; if ( s . equalsIgnoreCase ( "heintze" ) ) return double_set_new_heintze ; if ( s . equalsIgnoreCase ( "sharedlist" ) ) return double_set_new_sharedlist ; throw new RuntimeException ( "Invalid value " + s + " of phase option double-set-new" ) ; }

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


static boolean isOutsideResourceTypeFolder  ( @ NotNull DataContext context ) { VirtualFile file = CommonDataKeys . VIRTUAL_FILE . getData ( context ) ; if ( file != null ) { if ( ! file . isDirectory ( ) ) { file = file . getParent ( ) ; } if ( file != null && ResourceFolderType . getFolderType ( file . getName ( ) ) != null ) { return false ; } } Module module = LangDataKeys . MODULE . getData ( context ) ; if ( module != null ) { return AndroidFacet . getInstance ( module ) != null ; } PsiElement element = CommonDataKeys . PSI_ELEMENT . getData ( context ) ; return element != null && AndroidFacet . getInstance ( element ) != null ; }

Devuelve verdadero si el contexto apunta a un módulo de Android, pero fuera de una carpeta de tipo de recurso específico


public void remove  ( ) { throw new UnsupportedOperationException ( "Remove not supported" ) ; }


@ Override public void addView  ( View child , int index , ViewGroup . LayoutParams params ) { if ( contentView == null ) { super . addView ( child , index , params ) ; } else { contentView . addView ( child , index , params ) ; } }

Agregue el contenido principal de la vista personalizada de Relativelayout a la SubView ContentView.Este es el contenido principal que contendrá a los niños de FlowLayout.


public DatabaseGetSchoolsQuery ( VkApiClient client , UserActor actor , int cityId ) { super ( client , "database.getSchools" , GetSchoolsResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; cityId ( cityId ) ; }

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


public void registerObserver  ( SpinnerNotifyInterface observer ) { observers . add ( observer ) ; }


public static void createTable  ( SQLiteDatabase db , boolean ifNotExists ) { String constraint = ifNotExists ? "IF NOT EXISTS " : "" ; db . execSQL ( "CREATE TABLE " + constraint + "'BLACK_LIST' (" + "'USER_ID' TEXT PRIMARY KEY NOT NULL ," + "'STATUS' TEXT," + "'TIMESTAMP' INTEGER);" ) ; }

Crea la tabla de base de datos subyacente.


public Map < String , Object > makeValid  ( Map < String , ? extends Object > source , String mode ) { return makeValid ( source , mode , true , null ) ; }

Crea un nuevo mapa basado en un mapa existente con parámetros válidos.Intenta convertir los parámetros al tipo requerido.


public static void showCreateAircraft  ( android . support . v4 . app . Fragment fragment , int requestCode ) { Intent intent = new Intent ( fragment . getContext ( ) , CreateEditAircraftActivity . class ) ; fragment . startActivityForResult ( intent , requestCode ) ; }

Pantalla UI para crear un avión.Usa esto si quieres el resultado de la actividad.


protected Object newInitialFlow  ( ) { return emptySet . clone ( ) ; }

Todos los ins se inician al conjunto vacío.


public void close  ( ) { if ( blk != null ) { tx . bufferMgr ( ) . unpin ( currentBuff ) ; blk = null ; currentBuff = null ; } }

Cierra el gerente de encabezado, sininizar el bloque.


@ Override public void error  ( SAXParseException e ) throws SAXException { throw e ; }


public void invalidate  ( final Long pId , final TagQualityStatus pReason , final String pDescription , final Timestamp pTimestamp ) { final RuleBufferObject bufferObj ; LOG . trace ( pId + " entering invalidate()" ) ; synchronized ( BUFFER_LOCK ) { if ( ! RULE_OBJECT_BUF . containsKey ( pId ) ) { bufferObj = new RuleBufferObject ( pId , null , pReason , pDescription , null , pTimestamp ) ; RULE_OBJECT_BUF . put ( pId , bufferObj ) ; } else { bufferObj = ( RuleBufferObject ) RULE_OBJECT_BUF . get ( pId ) ; bufferObj . invalidate ( pReason , pDescription , pTimestamp ) ; } scheduleCacheUpdaterTask ( pId ) ; } LOG . trace ( pId + " leaving invalidate()" ) ; }

Actualiza el búfer de regla interna con un mensaje de invalidación


public static SM_SYSTEM_MESSAGE STR_CHAT_ROOM_UNBAN_SUCCESS  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300870 , value0 ) ; }

% 0 se ha eliminado de la lista de prohibición.


public static void displayContextClassLoaderTree  ( ) { Thread curThread = Thread . currentThread ( ) ; ClassLoader curClassLoader = curThread . getContextClassLoader ( ) ; displayClassLoaderTree ( curClassLoader ) ; }

Método de utilidad que muestra el árbol de delegación del cargador de clases para el cargador de clase de contexto actual.Para cada cargador de clase en el árbol, este método muestra las ubicaciones desde las cuales ese cargador de clase recuperará y cargará las clases solicitadas.<p> Este método puede ser útil al depurar problemas relacionados con la recepción de excepciones, como <código> ClassNotFoundException </ Code>.


public SamLocusIterator ( final SamReader samReader ) { this ( samReader , null ) ; }

Prepárese para iterar a través de los registros SAM dados, saltando alineaciones no primarias.No utilice el índice BAM, incluso si está disponible.


private List < SymbolTypeConfig > readValueListConfig  ( Class < ? > localisationClass , Class < ? > panelId , XMLFieldConfigEnumValueList valueList ) { List < SymbolTypeConfig > configList = new ArrayList < SymbolTypeConfig > ( ) ; for ( XMLFieldConfigEnumValue valueObj : valueList . getValue ( ) ) { SymbolTypeConfig config = parseSymbolTypeConfig ( localisationClass , panelId , valueObj ) ; configList . add ( config ) ; } return configList ; }

Lea la configuración de la lista de valores.


private static boolean hasTies  ( double [ ] x , double [ ] y ) { final HashSet < Double > values = new HashSet < Double > ( ) ; for ( int i = 0 ; i < x . length ; i ++ ) { if ( ! values . add ( x [ i ] ) ) { return true ; } } for ( int i = 0 ; i < y . length ; i ++ ) { if ( ! values . add ( y [ i ] ) ) { return true ; } } return false ; }

Devuelve VERDADERO IFF Hay vínculos en la muestra combinada formados por X e Y.


@ Override public String addSymbol  ( char [ ] buffer , int offset , int length ) { synchronized ( fSymbolTable ) { return fSymbolTable . addSymbol ( buffer , offset , length ) ; } }

Agrega el símbolo especificado a la tabla de símbolos y devuelve una referencia al símbolo único.Si el símbolo ya existe, la referencia del símbolo anterior se devuelve en su lugar, en orden de garantía de que las referencias de símbolos siguen siendo únicas.


public File showSaveDialog  ( ) { return showDialog ( null ) ; }

Muestra un filechooser usando FILECHOOSER.SHOWSAVEDIALOG ().


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

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


public static void createParentDirectories  ( String path ) { File targetFile = new File ( path ) ; File parent = targetFile . getParentFile ( ) ; if ( ! parent . exists ( ) && ! parent . mkdirs ( ) ) { throw new IllegalStateException ( "Couldn't create dir: " + parent ) ; } }

Cree directorios de padres si no existen en una ruta de archivo dada.


public WallUnpinQuery ( VkApiClient client , UserActor actor , int postId ) { super ( client , "wall.unpin" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; postId ( postId ) ; }


private void initWidget  ( ) { this . handler = new SafeHandler < > ( this ) ; this . timer = new Timer ( ) ; SwipeBackLayout swipeBackLayout = ( SwipeBackLayout ) findViewById ( R . id . activity_download_manage_swipeBackLayout ) ; swipeBackLayout . setOnSwipeListener ( this ) ; StatusBarView statusBar = ( StatusBarView ) findViewById ( R . id . activity_download_manage_statusBar ) ; if ( DisplayUtils . isNeedSetStatusBarMask ( ) ) { statusBar . setBackgroundResource ( R . color . colorPrimary_light ) ; statusBar . setMask ( true ) ; } boolean openByNotification = getIntent ( ) . getBooleanExtra ( EXTRA_NOTIFICATION , false ) ; Toolbar toolbar = ( Toolbar ) findViewById ( R . id . activity_download_manage_toolbar ) ; if ( Mysplash . getInstance ( ) . isLightTheme ( ) ) { if ( openByNotification ) { toolbar . setNavigationIcon ( R . drawable . ic_toolbar_home_light ) ; } else { toolbar . setNavigationIcon ( R . drawable . ic_toolbar_back_light ) ; } toolbar . inflateMenu ( R . menu . activity_download_manage_toolbar_light ) ; } else { if ( openByNotification ) { toolbar . setNavigationIcon ( R . drawable . ic_toolbar_home_dark ) ; } else { toolbar . setNavigationIcon ( R . drawable . ic_toolbar_back_dark ) ; } toolbar . inflateMenu ( R . menu . activity_download_manage_toolbar_dark ) ; } toolbar . setNavigationOnClickListener ( this ) ; toolbar . setOnMenuItemClickListener ( this ) ; this . container = ( CoordinatorLayout ) findViewById ( R . id . activity_download_manage_container ) ; this . recyclerView = ( RecyclerView ) findViewById ( R . id . activity_download_manage_recyclerView ) ; recyclerView . setLayoutManager ( new LinearLayoutManager ( this , LinearLayoutManager . VERTICAL , false ) ) ; recyclerView . setAdapter ( adapter ) ; }


public static SortedMap < EnumSet < HashSupport > , HashProvider > search  ( HashParameters params ) { return search ( params , EnumSet . of ( HashSupport . STATEFUL ) ) ; }

Devuelve un mapa de los proveedores de hash que respaldan al menos una implementación de estado de una función de hash con los parámetros dados.


private void updateSymbol  ( ) { if ( ! Controller . getInstance ( ) . isPopulating ( ) ) { Symbolizer symbolizer = SelectedSymbol . getInstance ( ) . getSymbolizer ( ) ; if ( symbolizer instanceof PointSymbolizer ) { PointSymbolizerImpl newPointSymbolizer = ( PointSymbolizerImpl ) symbolizer ; Graphic graphic = getGraphic ( ) ; newPointSymbolizer . setGraphic ( graphic ) ; } else if ( symbolizer instanceof PolygonSymbolizer ) { PolygonSymbolizerImpl newPolygonSymbolizer = ( PolygonSymbolizerImpl ) symbolizer ; Fill fill = symbolTypeFactory . getFill ( getGraphicFill ( ) , this . fieldConfigManager ) ; newPolygonSymbolizer . setFill ( fill ) ; if ( vendorOptionFillFactory != null ) { vendorOptionFillFactory . updateSymbol ( newPolygonSymbolizer ) ; } } this . fireUpdateSymbol ( ) ; } }


protected VirtualFile createFile  ( String filePath ) { return testFixture . getTempDirFixture ( ) . createFile ( filePath ) ; }

Crea un archivo con el contenido especificado y la ruta del archivo en el proyecto de prueba


public NullnessAssumptionAnalysis ( UnitGraph graph ) { super ( graph ) ; doAnalysis ( ) ; }

Crea un nuevo análisis para el gráfico dado /


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

Número de usuarios y comunidades para devolver.


@ POST @ Timed @ Path ( "/dimensions/{dimensionName}/dimensionRows" ) @ Consumes ( "application/json; charset=utf-8" ) public Response addReplaceDimensionRows  ( @ PathParam ( "dimensionName" ) String dimensionName , String json ) { LOG . debug ( "Replacing {} dimension rows with a json payload {} characters long" , dimensionName , json . length ( ) ) ; Map < String , LinkedHashSet < LinkedHashMap < String , String > > > dimensionRows ; try { Dimension dimension = dimensionDictionary . findByApiName ( dimensionName ) ; if ( dimension == null ) { LOG . error ( "Missing dimensionRows for dimension: {}" , dimensionName ) ; return Response . status ( BAD_REQUEST ) . build ( ) ; } dimensionRows = mapper . readValue ( json , new TypeReference < Map < String , LinkedHashSet < LinkedHashMap < String , String > > > > ( ) { } ) ; Set < DimensionRow > drs = dimensionRows . get ( "dimensionRows" ) . stream ( ) . map ( null ) . collect ( Collectors . toCollection ( null ) ) ; dimension . addAllDimensionRows ( drs ) ; } catch ( IOException e ) { LOG . error ( "Failed to add/replace dimension rows: {}" , e ) ; return Response . status ( BAD_REQUEST ) . build ( ) ; } int dimensionRowsSize = dimensionRows . get ( "dimensionRows" ) . size ( ) ; LOG . info ( "Successfully added/replaced {} row(s) for dimension: {}" , dimensionRowsSize , dimensionName ) ; return Response . status ( Status . OK ) . build ( ) ; }

Punto final para agregar / reemplazar las filas de dimensión.<p> Si existe una fila que tiene la misma identificación, se sobrescribirá.


private void initDictionaryCacheInfo  ( List < String > dictionaryKeys , List < DictionaryColumnUniqueIdentifier > dictionaryColumnUniqueIdentifiers , Cache reverseDictionaryCache , String carbonStorePath ) throws KettleException { long lruCacheStartTime = System . currentTimeMillis ( ) ; try { List reverseDictionaries = reverseDictionaryCache . getAll ( dictionaryColumnUniqueIdentifiers ) ; for ( int i = 0 ; i < reverseDictionaries . size ( ) ; i ++ ) { Dictionary reverseDictionary = ( Dictionary ) reverseDictionaries . get ( i ) ; getDictionaryCaches ( ) . put ( dictionaryKeys . get ( i ) , reverseDictionary ) ; updateMaxKeyInfo ( dictionaryKeys . get ( i ) , reverseDictionary . getDictionaryChunks ( ) . getSize ( ) ) ; } CarbonTimeStatisticsFactory . getLoadStatisticsInstance ( ) . recordLruCacheLoadTime ( ( System . currentTimeMillis ( ) - lruCacheStartTime ) / 1000.0 ) ; } catch ( CarbonUtilException e ) { throw new KettleException ( e . getMessage ( ) ) ; } }

Este método inicialará la información necesaria para un diccionario de una columna.


private Literal buildLiteral  ( ) { NumericLiteral literal ; setDigits ( buf . toString ( ) . toLowerCase ( ) ) ; if ( ! floating ) { if ( ! whole ) return syntaxError ( "at least one digit is required" ) ; if ( kind == DECIMAL ) { if ( digits . charAt ( 0 ) == '0' ) { kind = OCTAL ; for ( int idx = 1 ; idx < digits . length ( ) ; ++ idx ) { char c = digits . charAt ( idx ) ; if ( c < '0' || c > '7' ) return unexpectedCharacter ( c ) ; } } } if ( isLong ) literal = new LongLiteral ( getLITERAL ( ) ) ; else literal = new IntegerLiteral ( getLITERAL ( ) ) ; } else { if ( kind == HEXADECIMAL && ! exponent ) return syntaxError ( "exponent is required" ) ; if ( ! ( whole || fraction ) ) return syntaxError ( "at least one digit is required in " + "either the whole or fraction part" ) ; if ( kind == HEXADECIMAL ) digits = "0x" + digits ; if ( isFloat ) literal = new FloatingPointLiteral ( getLITERAL ( ) ) ; else literal = new DoubleLiteral ( getLITERAL ( ) ) ; } literal . setDigits ( getDigits ( ) ) ; literal . setKind ( getKind ( ) ) ; return literal ; }

Analice y construya un Integergliteral, Longliteral, Floatingpointliteral o DoubleTitheral.Devuelve un ilegalliteral si el literal numérico no puede ser analizado.Nota: No se realiza las verificaciones de límites.


public void writeInt  ( int value ) throws JMSException  { initializeWriting ( ) ; try { this . dataOut . writeInt ( value ) ; } catch ( IOException ioe ) { JMSException jmsEx = new JMSException ( "Could not write data:" + ioe . toString ( ) ) ; jmsEx . setLinkedException ( ioe ) ; throw jmsEx ; } }

Escribe un <código> int </ code> a la transmisión de mensajes de bytes como cuatro bytes, bytes de alto primero.


@ Override public void tableChanged  ( TableModelEvent arg0 ) { if ( ! isPopulatingTable ( ) ) { dataChanged = true ; updateButtonState ( ) ; } }


@ Override public void printStackTrace  ( PrintStream out ) { synchronized ( out ) { PrintWriter pw = new PrintWriter ( out , false ) ; printStackTrace ( pw ) ; pw . flush ( ) ; } }

Imprime el seguimiento de la pila de esta excepción al flujo especificado.


public static void storeBreakpadUploadStatsInUma  ( ChromePreferenceManager pref ) { for ( int success = pref . getBreakpadUploadSuccessCount ( ) ; success > 0 ; success -- ) { RecordUserAction . record ( "MobileBreakpadUploadSuccess" ) ; } for ( int fail = pref . getBreakpadUploadFailCount ( ) ; fail > 0 ; fail -- ) { RecordUserAction . record ( "MobileBreakpadUploadFail" ) ; } pref . setBreakpadUploadSuccessCount ( 0 ) ; pref . setBreakpadUploadFailCount ( 0 ) ; }

Almacena los éxitos y los fracasos de la carga de choque a UMA, y los elimina de BreakPad.


public DataSourceProperties ( DataSourceConnectorInterface dsc ) { this . dsc = dsc ; }

Instantánea una nueva propiedad de origen de datos.


public void updateSizes  ( int size ) { if ( size == LARGE ) { setSizeParameters ( CIRCLE_DIAMETER_LARGE , CIRCLE_DIAMETER_LARGE , CENTER_RADIUS_LARGE , STROKE_WIDTH_LARGE , ARROW_WIDTH_LARGE , ARROW_HEIGHT_LARGE ) ; } else { setSizeParameters ( CIRCLE_DIAMETER , CIRCLE_DIAMETER , CENTER_RADIUS , STROKE_WIDTH , ARROW_WIDTH , ARROW_HEIGHT ) ; } }

Establezca el tamaño general para el Spinner Progress.Esto actualiza el ancho del radio y el trazo del anillo.


default void writeAttribute  ( NamespaceManager ns , int attribute , DataValue value , String indexRange ) throws UaException { Optional < AttributeId > attributeId = AttributeId . from ( attribute ) ; if ( attributeId . isPresent ( ) ) { writeAttribute ( ns , attributeId . get ( ) , value , indexRange ) ; } else { throw new UaException ( StatusCodes . Bad_AttributeIdInvalid ) ; } }


public static boolean isIgnorePartialFailure  ( int mod ) { return Modifiers . contains ( mod , IGNORE_PARTIAL_FAILURE ) ; }

Verifica si el bit ignore_partial_failure se estableció para este modificador.


private void doWrite  ( List < String > args ) throws DumpUsageException { String usagePrefix = "Usage: prefs write <path> <key> <type> <value>, where type is one of: " ; Iterator < String > argsIter = args . iterator ( ) ; String path = nextArg ( argsIter , "Expected <path>" ) ; String key = nextArg ( argsIter , "Expected <key>" ) ; String typeName = nextArg ( argsIter , "Expected <type>" ) ; Type type = Type . of ( typeName ) ; if ( type == null ) { throw new DumpUsageException ( Type . appendNamesList ( new StringBuilder ( usagePrefix ) , ", " ) . toString ( ) ) ; } SharedPreferences sharedPreferences = getSharedPreferences ( path ) ; SharedPreferences . Editor editor = sharedPreferences . edit ( ) ; switch ( type ) { case BOOLEAN : editor . putBoolean ( key , Boolean . valueOf ( nextArgValue ( argsIter ) ) ) ; break ; case INT : editor . putInt ( key , Integer . valueOf ( nextArgValue ( argsIter ) ) ) ; break ; case LONG : editor . putLong ( key , Long . valueOf ( nextArgValue ( argsIter ) ) ) ; break ; case FLOAT : editor . putFloat ( key , Float . valueOf ( nextArgValue ( argsIter ) ) ) ; break ; case STRING : editor . putString ( key , nextArgValue ( argsIter ) ) ; break ; case SET : putStringSet ( editor , key , argsIter ) ; break ; } editor . commit ( ) ; }

Ejecuta comando para actualizar un valor en las preferencias compartidas


public void printResult  ( PrintStream output , String title , Histogram other ) { output . println ( title ) ; if ( count == 0 ) { output . println ( "No samples are inserted, no output!" ) ; return ; } output . println ( "Samples : " + count + " (" + other . count + ")" ) ; for ( int i = 0 ; i < results . length ; i ++ ) { if ( i == 0 ) output . printf ( "<= %d: %d (%d)" , limits [ 0 ] , results [ i ] , other . results [ i ] ) ; else if ( i == results . length - 1 ) { output . printf ( "> %d: %d (%d)" , limits [ limits . length - 1 ] , results [ i ] , other . results [ i ] ) ; } else { output . printf ( "%d < x <= %d: %d (%d)" , limits [ i - 1 ] , limits [ i ] , results [ i ] , other . results [ i ] ) ; } output . printf ( ", percentage = %.2f%% (%.2f%%) \n" , ( double ) results [ i ] * 100 / count , ( double ) other . results [ i ] * 100 / other . count ) ; } output . println ( ) ; }

Esta función imprime dos histogramas para la lectura comparativa.Requiere los dos histogramas que tienen los mismos separadores de datos.


@ Override public Scan open  ( ) { Scan s = p . open ( ) ; return new ProjectScan ( s , schema . fields ( ) ) ; }

Crea un escaneo de proyecto para esta consulta.


static IndexPredicateAnalyzer newIndexPredicateAnalyzer  ( String keyColumnName ) { IndexPredicateAnalyzer analyzer = new IndexPredicateAnalyzer ( ) ; analyzer . addComparisonOp ( "org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPEqual" ) ; analyzer . clearAllowedColumnNames ( ) ; analyzer . allowColumnName ( keyColumnName ) ; return analyzer ; }

Instantánea un nuevo analizador de predicado adecuado para determinar cómo presionar un filtro hacia abajo en la exploración de HBASE, en función de las reglas para qué tipo de flexión que apoyamos actualmente.


public void sendPacket  ( String ... datas ) { String packet = new String ( ) ; packet = packet . concat ( Settings . sSenderSplitProtocolToken ) ; for ( int i = 0 ; i < datas . length ; i ++ ) { packet = packet . concat ( datas [ i ] + Settings . sSenderSplitProtocolToken ) ; } packet = packet . concat ( Settings . sSenderSplitMultipleToken ) ; send ( packet ) ; }

Método básico para enviar el mensaje a los clientes.


public static ExpectedCondition < Boolean > hasNodeProperty  ( final Session session , final String nodePath , final String propertyName ) { LOG . debug ( "Checking if node '{}' has property '{}'" , nodePath , propertyName ) ; return null ; }

Comprobaciones si el nodo ha especificado propiedad


public void stream  ( long durationInMillis ) { confettiManager . setNumInitialCount ( 0 ) . setEmissionDuration ( durationInMillis ) . setEmissionRate ( 50 ) . animate ( ) ; }

Inicia una corriente de confeti que anima para la duración proporcionada.


public EntropyChunker ( ) { sgOverallGraph = new SymbolicGraph ( 1 , 1 ) ; clLocator = new EdgeCachedLocator ( 100 ) ; smDelims = null ; }

Crea una nueva instancia de EntropyChunker.


public ChiSquaredDistribution ( double degreesOfFreedom , double inverseCumAccuracy ) { super ( inverseCumAccuracy ) ; gamma = new GammaDistribution ( degreesOfFreedom / 2 , 2 ) ; }

Cree una distribución de Chi-Squared con los grados dados de la libertad y la precisión de probabilidad acumulativa inversa.


public boolean isEmpty  ( ) { return ( geometryType == null ) || segmentList . isEmpty ( ) ; }

Verifica si la forma WKT está vacía, no hay un conjunto de tipo y no se establecen en formas múltiples / segments