public RawFileAudioPlayer ( ) throws IOException  { this ( Utilities . getProperty ( "com.sun.speech.freetts.AudioPlayer.baseName" , "freetts" ) + ".raw" ) ; }

Crea un reproductor de audio predeterminado para un audiofileFormat de tipo Wave.Lee la propiedad "com.sun.speech.freetts.audioplayer.basename" para el nombre de archivo base para usar, y producirá archivos del formulario & lt; basename> .traw.El valor predeterminado para el nombre base es "Freetts".


private void addAnnotation  ( TextContainer textContainer , Issue issue ) { TMTextUnitVariantCommentAnnotation tmTextUnitVariantCommentAnnotation = new TMTextUnitVariantCommentAnnotation ( ) ; tmTextUnitVariantCommentAnnotation . setCommentType ( TMTextUnitVariantComment . Type . QUALITY_CHECK ) ; tmTextUnitVariantCommentAnnotation . setMessage ( issue . getMessage ( ) ) ; tmTextUnitVariantCommentAnnotation . setSeverity ( TMTextUnitVariantComment . Severity . WARNING ) ; new TMTextUnitVariantCommentAnnotations ( textContainer ) . addAnnotation ( tmTextUnitVariantCommentAnnotation ) ; }

Agrega una anotación de problemas en el contenedor de texto dado


public static void moveToDirectory  ( File src , File destDir , boolean createDestDir ) throws IOException { if ( src == null ) { throw new NullPointerException ( "Source must not be null" ) ; } if ( destDir == null ) { throw new NullPointerException ( "Destination must not be null" ) ; } if ( ! src . exists ( ) ) { throw new FileNotFoundException ( "Source '" + src + "' does not exist" ) ; } if ( src . isDirectory ( ) ) { moveDirectoryToDirectory ( src , destDir , createDestDir ) ; } else { moveFileToDirectory ( src , destDir , createDestDir ) ; } }

Mueve un archivo o directorio al directorio de destino.<P /> Cuando el destino está en otro sistema de archivos, haga una "Copia y eliminación".


public LeadsGetUsersQuery status  ( LeadsGetUsersStatus value ) { return unsafeParam ( "status" , value ) ; }


public final int computeHashCode  ( short val ) { return HashFunctions . hash ( val ) ; }

Implementación predeterminada de TshorthashingStrategy: los delegados hincharon a los hosthuncions.Hash (corto).


public boolean isCritical  ( ) { return true ; }

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


public void start  ( float valueFactor , int duration , PathPointsHolder pathPointsHolder ) { mValueFactor = valueFactor ; mDuration = duration ; mFinished = false ; mPathPointsHolder = pathPointsHolder ; mStartTime = AnimationUtils . currentAnimationTimeMillis ( ) ; }


void receiveInsertedText  ( CharacterDataImpl node , int index , int len ) { if ( node == null ) return ; if ( fInsertNode == node ) return ; if ( node == fStartContainer ) { if ( index < fStartOffset ) { fStartOffset = fStartOffset + len ; } } if ( node == fEndContainer ) { if ( index < fEndOffset ) { fEndOffset = fEndOffset + len ; } } }

Esta función se llama desde DOM.El texto ya se ha insertado.Corrección de cualquier compensación.


public void draw  ( Canvas c , RectF bounds ) { final RectF arcBounds = mTempBounds ; arcBounds . set ( bounds ) ; final float startAngle = ( mStartTrim + mRotation ) * 360 ; final float endAngle = ( mEndTrim + mRotation ) * 360 ; float sweepAngle = endAngle - startAngle ; mPaint . setColor ( mColor ) ; c . drawArc ( arcBounds , startAngle , sweepAngle , false , mPaint ) ; drawTriangle ( c , startAngle , sweepAngle , bounds ) ; }


@ Override public void onCreate  ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setRetainInstance ( true ) ; }

Solo se llama una vez, ya que la instancia se conserva en los cambios de configuración.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Spin_A_TO_B  ( String skilltarget , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200897 , skilltarget , skillcaster , skillname ) ; }

[% SkillTarget] está girando porque [% Skillcaster] usó [% de habilidad].


protected void writePixels  ( ) throws IOException  { LZWEncoder encoder = new LZWEncoder ( width , height , indexedPixels , colorDepth ) ; encoder . encode ( out ) ; }


public void handleStep  ( final FieldODEStateInterpolator < T > interpolator , final boolean isLast ) throws MathIllegalStateException { if ( last == null ) { first = interpolator . getPreviousState ( ) ; last = first ; forward = interpolator . isForward ( ) ; if ( ! forward ) { h = - h ; } } T nextTime = ( mode == StepNormalizerMode . INCREMENT ) ? last . getTime ( ) . add ( h ) : last . getTime ( ) . getField ( ) . getZero ( ) . add ( ( FastMath . floor ( last . getTime ( ) . getReal ( ) / h ) + 1 ) * h ) ; if ( mode == StepNormalizerMode . MULTIPLES && Precision . equals ( nextTime . getReal ( ) , last . getTime ( ) . getReal ( ) , 1 ) ) { nextTime = nextTime . add ( h ) ; } boolean nextInStep = isNextInStep ( nextTime , interpolator ) ; while ( nextInStep ) { doNormalizedStep ( false ) ; last = interpolator . getInterpolatedState ( nextTime ) ; nextTime = nextTime . add ( h ) ; nextInStep = isNextInStep ( nextTime , interpolator ) ; } if ( isLast ) { final boolean addLast = bounds . lastIncluded ( ) && last . getTime ( ) . getReal ( ) != interpolator . getCurrentState ( ) . getTime ( ) . getReal ( ) ; doNormalizedStep ( ! addLast ) ; if ( addLast ) { last = interpolator . getCurrentState ( ) ; doNormalizedStep ( true ) ; } } }


public JSONStringer ( ) { super ( new StringWriter ( ) ) ; }

Haz un jaststringer fresco.Se puede utilizar para construir un texto JSON.


protected T deserialize  ( HttpServletRequest request ) throws IOException { String type = request . getContentType ( ) ; type = ! StringUtils . isEmpty ( type ) ? type : MediaType . APPLICATION_JSON_VALUE ; if ( request . getPathInfo ( ) . endsWith ( ".json" ) ) { type = MediaType . APPLICATION_JSON_VALUE ; } else if ( request . getPathInfo ( ) . endsWith ( ".xml" ) ) { type = MediaType . APPLICATION_XML_VALUE ; } if ( isCompatibleWith ( type , MediaType . APPLICATION_JSON ) ) { return renderService . fromJson ( request . getInputStream ( ) , getEntityClass ( ) ) ; } else if ( isCompatibleWith ( type , MediaType . APPLICATION_XML ) ) { return renderService . fromXml ( request . getInputStream ( ) , getEntityClass ( ) ) ; } return null ; }

Deserializa una carga útil de la solicitud, maneja JSON / XML Payloads


public static Long daysBetween  ( String start , String end ) { LocalDate st = LocalDate . parse ( start , DATE_FORMAT ) ; LocalDate en = LocalDate . parse ( end , DATE_FORMAT ) ; return ChronoUnit . DAYS . between ( st , en ) ; }

Función que devolverá el número de días entre las dos fechas dadas.


static ClassLoader findClassLoader  ( ) throws ConfigurationError  { ClassLoader context = SecuritySupport . getContextClassLoader ( ) ; ClassLoader system = SecuritySupport . getSystemClassLoader ( ) ; ClassLoader chain = system ; while ( true ) { if ( context == chain ) { ClassLoader current = ObjectFactory . class . getClassLoader ( ) ; chain = system ; while ( true ) { if ( current == chain ) { return system ; } if ( chain == null ) { break ; } chain = SecuritySupport . getParentClassLoader ( chain ) ; } return current ; } if ( chain == null ) { break ; } chain = SecuritySupport . getParentClassLoader ( chain ) ; } return context ; }

Averigua qué cargador de clases utilizar.Para JDK 1.2 y posteriormente, use el Classloader contextual.


@ Override public void startConditional  ( short type , Augmentations augs ) throws XNIException { }


public ChangeSet increment  ( String path , Number delta ) { return add ( new IncrementSpaceEntryMutator ( path , delta ) ) ; }

Incrementa una propiedad numérica con el delta dado.


public void add  ( int [ ] vals ) { add ( vals , 0 , vals . length ) ; }

Agrega los valores en la matriz <tt> vals </ tt> al final de la lista, en orden.


public boolean matchKeyword  ( String keyword ) { return tok . ttype == StreamTokenizer . TT_WORD && tok . sval . equals ( keyword ) && keywords . contains ( tok . sval ) ; }

Devuelve VERDADERO si el token actual es la palabra clave especificada.


private void computeTabOffsetHelper  ( RectF stackRect ) { final boolean portrait = mCurrentMode == Orientation . PORTRAIT ; final float parentWidth = stackRect . width ( ) ; final float parentHeight = stackRect . height ( ) ; final float overscrollPercent = computeOverscrollPercent ( ) ; final float scrollOffset = MathUtils . clamp ( mScrollOffset , getMinScroll ( false ) , getMaxScroll ( false ) ) ; final float stackScale = getStackScale ( stackRect ) ; int stackedCount = 0 ; float minStackedPosition = 0.0f ; for ( int i = 0 ; i < mStackTabs . length ; ++ i ) { assert mStackTabs [ i ] != null ; StackTab stackTab = mStackTabs [ i ] ; LayoutTab layoutTab = stackTab . getLayoutTab ( ) ; final float stackScrollOffset = stackTab . isDying ( ) ? mScrollOffsetForDyingTabs : scrollOffset ; float screenScrollOffset = approxScreen ( stackTab , stackScrollOffset ) ; screenScrollOffset = Math . max ( minStackedPosition , screenScrollOffset ) ; if ( stackedCount < MAX_NUMBER_OF_STACKED_TABS_TOP ) { final float tiltXcos = ( float ) Math . cos ( Math . toRadians ( layoutTab . getTiltX ( ) ) ) ; final float tiltYcos = ( float ) Math . cos ( Math . toRadians ( layoutTab . getTiltY ( ) ) ) ; float collapse = Math . min ( Math . abs ( tiltXcos ) , Math . abs ( tiltYcos ) ) ; collapse *= layoutTab . getAlpha ( ) ; minStackedPosition += StackTab . sStackedTabVisibleSize * collapse ; } stackedCount += stackTab . isDying ( ) ? 0 : 1 ; if ( overscrollPercent < 0 ) { screenScrollOffset += ( overscrollPercent / OVERSCROLL_TOP_SLIDE_PCTG ) * screenScrollOffset ; screenScrollOffset = Math . max ( 0 , screenScrollOffset ) ; } float xIn = ( parentWidth - layoutTab . getScaledContentWidth ( ) ) / 2.0f ; float yIn = ( parentHeight - layoutTab . getScaledContentHeight ( ) ) / 2.0f ; final float horizontalPadding = ( parentWidth - layoutTab . getOriginalContentWidth ( ) * StackAnimation . SCALE_AMOUNT * stackScale ) / 2.0f ; final float verticalPadding = ( parentHeight - layoutTab . getOriginalContentHeight ( ) * StackAnimation . SCALE_AMOUNT * stackScale ) / 2.0f ; if ( portrait ) { yIn += STACK_PORTRAIT_Y_OFFSET_PROPORTION * verticalPadding ; yIn += screenScrollOffset ; } else { if ( LocalizationUtils . isLayoutRtl ( ) ) { xIn -= STACK_LANDSCAPE_START_OFFSET_PROPORTION * horizontalPadding ; xIn -= screenScrollOffset ; } else { xIn += STACK_LANDSCAPE_START_OFFSET_PROPORTION * horizontalPadding ; xIn += screenScrollOffset ; } yIn += STACK_LANDSCAPE_Y_OFFSET_PROPORTION * verticalPadding ; } layoutTab . setX ( xIn ) ; layoutTab . setY ( yIn ) ; } stackedCount = 0 ; float maxStackedPosition = portrait ? mLayout . getHeightMinusTopControls ( ) : mLayout . getWidth ( ) ; for ( int i = mStackTabs . length - 1 ; i >= 0 ; i -- ) { assert mStackTabs [ i ] != null ; StackTab stackTab = mStackTabs [ i ] ; LayoutTab layoutTab = stackTab . getLayoutTab ( ) ; if ( stackTab . isDying ( ) ) continue ; float pos ; if ( portrait ) { pos = layoutTab . getY ( ) ; layoutTab . setY ( Math . min ( pos , maxStackedPosition ) ) ; } else if ( LocalizationUtils . isLayoutRtl ( ) ) { float posOffset = mLayout . getWidth ( ) - layoutTab . getOriginalContentWidth ( ) * StackAnimation . SCALE_AMOUNT * stackScale ; pos = - layoutTab . getX ( ) + posOffset ; layoutTab . setX ( - Math . min ( pos , maxStackedPosition ) + posOffset ) ; } else { pos = layoutTab . getX ( ) ; layoutTab . setX ( Math . min ( pos , maxStackedPosition ) ) ; } if ( pos >= maxStackedPosition && stackedCount < MAX_NUMBER_OF_STACKED_TABS_BOTTOM ) { maxStackedPosition -= StackTab . sStackedTabVisibleSize ; stackedCount ++ ; } } final float discardRange = getDiscardRange ( ) ; for ( int i = 0 ; i < mStackTabs . length ; ++ i ) { assert mStackTabs [ i ] != null ; StackTab stackTab = mStackTabs [ i ] ; LayoutTab layoutTab = stackTab . getLayoutTab ( ) ; final float xIn = layoutTab . getX ( ) + stackTab . getXInStackOffset ( ) ; final float yIn = layoutTab . getY ( ) + stackTab . getYInStackOffset ( ) ; final float xOut = stackTab . getXOutOfStack ( ) ; final float yOut = stackTab . getYOutOfStack ( ) ; float x = MathUtils . interpolate ( xOut , xIn , stackTab . getXInStackInfluence ( ) ) ; float y = MathUtils . interpolate ( yOut , yIn , stackTab . getYInStackInfluence ( ) ) ; if ( stackTab . getDiscardAmount ( ) != 0 ) { float discard = stackTab . getDiscardAmount ( ) ; boolean fromClick = stackTab . getDiscardFromClick ( ) ; float scale = computeDiscardScale ( discard , discardRange , fromClick ) ; float deltaX = stackTab . getDiscardOriginX ( ) - stackTab . getLayoutTab ( ) . getOriginalContentWidth ( ) / 2.f ; float deltaY = stackTab . getDiscardOriginY ( ) - stackTab . getLayoutTab ( ) . getOriginalContentHeight ( ) / 2.f ; float discardOffset = fromClick ? 0.f : discard ; if ( portrait ) { x += discardOffset + deltaX * ( 1.f - scale ) ; y += deltaY * ( 1.f - scale ) ; } else { x += deltaX * ( 1.f - scale ) ; y += discardOffset + deltaY * ( 1.f - scale ) ; } } layoutTab . setX ( stackRect . left + x ) ; layoutTab . setY ( stackRect . top + y ) ; } }

