@ Override protected void determineTargetPitchmarks  ( List < SelectedUnit > units ) { for ( SelectedUnit unit : units ) { UnitData unitData = ( UnitData ) unit . getConcatenationData ( ) ; assert unitData != null : "Should not have null unitdata here" ; Datagram [ ] datagrams = unitData . getFrames ( ) ; Datagram [ ] frames = null ; int unitDuration = 0 ; int nZeroLengthDatagrams = 0 ; for ( int i = 0 ; i < datagrams . length ; i ++ ) { int dur = ( int ) datagrams [ i ] . getDuration ( ) ; if ( dur == 0 ) nZeroLengthDatagrams ++ ; unitDuration += datagrams [ i ] . getDuration ( ) ; } if ( nZeroLengthDatagrams > 0 ) { Log . w ( Mary . LOG , "Unit " + unit + " contains " + nZeroLengthDatagrams + " zero-length datagrams -- removing them" ) ; Datagram [ ] dummy = new Datagram [ datagrams . length - nZeroLengthDatagrams ] ; for ( int i = 0 , j = 0 ; i < datagrams . length ; i ++ ) { if ( datagrams [ i ] . getDuration ( ) > 0 ) { dummy [ j ++ ] = datagrams [ i ] ; } } datagrams = dummy ; unitData . setFrames ( datagrams ) ; } if ( unit . getTarget ( ) . isSilence ( ) ) { int targetDuration = Math . round ( unit . getTarget ( ) . getTargetDurationInSeconds ( ) * audioformat . getSampleRate ( ) ) ; if ( targetDuration > 0 && datagrams != null && datagrams . length > 0 ) { int firstPeriodDur = ( int ) datagrams [ 0 ] . getDuration ( ) ; if ( targetDuration < firstPeriodDur ) { Log . d ( Mary . LOG , "For " + unit + ", adjusting target duration to be at least one period: " + ( firstPeriodDur / audioformat . getSampleRate ( ) ) + " s instead of requested " + unit . getTarget ( ) . getTargetDurationInSeconds ( ) + " s" ) ; targetDuration = firstPeriodDur ; } if ( unitDuration < targetDuration ) { frames = new Datagram [ datagrams . length + 1 ] ; int mid = ( datagrams . length + 1 ) / 2 ; System . arraycopy ( datagrams , 0 , frames , 0 , mid ) ; if ( mid < datagrams . length ) { System . arraycopy ( datagrams , mid , frames , mid + 1 , datagrams . length - mid ) ; } frames [ mid ] = createZeroDatagram ( targetDuration - unitDuration ) ; } else { int midright = ( datagrams . length + 1 ) / 2 ; int midleft = midright - 1 ; while ( unitDuration > targetDuration && midright < datagrams . length ) { unitDuration -= datagrams [ midright ] . getDuration ( ) ; midright ++ ; if ( unitDuration > targetDuration && midleft > 0 ) { unitDuration -= datagrams [ midleft ] . getDuration ( ) ; midleft -- ; } } frames = new Datagram [ midleft + 1 + datagrams . length - midright ] ; assert midleft >= 0 ; System . arraycopy ( datagrams , 0 , frames , 0 , midleft + 1 ) ; if ( midright < datagrams . length ) { System . arraycopy ( datagrams , midright , frames , midleft + 1 , datagrams . length - midright ) ; } } unitDuration = targetDuration ; } else { frames = new Datagram [ ] { createZeroDatagram ( targetDuration ) } ; unitDuration = targetDuration ; } } else { frames = datagrams ; } unitData . setUnitDuration ( unitDuration ) ; unitData . setFrames ( frames ) ; } }

Determine las marcas de puntos de destino (= Duración y F0) para cada unidad.


@ RequestMapping ( value = "/{bookmarkId}" , method = RequestMethod . PUT ) public ResponseEntity < Bookmark > editBookmark  ( @ PathVariable ( value = "username" ) String username , @ PathVariable ( value = "bookmarkId" ) int bookmarkId , @ RequestBody String json ) throws IOException , BookmarkNotFoundException , IllegalAccessException , InvocationTargetException { Optional < Bookmark > optional = bookmarksRepository . findByIdAndUserUsername ( bookmarkId , username ) ; if ( optional . isPresent ( ) ) { ObjectMapper mapper = new ObjectMapper ( ) ; Map < String , String > changeMap = mapper . readValue ( json , HashMap . class ) ; Bookmark bookmark = optional . get ( ) ; BeanUtils . populate ( bookmark , changeMap ) ; bookmark = bookmarksRepository . save ( bookmark ) ; return new ResponseEntity < > ( bookmark , HttpStatus . OK ) ; } else { throw new BookmarkNotFoundException ( "Bookmark not found id = " + bookmarkId ) ; } }


@ Override TaskDomino < T , R , U > newThread  ( ) { return new TaskDomino < T , R , U > ( super . newThread ( ) ) ; }


private TypeSpec createAnonymousBuiltinType  ( ClassName leafInjectorClassName , NewBindingKey key , @ Nullable TypeElement scope , @ Nullable TypeElement referencingClass , @ Nullable NewDependencyInfo newDependencyInfo ) { Preconditions . checkArgument ( key . getTypeName ( ) instanceof ParameterizedTypeName ) ; boolean isMultiBinding = newDependencyInfo != null ; if ( isMultiBinding ) { Preconditions . checkArgument ( referencingClass == null ) ; Preconditions . checkNotNull ( scope ) ; } else { Preconditions . checkNotNull ( referencingClass ) ; } TypeName rawTypeName = ( ( ParameterizedTypeName ) key . getTypeName ( ) ) . rawType ; Preconditions . checkArgument ( Utils . hasBuiltinBinding ( key ) , String . format ( "Built-in binding expected(Provider or Lazy), but get %s" , key ) ) ; boolean isLazy = rawTypeName . equals ( ClassName . get ( Lazy . class ) ) ; NewBindingKey elementKey = Utils . getElementKeyForBuiltinBinding ( key ) ; Preconditions . checkNotNull ( elementKey ) ; if ( ! isMultiBinding ) { generateProvisionMethodIfNeeded ( elementKey , referencingClass ) ; } MethodSpec . Builder builderForGet = MethodSpec . methodBuilder ( "get" ) . returns ( elementKey . getTypeName ( ) ) . addAnnotation ( Override . class ) . addModifiers ( Modifier . PUBLIC ) ; builderForGet . addStatement ( "$T var = null" , elementKey . getTypeName ( ) ) ; if ( isLazy ) { builderForGet . beginControlFlow ( "if (var == null)" ) ; } if ( ! isMultiBinding ) { builderForGet . addStatement ( "var = $N()" , getProvisionMethodName ( elementKey ) ) ; } else { addNewStatementToMethodSpec ( scope , newDependencyInfo , leafInjectorClassName , builderForGet , "var" ) ; } if ( isLazy ) { builderForGet . endControlFlow ( ) ; } builderForGet . addStatement ( "return var" ) ; TypeSpec result = TypeSpec . anonymousClassBuilder ( "" ) . addSuperinterface ( key . getTypeName ( ) ) . addMethod ( builderForGet . build ( ) ) . build ( ) ; return result ; }

Generar para una unión única o un contribuyente a un enlace múltiple.NewDependencyInfo es nulo para uno único y no nulo o múltiple.ReferencingSclass es lo contrario, para un enlace múltiple, es el módulo de dependencia.El alcance es nulo para la unión única.


public static void onPlayerLogout  ( Player player ) { ChatServer . getInstance ( ) . sendPlayerLogout ( player ) ; }


protected void writeNetscapeExt  ( ) throws IOException  { out . write ( 0x21 ) ; out . write ( 0xff ) ; out . write ( 11 ) ; writeString ( "NETSCAPE" + "2.0" ) ; out . write ( 3 ) ; out . write ( 1 ) ; writeShort ( repeat ) ; out . write ( 0 ) ; }

Escribe la extensión de la aplicación Netscape para definir el recuento de repeticiones.


private void createUI  ( ) { readConfigFile ( null , this , "Line.xml" ) ; }


protected Boolean defaultAutoCommit  ( ) { return this . defaultAutoCommit ; }

Exponer el valor de comité automático predeterminado.


private void magnitudeFFT  ( double [ ] re ) { double [ ] im = new double [ re . length ] ; fft ( re , im , FFT_FORWARD ) ; for ( int i = 0 ; i < re . length ; i ++ ) re [ i ] = Math . sqrt ( re [ i ] * re [ i ] + im [ i ] * im [ i ] ) ; }

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


static Map < String , String > parseArgsToFieldMap  ( String [ ] args ) { Map < String , String > argsToFieldMap = new HashMap < > ( ) ; for ( String arg : args ) { String flagName = "" ; String value = "" ; if ( ! arg . startsWith ( "-" ) ) { continue ; } else if ( arg . startsWith ( "--" ) ) { int equalsIndex = arg . indexOf ( "=" ) ; flagName = arg . substring ( 2 ) ; if ( equalsIndex >= 2 ) { flagName = arg . substring ( 2 , equalsIndex ) ; value = arg . substring ( equalsIndex + 1 ) ; } } else if ( arg . startsWith ( "-" ) ) { int equalsIndex = arg . indexOf ( "=" ) ; flagName = arg . substring ( 1 ) ; if ( equalsIndex >= 1 ) { flagName = arg . substring ( 1 , equalsIndex ) ; value = arg . substring ( equalsIndex + 1 ) ; } } argsToFieldMap . put ( flagName , value ) ; } return argsToFieldMap ; }

Devuelva un mapa que toma cada cadena del formulario "--flagname = stringValue" y crea un mapa (Flagname) -> (SirkValue).


public boolean topo_sort  ( ) { return soot . PhaseOptions . getBoolean ( options , "topo-sort" ) ; }

Ordenador topológico - Ordenar nodos variables en volcado.Cuando esta opción se establece en VERDADERO, la representación descargada por la opción PAG de volcado se descarga con los nodos variables (verde) en el orden topológico (pseudo-).Esta opción no tiene efecto a menos que la PAG de descarga sea cierta.


private void readObjectNoData  ( ) throws InvalidObjectException  { throw new InvalidObjectException ( "LandlordLease should always have data" ) ; }

Siempre debemos tener datos en la corriente, si este método se llama, hay algo mal.


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

[% Skillcaster] ha infligido% de daño NUM0 en usted mediante el uso de [% de habilidad].


private static void drawCustomSizeRect  ( int xPos , int yPos , int texX , int texY , int width , int height ) { getGuiHandler ( ) . drawModalRectWithCustomSizedTexture ( xPos , yPos , texX , texY , width , height , width , height ) ; }

Método de acceso directo para dibujar un rectángulo con textura escalada.


public Z Eq  ( double a , double b ) { re = a ; im = b ; return this ; }

Restablece las partes reales e imaginarias de un Z.


public int addEdge  ( int s , int t ) { long key1 = getKey ( s ) ; long key2 = getKey ( t ) ; Table edges = getEdgeTable ( ) ; int r = edges . addRow ( ) ; if ( m_longKey ) { edges . setLong ( r , m_skey , key1 ) ; edges . setLong ( r , m_tkey , key2 ) ; } else { edges . setInt ( r , m_skey , ( int ) key1 ) ; edges . setInt ( r , m_tkey , ( int ) key2 ) ; } return r ; }

Añadir un borde al gráfico.Se permiten múltiples bordes entre dos nodos y bordes de un nodo a sí mismo.


void unregister  ( ) { mListener = null ; mMediaFactory = null ; }

Generalmente se llama desde el método RTManager.Destroy ()


private ByteOrderMark find  ( ) { for ( ByteOrderMark bom : boms ) { if ( matches ( bom ) ) { return bom ; } } return null ; }

Encuentra un BOM con los bytes especificados.


public static void installToStorage  ( Context context ) { mContext = context ; new Thread ( runnable ) . start ( ) ; }

Copia las alarmas para compartir el almacenamiento en un hilo separado


static void appendModeInfo  ( Mode mode , BitArray bits ) { bits . appendBits ( mode . getBits ( ) , 4 ) ; }

Anexar información del modo.Sobre el éxito, almacene el resultado en "Bits".


@ Override public List < WebElement > findElementsByName  ( String name ) { return ( ( FindsByName ) super . getWrappedDriver ( ) ) . findElementsByName ( name ) ; }


public static void createAllTables  ( SQLiteDatabase db , boolean ifNotExists ) { SearchSuffixDao . createTable ( db , ifNotExists ) ; }

Crea una tabla de base de datos subyacente utilizando Daos.


private void initial  ( ) { int dayOfWeek = calendar . get ( Calendar . DAY_OF_WEEK ) ; int monthStart = - 1 ; if ( dayOfWeek >= 2 && dayOfWeek <= 7 ) { monthStart = dayOfWeek - 2 ; } else if ( dayOfWeek == 1 ) { monthStart = 6 ; } curStartIndex = monthStart ; date [ monthStart ] = 1 ; int daysOfMonth = daysOfCurrentMonth ( ) ; for ( int i = 1 ; i < daysOfMonth ; i ++ ) { date [ monthStart + i ] = i + 1 ; } curEndIndex = monthStart + daysOfMonth ; if ( mode == Constant . MODE_SHOW_DATA_OF_THIS_MONTH ) { todayIndex = Calendar . getInstance ( ) . get ( Calendar . DAY_OF_MONTH ) + monthStart - 1 ; } else if ( mode == Constant . MODE_CALENDAR ) { if ( calendar . get ( Calendar . YEAR ) == Calendar . getInstance ( ) . get ( Calendar . YEAR ) && calendar . get ( Calendar . MONTH ) == Calendar . getInstance ( ) . get ( Calendar . MONTH ) ) { todayIndex = Calendar . getInstance ( ) . get ( Calendar . DAY_OF_MONTH ) + monthStart - 1 ; } else { todayIndex = - 1 ; } } }

