signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class LBiObjDblPredicateBuilder { /** * One of ways of creating builder . This might be the only way ( considering all _ functional _ builders ) that might be utilize to specify generic params only once . */
@ Nonnull public static < T1 , T2 > LBiObjDblPredicateBuilder < T1 , T2 > biObjDblPredicate ( Consumer < ... | return new LBiObjDblPredicateBuilder ( consumer ) ; |
public class KnowledgeBaseImpl { /** * globals class types must be re - wired after serialization
* @ throws ClassNotFoundException */
private void populateGlobalsMap ( Map < String , String > globs ) throws ClassNotFoundException { } } | this . globals = new HashMap < String , Class < ? > > ( ) ; for ( Map . Entry < String , String > entry : globs . entrySet ( ) ) { addGlobal ( entry . getKey ( ) , this . rootClassLoader . loadClass ( entry . getValue ( ) ) ) ; } |
public class MetatagsRecord { /** * Replaces the metatags for a metric . Metatags cannot use any of the reserved tag names .
* @ param metatags A key - value pairs of metatags . Cannot be null or empty .
* @ param key A unique identifier to be used while indexing this metatags into a schema db . */
public void setM... | if ( metatags != null ) { TSDBEntity . validateTags ( metatags ) ; _metatags . clear ( ) ; _metatags . putAll ( metatags ) ; _key = key ; } |
public class DescribePipelinesResult { /** * An array of descriptions for the specified pipelines .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setPipelineDescriptionList ( java . util . Collection ) } or
* { @ link # withPipelineDescriptionList ( java ... | if ( this . pipelineDescriptionList == null ) { setPipelineDescriptionList ( new com . amazonaws . internal . SdkInternalList < PipelineDescription > ( pipelineDescriptionList . length ) ) ; } for ( PipelineDescription ele : pipelineDescriptionList ) { this . pipelineDescriptionList . add ( ele ) ; } return this ; |
public class CmsResourceTypeStatResultList { /** * Deletes entries which are older than MAX _ TIME . < p > */
public void deleteOld ( ) { } } | Iterator < CmsResourceTypeStatResult > iterator = m_results . iterator ( ) ; while ( iterator . hasNext ( ) ) { CmsResourceTypeStatResult res = iterator . next ( ) ; if ( isToOld ( res ) ) { iterator . remove ( ) ; } } |
public class TypeFactory { /** * org . glassfish . hk2 . utilities . Binder */
@ Override public void bind ( DynamicConfiguration config ) { } } | Injections . addBinding ( Injections . newFactoryBinder ( this ) . to ( type ) . in ( Singleton . class ) , config ) ; Injections . addBinding ( Injections . newBinder ( this ) . to ( ValueFactoryProvider . class ) , config ) ; |
public class Configurer { /** * Get the node at the following path .
* @ param path The node path .
* @ return The node found .
* @ throws LionEngineException If node not found . */
private Xml getNode ( String ... path ) { } } | Xml node = root ; for ( final String element : path ) { try { node = node . getChild ( element ) ; } catch ( final LionEngineException exception ) { throw new LionEngineException ( exception , media ) ; } } return node ; |
public class ServletContextInitParameterPhrase { /** * { @ inheritDoc } */
public Object evaluate ( TaskRequest req , TaskResponse res ) { } } | HttpServletRequest hreq = ( HttpServletRequest ) source . evaluate ( req , res ) ; String parameterName = ( String ) parameter_name . evaluate ( req , res ) ; return hreq . getSession ( ) . getServletContext ( ) . getInitParameter ( parameterName ) ; |
public class CorporationApi { /** * Track corporation members Returns additional information about a
* corporation & # 39 ; s members which helps tracking their activities - - - This
* route is cached for up to 3600 seconds - - - Requires one of the following
* EVE corporation role ( s ) : Director SSO Scope :
... | ApiResponse < List < CorporationMemberTrackingResponse > > resp = getCorporationsCorporationIdMembertrackingWithHttpInfo ( corporationId , datasource , ifNoneMatch , token ) ; return resp . getData ( ) ; |
public class Contract { /** * syntactic sugar */
public Reference addAuthority ( ) { } } | Reference t = new Reference ( ) ; if ( this . authority == null ) this . authority = new ArrayList < Reference > ( ) ; this . authority . add ( t ) ; return t ; |
public class RedisQueue { /** * { @ inheritDoc }
* @ throws QueueException . EphemeralIsFull
* if the ephemeral storage is full */
@ Override public IQueueMessage < ID , DATA > take ( ) throws QueueException . EphemeralIsFull { } } | if ( ! isEphemeralDisabled ( ) ) { int ephemeralMaxSize = getEphemeralMaxSize ( ) ; if ( ephemeralMaxSize > 0 && ephemeralSize ( ) >= ephemeralMaxSize ) { throw new QueueException . EphemeralIsFull ( ephemeralMaxSize ) ; } } try ( Jedis jedis = getJedisConnector ( ) . getJedis ( ) ) { long now = System . currentTimeMil... |
public class CreateTopicRuleRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateTopicRuleRequest createTopicRuleRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createTopicRuleRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createTopicRuleRequest . getRuleName ( ) , RULENAME_BINDING ) ; protocolMarshaller . marshall ( createTopicRuleRequest . getTopicRulePayload ( ) , TOPICRULEPAYLOA... |
public class AnnotationsClassLoader { /** * Find the resource with the given name , and return an input stream
* that can be used for reading it . The search order is as described
* for < code > getResource ( ) < / code > , after checking to see if the resource
* data has been previously cached . If the resource ... | if ( log . isDebugEnabled ( ) ) log . debug ( "getResourceAsStream(" + name + ")" ) ; InputStream stream = null ; // (0 ) Check for a cached copy of this resource
stream = findLoadedResource ( name ) ; if ( stream != null ) { if ( log . isDebugEnabled ( ) ) log . debug ( " --> Returning stream from cache" ) ; return (... |
public class JobsResource { /** * Create a job given the definition in { @ code job } .
* @ param job The job to create .
* @ param username The user creating the job .
* @ return The response . */
@ POST @ Produces ( APPLICATION_JSON ) @ Timed @ ExceptionMetered public CreateJobResponse post ( @ Valid final Job ... | final Job . Builder clone = job . toBuilder ( ) . setCreatingUser ( username ) . setCreated ( clock . now ( ) . getMillis ( ) ) // If the job had a hash coming in , preserve it
. setHash ( job . getId ( ) . getHash ( ) ) ; final Job actualJob = clone . build ( ) ; final Collection < String > errors = jobValidator . val... |
public class FileDisk { /** * Creates a new { @ code FileDisk } of the specified size . The
* { @ code FileDisk } returned by this method will be writable .
* @ param file the file to hold the { @ code FileDisk } contents
* @ param size the size of the new { @ code FileDisk }
* @ return the created { @ code Fil... | if ( size < 0 ) { throw new IllegalArgumentException ( "size must be >= 0" ) ; } try { final RandomAccessFile raf = new RandomAccessFile ( file , "rw" ) ; // NOI18N
raf . setLength ( size ) ; return new FileDisk ( raf , false ) ; } catch ( FileNotFoundException ex ) { throw new IOException ( ex ) ; } |
public class ContractAnalyzer { /** * Returns the MethodHandle objects matching the specified criteria .
* @ param kind the kind of the handles
* @ param name the target method name
* @ param desc the target method descriptor
* @ param extraCount the number of extra parameters in the contract
* method
* @ r... | "kind != null" , "name != null" , "desc != null" , "extraCount >= 0" } ) @ Ensures ( { "result != null" , "!result.contains(null)" } ) List < MethodContractHandle > getMethodHandles ( ContractKind kind , String name , String desc , int extraCount ) { ArrayList < MethodContractHandle > candidates = methodHandles . get (... |
public class ProposalMarketplaceInfo { /** * Sets the negotiationStatus value for this ProposalMarketplaceInfo .
* @ param negotiationStatus * The negotiation status of the { @ link Proposal } .
* This attribute is read - only . */
public void setNegotiationStatus ( com . google . api . ads . admanager . axis . v20... | this . negotiationStatus = negotiationStatus ; |
public class JOGLTypeConversions { /** * Convert types from GL constants .
* @ param type The GL constant .
* @ return The value . */
public static JCGLScalarType scalarTypeFromGL ( final int type ) { } } | switch ( type ) { case GL . GL_HALF_FLOAT : return JCGLScalarType . TYPE_HALF_FLOAT ; case GL . GL_BYTE : return JCGLScalarType . TYPE_BYTE ; case GL . GL_UNSIGNED_BYTE : return JCGLScalarType . TYPE_UNSIGNED_BYTE ; case GL . GL_SHORT : return JCGLScalarType . TYPE_SHORT ; case GL . GL_UNSIGNED_SHORT : return JCGLScala... |
public class PropertiesUtil { /** * Gets the named property as a boolean value .
* @ param name the name of the property to look up
* @ param defaultValue the default value to use if the property is undefined
* @ return the boolean value of the property or { @ code defaultValue } if undefined . */
public boolean ... | final String prop = getStringProperty ( name ) ; return prop == null ? defaultValue : "true" . equalsIgnoreCase ( prop ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getIfcPermeableCoveringOperationEnum ( ) { } } | if ( ifcPermeableCoveringOperationEnumEEnum == null ) { ifcPermeableCoveringOperationEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 865 ) ; } return ifcPermeableCoveringOperationEnumEEnum ; |
public class BM25 { /** * Returns a relevance score between a term and a document based on a corpus .
* @ param freq the frequency of searching term in the document to rank .
* @ param docSize the size of document to rank .
* @ param avgDocSize the average size of documents in the corpus .
* @ param N the numbe... | if ( freq <= 0 ) return 0.0 ; double tf = freq * ( k1 + 1 ) / ( freq + k1 * ( 1 - b + b * docSize / avgDocSize ) ) ; double idf = Math . log ( ( N - n + 0.5 ) / ( n + 0.5 ) ) ; return ( tf + delta ) * idf ; |
public class AstApply { private ValFrame colwise ( Env env , Env . StackHelp stk , Frame fr , AstPrimitive fun ) { } } | // Break each column into it ' s own Frame , then execute the function passing
// the 1 argument . All columns are independent , and this loop should be
// parallized over each column .
Vec vecs [ ] = fr . vecs ( ) ; Val vals [ ] = new Val [ vecs . length ] ; AstRoot [ ] asts = new AstRoot [ ] { fun , null } ; for ( in... |
public class BSHPrimarySuffix { /** * Property access .
* Must handle toLHS case . */
private Object doProperty ( boolean toLHS , Object obj , CallStack callstack , Interpreter interpreter ) throws EvalError { } } | if ( obj == Primitive . VOID ) throw new EvalError ( "Attempt to access property on undefined variable or class name" , this , callstack ) ; if ( obj instanceof Primitive ) throw new EvalError ( "Attempt to access property on a primitive" , this , callstack ) ; Object value = ( ( SimpleNode ) jjtGetChild ( 0 ) ) . eval... |
public class Searcher { /** * Returns a text view with a given match .
* @ param webElements the list of views
* @ param match the match of the view to return
* @ return the view with a given match */
private WebElement getViewFromList ( List < WebElement > webElements , int match ) { } } | WebElement webElementToReturn = null ; if ( webElements . size ( ) >= match ) { try { webElementToReturn = webElements . get ( -- match ) ; } catch ( Exception ignored ) { } } if ( webElementToReturn != null ) webElements . clear ( ) ; return webElementToReturn ; |
public class BusLayerConstants { /** * Replies if the bus stops names should be drawn or not .
* @ return < code > true < / code > if the bus stops are drawable ;
* otherwise < code > false < / code > */
@ Pure public static boolean isBusStopNamesDrawable ( ) { } } | final Preferences prefs = Preferences . userNodeForPackage ( BusLayerConstants . class ) ; if ( prefs != null ) { return prefs . getBoolean ( "DRAW_BUS_STOPS_NAMES" , DEFAULT_BUS_STOP_NAMES_DRAWING ) ; // $ NON - NLS - 1 $
} return DEFAULT_BUS_STOP_NAMES_DRAWING ; |
public class RemoteSender { /** * send message to remote asynchronously .
* @ param nodeId the destination node id . */
private void sendToRemote ( String nodeId ) { } } | unitRequest . getContext ( ) . setDestinationNodeId ( nodeId ) ; /* unitRequest . getContext ( ) . setSourceNodeId ( LocalNodeManager . LOCAL _ NODE _ ID ) ; let the node instance to fill this source node id property */
LocalNodeManager . sendLoadBalanced ( unitRequest , callback ) ; |
public class MetadataManager { /** * Try to build an default PBKey for convenience PB create method .
* @ return PBKey or < code > null < / code > if default key was not declared in
* metadata */
private PBKey buildDefaultKey ( ) { } } | List descriptors = connectionRepository ( ) . getAllDescriptor ( ) ; JdbcConnectionDescriptor descriptor ; PBKey result = null ; for ( Iterator iterator = descriptors . iterator ( ) ; iterator . hasNext ( ) ; ) { descriptor = ( JdbcConnectionDescriptor ) iterator . next ( ) ; if ( descriptor . isDefaultConnection ( ) )... |
public class Validators { /** * The input object is not null . if yes , the check passes
* @ param msg error message after verification failed
* @ return Validation */
public static < T > Validation < T > notNull ( String msg ) { } } | return SimpleValidation . from ( Objects :: nonNull , msg ) ; |
public class PermDAO { /** * Add description to this permission
* @ param trans
* @ param ns
* @ param type
* @ param instance
* @ param action
* @ param description
* @ return */
public Result < Void > addDescription ( AuthzTrans trans , String ns , String type , String instance , String action , String ... | try { getSession ( trans ) . execute ( UPDATE_SP + TABLE + " SET description = '" + description + "' WHERE ns = '" + ns + "' AND type = '" + type + "'" + "AND instance = '" + instance + "' AND action = '" + action + "';" ) ; } catch ( DriverException | APIException | IOException e ) { reportPerhapsReset ( trans , e ) ;... |
public class BoxApiBookmark { /** * Gets a request that renames a bookmark
* @ param id id of bookmark to rename
* @ param newName id of bookmark to retrieve info on
* @ return request to rename a bookmark */
public BoxRequestsBookmark . UpdateBookmark getRenameRequest ( String id , String newName ) { } } | BoxRequestsBookmark . UpdateBookmark request = new BoxRequestsBookmark . UpdateBookmark ( id , getBookmarkInfoUrl ( id ) , mSession ) ; request . setName ( newName ) ; return request ; |
public class DrizzleStatement { /** * executes a select query .
* @ param query the query to send to the server
* @ return a result set
* @ throws SQLException if something went wrong */
public ResultSet executeQuery ( final String query ) throws SQLException { } } | startTimer ( ) ; try { if ( queryResult != null ) { queryResult . close ( ) ; } final Query queryToSend = queryFactory . createQuery ( query ) ; queryResult = protocol . executeQuery ( queryToSend ) ; warningsCleared = false ; return new DrizzleResultSet ( queryResult , this , getProtocol ( ) ) ; } catch ( QueryExcepti... |
public class CommerceVirtualOrderItemLocalServiceBaseImpl { /** * Returns a range of all the commerce virtual order items .
* 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 indexes ... | return commerceVirtualOrderItemPersistence . findAll ( start , end ) ; |
public class LoginDialog { /** * sets Administrator . APIA / M if success , throws Exception if fails . */
public void tryLogin ( String protocol , String host , int port , String context , String user , String pass ) throws Exception { } } | try { logger . info ( "Logging in..." ) ; // get a FedoraClient
String baseURL = protocol + "://" + host + ":" + port + "/" + context ; FedoraClient fc = new FedoraClient ( baseURL , user , pass ) ; // attempt to connect via REST
String serverVersion = fc . getServerVersion ( ) ; // ensure client is compatible with ser... |
public class ObjectRule { /** * Applies this schema rule to take the required code generation steps .
* When this rule is applied for schemas of type object , the properties of
* the schema are used to generate a new Java class and determine its
* characteristics . See other implementers of { @ link Rule } for de... | JType superType = reflectionHelper . getSuperType ( nodeName , node , _package , schema ) ; if ( superType . isPrimitive ( ) || reflectionHelper . isFinal ( superType ) ) { return superType ; } JDefinedClass jclass ; try { jclass = createClass ( nodeName , node , _package ) ; } catch ( ClassAlreadyExistsException e ) {... |
public class MethodInterceptorFactory { /** * { @ inheritDoc } */
public Interceptor create ( final InterceptorFactoryContext context ) { } } | final Map < Object , Object > map = context . getContextData ( ) ; if ( map . containsKey ( this ) ) { return ( Interceptor ) map . get ( this ) ; } else { final MethodInterceptor interceptor = new MethodInterceptor ( instanceFactory . createInstance ( context ) , interceptorMethod , changeMethod ) ; map . put ( this ,... |
public class Cluster { /** * The nodes in the cluster .
* @ param clusterNodes
* The nodes in the cluster . */
public void setClusterNodes ( java . util . Collection < ClusterNode > clusterNodes ) { } } | if ( clusterNodes == null ) { this . clusterNodes = null ; return ; } this . clusterNodes = new com . amazonaws . internal . SdkInternalList < ClusterNode > ( clusterNodes ) ; |
public class AbstractProcessMojo { /** * / * package private */
static ExecutorService createExecutorService ( final String threads ) { } } | final int threadCount ; if ( threads . endsWith ( "C" ) ) { threadCount = Integer . parseInt ( threads . substring ( 0 , threads . length ( ) - 1 ) ) * Runtime . getRuntime ( ) . availableProcessors ( ) ; } else { threadCount = Integer . parseInt ( threads ) ; } final ClassLoader currentThreadContextClassloader = Threa... |
public class MergeUsers { /** * Get query parameters
* @ return Values of query parameters ( name of parameter : value of the parameter ) */
@ Override public Map < String , Object > getQueryParameters ( ) { } } | HashMap < String , Object > params = new HashMap < String , Object > ( ) ; if ( this . cascadeCreate != null ) { params . put ( "cascadeCreate" , this . cascadeCreate . toString ( ) ) ; } return params ; |
public class BinaryHashPartition { /** * Inserts the given object into the current buffer . This method returns a pointer that
* can be used to address the written record in this partition , if it is in - memory .
* The returned pointers have no expressiveness in the case where the partition is spilled .
* @ para... | this . buildSideRecordCounter ++ ; if ( isInMemory ( ) ) { final long pointer = this . buildSideWriteBuffer . getCurrentPointer ( ) ; int skip = this . buildSideSerializer . serializeToPages ( record , this . buildSideWriteBuffer ) ; if ( isInMemory ( ) ) { long ret = pointer + skip ; if ( ret > Integer . MAX_VALUE ) {... |
public class PythonDataStream { /** * A thin wrapper layer over { @ link DataStream # writeToSocket ( String , int , org . apache . flink . api . common . serialization . SerializationSchema ) } .
* @ param host host of the socket
* @ param port port of the socket
* @ param schema schema for serialization */
@ Pu... | stream . writeToSocket ( host , port , new PythonSerializationSchema ( schema ) ) ; |
public class Mediawiki { /** * main instance - this is the non - static version of main - it will run as a
* static main would but return it ' s exitCode to the static main the static
* main will then decide whether to do a System . exit ( exitCode ) or not .
* @ param args
* - command line arguments
* @ retu... | parser = new CmdLineParser ( this ) ; try { parser . parseArgument ( args ) ; if ( debug ) showVersion ( ) ; if ( this . showVersion ) { showVersion ( ) ; } else if ( this . showHelp ) { showHelp ( ) ; } else { // FIXME - do something
// implement actions
System . err . println ( "Commandline interface is not functiona... |
public class DeepBlockRewriter { /** * the base method and doesn ' t know that it will be run automatically ) */
private boolean forbidUseOfSuperInFixtureMethod ( MethodCallExpression expr ) { } } | Method currMethod = resources . getCurrentMethod ( ) ; Expression target = expr . getObjectExpression ( ) ; if ( currMethod instanceof FixtureMethod && target instanceof VariableExpression && ( ( VariableExpression ) target ) . isSuperExpression ( ) && currMethod . getName ( ) . equals ( expr . getMethodAsString ( ) ) ... |
public class PropClient { /** * Entry point for running the PropClient .
* An IP host or port identifier has to be supplied to specify the endpoint for the
* KNX network access . < br >
* To show the usage message of this tool on the console , supply the command line
* option - help ( or - h ) . < br >
* Comm... | try { // read the command line options and run the client
final Map options = new HashMap ( ) ; if ( parseOptions ( args , options ) ) new PropClient ( ) . run ( options ) ; } catch ( final Throwable t ) { if ( t . getMessage ( ) != null ) System . out . println ( t . getMessage ( ) ) ; } |
public class SimpleResponseManager { protected void doWrite ( String text , String contentType ) { } } | assertArgumentNotNull ( "text" , text ) ; assertArgumentNotNull ( "contentType" , contentType ) ; doWrite ( text , contentType , deriveResponseEncoding ( ) ) ; |
public class CallCredentialsHelper { /** * Creates a new call credential with the given username and password for basic auth .
* < b > Note : < / b > This method uses experimental grpc - java - API features .
* @ param username The username to use .
* @ param password The password to use .
* @ return The newly ... | final Metadata extraHeaders = new Metadata ( ) ; extraHeaders . put ( AUTHORIZATION_HEADER , encodeBasicAuth ( username , password ) ) ; return new StaticSecurityHeaderCallCredentials ( extraHeaders ) ; |
public class CmsPositionBean { /** * Collects the position information of the given UI object and returns a position info bean . < p >
* @ param element the object to read the position data from
* @ return the position data */
public static CmsPositionBean generatePositionInfo ( Element element ) { } } | CmsPositionBean result = new CmsPositionBean ( ) ; result . setHeight ( element . getOffsetHeight ( ) ) ; result . setWidth ( element . getOffsetWidth ( ) ) ; result . setTop ( element . getAbsoluteTop ( ) ) ; result . setLeft ( element . getAbsoluteLeft ( ) ) ; return result ; |
public class RoleDefinitionsInner { /** * Get role definition by name ( GUID ) .
* @ param scope The scope of the role definition .
* @ param roleDefinitionId The ID of the role definition .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the RoleDefinit... | return getWithServiceResponseAsync ( scope , roleDefinitionId ) . map ( new Func1 < ServiceResponse < RoleDefinitionInner > , RoleDefinitionInner > ( ) { @ Override public RoleDefinitionInner call ( ServiceResponse < RoleDefinitionInner > response ) { return response . body ( ) ; } } ) ; |
public class EquivalentFragmentSets { /** * An { @ link EquivalentFragmentSet } that indicates a variable representing a schema concept with one of the
* specified labels . */
public static EquivalentFragmentSet label ( VarProperty varProperty , Variable type , ImmutableSet < Label > labels ) { } } | return new AutoValue_LabelFragmentSet ( varProperty , type , labels ) ; |
public class Es6RewriteBlockScopedFunctionDeclaration { /** * Rewrite the function declaration from :
* < pre >
* function f ( ) { }
* FUNCTION
* NAME x
* PARAM _ LIST
* BLOCK
* < / pre >
* to
* < pre >
* let f = function ( ) { } ;
* LET
* NAME f
* FUNCTION
* NAME ( w / empty string )
* PA... | // Prepare a spot for the function .
Node oldNameNode = n . getFirstChild ( ) ; Node fnNameNode = oldNameNode . cloneNode ( ) ; Node let = IR . declaration ( fnNameNode , Token . LET ) . srcref ( n ) ; NodeUtil . addFeatureToScript ( t . getCurrentScript ( ) , Feature . LET_DECLARATIONS ) ; // Prepare the function .
ol... |
public class ManagedIndex { /** * Required by IndexEntryAccessor interface . */
public boolean isConsistent ( Storable indexEntry , S master ) throws FetchException { } } | return mAccessor . isConsistent ( indexEntry , master ) ; |
public class CountingErrorConsumer { /** * Initializes the map of unknown categoricals per column with an unmodifiable and thread - safe implementation of { @ link Map } .
* @ param model { @ link GenModel } the unknown categorical per column map is initialized for */
private void initializeUnknownCategoricalsPerColu... | unknownCategoricalsPerColumn = new ConcurrentHashMap < > ( ) ; for ( int i = 0 ; i < model . getNumCols ( ) ; i ++ ) { String [ ] domainValues = model . getDomainValues ( i ) ; if ( domainValues != null ) { unknownCategoricalsPerColumn . put ( model . getNames ( ) [ i ] , new AtomicLong ( ) ) ; } } unknownCategoricalsP... |
public class JointParser { /** * 得到支持的依存关系类型集合
* @ return 词性标签集合 */
public Set < String > getSupportedTypes ( ) { } } | Set < String > typeset = new HashSet < String > ( ) ; Set < String > set = factory . DefaultLabelAlphabet ( ) . toSet ( ) ; Iterator < String > itt = set . iterator ( ) ; while ( itt . hasNext ( ) ) { String type = itt . next ( ) ; if ( type . length ( ) == 1 ) continue ; typeset . add ( type . substring ( 1 ) ) ; } re... |
public class Request { /** * Gets the value of the provided attribute
* @ param attribute The attribute value or null if not present
* @ param < T > the type parameter .
* @ return the value for the provided attribute */
@ SuppressWarnings ( "unchecked" ) public < T > T attribute ( String attribute ) { } } | return ( T ) servletRequest . getAttribute ( attribute ) ; |
public class GIS { /** * Train a model using the GIS algorithm .
* @ param iterations The number of GIS iterations to perform .
* @ param indexer The object which will be used for event compilation .
* @ param printMessagesWhileTraining Determines whether training status messages are written to STDOUT .
* @ par... | GISTrainer trainer = new GISTrainer ( printMessagesWhileTraining ) ; trainer . setSmoothing ( smoothing ) ; trainer . setSmoothingObservation ( SMOOTHING_OBSERVATION ) ; return trainer . trainModel ( iterations , indexer ) ; |
public class Filters { /** * Shortcut for { @ link # registeredBy ( Class ) } for special scopes ( like classpath scan , bundles lookup etc ) .
* @ param specialScope special scope type
* @ param < T > expected info container type ( if used within single configuration type )
* @ return items registered in specifi... | return registeredBy ( specialScope . getType ( ) ) ; |
public class ColorUtils { /** * Converts HSV color system to RGB
* @ param h hue 0-360
* @ param s saturation 0-100
* @ param v value 0-100
* @ return RGB values in LibGDX { @ link Color } class */
public static Color HSVtoRGB ( float h , float s , float v ) { } } | Color c = new Color ( 1 , 1 , 1 , 1 ) ; HSVtoRGB ( h , s , v , c ) ; return c ; |
public class RegularPactTask { /** * This method is called at the end of a task , receiving the accumulators of
* the task and the chained tasks . It merges them into a single map of
* accumulators and sends them to the JobManager .
* @ param chainedTasks
* Each chained task might have accumulators which will b... | // We can merge here the accumulators from the stub and the chained
// tasks . Type conflicts can occur here if counters with same name but
// different type were used .
for ( ChainedDriver < ? , ? > chainedTask : chainedTasks ) { Map < String , Accumulator < ? , ? > > chainedAccumulators = chainedTask . getStub ( ) . ... |
public class Es6RewriteRestAndSpread { /** * Processes a rest parameter */
private void visitRestParam ( NodeTraversal t , Node restParam , Node paramList ) { } } | Node functionBody = paramList . getNext ( ) ; int restIndex = paramList . getIndexOfChild ( restParam ) ; Node nameNode = restParam . getOnlyChild ( ) ; String paramName = nameNode . getString ( ) ; // Swap the existing param into the list , moving requisite AST annotations .
nameNode . setVarArgs ( true ) ; nameNode .... |
public class FieldSupport { /** * set accessible to ' true ' then set field value
* @ param obj the object whose field should be modified
* @ param toSet the new value for the field of obj being modified
* @ return < code > this < / code > */
public FieldSupport < FieldType , ObjectType > set ( ObjectType obj , O... | try { f . setAccessible ( true ) ; f . set ( obj , toSet ) ; return this ; } catch ( Exception e ) { throw $ ( e ) ; } |
public class MobileProviderService { /** * Creates a new RemoteWebDriver instance from the first MobileProvider that supports the specified
* nodeType .
* @ param nodeType - The { @ link MobileNodeType } to use for creating this mobile remote driver .
* @ param platform - The { @ link WebDriverPlatform } .
* @ ... | if ( mobileProviders . containsKey ( nodeType ) ) { logger . log ( Level . FINE , "Found mobile driver provider that supports " + nodeType ) ; return mobileProviders . get ( nodeType ) . createDriver ( platform , command , url , caps ) ; } logger . severe ( "Did not found a mobile driver provider that supports " + node... |
public class BasicModMixer { /** * Will mix # count 24bit signed samples in stereo into the two buffer .
* The buffers will contain 24Bit signed samples .
* @ param leftBuffer
* @ param rightBuffer
* @ param count
* @ return # of samples mixed , - 1 if mixing finished */
public int mixIntoBuffer ( final int [... | // try
if ( modFinished ) return - 1 ; int bufferIdx = 0 ; // Index into the buffer
int endIndex = samplePerTicks ; // where ! will ! we be after next mixing ( will this still fit ? ! )
final int maxEndIndex = count - Helpers . VOL_RAMP_LEN ; if ( maxEndIndex < samplePerTicks ) throw new RuntimeException ( "The mixing ... |
public class CmsContextInfo { /** * Sets the username . < p >
* @ param userName the username to set
* @ see CmsRequestContext # getCurrentUser ( ) */
public void setUserName ( String userName ) { } } | checkFrozen ( ) ; m_userName = userName ; setOuFqn ( CmsOrganizationalUnit . getParentFqn ( userName ) ) ; |
public class VisOdomMonoPlaneInfinity { /** * Splits the set of active tracks into on plane and infinity sets . For each set also perform specific sanity
* checks to make sure basic constraints are still being meet . If not then the track will not be considered for
* motion estimation . */
private void sortTracksFo... | // reset data structures
planeSamples . reset ( ) ; farAngles . reset ( ) ; tracksOnPlane . clear ( ) ; tracksFar . clear ( ) ; // list of active tracks
List < PointTrack > active = tracker . getActiveTracks ( null ) ; for ( PointTrack t : active ) { VoTrack p = t . getCookie ( ) ; // compute normalized image coordinat... |
public class ElementImpl { /** * This implementation walks the entire document looking for an element
* with the given ID attribute . We should consider adding an index to speed
* navigation of large documents . */
Element getElementById ( String name ) { } } | for ( Attr attr : attributes ) { if ( attr . isId ( ) && name . equals ( attr . getValue ( ) ) ) { return this ; } } /* * TODO : Remove this behavior .
* The spec explicitly says that this is a bad idea . From
* Document . getElementById ( ) : " Attributes with the name " ID "
* or " id " are not of type ID unles... |
public class JdepsFilter { /** * Tests if the given class matches the pattern given in the - include option
* @ param cn fully - qualified name */
public boolean matches ( String cn ) { } } | if ( includePattern == null ) return true ; if ( includePattern != null ) return includePattern . matcher ( cn ) . matches ( ) ; return false ; |
public class AmazonElasticLoadBalancingClient { /** * Deletes the specified policy from the specified load balancer . This policy must not be enabled for any listeners .
* @ param deleteLoadBalancerPolicyRequest
* Contains the parameters for DeleteLoadBalancerPolicy .
* @ return Result of the DeleteLoadBalancerPo... | request = beforeClientExecution ( request ) ; return executeDeleteLoadBalancerPolicy ( request ) ; |
public class NodeManager { /** * Get a runnable node .
* @ param requestedNode The request information .
* @ param maxLevel The maximum locality level that we can go to .
* @ param type The type of resource .
* @ param excluded The excluded nodes .
* @ return The runnable node that can be used . */
public Clu... | ClusterNode node = null ; RunnableIndices r = typeToIndices . get ( type ) ; // find host local
node = r . getRunnableNodeForHost ( requestedNode ) ; if ( maxLevel == LocalityLevel . NODE || node != null ) { return node ; } node = r . getRunnableNodeForRack ( requestedNode , excluded ) ; if ( maxLevel == LocalityLevel ... |
public class LexicalUUIDType { /** * singleton */
public int compare ( ByteBuffer o1 , ByteBuffer o2 ) { } } | if ( ! o1 . hasRemaining ( ) || ! o2 . hasRemaining ( ) ) return o1 . hasRemaining ( ) ? 1 : o2 . hasRemaining ( ) ? - 1 : 0 ; return UUIDGen . getUUID ( o1 ) . compareTo ( UUIDGen . getUUID ( o2 ) ) ; |
public class DefaultQueryParser { /** * Parses the previously split query string into a query request and fills the parameters of the object
* with the data . */
private QueryRequest createQueryRequest ( String [ ] elements ) { } } | QueryRequest request = QueryRequest . create ( ) ; for ( String element : elements ) { String [ ] parts = StringUtils . split ( element , ":" , 2 ) ; parts [ 0 ] = parts [ 0 ] . replace ( "\\" , "\\\\" ) ; parts [ 1 ] = parts [ 1 ] . replace ( "\\" , "\\\\" ) ; request . addParameter ( parts [ 0 ] , parts [ 1 ] . subst... |
public class SimpleEVD { /** * Returns an eigenvalue as a complex number . For symmetric matrices the returned eigenvalue will always be a real
* number , which means the imaginary component will be equal to zero .
* NOTE : The order of the eigenvalues is dependent upon the decomposition algorithm used . This means... | if ( is64 ) return ( ( EigenDecomposition_F64 ) eig ) . getEigenvalue ( index ) ; else { Complex_F64 c = ( ( EigenDecomposition_F64 ) eig ) . getEigenvalue ( index ) ; return new Complex_F64 ( c . real , c . imaginary ) ; } |
public class RouteSelector { /** * Returns the next proxy to try . May be PROXY . NO _ PROXY but never null . */
private Proxy nextProxy ( ) throws IOException { } } | if ( ! hasNextProxy ( ) ) { throw new SocketException ( "No route to " + address . url ( ) . host ( ) + "; exhausted proxy configurations: " + proxies ) ; } Proxy result = proxies . get ( nextProxyIndex ++ ) ; resetNextInetSocketAddress ( result ) ; return result ; |
public class Utils { /** * Closes and flushes the specified { @ link Closeable } items .
* @ param closeables An { @ link Iterable } of { @ link Closeable } items . */
public static void closeQuietly ( Iterable < Closeable > closeables ) { } } | for ( Closeable c : closeables ) { try { // Check if we also need to flush
if ( c instanceof Flushable ) { ( ( Flushable ) c ) . flush ( ) ; } if ( c != null ) { c . close ( ) ; } } catch ( IOException e ) { LOGGER . debug ( "Error closing:" + c ) ; } } |
public class CouchDbClient { /** * Shuts down and releases resources used by this couchDbClient instance .
* Note : Apache ' s httpclient was replaced by HttpUrlConnection .
* Connection manager is no longer used . */
public void shutdown ( ) { } } | // Delete the cookie _ session if there is one
Response response = executeToResponse ( Http . DELETE ( new URIBase ( clientUri ) . path ( "_session" ) . build ( ) ) ) ; if ( ! response . isOk ( ) ) { log . warning ( "Error deleting session on client shutdown." ) ; } // The execute method handles non - 2xx response code... |
public class MKeyArea { /** * Insert this record at the current location .
* @ param table The basetable .
* @ param keyArea The key area .
* @ param bufferNew The buffer to add .
* @ param iRelPosition relative position to add the record .
* @ exception DBException File exception . */
public void insertCurre... | m_iIndex += iRelPosition ; m_VectorObjects . insertElementAt ( bufferNew , m_iIndex ) ; m_iIndex = - 1 ; // The index can ' t be used in caches anymore . |
public class RegexValidator { /** * { @ inheritDoc } */
public void restoreState ( FacesContext context , Object state ) { } } | if ( state != null ) { // Since pattern is required , if state is null
// nothing has changed
this . pattern = ( String ) state ; } |
public class BDAImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case AfplibPackage . BDA__FLAGS : return getFlags ( ) ; case AfplibPackage . BDA__XOFFSET : return getXoffset ( ) ; case AfplibPackage . BDA__YOFFSET : return getYoffset ( ) ; case AfplibPackage . BDA__DATA : return getData ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class APIAccessService { /** * Process the { @ link JSONObject } request
* @ param urlString
* @ param request
* @ param requestType
* @ param requestHedaers
* @ return { @ link JSONObject }
* @ throws CertificateException
* @ throws IOException
* @ throws JSONException */
public JSONObject proce... | resetRequestScenarioVariables ( ) ; String response = null ; GenericUser authenticationUser = ( GenericUser ) getScenarioGlobals ( ) . getAttribute ( API_AUTHENTICATION_USER ) ; if ( BROWSER_API_ACCESS_MODE . equals ( getAPIAccessMode ( ) ) ) { response = processBrowserAPIRequest ( urlString , request , requestType , r... |
public class Classes { /** * Retrieve binary resource as array of bytes . Uses { @ link # getResourceAsStream ( String ) } to read binary resource and
* return bytes array .
* @ param name resource name .
* @ return binary resource content as array of bytes .
* @ throws NoSuchBeingException if resource not foun... | InputStream is = getResourceAsStream ( name ) ; ByteArrayOutputStream os = new ByteArrayOutputStream ( ) ; try { byte [ ] buffer = new byte [ 4096 ] ; int length = 0 ; while ( ( length = is . read ( buffer ) ) != - 1 ) { os . write ( buffer , 0 , length ) ; } } finally { Files . close ( is ) ; Files . close ( os ) ; } ... |
public class DateControl { /** * Unbinds the given control from this control . Unbinding is done for all
* properties and observable lists that have previously been bound by the
* { @ link # bind ( DateControl , boolean ) } method .
* @ param otherControl the control to unbind */
public final void unbind ( DateCo... | requireNonNull ( otherControl ) ; boundDateControls . remove ( otherControl ) ; // unbind maps
Bindings . unbindContentBidirectional ( otherControl . getCalendarVisibilityMap ( ) , getCalendarVisibilityMap ( ) ) ; // unbind lists
Bindings . unbindContentBidirectional ( otherControl . getCalendarSources ( ) , getCalenda... |
public class MTRandom { /** * This simply utility method can be used in cases where a byte
* array of seed data is to be used to repeatedly re - seed the
* random number sequence . By packing the byte array into an
* integer array first , using this method , and then invoking
* setSeed ( ) with that ; it remove... | int k , blen = buf . length , ilen = ( ( buf . length + 3 ) >>> 2 ) ; int [ ] ibuf = new int [ ilen ] ; for ( int n = 0 ; n < ilen ; n ++ ) { int m = ( n + 1 ) << 2 ; if ( m > blen ) m = blen ; for ( k = buf [ -- m ] & 0xff ; ( m & 0x3 ) != 0 ; k = ( k << 8 ) | buf [ -- m ] & 0xff ) ; ibuf [ n ] = k ; } return ibuf ; |
public class Process { /** * Gets all of the Content Specification Unique Topic ID ' s that are used in the process .
* @ return A List of Unique Topic ID ' s . */
protected List < String > getTopicIds ( ) { } } | LinkedList < String > topicIds = new LinkedList < String > ( ) ; for ( final Entry < String , SpecTopic > specTopicEntry : topics . entrySet ( ) ) { topicIds . add ( specTopicEntry . getKey ( ) ) ; } return topicIds ; |
public class HadoopUtils { /** * Returns a new Hadoop Configuration object using the path to the hadoop conf configured
* in the main configuration ( flink - conf . yaml ) .
* This method is public because its being used in the HadoopDataSource .
* @ param flinkConfiguration Flink configuration object
* @ retur... | Configuration retConf = new Configuration ( ) ; // We need to load both core - site . xml and hdfs - site . xml to determine the default fs path and
// the hdfs configuration
// Try to load HDFS configuration from Hadoop ' s own configuration files
// 1 . approach : Flink configuration
final String hdfsDefaultPath = fl... |
public class GetData { /** * Evaluate the expression at the < code > value < / code > attribute and store the result in the
* { @ link javax . servlet . jsp . PageContext } under the attribute key specified in { @ link # setResultId ( String ) } .
* If an existing key in the PageContext ' s attribute map exists , a... | if ( _value != null ) { if ( LOGGER . isInfoEnabled ( ) && pageContext . getAttribute ( _resultId ) != null ) LOGGER . info ( "Overwriting a value in PageContext attribute map with key \"" + _resultId + "\" and object of type \"" + _value . getClass ( ) . getName ( ) ) ; pageContext . setAttribute ( _resultId , _value ... |
public class CmsVfsMemoryObjectCache { /** * Returns a cache key for the given system id ( filename ) based on the status
* of the given project flag . < p >
* @ param systemId the system id ( filename ) to get the cache key for
* @ param online indicates if this key is generated for the online project
* @ retu... | if ( online ) { return "online_(" + m_id + ")_" + systemId ; } return "offline_(" + m_id + ")_" + systemId ; |
public class LogRepositorySpaceAlert { /** * determine if the repository location is fine as is , or if it may be shortened . Shortening is hpel specific in
* that we look for logdata or tracedata as the suffix and , if it is there AND the parent directory is of about
* the same size , then we keep the parent direc... | // Find first existing directory among ancestors
while ( ! AccessHelper . isDirectory ( repositoryLocation ) ) { repositoryLocation = repositoryLocation . getParentFile ( ) ; } if ( repositoryLocation . getName ( ) . equals ( LogRepositoryBaseImpl . DEFAULT_LOCATION ) || repositoryLocation . getName ( ) . equals ( LogR... |
public class SARLStandaloneSetup { /** * Create the injector based on the given set of modules and prepare the EMF infrastructure .
* @ param modules the injection modules that are overriding the standard SARL module .
* @ return the injector .
* @ since 0.8
* @ see SARLRuntimeModule */
public Injector createIn... | doPreSetup ( ) ; final Injector injector = createInjector ( modules ) ; register ( injector ) ; return injector ; |
public class InternalNode { /** * remove child */
protected void moveChildsLeft ( final int srcPos ) { } } | // if ( log . isDebugEnabled ( ) ) log . debug ( " moveKeysLeft ( " + srcPos + " ) allocated = " + allocated + " : " +
// keys . length + " : " + ( allocated - srcPos - 1 ) + " : " + ( keys . length - srcPos - 1 ) ) ;
System . arraycopy ( childs , srcPos + 1 , childs , srcPos , allocated - srcPos ) ; |
public class EventSubscriptionsInner { /** * List all event subscriptions for a specific topic .
* List all event subscriptions that have been created for a specific topic .
* @ param resourceGroupName The name of the resource group within the user ' s subscription .
* @ param providerNamespace Namespace of the p... | return listByResourceWithServiceResponseAsync ( resourceGroupName , providerNamespace , resourceTypeName , resourceName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AcpOrd { /** * < p > It checks additionally and books S . E . items . < / p >
* @ param pRqVs additional request scoped parameters
* @ param pCoOr consolidate order
* @ throws Exception - an exception if incomplete */
public final void adChekBookSe ( final Map < String , Object > pRqVs , final CuOrSe... | // additional checking :
String tbn ; // check availability and booking for same good in different orders :
List < CuOrSeGdLn > gljs = null ; List < CuOrSeGdLn > glrs = null ; for ( CuOrSeGdLn gl : pCoOr . getGoods ( ) ) { // join lines with same item :
for ( CuOrSeGdLn gl0 : pCoOr . getGoods ( ) ) { if ( ! gl . getIts... |
public class Searcher { /** * Removes one or several faceted attributes for the next queries .
* If the facet was added several times , you need to call this method several times too or use { @ link # deleteFacet } .
* @ param attributes one or more attribute names .
* @ return this { @ link Searcher } for chaini... | "WeakerAccess" , "unused" } ) // For library users
public Searcher removeFacet ( String ... attributes ) { for ( String attribute : attributes ) { final Integer value = facetRequestCount . get ( attribute ) ; if ( value == null ) { Log . e ( "Algolia|Searcher" , "removeFacet called for" + attribute + " which was not cu... |
public class AppServicePlansInner { /** * Get all App Service plans in a resource group .
* Get all App Service plans in a resource group .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ retu... | return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < AppServicePlanInner > > , Page < AppServicePlanInner > > ( ) { @ Override public Page < AppServicePlanInner > call ( ServiceResponse < Page < AppServicePlanInner > > response ) { return response . body ... |
public class TagsUtils { /** * Parses a comma separated list of tag names .
* @ param tagNames a comma separated list of tag names .
* @ return the list of tag names . */
private static List < String > parseTagNames ( String tagNames ) { } } | return Arrays . stream ( tagNames . split ( "\\s*,\\s*" ) ) . map ( String :: trim ) . collect ( Collectors . toList ( ) ) ; |
public class PBKDF2Realm { /** * Return the Principal associated with the specified username and
* credentials , if one exists in the user data store ; otherwise return null . */
@ Override public Principal authenticate ( String username , String credentials ) { } } | GenericPrincipal principal = ( GenericPrincipal ) getPrincipal ( username ) ; if ( null != principal ) { try { if ( ! PasswordStorage . verifyPassword ( credentials , principal . getPassword ( ) ) ) { principal = null ; } } catch ( CannotPerformOperationException | InvalidHashException e ) { LOGR . log ( Level . WARNIN... |
public class CSSMediaQuery { /** * Append a media expression to the list .
* @ param aMediaExpression
* The media expression to be added . May not be < code > null < / code > .
* @ return this */
@ Nonnull public CSSMediaQuery addMediaExpression ( @ Nonnull final CSSMediaExpression aMediaExpression ) { } } | ValueEnforcer . notNull ( aMediaExpression , "MediaExpression" ) ; m_aMediaExpressions . add ( aMediaExpression ) ; return this ; |
public class JMLambda { /** * Supplier if true optional .
* @ param < R > the type parameter
* @ param bool the bool
* @ param supplier the supplier
* @ return the optional */
public static < R > Optional < R > supplierIfTrue ( boolean bool , Supplier < R > supplier ) { } } | return bool ? Optional . ofNullable ( supplier . get ( ) ) : Optional . empty ( ) ; |
public class EsperantoTagger { /** * " xx " for an unknown verb . */
private String findTransitivity ( String verb ) { } } | if ( verb . endsWith ( "iĝi" ) ) { return "nt" ; } else if ( verb . endsWith ( "igi" ) ) { // The verb " memmortigi is strange : even though it ends in - igi , it
// is intransitive .
return verb . equals ( "memmortigi" ) ? "nt" : "tr" ; } // This loop executes only once for most verbs ( or very few times ) .
for ( ; ;... |
public class SystemUtil { /** * 获取总线程数
* @ return 总线程数 */
public static int getTotalThreadCount ( ) { } } | ThreadGroup parentThread = Thread . currentThread ( ) . getThreadGroup ( ) ; while ( null != parentThread . getParent ( ) ) { parentThread = parentThread . getParent ( ) ; } return parentThread . activeCount ( ) ; |
public class EntityFinder { /** * Utility method that employs some heuristics to find the { @ link EntityInfo } s
* for the polymeric chains given in constructor .
* To be used in case the information is missing in PDB / mmCIF file
* @ return */
public static List < EntityInfo > findPolyEntities ( List < List < C... | TreeMap < String , EntityInfo > chainIds2entities = findEntitiesFromAlignment ( polyModels ) ; List < EntityInfo > entities = findUniqueEntities ( chainIds2entities ) ; return entities ; |
public class StandardThreadExecutor { /** * 线程池内异常处理
* @ param r
* @ param t */
private void printException ( Runnable r , Throwable t ) { } } | if ( t == null && r instanceof Future < ? > ) { try { Future < ? > future = ( Future < ? > ) r ; if ( future . isDone ( ) ) future . get ( ) ; } catch ( CancellationException ce ) { t = ce ; } catch ( ExecutionException ee ) { t = ee . getCause ( ) ; } catch ( InterruptedException ie ) { Thread . currentThread ( ) . in... |
public class TrainingsImpl { /** * Delete a set of image regions .
* @ param projectId The project id
* @ param regionIds Regions to delete . Limited to 64
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ throws IllegalArgumentException thrown if parameters fai... | return ServiceFuture . fromResponse ( deleteImageRegionsWithServiceResponseAsync ( projectId , regionIds ) , serviceCallback ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.