CUPTLETABPOSITION PASS 3: Calcule la posición de las pestañas.Ajuste para apilar superior e inferior.


public Bundler putCharArray  ( String key , char [ ] value ) { bundle . putCharArray ( key , value ) ; return this ; }

Inserta un valor de matriz de caracteres en el mapeo de este paquete, reemplazando cualquier valor existente para la clave dada.Cualquier clave o valor puede ser nulo.


@ Override public boolean onTouchEvent  ( MotionEvent event ) { switch ( event . getAction ( ) ) { case MotionEvent . ACTION_DOWN : pressPaint . setAlpha ( pressAlpha ) ; invalidate ( ) ; break ; case MotionEvent . ACTION_UP : pressPaint . setAlpha ( 0 ) ; invalidate ( ) ; break ; case MotionEvent . ACTION_MOVE : break ; default : pressPaint . setAlpha ( 0 ) ; invalidate ( ) ; break ; } return super . onTouchEvent ( event ) ; }


public static void recordPageStart  ( Context context ) { TcStatSdk . getInstance ( context ) . recordPageStart ( context ) ; }


public static boolean isNonpositiveInteger  ( String s ) { if ( isEmpty ( s ) ) return defaultEmptyOK ; try { int temp = Integer . parseInt ( s ) ; if ( temp <= 0 ) return true ; return false ; } catch ( Exception e ) { return false ; } }

Devuelve VERDADERO si la cadena S es un entero <= 0.


private Map < DownloadInfo , Pair < Long , Boolean > > updateAllNotifications  ( ) { assert ! ThreadUtils . runningOnUiThread ( ) ; Map < DownloadInfo , Pair < Long , Boolean > > completionMap = new HashMap < DownloadInfo , Pair < Long , Boolean > > ( ) ; for ( DownloadProgress progress : mDownloadProgressMap . values ( ) ) { if ( progress != null ) { switch ( progress . mDownloadStatus ) { case COMPLETE : removeProgressNotificationForDownload ( progress . mDownloadInfo . getDownloadId ( ) ) ; long downloadId = addCompletedDownload ( progress . mDownloadInfo ) ; if ( downloadId == INVALID_DOWNLOAD_ID ) { completionMap . put ( progress . mDownloadInfo , Pair . create ( INVALID_DOWNLOAD_ID , false ) ) ; mDownloadNotifier . notifyDownloadFailed ( progress . mDownloadInfo ) ; } else { boolean canResolve = canResolveDownloadItem ( mContext , downloadId ) ; completionMap . put ( progress . mDownloadInfo , Pair . create ( downloadId , canResolve ) ) ; mDownloadNotifier . notifyDownloadSuccessful ( progress . mDownloadInfo , getLaunchIntentFromDownloadId ( mContext , downloadId ) ) ; broadcastDownloadSuccessful ( progress . mDownloadInfo ) ; } break ; case FAILED : removeProgressNotificationForDownload ( progress . mDownloadInfo . getDownloadId ( ) ) ; mDownloadNotifier . notifyDownloadFailed ( progress . mDownloadInfo ) ; completionMap . put ( progress . mDownloadInfo , Pair . create ( INVALID_DOWNLOAD_ID , false ) ) ; Log . w ( TAG , "Download failed: " + progress . mDownloadInfo . getFilePath ( ) ) ; break ; case IN_PROGRESS : mDownloadNotifier . notifyDownloadProgress ( progress . mDownloadInfo , progress . mStartTimeInMillis ) ; } } } return completionMap ; }

Actualiza notificaciones para todas las descargas actuales.No debe llamarse desde el hilo de UI.


public static PDF417DetectorResult detect  ( BinaryBitmap image , Map < DecodeHintType , ? > hints , boolean multiple ) throws NotFoundException { BitMatrix bitMatrix = image . getBlackMatrix ( ) ; List < ResultPoint [ ] > barcodeCoordinates = detect ( multiple , bitMatrix ) ; if ( barcodeCoordinates . isEmpty ( ) ) { bitMatrix = bitMatrix . clone ( ) ; bitMatrix . rotate180 ( ) ; barcodeCoordinates = detect ( multiple , bitMatrix ) ; } return new PDF417DetectorResult ( bitMatrix , barcodeCoordinates ) ; }

Detecta un código PDF417 en una imagen.Solo verifica las rotaciones de 0 y 180 grados.


@ RequestMapping ( value = "/{namespace}/{key}" , method = RequestMethod . DELETE , produces = "application/json" ) public void deleteUserKeyJsonValue  ( @ PathVariable String namespace , @ PathVariable String key , HttpServletResponse response ) throws WebMessageException { UserKeyJsonValue userKeyJsonValue = userKeyJsonValueService . getUserKeyJsonValue ( currentUserService . getCurrentUser ( ) , namespace , key ) ; if ( userKeyJsonValue == null ) { throw new WebMessageException ( WebMessageUtils . notFound ( "The key '" + key + "' was not found in the namespace '" + namespace + "'." ) ) ; } userKeyJsonValueService . deleteUserKeyJsonValue ( userKeyJsonValue ) ; messageService . sendJson ( WebMessageUtils . ok ( "Key '" + key + "' deleted from the namespace '" + namespace + "'." ) , response ) ; }


public static void embedTree  ( PhyloTreeView treeView ) { treeView . removeAllInternalPoints ( ) ; Node root = treeView . getPhyloTree ( ) . getRoot ( ) ; if ( root != null ) computeEmbeddingRec ( treeView , root , null , 0 , 0 , true ) ; treeView . resetViews ( ) ; for ( Node v = treeView . getPhyloTree ( ) . getFirstNode ( ) ; v != null ; v = v . getNext ( ) ) { treeView . setLabel ( v , treeView . getPhyloTree ( ) . getLabel ( v ) ) ; treeView . setLabelLayout ( v , NodeView . EAST ) ; } treeView . trans . setCoordinateRect ( treeView . getBBox ( ) ) ; treeView . fitGraphToWindow ( ) ; }


public boolean isCritical  ( ) { return true ; }


public XPathMatcher createMatcher  ( ValueStore store ) { return new Field . Matcher ( fXPath , store ) ; }


public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set select=" ) ; TimeSeriesViewer viewer = ( TimeSeriesViewer ) getViewer ( ) ; DataJTable dataJTable = viewer . getDataJTable ( ) ; if ( np . peekMatchIgnoreCase ( "all" ) ) { np . matchIgnoreCase ( "all" ) ; dataJTable . selectAll ( ) ; } else if ( np . peekMatchIgnoreCase ( "none" ) ) { np . matchIgnoreCase ( "none" ) ; dataJTable . clearSelection ( ) ; } else if ( np . peekMatchIgnoreCase ( "name" ) ) { np . matchIgnoreCase ( "name=" ) ; String name = np . getWordRespectCase ( ) ; dataJTable . select ( name , true ) ; } np . matchIgnoreCase ( ";" ) ; }


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

Número de fotos para volver.El valor máximo es '100'.


public static boolean isConnected  ( Context context ) { NetworkInfo info = Connectivity . getNetworkInfo ( context ) ; return ( info != null && info . isConnected ( ) ) ; }


public boolean hasSegmentParameter  ( SegmentContextParameters segmParameter , ContextInfo contextInfo ) { return hasTemplateParameter ( new TemplateParameter ( TemplateParameterContext . SEGMENT , segmParameter . getName ( ) ) , contextInfo ) ; }

Si un parámetro segmento dado se define en el contexto.


public static boolean isXML11ValidNCName  ( String ncName ) { final int length = ncName . length ( ) ; if ( length == 0 ) { return false ; } int i = 1 ; char ch = ncName . charAt ( 0 ) ; if ( ! isXML11NCNameStart ( ch ) ) { if ( length > 1 && isXML11NameHighSurrogate ( ch ) ) { char ch2 = ncName . charAt ( 1 ) ; if ( ! XMLChar . isLowSurrogate ( ch2 ) || ! isXML11NCNameStart ( XMLChar . supplemental ( ch , ch2 ) ) ) { return false ; } i = 2 ; } else { return false ; } } while ( i < length ) { ch = ncName . charAt ( i ) ; if ( ! isXML11NCName ( ch ) ) { if ( ++ i < length && isXML11NameHighSurrogate ( ch ) ) { char ch2 = ncName . charAt ( i ) ; if ( ! XMLChar . isLowSurrogate ( ch2 ) || ! isXML11NCName ( XMLChar . supplemental ( ch , ch2 ) ) ) { return false ; } } else { return false ; } } ++ i ; } return true ; }

Verifique si una cadena es un nombre NCNAME válido de acuerdo con [4] de los espacios de nombres XML 1.1 Recomendación


public boolean exists  ( String key ) { return exists ( key , false ) ; }

Compruebe la existencia del elemento de la sección de configuración


public boolean isPageOnTheList  ( String title ) { boolean isOnTheList = getRowByTitle ( title ) != null ; if ( ! isOnTheList ) { LOG . debug ( "There were no page with title {} on the list" , title ) ; } return isOnTheList ; }

Comprueba si una página con título proporcionado está presente en la cuadrícula.


public String makeQueryString  ( HttpServletRequest request , ConfigXMLReader . RequestResponse requestResponse ) { if ( requestResponse == null || ( requestResponse . redirectParameterMap . size ( ) == 0 && requestResponse . redirectParameterValueMap . size ( ) == 0 ) ) { Map < String , Object > urlParams = UtilHttp . getUrlOnlyParameterMap ( request ) ; String queryString = UtilHttp . urlEncodeArgs ( urlParams , false ) ; if ( UtilValidate . isEmpty ( queryString ) ) { return queryString ; } return "?" + queryString ; } else { StringBuilder queryString = new StringBuilder ( ) ; queryString . append ( "?" ) ; for ( Map . Entry < String , String > entry : requestResponse . redirectParameterMap . entrySet ( ) ) { String name = entry . getKey ( ) ; String from = entry . getValue ( ) ; Object value = request . getAttribute ( from ) ; if ( value == null ) { value = request . getParameter ( from ) ; } addNameValuePairToQueryString ( queryString , name , ( String ) value ) ; } for ( Map . Entry < String , String > entry : requestResponse . redirectParameterValueMap . entrySet ( ) ) { String name = entry . getKey ( ) ; String value = entry . getValue ( ) ; addNameValuePairToQueryString ( queryString , name , value ) ; } return queryString . toString ( ) ; } }

Crea una cadena de consulta basada en los parámetros de redirección para una respuesta de solicitud, si se especifica, o para todos los parámetros de solicitud si no se especifican parámetros de redirección.


public Object invoke  ( Object proxy , Method method , Object [ ] args ) throws Throwable { String simpleMethodName = method . getName ( ) ; Class [ ] params = method . getParameterTypes ( ) ; if ( "equals" . equals ( simpleMethodName ) && params . length == 1 && params [ 0 ] . equals ( Object . class ) ) { Object value = args [ 0 ] ; if ( value == null || ! Proxy . isProxyClass ( value . getClass ( ) ) ) { return Boolean . FALSE ; } FastServletProxyInvocationHandler handler = ( FastServletProxyInvocationHandler ) Proxy . getInvocationHandler ( value ) ; return this . url . equals ( handler . getURL ( ) ) ? Boolean . TRUE : Boolean . FALSE ; } if ( "hashCode" . equals ( simpleMethodName ) && params . length == 0 ) { return Integer . valueOf ( this . url . hashCode ( ) ) ; } if ( "toString" . equals ( simpleMethodName ) && params . length == 0 ) { return "[FastServletProxyInvocationHandler " + this . url + "]" ; } return this . invokeRemoteMethod ( proxy , method , args ) ; }


private void internal_updateSymbolIntegerField  ( Map < String , String > options , FieldIdEnum field , String key ) { int value = fieldConfigVisitor . getInteger ( field ) ; Integer defaultValue = ( Integer ) getDefaultFieldValue ( field ) ; if ( defaultValue == null ) { ConsoleManager . getInstance ( ) . error ( this , "Failed to find default for field : " + field ) ; } else if ( value != defaultValue ) { options . put ( key , String . valueOf ( value ) ) ; } }

Campo entero del símbolo interno_update.


public void addNewStyle  ( Style style ) { if ( this . symbolData . getStyledLayer ( ) == null ) { ConsoleManager . getInstance ( ) . error ( this , "styledLayer == null" ) ; } else { if ( this . symbolData . getStyledLayer ( ) instanceof NamedLayerImpl ) { NamedLayerImpl namedLayer = ( NamedLayerImpl ) this . symbolData . getStyledLayer ( ) ; List < Style > styleList = namedLayer . styles ( ) ; styleList . add ( style ) ; } else if ( this . symbolData . getStyledLayer ( ) instanceof UserLayerImpl ) { UserLayerImpl userLayer = ( UserLayerImpl ) this . symbolData . getStyledLayer ( ) ; List < Style > styleList = userLayer . userStyles ( ) ; styleList . add ( style ) ; } } }


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