Calcule los valores de la fecha [] y el rango legal de índice de fecha []


public static void ignorm  ( double c1 [ ] , double c2 [ ] , int m , double ng ) { if ( ng != 0.0 ) { double k = Math . pow ( c1 [ 0 ] , ng ) ; for ( int i = m ; i >= 1 ; i -- ) c2 [ i ] = k * c1 [ i ] ; c2 [ 0 ] = ( k - 1.0 ) / ng ; } else { System . arraycopy ( c1 , 1 , c2 , 1 , m - 1 ) ; c2 [ 0 ] = Math . log ( c1 [ 0 ] ) ; } }

ignorm: normalización de ganancia inversa


public static int createProxyObject  ( int luaState , String implem ) throws LuaException { LuaState L = LuaStateFactory . getExistingState ( luaState ) ; synchronized ( L ) { try { if ( ! ( L . isTable ( 2 ) ) ) throw new LuaException ( "Parameter is not a table. Can't create proxy." ) ; LuaObject luaObj = L . getLuaObject ( 2 ) ; Object proxy = luaObj . createProxy ( implem ) ; L . pushJavaObject ( proxy ) ; } catch ( Exception e ) { throw new LuaException ( e ) ; } return 1 ; } }

Función que crea un proxy de objeto y lo empuja hacia la pila.


@ ObjectiveCName ( "init:client:rpcName:uid:callback:" ) Rpc ( DeepstreamConfig deepstreamConfig , DeepstreamClientAbstract client , String rpcName , String uid , RpcHandler . RpcResponseCallback callback ) { this . deepstreamConfig = deepstreamConfig ; this . client = client ; this . rpcName = rpcName ; this . uid = uid ; this . callback = callback ; this . ackTimeoutRegistry = client . getAckTimeoutRegistry ( ) ; this . setTimeouts ( ) ; }

Un RPC representa una sola solicitud de procedimiento remoto realizado en el cliente al servidor.La función principal es encapsular la lógica alrededor de los tiempos de tiempo y convertir los datos de respuesta entrantes


public SM_MESSAGE ( int senderObjectId , String senderName , String message , ChatType chatType ) { this . senderObjectId = senderObjectId ; this . senderName = senderName ; this . message = message ; this . chatType = chatType ; }

Creación manual del mensaje de chat. <br>


public int modify_file1  ( String appender_file_id , long file_offset , long modify_size , UploadCallback callback ) throws IOException , MyException { String [ ] parts = new String [ 2 ] ; this . errno = this . split_file_id ( appender_file_id , parts ) ; if ( this . errno != 0 ) { return this . errno ; } return this . modify_file ( parts [ 0 ] , parts [ 1 ] , file_offset , modify_size , callback ) ; }

Modifique el archivo de la apertura al servidor de almacenamiento (por devolución de llamada)


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

Construye una excepción XNI con un mensaje.


public WallPostQuery postId  ( Integer value ) { return unsafeParam ( "post_id" , value ) ; }

ID del mensaje.Se utiliza para la publicación de publicaciones programadas y sugeridas.


public void writeAuxBlocks  ( IOutputWriter writer , Map < String , byte [ ] > name2AuxData ) throws IOException { setCount ( name2AuxData . size ( ) ) ; for ( String name : name2AuxData . keySet ( ) ) { writer . writeString ( name ) ; byte [ ] bytes = name2AuxData . get ( name ) ; writer . writeInt ( bytes . length ) ; writer . write ( bytes , 0 , bytes . length ) ; } }

Método auxiliar que se puede utilizar para escribir auxblocks a RMA3 Archivo


public boolean filterOut  ( final SAMRecord first , final SAMRecord second ) { throw new UnsupportedOperationException ( "Paired *Filter not implemented!" ) ; }

Determina si un par de samrecord coincide con este filtro


public boolean isCritical  ( ) { return true ; }

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


public WebElement elementReady  ( WebElement element ) { return bobcatWait . withTimeout ( Timeouts . MEDIUM ) . until ( null ) ; }

Comprueba si un Webelement está listo para ser operado, es decir.Es visible y no estancado y devuelve ese elemento.


public int hashCode  ( ) { return value . hashCode ( ) ; }

Devuelve un código hash para este objeto ClassConstant.


public static byte [ ] readFully  ( InputStream in ) throws IOException { try { return readFullyNoClose ( in ) ; } finally { in . close ( ) ; } }

Devuelve un byte [] que contiene el resto de 'en', cerrándolo cuando se hace.


private void sendJsonResponse  ( final String jsonResponse ) { if ( replyDestination == null ) { LOG . error ( "sendJsonResponse() : JMSReplyTo destination is null - cannot send reply." ) ; return ; } MessageProducer messageProducer = null ; try { messageProducer = session . createProducer ( replyDestination ) ; messageProducer . setDeliveryMode ( DeliveryMode . NON_PERSISTENT ) ; messageProducer . setTimeToLive ( defaultReplyTTL ) ; Message replyMessage = null ; replyMessage = session . createTextMessage ( jsonResponse ) ; messageProducer . send ( replyMessage ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "ClientRequestReportHandler() : Report sent." ) ; } } catch ( Throwable e ) { LOG . warn ( "daqTotalParts(): Failed to send Progress report :" + e . getMessage ( ) , e ) ; } finally { if ( messageProducer != null ) { try { messageProducer . close ( ) ; } catch ( JMSException ignore ) { } } } }

Los informes se envían a los clientes como mensajes JSON.


private EnvironmentVariableManager ( ) { populate  ( ) ; }

Instantánea un nuevo administrador de variables de entorno.


void storeFence  ( @ NonNull StorableFence fence ) { Set < String > setTmp = mPrefs . getStringSet ( mPrefix + FENCE_ID_SET_KEY , null ) ; HashSet < String > fenceIdSet ; if ( setTmp == null ) { fenceIdSet = new HashSet < > ( ) ; } else { fenceIdSet = new HashSet < > ( setTmp ) ; } SharedPreferences . Editor editor = mPrefs . edit ( ) ; editor . putString ( mPrefix + fence . getId ( ) , StorableFence . fenceToString ( fence ) ) ; fenceIdSet . add ( fence . getId ( ) ) ; editor . putStringSet ( mPrefix + FENCE_ID_SET_KEY , fenceIdSet ) ; editor . apply ( ) ; }


private void updateCurrentEdition  ( ) { try { getHistoryTableProvider ( ) . setRemoteResource ( ( ISVNRemoteFile ) SVNWorkspaceRoot . getBaseResourceFor ( resource ) ) ; } catch ( TeamException e ) { handle ( e ) ; } }

Establece el archivo para el HISTORIETETEPROPRODUSO SE UTILIZADO cuando se cambia el archivo (actualizado a una revisión)


public List < ValidationError > validate  ( @ Nullable AndroidFacet facet ) { return commonState . validate ( facet ) ; }

Recopilamos errores en lugar de lanzar para evitar faltantes errores fatales al salir temprano para una advertencia.


protected boolean isExecutorExecute  ( InvokeExpr ie , SootMethod dest ) { if ( ie == null || dest == null ) return false ; SootMethod ieMethod = ie . getMethod ( ) ; if ( ! ieMethod . getName ( ) . equals ( "execute" ) && ! ieMethod . getName ( ) . equals ( "doPrivileged" ) ) return false ; final String ieSubSig = ieMethod . getSubSignature ( ) ; final String calleeSubSig = dest . getSubSignature ( ) ; if ( ieSubSig . equals ( "void execute(java.lang.Runnable)" ) && calleeSubSig . equals ( "void run()" ) ) return true ; if ( calleeSubSig . equals ( "java.lang.Object run()" ) ) { if ( ieSubSig . equals ( "java.lang.Object doPrivileged(java.security.PrivilegedAction)" ) ) return true ; if ( ieSubSig . equals ( "java.lang.Object doPrivileged(java.security.PrivilegedAction," + "java.security.AccessControlContext)" ) ) return true ; if ( ieSubSig . equals ( "java.lang.Object doPrivileged(java.security.PrivilegedExceptionAction)" ) ) return true ; if ( ieSubSig . equals ( "java.lang.Object doPrivileged(java.security.PrivilegedExceptionAction," + "java.security.AccessControlContext)" ) ) return true ; } return false ; }

Comprueba si la llamada dada es una llamada al ejecutor.execute () o AccessController.dopriviled () y si el callee coincide con la firma del método esperado


public void add  ( int i , Action a ) { m_actions . add ( i , a ) ; }


public static int peekFileType  ( String fileName ) throws IOException { DataInputStream dis = null ; dis = new DataInputStream ( new BufferedInputStream ( new FileInputStream ( fileName ) ) ) ; try { MaryHeader hdr = new MaryHeader ( dis ) ; int type = hdr . getType ( ) ; return type ; } catch ( MaryConfigurationException e ) { return - 1 ; } finally { dis . close ( ) ; } }

Para el archivo dado, mire dentro y determine el tipo de archivo.


public < R > Plan < R > then  ( Function4 < T1 , T2 , T3 , T4 , R > selector ) { if ( selector == null ) { throw new NullPointerException ( ) ; } return new Plan4 < T1 , T2 , T3 , T4 , R > ( this , selector ) ; }

Partidos Cuando todas las secuencias observables tienen un elemento disponible y proyecta los elementos invocando la función del selector.


@ Override public void merge  ( ProtoElement elem ) { }

Implementación predeterminada para fusionar un elemento;no hace nada.


public boolean geom_pta  ( ) { return soot . PhaseOptions . getBoolean ( options , "geom-pta" ) ; }

Puntos geométricos, sensibles al contexto: análisis: este interruptor habilita / deshabilita el análisis geométrico. Este interruptor habilita / desactiva el análisis geométrico.


@ ObjectiveCName ( "init:" ) UtilAckTimeoutRegistry ( DeepstreamClientAbstract client ) { this . client = client ; this . register = new ConcurrentHashMap < > ( ) ; this . ackTimers = new LinkedBlockingQueue < > ( ) ; this . executor = new ScheduledThreadPoolExecutor ( 5 ) ; this . state = client . getConnectionState ( ) ; this . client . addConnectionChangeListener ( this ) ; }

El registro para todos los tiempos de espera de ACK.


public int size  ( ) { return mails . size ( ) ; }


private void selectRow  ( int row ) { spreadsheetView . getSelectionModel ( ) . select ( row , spreadsheetView . getColumns ( ) . get ( 0 ) ) ; }


public boolean isCritical  ( ) { return true ; }


@ Override public void printStackTrace  ( ) { printStackTrace ( System . err ) ; }

Imprime el seguimiento de la pila de esta excepción al flujo de error estándar.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "select samples=" ) ; String what = np . getWordMatchesIgnoringCase ( "all none" ) ; np . matchRespectCase ( ";" ) ; if ( getViewer ( ) instanceof GroupsViewer ) { GroupsViewer viewer = ( GroupsViewer ) getViewer ( ) ; if ( what . equalsIgnoreCase ( "all" ) ) viewer . getGroupsPanel ( ) . selectAll ( ) ; else if ( what . equals ( "none" ) ) viewer . getGroupsPanel ( ) . selectNone ( ) ; } }


public FastAvailableExpressions ( Body b , SideEffectTester st ) { if ( Options . v ( ) . verbose ( ) ) G . v ( ) . out . println ( "[" + b . getMethod ( ) . getName ( ) + "] Finding available expressions..." ) ; FastAvailableExpressionsAnalysis analysis = new FastAvailableExpressionsAnalysis ( new ExceptionalUnitGraph ( b ) , b . getMethod ( ) , st ) ; { unitToPairsAfter = new HashMap < Unit , List < UnitValueBoxPair > > ( b . getUnits ( ) . size ( ) * 2 + 1 , 0.7f ) ; unitToPairsBefore = new HashMap < Unit , List < UnitValueBoxPair > > ( b . getUnits ( ) . size ( ) * 2 + 1 , 0.7f ) ; unitToEquivsAfter = new HashMap < Unit , Chain < EquivalentValue > > ( b . getUnits ( ) . size ( ) * 2 + 1 , 0.7f ) ; unitToEquivsBefore = new HashMap < Unit , Chain < EquivalentValue > > ( b . getUnits ( ) . size ( ) * 2 + 1 , 0.7f ) ; for ( Unit s : b . getUnits ( ) ) { FlowSet < Value > set = analysis . getFlowBefore ( s ) ; List < UnitValueBoxPair > pairsBefore = new ArrayList < UnitValueBoxPair > ( ) ; List < UnitValueBoxPair > pairsAfter = new ArrayList < UnitValueBoxPair > ( ) ; Chain < EquivalentValue > equivsBefore = new HashChain < EquivalentValue > ( ) ; Chain < EquivalentValue > equivsAfter = new HashChain < EquivalentValue > ( ) ; if ( set instanceof ToppedSet && ( ( ToppedSet < Value > ) set ) . isTop ( ) ) throw new RuntimeException ( "top! on " + s ) ; for ( Value v : set ) { Stmt containingStmt = ( Stmt ) analysis . rhsToContainingStmt . get ( v ) ; UnitValueBoxPair p = new UnitValueBoxPair ( containingStmt , ( ( AssignStmt ) containingStmt ) . getRightOpBox ( ) ) ; pairsBefore . add ( p ) ; EquivalentValue ev = new EquivalentValue ( v ) ; if ( ! equivsBefore . contains ( ev ) ) equivsBefore . add ( ev ) ; } unitToPairsBefore . put ( s , pairsBefore ) ; unitToEquivsBefore . put ( s , equivsBefore ) ; for ( Value v : analysis . getFlowAfter ( s ) ) { Stmt containingStmt = ( Stmt ) analysis . rhsToContainingStmt . get ( v ) ; UnitValueBoxPair p = new UnitValueBoxPair ( containingStmt , ( ( AssignStmt ) containingStmt ) . getRightOpBox ( ) ) ; pairsAfter . add ( p ) ; EquivalentValue ev = new EquivalentValue ( v ) ; if ( ! equivsAfter . contains ( ev ) ) equivsAfter . add ( ev ) ; } unitToPairsAfter . put ( s , pairsAfter ) ; unitToEquivsAfter . put ( s , equivsAfter ) ; } } if ( Options . v ( ) . verbose ( ) ) G . v ( ) . out . println ( "[" + b . getMethod ( ) . getName ( ) + "]     Found available expressions..." ) ; }


