@ Deployment public void testActivitySignalEvents  ( ) throws Exception  { ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "signalProcess" ) ; assertNotNull ( processInstance ) ; Execution executionWithSignal = runtimeService . createExecutionQuery ( ) . activityId ( "receivePayment" ) . singleResult ( ) ; assertNotNull ( executionWithSignal ) ; runtimeService . trigger ( executionWithSignal . getId ( ) ) ; assertEquals ( 1 , listener . getEventsReceived ( ) . size ( ) ) ; assertTrue ( listener . getEventsReceived ( ) . get ( 0 ) instanceof ActivitiSignalEvent ) ; ActivitiSignalEvent signalEvent = ( ActivitiSignalEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ACTIVITY_SIGNALED , signalEvent . getType ( ) ) ; assertEquals ( "receivePayment" , signalEvent . getActivityId ( ) ) ; assertEquals ( executionWithSignal . getId ( ) , signalEvent . getExecutionId ( ) ) ; assertEquals ( executionWithSignal . getProcessInstanceId ( ) , signalEvent . getProcessInstanceId ( ) ) ; assertEquals ( processInstance . getProcessDefinitionId ( ) , signalEvent . getProcessDefinitionId ( ) ) ; assertNull ( signalEvent . getSignalName ( ) ) ; assertNull ( signalEvent . getSignalData ( ) ) ; listener . clearEventsReceived ( ) ; Execution executionWithSignalEvent = runtimeService . createExecutionQuery ( ) . activityId ( "shipOrder" ) . singleResult ( ) ; runtimeService . signalEventReceived ( "alert" , executionWithSignalEvent . getId ( ) , Collections . singletonMap ( "test" , ( Object ) "test" ) ) ; assertEquals ( 1 , listener . getEventsReceived ( ) . size ( ) ) ; assertTrue ( listener . getEventsReceived ( ) . get ( 0 ) instanceof ActivitiSignalEvent ) ; signalEvent = ( ActivitiSignalEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ACTIVITY_SIGNALED , signalEvent . getType ( ) ) ; assertEquals ( "shipOrder" , signalEvent . getActivityId ( ) ) ; assertEquals ( executionWithSignalEvent . getId ( ) , signalEvent . getExecutionId ( ) ) ; assertEquals ( executionWithSignalEvent . getProcessInstanceId ( ) , signalEvent . getProcessInstanceId ( ) ) ; assertEquals ( processInstance . getProcessDefinitionId ( ) , signalEvent . getProcessDefinitionId ( ) ) ; assertEquals ( "alert" , signalEvent . getSignalName ( ) ) ; assertNotNull ( signalEvent . getSignalData ( ) ) ; listener . clearEventsReceived ( ) ; assertDatabaseEventPresent ( ActivitiEventType . ACTIVITY_SIGNALED ) ; }

Eventos de prueba relacionados con la señalización.


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


public static String methodNameToFieldName  ( String methodPrefix , String methodName ) { return methodNameToFieldName ( methodPrefix , methodName , false ) ; }


public static void renameTableForDeletion  ( int partitionCount , String storePath , String databaseName , String tableName ) { String tableNameWithPartition = "" ; String databaseNameWithPartition = "" ; String fullPath = "" ; String newFilePath = "" ; String newFileName = "" ; Callable < Void > c = null ; long time = System . currentTimeMillis ( ) ; FileFactory . FileType fileType = null ; ExecutorService executorService = Executors . newFixedThreadPool ( 10 ) ; for ( int i = 0 ; i < partitionCount ; i ++ ) { databaseNameWithPartition = databaseName + '_' + i ; tableNameWithPartition = tableName + '_' + i ; newFileName = tableNameWithPartition + '_' + time ; fullPath = storePath + File . separator + databaseNameWithPartition + File . separator + tableNameWithPartition ; newFilePath = storePath + File . separator + databaseNameWithPartition + File . separator + newFileName ; fileType = FileFactory . getFileType ( fullPath ) ; try { if ( FileFactory . isFileExist ( fullPath , fileType ) ) { CarbonFile file = FileFactory . getCarbonFile ( fullPath , fileType ) ; boolean isRenameSuccessfull = file . renameTo ( newFilePath ) ; if ( ! isRenameSuccessfull ) { LOGGER . error ( "Problem renaming the table :: " + fullPath ) ; c = new DeleteFolderAndFiles ( file ) ; executorService . submit ( c ) ; } else { c = new DeleteFolderAndFiles ( FileFactory . getCarbonFile ( newFilePath , fileType ) ) ; executorService . submit ( c ) ; } } } catch ( IOException e ) { LOGGER . error ( "Problem renaming the table :: " + fullPath ) ; } } executorService . shutdown ( ) ; }

Esta función cambiará el nombre de la tabla a eliminar.


public int uninstallSilent  ( Context context , String packageName ) { return uninstallSilent ( context , packageName , false ) ; }

Desinstalar el paquete y borrar datos de la aplicación silenciosa por root


public void connect  ( List < StompHeader > _headers , boolean reconnect ) { if ( reconnect ) disconnect ( ) ; if ( mConnected ) return ; mConnectionProvider . getLifecycleReceiver ( ) . subscribe ( null ) ; mMessagesSubscription = mConnectionProvider . messages ( ) . map ( null ) . subscribe ( null ) ; }

Si ya está conectado y vuelva a conectar = FALSO - NOPE


public EglCore ( ) { this  ( null , 0 ) ; }

Prepara la pantalla EGL y el contexto.<p /> equivalente a Eglcore (NULL, 0).


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

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


@ Override public void onClick  ( View v ) { int id = v . getId ( ) ; switch ( id ) { case R . id . email_login_button : login ( ) ; break ; case R . id . guest_login : guestLogin ( ) ; break ; case R . id . gplus_login_button : signInWithGPlus ( ) ; break ; default : break ; } }

Esta función maneja todas las operaciones de clic en esta actividad.


private void createField  ( String key , String labelString ) { int row = textFieldMap . size ( ) ; int y = row * ROW_HEIGHT ; JLabel label = new JLabel ( labelString ) ; label . setBounds ( LABEL_X , y , LABEL_WIDTH , FIELD_HEIGHT ) ; panel . add ( label ) ; JTextField textField = new JTextField ( ) ; textField . setBounds ( FIELD_X , y , FIELD_WIDTH , FIELD_HEIGHT ) ; textFieldMap . put ( key , textField ) ; panel . add ( textField ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Heal_INTERVAL_HEAL_TO_B  ( int num0 , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201058 , num0 , skilltarget , skillname ) ; }

Restauró% Num0 de HP [% SkillTarget] usando [% SkillName].


public static void register  ( String owner , GUIHandler handler ) { handlers . put ( owner , handler ) ; }

Registra el manejador GUI para el propietario dado.


public static String encodeBytes  ( byte [ ] source ) { String encoded = null ; try { encoded = encodeBytes ( source , 0 , source . length , NO_OPTIONS ) ; } catch ( java . io . IOException ex ) { assert false : ex . getMessage ( ) ; } assert encoded != null ; return encoded ; }

Codifica una matriz de bytes en la notación base64.No gzip-comprime los datos.


public PhotosSaveWallPhotoQuery server  ( Integer value ) { return unsafeParam ( "server" , value ) ; }


public static void resume  ( ) { TrafficService service = getAirMapTrafficService ( ) ; if ( service != null ) { service . connect ( ) ; } }

Esta función debe llamarse cuando la aplicación ya no esté en el fondo (ONSTART, ONRESUME)


static public String trimDoubleQuotesIfAny  ( String value ) { if ( value != null ) { int len = value . length ( ) ; if ( len > 2 && value . charAt ( 0 ) == '\"' && value . charAt ( len - 1 ) == '\"' ) { return value . substring ( 1 , len - 1 ) ; } } return value ; }

Recorta dos citas de doble alrededor de un valor de parámetro si hay alguno.


public static RuntimeEnvironment system  ( InputStream in , OutputStream out , OutputStream err ) { return new SystemRuntimeEnvironment ( in , out , err ) ; }

Devuelve el entorno de tiempo de ejecución del sistema que utiliza los flujos de entrada, salida y errores estándar especificados.


public static String utf8BytesWithUtf16LengthToString  ( @ Nonnull byte [ ] bytes , int start , int utf16Length ) { return utf8BytesWithUtf16LengthToString ( bytes , start , utf16Length , null ) ; }

Convierte una matriz de bytes UTF-8 en una cadena.


public static String removeDelimiter  ( String s , char delim ) { return removeDelimiter ( s , delim , ( char ) - 1 , ( char ) - 1 ) ; }

Elimina las comas invertidas de la cadena.


private void assignAnglesToSplits  ( double [ ] TaxaAngles , double [ ] split2angle , SplitSystem splits , int [ ] cycle ) throws NotOwnerException { for ( int s = 1 ; s <= splits . size ( ) ; s ++ ) { BitSet part = splits . getSplit ( s ) . getA ( ) ; if ( part . get ( 1 ) ) part = splits . getSplit ( s ) . getB ( ) ; int xp = 0 ; int xq = 0 ; for ( int i = 1 ; i <= ntax ; i ++ ) { int t = cycle [ i ] ; if ( part . get ( t ) ) { if ( xp == 0 ) xp = i ; xq = i ; } } int xpneighbour = ( xp - 2 ) % ntax + 1 ; int xqneighbour = ( xq ) % ntax + 1 ; double TaxaAngleP ; double TaxaAngleQ ; TaxaAngleP = Geometry . midAngle ( TaxaAngles [ xp ] , TaxaAngles [ xpneighbour ] ) ; TaxaAngleQ = Geometry . midAngle ( TaxaAngles [ xq ] , TaxaAngles [ xqneighbour ] ) ; split2angle [ s ] = Geometry . moduloTwoPI ( ( TaxaAngleQ + TaxaAngleP ) / 2 ) ; if ( xqneighbour == 1 ) { split2angle [ s ] = Geometry . moduloTwoPI ( split2angle [ s ] + Math . PI ) ; } } }

Asigna ángulos a las divisiones en el gráfico, teniendo en cuenta que se encuentran exactamente "en el medio" de dos taxones, por lo que completamos split2angle usando taxaangles.


public static SM_SYSTEM_MESSAGE STR_FIELDARTIFACT_CORE_CASTING  ( String value1 , String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400314 , value1 , value0 ) ; }

El artefacto% 1 núcleo de% 0 ha sido expulsado.


@ NotNull public List < String > modulePaths  ( ) { List < String > result = Lists . newArrayList ( ) ; result . add ( ":" ) ; List < String > includePaths = myGradleDslFile . getListProperty ( INCLUDE , String . class ) ; if ( includePaths == null ) { return result ; } for ( String includePath : includePaths ) { result . add ( standardiseModulePath ( includePath ) ) ; } return result ; }

Devuelve las rutas del módulo especificadas por las declaraciones de inclusión.Tenga en cuenta que estas rutas no son rutas de archivo, sino que, en cambio, especifican la ubicación de los módulos en la jerarquía del proyecto.Como tal, los caminos usan el carácter ':' como separador.<p> Por ejemplo, la ruta A: B o: A: B Representa el módulo en el directorio $ ProjectDIR / A / B.


@ Override public int peekChar  ( ) throws IOException  { if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } int c = fCurrentEntity . ch [ fCurrentEntity . position ] ; if ( fCurrentEntity . isExternal ( ) ) { return ( c != '\r' && c != 0x85 && c != 0x2028 ) ? c : '\n' ; } else { return c ; } }

Devuelve el siguiente personaje en la entrada.<P /> <strong> Nota: </ strong> El personaje es <em> no </ em> consumido.


public UnicastResponse ( String host , int port , String [ ] groups , ServiceRegistrar registrar ) { this ( host , port , groups , registrar , null , null ) ; }

Crea la nueva instancia </ code> que contiene los valores dados.Se copia la matriz de <código> grupos </ código>;Un valor <código> NULL> se considera equivalente a una matriz vacía.


public void unify  ( Atomic parentAtom ) { unifyViaAtom ( parentAtom ) ; propagateConstraints ( parentAtom ) ; }

Haga que la consulta infantil sea consistente al realizar una sustitución variable para que se propaguen las variables de los padres


protected void handleRestricted  ( File directory , int depth , Collection < T > results ) throws IOException { }

Método de devolución de llamada exagerado invocado para cada directorio restringido.<P> Esta implementación no hace nada.


public boolean hasFill  ( ) { return SLDTreeLeafFactory . getInstance ( ) . hasFill ( getSymbolizer ( ) ) ; }


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

ID del usuario o comunidad que posee los documentos.Use un valor negativo para designar un ID de comunidad.


public static void drawTableControls  ( ViewTransform transform , Graphics2D g , ConstraintTableLayout table ) { ArrayList < Guideline > vertical = table . getVerticalGuidelines ( ) ; Graphics2D g2 = ( Graphics2D ) g . create ( ) ; g2 . setStroke ( new BasicStroke ( 1 ) ) ; int l = transform . getSwingX ( table . getDrawX ( ) ) ; int t = transform . getSwingY ( table . getDrawY ( ) ) ; g2 . setFont ( sFont ) ; g2 . drawRect ( l , t - 20 - 4 , 20 , 20 ) ; int column = 0 ; String align = table . getColumnAlignmentRepresentation ( column ++ ) ; g2 . drawString ( align , l + 5 , t - 4 - 5 ) ; for ( ConstraintWidget v : vertical ) { int x = transform . getSwingX ( v . getX ( ) ) + l ; g2 . drawRect ( x , t - 20 - 4 , 20 , 20 ) ; align = table . getColumnAlignmentRepresentation ( column ++ ) ; g2 . drawString ( align , x + 5 , t - 4 - 5 ) ; } g2 . dispose ( ) ; }