@ Override public void dataChanged  ( FieldIdEnum changedField ) { updateSymbol ( ) ; }


@ Override public Set < String > vertexMatchPatternLabels  ( ) { return Collections . emptySet ( ) ; }

Obtiene el conjunto de etiquetas requeridas en el momento de hacer coincidir el vértice en un patrón de coincidencia de cypher.Esta implementación no devuelve etiquetas.


public void revertToDefaultValue  ( ) { List < FieldConfigBase > fieldList = fieldConfigManager . getFields ( null ) ; for ( FieldConfigBase field : fieldList ) { if ( field != null ) { field . revertToDefaultValue ( ) ; } } }


public static Map < String , List < Distributable > > nodeBlockMapping  ( List < Distributable > blockInfos , int noOfNodesInput , List < String > activeNodes ) { Map < String , List < Distributable > > nodeBlocksMap = new HashMap < String , List < Distributable > > ( CarbonCommonConstants . DEFAULT_COLLECTION_SIZE ) ; List < NodeBlockRelation > flattenedList = new ArrayList < NodeBlockRelation > ( CarbonCommonConstants . DEFAULT_COLLECTION_SIZE ) ; Set < Distributable > uniqueBlocks = new HashSet < Distributable > ( CarbonCommonConstants . DEFAULT_COLLECTION_SIZE ) ; Set < String > nodes = new HashSet < String > ( CarbonCommonConstants . DEFAULT_COLLECTION_SIZE ) ; createFlattenedListFromMap ( blockInfos , flattenedList , uniqueBlocks , nodes ) ; int noofNodes = ( - 1 == noOfNodesInput ) ? nodes . size ( ) : noOfNodesInput ; if ( null != activeNodes ) { noofNodes = activeNodes . size ( ) ; } int blocksPerNode = blockInfos . size ( ) / noofNodes ; blocksPerNode = blocksPerNode <= 0 ? 1 : blocksPerNode ; Collections . sort ( flattenedList ) ; Map < String , List < Distributable > > nodeAndBlockMapping = new LinkedHashMap < String , List < Distributable > > ( CarbonCommonConstants . DEFAULT_COLLECTION_SIZE ) ; createNodeVsBlockMapping ( flattenedList , nodeAndBlockMapping ) ; createOutputMap ( nodeBlocksMap , blocksPerNode , uniqueBlocks , nodeAndBlockMapping , activeNodes ) ; assignLeftOverBlocks ( nodeBlocksMap , uniqueBlocks , blocksPerNode , activeNodes ) ; return nodeBlocksMap ; }

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


public boolean onUpdateAnimation  ( long time , boolean jumpToEnd ) { if ( mContentAnimations == null ) return true ; boolean finished = true ; if ( jumpToEnd ) { finished = mContentAnimations . finished ( ) ; } else { finished = mContentAnimations . update ( time ) ; } if ( jumpToEnd || finished ) finishAnimation ( ) ; return finished ; }

Actualiza cualquier animación de contenido en este striplayouttab.


@ Override protected void initToolbar  ( Bundle savedInstanceState ) { }

Inicializar la barra de herramientas en el diseño.


public Covariance ( RealMatrix matrix , boolean biasCorrected ) throws MathIllegalArgumentException { checkSufficientData ( matrix ) ; n = matrix . getRowDimension ( ) ; covarianceMatrix = computeCovarianceMatrix ( matrix , biasCorrected ) ; }

Cree una matriz de covarianza de una matriz cuyas columnas representan covariables.<p> El parámetro <código> biascorrectecected </ code> determina si las estimaciones de covarianza se corrigen o no.<P> La matriz debe tener al menos una columna y dos filas.


public void register  ( String key , Block value ) { register ( key , matcherOf ( value ) ) ; }


public static IClassificationBlock loadClassification  ( DAAHeader daaHeader , String classificationName ) throws IOException { for ( int i = 0 ; i < daaHeader . getBlockTypeRankArrayLength ( ) - 1 ; i ++ ) { if ( daaHeader . getBlockType ( i ) == BlockType . megan_classification_key_block ) { long keyBase = daaHeader . computeBlockStart ( i ) ; try ( InputReaderLittleEndian ins = new InputReaderLittleEndian ( new FileRandomAccessReadOnlyAdapter ( daaHeader . getFileName ( ) ) ) ) { ins . seek ( keyBase ) ; String cName = ins . readNullTerminatedBytes ( ) ; if ( cName . equalsIgnoreCase ( classificationName ) ) { final ClassificationBlockDAA classificationBlock = new ClassificationBlockDAA ( classificationName ) ; int numberOfClasses = ins . readInt ( ) ; for ( int c = 0 ; c < numberOfClasses ; c ++ ) { int classId = ins . readInt ( ) ; classificationBlock . setSum ( classId , ins . readInt ( ) ) ; ins . skipBytes ( 12 ) ; } return classificationBlock ; } } } } return null ; }

Cargue un bloque de clasificación con nombre


public void parseAllCatalogs  ( ) throws IOException  { for ( int catPos = 0 ; catPos < catalogs . size ( ) ; catPos ++ ) { Catalog c = null ; try { c = ( Catalog ) catalogs . elementAt ( catPos ) ; } catch ( ClassCastException e ) { String catfile = ( String ) catalogs . elementAt ( catPos ) ; c = newCatalog ( ) ; c . parseCatalog ( catfile ) ; catalogs . setElementAt ( c , catPos ) ; c . parseAllCatalogs ( ) ; } } Enumeration en = catalogEntries . elements ( ) ; while ( en . hasMoreElements ( ) ) { CatalogEntry e = ( CatalogEntry ) en . nextElement ( ) ; if ( e . getEntryType ( ) == DELEGATE_PUBLIC || e . getEntryType ( ) == DELEGATE_SYSTEM || e . getEntryType ( ) == DELEGATE_URI ) { Catalog dcat = newCatalog ( ) ; dcat . parseCatalog ( e . getEntryArg ( 1 ) ) ; } } }

Analizar todos los catálogos subordinados.<p /> <p> Este método analiza recursivamente todos los catálogos subordinados.Si este método no lanza una excepción, puede estar seguro de que no se debe realizar una llamada posterior a ningún método de resolución * (), con dos excepciones posibles: </ p> <p /> <ol> <li> <p> delegadoLos catálogos se vuelven a analizar cada vez que sean necesarios (porque se puede necesitar una lista variable de ellos en cada caso, dependiendo de la longitud del identificador público parcial coincidente). </ p> <p> pero están analizados por este método, siempre y cuando no cambien o desaparezcan mientras se ejecuta el programa, no deberían generar errores más adelante si no generan errores ahora. </ P> <li> <p> Si agrega nuevos catálogos con<Código> parsecatalog </ code>, no se cargarán hasta que sean necesarios o hasta que llame <código> parseallcatalogs </ code> nuevamente. </ p> </ ol> <p /> <p> en elOtra mano, si no convoca este método, puede analizar con éxito los documentos sin tener que cargar todos los catálogos posibles. </ p>


public static void show  ( @ Nullable Activity activity , CharSequence msg , int duration ) { show ( activity , msg , duration , DEFAULT_GRAVITY ) ; }


public boolean isInterfaceSubinterfaceOf  ( SootClass child , SootClass possibleParent ) { child . checkLevel ( SootClass . HIERARCHY ) ; possibleParent . checkLevel ( SootClass . HIERARCHY ) ; return getSubinterfacesOf ( possibleParent ) . contains ( child ) ; }

Devuelve VERDADERO si el niño es un subinterfaz de PosiblesParent.


public boolean isLoggedIn  ( ) { AccessToken accessToken = getAccessToken ( ) ; return accessToken != null && ! accessToken . isExpired ( ) ; }

Compruebe si el usuario ha iniciado sesión


public static boolean needBoolean  ( String property ) throws NoSuchPropertyException  { String value = getProperty ( property ) ; if ( value == null ) { throw new NoSuchPropertyException ( "Missing property `" + property + "' in configuration files" ) ; } try { return Boolean . valueOf ( value ) . booleanValue ( ) ; } catch ( NumberFormatException e ) { throw new NoSuchPropertyException ( "Boolean property `" + property + "' in configuration files has wrong value `" + value + "'" ) ; } }

Obtenga una propiedad booleana de las propiedades subyacentes, lanzando una excepción si no está definida.


public void sync  ( final boolean force ) { if ( closed ) { throw new AlreadyClosedException ( ) ; } final int f = force ? 1 : 0 ; checkRc ( LIB . mdb_env_sync ( ptr , f ) ) ; }


public ContrastSubfilter ( float contrast ) { this . contrast = contrast ; }


@ Override public void removeStroke  ( Symbolizer symbolizer ) { if ( symbolizer instanceof LineSymbolizer ) { LineSymbolizer line = ( LineSymbolizer ) symbolizer ; if ( line != null ) { line . setStroke ( null ) ; } } }


public static boolean calculatePhysicalCriticalRate  ( Creature attacker , Creature attacked , boolean isMainHand , int criticalProb , boolean isSkill ) { if ( attacker instanceof Servant || attacker instanceof Homing ) { return false ; } int critical ; if ( attacker instanceof Player && ! isMainHand ) { critical = ( ( PlayerGameStats ) attacker . getGameStats ( ) ) . getOffHandPCritical ( ) . getCurrent ( ) ; } else { critical = attacker . getGameStats ( ) . getMainHandPCritical ( ) . getCurrent ( ) ; } AttackerCriticalStatus acStatus = attacker . getObserveController ( ) . checkAttackerCriticalStatus ( AttackStatus . CRITICAL , isSkill ) ; if ( acStatus . isResult ( ) ) { if ( acStatus . isPercent ( ) ) { critical *= ( 1 + acStatus . getValue ( ) / 100 ) ; } else { return Rnd . nextInt ( 1000 ) < acStatus . getValue ( ) ; } } critical = attacked . getGameStats ( ) . getPositiveReverseStat ( StatEnum . PHYSICAL_CRITICAL_RESIST , critical ) - attacker . getGameStats ( ) . getStat ( StatEnum . PVP_HIT_ACCURACY , 0 ) . getCurrent ( ) ; critical *= ( float ) criticalProb / 100f ; double criticalRate ; if ( critical <= 440 ) { criticalRate = critical * 0.1f ; } else if ( critical <= 600 ) { criticalRate = ( 440 * 0.1f ) + ( ( critical - 440 ) * 0.05f ) ; } else { criticalRate = ( 440 * 0.1f ) + ( 160 * 0.05f ) + ( ( critical - 600 ) * 0.02f ) ; } return Rnd . nextInt ( 100 ) < criticalRate ; }


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


protected void handleSourceTextUnit  ( ITextUnit textUnit ) { if ( ! textUnit . isTranslatable ( ) ) { return ; } String name = textUnit . getName ( ) ; String sourceContent = textUnit . getSource ( ) . toString ( ) ; ImportExportNote importExportNote = textUnitUtils . getImportExportNote ( textUnit ) ; tmService . addTMTextUnit ( asset . getRepository ( ) . getTm ( ) . getId ( ) , asset . getId ( ) , name , sourceContent , importExportNote . getSourceComment ( ) , importExportNote . getCreatedDate ( ) ) ; }

Importar unidades de texto de origen en TM


@ Override public boolean equals  ( Object other ) { if ( this == other ) return true ; if ( ! ( other instanceof ServerTransaction ) ) return false ; ServerTransaction t = ( ServerTransaction ) other ; return ( id == t . id && mgr . equals ( t . mgr ) ) ; }

Dos instancias son iguales si tienen el mismo administrador de transacciones y el mismo ID de transacción.


@ Override public void textDecl  ( String version , String encoding , Augmentations augs ) throws XNIException { if ( fDocumentHandler != null ) { fDocumentHandler . textDecl ( version , encoding , augs ) ; } }

Notifica la presencia de una línea de textDecl en una entidad.Si está presente, este método se llamará inmediatamente después de la llamada de inicio de inicio.<p /> <strong> Nota: </ strong> Este método nunca se llamará a la entidad del documento;Solo se llama a las entidades generales externas a las que se hace referencia en el contenido de documentos.<p /> <strong> Nota: </ strong> Este método no se le llama a las referencias de la entidad que aparecen como parte de los valores de atributos.


public GroupsEditQuery messages  ( Boolean value ) { return unsafeParam ( "messages" , value ) ; }

Mensajes comunitarios.<p> Valores posibles: Falso - Deshabilitado;verdadero - habilitado.


@ Override public void actionPerformed  ( ActionEvent event ) { ImportBlastDialog importBlastDialog = ( ImportBlastDialog ) getParent ( ) ; File lastOpenFile ; String name = importBlastDialog . getBlastFileName ( ) ; if ( name . length ( ) > 0 ) lastOpenFile = new File ( Basic . replaceFileSuffix ( name , ".rma6" ) ) ; else lastOpenFile = new File ( ProgramProperties . getFile ( MeganProperties . SAVEFILE ) , "Untitled.rma6" ) ; File file = ChooseFileDialog . chooseFileToSave ( importBlastDialog , lastOpenFile , new RMAFileFilter ( ) , new RMAFileFilter ( ) , event , "Save MEGAN file" , ".rma6" ) ; if ( file != null ) { ProgramProperties . put ( MeganProperties . SAVEFILE , file ) ; importBlastDialog . setMeganFileName ( file . getPath ( ) ) ; importBlastDialog . getMeganFileNameField ( ) . setText ( file . getPath ( ) ) ; } }