public Map < String , List < ChartObject > > groupByDate  ( List < ChartObject > input , Period period ) { HashMap < String , List < ChartObject > > result = new LinkedHashMap < > ( ) ; Map < String , ChartObject > range = buildRange ( input , period ) ; for ( ChartObject anInput : input ) { String group = new DateTime ( Long . valueOf ( anInput . getStartTime ( ) ) ) . toString ( DATE_PATTERN ) ; ChartObject axisObject = range . get ( group ) ; Map < String , String > values = axisObject . getValues ( ) ; Map < String , String > updated = new HashMap < > ( ) ; for ( String key : anInput . getValues ( ) . keySet ( ) ) { updated . put ( key , String . valueOf ( Double . valueOf ( anInput . getValues ( ) . get ( key ) ) + Double . valueOf ( values . get ( key ) ) ) ) ; } axisObject . setValues ( updated ) ; range . put ( group , axisObject ) ; } range . keySet ( ) . stream ( ) . forEach ( null ) ; return result ; }

Listas de devolución de objetos agrupados por período especificado


public PhotosCreateAlbumQuery privacyView  ( String ... value ) { return unsafeParam ( "privacy_view" , value ) ; }


public FeatureDefinition ( ByteBuffer bb ) throws IOException { numByteFeatures = bb . getInt ( ) ; byteFeatureValues = new ByteStringTranslator [ numByteFeatures ] ; featureNames = new IntStringTranslator ( numByteFeatures ) ; featureWeights = new float [ numByteFeatures ] ; for ( int i = 0 ; i < numByteFeatures ; i ++ ) { featureWeights [ i ] = bb . getFloat ( ) ; String featureName = StreamUtils . readUTF ( bb ) ; featureNames . set ( i , featureName ) ; byte numberOfValuesEncoded = bb . get ( ) ; int numberOfValues = numberOfValuesEncoded & 0xFF ; byteFeatureValues [ i ] = new ByteStringTranslator ( numberOfValues ) ; for ( int b = 0 ; b < numberOfValues ; b ++ ) { String value = StreamUtils . readUTF ( bb ) ; byteFeatureValues [ i ] . set ( ( byte ) b , value ) ; } } numShortFeatures = bb . getInt ( ) ; if ( numShortFeatures > 0 ) { shortFeatureValues = new ShortStringTranslator [ numShortFeatures ] ; float [ ] newWeights = new float [ numByteFeatures + numShortFeatures ] ; System . arraycopy ( featureWeights , 0 , newWeights , 0 , numByteFeatures ) ; featureWeights = newWeights ; for ( int i = 0 ; i < numShortFeatures ; i ++ ) { featureWeights [ numByteFeatures + i ] = bb . getFloat ( ) ; String featureName = StreamUtils . readUTF ( bb ) ; featureNames . set ( numByteFeatures + i , featureName ) ; short numberOfValues = bb . getShort ( ) ; shortFeatureValues [ i ] = new ShortStringTranslator ( numberOfValues ) ; for ( short s = 0 ; s < numberOfValues ; s ++ ) { String value = StreamUtils . readUTF ( bb ) ; shortFeatureValues [ i ] . set ( s , value ) ; } } } numContinuousFeatures = bb . getInt ( ) ; floatWeightFuncts = new String [ numContinuousFeatures ] ; if ( numContinuousFeatures > 0 ) { float [ ] newWeights = new float [ numByteFeatures + numShortFeatures + numContinuousFeatures ] ; System . arraycopy ( featureWeights , 0 , newWeights , 0 , numByteFeatures + numShortFeatures ) ; featureWeights = newWeights ; } for ( int i = 0 ; i < numContinuousFeatures ; i ++ ) { featureWeights [ numByteFeatures + numShortFeatures + i ] = bb . getFloat ( ) ; floatWeightFuncts [ i ] = StreamUtils . readUTF ( bb ) ; String featureName = StreamUtils . readUTF ( bb ) ; featureNames . set ( numByteFeatures + numShortFeatures + i , featureName ) ; } }

Cree un objeto de definición de características, lectura de datos binarios del búfer byte dado.


public void stopTasks  ( ) { if ( task != null ) { task . cancel ( false ) ; task = null ; } if ( periodicTasks != null ) { for ( Future < ? > periodicTask : this . periodicTasks ) { if ( periodicTask != null ) { periodicTask . cancel ( false ) ; periodicTask = null ; } } } stopPeriodicActions ( ) ; }


void replacedCharacterData  ( NodeImpl node , String oldvalue , String value ) { }

Método a llamar cuando se ha reemplazado un nodo de datos de caracteres.


@ Override public void ignorableWhitespace  ( char ch [ ] , int start , int length ) throws SAXException { return ; }

El método SAX <CÓDIGO> ignorablewhitespace </ codigo> no hace nada.


public Jump ( EntityLivingBase living , float motion ) { super ( living ) ; this . motion = motion ; }


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

Elimina la palabra espada sin quitar las subcadenas.


private < C > void putAll  ( ColumnListMutation < C > mutation , Iterable < Column < C > > columns ) { for ( Column < C > column : columns ) { mutation . setTimestamp ( column . getTimestamp ( ) ) . putColumn ( column . getName ( ) , column . getByteBufferValue ( ) , column . getTtl ( ) ) ; } }

Copia las columnas exactamente, conservando la marca de tiempo de Cassandra y los valores TTL.


public UmbrellaGrantPermission ( ) { super ( "" ) ; }

Crea un nuevo <código> Umbrellagrantmission </ code>.


public NlDrawingStyle ( @ Nullable Color strokeColor , @ Nullable Color fill , @ NotNull BasicStroke stroke ) { myStrokeColor = strokeColor ; myStroke = stroke ; myFillColor = fill ; myLineWidth = ( int ) stroke . getLineWidth ( ) ; }

Construya un nuevo valor de estilo con el primer plano, el fondo, el ancho, el estilo de línea y la transparencia.


public StandardParserConfiguration ( SymbolTable symbolTable , XMLGrammarPool grammarPool ) { this ( symbolTable , grammarPool , null ) ; }

Construye una configuración de analizador con la tabla de símbolos especificada y la piscina de gramática.<p /> <strong> revisit: </ strong> la gramática se actualizará cuando se implemente el nuevo motor de validación.


public String verifyTestItemDefinedIssueType  ( final String type , final Project . Configuration settings ) { StatisticSubType defined = settings . getByLocator ( type ) ; expect ( settings . getByLocator ( type ) , notNull ( ) ) . verify ( ISSUE_TYPE_NOT_FOUND , type ) ; return defined . getLocator ( ) ; }

Verifica que el tipo de problema del elemento de prueba proporcionado es válido, y el objeto de dominio del elemento de prueba podría procesarse correctamente.


public void hold  ( int mask , int duration ) throws InterruptedException { controller . mousePress ( mask ) ; if ( duration >= 0 ) { Thread . sleep ( duration ) ; controller . mouseRelease ( mask ) ; } }

Sostenga el mouse durante cierta duración


public SubLine ( final Vector3D start , final Vector3D end , final double tolerance ) throws MathIllegalArgumentException { this ( new Line ( start , end , tolerance ) , buildIntervalSet ( start , end , tolerance ) ) ; }

Crea una sub-línea de dos puntos finales.


public String toXML  ( ) { StringBuffer str = new StringBuffer ( ) ; str . append ( "<" ) ; str . append ( XML_ROOT_ELEMENT ) ; str . append ( ">" ) ; str . append ( "<" ) ; str . append ( XML_ELEMENT_QUALITY_CODE ) ; str . append ( ">" ) ; str . append ( qualityCode ) ; str . append ( "</" ) ; str . append ( XML_ELEMENT_QUALITY_CODE ) ; str . append ( ">" ) ; if ( description != null ) { str . append ( "<" ) ; str . append ( XML_ELEMENT_QUALITY_DESC ) ; str . append ( "><![CDATA[" ) ; str . append ( description ) ; str . append ( "]]></" ) ; str . append ( XML_ELEMENT_QUALITY_DESC ) ; str . append ( ">" ) ; } str . append ( "</" ) ; str . append ( XML_ROOT_ELEMENT ) ; str . append ( ">\n" ) ; return str . toString ( ) ; }

Cree una representación XML de un objeto de SourceDataQuality.El XML resultante se puede usar para crear un objeto de SourceDataQuality utilizando el método FROMXML de la clase.


public void close  ( ) throws IOException  { if ( ! eof ) { while ( read ( buf , 0 , buf . length ) != - 1 ) ; } }

Cierra este flujo de entrada y libera los recursos del sistema asociados con el flujo.<P /> Este método leerá los datos no leídos en la parte MIME, de modo que la siguiente parte inicie un lugar esperado en el PADR <CÓDIGO> INPUTSTREAM </ CODE>.Tenga en cuenta que si el código del cliente se olvida de llamar a este método de error, <Code> MultipartParser </ Code> lo llamará automáticamente si llama <Code> readNextPart () </ Code>.


public final static NameValuePair parseNameValuePair  ( final String value , HeaderValueParser parser ) throws ParseException { if ( value == null ) { throw new IllegalArgumentException ( "Value to parse may not be null" ) ; } if ( parser == null ) parser = SaveHeaderValueParser . DEFAULT ; CharArrayBuffer buffer = new CharArrayBuffer ( value . length ( ) ) ; buffer . append ( value ) ; SaveParserCursor cursor = new SaveParserCursor ( 0 , value . length ( ) ) ; return parser . parseNameValuePair ( buffer , cursor ) ; }

Analiza un par de nombre de nombre con el parser dado.


public void loadLang  ( Map < String , String > data , String locale ) { Module e = floor ( ) ; if ( e != null ) { e . loadLang ( data , locale ) ; } File f = new File ( path + "/i18n/" + locale + ".lang" ) ; if ( f . exists ( ) ) { try { BufferedReader reader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( f ) , "UTF-8" ) ) ; try { String line = reader . readLine ( ) ; while ( line != null ) { if ( ! line . startsWith ( "#" ) ) { int i = line . indexOf ( "=" ) ; if ( i > 0 ) { String name = line . substring ( 0 , i ) . trim ( ) ; String value = line . substring ( i + 1 ) . trim ( ) ; if ( "@include" . equals ( name ) ) { loadLang ( data , name ) ; } else { data . put ( name , value ) ; } } } line = reader . readLine ( ) ; } } finally { reader . close ( ) ; } } catch ( Exception e1 ) { log . error ( "loadLang:" + locale , e1 ) ; } } }


Status readStatus  ( Element el ) { NodeList list = el . getElementsByTagName ( "status" ) ; if ( list == null || list . getLength ( ) == 0 ) return DomainSuffix . DEFAULT_STATUS ; return Status . valueOf ( list . item ( 0 ) . getFirstChild ( ) . getNodeValue ( ) ) ; }


private void doScroll  ( int delta ) { scrollingOffset += delta ; int itemHeight = getItemHeight ( ) ; int count = scrollingOffset / itemHeight ; int pos = currentItem - count ; int itemCount = viewAdapter . getItemsCount ( ) ; int fixPos = scrollingOffset % itemHeight ; if ( Math . abs ( fixPos ) <= itemHeight / 2 ) { fixPos = 0 ; } if ( isCyclic && itemCount > 0 ) { if ( fixPos > 0 ) { pos -- ; count ++ ; } else if ( fixPos < 0 ) { pos ++ ; count -- ; } while ( pos < 0 ) { pos += itemCount ; } pos %= itemCount ; } else { if ( pos < 0 ) { count = currentItem ; pos = 0 ; } else if ( pos >= itemCount ) { count = currentItem - itemCount + 1 ; pos = itemCount - 1 ; } else if ( pos > 0 && fixPos > 0 ) { pos -- ; count ++ ; } else if ( pos < itemCount - 1 && fixPos < 0 ) { pos ++ ; count -- ; } } int offset = scrollingOffset ; if ( pos != currentItem ) { setCurrentItem ( pos , false ) ; } else { invalidate ( ) ; } scrollingOffset = offset - count * itemHeight ; if ( scrollingOffset > getHeight ( ) ) { scrollingOffset = scrollingOffset % getHeight ( ) + getHeight ( ) ; } }


public FragmentManageImplementor ( FragmentManageModel model ) { this . model = model ; }


public Boolean isTriggerNotifyTemplate  ( ) { return triggerNotifyTemplate ; }

Debe notificar a la plantilla ser activado en el evento de replicación.


public void removeValue  ( int row ) { valueList . remove ( row ) ; this . fireTableDataChanged ( ) ; }


private void renderAABB  ( GL2 gl , SandboxBody body ) { gl . glColor4fv ( Preferences . getBodyAABBColor ( ) , 0 ) ; AABB aabb = this . simulation . getWorld ( ) . getBroadphaseDetector ( ) . getAABB ( body ) ; if ( aabb != null ) { RenderUtilities . drawRectangleFromStartToEnd ( gl , aabb . getMinX ( ) , aabb . getMinY ( ) , aabb . getMaxX ( ) , aabb . getMaxY ( ) , false ) ; } }