Dibuje los controles de la tabla cuando se selecciona


@ Nullable @ WorkerThread static File writeBitmapToFile  ( @ NonNull Bitmap bitmap , @ NonNull File file ) { FileOutputStream fileStream = null ; try { ByteArrayOutputStream byteStream = new ByteArrayOutputStream ( ) ; bitmap . compress ( Bitmap . CompressFormat . PNG , 0 , byteStream ) ; fileStream = new FileOutputStream ( file ) ; fileStream . write ( byteStream . toByteArray ( ) ) ; return file ; } catch ( IOException e ) { Log . e ( TAG , e . getMessage ( ) , e ) ; } finally { if ( fileStream != null ) { try { fileStream . close ( ) ; } catch ( IOException e ) { Log . e ( TAG , e . getMessage ( ) , e ) ; } } } return null ; }

Escribe el mapa de bits a disco y devuelve el nuevo archivo.


public double pace  ( double f ) { return 2 * ( f <= 0.5 ? f : ( 1 - f ) ) ; }

Función de estimulación para proporcionar transiciones allí y traseras (periódicas).


public static Object decodeToObject  ( String encodedObject ) throws java . io . IOException , java . lang . ClassNotFoundException  { return decodeToObject ( encodedObject , NO_OPTIONS , null ) ; }

Los intentos de decodificar datos base64 y deserializar un objeto Java dentro.Devuelve <tt> null </ tt> si hubo un error.


public RotateEvent ( BinlogEventHeader eventHeader ) { super ( eventHeader ) ; }

Parte de datos fijos: <p /> 8 bytes.La posición del primer evento en el siguiente archivo de registro.Siempre contiene el número 4 (que significa que el próximo evento comienza en la posición 4 en el siguiente registro binario).Este campo no está presente en V1;Presumiblemente se supone que el valor es 4. <P /> Parte de datos variables: <p /> El nombre del siguiente registro binario.El nombre de archivo no es terminado nulo.Su longitud es el tamaño del evento menos el tamaño de las partes fijas.


public static boolean checkAnyUserHasSeenToS  ( Context context ) { HashSet < String > toSAckedAccounts = ( HashSet < String > ) PreferenceManager . getDefaultSharedPreferences ( context ) . getStringSet ( TOS_ACKED_ACCOUNTS , null ) ; if ( toSAckedAccounts == null || toSAckedAccounts . isEmpty ( ) ) return false ; AccountManagerHelper accountHelper = AccountManagerHelper . get ( context ) ; List < String > accountNames = accountHelper . getGoogleAccountNames ( ) ; if ( accountNames . isEmpty ( ) ) return false ; for ( int k = 0 ; k < accountNames . size ( ) ; k ++ ) { if ( toSAckedAccounts . contains ( accountNames . get ( k ) ) ) return true ; } return false ; }

Comprueba si alguna de las cuentas actuales de Google ha visto el asistente de configuración de TOS en la configuración.


private synchronized void decRef  ( ) { _referenceCount -= 1 ; _log . info ( "Data store reference count updated: [id = {}, reference count = {}]" , _id , _referenceCount ) ; if ( _referenceCount == 0 ) { closeDataStore ( ) ; } }

Disminuya el número de referencias al DataStore por uno.Si el DataStore está completamente dedesenciado, se cerrará.


public static SM_SYSTEM_MESSAGE STR_MSG_GET_CASH_TITLE  ( int value0 ) { return new SM_SYSTEM_MESSAGE ( 1390242 , new DescriptionId ( value0 ) ) ; }


public static SM_SYSTEM_MESSAGE STR_MSG_NOTIFY_PLAYING_TIME  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1390214 , value0 ) ; }

Has jugado para% 0 hora (s).Por favor, tome un descanso.


@ Override public boolean equals  ( Object o ) { return o instanceof AirMapAircraftManufacturer && ( ( AirMapAircraftManufacturer ) o ) . getId ( ) . equals ( getId ( ) ) ; }


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


@ Override public void apply  ( NexusStreamParser np ) throws Exception { }


public GroupsEditPlaceQuery countryId  ( Integer value ) { return unsafeParam ( "country_id" , value ) ; }


public void writeFileContent  ( String content , Path path ) throws CommandException { try { Files . write ( content , path . toFile ( ) , StandardCharsets . UTF_8 ) ; } catch ( IOException e ) { throw new CommandException ( "Cannot write file content in path: " + path . toString ( ) , e ) ; } }

Escribe el contenido en un archivo en UTF8


public static void close  ( URLConnection conn ) { if ( conn instanceof HttpURLConnection ) { ( ( HttpURLConnection ) conn ) . disconnect ( ) ; } }


public String toStringTree  ( ) { return toStringTree ( false ) ; }

Devuelve toda la configuración no interpolada como una representación de árbol.


@ Override public boolean isDataPresent  ( ) { return true ; }

Cheques Si se presentan datos presentes.


@ VisibleForTesting protected boolean isMinidumpCleanNeeded  ( ) { SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getApplicationContext ( ) ) ; boolean cleanNeeded = ! sharedPreferences . contains ( MinidumpUploadCallable . PREF_LAST_UPLOAD_DAY ) && PrivacyPreferencesManager . getInstance ( getApplicationContext ( ) ) . isUploadLimited ( ) ; if ( cleanNeeded ) { sharedPreferences . edit ( ) . putInt ( MinidumpUploadCallable . PREF_LAST_UPLOAD_DAY , 0 ) . apply ( ) ; } return cleanNeeded ; }

Comprueba si es la primera vez que se aplican las restricciones de acceso para las cargas celulares.Se utiliza para determinar si se deben eliminar las cargas de bloqueo no sientes, lo que debería suceder una sola vez.


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

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


public static SM_SYSTEM_MESSAGE STR_DUEL_REQUESTER_WITHDRAW_REQUEST  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300134 , value0 ) ; }

% 0 ha retirado el desafío para un duelo.


private TextEditor escapeSpecialCharsWithinTagAttributes  ( TextEditor text ) { Collection < HTMLToken > tokens = text . tokenizeHTML ( ) ; TextEditor newText = new TextEditor ( "" ) ; for ( HTMLToken token : tokens ) { String value = token . getText ( ) ; if ( token . isTag ( ) ) { value = value . replaceAll ( "\\\\" , CHAR_PROTECTOR . encode ( "\\" ) ) ; value = value . replaceAll ( "`" , CHAR_PROTECTOR . encode ( "`" ) ) ; value = value . replaceAll ( "\\*" , CHAR_PROTECTOR . encode ( "*" ) ) ; value = value . replaceAll ( "_" , CHAR_PROTECTOR . encode ( "_" ) ) ; } newText . append ( value ) ; } return newText ; }