public StreamingStatistics ( ) { this . secondMoment = new SecondMoment ( ) ; this . maxImpl = new Max ( ) ; this . minImpl = new Min ( ) ; this . sumImpl = new Sum ( ) ; this . sumOfSquaresImpl = new SumOfSquares ( ) ; this . sumOfLogsImpl = new SumOfLogs ( ) ; this . meanImpl = new Mean ( this . secondMoment ) ; this . varianceImpl = new Variance ( this . secondMoment ) ; this . geoMeanImpl = new GeometricMean ( this . sumOfLogsImpl ) ; this . populationVariance = new Variance ( false , this . secondMoment ) ; }

Construir una nueva instancia de StreamingStatistics.


private void drawSun  ( Canvas canvas ) { final Matrix matrix = mMatrix ; matrix . reset ( ) ; float dragPercent = Math . min ( 1f , Math . abs ( mPercent ) ) ; final float offsetX = isRefreshing ? mScreenWidth / 2 * ( 2 - dragPercent ) - mSunWidth / 2 : ( mScreenWidth * dragPercent - mSunWidth ) / 2 ; final float offsetY = totalDistance * func ( dragPercent ) ; matrix . preRotate ( mSunRotateAngle == 0.0f ? ( 360 * dragPercent ) : mSunRotateAngle , mSunWidth / 2 , mSunHeight / 2 ) ; matrix . postTranslate ( offsetX , offsetY ) ; canvas . drawBitmap ( mSun , matrix , null ) ; }


static public void apply  ( String fileName , Document doc , String [ ] cNames , boolean tabSeparator , long multiplier ) throws IOException { String separator = ( tabSeparator ? "\t" : "," ) ; System . err . println ( "Importing summary of" + Basic . toString ( cNames , ", " ) + " assignments from CSV file" ) ; System . err . println ( "Specified line format: classname" + separator + "count{" + separator + "count" + separator + "count...}" ) ; DataTable table = doc . getDataTable ( ) ; table . clear ( ) ; table . setCreator ( ProgramProperties . getProgramName ( ) ) ; table . setCreationDate ( ( new Date ( ) ) . toString ( ) ) ; table . setAlgorithm ( ClassificationType . Taxonomy . toString ( ) , "Summary" ) ; doc . getActiveViewers ( ) . clear ( ) ; doc . getActiveViewers ( ) . addAll ( Arrays . asList ( cNames ) ) ; IdParser [ ] idParsers = new IdParser [ cNames . length ] ; int taxonomyIndex = - 1 ; for ( int i = 0 ; i < cNames . length ; i ++ ) { String cName = cNames [ i ] ; idParsers [ i ] = ClassificationManager . get ( cName , true ) . getIdMapper ( ) . createIdParser ( ) ; if ( ! cName . equals ( Classification . Taxonomy ) ) { ClassificationManager . ensureTreeIsLoaded ( cName ) ; doc . getActiveViewers ( ) . add ( cName ) ; } else { taxonomyIndex = i ; } idParsers [ i ] . setUseTextParsing ( true ) ; } String [ ] names = null ; final Map < Integer , Integer [ ] > [ ] class2counts = new HashMap [ cNames . length ] ; for ( int i = 0 ; i < class2counts . length ; i ++ ) { class2counts [ i ] = new HashMap < > ( ) ; } Integer [ ] [ ] total = new Integer [ cNames . length ] [ ] ; int [ ] add = null ; int numberOfColumns = - 1 ; int numberOfErrors = 0 ; boolean first = true ; int numberOfLines = 0 ; try ( FileInputIterator it = new FileInputIterator ( fileName ) ) { while ( it . hasNext ( ) ) { numberOfLines ++ ; String aLine = it . next ( ) . trim ( ) ; if ( aLine . length ( ) == 0 || ( ! first && aLine . startsWith ( "#" ) ) ) continue ; try { String [ ] tokens = aLine . split ( separator ) ; if ( numberOfColumns == - 1 ) { numberOfColumns = tokens . length ; } else if ( tokens . length != numberOfColumns ) throw new IOException ( "Line " + it . getLineNumber ( ) + ": incorrect number of columns, expected " + numberOfColumns + ", got: " + tokens . length + " (" + aLine + ")" ) ; if ( first ) { first = false ; boolean headerLinePresent = false ; if ( tokens . length < 2 ) throw new IOException ( "Line " + it . getLineNumber ( ) + ": incorrect number of columns, expected at least 2, got: " + tokens . length + " (" + aLine + ")" ) ; if ( tokens [ 0 ] . startsWith ( "#" ) ) tokens [ 0 ] = tokens [ 0 ] . substring ( 1 ) . trim ( ) ; if ( tokens [ 0 ] . equalsIgnoreCase ( "name" ) || tokens [ 0 ] . equalsIgnoreCase ( "names" ) || tokens [ 0 ] . equalsIgnoreCase ( "samples" ) || tokens [ 0 ] . equalsIgnoreCase ( "SampleID" ) || tokens [ 0 ] . equalsIgnoreCase ( SampleAttributeTable . SAMPLE_ID ) || tokens [ 0 ] . equalsIgnoreCase ( "Dataset" ) || tokens [ 0 ] . equalsIgnoreCase ( "Datasets" ) ) { names = new String [ tokens . length - 1 ] ; System . arraycopy ( tokens , 1 , names , 0 , names . length ) ; table . setSamples ( names , null , null , null ) ; headerLinePresent = true ; } else if ( tokens . length == 2 ) { names = new String [ ] { Basic . getFileBaseName ( ( new File ( fileName ) ) . getName ( ) ) } ; } else { names = new String [ tokens . length - 1 ] ; for ( int i = 0 ; i < names . length ; i ++ ) names [ i ] = "Sample" + ( i + 1 ) ; } for ( int i = 0 ; i < total . length ; i ++ ) { total [ i ] = newZeroedIntegerArray ( names . length ) ; } if ( headerLinePresent ) continue ; } if ( add == null ) add = new int [ names . length ] ; for ( int i = 1 ; i < tokens . length ; i ++ ) { String number = tokens [ i ] . trim ( ) ; if ( number . length ( ) == 0 ) add [ i - 1 ] = 0 ; else if ( Basic . isInteger ( number ) ) add [ i - 1 ] = ( int ) ( multiplier * Integer . parseInt ( number ) ) ; else add [ i - 1 ] = ( int ) ( multiplier * Double . parseDouble ( number ) ) ; } boolean found = false ; for ( int i = 0 ; ! found && i < idParsers . length ; i ++ ) { int id ; if ( i == taxonomyIndex && Basic . isInteger ( tokens [ 0 ] ) ) id = Basic . parseInt ( tokens [ 1 ] ) ; else id = idParsers [ i ] . getIdFromHeaderLine ( tokens [ 0 ] ) ; if ( id != 0 ) { Integer [ ] counts = getOrCreate ( class2counts [ i ] , id , names . length ) ; addToArray ( counts , add ) ; addToArray ( total [ i ] , add ) ; found = true ; } } if ( ! found ) { System . err . println ( "Unrecognized name: " + tokens [ 0 ] ) ; for ( int i = 0 ; i < idParsers . length ; i ++ ) { Integer [ ] counts = getOrCreate ( class2counts [ i ] , IdMapper . UNASSIGNED_ID , names . length ) ; addToArray ( counts , add ) ; addToArray ( total [ i ] , add ) ; } } } catch ( Exception ex ) { System . err . println ( "Error: " + ex + ", skipping" ) ; numberOfErrors ++ ; } } } Integer [ ] sizes = new Integer [ names . length ] ; System . arraycopy ( total [ taxonomyIndex ] , 0 , sizes , 0 , sizes . length ) ; table . setSamples ( names , null , sizes , null ) ; for ( int i = 0 ; i < cNames . length ; i ++ ) { table . getClassification2Class2Counts ( ) . put ( cNames [ i ] , class2counts [ i ] ) ; } long totalReads = 0 ; for ( Integer size : sizes ) { totalReads += size ; } table . setTotalReads ( totalReads ) ; doc . setNumberReads ( totalReads ) ; System . err . println ( "Number of lines read: " + numberOfLines ) ; if ( numberOfErrors > 0 ) NotificationsInSwing . showWarning ( MainViewer . getLastActiveFrame ( ) , "Number of lines skipped during import: " + numberOfErrors ) ; for ( int i = 0 ; i < cNames . length ; i ++ ) { System . err . println ( "Different " + ( cNames [ i ] . length ( ) <= 4 ? cNames [ i ] : cNames [ i ] . substring ( 0 , 3 ) + "." ) + " classes identified: " + class2counts [ i ] . size ( ) ) ; } System . err . println ( "done (" + totalReads + " reads)" ) ; }

Aplique el analizador importador al archivo nombrado.El formato debe ser: TAXID, CONTAR [, CONTAR, ...] Si la primera línea contiene tokens de no número, estos se interpretan como los nombres de los conjuntos de datos


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

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


public static SM_SYSTEM_MESSAGE STR_CHAT_ROOM_PASSWORD_CHANGED  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300866 , value0 ) ; }

La contraseña del canal privado se ha cambiado a% 0.


protected boolean isAjax  ( ) { String request = this . getHeader ( "X-Requested-With" ) ; if ( request != null && request . equals ( "XMLHttpRequest" ) ) { return true ; } String type = this . getHeader ( "Content-Type" ) ; if ( type != null && type . contains ( "application/json" ) ) { return true ; } String output = this . getString ( "output" ) ; if ( X . isSame ( "json" , output ) ) { return true ; } output = this . getHeader ( "output" ) ; if ( X . isSame ( "json" , output ) ) { return true ; } return false ; }

Prueba La solicitud es AJAX?
 X-Solicitud: con: XMLHTTTPRequest
 Tipo de contenido: Aplicación / JSON
 Salida: JSON


public BigReal ( long val ) { d = new BigDecimal ( val ) ; }


public static void main  ( String [ ] args ) throws Exception { if ( args . length == 0 && System . getProperty ( "user.name" ) . equals ( "huson" ) ) { args = new String [ ] { "-i" , "/Users/huson/data/michael/adam/PF04563_meta.out" , "-o" , "/Users/huson/data/michael/adam/PF04563_meta.blastx" , "-r" , "/Users/huson/data/michael/input/SRR172902-rpoB.fasta" } ; args = new String [ ] { "-i" , "/Users/huson/data/michael/adam/next2/880_rpoB_sequences_min_1000_AAs.out" , "-o" , "/Users/huson/data/michael/adam/next2/880_rpoB_sequences_min_1000_AAs.blastx" , "-r" , "/Users/huson/data/michael/adam/next2/SRR172902-rpoB.fasta" } ; args = new String [ ] { "-i" , "/Users/huson/data/michael/adam/next/orthodb_EOG6M9DS6_bacteria_all.out" , "-o" , "/Users/huson/data/michael/adam/next/orthodb_EOG6M9DS6_bacteria_all.blastx" , "-r" , "/Users/huson/data/michael/adam/next/SRR172902-rpoB.fasta" } ; args = new String [ ] { "-i" , "/Users/huson/data/michael/adam/next/33_uniprot_seqs_with_specific_RNA_pol_Rpb2_arch.out" , "-o" , "/Users/huson/data/michael/adam/next/33_uniprot_seqs_with_specific_RNA_pol_Rpb2_arch.blastx" , "-r" , "/Users/huson/data/michael/adam/next/SRR172902-rpoB.fasta" } ; args = new String [ ] { "-i" , "/Users/huson/data/michael/adam/next3/SRR172902.out" , "-o" , "/Users/huson/data/michael/adam/next3/SRR172902.blastx" , "-r" , "/Users/huson/data/hmp-mock/input-wgs/SRR172902.fastq.gz" } ; args = new String [ ] { "-i" , "/Users/huson/data/michael/adam/next4/rpoB_reference_sequences_malt_matches.out" , "-o" , "/Users/huson/data/michael/adam/next4/rpoB_reference_sequences_malt_matches.blastx" , "-r" , "/Users/huson/data/michael/adam/next/SRR172902-rpoB.fasta" } ; args = new String [ ] { "-i" , "/Users/huson/data/michael/adam/next5/rpoB_reference_sequences_SRR172902.out" , "-o" , "/Users/huson/data/michael/adam/next5/rpoB_reference_sequences_SRR172902.blastx" , "-r" , "/Users/huson/data/hmp-mock/input-wgs/SRR172902.fastq.gz" } ; } try { ProgramProperties . setProgramName ( "HMM2BlastX" ) ; ProgramProperties . setProgramVersion ( megan . main . Version . SHORT_DESCRIPTION ) ; long start = System . currentTimeMillis ( ) ; ( new HMM2Blastx ( ) ) . run ( args ) ; System . err . println ( "Time: " + ( ( System . currentTimeMillis ( ) - start ) / 1000 ) + "s" ) ; System . exit ( 0 ) ; } catch ( Exception ex ) { Basic . caught ( ex ) ; System . exit ( 1 ) ; } }


@ Override public void onLoadHandler  ( Item item ) { if ( item . getItemTemplate ( ) . isKinah ( ) ) { kinahItem = item ; } else { itemStorage . putItem ( item ) ; } }

Este método debe ser llamado solo para nuevos elementos agregados al inventario (carga de DB) si el elemento está equipado, se colocará al equipo si se indica un elemento, se colocará a la bolsa predeterminada para ahora KinaH se almacena por separado ya que se utilizará con frecuencia.


public boolean has  ( String key ) { return this . map . containsKey ( key ) ; }

Determine si el JSONOBJECT contiene una clave específica.


public AudioDestination ( boolean isInRam ) throws IOException { this . ram = isInRam ; if ( ram ) { os = new ByteArrayOutputStream ( ) ; f = null ; } else { f = MaryUtils . createSelfDeletingTempFile ( 3600 ) ; os = new FileOutputStream ( f ) ; } }

Cree una audiodestinación a la que se puedan escribir los datos de audio.


public void hide  ( boolean animate ) { hide ( animate , fadeOut ) ; }


public void addTaintPropagationHandler  ( TaintPropagationHandler handler ) { if ( this . taintPropagationHandlers == null ) this . taintPropagationHandlers = new HashSet < > ( ) ; this . taintPropagationHandlers . add ( handler ) ; }