public static Map < String , Object > updateTelecomNumber  ( DispatchContext ctx , Map < String , ? extends Object > context ) { Map < String , Object > result = FastMap . newInstance ( ) ; Delegator delegator = ctx . getDelegator ( ) ; Security security = ctx . getSecurity ( ) ; GenericValue userLogin = ( GenericValue ) context . get ( "userLogin" ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; Timestamp now = UtilDateTime . nowTimestamp ( ) ; List < GenericValue > toBeStored = FastList . newInstance ( ) ; boolean isModified = false ; String partyId = ServiceUtil . getPartyIdCheckSecurity ( userLogin , security , context , result , "PARTYMGR" , "_PCM_UPDATE" ) ; if ( result . size ( ) > 0 ) return result ; String newCmId = null ; try { newCmId = delegator . getNextSeqId ( "ContactMech" ) ; } catch ( IllegalArgumentException e ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resourceError , "contactmechservices.could_not_change_contact_info_id_generation_failure" , locale ) ) ; } String contactMechId = ( String ) context . get ( "contactMechId" ) ; GenericValue contactMech = null ; GenericValue partyContactMech = null ; try { contactMech = EntityQuery . use ( delegator ) . from ( "ContactMech" ) . where ( "contactMechId" , contactMechId ) . queryOne ( ) ; partyContactMech = EntityQuery . use ( delegator ) . from ( "PartyContactMech" ) . where ( "partyId" , partyId , "contactMechId" , contactMechId ) . orderBy ( "fromDate" ) . filterByDate ( ) . queryFirst ( ) ; } catch ( GenericEntityException e ) { Debug . logWarning ( e . getMessage ( ) , module ) ; contactMech = null ; partyContactMech = null ; } if ( contactMech == null ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resourceError , "contactmechservices.could_not_find_specified_contact_info_read" , locale ) ) ; } if ( partyContactMech == null ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resourceError , "contactmechservices.cannot_update_specified_contact_info_not_corresponds" , locale ) ) ; } toBeStored . add ( partyContactMech ) ; GenericValue newContactMech = GenericValue . create ( contactMech ) ; GenericValue newPartyContactMech = GenericValue . create ( partyContactMech ) ; GenericValue relatedEntityToSet = null ; if ( "TELECOM_NUMBER" . equals ( contactMech . getString ( "contactMechTypeId" ) ) ) { GenericValue telNum = null ; try { telNum = EntityQuery . use ( delegator ) . from ( "TelecomNumber" ) . where ( "contactMechId" , contactMechId ) . queryOne ( ) ; } catch ( GenericEntityException e ) { Debug . logWarning ( e . toString ( ) , module ) ; telNum = null ; } relatedEntityToSet = GenericValue . create ( telNum ) ; relatedEntityToSet . set ( "countryCode" , context . get ( "countryCode" ) ) ; relatedEntityToSet . set ( "areaCode" , context . get ( "areaCode" ) ) ; relatedEntityToSet . set ( "contactNumber" , context . get ( "contactNumber" ) ) ; if ( telNum == null || ! relatedEntityToSet . equals ( telNum ) ) { isModified = true ; } relatedEntityToSet . set ( "contactMechId" , newCmId ) ; newPartyContactMech . set ( "extension" , context . get ( "extension" ) ) ; } else { return ServiceUtil . returnError ( UtilProperties . getMessage ( resourceError , "contactmechservices.could_not_update_contact_as_TELECOM_NUMBER_specified" , UtilMisc . toMap ( "contactMechTypeId" , contactMech . getString ( "contactMechTypeId" ) ) , locale ) ) ; } newPartyContactMech . set ( "roleTypeId" , context . get ( "roleTypeId" ) ) ; newPartyContactMech . set ( "allowSolicitation" , context . get ( "allowSolicitation" ) ) ; if ( ! newContactMech . equals ( contactMech ) ) isModified = true ; if ( ! newPartyContactMech . equals ( partyContactMech ) ) isModified = true ; toBeStored . add ( newContactMech ) ; toBeStored . add ( newPartyContactMech ) ; if ( isModified ) { if ( relatedEntityToSet != null ) toBeStored . add ( relatedEntityToSet ) ; newContactMech . set ( "contactMechId" , newCmId ) ; newPartyContactMech . set ( "contactMechId" , newCmId ) ; newPartyContactMech . set ( "fromDate" , now ) ; newPartyContactMech . set ( "thruDate" , null ) ; try { Iterator < GenericValue > partyContactMechPurposes = UtilMisc . toIterator ( partyContactMech . getRelated ( "PartyContactMechPurpose" , null , null , false ) ) ; while ( partyContactMechPurposes != null && partyContactMechPurposes . hasNext ( ) ) { GenericValue tempVal = GenericValue . create ( partyContactMechPurposes . next ( ) ) ; tempVal . set ( "contactMechId" , newCmId ) ; toBeStored . add ( tempVal ) ; } } catch ( GenericEntityException e ) { Debug . logWarning ( e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resourceError , "contactmechservices.could_not_change_contact_info_read" , UtilMisc . toMap ( "errMessage" , e . getMessage ( ) ) , locale ) ) ; } partyContactMech . set ( "thruDate" , now ) ; try { delegator . storeAll ( toBeStored ) ; } catch ( GenericEntityException e ) { Debug . logWarning ( e . toString ( ) , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resourceError , "contactmechservices.could_not_change_contact_info_write" , UtilMisc . toMap ( "errMessage" , e . getMessage ( ) ) , locale ) ) ; } } else { result . put ( "newContactMechId" , contactMechId ) ; result . put ( ModelService . RESPONSE_MESSAGE , ModelService . RESPOND_SUCCESS ) ; result . put ( ModelService . SUCCESS_MESSAGE , UtilProperties . getMessage ( resourceError , "contactmechservices.no_changes_made_not_updating" , locale ) ) ; return result ; } result . put ( "newContactMechId" , newCmId ) ; result . put ( ModelService . RESPONSE_MESSAGE , ModelService . RESPOND_SUCCESS ) ; return result ; }

Actualiza una verificación de seguridad de telecomnumber </ B>: UserLogin PartyID debe igual a PartyID, o debe tener permiso PartyMTR_UPDATE


public static void main  ( String [ ] args ) throws IOException { IncrementalVisitor . main ( args , VISITOR_BUILDER ) ; }

Punto de entrada de invocación de línea de comandos.Espera 2 parámetros, primero es el directorio de origen con archivos .clase según lo producido por el compilador Java, el segundo es el directorio de salida donde almacenar la versión mejorada de BYTECODE.


private void updateParentItems  ( TreeItem item ) { if ( item != null ) { Item [ ] children = getChildren ( item ) ; boolean containsChecked = false ; boolean containsUnchecked = false ; for ( int i = 0 ; i < children . length ; i ++ ) { TreeItem curr = ( TreeItem ) children [ i ] ; containsChecked |= curr . getChecked ( ) ; containsUnchecked |= ( ! curr . getChecked ( ) || curr . getGrayed ( ) ) ; } item . setChecked ( containsChecked ) ; item . setGrayed ( containsChecked && containsUnchecked ) ; updateParentItems ( item . getParentItem ( ) ) ; } }

Actualiza el estado de cheque / gris de todos los artículos principales


private void updateGradientParameters  ( ) { mSideHypot = ( int ) Math . hypot ( getWidth ( ) , getHeight ( ) ) ; ShapeDrawable mDrawable = new ShapeDrawable ( new RectShape ( ) ) ; final double radiansAngle = Math . toRadians ( mDegreesAngle ) ; mDrawable . getPaint ( ) . setShader ( new LinearGradient ( 0 , 0 , ( int ) ( mSideHypot * Math . cos ( radiansAngle ) ) , ( int ) ( mSideHypot * Math . sin ( radiansAngle ) ) , mColorA , mColorB , Shader . TileMode . REPEAT ) ) ; if ( mForegroundLayout == null ) { mForegroundLayout = new FrameLayout ( getContext ( ) ) ; mForegroundLayout . setLayoutParams ( new FrameLayout . LayoutParams ( FrameLayout . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT ) ) ; addView ( mForegroundLayout ) ; } mForegroundLayout . setVisibility ( isChecked ( ) ? View . VISIBLE : View . INVISIBLE ) ; mForegroundLayout . setForeground ( mDrawable ) ; }


private String clean  ( String name ) { StringBuffer buf = new StringBuffer ( ) ; for ( int i = 0 ; i < name . length ( ) ; i ++ ) { char ch = name . charAt ( i ) ; switch ( ch ) { case '&' : buf . append ( "&" ) ; break ; default : buf . append ( ch ) ; break ; } } return buf . toString ( ) ; }

rutina de desinfección de javascript buggy


@ Override public void insert  ( Constant key , RecordId dataRecordId , boolean doLogicalLogging ) { beforeFirst ( ConstantRange . newInstance ( key ) ) ; if ( doLogicalLogging ) tx . recoveryMgr ( ) . logLogicalStart ( ) ; rf . insert ( ) ; rf . setVal ( SCHEMA_KEY , key ) ; rf . setVal ( SCHEMA_RID_BLOCK , new BigIntConstant ( dataRecordId . block ( ) . number ( ) ) ) ; rf . setVal ( SCHEMA_RID_ID , new IntegerConstant ( dataRecordId . id ( ) ) ) ; if ( doLogicalLogging ) tx . recoveryMgr ( ) . logIndexInsertionEnd ( ii . tableName ( ) , ii . fieldName ( ) , key , dataRecordId . block ( ) . number ( ) , dataRecordId . id ( ) ) ; }

Inserta un nuevo registro de índice en este índice.


public static void init  ( Context context ) { if ( sInstance == null ) { final ExecutorService service = Executors . newSingleThreadExecutor ( ) ; sTrainingTaskFuture = service . submit ( new TrainingTask ( context ) ) ; } else { throw new IllegalStateException ( "Attempt to train code classifier twice.\n" + "It should be initialized once at start to make train asynchronously." ) ; } }

Punto de inicio para aplicaciones que usan el código clasificatorio.Llamados en la aplicación Start.Crea la tarea de entrenamiento para el clasificador de código.


public boolean isSelected  ( ) { ClusterViewer viewer = getViewer ( ) ; return viewer . getDataType ( ) . equalsIgnoreCase ( ClassificationType . Taxonomy . toString ( ) ) ; }


public static void log  ( Object message ) { Gdx . app . log ( TAG , String . valueOf ( message ) ) ; }

Registra un mensaje a la consola o logcat


float [ ] concat  ( float [ ] ... arrays ) { int length = 0 ; for ( float [ ] array : arrays ) { length += array . length ; } float [ ] result = new float [ length ] ; int pos = 0 ; for ( float [ ] array : arrays ) { for ( float element : array ) { result [ pos ] = element ; pos ++ ; } } return result ; }


public int error_sym  ( ) { return 1 ; }

<Código> Error </ código> Índice de símbolos.


public final int yystate  ( ) { return zzLexicalState ; }


public static boolean isEmptyOrBlanks  ( String string ) { if ( string == null || string . length ( ) == 0 ) { return true ; } for ( int i = 0 ; i < string . length ( ) ; i ++ ) { char c = string . charAt ( i ) ; if ( ! Character . isWhitespace ( c ) ) { return false ; } } return true ; }

Comprueba si la cadena dada es nula, vacía o contiene el espacio en blanco solamente


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set networkData=" ) ; String dataType = np . getWordMatchesIgnoringCase ( ClassificationType . Taxonomy + " " + ClassificationType . SEED + " " + ClassificationType . KEGG + " " + ClassificationType . COG ) ; np . matchIgnoreCase ( ";" ) ; ClusterViewer viewer = getViewer ( ) ; viewer . setDataType ( dataType ) ; viewer . updateDistances ( ) ; }


private void movePos  ( float deltaY ) { if ( ( deltaY < 0 && mPtrIndicator . isInStartPosition ( ) ) ) { if ( DEBUG ) { PtrCLog . e ( LOG_TAG , String . format ( "has reached the top" ) ) ; } return ; } int to = mPtrIndicator . getCurrentPosY ( ) + ( int ) deltaY ; if ( mPtrIndicator . willOverTop ( to ) ) { if ( DEBUG ) { PtrCLog . e ( LOG_TAG , String . format ( "over top" ) ) ; } to = PtrIndicator . POS_START ; } mPtrIndicator . setCurrentPos ( to ) ; int change = to - mPtrIndicator . getLastPosY ( ) ; updatePos ( change ) ; }

Si Deltay> 0, mueve el contenido hacia abajo


private static boolean isProductInventoryAvailableByFacility  ( String productId , String inventoryFacilityId , BigDecimal quantity , LocalDispatcher dispatcher ) { BigDecimal availableToPromise = null ; try { Map < String , Object > result = dispatcher . runSync ( "getInventoryAvailableByFacility" , UtilMisc . toMap ( "productId" , productId , "facilityId" , inventoryFacilityId ) ) ; availableToPromise = ( BigDecimal ) result . get ( "availableToPromiseTotal" ) ; if ( availableToPromise == null ) { Debug . logWarning ( "The getInventoryAvailableByFacility service returned a null availableToPromise, the error message was:\n" + result . get ( ModelService . ERROR_MESSAGE ) , module ) ; return false ; } } catch ( GenericServiceException e ) { Debug . logWarning ( e , "Error invoking getInventoryAvailableByFacility service in isCatalogInventoryAvailable" , module ) ; return false ; } if ( availableToPromise . compareTo ( quantity ) >= 0 ) { if ( Debug . infoOn ( ) ) Debug . logInfo ( "Inventory IS available in facility with id " + inventoryFacilityId + " for product id " + productId + "; desired quantity is " + quantity + ", available quantity is " + availableToPromise , module ) ; return true ; } else { if ( Debug . infoOn ( ) ) Debug . logInfo ( "Returning false because there is insufficient inventory available in facility with id " + inventoryFacilityId + " for product id " + productId + "; desired quantity is " + quantity + ", available quantity is " + availableToPromise , module ) ; return false ; } }

