query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public static void checkRequired(OptionSet options, String opt1, String opt2) throws VoldemortException { List<String> opts = Lists.newArrayList(); opts.add(opt1); opts.add(opt2); checkRequired(options, opts); }
[ "Checks if there's exactly one option that exists among all possible opts.\n\n@param options OptionSet to checked\n@param opt1 Possible required option to check\n@param opt2 Possible required option to check\n@throws VoldemortException" ]
[ "Replace the last element of an address with a static path element.\n\n@param element the path element\n@return the operation address transformer", "Return a new File object based on the baseDir and the segments.\n\nThis method does not perform any operation on the file system.", "Use this API to update bridget...
void insertOne(final MongoNamespace namespace, final BsonDocument document) { this.waitUntilInitialized(); try { ongoingOperationsGroup.enter(); // Remove forbidden fields from the document before inserting it into the local collection. final BsonDocument docForStorage = sanitizeDocument(docu...
[ "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert." ]
[ "Blocking function which completes the migration of one store\n\n@param storeName The name of the store\n@param adminClient Admin client used to initiate the copying of data\n@param stealInfo The steal information\n@param isReadOnlyStore Boolean indicating that this is a read-only store", "Create all the links po...
public void setAmbientIntensity(float r, float g, float b, float a) { setVec4("ambient_intensity", r, g, b, a); }
[ "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to ...
[ "Called recursively to renumber child task IDs.\n\n@param parentTask parent task instance\n@param currentID current task ID\n@return updated current task ID", "Given a rebalance-task info, convert it into the protobuf equivalent\n\n@param stealInfo Rebalance task info\n@return Protobuf equivalent of the same", ...
private void getWeeklyDates(Calendar calendar, int frequency, List<Date> dates) { int currentDay = calendar.get(Calendar.DAY_OF_WEEK); while (moreDates(calendar, dates)) { int offset = 0; for (int dayIndex = 0; dayIndex < 7; dayIndex++) { if (getWeeklyDay(Day...
[ "Calculate start dates for a weekly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates" ]
[ "Size of a queue.\n\n@param jedis\n@param queueName\n@return", "Requests Change notifications of feed type normal.\n\n@return {@link ChangesResult} encapsulating the normal feed changes", "Gets the task from in progress map.\n\n@param jobId\nthe job id\n@return the task from in progress map", "Create the inde...
public static UndeployDescription of(final DeploymentDescription deploymentDescription) { Assert.checkNotNullParam("deploymentDescription", deploymentDescription); return of(deploymentDescription.getName()).addServerGroups(deploymentDescription.getServerGroups()); }
[ "Creates a new undeploy description.\n\n@param deploymentDescription the deployment description to copy\n\n@return the description" ]
[ "interceptors, decorators and observers go first", "Returns a count of in-window events.\n\n@return the the count of in-window events.", "Returns the collection definition of the given name if it exists.\n\n@param name The name of the collection\n@return The collection definition or <code>null</code> if there i...
public static <E> Collection<E> collectify(ObjectMapper mapper, Object source, Class<? extends Collection> targetCollectionType, Class<E> targetElementType) { CollectionType collectionType = mapper.getTypeFactory().constructCollectionType(targetCollectionType, targetElementType); return objectify(mapper...
[ "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" ]
[ "Prints the error message as log message.\n\n@param level the log level", "Get all the handlers at a specific address.\n\n@param address the address\n@param inherited true to include the inherited operations\n@return the handlers", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an i...
public void rename(String newName) { URL url = FILE_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "PUT"); JsonObject updateInfo = new JsonObject(); updateInfo.add("name", newName); request.setBody(u...
[ "Renames this file.\n\n@param newName the new name of the file." ]
[ "Propagates node table of given DAG to all of it ancestors.", "Retrieve a child that matches the given absolute path, starting from the current node.\n\n@param nodePath The path from the object root to the requested child node.\n@return The requested child node or <code>null</code>.", "Update the underlying buf...
@Nonnull public static Proctor construct(@Nonnull final TestMatrixArtifact matrix, ProctorLoadResult loadResult, FunctionMapper functionMapper) { final ExpressionFactory expressionFactory = RuleEvaluator.EXPRESSION_FACTORY; final Map<String, TestChooser<?>> testChoosers = Maps.newLinkedHashMap(); ...
[ "Factory method to do the setup and transformation of inputs\n\n@param matrix a {@link TestMatrixArtifact} loaded by ProctorLoader\n@param loadResult a {@link ProctorLoadResult} which contains result of validation of test definition\n@param functionMapper a given el {@link FunctionMapper}\n@return constructed Proct...
[ "converts the file URIs with an absent authority to one with an empty", "Returns the dimension of the type of the current member.\n\n@return The member dimension\n@exception XDocletException if an error occurs\n@see OjbMemberTagsHandler#getMemberType()", "Use this A...
protected Iterable<URI> getTargetURIs(final EObject primaryTarget) { final TargetURIs result = targetURIsProvider.get(); uriCollector.add(primaryTarget, result); return result; }
[ "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." ]
[ "Given a json node, find a nested node using given composed key.\n\n@param jsonNode the parent json node\n@param composedKey a key combines multiple keys using flattening dots.\nFlattening dots are dot character '.' those are not preceded by slash '\\'\nEach flattening dot represents a level with following key as f...
public static String resolveOrOriginal(String input) { try { return resolve(input, true); } catch (UnresolvedExpressionException e) { return input; } }
[ "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions ...
[ "Use this API to fetch sslcipher resources of given names .", "Return a String with linefeeds and carriage returns normalized to linefeeds.\n\n@param self a CharSequence object\n@return the normalized toString() for the CharSequence\n@see #normalize(String)\n@since 1.8.2", "Applies the matrices computed from th...
protected byte[] getUpperBytesInternal() { byte cached[]; if(hasNoValueCache()) { ValueCache cache = valueCache; cache.upperBytes = cached = getBytesImpl(false); if(!isMultiple()) { cache.lowerBytes = cached; } } else { ValueCache cache = valueCache; if((cached = cache.upperBytes) == null) {...
[ "Gets the bytes for the highest address in the range represented by this address.\n\n@return" ]
[ "page breaks should be near the bottom of the band, this method used while adding subreports\nwhich has the \"start on new page\" option.\n@param band", "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server iden...
@SuppressWarnings("deprecation") public static boolean dateTimeEquals(java.util.Date d1, java.util.Date d2) { if (d1 == null || d2 == null) { return false; } return d1.getDate() == d2.getDate() && d1.getMonth() == d2.getMonth() && d1.getYear() == d2....
[ "Checks the second, hour, month, day, month and year are equal." ]
[ "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar", "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...
@Deprecated @SuppressWarnings("deprecation") public void push(String eventName, HashMap<String, Object> chargeDetails, ArrayList<HashMap<String, Object>> items) throws InvalidEventNameException { // This method is for only charged events if (!eventName.equals(Con...
[ "Push an event which describes a purchase made.\n\n@param eventName Has to be specified as \"Charged\". Anything other than this\nwill result in an {@link InvalidEventNameException} being thrown.\n@param chargeDetails A {@link HashMap}, with keys as strings, and values as {@link String},\n{@link Integer}, {@lin...
[ "Start component timer for current instance\n@param type - of component", "Use this API to add tmtrafficaction resources.", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors.", "Returns a correlation matrix which has rank &lt; n and ...
private boolean hasBidirectionalAssociation(Class clazz) { ClassDescriptor cdesc; Collection refs; boolean hasBidirAssc; if (_withoutBidirAssc.contains(clazz)) { return false; } if (_withBidirAssc.contains(clazz)) { ...
[ "Does the given class has bidirectional assiciation\nwith some other class?" ]
[ "Use this API to add ntpserver resources.", "Accessor method used to retrieve a Boolean 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", ...
private synchronized Class<?> getClass(String className) throws Exception { // see if we need to invalidate the class ClassInformation classInfo = classInformation.get(className); File classFile = new File(classInfo.pluginPath); if (classFile.lastModified() > classInfo.lastModified) { ...
[ "Obtain the class of a given className\n\n@param className\n@return\n@throws Exception" ]
[ "Gets or creates id of the entity type.\n\n@param entityType entity type name.\n@param allowCreate if set to true and if there is no entity type like entityType,\ncreate the new id for the entityType.\n@return entity type id.", "To get all the textual content in the dom\n\n@param document\n@param individualToken...
public List<String> asList() { final List<String> result = new ArrayList<>(); for (Collection<Argument> args : map.values()) { for (Argument arg : args) { result.add(arg.asCommandLineArgument()); } } return result; }
[ "Returns the arguments as a list in their command line form.\n\n@return the arguments for the command line" ]
[ "Sets left and right padding for all cells in the row.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining", "when divisionPrefixLen is null, isAutoSubnets has no effect", "Returns a Client object for a clientUUID and profileId\n\n@param clientUUID UUID or f...
public static base_response restart(nitro_service client) throws Exception { dbsmonitors restartresource = new dbsmonitors(); return restartresource.perform_operation(client,"restart"); }
[ "Use this API to restart dbsmonitors." ]
[ "make a copy of the criteria\n@param includeGroupBy if true\n@param includeOrderBy if ture\n@param includePrefetchedRelationships if true\n@return a copy of the criteria", "converts a java.net.URI to a decoded string", "EAP 7.1", "Checks if the given operator code is a valid one.\n\n@param operatorCode an ope...
public List<TimephasedCost> getTimephasedCost() { if (m_timephasedCost == null) { Resource r = getResource(); ResourceType type = r != null ? r.getType() : ResourceType.WORK; //for Work and Material resources, we will calculate in the normal way if (type != ResourceTy...
[ "Retrieves the timephased breakdown of cost.\n\n@return timephased cost" ]
[ "Initialization method.\n\n@param t1\n@param t2", "This method extracts assignment data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Use this API to update responderpolicy.", "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be pref...
public void close() { logger.info("Closing all sync producers"); if (sync) { for (SyncProducer p : syncProducers.values()) { p.close(); } } else { for (AsyncProducer<V> p : asyncProducers.values()) { p.close(); } ...
[ "Closes all the producers in the pool" ]
[ "Retrieve a calendar exception which applies to this date.\n\n@param date target date\n@return calendar exception, or null if none match this date", "Convert a Planner date-time value into a Java date.\n\n20070222T080000Z\n\n@param value Planner date-time\n@return Java Date instance", "Computes the p=2 norm. I...
public static void validateClusterPartitionState(final Cluster subsetCluster, final Cluster supersetCluster) { if(!supersetCluster.getNodeIds().containsAll(subsetCluster.getNodeIds())) { throw new VoldemortException("Superset cluster does not cont...
[ "Confirm that all nodes shared between clusters host exact same partition\nIDs and that nodes only in the super set cluster have no partition IDs.\n\n@param subsetCluster\n@param supersetCluster" ]
[ "Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException", "Log the data for a single column.\n\n@param startIndex offset into buffer\n@param length length", "Retrieve and validate the zone id value from the REST request.\n\"X-VOLD-Zone-Id\" is the zone ...
public static gslbsite get(nitro_service service, String sitename) throws Exception{ gslbsite obj = new gslbsite(); obj.set_sitename(sitename); gslbsite response = (gslbsite) obj.get_resource(service); return response; }
[ "Use this API to fetch gslbsite resource of given name ." ]
[ "Used when setting the \"visible\" field in the response. See the \"List Conversations\" docs for details\n@param filters Filter strings to be applied to the visibility of conversations\n@return this to continue building options", "Copies the jdb log files, with additional verification of the checksums.\n\n@param...
public void createAgent(String agent_name, String path) { IComponentIdentifier agent = cmsService.createComponent(agent_name, path, null, null).get(new ThreadSuspendable()); createdAgents.put(agent_name, agent); }
[ "Creates a real agent in the platform\n\n@param agent_name\nThe name that the agent is gonna have in the platform\n@param path\nThe path of the description (xml) of the agent" ]
[ "Removes all candidates from this collection which are not\nassociated with an initialising method.\n\n@return a {@code Collection} containing the removed\nunassociated candidates. This list is empty if none\nwere removed, i. e. the result is never {@code null}.", "Utility function to get the current value.", "...
public List<Formation> listFormation(String appName) { return connection.execute(new FormationList(appName), apiKey); }
[ "Lists the formation info for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used." ]
[ "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read.", "Creates a timestamp from the equivalent long value. This conversion\ntakes account of the time zone and any daylight savings time.\n\n@param timestamp timestamp expressed as a long integer...
public static String ruleToRuleContentsString(Rule originalRule, int indentLevel) { if (originalRule instanceof Context && ((Context) originalRule).containsKey(RuleMetadataType.RULE_XML)) { return (String) ((Context) originalRule).get(RuleMetadataType.RULE_XML); } if (!(...
[ "Attempts to create a human-readable String representation of the provided rule." ]
[ "Deletes the metadata on this folder associated with a specified scope and template.\n\n@param templateName the metadata template type name.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").", "Serialize the Document object.\n\n@param dom the document to serialize\n@return the...
private void writeCostRateTables(Project.Resources.Resource xml, Resource mpx) { //Rates rates = m_factory.createProjectResourcesResourceRates(); //xml.setRates(rates); //List<Project.Resources.Resource.Rates.Rate> ratesList = rates.getRate(); List<Project.Resources.Resource.Rates.Rate> rate...
[ "Writes a resource's cost rate tables.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource" ]
[ "Expand a macro.\n\nThis will look up the macro definition from {@link #macros} map.\nIf not found then return passed in `macro` itself, otherwise return\nthe macro definition found.\n\n**note** if macro definition is not found and the string\n{@link #isMacro(String) comply to macro name convention}, then a\nwarn l...
@SuppressWarnings("unchecked") public void updateStoreDefinitions(Versioned<byte[]> valueBytes) { // acquire write lock writeLock.lock(); try { Versioned<String> value = new Versioned<String>(ByteUtils.getString(valueBytes.getValue(), ...
[ "Function to update store definitions. Unlike the put method, this\nfunction does not delete any existing state. It only updates the state of\nthe stores specified in the given stores.xml\n\n@param valueBytes specifies the bytes of the stores.xml containing\nupdates for the specified stores" ]
[ "The parameter must never be null\n\n@param queryParameters", "Add the given query parameters.\n@param params the params\n@return this UriComponentsBuilder", "Set the values using the specified Properties object.\n\n@param properties Properties object containing specific property values\nfor the RESTClient conf...
public static <X, Y> Pair<X, Y> makePair(X x, Y y) { return new Pair<X, Y>(x, y); }
[ "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names." ]
[ "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "Read resource baseline values.\n\n@param row result set row", "Returns all the dependencies taken into account the artifact of the module that will be removed from the dependencies\n\n@param module M...
protected void addLabelForNumbers(ItemIdValue itemIdValue) { String qid = itemIdValue.getId(); try { // Fetch the online version of the item to make sure we edit the // current version: ItemDocument currentItemDocument = (ItemDocument) dataFetcher .getEntityDocument(qid); if (currentItemDocument ...
[ "Fetches the current online data for the given item, and adds numerical\nlabels if necessary.\n\n@param itemIdValue\nthe id of the document to inspect" ]
[ "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> ...
public static clusterinstance[] get(nitro_service service, Long clid[]) throws Exception{ if (clid !=null && clid.length>0) { clusterinstance response[] = new clusterinstance[clid.length]; clusterinstance obj[] = new clusterinstance[clid.length]; for (int i=0;i<clid.length;i++) { obj[i] = new clusterinst...
[ "Use this API to fetch clusterinstance resources of given names ." ]
[ "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "Retrieves a vertex attribute as an integer buffer....
public static base_response unset(nitro_service client, aaaparameter resource, String[] args) throws Exception{ aaaparameter unsetresource = new aaaparameter(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of aaaparameter resource.\nProperties that need to be unset are specified in args array." ]
[ "Use this API to fetch the statistics of all ipseccounters_stats resources that are configured on netscaler.", "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context", "Match the Origin header with the allowed ori...
private void handleMemoryGetId(SerialMessage incomingMessage) { this.homeId = ((incomingMessage.getMessagePayloadByte(0)) << 24) | ((incomingMessage.getMessagePayloadByte(1)) << 16) | ((incomingMessage.getMessagePayloadByte(2)) << 8) | (incomingMessage.getMessagePayloadByte(3)); this.ownNodeId = inco...
[ "Handles the response of the MemoryGetId request.\nThe MemoryGetId function gets the home and node id from the controller memory.\n@param incomingMessage the response message to process." ]
[ "Use this API to fetch all the sslcertkey resources that are configured on netscaler.", "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", "Sets the country for which currencies should be request...
public CollectionRequest<Tag> findByWorkspace(String workspace) { String path = String.format("/workspaces/%s/tags", workspace); return new CollectionRequest<Tag>(this, Tag.class, path, "GET"); }
[ "Returns the compact tag records for all tags in the workspace.\n\n@param workspace The workspace or organization to find tags in.\n@return Request object" ]
[ "A find query only given as criterion. Leave it to MongoDB's own parser to handle it.\n\n@return the {@link Rule} to identify a find query only", "Returns the adapter position of the Child associated with this ChildViewHolder\n\n@return The adapter position of the Child if it still exists in the adapter.\nRecycle...
public static String entityToString(HttpEntity entity) throws IOException { if (entity != null) { InputStream is = entity.getContent(); return IOUtils.toString(is, "UTF-8"); } return ""; }
[ "Converts the http entity to string. If entity is null, returns empty string.\n@param entity\n@return\n@throws IOException" ]
[ "read the file as a list of text lines", "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 ...
public ItemRequest<Section> insertInProject(String project) { String path = String.format("/projects/%s/sections/insert", project); return new ItemRequest<Section>(this, Section.class, path, "POST"); }
[ "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in ...
[ "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region", "Returns an empty Promotion details in Json\n\n@return String\n@throws IOException", "Merge this ExecutionStatistics with all the stati...
public boolean forall(PixelPredicate predicate) { return Arrays.stream(points()).allMatch(p -> predicate.test(p.x, p.y, pixel(p))); }
[ "Returns true if the predicate is true for all pixels in the image.\n\n@param predicate a predicate function that accepts 3 parameters - the x,y coordinate and the pixel at that coordinate\n@return true if f holds for at least one pixel" ]
[ "Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data", "Throw IllegalStateException if key is not present in map.\n@param key the key to expect.\n@param map the map to search.\n@throws IllegalArgumentException if key is not in map.", "Checks to see if either t...
public Collection<Contact> getListRecentlyUploaded(Date lastUpload, String filter) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST_RECENTLY_UPLOADED); ...
[ "Return a list of contacts for a user who have recently uploaded photos along with the total count of photos uploaded.\n\n@param lastUpload\nLimits the resultset to contacts that have uploaded photos since this date. The date should be in the form of a Unix timestamp. The default,\nand maximum, offset is (1) hour. ...
[ "Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas.", "If a given x is into an interval of the partition, this method returns the reference point of the corresponding interval.\nIf the given x is not contained in any ...
public static final UUID parseUUID(String value) { UUID result = null; if (value != null && !value.isEmpty()) { if (value.charAt(0) == '{') { // PMXML representation: <GUID>{0AB9133E-A09A-9648-B98A-B2384894AC44}</GUID> result = UUID.fromString(value.substri...
[ "Convert the Primavera string representation of a UUID into a Java UUID instance.\n\n@param value Primavera UUID\n@return Java UUID instance" ]
[ "Inserts the information about the dateStamp of a dump and the project\nname into a pattern.\n\n@param pattern\nString with wildcards\n@param dateStamp\n@param project\n@return String with injected information.", "Obtains a local date in Accounting calendar system from the\nproleptic-year, month-of-year and day-o...
public static final Date parseDateTime(String value) { Date result = null; try { if (value != null && !value.isEmpty()) { result = DATE_TIME_FORMAT.get().parse(value); } } catch (ParseException ex) { // Ignore } return ...
[ "Parse a date time value.\n\n@param value String representation\n@return Date instance" ]
[ "Discards any tracks from the hot cache that were loaded from a now-unmounted media slot, because they are no\nlonger valid.", "Creates a tag directly from the working copy.\n\n@param tagUrl The URL of the tag to create.\n@param commitMessage Commit message\n@return The commit info upon successful operatio...
public static void dumpNodeAnim(AiNodeAnim nodeAnim) { for (int i = 0; i < nodeAnim.getNumPosKeys(); i++) { System.out.println(i + ": " + nodeAnim.getPosKeyTime(i) + " ticks, " + nodeAnim.getPosKeyVector(i, Jassimp.BUILTIN)); } }
[ "Dumps an animation channel to stdout.\n\n@param nodeAnim the channel" ]
[ "add a FK column pointing to This Class", "Use this API to fetch filterpolicy_binding resource of given name .", "Creates a resource ID from information of a generic resource.\n\n@param subscriptionId the subscription UUID\n@param resourceGroupName the resource group name\n@param resourceProviderNamespace the r...
public void forceApply(String conflictResolution) { URL url = FORCE_METADATA_CASCADE_POLICIES_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "POST"); JsonObject requestJSON = new JsonObject() .add("co...
[ "If a policy already exists on a folder, this will apply that policy to all existing files and sub folders within\nthe target folder.\n\n@param conflictResolution the desired behavior for conflict-resolution. Set to either none or overwrite." ]
[ "Helper method to retrieve a canonical revision for git commits migrated from SVN. Migrated commits are\ndetected by the presence of 'git-svn-id' in the commit message.\n\n@param revision the commit/revision to inspect\n@param branch the name of the branch it came from\n@return the original SVN revision if it was a...
public static String printUUID(UUID guid) { return guid == null ? null : "{" + guid.toString().toUpperCase() + "}"; }
[ "Retrieve a UUID in the form required by Primavera PMXML.\n\n@param guid UUID instance\n@return formatted UUID" ]
[ "Converts from a bitmap to individual day flags for a weekly recurrence,\nusing the array of masks.\n\n@param days bitmap\n@param masks array of mask values", "Resize and return the image passing the new height and width\n\n@param height\n@param width\n@return", "Transform the given object into an array of byte...
public static appflowpolicy_appflowpolicylabel_binding[] get(nitro_service service, String name) throws Exception{ appflowpolicy_appflowpolicylabel_binding obj = new appflowpolicy_appflowpolicylabel_binding(); obj.set_name(name); appflowpolicy_appflowpolicylabel_binding response[] = (appflowpolicy_appflowpolicyla...
[ "Use this API to fetch appflowpolicy_appflowpolicylabel_binding resources of given name ." ]
[ "Returns all the pixels for the image\n\n@return an array of pixels for this image", "Use to generate a file based on generator node.", "Copies all elements from input into output which are &gt; tol.\n@param input (Input) input matrix. Not modified.\n@param output (Output) Output matrix. Modified and shaped to ...
public CustomHeadersInterceptor addHeaderMultimap(Map<String, List<String>> headers) { this.headers.putAll(headers); return this; }
[ "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself." ]
[ "Modifies the belief referenced by bName parameter.\n\n@param bName\n- the name of the belief to update.\n@param value\n- the new value for the belief", "Returns the complete project record for a single project.\n\n@param project The project to get.\n@return Request object", "Computes the null space using QRP ...
public void setProxy(String proxyHost, int proxyPort, String username, String password) { setProxy(proxyHost, proxyPort); proxyAuth = true; proxyUser = username; proxyPassword = password; }
[ "Set a proxy with authentication for REST-requests.\n\n@param proxyHost\n@param proxyPort\n@param username\n@param password" ]
[ "Adds all fields declared directly in the object's class to the output\n@return this", "Returns an integer array that contains the default values for all the\ntexture parameters.\n\n@return an integer array that contains the default values for all the\ntexture parameters.", "Gets the current user.\n@param api ...
private void listGreetings(String guestbookName) throws DatastoreException { Query.Builder query = Query.newBuilder(); query.addKindBuilder().setName(GREETING_KIND); query.setFilter(makeFilter(KEY_PROPERTY, PropertyFilter.Operator.HAS_ANCESTOR, makeValue(makeKey(GUESTBOOK_KIND, guestbookName)))); ...
[ "List the greetings in the specified guestbook." ]
[ "legacy helper for setting background", "defines the KEY in the parent report parameters map where to get the subreport parameters map.\n@param path where to get the parameter map for the subrerpot.\n@return", "Stores all entries contained in the given map in the cache.", "Remove a key from the given map.\n\n...
@Nonnull public final Style getDefaultStyle(@Nonnull final String geometryType) { String normalizedGeomName = GEOMETRY_NAME_ALIASES.get(geometryType.toLowerCase()); if (normalizedGeomName == null) { normalizedGeomName = geometryType.toLowerCase(); } Style style = this.def...
[ "Get a default style. If null a simple black line style will be returned.\n\n@param geometryType the name of the geometry type (point, line, polygon)" ]
[ "Sets the baseline duration text value.\n\n@param baselineNumber baseline number\n@param value baseline duration text value", "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 pr...
static Artifact resolveConstrained(MavenProject project, String gav, Pattern versionRegex, ArtifactResolver resolver) throws VersionRangeResolutionException, ArtifactResolutionException { boolean latest = gav.endsWith(":LATEST"); if (latest || gav.endsWith(":RELEASE")) { ...
[ "Resolves the gav using the resolver. If the gav corresponds to the project artifact and is an unresolved version\nfor a RELEASE or LATEST, the gav is resolved such it a release not newer than the project version is found that\noptionally corresponds to the provided version regex, if provided.\n\n<p>If the gav exac...
[ "Create a classname from a given path\n\n@param path\n@return", "Use this API to restore appfwprofile.", "Indicates if a bean is proxyable\n\n@param bean The bean to test\n@return True if proxyable, false otherwise", "Creates a new immutable set that consists of given elements.\n\n@param elements the given el...
public static base_responses add(nitro_service client, cacheselector resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cacheselector addresources[] = new cacheselector[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = ne...
[ "Use this API to add cacheselector resources." ]
[ "Creates a file logger in the current thread. The file is in XML format, suitable for interpretation by Eclipse's Drools Audit View\nor other tools. Note that while events are written as they happen, the file will not be flushed until it is closed or the underlying\nfile buffer is filled. If you need real time logg...
@Subscribe @SuppressForbidden("legitimate printStackTrace().") public void onSuiteResult(AggregatedSuiteResultEvent e) { try { if (jsonWriter == null) return; slaves.put(e.getSlave().id, e.getSlave()); e.serialize(jsonWriter, outputStreams); } catch (Exception ex) { ex.print...
[ "Emit information about a single suite and all of its tests." ]
[ "In case we cannot delete a directory create a marker to recheck whether we can garbage collect some not\nreferenced directories and files.\n\n@param file the directory", "Reads baseline values for the current resource.\n\n@param xmlResource MSPDI resource instance\n@param mpxjResource MPXJ resource instance", ...
private Map<String, String> getContentsByContainerName( CmsContainerElementBean element, Collection<CmsContainer> containers) { CmsFormatterConfiguration configs = getFormatterConfiguration(element.getResource()); Map<String, String> result = new HashMap<String, String>(); for (...
[ "Returns the rendered element content for all the given containers.\n\n@param element the element to render\n@param containers the containers the element appears in\n\n@return a map from container names to rendered page contents" ]
[ "Sets the timeout used when connecting to the server.\n\n@param timeout the time out to use\n\n@return the builder", "Writes the JavaScript code describing the tags as Tag classes to given writer.", "If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Cont...
public static boolean isPortletEnvSupported() { if (enabled == null) { synchronized (PortletSupport.class) { if (enabled == null) { try { PortletSupport.class.getClassLoader().loadClass("javax.portlet.PortletContext"); ...
[ "Is portlet env supported.\n\n@return true if portlet env is supported, false otherwise" ]
[ "Generate a map of UUID values to field types.\n\n@return UUID field value map", "Returns the query string of a URL from a parameter list.\n\n@param params\nMap with parameters\n@return query string", "Gets the element at the given index.\n\n@param index the index\n@return the element\n\n@throws IndexOutOfBound...
public void recordResourceRequestTimeUs(SocketDestination dest, long resourceRequestTimeUs) { if(dest != null) { getOrCreateNodeStats(dest).recordResourceRequestTimeUs(null, resourceRequestTimeUs); recordResourceRequestTimeUs(null, resourceRequestTimeUs); } else { thi...
[ "Record the resource request wait time in us\n\n@param dest Destination of the socket for which the resource was\nrequested. Will actually record if null. Otherwise will call this\non self and corresponding child with this param null.\n@param resourceRequestTimeUs The number of us to wait before getting a\nsocket" ...
[ "Post the specified photo to a blog.\n\n@param photo\nThe photo metadata\n@param blogId\nThe blog ID\n@throws FlickrException", "This method lists any notes attached to resources.\n\n@param file MPX file", "Checks the given reference descriptor.\n\n@param refDef The reference descriptor\n@param checkLevel T...
public void createLinks(ServiceReference<S> declarationBinderRef) { for (D declaration : linkerManagement.getMatchedDeclaration()) { if (linkerManagement.canBeLinked(declaration, declarationBinderRef)) { linkerManagement.link(declaration, declarationBinderRef); } ...
[ "Create all the links possible between the DeclarationBinder and all the ImportDeclaration matching the.\nImportDeclarationFilter of the Linker.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder" ]
[ "Return a public static method of a class.\n@param methodName the static method name\n@param clazz the class which defines the method\n@param args the parameter types to the method\n@return the static method, or {@code null} if no static method was found\n@throws IllegalArgumentException if the method name is blank...
public <E extends Enum<E> & FieldType> E nextField(Class<E> clazz, UserFieldDataType type) { for (String name : m_names[type.ordinal()]) { int i = NumberHelper.getInt(m_counters.get(name)) + 1; try { E e = Enum.valueOf(clazz, name + i); m_counters.put(na...
[ "Generate the next available field for a user defined field.\n\n@param <E> field type class\n@param clazz class of the desired field enum\n@param type user defined field type.\n@return field of specified type" ]
[ "Given a date represented by a Calendar instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param cal Calendar instance representing the date\n@param time Date instance representing the time of day", "a helper method to enable the keyboardUt...
public void orderSets(String[] photosetIds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_ORDER_SETS); ; parameters.put("photoset_ids", StringUtilities.join(photosetIds, ",")); Response response =...
[ "Set the order in which sets are returned for the user.\n\nThis method requires authentication with 'write' permission.\n\n@param photosetIds\nAn array of Ids\n@throws FlickrException" ]
[ "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.", "Returns all the retention policies.\n@param api the API connection to be used by the resource.\n@param fields the fie...
private List<String> parseParams(String param) { Assert.hasText(param, "param must not be empty nor null"); List<String> paramsToUse = new ArrayList<>(); Matcher regexMatcher = DEPLOYMENT_PARAMS_PATTERN.matcher(param); int start = 0; while (regexMatcher.find()) { String p = removeQuoting(param.substring(st...
[ "Parses a string of space delimited command line parameters and returns a\nlist of parameters which doesn't contain any special quoting either for\nvalues or whole parameter.\n\n@param param string containing a list\n@return the list" ]
[ "Updates the Q matrix to take inaccount the row that was removed by only multiplying e\nlements that need to be. There is still some room for improvement here...\n@param rowIndex", "Convert a layer type to a geometry class.\n\n@param layerType\nlayer type\n@return JTS class", "Adds a single value to the data s...
public Metadata add(String path, String value) { this.values.add(this.pathToProperty(path), value); this.addOp("add", path, value); return this; }
[ "Adds a new 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." ]
[ "Converts the passed list of inners to unmodifiable map of impls.\n@param innerList list of the inners.\n@return map of the impls", "Add working days and working time to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "Use this API to fetch all the linkset resources t...
@Override public void onBindViewHolder(GalleryAdapter.ViewHolder holder, int position, List<Object> payloads) { if (payloads.isEmpty()) { // If doesn't have any payload then bind the fully item super.onBindViewHolder(holder, position, payloads); } else { for (Object payload :...
[ "Binding view holder with payloads is used to handle partial changes in item." ]
[ "init database with demo data", "Pretty prints the output of getMapOfContiguousPartitionRunLengths\n\n@param cluster\n@param zoneId\n@return pretty string of contiguous run lengths", "Use this API to fetch vpnvserver_cachepolicy_binding resources of given name .", "Constraint that ensures that the field has a...
public CollectionRequest<Task> findByProject(String projectId) { String path = String.format("/projects/%s/tasks", projectId); return new CollectionRequest<Task>(this, Task.class, path, "GET"); }
[ "Returns the compact task records for all tasks within the given project,\nordered by their priority within the project.\n\n@param projectId The project in which to search for tasks.\n@return Request object" ]
[ "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Parser for forecast\n\n@param feed\n@return", "Get a list of referrers from a given domain to a user's photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according t...
@SuppressWarnings("deprecation") public static boolean timeEquals(java.util.Date d1, java.util.Date d2) { if (d1 == null || d2 == null) { return false; } return d1.getHours() == d2.getHours() && d1.getMinutes() == d2.getMinutes() && d1.getSeconds() =...
[ "Checks the hour, minute and second are equal." ]
[ "Use this API to fetch csvserver_appflowpolicy_binding resources of given name .", "Returns a prefix length for which the range of this segment grouping matches the the block of addresses for that prefix.\n\nIf no such prefix exists, returns null\n\nIf this segment grouping represents a single value, returns the ...
public static sslcipher[] get(nitro_service service, String ciphergroupname[]) throws Exception{ if (ciphergroupname !=null && ciphergroupname.length>0) { sslcipher response[] = new sslcipher[ciphergroupname.length]; sslcipher obj[] = new sslcipher[ciphergroupname.length]; for (int i=0;i<ciphergroupname.leng...
[ "Use this API to fetch sslcipher resources of given names ." ]
[ "Sets the target translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Use this API to fetch appfwjsoncontenttype resources of given names .", "Sets a listener for u...
@Override public Optional<String> hash(final Optional<URL> url) throws IOException { if (!url.isPresent()) { return Optional.absent(); } logger.debug("Calculating md5 hash, url:{}", url); if (isHotReloadModeOff()) { final String md5 = cache.getIfPresent(url.ge...
[ "Calculates a md5 hash for an url\n\nIf a passed in url is absent then this method will return absent as well\n\n@param url - an url to a soy template file\n@return - md5 checksum of a template file\n@throws IOException - in a case there is an IO error calculating md5 checksum" ]
[ "Generates a comment regarding the parameters.\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@param action - the action performed by the user\n@param commentedText - comment text\n@param user - comment left by\n@param date - date comment was created\n@return - comment enti...
public JSONObject getPathFromEndpoint(String pathValue, String requestType) throws Exception { int type = getRequestTypeFromString(requestType); String url = BASE_PATH; JSONObject response = new JSONObject(doGet(url, null)); JSONArray paths = response.getJSONArray("paths"); for (...
[ "Retrieves the path using the endpoint value\n\n@param pathValue - path (endpoint) value\n@param requestType - \"GET\", \"POST\", etc\n@return Path or null\n@throws Exception exception" ]
[ "Get the collection of the server groups\n\n@return Collection of active server groups", "Read a FastTrack file.\n\n@param file FastTrack file", "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@r...
protected void doPurge(Runnable afterPurgeAction) { if (LOG.isInfoEnabled()) { LOG.info( org.opencms.flex.Messages.get().getBundle().key( org.opencms.flex.Messages.LOG_FLEXCACHE_WILL_PURGE_JSP_REPOSITORY_0)); } File d; d = new File(getJsp...
[ "Purges the JSP repository.<p<\n\n@param afterPurgeAction the action to execute after purging" ]
[ "Use this API to fetch sslciphersuite resources of given names .", "Re-reads the given entity, refreshing any properties updated on the server-side during insert or update.", "Add authentication information for the given host\n@param host the host\n@param credentials the credentials\n@param authScheme the schem...
protected byte[] getBytesInternal() { byte cached[]; if(hasNoValueCache() || (cached = valueCache.lowerBytes) == null) { valueCache.lowerBytes = cached = getBytesImpl(true); } return cached; }
[ "gets the bytes, sharing the cached array and does not clone it" ]
[ "This method is used by non-blocking code to determine if the give buffer\nrepresents a complete request. Because the non-blocking code can by\ndefinition not just block waiting for more data, it's possible to get\npartial reads, and this identifies that case.\n\n@param buffer Buffer to check; the buffer is reset t...
public static boolean pullImage(Launcher launcher, final String imageTag, final String username, final String password, final String host) throws IOException, InterruptedException { return launcher.getChannel().call(new MasterToSlaveCallable<Boolean, IOException>() { public Boolean call...
[ "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" ]
[ "Returns an attribute's value from a non-main section of this JAR's manifest.\n\n@param section the manifest's section\n@param name the attribute's name", "Use this API to unset the properties of responderparam resource.\nProperties that need to be unset are specified in args array.", "Gets the prefix from v...
public final void setWeekDay(WeekDay weekDay) { SortedSet<WeekDay> wds = new TreeSet<>(); if (null != weekDay) { wds.add(weekDay); } setWeekDays(wds); }
[ "Set the week day the events should occur.\n@param weekDay the week day to set." ]
[ "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@p...
public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.rel...
[ "Shutdown the container.\n\n@see Weld#initialize()" ]
[ "Creates new metadata template.\n@param api the API connection to be used.\n@param scope the scope of the object.\n@param templateKey a unique identifier for the template.\n@param displayName the display name of the field.\n@param hidden whether this template is hidden in the UI.\n@param fields the ordered set of f...
private void parseValue() { ChannelBuffer content = this.request.getContent(); this.parsedValue = new byte[content.capacity()]; content.readBytes(parsedValue); }
[ "Retrieve the value from the REST request body.\n\nTODO: REST-Server value cannot be null ( null/empty string ?)" ]
[ "Parse a macro defintion.\n\n\"macro NAME( var0 , var1 ) = 5+var0+var1'", "Computes the MD5 value of the input stream\n\n@param input\n@return\n@throws IOException\n@throws IllegalStateException", "Log a info message with a throwable.", "Puts value at given column\n\n@param value Will be encoded using UTF-8",...
@Subscribe public void onQuit(AggregatedQuitEvent e) { if (jsonWriter == null) return; try { jsonWriter.endArray(); jsonWriter.name("slaves"); jsonWriter.beginObject(); for (Map.Entry<Integer, ForkedJvmInfo> entry : slaves.entrySet()) { jsonWriter.name(Integer.toString(...
[ "All tests completed." ]
[ "Creates a descriptor for the currently edited message bundle.\n@return <code>true</code> if the descriptor could be created, <code>false</code> otherwise.", "Put object to session cache.\n\n@param oid The {@link org.apache.ojb.broker.Identity} of the object to cache\n@param entry The {@link org.apache.ojb.broker...
public static Class<?>[] toClassArray(Collection<Class<?>> collection) { if (collection == null) { return null; } return collection.toArray(new Class<?>[collection.size()]); }
[ "Copy the given Collection into a Class array.\nThe Collection must contain Class elements only.\n@param collection the Collection to copy\n@return the Class array ({@code null} if the passed-in\nCollection was {@code null})" ]
[ "Return the single class name from a class-name string.", "Set a variable in the top variables layer to given \"collection\" of the vertex frames. Can't be reassigned -\nthrows on attempt to reassign.", "Called from the native side\n@param eye", "Converts any path into something that can be placed in an Andro...
protected ServiceName serviceName(final String name) { return baseServiceName != null ? baseServiceName.append(name) : null; }
[ "The service name to be removed. Can be overridden for unusual service naming patterns\n@param name The name of the resource being removed\n@return The service name to remove. May return {@code null} if only removal based on {@code unavailableCapabilities}\npassed to the constructor are to be performed" ]
[ "Calculates the length of the next block of RTF data.\n\n@param text RTF data\n@param offset current offset into this data\n@return block length", "Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name .", "Loads the Configuration from the properties file.\n\nLoa...
public ItemRequest<Task> dependencies(String task) { String path = String.format("/tasks/%s/dependencies", task); return new ItemRequest<Task>(this, Task.class, path, "GET"); }
[ "Returns the compact representations of all of the dependencies of a task.\n\n@param task The task to get dependencies on.\n@return Request object" ]
[ "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)", "Mark new or deleted reference elements\n@param broker", "Image scale meth...
public DbModule getModule(final String moduleId) { final DbModule dbModule = repositoryHandler.getModule(moduleId); if (dbModule == null) { throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND) .entity("Module " + moduleId + " does not exist.").bui...
[ "Returns a module\n\n@param moduleId String\n@return DbModule" ]
[ "Builder method for specifying the name of an app.\n@param name The name to give an app.\n@return A copy of the {@link App}", "Read a task relationship.\n\n@param link ConceptDraw PROJECT task link", "Print formatted string in the center of 80 chars line, left and right padded.\n\n@param format\nThe string form...
public static double JensenShannonDivergence(double[] p, double[] q) { double[] m = new double[p.length]; for (int i = 0; i < m.length; i++) { m[i] = (p[i] + q[i]) / 2; } return (KullbackLeiblerDivergence(p, m) + KullbackLeiblerDivergence(q, m)) / 2; }
[ "Gets the Jensen Shannon divergence.\n\n@param p U vector.\n@param q V vector.\n@return The Jensen Shannon divergence between u and v." ]
[ "Enables a custom response\n\n@param model\n@param custom\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "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 ...
List<CmsResource> getBundleResources() { List<CmsResource> resources = new ArrayList<>(m_bundleFiles.values()); if (m_desc != null) { resources.add(m_desc); } return resources; }
[ "Returns all resources that belong to the bundle\nThis includes the descriptor if one exists.\n\n@return List of the bundle resources, including the descriptor." ]
[ "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener", "Use this API to fetch all the csparameter resources that are configured on netscaler.", "Checks the hour, minute and second are equal.", "Determine the color to use to draw a cue lis...
private Map<Integer, List<Row>> createExceptionAssignmentMap(List<Row> rows) { Map<Integer, List<Row>> map = new HashMap<Integer, List<Row>>(); for (Row row : rows) { Integer calendarID = row.getInteger("ID"); String exceptions = row.getString("EXCEPTIONS"); map.put(calen...
[ "Create the exception assignment map.\n\n@param rows calendar rows\n@return exception assignment map" ]
[ "note, this just logs an error and doesn't throw as its only used to remove old configuration files, and shouldn't stop boot", "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field", "User-initiated commands use this method.\n\n@param command The CLI command\n@return ...
@SuppressWarnings("deprecation") public static boolean dateEquals(java.util.Date d1, java.util.Date d2) { if (d1 == null || d2 == null) { return false; } return d1.getDate() == d2.getDate() && d1.getMonth() == d2.getMonth() && d1.getYear() == d2.getY...
[ "Checks the day, month and year are equal." ]
[ "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed", "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...
@Override public ActivityInterface getActivityInterface() { if (activityInterface == null) { activityInterface = new ActivityInterface(apiKey, sharedSecret, transport); } return activityInterface; }
[ "Get the ActivityInterface.\n\n@return The ActivityInterface" ]
[ "Sets the CircularImageView's border width in pixels.\n@param borderWidth Width in pixels for the border.", "Creates a new indirection handler instance.\n\n@param brokerKey The associated {@link PBKey}.\n@param id The subject's ids\n@return The new instance", "Return true only if the MethodCallExpression repres...
public Slice newSlice(long address, int size) { if (address <= 0) { throw new IllegalArgumentException("Invalid address: " + address); } if (size == 0) { return Slices.EMPTY_SLICE; } return new Slice(null, address, size, 0, null); }
[ "Creates a slice for directly a raw memory address. This is\ninherently unsafe as it may be used to access arbitrary memory.\n\n@param address the raw memory address base\n@param size the size of the slice\n@return the unsafe slice" ]
[ "Use this API to update vpnclientlessaccesspolicy.", "Gets an item that was shared with a password-protected shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@param password the password for the shared link.\n@return ...
public static void processEntitiesFromWikidataDump( EntityDocumentProcessor entityDocumentProcessor) { // Controller object for processing dumps: DumpProcessingController dumpProcessingController = new DumpProcessingController( "wikidatawiki"); dumpProcessingController.setOfflineMode(OFFLINE_MODE); // ...
[ "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump" ]
[ "Use this API to fetch clusternodegroup_binding resource of given name .", "Executes an operation on the controller latching onto an existing transaction\n\n@param operation the operation\n@param handler the handler\n@param control the transaction control\n@param prepareStep the prepare step to be executed before...
public static String dump(final int displayOffset, final byte[] data, final int offset, final int len) { StringBuilder sb = new StringBuilder(); Formatter formatter = new Formatter(sb); StringBuilder ascii = new StringBuilder(); int dataNdx = offset; final int maxDataNdx = offset + len...
[ "Dump an array of bytes in hexadecimal.\n\n@param displayOffset the display offset (left column)\n@param data the byte array of data\n@param offset the offset to start dumping in the byte array\n@param len the length of data to dump\n@return the dump string" ]
[ "Computes the eigenvalues of a 2 by 2 matrix using a faster but more prone to errors method. This\nis the typical method.", "Helper method to add cue list entries from a parsed ANLZ cue tag\n\n@param entries the list of entries being accumulated\n@param tag the tag whose entries are to be added", "Returns the ...
public static boolean promoteAndCheckResponse(Promotion promotion, ArtifactoryBuildInfoClient client, TaskListener listener, String buildName, String buildNumber) throws IOException { // If failFast is true, perform dry run first if (promotion.isFailFast...
[ "Two stage promotion, dry run and actual promotion to verify correctness.\n\n@param promotion\n@param client\n@param listener\n@param buildName\n@param buildNumber\n@throws IOException" ]
[ "Compress contiguous partitions into format \"e-i\" instead of\n\"e, f, g, h, i\". This helps illustrate contiguous partitions within a\nzone.\n\n@param cluster\n@param zoneId\n@return pretty string of partitions per zone", "Detaches or removes the value from this context.\n\n@param key the key to the attachment....
public long number(ImapRequestLineReader request) throws ProtocolException { String digits = consumeWord(request, new DigitCharValidator()); return Long.parseLong(digits); }
[ "Reads an argument of type \"number\" from the request." ]
[ "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "List all the environment variables for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return map of config vars", "Inverts an upper or lower triangular block submatrix.\n...
private void expireDevices() { long now = System.currentTimeMillis(); // Make a copy so we don't have to worry about concurrent modification. Map<InetAddress, DeviceAnnouncement> copy = new HashMap<InetAddress, DeviceAnnouncement>(devices); for (Map.Entry<InetAddress, DeviceAnnouncement>...
[ "Remove any device announcements that are so old that the device seems to have gone away." ]
[ "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format.", "Use this context as prototype for a new mutable builder. The new builder is\npre-populated with the current settings of this context instance.", "Re...
public void setClasspath(Path classpath) { if (_classpath == null) { _classpath = classpath; } else { _classpath.append(classpath); } log("Verification classpath is "+ _classpath, Project.MSG_VERBOSE); }
[ "Set the classpath for loading the driver.\n\n@param classpath the classpath" ]
[ "See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range or false if not", "Get the ordinal value for the last of a particular override on a path\n\n@param overrideId Id of the override to check\n@param path...
public static servicegroup_stats get(nitro_service service, String servicegroupname) throws Exception{ servicegroup_stats obj = new servicegroup_stats(); obj.set_servicegroupname(servicegroupname); servicegroup_stats response = (servicegroup_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of servicegroup_stats resource of given name ." ]
[ "Sets the offset for the animation.\n\n@param startOffset animation will start at the specified offset value\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code startOffset} is either negative or greater than\nthe animation duration", "Returns new instance o...
private byte[] getData(List<byte[]> blocks, int length) { byte[] result; if (blocks.isEmpty() == false) { if (length < 4) { length = 4; } result = new byte[length]; int offset = 0; byte[] data; while (offset < length) ...
[ "Internal method used to retrieve a byte array from one\nor more embedded data blocks. Consecutive data blocks may\nneed to be concatenated by this method in order to retrieve\nthe complete set of data.\n\n@param blocks list of data blocks\n@param length expected length of the data\n@return byte array" ]
[ "This is the main entry point used to convert the internal representation\nof timephased work into an external form which can\nbe displayed to the user.\n\n@param projectCalendar calendar used by the resource assignment\n@param work timephased resource assignment data\n@param rangeUnits timescale units\n@param date...
public Rectangle toRelative(Rectangle rect) { return new Rectangle(rect.getLeft() - origX, rect.getBottom() - origY, rect.getRight() - origX, rect.getTop() - origY); }
[ "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle" ]
[ "Read custom property definitions for tasks.\n\n@param gpTasks GanttProject tasks", "Removes all of the markers from the map.", "updates the values for locking fields , BRJ\nhandles int, long, Timestamp\nrespects updateLock so locking field are only updated when updateLock is true\n@throws PersistenceBrokerExce...
static void onActivityCreated(Activity activity) { // make sure we have at least the default instance created here. if (instances == null) { CleverTapAPI.createInstanceIfAvailable(activity, null); } if (instances == null) { Logger.v("Instances is null in onActivi...
[ "static lifecycle callbacks" ]
[ "Returns only the leaf categories of the wrapped categories.\n\nThe method assumes that categories are ordered in the list, i.e., parents are directly followed by their children.\n\nNOTE: In the complete category tree a leaf of the wrapped tree part may not be a leaf.\n\n@return only the leaf categories of the wrap...
public static boolean isRowsLinearIndependent( DMatrixRMaj A ) { // LU decomposition LUDecomposition<DMatrixRMaj> lu = DecompositionFactory_DDRM.lu(A.numRows,A.numCols); if( lu.inputModified() ) A = A.copy(); if( !lu.decompose(A)) throw new RuntimeException("...
[ "Checks to see if the rows of the provided matrix are linearly independent.\n\n@param A Matrix whose rows are being tested for linear independence.\n@return true if linearly independent and false otherwise." ]
[ "Use this API to delete nsip6.", "Set cached value for the attribute. Used for dynamically loaded values in the Acacia content editor.\n\n@param attribute the attribute for which the value should be cached\n@param value the value to cache", "Assign FK value to all n-side objects referenced by given object.\n\n@...
public Object putNodeMetaData(Object key, Object value) { if (key == null) throw new GroovyBugError("Tried to set meta data with null key on " + this + "."); if (metaDataMap == null) { metaDataMap = new ListHashMap(); } return metaDataMap.put(key, value); }
[ "Sets the node meta data but allows overwriting values.\n\n@param key - the meta data key\n@param value - the meta data value\n@return the old node meta data value for this key\n@throws GroovyBugError if key is null" ]
[ "Initialize the pattern choice button group.", "Additional objects to include with the requested group.\nNote that all the optional includes depend on \"assignments\" also being included.\n@param includes List of included objects to return\n@return this object to continue building options", "Creates a db handli...
public static boolean containsOnlyNotNull(Object... values){ for(Object o : values){ if(o== null){ return false; } } return true; }
[ "Check that an array only contains elements that are not null.\n@param values, can't be null\n@return" ]
[ "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", "Exports json encoded content to CrashReport object\n\n@param json valid json body.\n@return new instance of CrashReport", "Returns the compact records for all users t...
public void recordServerGroupResult(final String serverGroup, final boolean failed) { synchronized (this) { if (groups.contains(serverGroup)) { responseCount++; if (failed) { this.failed = true; } DomainControllerLo...
[ "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded" ]
[ "Method signature without \"public void\" prefix\n\n@return The method signature in String format", "Returns the response error stream, handling the case when it contains gzipped data.\n@return gzip decoded (if needed) error stream or null", "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\...
@Override public void registerAttributes(ManagementResourceRegistration resourceRegistration) { for (AttributeAccess attr : attributes.values()) { resourceRegistration.registerReadOnlyAttribute(attr.getAttributeDefinition(), null); } }
[ "Register operations associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition" ]
[ "Handle the given response, return the deserialized object when the response is successful.\n\n@param <T> Type\n@param response Response\n@param returnType Return type\n@throws ApiException If the response has a unsuccessful status code or\nfail to deserialize the response body\n@return Type", "Method used to rea...
public static base_responses update(nitro_service client, clusterinstance resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { clusterinstance updateresources[] = new clusterinstance[resources.length]; for (int i=0;i<resources.length;i++){ updatere...
[ "Use this API to update clusterinstance resources." ]
[ "Returns a flag, indicating if the current event is a multi-day event.\nThe method is only called if the single event has an explicitely set end date\nor an explicitely changed whole day option.\n\n@return a flag, indicating if the current event takes lasts over more than one day.", "Use this API to fetch cluster...
public void stop() { if (mAudioListener != null) { Log.d("SOUND", "stopping audio source %d %s", getSourceId(), getSoundFile()); mAudioListener.getAudioEngine().stopSound(getSourceId()); } }
[ "Stops the playback of a sound and destroys the corresponding Sound Object or Soundfield." ]
[ "Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module", "This method is used to associate a child task with the current\ntask instance. It has package access, and has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be cons...
public static base_response add(nitro_service client, appfwjsoncontenttype resource) throws Exception { appfwjsoncontenttype addresource = new appfwjsoncontenttype(); addresource.jsoncontenttypevalue = resource.jsoncontenttypevalue; addresource.isregex = resource.isregex; return addresource.add_resource(client)...
[ "Use this API to add appfwjsoncontenttype." ]
[ "Randomize the gradient.", "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters", "Encode a path in a manner suitable for a GET request\n@param in The path to encode, eg \"a/document\"\n@return The encoded path eg \"a%2Fdocument\"", "Stops the background data synchro...
public static vpnglobal_appcontroller_binding[] get(nitro_service service) throws Exception{ vpnglobal_appcontroller_binding obj = new vpnglobal_appcontroller_binding(); vpnglobal_appcontroller_binding response[] = (vpnglobal_appcontroller_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a vpnglobal_appcontroller_binding resources." ]
[ "Sets the currency code, or the regular expression to select codes.\n\n@param codes the currency codes or code expressions, not null.\n@return the query for chaining.", "Attach a metadata cache file to a particular player media slot, so the cache will be used instead of querying\nthe player for metadata. This sup...
public NodeInfo getNode(String name) { final URI uri = uriWithPath("./nodes/" + encodePathSegment(name)); return this.rt.getForObject(uri, NodeInfo.class); }
[ "Retrieves state and metrics information for individual node.\n\n@param name node name\n@return node information" ]
[ "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "This method retrieves a double value from a String instance.\nIt returns zero by default if a null valu...