query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public Map<String, MBeanAttributeInfo> getAttributeMetadata() { MBeanAttributeInfo[] attributeList = mBeanInfo.getAttributes(); Map<String, MBeanAttributeInfo> attributeMap = new TreeMap<String, MBeanAttributeInfo>(); for (MBeanAttributeInfo attribute: attributeList) { attributeMap.put(attribute.getName(), attribute); } return attributeMap; }
[ "Get the Attribute metadata for an MBean by name.\n@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values." ]
[ "Use this API to add cmppolicylabel.", "Helper to get locale specific properties.\n\n@return the locale specific properties map.", "Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array.", "Gets all the enterprise events that occurred within a specified date range.\n@param api the API connection to use.\n@param after the lower bound on the timestamp of the events returned.\n@param before the upper bound on the timestamp of the events returned.\n@param types an optional list of event types to filter by.\n@return a log of all the events that met the given criteria.", "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X.", "Execute pull docker image on agent\n\n@param launcher\n@param imageTag\n@param username\n@param password\n@param host\n@return\n@throws IOException\n@throws InterruptedException", "Reads a \"flags\" argument from the request.", "Internal method that finds the matching enum for a configured field that has the name argument.\n\n@return The matching enum value or null if blank enum name.\n@throws IllegalArgumentException\nIf the enum name is not known.", "Joins with another IPv4 segment to produce a IPv6 segment.\n\n@param creator\n@param low\n@return" ]
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()) { if(result != null) { log.error("Found additional connection descriptor with enabled 'default-connection' " + descriptor.getPBKey() + ". This is NOT allowed. Will use the first found descriptor " + result + " as default connection"); } else { result = descriptor.getPBKey(); } } } if(result == null) { log.info("No 'default-connection' attribute set in jdbc-connection-descriptors," + " thus it's currently not possible to use 'defaultPersistenceBroker()' " + " convenience method to lookup PersistenceBroker instances. But it's possible"+ " to enable this at runtime using 'setDefaultKey' method."); } return result; }
[ "Try to build an default PBKey for convenience PB create method.\n\n@return PBKey or <code>null</code> if default key was not declared in\nmetadata" ]
[ "Return true only if the specified object responds to the named method\n@param object - the object to check\n@param methodName - the name of the method\n@return true if the object responds to the named method", "all objects in list1 that are not in list2\n\n@param <T>\n@param list1\nFirst collection\n@param list2\nSecond collection\n@return The collection difference list1 - list2", "Write objects to data store, but don't release the locks.\nI don't know what we should do if we are in a checkpoint and\nwe need to abort.", "Use this API to fetch sslciphersuite resource of given name .", "Return true if the Declaration can be linked to the ImporterService.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<ImporterService> of the ImporterService\n@return true if the Declaration can be linked to the ImporterService", "Shutdown the connection manager.", "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "Add a path to a profile, returns the id\n\n@param id ID of profile\n@param pathname name of path\n@param actualPath value of path\n@return ID of path created\n@throws Exception exception", "Runs the shell script for committing and optionally pushing the changes in the module.\n@return exit code of the script." ]
public boolean detectBlackBerryTouch() { if (detectBlackBerry() && ((userAgent.indexOf(deviceBBStorm) != -1) || (userAgent.indexOf(deviceBBTorch) != -1) || (userAgent.indexOf(deviceBBBoldTouch) != -1) || (userAgent.indexOf(deviceBBCurveTouch) != -1))) { return true; } return false; }
[ "Detects if the current browser is a BlackBerry Touch\ndevice, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.\n@return detection of a Blackberry touchscreen device" ]
[ "Reflection API to find the method corresponding to the default implementation of a trait, given a bridge method.\n@param someMethod a method node\n@return null if it is not a method implemented in a trait. If it is, returns the method from the trait class.", "Returns the optional query modifier.\n@return the optional query modifier.", "Use this API to fetch all the sslcertkey resources that are configured on netscaler.", "Check to see whether a packet starts with the standard header bytes, followed by a known byte identifying it.\nIf so, return the kind of packet that has been recognized.\n\n@param packet a packet that has just been received\n@param port the port on which the packet has been received\n\n@return the type of packet that was recognized, or {@code null} if the packet was not recognized", "Set an enterprise duration value.\n\n@param index duration index (1-30)\n@param value duration value", "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Most complete output", "Finds or opens a client to talk to the dbserver on the specified player, incrementing its use count.\n\n@param targetPlayer the player number whose database needs to be interacted with\n@param description a short description of the task being performed for error reporting if it fails,\nshould be a verb phrase like \"requesting track metadata\"\n\n@return the communication client for talking to that player, or {@code null} if the player could not be found\n\n@throws IllegalStateException if we can't find the target player or there is no suitable player number for us\nto pretend to be\n@throws IOException if there is a problem communicating", "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional" ]
public static String writeMultipleClientConfigAvro(Map<String, Properties> mapStoreToProps) { // TODO: Use a dedicated json lib. We shouldn't be manually manipulating json... String avroConfig = ""; Boolean firstStore = true; for(String storeName: mapStoreToProps.keySet()) { if(firstStore) { firstStore = false; } else { avroConfig = avroConfig + ",\n"; } Properties props = mapStoreToProps.get(storeName); avroConfig = avroConfig + "\t\"" + storeName + "\": " + writeSingleClientConfigAvro(props); } return "{\n" + avroConfig + "\n}"; }
[ "Assembles an avro format string that contains multiple fat client configs\nfrom map of store to properties\n\n@param mapStoreToProps A map of store names to their properties\n@return Avro string that contains multiple store configs" ]
[ "Converts any string into a string that is safe to use as a file name.\nThe result will only include ascii characters and numbers, and the \"-\",\"_\", and \".\" characters.", "This method can be used by child classes to apply the configuration that is stored in config.", "Get bean manager from portlet context.\n\n@param ctx the portlet context\n@return bean manager if found", "Register the given mbean with the server\n\n@param server The server to register with\n@param mbean The mbean to register\n@param name The name to register under", "Returns a persistence strategy based on the passed configuration.\n\n@param cacheMapping the selected {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType}\n@param externalCacheManager the infinispan cache manager\n@param configurationUrl the location of the configuration file\n@param jtaPlatform the {@link JtaPlatform}\n@param entityTypes the meta-data of the entities\n@param associationTypes the meta-data of the associations\n@param idSourceTypes the meta-data of the id generators\n@return the persistence strategy", "This method merges together assignment data for the same cost.\n\n@param list assignment data", "Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Str map to str.\n\n@param map\nthe map\n@return the string", "Use this API to count sslcipher_individualcipher_binding resources configued on NetScaler." ]
protected MappedPreparedStmt<T, ID> prepareStatement(Long limit, boolean cacheStore) throws SQLException { List<ArgumentHolder> argList = new ArrayList<ArgumentHolder>(); String statement = buildStatementString(argList); ArgumentHolder[] selectArgs = argList.toArray(new ArgumentHolder[argList.size()]); FieldType[] resultFieldTypes = getResultFieldTypes(); FieldType[] argFieldTypes = new FieldType[argList.size()]; for (int selectC = 0; selectC < selectArgs.length; selectC++) { argFieldTypes[selectC] = selectArgs[selectC].getFieldType(); } if (!type.isOkForStatementBuilder()) { throw new IllegalStateException("Building a statement from a " + type + " statement is not allowed"); } return new MappedPreparedStmt<T, ID>(dao, tableInfo, statement, argFieldTypes, resultFieldTypes, selectArgs, (databaseType.isLimitSqlSupported() ? null : limit), type, cacheStore); }
[ "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none." ]
[ "Deserializes a variable, checking whether the datatype is custom or not\n@param s\n@param variableType\n@param dataTypes\n@return", "Parses an RgbaColor from an rgb value.\n\n@return the parsed color", "Add new control at the end of control bar with specified touch listener.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param properties JSON control specific properties\n@param listener touch listener", "visibility increased for testing", "Attempts to checkout a resource so that one queued request can be\nserviced.\n\n@param key The key for which to process the requestQueue\n@return true iff an item was processed from the Queue.", "Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException", "Get the service implementations for a given type name.\n\n@param serviceTypeName the type name\n@return the possibly empty list of services", "Sets the value for the API's \"languages\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Sets the actual path for this ID\n\n@param pathId ID of path\n@param path value of path" ]
public static DMatrixRMaj nullspaceQRP( DMatrixRMaj A , int totalSingular ) { SolveNullSpaceQRP_DDRM solver = new SolveNullSpaceQRP_DDRM(); DMatrixRMaj nullspace = new DMatrixRMaj(1,1); if( !solver.process(A,totalSingular,nullspace)) throw new RuntimeException("Solver failed. try SVD based method instead?"); return nullspace; }
[ "Computes the null space using QRP decomposition. This is faster than using SVD but slower than QR.\nMuch more stable than QR though.\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space" ]
[ "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "Delivers the correct JSON Object for the Stencilset Extensions\n\n@param extensions", "Use this API to update protocolhttpband.", "As part of checking whether a metadata cache can be auto-mounted for a particular media slot, this method\nlooks up the track at the specified offset within the player's track list, and returns its rekordbox ID.\n\n@param slot the slot being considered for auto-attaching a metadata cache\n@param client the connection to the database server on the player holding that slot\n@param offset an index into the list of all tracks present in the slot\n\n@throws IOException if there is a problem communicating with the player", "Sets a request header with the given name and value. If a header with the\nspecified name has already been set then the new value overwrites the\ncurrent value.\n\n@param header the name of the header\n@param value the value of the header\n\n@throws NullPointerException if header or value are null\n@throws IllegalArgumentException if header or value are the empty string", "Given a interim cluster with a previously vacated zone, constructs a new\ncluster object with the drop zone completely removed\n\n@param intermediateCluster\n@param dropZoneId\n@return adjusted cluster with the zone dropped", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.", "Reconnect to the HC.\n\n@return whether the server is still in sync\n@throws IOException", "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source" ]
@PostConstruct protected void postConstruct() { if (pixelPerUnitBased) { // Calculate numerator and denominator if (pixelPerUnit > PIXEL_PER_METER) { this.numerator = pixelPerUnit / conversionFactor; this.denominator = 1; } else { this.numerator = 1; this.denominator = PIXEL_PER_METER / pixelPerUnit; } setPixelPerUnitBased(false); } else { // Calculate PPU this.pixelPerUnit = numerator / denominator * conversionFactor; setPixelPerUnitBased(true); } }
[ "Finish configuration." ]
[ "Called internally to actually process the Iteration.", "Determine which type of percent complete is used on on this task,\nand calculate the required value.\n\n@param row task data\n@return percent complete value", "Use this API to add ipset.", "Get a collection of all of the user's groups.\n\n@return A Collection of Group objects\n@throws FlickrException", "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field", "Build and return a foreign collection based on the field settings that matches the id argument. This can return\nnull in certain circumstances.\n\n@param parent\nThe parent object that we will set on each item in the collection.\n@param id\nThe id of the foreign object we will look for. This can be null if we are creating an empty\ncollection.", "Adds all direct subtypes to the given list.\n\n@param type The type for which to determine the direct subtypes\n@param subTypes The list to receive the subtypes", "Map the EventType.\n\n@param eventType the event type\n@return the event" ]
public void setList(List<T> list) { if (list != mList) { mList = list; if (mList == null) { notifyInvalidated(); } else { notifyChanged(); } } }
[ "Set new list data set\n@param list new data set" ]
[ "We have received an update that invalidates the waveform preview for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no waveform preview for the associated player", "Load an animation for the current avatar.\n@param animResource resource with the animation\n@param boneMap optional bone map to map animation skeleton to avatar", "Init the licenses cache\n\n@param licenses", "Use this API to fetch all the appflowpolicylabel resources that are configured on netscaler.", "generate a prepared INSERT-Statement for the Class\ndescribed by cld.\n\n@param cld the ClassDescriptor", "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType the target collection element type\n@return collection", "Use this API to unset the properties of bridgetable resource.\nProperties that need to be unset are specified in args array.", "Returns the zip entry for a file in the archive.\n@param filename the file name\n@return the zip entry for the file with the provided name\n@throws ZipException thrown if the file is not in the zip archive", "Returns a single template.\n\n@param id id of the template to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations." ]
public static DMatrixRMaj insideSpan(DMatrixRMaj[] span , double min , double max , Random rand ) { DMatrixRMaj A = new DMatrixRMaj(span.length,1); DMatrixRMaj B = new DMatrixRMaj(span[0].getNumElements(),1); for( int i = 0; i < span.length; i++ ) { B.set(span[i]); double val = rand.nextDouble()*(max-min)+min; CommonOps_DDRM.scale(val,B); CommonOps_DDRM.add(A,B,A); } return A; }
[ "Creates a random vector that is inside the specified span.\n\n@param span The span the random vector belongs in.\n@param rand RNG\n@return A random vector within the specified span." ]
[ "This method retrieves the data at the given offset and returns\nit as a String, assuming the underlying data is composed of\nsingle byte characters.\n\n@param offset offset of required data\n@return string containing required data", "Restores a trashed folder back to its original location.\n@param folderID the ID of the trashed folder.\n@return info about the restored folder.", "Use this API to update nspbr6 resources.", "The main method called from the command line.\n\n@param args the command line arguments", "Returns string content of blob identified by specified blob handle. String contents cache is used.\n\n@param blobHandle blob handle\n@param txn {@linkplain Transaction} instance\n@return string content of blob identified by specified blob handle\n@throws IOException if something went wrong", "Adds main report query.\n\n@param text\n@param language use constants from {@link DJConstants}\n@return", "Convert this object to a json object.", "Validates the type", "Set OAuth 1 authentication credentials for the replication target\n\n@param consumerSecret client secret\n@param consumerKey client identifier\n@param tokenSecret OAuth server token secret\n@param token OAuth server issued token\n@return this Replication instance to set more options or trigger the replication" ]
public boolean endsWith(Bytes suffix) { Objects.requireNonNull(suffix, "endsWith(Bytes suffix) cannot have null parameter"); int startOffset = this.length - suffix.length; if (startOffset < 0) { return false; } else { int end = startOffset + this.offset + suffix.length; for (int i = startOffset + this.offset, j = suffix.offset; i < end; i++, j++) { if (this.data[i] != suffix.data[j]) { return false; } } } return true; }
[ "Checks if this has the passed suffix\n\n@param suffix is a Bytes object to compare to this\n@return true or false\n@since 1.1.0" ]
[ "Deletes this BoxStoragePolicyAssignment.", "Add an entry to the cache.\n@param key key to use.\n@param value access token information to store.", "2-D Forward Discrete Hartley Transform.\n\n@param data Data.", "Sum of all elements\n\n@param A (Input) Matrix. Not modified.\n@return scalar", "loads a class using the name of the class", "Set the group name\n\n@param name new name of server group\n@param id ID of group", "Converts an image in RGB mode to BINARY mode\n\n@param img image\n@param threshold grays cale threshold\n@return new MarvinImage instance in BINARY mode", "Creates a new Box Developer Edition connection with App User token levaraging BoxConfig.\n@param userId the user ID to use for an App User.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection.", "Method to be implemented by the RendererBuilder subtypes. In this method the library user will\ndefine the mapping between content and renderer class.\n\n@param content used to map object to Renderers.\n@return the class associated to the renderer." ]
public void createNewFile() throws SmbException { if( getUncPath0().length() == 1 ) { throw new SmbException( "Invalid operation for workgroups, servers, or shares" ); } close( open0( O_RDWR | O_CREAT | O_EXCL, 0, ATTR_NORMAL, 0 ), 0L ); }
[ "Create a new file but fail if it already exists. The check for\nexistance of the file and it's creation are an atomic operation with\nrespect to other filesystem activities." ]
[ "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent.", "Returns all the deployment runtime names associated with an overlay accross all server groups.\n\n@param context the current OperationContext.\n@param overlay the name of the overlay.\n@return all the deployment runtime names associated with an overlay accross all server groups.", "Logs a message for a case where the value of a property does not fit to\nits declared datatype.\n\n@param propertyIdValue\nthe property that was used\n@param datatype\nthe declared type of the property\n@param valueType\na string to denote the type of value", "Support the range subscript operator for String with IntRange\n\n@param text a String\n@param range an IntRange\n@return the resulting String\n@since 1.0", "Method to build Mail Channel Adapter for IMAP.\n@param urlName Mail source URL.\n@return Mail Channel for IMAP", "AND operation which takes the previous clause and the next clause and AND's them together.", "Renders the given FreeMarker template to given directory, using given variables.", "The way calendars are stored in an MPP14 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy" ]
String getDefaultReturnFields() { StringBuffer fields = new StringBuffer(""); fields.append(CmsSearchField.FIELD_PATH); fields.append(','); fields.append(CmsSearchField.FIELD_INSTANCEDATE).append('_').append(getSearchLocale().toString()).append("_dt"); fields.append(','); fields.append(CmsSearchField.FIELD_INSTANCEDATE_END).append('_').append(getSearchLocale().toString()).append( "_dt"); fields.append(','); fields.append(CmsSearchField.FIELD_INSTANCEDATE_CURRENT_TILL).append('_').append( getSearchLocale().toString()).append("_dt"); fields.append(','); fields.append(CmsSearchField.FIELD_ID); fields.append(','); fields.append(CmsSearchField.FIELD_SOLR_ID); fields.append(','); fields.append(CmsSearchField.FIELD_DISPTITLE).append('_').append(getSearchLocale().toString()).append("_sort"); fields.append(','); fields.append(CmsSearchField.FIELD_LINK); return fields.toString(); }
[ "The fields returned by default. Typically the output is done via display formatters and hence nearly no\nfield is necessary. Returning all fields might cause performance problems.\n\n@return the default return fields." ]
[ "Perform a post-boot scan to remove any deployments added during boot that failed to deploy properly.\nThis method isn't private solely to allow a unit test in the same package to call it.", "Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved.", "Return a new instance of the BufferedImage\n\n@return BufferedImage", "Notifies all listeners that the data is about to be loaded.", "If the belief its a count of some sort his counting its increased by one.\n\n@param bName\n- the name of the belief count.", "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "Returns a list of objects for each line in the spreadsheet, of the specified type.\n\n<p>\nIf the class is a view model then the objects will be properly instantiated (that is, using\n{@link DomainObjectContainer#newViewModelInstance(Class, String)}, with the correct\nview model memento); otherwise the objects will be simple transient objects (that is, using\n{@link DomainObjectContainer#newTransientInstance(Class)}).\n</p>", "Was the CDJ playing a track when this update was sent?\n\n@return true if the play flag was set, or, if this seems to be a non-nexus player, if <em>P<sub>1</sub></em>\nhas a value corresponding to a playing state.", "Gets value of this function at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@return The value of the function at the point." ]
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); for (ResourceRoot resourceRoot : DeploymentUtils.allResourceRoots(deploymentUnit)) { ResourceRootIndexer.indexResourceRoot(resourceRoot); } }
[ "Process this deployment for annotations. This will use an annotation indexer to create an index of all annotations\nfound in this deployment and attach it to the deployment unit context.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException" ]
[ "Answer the counted size\n\n@return int", "Sets the value to a default.", "Retrieve the number of minutes per week for this calendar.\n\n@return minutes per week", "Matrix inverse for symmetric positive definite matrices. For small matrices an unrolled\ncholesky is used. Otherwise a standard decomposition.\n\n@see UnrolledCholesky_DDRM\n@see LinearSolverFactory_DDRM#chol(int)\n\n@param mat (Input) SPD matrix\n@param result (Output) Inverted matrix.\n@return true if it could invert the matrix false if it could not.", "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "Use this API to fetch appflowpolicylabel resource of given name .", "Parses the comma delimited address into model nodes.\n\n@param profileName the profile name for the domain or {@code null} if not a domain\n@param inputAddress the address.\n\n@return a collection of the address nodes.", "Sets the path to the script file to load and loads the script.\n\n@param filePath path to script file\n@throws IOException if the script cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "Unmark a PersistenceBroker as preferred choice for current Thread\n\n@param key The PBKey the broker is associated to\n@param broker The PersistenceBroker to unmark" ]
public ListResponse listTemplates(Map<String, Object> options) throws RequestException, LocalOperationException { Request request = new Request(this); return new ListResponse(request.get("/templates", options)); }
[ "Returns a list of all templates under the user account\n\n@param options {@link Map} extra options to send along with the request.\n@return {@link ListResponse}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations." ]
[ "Answer the TableAlias for aPath\n@param aPath\n@param hintClasses\n@return TableAlias, null if none", "Use this API to unset the properties of nslimitselector resource.\nProperties that need to be unset are specified in args array.", "Shows a dialog with user information for given session.\n\n@param session to show information for", "Produces a string identifying this half-edge by the point index values of\nits tail and head vertices.\n\n@return identifying string", "Get maximum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Maximum gray.", "Remove a previously registered requirement for a capability.\n\n@param requirementRegistration the requirement. Cannot be {@code null}\n@see #registerAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)", "Creates a Set out of the given keys\n\n@param <K> the key type\n@param keys\nthe keys\n@return a Set containing the given keys", "Returns a non-validating XML parser. The parser ignores both DTDs and XSDs.\n\n@return An XML parser in the form of a DocumentBuilder", "Saves meta tree, writes database root and flushes the log.\n\n@param metaTree mutable meta tree\n@param env enclosing environment\n@param expired expired loggables (database root to be added)\n@return database root loggable which is read again from the log." ]
private Date readOptionalDate(JSONValue val) { JSONString str = null == val ? null : val.isString(); if (str != null) { try { return new Date(Long.parseLong(str.stringValue())); } catch (@SuppressWarnings("unused") NumberFormatException e) { // do nothing - return the default value } } return null; }
[ "Read an optional Date value form a JSON value.\n@param val the JSON value that should represent the Date as long value in a string.\n@return the Date from the JSON or null if reading the date fails." ]
[ "Finds all the resource names contained in this file system folder.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param scanRootLocation The root location of the scan on the classpath, without leading or trailing slashes.\n@param folder The folder to look for resources under on disk.\n@return The resource names;", "set the property destination type for given property\n\n@param propertyName\n@param destinationType", "Build a query to read the mn-implementors\n@param ids", "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "Return the value from the field in the object that is defined by this FieldType.", "Returns the modules paths used on the command line.\n\n@return the paths separated by the {@link File#pathSeparator path separator}", "Check if the the nodeId is present in the cluster managed by the metadata store\nor throw an exception.\n\n@param nodeId The nodeId to check existence of", "Extract the field types from the fieldConfigs if they have not already been configured.", "Examines the error data returned from Facebook and throws the most applicable exception.\n@param errorDetails a Map containing a \"type\" and a \"message\" corresponding to the Graph API's error response structure." ]
public static <T> NewSessionBean<T> of(BeanAttributes<T> attributes, InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager) { EnhancedAnnotatedType<T> type = beanManager.getServices().get(ClassTransformer.class).getEnhancedAnnotatedType(ejbDescriptor.getBeanClass(), beanManager.getId()); return new NewSessionBean<T>(attributes, type, ejbDescriptor, new StringBeanIdentifier(SessionBeans.createIdentifierForNew(ejbDescriptor)), beanManager); }
[ "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance" ]
[ "Use this API to update cachecontentgroup.", "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object", "Emit information about all of suite's tests.", "Changes the given filenames suffix from the current suffix to the provided suffix.\n\n<b>Directly exposed for JSP EL</b>, not through {@link org.opencms.jsp.util.CmsJspElFunctions}.<p>\n\n@param filename the filename to be changed\n@param suffix the new suffix of the file\n\n@return the filename with the replaced suffix", "convert a param object to a multimap.\n\n@param objectParams the parameters to convert.\n@return the corresponding Multimap.", "Added in Gerrit 2.11.", "Returns whether this is a valid address string format.\n\nThe accepted IP address formats are:\nan IPv4 address, an IPv6 address, a network prefix alone, the address representing all addresses of all types, or an empty string.\nIf this method returns false, and you want more details, call validate() and examine the thrown exception.\n\n@return whether this is a valid address string format", "Stops and clears all transitions" ]
public static vpnsessionaction get(nitro_service service, String name) throws Exception{ vpnsessionaction obj = new vpnsessionaction(); obj.set_name(name); vpnsessionaction response = (vpnsessionaction) obj.get_resource(service); return response; }
[ "Use this API to fetch vpnsessionaction resource of given name ." ]
[ "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\nAdditionally, the methods also removes the returned images from the cache.\n@param buildInfoId\n@return", "Waits for a job V3 to complete\n\n@param cloudFoundryClient the client to use to request job status\n@param completionTimeout the amount of time to wait for the job to complete.\n@param jobId the id of the job\n@return {@code onComplete} once job has completed", "Look for the closing parenthesis corresponding to the one at position\nrepresented by the opening index.\n\n@param text input expression\n@param opening opening parenthesis index\n@return closing parenthesis index", "This method will be intercepted by the proxy if it is enabled to return the internal target.\n@return the target.", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "If status is in failed state then throw CloudException.", "Writes all error responses to the client.\n\nTODO REST-Server 1. collect error stats\n\n@param messageEvent - for retrieving the channel details\n@param status - error code\n@param message - error message", "Retrieve and validate vector clock value from the REST request.\n\"X_VOLD_VECTOR_CLOCK\" is the vector clock header.\n\n@return true if present, false if missing", "Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args" ]
public static sslcipher get(nitro_service service, String ciphergroupname) throws Exception{ sslcipher obj = new sslcipher(); obj.set_ciphergroupname(ciphergroupname); sslcipher response = (sslcipher) obj.get_resource(service); return response; }
[ "Use this API to fetch sslcipher resource of given name ." ]
[ "Sets the name of the base calendar associated with this task.\nNote that this attribute appears in MPP9 and MSPDI files.\n\n@param calendar calendar instance", "Log warning for the resource at the provided address and single attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attribute attribute we are warning about", "Returns a module\n\n@param moduleId String\n@return DbModule", "Queries a Search Index and returns grouped results in a map where key\nof the map is the groupName. In case the query didnt use grouping,\nan empty map is returned\n\n@param <T> Object type T\n@param query the Lucene query to be passed to the Search index\n@param classOfT The class of type T\n@return The result of the grouped search query as a ordered {@code Map<String,T> }", "Removes all of the markers from the map.", "Orders first by word, then by tag.\n\n@param wordTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)", "Returns the list of nodes which match the expression xpathExpr in the Document dom.\n\n@param dom the Document to search in\n@param xpathExpr the xpath query\n@return the list of nodes which match the query\n@throws XPathExpressionException On error.", "Use this API to fetch all the sslpolicylabel resources that are configured on netscaler.", "Start timing an operation with the given identifier." ]
private Query getReportQueryByCriteriaCount(ReportQueryByCriteria aQuery) { ReportQueryByCriteria countQuery = (ReportQueryByCriteria) getQueryByCriteriaCount(aQuery); // BRJ: keep the original columns to build the Join countQuery.setJoinAttributes(aQuery.getAttributes()); // BRJ: we have to preserve groupby information Iterator iter = aQuery.getGroupBy().iterator(); while(iter.hasNext()) { countQuery.addGroupBy((FieldHelper) iter.next()); } return countQuery; }
[ "Create a Count-Query for ReportQueryByCriteria" ]
[ "Returns with an iterable of URIs that points to all elements that are\nreferenced by the argument or vice-versa.\n\n@return an iterable of URIs that are referenced by the argument or the\nother way around.", "This method retrieves ONLY the ROOT actions", "Creates a Span that covers an exact row. String parameters will be encoded as UTF-8", "Sets the access token to use when authenticating a client.", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance", "Sets the country for which currencies should be requested.\n\n@param countries The ISO countries.\n@return the query for chaining.", "Sets all Fluo properties to their default in the given configuration. NOTE - some properties do\nnot have defaults and will not be set.", "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment.", "Checks if the object with the given identity has been deleted\nwithin the transaction.\n@param id The identity\n@return true if the object has been deleted\n@throws PersistenceBrokerException" ]
private void writeFileCreationRecord() throws IOException { ProjectProperties properties = m_projectFile.getProjectProperties(); m_buffer.setLength(0); m_buffer.append("MPX"); m_buffer.append(m_delimiter); m_buffer.append(properties.getMpxProgramName()); m_buffer.append(m_delimiter); m_buffer.append(properties.getMpxFileVersion()); m_buffer.append(m_delimiter); m_buffer.append(properties.getMpxCodePage()); m_buffer.append(MPXConstants.EOL); m_writer.write(m_buffer.toString()); }
[ "Write file creation record.\n\n@throws IOException" ]
[ "This method lists any notes attached to tasks.\n\n@param file MPX file", "Get random geographical location\n@return 2-Tuple of ints (latitude, longitude)", "Print work units.\n\n@param value TimeUnit instance\n@return work units value", "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs", "Set the individual dates where the event should take place.\n@param dates the dates to set.", "Get a random pod that provides the specified service in the specified namespace.\n\n@param client\nThe client instance to use.\n@param name\nThe name of the service.\n@param namespace\nThe namespace of the service.\n\n@return The pod or null if no pod matches.", "Returns with a view of all scopes known by this manager.", "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "Convert the message to a FinishRequest" ]
public static InputStream toStream(String content, Charset charset) { byte[] bytes = content.getBytes(charset); return new ByteArrayInputStream(bytes); }
[ "Converts the string of given content to an input stream.\n\n@param content the string content.\n@param charset the charset for conversion.\n@return the stream (should be closed by invoker)." ]
[ "Creates a new instance with the given key and value.\nMay be used instead of the constructor for convenience reasons.\n\n@param k\nthe key. May be <code>null</code>.\n@param v\nthe value. May be <code>null</code>.\n@return a newly created pair. Never <code>null</code>.\n@since 2.3", "Get the inactive history directories.\n\n@return the inactive history", "end class SAXErrorHandler", "Make sure the result index points to the next available key in the scan result, if exists.", "convert object into another class using the JSON mapper\n\n@param <C> the generic target type\n@param object the object to convert\n@param targetClass the class of the target object\n@return the converted object\n@throws IllegalArgumentException if conversion fails", "Retrieves the pro-rata work carried out on a given day.\n\n@param calendar current calendar\n@param assignment current assignment.\n@return assignment work duration", "Return the version string of this instance of finmath-lib.\n\n@return The version string of this instance of finmath-lib.", "Add the declarationBinderRef to the ImportersManager, create the corresponding.\nBinderDescriptor.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder\n@throws InvalidFilterException", "Detach any script file from a scriptable target.\n\n@param target The scriptable target." ]
public static String makeAsciiTable(Object[][] table, Object[] rowLabels, Object[] colLabels, int padLeft, int padRight, boolean tsv) { StringBuilder buff = new StringBuilder(); // top row buff.append(makeAsciiTableCell("", padLeft, padRight, tsv)); // the top left cell for (int j = 0; j < table[0].length; j++) { // assume table is a rectangular matrix buff.append(makeAsciiTableCell(colLabels[j], padLeft, padRight, (j != table[0].length - 1) && tsv)); } buff.append('\n'); // all other rows for (int i = 0; i < table.length; i++) { // one row buff.append(makeAsciiTableCell(rowLabels[i], padLeft, padRight, tsv)); for (int j = 0; j < table[i].length; j++) { buff.append(makeAsciiTableCell(table[i][j], padLeft, padRight, (j != table[0].length - 1) && tsv)); } buff.append('\n'); } return buff.toString(); }
[ "Returns an text table containing the matrix of Strings passed in.\nThe first dimension of the matrix should represent the rows, and the\nsecond dimension the columns." ]
[ "Use this API to fetch all the route6 resources that are configured on netscaler.\nThis uses route6_args which is a way to provide additional arguments while fetching the resources.", "So we will follow rfc 1035 and in addition allow the underscore.", "Non-blocking call\n\n@param key\n@param value\n@return", "Use this API to fetch dospolicy resource of given name .", "Create a new GP entry in the database. No commit performed.", "Starts the scenario with the given method and arguments.\nDerives the description from the method name.\n@param method the method that started the scenario\n@param arguments the test arguments with their parameter names", "Returns the local collection representing the given namespace.\n\n@param namespace the namespace referring to the local collection.\n@param resultClass the {@link Class} that represents documents in the collection.\n@param <T> the type documents in the collection.\n@return the local collection representing the given namespace.", "Build all combinations of graph structures for generic event stubs of a maximum length\n@param length Maximum number of nodes in each to generate\n@return All graph combinations of specified length or less", "Token Info\nReturns the Token Information\n@return ApiResponse&lt;TokenInfoSuccessResponse&gt;\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body" ]
public PayloadBuilder customField(final String key, final Object value) { root.put(key, value); return this; }
[ "Sets any application-specific custom fields. The values\nare presented to the application and the iPhone doesn't\ndisplay them automatically.\n\nThis can be used to pass specific values (urls, ids, etc) to\nthe application in addition to the notification message\nitself.\n\n@param key the custom field name\n@param value the custom field value\n@return this" ]
[ "Sets a property on this Javascript object for which the value is a\nJavascriptEnum\n\nThe value is set to what is returned by the getEnumValue() method on the JavascriptEnum\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the lowest to the highest score.\nLexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements", "Build list of style filters from style definitions.\n\n@param styleDefinitions\nlist of style definitions\n@return list of style filters\n@throws GeomajasException", "Retrieves the time at which work finishes on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return finish time, or null for non-working day", "Use this API to export appfwlearningdata resources.", "The ID field contains the identifier number that Microsoft Project\nautomatically assigns to each task as you add it to the project.\nThe ID indicates the position of a task with respect to the other tasks.\n\n@param val ID", "Add groups to the tree.\n\n@param parentNode parent tree node\n@param file group container", "Set source url for a server\n\n@param newUrl new URL\n@param id Server ID", "Checks the constraints on this class.\n\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated" ]
private void setMax(MtasRBTreeNode n) { n.max = n.right; if (n.leftChild != null) { n.max = Math.max(n.max, n.leftChild.max); } if (n.rightChild != null) { n.max = Math.max(n.max, n.rightChild.max); } }
[ "Sets the max.\n\n@param n the new max" ]
[ "Returns a copy of the given document.\n@param document the document to copy.\n@return a copy of the given document.", "Create an embedded host controller.\n\n@param jbossHomePath the location of the root of the host controller installation. Cannot be {@code null} or empty.\n@param modulePath the location of the root of the module repository. May be {@code null} if the standard\nlocation under {@code jbossHomePath} should be used\n@param systemPackages names of any packages that must be treated as system packages, with the same classes\nvisible to the caller's classloader visible to host-controller-side classes loaded from\nthe server's modular classloader\n@param cmdargs any additional arguments to pass to the embedded host controller (e.g. -b=192.168.100.10)\n@return the server. Will not be {@code null}", "Adds all categories from one resource to another, skipping categories that are not available for the resource copied to.\n\nThe resource where categories are copied to has to be locked.\n\n@param cms the CmsObject used for reading and writing.\n@param fromResource the resource to copy the categories from.\n@param toResourceSitePath the full site path of the resource to copy the categories to.\n@throws CmsException thrown if copying the resources fails.", "Gets the favorite entry for a given row.\n\n@param row the widget used to display the favorite\n@return the favorite entry for the widget", "Get DPI suggestions.\n\n@return DPI suggestions", "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException", "create partitions in the broker\n\n@param topic topic name\n@param partitionNum partition numbers\n@param enlarge enlarge partition number if broker configuration has\nsetted\n@return partition number in the broker\n@throws IOException if an I/O error occurs", "Use this API to fetch tunneltrafficpolicy resource of given name .", "Checks the preconditions for creating a new ParseDateTimeAbstract processor with date format and locale.\n\n@param dateFormat\nthe date format to use\n@param locale\nthe Locale used to parse the date\n@throws NullPointerException\nif dateFormat or locale is null" ]
public void load(IAssetEvents handler) { GVRAssetLoader loader = getGVRContext().getAssetLoader(); if (mReplaceScene) { loader.loadScene(getOwnerObject(), mVolume, mImportSettings, getGVRContext().getMainScene(), handler); } else { loader.loadModel(mVolume, getOwnerObject(), mImportSettings, true, handler); } }
[ "Loads the asset referenced by the file name\nunder the owner of this component.\nIf this component was constructed to replace the scene with\nthe asset, the main scene of the current context\nwill contain only the owner of this\ncomponent upon return. Otherwise, the loaded asset is a\nchild of this component's owner.\n\nLoading the asset is performed in a separate thread.\nThis function returns before the asset has finished loading.\nIAssetEvents are emitted to the input event handler and\nto any event listener on the context.\n\n@param handler\nIAssetEvents handler to process asset loading events" ]
[ "Use this API to update vridparam.", "Perform all Cursor cleanup here.", "at this point definition below is not really needed as it is the same as for 1.1, but it is here as place holder when subsystem parser evolves.", "Sends a message to the dbserver, first assembling it into a single byte buffer so that it can be sent as\na single packet.\n\n@param message the message to be sent\n\n@throws IOException if there is a problem sending it", "Merge two maps of configuration properties. If the original contains a mapping for the same key, the new mapping is ignored.\n\n@param original\n@param toMerge", "Use this API to fetch cmppolicylabel_policybinding_binding resources of given name .", "Gets the type to use for the Vaadin table column corresponding to the c-th column in this result.\n\n@param c the column index\n@return the class to use for the c-th Vaadin table column", "Get a PropertyResourceBundle able to read an UTF-8 properties file.\n@param baseName\n@param locale\n@return new ResourceBundle or null if no bundle can be found.\n@throws UnsupportedEncodingException\n@throws IOException", "This method is used to finalize the configuration\nafter the configuration items have been set." ]
private static <T, ID> void addCreateTableStatements(DatabaseType databaseType, TableInfo<T, ID> tableInfo, List<String> statements, List<String> queriesAfter, boolean ifNotExists, boolean logDetails) throws SQLException { StringBuilder sb = new StringBuilder(256); if (logDetails) { logger.info("creating table '{}'", tableInfo.getTableName()); } sb.append("CREATE TABLE "); if (ifNotExists && databaseType.isCreateIfNotExistsSupported()) { sb.append("IF NOT EXISTS "); } databaseType.appendEscapedEntityName(sb, tableInfo.getTableName()); sb.append(" ("); List<String> additionalArgs = new ArrayList<String>(); List<String> statementsBefore = new ArrayList<String>(); List<String> statementsAfter = new ArrayList<String>(); // our statement will be set here later boolean first = true; for (FieldType fieldType : tableInfo.getFieldTypes()) { // skip foreign collections if (fieldType.isForeignCollection()) { continue; } else if (first) { first = false; } else { sb.append(", "); } String columnDefinition = fieldType.getColumnDefinition(); if (columnDefinition == null) { // we have to call back to the database type for the specific create syntax databaseType.appendColumnArg(tableInfo.getTableName(), sb, fieldType, additionalArgs, statementsBefore, statementsAfter, queriesAfter); } else { // hand defined field databaseType.appendEscapedEntityName(sb, fieldType.getColumnName()); sb.append(' ').append(columnDefinition).append(' '); } } // add any sql that sets any primary key fields databaseType.addPrimaryKeySql(tableInfo.getFieldTypes(), additionalArgs, statementsBefore, statementsAfter, queriesAfter); // add any sql that sets any unique fields databaseType.addUniqueComboSql(tableInfo.getFieldTypes(), additionalArgs, statementsBefore, statementsAfter, queriesAfter); for (String arg : additionalArgs) { // we will have spat out one argument already so we don't have to do the first dance sb.append(", ").append(arg); } sb.append(") "); databaseType.appendCreateTableSuffix(sb); statements.addAll(statementsBefore); statements.add(sb.toString()); statements.addAll(statementsAfter); addCreateIndexStatements(databaseType, tableInfo, statements, ifNotExists, false, logDetails); addCreateIndexStatements(databaseType, tableInfo, statements, ifNotExists, true, logDetails); }
[ "Generate and return the list of statements to create a database table and any associated features." ]
[ "Perform the work of processing the various OperationContext.Stage queues, and then the DONE stage.", "Aggregates a list of templates specified by @Template", "Returns a licenses regarding its Id and a fake on if no license exist with such an Id\n\n@param licenseId String\n@return License", "Counts a single page of the specified gender. If this is the first page\nof that gender on this site, a suitable key is added to the list of the\nsite's genders.\n\n@param gender\nthe gender to count\n@param siteRecord\nthe site record to count it for", "Handle changes of the series check box.\n@param event the change event.", "Read the role definitions from a GanttProject project.\n\n@param gpProject GanttProject project", "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "Handles Multi Instance Report message. Handles Report on\nthe number of instances for the command class.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId" ]
synchronized void transitionFailed(final InternalState state) { final InternalState current = this.internalState; if(state == current) { // Revert transition and mark as failed switch (current) { case PROCESS_ADDING: this.internalState = InternalState.PROCESS_STOPPED; break; case PROCESS_STARTED: internalSetState(getTransitionTask(InternalState.PROCESS_STOPPING), InternalState.PROCESS_STARTED, InternalState.PROCESS_ADDED); break; case PROCESS_STARTING: this.internalState = InternalState.PROCESS_ADDED; break; case SEND_STDIN: case SERVER_STARTING: this.internalState = InternalState.PROCESS_STARTED; break; } this.requiredState = InternalState.FAILED; notifyAll(); } }
[ "Notification that a state transition failed.\n\n@param state the failed transition" ]
[ "Destroy the proxy & update the map containing the registration ref.\n\n@param importDeclaration", "Fetch the outermost Hashmap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Get the authentication info for this layer.\n\n@return authentication info.", "Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be copied.\n@return The copied matrix.", "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given yield curve.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param rate The yield which is used for discounted the coupon payments.\n@param model The model under which the product is valued.\n@return The value of the bond for the given yield.", "Register capabilities associated with this resource.\n\n<p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p>\n\n@param resourceRegistration a {@link ManagementResourceRegistration} created from this definition", "Merge two maps of configuration properties. If the original contains a mapping for the same key, the new mapping is ignored.\n\n@param original\n@param toMerge", "Add the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #set(String, String)", "Get the art available for all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the album art associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the ArtFinder is not running" ]
protected boolean shouldApplyThisRuleTo(ClassNode classNode) { // TODO Consider caching applyTo, doNotApplyTo and associated WildcardPatterns boolean shouldApply = true; String applyTo = getApplyToClassNames(); String doNotApplyTo = getDoNotApplyToClassNames(); if (applyTo != null && applyTo.length() > 0) { WildcardPattern pattern = new WildcardPattern(applyTo, true); shouldApply = pattern.matches(classNode.getNameWithoutPackage()) || pattern.matches(classNode.getName()); } if (shouldApply && doNotApplyTo != null && doNotApplyTo.length() > 0) { WildcardPattern pattern = new WildcardPattern(doNotApplyTo, true); shouldApply = !pattern.matches(classNode.getNameWithoutPackage()) && !pattern.matches(classNode.getName()); } return shouldApply; }
[ "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode" ]
[ "Applies the given codec registry to be used alongside the default codec registry.\n\n@param codecRegistry the codec registry to merge in.\n@return an {@link StitchObjectMapper} with the merged codec registries.", "Stops the currently running animation, if any.\n@see GVRAvatar#start(String)\n@see GVRAnimationEngine#stop(GVRAnimation)", "Init after constructor", "Send a get module request\n\n@param name\n@param version\n@return the targeted module\n@throws GrapesCommunicationException", "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString", "Use this API to fetch all the systemuser resources that are configured on netscaler.", "get the result speech recognize and find match in strings file.\n\n@param speechResult", "Adds a file with the provided description.", "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter." ]
protected static boolean numericEquals(Field vector1, Field vector2) { if (vector1.size() != vector2.size()) return false; if (vector1.isEmpty()) return true; Iterator<Object> it1 = vector1.iterator(); Iterator<Object> it2 = vector2.iterator(); while (it1.hasNext()) { Object obj1 = it1.next(); Object obj2 = it2.next(); if (!(obj1 instanceof Number && obj2 instanceof Number)) return false; if (((Number) obj1).doubleValue() != ((Number) obj2).doubleValue()) return false; } return true; }
[ "Compares two vectors and determines if they are numeric equals,\nindependent of its type.\n\n@param vector1\nthe first vector\n@param vector2\nthe second vector\n@return true if the vectors are numeric equals" ]
[ "Disply available use cases.", "Adds a redeploy step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment being redeployed", "Allows the closure to be called for NullObject\n\n@param closure the closure to call on the object\n@return result of calling the closure", "Expects a height mat as input\n\n@param input - A grayscale height map\n@return edges", "Use this API to fetch cmppolicylabel resource of given name .", "Calculate which pie slice is under the pointer, and set the current item\nfield accordingly.", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return", "Gets value of this function at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@return The value of the function at the point.", "Updates the store definition object and the retention time based on the\nupdated store definition" ]
private String formatConstraintType(ConstraintType type) { return (type == null ? null : LocaleData.getStringArray(m_locale, LocaleData.CONSTRAINT_TYPES)[type.getValue()]); }
[ "This method is called to format a constraint type.\n\n@param type constraint type\n@return formatted constraint type" ]
[ "Invoke the operation.\n@param parameterMap the {@link Map} of parameter names to value arrays.\n@return the {@link Object} return value from the operation.\n@throws JMException Java Management Exception", "Main method of the class, which handles the process of creating the tests\n\n@param requirementsFolder\n, it is the folder where the plain text given by the client is\nstored\n@param platformName\n, to choose the MAS platform (JADE, JADEX, etc.)\n@param src_test_dir\n, the folder where our classes are created\n@param tests_package\n, the name of the package where the stories are created\n@param casemanager_package\n, the path where casemanager must be created\n@param loggingPropFile\n, properties file\n@throws Exception\n, if any error is found in the configuration", "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .", "The only properties added to a relationship are the columns representing the index of the association.", "Writes a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.", "Cut the message content to the configured length.\n\n@param event the event", "Create button message key.\n\n@param gallery name\n@return Button message key as String", "Set the association in the entry state.\n\n@param collectionRole the role of the association\n@param association the association" ]
public static base_response add(nitro_service client, dospolicy resource) throws Exception { dospolicy addresource = new dospolicy(); addresource.name = resource.name; addresource.qdepth = resource.qdepth; addresource.cltdetectrate = resource.cltdetectrate; return addresource.add_resource(client); }
[ "Use this API to add dospolicy." ]
[ "This method is very similar to addMainHandler, except ShellFactory\nwill pass all handlers registered with this method to all this shell's subshells.\n\n@see org.gearvrf.debug.cli.Shell#addMainHandler(java.lang.Object, java.lang.String)\n\n@param handler Object which should be registered as handler.\n@param prefix Prefix that should be prepended to all handler's command names.", "Get a random pod that provides the specified service in the specified namespace.\n\n@param client\nThe client instance to use.\n@param name\nThe name of the service.\n@param namespace\nThe namespace of the service.\n\n@return The pod or null if no pod matches.", "Returns the screen height in pixels\n\n@param context is the context to get the resources\n@return the screen height in pixels", "Use this API to fetch lbmonbindings_servicegroup_binding resources of given name .", "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}", "Provide array of String results from inputOutput MFString field named url.\n@array saved in valueDestination", "checkpoint the transaction", "Helper method to add a Java integer value to a message digest.\n\n@param digest the message digest being built\n@param value the integer whose bytes should be included in the digest", "Generates a unique signature for an annotated type. Members without\nannotations are omitted to reduce the length of the signature\n\n@param <X>\n@param annotatedType\n@return hash of a signature for a concrete annotated type" ]
public void editCoords(String photoId, String userId, Rectangle bounds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_COORDS); parameters.put("photo_id", photoId); parameters.put("user_id", userId); parameters.put("person_x", bounds.x); parameters.put("person_y", bounds.y); parameters.put("person_w", bounds.width); parameters.put("person_h", bounds.height); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } }
[ "Edit the co-ordinates that the user shows in\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrException" ]
[ "Returns the current revision.", "Sets the top padding for all cells in the table.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Perform a one-off scan during boot to establish deployment tasks to execute during boot", "Get the names of the currently registered format providers.\n\n@return the provider names, never null.", "Creates a copy of a matrix but swaps the rows as specified by the order array.\n\n@param order Specifies which row in the dest corresponds to a row in the src. Not modified.\n@param src The original matrix. Not modified.\n@param dst A Matrix that is a row swapped copy of src. Modified.", "Queries taking longer than this limit to execute are logged.\n@param queryExecuteTimeLimit the limit to set in milliseconds.\n@param timeUnit", "Find the path to use .\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved path of '/' as a fallback.", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Add a URL pattern to the routing table.\n\n@param urlPattern A regular expression\n@throws RouteAlreadyMappedException" ]
public void addCommandClass(ZWaveCommandClass commandClass) { ZWaveCommandClass.CommandClass key = commandClass.getCommandClass(); if (!supportedCommandClasses.containsKey(key)) { supportedCommandClasses.put(key, commandClass); if (commandClass instanceof ZWaveEventListener) this.controller.addEventListener((ZWaveEventListener)commandClass); this.lastUpdated = Calendar.getInstance().getTime(); } }
[ "Adds a command class to the list of supported command classes by this node.\nDoes nothing if command class is already added.\n@param commandClass the command class instance to add." ]
[ "look for zero after country code, and remove if present", "Create a handful of default currencies to keep Primavera happy.", "Print the given values after displaying the provided message.", "Set a custom response for this path\n\n@param pathName name of path\n@param customResponse value of custom response\n@return true if success, false otherwise\n@throws Exception exception", "Scans the scene graph to collect picked items\nand generates appropriate pick and touch events.\nThis function is called by the cursor controller\ninternally but can also be used to funnel a\nstream of Android motion events into the picker.\n@see #pickObjects(GVRScene, float, float, float, float, float, float)\n@param touched true if the \"touched\" button is pressed.\nWhich button indicates touch is controller dependent.\n@param event Android MotionEvent which caused the pick\n@see IPickEvents\n@see ITouchEvents", "Convert this buffer to a java array.\n@return", "Use this API to fetch dnssuffix resource of given name .", "Registers your facet filters, adding them to this InstantSearch's widgets.\n\n@param filters a List of facet filters.", "Checks to see if a WORD matches the name of a macro. if it does it applies the macro at that location" ]
public static <T> boolean addAll(Collection<T> self, Iterable<T> items) { boolean changed = false; for (T next : items) { if (self.add(next)) changed = true; } return changed; }
[ "Adds all items from the iterable to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed" ]
[ "Add new control at the end of control bar with specified touch listener.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param properties JSON control specific properties\n@param listener touch listener", "Use this API to fetch vpnsessionaction resource of given name .", "Specify the artifact configuration to be searched for\n@param artifact configured artifact object\n@return", "Helper method to convert seed bytes into the long value required by the\nsuper class.", "Returns a BoxStoragePolicyAssignment information.\n@param api the API connection to be used by the resource.\n@param resolvedForType the assigned entity type for the storage policy.\n@param resolvedForID the assigned entity id for the storage policy.\n@return information about this {@link BoxStoragePolicyAssignment}.", "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle", "Compiles the allowable actions for a file or folder.\n\n@param cms the current CMS context\n@param file the resource for which we want the allowable actions\n\n@return the allowable actions for the given resource", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return" ]
public double[][] getU() { double[][] X = new double[n][n]; double[][] U = X; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (i <= j) { U[i][j] = LU[i][j]; } else { U[i][j] = 0.0; } } } return X; }
[ "Get the Upper triangular factor.\n\n@return U." ]
[ "Use this API to add dospolicy.", "Use this API to fetch appfwhtmlerrorpage resource of given name .", "Logs a message for a case where the value of a property does not fit to\nits declared datatype.\n\n@param propertyIdValue\nthe property that was used\n@param datatype\nthe declared type of the property\n@param valueType\na string to denote the type of value", "Adds is Null criteria,\ncustomer_id is Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time.", "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Build all combinations of graph structures for generic event stubs of a maximum length\n@param length Maximum number of nodes in each to generate\n@return All graph combinations of specified length or less", "Creates AzureAsyncOperation from the given HTTP response.\n\n@param serializerAdapter the adapter to use for deserialization\n@param response the response\n@return the async operation object\n@throws CloudException if the deserialization fails or response contains invalid body", "Each element of the second array is added to each element of the first." ]
public Object newInstance(String resource) { try { String name = resource.startsWith("/") ? resource : "/" + resource; File file = new File(this.getClass().getResource(name).toURI()); return newInstance(classLoader.parseClass(new GroovyCodeSource(file), true)); } catch (Exception e) { throw new GroovyClassInstantiationFailed(classLoader, resource, e); } }
[ "Creates an object instance from the Groovy resource\n\n@param resource the Groovy resource to parse\n@return An Object instance" ]
[ "Opens the jar, wraps any IOException.", "Set a proxy for REST-requests.\n\n@param proxyHost\n@param proxyPort", "For each node, checks if the store exists and then verifies that the remote schema\nmatches the new one. If the remote store doesn't exist, it creates it.", "performs a primary key lookup operation against RDBMS and materializes\nan object from the resulting row. Only skalar attributes are filled from\nthe row, references are not resolved.\n@param oid contains the primary key info.\n@param cld ClassDescriptor providing mapping information.\n@return the materialized object, null if no matching row was found or if\nany error occured.", "Apply the layout to the each page in the list\n@param itemLayout item layout in the page\n@return true if the new layout is applied successfully, otherwise - false", "Initializes the alarm sensor command class. Requests the supported alarm types.", "Sets the lower limits for the \"moving\" body translation relative to joint point.\n\n@param limitX the X axis lower translation limit\n@param limitY the Y axis lower translation limit\n@param limitZ the Z axis lower translation limit", "Builds the data structures that show the effects of the plan by server group", "Keep track of this handle tied to which thread so that if the thread is terminated\nwe can reclaim our connection handle. We also\n@param c connection handle to track." ]
private static int getTrimmedHeight(BufferedImage img) { int width = img.getWidth(); int height = img.getHeight(); int trimmedHeight = 0; for (int i = 0; i < width; i++) { for (int j = height - 1; j >= 0; j--) { if (img.getRGB(i, j) != Color.WHITE.getRGB() && j > trimmedHeight) { trimmedHeight = j; break; } } } return trimmedHeight; }
[ "Get the last non-white Y point\n@param img Image in memory\n@return The trimmed height" ]
[ "Use this API to fetch all the autoscaleprofile resources that are configured on netscaler.", "Use this API to update nsrpcnode resources.", "Convert the Phoenix representation of a duration into a Duration instance.\n\n@param value Phoenix duration\n@return Duration instance", "Generate a call to the delegate object.", "Convenience method dispatches the specified event to the source appender,\nwhich will result in the custom event data being appended to the new file.\n\n@param customLoggingEvent\nThe custom Log4J event to be appended.", "Removes the token from the list\n@param token Token which is to be removed", "Support the subscript operator for GString.\n\n@param text a GString\n@param index the index of the Character to get\n@return the Character at the given index\n@since 2.3.7", "Collapse repeated records, using exact string match on the record.\nThis is generally useful for making very verbose logs more readable.\n@return this", "Go through all partition IDs and determine which node is \"first\" in the\nreplicating node list for every zone. This determines the number of\n\"zone primaries\" each node hosts.\n\n@return map of nodeId to number of zone-primaries hosted on node." ]
@Nullable public Import find(@Nonnull final String typeName) { Check.notEmpty(typeName, "typeName"); Import ret = null; final Type type = new Type(typeName); for (final Import imp : imports) { if (imp.getType().getName().equals(type.getName())) { ret = imp; break; } } if (ret == null) { final Type javaLangType = Type.evaluateJavaLangType(typeName); if (javaLangType != null) { ret = Import.of(javaLangType); } } return ret; }
[ "Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}" ]
[ "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error", "gets a class from the class cache. This cache contains only classes loaded through\nthis class loader or an InnerLoader instance. If no class is stored for a\nspecific name, then the method should return null.\n\n@param name of the class\n@return the class stored for the given name\n@see #removeClassCacheEntry(String)\n@see #setClassCacheEntry(Class)\n@see #clearCache()", "Expands the cluster to include density-reachable items.\n\n@param cluster Cluster to expand\n@param point Point to add to cluster\n@param neighbors List of neighbors\n@param points the data set\n@param visited the set of already visited points\n@return the expanded cluster", "Get the geo interface.\n\n@return Access class to the flickr.photos.geo methods.", "Checks to make sure that pseudo scoped beans (i.e. @Dependent scoped beans) have no circular dependencies.", "Sends a text message using given server setup for SMTP.\n\n@param to the to address.\n@param from the from address.\n@param subject the subject.\n@param msg the test message.\n@param setup the SMTP setup.", "Creates a player wrapper for the Android MediaPlayer.", "Mark the top level deployment as being a JPA deployment. If the deployment is not a top level deployment the parent is\nmarked instead", "Try to provide an escaped, ready-to-use shell line to repeat a given command line." ]
public String renameApp(String appName, String newName) { return connection.execute(new AppRename(appName, newName), apiKey).getName(); }
[ "Rename an existing app.\n@param appName Existing app name. See {@link #listApps()} for names that can be used.\n@param newName New name to give the existing app.\n@return the new name of the object" ]
[ "Use this API to clear Interface.", "generates a Meta Object Protocol method, that is used to call a non public\nmethod, or to make a call to super.\n\n@param mopCalls list of methods a mop call method should be generated for\n@param useThis true if \"this\" should be used for the naming", "Adds a handler for a mouse type event on the map.\n\n@param obj The object that the event should be registered on.\n@param type Type of the event to register against.\n@param h Handler that will be called when the event occurs.", "The % Work Complete field contains the current status of a task,\nexpressed as the percentage of the task's work that has been completed.\nYou can enter percent work complete, or you can have Microsoft Project\ncalculate it for you based on actual work on the task.\n\n@return percentage as float", "Abort an active extern transaction associated with the given PB.", "Start the chain of execution running.\n\n@throws IllegalStateException\nif the chain of execution has already been started.", "Entry point for recursive resolution of an expression and all of its\nnested expressions.\n\n@todo Ensure unresolvable expressions don't trigger infinite recursion.", "Sets the specified boolean attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Checks if the duration option is valid.\n\nNOTE: This does NOT check, if too many events are specified.\n\n@return a flag, indicating if the duration option is valid." ]
public static Map<String, String> getMetadataFromSequenceFile(FileSystem fs, Path path) { try { Configuration conf = new Configuration(); conf.setInt("io.file.buffer.size", 4096); SequenceFile.Reader reader = new SequenceFile.Reader(fs, path, new Configuration()); SequenceFile.Metadata meta = reader.getMetadata(); reader.close(); TreeMap<Text, Text> map = meta.getMetadata(); Map<String, String> values = new HashMap<String, String>(); for(Map.Entry<Text, Text> entry: map.entrySet()) values.put(entry.getKey().toString(), entry.getValue().toString()); return values; } catch(IOException e) { throw new RuntimeException(e); } }
[ "Read the metadata from a hadoop SequenceFile\n\n@param fs The filesystem to read from\n@param path The file to read from\n@return The metadata from this file" ]
[ "To read an object in a quick & dirty way. Prepare to handle failures when object serialization changes!", "Get all the attribute values for an MBean by name. The values are HTML escaped.\n@return the {@link Map} of attribute names and values.\n@throws javax.management.AttributeNotFoundException Unable to find the 'attribute'\n@throws InstanceNotFoundException unable to find the specific bean\n@throws ReflectionException unable to interrogate the bean", "Convert the Phoenix representation of a finish date time into a Date instance.\n\n@param value Phoenix date time\n@return Date instance", "Checks to see within the flags if a reload, i.e. not a full restart, is required.\n\n@param flags the flags to check\n\n@return {@code true} if a reload is required, otherwise {@code false}", "Drops a driver from the DriverManager's list.", "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type", "Curries a procedure that takes one argument.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a procedure that takes no arguments. Never <code>null</code>.", "Split a module Id to get the module version\n@param moduleId\n@return String", "Write a map field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public Map<String, Attribute> getAttributes() { Map<String, Attribute> result = new HashMap<>(); DataSourceAttribute datasourceAttribute = new DataSourceAttribute(); Map<String, Attribute> dsResult = new HashMap<>(); dsResult.put(MAP_KEY, this.mapAttribute); datasourceAttribute.setAttributes(dsResult); result.put("datasource", datasourceAttribute); return result; }
[ "Gets the attributes provided by the processor.\n\n@return the attributes" ]
[ "Use this API to fetch all the route6 resources that are configured on netscaler.\nThis uses route6_args which is a way to provide additional arguments while fetching the resources.", "Decompiles a single type.\n\n@param metadataSystem\n@param typeName\n@return\n@throws IOException", "Use this API to add inat resources.", "Description accessor provided for JSON serialization only.", "Receives a PropertyColumn and returns a JRDesignField", "compute Sinh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Creates the row key of the given association row; columns present in the given association key will be obtained\nfrom there, all other columns from the given native association row.", "Read correlation id.\n\n@param message the message\n@return correlation id from the message", "Prints the error message as log message.\n\n@param level the log level" ]
private boolean addType(TypeDefinition type) { if (type == null) { return false; } if (type.getBaseTypeId() == null) { return false; } // find base type TypeDefinition baseType = null; if (type.getBaseTypeId() == BaseTypeId.CMIS_DOCUMENT) { baseType = copyTypeDefintion(m_types.get(DOCUMENT_TYPE_ID).getTypeDefinition()); } else if (type.getBaseTypeId() == BaseTypeId.CMIS_FOLDER) { baseType = copyTypeDefintion(m_types.get(FOLDER_TYPE_ID).getTypeDefinition()); } else if (type.getBaseTypeId() == BaseTypeId.CMIS_RELATIONSHIP) { baseType = copyTypeDefintion(m_types.get(RELATIONSHIP_TYPE_ID).getTypeDefinition()); } else if (type.getBaseTypeId() == BaseTypeId.CMIS_POLICY) { baseType = copyTypeDefintion(m_types.get(POLICY_TYPE_ID).getTypeDefinition()); } else { return false; } AbstractTypeDefinition newType = (AbstractTypeDefinition)copyTypeDefintion(type); // copy property definition for (PropertyDefinition<?> propDef : baseType.getPropertyDefinitions().values()) { ((AbstractPropertyDefinition<?>)propDef).setIsInherited(Boolean.TRUE); newType.addPropertyDefinition(propDef); } // add it addTypeInternal(newType); return true; }
[ "Adds a type to collection with inheriting base type properties.\n\n@param type the type definition to add\n\n@return true if the type definition was added" ]
[ "Method for reporting SQLException. This is used by\nthe treenodes if retrieving information for a node\nis not successful.\n@param message The message describing where the error occurred\n@param sqlEx The exception to be reported.", "Generates a toString method using concatenation or a StringBuilder.", "Write the summary file, if requested.", "Ensures that generate-table-info is set to false if generate-repository-info is set to false.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Create an embedded host controller.\n\n@param jbossHomePath the location of the root of the host controller installation. Cannot be {@code null} or empty.\n@param modulePath the location of the root of the module repository. May be {@code null} if the standard\nlocation under {@code jbossHomePath} should be used\n@param systemPackages names of any packages that must be treated as system packages, with the same classes\nvisible to the caller's classloader visible to host-controller-side classes loaded from\nthe server's modular classloader\n@param cmdargs any additional arguments to pass to the embedded host controller (e.g. -b=192.168.100.10)\n@return the server. Will not be {@code null}", "Use this API to change responderhtmlpage.", "This method allows a subsection of a byte array to be copied.\n\n@param data source data\n@param offset offset into the source data\n@param size length of the source data to copy\n@return new byte array containing copied data", "Handles incoming Application Command Request.\n@param incomingMessage the request message to process.", "Add an appliable \"post-run\" dependent for this task item.\n\n@param appliable the appliable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated \"post-run\" dependent" ]
public void addControllerType(GVRControllerType controllerType) { if (cursorControllerTypes == null) { cursorControllerTypes = new ArrayList<GVRControllerType>(); } else if (cursorControllerTypes.contains(controllerType)) { return; } cursorControllerTypes.add(controllerType); }
[ "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list" ]
[ "Get the object responsible for printing to the correct output format.\n\n@param specJson the request json from the client", "once we're on ORM 5", "Generates required number of placeholders as string.\n\nExample: {@code numberOfPlaceholders == 1, result == \"?\"},\n{@code numberOfPlaceholders == 2, result == \"?,?\"}.\n\n@param numberOfPlaceholders required amount of placeholders, should be {@code > 0}.\n@return string with placeholders.", "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>", "Adds a set of tests based on pattern matching.", "Clear all beans and call the destruction callback.", "Ensures that the given collection descriptor has the collection-class property if necessary.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If collection-class is given for an array or if no collection-class is given but required", "Detach a scope from its parent, this will trigger the garbage collection of this scope and it's\nsub-scopes\nif they are not referenced outside of Toothpick.\n\n@param name the name of the scope to close.", "Returns a signed string representation of the given number.\n\n@param number\n@return String for BigDecimal value" ]
TrackMetadata queryMetadata(final DataReference track, final CdjStatus.TrackType trackType, final Client client) throws IOException, InterruptedException, TimeoutException { // Send the metadata menu request if (client.tryLockingForMenuOperations(20, TimeUnit.SECONDS)) { try { final Message.KnownType requestType = (trackType == CdjStatus.TrackType.REKORDBOX) ? Message.KnownType.REKORDBOX_METADATA_REQ : Message.KnownType.UNANALYZED_METADATA_REQ; final Message response = client.menuRequestTyped(requestType, Message.MenuIdentifier.MAIN_MENU, track.slot, trackType, new NumberField(track.rekordboxId)); final long count = response.getMenuResultsCount(); if (count == Message.NO_MENU_RESULTS_AVAILABLE) { return null; } // Gather the cue list and all the metadata menu items final List<Message> items = client.renderMenuItems(Message.MenuIdentifier.MAIN_MENU, track.slot, trackType, response); final CueList cueList = getCueList(track.rekordboxId, track.slot, client); return new TrackMetadata(track, trackType, items, cueList); } finally { client.unlockForMenuOperations(); } } else { throw new TimeoutException("Unable to lock the player for menu operations"); } }
[ "Request metadata for a specific track ID, given a dbserver connection to a player that has already been set up.\nSeparated into its own method so it could be used multiple times with the same connection when gathering\nall track metadata.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved metadata, or {@code null} if there is no such track\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations" ]
[ "Get the element at the index as a json array.\n\n@param i the index of the element to access", "Sets the first occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception", "Assigns a retention policy to all items with a given metadata template, optionally matching on fields.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param templateID the ID of the metadata template to assign the policy to.\n@param filter optional fields to match against in the metadata template.\n@return info about the created assignment.", "Instantiates the templates specified by @Template within @Templates", "Set the given column name to the given value.\n\n@param name The column name to set.\n@param value the value to set.\n@return {@code this}\n@throws IllegalArgumentException if a column name does not exist in the table.", "Use this API to fetch servicegroup_lbmonitor_binding resources of given name .", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Converts this update description to its document representation as it would appear in a\nMongoDB Change Event.\n\n@return the update description document as it would appear in a change event", "Converts from RGB to Hexadecimal notation." ]
public static String getAt(GString text, Range range) { return getAt(text.toString(), range); }
[ "Support the range subscript operator for GString\n\n@param text a GString\n@param range a Range\n@return the String of characters corresponding to the provided range\n@since 2.3.7" ]
[ "This method returns the actual raw class associated with the specified\ntype.", "Returns the x-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the x coordinate", "Update the repeat number for a client path\n\n@param newNum new repeat number of the path\n@param path_id ID of the path\n@param client_uuid UUID of the client\n@throws Exception exception", "Returns a source excerpt of the type parameters of this type, including angle brackets.\nAlways an empty string if the type class is not generic.\n\n<p>e.g. {@code <N, C>}", "Use this API to update dbdbprofile.", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "Renumbers all entity unique IDs.", "add a converted object to the pool\n\n@param converter\nthe converter that made the conversion\n@param sourceObject\nthe source object that has been converted\n@param destinationType\nthe destination type\n@param convertedObject\nthe converted object", "Creates a ProjectCalendar instance from the Asta data.\n\n@param calendarRow basic calendar data\n@param workPatternMap work pattern map\n@param workPatternAssignmentMap work pattern assignment map\n@param exceptionAssignmentMap exception assignment map\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map" ]
public void addItem(T value, String text, boolean reload) { values.add(value); listBox.addItem(text, keyFactory.generateKey(value)); if (reload) { reload(); } }
[ "Adds an item to the list box, specifying an initial value for the item.\n\n@param value the item's value, to be submitted if it is part of a\n{@link FormPanel}; cannot be <code>null</code>\n@param text the text of the item to be added\n@param reload perform a 'material select' reload to update the DOM." ]
[ "Send a database announcement to all registered listeners.\n\n@param slot the media slot whose database availability has changed\n@param database the database whose relevance has changed\n@param available if {@code} true, the database is newly available, otherwise it is no longer relevant", "Validates the binding types", "Log the data for a single column.\n\n@param startIndex offset into buffer\n@param length length", "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity", "Inserts a String value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String, or null\n@return this bundler instance to chain method calls", "Calculates Sine value of the complex number.\n\n@param z1 A Complex Number instance.\n@return Returns new ComplexNumber instance containing the Sine value of the specified complex number.", "Return total number of connections currently in use by an application\n@return no of leased connections", "If there is a zero on the diagonal element, the off diagonal element needs pushed\noff so that all the algorithms assumptions are two and so that it can split the matrix.", "The length of the region left to the completion offset that is part of the\nreplace region." ]
private void stripTrailingDelimiters(StringBuilder buffer) { int index = buffer.length() - 1; while (index > 0 && buffer.charAt(index) == m_delimiter) { --index; } buffer.setLength(index + 1); }
[ "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer" ]
[ "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "Cancel old waiting jobs.\n\n@param starttimeThreshold threshold for start time\n@param checkTimeThreshold threshold for last check time\n@param message the error message", "Give next index i where i and i+timelag is valid", "If you want to stop recorded events from being sent to the server, use this method to set the SDK instance to offline.\nOnce offline, events will be recorded and queued locally but will not be sent to the server until offline is disabled.\nCalling this method again with offline set to false will allow events to be sent to server and the SDK instance will immediately attempt to send events that have been queued while offline.\n\n@param value boolean, true sets the sdk offline, false sets the sdk back online", "Operators which affect the variables to its left and right", "Retrieves all Metadata Cascade Policies on a folder.\n\n@param fields optional fields to retrieve for cascade policies.\n@return the Iterable of Box Metadata Cascade Policies in your enterprise.", "Pull docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host", "We have received an update that invalidates any previous metadata for that player, so clear it out, and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we can have no metadata for the associated player", "Validates the wrapped value and returns a localized error message in case of invalid values.\n@return <code>null</code> if the value is valid, a suitable localized error message otherwise." ]
public static sslcertkey_crldistribution_binding[] get(nitro_service service, String certkey) throws Exception{ sslcertkey_crldistribution_binding obj = new sslcertkey_crldistribution_binding(); obj.set_certkey(certkey); sslcertkey_crldistribution_binding response[] = (sslcertkey_crldistribution_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch sslcertkey_crldistribution_binding resources of given name ." ]
[ "Use this API to update snmpuser resources.", "Set the specific device class of the node.\n@param specificDeviceClass the specificDeviceClass to set\n@exception IllegalArgumentException thrown when the specific device class does not match\nthe generic device class.", "Retrieve timephased baseline cost. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present", "This method determines whether the cost rate table should be written.\nA default cost rate table should not be written to the file.\n\n@param entry cost rate table entry\n@param from from date\n@return boolean flag", "Get the account knowing his title\n@param title the title of the account (it can change at runtime!)\n@return the account founded or null if the account not exists", "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner.", "Runs through the log removing segments older than a certain age\n\n@throws IOException", "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token", "Use this API to update nsip6." ]
public static Module unserializeModule(final String module) throws IOException { final ObjectMapper mapper = new ObjectMapper(); mapper.disable(MapperFeature.USE_GETTERS_AS_SETTERS); return mapper.readValue(module, Module.class); }
[ "Un-serialize a Json into Module\n@param module String\n@return Module\n@throws IOException" ]
[ "Check if zone count policy is satisfied\n\n@return whether zone is satisfied", "Use this API to fetch all the responderpolicy resources that are configured on netscaler.", "Internal method for recursivly searching for a class descriptor that avoids\nclass loading when we already have a class object.\n\n@param clazz The class whose descriptor we need to find\n@return ClassDescriptor for <code>clazz</code> or <code>null</code>\nif no ClassDescriptor could be located.", "Concat a List into a CSV String.\n@param list list to concat\n@return csv string", "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources.", "Create a new GP entry in the database. No commit performed.", "Sets the top padding character for all cells in the row.\n@param paddingTopChar new padding character, ignored if null\n@return this to allow chaining", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone." ]
public static java.sql.Timestamp getTimestamp(Object value) { try { return toTimestamp(value); } catch (ParseException pe) { pe.printStackTrace(); return null; } }
[ "Convert an Object to a Timestamp, without an Exception" ]
[ "Returns the plugins classpath elements.", "Set the inner angle of the spotlight cone in degrees.\n\nBeyond the outer cone angle there is no illumination.\nThe underlying uniform \"outer_cone_angle\" is the cosine\nof this input angle. If the inner cone angle is larger than the outer cone angle\nthere will be unexpected results.\n@see #setInnerConeAngle(float)\n@see #getOuterConeAngle()", "Use this API to update inat.", "Get the list of build numbers that are to be kept forever.", "Exact conversion of displaced lognormal ATM volatiltiy to normal ATM volatility.\n\n@param forward The forward\n@param displacement The displacement (considering a displaced lognormal model, otherwise 0.\n@param maturity The maturity\n@param lognormalVolatiltiy The (implied) lognormal volatility.\n@return The (implied) normal volatility.\n@see <a href=\"http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2687742\">Dimitroff, Fries, Lichtner and Rodi: Lognormal vs Normal Volatilities and Sensitivities in Practice</a>", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "The normalized string returned by this method is consistent with java.net.Inet6address.\n\nIPs are not compressed nor mixed in this representation. If this has a prefix length, that will be included in the string.", "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to", "Given a parameter, builds a new parameter for which the known generics placeholders are resolved.\n@param genericFromReceiver resolved generics from the receiver of the message\n@param placeholdersFromContext, resolved generics from the method context\n@param methodParameter the method parameter for which we want to resolve generic types\n@param paramType the (unresolved) type of the method parameter\n@return a new parameter with the same name and type as the original one, but with resolved generic types" ]
public static sslservice[] get(nitro_service service, sslservice_args args) throws Exception{ sslservice obj = new sslservice(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); sslservice[] response = (sslservice[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources." ]
[ "Ensures that the given collection descriptor has the collection-class property if necessary.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If collection-class is given for an array or if no collection-class is given but required", "Returns the context menu for the table item.\n@param itemId the table item.\n@return the context menu for the given item.", "selects either a synchronous or an asynchronous producer, for the\nspecified broker id and calls the send API on the selected producer\nto publish the data to the specified broker partition\n\n@param ppd the producer pool request object", "Function to perform backward softmax", "Main file parser. Reads GIF content blocks. Stops after reading maxFrames", "Converts assignment duration values from minutes to hours.\n\n@param list assignment data", "Get a list of referring domains for a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoDomains.html\"", "Add a new subsystem to a given registry.\n\n@param registry the registry\n@param name the subsystem name\n@param version the version", "Used to NOT the next clause specified." ]
public Token add( Symbol symbol ) { Token t = new Token(symbol); push( t ); return t; }
[ "Adds a symbol to the end of the token list\n@param symbol Symbol which is to be added\n@return The new Token created around symbol" ]
[ "Use this API to fetch statistics of gslbservice_stats resource of given name .", "Determine the color of the waveform given an index into it.\n\n@param segment the index of the first waveform byte to examine\n@param front if {@code true} the front (brighter) segment of a color waveform preview is returned,\notherwise the back (dimmer) segment is returned. Has no effect for blue previews.\n\n@return the color of the waveform at that segment, which may be based on an average\nof a number of values starting there, determined by the scale", "RReturns the entity type of the id like \"item\" or \"property\"\n\n@param id\nthe identifier of the entity, such as \"Q42\"\n@throws IllegalArgumentException\nif the id is invalid", "Generate an ordered set of column definitions from an ordered set of column names.\n\n@param columns column definitions\n@param order column names\n@return ordered set of column definitions", "append normal text\n\n@param text normal text\n@return SimplifySpanBuild", "Sets the current switch index based on object name.\nThis function finds the child of the scene object\nthis component is attached to and sets the switch\nindex to reference it so this is the object that\nwill be displayed.\n\nIf it is out of range, none of the children will be shown.\n@param childName name of child to select\n@see GVRSceneObject#getChildByIndex(int)", "Returns a list of the compact representation of all of the custom fields in a workspace.\n\n@param workspace The workspace or organization to find custom field definitions in.\n@return Request object", "Creates a copy of a matrix but swaps the rows as specified by the order array.\n\n@param order Specifies which row in the dest corresponds to a row in the src. Not modified.\n@param src The original matrix. Not modified.\n@param dst A Matrix that is a row swapped copy of src. Modified.", "Check, if the current user has permissions on the document's resource.\n@param cms the context\n@param doc the solr document (from the search result)\n@param filter the resource filter to use for checking permissions\n@return <code>true</code> iff the resource mirrored by the search result can be read by the current user." ]
private CoreLabel makeCoreLabel(String line) { CoreLabel wi = new CoreLabel(); // wi.line = line; String[] bits = line.split("\\s+"); switch (bits.length) { case 0: case 1: wi.setWord(BOUNDARY); wi.set(AnswerAnnotation.class, OTHER); break; case 2: wi.setWord(bits[0]); wi.set(AnswerAnnotation.class, bits[1]); break; case 3: wi.setWord(bits[0]); wi.setTag(bits[1]); wi.set(AnswerAnnotation.class, bits[2]); break; case 4: wi.setWord(bits[0]); wi.setTag(bits[1]); wi.set(ChunkAnnotation.class, bits[2]); wi.set(AnswerAnnotation.class, bits[3]); break; case 5: if (flags.useLemmaAsWord) { wi.setWord(bits[1]); } else { wi.setWord(bits[0]); } wi.set(LemmaAnnotation.class, bits[1]); wi.setTag(bits[2]); wi.set(ChunkAnnotation.class, bits[3]); wi.set(AnswerAnnotation.class, bits[4]); break; default: throw new RuntimeIOException("Unexpected input (many fields): " + line); } wi.set(OriginalAnswerAnnotation.class, wi.get(AnswerAnnotation.class)); return wi; }
[ "This deals with the CoNLL files for different languages which have\nbetween 2 and 5 columns on non-blank lines.\n\n@param line A line of CoNLL input\n@return The constructed token" ]
[ "Creates a new broker instance.\n\n@param jcdAlias The jdbc connection descriptor name as defined in the repository\n@param user The user name to be used for connecting to the database\n@param password The password to be used for connecting to the database\n@return The persistence broker\n@see org.apache.ojb.broker.core.PersistenceBrokerFactoryIF#createPersistenceBroker(java.lang.String, java.lang.String, java.lang.String)", "Checks to see if the specified off diagonal element is zero using a relative metric.", "Checks if the provided license is valid and could be stored into the database\n\n@param license the license to test\n@throws WebApplicationException if the data is corrupted", "Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatArray(String, float[])\n@see #getFloatVec(String)", "Merge two ExecutionStatistics into one. This method is private in order not to be synchronized (merging.\n@param otherStatistics", "Convert an Object to a Time, without an Exception", "Read a task relationship.\n\n@param link ConceptDraw PROJECT task link", "Post an artifact to the Grapes server\n\n@param artifact The artifact to post\n@param user The user posting the information\n@param password The user password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Adds the position.\n\n@param position the position" ]
public byte[] getValueAsArray() { ByteBuffer buffer = getValue(); byte[] result = new byte[buffer.remaining()]; buffer.get(result); return result; }
[ "Get the bytes which represent the payload of this field, without the leading type tag and length header, as\na newly-allocated byte array.\n\n@return a new byte array containing a copy of the bytes this field contains" ]
[ "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "Set new list data set\n@param list new data set", "Performs an implicit double step given the set of two imaginary eigenvalues provided.\nSince one eigenvalue is the complex conjugate of the other only one set of real and imaginary\nnumbers is needed.\n\n@param x1 upper index of submatrix.\n@param x2 lower index of submatrix.\n@param real Real component of each of the eigenvalues.\n@param img Imaginary component of one of the eigenvalues.", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "Acquires a read lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait.", "Check whether we have diverged from what we would predict from the last update that was sent to a particular\ntrack position listener.\n\n@param lastUpdate the last update that was sent to the listener\n@param currentUpdate the latest update available for the same player\n\n@return {@code true }if the listener will have diverged by more than our permitted amount of slack, and so\nshould be updated", "Delete a database for a given path and userId.\n@param appInfo the info for this application\n@param serviceName the name of the associated service\n@param clientFactory the associated factory that creates clients\n@param userId the id of the user's to delete\n@return true if successfully deleted, false if not", "use this method to construct the ChainingIterator\niterator by iterator.", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return" ]
public static byte[] encode(byte[] ba, int offset, long v) { ba[offset + 0] = (byte) (v >>> 56); ba[offset + 1] = (byte) (v >>> 48); ba[offset + 2] = (byte) (v >>> 40); ba[offset + 3] = (byte) (v >>> 32); ba[offset + 4] = (byte) (v >>> 24); ba[offset + 5] = (byte) (v >>> 16); ba[offset + 6] = (byte) (v >>> 8); ba[offset + 7] = (byte) (v >>> 0); return ba; }
[ "Encode a long into a byte array at an offset\n\n@param ba Byte array\n@param offset Offset\n@param v Long value\n@return byte array given in input" ]
[ "Use this API to update cmpparameter.", "Adds a new email alias to this user's account and confirms it without user interaction.\nThis functionality is only available for enterprise admins.\n@param email the email address to add as an alias.\n@param isConfirmed whether or not the email alias should be automatically confirmed.\n@return the newly created email alias.", "dataType in weight descriptors and input descriptors is used to describe storage", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Get the original image URL.\n\n@return The original image URL", "Split string content into list, ignoring matches of the pattern\n@param content String content\n@param ignorePattern Pattern to ignore\n@return list", "Use this API to fetch statistics of scpolicy_stats resource of given name .", "Digest format to layer file name.\n\n@param digest\n@return", "Get the features collection from a GeoJson URL.\n\n@param template the template\n@param geoJsonUrl what to parse\n@return the feature collection" ]
@Override public void setExpectedMaxSize( int numRows , int numCols ) { super.setExpectedMaxSize(numRows,numCols); // if the matrix that is being decomposed is smaller than the block we really don't // see the B matrix. if( numRows < blockWidth) B = new DMatrixRMaj(0,0); else B = new DMatrixRMaj(blockWidth,maxWidth); chol = new CholeskyBlockHelper_DDRM(blockWidth); }
[ "Declares additional internal data structures." ]
[ "Returns the compact records for all users that are members of the team.\n\n@param team Globally unique identifier for the team.\n@return Request object", "2-D Forward Discrete Hartley Transform.\n\n@param data Data.", "The fields returned by default. Typically the output is done via display formatters and hence nearly no\nfield is necessary. Returning all fields might cause performance problems.\n\n@return the default return fields.", "Calculate the actual bit length of the proposed binary string.", "Use this API to update nspbr6 resources.", "Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG", "Gets the bytes for the highest address in the range represented by this address.\n\n@return", "Called every frame if the picker is enabled\nto generate pick events.\n@param frameTime starting time of the current frame", "Returns the key of the entity targeted by the represented association, retrieved from the given tuple.\n\n@param tuple the tuple from which to retrieve the referenced entity key\n@return the key of the entity targeted by the represented association" ]
private boolean detectWSAddressingFeature(InterceptorProvider provider, Bus bus) { //detect on the bus level if (bus.getFeatures() != null) { Iterator<Feature> busFeatures = bus.getFeatures().iterator(); while (busFeatures.hasNext()) { Feature busFeature = busFeatures.next(); if (busFeature instanceof WSAddressingFeature) { return true; } } } //detect on the endpoint/client level Iterator<Interceptor<? extends Message>> interceptors = provider.getInInterceptors().iterator(); while (interceptors.hasNext()) { Interceptor<? extends Message> ic = interceptors.next(); if (ic instanceof MAPAggregator) { return true; } } return false; }
[ "detect if WS Addressing feature already enabled.\n\n@param provider the interceptor provider\n@param bus the bus\n@return true, if successful" ]
[ "Adds the scroll position CSS extension to the given component\n\n@param componentContainer the component to extend\n@param scrollBarrier the scroll barrier\n@param barrierMargin the margin\n@param styleName the style name to set beyond the scroll barrier", "private multi-value handlers and helpers", "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance", "This is a convenience method which allows all projects in an\nXER file to be read in a single pass.\n\n@param is input stream\n@param linkCrossProjectRelations add Relation links that cross ProjectFile boundaries\n@return list of ProjectFile instances\n@throws MPXJException", "Helper method to find Strings of form \"all digits\" and \"digits-comma-digits\"", "Check the given JWT\n\n@param jwtString the JSON Web Token\n@return the parsed and verified token or null if token is invalid\n@throws ParseException if the token cannot be parsed", "Splits the given string.", "Fired whenever a browser event is received.\n@param event Event to process", "Retrieves the project finish date. If an explicit finish date has not been\nset, this method calculates the finish date by looking for\nthe latest task finish date.\n\n@return Finish Date" ]
private void addModuleToGraph(final DbModule module, final AbstractGraph graph, final int depth) { if (graph.isTreated(graph.getId(module))) { return; } final String moduleElementId = graph.getId(module); graph.addElement(moduleElementId, module.getVersion(), depth == 0); if (filters.getDepthHandler().shouldGoDeeper(depth)) { for (final DbDependency dep : DataUtils.getAllDbDependencies(module)) { if(filters.shouldBeInReport(dep)){ addDependencyToGraph(dep, graph, depth + 1, moduleElementId); } } } }
[ "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth" ]
[ "Return the text content of the document. It does not containing trailing spaces and asterisks\nat the start of the line.", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong", "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "Use this API to fetch dnssuffix resource of given name .", "Use this API to disable Interface resources of given names.", "Use this API to unset the properties of systemcollectionparam resource.\nProperties that need to be unset are specified in args array.", "Search for photos which match the given search parameters.\n\n@param params\nThe search parameters\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return A PhotoList\n@throws FlickrException", "Adjust submatrices and helper data structures for the input matrix. Must be called\nbefore the decomposition can be computed.\n\n@param orig", "Return the List of Arguments for the specified MethodCallExpression or a ConstructorCallExpression.\nThe returned List contains either ConstantExpression or MapEntryExpression objects.\n@param methodCall - the AST MethodCallExpression or ConstructorCalLExpression\n@return the List of argument objects" ]
private void cascadeInsertFor(ObjectEnvelope mod, List alreadyPrepared) { // avoid endless recursion, so use List for registration if(alreadyPrepared.contains(mod.getIdentity())) return; alreadyPrepared.add(mod.getIdentity()); ClassDescriptor cld = getTransaction().getBroker().getClassDescriptor(mod.getObject().getClass()); List refs = cld.getObjectReferenceDescriptors(true); cascadeInsertSingleReferences(mod, refs, alreadyPrepared); List colls = cld.getCollectionDescriptors(true); cascadeInsertCollectionReferences(mod, colls, alreadyPrepared); }
[ "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk." ]
[ "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Write a list of custom field attributes.", "Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.", "Reads a UUID from a JSON object.\n\nReturns null if the JSON value for the given key is not present or not a valid UUID\n\n@param obj the JSON object\n@param key the JSON key\n\n@return the UUID", "Reset a timer of the given string name for the given thread. If no such\ntimer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@param threadId\nof the thread to track, or 0 if only system clock should be\ntracked", "Send an event to other applications\n\n@param context context in which to send the broadcast\n@param event event to send", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "Calculate conversion map.\n\n@param inRange Input range.\n@param outRange Output range.\n@param map Conversion map.", "Use this API to fetch auditsyslogpolicy_aaauser_binding resources of given name ." ]
public static dnstxtrec[] get(nitro_service service) throws Exception{ dnstxtrec obj = new dnstxtrec(); dnstxtrec[] response = (dnstxtrec[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the dnstxtrec resources that are configured on netscaler." ]
[ "This method is designed to be called from the diverse subclasses", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings", "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value", "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed.", "Log an audit record of this operation.", "Create a new custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Creates a curator built using the given zookeeper connection string and timeout", "Use this API to delete nssimpleacl.", "Applies the mask to this address section and then compares values with the given address section\n\n@param mask\n@param other\n@return" ]
private void writeCurrency() { ProjectProperties props = m_projectFile.getProjectProperties(); CurrencyType currency = m_factory.createCurrencyType(); m_apibo.getCurrency().add(currency); String positiveSymbol = getCurrencyFormat(props.getSymbolPosition()); String negativeSymbol = "(" + positiveSymbol + ")"; currency.setDecimalPlaces(props.getCurrencyDigits()); currency.setDecimalSymbol(getSymbolName(props.getDecimalSeparator())); currency.setDigitGroupingSymbol(getSymbolName(props.getThousandsSeparator())); currency.setExchangeRate(Double.valueOf(1.0)); currency.setId("CUR"); currency.setName("Default Currency"); currency.setNegativeSymbol(negativeSymbol); currency.setObjectId(DEFAULT_CURRENCY_ID); currency.setPositiveSymbol(positiveSymbol); currency.setSymbol(props.getCurrencySymbol()); }
[ "Create a handful of default currencies to keep Primavera happy." ]
[ "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Removes any metadata cache file that might have been assigned to a particular player media slot, so metadata\nwill be looked up from the player itself.\n\n@param slot the media slot to which a meta data cache is to be attached", "Create a structured Record instance from the flat text data.\nNull is returned if errors are encountered during parse.\n\n@param text flat text data\n@return Record instance", "Returns the average event value in the current interval", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "Set the position of the pick ray.\nThis function is used internally to update the\npick ray with the new controller position.\n@param x the x value of the position.\n@param y the y value of the position.\n@param z the z value of the position.", "Facade method facilitating the creation of subshell.\nSubshell is created and run inside Command method and shares the same IO and naming strtategy.\n\nRun the obtained Shell with commandLoop().\n\n@param pathElement sub-prompt\n@param parent Shell to be subshell'd\n@param appName The app name string\n@param mainHandler Command handler\n@return subshell", "LRN cross-channel backward computation. Double parameters cast to tensor data type", "Bessel function of order 0.\n\n@param x Value.\n@return J0 value." ]
private String getSymbolName(char c) { String result = null; switch (c) { case ',': { result = "Comma"; break; } case '.': { result = "Period"; break; } } return result; }
[ "Map the currency separator character to a symbol name.\n\n@param c currency separator character\n@return symbol name" ]
[ "Parse the XML for a collection as returned by getTree call.\n\n@param collectionElement\n@return", "Gets currently visible user.\n\n@return List of user", "Get the inactive history directories.\n\n@return the inactive history", "Converts a Map to an array of objects, adding only those entries whose key is in the nameMapping array.\n\n@param values\nthe Map of values to convert\n@param nameMapping\nthe keys to extract from the Map (elements in the target array will be added in this order)\n@return the array of Objects\n@throws NullPointerException\nif values or nameMapping is null", "Apply filter to an image.\n\n@param source FastBitmap", "Sets the bytecode compatibility mode\n\n@param version the bytecode compatibility mode", "Resolves line alpha based on distance comparing to max distance.\nWhere alpha is close to 0 for maxDistance, and close to 1 to 0 distance.\n\n@param distance line length\n@param maxDistance max line length\n@return line alpha", "Convert custom info.\n\n@param customInfo the custom info map\n@return the custom info type", "Has to be called when the scenario is finished in order to execute after methods." ]
public static Path createTempDirectory(Path dir, String prefix) throws IOException { try { return Files.createTempDirectory(dir, prefix); } catch (UnsupportedOperationException ex) { } return Files.createTempDirectory(dir, prefix); }
[ "Create a temporary directory with the same attributes as its parent directory.\n@param dir\nthe path to directory in which to create the directory\n@param prefix\nthe prefix string to be used in generating the directory's name;\nmay be {@code null}\n@return the path to the newly created directory that did not exist before\nthis method was invoked\n@throws IOException" ]
[ "Discard the changes.", "Read exactly buffer.length bytes from the stream into the buffer\n\n@param stream The stream to read from\n@param buffer The buffer to read into", "Asta Powerproject assigns an explicit calendar for each task. This method\nis used to find the most common calendar and use this as the default project\ncalendar. This allows the explicitly assigned task calendars to be removed.", "Set a colspan in a group of columns. First add the cols to the report\n\n@param colNumber the index of the col\n@param colQuantity the number of cols how i will take\n@param colspanTitle colspan title\n@return a Dynamic Report Builder\n@throws ColumnBuilderException When the index of the cols is out of\nbounds.", "If credentials are incorrect or not provided for Basic Auth, then Android\nmay throw this exception when an HTTP 401 is received. A separate exception\nis thrown for proxy authentication errors. Checking for this response and\nreturning the proper status.\n@param ex the exception raised from Android\n@return HTTP Status Code", "Most complete output", "Moves to the step with the given number.\n\n<p>The step number is only updated if no exceptions are thrown when instantiating/displaying the given step\n\n@param stepNo the step number to move to", "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Put the core auto-code algorithm here so an external class can call it" ]
public void remove(Identity oid) { try { jcsCache.remove(oid.toString()); } catch (CacheException e) { throw new RuntimeCacheException(e.getMessage()); } }
[ "removes an Object from the cache.\n\n@param oid the Identity of the object to be removed." ]
[ "Used to apply or update the watermark for the item.\n@param itemUrl url template for the item.\n@param imprint the value must be \"default\", as custom watermarks is not yet supported.\n@return the watermark associated with the item.", "Evalutes AND and OR operators.\n\n@param container data context\n@param promptValues responses to prompts\n@return operator result", "Extracts the java class name from the schema info\n\n@param schemaInfo the schema info, a string like: java=java.lang.String\n@return the name of the class extracted from the schema info", "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken", "This method retrieves a Duration instance representing the amount of\nwork between two dates based on this calendar.\n\n@param startDate start date\n@param endDate end date\n@param format required duration format\n@return amount of work", "add a new producer, either synchronous or asynchronous, connecting\nto the specified broker\n\n@param broker broker to producer", "Converts a tab delimited string into an object with given fields\nRequires the object has public access for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterPattern delimiter\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Informs this sequence model that the value of the element at position pos has changed.\nThis allows this sequence model to update its internal model if desired." ]
public void recordCheckoutQueueLength(SocketDestination dest, int queueLength) { if(dest != null) { getOrCreateNodeStats(dest).recordCheckoutQueueLength(null, queueLength); recordCheckoutQueueLength(null, queueLength); } else { this.checkoutQueueLengthHistogram.insert(queueLength); checkMonitoringInterval(); } }
[ "Record the checkout queue length\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param queueLength The number of entries in the \"synchronous\" checkout\nqueue." ]
[ "Use this API to update snmpalarm.", "public for testing purpose", "Returns a unique file name\n@param baseFileName the requested base name for the file\n@param extension the requested extension for the file\n@param cleanBaseFileName specify if the <code>baseFileName</code> has to be cleaned before being used (i.e. 'jboss-web' should not be cleaned to avoid '-' to become '_')\n@param ancestorFolders specify the ancestor folders for the file (if there's no ancestor folder, just pass 'null' value)\n@return a String representing the unique file generated", "Shutdown task scheduler.", "Scales a process type\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param processType type of process to maintain\n@param quantity number of processes to maintain", "Use this API to disable Interface resources of given names.", "Write a double attribute.\n\n@param name attribute name\n@param value attribute value", "Use this API to fetch all the responderpolicy resources that are configured on netscaler.", "Get the TagsInterface for working with Flickr Tags.\n\n@return The TagsInterface" ]
public void updateInfo(BoxWebLink.Info info) { URL url = WEB_LINK_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "PUT"); request.setBody(info.getPendingChanges()); String body = info.getPendingChanges(); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); info.update(jsonObject); }
[ "Updates the information about this weblink with any info fields that have been modified locally.\n\n<p>The only fields that will be updated are the ones that have been modified locally. For example, the following\ncode won't update any information (or even send a network request) since none of the info's fields were\nchanged:</p>\n\n<pre>BoxWebLink webLink = new BoxWebLink(api, id);\nBoxWebLink.Info info = webLink.getInfo();\nwebLink.updateInfo(info);</pre>\n\n@param info the updated info." ]
[ "Adds vector v1 to v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Get public photos from the user's contacts.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param userId\nThe user ID\n@param count\nThe number of photos to return\n@param justFriends\nTrue to include friends\n@param singlePhoto\nTrue to get a single photo\n@param includeSelf\nTrue to include self\n@return A collection of Photo objects\n@throws FlickrException", "Detailed request to track additional data about PUT, GET and GET_ALL\n\n@param timeNS The time in nanoseconds that the operation took to complete\n@param numEmptyResponses For GET and GET_ALL, how many keys were no values found\n@param valueBytes Total number of bytes across all versions of values' bytes\n@param keyBytes Total number of bytes in the keys\n@param getAllAggregatedCount Total number of keys returned for getAll calls", "Remove attachments matches pattern from step and all step substeps\n\n@param context from which attachments will be removed", "Obtain the IDs of profile and path as Identifiers\n\n@param profileIdentifier actual ID or friendly name of profile\n@param pathIdentifier actual ID or friendly name of path\n@return\n@throws Exception", "The sniffing Loggers are some special Loggers, whose level will be set to TRACE forcedly.\n@param logger", "Get the property of the given object.\n\n@param object which to be got\n@return the property of the given object\n@throws RuntimeException if the property could not be evaluated", "Abort the daemon\n\n@param error the error causing the abortion", "Get the node that has been selected by the user, or null if\nnothing is selected.\n@return The node or <code>null</code>" ]
private boolean isDebug(CmsObject cms, CmsSolrQuery query) { String[] debugSecretValues = query.remove(REQUEST_PARAM_DEBUG_SECRET); String debugSecret = (debugSecretValues == null) || (debugSecretValues.length < 1) ? null : debugSecretValues[0]; if ((null != debugSecret) && !debugSecret.trim().isEmpty() && (null != m_handlerDebugSecretFile)) { try { CmsFile secretFile = cms.readFile(m_handlerDebugSecretFile); String secret = new String(secretFile.getContents(), CmsFileUtil.getEncoding(cms, secretFile)); return secret.trim().equals(debugSecret.trim()); } catch (Exception e) { LOG.info( "Failed to read secret file for index \"" + getName() + "\" at path \"" + m_handlerDebugSecretFile + "\"."); } } return false; }
[ "Checks if the query should be executed using the debug mode where the security restrictions do not apply.\n@param cms the current context.\n@param query the query to execute.\n@return a flag, indicating, if the query should be performed in debug mode." ]
[ "Adds an access constraint to the set used with the attribute\n@param accessConstraint the constraint\n@return a builder that can be used to continue building the attribute definition", "Changes to a new sub-view and stores a report to be displayed by that subview.<p<\n\n@param newState the new state\n@param thread the report thread which should be displayed in the sub view\n@param label the label to display for the report", "Create the index and associate it with all project models in the Application", "Scroll to the specific position\n@param position\n@return the new current item after the scrolling processed.", "Specifies the maximum capacity of the counter.\n\n@param capacity\n<code>long</code>\n@throws IllegalArgumentException\nif windowMillis is less than 1.", "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param dayList list of calendar days\n@param exceptions list of exceptions", "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "Removes a watermark from the item.\nIf the item did not have a watermark applied to it, a 404 Not Found will be returned by API.\n@param itemUrl url template for the item.", "Throws if the given file is null, is not a file or directory, or is an empty directory." ]
public static String make512Safe(StringBuffer input, String newline) { StringBuilder result = new StringBuilder(); String content = input.toString(); String rest = content; while (!rest.isEmpty()) { if (rest.contains("\n")) { String line = rest.substring(0, rest.indexOf("\n")); rest = rest.substring(rest.indexOf("\n") + 1); if (line.length() > 1 && line.charAt(line.length() - 1) == '\r') line = line.substring(0, line.length() - 1); append512Safe(line, result, newline); } else { append512Safe(rest, result, newline); break; } } return result.toString(); }
[ "Return a string that ensures that no line is longer then 512 characters\nand lines are broken according to manifest specification.\n\n@param input The buffer containing the content that should be made safe\n@param newline The string to use to create newlines (usually \"\\n\" or\n\"\\r\\n\")\n@return The string with no longer lines then 512, ready to be read again\nby {@link MergeableManifest2}." ]
[ "Answer the primary key query to retrieve an Object\n\n@param oid the Identity of the Object to retrieve\n@return The resulting query", "Checks that all the qualifiers in the set requiredQualifiers are in the set of qualifiers. Qualifier equality rules for\nannotation members are followed.\n\n@param requiredQualifiers The required qualifiers\n@param qualifiers The set of qualifiers to check\n@return True if all matches, false otherwise", "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity", "Configure the access permissions required to access this print job.\n\n@param template the containing print template which should have sufficient information to\nconfigure the access.\n@param context the application context", "refresh credentials if CredentialProvider set", "Retrieve the finish slack.\n\n@return finish slack", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "Return the class of one of the properties of another class from which the Hibernate metadata is given.\n\n@param meta\nThe parent class to search a property in.\n@param propertyName\nThe name of the property in the parent class (provided by meta)\n@return Returns the class of the property in question.\n@throws HibernateLayerException\nThrows an exception if the property name could not be retrieved.", "Called when a previously created loader has finished its load.\n\n@param loader The Loader that has finished.\n@param data The data generated by the Loader." ]
public ModelNode getDeploymentSubsystemModel(final String subsystemName) { assert subsystemName != null : "The subsystemName cannot be null"; return getDeploymentSubModel(subsystemName, PathAddress.EMPTY_ADDRESS, null, deploymentUnit); }
[ "Get the subsystem deployment model root.\n\n<p>\nIf the subsystem resource does not exist one will be created.\n</p>\n\n@param subsystemName the subsystem name.\n\n@return the model" ]
[ "Stores the output from a Frontier into the queue, pausing and waiting if the given queue is too large\n\n@param resultsMap map of String and String representing the output of a Frontier's DFS", "Specify a specific index to run the query against\n\n@param designDocument set the design document to use\n@param indexName set the index name to use\n@return this to set additional options", "Create a hazard curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this hazard curve.\n@param times Array of times as doubles.\n@param givenSurvivalProbabilities Array of corresponding survival probabilities.\n@return A new discount factor object.", "Copy new grayscale data to the GPU texture. This one is also safe even\nin a non-GL thread. An updateGPU request on a non-GL thread will\nbe forwarded to the GL thread and be executed before main rendering happens.\n\nBe aware that updating a texture will affect any and all\n{@linkplain GVRMaterial materials} and/or post effects that use the texture!\n@param width width of grayscale image\n@param height height of grayscale image\n@param grayscaleData A byte array containing grayscale data\n\n@since 1.6.3", "Ask the specified player for the specified artwork from the specified media slot, first checking if we have a\ncached copy.\n\n@param artReference uniquely identifies the desired artwork\n@param trackType the kind of track that owns the artwork\n\n@return the artwork, if it was found, or {@code null}\n\n@throws IllegalStateException if the ArtFinder is not running", "Retrieve the FeatureSource object from the data store.\n\n@return An OpenGIS FeatureSource object;\n@throws LayerException\noops", "Use this API to update nstimeout.", "Tells it to process the submatrix at the next split. Should be called after the\ncurrent submatrix has been processed.", "look for zero after country code, and remove if present" ]
private void sortFields() { HashMap fields = new HashMap(); ArrayList fieldsWithId = new ArrayList(); ArrayList fieldsWithoutId = new ArrayList(); FieldDescriptorDef fieldDef; for (Iterator it = getFields(); it.hasNext(); ) { fieldDef = (FieldDescriptorDef)it.next(); fields.put(fieldDef.getName(), fieldDef); if (fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_ID)) { fieldsWithId.add(fieldDef.getName()); } else { fieldsWithoutId.add(fieldDef.getName()); } } Collections.sort(fieldsWithId, new FieldWithIdComparator(fields)); ArrayList result = new ArrayList(); for (Iterator it = fieldsWithId.iterator(); it.hasNext();) { result.add(getField((String)it.next())); } for (Iterator it = fieldsWithoutId.iterator(); it.hasNext();) { result.add(getField((String)it.next())); } _fields = result; }
[ "Sorts the fields." ]
[ "Return a new instance of the BufferedImage\n\n@return BufferedImage", "Append the text at the end of the File.\n\n@param file a File\n@param text the text to append at the end of the File\n@throws IOException if an IOException occurs.\n@since 1.0", "Compares two sets of snaks, given by iterators. The method is optimised\nfor short lists of snaks, as they are typically found in claims and\nreferences.\n\n@param snaks1\n@param snaks2\n@return true if the lists are equal", "Defines how messages should be logged. This method can be modified to\nrestrict the logging messages that are shown on the console or to change\ntheir formatting. See the documentation of Log4J for details on how to do\nthis.", "Gets the progress from response.\n\n@param myResponse\nthe my response\n@return the progress from response", "Creates the request.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Given a DocumentVersionInfo, returns a BSON document representing the next version. This means\nand incremented version count for a non-empty version, or a fresh version document for an\nempty version.\n@return a BsonDocument representing a synchronization version", "Compares two fields given by their names.\n\n@param objA The name of the first field\n@param objB The name of the second field\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "Lookup a native pointer to a collider and return its Java object.\n\n@param nativePointer native pointer to C++ Collider\n@return Java GVRCollider object" ]
public void setBooleanAttribute(String name, Boolean value) { ensureValue(); Attribute attribute = new BooleanAttribute(value); attribute.setEditable(isEditable(name)); getValue().getAllAttributes().put(name, attribute); }
[ "Sets the specified boolean attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
[ "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful", "END ODO CHANGES", "Render a zero Double as null.\n\n@param value double value\n@return null if the double value is zero", "Sets all dates in the list.\n@param dates the dates to set\n@param checked flag, indicating if all should be checked or unchecked.", "return a HashMap with all properties, name as key, value as value\n@return the properties", "Open a new content stream.\n\n@param item the content item\n@return the content stream", "Returns the compact project membership records for the project.\n\n@param project The project for which to fetch memberships.\n@return Request object", "Sets the timewarp setting from a numeric string\n\n@param timewarp a numeric string containing the number of milliseconds since the epoch", "Adds the absolute path to command.\n\n@param command the command to add the arguments to.\n@param typeName the type of directory.\n@param propertyName the name of the property.\n@param properties the properties where the path may already be defined.\n@param directoryGrouping the directory group type.\n@param typeDir the domain level directory for the given directory type; to be used for by-type grouping\n@param serverDir the root directory for the server, to be used for 'by-server' grouping\n@return the absolute path that was added." ]
public static BMatrixRMaj elementLessThan(DMatrixRMaj A , double value , BMatrixRMaj output ) { if( output == null ) { output = new BMatrixRMaj(A.numRows,A.numCols); } output.reshape(A.numRows, A.numCols); int N = A.getNumElements(); for (int i = 0; i < N; i++) { output.data[i] = A.data[i] < value; } return output; }
[ "Applies the &gt; operator to each element in A. Results are stored in a boolean matrix.\n\n@param A Input matrx\n@param value value each element is compared against\n@param output (Optional) Storage for results. Can be null. Is reshaped.\n@return Boolean matrix with results" ]
[ "the 1st request from the manager.", "Closes the server socket.", "Returns the connection that has been saved or null if none.", "Progress info message\n\n@param tag Message that precedes progress info. Indicate 'keys' or\n'entries'.", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specified fields.", "Reads a markdown link ID.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link ID.", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "ChromeCast does not allow you to jump levels too quickly to avoid blowing speakers.\nSetting by increment allows us to easily get the level we want\n\n@param level volume level from 0 to 1 to set\n@throws IOException\n@see <a href=\"https://developers.google.com/cast/docs/design_checklist/sender#sender-control-volume\">sender</a>" ]
private void readCalendars() { Table cal = m_tables.get("CAL"); for (MapRow row : cal) { ProjectCalendar calendar = m_projectFile.addCalendar(); m_calendarMap.put(row.getInteger("CALENDAR_ID"), calendar); Integer[] days = { row.getInteger("SUNDAY_HOURS"), row.getInteger("MONDAY_HOURS"), row.getInteger("TUESDAY_HOURS"), row.getInteger("WEDNESDAY_HOURS"), row.getInteger("THURSDAY_HOURS"), row.getInteger("FRIDAY_HOURS"), row.getInteger("SATURDAY_HOURS") }; calendar.setName(row.getString("NAME")); readHours(calendar, Day.SUNDAY, days[0]); readHours(calendar, Day.MONDAY, days[1]); readHours(calendar, Day.TUESDAY, days[2]); readHours(calendar, Day.WEDNESDAY, days[3]); readHours(calendar, Day.THURSDAY, days[4]); readHours(calendar, Day.FRIDAY, days[5]); readHours(calendar, Day.SATURDAY, days[6]); int workingDaysPerWeek = 0; for (Day day : Day.values()) { if (calendar.isWorkingDay(day)) { ++workingDaysPerWeek; } } Integer workingHours = null; for (int index = 0; index < 7; index++) { if (days[index].intValue() != 0) { workingHours = days[index]; break; } } if (workingHours != null) { int workingHoursPerDay = countHours(workingHours); int minutesPerDay = workingHoursPerDay * 60; int minutesPerWeek = minutesPerDay * workingDaysPerWeek; int minutesPerMonth = 4 * minutesPerWeek; int minutesPerYear = 52 * minutesPerWeek; calendar.setMinutesPerDay(Integer.valueOf(minutesPerDay)); calendar.setMinutesPerWeek(Integer.valueOf(minutesPerWeek)); calendar.setMinutesPerMonth(Integer.valueOf(minutesPerMonth)); calendar.setMinutesPerYear(Integer.valueOf(minutesPerYear)); } } }
[ "Read project calendars." ]
[ "Set whether the WMS tiles should be cached for later use. This implies that the WMS tiles will be proxied.\n\n@param useCache true when request needs to be cached\n@since 1.9.0", "returns a sorted array of methods", "Create the log if it does not exist or return back exist log\n\n@param topic the topic name\n@param partition the partition id\n@return read or create a log\n@throws IOException any IOException", "Derive a calendar for a resource.\n\n@param parentCalendarID calendar from which resource calendar is derived\n@return new calendar for a resource", "Modifies the \"msgCount\" belief\n\n@param int - the number to add or remove", "This is the main entry point used to convert the internal representation\nof timephased baseline work into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param work timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Use this API to fetch appfwhtmlerrorpage resource of given name .", "Examins the structure of A for QR decomposition\n@param A matrix which is to be decomposed\n@return true if the solution is valid or false if the decomposition can't be performed (i.e. requires column pivots)", "Checks to see if the matrix is symmetric to within tolerance.\n\n@param A Matrix being tested. Not modified.\n@param tol Tolerance that defines how similar two values must be to be considered identical\n@return true if symmetric or false if not" ]
public ReferrerList getPhotoReferrers(Date date, String domain, String photoId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTO_REFERRERS, domain, "photo_id", photoId, date, perPage, page); }
[ "Get a list of referrers from a given domain to a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html\"" ]
[ "Converts an object into a tab delimited string with given fields\nRequires the object has public access for the specified fields\n\n@param object Object to convert\n@param delimiter delimiter\n@param fieldNames fieldnames\n@return String representing object", "Calculates ATM Bachelier implied volatilities.\n\n@see net.finmath.functions.AnalyticFormulas#bachelierOptionImpliedVolatility(double, double, double, double, double)\n\n@param optionValue RandomVarable representing the value of the option\n@param optionMaturity Time to maturity.\n@param swapAnnuity The swap annuity as seen on valuation time.\n@return The Bachelier implied volatility.", "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name .", "Dumps a texture coordinate set of a mesh to stdout.\n\n@param mesh the mesh\n@param coords the coordinates", "Get all views from the list content\n@return list of views currently visible", "Adds a procedure argument definition to this class descriptor.\n\n@param argDef The procedure argument definition", "Sets the number of views for this Photo. For un-authenticated calls this value is not available and will be set to -1.\n\n@param views\n@deprecated attribute no longer available", "Put the core auto-code algorithm here so an external class can call it", "Utility method used to convert an integer time representation into a\nDuration instance.\n\n@param totalTime integer time representation\n@param format required time format\n@return new Duration instance" ]
public static boolean nullSafeEquals(final Object obj1, final Object obj2) { return ((obj1 == null && obj2 == null) || (obj1 != null && obj2 != null && obj1.equals(obj2))); }
[ "Test for equality.\n@param obj1 the first object\n@param obj2 the second object\n@return true if both are null or the two objects are equal" ]
[ "Returns a query filter for the given document _id and version. The version is allowed to be\nnull. The query will match only if there is either no version on the document in the database\nin question if we have no reference of the version or if the version matches the database's\nversion.\n\n@param documentId the _id of the document.\n@param version the expected version of the document, if any.\n@return a query filter for the given document _id and version for a remote operation.", "Gets the current version of the database schema. This version is taken\nfrom the migration table and represent the latest successful entry.\n\n@return the current schema version", "Concatenate all the arrays in the list into a vector.\n\n@param arrays List of arrays.\n@return Vector.", "Edit which photos are in the photoset.\n\n@param photosetId\nThe photoset ID\n@param primaryPhotoId\nThe primary photo Id\n@param photoIds\nThe photo IDs for the photos in the set\n@throws FlickrException", "Get the log if exists or return null\n\n@param topic topic name\n@param partition partition index\n@return a log for the topic or null if not exist", "read the prefetchInLimit from Config based on OJB.properties", "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context", "Creates the JSON serialized form of the accessory for use over the Homekit Accessory Protocol.\n\n@param instanceId the static id of the accessory.\n@return a future that will complete with the JSON builder for the object.", "Convert a drawable object into a Bitmap.\n@param drawable Drawable to extract a Bitmap from.\n@return A Bitmap created from the drawable parameter." ]
public ParallelTaskBuilder setReplaceVarMapToSingleTargetSingleVar( String variable, List<String> replaceList, String uniformTargetHost) { if (Strings.isNullOrEmpty(uniformTargetHost)) { logger.error("uniform target host is empty or null. skil setting."); return this; } this.replacementVarMapNodeSpecific.clear(); this.targetHosts.clear(); int i = 0; for (String replace : replaceList) { if (replace == null){ logger.error("null replacement.. skip"); continue; } String hostName = PcConstants.API_PREFIX + i; replacementVarMapNodeSpecific.put( hostName, new StrStrMap().addPair(variable, replace).addPair( PcConstants.UNIFORM_TARGET_HOST_VAR, uniformTargetHost)); targetHosts.add(hostName); ++i; } this.requestReplacementType = RequestReplacementType.TARGET_HOST_SPECIFIC_VAR_REPLACEMENT; logger.info( "Set requestReplacementType as {} for single target. Will disable the set target hosts." + "Also Simulated " + "Now Already set targetHost list with size {}. \nPLEASE NOT TO SET TARGET HOSTS AGAIN WITH THIS API.", requestReplacementType.toString(), targetHosts.size()); return this; }
[ "Sets the replace var map to single target single var.\n\n@param variable\nthe variable\n@param replaceList\n: the list of strings that will replace the variable\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder" ]
[ "compares two java files", "Match the Origin header with the allowed origins.\nIf it doesn't match then a 403 response code is set on the response and it returns null.\n@param exchange the current HttpExchange.\n@param allowedOrigins list of sanitized allowed origins.\n@return the first matching origin, null otherwise.\n@throws Exception", "Calculate conversion map.\n\n@param inRange Input range.\n@param outRange Output range.\n@param map Conversion map.", "Read task relationships.", "Used by dataformats if they need to load a class\n\n@param classname the name of the\n@param dataFormat\n@return", "Adds a member to this group with the specified role.\n@param user the member to be added to this group.\n@param role the role of the user in this group. Can be null to assign the default role.\n@return info about the new group membership.", "Convert gallery name to not found error key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"", "Sets no of currency digits.\n\n@param currDigs Available values, 0,1,2", "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise" ]
public BlurBuilder downScale(int scaleInSample) { data.options.inSampleSize = Math.min(Math.max(1, scaleInSample), 16384); return this; }
[ "Will scale the image down before processing for\nperformance enhancement and less memory usage\nsacrificing image quality.\n\n@param scaleInSample value greater than 1 will scale the image width/height, so 2 will getFromDiskCache you 1/4\nof the original size and 4 will getFromDiskCache you 1/16 of the original size - this just sets\nthe inSample size in {@link android.graphics.BitmapFactory.Options#inSampleSize } and\nbehaves exactly the same, so keep the value 2^n for least scaling artifacts" ]
[ "This method writes extended attribute data for a resource.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Support the range subscript operator for CharSequence with IntRange\n\n@param text a CharSequence\n@param range an IntRange\n@return the subsequence CharSequence\n@since 1.0", "Return the number of ignored or assumption-ignored tests.", "any possible bean invocations from other ADV observers", "Used by FreeStyle Maven jobs only", "Create an LBuffer from a given file.\n@param file\n@return\n@throws IOException", "Extract and return the table name for a class.", "Verify that the given queues are all valid.\n\n@param queues the given queues", "Use this API to restore appfwprofile." ]
public static boolean checkDuplicateElements(DMatrixSparseCSC A ) { A = A.copy(); // create a copy so that it doesn't modify A A.sortIndices(null); return !checkSortedFlag(A); }
[ "Checks for duplicate elements. A is sorted\n@param A Matrix to be tested.\n@return true if duplicates or false if false duplicates" ]
[ "Returns the value for a given key from the database properties.\n\n@param key the property key\n\n@return the string value for a given key", "Destroys all resource requests in requestQueue.\n\n@param requestQueue The queue for which all resource requests are to be\ndestroyed.", "Use this API to clear nsconfig.", "Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{@link Type#getInternalName() getInternalName}).\n@param name\nthe method's name.\n@param desc\nthe method's descriptor (see {@link Type Type}).\n@param itf\nif the method's owner class is an interface.", "Initializes the external child resource collection.", "Destroys the context", "Seeks to the given holiday within the given year\n\n@param holidayString\n@param yearString", "Process a device update once it has been received. Track it as the most recent update from its address,\nand notify any registered listeners, including master listeners if it results in changes to tracked state,\nsuch as the current master player and tempo. Also handles the Baroque dance of handing off the tempo master\nrole from or to another device.", "Utility function that fetches quota types." ]
@Override public EthiopicDate date(int prolepticYear, int month, int dayOfMonth) { return EthiopicDate.of(prolepticYear, month, dayOfMonth); }
[ "Obtains a local date in Ethiopic calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date" ]
[ "Redirect to page\n\n@param model\n@return", "Invoked by subclasses; performs actual file roll. Tests to see whether roll\nis necessary have already been performed, so just do it.", "Remove a part of a CharSequence by replacing the first occurrence\nof target within self with '' and returns the result.\n\n@param self a CharSequence\n@param target an object representing the part to remove\n@return a String containing the original minus the part to be removed\n@see #minus(String, Object)\n@since 1.8.2", "Process calendar hours and exception data from the database.\n\n@param calendars all calendars for the project", "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "Replaces an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object.", "domain.xml", "Use this API to fetch a sslglobal_sslpolicy_binding resources.", "Fetches the HttpMethod from annotations and returns String representation of HttpMethod.\nReturn emptyString if not present.\n\n@param method Method handling the http request.\n@return String representation of HttpMethod from annotations or emptyString as a default." ]
public static sslcipher_individualcipher_binding[] get_filtered(nitro_service service, String ciphergroupname, filtervalue[] filter) throws Exception{ sslcipher_individualcipher_binding obj = new sslcipher_individualcipher_binding(); obj.set_ciphergroupname(ciphergroupname); options option = new options(); option.set_filter(filter); sslcipher_individualcipher_binding[] response = (sslcipher_individualcipher_binding[]) obj.getfiltered(service, option); return response; }
[ "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object." ]
[ "Use this API to fetch authenticationradiuspolicy_authenticationvserver_binding resources of given name .", "Determine the consistency level of a key\n\n@param versionNodeSetMap A map that maps version to set of PrefixNodes\n@param replicationFactor Total replication factor for the set of clusters\n@return ConsistencyLevel Enum", "Progress info message\n\n@param tag Message that precedes progress info. Indicate 'keys' or\n'entries'.", "Starts off a new thread to monitor this connection attempt.\n@param connectionHandle to monitor", "Process stop.\n\n@param endpoint the endpoint\n@param eventType the event type", "Sets an attribute in the main section of the manifest to a map.\nThe map entries will be joined with a single whitespace character, and each key-value pair will be joined with a '='.\n\n@param name the attribute's name\n@param values the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Cancel the pause operation", "Returns the yield value such that the sum of cash flows of the bond discounted with the yield curve\ncoincides with a given price.\n\n@param bondPrice The target price as double.\n@param model The model under which the product is valued.\n@return The optimal yield value.", "For each node in specified zones, tries swapping some minimum number of\nrandom partitions per node with some minimum number of random partitions\nfrom other specified nodes. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This may get very expensive.\n\nSo if a node had partitions P1, P2, P3 and P4 and the other partitions\nset was Q1, Q2, Q3, Q4, Q5 The combinations that will be tried for\nswapping will be the cartesian product of the two sets. That is, {P1,\nQ1}, {P2, Q2}...{P2,Q1}, {P2,Q2}, in total 20 such swap pairs will be\ngenerated. The best among these swap pairs will be chosen.\n\n@param nextCandidateCluster\n@param nodeIds Node IDs within which to shuffle partitions\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param storeDefs\n@return updated cluster" ]
public final void reset() { for (int i = 0; i < permutationIndices.length; i++) { permutationIndices[i] = i; } remainingPermutations = totalPermutations; }
[ "Resets the generator state." ]
[ "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an integer (rounding might occur)", "Register the agent in the platform\n\n@param agent_name\nThe name of the agent to be registered\n@param agent\nThe agent to register.\n@throws FIPAException", "True if deleted, false if not found.", "An efficient method for exchanging data between two bit strings. Both bit strings must\nbe long enough that they contain the full length of the specified substring.\n@param other The bitstring with which this bitstring should swap bits.\n@param start The start position for the substrings to be exchanged. All bit\nindices are big-endian, which means position 0 is the rightmost bit.\n@param length The number of contiguous bits to swap.", "Restores a trashed folder to a new location with a new name.\n@param folderID the ID of the trashed folder.\n@param newName an optional new name to give the folder. This can be null to use the folder's original name.\n@param newParentID an optional new parent ID for the folder. This can be null to use the folder's original\nparent.\n@return info about the restored folder.", "Read relation data.", "Read metadata by populating an instance of the target class\nusing SAXParser.", "Finds properties of datatype string on test.wikidata.org. Since the test\nsite changes all the time, we cannot hardcode a specific property here.\nInstead, we just look through all properties starting from P1 to find the\nfirst few properties of type string that have an English label. These\nproperties are used for testing in this code.\n\n@param connection\n@throws MediaWikiApiErrorException\n@throws IOException", "Auto re-initialize external resourced\nif resources have been already released." ]
List<String> getWarnings(JsonNode root) { ArrayList<String> warnings = new ArrayList<>(); if (root.has("warnings")) { JsonNode warningNode = root.path("warnings"); Iterator<Map.Entry<String, JsonNode>> moduleIterator = warningNode .fields(); while (moduleIterator.hasNext()) { Map.Entry<String, JsonNode> moduleNode = moduleIterator.next(); Iterator<JsonNode> moduleOutputIterator = moduleNode.getValue() .elements(); while (moduleOutputIterator.hasNext()) { JsonNode moduleOutputNode = moduleOutputIterator.next(); if (moduleOutputNode.isTextual()) { warnings.add("[" + moduleNode.getKey() + "]: " + moduleOutputNode.textValue()); } else if (moduleOutputNode.isArray()) { Iterator<JsonNode> messageIterator = moduleOutputNode .elements(); while (messageIterator.hasNext()) { JsonNode messageNode = messageIterator.next(); warnings.add("[" + moduleNode.getKey() + "]: " + messageNode.path("html").path("*") .asText(messageNode.toString())); } } else { warnings.add("[" + moduleNode.getKey() + "]: " + "Warning was not understood. Please report this to Wikidata Toolkit. JSON source: " + moduleOutputNode.toString()); } } } } return warnings; }
[ "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of the JSON result" ]
[ "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event.", "Use this API to update csparameter.", "Prints the help on the command line\n\n@param options Options object from commons-cli", "ceiling for clipped RELU, alpha for ELU", "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments.", "Create a single node representing an embedded element.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node;", "Provides a nicely formatted string of the method definition. For simplicity, generic types on some of the elements\nare not displayed.\n@return\nstring form of node with some generic elements suppressed", "Retrieve table data, return an empty result set if no table data is present.\n\n@param name table name\n@return table data", "This method takes the textual version of a constraint name\nand returns an appropriate class instance. Note that unrecognised\nvalues are treated as \"As Soon As Possible\" constraints.\n\n@param locale target locale\n@param type text version of the constraint type\n@return ConstraintType instance" ]
protected Object[] idsOf(final List<?> idsOrValues) { // convert list to array that we can mutate final Object[] ids = idsOrValues.toArray(); // mutate array to contain only non-empty ids int length = 0; for (int i = 0; i < ids.length;) { final Object p = ids[i++]; if (p instanceof HasId) { // only use values with ids that are non-empty final String id = ((HasId) p).getId(); if (!StringUtils.isEmpty(id)) { ids[length++] = id; } } else if (p instanceof String) { // only use ids that are non-empty final String id = p.toString(); if (!StringUtils.isEmpty(id)) { ids[length++] = id; } } else if (p != null) { throw new StoreException("Invalid id or value of type " + p); } } // no ids in array if (length == 0) { return null; } // some ids in array if (length != ids.length) { final Object[] tmp = new Object[length]; System.arraycopy(ids, 0, tmp, 0, length); return tmp; } // array was full return ids; }
[ "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids" ]
[ "This method extracts calendar data from a Planner file.\n\n@param project Root node of the Planner file", "Accessor method used to retrieve a Float object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "set ViewPager scroller to change animation duration when sliding", "Merges two lists of references, eliminating duplicates in the process.\n\n@param references1\n@param references2\n@return merged list", "Put a spatial object in the cache and index it.\n\n@param key key for object\n@param object object itself\n@param envelope envelope for object", "Add classes to the map file.\n\n@param writer XML stream writer\n@param jarFile jar file\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException", "Checks whether the given set of properties is available.\n\n@param keys the keys to check\n@return true if all properties are available, false otherwise", "Process each regex group matched substring of the given string. If the closure\nparameter takes one argument, an array with all match groups is passed to it.\nIf the closure takes as many arguments as there are match groups, then each\nparameter will be one match group.\n\n@param self the source string\n@param regex a Regex string\n@param closure a closure with one parameter or as much parameters as groups\n@return the source string\n@since 1.6.0", "Writes the object to the specified document, optionally creating a child\nelement. The object in this case should be a point.\n\n@param o the object (of type Point).\n@param document the document to write to.\n@param asChild create child element if true.\n@throws RenderException" ]
public ProgressBar stop() { target.kill(); try { thread.join(); target.consoleStream.print("\n"); target.consoleStream.flush(); } catch (InterruptedException ex) { } return this; }
[ "Stops this progress bar." ]
[ "Use this API to fetch all the responderpolicy resources that are configured on netscaler.", "Create the function. Be sure to handle all possible input types and combinations correctly and provide\nmeaningful error messages. The output matrix should be resized to fit the inputs.", "Get the pickers date.", "Export the odo overrides setup and odo configuration\n\n@param oldExport Whether this is a backup from scratch or backing up because user will upload after (matches API)\n@return The odo configuration and overrides in JSON format, can be written to a file after", "Convert an integer to a RelationType instance.\n\n@param type integer value\n@return RelationType instance", "Log unexpected column structure.", "Returns an Organization\n\n@param organizationId String\n@return DbOrganization", "Creates a future that will send a request to the reporting host and call\nthe handler with the response\n\n@param path the path at the reporting host which the request will be made\n@param reportingHandler the handler to receive the response once executed\nand recieved\n@return a {@link java.util.concurrent.Future} for handing the request", "Removes any child object that has the given name by performing\ncase-sensitive search.\n\n@param name name of scene object to be removed.\n\n@return number of removed objects, 0 if none was found." ]
protected boolean isSingleConnection(DatabaseConnection conn1, DatabaseConnection conn2) throws SQLException { // initialize the connections auto-commit flags conn1.setAutoCommit(true); conn2.setAutoCommit(true); try { // change conn1's auto-commit to be false conn1.setAutoCommit(false); if (conn2.isAutoCommit()) { // if the 2nd connection's auto-commit is still true then we have multiple connections return false; } else { // if the 2nd connection's auto-commit is also false then we have a single connection return true; } } finally { // restore its auto-commit conn1.setAutoCommit(true); } }
[ "Return true if the two connections seem to one one connection under the covers." ]
[ "Finish initializing service.\n\n@throws IOException oop", "Scales a process type\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param processType type of process to maintain\n@param quantity number of processes to maintain", "Return the single class name from a class-name string.", "gets a class from the class cache. This cache contains only classes loaded through\nthis class loader or an InnerLoader instance. If no class is stored for a\nspecific name, then the method should return null.\n\n@param name of the class\n@return the class stored for the given name\n@see #removeClassCacheEntry(String)\n@see #setClassCacheEntry(Class)\n@see #clearCache()", "Create a style from a list of rules.\n\n@param styleRules the rules", "Accessor method to retrieve a Boolean instance.\n\n@param field the index number of the field to be retrieved\n@param falseText locale specific text representing false\n@return the value of the required field", "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "Log a message with a throwable at the provided level.", "Returns all entries in no particular order." ]
public static void generateJavaFiles(String requirementsFolder, String platformName, String src_test_dir, String tests_package, String casemanager_package, String loggingPropFile) throws Exception { File reqFolder = new File(requirementsFolder); if (reqFolder.isDirectory()) { for (File f : reqFolder.listFiles()) { if (f.getName().endsWith(".story")) { try { SystemReader.generateJavaFilesForOneStory( f.getCanonicalPath(), platformName, src_test_dir, tests_package, casemanager_package, loggingPropFile); } catch (IOException e) { String message = "ERROR: " + e.getMessage(); logger.severe(message); throw new BeastException(message, e); } } } for (File f : reqFolder.listFiles()) { if (f.isDirectory()) { SystemReader.generateJavaFiles(requirementsFolder + File.separator + f.getName(), platformName, src_test_dir, tests_package + "." + f.getName(), casemanager_package, loggingPropFile); } } } else if (reqFolder.getName().endsWith(".story")) { SystemReader.generateJavaFilesForOneStory(requirementsFolder, platformName, src_test_dir, tests_package, casemanager_package, loggingPropFile); } else { String message = "No story file found in " + requirementsFolder; logger.severe(message); throw new BeastException(message); } }
[ "Main method of the class, which handles the process of creating the tests\n\n@param requirementsFolder\n, it is the folder where the plain text given by the client is\nstored\n@param platformName\n, to choose the MAS platform (JADE, JADEX, etc.)\n@param src_test_dir\n, the folder where our classes are created\n@param tests_package\n, the name of the package where the stories are created\n@param casemanager_package\n, the path where casemanager must be created\n@param loggingPropFile\n, properties file\n@throws Exception\n, if any error is found in the configuration" ]
[ "Add an URL to the given classloader\n\n@param loader ClassLoader\n@param url URL to add\n@throws IOException I/O Error\n@throws InvocationTargetException Invocation Error\n@throws IllegalArgumentException Illegal Argument\n@throws IllegalAccessException Illegal Access\n@throws SecurityException Security Constraint\n@throws NoSuchMethodException Method not found", "Returns the list of the configured sort options, or the empty list if no sort options are configured.\n@return The list of the configured sort options, or the empty list if no sort options are configured.", "Calls a method from editService to update the repeat number for a path\n\n@param model\n@param newNum\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "Registers add operation\n\n@param registration resource on which to register\n@param handler operation handler to register\n@param flags with flags\n@deprecated use {@link #registerAddOperation(org.jboss.as.controller.registry.ManagementResourceRegistration, AbstractAddStepHandler, org.jboss.as.controller.registry.OperationEntry.Flag...)}", "Remove specified override id from enabled overrides for path\n\n@param overrideId ID of override to remove\n@param pathId ID of path containing override\n@param ordinal index to the instance of the enabled override\n@param clientUUID UUID of client", "Populates date time settings.\n\n@param record MPX record\n@param properties project properties", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Gets read-only metadata.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to fetch read-only metadata from\n@param storeNames Stores names to fetch read-only metadata from\n@param metaKeys List of read-only metadata to fetch\n@throws IOException", "Find and validate manifest.json file in Artifactory for the current image.\nSince provided imageTag differs between reverse-proxy and proxy-less configuration, try to build the correct manifest path.\n@param server\n@param dependenciesClient\n@param listener\n@return\n@throws IOException" ]
private void checkGAs(List l) { for (final Iterator i = l.iterator(); i.hasNext();) if (!(i.next() instanceof GroupAddress)) throw new KNXIllegalArgumentException("not a group address list"); }
[ "iteration not synchronized" ]
[ "Set the map attribute.\n\n@param name the attribute name\n@param attribute the attribute", "Returns an iterator over the items in this folder.\n\n@return an iterator over the items in this folder.", "Writes one or more String columns as a line to the CsvWriter.\n\n@param columns\nthe columns to write\n@throws IllegalArgumentException\nif columns.length == 0\n@throws IOException\nIf an I/O error occurs\n@throws NullPointerException\nif columns is null", "Display mode for output streams.", "Returns all categories that are direct children of the current main category.\n\n@return all categories that are direct children of the current main category.", "Set an attribute.\n\n@param name attribute name.\n@param value attribute value.", "Register the given mbean with the server\n\n@param server The server to register with\n@param mbean The mbean to register\n@param name The name to register under", "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails.", "Assign arguments to the statement.\n\n@return The statement passed in or null if it had to be closed on error." ]
static TarArchiveEntry defaultFileEntryWithName( final String fileName ) { TarArchiveEntry entry = new TarArchiveEntry(fileName, true); entry.setUserId(ROOT_UID); entry.setUserName(ROOT_NAME); entry.setGroupId(ROOT_UID); entry.setGroupName(ROOT_NAME); entry.setMode(TarArchiveEntry.DEFAULT_FILE_MODE); return entry; }
[ "Creates a tar file entry with defaults parameters.\n@param fileName the entry name\n@return file entry with reasonable defaults" ]
[ "This version assumes relativeIndices array no longer needs to\nbe copied. Further it is assumed that it has already been\nchecked or assured by construction that relativeIndices\nis sorted.", "Apply aliases to task and resource fields.\n\n@param aliases map of aliases", "Return the equivalence class of the argument. If the argument is not contained in\nand equivalence class, then an empty string is returned.\n\n@param punc\n@return The class name if found. Otherwise, an empty string.", "Lookup Seam integration resource loader.\n@return the Seam integration resource loader\n@throws DeploymentUnitProcessingException for any error", "Returns the corresponding ModuleLoadService service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleLoadService service", "This method takes the textual version of an accrue type name\nand populates the class instance appropriately. Note that unrecognised\nvalues are treated as \"Prorated\".\n\n@param type text version of the accrue type\n@param locale target locale\n@return AccrueType class instance", "Deregister shutdown hook and execute it immediately", "List the greetings in the specified guestbook.", "Merge two maps of configuration properties. If the original contains a mapping for the same key, the new mapping is ignored.\n\n@param original\n@param toMerge" ]
public final static int readMdLinkId(final StringBuilder out, final String in, final int start) { int pos = start; int counter = 1; while (pos < in.length()) { final char ch = in.charAt(pos); boolean endReached = false; switch (ch) { case '\n': out.append(' '); break; case '[': counter++; out.append(ch); break; case ']': counter--; if (counter == 0) { endReached = true; } else { out.append(ch); } break; default: out.append(ch); break; } if (endReached) { break; } pos++; } return (pos == in.length()) ? -1 : pos; }
[ "Reads a markdown link ID.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link ID." ]
[ "Update a feature object in the Hibernate session.\n\n@param feature feature object\n@throws LayerException oops", "Reads a stringtemplate group from a stream.\n\nThis will always return a group (empty if necessary), even if reading it from the stream fails.\n\n@param stream the stream to read from\n@return the string template group", "Prints associations recovered from the fields of a class. An association is inferred only\nif another relation between the two classes is not already in the graph.\n@param classes", "Merges information from the resource root into this resource root\n\n@param additionalResourceRoot The root to merge", "Processes a row of the sites table and stores the site information found\ntherein.\n\n@param siteRow\nstring serialisation of a sites table row as found in the SQL\ndump", "Backup all xml files in a given directory.\n\n@param source the source directory\n@param target the target directory\n@throws IOException for any error", "Execute the transactional flow - catch all exceptions\n\n@param input Initial data input\n@return Try that represents either success (with result) or failure (with errors)", "Use this API to fetch all the dospolicy resources that are configured on netscaler.", "Print rate.\n\n@param rate Rate instance\n@return rate value" ]
private void addGreeting(String guestbookName, String user, String message) throws DatastoreException { Entity.Builder greeting = Entity.newBuilder(); greeting.setKey(makeKey(GUESTBOOK_KIND, guestbookName, GREETING_KIND)); greeting.getMutableProperties().put(USER_PROPERTY, makeValue(user).build()); greeting.getMutableProperties().put(MESSAGE_PROPERTY, makeValue(message).build()); greeting.getMutableProperties().put(DATE_PROPERTY, makeValue(new Date()).build()); Key greetingKey = insert(greeting.build()); System.out.println("greeting key is: " + greetingKey); }
[ "Add a greeting to the specified guestbook." ]
[ "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "A convenience method for creating an immutable sorted set.\n\n@param self a SortedSet\n@return an immutable SortedSet\n@see java.util.Collections#unmodifiableSortedSet(java.util.SortedSet)\n@since 1.0", "Save the changes.", "Call the constructor for the given class, inferring the correct types for\nthe arguments. This could be confusing if there are multiple constructors\nwith the same number of arguments and the values themselves don't\ndisambiguate.\n\n@param klass The class to construct\n@param args The arguments\n@return The constructed value", "Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference<D> of the Declaration", "Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPutVals that were rejected as obsolete", "Use this API to update rnatparam.", "This function looks for files with the \"wrong\" replica type in their name, and\nif it finds any, renames them.\n\nThose files may have ended up on this server either because:\n- 1. We restored them from another server, where they were named according to\nanother replica type. Or,\n- 2. The {@link voldemort.store.readonly.mr.azkaban.VoldemortBuildAndPushJob}\nand the {@link voldemort.store.readonly.fetcher.HdfsFetcher} are\noperating in 'build.primary.replicas.only' mode, so they only ever built\nand fetched replica 0 of any given file.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param masterPartitionId partition ID of the \"primary replica\"\n@param correctReplicaType replica number which should be found on the current\nnode for the provided masterPartitionId.", "prefix length in this section is ignored when converting to MAC" ]
private static void addTimePerComponent(HashMap<String, Long> mapComponentTimes, Component component) { Long currentTimeOfComponent = 0L; String key = component.getComponentType(); if (mapComponentTimes.containsKey(key)) { currentTimeOfComponent = mapComponentTimes.get(key); } //when transactions are run in parallel, we should log the longest transaction only to avoid that //for ex 'Total time' would be 100ms and transactions in parallel to hornetQ will be 2000ms Long maxTime = Math.max(component.getTime(), currentTimeOfComponent); mapComponentTimes.put(key, maxTime); }
[ "Add component processing time to given map\n@param mapComponentTimes\n@param component" ]
[ "Restores a trashed folder to a new location with a new name.\n@param folderID the ID of the trashed folder.\n@param newName an optional new name to give the folder. This can be null to use the folder's original name.\n@param newParentID an optional new parent ID for the folder. This can be null to use the folder's original\nparent.\n@return info about the restored folder.", "appends a HAVING-clause to the Statement\n@param having\n@param crit\n@param stmt", "Helper to read an optional String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML, or <code>null</code> if the value could not be read.", "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue...", "add a FK column pointing to This Class", "This method uses the configured git credentials and repo, to test its validity.\nIn addition, in case the user requested creation of a new tag, it checks that\nanother tag with the same name doesn't exist", "If there is an unprocessed change event for a particular document ID, fetch it from the\nchange stream listener, and remove it. By reading the event here, we are assuming it will be\nprocessed by the consumer.\n\n@return the latest unprocessed change event for the given document ID, or null if none exists.", "Select which view to display based on the state of the promotion. Will return the form if user selects to perform\npromotion. Progress will be returned if the promotion is currently in progress.", "Apply aliases to task and resource fields.\n\n@param aliases map of aliases" ]
public static boolean readBooleanAttributeElement(final XMLExtendedStreamReader reader, final String attributeName) throws XMLStreamException { requireSingleAttribute(reader, attributeName); final boolean value = Boolean.parseBoolean(reader.getAttributeValue(0)); requireNoContent(reader); return value; }
[ "Read an element which contains only a single boolean attribute.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@return the boolean value\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements." ]
[ "Inverts an upper or lower triangular block submatrix.\n\n@param blockLength\n@param upper Is it upper or lower triangular.\n@param T Triangular matrix that is to be inverted. Must be block aligned. Not Modified.\n@param T_inv Where the inverse is stored. This can be the same as T. Modified.\n@param temp Work space variable that is size blockLength*blockLength.", "Constraint that ensures that the field has a conversion if the java type requires it. Also checks the conversion class.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If the conversion class is invalid", "Retrieve the value of a single-valued parameter.\n\n@param key\n@param defaultValue\n@param cnx", "Determine if the start of the buffer matches a fingerprint byte array.\n\n@param buffer bytes from file\n@param fingerprint fingerprint bytes\n@return true if the file matches the fingerprint", "Remove a variable in the top variables layer.", "Removes a set of calendar hours from the day to which they\nare currently attached.\n\n@param hours calendar hours instance", "Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator", "Converts a tab delimited string into an object with given fields\nRequires the object has public access for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterPattern delimiter\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Returns a list of metadata property paths.\n@return the list of metdata property paths." ]
public static Dimension rectangleDoubleToDimension(final Rectangle2D.Double rectangle) { return new Dimension( (int) Math.round(rectangle.width), (int) Math.round(rectangle.height)); }
[ "Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return" ]
[ "Gets string content from InputStream\n\n@param is InputStream to read\n@return InputStream content", "Returns the single abstract method of a class node, if it is a SAM type, or null otherwise.\n@param type a type for which to search for a single abstract method\n@return the method node if type is a SAM type, null otherwise", "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "Restore authentications from persisted state.\n\n@param savedAuthorization saved authorizations", "Returns a list ordered from the highest priority to the lowest.", "Checks to see if the matrix is symmetric to within tolerance.\n\n@param A Matrix being tested. Not modified.\n@param tol Tolerance that defines how similar two values must be to be considered identical\n@return true if symmetric or false if not", "Gets the actual type arguments of a class\n\n@param clazz The class to examine\n@return The type arguments", "Use this API to fetch all the tmsessionparameter resources that are configured on netscaler.", "Calculate the child size along the axis and measure the offset inside the\nlayout container\n@param dataIndex of child in Container\n@return true item fits the container, false - otherwise" ]
public void removeHoursFromDay(ProjectCalendarHours hours) { if (hours.getParentCalendar() != this) { throw new IllegalArgumentException(); } m_hours[hours.getDay().getValue() - 1] = null; }
[ "Removes a set of calendar hours from the day to which they\nare currently attached.\n\n@param hours calendar hours instance" ]
[ "Draw an elliptical interior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for filling", "Load assertion from the provided json or throw exception if not possible.\n\n@param encodedAssertion the assertion as it was encoded in JSON.", "This method returns the value of the product under the specified model and other information in a key-value map.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model A model used to evaluate the product.\n@return The values of the product.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Use this API to fetch all the sslcertlink resources that are configured on netscaler.", "Sets the value for the API's \"languages\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Handler for month changes.\n@param event change event.", "Generates a toString method using concatenation or a StringBuilder.", "Use this API to export appfwlearningdata.", "Serialize a content into a targeted file, checking that the parent directory exists.\n\n@param folder File\n@param content String\n@param fileName String" ]
private void compile(ICompilationUnit[] sourceUnits, boolean lastRound) { this.stats.startTime = System.currentTimeMillis(); try { // build and record parsed units reportProgress(Messages.compilation_beginningToCompile); if (this.options.complianceLevel >= ClassFileConstants.JDK9) { // in Java 9 the compiler must never ask the oracle for a module that is contained in the input units: sortModuleDeclarationsFirst(sourceUnits); } if (this.annotationProcessorManager == null) { beginToCompile(sourceUnits); } else { ICompilationUnit[] originalUnits = sourceUnits.clone(); // remember source units in case a source type collision occurs try { beginToCompile(sourceUnits); if (!lastRound) { processAnnotations(); } if (!this.options.generateClassFiles) { // -proc:only was set on the command line return; } } catch (SourceTypeCollisionException e) { backupAptProblems(); reset(); // a generated type was referenced before it was created // the compiler either created a MissingType or found a BinaryType for it // so add the processor's generated files & start over, // but remember to only pass the generated files to the annotation processor int originalLength = originalUnits.length; int newProcessedLength = e.newAnnotationProcessorUnits.length; ICompilationUnit[] combinedUnits = new ICompilationUnit[originalLength + newProcessedLength]; System.arraycopy(originalUnits, 0, combinedUnits, 0, originalLength); System.arraycopy(e.newAnnotationProcessorUnits, 0, combinedUnits, originalLength, newProcessedLength); this.annotationProcessorStartIndex = originalLength; compile(combinedUnits, e.isLastRound); return; } } // Restore the problems before the results are processed and cleaned up. restoreAptProblems(); processCompiledUnits(0, lastRound); } catch (AbortCompilation e) { this.handleInternalException(e, null); } if (this.options.verbose) { if (this.totalUnits > 1) { this.out.println( Messages.bind(Messages.compilation_units, String.valueOf(this.totalUnits))); } else { this.out.println( Messages.bind(Messages.compilation_unit, String.valueOf(this.totalUnits))); } } }
[ "General API\n-> compile each of supplied files\n-> recompile any required types for which we have an incomplete principle structure" ]
[ "Increment the version info associated with the given node\n\n@param node The node", "Add a task to the project.\n\n@return new task instance", "Find Flickr Places information by Place ID.\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link #getInfo(String, String)} instead.\n@param placeId\n@return A Location\n@throws FlickrException", "Set up the services to create a channel listener and operation handler service.\n@param serviceTarget the service target to install the services into\n@param endpointName the endpoint name to install the services into\n@param channelName the name of the channel\n@param executorServiceName service name of the executor service to use in the operation handler service\n@param scheduledExecutorServiceName service name of the scheduled executor service to use in the operation handler service", "Set the locking values\n@param cld\n@param obj\n@param oldLockingValues", "Create a discount curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this discount curve.\n@param times Array of times as doubles.\n@param givenDiscountFactors Array of corresponding discount factors.\n@return A new discount factor object.", "Used to finish up pushing the bulge off the matrix.", "Obtains a local date in Julian calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Julian local date, not null\n@throws DateTimeException if unable to create the date", "Return a new instance of the BufferedImage\n\n@return BufferedImage" ]
protected AbstractColumn buildSimpleImageColumn() { ImageColumn column = new ImageColumn(); populateCommonAttributes(column); populateExpressionAttributes(column); column.setExpression(customExpression); column.setExpressionToGroupBy(customExpressionToGroupBy); column.setExpressionForCalculation(customExpressionForCalculation); column.setScaleMode(imageScaleMode); return column; }
[ "When creating image columns\n@return" ]
[ "Use this API to update sslcertkey.", "Remove all scene objects.", "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "Given a Task instance, this task determines if it should be written to the\nPM XML file as an activity or as a WBS item, and calls the appropriate\nmethod.\n\n@param task Task instance", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "Reads input data from a JSON file in the output directory.", "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registration completes/fails.", "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Add an object into cache by key with expiration time specified\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached\n@param expiration\nthe seconds after which the object will be evicted from the cache" ]
private void dbUpgrade() { DbConn cnx = this.getConn(); Map<String, Object> rs = null; int db_schema_version = 0; try { rs = cnx.runSelectSingleRow("version_select_latest"); db_schema_version = (Integer) rs.get("VERSION_D1"); } catch (Exception e) { // Database is to be created, so version 0 is OK. } cnx.rollback(); if (SCHEMA_VERSION > db_schema_version) { jqmlogger.warn("Database is being upgraded from version {} to version {}", db_schema_version, SCHEMA_VERSION); // Upgrade scripts are named from_to.sql with 5 padding (e.g. 00000_00003.sql) // We try to find the fastest path (e.g. a direct 00000_00005.sql for creating a version 5 schema from nothing) // This is a simplistic and non-optimal algorithm as we try only a single path (no going back) int loop_from = db_schema_version; int to = db_schema_version; List<String> toApply = new ArrayList<>(); toApply.addAll(adapter.preSchemaCreationScripts()); while (to != SCHEMA_VERSION) { boolean progressed = false; for (int loop_to = SCHEMA_VERSION; loop_to > db_schema_version; loop_to--) { String migrationFileName = String.format("/sql/%05d_%05d.sql", loop_from, loop_to); jqmlogger.debug("Trying migration script {}", migrationFileName); if (Db.class.getResource(migrationFileName) != null) { toApply.add(migrationFileName); to = loop_to; loop_from = loop_to; progressed = true; break; } } if (!progressed) { break; } } if (to != SCHEMA_VERSION) { throw new DatabaseException( "There is no migration path from version " + db_schema_version + " to version " + SCHEMA_VERSION); } for (String s : toApply) { jqmlogger.info("Running migration script {}", s); ScriptRunner.run(cnx, s); } cnx.commit(); // Yes, really. For advanced DB! cnx.close(); // HSQLDB does not refresh its schema without this. cnx = getConn(); cnx.runUpdate("version_insert", SCHEMA_VERSION, SCHEMA_COMPATIBLE_VERSION); cnx.commit(); jqmlogger.info("Database is now up to date"); } else { jqmlogger.info("Database is already up to date"); } cnx.close(); }
[ "Updates the database. Never call this during normal operations, upgrade is a user-controlled operation." ]
[ "This method calculates the absolute number of days between two dates.\nNote that where two date objects are provided that fall on the same\nday, this method will return one not zero. Note also that this method\nassumes that the dates are passed in the correct order, i.e.\nstartDate < endDate.\n\n@param startDate Start date\n@param endDate End date\n@return number of days in the date range", "Write the given number of bytes out to the array\n\n@param bytes The array to write to\n@param value The value to write from\n@param offset the offset into the array\n@param numBytes The number of bytes to write", "Returns the value of an optional property, if the property is\nset. If it is not set defval is returned.", "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "Go through all node IDs and determine which node\n\n@param cluster\n@param storeRoutingPlan\n@return", "Append the given item to the end of the list\n@param segment segment to append", "Assembles the exception message when the value received by a CellProcessor isn't of the correct type.\n\n@param expectedType\nthe expected type\n@param actualValue\nthe value received by the CellProcessor\n@return the message\n@throws NullPointerException\nif expectedType is null", "Saves the state of this connection to a string so that it can be persisted and restored at a later time.\n\n<p>Note that proxy settings aren't automatically saved or restored. This is mainly due to security concerns\naround persisting proxy authentication details to the state string. If your connection uses a proxy, you will\nhave to manually configure it again after restoring the connection.</p>\n\n@see #restore\n@return the state of this connection.", "Method indicating whether a day is a working or non-working day.\n\n@param day required day\n@return true if this is a working day" ]
protected void checkVariableName(GraphRewrite event, EvaluationContext context) { if (variableName == null) { setVariableName(Iteration.getPayloadVariableName(event, context)); } }
[ "Check the variable name and if not set, set it with the singleton variable name being on the top of the stack." ]
[ "Logout the current session. After calling this method,\nthe session will be cleared", "Initialize current thread's JobContext using specified copy\n@param origin the original job context", "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Send a lifecycle announcement to all registered listeners.\n\n@param logger the logger to use, so the log entry shows as belonging to the proper subclass.\n@param starting will be {@code true} if the DeviceFinder is starting, {@code false} if it is stopping.", "Compute the offset for the item in the layout based on the offsets of neighbors\nin the layout. The other offsets are not patched. If neighbors offsets have not\nbeen computed the offset of the item will not be set.\n@return true if the item fits the container, false otherwise", "The length of the region left to the completion offset that is part of the\nreplace region.", "Use this API to fetch bridgegroup_nsip_binding resources of given name .", "Converts a gwt Date in the timezone of the current browser to a time in\nUTC.\n\n@return A Long corresponding to the number of milliseconds since January\n1, 1970, 00:00:00 GMT or null if the specified Date is null.", "Sets the the time of day\n\n@param hours the hours to set. Must be guaranteed to parse as an\ninteger between 0 and 23\n\n@param minutes the minutes to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param seconds the optional seconds to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param amPm the meridian indicator to use. Must be either 'am' or 'pm'\n\n@param zoneString the time zone to use in one of two formats:\n- zoneinfo format (America/New_York, America/Los_Angeles, etc)\n- GMT offset (+05:00, -0500, +5, etc)" ]
public GVRMesh findMesh(GVRSceneObject model) { class MeshFinder implements GVRSceneObject.ComponentVisitor { private GVRMesh meshFound = null; public GVRMesh getMesh() { return meshFound; } public boolean visit(GVRComponent comp) { GVRRenderData rdata = (GVRRenderData) comp; meshFound = rdata.getMesh(); return (meshFound == null); } }; MeshFinder findMesh = new MeshFinder(); model.forAllComponents(findMesh, GVRRenderData.getComponentType()); return findMesh.getMesh(); }
[ "Finds the first mesh in the given model.\n@param model root of a model loaded by the asset loader.\n@return GVRMesh found or null if model does not contain meshes\n@see #loadMesh(GVRAndroidResource.MeshCallback, GVRAndroidResource, int)" ]
[ "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "Parse a boolean.\n\n@param value boolean\n@return Boolean value", "Must be called with pathEntries lock taken", "You should call this method from your activity onRequestPermissionsResult.\n\n@param requestCode The request code passed in requestPermissions(android.app.Activity, String[], int)\n@param permissions The requested permissions. Never null.\n@param grantResults The grant results for the corresponding permissions which is either\nPERMISSION_GRANTED or PERMISSION_DENIED. Never null.", "Creates an temporary directory. The created directory will be deleted when\ncommand will ended.", "Give an embedded association, creates all the nodes and relationships required to represent it.\nIt assumes that the entity node containing the association already exists in the db.\n\n@param executionEngine the {@link GraphDatabaseService} to run the query\n@param associationKey the {@link AssociationKey} identifying the association\n@param embeddedKey the {@link EntityKey} identifying the embedded component\n@return the created {@link Relationship} that represents the association", "This function looks for files with the \"wrong\" replica type in their name, and\nif it finds any, renames them.\n\nThose files may have ended up on this server either because:\n- 1. We restored them from another server, where they were named according to\nanother replica type. Or,\n- 2. The {@link voldemort.store.readonly.mr.azkaban.VoldemortBuildAndPushJob}\nand the {@link voldemort.store.readonly.fetcher.HdfsFetcher} are\noperating in 'build.primary.replicas.only' mode, so they only ever built\nand fetched replica 0 of any given file.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param masterPartitionId partition ID of the \"primary replica\"\n@param correctReplicaType replica number which should be found on the current\nnode for the provided masterPartitionId.", "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType the target collection element type\n@return collection", "Closes the server socket." ]
protected boolean executeOperation(final TransactionalProtocolClient.TransactionalOperationListener<ServerOperation> listener, TransactionalProtocolClient client, final ServerIdentity identity, final ModelNode operation, final OperationResultTransformer transformer) { if(client == null) { return false; } final OperationMessageHandler messageHandler = new DelegatingMessageHandler(context); final OperationAttachments operationAttachments = new DelegatingOperationAttachments(context); final ServerOperation serverOperation = new ServerOperation(identity, operation, messageHandler, operationAttachments, transformer); try { DomainControllerLogger.HOST_CONTROLLER_LOGGER.tracef("Sending %s to %s", operation, identity); final Future<OperationResponse> result = client.execute(listener, serverOperation); recordExecutedRequest(new ExecutedServerRequest(identity, result, transformer)); } catch (IOException e) { final TransactionalProtocolClient.PreparedOperation<ServerOperation> result = BlockingQueueOperationListener.FailedOperation.create(serverOperation, e); listener.operationPrepared(result); recordExecutedRequest(new ExecutedServerRequest(identity, result.getFinalResult(), transformer)); } return true; }
[ "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server identity\n@param operation the operation\n@param transformer the operation result transformer\n@return whether the operation was executed" ]
[ "Use this API to fetch all the callhome resources that are configured on netscaler.", "Generate a results file for each test in each suite.\n@param outputDirectory The target directory for the generated file(s).", "Combines two trajectories by adding the corresponding positions. The trajectories have to have the same length.\n@param a The first trajectory\n@param b The second trajectory\n@return The combined trajectory", "Apply the layout to the each page in the list\n@param itemLayout item layout in the page\n@return true if the new layout is applied successfully, otherwise - false", "Extracts a duration from a JAXBElement instance.\n\n@param duration duration expressed in hours\n@return duration instance", "Starts the transition", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "Set the week day.\n@param weekDayStr the week day to set.", "The Total Slack field contains the amount of time a task can be\ndelayed without delaying the project's finish date.\n\n@return string representing duration" ]