Invoca el servicio GetInVentoryAvailableByByByFacility, devuelve VERDADERO si la cantidad especificada está disponible, de la manera falsa, esto solo se usa en el método relacionado que utiliza un COMPROPETREFIGWRAPPER, hasta que se refactora en un servicio ...


private static byte [ ] convert16To8Bits  ( byte [ ] samples16Bit ) { byte [ ] samples8Bit = new byte [ samples16Bit . length / 2 ] ; for ( int i = 0 , j = 0 ; i < samples16Bit . length ; i += 2 , j ++ ) { int sample = ( 0x000000FF & samples16Bit [ i ] ) ; samples8Bit [ j ] = ( byte ) ( sample + 128 ) ; } return samples8Bit ; }

Convierte una matriz de datos de audio de 16 bits firmados a datos de audio de 8 bits sin firmar.


@ Override public boolean accept  ( File pathname ) { String suffix = Basic . getSuffix ( pathname . getName ( ) ) . toLowerCase ( ) ; if ( suffix . startsWith ( ".rma" ) ) { try ( InputReader r = new InputReader ( pathname , null , null , true ) ) { int magicNumber = r . readInt ( ) ; int version = r . readInt ( ) ; return magicNumber == RMA2File . MAGIC_NUMBER && ( version == 2 || version == 3 ) ; } catch ( Exception ex ) { } } return false ; }

Pruebas si el nombre de ruta abstracta especificado debe incluirse en una lista de PATHNAME.


public SizeAnimator ( String group ) { super ( group ) ; }

Cree un nuevo SizeAnimator que procese el grupo especificado.


private String buildText  ( boolean useCurrentValue ) { StringBuilder itemsText = new StringBuilder ( ) ; int addItems = visibleItems / 2 + 1 ; for ( int i = currentItem - addItems ; i <= currentItem + addItems ; i ++ ) { if ( useCurrentValue || i != currentItem ) { String text = getTextItem ( i ) ; if ( text != null ) { itemsText . append ( text ) ; } } if ( i < currentItem + addItems ) { itemsText . append ( "\n" ) ; } } return itemsText . toString ( ) ; }

Construye texto dependiendo del valor actual


public void addAll  ( @ NonNull List < Group > groups ) { if ( groups . contains ( null ) ) throw new RuntimeException ( "List of groups can't contain null!" ) ; int itemCountBeforeGroup = getItemCount ( ) ; int additionalSize = 0 ; for ( Group group : groups ) { additionalSize += group . getItemCount ( ) ; group . setGroupDataObserver ( this ) ; } this . groups . addAll ( groups ) ; notifyItemRangeInserted ( itemCountBeforeGroup , additionalSize ) ; }

Agrega los contenidos de la lista de grupos, en orden, hasta el final del contenido del adaptador.Todos los grupos en la lista deben ser no nulos.


private static byte [ ] toBytes  ( Object o ) throws IOException  { ByteArrayOutputStream out = null ; ObjectOutputStream d = null ; try { out = new ByteArrayOutputStream ( ) ; d = new ObjectOutputStream ( out ) ; d . writeObject ( o ) ; d . flush ( ) ; return out . toByteArray ( ) ; } finally { if ( d != null ) { d . close ( ) ; } if ( out != null ) { out . close ( ) ; } } }


private void determineLMDirection  ( double [ ] qy , double [ ] diag , double [ ] lmDiag , InternalData internalData , int solvedCols , double [ ] work , double [ ] lmDir ) { final int [ ] permutation = internalData . permutation ; final double [ ] [ ] weightedJacobian = internalData . weightedJacobian ; final double [ ] diagR = internalData . diagR ; for ( int j = 0 ; j < solvedCols ; ++ j ) { int pj = permutation [ j ] ; for ( int i = j + 1 ; i < solvedCols ; ++ i ) { weightedJacobian [ i ] [ pj ] = weightedJacobian [ j ] [ permutation [ i ] ] ; } lmDir [ j ] = diagR [ pj ] ; work [ j ] = qy [ j ] ; } for ( int j = 0 ; j < solvedCols ; ++ j ) { int pj = permutation [ j ] ; double dpj = diag [ pj ] ; if ( dpj != 0 ) { Arrays . fill ( lmDiag , j + 1 , lmDiag . length , 0 ) ; } lmDiag [ j ] = dpj ; double qtbpj = 0 ; for ( int k = j ; k < solvedCols ; ++ k ) { int pk = permutation [ k ] ; if ( lmDiag [ k ] != 0 ) { final double sin ; final double cos ; double rkk = weightedJacobian [ k ] [ pk ] ; if ( FastMath . abs ( rkk ) < FastMath . abs ( lmDiag [ k ] ) ) { final double cotan = rkk / lmDiag [ k ] ; sin = 1.0 / FastMath . sqrt ( 1.0 + cotan * cotan ) ; cos = sin * cotan ; } else { final double tan = lmDiag [ k ] / rkk ; cos = 1.0 / FastMath . sqrt ( 1.0 + tan * tan ) ; sin = cos * tan ; } weightedJacobian [ k ] [ pk ] = cos * rkk + sin * lmDiag [ k ] ; final double temp = cos * work [ k ] + sin * qtbpj ; qtbpj = - sin * work [ k ] + cos * qtbpj ; work [ k ] = temp ; for ( int i = k + 1 ; i < solvedCols ; ++ i ) { double rik = weightedJacobian [ i ] [ pk ] ; final double temp2 = cos * rik + sin * lmDiag [ i ] ; lmDiag [ i ] = - sin * rik + cos * lmDiag [ i ] ; weightedJacobian [ i ] [ pk ] = temp2 ; } } } lmDiag [ j ] = weightedJacobian [ j ] [ permutation [ j ] ] ; weightedJacobian [ j ] [ permutation [ j ] ] = lmDir [ j ] ; } int nSing = solvedCols ; for ( int j = 0 ; j < solvedCols ; ++ j ) { if ( ( lmDiag [ j ] == 0 ) && ( nSing == solvedCols ) ) { nSing = j ; } if ( nSing < solvedCols ) { work [ j ] = 0 ; } } if ( nSing > 0 ) { for ( int j = nSing - 1 ; j >= 0 ; -- j ) { int pj = permutation [ j ] ; double sum = 0 ; for ( int i = j + 1 ; i < nSing ; ++ i ) { sum += weightedJacobian [ i ] [ pj ] * work [ i ] ; } work [ j ] = ( work [ j ] - sum ) / lmDiag [ j ] ; } } for ( int j = 0 ; j < lmDir . length ; ++ j ) { lmDir [ permutation [ j ] ] = work [ j ] ; } }

Resuelve un * x = b y d * x = 0 en el sentido de mínimos cuadrados.<P> Esta implementación es una traducción en Java de la MinPACK <A HREF="http://www.netlib.org/minpack/qrsolv.f"> QRSOLV </A> RUTINGINA. </ P> <p> esteMétodo establece los atributos LMDIR y LMDIAG. </ p> <p> Los autores de la función FORTRAN original son: </ P> <ul> <li> Laboratorio Nacional de Argonne.Proyecto MinPACK.Marzo de 1980 </ li> <li> Burton S. Garbow </ li> <li> Kenneth E. Hillstrom </ li> <li> Jorge J. More </ li> </ ul> <p> Luc Maisonobe hizo elTraducción de Java. </ P>


public static void verifyWhichActivityToSwitch  ( Context mContext , String source , String dest ) { UserInfoActivity . start ( mContext , dest ) ; }

Para determinar qué actividad debemos cambiar a


Construir una instancia vacía de esta clase.


public A wrap  ( T instance ) { return wrapper . apply ( instance ) ; }

Envolver una instancia real en una instancia alias


public static void endFlight  ( AirMapFlight flight , @ Nullable AirMapCallback < AirMapFlight > callback ) { FlightService . endFlight ( flight , callback ) ; }

Termina un vuelo perteneciente al piloto registrado.


public StringProperty lastReceivedPayloadProperty  ( ) { return lastReceivedPayload ; }

Obtiene la última propiedad de carga útil recibida.


public static Map < String , Object > sendOrderBackorderNotification  ( DispatchContext ctx , Map < String , ? extends Object > context ) { return sendOrderNotificationScreen ( ctx , context , "PRDS_ODR_BACKORDER" ) ; }

Servicio para enviar un correo electrónico a un cliente con cambios de pedido.


public static double [ ] autoCorrelateWithZeroPadding  ( final double [ ] signal ) { int n = MathUtils . closestPowerOfTwoAbove ( 2 * signal . length ) ; double [ ] fftSignal = new double [ n ] ; System . arraycopy ( signal , 0 , fftSignal , 0 , signal . length ) ; double [ ] fftAutocorr = autoCorrelate ( fftSignal ) ; double [ ] result = new double [ signal . length ] ; int halfLength = signal . length / 2 ; int odd = signal . length % 2 ; System . arraycopy ( fftAutocorr , n - halfLength , result , 0 , halfLength ) ; System . arraycopy ( fftAutocorr , 0 , result , halfLength , halfLength + odd ) ; return result ; }

Calcule la autocorrelación de una señal, por transformación inversa de su espectro de potencia.Este método aplica el relleno cero cuando sea necesario para garantizar que el resultado no esté contaminado debido a la periodicidad asumida.


public static < T > T [ ]  concat ( T [ ] first , T [ ] second )  { T [ ] result = Arrays . copyOf ( first , first . length + second . length ) ; System . arraycopy ( second , 0 , result , first . length , second . length ) ; return result ; }


private List < List < Sweet > > sortSweets  ( List < Sweet > messySweets , double colStep ) { List < List < Sweet > > grid = new ArrayList < > ( ) ; minHeight = Integer . MAX_VALUE ; minWidth = Integer . MAX_VALUE ; for ( Sweet sweet : messySweets ) { if ( sweet . getY ( ) < minHeight ) { minHeight = ( int ) sweet . getY ( ) ; } if ( sweet . getX ( ) < minWidth ) { minWidth = ( int ) sweet . getX ( ) ; } } fillGrid ( messySweets , colStep , grid ) ; return grid ; }


private long calcBezier  ( float interpolatedTime , float p0 , float p1 , float p2 ) { return Math . round ( ( Math . pow ( ( 1 - interpolatedTime ) , 2 ) * p0 ) + ( 2 * ( 1 - interpolatedTime ) * interpolatedTime * p1 ) + ( Math . pow ( interpolatedTime , 2 ) * p2 ) ) ; }

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


public static int nextLesserValueToTarget  ( int currentIndex , FixedLengthDimensionDataChunk dimColumnDataChunk , byte [ ] compareValue ) { while ( currentIndex - 1 >= 0 && ByteUtil . UnsafeComparer . INSTANCE . compareTo ( dimColumnDataChunk . getCompleteDataChunk ( ) , ( currentIndex - 1 ) * compareValue . length , compareValue . length , compareValue , 0 , compareValue . length ) >= 0 ) { -- currentIndex ; } return -- currentIndex ; }

El método identificará el valor que es menor que el elemento pivotante en el que se aplicará el filtro del rango.


public void actionPerformed  ( ActionEvent ev ) { execute ( "set networkdata=" + ClassificationType . SEED + ";" ) ; }


public static void writeByteArrayToFile  ( File file , byte [ ] data , boolean append ) throws IOException { OutputStream out = null ; try { out = openOutputStream ( file , append ) ; out . write ( data ) ; out . close ( ) ; } finally { IOUtils . closeQuietly ( out ) ; } }

Escribe una matriz de bytes a un archivo que crea el archivo si no existe.


private final boolean eq  ( long v1 , long v2 ) { return v1 == v2 ; }


public void configHandler  ( HandlerLoader handlerLoader ) { }


public Map < K , V > pop  ( ) { if ( this . stackList . size ( ) > 1 ) { return stackList . remove ( 0 ) ; } else { return null ; } }

Retire y devuelva el mapa desde la parte superior de la pila;Si solo hay un mapa en la pila, vuelve NULL y no lo elimina.


public < T > Builder  replace ( @ Nullable Section < T > toReplace , Section < T > replaceWith ) { if ( toReplace == null ) { return add ( replaceWith ) ; } int i = sections . indexOf ( toReplace ) ; if ( i == - 1 ) { throw new IllegalArgumentException ( "Section not in this builder." ) ; } sections . remove ( i ) ; sections . add ( i , replaceWith ) ; return this ; }

Reemplaza una sección si ya existe.Si no lo hace, solo agrega la sección.


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

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


public static int parseInt  ( char [ ] chars , int start , int length ) { int end = start + length ; int negMul = - 1 ; int i = start ; if ( length > 0 ) { char c = chars [ i ] ; if ( c == '-' ) { negMul = 1 ; i ++ ; } else if ( c == '+' ) { i ++ ; } } else { throw new NumberFormatException ( "cannot convert empty string to int" ) ; } int result = 0 ; for ( ; i < end ; i ++ ) { char c = chars [ i ] ; int digit = c - '0' ; if ( digit >= 10 || digit < 0 ) { throw newNumberFormatException ( "invalid integer representation" , chars , start , length ) ; } int newResult = result * 10 - digit ; if ( newResult > result ) { throw newNumberFormatException ( "overflow" , chars , start , length ) ; } result = newResult ; } if ( ( result == 0 ) && chars [ i - 1 ] != '0' ) { throw newNumberFormatException ( "invalid integer representation" , chars , start , length ) ; } if ( ( result == Integer . MIN_VALUE ) && negMul == 1 ) { throw newNumberFormatException ( "overflow" , chars , start , length ) ; } return negMul * result ; }

Analiza la rebanada de caracteres especificadas como un INT firmado.


