signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class BytecodeCompiler { /** * Compiles all the templates in the given registry to a jar file written to the given output
* stream .
* < p > If errors are encountered , the error reporter will be updated and we will return . The
* contents of any data written to the sink at that point are undefined .
* @... | ErrorReporter . Checkpoint checkpoint = reporter . checkpoint ( ) ; if ( reporter . errorsSince ( checkpoint ) ) { return ; } CompiledTemplateRegistry compilerRegistry = new CompiledTemplateRegistry ( registry ) ; if ( reporter . errorsSince ( checkpoint ) ) { return ; } try ( final SoyJarFileWriter writer = new SoyJar... |
public class SessionData { /** * update LobManager user counts , delete lobs that have no usage */
public void updateLobUsage ( boolean commit ) { } } | if ( ! hasLobOps ) { return ; } hasLobOps = false ; if ( commit ) { for ( int i = 0 ; i < createdLobs . size ( ) ; i ++ ) { long lobID = createdLobs . get ( i ) ; int delta = lobUsageCount . get ( lobID , 0 ) ; if ( delta == 1 ) { lobUsageCount . remove ( lobID ) ; createdLobs . remove ( i ) ; i -- ; } else if ( ! sess... |
public class Base64 { /** * Decodes all of the provided data , starting at inPos , for inAvail bytes . Should be called at least twice : once with the
* data to decode , and once with inAvail set to " - 1 " to alert decoder that EOF has been reached . The " - 1 " call is not
* necessary when decoding , but it doesn... | if ( eof ) { return ; } if ( inAvail < 0 ) { eof = true ; } for ( int i = 0 ; i < inAvail ; i ++ ) { ensureBufferSize ( decodeSize ) ; byte b = in [ inPos ++ ] ; if ( b == PAD ) { // We ' re done .
eof = true ; break ; } else { if ( b >= 0 && b < DECODE_TABLE . length ) { int result = DECODE_TABLE [ b ] ; if ( result >... |
public class DataSetEditorWorkflowFactory { /** * Obtain the bean for creating ( editing basic attributes to be able to perform a lookup ) a data set definition for a given type .
* @ param type The data set definition provider type to edit the basic attributes .
* @ return The workflow instance . */
public DataSet... | final boolean isSQL = type != null && DataSetProviderType . SQL . equals ( type ) ; final boolean isBean = type != null && DataSetProviderType . BEAN . equals ( type ) ; final boolean isCSV = type != null && DataSetProviderType . CSV . equals ( type ) ; final boolean isEL = type != null && DataSetProviderType . ELASTIC... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcMassPerLengthMeasure ( ) { } } | if ( ifcMassPerLengthMeasureEClass == null ) { ifcMassPerLengthMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 837 ) ; } return ifcMassPerLengthMeasureEClass ; |
public class CommerceShippingFixedOptionRelLocalServiceUtil { /** * Adds the commerce shipping fixed option rel to the database . Also notifies the appropriate model listeners .
* @ param commerceShippingFixedOptionRel the commerce shipping fixed option rel
* @ return the commerce shipping fixed option rel that was... | return getService ( ) . addCommerceShippingFixedOptionRel ( commerceShippingFixedOptionRel ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcBeam ( ) { } } | if ( ifcBeamEClass == null ) { ifcBeamEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 37 ) ; } return ifcBeamEClass ; |
public class YParser { /** * syck _ set _ model */
public static void setModel ( IRubyObject p , IRubyObject input , IRubyObject model ) { } } | Ruby runtime = p . getRuntime ( ) ; Parser parser = ( Parser ) p . dataGetStructChecked ( ) ; parser . handler ( new RubyLoadHandler ( runtime , ( ( YAMLExtra ) runtime . getModule ( "YAML" ) . dataGetStruct ( ) ) ) ) ; if ( model == runtime . newSymbol ( "Generic" ) ) { p . callMethod ( runtime . getCurrentContext ( )... |
public class RestClientUtil { /** * 并行检索索引所有数据
* @ param path
* @ param scrollHandler 每批数据处理方法
* @ param type
* @ param max 并行度 , 线程数
* @ param sliceScroll
* @ param < T >
* @ return
* @ throws ElasticSearchException */
protected < T > ESDatas < T > _slice ( String path , ScrollHandler < T > scrollHandl... | long starttime = System . currentTimeMillis ( ) ; // scroll slice分页检索
// final CountDownLatch countDownLatch = new CountDownLatch ( max ) ; / / 线程任务完成计数器 , 每个线程对应一个sclice , 每运行完一个slice任务 , countDownLatch计数减去1
final String _path = path . indexOf ( '?' ) < 0 ? new StringBuilder ( ) . append ( path ) . append ( "?scroll="... |
public class CmsSearchManager { /** * Returns an unmodifiable list of all configured < code > { @ link I _ CmsSearchIndex } < / code > instances . < p >
* @ return an unmodifiable list of all configured < code > { @ link I _ CmsSearchIndex } < / code > instances */
public List < CmsSolrIndex > getSearchIndexesSolr ( ... | List < CmsSolrIndex > indexes = new ArrayList < CmsSolrIndex > ( ) ; for ( I_CmsSearchIndex index : m_indexes ) { if ( index instanceof CmsSolrIndex ) { indexes . add ( ( CmsSolrIndex ) index ) ; } } return Collections . unmodifiableList ( indexes ) ; |
public class XmlUtil { /** * Converts the given { @ link NodeList } to a { @ link String } . */
public static String nodeListToString ( NodeList nodeList ) { } } | StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < nodeList . getLength ( ) ; i ++ ) { Node node = nodeList . item ( i ) ; sb . append ( nodeToString ( node ) ) ; } return sb . toString ( ) ; |
public class LevelsCurve { /** * Set curves .
* @ param curveRed Red curve .
* @ param curveGreen Green curve .
* @ param curveBlue Blue curve . */
public void setCurve ( Curve curveRed , Curve curveGreen , Curve curveBlue ) { } } | this . curveRed = curveRed ; this . curveGreen = curveGreen ; this . curveBlue = curveBlue ; |
public class SizeLimitableBlockingQueue { /** * / * ( non - Javadoc )
* @ see java . util . Queue # poll ( ) */
@ Override public E poll ( ) { } } | E e = queue . poll ( ) ; if ( e != null ) { signalSizeReduced ( ) ; } return e ; |
public class VersionHistoryImpl { /** * { @ inheritDoc } */
public Version getVersion ( String versionName ) throws VersionException , RepositoryException { } } | checkValid ( ) ; return version ( versionName , true ) ; |
public class HadoopSerialization { /** * Deserialize an object using Hadoop serialization from a byte array . The
* object cannot be null . */
public < T > T deser ( Object obj , byte [ ] array , int offset , int length ) throws IOException { } } | Map < Class , Deserializer > deserializers = cachedDeserializers . get ( ) ; Deserializer deSer = deserializers . get ( obj . getClass ( ) ) ; if ( deSer == null ) { deSer = serialization . getDeserializer ( obj . getClass ( ) ) ; deserializers . put ( obj . getClass ( ) , deSer ) ; } DataInputBuffer baIs = cachedInput... |
public class ContextManager { /** * Returns LDAP environment containing specified URL sequence .
* @ param type Single or sequence
* @ param startingURL Starting URL
* @ return Environment containing specified URL sequence */
@ SuppressWarnings ( "unchecked" ) private Hashtable < String , Object > getEnvironment ... | Hashtable < String , Object > env = new Hashtable < String , Object > ( iEnvironment ) ; List < String > urlList = ( List < String > ) env . remove ( ENVKEY_URL_LIST ) ; int numURLs = urlList . size ( ) ; // get active URL index
int startingURLIndex = getURLIndex ( startingURL , urlList ) ; // generate the sequence
Str... |
public class ModuleEnvironments { /** * Update an environment .
* @ param environment environment
* @ return { @ link CMAEnvironment } result instance
* @ throws IllegalArgumentException if environment is null .
* @ throws IllegalArgumentException if environment ' s name is null .
* @ throws IllegalArgumentEx... | assertNotNull ( environment , "environment" ) ; assertNotNull ( environment . getName ( ) , "environment.name" ) ; final String environmentId = getResourceIdOrThrow ( environment , "environment id" ) ; final Integer version = getVersionOrThrow ( environment , "update" ) ; final String spaceId = getSpaceIdOrThrow ( envi... |
public class ModelsImpl { /** * Delete an entity role .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param entityId The entity ID .
* @ param roleId The entity role Id .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to... | return deletePrebuiltEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , roleId ) . map ( new Func1 < ServiceResponse < OperationStatus > , OperationStatus > ( ) { @ Override public OperationStatus call ( ServiceResponse < OperationStatus > response ) { return response . body ( ) ; } } ) ; |
public class AmazonSageMakerWaiters { /** * Builds a TrainingJobCompletedOrStopped waiter by using custom parameters waiterParameters and other parameters
* defined in the waiters specification , and then polls until it determines whether the resource entered the desired
* state or not , where polling criteria is b... | return new WaiterBuilder < DescribeTrainingJobRequest , DescribeTrainingJobResult > ( ) . withSdkFunction ( new DescribeTrainingJobFunction ( client ) ) . withAcceptors ( new TrainingJobCompletedOrStopped . IsCompletedMatcher ( ) , new TrainingJobCompletedOrStopped . IsStoppedMatcher ( ) , new TrainingJobCompletedOrSto... |
public class CollapseProperties { /** * Warns about any references to " this " in the given FUNCTION . The function
* is getting collapsed , so the references will change . */
private void checkForHosedThisReferences ( Node function , JSDocInfo docInfo , final Name name ) { } } | // A function is getting collapsed . Make sure that if it refers to " this " ,
// it must be a constructor , interface , record , arrow function , or documented with @ this .
boolean isAllowedToReferenceThis = ( docInfo != null && ( docInfo . isConstructorOrInterface ( ) || docInfo . hasThisType ( ) ) ) || function . i... |
public class CommerceAccountOrganizationRelLocalServiceUtil { /** * Returns a range of all the commerce account organization rels .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are ... | return getService ( ) . getCommerceAccountOrganizationRels ( start , end ) ; |
public class ManagementLocksInner { /** * Deletes the management lock at the subscription level .
* To delete management locks , you must have access to Microsoft . Authorization / * or Microsoft . Authorization / locks / * actions . Of the built - in roles , only Owner and User Access Administrator are granted those... | return ServiceFuture . fromResponse ( deleteAtSubscriptionLevelWithServiceResponseAsync ( lockName ) , serviceCallback ) ; |
public class CombineFileInputFormat { /** * Add stats for a split type ( i . e node local splits ,
* rack local splits , etc . ) and keep a total count .
* @ param splitSize Size of the split
* @ param hostCount Hosts listed for this split
* @ param blockCount Blocks in this split */
private void addStatsForSpl... | SplitTypeStats splitTypeStats = splitTypeStatsMap . get ( splitType ) ; if ( splitTypeStats == null ) { splitTypeStats = new SplitTypeStats ( ) ; splitTypeStatsMap . put ( splitType , splitTypeStats ) ; } splitTypeStats . addSplit ( splitSize , hostCount , blockCount ) ; // Add all splits to the ALL split type
if ( spl... |
public class Iterate { /** * Returns a new { @ code char } collection with the results of applying the specified charFunction for each element of the iterable .
* Example using Java 8 lambda :
* < pre >
* MutableCharCollection chars =
* Iterate . < b > collectChar < / b > ( people , person - > person . getMiddl... | if ( iterable instanceof MutableCollection ) { return ( ( MutableCollection < T > ) iterable ) . collectChar ( charFunction ) ; } if ( iterable instanceof ArrayList ) { return ArrayListIterate . collectChar ( ( ArrayList < T > ) iterable , charFunction ) ; } if ( iterable instanceof List ) { return ListIterate . collec... |
public class CmsAliasBulkEditHelper { /** * Saves alias changes to the database . < p >
* @ param saveRequest an object containing the alias changes to save
* @ return a validation error if the alias data is invalid , or null otherwise
* @ throws CmsException if something goes wrong */
public CmsAliasEditValidati... | CmsAliasEditValidationReply reply = validateAliases ( saveRequest ) ; if ( m_hasErrors ) { return reply ; } else { List < CmsRewriteAliasTableRow > rewriteData = saveRequest . getRewriteData ( ) ; OpenCms . getAliasManager ( ) . saveRewriteAliases ( m_cms , m_cms . getRequestContext ( ) . getSiteRoot ( ) , convertRewri... |
public class DomainInformation { /** * answer a list of DomainObjectTypes stored in the domain graph
* @ return a list of DomainObjectTypes */
public List < DomainObjectType > getDomainObjectTypes ( ) { } } | List < DomainObjectType > resultList = new ArrayList < DomainObjectType > ( ) ; GrNode infoNode = loadDomainInfoNode ( ) ; GrProperty prop = infoNode . getProperty ( DomainInfoLabel2ClassProperty ) ; if ( prop != null ) { @ SuppressWarnings ( "unchecked" ) List < String > val = ( List < String > ) prop . getValue ( ) ;... |
public class TaxRate { /** * Updates an existing tax rate . */
@ Override public TaxRate update ( Map < String , Object > params ) throws StripeException { } } | return update ( params , ( RequestOptions ) null ) ; |
public class CounterFactory { /** * return the singleton CounterFactory instance .
* @ return a < code > CounterFactory < / code > value */
public static final CounterFactory instance ( ) { } } | if ( INSTANCE == null ) throw new IllegalStateException ( String . format ( "%s not initialized" , CounterFactory . class . getSimpleName ( ) ) ) ; return INSTANCE ; |
public class DirectoryServers { /** * Parser the server list .
* @ param servers
* the server list . */
private void parseServers ( List < String > servers ) { } } | if ( servers != null && servers . size ( ) > 0 ) { this . servers = new ArrayList < InetSocketAddress > ( ) ; for ( String server : servers ) { String [ ] ss = server . split ( ":" ) ; if ( ss . length == 2 ) { String host = ss [ 0 ] ; int port = 0 ; try { port = Integer . valueOf ( ss [ 1 ] ) ; } catch ( NumberFormatE... |
public class AttributeHelper { /** * Extract data from DeviceAttribute to a Short
* @ param deviceAttributeRead
* the DeviceAttribute attribute to read
* @ return Short , the result in Short format
* @ throws DevFailed */
public static Short extractToShort ( final DeviceAttribute deviceAttributeRead ) throws De... | final Object value = AttributeHelper . extract ( deviceAttributeRead ) ; Short argout = null ; if ( value instanceof Short ) { argout = ( Short ) value ; } else if ( value instanceof String ) { try { argout = Short . valueOf ( ( String ) value ) ; } catch ( final Exception e ) { Except . throw_exception ( "TANGO_WRONG_... |
public class lbpersistentsessions { /** * Use this API to clear lbpersistentsessions . */
public static base_response clear ( nitro_service client , lbpersistentsessions resource ) throws Exception { } } | lbpersistentsessions clearresource = new lbpersistentsessions ( ) ; clearresource . vserver = resource . vserver ; clearresource . persistenceparameter = resource . persistenceparameter ; return clearresource . perform_operation ( client , "clear" ) ; |
public class DefaultAppdynamicsClient { /** * Obtains the " Overall Application Performance " metrics for the current application from Appdynamics
* e . g . / controller / # / location = METRIC _ BROWSER & timeRange = last _ 15 _ minutes . BEFORE _ NOW . - 1 . - 1.15 & application = < APPID >
* Currently used by th... | Map < String , Long > overallMetrics = new HashMap < > ( ) ; try { String url = joinURL ( instanceUrl , String . format ( OVERALL_METRIC_PATH , application . getAppID ( ) , URLEncoder . encode ( OVERALL_SUFFIX , "UTF-8" ) , String . valueOf ( settings . getTimeWindow ( ) ) ) ) ; ResponseEntity < String > responseEntity... |
public class PermissionsInner { /** * Gets all permissions the caller has for a resource group .
* @ param resourceGroupName The name of the resource group to get the permissions for . The name is case insensitive .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observ... | return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < PermissionInner > > , Page < PermissionInner > > ( ) { @ Override public Page < PermissionInner > call ( ServiceResponse < Page < PermissionInner > > response ) { return response . body ( ) ; } } ) ; |
public class ScriptEngineImpl { /** * / / / / / calling other methods of the same class / / / / / */
@ Override public Object eval ( Reader reader , ScriptContext context ) throws ScriptException { } } | try { return eval ( IOUtil . toString ( reader ) , context ) ; } catch ( IOException ioe ) { throw toScriptException ( ioe ) ; } |
public class CacheFactory { /** * Copies the configuration and overlays it on top of the default settings . */
@ SuppressWarnings ( "PMD.AccessorMethodGeneration" ) private < K , V > CaffeineConfiguration < K , V > resolveConfigurationFor ( Configuration < K , V > configuration ) { } } | if ( configuration instanceof CaffeineConfiguration < ? , ? > ) { return new CaffeineConfiguration < > ( ( CaffeineConfiguration < K , V > ) configuration ) ; } CaffeineConfiguration < K , V > template = TypesafeConfigurator . defaults ( rootConfig ) ; if ( configuration instanceof CompleteConfiguration < ? , ? > ) { C... |
public class FastABOD { /** * Simpler kNN based , can use more indexing .
* @ param db Database
* @ param relation Data relation
* @ param ids IDs
* @ param abodvalues Score storage
* @ param minmaxabod Min / max storage
* @ return { @ code true } if kNN were available and usable . */
private boolean kNNABO... | DistanceQuery < V > dq = db . getDistanceQuery ( relation , SquaredEuclideanDistanceFunction . STATIC ) ; KNNQuery < V > knnq = db . getKNNQuery ( dq , DatabaseQuery . HINT_OPTIMIZED_ONLY ) ; boolean squared = true ; if ( knnq == null ) { dq = db . getDistanceQuery ( relation , EuclideanDistanceFunction . STATIC ) ; kn... |
public class ResponsePromise { /** * Add a promise to do when Response comes in
* @ param listener to add */
public void addListener ( IsSimplePromiseResponseHandler < T > listener ) { } } | if ( handlers == null ) { handlers = new LinkedList < > ( ) ; } handlers . add ( listener ) ; if ( response != null || exception != null ) { listener . onResponse ( this ) ; } |
public class PolicyComplianceStatus { /** * Details about problems with dependent services , such as AWS WAF or AWS Config , that are causing a resource to be
* non - compliant . The details include the name of the dependent service and the error message received that
* indicates the problem with the service .
* ... | setIssueInfoMap ( issueInfoMap ) ; return this ; |
public class ValidationViolationChecker { /** * Helper method doing the checking work .
* @ param givenViolations
* @ param expectedValidationViolations */
private static void checkViolations ( List < String > givenViolations , List < String > expectedValidationViolations ) { } } | /* * check if number of expected violations matches the given violations */
Assert . assertEquals ( String . format ( "number of expected validation violations (%s) does not match the number of given violations (%s)" , StringUtils . join ( expectedValidationViolations , LIST_DELIMITER ) , StringUtils . join ( givenViol... |
public class GuidedDecisionTableUpgradeHelper3 { /** * Convert the Default Values in the Decision Table model
* @ param source
* @ return The new DTModel */
public GuidedDecisionTable52 upgrade ( GuidedDecisionTable52 source ) { } } | final GuidedDecisionTable52 destination = source ; for ( BaseColumn column : source . getExpandedColumns ( ) ) { DTColumnConfig52 dtColumn = null ; if ( column instanceof MetadataCol52 ) { dtColumn = ( DTColumnConfig52 ) column ; } else if ( column instanceof AttributeCol52 ) { dtColumn = ( DTColumnConfig52 ) column ; ... |
public class ComponentFactory { /** * Factory method for create a new { @ link Form } .
* @ param < T >
* the generic type of the model
* @ param id
* the id
* @ param model
* the model
* @ return the { @ link Form } . */
public static < T > Form < T > newForm ( final String id , final IModel < T > model ... | final Form < T > form = new Form < > ( id , model ) ; form . setOutputMarkupId ( true ) ; return form ; |
public class JsonSerializationContext { /** * Trace an error and returns a corresponding exception .
* @ param value current value
* @ param cause cause of the error
* @ return a { @ link JsonSerializationException } if we wrap the exceptions , the cause otherwise */
public RuntimeException traceError ( Object va... | getLogger ( ) . log ( Level . SEVERE , "Error during serialization" , cause ) ; if ( wrapExceptions ) { return new JsonSerializationException ( cause ) ; } else { return cause ; } |
public class AutoDetector { /** * 加载非类路径资源
* @ param resource 资源路径
* @ param resourceLoader 资源自定义加载逻辑
* @ param resourcePaths 资源的所有路径 , 用于资源监控
* @ return 资源内容
* @ throws IOException */
private static List < String > loadNoneClasspathResource ( String resource , ResourceLoader resourceLoader , String resourceP... | List < String > result = new ArrayList < > ( ) ; Path path = Paths . get ( resource ) ; boolean exist = Files . exists ( path ) ; if ( ! exist ) { LOGGER . error ( "资源不存在:" + resource ) ; return result ; } boolean isDir = Files . isDirectory ( path ) ; if ( isDir ) { // 处理目录
result . addAll ( loadAndWatchDir ( path , r... |
public class AmazonGameLiftClient { /** * Updates metadata in a build record , including the build name and version . To update the metadata , specify the
* build ID to update and provide the new values . If successful , a build object containing the updated metadata is
* returned .
* < b > Learn more < / b >
*... | request = beforeClientExecution ( request ) ; return executeUpdateBuild ( request ) ; |
public class ApplicationOperations { /** * Lists the { @ link ApplicationSummary applications } in the Batch account .
* @ param additionalBehaviors A collection of { @ link BatchClientBehavior } instances that are applied to the Batch service request .
* @ return A list of { @ link ApplicationSummary } objects .
... | ApplicationListOptions options = new ApplicationListOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; return this . parentBatchClient . protocolLayer ( ) . applications ( ) . list ( options ) ; |
public class ISO9075 { /** * Returns true if < code > name . charAt ( location ) < / code > is the underscore character and the
* following character sequence is ' xHHHH _ ' where H is a hex digit .
* @ param name
* the name to check .
* @ param location
* the location to look at .
* @ throws ArrayIndexOutO... | if ( name . charAt ( location ) == '_' && name . length ( ) >= location + 6 ) { return name . charAt ( location + 1 ) == 'x' && HEX_DIGITS . indexOf ( name . charAt ( location + 2 ) ) != - 1 && HEX_DIGITS . indexOf ( name . charAt ( location + 3 ) ) != - 1 && HEX_DIGITS . indexOf ( name . charAt ( location + 4 ) ) != -... |
public class DeleteIdentitiesResult { /** * An array of UnprocessedIdentityId objects , each of which contains an ErrorCode and IdentityId .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setUnprocessedIdentityIds ( java . util . Collection ) } or
* { @ li... | if ( this . unprocessedIdentityIds == null ) { setUnprocessedIdentityIds ( new java . util . ArrayList < UnprocessedIdentityId > ( unprocessedIdentityIds . length ) ) ; } for ( UnprocessedIdentityId ele : unprocessedIdentityIds ) { this . unprocessedIdentityIds . add ( ele ) ; } return this ; |
public class TreeInfo { /** * Is there a constructor declaration in the given list of trees ? */
public static boolean hasConstructors ( List < JCTree > trees ) { } } | for ( List < JCTree > l = trees ; l . nonEmpty ( ) ; l = l . tail ) if ( isConstructor ( l . head ) ) return true ; return false ; |
public class LocalDateTime { /** * Returns a copy of this { @ code LocalDateTime } with the specified number of months added .
* This method adds the specified amount to the months field in three steps :
* < ol >
* < li > Add the input months to the month - of - year field < / li >
* < li > Check if the resulti... | LocalDate newDate = date . plusMonths ( months ) ; return with ( newDate , time ) ; |
public class SerializationUtils { /** * Deserialize a { @ link JsonNode } .
* @ param json
* @ param clazz
* @ return
* @ since 0.6.2 */
public static < T > T fromJson ( JsonNode json , Class < T > clazz ) { } } | return fromJson ( json , clazz , null ) ; |
public class RoaringBitmap { /** * Bitwise ANDNOT ( difference ) operation for the given range , rangeStart ( inclusive ) and rangeEnd
* ( exclusive ) . The provided bitmaps are * not * modified . This operation is thread - safe as long as
* the provided bitmaps remain unchanged .
* @ param x1 first bitmap
* @ ... | rangeSanityCheck ( rangeStart , rangeEnd ) ; RoaringBitmap rb1 = selectRangeWithoutCopy ( x1 , rangeStart , rangeEnd ) ; RoaringBitmap rb2 = selectRangeWithoutCopy ( x2 , rangeStart , rangeEnd ) ; return andNot ( rb1 , rb2 ) ; |
public class JSONHelpers { /** * Checks the supplied { @ link JSONObject } for a value mapped by an enum ; if it does not exist ,
* or is not an object value , the specified default value will be mapped to the enum . If the
* value does exist , but either ' x ' or ' y ' field is missing , the missing field ( s ) wi... | return putDefault ( json , e , defPoint , true ) ; |
public class Html5UpdateTool { /** * Removes the points from the contents of the specified attribute .
* @ param element
* element with the attribute to clean
* @ param attr
* attribute to clean */
private final void removePointsFromAttr ( final Element element , final String attr ) { } } | final String value ; // Content of the attribute
// Takes and clean the old attribute value
value = element . attr ( attr ) . replaceAll ( "\\." , "" ) ; // Sets the cleaned value
element . attr ( attr , value ) ; |
public class TextUtils { /** * Get normal forms of word or if can ' t retrieve normal form of word return same word
* @ param word Word
* @ return Normal forms */
@ NotNull public Set < String > getNormalForms ( @ NotNull String word , @ NotNull Language language ) { } } | com . fnklabs . metrics . Timer timer = MetricsFactory . getMetrics ( ) . getTimer ( MetricsType . TEXT_UTILS_GET_NORMAL_FORMS . name ( ) ) ; Set < String > normalForms = new HashSet < > ( ) ; try { Morphology morphology = MorphologyFactory . getMorphology ( language ) ; List < String > normalForms1 = morphology . getN... |
public class KeyVaultClientCustomImpl { /** * Gets the public part of a stored key . The get key operation is applicable to
* all key types . If the requested key is symmetric , then no key material is
* released in the response . Authorization : Requires the keys / get permission .
* @ param keyIdentifier
* Th... | KeyIdentifier id = new KeyIdentifier ( keyIdentifier ) ; return getKeyAsync ( id . vault ( ) , id . name ( ) , id . version ( ) == null ? "" : id . version ( ) , serviceCallback ) ; |
public class Math { /** * Returns the row standard deviations for a matrix . */
public static double [ ] rowSds ( double [ ] [ ] data ) { } } | double [ ] x = new double [ data . length ] ; for ( int i = 0 ; i < x . length ; i ++ ) { x [ i ] = sd ( data [ i ] ) ; } return x ; |
public class SpringApplication { /** * Sets the type of Spring { @ link ApplicationContext } that will be created . If not
* specified defaults to { @ link # DEFAULT _ SERVLET _ WEB _ CONTEXT _ CLASS } for web based
* applications or { @ link AnnotationConfigApplicationContext } for non web based
* applications .... | this . applicationContextClass = applicationContextClass ; this . webApplicationType = WebApplicationType . deduceFromApplicationContext ( applicationContextClass ) ; |
public class EsMarshalling { /** * Unmarshals the given map source into a bean .
* @ param source the source
* @ return the client version */
public static ClientVersionBean unmarshallClientVersion ( Map < String , Object > source ) { } } | if ( source == null ) { return null ; } ClientVersionBean bean = new ClientVersionBean ( ) ; bean . setVersion ( asString ( source . get ( "version" ) ) ) ; bean . setApikey ( asString ( source . get ( "apikey" ) ) ) ; bean . setStatus ( asEnum ( source . get ( "status" ) , ClientStatus . class ) ) ; bean . setCreatedB... |
public class SegmentHelper { /** * This method sends a WireCommand to delete a table segment .
* @ param tableName Qualified table name .
* @ param mustBeEmpty Flag to check if the table segment should be empty before deletion .
* @ param delegationToken The token to be presented to the segmentstore .
* @ param... | final CompletableFuture < Boolean > result = new CompletableFuture < > ( ) ; final Controller . NodeUri uri = getTableUri ( tableName ) ; final WireCommandType type = WireCommandType . DELETE_TABLE_SEGMENT ; final long requestId = ( clientRequestId == RequestTag . NON_EXISTENT_ID ) ? idGenerator . get ( ) : clientReque... |
public class PreflightRequestHandler { /** * TODO : parse and validate the headers */
private List < String > checkRequestHeaders ( HttpServletRequest request , JCorsConfig config ) { } } | @ SuppressWarnings ( "unchecked" ) Enumeration < String > requestHeadersHeaders = request . getHeaders ( CorsHeaders . ACCESS_CONTROL_REQUEST_HEADERS_HEADER ) ; List < String > requestHeaders = new ArrayList < String > ( ) ; while ( requestHeadersHeaders . hasMoreElements ( ) ) { String requestHeader = ( String ) reque... |
public class JCudnn { /** * The indices space is ignored for reduce ops other than min or max . */
public static int cudnnReduceTensor ( cudnnHandle handle , cudnnReduceTensorDescriptor reduceTensorDesc , Pointer indices , long indicesSizeInBytes , Pointer workspace , long workspaceSizeInBytes , Pointer alpha , cudnnTe... | return checkResult ( cudnnReduceTensorNative ( handle , reduceTensorDesc , indices , indicesSizeInBytes , workspace , workspaceSizeInBytes , alpha , aDesc , A , beta , cDesc , C ) ) ; |
public class SignalServiceMessageSender { /** * Send a call setup message to a single recipient .
* @ param recipient The message ' s destination .
* @ param message The call message .
* @ throws IOException */
public void sendCallMessage ( SignalServiceAddress recipient , Optional < UnidentifiedAccessPair > unid... | byte [ ] content = createCallContent ( message ) ; sendMessage ( recipient , getTargetUnidentifiedAccess ( unidentifiedAccess ) , System . currentTimeMillis ( ) , content , false ) ; |
public class ClassInfo { /** * Checks whether this class or one of its superclasses or interfaces has a method with the named annotation .
* @ param methodParameterAnnotationName
* The name of a method annotation .
* @ return true if this class or one of its superclasses or interfaces has a method with the named ... | for ( final ClassInfo ci : getOverrideOrder ( ) ) { if ( ci . hasDeclaredMethodParameterAnnotation ( methodParameterAnnotationName ) ) { return true ; } } return false ; |
public class OSQLQuery { /** * Delegates to the OQueryExecutor the query execution . */
@ SuppressWarnings ( "unchecked" ) public List < T > run ( final Object ... iArgs ) { } } | final ODatabaseRecord database = ODatabaseRecordThreadLocal . INSTANCE . get ( ) ; if ( database == null ) throw new OQueryParsingException ( "No database configured" ) ; setParameters ( iArgs ) ; return ( List < T > ) database . getStorage ( ) . command ( this ) ; |
public class ReferenceIndividualGroupService { /** * Returns a pre - existing < code > IEntityGroup < / code > or null if it does not exist . */
@ Override public IEntityGroup findGroup ( CompositeEntityIdentifier ent ) throws GroupsException { } } | return ( cacheInUse ( ) ) ? findGroupWithCache ( ent ) : primFindGroup ( ent . getLocalKey ( ) ) ; |
public class JedisSortedSet { /** * Returns the specified range of elements in the sorted set .
* The elements are considered to be ordered from the highest to the lowest score .
* Descending lexicographical order is used for elements with equal score .
* Both start and stop are zero - based inclusive indexes . T... | return doWithJedis ( new JedisCallable < Set < String > > ( ) { @ Override public Set < String > call ( Jedis jedis ) { return jedis . zrevrange ( getKey ( ) , start , end ) ; } } ) ; |
public class TransactionSynchronizationRegistryImpl { /** * { @ inheritDoc } */
public void putResource ( Object key , Object value ) { } } | TransactionImpl tx = registry . getTransaction ( ) ; tx . putResource ( key , value ) ; |
public class ServletRemoveAttributeTask { /** * { @ inheritDoc } */
public Formula getFormula ( ) { } } | Reagent [ ] reagents = new Reagent [ ] { SCOPE , ATTRIBUTE_NAME , SOURCE } ; final Formula rslt = new SimpleFormula ( ServletRemoveAttributeTask . class , reagents ) ; return rslt ; |
public class CertificateLoginModule { /** * See if there is a CertificateAuthenticator service that will
* vouch for this cert chain . Return the 1st authenticator that
* return true from authenticateCertificateChain ( )
* @ param certChain
* @ throws LoginException
* @ return */
private CertificateAuthentica... | CertificateAuthenticator certAuthen = null ; ConcurrentServiceReferenceMap < String , CertificateAuthenticator > certAuthens = JAASServiceImpl . getCertificateAuthenticators ( ) ; Set < String > keys = certAuthens . keySet ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( t... |
public class PKSigningInformationUtil { /** * Load certificate file in DER format from the filesystem or the classpath
* @ param filePath
* Path to the file , containing the certificate .
* @ return Loaded certificate .
* @ throws IOException
* @ throws CertificateException
* @ deprecated */
@ Deprecated pu... | try ( InputStream certificateInputStream = CertUtils . toInputStream ( filePath ) ) { return loadDERCertificate ( certificateInputStream ) ; } |
public class DatabaseFullPrunedBlockStore { /** * Check that the database is compatible with this version of the { @ link DatabaseFullPrunedBlockStore } .
* @ throws BlockStoreException If the database is not compatible . */
private void checkCompatibility ( ) throws SQLException , BlockStoreException { } } | for ( String sql : getCompatibilitySQL ( ) ) { PreparedStatement ps = null ; try { ps = conn . get ( ) . prepareStatement ( sql ) ; ResultSet results = ps . executeQuery ( ) ; results . close ( ) ; } catch ( SQLException ex ) { throw new BlockStoreException ( "Database block store is not compatible with the current rel... |
public class MultipleObjectsBundle { /** * Convert an object stream to a bundle
* @ param source Object stream
* @ return Static bundle */
public static MultipleObjectsBundle fromStream ( BundleStreamSource source ) { } } | MultipleObjectsBundle bundle = new MultipleObjectsBundle ( ) ; boolean stop = false ; DBIDVar var = null ; ArrayModifiableDBIDs ids = null ; int size = 0 ; while ( ! stop ) { BundleStreamSource . Event ev = source . nextEvent ( ) ; switch ( ev ) { case END_OF_STREAM : stop = true ; break ; case META_CHANGED : BundleMet... |
public class JSONUtils { /** * Returns ElasticSearch add command .
* @ param values
* values to include
* @ return XML as String */
public static String getElasticSearchAddDocument ( Map < String , String > values ) { } } | StringBuilder builder = new StringBuilder ( ) ; builder . append ( "{" ) ; boolean first = true ; for ( Map . Entry < String , String > pair : values . entrySet ( ) ) { if ( ! first ) { builder . append ( "," ) ; } JSONUtils . addElasticSearchField ( builder , pair ) ; first = false ; } builder . append ( "}" ) ; retur... |
public class Agent { /** * ( non - Javadoc )
* @ see net . roboconf . agent . AgentMessagingInterface
* # agentStatus ( ) */
@ Override public String agentStatus ( ) { } } | StringBuilder sb = new StringBuilder ( ) ; // Messages
LinkedBlockingQueue < Message > agentQueue = this . messagingClient . getMessageProcessor ( ) . getMessageQueue ( ) ; if ( agentQueue . isEmpty ( ) ) { sb . append ( "There is no message being processed in agent queue\n" ) ; } else { sb . append ( "Agent " + getSco... |
public class CmsGalleryField { /** * On text box change . < p >
* @ param event the event */
@ UiHandler ( "m_textbox" ) void onTextBoxChange ( ValueChangeEvent < String > event ) { } } | fireChange ( false ) ; if ( m_infoTimer != null ) { m_infoTimer . cancel ( ) ; m_infoTimer = null ; } m_infoTimer = new Timer ( ) { @ Override public void run ( ) { updateResourceInfo ( getFormValueAsString ( ) ) ; clearInfoTimer ( ) ; } } ; m_infoTimer . schedule ( 300 ) ; |
public class ReadResultSetImpl { /** * Applies the { @ link Projection } and adds an item to this { @ link ReadResultSetImpl } if
* it passes the { @ link Predicate } and { @ link IFunction } with which it was constructed .
* The { @ code item } may be in serialized or deserialized format as this method will
* ad... | assert size < maxSize ; readCount ++ ; Data resultItem ; if ( filter != null || predicate != null || projection != null ) { final O objectItem = serializationService . toObject ( item ) ; final boolean passesFilter = filter == null || filter . apply ( objectItem ) ; final boolean passesPredicate = predicate == null || ... |
public class MapEntryLite { /** * Parses the entry .
* @ param < K > the key type
* @ param < V > the value type
* @ param input the input
* @ param metadata the metadata
* @ param extensionRegistry the extension registry
* @ return the map . entry
* @ throws IOException Signals that an I / O exception ha... | K key = metadata . defaultKey ; V value = metadata . defaultValue ; while ( true ) { int tag = input . readTag ( ) ; if ( tag == 0 ) { break ; } if ( tag == CodedConstant . makeTag ( KEY_FIELD_NUMBER , metadata . keyType . getWireType ( ) ) ) { key = parseField ( input , extensionRegistry , metadata . keyType , key ) ;... |
public class DigitLookupMap { /** * Associates the value with the key in this map . If the
* map previously contained a mapping for this key , the old value is replaced
* by the specified value . ( A map m is said to contain a mapping for a key k
* if and only if m . containsKey ( k ) would return true . )
* @ ... | assertValidPutKey ( key ) ; char c ; int index ; int keyLength = key . length ( ) ; // if the " root " value is null , no keys have been put yet , and it ' s time
// that we create the initial root value
if ( this . root == null ) { // create a new " root " node by setting the parent to null
this . root = new Node < V ... |
public class VirtualMachineScaleSetsInner { /** * Update a VM scale set .
* @ param resourceGroupName The name of the resource group .
* @ param vmScaleSetName The name of the VM scale set to create or update .
* @ param parameters The scale set object .
* @ throws IllegalArgumentException thrown if parameters ... | return beginUpdateWithServiceResponseAsync ( resourceGroupName , vmScaleSetName , parameters ) . map ( new Func1 < ServiceResponse < VirtualMachineScaleSetInner > , VirtualMachineScaleSetInner > ( ) { @ Override public VirtualMachineScaleSetInner call ( ServiceResponse < VirtualMachineScaleSetInner > response ) { retur... |
public class FastJsonWriter { /** * Closes the current scope by appending any necessary whitespace and the
* given bracket . */
private FastJsonWriter close ( int empty , int nonempty , String closeBracket ) { } } | int context = peek ( ) ; if ( context != nonempty && context != empty ) { throw new IllegalStateException ( "Nesting problem." ) ; } if ( deferredUnescapeName != null || deferredName != null ) { throw new IllegalStateException ( "Dangling name: " + ( deferredUnescapeName == null ? deferredName : deferredUnescapeName ) ... |
public class EJSContainer { /** * d110126 */
private EnterpriseBean preInvokeForStatelessSessionCreate ( EJSWrapperBase wrapper , int methodId , // f111627
EJSDeployedSupport s , EJBMethodInfoImpl methodInfo , Object [ ] args ) throws RemoteException { } } | s . methodInfo = methodInfo ; // d140003.19 d114406 LIDB2617.11
s . ivEJBMethodArguments = args ; // LIDB2617.11
EnterpriseBean eb = null ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; // d532639.2
try { if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "EJBpreInvokeForStatelessSessi... |
public class DefaultRaftMember { /** * Recursively reconfigures the cluster . */
private void configure ( RaftMember . Type type , CompletableFuture < Void > future ) { } } | // Set a timer to retry the attempt to leave the cluster .
configureTimeout = cluster . getContext ( ) . getThreadContext ( ) . schedule ( cluster . getContext ( ) . getElectionTimeout ( ) , ( ) -> { configure ( type , future ) ; } ) ; // Attempt to leave the cluster by submitting a LeaveRequest directly to the server ... |
public class Category { /** * This generic form is intended to be used by wrappers .
* @ param priority priority of log to be generated .
* @ param message the message to log
* @ param t an Exception to be logged , if any . */
public void log ( final Priority priority , final Object message , final Throwable t ) ... | if ( priority == null ) { return ; } switch ( priority . level ) { case Level . FATAL_INT : this . fatal ( message , t ) ; break ; case Level . ERROR_INT : this . error ( message , t ) ; break ; case Level . WARN_INT : this . warn ( message , t ) ; break ; case Level . INFO_INT : this . info ( message , t ) ; break ; c... |
public class Jdk8Methods { /** * Safely multiply one int by another .
* @ param a the first value
* @ param b the second value
* @ return the result
* @ throws ArithmeticException if the result overflows an int */
public static int safeMultiply ( int a , int b ) { } } | long total = ( long ) a * ( long ) b ; if ( total < Integer . MIN_VALUE || total > Integer . MAX_VALUE ) { throw new ArithmeticException ( "Multiplication overflows an int: " + a + " * " + b ) ; } return ( int ) total ; |
public class JDBC4DatabaseMetaData { /** * Retrieves a description of the given attribute of the given type for a user - defined type ( UDT ) that is available in the given schema and catalog . */
@ Override public ResultSet getAttributes ( String catalog , String schemaPattern , String typeNamePattern , String attribu... | checkClosed ( ) ; throw SQLError . noSupport ( ) ; |
public class ComponentTagHandlerDelegate { /** * Method handles UIComponent tree creation in accordance with the JSF 1.2 spec .
* < ol >
* < li > First determines this UIComponent ' s id by calling { @ link # getId ( FaceletContext ) getId ( FaceletContext ) } . < / li >
* < li > Search the parent for an existing... | // make sure our parent is not null
if ( parent == null ) { throw new TagException ( _delegate . getTag ( ) , "Parent UIComponent was null" ) ; } FacesContext facesContext = ctx . getFacesContext ( ) ; // possible facet scoped
String facetName = this . getFacetName ( ctx , parent ) ; // our id
String id = ctx . generat... |
public class VisibleMemberMap { /** * Returns a list of visible enclosed members of the type being mapped .
* This list may also contain appended members , inherited by inaccessible
* super types . These members are documented in the subtype when the
* super type is not documented .
* @ return a list of visible... | List < Element > result = new ArrayList < > ( ) ; result . addAll ( classMap . get ( typeElement ) . members ) ; result . addAll ( getInheritedPackagePrivateMethods ( ) ) ; return result ; |
public class CmsJspResourceWrapper { /** * Returns the main locale for this resource . < p >
* @ return the main locale for this resource */
public Locale getMainLocale ( ) { } } | if ( m_mainLocale != null ) { return m_mainLocale ; } try { CmsLocaleGroup localeGroup = m_cms . getLocaleGroupService ( ) . readLocaleGroup ( this ) ; m_mainLocale = localeGroup . getMainLocale ( ) ; return m_mainLocale ; } catch ( CmsException e ) { return null ; } |
public class RelaxedDataBinder { /** * Modify the property values so that period separated property paths are valid
* for map keys . Also creates new maps for properties of map type that are null
* ( assuming all maps are potentially nested ) . The standard bracket { @ code [ . . . ] }
* dereferencing is also acc... | propertyValues = getPropertyValuesForNamePrefix ( propertyValues ) ; if ( target instanceof RelaxedDataBinder . MapHolder ) { propertyValues = addMapPrefix ( propertyValues ) ; } BeanWrapper wrapper = new BeanWrapperImpl ( target ) ; wrapper . setConversionService ( new RelaxedConversionService ( getConversionService (... |
public class CommonOps_DDF3 { /** * Performs an in - place element by element scalar multiplication . < br >
* < br >
* a < sub > ij < / sub > = & alpha ; * a < sub > ij < / sub >
* @ param a The vector that is to be scaled . Modified .
* @ param alpha the amount each element is multiplied by . */
public static... | a . a1 *= alpha ; a . a2 *= alpha ; a . a3 *= alpha ; |
public class AttributeValueImpl { /** * Set the value of this metadata .
* @ param url the url . */
public void setURL ( String url ) { } } | try { this . value = ( url != null ) ? new URL ( url ) : null ; } catch ( Throwable exception ) { this . value = null ; } this . type = AttributeType . URL ; this . assigned = this . value != null ; |
public class Huffman { /** * This method updates VocabCache and all it ' s elements with Huffman indexes
* Please note : it should be the same VocabCache as was used for Huffman tree initialization
* @ param cache VocabCache to be updated . */
public void applyIndexes ( VocabCache < ? extends SequenceElement > cach... | if ( ! buildTrigger ) build ( ) ; for ( int a = 0 ; a < words . size ( ) ; a ++ ) { if ( words . get ( a ) . getLabel ( ) != null ) { cache . addWordToIndex ( a , words . get ( a ) . getLabel ( ) ) ; } else { cache . addWordToIndex ( a , words . get ( a ) . getStorageId ( ) ) ; } words . get ( a ) . setIndex ( a ) ; } |
public class QueryBitmapConverter { /** * Get the image for Buttons and Bitmaps and drag cursors .
* ( Previously getBitmap ) .
* Return The bitmap for the current table . */
public String getBitmap ( ) { } } | if ( m_recTarget != null ) { Record recTarget = null ; if ( m_recTarget . getBaseRecord ( ) . getTable ( ) . getCurrentTable ( ) != null ) recTarget = m_recTarget . getBaseRecord ( ) . getTable ( ) . getCurrentTable ( ) . getRecord ( ) ; if ( recTarget != null ) return recTarget . getBitmap ( ) ; // Bitmap for this tab... |
public class JSPtoPRealization { /** * Reconstitute any remote queue points . */
private void reconstituteRemoteQueuePoints ( int startMode , boolean isSystem ) throws SIDiscriminatorSyntaxException , MessageStoreException , SIResourceException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reconstituteRemoteQueuePoints" , new Object [ ] { Integer . valueOf ( startMode ) , Boolean . valueOf ( isSystem ) , this } ) ; // Next look for any remote transmission itemstreams to queue points
int transmissionQCount = 0... |
public class hqlParser { /** * hql . g : 572:1 : elseClause : ( ELSE ^ expression ) ; */
public final hqlParser . elseClause_return elseClause ( ) throws RecognitionException { } } | hqlParser . elseClause_return retval = new hqlParser . elseClause_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token ELSE224 = null ; ParserRuleReturnScope expression225 = null ; CommonTree ELSE224_tree = null ; try { // hql . g : 573:2 : ( ( ELSE ^ expression ) )
// hql . g : 573:4 : ( E... |
public class Utils { /** * Throws an { @ link IllegalArgumentException } if the argument is false . This method is similar to
* { @ code Preconditions . checkArgument ( boolean , Object ) } from Guava .
* @ param isValid whether the argument check passed .
* @ param errorMessage the message to use for the excepti... | if ( ! isValid ) { throw new IllegalArgumentException ( String . valueOf ( errorMessage ) ) ; } |
public class Flags { /** * Get the morphological features configuration .
* @ param params
* the training parameters
* @ return a list containing the options */
public static String getPOSTagModelFeaturesRange ( final TrainingParameters params ) { } } | String lemmaRangeFlag = null ; if ( params . getSettings ( ) . get ( "POSTagModelFeaturesRange" ) != null ) { lemmaRangeFlag = params . getSettings ( ) . get ( "POSTagModelFeaturesRange" ) ; } else { lemmaRangeFlag = Flags . DEFAULT_POSTAG_RANGE ; } return lemmaRangeFlag ; |
public class StatsProcInputTable { /** * Add or update the corresponding row . dedup flag indicates if we should dedup data based on partition for proc . */
public void updateTable ( boolean dedup , String procedure , long partition , long timestamp , long invocations , long minIN , long maxIN , long avgIN ) { } } | ProcInputRow in = new ProcInputRow ( procedure , partition , timestamp , invocations , minIN , maxIN , avgIN ) ; ProcInputRow exists = m_rowsTable . ceiling ( in ) ; if ( exists != null && in . procedure . equals ( exists . procedure ) ) { exists . updateWith ( dedup , in ) ; } else { m_rowsTable . add ( in ) ; } |
public class FaceletCompositionContextImpl { /** * Gets all validationIds on the stack .
* @ return
* @ since 2.0 */
@ Override public Iterator < String > getEnclosingValidatorIds ( ) { } } | if ( _enclosingValidatorIdsStack != null && ! _enclosingValidatorIdsStack . isEmpty ( ) ) { return new KeyEntryIterator < String , EditableValueHolderAttachedObjectHandler > ( _enclosingValidatorIdsStack . iterator ( ) ) ; } return null ; |
public class AWSHealthClient { /** * Returns the event types that meet the specified filter criteria . If no filter criteria are specified , all event
* types are returned , in no particular order .
* @ param describeEventTypesRequest
* @ return Result of the DescribeEventTypes operation returned by the service .... | request = beforeClientExecution ( request ) ; return executeDescribeEventTypes ( request ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.