Agrega un manejador que se invoca cada vez que se propaga una mancha


public SpellingProblemCollector ( IAnnotationModel annotationModel ) { fAnnotationModel = annotationModel ; }

Inicializa este colector con el modelo de anotación dado.


public static double log10  ( final double x ) { final double hiPrec [ ] = new double [ 2 ] ; final double lores = log ( x , hiPrec ) ; if ( Double . isInfinite ( lores ) ) { return lores ; } final double tmp = hiPrec [ 0 ] * HEX_40000000 ; final double lna = hiPrec [ 0 ] + tmp - tmp ; final double lnb = hiPrec [ 0 ] - lna + hiPrec [ 1 ] ; final double rln10a = 0.4342944622039795 ; final double rln10b = 1.9699272335463627E-8 ; return rln10b * lnb + rln10b * lna + rln10a * lnb + rln10a * lna ; }


@ Override public void startDocument  ( XMLLocator locator , String encoding , NamespaceContext namespaceContext , Augmentations augs ) throws XNIException { fLocator = locator ; if ( ! fDeferNodeExpansion ) { if ( fDocumentClassName . equals ( DEFAULT_DOCUMENT_CLASS_NAME ) ) { fDocument = new DocumentImpl ( ) ; fDocumentImpl = ( CoreDocumentImpl ) fDocument ; fDocumentImpl . setStrictErrorChecking ( false ) ; fDocumentImpl . setInputEncoding ( encoding ) ; fDocumentImpl . setDocumentURI ( locator . getExpandedSystemId ( ) ) ; } else if ( fDocumentClassName . equals ( PSVI_DOCUMENT_CLASS_NAME ) ) { fDocument = new PSVIDocumentImpl ( ) ; fDocumentImpl = ( CoreDocumentImpl ) fDocument ; fStorePSVI = true ; fDocumentImpl . setStrictErrorChecking ( false ) ; fDocumentImpl . setInputEncoding ( encoding ) ; fDocumentImpl . setDocumentURI ( locator . getExpandedSystemId ( ) ) ; } else { try { ClassLoader cl = ObjectFactory . findClassLoader ( ) ; Class documentClass = ObjectFactory . findProviderClass ( fDocumentClassName , cl , true ) ; fDocument = ( Document ) documentClass . newInstance ( ) ; Class defaultDocClass = ObjectFactory . findProviderClass ( CORE_DOCUMENT_CLASS_NAME , cl , true ) ; if ( defaultDocClass . isAssignableFrom ( documentClass ) ) { fDocumentImpl = ( CoreDocumentImpl ) fDocument ; Class psviDocClass = ObjectFactory . findProviderClass ( PSVI_DOCUMENT_CLASS_NAME , cl , true ) ; if ( psviDocClass . isAssignableFrom ( documentClass ) ) { fStorePSVI = true ; } fDocumentImpl . setStrictErrorChecking ( false ) ; fDocumentImpl . setInputEncoding ( encoding ) ; if ( locator != null ) { fDocumentImpl . setDocumentURI ( locator . getExpandedSystemId ( ) ) ; } } } catch ( ClassNotFoundException e ) { } catch ( Exception e ) { throw new RuntimeException ( DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , "CannotCreateDocumentClass" , new Object [ ] { fDocumentClassName } ) ) ; } } fCurrentNode = fDocument ; } else { fDeferredDocumentImpl = new DeferredDocumentImpl ( fNamespaceAware ) ; fDocument = fDeferredDocumentImpl ; fDocumentIndex = fDeferredDocumentImpl . createDeferredDocument ( ) ; fDeferredDocumentImpl . setInputEncoding ( encoding ) ; fDeferredDocumentImpl . setDocumentURI ( locator . getExpandedSystemId ( ) ) ; fCurrentNodeIndex = fDocumentIndex ; } }


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


public void sendTextMessage  ( final String messageText , final Destination destination , final Session session ) throws JMSException { MessageProducer messageProducer = session . createProducer ( destination ) ; try { TextMessage message = session . createTextMessage ( ) ; message . setText ( messageText ) ; log . debug ( "Sending response to DataTagValueRequest" ) ; messageProducer . send ( destination , message ) ; } finally { messageProducer . close ( ) ; } }

Envía un mensaje de texto a través de JMS al servidor.


public LogController ( ) { this . maxLines = defaultMaxLines ; }

Instanciate un LogController para manejar la salida de la consola.


public void updateState  ( final boolean done , final boolean current ) { mStepDoneIndicator . setVisibility ( done ? View . VISIBLE : View . GONE ) ; mStepNumber . setVisibility ( ! done ? View . VISIBLE : View . GONE ) ; colorViewBackground ( done ? mStepDoneIndicator : mStepNumber , done || current ) ; mStepTitle . setTypeface ( current ? Typeface . DEFAULT_BOLD : Typeface . DEFAULT ) ; mStepTitle . setAlpha ( done || current ? OPAQUE_ALPHA : INACTIVE_STEP_TITLE_ALPHA ) ; }

Actualiza la interfaz de usuario de Tab.


public SessionKey ( int accountId , int loginOk , int playOk1 , int playOk2 ) { this . accountId = accountId ; this . loginOk = loginOk ; this . playOk1 = playOk1 ; this . playOk2 = playOk2 ; }


public void runEM  ( PointList samplePoints ) throws CovarianceSingularityException  { double p_old = - Double . MAX_VALUE ; double p = - Double . MAX_VALUE ; int numberIterations = 0 ; synchronized ( p_ij ) { getBuffer ( components . length , samplePoints . size ( ) ) ; do { p_old = p ; estimationStep ( samplePoints ) ; maximizationStep ( samplePoints ) ; numberIterations ++ ; p = getLogLikelihood ( samplePoints ) ; System . out . print ( "*" ) ; } while ( p_old - p < - 0.1 && numberIterations < MAX_ITERATIONS ) ; p_ij = new double [ 1 ] [ 1 ] ; } System . out . println ( ) ; }

Ejecuta el algorithem de EM para entrenar este GMM dados los puntos de muestra en la Lista de puntos </ Code>.El algoritmo de EM se ejecuta hasta que uno no pueda producir una mejora de la probabilidad de registro o el número de iteraciones de capacitación excede el número de iteraciones máximas permitidas (Max_iterations).


public static boolean isBeginnerSkill  ( int skillId ) { return isBeginnerJob ( skillId / 10000 ) && ( skillId % 10000 == 1000 || skillId % 10000 == 1001 || skillId % 10000 == 1002 || skillId % 10000 == 2 ) ; }

Comprueba si la habilidad dada es una habilidad para principiantes.


public Well1024a ( int [ ] seed ) { super ( K , seed ) ; }

Crea un nuevo generador de números aleatorios usando una semilla INT Array.


public boolean isApplicable  ( ) { return ( ( Director ) getDir ( ) ) . getDocument ( ) . getSampleSelection ( ) . size ( ) > 0 ; }

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


public static String encodeParam  ( String param ) { try { return URLEncoder . encode ( param , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; return "" ; } }

Devuelve la codificación de URL de Param Dada.


@ Override public void endGeneralEntity  ( String name , Augmentations augs ) throws XNIException { fEntityRef = false ; if ( fDocumentHandler != null ) { fDocumentHandler . endGeneralEntity ( name , augs ) ; } }

Este método notifica al final de una entidad general.<p /> <strong> Nota: </ strong> Este método no se le llama a las referencias de la entidad que aparecen como parte de los valores de atributos.


public synchronized void cancelled  ( ) { completed = true ; cancelled = true ; notifyAll ( ) ; }

Indica que esta habitación se ha cancelado.


public boolean forEachEntry  ( TLongObjectProcedure < V > procedure ) { byte [ ] states = _states ; long [ ] keys = _set ; V [ ] values = _values ; for ( int i = keys . length ; i -- > 0 ; ) { if ( states [ i ] == FULL && ! procedure . execute ( keys [ i ] , values [ i ] ) ) { return false ; } } return true ; }

Ejecuta el procedimiento <TT> </ TT> para cada entrada de clave / valor en el mapa.


public void shareWeiXin  ( String liveTitle , String webUrl ) { String msgTitle = context . getString ( R . string . app_name ) ; String msgText = liveTitle + context . getString ( R . string . share_str_weixin_title ) ; shareWeiXin ( webUrl , msgTitle , msgText ) ; }


public WallSearchQueryWithExtended fields  ( List < EnumParam > value ) { return unsafeParam ( "fields" , value ) ; }


static public int makePosition  ( int line , int column ) { return line << COLUMN_FIELD_BITS | column ; }

Packs Symbol "coordenadas" en un solo número.


private void fingerScroll  ( final float yDiff ) { float ratio = mDragRatio ; float yScrolled = yDiff * ratio ; float tmpTargetOffset = yScrolled + mTargetOffset ; if ( ( tmpTargetOffset > 0 && mTargetOffset < 0 ) || ( tmpTargetOffset < 0 && mTargetOffset > 0 ) ) { yScrolled = - mTargetOffset ; } if ( mRefreshFinalDragOffset >= mRefreshTriggerOffset && tmpTargetOffset > mRefreshFinalDragOffset ) { yScrolled = mRefreshFinalDragOffset - mTargetOffset ; } else if ( mLoadMoreFinalDragOffset >= mLoadMoreTriggerOffset && - tmpTargetOffset > mLoadMoreFinalDragOffset ) { yScrolled = - mLoadMoreFinalDragOffset - mTargetOffset ; } if ( STATUS . isRefreshStatus ( mStatus ) ) { mRefreshCallback . onMove ( mTargetOffset , false , false ) ; } else if ( STATUS . isLoadMoreStatus ( mStatus ) ) { mLoadMoreCallback . onMove ( mTargetOffset , false , false ) ; } updateScroll ( yScrolled ) ; }

Desplazamiento por contacto físico con los dedos


public FormField ( Context context , AttributeSet attrs , int defStyle ) { super ( context , attrs , defStyle ) ; initAttrs ( context , TEXT , R . drawable . ic_slick_user , "Username" ) ; }

Instantánea una nueva vista de Formield.


public static < T extends  RealFieldElement < T >> T distance ( final Vector3D v1 , final FieldVector3D < T > v2 )  { return v2 . distance ( v1 ) ; }

Calcule la distancia entre dos vectores de acuerdo con la norma L <SUB> 2 </ SUB>.<p> Llamar a este método es equivalente a llamar: <Code> v1.subtract (v2) .getnorm () </ código> Excepto que no se construye un vector intermedio </ p>


public Entry toCacheEntry  ( byte [ ] data ) { Entry e = new Entry ( ) ; e . data = data ; e . etag = etag ; e . serverDate = serverDate ; e . ttl = ttl ; e . softTtl = softTtl ; e . responseHeaders = responseHeaders ; return e ; }

Crea una entrada de caché para los datos especificados.


public static float calculateAspectRatio  ( float left , float top , float right , float bottom ) { final float width = right - left ; final float height = bottom - top ; final float aspectRatio = width / height ; return aspectRatio ; }

Calcula la relación de aspecto dada un rectángulo.


public BooleanColumn ( ) { this  ( 0 , 10 , false ) ; }


void cancelAllSuperToasts  ( ) { removeMessages ( Messages . SHOW_NEXT ) ; removeMessages ( Messages . DISPLAY_SUPERTOAST ) ; removeMessages ( Messages . REMOVE_SUPERTOAST ) ; for ( SuperToast superToast : superToastPriorityQueue ) { if ( superToast instanceof SuperActivityToast ) { if ( superToast . isShowing ( ) ) { try { ( ( SuperActivityToast ) superToast ) . getViewGroup ( ) . removeView ( superToast . getView ( ) ) ; ( ( SuperActivityToast ) superToast ) . getViewGroup ( ) . invalidate ( ) ; } catch ( NullPointerException | IllegalStateException exception ) { Log . e ( getClass ( ) . getName ( ) , exception . toString ( ) ) ; } } } else { final WindowManager windowManager = ( WindowManager ) superToast . getContext ( ) . getApplicationContext ( ) . getSystemService ( Context . WINDOW_SERVICE ) ; if ( superToast . isShowing ( ) ) { try { windowManager . removeView ( superToast . getView ( ) ) ; } catch ( NullPointerException | IllegalArgumentException exception ) { Log . e ( getClass ( ) . getName ( ) , exception . toString ( ) ) ; } } } } superToastPriorityQueue . clear ( ) ; }

Cancela y elimina todos los supertoasts pendientes y / o que muestran los supertoasts y los puntos de superactividad.


private float smoothInput  ( float current , float input ) { current = MathUtils . clamp ( current , input - 30 , input + 30 ) ; return MathUtils . interpolate ( current , input , 0.8f ) ; }

Alisa la señal de entrada.La definición de la entrada es inferior a la densidad de píxeles de la pantalla, por lo que necesitamos alisar la entrada para dar la ilusión de animación suave en la pantalla de las entradas gruesas.La combinación de 30 píxeles y 0.8F garantiza que la salida no se aleje más de 6 píxeles del objetivo.TODO (DtraiNor): Esto no tiene nada que ver con el tiempo, solo saque la tasa.¿Está bien o queremos tener la interpolación basada en el tiempo transcurrido?


public float [ ] generateTransformedValuesLine  ( ILineDataSet data , float phaseX , float phaseY , int from , int to ) { final int count = ( int ) ( ( to - from ) * phaseX + 1 ) * 2 ; if ( valuePointsForGenerateTransformedValuesLine . length != count ) { valuePointsForGenerateTransformedValuesLine = new float [ count ] ; } float [ ] valuePoints = valuePointsForGenerateTransformedValuesLine ; for ( int j = 0 ; j < count ; j += 2 ) { Entry e = data . getEntryForIndex ( j / 2 + from ) ; if ( e != null ) { valuePoints [ j ] = e . getX ( ) ; valuePoints [ j + 1 ] = e . getY ( ) * phaseY ; } else { valuePoints [ j ] = 0 ; valuePoints [ j + 1 ] = 0 ; } } getValueToPixelMatrix ( ) . mapPoints ( valuePoints ) ; return valuePoints ; }

Transforma una lista de entrada en una matriz de flotador que contiene los valores X e Y transformados con todas las matrices para el LinChart.


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


public PoolingByteArrayOutputStream ( ByteArrayPool pool ) { this ( pool , DEFAULT_SIZE ) ; }

Construye una nueva piscinaByErrayOutputTream con un tamaño predeterminado.Si se escriben más bytes en este caso, la matriz de bytes subyacentes se expandirá.


public OpenMapRealVector ( int dimension , int expectedSize , double epsilon ) { virtualSize = dimension ; entries = new OpenIntToDoubleHashMap ( expectedSize , 0.0 ) ; this . epsilon = epsilon ; }

Construye un vector con conocido la escoria y la configuración de tolerancia cero (solo para uso avanzado).


@ Override public void cleanup  ( ) { fEntityManager . closeReaders ( ) ; }

Si la aplicación decide terminar el análisis antes de que el documento XML esté completamente analizado, la aplicación debe llamar a este método para liberar cualquier recurso asignado durante el análisis.Por ejemplo, cierre todos los arroyos abiertos.


public void registerToolbar  ( ViewGroup toolbarContainer , RTToolbar toolbar ) { mToolbars . put ( toolbar . getId ( ) , toolbar ) ; toolbar . setToolbarListener ( this ) ; toolbar . setToolbarContainer ( toolbarContainer ) ; updateToolbarVisibility ( ) ; }

Registrar una barra de herramientas.<p> Solo después de hacerlo, puede usarse junto con un editor de texto enriquecido.Debe ser llamado desde el hilo de la interfaz de usuario.


public static int daysSince1900  ( Date date ) { final Calendar calendar = Calendar . getInstance ( ) ; calendar . clear ( ) ; calendar . set ( 1900 , 0 , 1 ) ; return daysBetween ( calendar . getTime ( ) , date ) ; }

Calcula el número de días entre la época y la fecha dada.


public EqIOException ( final int code ) { super ( code ) ; }


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "unhide attribute=" ) ; Set < String > attributes = new HashSet < > ( ) ; while ( ! np . peekMatchIgnoreCase ( ";" ) ) { String attribute = np . getWordRespectCase ( ) ; attributes . add ( attribute ) ; } np . matchIgnoreCase ( ";" ) ; if ( attributes . size ( ) > 0 ) { final SamplesViewer viewer = ( ( SamplesViewer ) getViewer ( ) ) ; viewer . getSamplesTable ( ) . unhideColumns ( attributes . toArray ( new String [ attributes . size ( ) ] ) ) ; } }