Escape los caracteres especiales <P> Dentro de las etiquetas - Significado entre <y> - codificar [\ `* _] para que no entren en conflicto con su uso en la reducción de código, cursiva y fuerte.Estamos reemplazando cada carácter de este tipo con su valor de cadena aleatorio correspondiente;Esto probablemente es probable, pero debería impedirnos chocar con los valores de escape por accidente.


public View detachCurrentView  ( ) { assert getChildCount ( ) > 1 ; View view = getChildAt ( CONTENT_INDEX ) ; removeView ( view ) ; return view ; }

Difunda la vista que se muestra actualmente y lo devuelve para reparar.


public void rectValueToPixelHorizontal  ( RectF r , float phaseY ) { r . left *= phaseY ; r . right *= phaseY ; mMatrixValueToPx . mapRect ( r ) ; mViewPortHandler . getMatrixTouch ( ) . mapRect ( r ) ; mMatrixOffset . mapRect ( r ) ; }

Transforme un rectángulo con todas las matrices con fases de animación potenciales.


public static void f  ( String tag , String msg , Object ... args ) { if ( sLevel > LEVEL_FATAL ) { return ; } if ( args . length > 0 ) { msg = String . format ( msg , args ) ; } Log . wtf ( tag , msg ) ; }

Enviar un mensaje de registro de errores fatales


public static BaseRecordReader createRecordReader  ( Configuration config , Path path ) throws IOException { EmoInputSplittable emoFs = ( EmoInputSplittable ) path . getFileSystem ( config ) ; return emoFs . getBaseRecordReader ( config , path , getSplitSize ( config ) ) ; }

Obtiene un lector de discos para una división determinada.


public static ValueGetterSpacePredicate < ServerEntry > pathEqual  ( String path , Object value ) { return path ( path , equal ( value ) ) ; }

Atajo para la ruta (camino, igual (valor)).


@ TargetApi ( Build . VERSION_CODES . M ) public static boolean checkPermission  ( String permissionName ) { if ( context == null ) { throw new RuntimeException ( "Before comparing permissions you need to call Nammu.init(context)" ) ; } return PackageManager . PERMISSION_GRANTED == context . checkSelfPermission ( permissionName ) ; }

No es ese método necesario, pero si anulamos a otros, es bueno mantenernos igual.


public NewPointSLD ( ) { super ( Localisation . getString  ( NewPointSLD . class , "NewPointSLD.title" ) ) ; }


public Zdiagmat ( Zdiagmat D ) { Parameters . BaseIndexNotChangeable = true ; basex = Parameters . BaseIndex ; order = D . order ; getProperties ( ) ; re = new double [ n ] ; im = new double [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { re [ i ] = D . re [ i ] ; im [ i ] = D . im [ i ] ; } }

Construye un Zdiagmat e inicializa a otro Zdiagmat.


public int computeNaiveLCA  ( Collection < Integer > taxonIds ) { if ( taxonIds . size ( ) == 0 ) return IdMapper . NOHITS_ID ; else if ( taxonIds . size ( ) == 1 ) return taxonIds . iterator ( ) . next ( ) ; if ( taxonIds . size ( ) > addresses . length ) { addresses = new String [ taxonIds . size ( ) ] ; } int numberOfAddresses = 0 ; for ( Integer id : taxonIds ) { if ( ! idMapper . isDisabled ( id ) ) { final String address = fullTree . getAddress ( id ) ; if ( address != null ) { addresses [ numberOfAddresses ++ ] = address ; } } } if ( numberOfAddresses > 0 ) { final String address = LCAAddressing . getCommonPrefix ( addresses , numberOfAddresses , true ) ; return fullTree . getAddress2Id ( address ) ; } return IdMapper . UNASSIGNED_ID ; }

Devuelve el lca de un conjunto de identificaciones taxon.


public static SM_SYSTEM_MESSAGE STR_CHAT_CHANNEL_JOIN_TRADE  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400240 , value0 ) ; }


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

Desplazamiento basado en un primer elemento coincidente para obtener un subconjunto de elementos determinados


public EmailBuilder replyTo  ( List < String > replyToAddresses ) { this . replyTo = replyToAddresses ; return this ; }

Agrega "Responderto" se dirige al correo electrónico que se está construyendo.


private boolean addPointsTo  ( int code , AllocNode obj ) { GeometricManager gm = pt_objs . get ( obj ) ; if ( gm == null ) { gm = new GeometricManager ( ) ; pt_objs . put ( obj , gm ) ; } else if ( gm == deadManager ) { return false ; } SegmentNode p = gm . addNewFigure ( code , pres ) ; if ( p != null ) { new_pts . put ( obj , gm ) ; return true ; } return false ; }

Una función pública no interfaz.Agrega los puntos: a tupla al gerente geométrico.


private void readObjectNoData  ( ) throws ObjectStreamException  { throw new InvalidObjectException ( "no data" ) ; }

Lanza inválido invalidobjectException, ya que se requieren datos para esta clase.


@ JsOverlay final public < R extends JsPlainObj , O  extends JsPlainObj > R merge ( O toMerge ) { return JsHelper . merge ( this , toMerge ) ; }

Devuelva un nuevo objeto liso que es el resultado de fusionar este objeto liso con el objeto plano suministrado.Cualquier propiedad en este objeto que tiene el mismo nombre en Tomerge se reemplazará con el valor de Tomerce, por ejemplo, {A: 1, B: 1} .merge ({B: 2, C: 3}) resultaría en {A: 1, B: 2, c: 3}


public TCPInputPoller ( int requestedPort , int portmin , int portmax ) { this . requestedPortNumber = requestedPort ; this . portRangeMax = Math . max ( portmin , portmax ) ; this . portRangeMin = Math . min ( portmin , portmax ) ; this . commandQueue = new ArrayList < CommandAndIPAddress > ( ) ; }

Cree un nuevo tcpinputpoller para sentarse y esperar mensajes en el puerto que se especifica o se elige desde el rango.


private void checkConfiguration  ( ) { if ( configuration == null ) { throw new IllegalStateException ( ERROR_NOT_INIT ) ; } }

Cheques Si se inicializó la configuración de ImageLoader.


public ClientGameInformation ( String sGameName ) { super ( ) ; this . gameName = sGameName ; this . playTimes = 0 ; this . win = 0 ; this . defeat = 0 ; this . score = 0 ; }

Init the ClientGameInformation usando el nombre del juego


public boolean isAlias  ( IVarAbstraction pn1 , IVarAbstraction pn2 ) { pn1 = pn1 . getRepresentative ( ) ; pn2 = pn2 . getRepresentative ( ) ; if ( ! pn1 . hasPTResult ( ) || ! pn2 . hasPTResult ( ) ) { VarNode vn1 = ( VarNode ) pn1 . getWrappedNode ( ) ; VarNode vn2 = ( VarNode ) pn2 . getWrappedNode ( ) ; return isAliasCI ( ( Local ) vn1 . getVariable ( ) , ( Local ) vn2 . getVariable ( ) ) ; } return pn1 . heap_sensitive_intersection ( pn2 ) ; }

Pruebe si dos punteros dados en forma de Geompta son un alias en cualquier contextual.


@ Override public boolean containsVertex  ( Set < String > labels ) { return true ; }

Comprueba si la partición tiene el vértice dado (etiquetas en vértice).Esta implementación devuelve <código> True </ Code> para todos los vértices.


public void appendAsterisksParams  ( Appendable sr , Map < String , Object > context , ModelFormField modelFormField ) throws IOException { String requiredField = "false" ; String requiredStyle = "" ; if ( modelFormField . getRequiredField ( ) ) { requiredField = "true" ; requiredStyle = modelFormField . getRequiredFieldStyle ( ) ; } sr . append ( " requiredField=" ) ; sr . append ( ftlFmt . makeStringLiteral ( requiredField ) ) ; sr . append ( " requiredStyle=" ) ; sr . append ( ftlFmt . makeStringLiteral ( requiredStyle ) ) ; sr . append ( "" ) ; }

Scipio: Factores Out renderastericks macro args.


public boolean skipSpaces  ( ) throws IOException  { if ( DEBUG_BUFFER ) { System . out . print ( "(skipSpaces: " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } int c = fCurrentEntity . ch [ fCurrentEntity . position ] ; if ( XMLChar . isSpace ( c ) ) { boolean external = fCurrentEntity . isExternal ( ) ; do { boolean entityChanged = false ; if ( c == '\n' || ( external && c == '\r' ) ) { fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { fCurrentEntity . ch [ 0 ] = ( char ) c ; entityChanged = load ( 1 , true ) ; if ( ! entityChanged ) { fCurrentEntity . position = 0 ; fCurrentEntity . startPosition = 0 ; } } if ( c == '\r' && external ) { if ( fCurrentEntity . ch [ ++ fCurrentEntity . position ] != '\n' ) { fCurrentEntity . position -- ; } } } else { fCurrentEntity . columnNumber ++ ; } if ( ! entityChanged ) fCurrentEntity . position ++ ; if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } } while ( XMLChar . isSpace ( c = fCurrentEntity . ch [ fCurrentEntity . position ] ) ) ; if ( DEBUG_BUFFER ) { System . out . print ( ")skipSpaces: " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( " -> true" ) ; } return true ; } if ( DEBUG_BUFFER ) { System . out . print ( ")skipSpaces: " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( " -> false" ) ; } return false ; }

Salta los caracteres del espacio que aparecen inmediatamente en la entrada.<p /> <strong> Nota: </ strong> Los personajes se consumen solo si son caracteres espaciales.


public AsyncCatchOptions noMasterBall  ( boolean skipMasterBall ) { this . skipMasterBall = skipMasterBall ; return this ; }

Establecer si se pueden usar o no bolas maestras


public void click  ( int mask , int x , int y ) throws InterruptedException { move ( x , y ) ; click ( mask ) ; }

Haga clic en el mouse con retraso predeterminado en cierta posición


@ Override public void load  ( DictionaryInfo dictionaryInfo , ColumnIdentifier columnIdentifier , long dictionaryChunkStartOffset , long dictionaryChunkEndOffset , boolean loadSortIndex ) throws IOException { Iterator < byte [ ] > columnDictionaryChunkWrapper = load ( columnIdentifier , dictionaryChunkStartOffset , dictionaryChunkEndOffset ) ; if ( loadSortIndex ) { readSortIndexFile ( dictionaryInfo , columnIdentifier ) ; } fillDictionaryValuesAndAddToDictionaryChunks ( dictionaryInfo , columnDictionaryChunkWrapper ) ; }

Este método cargará los datos del diccionario para un LamitIdentificador determinado


public SubEquipmentUnitAdd ( final Long changeId , final long subEquipmentId , final long parentEquipmentId , final String subEquipmentUnitXml ) { setChangeId ( changeId ) ; this . subEquipmentId = subEquipmentId ; this . parentEquipmentId = parentEquipmentId ; this . subEquipmentUnitXml = subEquipmentUnitXml ; }

Crea una nueva unidad de subquiecripcion Añadir cambio.


private void connectDB  ( ) { mongoClient = new MongoClient ( dbHost , dbPort ) ; db = mongoClient . getDatabase ( dbName ) ; usersCollection = db . getCollection ( "users" ) ; loginSessionsCollection = db . getCollection ( "logins" ) ; }


public EventRegistration ( long eventID , Object source , Lease lease , long seqNum ) { this . eventID = eventID ; this . source = source ; this . lease = lease ; this . seqNum = seqNum ; }

Construye un objeto <TT> EventRegistration </ tt>.


public static boolean isNumeric  ( String value ) { return NUMERIC_PATTERN . matcher ( value ) . matches ( ) ; }


@ VisibleForTesting public ResultWallet ( String email , String googleTransactionId , ResultCard card , ResultAddress billingAddress , ResultAddress shippingAddress ) { mEmail = email ; mGoogleTransactionId = googleTransactionId ; mCard = card ; mBillingAddress = billingAddress ; mShippingAddress = shippingAddress ; }

Crea un resultado de un resultado.Cualquier campos podría estar vacío o nulo.


private void computeUPMATree  ( Taxa taxa , Distances dist , PhyloTree tree ) { tree . clear ( ) ; int ntax = dist . getNtax ( ) ; Node [ ] subtrees = new Node [ ntax + 1 ] ; int [ ] sizes = new int [ ntax + 1 ] ; double [ ] heights = new double [ ntax + 1 ] ; for ( int i = 1 ; i <= ntax ; i ++ ) { subtrees [ i ] = tree . newNode ( ) ; tree . setLabel ( subtrees [ i ] , taxa . getLabel ( i ) ) ; sizes [ i ] = 1 ; } double d [ ] [ ] = new double [ ntax + 1 ] [ ntax + 1 ] ; for ( int i = 1 ; i <= ntax ; i ++ ) { for ( int j = i + 1 ; j <= ntax ; j ++ ) { double dij = ( dist . get ( i , j ) + dist . get ( j , i ) ) / 2.0 ; d [ i ] [ j ] = d [ j ] [ i ] = dij ; } } for ( int actual = ntax ; actual > 2 ; actual -- ) { int i_min = 0 , j_min = 0 ; double d_min = Double . MAX_VALUE ; for ( int i = 1 ; i <= actual ; i ++ ) { for ( int j = i + 1 ; j <= actual ; j ++ ) { double dij = d [ i ] [ j ] ; if ( i_min == 0 || dij < d_min ) { i_min = i ; j_min = j ; d_min = dij ; } } } double height = d_min / 2.0 ; Node v = tree . newNode ( ) ; Edge e = tree . newEdge ( v , subtrees [ i_min ] ) ; tree . setWeight ( e , Math . max ( height - heights [ i_min ] , 0.0 ) ) ; Edge f = tree . newEdge ( v , subtrees [ j_min ] ) ; tree . setWeight ( f , Math . max ( height - heights [ j_min ] , 0.0 ) ) ; subtrees [ i_min ] = v ; subtrees [ j_min ] = null ; heights [ i_min ] = height ; int size_i = sizes [ i_min ] ; int size_j = sizes [ j_min ] ; sizes [ i_min ] = size_i + size_j ; for ( int k = 1 ; k <= ntax ; k ++ ) { if ( ( k == i_min ) || k == j_min ) continue ; double dki = ( d [ k ] [ i_min ] * size_i + d [ k ] [ j_min ] * size_j ) / ( ( double ) ( size_i + size_j ) ) ; d [ k ] [ i_min ] = d [ i_min ] [ k ] = dki ; } if ( j_min < actual ) { for ( int k = 1 ; k <= actual ; k ++ ) { d [ j_min ] [ k ] = d [ k ] [ j_min ] = d [ actual ] [ k ] ; } d [ j_min ] [ j_min ] = 0.0 ; subtrees [ j_min ] = subtrees [ actual ] ; sizes [ j_min ] = sizes [ actual ] ; heights [ j_min ] = heights [ actual ] ; } } int sister = 2 ; while ( subtrees [ sister ] == null ) sister ++ ; Node root = tree . newNode ( ) ; tree . setRoot ( root ) ; double w1 , w2 ; double delta = Math . abs ( heights [ 1 ] - heights [ sister ] ) ; double distance = d [ 1 ] [ sister ] - delta ; if ( heights [ 1 ] <= heights [ sister ] ) { w1 = 0.5 * distance + delta ; w2 = 0.5 * distance ; } else { w1 = 0.5 * distance ; w2 = 0.5 * distance + delta ; } Edge e1 = tree . newEdge ( root , subtrees [ 1 ] ) ; tree . setWeight ( e1 , w1 ) ; Edge e2 = tree . newEdge ( root , subtrees [ sister ] ) ; tree . setWeight ( e2 , w2 ) ; }


private String number2Full  ( int time ) { if ( time < 10 ) { return "0" + time ; } else { return "" + time ; } }


public void startScroll  ( int startX , int startY , int dx , int dy ) { startScroll ( startX , startY , dx , dy , DEFAULT_DURATION ) ; }

Comience a desplazarse proporcionando un punto de partida y la distancia para viajar.El Scroll utilizará el valor predeterminado de 250 milisegundos durante la duración.


public void onPause  ( boolean multitasking ) { for ( CordovaPlugin plugin : this . pluginMap . values ( ) ) { if ( plugin != null ) { plugin . onPause ( multitasking ) ; } } }

Llamado cuando el sistema está a punto de comenzar a reanudar una actividad anterior.


Stream < Concept > insertAll ( )  { return insertAll ( new HashMap < > ( ) ) ; }


public void normalizeCifar  ( File fileName ) { DataSet result = new DataSet ( ) ; result . load ( fileName ) ; if ( ! meanStdStored && train ) { uMean = Math . abs ( uMean / numExamples ) ; uStd = Math . sqrt ( uStd ) ; vMean = Math . abs ( vMean / numExamples ) ; vStd = Math . sqrt ( vStd ) ; try { FileUtils . write ( meanVarPath , uMean + "," + uStd + "," + vMean + "," + vStd ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } meanStdStored = true ; } else if ( uMean == 0 && meanStdStored ) { try { String [ ] values = FileUtils . readFileToString ( meanVarPath ) . split ( "," ) ; uMean = Double . parseDouble ( values [ 0 ] ) ; uStd = Double . parseDouble ( values [ 1 ] ) ; vMean = Double . parseDouble ( values [ 2 ] ) ; vStd = Double . parseDouble ( values [ 3 ] ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } for ( int i = 0 ; i < result . numExamples ( ) ; i ++ ) { INDArray newFeatures = result . get ( i ) . getFeatureMatrix ( ) ; newFeatures . tensorAlongDimension ( 0 , new int [ ] { 0 , 2 , 3 } ) . divi ( 255 ) ; newFeatures . tensorAlongDimension ( 1 , new int [ ] { 0 , 2 , 3 } ) . subi ( uMean ) . divi ( uStd ) ; newFeatures . tensorAlongDimension ( 2 , new int [ ] { 0 , 2 , 3 } ) . subi ( vMean ) . divi ( vStd ) ; result . get ( i ) . setFeatures ( newFeatures ) ; } result . save ( fileName ) ; }

Normalizar y almacenar CIFAR según el enfoque de la antorcha exitosa de Sergey Zagoruyko Referencia: https://github.com/szagoruyko/cifar.torch


public boolean isCandidateResizable  ( int dimension ) { if ( dimension == 0 ) { return mConstraintWidget . getVerticalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . ANY || ( ( mConstraintWidget . getVerticalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . FIXED ) && mConstraintWidget . getHeight ( ) > mConstraintWidget . getMinHeight ( ) ) ; } else { return ( mConstraintWidget . getHorizontalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . ANY ) || ( ( mConstraintWidget . getHorizontalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . FIXED ) && mConstraintWidget . getWidth ( ) > mConstraintWidget . getMinWidth ( ) ) ; } }

Devuelva VERDADERO si el widget es un candidato que se debe marcar como resistible (cualquiera) - es decir, si la dimensión actual es más grande que su mínimo.


public UserDTO toDTO  ( User user ) { return toDTO ( user , 1 ) ; }


@ Override public void endElement  ( String uri , String localName , String qName ) throws SAXException { writeText4Links ( ) ; if ( ! mIgnoredTags . isEmpty ( ) && mIgnoredTags . peek ( ) . equalsIgnoreCase ( qName ) ) { mIgnoredTags . pop ( ) ; } else { if ( ! ( htmlMode && ( uri . equals ( "http://www.w3.org/1999/xhtml" ) || uri . equals ( "" ) ) && ( qName . equals ( "area" ) || qName . equals ( "base" ) || qName . equals ( "basefont" ) || qName . equals ( "br" ) || qName . equals ( "col" ) || qName . equals ( "frame" ) || qName . equals ( "hr" ) || qName . equals ( "img" ) || qName . equals ( "input" ) || qName . equals ( "isindex" ) || qName . equals ( "link" ) || qName . equals ( "meta" ) || qName . equals ( "param" ) ) ) ) { write ( "</" ) ; writeName ( uri , localName , qName , true ) ; write ( '>' ) ; } if ( elementLevel == 1 ) { write ( '\n' ) ; } if ( htmlMode && localName . equals ( "a" ) ) { mIgnoreChars = false ; } cdataElement = false ; super . endElement ( uri , localName , qName ) ; nsSupport . popContext ( ) ; elementLevel -- ; } }

Escribe una etiqueta final.<P> Pase el evento en la cadena de filtro para su posterior procesamiento.


static void updateFileListener  ( @ NotNull Project project ) { InstantRunManager manager = get ( project ) ; manager . myFileChangeListener . setEnabled ( InstantRunSettings . isInstantRunEnabled ( ) ) ; }

Sincroniza el estado de audición del archivo con si la ejecución instantánea está habilitada


public static Map < String , Object > deleteParty  ( DispatchContext ctx , Map < String , ? extends Object > context ) { Locale locale = ( Locale ) context . get ( "locale" ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resourceError , "partyservices.cannot_delete_party_not_implemented" , locale ) ) ; }


public void undo  ( ) { for ( int i = pathEvents . size ( ) - 1 ; i >= 0 ; i -- ) { if ( pathEvents . remove ( i ) . isMove ) break ; } applyEvents ( ) ; invalidate ( ) ; }


public static double distanceSq  ( Vector1D p1 , Vector1D p2 ) { return p1 . distanceSq ( p2 ) ; }

Calcular el cuadrado de la distancia entre dos vectores.<p> Llamar a este método es equivalente a llamar: <Code> P1.Subtract (P2) .getnormsq () </ codigo> Excepto que no se construye un vector intermedio </ p>


public void clear  ( ) { this . poNumber = null ; this . orderId = null ; this . firstAttemptOrderId = null ; this . billingAccountId = null ; this . billingAccountAmt = BigDecimal . ZERO ; this . nextItemSeq = 1 ; this . agreementId = null ; this . quoteId = null ; this . defaultItemDeliveryDate = null ; this . defaultItemComment = null ; this . orderAdditionalEmails = null ; this . readOnlyCart = false ; this . lastListRestore = null ; this . orderTermSet = false ; this . orderTerms . clear ( ) ; this . adjustments . clear ( ) ; this . expireSingleUsePayments ( ) ; this . cartLines . clear ( ) ; this . itemGroupByNumberMap . clear ( ) ; this . clearPayments ( ) ; this . shipInfo . clear ( ) ; this . contactMechIdsMap . clear ( ) ; this . internalOrderNotes . clear ( ) ; this . orderNotes . clear ( ) ; this . attributes . clear ( ) ; this . orderAttributes . clear ( ) ; for ( Map . Entry < String , List < String > > me : this . additionalPartyRole . entrySet ( ) ) { ( ( LinkedList < String > ) me . getValue ( ) ) . clear ( ) ; } this . additionalPartyRole . clear ( ) ; this . freeShippingProductPromoActions . clear ( ) ; this . desiredAlternateGiftByAction . clear ( ) ; this . productPromoUseInfoList . clear ( ) ; this . productPromoCodes . clear ( ) ; if ( ProductStoreWorker . autoSaveCart ( this . getDelegator ( ) , this . getProductStoreId ( ) ) ) { GenericValue ul = this . getUserLogin ( ) ; if ( ul == null ) { ul = this . getAutoUserLogin ( ) ; } if ( ul != null && ! "anonymous" . equals ( ul . getString ( "userLoginId" ) ) ) { this . autoSaveListId = null ; } if ( autoSaveListId == null ) { try { autoSaveListId = ShoppingListEvents . getAutoSaveListId ( this . getDelegator ( ) , null , null , ul , this . getProductStoreId ( ) ) ; } catch ( GeneralException e ) { Debug . logError ( e , module ) ; } } if ( autoSaveListId != null ) { try { org . ofbiz . order . shoppinglist . ShoppingListEvents . clearListInfo ( this . getDelegator ( ) , autoSaveListId ) ; } catch ( GenericEntityException e ) { Debug . logError ( e , module ) ; } } this . lastListRestore = null ; this . autoSaveListId = null ; } }


public boolean shExpMatch  ( String str , String shexp ) { StringTokenizer tokenizer = new StringTokenizer ( shexp , "*" ) ; int startPos = 0 ; while ( tokenizer . hasMoreTokens ( ) ) { String token = tokenizer . nextToken ( ) ; int temp = str . indexOf ( token , startPos ) ; if ( startPos == 0 && ! shexp . startsWith ( "*" ) && temp != 0 ) { return false ; } if ( ! tokenizer . hasMoreTokens ( ) && ! shexp . endsWith ( "*" ) && ! str . endsWith ( token ) ) { return false ; } if ( temp == - 1 ) { return false ; } else { startPos = temp + token . length ( ) ; } } return true ; }

Devuelve VERDADERO si la cadena coincide con la expresión de shell especificada.En realidad, actualmente los patrones son expresiones de cáscara, no expresiones regulares.


@ RequestMapping ( value = "/user/login" , method = RequestMethod . POST , headers = { "Accept=application/json; charset=UTF-8" , "Content-Type=application/json" } ) public RespJson userLogin  ( @ RequestBody LoginReqDto reqDto ) { if ( reqDto == null || StringUtils . isEmpty ( reqDto . getUserId ( ) ) || StringUtils . isEmpty ( reqDto . getPassword ( ) ) ) { return RespJson . buildFailureResponse ( ERR_ID_PASSWORD_EMPTY ) ; } try { LoginResDto resDto = userService . login ( reqDto ) ; return RespJson . buildSuccessResponse ( resDto ) ; } catch ( Exception e ) { logger . error ( "Login Failed: " + StringUtils . getValidString ( e . getMessage ( ) ) ) ; return RespJson . buildFailureResponse ( StringUtils . getValidString ( e . getMessage ( ) ) ) ; } }


public void requestSoftReset  ( ) { SerialMessage msg = new SerialApiSoftResetMessageClass ( ) . doRequest ( ) ; msg . attempts = 1 ; enqueue ( msg ) ; logger . debug ( "ZWave controller soft reset" ) ; }

Envía una solicitud para realizar un restablecimiento suave en el controlador.Esto simplemente restablecerá el controlador, probablemente similar a un ciclo de alimentación.No reinicia la red, o cambia la configuración de la red.<p> <b> nota </ b>: ¿En algunos (más!) Sticks, esto no devuelve una respuesta.Por lo tanto, el número de reintentos se establece en 1. <B> nota </ b>: ¿En algunos (la mayoría!) Zwave-plus Sticks, esto puede hacer que el palo se colgara.


public void removeChangingListener  ( OnWheelChangedListener listener ) { changingListeners . remove ( listener ) ; }


public static < T > T  readRepetitiveObject ( ObjectInput in )  throws IOException , ClassNotFoundException  { if ( in instanceof MarshalInputStream ) return ( T ) ( ( MarshalInputStream ) in ) . readRepetitiveObject ( ) ; return ( T ) readObject ( in ) ; }

Los objetos leen y escritos con repetitivo deben ser inmutables (no se pueden cambiar, ya que se mantienen en el mapa subyacente, lo que los cambia afectará a la próxima repetitiveread / escritura


public void loadMultipleFragments  ( FragmentManager fragmentManager , int containerId , int showPos , BaseFragment ... fragments ) { FragmentTransaction ft = fragmentManager . beginTransaction ( ) ; ft . setTransition ( FragmentTransaction . TRANSIT_FRAGMENT_OPEN ) ; for ( int i = 0 ; i < fragments . length ; i ++ ) { BaseFragment fragment = fragments [ i ] ; if ( fragment == null ) { throw new IllegalArgumentException ( "loadMultipleFragments fragment in list can not be null " ) ; } String tag = fragment . getClass ( ) . getName ( ) ; ft . add ( containerId , fragment , tag ) ; if ( showPos != i ) { ft . hide ( fragment ) ; } Bundle bundle = fragment . getArguments ( ) ; if ( bundle != null ) { bundle . putBoolean ( ARG_IS_ROOT , true ) ; } } ft . commit ( ) ; }


public static String separatorsToWindows  ( String path ) { if ( path == null || path . indexOf ( UNIX_SEPARATOR ) == - 1 ) { return path ; } return path . replace ( UNIX_SEPARATOR , WINDOWS_SEPARATOR ) ; }

Convierte a todos los separadores al separador de Windows de Backslash.


public LinkedList < Patch > patch_make  ( String text1 , LinkedList < Diff > diffs ) { if ( text1 == null || diffs == null ) { throw new IllegalArgumentException ( "Null inputs. (patch_make)" ) ; } LinkedList < Patch > patches = new LinkedList < Patch > ( ) ; if ( diffs . isEmpty ( ) ) { return patches ; } Patch patch = new Patch ( ) ; int char_count1 = 0 ; int char_count2 = 0 ; String prepatch_text = text1 ; String postpatch_text = text1 ; for ( Diff aDiff : diffs ) { if ( patch . diffs . isEmpty ( ) && aDiff . operation != Operation . EQUAL ) { patch . start1 = char_count1 ; patch . start2 = char_count2 ; } switch ( aDiff . operation ) { case INSERT : patch . diffs . add ( aDiff ) ; patch . length2 += aDiff . text . length ( ) ; postpatch_text = postpatch_text . substring ( 0 , char_count2 ) + aDiff . text + postpatch_text . substring ( char_count2 ) ; break ; case DELETE : patch . length1 += aDiff . text . length ( ) ; patch . diffs . add ( aDiff ) ; postpatch_text = postpatch_text . substring ( 0 , char_count2 ) + postpatch_text . substring ( char_count2 + aDiff . text . length ( ) ) ; break ; case EQUAL : if ( aDiff . text . length ( ) <= 2 * Patch_Margin && ! patch . diffs . isEmpty ( ) && aDiff != diffs . getLast ( ) ) { patch . diffs . add ( aDiff ) ; patch . length1 += aDiff . text . length ( ) ; patch . length2 += aDiff . text . length ( ) ; } if ( aDiff . text . length ( ) >= 2 * Patch_Margin ) { if ( ! patch . diffs . isEmpty ( ) ) { patch_addContext ( patch , prepatch_text ) ; patches . add ( patch ) ; patch = new Patch ( ) ; prepatch_text = postpatch_text ; char_count1 = char_count2 ; } } break ; } if ( aDiff . operation != Operation . INSERT ) { char_count1 += aDiff . text . length ( ) ; } if ( aDiff . operation != Operation . DELETE ) { char_count2 += aDiff . text . length ( ) ; } } if ( ! patch . diffs . isEmpty ( ) ) { patch_addContext ( patch , prepatch_text ) ; patches . add ( patch ) ; } return patches ; }

Calcule una lista de parches para convertir el texto1 en texto2.No se proporciona texto2, DIFTS es el Delta entre Text1 y Text2.


private Iterator < Map . Entry < UUID , Change > > decodeChangesFromCql  ( final Iterator < Row > iter ) { return Iterators . transform ( iter , null ) ; }

Convierte una lista de filas en las instancias de cambio.


public int flags  ( ) { return theFlags ; }

Devuelve las banderas asociadas con este tipo de elemento.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUMMON_COOLDOWN  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1200012 , value0 ) ; }

Usted convoca en% 0 espíritu.El tiempo de enfriamiento comienza cuando está insuminado, y toma más tiempo cuando el espíritu es asesinado por un enemigo.


public FactoryConfigurationError ( java . lang . Exception e , java . lang . String msg ) { super ( msg ) ; nested = e ; }

Construir una excepción con una excepción interna anidadada y un mensaje


public void readFields  ( DataInput in ) throws IOException { long length = in . readLong ( ) ; if ( length == 0 ) { array = null ; return ; } int type = in . readInt ( ) ; if ( array == null || array . length ( ) != length ) { if ( length >= Integer . MAX_VALUE ) { throw new IllegalArgumentException ( "Length can not be >= Integer.MAX_VALUE" ) ; } array = Nd4j . zeros ( ( int ) length ) ; } if ( type == DataBuffer . Type . DOUBLE . ordinal ( ) ) { for ( int i = 0 ; i < length ; i ++ ) { array . putScalar ( i , in . readDouble ( ) ) ; } } else if ( type == DataBuffer . Type . FLOAT . ordinal ( ) ) { for ( int i = 0 ; i < length ; i ++ ) { array . putScalar ( i , in . readFloat ( ) ) ; } } else if ( type == DataBuffer . Type . INT . ordinal ( ) ) { for ( int i = 0 ; i < length ; i ++ ) { array . putScalar ( i , in . readInt ( ) ) ; } } else { throw new UnsupportedOperationException ( "Unsupported data type: " + type ) ; } }

Deserializar en un vector de fila del tipo predeterminado.


Generar matriz de prueba cuadrada mágica.


public PagesGetVersionQuery needHtml  ( Boolean value ) { return unsafeParam ( "need_html" , value ) ; }


public void indexDocsByDelta  ( Path path , String repoName , String repoLocations , String repoRemoteLocation , RepositoryChanged repositoryChanged ) { SearchcodeLib scl = Singleton . getSearchCodeLib ( ) ; Queue < CodeIndexDocument > codeIndexDocumentQueue = Singleton . getCodeIndexQueue ( ) ; String fileRepoLocations = FilenameUtils . separatorsToUnix ( repoLocations ) ; List < String [ ] > reportList = new ArrayList < > ( ) ; for ( String changedFile : repositoryChanged . getChangedFiles ( ) ) { if ( this . shouldJobPauseOrTerminate ( ) == true ) { return ; } String [ ] split = changedFile . split ( "/" ) ; String fileName = split [ split . length - 1 ] ; changedFile = fileRepoLocations + "/" + repoName + "/" + changedFile ; String md5Hash = Values . EMPTYSTRING ; List < String > codeLines = null ; try { codeLines = Helpers . readFileLinesGuessEncoding ( changedFile , this . MAXFILELINEDEPTH ) ; } catch ( IOException ex ) { Singleton . getLogger ( ) . warning ( "ERROR - caught a " + ex . getClass ( ) + " in " + this . getClass ( ) + "\n with message: " + ex . getMessage ( ) ) ; reportList . add ( new String [ ] { changedFile , "excluded" , "unable to guess guess file encoding" } ) ; break ; } if ( scl . isMinified ( codeLines ) ) { Singleton . getLogger ( ) . info ( "Appears to be minified will not index  " + changedFile ) ; reportList . add ( new String [ ] { changedFile , "excluded" , "appears to be minified" } ) ; break ; } if ( codeLines . isEmpty ( ) ) { Singleton . getLogger ( ) . info ( "Unable to guess encoding type or file is empty " + changedFile ) ; reportList . add ( new String [ ] { changedFile , "excluded" , "empty file" } ) ; break ; } if ( this . determineBinary ( changedFile , fileName , codeLines , reportList ) ) { break ; } md5Hash = this . getFileMd5 ( changedFile ) ; String languageName = scl . languageGuesser ( changedFile , codeLines ) ; String fileLocation = changedFile . replace ( fileRepoLocations , Values . EMPTYSTRING ) . replace ( fileName , Values . EMPTYSTRING ) ; String fileLocationFilename = changedFile . replace ( fileRepoLocations , Values . EMPTYSTRING ) ; String repoLocationRepoNameLocationFilename = changedFile ; String newString = this . getBlameFilePath ( fileLocationFilename ) ; String codeOwner = getCodeOwner ( codeLines , newString , repoName , fileRepoLocations , scl ) ; reportList . add ( new String [ ] { changedFile , "included" , "" } ) ; if ( codeLines != null ) { if ( this . LOWMEMORY ) { try { CodeIndexer . indexDocument ( new CodeIndexDocument ( repoLocationRepoNameLocationFilename , repoName , fileName , fileLocation , fileLocationFilename , md5Hash , languageName , codeLines . size ( ) , StringUtils . join ( codeLines , " " ) , repoRemoteLocation , codeOwner ) ) ; } catch ( IOException ex ) { Singleton . getLogger ( ) . warning ( "ERROR - caught a " + ex . getClass ( ) + " in " + this . getClass ( ) + "\n with message: " + ex . getMessage ( ) ) ; } } else { Singleton . incrementCodeIndexLinesCount ( codeLines . size ( ) ) ; codeIndexDocumentQueue . add ( new CodeIndexDocument ( repoLocationRepoNameLocationFilename , repoName , fileName , fileLocation , fileLocationFilename , md5Hash , languageName , codeLines . size ( ) , StringUtils . join ( codeLines , " " ) , repoRemoteLocation , codeOwner ) ) ; } } } if ( this . LOGINDEXED && reportList . isEmpty ( ) == false ) { this . logIndexed ( repoName + "_delta" , reportList ) ; } for ( String deletedFile : repositoryChanged . getDeletedFiles ( ) ) { Singleton . getLogger ( ) . info ( "Missing from disk, removing from index " + deletedFile ) ; try { CodeIndexer . deleteByFileLocationFilename ( deletedFile ) ; } catch ( IOException ex ) { Singleton . getLogger ( ) . warning ( "ERROR - caught a " + ex . getClass ( ) + " in " + this . getClass ( ) + " indexDocsByDelta deleteByFileLocationFilename for " + repoName + " " + deletedFile + "\n with message: " + ex . getMessage ( ) ) ; } } }

Índices Todos los documentos en el repositorio cambian de forma efectiva que realizan una actualización de Delta solo se deben llamar cuando hay una actualización genuina, es decir, algo se indexó anteriormente y tiene una nueva confirmación.


private static char [ ] zzUnpackCMap  ( String packed ) { char [ ] map = new char [ 0x10000 ] ; int i = 0 ; int j = 0 ; while ( i < 2318 ) { int count = packed . charAt ( i ++ ) ; char value = packed . charAt ( i ++ ) ; do map [ j ++ ] = value ; while ( -- count > 0 ) ; } return map ; }

Desempaqueta la tabla de traducción de caracteres comprimidos.


public void splashscreenVisible  ( ) { assert mSplashScreenVisibleTime == 0 ; mSplashScreenVisibleTime = SystemClock . elapsedRealtime ( ) ; }

Señal de que la pantalla de salpicaduras ahora es visible.Esto se está utilizando para grabar por cuánto tiempo se deja visible la pantalla de salpicaduras.


public void collapseViews  ( ) { if ( isSelectAnimationInProcess || isWaitingToSelectAnimation || isDeselectAnimationInProcess || isWaitingToDeselectAnimation || isSelectedItemStraightened || isViewCollapsing ) { return ; } isViewCollapsing = true ; updateItemsByMode ( ) ; }


@ SuppressWarnings ( "deprecation" ) private void initTime  ( ) { Time time = new Time ( System . currentTimeMillis ( ) ) ; int hours = time . getHours ( ) ; mHourSingleDigits = hours % 10 ; mHourTenDigits = hours / 10 ; int minutes = time . getMinutes ( ) ; mMinSingleDigits = minutes % 10 ; mMinTenDigits = minutes / 10 ; int seconds = time . getSeconds ( ) ; mSecSingleDigits = seconds % 10 ; mSecTenDigits = seconds / 10 ; }

Para obtener la hora exacta y para asignar los valores.


public static void writeLines  ( Collection < ? > lines , String lineEnding , OutputStream output , String encoding ) throws IOException { writeLines ( lines , lineEnding , output , Charsets . toCharset ( encoding ) ) ; }

Escribe el valor <código> TOSTRING () </ CODE> de cada elemento en una colección a una línea </ código> de SURODSTREAM </ CODE>, utilizando la codificación de caracteres especificada y la finalización de la línea especificada.<p /> Los nombres de codificación de caracteres se pueden encontrar en <a href="http://www.iana.org/assignments/Character-sets"> IANA </A>.


public GetRemoteResourceCommand ( ISVNRepositoryLocation repository , SVNUrl url , SVNRevision revision ) { this . repository = repository ; this . url = url ; this . revision = revision ; }

La revisión no debe ser svnRevision.Base!


public boolean canSet  ( T value ) { return isSettable ? internalCanSet ( value ) : matches ( value ) ; }

Devuelve verdadero si el valor dado puede configurar / cargarse de forma segura / correcta en este anyval


@ RequestMapping ( method = RequestMethod . GET , produces = "application/json" ) public JsonNode listDeployments  ( HttpServletRequest request ) { log . debug ( "REST request to get a list of deployments" ) ; JsonNode resultNode = null ; ServerConfig serverConfig = retrieveServerConfig ( ) ; Map < String , String [ ] > parameterMap = getRequestParametersWithoutServerId ( request ) ; try { resultNode = clientService . listDeployments ( serverConfig , parameterMap ) ; } catch ( ActivitiServiceException e ) { throw new BadRequestException ( e . getMessage ( ) ) ; } return resultNode ; }

Obtenga / Rest / Activiti / Implementaciones -> Obtenga una lista de implementaciones.


public Matrix minusEquals  ( Matrix B ) { checkMatrixDimensions ( B ) ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { A [ i ] [ j ] = A [ i ] [ j ] - B . A [ i ] [ j ] ; } } return this ; }


@ Override public void onCreate  ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; getActivity ( ) . requestWindowFeature ( Window . FEATURE_NO_TITLE ) ; setContentView ( R . layout . activity_capture ) ; surfaceView = ( SurfaceView ) findViewById ( R . id . surfaceview ) ; viewfinderView = ( ViewfinderView ) findViewById ( R . id . viewfinderview ) ; Window window = getActivity ( ) . getWindow ( ) ; window . addFlags ( WindowManager . LayoutParams . FLAG_KEEP_SCREEN_ON ) ; hasSurface = false ; inactivityTimer = new InactivityTimer ( getActivity ( ) ) ; XHscantype = getIntent ( ) . getIntExtra ( "XHscantype" , 2 ) ; }

Se llama cuando se crea por primera vez la actividad.


public Matrix4f mult  ( Matrix4f in2 ) { return mult ( in2 , null ) ; }

<CÓDIGO> MULT </ CODE> Multiplica esta matriz con otra matriz.La matriz de resultados será devuelta.Esta matriz estará en el lado izquierdo, mientras que la matriz de parámetros estará a la derecha.


public AuthConfirmQuery ( VkApiClient client , int clientId , String clientSecret , String phone , String code ) { super ( client , "auth.confirm" , ConfirmResponse . class ) ; clientId ( clientId ) ; clientSecret ( clientSecret ) ; phone ( phone ) ; code ( code ) ; }

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


public static void createAccessorMethods  ( Body body , Stmt before , Stmt after ) { soot . util . Chain units = body . getUnits ( ) ; if ( before != null && ! units . contains ( before ) ) throw new RuntimeException ( ) ; if ( after != null && ! units . contains ( after ) ) throw new RuntimeException ( ) ; ArrayList < Unit > unitList = new ArrayList < Unit > ( ) ; unitList . addAll ( units ) ; boolean bInside = before == null ; for ( Unit unit : unitList ) { Stmt s = ( Stmt ) unit ; if ( bInside ) { if ( s == after ) return ; if ( ! isAccessLegal ( body . getMethod ( ) , s ) ) createAccessorMethod ( body . getMethod ( ) , s ) ; } else { if ( s == before ) bInside = true ; } } }

Resuelve los accesos ilegales en el intervalo] antes, después de [creando métodos de accesorios.<CÓDIGO> Antes de </ code> y <code> después de </ code> puede ser nulo para indicar el inicio / finalización respectivamente.


public String start_graph  ( ) { return "digraph G {" ; }

Devuelve una cadena que se usa para iniciar un gráfico.


public Bitmap put  ( String key , Bitmap value ) { return cache . put ( key , value ) ; }

Pon el mapa de bits a la memoria caché de la imagen.


private void checkTotalDuration  ( ) { String metadataTotalDurationTc = metadataXmlProvider . getDpp ( ) . getTechnical ( ) . getTimecodes ( ) . getTotalProgrammeDuration ( ) . getValue ( ) ; if ( StringUtils . isEmpty ( metadataTotalDurationTc ) ) { return ; } String destFps = contextProvider . getDestContext ( ) . getParameterValue ( DestContextParameters . FRAME_RATE ) ; if ( destFps == null ) { destFps = MetadataXmlProvider . DEST_FRAME_RATE ; } BigFraction fps = ConversionHelper . parseEditRate ( destFps ) ; long metadataTotalDurationMs = ConversionHelper . smpteTimecodeToMilliSeconds ( metadataTotalDurationTc , fps ) ; long cplTotalDurationMs = getCplTotalDurationMs ( ) ; if ( metadataTotalDurationMs == 0 ) { return ; } if ( metadataTotalDurationMs > cplTotalDurationMs ) { throw new ConversionException ( String . format ( "A total programme duration as specified in metadata.xml (%s, %s ms) exceeds a " + "total duration of the output as defined by the CPL (%s, %s ms) " , metadataTotalDurationTc , String . valueOf ( metadataTotalDurationMs ) , ConversionHelper . msToSmpteTimecode ( cplTotalDurationMs , fps ) , String . valueOf ( cplTotalDurationMs ) ) ) ; } }

Verifique que la duración total especificada en Metadata.xml sea menor que la duración total del archivo de salida.De lo contrario, la conversión se abortará en el último paso (BMX).Puede hacer infeliz al usuario después de una larga conversión.


public void track  ( File file , Object marker , FileDeleteStrategy deleteStrategy ) { if ( file == null ) { throw new NullPointerException ( "The file must not be null" ) ; } addTracker ( file . getPath ( ) , marker , deleteStrategy ) ; }

Haga un seguimiento del archivo especificado, utilizando el marcador proporcionado, eliminando el archivo cuando la instancia del marcador se recolecte basura.Se utiliza la estrategia de eliminación especiada.


public void clearBasicAuth  ( ) { this . httpClient . getCredentialsProvider ( ) . clear ( ) ; }

Elimina establecer credenciales de autenticación básicas


protected void mouseClicked  ( int mouseX , int mouseY , int mouseButton ) { for ( int i = 0 ; i < 12 ; i ++ ) { GuiTextField txt = ( ( GuiQuickCommandsList . CommandEntry ) this . guiList . getListEntry ( i ) ) . txt ; txt . setFocused ( false ) ; } if ( mouseButton != 0 || ! this . guiList . mouseClicked ( mouseX , mouseY , mouseButton ) ) { try { super . mouseClicked ( mouseX , mouseY , mouseButton ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } }

Llamado cuando se hace clic en el mouse.Args: Mousex, Moundyy, ClickedButton


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


public OrdersChangeStateQuery appOrderId  ( Integer value ) { return unsafeParam ( "app_order_id" , value ) ; }

Identificación interna del pedido en la solicitud.


public FriendsDeleteListQuery ( VkApiClient client , UserActor actor , int listId ) { super ( client , "friends.deleteList" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; listId ( listId ) ; }


public static S2LatLngRect fromPoint  ( S2LatLng p ) { return new S2LatLngRect ( p , p ) ; }

Método de conveniencia para construir un rectángulo que contiene un solo punto.


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

Devuelve si el desplazador ha terminado de desplazarse.


public static void saveDocument  ( final Document document , final String outputFullFilename ) { OutputStream outputStream = null ; try { TransformerFactory transformerFactory = TransformerFactory . newInstance ( ) ; Transformer transformer = transformerFactory . newTransformer ( ) ; DOMSource domSource = new DOMSource ( document ) ; transformer . setOutputProperty ( OutputKeys . ENCODING , Constant . Encoding . UTF8 ) ; outputStream = new FileOutputStream ( outputFullFilename ) ; StreamResult result = new StreamResult ( outputStream ) ; transformer . transform ( domSource , result ) ; } catch ( Exception e ) { throw new JavaXmlUtilException ( e ) ; } finally { if ( outputStream != null ) { try { outputStream . close ( ) ; } catch ( Exception e ) { throw new JavaXmlUtilException ( e ) ; } } } }


public ArrayRealVector ( Double [ ] d , int pos , int size ) throws MathIllegalArgumentException , NullArgumentException  { if ( d == null ) { throw new NullArgumentException ( ) ; } if ( d . length < pos + size ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . NUMBER_TOO_LARGE , pos + size , d . length ) ; } data = new double [ size ] ; for ( int i = pos ; i < pos + size ; i ++ ) { data [ i - pos ] = d [ i ] . doubleValue ( ) ; } }

Construir un vector de parte de una matriz.


public static void syncSummary2NetworkFormatting  ( DataTable megan4Table , ClusterViewer clusterViewer ) { System . err . println ( "syncSummary2NetworkFormatting(): not implemented" ) ; }

Sincronizar su resumen al formato de red


public boolean useRecentUpdatesForPinning  ( ) { return isEvictableCachePolicy ( ) && ! _isMemorySA && ( ! _readOnlySA || _engine . hasMirror ( ) ) ; }

Devuelve VERDADERO si hay que usar HASHUTDATOS en el motor.


public boolean isLegendVisible  ( ) { return legendVisible ; }

Devuelve VERDADERO si la sección de leyenda de la tabla es visible, falsa de lo contrario.

  Nota:  Este método debe llamarse en el hilo de despacho de eventos.


public OrExpr newOrExpr  ( Value op1 , Value op2 ) { return new GOrExpr ( op1 , op2 ) ; }

Construye un trozo de gramática OREXPR (EXPR, EXPR).


public static boolean isUrlString  ( String s ) { return s . startsWith ( "http:/" ) || s . startsWith ( "ftp:/" ) || s . startsWith ( "file:/" ) ; }

Indica si una cadena dada es una cadena de URL.Los controles para ver si la cadena comienza con la "http: /", "ftp: /", o "Archivo: /" Protocolo Strings.


public static String sanitizeText  ( String text ) { if ( text == null ) return null ; return text . replace ( OBJ_CHARACTER , " " ) . trim ( ) ; }

Desinfiga una cadena que se mostrará en la barra de búsqueda contextual.


public static boolean isAtLeastJava19  ( ) { return getMajorJavaVersion ( ) >= JAVA_19 ; }

Método de conveniencia para determinar si el JVM actual es al menos Java 1.9 (Java 9).


@ Override public void run  ( ) { logger . debug ( "Starting ZWave thread: Input" ) ; SerialMessage recvMessage ; while ( ! interrupted ( ) ) { try { if ( recvQueue . size ( ) == 0 ) { sendAllowed . release ( ) ; } recvMessage = recvQueue . take ( ) ; logger . debug ( "Receive queue TAKE: Length={}" , recvQueue . size ( ) ) ; logger . debug ( "Process Message = {}" , SerialMessage . bb2hex ( recvMessage . getMessageBuffer ( ) ) ) ; handleIncomingMessage ( recvMessage ) ; sendAllowed . tryAcquire ( ) ; } catch ( InterruptedException e ) { logger . error ( "Exception during ZWave thread: Input 1. {}" , e ) ; break ; } catch ( Exception e ) { logger . error ( "Exception during ZWave thread: Input 2. {}" , e ) ; } } logger . debug ( "Stopped ZWave thread: Input" ) ; }

Método de ejecución.Ejecuta el proceso de recepción real.


public static byte [ ] encode  ( byte [ ] data , String pub_key ) { try { Cipher cipher = Cipher . getInstance ( "RSA/ECB/PKCS1Padding" ) ; java . security . Key k = getPublicKey ( pub_key ) ; cipher . init ( Cipher . ENCRYPT_MODE , k ) ; byte [ ] enBytes = cipher . doFinal ( data ) ; return enBytes ; } catch ( Exception e ) { log . error ( "pubkey=" + pub_key + ", data.length=" + data . length , e ) ; } return null ; }

Codifique los datos con la clave pública.


public HttpUrl baseUrl  ( ) { return baseUrl ; }


@ Nullable private TableReportEntry convertToTableReportEntry  ( Map < String , Object > map , Predicate < String > placementFilter , Predicate < Boolean > droppedFilter , Predicate < Boolean > facadeFilter ) { if ( Intrinsic . isDeleted ( map ) ) { return null ; } final String tableName = Intrinsic . getId ( map ) ; List < TableReportEntryTable > tables = Lists . newArrayListWithExpectedSize ( map . size ( ) ) ; for ( Map . Entry < String , Object > entry : toMap ( map . get ( "tables" ) ) . entrySet ( ) ) { TableReportEntryTable entryTable = convertToTableReportEntryTable ( entry . getKey ( ) , toMap ( entry . getValue ( ) ) , placementFilter , droppedFilter , facadeFilter ) ; if ( entryTable != null ) { tables . add ( entryTable ) ; } } if ( tables . isEmpty ( ) ) { return null ; } return new TableReportEntry ( tableName , tables ) ; }

Acepta una fila del informe de la tabla y devuelve que se convierte en una tablerepententry.Si se elimina la fila o si no coincide con todos los filtros configurados, entonces se devuelve Null.


public void computeFromPoints  ( FloatBuffer points ) { containAABB ( points ) ; }

<Código> ComputeFromPoints </ Code> Crea una nueva caja de límite desde un conjunto dado de puntos.Utiliza el método <Code> contieneABB </ código> como predeterminado.


public boolean isEnabled  ( ) { return enabled ; }


@ Override public void actionPerformed  ( ActionEvent event ) { final ImportBlastDialog importBlastDialog = ( ImportBlastDialog ) getParent ( ) ; final File lastOpenFile = ProgramProperties . getFile ( MeganProperties . BLASTFILE ) ; final DAAFileFilter fileFilter = new DAAFileFilter ( ) ; java . util . List < File > files = ChooseFileDialog . chooseFilesToOpen ( importBlastDialog , lastOpenFile , fileFilter , fileFilter , event , "Open Diamond DAA file(s)" ) ; if ( files . size ( ) > 0 ) { importBlastDialog . setBlastFileName ( Basic . toString ( files , "\n" ) ) ; importBlastDialog . getBlastFileNameField ( ) . setText ( Basic . toString ( files , "\n" ) ) ; ProgramProperties . put ( MeganProperties . BLASTFILE , files . get ( 0 ) ) ; } }


public void updateDataTag  ( final DataTagUpdate dataTagUpdate , final SourceDataTag sourceDataTag ) throws IllegalAccessException , NoSuchFieldException { fillNonNullFields ( dataTagUpdate , sourceDataTag , CHANGE_ID_FIELD , DATA_TAG_ID_FIELD , EQUIPMENT_ID_FIELD ) ; removeListOfFields ( dataTagUpdate . getFieldsToRemove ( ) , sourceDataTag ) ; if ( dataTagUpdate . getDataTagAddressUpdate ( ) != null ) { DataTagAddress dataTagAddress = sourceDataTag . getAddress ( ) ; if ( dataTagAddress == null ) { dataTagAddress = new DataTagAddress ( ) ; sourceDataTag . setAddress ( dataTagAddress ) ; } updateDataTagAddress ( dataTagUpdate . getDataTagAddressUpdate ( ) , dataTagAddress ) ; } }

Actualiza los valores de una etiqueta de datos con los valores de un objeto de actualización.


public static SM_SYSTEM_MESSAGE STR_DECOMPOUND_ERROR_NOT_DECOMPOUNDABLE_ITEM  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400859 , value0 ) ; }


public static ComponentMeta metaByStateLink  ( String stateLink ) { if ( null == stateLink ) { return null ; } List < RegistryEntry > list = entries . stream ( ) . filter ( null ) . collect ( Collectors . toList ( ) ) ; if ( list . isEmpty ( ) ) { return null ; } return list . get ( 0 ) . componentMeta ; }

Recupere los datos META para una descripción del componente por el enlace del estado (instancia) de Component.


public static SM_SYSTEM_MESSAGE STR_MSG_SELL_ITEM  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300786 , value0 ) ; }


public static java . util . Date toDate  ( String monthStr , String dayStr , String yearStr , String hourStr , String minuteStr , String secondStr ) { int month , day , year , hour , minute , second ; try { month = Integer . parseInt ( monthStr ) ; day = Integer . parseInt ( dayStr ) ; year = Integer . parseInt ( yearStr ) ; hour = Integer . parseInt ( hourStr ) ; minute = Integer . parseInt ( minuteStr ) ; second = Integer . parseInt ( secondStr ) ; } catch ( Exception e ) { return null ; } return toDate ( month , day , year , hour , minute , second ) ; }

Hace una fecha de cadenas separadas durante un mes, día, año, hora, minuto y segundo.


public TIntObjectHashMap ( ) { super ( ) ; }

Crea una nueva instancia de <código> tintobjethashashmap </ código> con la capacidad de carga predeterminada y el factor de carga.


public LookupDiscovery ( String [ ] groups ) throws IOException { try { beginDiscovery ( groups , EmptyConfiguration . INSTANCE ) ; } catch ( ConfigurationException e ) { } }

Construya un nuevo objeto de descubrimiento de búsqueda, configurado para descubrir el conjunto dado de grupos.El conjunto está representado como una matriz de cuerdas.Esta matriz puede estar vacía, que se toma como el conjunto vacío, y el descubrimiento no se realiza.La referencia aprobada en puede ser nula, que se toma como no se establece, y en cuyo caso se realiza el descubrimiento de todos los servicios de búsqueda accesible.De lo contrario, la matriz contiene los nombres de los grupos para descubrir.La persona que llama debe tener DiscoveryPerMission para cada grupo (o para todos los grupos, si la matriz es nula).


public ShardRouterException ( String message ) { super ( message ) ; }

Construye una nueva excepción de tiempo de ejecución con el mensaje de detalle especificado.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_StatDown_ME_TO_SELF  ( String value0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200417 , value0 , skillname ) ; }

Su% 0 se ha debilitado utilizando [% de habilidad].


public final boolean decrypt  ( ByteBuffer buf ) { if ( ! isEnabled ) { log . debug ( "if encryption wasn't enabled, then maybe it's client reconnection, so skip packet" ) ; return true ; } return packetKey . decrypt ( buf ) ; }

Decrypt Client Packet de este bytebuffer.


protected void tag  ( String tag , String [ ] names , String [ ] values , int nattr , boolean close ) { spacing ( ) ; m_out . print ( '<' ) ; m_out . print ( tag ) ; for ( int i = 0 ; i < nattr ; ++ i ) { m_out . print ( ' ' ) ; m_out . print ( names [ i ] ) ; m_out . print ( '=' ) ; m_out . print ( '\"' ) ; escapeString ( values [ i ] ) ; m_out . print ( '\"' ) ; } if ( close ) m_out . print ( '/' ) ; m_out . print ( '>' ) ; println ( ) ; if ( ! close ) { m_tagStack . add ( tag ) ; } }

Método interno para imprimir una etiqueta con atributos.


private boolean findRoot  ( final FieldODEStateInterpolator < T > interpolator , final T ta , final T ga , final T tb , final T gb ) { check ( ga . getReal ( ) == 0.0 || gb . getReal ( ) == 0.0 || ( ga . getReal ( ) > 0.0 && gb . getReal ( ) < 0.0 ) || ( ga . getReal ( ) < 0.0 && gb . getReal ( ) > 0.0 ) ) ; final RealFieldUnivariateFunction < T > f = null ; T beforeRootT = null , beforeRootG = null ; T afterRootT = ta , afterRootG = ga . getField ( ) . getZero ( ) ; if ( ta . getReal ( ) == tb . getReal ( ) ) { beforeRootT = ta ; beforeRootG = ga ; afterRootT = shiftedBy ( beforeRootT , convergence ) ; afterRootG = f . value ( afterRootT ) ; } else if ( ga . getReal ( ) != 0.0 && gb . getReal ( ) == 0.0 ) { beforeRootT = tb ; beforeRootG = gb ; afterRootT = shiftedBy ( beforeRootT , convergence ) ; afterRootG = f . value ( afterRootT ) ; } else if ( ga . getReal ( ) != 0.0 ) { final T newGa = f . value ( ta ) ; if ( ga . getReal ( ) > 0 != newGa . getReal ( ) > 0 ) { beforeRootT = ta ; beforeRootG = newGa ; afterRootT = minTime ( shiftedBy ( beforeRootT , convergence ) , tb ) ; afterRootG = f . value ( afterRootT ) ; } } T loopT = ta , loopG = ga ; while ( ( afterRootG . getReal ( ) == 0.0 || afterRootG . getReal ( ) > 0.0 == g0Positive ) && strictlyAfter ( afterRootT , tb ) ) { if ( loopG . getReal ( ) == 0.0 ) { beforeRootT = loopT ; beforeRootG = loopG ; afterRootT = minTime ( shiftedBy ( beforeRootT , convergence ) , tb ) ; afterRootG = f . value ( afterRootT ) ; } else { if ( forward ) { final Interval < T > interval = solver . solveInterval ( maxIterationCount , f , loopT , tb ) ; beforeRootT = interval . getLeftAbscissa ( ) ; beforeRootG = interval . getLeftValue ( ) ; afterRootT = interval . getRightAbscissa ( ) ; afterRootG = interval . getRightValue ( ) ; } else { final Interval < T > interval = solver . solveInterval ( maxIterationCount , f , tb , loopT ) ; beforeRootT = interval . getRightAbscissa ( ) ; beforeRootG = interval . getRightValue ( ) ; afterRootT = interval . getLeftAbscissa ( ) ; afterRootG = interval . getLeftValue ( ) ; } } if ( beforeRootT == afterRootT ) { afterRootT = nextAfter ( afterRootT ) ; afterRootG = f . value ( afterRootT ) ; } check ( ( forward && afterRootT . getReal ( ) > beforeRootT . getReal ( ) ) || ( ! forward && afterRootT . getReal ( ) < beforeRootT . getReal ( ) ) ) ; loopT = afterRootT ; loopG = afterRootG ; } if ( afterRootG . getReal ( ) == 0.0 || afterRootG . getReal ( ) > 0.0 == g0Positive ) { return false ; } else { check ( beforeRootT != null && beforeRootG != null ) ; increasing = ! g0Positive ; pendingEventTime = beforeRootT ; stopTime = beforeRootG . getReal ( ) == 0.0 ? beforeRootT : afterRootT ; pendingEvent = true ; afterEvent = afterRootT ; afterG = afterRootG ; check ( afterG . getReal ( ) > 0 == increasing ) ; check ( increasing == gb . getReal ( ) >= ga . getReal ( ) ) ; return true ; } }

Encuentra una raíz en un intervalo de bracketing.<p> Al llamar a este método, uno de los siguientes debe ser cierto.Ya sea GA == 0, GB == 0, (GA <0 y GB> 0), o (GA> 0 y GB <0).


public void show  ( ) { LayoutParams lp = ( LayoutParams ) mContentView . getLayoutParams ( ) ; lp . height = LayoutParams . WRAP_CONTENT ; mContentView . setLayoutParams ( lp ) ; }


public static SiteSettingsCategory fromContentSettingsType  ( int contentSettingsType ) { if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA ) { return fromString ( CATEGORY_CAMERA ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_COOKIES ) { return fromString ( CATEGORY_COOKIES ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_JAVASCRIPT ) { return fromString ( CATEGORY_JAVASCRIPT ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_GEOLOCATION ) { return fromString ( CATEGORY_DEVICE_LOCATION ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_FULLSCREEN ) { return fromString ( CATEGORY_FULLSCREEN ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC ) { return fromString ( CATEGORY_MICROPHONE ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_POPUPS ) { return fromString ( CATEGORY_POPUPS ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER ) { return fromString ( CATEGORY_PROTECTED_MEDIA ) ; } if ( contentSettingsType == ContentSettingsType . CONTENT_SETTINGS_TYPE_NOTIFICATIONS ) { return fromString ( CATEGORY_NOTIFICATIONS ) ; } return null ; }

Construya una categoría de configuración del sitio de un tipo de configuración de contenido.Tenga en cuenta que no todas las categorías están asociadas con un tipo de configuración de contenido (por ejemplo, todos los sitios).Tales categorías deben ser creadas a partir de cadena ().


public final boolean isValid  ( ) { return qualityCode == SourceDataTagQualityCode . OK ; }

Compruebe si este objeto SourceDataQuality representa un valor válido.El método devolverá VERDADERO si el código de calidad es SOURGECEATATIGQUALDODODODE.OK


private void processPlayFileRequest  ( Intent intent ) { if ( mState != State . PREPARING ) { mFile = intent . getExtras ( ) . getParcelable ( EXTRA_FILE ) ; mAccount = intent . getExtras ( ) . getParcelable ( EXTRA_ACCOUNT ) ; mPlayOnPrepared = intent . getExtras ( ) . getBoolean ( EXTRA_PLAY_ON_LOAD , false ) ; mStartPosition = intent . getExtras ( ) . getInt ( EXTRA_START_POSITION , 0 ) ; tryToGetAudioFocus ( ) ; playMedia ( ) ; } }

Procesos Una solicitud para jugar un archivo de medios recibido como parámetro TODO Si se recibe una nueva solicitud cuando se está preparando un archivo, se ignora.es esto lo que queremos?


public UrlValidator ( RegexValidator authorityValidator , long options ) { this ( null , authorityValidator , options ) ; }

Inicialice un urlvalidador con las opciones de validación dadas.


private boolean compare  ( Map lex , Map other ) { for ( Iterator i = lex . keySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { String key = ( String ) i . next ( ) ; String [ ] thisPhonemes = getPhones ( lex , key ) ; String [ ] otherPhonemes = getPhones ( other , key ) ; if ( thisPhonemes == null ) { System . out . println ( key + " not found in this." ) ; return false ; } else if ( otherPhonemes == null ) { System . out . println ( key + " not found in other." ) ; return false ; } else if ( thisPhonemes . length == otherPhonemes . length ) { for ( int j = 0 ; j < thisPhonemes . length ; j ++ ) { if ( ! thisPhonemes [ j ] . equals ( otherPhonemes [ j ] ) ) { return false ; } } } else { return false ; } } return true ; }

Determina si los dos léxicos son idénticos a fines de depuración.


private static int infer_pts_is_many_to_many  ( RectangleNode pts , SegmentNode pe , int code ) { long interI , interJ ; interI = pe . I1 < pts . I1 ? pts . I1 : pe . I1 ; interJ = ( pe . I1 + pe . L < pts . I1 + pts . L ? pe . I1 + pe . L : pts . I1 + pts . L ) ; if ( interI < interJ ) { switch ( code ) { case GeometricManager . ONE_TO_ONE : pres . I1 = interI - pe . I1 + pe . I2 ; pres . I2 = pts . I2 ; pres . L = interJ - interI ; pres . L_prime = pts . L_prime ; break ; case GeometricManager . MANY_TO_MANY : pres . I1 = pe . I2 ; pres . I2 = pts . I2 ; pres . L = ( ( RectangleNode ) pe ) . L_prime ; pres . L_prime = pts . L_prime ; break ; } return GeometricManager . MANY_TO_MANY ; } return GeometricManager . Undefined_Mapping ; }

Implementar las reglas de inferencia cuando los puntos de entrada, a la figura, es un mapeo de muchos a muchos.


@ Override public String toString  ( ) { return "PointD, x: " + x + ", y: " + y ; }

Devuelve una representación de cadena del objeto.


private void calculateOptimalWidthAndHeight  ( ) { if ( state == State . DEFAULT || getWidth ( ) == 0 ) { return ; } float maxWidth = getWidth ( ) , maxHeight = getHeight ( ) ; float w = pageWidth , h = pageHeight ; float ratio = w / h ; w = maxWidth ; h = ( float ) Math . floor ( maxWidth / ratio ) ; if ( h > maxHeight ) { h = maxHeight ; w = ( float ) Math . floor ( maxHeight * ratio ) ; } optimalPageWidth = w ; optimalPageHeight = h ; }

Calcule el ancho óptimo y la altura de una página que tenga en cuenta el ancho y la altura del área


public PopupManageImplementor ( PopupManageView view ) { this . view = view ; }


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

Escribe el valor <código> TOSTRING () </ CODE> de cada elemento en una colección en el archivo <código> especificado </ código> línea por línea.Se utilizará la codificación VM predeterminada y el final de línea predeterminado.


public StatelessHibernateSpaceDataSourceConfigurer useScrollableResultSet  ( boolean useScrollableResultSet ) { this . useScrollableResultSet = useScrollableResultSet ; return this ; }

Controles Si los conjuntos de resultados desplazables se utilizarán con la operación de carga inicial.Por defecto a <Code> True </ Code>.Por defecto a <Code> True </ Code>.


public static String guessMimeTypeFromExtension  ( String extension ) { if ( extension == null || extension . isEmpty ( ) ) { return null ; } return extensionToMimeTypeMap . get ( extension ) ; }

Devuelve el tipo MIME para la extensión dada.


public void addSoundEvent  ( State event , int resId ) { mSoundMap . put ( event , resId ) ; }

Establezca los sonidos que se reproducen cuando ocurre un evento de tracción.Usted especifica qué sonido se reproduce para qué eventos llamando a este método varias veces para cada evento.<p /> Si ya ha establecido un sonido para un evento determinado, y agregue otro sonido para ese evento, solo se reproducirá el nuevo sonido.


public void mergeGraph  ( DocumentNGramGraph dgOtherGraph , double fWeightPercent ) { if ( dgOtherGraph == this ) return ; for ( int iCurLvl = MinSize ; iCurLvl <= MaxSize ; iCurLvl ++ ) { UniqueVertexGraph gGraph = getGraphLevelByNGramSize ( iCurLvl ) ; UniqueVertexGraph gOtherGraph = dgOtherGraph . getGraphLevelByNGramSize ( iCurLvl ) ; if ( gOtherGraph == null ) continue ; java . util . Iterator iIter = gOtherGraph . getEdgeSet ( ) . iterator ( ) ; ArrayList < String > lOtherNodes = new ArrayList < String > ( ) ; while ( iIter . hasNext ( ) ) { WeightedEdge weCurItem = ( WeightedEdge ) iIter . next ( ) ; String sHead = weCurItem . getVertexA ( ) . getLabel ( ) ; String sTail = weCurItem . getVertexB ( ) . getLabel ( ) ; double dWeight = weCurItem . getWeight ( ) ; lOtherNodes . clear ( ) ; lOtherNodes . add ( sTail ) ; createWeightedEdgesConnecting ( gGraph , sHead , lOtherNodes , dWeight , dWeight , fWeightPercent ) ; } } }

Fuma los datos del gráfico de documentos [DGotherGraph] a los datos de este gráfico, agregando todos los bordes existentes y moviendo los valores de los existentes en ambos gráficos hacia los nuevos valores de gráficos basados en un modificador de tendencia.La tendencia de convergencia hacia el valor de partida o el nuevo valor está determinado por [FRESHPERVENTE].


public void doInsertionSort  ( String [ ] names , int [ ] values ) { int i , j , t ; String temp = "" ; for ( i = 1 ; i < values . length ; i ++ ) { j = i ; t = values [ j ] ; temp = names [ j ] ; while ( j > 0 && values [ j - 1 ] > t ) { values [ j ] = values [ j - 1 ] ; names [ j ] = names [ j - 1 ] ; j -- ; } values [ j ] = t ; names [ j ] = temp ; } }

Ordena los valores ascendiendo.La matriz de nombres se ordena en consecuencia.


public void addSuperInterfaceId  ( Access node ) { List < Access > list = ( parent == null || state == null ) ? getSuperInterfaceIdListNoTransform ( ) : getSuperInterfaceIdList ( ) ; list . addChild ( node ) ; }

Anexen un elemento a la lista SuperinterfaceID.


public GroupsEditPlaceQuery cityId  ( Integer value ) { return unsafeParam ( "city_id" , value ) ; }


private Iterator < Map < String , Object > > resolveScanResults  ( final Iterator < Record > records , final ReadConsistency consistency ) { return resolveScanResults ( records , consistency , false ) ; }

Resuelve incrementalmente con todos los registros especificados, saltando objetos eliminados.


@ Override public void nextTuple  ( ) { Message msg ; msg = failedMessages . peek ( ) ; if ( msg != null ) { MessageRetries messageRetries = pendingMessageRetries . get ( msg . getMessageId ( ) ) ; if ( Backoff . shouldBackoff ( messageRetries . getTimeStamp ( ) , TimeUnit . NANOSECONDS , messageRetries . getNumRetries ( ) ) ) { Utils . sleep ( 100 ) ; } else { LOG . info ( "[{}] Retrying failed message {}" , spoutId , msg . getMessageId ( ) ) ; failedMessages . remove ( ) ; mapToValueAndEmit ( msg ) ; } return ; } if ( consumer != null ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "[{}] Receiving the next message from pulsar consumer to emit to the collector" , spoutId ) ; } try { msg = consumer . receive ( 1 , TimeUnit . SECONDS ) ; if ( msg != null ) { ++ messagesReceived ; messageSizeReceived += msg . getData ( ) . length ; } mapToValueAndEmit ( msg ) ; } catch ( PulsarClientException e ) { LOG . error ( "[{}] Error receiving message from pulsar consumer" , spoutId , e ) ; } } }

Emite una tupla recibida del consumidor Pulsar a menos que haya algún mensaje fallado


public void put  ( int ii , int jj , Z a ) { dirty = true ; re [ ii - basex ] [ jj - basex ] = a . re ; im [ ii - basex ] [ jj - basex ] = a . im ; }

Escribe el elemento (II, JJ) de un zmat.


private void deleteStorePath  ( ) { FileFactory . FileType fileType = FileFactory . getFileType ( this . hdfsStorePath ) ; CarbonFile carbonFile = FileFactory . getCarbonFile ( this . hdfsStorePath , fileType ) ; deleteRecursiveSilent ( carbonFile ) ; }

Este método eliminará la ruta de la tienda.


public boolean isCritical  ( ) { return true ; }

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


public static boolean putInt  ( Context context , String key , int value ) { SharedPreferences settings = context . getSharedPreferences ( PREFERENCE_NAME , Context . MODE_PRIVATE ) ; SharedPreferences . Editor editor = settings . edit ( ) ; editor . putInt ( key , value ) ; return editor . commit ( ) ; }


public StatusGetQuery ( VkApiClient client , UserActor actor ) { super ( client , "status.get" , Status . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public void paintConsensus  ( Graphics g0 ) { Graphics2D g = ( Graphics2D ) g0 ; Rectangle rec = getVisibleRect ( ) ; g . setColor ( Color . WHITE ) ; g . fillRect ( 0 , 0 , getWidth ( ) , getHeight ( ) ) ; g . setColor ( Color . BLACK ) ; g . setBackground ( Color . WHITE ) ; g . setFont ( sequenceFont ) ; final Lane consensusSequence = alignment . getConsensus ( ) ; if ( alignment . getConsensus ( ) != null ) { final GapColumnContractor gapColumnContractor = getAlignment ( ) . getGapColumnContractor ( ) ; int minVisibleCol = ( int ) Math . max ( 0 , ( rec . getX ( ) / cellWidth ) ) + gapColumnContractor . getFirstOriginalColumn ( ) ; int maxVisibleCol = ( int ) Math . min ( gapColumnContractor . getLastOriginalColumn ( ) - 1 , ( rec . getX ( ) + rec . getWidth ( ) ) / cellWidth ) ; if ( minVisibleCol - 3 > 0 ) minVisibleCol -= 3 ; if ( ( ! alignment . isTranslate ( ) && cellWidth < 1 ) || cellWidth < 0.5 ) { final Lane lane = alignment . getConsensus ( ) ; int firstLayoutCol = lane . getFirstNonGapPosition ( ) ; Integer [ ] jumpCols = gapColumnContractor . getJumpPositionsRelativeToOriginalColumns ( ) . toArray ( new Integer [ gapColumnContractor . getJumpPositionsRelativeToOriginalColumns ( ) . size ( ) ] ) ; if ( jumpCols . length > 0 ) { int jc = 0 ; int jumped = 0 ; while ( jc < jumpCols . length && jumpCols [ jc ] <= firstLayoutCol ) { jumped += gapColumnContractor . getJumpBeforeOriginalColumn ( jumpCols [ jc ] ) ; jc ++ ; } firstLayoutCol -= jumped ; } int lastLayoutCol = lane . getLastNonGapPosition ( ) ; if ( jumpCols . length > 0 ) { int jc = 0 ; int jumped = 0 ; while ( jc < jumpCols . length && jumpCols [ jc ] < lastLayoutCol ) { jumped += gapColumnContractor . getJumpBeforeOriginalColumn ( jumpCols [ jc ] ) ; jc ++ ; } lastLayoutCol -= jumped ; } double firstX = getX ( firstLayoutCol ) ; double lastX = getX ( lastLayoutCol ) ; if ( firstX <= maxVisibleCol && lastX >= minVisibleCol ) { g . setColor ( Color . GRAY ) ; g . fill ( new Rectangle2D . Double ( firstX , 0 , lastX - firstX , getHeight ( ) ) ) ; } } else { final Rectangle2D drawRect = new Rectangle2D . Float ( ) ; if ( isShowColors ( ) && getColorScheme ( ) != null ) { g . setColor ( Color . WHITE ) ; Integer [ ] jumpCols = gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) . toArray ( new Integer [ gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) . size ( ) ] ) ; int jc = 0 ; int jumped = 0 ; int colorStreak = 0 ; for ( int layoutCol = minVisibleCol ; layoutCol <= maxVisibleCol ; layoutCol ++ ) { while ( jc < jumpCols . length && jumpCols [ jc ] <= layoutCol ) { jumped += gapColumnContractor . getJumpBeforeLayoutColumn ( jumpCols [ jc ] ) ; jc ++ ; } int trueCol = layoutCol + jumped ; char ch = consensusSequence . charAt ( trueCol ) ; if ( ch == 0 || ch == '-' ) { g . setColor ( Color . WHITE ) ; } else if ( ch != ' ' ) { g . setColor ( getColorScheme ( ) . getBackground ( ch ) ) ; colorStreak = 0 ; } else { colorStreak ++ ; if ( colorStreak == 3 ) { g . setColor ( Color . WHITE ) ; colorStreak = 0 ; } } if ( ! g . getColor ( ) . equals ( Color . WHITE ) ) { drawRect . setRect ( getX ( layoutCol ) - 1 , 0 , cellWidth , getSize ( ) . height ) ; g . fill ( drawRect ) ; } } g . setColor ( Color . BLACK ) ; } } if ( cellWidth > 4 ) { Integer [ ] jumpCols = gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) . toArray ( new Integer [ gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) . size ( ) ] ) ; int jc = 0 ; int jumped = 0 ; for ( int layoutCol = minVisibleCol ; layoutCol <= maxVisibleCol ; layoutCol ++ ) { while ( jc < jumpCols . length && jumpCols [ jc ] <= layoutCol ) { jumped += gapColumnContractor . getJumpBeforeLayoutColumn ( jumpCols [ jc ] ) ; jc ++ ; } int trueCol = layoutCol + jumped ; if ( trueCol < gapColumnContractor . getLastOriginalColumn ( ) ) { char ch = consensusSequence . charAt ( trueCol ) ; if ( ch == 0 ) ch = '-' ; if ( isShowColors ( ) && getColorScheme ( ) != null ) { g . setColor ( Color . BLACK ) ; } g . drawString ( "" + ch , Math . round ( getX ( layoutCol ) ) , ( int ) Math . round ( getSize ( ) . height - 0.5 * ( getSize ( ) . height - cellHeight ) ) - 2 ) ; } } } if ( cellWidth > 1 ) { SortedSet < Integer > jumpColumns = gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) ; for ( Integer col : jumpColumns ) { g . setColor ( Color . WHITE ) ; g . drawLine ( ( int ) getX ( col ) , - 1 , ( int ) getX ( col ) , getSize ( ) . height ) ; g . setColor ( Color . GRAY ) ; g . drawLine ( ( int ) getX ( col ) - 1 , - 1 , ( int ) getX ( col ) - 1 , getSize ( ) . height ) ; g . drawLine ( ( int ) getX ( col ) + 1 , - 1 , ( int ) getX ( col ) + 1 , getSize ( ) . height ) ; } } } }


public static final void emoteStopAttacking  ( Npc owner ) { owner . unsetState ( CreatureState . WEAPON_EQUIPPED ) ; if ( owner . getTarget ( ) != null && owner . getTarget ( ) instanceof Player ) { PacketSendUtility . sendPacket ( ( Player ) owner . getTarget ( ) , SM_SYSTEM_MESSAGE . STR_UI_COMBAT_NPC_RETURN ( owner . getObjectTemplate ( ) . getNameId ( ) ) ) ; } }


private void removePokemonFromFavs  ( PokeModel pokeModel , ArrayList < Integer > listOfFavPokemon , int chosenPokemon ) { if ( pokeModel != null && listOfFavPokemon != null ) { if ( mListOfFavPokemon . contains ( chosenPokemon ) ) { mContext . getContentResolver ( ) . delete ( PokeDBContract . FavoritePokemonEntry . CONTENT_URI , PokeDBContract . FavoritePokemonEntry . COLUMN_NUMBER + " = " + chosenPokemon , null ) ; TypefaceUtils . displayToast ( mContext , getString ( R . string . remove_fav_pokemon_msg ) , TypefaceUtils . TOAST_SHORT_DURATION ) ; } else { TypefaceUtils . displayToast ( mContext , getString ( R . string . redundant_remove_fav_pokemon_msg ) , TypefaceUtils . TOAST_SHORT_DURATION ) ; } } }

Elimina un Pokemon desde la tabla de favoritos en el DB.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Aura_A_TO_ME  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200611 , skillcaster , skillname ) ; }

[% Skillcaster] comenzó a usar [% SkillName] en usted.


public Builder diskCacheExtraOptions  ( int maxImageWidthForDiskCache , int maxImageHeightForDiskCache , BitmapProcessor processorForDiskCache ) { this . maxImageWidthForDiskCache = maxImageWidthForDiskCache ; this . maxImageHeightForDiskCache = maxImageHeightForDiskCache ; this . processorForDiskCache = processorForDiskCache ; return this ; }

Establece opciones para el tamaño / compresión de las imágenes descargadas antes de guardar en el caché de disco. <br /> <b> NOTA: Use esta opción solo cuando tenga necesidades adecuadas.Puede hacer que Imageloader sea más lento. </ B>


@ SuppressLint ( "NewApi" ) void scrapActiveViews  ( ) { final View [ ] activeViews = this . activeViews ; final int [ ] activeViewTypes = this . activeViewTypes ; final boolean multipleScraps = viewTypeCount > 1 ; SparseArray < View > scrapViews = currentScrapViews ; final int count = activeViews . length ; for ( int i = count - 1 ; i >= 0 ; i -- ) { final View victim = activeViews [ i ] ; if ( victim != null ) { int whichScrap = activeViewTypes [ i ] ; activeViews [ i ] = null ; activeViewTypes [ i ] = - 1 ; if ( ! shouldRecycleViewType ( whichScrap ) ) { continue ; } if ( multipleScraps ) { scrapViews = this . scrapViews [ whichScrap ] ; } scrapViews . put ( i , victim ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH ) { victim . setAccessibilityDelegate ( null ) ; } } } pruneScrapViews ( ) ; }

Mueva todas las vistas que quedan en ActiveViews a Scrapviews.


private void tryScrollBackToTopAfterComplete  ( ) { tryScrollBackToTop ( ) ; }


public static SM_SYSTEM_MESSAGE STR_EXTEND_ACCOUNT_WAREHOUSE_SIZE_EXTENDED  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300435 , value0 ) ; }

% 0 espacios se han agregado a su almacén de cuenta.


public AuthSignupQuery testMode  ( Boolean value ) { return unsafeParam ( "test_mode" , value ) ; }

VERDADERO: modo de prueba, en el que el usuario no se registrará y el número de teléfono no se verificará para la disponibilidad del modo FALSO - Predeterminado (predeterminado)


Devuelve el tamaño de este objeto CP_INFO.


public List < ShoppingCartItem > findAllCartItems  ( String productId , String groupNumber ) { if ( productId == null ) return this . items ( ) ; List < ShoppingCartItem > itemsToReturn = FastList . newInstance ( ) ; for ( ShoppingCartItem cartItem : cartLines ) { if ( UtilValidate . isNotEmpty ( groupNumber ) && ! cartItem . isInItemGroup ( groupNumber ) ) { continue ; } if ( productId . equals ( cartItem . getProductId ( ) ) ) { itemsToReturn . add ( cartItem ) ; } } return itemsToReturn ; }

Obtenga todos los compras de compras del objeto del carrito con el producto dado y el grupo de grupo opcional para limitarlo a un grupo de elementos específico


protected void drawFilledPath  ( Canvas c , Path filledPath , int fillColor , int fillAlpha ) { int color = ( fillAlpha << 24 ) | ( fillColor & 0xffffff ) ; if ( clipPathSupported ( ) ) { int save = c . save ( ) ; c . clipPath ( filledPath ) ; c . drawColor ( color ) ; c . restoreToCount ( save ) ; } else { Paint . Style previous = mRenderPaint . getStyle ( ) ; int previousColor = mRenderPaint . getColor ( ) ; mRenderPaint . setStyle ( Paint . Style . FILL ) ; mRenderPaint . setColor ( color ) ; c . drawPath ( filledPath , mRenderPaint ) ; mRenderPaint . setColor ( previousColor ) ; mRenderPaint . setStyle ( previous ) ; } }

Dibuja la ruta proporcionada en modo lleno con el color proporcionado y alfa.Gracias especial a Angelo Suzuki (https://github.com/tinsuke) para esto.


public void clean  ( ) { for ( int i = theAtts . getLength ( ) - 1 ; i >= 0 ; i -- ) { String name = theAtts . getLocalName ( i ) ; if ( theAtts . getValue ( i ) == null || name == null || name . length ( ) == 0 ) { theAtts . removeAttribute ( i ) ; continue ; } } }

Limpie los atributos de este elemento.Atributos con nulo NULL (el nombre estaba mal formado) o valor nulo (el atributo estuvo presente en el tipo de elemento, pero no se eliminan en este elemento real).


private void processJournal  ( ) throws IOException  { deleteIfExists ( journalFileTmp ) ; for ( Iterator < Entry > i = lruEntries . values ( ) . iterator ( ) ; i . hasNext ( ) ; ) { Entry entry = i . next ( ) ; if ( entry . currentEditor == null ) { for ( int t = 0 ; t < valueCount ; t ++ ) { size += entry . lengths [ t ] ; fileCount ++ ; } } else { entry . currentEditor = null ; for ( int t = 0 ; t < valueCount ; t ++ ) { deleteIfExists ( entry . getCleanFile ( t ) ) ; deleteIfExists ( entry . getDirtyFile ( t ) ) ; } i . remove ( ) ; } } }

Calcula el tamaño inicial y recolecta basura como parte de abrir el caché.Se supone que las entradas sucias son inconsistentes y se eliminarán.


public synchronized boolean isDiscarded  ( ) { return bDiscarded ; }

Método de accessor que devuelve el valor de la variable <código> boolean </ codec> bDiscarded </ code>.


private static void convertActivityToTranslucentAfterL  ( Activity activity ) { try { Method getActivityOptions = Activity . class . getDeclaredMethod ( "getActivityOptions" ) ; getActivityOptions . setAccessible ( true ) ; Object options = getActivityOptions . invoke ( activity ) ; Class < ? > [ ] classes = Activity . class . getDeclaredClasses ( ) ; Class < ? > translucentConversionListenerClazz = null ; for ( Class clazz : classes ) { if ( clazz . getSimpleName ( ) . contains ( "TranslucentConversionListener" ) ) { translucentConversionListenerClazz = clazz ; } } Method convertToTranslucent = Activity . class . getDeclaredMethod ( "convertToTranslucent" , translucentConversionListenerClazz , ActivityOptions . class ) ; convertToTranslucent . setAccessible ( true ) ; convertToTranslucent . invoke ( activity , null , options ) ; } catch ( Throwable t ) { } }

Llamando al método ConvertTotranslucent en plataformas después de Android 5.0


@ NotNull public static ResizePolicy vertical  ( ) { return ourVertical ; }

Devuelve una política de cambio de tamaño permitiendo el tamaño de tamaño vertical solamente