public static boolean isTableExists  ( String tableName , SQLiteDatabase db ) { boolean exist ; try { exist = BaseUtility . containsIgnoreCases ( findAllTableNames ( db ) , tableName ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; exist = false ; } return exist ; }

Prueba si el nombre de la tabla que pasa existe en la base de datos.Se ignoran los casos.


public static LineString lineString  ( Point first , Point second , Point ... morePoints ) { Point [ ] points = new Point [ 2 + morePoints . length ] ; points [ 0 ] = Assert . argumentNotNull ( first , "first" ) ; points [ 1 ] = Assert . argumentNotNull ( second , "second" ) ; for ( int i = 0 ; i < morePoints . length ; i ++ ) points [ i + 2 ] = morePoints [ i ] ; return lineString ( points ) ; }

Crea una instancia de LINESTRING desde los puntos especificados.


@ Override public void printStackTrace  ( PrintWriter pw ) { super . printStackTrace ( pw ) ; if ( nested != null ) { nested . printStackTrace ( pw ) ; } }

Imprime el mensaje compuesto y el rastreo de la pila incorporada al escritor de impresión especificado PW.


public ImageSize scale  ( float scale ) { return new ImageSize ( ( int ) ( width * scale ) , ( int ) ( height * scale ) ) ; }

Escalas de las dimensiones según la escala entrante.Devuelve nuevo objeto.


public void write  ( DataOutputStream out ) throws IOException , jasError { boolean needAnno = false ; if ( visAnnotAttr != null || invisAnnotAttr != null ) needAnno = true ; for ( Iterator i = methods . iterator ( ) ; i . hasNext ( ) ; ) { Method m = ( Method ) i . next ( ) ; if ( m . invis_annot_attr != null || m . vis_annot_attr != null || m . param_invis_annot_attr != null || m . param_vis_annot_attr != null ) needAnno = true ; } for ( Iterator i = vars . iterator ( ) ; i . hasNext ( ) ; ) { Var f = ( Var ) i . next ( ) ; if ( f . invis_annot_attr != null || f . vis_annot_attr != null ) needAnno = true ; } if ( needAnno ) requireJava1_4 ( ) ; out . writeInt ( magic ) ; out . writeShort ( version_lo ) ; out . writeShort ( version_hi ) ; int curidx = 1 ; cpe_index = new Hashtable ( ) ; for ( Enumeration e = cpe . elements ( ) ; e . hasMoreElements ( ) ; ) { CP tmp = ( CP ) ( e . nextElement ( ) ) ; cpe_index . put ( tmp . getUniq ( ) , new Integer ( curidx ) ) ; curidx ++ ; if ( ( tmp instanceof LongCP ) || ( tmp instanceof DoubleCP ) ) curidx ++ ; } out . writeShort ( ( short ) curidx ) ; for ( Enumeration e = cpe . elements ( ) ; e . hasMoreElements ( ) ; ) { CP now = ( CP ) ( e . nextElement ( ) ) ; now . write ( this , out ) ; } out . writeShort ( class_access ) ; out . writeShort ( getCPIndex ( this_class ) ) ; if ( hasSuperClass ) { out . writeShort ( getCPIndex ( super_class ) ) ; } else { out . writeShort ( 0 ) ; } out . writeShort ( interfaces . size ( ) ) ; for ( Enumeration e = interfaces . elements ( ) ; e . hasMoreElements ( ) ; ) { CP c = ( CP ) ( e . nextElement ( ) ) ; out . writeShort ( getCPIndex ( c ) ) ; } out . writeShort ( vars . size ( ) ) ; for ( Enumeration e = vars . elements ( ) ; e . hasMoreElements ( ) ; ) { Var v = ( Var ) ( e . nextElement ( ) ) ; v . write ( this , out ) ; } out . writeShort ( methods . size ( ) ) ; for ( Enumeration e = methods . elements ( ) ; e . hasMoreElements ( ) ; ) { Method m = ( Method ) ( e . nextElement ( ) ) ; m . write ( this , out ) ; } short numExtra = 0 ; if ( source != null ) { numExtra = 1 ; } numExtra += generic . size ( ) ; if ( inner_class_attr != null ) { numExtra ++ ; } if ( isClassSynth ( ) ) { numExtra ++ ; } if ( deprAttr != null ) { numExtra ++ ; } if ( sigAttr != null ) { numExtra ++ ; } if ( visAnnotAttr != null ) { numExtra ++ ; } if ( invisAnnotAttr != null ) { numExtra ++ ; } if ( encl_meth_attr != null ) { numExtra ++ ; } if ( bsm_attr != null ) { numExtra ++ ; } out . writeShort ( numExtra ) ; if ( source != null ) { source . write ( this , out ) ; } for ( Enumeration gen = generic . elements ( ) ; gen . hasMoreElements ( ) ; ) { GenericAttr gattr = ( GenericAttr ) gen . nextElement ( ) ; gattr . write ( this , out ) ; } if ( isClassSynth ( ) ) { synthAttr . write ( this , out ) ; } if ( deprAttr != null ) { deprAttr . write ( this , out ) ; } if ( sigAttr != null ) { sigAttr . write ( this , out ) ; } if ( encl_meth_attr != null ) { encl_meth_attr . write ( this , out ) ; } if ( visAnnotAttr != null ) { visAnnotAttr . write ( this , out ) ; } if ( invisAnnotAttr != null ) { invisAnnotAttr . write ( this , out ) ; } if ( inner_class_attr != null ) { inner_class_attr . write ( this , out ) ; } if ( bsm_attr != null ) { bsm_attr . write ( this , out ) ; } out . flush ( ) ; }


public MessagesGetLongPollHistoryQuery fields  ( EnumParam ... value ) { return unsafeParam ( "fields" , value ) ; }


private CommandOutputWithStatus gitAllowNonZeroExit  ( Iterable < String > params ) throws RepoException { try { return executeGit ( getCwd ( ) , addGitDirAndWorkTreeParams ( params ) , environment , verbose ) ; } catch ( BadExitStatusWithOutputException e ) { CommandOutputWithStatus output = e . getOutput ( ) ; int exitCode = e . getOutput ( ) . getTerminationStatus ( ) . getExitCode ( ) ; if ( NON_CRASH_ERROR_EXIT_CODES . contains ( exitCode ) ) { return output ; } throw new RepoException ( "Error executing 'git': " + e . getMessage ( ) + ". Stderr: \n" + output . getStderr ( ) , e ) ; } catch ( CommandException e ) { throw new RepoException ( "Error executing 'git': " + e . getMessage ( ) , e ) ; } }

Ejecutar git permitiendo códigos de salida no cero.Esto solo permitirá que los códigos de salida no cero del programa (0-10. El límite superior es arbitrario).Y todavía fallará por códigos de salida como 127 (comando no encontrado).


@ Override public void channelDisconnected  ( ChannelHandlerContext ctx , ChannelStateEvent e ) throws Exception { log . info ( "Channel disconnected IP: " + inetAddress . getHostAddress ( ) ) ; }

Invocado cuando un canal se desconectado de su compañero remoto


public boolean hasFinally  ( ) { return getFinallyOpt ( ) . getNumChild ( ) != 0 ; }

Compruebe si existe el otro niño opcional.


@ Override public void onMapReady  ( GoogleMap googleMap ) { mMap = googleMap ; LatLng sydney = new LatLng ( - 34 , 151 ) ; mMap . addMarker ( new MarkerOptions ( ) . position ( sydney ) . title ( "Marker in Sydney" ) ) ; mMap . moveCamera ( CameraUpdateFactory . newLatLng ( sydney ) ) ; }

Manipula el mapa una vez disponible.Esta devolución de llamada se activa cuando el mapa está listo para ser utilizado.Aquí es donde podemos agregar marcadores o líneas, agregar oyentes o mover la cámara.En este caso, solo agregamos un marcador cerca de Sydney, Australia.Si Google Play Services no está instalado en el dispositivo, se le solicitará al usuario que lo instale dentro del fragmento de soporte.Este método solo se activará una vez que el usuario haya instalado los servicios de Google Play y devuelva a la aplicación.


public Date modifiedDate  ( String path ) throws IllegalStateException , IOException , FTPIllegalReplyException , FTPException  { synchronized ( lock ) { if ( ! connected ) { throw new IllegalStateException ( "Client not connected" ) ; } if ( ! authenticated ) { throw new IllegalStateException ( "Client not authenticated" ) ; } communication . sendFTPCommand ( "MDTM " + path ) ; FTPReply r = communication . readFTPReply ( ) ; touchAutoNoopTimer ( ) ; if ( ! r . isSuccessCode ( ) ) { throw new FTPException ( r ) ; } String [ ] messages = r . getMessages ( ) ; if ( messages . length != 1 ) { throw new FTPIllegalReplyException ( ) ; } else { try { return MDTM_DATE_FORMAT . parse ( messages [ 0 ] ) ; } catch ( ParseException e ) { throw new FTPIllegalReplyException ( ) ; } } } }

Este método solicita y devuelve la última fecha de modificación de un archivo o directorio.


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

(Se aplica solo al editar una publicación programada). La publicación estará disponible para amigos solamente


@ Override public Object clone  ( ) { return this . copy ( ) ; }


@ Override public String toString  ( ) { return " at character " + this . myIndex + " of " + this . mySource ; }

Haz una cadena imprimible de este jsontokeer.


public boolean isDistinct  ( ) { return distinct ; }

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


public void reset  ( ) { MATRIX [ MSCALE_X ] = 1 ; MATRIX [ MSKEW_X ] = 0 ; MATRIX [ MTRANS_X ] = 0 ; MATRIX [ MSKEW_Y ] = 1 ; MATRIX [ MSCALE_Y ] = 0 ; MATRIX [ MTRANS_Y ] = 0 ; MATRIX [ MPERSP_0 ] = 0 ; MATRIX [ MPERSP_1 ] = 0 ; MATRIX [ MPERSP_2 ] = 1 ; }


private static boolean contains  ( Entry [ ] eSet , Entry e ) { for ( int i = 0 ; i < eSet . length ; i ++ ) if ( equal ( eSet [ i ] , e ) ) return true ; return false ; }

Devuelve <CÓDIGO> Verdadero </ Code> Si el parámetro <código> Entrada </ código> es un elemento de la entrada <código> Entrada [] </ codigo> Parámetro de matriz <Código> ESET </ Código>;Devuelve <código> FALSO </ CODE> de lo contrario.


public ImageIcon loadImage  ( String imageName ) { try { ClassLoader classloader = getClass ( ) . getClassLoader ( ) ; java . net . URL url = classloader . getResource ( imageName ) ; if ( url != null ) { ImageIcon icon = new ImageIcon ( url ) ; return icon ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } throw new IllegalArgumentException ( "Unable to load image: " + imageName ) ; }

Método de ayuda para cargar un archivo de imagen de la carrera


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


public static double log2  ( double x ) { return Math . log ( x ) / LOG2 ; }

El logaritmo base 2 del valor de entrada.


public static Map < String , Object > scaleImageInAllSize  ( Map < String , ? extends Object > context , String filenameToUse , String viewType , String viewNumber ) throws IllegalArgumentException , ImagingOpException , IOException , JDOMException { Locale locale = ( Locale ) context . get ( "locale" ) ; int index ; Map < String , Map < String , String > > imgPropertyMap = FastMap . newInstance ( ) ; BufferedImage bufImg , bufNewImg ; double imgHeight , imgWidth ; Map < String , String > imgUrlMap = FastMap . newInstance ( ) ; Map < String , Object > resultXMLMap = FastMap . newInstance ( ) ; Map < String , Object > resultBufImgMap = FastMap . newInstance ( ) ; Map < String , Object > resultScaleImgMap = FastMap . newInstance ( ) ; Map < String , Object > result = FastMap . newInstance ( ) ; String imgPropertyFullPath = System . getProperty ( "ofbiz.home" ) + "/applications/product/config/ImageProperties.xml" ; resultXMLMap . putAll ( ImageTransform . getXMLValue ( imgPropertyFullPath , locale ) ) ; if ( resultXMLMap . containsKey ( "responseMessage" ) && resultXMLMap . get ( "responseMessage" ) . equals ( "success" ) ) { imgPropertyMap . putAll ( UtilGenerics . < Map < String , Map < String , String > > > cast ( resultXMLMap . get ( "xml" ) ) ) ; } else { String errMsg = UtilProperties . getMessage ( resource , "ScaleImage.unable_to_parse" , locale ) + " : ImageProperties.xml" ; Debug . logError ( errMsg , module ) ; result . put ( "errorMessage" , errMsg ) ; return result ; } index = filenameToUse . lastIndexOf ( "." ) ; String imgExtension = filenameToUse . substring ( index + 1 ) ; Map < String , Object > imageContext = FastMap . newInstance ( ) ; imageContext . putAll ( context ) ; imageContext . put ( "tenantId" , ( ( Delegator ) context . get ( "delegator" ) ) . getDelegatorTenantId ( ) ) ; String imageServerPath = FlexibleStringExpander . expandString ( EntityUtilProperties . getPropertyValue ( "catalog" , "image.server.path" , ( Delegator ) context . get ( "delegator" ) ) , imageContext ) ; String imageUrlPrefix = FlexibleStringExpander . expandString ( EntityUtilProperties . getPropertyValue ( "catalog" , "image.url.prefix" , ( Delegator ) context . get ( "delegator" ) ) , imageContext ) ; imageServerPath = imageServerPath . endsWith ( "/" ) ? imageServerPath . substring ( 0 , imageServerPath . length ( ) - 1 ) : imageServerPath ; imageUrlPrefix = imageUrlPrefix . endsWith ( "/" ) ? imageUrlPrefix . substring ( 0 , imageUrlPrefix . length ( ) - 1 ) : imageUrlPrefix ; FlexibleStringExpander filenameExpander ; String fileLocation = null ; String type = null ; String id = null ; if ( viewType . toLowerCase ( ) . contains ( "main" ) ) { String filenameFormat = EntityUtilProperties . getPropertyValue ( "catalog" , "image.filename.format" , ( Delegator ) context . get ( "delegator" ) ) ; filenameExpander = FlexibleStringExpander . getInstance ( filenameFormat ) ; id = ( String ) context . get ( "productId" ) ; fileLocation = filenameExpander . expandString ( UtilMisc . toMap ( "location" , "products" , "id" , id , "type" , "original" ) ) ; } else if ( viewType . toLowerCase ( ) . contains ( "additional" ) && viewNumber != null && ! viewNumber . equals ( "0" ) ) { String filenameFormat = EntityUtilProperties . getPropertyValue ( "catalog" , "image.filename.additionalviewsize.format" , ( Delegator ) context . get ( "delegator" ) ) ; filenameExpander = FlexibleStringExpander . getInstance ( filenameFormat ) ; id = ( String ) context . get ( "productId" ) ; if ( filenameFormat . endsWith ( "${id}" ) ) { id = id + "_View_" + viewNumber ; } else { viewType = "additional" + viewNumber ; } fileLocation = filenameExpander . expandString ( UtilMisc . toMap ( "location" , "products" , "id" , id , "viewtype" , viewType , "sizetype" , "original" ) ) ; } else { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ProductImageViewType" , UtilMisc . toMap ( "viewType" , type ) , locale ) ) ; } if ( fileLocation . lastIndexOf ( "/" ) != - 1 ) { fileLocation . substring ( 0 , fileLocation . lastIndexOf ( "/" ) + 1 ) ; } resultBufImgMap . putAll ( ImageTransform . getBufferedImage ( imageServerPath + "/" + fileLocation + "." + imgExtension , locale ) ) ; if ( resultBufImgMap . containsKey ( "responseMessage" ) && resultBufImgMap . get ( "responseMessage" ) . equals ( "success" ) ) { bufImg = ( BufferedImage ) resultBufImgMap . get ( "bufferedImage" ) ; imgHeight = bufImg . getHeight ( ) ; imgWidth = bufImg . getWidth ( ) ; if ( imgHeight == 0.0 || imgWidth == 0.0 ) { String errMsg = UtilProperties . getMessage ( resource , "ScaleImage.one_current_image_dimension_is_null" , locale ) + " : imgHeight = " + imgHeight + " ; imgWidth = " + imgWidth ; Debug . logError ( errMsg , module ) ; result . put ( "errorMessage" , errMsg ) ; return result ; } for ( Map . Entry < String , Map < String , String > > entry : imgPropertyMap . entrySet ( ) ) { String sizeType = entry . getKey ( ) ; resultScaleImgMap . putAll ( ImageTransform . scaleImage ( bufImg , imgHeight , imgWidth , imgPropertyMap , sizeType , locale ) ) ; if ( resultScaleImgMap . containsKey ( "responseMessage" ) && resultScaleImgMap . get ( "responseMessage" ) . equals ( "success" ) ) { bufNewImg = ( BufferedImage ) resultScaleImgMap . get ( "bufferedImage" ) ; String newFileLocation = null ; filenameToUse = sizeType + filenameToUse . substring ( filenameToUse . lastIndexOf ( "." ) ) ; if ( viewType . toLowerCase ( ) . contains ( "main" ) ) { newFileLocation = filenameExpander . expandString ( UtilMisc . toMap ( "location" , "products" , "id" , id , "type" , sizeType ) ) ; } else if ( viewType . toLowerCase ( ) . contains ( "additional" ) ) { newFileLocation = filenameExpander . expandString ( UtilMisc . toMap ( "location" , "products" , "id" , id , "viewtype" , viewType , "sizetype" , sizeType ) ) ; } String newFilePathPrefix = "" ; if ( newFileLocation . lastIndexOf ( "/" ) != - 1 ) { newFilePathPrefix = newFileLocation . substring ( 0 , newFileLocation . lastIndexOf ( "/" ) + 1 ) ; } String targetDirectory = imageServerPath + "/" + newFilePathPrefix ; try { File targetDir = new File ( targetDirectory ) ; if ( ! targetDir . exists ( ) ) { boolean created = targetDir . mkdirs ( ) ; if ( ! created ) { String errMsg = UtilProperties . getMessage ( resource , "ScaleImage.unable_to_create_target_directory" , locale ) + " - " + targetDirectory ; Debug . logFatal ( errMsg , module ) ; return ServiceUtil . returnError ( errMsg ) ; } } else if ( newFileLocation . endsWith ( "/" + id ) ) { try { File [ ] files = targetDir . listFiles ( ) ; for ( File file : files ) { if ( file . isFile ( ) && file . getName ( ) . startsWith ( id ) ) { file . delete ( ) ; } } } catch ( SecurityException e ) { Debug . logError ( e , module ) ; } } } catch ( NullPointerException e ) { Debug . logError ( e , module ) ; } try { ImageIO . write ( bufNewImg , imgExtension , new File ( imageServerPath + "/" + newFileLocation + "." + imgExtension ) ) ; } catch ( IllegalArgumentException e ) { String errMsg = UtilProperties . getMessage ( resource , "ScaleImage.one_parameter_is_null" , locale ) + e . toString ( ) ; Debug . logError ( errMsg , module ) ; result . put ( "errorMessage" , errMsg ) ; return result ; } catch ( IOException e ) { String errMsg = UtilProperties . getMessage ( resource , "ScaleImage.error_occurs_during_writing" , locale ) + e . toString ( ) ; Debug . logError ( errMsg , module ) ; result . put ( "errorMessage" , errMsg ) ; return result ; } if ( sizeTypeList . contains ( sizeType ) ) { String imageUrl = imageUrlPrefix + "/" + newFileLocation + "." + imgExtension ; imgUrlMap . put ( sizeType , imageUrl ) ; } } } result . put ( "responseMessage" , "success" ) ; result . put ( "imageUrlMap" , imgUrlMap ) ; result . put ( "original" , resultBufImgMap ) ; return result ; } else { String errMsg = UtilProperties . getMessage ( resource , "ScaleImage.unable_to_scale_original_image" , locale ) + " : " + filenameToUse ; Debug . logError ( errMsg , module ) ; result . put ( "errorMessage" , errMsg ) ; return ServiceUtil . returnError ( errMsg ) ; } }

ScaleImageInlySize <P> Escala la imagen original en todos los tipos de tamaño diferente (pequeño, medio, grande, detalle)


public static void stopProfilerAndReport  ( ) { profiler . stopCollecting ( ) ; try { String path = CoreProperties . getLoader ( ) . getPropertyAsString ( VanillaDb . class . getName ( ) + ".PROFILE_OUTPUT_DIR" , System . getProperty ( "user.home" ) ) ; File out = new File ( path , System . currentTimeMillis ( ) + "_profile.txt" ) ; FileWriter wrFile = new FileWriter ( out ) ; BufferedWriter bwrFile = new BufferedWriter ( wrFile ) ; bwrFile . write ( profiler . getTopPackages ( 30 ) ) ; bwrFile . newLine ( ) ; bwrFile . write ( profiler . getTopMethods ( 30 ) ) ; bwrFile . newLine ( ) ; bwrFile . write ( profiler . getTopLines ( 30 ) ) ; bwrFile . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }

Detener perfilador y generar archivo de informe.


public void dumpWagonCART  ( CART cart , String destFile ) throws IOException { System . out . println ( "Dumping CART to " + destFile + " ..." ) ; DataOutputStream out = new DataOutputStream ( new BufferedOutputStream ( new FileOutputStream ( destFile ) ) ) ; MaryHeader hdr = new MaryHeader ( MaryHeader . CARTS ) ; hdr . writeTo ( out ) ; out . writeInt ( cart . getNumNodes ( ) ) ; String name = "" ; out . writeUTF ( name ) ; dumpBinary ( cart , out ) ; out . close ( ) ; System . out . println ( " ... done\n" ) ; }

Tirar los carros en el carro Mapa a DestinationDir / CARTS.BIN


private static double [ ] computeShannonWeaver  ( ClassificationViewer viewer , ProgressListener progressListener ) throws IOException , CanceledException { progressListener . setMaximum ( 2 * viewer . getSelectedNodes ( ) . size ( ) ) ; progressListener . setProgress ( 0 ) ; int numberOfDatasets = viewer . getDocument ( ) . getNumberOfSamples ( ) ; double [ ] total = new double [ numberOfDatasets ] ; for ( Node v : viewer . getSelectedNodes ( ) ) { int [ ] summarized = viewer . getNodeData ( v ) . getSummarized ( ) ; for ( int i = 0 ; i < summarized . length ; i ++ ) total [ i ] += summarized [ i ] ; progressListener . incrementProgress ( ) ; } double [ ] result = new double [ numberOfDatasets ] ; for ( int i = 0 ; i < result . length ; i ++ ) result [ 0 ] = 0d ; for ( Node v : viewer . getSelectedNodes ( ) ) { int [ ] summarized = viewer . getNodeData ( v ) . getSummarized ( ) ; for ( int i = 0 ; i < summarized . length ; i ++ ) { if ( summarized [ i ] > 0 ) { double p = summarized [ i ] / total [ i ] ; result [ i ] += p * Math . log ( p ) / LOG2 ; } } progressListener . incrementProgress ( ) ; } for ( int i = 0 ; i < result . length ; i ++ ) result [ i ] = - result [ i ] ; return result ; }

calcular el índice de diversidad de Shannon-Weaver en bits


public Call post  ( String url , Callback callback ) { return post ( url , null , callback ) ; }


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


public LicensePanel ( URL url ) { this . url = url ; initComponents ( ) ; initAccessibility ( ) ; try { jEditorPane1 . setPage ( url ) ; } catch ( IOException exc ) { LOGGER . throwing ( LicensePanel . class . getName ( ) , "<init>" , exc ) ; } }

Crea nuevo panel de cancelación de forma


void assignLocalToLocal  ( Local right , Local left ) { localsRemove ( left ) ; localsPutAll ( left , locals . get ( right ) ) ; if ( doCheck ) sanityCheck ( ) ; }

Copiar asignación a la izquierda = derecha.


default String resourceId  ( Entity entity , ResourceType < ? > resourceType ) { return "resource-" + resourceType . getId ( ) + "-" + entity . getId ( ) ; }

Haga un identificador para un recurso de un tipo dado que se asocie con una entidad dada.


@ NotNull public AddFaceToFaceListAction addFaceToFaceList  ( @ NotNull String faceListId , @ Nullable String userData , @ Nullable String targetFace , @ NotNull String imageUrl ) { Validation . validate ( faceListId , "^[a-z0-9_-]{1,64}$" , new ParameterValidationException ( "faceListId" , "Valid character is letter in lower case or digit or '-' or '_', maximum length is 64." ) ) ; Validation . validate ( Utils . blankIfNull ( userData ) , 1 , new ParameterValidationException ( "userData" , "The size limit is 1KB" ) ) ; return new AddFaceToFaceListAction ( cognitiveContext , faceListId , userData , targetFace , imageUrl ) ; }

Añadir una cara a una lista de la cara. La cara de entrada se especifica como una imagen con un rectángulo TargetFace. Devuelve un Facio Persisted que representa la cara agregada, y PersistedfaceID no caducará. <P> Se utilizará el Facio Persisted en la salida JSON de la cara: encuentre similares, o en la lista de cara: elimine una cara de una lista de la cara para eliminar la cara de una lista de la cara. JPEG, PNG, GIF (el primer cuadro) y BMP son compatibles. El tamaño del archivo de imagen no debe ser más grande que 4MB. El tamaño de la cara detectable es entre 36x36 a 4096x4096 píxeles. No se detectarán las caras de este rango. Rectángulo especificado por TargetFace debe contener exactamente una cara. Cero o múltiples caras se considerarán como un error. Fuera del tamaño de la cara detectable, la postura de la cabeza grande, o las oclusiones muy grandes también darán lugar a que no logran agregar una cara de persona. El rectángulo dado especifica tanto la ubicación de la cara y el tamaño de la cara al mismo tiempo. No hay garantía de resultados corrientes si está utilizando el rectángulo que no se devuelve de la detección de la cara. La lista de cara es un grupo de caras, y estas caras no caducarán. La lista de cara se utiliza como un parámetro de las caras de origen en la cara: encuentra similares. La lista de cara es útil para encontrar caras similares en un conjunto de rostro fijo con mucha frecuencia, por ejemplo. Para encontrar una cara similar en una lista de celebridades, amigos o familiares. <p> Una lista de la cara puede tener un máximo de 1000 caras.


public static void disableLogging  ( ) { DISABLED = true ; }

Desactiva el registrador, no se pasarán los registros a Logcat, todos los métodos de registro no harán nada


public void writeTo  ( IndentingWriter writer , int register ) throws IOException { if ( ! options . noParameterRegisters ) { if ( register >= registerCount - parameterRegisterCount ) { writer . write ( 'p' ) ; writer . printSignedIntAsDec ( ( register - ( registerCount - parameterRegisterCount ) ) ) ; return ; } } writer . write ( 'v' ) ; writer . printSignedIntAsDec ( register ) ; }

Escribe un registro con el formato apropiado.Si Baksmali.noparameterRegisters es verdadero, entonces siempre emitirá un registro en el formato V <N>.Si es falso, entonces determina si el registro es un registro de parámetros, y de ser así, lo formate en el formato P <N> en su lugar.


public MacroList ( ) { this . macrosses = new HashMap < Integer , String > ( 12 ) ; }


private static void computeGappedSequenceBlastP  ( String readName , String readSequence , String text , Collection < Pair < Integer , String > > insertions , boolean showInsertions , Single < char [ ] > referenceSequence , Alignment alignment ) throws IOException { int length = Basic . parseInt ( grabNext ( text , "Length =" , "Length=" ) ) ; if ( length == 0 ) length = 10000 ; if ( referenceSequence . get ( ) == null ) referenceSequence . set ( new char [ length ] ) ; int startQuery = Basic . parseInt ( grabNext ( text , "Query:" , "Query" ) ) ; int endQuery = Basic . parseInt ( grabLastInLinePassedScore ( text , "Query" ) ) ; if ( readSequence == null ) throw new IOException ( "Read '" + readName + "': sequence not found" ) ; if ( readSequence . length ( ) < Math . max ( startQuery , endQuery ) ) { throw new IOException ( "Read '" + readName + "': read length too short: " + readSequence . length ( ) + " < " + Math . max ( startQuery , endQuery ) ) ; } int startSubject = Basic . parseInt ( grabNext ( text , "Sbjct:" , "Sbjct" ) ) ; int endSubject = Basic . parseInt ( grabLastInLinePassedScore ( text , "Sbjct" ) ) ; String queryString = grabQueryString ( text ) ; String subjectString = grabSubjectString ( text ) ; int p = startSubject ; for ( int i = 0 ; i < subjectString . length ( ) ; i ++ ) { if ( subjectString . charAt ( i ) != '-' ) { referenceSequence . get ( ) [ p - 1 ] = subjectString . charAt ( i ) ; p ++ ; } } int alignPos = ( startSubject - 1 ) ; Pair < Integer , String > insertion = null ; final StringWriter w = new StringWriter ( ) ; for ( int mPos = 0 ; mPos < queryString . length ( ) ; mPos ++ ) { char ch = queryString . charAt ( mPos ) ; if ( ch == '-' ) { if ( insertion != null ) { insertion = null ; } w . write ( "-" ) ; alignPos += 1 ; } else if ( subjectString . charAt ( mPos ) == '-' ) { if ( showInsertions ) { if ( insertion == null ) { insertion = new Pair < > ( alignPos - 1 , queryString . substring ( mPos , mPos + 1 ) ) ; insertions . add ( insertion ) ; } else { insertion . setSecond ( insertion . getSecond ( ) + readSequence . substring ( mPos , mPos + 1 ) ) ; } } alignPos += 1 ; } else { if ( insertion != null ) { insertion = null ; } w . write ( ch ) ; alignPos += 1 ; } } String block = w . toString ( ) ; int leadingGaps = startSubject - 1 ; int trailingGaps = length - endSubject ; String unalignedPrefix = readSequence . substring ( 0 , startQuery ) ; String unalignedSuffix = readSequence . substring ( endQuery , readSequence . length ( ) ) ; alignment . addSequence ( readName , text , null , unalignedPrefix , leadingGaps , block , trailingGaps , unalignedSuffix ) ; }

calcular la secuencia de lectura alineada


@ Override public MeasureColumnDataChunk [ ] readMeasureChunks  ( FileHolder fileReader , int ... blockIndexes ) { MeasureColumnDataChunk [ ] datChunk = new MeasureColumnDataChunk [ values . length ] ; for ( int i = 0 ; i < blockIndexes . length ; i ++ ) { datChunk [ blockIndexes [ i ] ] = readMeasureChunk ( fileReader , blockIndexes [ i ] ) ; } return datChunk ; }

Método para leer los datos de bloques según los índices de bloques.


protected void internalTransform  ( Body b , String phaseName , Map < String , String > options ) { boolean eliminateOnlyStackLocals = PhaseOptions . getBoolean ( options , "only-stack-locals" ) ; if ( Options . v ( ) . verbose ( ) ) { G . v ( ) . out . println ( "[" + b . getMethod ( ) . getName ( ) + "] Eliminating dead code..." ) ; } if ( Options . v ( ) . time ( ) ) { Timers . v ( ) . deadCodeTimer . start ( ) ; } Chain < Unit > units = b . getUnits ( ) ; Deque < Unit > q = new ArrayDeque < Unit > ( units . size ( ) ) ; boolean isStatic = b . getMethod ( ) . isStatic ( ) ; boolean allEssential = true ; boolean checkInvoke = false ; Local thisLocal = null ; for ( Iterator < Unit > it = units . iterator ( ) ; it . hasNext ( ) ; ) { Unit s = it . next ( ) ; boolean isEssential = true ; if ( s instanceof NopStmt ) { boolean removeNop = it . hasNext ( ) ; if ( ! removeNop ) { removeNop = true ; for ( Trap t : b . getTraps ( ) ) { if ( t . getEndUnit ( ) == s ) { removeNop = false ; break ; } } } if ( removeNop ) { it . remove ( ) ; continue ; } } else if ( s instanceof AssignStmt ) { AssignStmt as = ( AssignStmt ) s ; Value lhs = as . getLeftOp ( ) ; Value rhs = as . getRightOp ( ) ; if ( lhs == rhs && lhs instanceof Local ) { it . remove ( ) ; continue ; } if ( lhs instanceof Local && ( ! eliminateOnlyStackLocals || ( ( Local ) lhs ) . getName ( ) . startsWith ( "$" ) || lhs . getType ( ) instanceof NullType ) ) { isEssential = false ; if ( ! checkInvoke ) { checkInvoke |= as . containsInvokeExpr ( ) ; } if ( rhs instanceof CastExpr ) { CastExpr ce = ( CastExpr ) rhs ; Type t = ce . getCastType ( ) ; Value v = ce . getOp ( ) ; isEssential = ! ( t instanceof RefType && v == NullConstant . v ( ) ) ; } else if ( rhs instanceof InvokeExpr || rhs instanceof ArrayRef || rhs instanceof NewExpr || rhs instanceof NewArrayExpr || rhs instanceof NewMultiArrayExpr ) { isEssential = true ; } else if ( rhs instanceof FieldRef ) { isEssential = true ; if ( rhs instanceof InstanceFieldRef ) { InstanceFieldRef ifr = ( InstanceFieldRef ) rhs ; if ( ! isStatic && thisLocal == null ) { thisLocal = b . getThisLocal ( ) ; } isEssential = ( isStatic || thisLocal != ifr . getBase ( ) ) ; } } else if ( rhs instanceof DivExpr || rhs instanceof RemExpr ) { BinopExpr expr = ( BinopExpr ) rhs ; Type t1 = expr . getOp1 ( ) . getType ( ) ; Type t2 = expr . getOp2 ( ) . getType ( ) ; isEssential = IntType . v ( ) . equals ( t1 ) || LongType . v ( ) . equals ( t1 ) || IntType . v ( ) . equals ( t2 ) || LongType . v ( ) . equals ( t2 ) ; if ( isEssential && IntType . v ( ) . equals ( t2 ) ) { Value v = expr . getOp2 ( ) ; if ( v instanceof IntConstant ) { IntConstant i = ( IntConstant ) v ; isEssential = ( i . value == 0 ) ; } } if ( isEssential && LongType . v ( ) . equals ( t2 ) ) { Value v = expr . getOp2 ( ) ; if ( v instanceof LongConstant ) { LongConstant l = ( LongConstant ) v ; isEssential = ( l . value == 0 ) ; } } } } } if ( isEssential ) { q . addFirst ( s ) ; } allEssential &= isEssential ; } if ( checkInvoke || ! allEssential ) { final LocalDefs localDefs = LocalDefs . Factory . newLocalDefs ( b ) ; if ( ! allEssential ) { Set < Unit > essential = new HashSet < Unit > ( b . getUnits ( ) . size ( ) ) ; while ( ! q . isEmpty ( ) ) { Unit s = q . removeFirst ( ) ; if ( essential . add ( s ) ) { for ( ValueBox box : s . getUseBoxes ( ) ) { Value v = box . getValue ( ) ; if ( v instanceof Local ) { Local l = ( Local ) v ; List < Unit > defs = localDefs . getDefsOfAt ( l , s ) ; if ( defs != null ) q . addAll ( defs ) ; } } } } units . retainAll ( essential ) ; } if ( checkInvoke ) { final LocalUses localUses = LocalUses . Factory . newLocalUses ( b , localDefs ) ; List < AssignStmt > postProcess = new ArrayList < AssignStmt > ( ) ; for ( Unit u : units ) { if ( u instanceof AssignStmt ) { AssignStmt s = ( AssignStmt ) u ; if ( s . containsInvokeExpr ( ) ) { boolean deadAssignment = true ; for ( UnitValueBoxPair pair : localUses . getUsesOf ( s ) ) { if ( units . contains ( pair . unit ) ) { deadAssignment = false ; break ; } } if ( deadAssignment ) { postProcess . add ( s ) ; } } } } for ( AssignStmt s : postProcess ) { Stmt newInvoke = Jimple . v ( ) . newInvokeStmt ( s . getInvokeExpr ( ) ) ; newInvoke . addAllTagsOf ( s ) ; units . swapWith ( s , newInvoke ) ; if ( Scene . v ( ) . hasCallGraph ( ) ) Scene . v ( ) . getCallGraph ( ) . swapEdgesOutOf ( s , newInvoke ) ; } } } if ( Options . v ( ) . time ( ) ) { Timers . v ( ) . deadCodeTimer . end ( ) ; } }

Elimina el código muerto de una manera lineal.La complejidad es lineal con respecto a las afirmaciones.No funciona en el código de GRIMP debido a la verificación en el lado derecho para los efectos secundarios.


public GroupsIsMemberQueryWithUserIdsExtended isMemberExtended  ( String groupId , List < Integer > userIds ) { return new GroupsIsMemberQueryWithUserIdsExtended ( getClient ( ) , groupId , userIds ) ; }

Devuelve información que especifica si un usuario es miembro de una comunidad.


public PointValuePair ( final double [ ] point , final double value , final boolean copyArray ) { super ( copyArray ? ( ( point == null ) ? null : point . clone ( ) ) : point , value ) ; }

Construye un par de valores de función de puntos / objetivos.


protected void parseAndAdd  ( List list , String line ) { try { StringTokenizer tokenizer = new StringTokenizer ( line , " " ) ; String feature = tokenizer . nextToken ( ) ; float start = Float . parseFloat ( tokenizer . nextToken ( ) ) ; float mid = Float . parseFloat ( tokenizer . nextToken ( ) ) ; float end = Float . parseFloat ( tokenizer . nextToken ( ) ) ; String type = tokenizer . nextToken ( ) ; if ( type . equals ( "null" ) ) { type = null ; } list . add ( new F0ModelTerm ( feature , start , mid , end , type ) ) ; } catch ( NoSuchElementException nsee ) { throw new Error ( "ContourGenerator: Error while parsing F0ModelTerm " + nsee . getMessage ( ) ) ; } catch ( NumberFormatException nfe ) { throw new Error ( "ContourGenerator: Bad float format " + nfe . getMessage ( ) ) ; } }


public void commitBuffer  ( int length ) throws IOException { updateSequence ( ) ; mPackets [ mBufferIn ] . setLength ( length ) ; mAverageBitrate . push ( length ) ; if ( ++ mBufferIn >= mBufferCount ) mBufferIn = 0 ; mBufferCommitted . release ( ) ; if ( mThread == null ) { mThread = new Thread ( this ) ; mThread . start ( ) ; } }

Envía el paquete RTP a través de la red.


@ Override public int hashCode  ( ) { return JsonNull . class . hashCode ( ) ; }

Todas las instancias de JSONNULL tienen el mismo código de hash, ya que son indistinguibles


protected void pluginInitialize  ( ) { }

Llamado después de la construcción de plugin y los campos se han inicializado.


private static long sum  ( long n ) { return n * ( n + 1 ) / 2l ; }

Devuelve la suma del número de 1 .. n de acuerdo con la fórmula de suma de Gauss: \ [\ Sum \ Limits_ {k = 1} ^ n k = \ frac {n (n + 1)} {2} \]


public void principalComponentAnalysis  ( Vector < Double > data , int rows , int cols , boolean eigen , boolean scale ) { if ( data == null ) throw new NullPointerException ( "Null data" ) ; if ( rows < 0 || cols < 0 ) throw new IllegalArgumentException ( "Number of rows and cols must be greater than 0" ) ; Matrix dataX = new Matrix ( rows , cols ) ; int n = 0 ; for ( int i = 0 ; i < rows ; i ++ ) { for ( int j = 0 ; j < cols ; j ++ ) dataX . set ( i , j , data . elementAt ( n ++ ) ) ; } boolean debug = false ; if ( eigen ) eigenPCA ( dataX , scale , debug ) ; else svdPCA ( dataX , scale , debug ) ; }

Realizar análisis de componentes principales


public PhotosGetByIdQuery ( VkApiClient client , UserActor actor , List < String > photos ) { super ( client , "photos.getById" , Utils . buildParametrizedType ( List . class , Photo . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; photos ( photos ) ; }

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


public static Map < String , List < List < Distributable > > > nodeBlockTaskMapping  ( List < Distributable > blockInfos , int noOfNodesInput , int parallelism , List < String > activeNode ) { Map < String , List < Distributable > > mapOfNodes = CarbonLoaderUtil . nodeBlockMapping ( blockInfos , noOfNodesInput , activeNode ) ; int taskPerNode = parallelism / mapOfNodes . size ( ) ; int noOfTasksPerNode = taskPerNode == 0 ? 1 : taskPerNode ; return assignBlocksToTasksPerNode ( mapOfNodes , noOfTasksPerNode ) ; }

Este método dividirá los bloques entre las tareas de los nodos según la localidad de datos.


public boolean isAfter  ( Period period ) { if ( period == null || period . getEndDate ( ) == null ) { return false ; } return getEndDate ( ) . after ( period . getEndDate ( ) ) ; }

Indica si este período está después del período dado.Basa la comparación en las fechas finales de los períodos.Si el período dado es nulo, se devuelve FALSO.


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

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


public static RecyclerViewHeader fromXml  ( Context context , @ LayoutRes int layoutRes ) { RecyclerViewHeader header = new RecyclerViewHeader ( context ) ; View v = View . inflate ( context , layoutRes , header ) ; header . setHeaderView ( v ) ; return header ; }

Infla el diseño de <code> XML </ CODE> y la encapsula con <Code> RecyclerviewHeader </ Code>.