public VideoEditQuery noComments  ( Boolean value ) { return unsafeParam ( "no_comments" , value ) ; }

Deshabilitar los comentarios para el video del grupo.


public int removeEntry  ( Context context , IEntryHolder entryHolder , IEntryCacheInfo pEntry , boolean shouldReplicate , boolean origin , EntryRemoveReasonCodes removeReason , boolean disableSAcall ) throws SAException { boolean is_writing_xtn = entryHolder . getXidOriginatedTransaction ( ) != null ; XtnEntry xtnEntry = null ; boolean updated_recent_deletes = false ; if ( entryHolder . hasShadow ( ) ) { TypeData typeData = _typeDataMap . get ( entryHolder . getServerTypeDesc ( ) ) ; if ( pEntry == null ) pEntry = getPEntryByUid ( entryHolder . getUID ( ) ) ; consolidateWithShadowEntry ( typeData , pEntry , false , false ) ; } boolean leaseExpiration = removeReason == EntryRemoveReasonCodes . LEASE_CANCEL || removeReason == EntryRemoveReasonCodes . LEASE_EXPIRED ; try { if ( is_writing_xtn ) { xtnEntry = entryHolder . getXidOriginated ( ) ; is_writing_xtn = xtnEntry != null ; } if ( ! is_writing_xtn ) { if ( useRecentDeletes ( ) && ! entryHolder . isTransient ( ) && ! ( leaseExpiration && isCacheExternalDB ( ) ) ) { insertToRecentDeletes ( entryHolder , requiresEvictionReplicationProtection ( ) ? Long . MAX_VALUE : 0 , context . getCommittingXtn ( ) ) ; updated_recent_deletes = true ; } if ( ! disableSAcall ) { if ( entryHolder . isOffHeapEntry ( ) && isDirectPersistencyEmbeddedtHandlerUsed ( ) && context . isActiveBlobStoreBulk ( ) ) context . setForBulkRemove ( entryHolder , removeReason ) ; _storageAdapter . removeEntry ( context , entryHolder , origin , leaseExpiration , shouldReplicate ) ; if ( shouldReplicate && ! context . isDelayedReplicationForbulkOpUsed ( ) ) handleRemoveEntryReplication ( context , entryHolder , removeReason ) ; } } else { if ( xtnEntry . m_AlreadyPrepared ) { if ( useRecentDeletes ( ) && ! entryHolder . isTransient ( ) && ! ( leaseExpiration && isCacheExternalDB ( ) ) ) { insertToRecentDeletes ( entryHolder , requiresEvictionReplicationProtection ( ) ? Long . MAX_VALUE : 0 , context . getCommittingXtn ( ) ) ; updated_recent_deletes = true ; } boolean actualUpdateRedoLog = shouldReplicate ; if ( ! xtnEntry . m_SingleParticipant ) { if ( xtnEntry . getStatus ( ) != XtnStatus . COMMITED && xtnEntry . getStatus ( ) != XtnStatus . COMMITING ) actualUpdateRedoLog = false ; } if ( ! disableSAcall ) { if ( entryHolder . isOffHeapEntry ( ) && isDirectPersistencyEmbeddedtHandlerUsed ( ) && context . isActiveBlobStoreBulk ( ) ) context . setForBulkRemove ( entryHolder , removeReason ) ; _storageAdapter . removeEntry ( context , entryHolder , origin , leaseExpiration , actualUpdateRedoLog ) ; if ( actualUpdateRedoLog && ! context . isDelayedReplicationForbulkOpUsed ( ) ) handleRemoveEntryReplication ( context , entryHolder , removeReason ) ; } } } } catch ( Exception ex ) { if ( updated_recent_deletes ) removeFromRecentDeletes ( entryHolder ) ; if ( ex instanceof SAException ) throw ( SAException ) ex ; throw new RuntimeException ( ex ) ; } RecentDeleteCodes recentDeleteUsage = updated_recent_deletes ? RecentDeleteCodes . INSERT_DUMMY : RecentDeleteCodes . NONE ; if ( ! entryHolder . isOffHeapEntry ( ) || context . getBlobStoreBulkInfo ( ) == null || ( ( ( IOffHeapEntryHolder ) entryHolder ) . getBulkInfo ( ) == null && ! context . getBlobStoreBulkInfo ( ) . wasEntryRemovedInChunk ( entryHolder . getUID ( ) ) ) ) removeEntryFromCache ( entryHolder , false , true , pEntry , recentDeleteUsage ) ; if ( ! context . isSyncReplFromMultipleOperation ( ) && ! context . isDisableSyncReplication ( ) && shouldReplicate ) { return _engine . performReplication ( context ) ; } return 0 ; }


public static void enableTrafficAlerts  ( AirMapTrafficListener listener ) { getAirMapTrafficService ( ) . addListener ( listener ) ; getAirMapTrafficService ( ) . connect ( ) ; }

Inicia el servicio de alertas de tráfico para recibir alertas de tráfico para el vuelo activo actual


@ Override public void serializeAsOmittedField  ( Object bean , JsonGenerator jgen , SerializerProvider prov ) throws Exception { if ( ! jgen . canOmitFields ( ) ) { jgen . writeOmittedField ( _name . getValue ( ) ) ; } }

El método llamado para indicar que la serialización de un campo se omitió debido al filtrado, en los casos en que el formato de datos backend no permite la omisión básica.


public boolean matches  ( EventDescriptor template ) { if ( template == null ) throw new NullPointerException ( "template is null" ) ; boolean matches = false ; if ( template . eventID == null ) { if ( template . eventClass == null ) matches = true ; else if ( this . eventClass != null ) matches = this . eventClass . equals ( template . eventClass ) ; } else { if ( this . eventID != null ) matches = this . eventID . equals ( template . eventID ) ; } return ( matches ) ; }

Determine si el evento proporcionado coincide con las propiedades de este eventoDescriptor


public void addHistory  ( Legion legion , String text , LegionHistoryType legionHistoryType , int tabId , String description ) { LegionHistory legionHistory = new LegionHistory ( legionHistoryType , text , new Timestamp ( System . currentTimeMillis ( ) ) , tabId , description ) ; legion . addHistory ( legionHistory ) ; DAOManager . getDAO ( LegionDAO . class ) . saveNewLegionHistory ( legion . getLegionId ( ) , legionHistory ) ; PacketSendUtility . broadcastPacketToLegion ( legion , new SM_LEGION_TABS ( legion . getLegionHistoryByTabId ( tabId ) , tabId ) ) ; }

Este método agregará un nuevo historial para una legión.


public void recalculateInfluence  ( ) { calculateInfluence ( ) ; }


private void moveToPrevBlock  ( ) { blk = new BlockId ( blk . fileName ( ) , blk . number ( ) + 1 ) ; pg . read ( blk ) ; currentRec = 0 + pointerSize ; }

Se mueve al bloque de registro anterior en orden inverso y la posiciona después del último registro en ese bloque.


public static String ellipsize  ( String text , int max ) { if ( textWidth ( text ) <= max ) return text ; int end = text . lastIndexOf ( ' ' , max - 3 ) ; if ( end == - 1 ) return text . substring ( 0 , max - 3 ) + "..." ; int newEnd = end ; do { end = newEnd ; newEnd = text . indexOf ( ' ' , end + 1 ) ; if ( newEnd == - 1 ) newEnd = text . length ( ) ; } while ( textWidth ( text . substring ( 0 , newEnd ) + "..." ) < max ) ; return text . substring ( 0 , end ) + "..." ; }

Desde <a href="http://stackoverflow.com/a/3657496/3802890"> StackOverFlow </a>


public static Bucket createBucket  ( Experiment experiment ) { return createBucket ( experiment , false ) ; }

Crea un balde simple con solo valores requeridos establecidos.Este cubo no pertenece al grupo de control de forma predeterminada.El porcentaje de asignación es 1/3.


@ Override public void actionPerformed  ( ActionEvent ev ) { }


public static void println  ( int priority , String tag , String msg ) { println ( priority , tag , msg , null ) ; }

Instruye al logno que imprima los datos de registro proporcionados.Otros lognodes se pueden encadenar hasta el final del lognodo como se desee.


public void endContentModel  ( ) throws XNIException  { }


public static SM_SYSTEM_MESSAGE STR_MSG_COMBAT_OTHER_FRIENDLY_DODGE  ( String value0 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1240219 , value0 , value1 ) ; }


public grammaticalityEstimator ( String sCorpusDir , int iMinChar , int iMaxChar , int iMinWord , int iMaxWord , int iNeighbourhoodWindow , boolean bFlatDir ) { iMinCharNGram = iMinChar ; iMaxCharNGram = iMaxChar ; iMinWordNGram = iMinWord ; iMaxWordNGram = iMaxWord ; DistroDocs = new TreeMap < Integer , DistributionDocument > ( ) ; DistroWordDocs = new TreeMap < Integer , DistributionWordDocument > ( ) ; StringBuffer sb = new StringBuffer ( ) ; DocumentSet ds = new DocumentSet ( sCorpusDir , 1.0 ) ; ds . createSets ( bFlatDir ) ; Iterator iTexts = ds . getTrainingSet ( ) . iterator ( ) ; while ( iTexts . hasNext ( ) ) { CategorizedFileEntry cfeCur = ( CategorizedFileEntry ) iTexts . next ( ) ; try { BufferedReader bf = new BufferedReader ( new FileReader ( cfeCur . getFileName ( ) ) ) ; String sTmp ; while ( ( sTmp = bf . readLine ( ) ) != null ) sb . append ( sTmp ) ; bf . close ( ) ; } catch ( FileNotFoundException ex ) { ex . printStackTrace ( System . err ) ; } catch ( IOException ex ) { ex . printStackTrace ( System . err ) ; } sb . append ( ( char ) 0 ) ; } FullTextDataString = sb . toString ( ) ; for ( int iCnt = iMinCharNGram ; iCnt <= iMaxCharNGram ; iCnt ++ ) { DistroDocs . put ( iCnt , new DistributionDocument ( iNeighbourhoodWindow , iCnt ) ) ; } for ( int iCnt = iMinWordNGram ; iCnt <= iMaxWordNGram ; iCnt ++ ) { DistroWordDocs . put ( iCnt , new DistributionWordDocument ( iNeighbourhoodWindow , iCnt ) ) ; } }

Crea una nueva instancia de GramaticityStimator.


public void treeCollapsed  ( TreeExpansionEvent event ) { }

Llamado cuando se ha colapsado un artículo en el árbol.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_BoostHealEffect_ME_TO_B  ( String skillcaster , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200484 , skillcaster , skilltarget , skillname ) ; }

[% Skillcaster] ha impulsado la habilidad de recuperación [% SkillTarget] mediante el uso de [% de habilidad].


public void addToTimeDeadband  ( final SourceDataTag currentTag , final ValueUpdate update , final SourceDataTagQuality newSDQuality ) { if ( this . equipmentLogger . isDebugEnabled ( ) ) { this . equipmentLogger . debug ( format ( "addToTimeDeadband - entering addToTimeDeadband(%d).." , currentTag . getId ( ) ) ) ; } synchronized ( currentTag ) { long tagID = currentTag . getId ( ) ; SDTTimeDeadbandScheduler tagScheduler = this . sdtTimeDeadbandSchedulers . get ( tagID ) ; if ( tagScheduler == null ) { tagScheduler = createTagScheduler ( currentTag ) ; startSDTtimeDeadbandScheduler ( tagScheduler ) ; } else { if ( tagScheduler . isNewQualityStatus ( newSDQuality ) ) { tagScheduler . flushAndCancel ( ) ; tagScheduler = createTagScheduler ( currentTag ) ; startSDTtimeDeadbandScheduler ( tagScheduler ) ; } } this . dynamicTimeDeadbandFilterer . recordTag ( currentTag ) ; if ( tagScheduler . isScheduledForSending ( ) ) { this . equipmentLogger . debug ( "addToTimeDeadband - Sending time deadband filtered value to statistics module " + tagID ) ; ValueUpdate currentValue = new ValueUpdate ( currentTag . getCurrentValue ( ) . getValue ( ) , currentTag . getCurrentValue ( ) . getValueDescription ( ) , currentTag . getCurrentValue ( ) . getTimestamp ( ) . getTime ( ) ) ; if ( this . dynamicTimeDeadbandFilterer . isDynamicTimeDeadband ( currentTag ) ) { this . equipmentLogger . debug ( "Tag filtered through Dynamic time deadband filtering: '" + tagID + "'" ) ; this . equipmentSenderFilterModule . sendToFilterModuleByDynamicTimedeadbandFilterer ( currentTag , currentValue , FilterType . TIME_DEADBAND . getNumber ( ) ) ; } else { this . equipmentLogger . debug ( "Tag filtered through Static time deadband filtering: '" + tagID + "'" ) ; this . equipmentSenderFilterModule . sendToFilterModule ( currentTag , currentValue , FilterType . TIME_DEADBAND . getNumber ( ) ) ; } } currentTag . update ( update , newSDQuality ) ; this . equipmentLogger . debug ( "addToTimeDeadband - scheduling value update due to time-deadband filtering rule" ) ; tagScheduler . scheduleValueForSending ( ) ; } if ( this . equipmentLogger . isDebugEnabled ( ) ) { this . equipmentLogger . debug ( format ( "addToTimeDeadband - leaving addToTimeDeadband(%d)" , currentTag . getId ( ) ) ) ; } }

Agrega el valor de la etiqueta proporcionado al Tagscheduler de esta etiqueta.


private void addDependenciesForRequiredKeys  ( SetMultimap < NewBindingKey , NewDependencyInfo > result , Set < NewBindingKey > requiredKeys ) { while ( ! requiredKeys . isEmpty ( ) ) { NewBindingKey key = Iterables . getFirst ( requiredKeys , null ) ; Preconditions . checkNotNull ( key ) ; requiredKeys . remove ( key ) ; if ( result . containsKey ( key ) ) { continue ; } TypeName typeName = key . getTypeName ( ) ; if ( Utils . hasBuiltinBinding ( typeName ) ) { key = Utils . getElementKeyForBuiltinBinding ( key ) ; requiredKeys . add ( key ) ; continue ; } if ( Utils . isMapWithBuiltinValueType ( key ) ) { NewBindingKey peeledMapKey = Preconditions . checkNotNull ( Utils . peelMapWithBuiltinValue ( key ) ) ; requiredKeys . add ( peeledMapKey ) ; continue ; } ClassName className ; if ( typeName instanceof ClassName ) { className = ( ClassName ) typeName ; } else { Preconditions . checkState ( typeName instanceof ParameterizedTypeName , "Expect a %s but get %s" , ParameterizedTypeName . class , typeName ) ; ParameterizedTypeName parameterizedTypeName = ( ParameterizedTypeName ) typeName ; for ( TypeName parameter : parameterizedTypeName . typeArguments ) { Preconditions . checkState ( parameter instanceof ClassName || parameter instanceof ParameterizedTypeName , String . format ( "Unexpected parameter type %s for type %s." , parameter , typeName ) ) ; } NewDependencyInfo dependencyInfo = Utils . getDependencyInfoByGeneric ( result , key ) ; if ( dependencyInfo != null ) { requiredKeys . addAll ( dependencyInfo . getDependencies ( ) ) ; continue ; } else { className = ( ( ParameterizedTypeName ) typeName ) . rawType ; } } TypeElement classTypeElement = env . getElementUtils ( ) . getTypeElement ( Utils . getClassCanonicalName ( className ) ) ; Preconditions . checkNotNull ( classTypeElement , String . format ( "Class %s not found." , className ) ) ; Collection < NewDependencyInfo > dependencies = collectFromCtorInjectedClass ( classTypeElement ) ; if ( dependencies == null ) { messager . printMessage ( Kind . ERROR , String . format ( "Binding not found for %s" , key ) ) ; continue ; } NewDependencyInfo dependency = Iterables . getOnlyElement ( dependencies ) ; if ( typeName instanceof ParameterizedTypeName ) { Map < TypeVariableName , TypeName > parameterMap = Utils . getMapFromTypeVariableToSpecialized ( ( ParameterizedTypeName ) typeName , ( ParameterizedTypeName ) dependency . getDependant ( ) . getTypeName ( ) ) ; requiredKeys . addAll ( Utils . specializeIfNeeded ( dependency . getDependencies ( ) , parameterMap ) ) ; } else { requiredKeys . addAll ( dependency . getDependencies ( ) ) ; } checkOneDependency ( result , dependency ) ; addDependencyInfo ( result , dependency ) ; } }

Agregue las dependencias de las clases inyectadas de CTOR que se necesitan por obligatorios recursivamente a los resultados.


public DefaultRetryPolicy ( ) { this  ( DEFAULT_TIMEOUT_MS , DEFAULT_MAX_RETRIES , DEFAULT_BACKOFF_MULT ) ; }

Construye una nueva política de reintento utilizando los tiempos de espera predeterminados.


public synchronized VisualTree addTree  ( String group , Tree tree , Predicate filter ) { return addTree ( group , tree , filter , VisualItem . SCHEMA , VisualItem . SCHEMA ) ; }

Agrega un árbol a esta visualización, utilizando el nombre del grupo de datos dado.Se creará una abstracción visual de los datos y se registrará con la visualización.Se lanzará una excepción si el nombre del grupo ya está en uso.


public static final SM_SYSTEM_MESSAGE STR_MSG_INSTANCE_DUNGEON_OPENED_FOR_SELF  ( int worldId ) { return new SM_SYSTEM_MESSAGE ( 1400640 , worldId ) ; }

Has introducido% worldname0.Sus aliados están prohibidos de unirse a usted.


public static void d  ( String tag , String msg , Throwable throwable ) { if ( sLevel > LEVEL_DEBUG ) { return ; } Log . d ( tag , msg , throwable ) ; }

Enviar un mensaje de registro de depuración


public PhotosSearchQuery lat  ( Float value ) { return unsafeParam ( "lat" , value ) ; }

Latitud geográfica, en grados (de "-90" a "90").


public void sortBy  ( Comparator < T > comparator ) { Collections . sort ( data , null ) ; }


public boolean blocksForInput  ( ConversationContext context ) { return true ; }

Asegura que el mensaje espera que el usuario proporcione información.


public void actionPerformed  ( ActionEvent ev ) { ClusterViewer viewer = getViewer ( ) ; String name = Basic . replaceFileSuffix ( ( ( Director ) getDir ( ) ) . getDocument ( ) . getMeganFile ( ) . getName ( ) , ".nex" ) ; File lastOpenFile = new File ( name ) ; String lastDir = ProgramProperties . get ( MeganProperties . NETWORK_DIRECTORY , "" ) ; if ( lastDir . length ( ) > 0 ) { lastOpenFile = new File ( lastDir , lastOpenFile . getName ( ) ) ; } getDir ( ) . notifyLockInput ( ) ; File file = ChooseFileDialog . chooseFileToSave ( viewer . getFrame ( ) , lastOpenFile , new TextFileFilter ( ) , new NexusFileFilter ( ) , ev , "Save as Nexus file" , ".nexus" ) ; getDir ( ) . notifyUnlockInput ( ) ; if ( file != null ) { execute ( "export data=distances file='" + file . getPath ( ) + "' replace=true;" ) ; ProgramProperties . put ( MeganProperties . NETWORK_DIRECTORY , file . getParent ( ) ) ; } }


public static String encode  ( byte [ ] binaryData ) { if ( binaryData == null ) { return null ; } int lengthDataBits = binaryData . length * EIGHTBIT ; if ( lengthDataBits == 0 ) { return "" ; } int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP ; int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP ; int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets ; char encodedData [ ] = null ; encodedData = new char [ numberQuartet * 4 ] ; byte k = 0 , l = 0 , b1 = 0 , b2 = 0 , b3 = 0 ; int encodedIndex = 0 ; int dataIndex = 0 ; for ( int i = 0 ; i < numberTriplets ; i ++ ) { b1 = binaryData [ dataIndex ++ ] ; b2 = binaryData [ dataIndex ++ ] ; b3 = binaryData [ dataIndex ++ ] ; l = ( byte ) ( b2 & 0x0f ) ; k = ( byte ) ( b1 & 0x03 ) ; byte val1 = ( ( b1 & SIGN ) == 0 ) ? ( byte ) ( b1 >> 2 ) : ( byte ) ( ( b1 ) >> 2 ^ 0xc0 ) ; byte val2 = ( ( b2 & SIGN ) == 0 ) ? ( byte ) ( b2 >> 4 ) : ( byte ) ( ( b2 ) >> 4 ^ 0xf0 ) ; byte val3 = ( ( b3 & SIGN ) == 0 ) ? ( byte ) ( b3 >> 6 ) : ( byte ) ( ( b3 ) >> 6 ^ 0xfc ) ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ val1 ] ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ val2 | ( k << 4 ) ] ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ ( l << 2 ) | val3 ] ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ b3 & 0x3f ] ; } if ( fewerThan24bits == EIGHTBIT ) { b1 = binaryData [ dataIndex ] ; k = ( byte ) ( b1 & 0x03 ) ; byte val1 = ( ( b1 & SIGN ) == 0 ) ? ( byte ) ( b1 >> 2 ) : ( byte ) ( ( b1 ) >> 2 ^ 0xc0 ) ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ val1 ] ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ k << 4 ] ; encodedData [ encodedIndex ++ ] = PAD ; encodedData [ encodedIndex ++ ] = PAD ; } else if ( fewerThan24bits == SIXTEENBIT ) { b1 = binaryData [ dataIndex ] ; b2 = binaryData [ dataIndex + 1 ] ; l = ( byte ) ( b2 & 0x0f ) ; k = ( byte ) ( b1 & 0x03 ) ; byte val1 = ( ( b1 & SIGN ) == 0 ) ? ( byte ) ( b1 >> 2 ) : ( byte ) ( ( b1 ) >> 2 ^ 0xc0 ) ; byte val2 = ( ( b2 & SIGN ) == 0 ) ? ( byte ) ( b2 >> 4 ) : ( byte ) ( ( b2 ) >> 4 ^ 0xf0 ) ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ val1 ] ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ val2 | ( k << 4 ) ] ; encodedData [ encodedIndex ++ ] = lookUpBase64Alphabet [ l << 2 ] ; encodedData [ encodedIndex ++ ] = PAD ; } return new String ( encodedData ) ; }

Codifica los octectores hexagonales en la base64


private void addFile  ( String name ) throws FileNotFoundException  { Path pathPath = Paths . get ( path ) ; FileTreeNode node = new FileTreeNode ( pathPath , name ) ; this . add ( node ) ; FileHandlerInterface handler = fileHandlerMap . get ( ExternalFilenames . getFileExtension ( name ) ) ; if ( handler != null ) { if ( handler . populate ( inputInterface , treeModel , node ) ) { node . isDir = true ; } } }


public static void addDefaultResource  ( String name ) { ArrayList < Configuration > toReload ; synchronized ( Configuration . class ) { if ( defaultResources . contains ( name ) ) { return ; } defaultResources . add ( name ) ; toReload = new ArrayList < > ( REGISTRY . size ( ) ) ; toReload . addAll ( REGISTRY . keySet ( ) ) ; } for ( Configuration conf : toReload ) { if ( conf . loadDefaults ) { conf . reloadConfiguration ( ) ; } } }

Añadir un recurso predeterminado.Los recursos se cargan en el orden de los recursos agregados.


public void configInterceptor  ( InterceptorLoader interceptorLoader ) { }

Config Interceptor aplicado a todas las acciones.


private boolean shouldRenderSymbol  ( Style style , FeatureTypeStyle ftsToRender , Rule ruleToRender ) { if ( ruleToRender == null ) { return true ; } for ( FeatureTypeStyle fts : style . featureTypeStyles ( ) ) { if ( fts == ftsToRender ) { for ( Rule rule : fts . rules ( ) ) { if ( rule == ruleToRender ) { return true ; } } } } return false ; }


private static String newUniquePath  ( File location ) { if ( ! location . exists ( ) ) { return location . getAbsolutePath ( ) ; } String name = location . getName ( ) ; File directory = location . getParentFile ( ) ; int tries = 0 ; while ( true ) { String candidateName = String . format ( "%s-%02d" , name , tries ) ; File candidateFile = new File ( directory , candidateName ) ; if ( ! candidateFile . exists ( ) ) { return candidateFile . getAbsolutePath ( ) ; } tries ++ ; } }

Devuelve una ruta de archivo única al agregar números hasta que se encuentre una no colisión.


public UnmatchedToken ( int line , int position , String token ) { this . line = line ; this . position = position ; this . token = token ; }


void add  ( ) throws RepoException , IOException  { ExcludesFinder visitor = new ExcludesFinder ( repo . getGitDir ( ) , destinationFiles ) ; Files . walkFileTree ( repo . getWorkTree ( ) , visitor ) ; int size = 0 ; List < String > current = new ArrayList < > ( ) ; for ( String path : visitor . excluded ) { current . add ( path ) ; size += path . length ( ) ; if ( size > 6 * 1024 ) { repo . add ( ) . force ( ) . files ( current ) . run ( ) ; current = new ArrayList < > ( ) ; size = 0 ; } } if ( ! current . isEmpty ( ) ) { repo . add ( ) . force ( ) . files ( current ) . run ( ) ; } for ( String addBackSubmodule : addBackSubmodules ) { repo . simpleCommand ( "reset" , "--" , "--quiet" , addBackSubmodule ) ; repo . add ( ) . force ( ) . files ( ImmutableList . of ( addBackSubmodule ) ) . run ( ) ; } }

Agrega todos los archivos y submódulos excluidos.


public void close  ( ) throws IOException  { if ( io != null ) { try { io . close ( ) ; } finally { io = null ; } } }

Cierre el Readerwriter / Writer, si está abierto


public Boolean isAutoSubscribe  ( ) { return autoSubscribe ; }

Obtiene el valor de la propiedad Autosubscribe.


@ RequestMapping ( method = RequestMethod . POST , value = "/api/drops/import" ) public ImportDropConfig importDrop  ( @ RequestBody ImportDropConfig importDropConfig ) throws Exception { PollableFuture importDropFuture = dropService . importDrop ( importDropConfig . getDropId ( ) , importDropConfig . getStatus ( ) , PollableTask . INJECT_CURRENT_TASK ) ; importDropConfig . setPollableTask ( importDropFuture . getPollableTask ( ) ) ; return importDropConfig ; }

WS para comenzar a volver a importar una caída


public static void main  ( String [ ] args ) { SpringApplication . run ( JBotApplication . class , args ) ; }

Punto de entrada de la aplicación.Ejecute este método para iniciar los bots de muestra, pero no olvide agregar los tokens correctos en el archivo Application.Properties.


protected NodeIterator ( DirectedGraph graph , boolean showLeafNodes , boolean showDecisionNodes , boolean showDirectedGraphNodes ) { this ( graph . getRootNode ( ) , showLeafNodes , showDecisionNodes , showDirectedGraphNodes ) ; }

Iterar en todos los nodos en el gráfico.


@ SafeVarargs public static SimplifiedIntervalList simplifyIntervals  ( Collection < Interval > ... intervals ) { Stream < Interval > allIntervals = Stream . empty ( ) ; for ( Collection < Interval > intervalCollection : intervals ) { allIntervals = Stream . concat ( allIntervals , intervalCollection . stream ( ) ) ; } return allIntervals . sorted ( null ) . collect ( getCollector ( ) ) ; }

Toma una o más listas de intervalos, y los combina en una sola lista ordenada con el número mínimo de intervalos necesarios para capturar exactamente los mismos instantes que los intervalos originales.<p> Si los subintervals de la recolección de entrada se apoyan o se superponen, se reemplazarán con un intervalo único y combinado.<p> Ejemplos: <ul> <li> ['2014/2017', '2015/2020'] se combinará en ['2014/2020'] <li> ['2015/2016', '2016/2017']se combinará en ['2015/2017] <LI> [' 2015/2016 ',' 2013/2014 '] se clasificará en [' 2013/2014 ',' 2015/2016 '] <LI> [' 2015/2015 ', '2015/2016', '2012/2013'] se clasificará y se combinará a ['2012/2013', '2015/2016'] </ ul>


public void removeEquipment  ( int pieceIndex ) { removeEquipment ( pieceIndex , true ) ; }

Elimina el equipo en la ubicación especificada.


public boolean hasSequenceParameter  ( SequenceContextParameters seqParameter , ContextInfo contextInfo ) { return hasTemplateParameter ( new TemplateParameter ( TemplateParameterContext . SEQUENCE , seqParameter . getName ( ) ) , contextInfo ) ; }

Si un parámetro de secuencia dado se define en el contexto.


public void testAttachmentEntityEventsStandaloneTask  ( ) throws Exception  { if ( processEngineConfiguration . getHistoryLevel ( ) . isAtLeast ( HistoryLevel . ACTIVITY ) ) { Task task = null ; try { task = taskService . newTask ( ) ; taskService . saveTask ( task ) ; assertNotNull ( task ) ; Attachment attachment = taskService . createAttachment ( "test" , task . getId ( ) , null , "attachment name" , "description" , "http://activiti.org" ) ; assertEquals ( 2 , listener . getEventsReceived ( ) . size ( ) ) ; ActivitiEntityEvent event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; assertNull ( event . getProcessInstanceId ( ) ) ; assertNull ( event . getExecutionId ( ) ) ; assertNull ( event . getProcessDefinitionId ( ) ) ; Attachment attachmentFromEvent = ( Attachment ) event . getEntity ( ) ; assertEquals ( attachment . getId ( ) , attachmentFromEvent . getId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 1 ) ; assertEquals ( ActivitiEventType . ENTITY_INITIALIZED , event . getType ( ) ) ; listener . clearEventsReceived ( ) ; attachment = taskService . createAttachment ( "test" , task . getId ( ) , null , "attachment name" , "description" , new ByteArrayInputStream ( "test" . getBytes ( ) ) ) ; assertEquals ( 2 , listener . getEventsReceived ( ) . size ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; assertNull ( event . getProcessInstanceId ( ) ) ; assertNull ( event . getExecutionId ( ) ) ; assertNull ( event . getProcessDefinitionId ( ) ) ; attachmentFromEvent = ( Attachment ) event . getEntity ( ) ; assertEquals ( attachment . getId ( ) , attachmentFromEvent . getId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 1 ) ; assertEquals ( ActivitiEventType . ENTITY_INITIALIZED , event . getType ( ) ) ; listener . clearEventsReceived ( ) ; attachment = taskService . getAttachment ( attachment . getId ( ) ) ; attachment . setDescription ( "Description" ) ; taskService . saveAttachment ( attachment ) ; assertEquals ( 1 , listener . getEventsReceived ( ) . size ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ENTITY_UPDATED , event . getType ( ) ) ; assertNull ( event . getProcessInstanceId ( ) ) ; assertNull ( event . getExecutionId ( ) ) ; assertNull ( event . getProcessDefinitionId ( ) ) ; attachmentFromEvent = ( Attachment ) event . getEntity ( ) ; assertEquals ( attachment . getId ( ) , attachmentFromEvent . getId ( ) ) ; assertEquals ( "Description" , attachmentFromEvent . getDescription ( ) ) ; listener . clearEventsReceived ( ) ; taskService . deleteAttachment ( attachment . getId ( ) ) ; assertEquals ( 1 , listener . getEventsReceived ( ) . size ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ENTITY_DELETED , event . getType ( ) ) ; assertNull ( event . getProcessInstanceId ( ) ) ; assertNull ( event . getExecutionId ( ) ) ; assertNull ( event . getProcessDefinitionId ( ) ) ; attachmentFromEvent = ( Attachment ) event . getEntity ( ) ; assertEquals ( attachment . getId ( ) , attachmentFromEvent . getId ( ) ) ; } finally { if ( task != null && task . getId ( ) != null ) { taskService . deleteTask ( task . getId ( ) ) ; historyService . deleteHistoricTaskInstance ( task . getId ( ) ) ; } } } }

Prueba Crear, actualizar y eliminar eventos de usuarios.


static public void softmax  ( float [ ] scores ) { float sum = 0 ; for ( int i = 0 ; i < scores . length ; i ++ ) { scores [ i ] = ( float ) FastMath . exp ( scores [ i ] ) ; sum += scores [ i ] ; } for ( int i = 0 ; i < scores . length ; i ++ ) scores [ i ] /= sum ; }

Transforme las puntuaciones en la regresión de SoftMax.


public Fraction ( double value , int maxDenominator ) throws FractionConversionException { this ( value , 0 , maxDenominator , 100 ) ; }

Cree una fracción dada el valor doble y el denominador máximo.<p> Referencias: <ul> <li> <a href="http://mathworld.wolfram.com/continuedfraction.html"> Fracción continua </a> Ecuaciones (11) y (22) - (26) </ li> </ ul> </ p>


public boolean approxEquals  ( R1Interval y , double maxError ) { if ( isEmpty ( ) ) { return y . getLength ( ) <= maxError ; } if ( y . isEmpty ( ) ) { return getLength ( ) <= maxError ; } return Math . abs ( y . lo ( ) - lo ( ) ) + Math . abs ( y . hi ( ) - hi ( ) ) <= maxError ; }

Devuelva VERDADERO si la longitud de la diferencia simétrica entre los dos intervalos es la mayor cantidad de la tolerancia dada.


public static double polynomialSquaredDistance  ( float [ ] coeffs1 , float [ ] coeffs2 ) { if ( coeffs1 == null || coeffs2 == null ) throw new NullPointerException ( "Received null argument" ) ; if ( coeffs1 . length != coeffs2 . length ) throw new IllegalArgumentException ( "Can only compare polynomials with same order" ) ; int order = coeffs1 . length - 1 ; double [ ] a = new double [ coeffs1 . length ] ; for ( int i = 0 ; i < a . length ; i ++ ) { a [ i ] = coeffs1 [ order - i ] - coeffs2 [ order - i ] ; } return integrateSquared ( order , a ) ; }

Calcule la integral de la diferencia cuadrada entre dos polinomios del mismo orden.Más precisamente, esto devolverá la integral de 0 a 1 del cuadrado de la diferencia entre las dos funciones.<p /> Esto implementa la solución algebraica propuesta por Maxima del siguiente comando: <CÓDIGO> Expandir (integrar (SUM (SUM (I] * x ** i, i, 0, orden)) ** 2, x,0, 1)); </ código>, con la orden variada de 0 a 4. Orden de aumento por 1 agrega (orden + 1) sumandos.


@ Override public void clear  ( ) { rowMap . clear ( ) ; }

Borra todas las filas de esta vista, dejando la estructura en su lugar.


public CannotJoinException ( String desc ) { super ( desc ) ; }

Construye una instancia con un mensaje de detalle.


public VideoSearchQuery date  ( Integer value ) { return unsafeParam ( "date" , value ) ; }


protected void notifyModelChanged  ( EpoxyModel < ? > model ) { int index = getModelPosition ( model ) ; if ( index != - 1 ) { notifyItemChanged ( index ) ; } }

Notifique que el modelo dado ha cambiado sus datos.Solo se debe llamar si el modelo retuvo la misma posición.


public WallReportPostQuery reportPost  ( UserActor actor , int ownerId , int postId ) { return new WallReportPostQuery ( getClient ( ) , actor , ownerId , postId ) ; }

Informes (envía una queja sobre) una publicación en una pared de usuario o pared comunitaria.


public void train  ( Set < String > sFileNames ) { Iterator < String > iFile = sFileNames . iterator ( ) ; while ( iFile . hasNext ( ) ) { String sText = utils . loadFileToString ( iFile . next ( ) ) ; train ( sText ) ; } }

Entrena las estadísticas del chunker de un conjunto de archivos dado.


public void replaceLineAt  ( int pos , String newLines ) throws BadLocationException { Element e = getParagraphElement ( pos ) ; replace ( e . getStartOffset ( ) , getElementLength ( e ) , newLines , null ) ; }

Reemplace la línea en posición dada con la cadena dada, que puede abarcar múltiples líneas


public String stringValue  ( ) { if ( actualValue == null ) { return normalizedValue ; } else { return actualValue . toString ( ) ; } }

Devolver una representación de cadena del valor.Si hay un valor real, use TOSTRING;De lo contrario, use el valor normalizado.


private List < View > addView  ( View view , List < View > cache ) { if ( cache == null ) { cache = new LinkedList < View > ( ) ; } cache . add ( view ) ; return cache ; }

Agrega vista al caché especificado.Crea una lista de caché si es nulo.


public int computeId  ( BitSet activeMatches , IReadBlock readBlock ) { if ( readBlock . getNumberOfMatches ( ) == 0 ) return IdMapper . NOHITS_ID ; if ( activeMatches . cardinality ( ) > 0 ) { boolean hasDisabledMatches = false ; int numberOfAddresses = 0 ; for ( int i = activeMatches . nextSetBit ( 0 ) ; i != - 1 ; i = activeMatches . nextSetBit ( i + 1 ) ) { final IMatchBlock matchBlock = readBlock . getMatchBlock ( i ) ; final int id = matchBlock . getId ( cName ) ; if ( id > 0 ) { String address = fullTree . getAddress ( id ) ; if ( address != null ) { if ( numberOfAddresses >= addresses . length ) { String [ ] tmp = new String [ 2 * addresses . length ] ; System . arraycopy ( addresses , 0 , tmp , 0 , addresses . length ) ; addresses = tmp ; } addresses [ numberOfAddresses ++ ] = address ; } } else hasDisabledMatches = true ; } if ( numberOfAddresses == 0 && hasDisabledMatches ) { for ( int i = activeMatches . nextSetBit ( 0 ) ; i != - 1 ; i = activeMatches . nextSetBit ( i + 1 ) ) { final IMatchBlock matchBlock = readBlock . getMatchBlock ( i ) ; final int id = matchBlock . getId ( cName ) ; if ( id > 0 ) { String address = fullTree . getAddress ( id ) ; if ( address != null ) { if ( numberOfAddresses >= addresses . length ) { String [ ] tmp = new String [ 2 * addresses . length ] ; System . arraycopy ( addresses , 0 , tmp , 0 , addresses . length ) ; addresses = tmp ; } addresses [ numberOfAddresses ++ ] = address ; } } } } if ( numberOfAddresses > 0 ) { final String address = LCAAddressing . getCommonPrefix ( addresses , numberOfAddresses , true ) ; final int id = fullTree . getAddress2Id ( address ) ; if ( id > 0 ) { return id ; } } } return IdMapper . UNASSIGNED_ID ; }

Determine la ID de Taxon de una Leer de sus coincidencias