query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
@Override public Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors(Class<? extends Annotation> annotationType) { Set<EnhancedAnnotatedConstructor<T>> ret = new HashSet<EnhancedAnnotatedConstructor<T>>(); for (EnhancedAnnotatedConstructor<T> constructor : constructors) { if (constructor.isAnnotationPresent(annotationType)) { ret.add(constructor); } } return ret; }
[ "Gets constructors with given annotation type\n\n@param annotationType The annotation type to match\n@return A set of abstracted constructors with given annotation type. If\nthe constructors set is empty, initialize it first. Returns an\nempty set if there are no matches.\n@see org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType#getEnhancedConstructors(Class)" ]
[ "Function to perform forward softmax", "Merge another AbstractTransition's states into this object, such that the other AbstractTransition\ncan be discarded.\n\n@param another\n@return true if the merge is successful.", "Log a info message with a throwable.", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "Accessor method to retrieve an accrue type instance.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Use this API to update inat resources.", "Determines the java.sql.Types constant value from an OJB\nFIELDDESCRIPTOR value.\n\n@param type The FIELDDESCRIPTOR which JDBC type is to be determined.\n\n@return int the int value representing the Type according to\n\n@throws SQLException if the type is not a valid jdbc type.\njava.sql.Types", "Generates a change event for a local deletion of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@return a change event for a local deletion of a document in the given namespace referring\nto the given document _id.", "Checks to see if all the provided matrices are the expected size for an SVD. If an error is encountered\nthen an exception is thrown. This automatically handles compact and non-compact formats" ]
private void set(FieldType field, boolean value) { set(field, (value ? Boolean.TRUE : Boolean.FALSE)); }
[ "This method inserts a name value pair into internal storage.\n\n@param field task field\n@param value attribute value" ]
[ "Delivers the correct JSON Object for the Stencilset\n\n@param stencilSet\n@throws org.json.JSONException", "Set the week of the month the events should occur.\n@param weekOfMonth the week of month to set (first to fifth, where fifth means last).", "A loop driver for applying operations to all primary ClassNodes in\nour AST. Automatically skips units that have already been processed\nthrough the current phase.", "Prints the results of the equation to standard out. Useful for debugging", "Read a block of data from the FastTrack file and determine if\nit contains a table definition, or columns.\n\n@param blockIndex index of the current block\n@param startIndex start index of the block in the file\n@param blockLength block length", "Lookup the Gallery for the specified ID.\n\n@param galleryId\nThe user profile URL\n@return The Gallery\n@throws FlickrException", "Use this API to update sslcertkey resources.", "Set the state of an individual day in a weekly recurrence.\n\n@param day Day instance\n@param value true if this day is included in the recurrence", "Adapt a file path to the current file system.\n@param filePath The input file path string.\n@return File path compatible with the file system of this {@link GVRResourceVolume}." ]
protected void initValid(EnhancedAnnotation<T> annotatedAnnotation) { this.valid = false; for (Class<? extends Annotation> annotationType : getMetaAnnotationTypes()) { if (annotatedAnnotation.isAnnotationPresent(annotationType)) { this.valid = true; } } }
[ "Validates the data for correct annotation" ]
[ "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Creates a timespan from a list of other timespans.\n\n@return a timespan representing the sum of all the timespans provided", "Converts a row major block matrix into a row major matrix.\n\n@param src Original DMatrixRBlock.. Not modified.\n@param dst Equivalent DMatrixRMaj. Modified.", "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotations", "The keywords to include in the PDF metadata.\n\n@param keywords the keywords of the PDF.", "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list", "Use this API to fetch sslcipher resources of given names .", "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", "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 HttpConnection setRequestBody(final InputStream input, final long inputLength) { try { return setRequestBody(new InputStreamWrappingGenerator(input, inputLength), inputLength); } catch (IOException e) { logger.log(Level.SEVERE, "Error copying input stream for request body", e); throw new RuntimeException(e); } }
[ "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}" ]
[ "those could be incorporated with above, but that would blurry everything.", "FIXME Remove this method", "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "Set the amount of padding between child objects.\n@param axis {@link Axis}\n@param padding", "Entry point for the example.\n\n@param args Command-line arguments for the example. To use samplemachine.xml from resources, send\nno arguments. To use other file, send a filename without xml extension).", "Adjust the date according to the whole day options.\n\n@param date the date to adjust.\n@param isEnd flag, indicating if the date is the end of the event (in contrast to the beginning)\n\n@return the adjusted date, which will be exactly the beginning or the end of the provide date's day.", "Returns a list of your geo-tagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param minUploadDate\nMinimum upload date. Photos with an upload date greater than or equal to this value will be returned. Set to null to not specify a date.\n@param maxUploadDate\nMaximum upload date. Photos with an upload date less than or equal to this value will be returned. Set to null to not specify a date.\n@param minTakenDate\nMinimum taken date. Photos with an taken date greater than or equal to this value will be returned. Set to null to not specify a date.\n@param maxTakenDate\nMaximum taken date. Photos with an taken date less than or equal to this value will be returned. Set to null to not specify a date.\n@param privacyFilter\nReturn photos only matching a certain privacy level. Valid values are:\n<ul>\n<li>1 public photos</li>\n<li>2 private photos visible to friends</li>\n<li>3 private photos visible to family</li>\n<li>4 private photos visible to friends & family</li>\n<li>5 completely private photos</li>\n</ul>\nSet to 0 to not specify a privacy Filter.\n\n@see com.flickr4java.flickr.photos.Extras\n@param sort\nThe order in which to sort returned photos. Deafults to date-posted-desc. The possible values are: date-posted-asc, date-posted-desc,\ndate-taken-asc, date-taken-desc, interestingness-desc, and interestingness-asc.\n@param extras\nA set of Strings controlling the extra information to fetch for each returned record. Currently supported fields are: license, date_upload,\ndate_taken, owner_name, icon_server, original_format, last_update, geo. Set to null or an empty set to not specify any extras.\n@param perPage\nNumber of photos to return per page. If this argument is 0, it defaults to 100. The maximum allowed value is 500.\n@param page\nThe page of results to return. If this argument is 0, it defaults to 1.\n@return photos\n@throws FlickrException", "Setter for the file format.\n@param fileFormat File format the configuration file is in.", "Gets a tokenizer from a reader." ]
static void addOperationAddress(final ModelNode operation, final PathAddress base, final String key, final String value) { operation.get(OP_ADDR).set(base.append(key, value).toModelNode()); }
[ "Appends the key and value to the address and sets the address on the operation.\n\n@param operation the operation to set the address on\n@param base the base address\n@param key the key for the new address\n@param value the value for the new address" ]
[ "Return the structured backup data\n\n@return Backup of current configuration\n@throws Exception exception", "Retrieves the timephased breakdown of cost.\n\n@return timephased cost", "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block", "Creates a unique name, suitable for use with Resque.\n\n@return a unique name for this worker", "Saves a screenshot of every new state.", "Adds a parameter to the argument list if the given integer is non-null.\nIf the value is null, then the argument list remains unchanged.", "Fetch a value from the Hashmap .\n\n@param firstKey\nfirst key\n@param secondKey\nsecond key\n@return the element or null.", "Removes the given row.\n\n@param row the row to remove", "Builds the mapping table." ]
private byte[] getBytes(String value, boolean unicode) { byte[] result; if (unicode) { int start = 0; // Get the bytes in UTF-16 byte[] bytes; try { bytes = value.getBytes("UTF-16"); } catch (UnsupportedEncodingException e) { bytes = value.getBytes(); } if (bytes.length > 2 && bytes[0] == -2 && bytes[1] == -1) { // Skip the unicode identifier start = 2; } result = new byte[bytes.length - start]; for (int loop = start; loop < bytes.length - 1; loop += 2) { // Swap the order here result[loop - start] = bytes[loop + 1]; result[loop + 1 - start] = bytes[loop]; } } else { result = new byte[value.length() + 1]; System.arraycopy(value.getBytes(), 0, result, 0, value.length()); } return (result); }
[ "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text" ]
[ "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.", "Print the class's operations m", "Merge a new subsystem from the global registration.\n\n@param registry the global registry\n@param subsystemName the subsystem name\n@param version the subsystem version", "Deploys application reading resources from specified InputStream\n\n@param inputStream where resources are read\n@throws IOException", "Sets the resource to which this calendar is linked. Note that this\nmethod updates the calendar's name to be the same as the resource name.\nIf the resource does not yet have a name, then the calendar is given\na default name.\n\n@param resource resource instance", "Throws an exception if at least one results directory is missing.", "Populate the container, converting raw data into Java types.\n\n@param field custom field to which these values belong\n@param values raw value data\n@param descriptions raw description data", "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.", "This method writes data for a single calendar to an MSPDI file.\n\n@param bc Base calendar data\n@return New MSPDI calendar instance" ]
public static String getOffsetCodeFromSchedule(Schedule schedule) { double doubleLength = 0; for(int i = 0; i < schedule.getNumberOfPeriods(); i ++) { doubleLength += schedule.getPeriodLength(i); } doubleLength /= schedule.getNumberOfPeriods(); doubleLength *= 12; int periodLength = (int) Math.round(doubleLength); String offsetCode = periodLength + "M"; return offsetCode; }
[ "Determines the offset code of a forward contract from a schedule. Rounds the average period length to full months.\n\n@param schedule The schedule.\n@return The offset code as String" ]
[ "Send an album art update announcement to all registered listeners.", "Are these two numbers effectively equal?\n\nThe same logic is applied for each of the 3 vector dimensions: see {@link #equal}\n@param v1\n@param v2", "Merges this with the list of sections to produce the smallest array of sequential block subnets, going from smallest to largest\n\n@param sections the sections to merge with this\n@return", "This is the code that needs to be executed before either eye is drawn.\n\n@return Current time, from {@link GVRTime#getCurrentTime()}", "Parses the resource String id and get back the int res id\n@param context\n@param id String resource id\n@return int resource id", "Returns the full user record for the single user with the provided ID.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object", "Serializes any char sequence and writes it into specified buffer.", "Returns true if required properties for FluoAdmin are set", "Find a node in the tree. The node must be \"visible\" to be found.\n@param address The full address of the node matching ManagementModelNode.addressPath()\n@return The node, or null if not found." ]
public BoxTask.Info addTask(BoxTask.Action action, String message, Date dueAt) { JsonObject itemJSON = new JsonObject(); itemJSON.add("type", "file"); itemJSON.add("id", this.getID()); JsonObject requestJSON = new JsonObject(); requestJSON.add("item", itemJSON); requestJSON.add("action", action.toJSONString()); if (message != null && !message.isEmpty()) { requestJSON.add("message", message); } if (dueAt != null) { requestJSON.add("due_at", BoxDateFormat.format(dueAt)); } URL url = ADD_TASK_URL_TEMPLATE.build(this.getAPI().getBaseURL()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "POST"); request.setBody(requestJSON.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); BoxTask addedTask = new BoxTask(this.getAPI(), responseJSON.get("id").asString()); return addedTask.new Info(responseJSON); }
[ "Adds a new task to this file. The task can have an optional message to include, and a due date.\n\n@param action the action the task assignee will be prompted to do.\n@param message an optional message to include with the task.\n@param dueAt the day at which this task is due.\n@return information about the newly added task." ]
[ "This method skips the end-of-line markers in the RTF document.\nIt also indicates if the end of the embedded object has been reached.\n\n@param text RTF document test\n@param offset offset into the RTF document\n@return new offset", "init database with demo data", "Locks the bundle descriptor.\n@throws CmsException thrown if locking fails.", "Close the Closeable. Logging a warning if any problems occur.\n\n@param c the thing to close", "Get a list of people in a given photo.\n\n@param photoId\n@throws FlickrException", "Throws an IllegalStateException when the given value is not false.", "Extract data for a single task.\n\n@param parent task parent\n@param row Synchro task data", "Processes the most recent dump of the given type using the given dump\nprocessor.\n\n@see DumpProcessingController#processMostRecentMainDump()\n@see DumpProcessingController#processAllRecentRevisionDumps()\n\n@param dumpContentType\nthe type of dump to process\n@param dumpFileProcessor\nthe processor to use\n@deprecated Use {@link #getMostRecentDump(DumpContentType)} and\n{@link #processDump(MwDumpFile)} instead; method will vanish\nin WDTK 0.5", "Sets the max.\n\n@param n the new max" ]
@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.printStackTrace(); junit4.log("Error serializing to JSON file: " + Throwables.getStackTraceAsString(ex), Project.MSG_WARN); if (jsonWriter != null) { try { jsonWriter.close(); } catch (Throwable ignored) { // Ignore. } finally { jsonWriter = null; } } } }
[ "Emit information about a single suite and all of its tests." ]
[ "read the prefetchInLimit from Config based on OJB.properties", "Clean up the environment object for the given storage engine", "Gets the info for a running build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildId the unique identifier of the build", "Updates the R matrix to take in account the removed row.", "Add a date with a certain check state.\n@param date the date to add.\n@param checkState the check state.", "Merge another AbstractTransition's states into this object, such that the other AbstractTransition\ncan be discarded.\n\n@param another\n@return true if the merge is successful.", "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name .", "Appends the accumulated words to the resulting words. Trailing whitespace is removed because of the\npostprocessing that inserts custom whitespace\n\n@param currentWords is the {@link StringBuilder} of the accumulated words\n@param formattedWords is the list that is being appended to", "Initialize dates panel elements." ]
public boolean isFunctionName( String s ) { if( input1.containsKey(s)) return true; if( inputN.containsKey(s)) return true; return false; }
[ "Returns true if the string matches the name of a function" ]
[ "Use this API to fetch all the appfwprofile resources that are configured on netscaler.", "Stops the current debug server. Active connections are\nnot affected.", "Whether the given column is part of this key family or not.\n\n@return {@code true} if the given column is part of this key, {@code false} otherwise.", "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>", "Returns the name of the bone.\n\n@return the name", "Called when the end type is changed.", "Sends the collected dependencies over to the master and record them.", "Performs a streaming request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return an {@link EventStream} that will provide response events.", "Scans the given token global token stream for a list of sub-token\nstreams representing those portions of the global stream that\nmay contain date time information\n\n@param stream\n@return" ]
private static void listProjectProperties(ProjectFile file) { SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy HH:mm z"); ProjectProperties properties = file.getProjectProperties(); Date startDate = properties.getStartDate(); Date finishDate = properties.getFinishDate(); String formattedStartDate = startDate == null ? "(none)" : df.format(startDate); String formattedFinishDate = finishDate == null ? "(none)" : df.format(finishDate); System.out.println("MPP file type: " + properties.getMppFileType()); System.out.println("Project Properties: StartDate=" + formattedStartDate + " FinishDate=" + formattedFinishDate); System.out.println(); }
[ "Reads basic summary details from the project properties.\n\n@param file MPX file" ]
[ "Use this API to fetch csvserver_cachepolicy_binding resources of given name .", "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", "Obtains a Ethiopic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Ethiopic local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Wraps a StatisticsMatrix around 'm'. Does NOT create a copy of 'm' but saves a reference\nto it.", "Get the related tags.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\nThe source tag\n@return A RelatedTagsList object\n@throws FlickrException", "the applications main loop.", "Return the command line argument\n\n@return \" --server-groups=\" plus a comma-separated list\nof selected server groups. Return empty String if none selected.", "Update all the links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Takes a model and an SCXMLFrontier and decomposes the Frontier into a Map of Strings to Strings\nThese strings can be sent over a network to get a Frontier past a 'gap'\n\n@param frontier the Frontier\n@param modelText the model\n@return the map of strings representing a decomposition" ]
public static String getString(byte[] bytes, String encoding) { try { return new String(bytes, encoding); } catch(UnsupportedEncodingException e) { throw new IllegalArgumentException(encoding + " is not a known encoding name.", e); } }
[ "Create a string from bytes using the given encoding\n\n@param bytes The bytes to create a string from\n@param encoding The encoding of the string\n@return The created string" ]
[ "Returns value as it appeared on the command line with escape sequences\nand system properties not resolved. The variables, though, are resolved\nduring the initial parsing of the command line.\n\n@param parsedLine parsed command line\n@param required whether the argument is required\n@return argument value as it appears on the command line\n@throws CommandFormatException in case the required argument is missing", "Scales the weights of this crfclassifier by the specified weight\n\n@param scale", "Detect numbers using comma as a decimal separator and replace with period.\n\n@param value original numeric value\n@return corrected numeric value", "Send an ERROR log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param msg The message you would like logged.\n@return", "Delete the given file in a separate thread\n\n@param file The file to delete", "Initialize the random generator with a seed.", "delete of files more than 1 day old", "Sets the lower limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis lower rotation limit (in radians)\n@param limitY the Y axis lower rotation limit (in radians)\n@param limitZ the Z axis lower rotation limit (in radians)", "Unlock all files opened for writing." ]
public static boolean isLogDownloadAvailable(CliGuiContext cliGuiCtx) { ModelNode readOps = null; try { readOps = cliGuiCtx.getExecutor().doCommand("/subsystem=logging:read-children-types"); } catch (CommandFormatException | IOException e) { return false; } if (!readOps.get("result").isDefined()) return false; for (ModelNode op: readOps.get("result").asList()) { if ("log-file".equals(op.asString())) return true; } return false; }
[ "Does the server support log downloads?\n\n@param cliGuiCtx The context.\n@return <code>true</code> if the server supports log downloads,\n<code>false</code> otherwise." ]
[ "Helper method to check if log4j is already configured", "Populate the authenticated user profiles in the Shiro subject.\n\n@param profiles the linked hashmap of profiles", "Performs a null edit on an item. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param itemId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Write the config to the writer.", "Static method to convert a binary operator into a string.\n\n@param oper is the binary comparison operator to be converted", "Returns the list of store defs as a map\n\n@param storeDefs\n@return", "Add the given query parameters.\n@param params the params\n@return this UriComponentsBuilder", "Retrieves an object that has been attached to this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Parses command-line and synchronizes metadata versions across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
private String swapStore(String storeName, String directory) throws VoldemortException { ReadOnlyStorageEngine store = getReadOnlyStorageEngine(metadataStore, storeRepository, storeName); if(!Utils.isReadableDir(directory)) throw new VoldemortException("Store directory '" + directory + "' is not a readable directory."); String currentDirPath = store.getCurrentDirPath(); logger.info("Swapping RO store '" + storeName + "' to version directory '" + directory + "'"); store.swapFiles(directory); logger.info("Swapping swapped RO store '" + storeName + "' to version directory '" + directory + "'"); return currentDirPath; }
[ "Given a read-only store name and a directory, swaps it in while returning\nthe directory path being swapped out\n\n@param storeName The name of the read-only store\n@param directory The directory being swapped in\n@return The directory path which was swapped out\n@throws VoldemortException" ]
[ "Notifies that multiple footer items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Adds the class descriptor to this model.\n\n@param classDef The class descriptor\n@return The class descriptor or <code>null</code> if there is no such class in this model", "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", "Read data for a single table and store it.\n\n@param is input stream\n@param table table header", "This method lists any notes attached to resources.\n\n@param file MPX file", "If there is a SubReport on a Group, we do the layout here\n@param columnsGroup\n@param jgroup", "Checks to see if another AbstractTransition's states is isCompatible for merging.\n\n@param another\n@return", "Uses data from a bar to populate a task.\n\n@param row bar data\n@param task task to populate", "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." ]
private void ensureFields(ClassDescriptorDef classDef, Collection fields) throws ConstraintException { boolean forceVirtual = !classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_REPOSITORY_INFO, true); for (Iterator it = fields.iterator(); it.hasNext();) { FieldDescriptorDef fieldDef = (FieldDescriptorDef)it.next(); // First we check whether this field is already present in the class FieldDescriptorDef foundFieldDef = classDef.getField(fieldDef.getName()); if (foundFieldDef != null) { if (isEqual(fieldDef, foundFieldDef)) { if (forceVirtual) { foundFieldDef.setProperty(PropertyHelper.OJB_PROPERTY_VIRTUAL_FIELD, "true"); } continue; } else { throw new ConstraintException("Cannot pull up the declaration of the required field "+fieldDef.getName()+ " from type "+fieldDef.getOwner().getName()+" to basetype "+classDef.getName()+ " because there is already a different field of the same name"); } } // perhaps a reference or collection ? if (classDef.getCollection(fieldDef.getName()) != null) { throw new ConstraintException("Cannot pull up the declaration of the required field "+fieldDef.getName()+ " from type "+fieldDef.getOwner().getName()+" to basetype "+classDef.getName()+ " because there is already a collection of the same name"); } if (classDef.getReference(fieldDef.getName()) != null) { throw new ConstraintException("Cannot pull up the declaration of the required field "+fieldDef.getName()+ " from type "+fieldDef.getOwner().getName()+" to basetype "+classDef.getName()+ " because there is already a reference of the same name"); } classDef.addFieldClone(fieldDef); classDef.getField(fieldDef.getName()).setProperty(PropertyHelper.OJB_PROPERTY_VIRTUAL_FIELD, "true"); } }
[ "Ensures that the specified fields are present in the given class.\n\n@param classDef The class to copy the fields into\n@param fields The fields to copy\n@throws ConstraintException If there is a conflict between the new fields and fields in the class" ]
[ "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block", "Produces an IPv4 address from any sequence of 4 bytes in this IPv6 address.\n\n@param byteIndex the byte index to start\n@throws IndexOutOfBoundsException if the index is less than zero or bigger than 7\n@return", "Add a mapping of properties between two beans\n\n@param beanToBeanMapping", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "Run through all maps and remove any references that have been null'd out by the GC.", "Gets a JsonObject containing any pending changes to this object that can be sent back to the Box API.\n@return a JsonObject containing the pending changes.", "Use this API to unset the properties of sslcertkey resources.\nProperties that need to be unset are specified in args array.", "Classify the tokens in a String. Each sentence becomes a separate document.\n\n@param str\nA String with tokens in one or more sentences of text to be\nclassified.\n@return {@link List} of classified sentences (each a List of something that\nextends {@link CoreMap}).", "Used to get the current repository key\n@return keyFromText or keyFromSelect reflected by the dynamicMode flag" ]
public final void setValue(String value) { if ((null == value) || value.isEmpty()) { setDefaultValue(); } else { try { tryToSetParsedValue(value); } catch (@SuppressWarnings("unused") Exception e) { CmsDebugLog.consoleLog("Could not set invalid serial date value: " + value); setDefaultValue(); } } notifyOnValueChange(); }
[ "Set the value as provided.\n@param value the serial date value as JSON string." ]
[ "Subtract a complex number.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the subtract of specified complex number with a scalar value.", "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", "Non-blocking call\n\n@param key\n@param value\n@return", "Sets a new value for a given key. an older value is overwritten.\n@param key a non null key\n@param value the new value", "Ask the specified player for the specified waveform preview from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform preview\n\n@return the preview, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Try Oracle update batching and call executeUpdate or revert to\nJDBC update batching.\n@param stmt the statement beeing added to the batch\n@throws PlatformException upon JDBC failure", "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list.", "Use this API to unset the properties of gslbsite resource.\nProperties that need to be unset are specified in args array.", "Record a prepare operation.\n\n@param preparedOperation the prepared operation" ]
public void readLock(EntityKey key, int timeout) { ReadWriteLock lock = getLock( key ); Lock readLock = lock.readLock(); acquireLock( key, timeout, readLock ); }
[ "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." ]
[ "Use this API to delete dnstxtrec of given name.", "Use this API to fetch a rewriteglobal_binding resource .", "get the default profile\n\n@return representation of default profile\n@throws Exception exception", "Removes empty space when \"fitToContent\" is true and real height of object is\ntaller than current bands height, otherwise, it is not modified\n\n@param band\n@param currHeigth\n@param fitToContent", "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)", "Add a new check box.\n@param date the date for the check box\n@param checkState the initial check state.", "Demonstrates obtaining the request history data from a test run", "Indicates if a bean is proxyable\n\n@param bean The bean to test\n@return True if proxyable, false otherwise", "Returns true if required properties for FluoAdmin are set" ]
public static String getSimpleClassName(String className) { // get the last part of the class name String[] parts = className.split("\\."); if (parts.length <= 1) { return className; } else { return parts[parts.length - 1]; } }
[ "Return the single class name from a class-name string." ]
[ "Converts an Accumulo Range to a Fluo Span\n\n@param range Range\n@return Span", "Use this API to save cacheobject.", "Parse JSON parameters from this request.\n\n@param jsonRequest The request in the JSON format.\n@return CmsSpellcheckingRequest object that contains parsed parameters or null, if JSON input is not well\ndefined.", "Evaluates the body if current member has no tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"error\" description=\"Show this error message if no tag found.\"", "Report all Java ClassFile files available on the class path within\nthe specified packages and sub packages.\n\n@see #detect(File...)", "Generate a PageMetadata object for the page represented by the specified pagination token.\n\n@param paginationToken opaque pagination token\n@param initialParameters the initial view query parameters (i.e. for the page 1 request).\n@param <K> the view key type\n@param <V> the view value type\n@return PageMetadata object for the given page", "Part of the endOfRun process that needs the database. May be deferred if the database is not available.", "Returns the default shared instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository" ]
private void ensureNoTableInfoIfNoRepositoryInfo(ClassDescriptorDef classDef, String checkLevel) { if (!classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_REPOSITORY_INFO, true)) { classDef.setProperty(PropertyHelper.OJB_PROPERTY_GENERATE_TABLE_INFO, "false"); } }
[ "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)" ]
[ "return a new managed connection. This connection is wrapped around the real connection and delegates to it\nto get work done.\n@param subject\n@param info\n@return", "Chooses the ECI mode most suitable for the content of this symbol.", "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", "Tells it to process the submatrix at the next split. Should be called after the\ncurrent submatrix has been processed.", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "Read flow id from message.\n\n@param message the message\n@return the FlowId as string", "create a HashMap form the json properties and add it to the shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Remove a DropPasteWorker from the helper.\n@param worker the worker that should be removed", "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map" ]
public void transform(DataPipe cr) { for (Map.Entry<String, String> entry : cr.getDataMap().entrySet()) { String value = entry.getValue(); if (value.equals("#{customplaceholder}")) { // Generate a random number int ran = rand.nextInt(); entry.setValue(String.valueOf(ran)); } } }
[ "The transform method for this DataTransformer\n@param cr a reference to DataPipe from which to read the current map" ]
[ "Adds a logical operator block.\n\n@param list parent criteria list\n@param block current block\n@param operator logical operator represented by this block", "Get a property as a array or throw exception.\n\n@param key the property name", "Function to serialize the given list of Vector clocks into a string. If\nsomething goes wrong, it returns an empty string.\n\n@param vectorClocks The Vector clock list to serialize\n@return The string (JSON) version of the specified Vector clock", "Indicate to the RecyclerView the type of Renderer used to one position using a numeric value.\n\n@param position to analyze.\n@return the id associated to the Renderer used to render the content given a position.", "Add all elements in the iterator to the collection.\n\n@param target\n@param iterator\n@return true if the target was modified, false otherwise", "Bhattacharyya distance between two normalized histograms.\n\n@param histogram1 Normalized histogram.\n@param histogram2 Normalized histogram.\n@return The Bhattacharyya distance between the two histograms.", "Returns true if this instance has the same config as a given config.\n@param that\n@return true if the instance has the same config, false otherwise.", "This handler will be triggered when there's no search result", "splits a string into a list of strings, ignoring the empty string" ]
public static int Mode( int[] values ){ int mode = 0, curMax = 0; for ( int i = 0, length = values.length; i < length; i++ ) { if ( values[i] > curMax ) { curMax = values[i]; mode = i; } } return mode; }
[ "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array." ]
[ "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance", "Add an individual class to the map file.\n\n@param loader jar file class loader\n@param jarEntry jar file entry\n@param writer XML stream writer\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException", "Sets left and right padding for all cells in the table.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message.", "If this Aztec Code symbol is part of a series of Aztec Code symbols appended in a structured format,\nthis method sets the unique message ID for the series. Values may not contain spaces and must contain\nonly printable ASCII characters. Message IDs are optional.\n\n@param messageId the unique message ID for the series that this symbol is part of", "get the getter method corresponding to given property", "Ensure that the given connection is established.\n\n@param jedis\na connection to Redis\n@return true if the supplied connection was already connected", "Loads the specified class name and stores it in the hash\n\n@param className class name\n@throws Exception exception", "Clears the Parameters before performing a new search.\n@return this.true;" ]
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" ]
[ "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", "Describe the model as a list of resources with their address and model, which\nthe HC can directly apply to create the model. Although the format might appear\nsimilar as the operations generated at boot-time this description is only useful\nto create the resource tree and cannot be used to invoke any operation.\n\n@param rootAddress the address of the root resource being described\n@param resource the root resource\n@return the list of resources", "Writes image files for all data that was collected and the statistics\nfile for all sites.", "Gets or creates the a resource for the sub-deployment on the parent deployments resource.\n\n@param deploymentName the name of the deployment\n@param parent the parent deployment used to find the parent resource\n\n@return the already registered resource or a newly created resource", "Use this API to delete sslcipher resources of given names.", "Deselects all child items of the provided item.\n@param item the item for which all childs should be deselected.d", "Remove a list of stores from the session\n\nFirst commit all entries for these stores and then cleanup resources\n\n@param storeNameToRemove List of stores to be removed from the current\nstreaming session", "Use this API to fetch aaauser_aaagroup_binding resources of given name .", "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" ]
static Path resolvePath(final Path base, final String... paths) { return Paths.get(base.toString(), paths); }
[ "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path" ]
[ "Helper method to add a parameter without having to create it explicitely. The created parameter should be persisted afterwards.\n\n@param key\nname of the parameter to add\n@param value\nvalue of the parameter to create\n@return the newly created parameter", "This method is called if the data set has been changed. Subclasses might want to override\nthis method to add some extra logic.\n\nGo through all items in the list:\n- reuse the existing views in the list\n- add new views in the list if needed\n- trim the unused views\n- request re-layout\n\n@param preferableCenterPosition the preferable center position. If it is -1 - keep the\ncurrent center position.", "convolution data type", "View that redirects the top level window to the URL defined in postDeclineUrl property after user declines to authorize application.\nMay be overridden for custom views, particularly in the case where the post-decline view should be rendered in-canvas.\n@return a view to display after a user declines authoriation. Defaults as a redirect to postDeclineUrl", "Add a custom Log Record Handler to the root of the tree\n@param handler The handler to add\n@return this", "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor.", "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "Parse request parameters and files.\n@param request\n@param response", "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions" ]
private String listToCSV(List<String> list) { String csvStr = ""; for (String item : list) { csvStr += "," + item; } return csvStr.length() > 1 ? csvStr.substring(1) : csvStr; }
[ "Concat a List into a CSV String.\n@param list list to concat\n@return csv string" ]
[ "Retrieve the parent task based on its WBS.\n\n@param wbs parent WBS\n@return parent task", "Add a single header key-value pair. If one with the name already exists,\nboth stay in the header map.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "Log a message line to the output.", "Appends the given string encoding special HTML characters.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nInput String starting position.\n@param end\nInput String end position.", "Set the permission for who may view the geo data associated with a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe id of the photo to set permissions for.\n@param perms\nPermissions, who can see the geo data of this photo\n@throws FlickrException", "Start speech recognizer.\n\n@param speechListener", "Put a value if and only if the map has not changed since the given snapshot was taken. If the put fails,\nit is the caller's responsibility to retry.\n\n@param instance the instance with the map field\n@param key the key\n@param value the value\n@param snapshot the map snapshot\n@return {@code false} if the snapshot is out of date and we could not update, {@code true} if the put succeeded", "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 the ViewGroup used as a parent for the content view.\n\n@return The content view's parent." ]
public static void resetNamedTimer(String timerName, int todoFlags, long threadId) { getNamedTimer(timerName, todoFlags, threadId).reset(); }
[ "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" ]
[ "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "Get the connectivity state as reported by the Android system\n\n@param context Android context\n@return the connectivity state as reported by the Android system", "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.", "Creates the project used to import module resources and sets it on the CmsObject.\n\n@param cms the CmsObject to set the project on\n@param module the module\n@return the created project\n@throws CmsException if something goes wrong", "Function to perform backward softmax", "Returns the orthogonal V matrix.\n\n@param V If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix.", "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The size of the painting area.\n@param bounds The map bounds.\n@param dpi the DPI.", "Set the amount of offset between child objects and parent.\n@param axis {@link Axis}\n@param offset" ]
protected boolean isReserved( String name ) { if( functions.isFunctionName(name)) return true; for (int i = 0; i < name.length(); i++) { if( !isLetter(name.charAt(i)) ) return true; } return false; }
[ "Returns true if the specified name is NOT allowed. It isn't allowed if it matches a built in operator\nor if it contains a restricted character." ]
[ "Prints out the interceptor chain in a format that is easy to read. It\nalso filters out instances of the DemoInterceptor so you can see what the\nchain would look like in a normal invokation.\n\n@param chain", "Replace error msg.\n\n@param origMsg\nthe orig msg\n@return the string", "Get the remote address.\n\n@return the remote address, {@code null} if not available", "Adjusts the day in the provided month, that it fits the specified week day.\nIf there's no match for that provided month, the next possible month is checked.\n\n@param date the date to adjust, with the correct year and month already set.", "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", "Initialize the ui elements for the management part.", "A comment.\n\n@param args the parameters", "This is needed when running on slaves.", "Launches the client with the specified parameters.\n\n@param args\ncommand line parameters\n@throws ParseException\n@throws IOException" ]
public final void reset() { for (int i = 0; i < combinationIndices.length; i++) { combinationIndices[i] = i; } remainingCombinations = totalCombinations; }
[ "Reset the combination generator." ]
[ "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "Sets the color of the drop shadow.\n\n@param color The color of the drop shadow.", "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", "Returns s if it's at most maxWidth chars, otherwise chops right side to fit.", "Use this API to fetch transformpolicylabel resource of given name .", "Creates a new InternetPrintWriter for given charset encoding.\n\n@param outputStream the wrapped output stream.\n@param charset the charset.\n@return a new InternetPrintWriter.", "Validates this string is a valid address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws AddressStringException", "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", "Sets the upper limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis upper rotation limit (in radians)\n@param limitY the Y axis upper rotation limit (in radians)\n@param limitZ the Z axis upper rotation limit (in radians)" ]
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; final int lines = (len + 16) / 16; for (int i = 0; i < lines; i++) { ascii.append(" |"); formatter.format("%08x ", displayOffset + (i * 16)); for (int j = 0; j < 16; j++) { if (dataNdx < maxDataNdx) { byte b = data[dataNdx++]; formatter.format("%02x ", b); ascii.append((b > MIN_VISIBLE && b < MAX_VISIBLE) ? (char) b : ' '); } else { sb.append(" "); } if (j == 7) { sb.append(' '); } } ascii.append('|'); sb.append(ascii).append('\n'); ascii.setLength(0); } formatter.close(); return sb.toString(); }
[ "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" ]
[ "Return the build string of this instance of finmath-lib.\nCurrently this is the Git commit hash.\n\n@return The build string of this instance of finmath-lib.", "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.", "Retrieves or if necessary, creates a user alias to be used\nby a child criteria\n@param attribute The alias to set", "generate a message for loglevel FATAL\n\n@param pObject the message Object", "Return the list of licenses attached to an artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbLicense>", "Modifies the \"msgCount\" belief\n\n@param int - the number to add or remove", "Return a capitalized version of the specified property name.\n\n@param s\nThe property name", "Run a task periodically, for a set number of times.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@param repetitions\nRepeat count\n@return {@code null} if {@code repetitions < 1}; otherwise, an interface\nthat lets you query the status; cancel; or reschedule the event.", "Gets any previous versions of this file. Note that only users with premium accounts will be able to retrieve\nprevious versions of their files.\n\n@return a list of previous file versions." ]
public void loadClassifier(File file, Properties props) throws ClassCastException, IOException, ClassNotFoundException { Timing.startDoing("Loading classifier from " + file.getAbsolutePath()); BufferedInputStream bis; if (file.getName().endsWith(".gz")) { bis = new BufferedInputStream(new GZIPInputStream(new FileInputStream(file))); } else { bis = new BufferedInputStream(new FileInputStream(file)); } loadClassifier(bis, props); bis.close(); Timing.endDoing(); }
[ "Loads a classifier from the file specified. If the file's name ends in .gz,\nuses a GZIPInputStream, else uses a regular FileInputStream. This method\ncloses the File when done.\n\n@param file\nLoads a classifier from this file.\n@param props\nProperties in this object will be used to overwrite those\nspecified in the serialized classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data" ]
[ "Normalize the list of selected categories to fit for the ids of the tree items.", "This method retrieves an int value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of an integer\n@return int value", "Acquire the exclusive lock allowing the acquisition to be interrupted.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@throws InterruptedException - if the acquiring thread is interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "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", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it is not a valid package or class name\n\n@param s\nthe string to be checked\n@return\n`true` if `s` is a valid java package or class name", "Turn map into string\n\n@param propMap Map to be converted\n@return", "Fill the attributes in the processor.\n\n@param processors The processors\n@param initialAttributes The attributes\n@see RequireAttributes\n@see ProvideAttributes", "We have identified that we have a zip file. Extract the contents into\na temporary directory and process.\n\n@param stream schedule data\n@return ProjectFile instance", "Sinc function.\n\n@param x Value.\n@return Sinc of the value." ]
private void processLayouts(Project phoenixProject) { // // Find the active layout // Layout activeLayout = getActiveLayout(phoenixProject); // // Create a list of the visible codes in the correct order // for (CodeOption option : activeLayout.getCodeOptions().getCodeOption()) { if (option.isShown().booleanValue()) { m_codeSequence.add(getUUID(option.getCodeUuid(), option.getCode())); } } }
[ "Find the current layout and extract the activity code order and visibility.\n\n@param phoenixProject phoenix project data" ]
[ "Check if the print has not been asked to stop taking new jobs.\n\n@return true if it's OK to take new jobs.", "Creates a CostRateTable instance from a block of data.\n\n@param resource parent resource\n@param index cost rate table index\n@param data data block", "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", "Called to reset current sensor data.\n\n@param timeStamp\ncurrent time stamp\n@param rotationW\nQuaternion rotation W\n@param rotationX\nQuaternion rotation X\n@param rotationY\nQuaternion rotation Y\n@param rotationZ\nQuaternion rotation Z\n@param gyroX\nGyro rotation X\n@param gyroY\nGyro rotation Y\n@param gyroZ\nGyro rotation Z", "Remove the sequence for given sequence name.\n\n@param sequenceName Name of the sequence to remove.", "Load the available layers.\n\n@param image the installed image\n@param productConfig the product config to establish the identity\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the layers\n@throws IOException", "Get bean for given name in the \"thread\" scope.\n\n@param name name of bean\n@param factory factory for new instances\n@return bean for this scope", "Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions", "Writes a buffered some-value restriction.\n\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param bnode\nblank node representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples" ]
public List<Dependency> getModuleDependencies(final String moduleId, final FiltersHolder filters){ final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); return getModuleDependencies(module, filters, 1, new ArrayList<String>()); }
[ "Returns the list of module dependencies regarding the provided filters\n\n@param moduleId String\n@param filters FiltersHolder\n@return List<Dependency>" ]
[ "Session connect generate channel.\n\n@param session\nthe session\n@return the channel\n@throws JSchException\nthe j sch exception", "Use this API to fetch all the transformpolicy resources that are configured on netscaler.", "Method to service public recording APIs\n\n@param op Operation being tracked\n@param timeNS Duration of operation\n@param numEmptyResponses Number of empty responses being sent back,\ni.e.: requested keys for which there were no values (GET and GET_ALL only)\n@param valueSize Size in bytes of the value\n@param keySize Size in bytes of the key\n@param getAllAggregateRequests Total of amount of keys requested in the operation (GET_ALL only)", "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.", "Used to retrieve all metadata associated with the item.\n@param item item to get metadata for.\n@param fields the optional fields to retrieve.\n@return An iterable of metadata instances associated with the item.", "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", "Use this API to fetch all the ntpserver resources that are configured on netscaler.", "Ensure that all logs are replayed, any other logs can not be added before end of this function.", "Converts a date series configuration to a date series bean.\n@return the date series bean." ]
public static List<Integer> getStolenPrimaryPartitions(final Cluster currentCluster, final Cluster finalCluster, final int stealNodeId) { List<Integer> finalList = new ArrayList<Integer>(finalCluster.getNodeById(stealNodeId) .getPartitionIds()); List<Integer> currentList = new ArrayList<Integer>(); if(currentCluster.hasNodeWithId(stealNodeId)) { currentList = currentCluster.getNodeById(stealNodeId).getPartitionIds(); } else { if(logger.isDebugEnabled()) { logger.debug("Current cluster does not contain stealer node (cluster : [[[" + currentCluster + "]]], node id " + stealNodeId + ")"); } } finalList.removeAll(currentList); return finalList; }
[ "For a particular stealer node find all the primary partitions tuples it\nwill steal.\n\n@param currentCluster The cluster definition of the existing cluster\n@param finalCluster The final cluster definition\n@param stealNodeId Node id of the stealer node\n@return Returns a list of primary partitions which this stealer node will\nget" ]
[ "Use this API to add tmtrafficaction.", "The user to remove can be referenced by their globally unique user ID or their email address.\nRemoves the user from the specified team. Returns an empty data record.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Obtain a dbserver client session that can be used to perform some task, call that task with the client,\nthen release the client.\n\n@param targetPlayer the player number whose dbserver we wish to communicate with\n@param task the activity that will be performed with exclusive access to a dbserver connection\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@param <T> the type that will be returned by the task to be performed\n\n@return the value returned by the completed task\n\n@throws IOException if there is a problem communicating\n@throws Exception from the underlying {@code task}, if any", "Create a Count-Query for QueryBySQL\n\n@param aQuery\n@return The count query", "Use this API to fetch statistics of nspbr6_stats resource of given name .", "Returns the description of the running container.\n\n@param client the client used to query the server\n\n@return the description of the running container\n\n@throws IOException if an error occurs communicating with the server\n@throws OperationExecutionException if the operation used to query the container fails", "Removes the specified entry point\n\n@param controlPoint The entry point", "Use this API to fetch the statistics of all protocoludp_stats resources that are configured on netscaler.", "Adds an additional description to the constructed document.\n\n@param text\nthe text of the description\n@param languageCode\nthe language code of the description\n@return builder object to continue construction" ]
public static String checkRequiredProperties(Properties props, String ... requiredProps) { for (String required : requiredProps) { if (props.getProperty(required) == null) { return required; } } return null; }
[ "If any of the given list of properties are not found, returns the\nname of that property. Otherwise, returns null." ]
[ "Provides an object that can build SQL clauses to match this string representation.\n\nThis method can be overridden for other IP address types to match in their own ways.\n\n@param isEntireAddress\n@param translator\n@return", "Updates the indices in the index buffer from a Java CharBuffer.\nAll of the entries of the input buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data CharBuffer containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Get a list of referring domains for a collection.\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 collectionId\n(Optional) The id of the collection to get stats for. If not provided, stats for all collections 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.getCollectionDomains.html\"", "Creates the HikariCP configuration based on the configuration of a pool defined in opencms.properties.\n\n@param config the configuration object with the properties\n@param key the pool name (without the opencms prefix)\n\n@return the HikariCP configuration for the pool", "Returns the list of atlas information necessary to map\nthe texture atlas to each scene object.\n\n@return List of atlas information.", "Builds the task hierarchy.\n\nNote that there are two distinct levels of organisation going on here. The first is the\nAsta \"summary\" organisation, where the user organises bars into summary groups. We are using this\nto create our hierarchy of tasks.\n\nThe second level displayed within a summary group (or at the project level if the user has not\ncreated summary groups) is the WBS. At the moment we are not including the WBS in the hierarchy.\n\n@param bars bar data\n@param expandedTasks expanded task data\n@param tasks task data\n@param milestones milestone data\n@return list containing the top level tasks", "Validate JUnit4 presence in a concrete version.", "Remove a handler from the list\n@param toRemove The handler to remove. Any handler object that\nmatches this class will be removed.\n@return true if this handler was in the list.", "Adds a new Site matcher object to the map of server names.\n\n@param matcher the SiteMatcher of the server\n@param site the site to add" ]
public Map<String, List<Locale>> getAvailableLocales() { if (m_availableLocales == null) { // create lazy map only on demand m_availableLocales = CmsCollectionsGenericWrapper.createLazyMap(new CmsAvailableLocaleLoaderTransformer()); } return m_availableLocales; }
[ "Returns a lazily generated map from site paths of resources to the available locales for the resource.\n\n@return a lazily generated map from site paths of resources to the available locales for the resource." ]
[ "Use this API to add clusternodegroup resources.", "Logs the time taken by this rule and adds this to the total time taken for this phase", "Convert Collection to Set\n@param collection Collection\n@return Set", "Checks whether two internet addresses are on the same subnet.\n\n@param prefixLength the number of bits within an address that identify the network\n@param address1 the first address to be compared\n@param address2 the second address to be compared\n\n@return true if both addresses share the same network bits", "Updates the value in HashMap and writeBack as Atomic step", "Notifies all interested subscribers of the given revision.\n\n@param mwRevision\nthe given revision\n@param isCurrent\ntrue if this is guaranteed to be the most current revision", "Prints the help on the command line\n\n@param options Options object from commons-cli", "Get the raw bytes of the beat grid as it was read over the network. This can be used to analyze fields\nthat have not yet been reliably understood, and is also used for storing the beat grid in a cache file.\nThis is not available when the beat grid was loaded by Crate Digger.\n\n@return the bytes that make up the beat grid", "Helper method that encapsulates the minimum logic for adding jobs to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJsons\na list of jobs serialized as JSON" ]
public int getTotalLeased(){ int total=0; for (int i=0; i < this.partitionCount && this.partitions[i] != null; i++){ total+=this.partitions[i].getCreatedConnections()-this.partitions[i].getAvailableConnections(); } return total; }
[ "Return total number of connections currently in use by an application\n@return no of leased connections" ]
[ "Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found.", "Create a JsonParser for a given json node.\n@param jsonNode the json node\n@return the json parser\n@throws IOException", "This method performs a set of queries to retrieve information\nfrom the an MPP or an MPX file.\n\n@param filename name of the MPX file\n@throws Exception on file read error", "This adds database table configurations to the internal cache which can be used to speed up DAO construction.\nThis is especially true of Android and other mobile platforms.", "Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Use this API to fetch appfwhtmlerrorpage resource of given name .", "Return a stream of resources from a response\n\n@param response the response\n@param <R> the resource type\n@param <U> the response type\n@return a stream of resources from the response", "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", "Adds the content info for the collected resources used in the \"This page\" publish dialog." ]
protected String getExtraSolrParams() { try { return m_configObject.getString(JSON_KEY_EXTRASOLRPARAMS); } catch (JSONException e) { if (null == m_baseConfig) { if (LOG.isInfoEnabled()) { LOG.info(Messages.get().getBundle().key(Messages.LOG_NO_EXTRA_PARAMETERS_0), e); } return ""; } else { return m_baseConfig.getGeneralConfig().getExtraSolrParams(); } } }
[ "Returns the configured extra parameters that should be given to Solr, or the empty string if no parameters are configured.\n@return The configured extra parameters that should be given to Solr, or the empty string if no parameters are configured." ]
[ "Use this API to update autoscaleaction.", "Use this API to add appfwjsoncontenttype resources.", "Get all components of a specific class from this scene object and its descendants.\n@param type component type (as returned from getComponentType())\n@return ArrayList of components with the specified class.", "Returns an iterator that iterates over all elements greater or equal to key in ascending order\n\n@param key key\n@return iterator", "Validates this string is a valid address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws AddressStringException", "Use this API to update sslocspresponder.", "Returns information for a specific client\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return\n@throws Exception", "Initial setup of the service worker registration.", "Synchronize the geotools transaction with the platform transaction, if such a transaction is active.\n\n@param featureStore\n@param dataSource" ]
public Query getCountQuery(Query aQuery) { if(aQuery instanceof QueryBySQL) { return getQueryBySqlCount((QueryBySQL) aQuery); } else if(aQuery instanceof ReportQueryByCriteria) { return getReportQueryByCriteriaCount((ReportQueryByCriteria) aQuery); } else { return getQueryByCriteriaCount((QueryByCriteria) aQuery); } }
[ "Build a Count-Query based on aQuery\n@param aQuery\n@return The count query" ]
[ "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Creates a date from the equivalent long value. This conversion\ntakes account of the time zone.\n\n@param date date expressed as a long integer\n@return new Date instance", "Dump timephased work for an assignment.\n\n@param assignment resource assignment", "except for the ones that make the content appear under the system bars.", "An endpoint to compile an array of soy templates to JavaScript.\n\nThis endpoint is a preferred way of compiling soy templates to JavaScript but it requires a user to compose a url\non their own or using a helper class TemplateUrlComposer, which calculates checksum of a file and puts this in url\nso that whenever a file changes, after a deployment a JavaScript, url changes and a new hash is appended to url, which enforces\ngetting of new compiles JavaScript resource.\n\nInvocation of this url may throw two types of http exceptions:\n1. notFound - usually when a TemplateResolver cannot find a template with an associated name\n2. error - usually when there is a permission error and a user is not allowed to compile a template into a JavaScript\n\n@param hash - some unique number that should be used when we are caching this resource in a browser and we use http cache headers\n@param templateFileNames - an array of template names, e.g. client-words,server-time, which may or may not contain extension\ncurrently three modes are supported - soy extension, js extension and no extension, which is preferred\n@param disableProcessors - whether the controller should run registered outputProcessors after the compilation is complete.\n@param request - HttpServletRequest\n@param locale - locale\n@return response entity, which wraps a compiled soy to JavaScript files.\n@throws IOException - io error", "Use this API to fetch nssimpleacl resources of given names .", "Starts the compressor.", "Input method, called by a Subscriber indicating its intent into receive notification about a given topic.\n\n@param sr DTO containing the info given by the protocol", "Create a new thread\n\n@param name The name of the thread\n@param runnable The work for the thread to do\n@param daemon Should the thread block JVM shutdown?\n@return The unstarted thread" ]
public synchronized void stop () { if (isRunning()) { MetadataFinder.getInstance().removeTrackMetadataListener(metadataListener); WaveformFinder.getInstance().removeWaveformListener(waveformListener); BeatGridFinder.getInstance().removeBeatGridListener(beatGridListener); running.set(false); pendingUpdates.clear(); queueHandler.interrupt(); queueHandler = null; // Report the loss of our signatures, on the proper thread, outside our lock final Set<Integer> dyingSignatures = new HashSet<Integer>(signatures.keySet()); signatures.clear(); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { for (Integer player : dyingSignatures) { deliverSignatureUpdate(player, null); } } }); } deliverLifecycleAnnouncement(logger, false); }
[ "Stop finding signatures for all active players." ]
[ "Create a Vendor from a Func0", "Use this API to fetch vlan resource of given name .", "Converts from an Accumulo Key to a Fluo RowColumn\n\n@param key Key\n@return RowColumn", "Returns the meta-data for the inverse side of the association represented by the given property on the given\npersister in case it represents the main side of a bi-directional one-to-many or many-to-many association.\n\n@param mainSidePersister persister of the entity hosting the property of interest\n@param propertyIndex index of the property of interest\n@return the meta-data of the inverse side of the specified association or {@code null} if no such meta-data\nexists", "Get the Operation metadata for an MBean by name.\n@return the {@link Map} of {@link String} operation names to {@link MBeanOperationInfo} values.", "Rethrows OperationCanceledErrors and wraps platform specific OperationCanceledExceptions. Does nothing for any other type of Throwable.", "Transforms user name and icon size into the image path.\n\n@param name the user name\n@param size IconSize to get icon for\n\n@return the path", "Validates this string is a valid address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws AddressStringException", "Add an addon to the app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAllAddons} to get a list of addons that can be used.\n@return The request object" ]
public static <T> List<T> toList(Iterator<? extends T> iterator) { return Lists.newArrayList(iterator); }
[ "Returns a list that contains all the entries of the given iterator in the same order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a list with the same entries as the given iterator. Never <code>null</code>." ]
[ "Use this API to add onlinkipv6prefix.", "Write the auxiliary RDF data for encoding the given value.\n\n@param value\nthe value to write\n@param resource\nthe (subject) URI to use to represent this value in RDF\n@throws RDFHandlerException", "Retrieve the value from the REST request body.\n\nTODO: REST-Server value cannot be null ( null/empty string ?)", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Generate a where clause for a prepared Statement.\nOnly primary key and locking fields are used in this where clause\n\n@param cld the ClassDescriptor\n@param useLocking true if locking fields should be included\n@param stmt the StatementBuffer", "Update rows in the database.", "Read the parameters on initialization.\n\n@see org.apache.solr.update.processor.UpdateRequestProcessorFactory#init(org.apache.solr.common.util.NamedList)", "Hardcode a copy method as being valid. This should be used to tell Mutability Detector about\na method which copies a collection, and when the copy can be wrapped in an immutable wrapper\nwe can consider the assignment immutable. Useful for allowing Mutability Detector to correctly\nwork with other collections frameworks such as Google Guava. Reflection is used to obtain the\nmethod's descriptor and to verify the method's existence.\n\n@param fieldType - the type of the field to which the result of the copy is assigned\n@param fullyQualifiedMethodName - the fully qualified method name\n@param argType - the type of the argument passed to the copy method\n\n@throws MutabilityAnalysisException - if the specified class or method does not exist\n@throws IllegalArgumentException - if any of the arguments are null", "Use this API to fetch filtered set of sslglobal_sslpolicy_binding resources.\nset the filter parameter values in filtervalue object." ]
void forcedUndeployScan() { if (acquireScanLock()) { try { ROOT_LOGGER.tracef("Performing a post-boot forced undeploy scan for scan directory %s", deploymentDir.getAbsolutePath()); ScanContext scanContext = new ScanContext(deploymentOperations); // Add remove actions to the plan for anything we count as // deployed that we didn't find on the scan for (Map.Entry<String, DeploymentMarker> missing : scanContext.toRemove.entrySet()) { // remove successful deployment and left will be removed if (scanContext.registeredDeployments.containsKey(missing.getKey())) { scanContext.registeredDeployments.remove(missing.getKey()); } } Set<String> scannedDeployments = new HashSet<String>(scanContext.registeredDeployments.keySet()); scannedDeployments.removeAll(scanContext.persistentDeployments); List<ScannerTask> scannerTasks = scanContext.scannerTasks; for (String toUndeploy : scannedDeployments) { scannerTasks.add(new UndeployTask(toUndeploy, deploymentDir, scanContext.scanStartTime, true)); } try { executeScannerTasks(scannerTasks, deploymentOperations, true); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } ROOT_LOGGER.tracef("Forced undeploy scan complete"); } catch (Exception e) { ROOT_LOGGER.scanException(e, deploymentDir.getAbsolutePath()); } finally { releaseScanLock(); } } }
[ "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." ]
[ "caching is not supported for this method", "Sets the value of a UDF.\n\n@param udf user defined field\n@param dataType MPXJ data type\n@param value field value", "Returns a File object whose path is the expected user directory.\nDoes not create or check for existence.\n@param prefix\n@param suffix\n@param parent\n@return", "Map the EventType.\n\n@param eventType the event type\n@return the event", "Use this API to unset the properties of sslocspresponder resource.\nProperties that need to be unset are specified in args array.", "Start the actual migration. Take the version of the database, get all required migrations and execute them or do\nnothing if the DB is already up to date.\n\nAt the end the underlying database instance is closed.\n\n@throws MigrationException if a migration fails", "Configures a text field to look like a filter box for a table.\n\n@param searchBox the text field to configure", "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set", "Gets the Symmetric Kullback-Leibler distance.\nThis metric is valid only for real and positive P and Q.\n\n@param p P vector.\n@param q Q vector.\n@return The Symmetric Kullback Leibler distance between p and q." ]
@SuppressWarnings("WeakerAccess") protected void clearRmiTargetsMap(ClassLoaderLeakPreventor preventor, Map<?, ?> rmiTargetsMap) { try { final Field cclField = preventor.findFieldOfClass("sun.rmi.transport.Target", "ccl"); preventor.debug("Looping " + rmiTargetsMap.size() + " RMI Targets to find leaks"); for(Iterator<?> iter = rmiTargetsMap.values().iterator(); iter.hasNext(); ) { Object target = iter.next(); // sun.rmi.transport.Target ClassLoader ccl = (ClassLoader) cclField.get(target); if(preventor.isClassLoaderOrChild(ccl)) { preventor.warn("Removing RMI Target: " + target); iter.remove(); } } } catch (Exception ex) { preventor.error(ex); } }
[ "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader" ]
[ "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", "Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name .", "Disassociate a name with an object\n@param name The name of an object.\n@exception ObjectNameNotFoundException No object exists in the database with that name.", "Opens file for editing.\n\n@param currentChangeListId The current change list id to open the file for editing at\n@param filePath The filePath which contains the file we need to edit\n@throws IOException Thrown in case of perforce communication errors\n@throws InterruptedException", "Get the set of metadata providers that can offer metadata for tracks loaded from the specified media.\n\n@param sourceMedia the media whose metadata providers are desired, or {@code null} to get the set of\nmetadata providers that can offer metadata for all media.\n\n@return any registered metadata providers that reported themselves as supporting tracks from that media", "if you want to convert some string to an object, you have an argument to parse", "Upload file and set odo overrides and configuration of odo\n\n@param fileName File containing configuration\n@param odoImport Import odo configuration in addition to overrides\n@return If upload was successful", "Gets Widget bounds depth\n@return depth", "This methods enhances the objects loaded by a broker query\nwith a JDO StateManager an brings them under JDO control.\n@param pojos the OJB pojos as obtained by the broker\n@return the collection of JDO PersistenceCapable instances" ]
private static BoxRetentionPolicy.Info createRetentionPolicy(BoxAPIConnection api, String name, String type, int length, String action, RetentionPolicyParams optionalParams) { URL url = RETENTION_POLICIES_URL_TEMPLATE.build(api.getBaseURL()); BoxJSONRequest request = new BoxJSONRequest(api, url, "POST"); JsonObject requestJSON = new JsonObject() .add("policy_name", name) .add("policy_type", type) .add("disposition_action", action); if (!type.equals(TYPE_INDEFINITE)) { requestJSON.add("retention_length", length); } if (optionalParams != null) { requestJSON.add("can_owner_extend_retention", optionalParams.getCanOwnerExtendRetention()); requestJSON.add("are_owners_notified", optionalParams.getAreOwnersNotified()); List<BoxUser.Info> customNotificationRecipients = optionalParams.getCustomNotificationRecipients(); if (customNotificationRecipients.size() > 0) { JsonArray users = new JsonArray(); for (BoxUser.Info user : customNotificationRecipients) { JsonObject userJSON = new JsonObject() .add("type", "user") .add("id", user.getID()); users.add(userJSON); } requestJSON.add("custom_notification_recipients", users); } } request.setBody(requestJSON.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); BoxRetentionPolicy createdPolicy = new BoxRetentionPolicy(api, responseJSON.get("id").asString()); return createdPolicy.new Info(responseJSON); }
[ "Used to create a new retention policy with optional parameters.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param type the type of the retention policy. Can be \"finite\" or \"indefinite\".\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@param optionalParams the optional parameters.\n@return the created retention policy's info." ]
[ "Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .", "Use this API to fetch all the appqoepolicy resources that are configured on netscaler.", "Return as a string the stereotypes associated with c\nterminated by the escape character term", "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener", "Add a content modification.\n\n@param modification the content modification", "Print rate.\n\n@param rate Rate instance\n@return rate value", "Parses the given Reader for PmdRuleSets.\n\n@return The extracted PmdRuleSet - empty in case of problems, never null.", "This adds to the feature name the name of classes that are other than\nthe current class that are involved in the clique. In the CMM, these\nother classes become part of the conditioning feature, and only the\nclass of the current position is being predicted.\n\n@return A collection of features with extra class information put\ninto the feature name.", "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model" ]
public static int countTrue(BMatrixRMaj A) { int total = 0; int N = A.getNumElements(); for (int i = 0; i < N; i++) { if( A.data[i] ) total++; } return total; }
[ "Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements" ]
[ "Gets a SerialMessage with the SENSOR_ALARM_SUPPORTED_GET command\n@return the serial message, or null if the supported command is not supported.", "Calculate start dates for a yearly recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Specifies convergence criteria\n\n@param maxIterations Maximum number of iterations\n@param ftol convergence based on change in function value. try 1e-12\n@param gtol convergence based on residual magnitude. Try 1e-12", "main class entry point.", "Use this API to fetch aaagroup_vpntrafficpolicy_binding resources of given name .", "Get a property as a json array or default.\n\n@param key the property name\n@param defaultValue default", "Adds a class entry to this JAR.\n\n@param clazz the class to add to the JAR.\n@return {@code this}" ]
@Override protected void doLinking() { IParseResult parseResult = getParseResult(); if (parseResult == null || parseResult.getRootASTElement() == null) return; XtextLinker castedLinker = (XtextLinker) getLinker(); castedLinker.discardGeneratedPackages(parseResult.getRootASTElement()); }
[ "Overridden to do only the clean-part of the linking but not\nthe actual linking. This is deferred until someone wants to access\nthe content of the resource." ]
[ "Set all unknown fields\n@param unknownFields the new unknown fields", "Modify a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder", "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.", "Print a booking type.\n\n@param value BookingType instance\n@return booking type value", "Sets the duration for the animations in this animator.\n\n@param start the animation will start playing from the specified time\n@param end the animation will stop playing at the specified time\n\n@see GVRAnimation#setDuration(float, float)", "Remove a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param isDirectory whether the file is a directory or not\n@return the builder", "Return the count of all objects found\nfor given class, using the PB-api within\nODMG - this may change in further versions.", "Use this API to fetch all the sslocspresponder resources that are configured on netscaler.", "Authenticate with the target database using OAuth.\n\n@param consumerSecret consumer secret\n@param consumerKey consumer key\n@param tokenSecret token secret\n@param token token\n@return this Replication instance to set more options\n@deprecated OAuth 1.0 implementation has been <a href=\"http://docs.couchdb.org/en/stable/whatsnew/2.1.html?highlight=oauth#upgrade-notes\"\ntarget=\"_blank\">removed in CouchDB 2.1</a>" ]
public static Shell createSubshell(String pathElement, Shell parent, String appName, Object mainHandler) { return createSubshell(pathElement, parent, appName, mainHandler, new EmptyMultiMap<String, Object>()); }
[ "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" ]
[ "Adds a corporate groupId to an organization\n\n@param organizationId String\n@param corporateGroupId String", "Use this API to update systemcollectionparam.", "Returns a ReportWriter that which will use memory or a file depending on the parameter PAGES_THRESHOLD\n@param _jasperPrint\n@param _format\n@param _parameters\n@return", "Try Oracle update batching and call executeUpdate or revert to\nJDBC update batching.\n@param stmt the statement beeing added to the batch\n@throws PlatformException upon JDBC failure", "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", "Print the parameters of the parameterized type t", "Attaches a pre-existing set of hours to the correct\nday within the calendar.\n\n@param hours calendar hours instance", "Compares two annotated types and returns true if they are the same", "Stops all servers linked with the current camel context\n\n@param camelContext" ]
private PreparedStatement prepareBatchStatement(String sql) { String sqlCmd = sql.substring(0, 7); if (sqlCmd.equals("UPDATE ") || sqlCmd.equals("DELETE ") || (_useBatchInserts && sqlCmd.equals("INSERT "))) { PreparedStatement stmt = (PreparedStatement) _statements.get(sql); if (stmt == null) { // [olegnitz] for JDK 1.2 we need to list both PreparedStatement and Statement // interfaces, otherwise proxy.jar works incorrectly stmt = (PreparedStatement) Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{ PreparedStatement.class, Statement.class, BatchPreparedStatement.class}, new PreparedStatementInvocationHandler(this, sql, m_jcd)); _statements.put(sql, stmt); } return stmt; } else { return null; } }
[ "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null." ]
[ "Deregister shutdown hook and execute it immediately", "Call the no-arg constructor for the given class\n\n@param <T> The type of the thing to construct\n@param klass The class\n@return The constructed thing", "Recursively update parent task dates.\n\n@param parentTask parent task", "Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources.", "Use this API to fetch all the dbdbprofile resources that are configured on netscaler.", "Used for initialization of the underlying map provider.\n\n@param fragmentManager required for initialization", "Checks if a given number is in the range of a double.\n\n@param number\na number which should be in the range of a double (positive or negative)\n\n@see java.lang.Double#MIN_VALUE\n@see java.lang.Double#MAX_VALUE\n\n@return number as a double", "Populates a recurring task.\n\n@param record MPX record\n@param task recurring task\n@throws MPXJException", "Adjust the date according to the whole day options.\n\n@param date the date to adjust.\n@param isEnd flag, indicating if the date is the end of the event (in contrast to the beginning)\n\n@return the adjusted date, which will be exactly the beginning or the end of the provide date's day." ]
public ParallelTaskBuilder setSshPrivKeyRelativePathWtihPassphrase( String privKeyRelativePath, String passphrase) { this.sshMeta.setPrivKeyRelativePath(privKeyRelativePath); this.sshMeta.setPrivKeyUsePassphrase(true); this.sshMeta.setPassphrase(passphrase); this.sshMeta.setSshLoginType(SshLoginType.KEY); return this; }
[ "Sets the ssh priv key relative path wtih passphrase.\n\n@param privKeyRelativePath the priv key relative path\n@param passphrase the passphrase\n@return the parallel task builder" ]
[ "Use this API to add nsacl6 resources.", "Gets the path used for the results of XSLT Transforms.", "Get the size of the painting area required to draw the scalebar with labels.\n\n@param scalebarParams Parameters for the scalebar.\n@param settings Parameters for rendering the scalebar.\n@param maxLabelSize The max. size of the labels.", "Get a list of referring domains for a photoset.\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 photosetId\n(Optional) The id of the photoset 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.getPhotosetDomains.html\"", "Declares a fresh Builder to copy default property values from.\n\n<p>Reuses an existing fresh Builder instance if one was already declared in this scope.\n\n@returns a variable holding a fresh Builder, if a no-args factory method is available to\ncreate one with", "Get a property as a boolean or default value.\n\n@param key the property name\n@param defaultValue the default", "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "Parse units.\n\n@param value units value\n@return units value", "Obtain the annotation associated with this type descriptor of the specified type.\n@param annotationType the annotation type\n@return the annotation, or {@code null} if no such annotation exists on this type descriptor" ]
@Override public void finish() { if (started.get() && !finished.getAndSet(true)) { waitUntilFinished(); super.finish(); // recreate thread (don't start) for processor reuse createProcessorThread(); clearQueues(); started.set(false); } }
[ "Signals that the processor to finish and waits until it finishes." ]
[ "Use this API to fetch transformpolicy resource of given name .", "Maps this iterable from the source document type to the target document type.\n\n@param mapper a function that maps from the source to the target document type\n@param <U> the target document type\n@return an iterable which maps T to U", "Create a WebMBeanAdaptor for a specified MBean name.\n@param mBeanName the MBean name (can be URL-encoded).\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the created WebMBeanAdaptor.\n@throws JMException Java Management Exception\n@throws UnsupportedEncodingException if the encoding is not supported.", "Returns the count of all inbox messages for the user\n@return int - count of all inbox messages", "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1", "Retrieves the amount of time represented by a calendar exception\nbefore or after an intersection point.\n\n@param exception calendar exception\n@param date intersection time\n@param after true to report time after intersection, false to report time before\n@return length of time in milliseconds", "Use this API to fetch auditnslogpolicy_systemglobal_binding resources of given name .", "Determines if the key replicates to the given node\n\n@param key\n@param nodeId\n@return true if the key belongs to the node as some replica", "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value" ]
public void setCustomRequest(int pathId, String customRequest, String clientUUID) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { int profileId = EditService.getProfileIdFromPathID(pathId); statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_REQUEST_RESPONSE + " SET " + Constants.REQUEST_RESPONSE_CUSTOM_REQUEST + "= ?" + " WHERE " + Constants.GENERIC_PROFILE_ID + "= ?" + " AND " + Constants.GENERIC_CLIENT_UUID + "= ?" + " AND " + Constants.REQUEST_RESPONSE_PATH_ID + "= ?" ); statement.setString(1, customRequest); statement.setInt(2, profileId); statement.setString(3, clientUUID); statement.setInt(4, pathId); statement.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Set the value for a custom request\n\n@param pathId ID of path\n@param customRequest value of custom request\n@param clientUUID UUID of client" ]
[ "Add WSAddressing Interceptors to InterceptorProvider, in order to using\nAddressingProperties to get MessageID.\n\n@param provider the interceptor provider", "Creates an operation to read a resource.\n\n@param address the address to create the read for\n@param recursive whether to search recursively or not\n\n@return the operation", "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.", "Removing surrounding space in image. Get trim color from specified pixel.\n@param value orientation from where to get the pixel color.\n@param colorTolerance 0 - 442. This is the euclidian distance\nbetween the colors of the reference pixel and the surrounding pixels is used.\nIf the distance is within the tolerance they'll get trimmed.", "With the Batik SVG library it is only possible to create new SVG graphics, but you can not modify an\nexisting graphic. So, we are loading the SVG file as plain XML and doing the modifications by hand.", "Provides a ready to use diff update for our adapter based on the implementation of the\nstandard equals method from Object.\n\n@param newList to refresh our content", "This method will add a DemoInterceptor into every in and every out phase\nof the interceptor chains.\n\n@param provider", "Retrieves the notes text for this resource.\n\n@return notes text", "Implements the instanceof operator.\n\n@param instance The value that appeared on the LHS of the instanceof\noperator\n@return true if \"this\" appears in value's prototype chain" ]
public Day getDayOfWeek() { Day result = null; if (!m_days.isEmpty()) { result = m_days.iterator().next(); } return result; }
[ "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week" ]
[ "Look for a style in the named styles provided in the configuration.\n\n@param styleName the name of the style to look for.", "Gets a legend graphic with the specified metadata parameters. All parameters are passed as request parameters.\n\n@param layerId\nthe layer id\n@param styleName\nthe style name\n@param ruleIndex\nthe rule index\n@param format\nthe image format ('png','jpg','gif')\n@param width\nthe graphic's width\n@param height\nthe graphic's height\n@param scale\nthe scale denominator (not supported yet)\n@param allRules\nif true the image will contain all rules stacked vertically\n@param request\nthe servlet request object\n@return the model and view\n@throws GeomajasException\nwhen a style or rule does not exist or is not renderable", "Each schema set has its own database cluster. The template1 database has the schema preloaded so that\neach test case need only create a new database and not re-invoke Migratory.", "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance", "Execute a redirected request\n\n@param stringStatusCode\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@throws Exception", "Create button message key.\n\n@param gallery name\n@return Button message key as String", "Writes a list of timephased data to the MSPDI file.\n\n@param assignmentID current assignment ID\n@param list output list of timephased data items\n@param data input list of timephased data\n@param type list type (planned or completed)", "test, how many times the group was present in the list of groups.", "Write the configuration to a buffered writer." ]
private boolean isForGerritHost(HttpRequest request) { if (!(request instanceof HttpRequestWrapper)) return false; HttpRequest originalRequest = ((HttpRequestWrapper) request).getOriginal(); if (!(originalRequest instanceof HttpRequestBase)) return false; URI uri = ((HttpRequestBase) originalRequest).getURI(); URI authDataUri = URI.create(authData.getHost()); if (uri == null || uri.getHost() == null) return false; boolean hostEquals = uri.getHost().equals(authDataUri.getHost()); boolean portEquals = uri.getPort() == authDataUri.getPort(); return hostEquals && portEquals; }
[ "Checks if request is intended for Gerrit host." ]
[ "Use this API to fetch all the sslservice resources that are configured on netscaler.", "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>.", "Get a timer of the given string name and todos for the current thread. If\nno such timer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return timer", "Append field with quotes and escape characters added, if required.\n\n@return this", "a small static helper to set a multi state drawable on a view\n\n@param icon\n@param iconColor\n@param selectedIcon\n@param selectedIconColor\n@param tinted\n@param imageView", "Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy", "Use this API to fetch clusterinstance_binding resource of given name .", "Returns an empty Promotion details in Json\n\n@return String\n@throws IOException", "This method retrieves a double value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of a double\n@return double value" ]
public int getInt(Integer type) { int result = 0; byte[] item = m_map.get(type); if (item != null) { result = MPPUtility.getInt(item, 0); } return (result); }
[ "Retrieves an integer value from the extended data.\n\n@param type Type identifier\n@return integer value" ]
[ "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record", "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\"", "Restores a trashed file to a new location with a new name.\n@param fileID the ID of the trashed file.\n@param newName an optional new name to give the file. This can be null to use the file's original name.\n@param newParentID an optional new parent ID for the file. This can be null to use the file's original\nparent.\n@return info about the restored file.", "Write a comma to the output stream if required.", "Resizes an image to the specified height, changing width in the same proportion\n@param originalImage Image in memory\n@param heightOut The height to resize\n@return New Image in memory", "Returns the foreignkey to the specified table.\n\n@param name The name of the foreignkey\n@param tableName The name of the referenced table\n@return The foreignkey def or <code>null</code> if it does not exist", "FastJSON does not provide the API so we have to create our own", "Registers a new site for specific data collection. If null is used as a\nsite key, then all data is collected.\n\n@param siteKey\nthe site to collect geo data for", "Loads the configuration file, using CmsVfsMemoryObjectCache for caching.\n\n@param cms the CMS context\n@return the template mapper configuration" ]
public int getVertices(double[] coords) { for (int i = 0; i < numVertices; i++) { Point3d pnt = pointBuffer[vertexPointIndices[i]].pnt; coords[i * 3 + 0] = pnt.x; coords[i * 3 + 1] = pnt.y; coords[i * 3 + 2] = pnt.z; } return numVertices; }
[ "Returns the coordinates of the vertex points of this hull.\n\n@param coords\nreturns the x, y, z coordinates of each vertex. This length of\nthis array must be at least three times the number of\nvertices.\n@return the number of vertices\n@see QuickHull3D#getVertices()\n@see QuickHull3D#getFaces()" ]
[ "Return the List of VariableExpression objects referenced by the specified DeclarationExpression.\n@param declarationExpression - the DeclarationExpression\n@return the List of VariableExpression objects", "other static handlers", "Finish the initialization.\n\n@param container\n@param isShutdownHookEnabled", "Find the number of Strings matched to the given Matcher.\n\n@param matcher a Matcher\n@return int the number of Strings matched to the given matcher.\n@since 1.0", "Updates the image information.", "Print a booking type.\n\n@param value BookingType instance\n@return booking type value", "Synchronize the required files to a slave HC from the master DC if this is required.\n@param fileRepository the HostFileRepository of the HC.\n@param contentRepository the ContentRepository of the HC.\n@param backup inidcates if this is a DC backup HC.\n@param oldHash the hash of the deployment to be replaced.\n@return true if the content should be pulled by the slave HC - false otherwise.", "Set the dither matrix.\n@param matrix the dither matrix\n@see #getMatrix", "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" ]
public static void write(BufferedWriter writer, DatabaseFieldConfig config, String tableName) throws SQLException { try { writeConfig(writer, config, tableName); } catch (IOException e) { throw SqlExceptionUtil.create("Could not write config to writer", e); } }
[ "Write the configuration to a buffered writer." ]
[ "Fills the week panel with checkboxes.", "Sign off a group of connections from the registry by key\n\n@param key\nthe key\n@param connections\na collection of websocket connections", "map a property id. Property id can only be an Integer or String", "Adds a file to your assembly but automatically generates the field name of the file.\n\n@param file {@link File} the file to be uploaded.", "Use this API to update appfwlearningsettings.", "Overridden to do only the clean-part of the linking but not\nthe actual linking. This is deferred until someone wants to access\nthe content of the resource.", "Does the given class has bidirectional assiciation\nwith some other class?", "Generate a VideoCollection with random data obtained form VIDEO_INFO map. You don't need o\ncreate your own AdapteeCollections. Review ListAdapteeCollection if needed.\n\n@param videoCount size of the collection.\n@return VideoCollection generated.", "Reads a \"flags\" argument from the request." ]
public void setFarClippingDistance(float far) { if(leftCamera instanceof GVRCameraClippingDistanceInterface && centerCamera instanceof GVRCameraClippingDistanceInterface && rightCamera instanceof GVRCameraClippingDistanceInterface) { ((GVRCameraClippingDistanceInterface)leftCamera).setFarClippingDistance(far); centerCamera.setFarClippingDistance(far); ((GVRCameraClippingDistanceInterface)rightCamera).setFarClippingDistance(far); } }
[ "Sets the distance from the origin to the far clipping plane for the\nwhole camera rig.\n\n@param far\nDistance to the far clipping plane." ]
[ "Returns the overtime cost of this resource assignment.\n\n@return cost", "Sets number of pages. If the index of currently selected page is bigger than the total number\nof pages, first page will be selected instead.\n@return difference between the previous number of pages and new one. Negative value is\nreturned if new number of pages is less then it was before.", "Writes triples to determine the statements with the highest rank.", "Move the animation frame counter forward.\n\n@return boolean specifying if animation should continue or if loopCount has been fulfilled.", "Close tracks when the JVM shuts down.\n@return this", "Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of part IDs to part values\n@return the original secret\n@throws IllegalArgumentException if {@code parts} is empty or contains values of varying\nlengths", "Read the work weeks.\n\n@param data calendar data\n@param offset current offset into data\n@param cal parent calendar", "Get a property as a string or throw an exception.\n\n@param key the property name", "Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges" ]
public static Module createModule(final String name,final String version){ final Module module = new Module(); module.setName(name); module.setVersion(version); module.setPromoted(false); return module; }
[ "Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module" ]
[ "Calculate standart deviation.\n@param values Values.\n@param mean Mean.\n@return Standart deviation.", "This method is used to recreate the hierarchical structure of the\nproject file from scratch. The method sorts the list of all tasks,\nthen iterates through it creating the parent-child structure defined\nby the outline level field.", "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Progress info message\n\n@param tag Message that precedes progress info. Indicate 'keys' or\n'entries'.", "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", "Zeros an inner rectangle inside the matrix.\n\n@param A Matrix that is to be modified.\n@param row0 Start row.\n@param row1 Stop row+1.\n@param col0 Start column.\n@param col1 Stop column+1.", "Returns a string to resolve apostrophe issue in xpath\n\n@param text\n@return the apostrophe resolved xpath value string", "Returns a resource wrapper created from the input.\n\nThe wrapped result of {@link #convertRawResource(CmsObject, Object)} is returned.\n\n@param cms the current OpenCms user context\n@param input the input to create a resource from\n\n@return a resource wrapper created from the given Object\n\n@throws CmsException in case of errors accessing the OpenCms VFS for reading the resource", "Print a timestamp value.\n\n@param value time value\n@return time value" ]
protected FluentModelTImpl prepareForFutureCommitOrPostRun(FluentModelTImpl childResource) { if (this.isPostRunMode) { if (!childResource.taskGroup().dependsOn(this.parentTaskGroup)) { this.parentTaskGroup.addPostRunDependentTaskGroup(childResource.taskGroup()); } return childResource; } else { return childResource; } }
[ "Mark the given child resource as the post run dependent of the parent of this collection.\n\n@param childResource the child resource" ]
[ "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", "Use this API to fetch systemsession resources of given names .", "Convenience method to allow a cause. Grrrr.", "Use this API to fetch responderpolicy_binding resource of given name .", "Initialize the class if this is being called with Spring.", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}", "Writes a buffered some-value restriction.\n\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param bnode\nblank node representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "compute Cosh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Toggle between single events and series.\n@param isSeries flag, indicating if we want a series of events." ]
public GroovyMethodDoc[] methods() { Collections.sort(methods); return methods.toArray(new GroovyMethodDoc[methods.size()]); }
[ "returns a sorted array of methods" ]
[ "Returns the temporary directory used by java.\n\n@return The temporary directory\n@throws IOException If an io error occurred", "This could be a self-extracting archive. If we understand the format, expand\nit and check the content for files we can read.\n\n@param stream schedule data\n@return ProjectFile instance", "Adds an item to the list box, specifying its direction and an initial\nvalue 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 dir the item's direction\n@param text the text of the item to be added", "Update a variable name with a date if the variable is detected as being a date.\n\n@param variableName the variable name.\n@param date the date to replace the value with if the variable is a date variable.", "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.", "Set the color resources used in the progress animation from color resources.\nThe first color will also be the color of the bar that grows in response\nto a user swipe gesture.\n\n@param colorResIds", "Returns a CmsSolrQuery representation of this class.\n@param cms the openCms object.\n@return CmsSolrQuery representation of this class.", "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function", "Get a property as a string or throw an exception.\n\n@param key the property name" ]
@Override public final float getFloat(final String key) { Float result = optFloat(key); if (result == null) { throw new ObjectMissingException(this, key); } return result; }
[ "Get a property as a float or throw an exception.\n\n@param key the property name" ]
[ "Returns width and height that allow the given source width, height to fit inside the target width, height\nwithout losing aspect ratio", "Ask the specified player for the specified waveform detail from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform detail\n\n@return the waveform detail, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded", "Initializes a type\n\n@param name The name of the class\n@return The instance of the class. Returns a dummy if the class was not\nfound.", "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 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 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.getPhotostreamReferrers.html\"", "Gets the time warp.\n\n@return the time warp", "Returns the primary message codewords for mode 2.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "Reads a combined date and time value expressed in tenths of a minute.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value" ]
public Task<Void> resendConfirmationEmail(@NonNull final String email) { return dispatcher.dispatchTask( new Callable<Void>() { @Override public Void call() { resendConfirmationEmailInternal(email); return null; } }); }
[ "Resend the confirmation for a user to the given email.\n\n@param email the email of the user.\n@return A {@link Task} that completes when the resend request completes/fails." ]
[ "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Construct a new uri by replacing query parameters in initialUri with the query parameters provided.\n\n@param initialUri the initial/template URI\n@param queryParams the new query parameters.", "Determines if the queue identified by the given key is used.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key is used, false otherwise", "Adds a variable to the end of the token list\n@param variable Variable which is to be added\n@return The new Token created around variable", "Returns details of a previously-requested Organization export.\n\n@param organizationExport Globally unique identifier for the Organization export.\n@return Request object", "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange", "Open an OutputStream and execute the function using the OutputStream.\n\n@param function the function to execute\n@return the URI and the file size", "return the workspace size needed for ctc", "Obtain the annotation associated with this type descriptor of the specified type.\n@param annotationType the annotation type\n@return the annotation, or {@code null} if no such annotation exists on this type descriptor" ]
public static BsonDocument copyOfDocument(final BsonDocument document) { final BsonDocument newDocument = new BsonDocument(); for (final Map.Entry<String, BsonValue> kv : document.entrySet()) { newDocument.put(kv.getKey(), kv.getValue()); } return newDocument; }
[ "Returns a copy of the given document.\n@param document the document to copy.\n@return a copy of the given document." ]
[ "Retrieve the currently cached value for the given document.", "a simple contains helper method, checks if array contains a numToCheck\n\n@param array array of ints\n@param numToCheck value to find\n@return True if found, false otherwise", "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder.", "Simple, high-level API to enable or disable eye picking for this scene\nobject.\n\nThe {@linkplain #attachCollider low-level\nAPI} gives you a lot of control over eye picking, but it does involve an\nawful lot of details. This method\n(and {@link #getPickingEnabled()}) provides a simple boolean property.\nIt attaches a GVRSphereCollider to the scene object. If you want more\naccurate picking, you can use {@link #attachComponent(GVRComponent)} to attach a\nmesh collider instead. The mesh collider is more accurate but also\ncosts more to compute.\n\n@param enabled\nShould eye picking 'see' this scene object?\n\n@since 2.0.2\n@see GVRSphereCollider\n@see GVRMeshCollider", "Record the connection establishment time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param connEstTimeUs The number of us to wait before establishing a\nconnection", "Retrieve a work week which applies to this date.\n\n@param date target date\n@return work week, or null if none match this date", "Utility function that copies a string array and add another string to\nfirst\n\n@param arr Original array of strings\n@param add\n@return Copied array of strings", "Use this API to fetch all the appqoepolicy resources that are configured on netscaler.", "Turns a series of strings into their corresponding license entities\nby using regular expressions\n\n@param licStrings The list of license strings\n@return A set of license entities" ]
public void addFieldDescriptor(FieldDescriptor fld) { fld.setClassDescriptor(this); // BRJ if (m_FieldDescriptions == null) { m_FieldDescriptions = new FieldDescriptor[1]; m_FieldDescriptions[0] = fld; } else { int size = m_FieldDescriptions.length; FieldDescriptor[] tmpArray = new FieldDescriptor[size + 1]; System.arraycopy(m_FieldDescriptions, 0, tmpArray, 0, size); tmpArray[size] = fld; m_FieldDescriptions = tmpArray; // 2. Sort fields according to their getOrder() Property Arrays.sort(m_FieldDescriptions, FieldDescriptor.getComparator()); } m_fieldDescriptorNameMap = null; m_PkFieldDescriptors = null; m_nonPkFieldDescriptors = null; m_lockingFieldDescriptors = null; m_RwFieldDescriptors = null; m_RwNonPkFieldDescriptors = null; }
[ "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld" ]
[ "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", "Compute morse.\n\n@param term the term\n@return the string", "Returns a lazily generated map from site paths of resources to the available locales for the resource.\n\n@return a lazily generated map from site paths of resources to the available locales for the resource.", "Get the inactive history directories.\n\n@return the inactive history", "takes the pixels from a BufferedImage and stores them in an array", "Registers an image to the images cache, so that it can be captured by the build-info proxy.\n\n@param imageId\n@param imageTag\n@param targetRepo\n@param buildInfoId\n@throws IOException", "Return the Payload attached to the current active bucket for |test|.\nAlways returns a payload so the client doesn't crash on a malformed\ntest definition.\n\n@param testName test name\n@return pay load attached to the current active bucket\n@deprecated Use {@link #getPayload(String, Bucket)} instead", "Checks whether an uploaded file can be created in the VFS, and throws an exception otherwise.\n\n@param cms the current CMS context\n@param config the form configuration\n@param name the file name of the uploaded file\n@param size the size of the uploaded file\n\n@throws CmsUgcException if something goes wrong", "Notifies that a content item is inserted.\n\n@param position the position of the content item." ]
public static void validate(final ArtifactQuery artifactQuery) { final Pattern invalidChars = Pattern.compile("[^A-Fa-f0-9]"); if(artifactQuery.getUser() == null || artifactQuery.getUser().isEmpty()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Mandatory field [user] missing") .build()); } if( artifactQuery.getStage() != 0 && artifactQuery.getStage() !=1 ){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Invalid [stage] value (supported 0 | 1)") .build()); } if(artifactQuery.getName() == null || artifactQuery.getName().isEmpty()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Mandatory field [name] missing, it should be the file name") .build()); } if(artifactQuery.getSha256() == null || artifactQuery.getSha256().isEmpty()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Mandatory field [sha256] missing") .build()); } if(artifactQuery.getSha256().length() < 64 || invalidChars.matcher(artifactQuery.getSha256()).find()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Invalid file checksum value") .build()); } if(artifactQuery.getType() == null || artifactQuery.getType().isEmpty()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Mandatory field [type] missing") .build()); } }
[ "Checks if the provided artifactQuery is valid\n\n@param artifactQuery ArtifactQuery\n@throws WebApplicationException if the data is corrupted" ]
[ "Appends the String representation of the given operand to this CharSequence.\n\n@param left a CharSequence\n@param value any Object\n@return the original toString() of the CharSequence with the object appended\n@since 1.8.2", "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "Extracts a particular data model instance from a JSON response\nreturned by MediaWiki. The location is described by a list of successive\nfields to use, from the root to the target object.\n\n@param response\nthe API response as returned by MediaWiki\n@param path\na list of fields from the root to the target object\n@return\nthe parsed POJO object\n@throws JsonProcessingException", "Retrieves the parent task for a Phoenix activity.\n\n@param activity Phoenix activity\n@return parent task", "Makes a DocumentReaderAndWriter based on the flags the CRFClassifier\nwas constructed with. Will create the flags.readerAndWriter and\ninitialize it with the CRFClassifier's flags.", "Init after constructor", "Checks if there's exactly one option that exists among all opts.\n\n@param options OptionSet to checked\n@param opts List of options to be checked\n@throws VoldemortException", "Sets the specified float 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", "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace" ]
public static void printResults(Counter<String> entityTP, Counter<String> entityFP, Counter<String> entityFN) { Set<String> entities = new TreeSet<String>(); entities.addAll(entityTP.keySet()); entities.addAll(entityFP.keySet()); entities.addAll(entityFN.keySet()); boolean printedHeader = false; for (String entity : entities) { double tp = entityTP.getCount(entity); double fp = entityFP.getCount(entity); double fn = entityFN.getCount(entity); printedHeader = printPRLine(entity, tp, fp, fn, printedHeader); } double tp = entityTP.totalCount(); double fp = entityFP.totalCount(); double fn = entityFN.totalCount(); printedHeader = printPRLine("Totals", tp, fp, fn, printedHeader); }
[ "Given counters of true positives, false positives, and false\nnegatives, prints out precision, recall, and f1 for each key." ]
[ "Serialize this `AppDescriptor` and output byte array\n\n@return\nserialize this `AppDescriptor` into byte array", "Loaders call this method to register themselves. This method can be called by\nloaders provided by the application.\n\n@param textureClass\nThe class the loader is responsible for loading.\n\n@param asyncLoaderFactory\nThe factory object.", "Gets a collection of all the email aliases for this user.\n\n<p>Note that the user's primary login email is not included in the collection of email aliases.</p>\n\n@return a collection of all the email aliases for this user.", "Add a resource assignment which has been populated elsewhere.\n\n@param assignment resource assignment", "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.", "Tells you if the expression is a spread operator call\n@param expression\nexpression\n@return\ntrue if is spread expression", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister", "Post the specified photo to a blog. Note that the Photo.title and Photo.description are used for the blog entry title and body respectively.\n\n@param photo\nThe photo metadata\n@param blogId\nThe blog ID\n@param blogPassword\nThe blog password\n@throws FlickrException", "Initialize new instance\n@param instance\n@param logger\n@param auditor" ]
public SpinJsonDataFormatException unableToParseValue(String expectedType, JsonNodeType type) { return new SpinJsonDataFormatException(exceptionMessage("002", "Expected '{}', got '{}'", expectedType, type.toString())); }
[ "Exception handler if we are unable to parse a json value into a java representation\n\n@param expectedType Name of the expected Type\n@param type Type of the json node\n@return SpinJsonDataFormatException" ]
[ "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object.", "Get the bone index for the bone with the given name.\n\n@param bonename string identifying the bone whose index you want\n@return 0 based bone index or -1 if bone with that name is not found.", "Create a Vendor from a Func0", "Runs the currently entered query and displays the results.", "Starts given docker machine.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n@param machineName\nto be started.", "Main executable method of Crawljax CLI.\n\n@param args\nthe arguments.", "Returns all information related to a single texture.\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture information", "Add the set of partitions to the node provided\n\n@param node The node to which we'll add the partitions\n@param donatedPartitions The list of partitions to add\n@return The new node with the new partitions", "Notifies that a content item is changed.\n\n@param position the position." ]
public final synchronized void shutdown() { // synchronize on 'this' to avoid races with registerStreams stopped = true; // If the cleanup task is running tell it to stop looping, and then remove it from the scheduled executor if (cleanupTaskFuture != null) { cleanupTaskFuture.cancel(false); } // Close remaining streams for (Map.Entry<InputStreamKey, TimedStreamEntry> entry : streamMap.entrySet()) { InputStreamKey key = entry.getKey(); TimedStreamEntry timedStreamEntry = entry.getValue(); //noinspection SynchronizationOnLocalVariableOrMethodParameter synchronized (timedStreamEntry) { // ensure there's no race with a request that got a ref before we removed it closeStreamEntry(timedStreamEntry, key.requestId, key.index); } } }
[ "Closes any registered stream entries that have not yet been consumed" ]
[ "seeks to a specified day of the week in the past or future.\n\n@param direction the direction to seek: two possibilities\n'<' go backward\n'>' go forward\n\n@param seekType the type of seek to perform (by_day or by_week)\nby_day means we seek to the very next occurrence of the given day\nby_week means we seek to the first occurrence of the given day week in the\nnext (or previous,) week (or multiple of next or previous week depending\non the seek amount.)\n\n@param seekAmount the amount to seek. Must be guaranteed to parse as an integer\n\n@param dayOfWeek the day of the week to seek to, represented as an integer from\n1 to 7 (1 being Sunday, 7 being Saturday.) Must be guaranteed to parse as an Integer", "Populate the container, converting raw data into Java types.\n\n@param field custom field to which these values belong\n@param values raw value data\n@param descriptions raw description data", "Get the value of a Annotation in a class declaration.\n@param classType\n@param annotationType\n@param attributeName\n@return the value of the annotation as String or null if something goes wrong", "Adds a resource collection with execution hints.", "Sets the working directory.\n\n@param dir The directory\n@throws IOException If the directory does not exist or cannot be written/read", "map a property id. Property id can only be an Integer or String", "Use this API to delete clusterinstance of given name.", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Use this API to update snmpmanager resources." ]
public void deletePersistent(Object object) { if (!this.isOpen()) { throw new DatabaseClosedException("Database is not open"); } TransactionImpl tx = getTransaction(); if (tx == null || !tx.isOpen()) { throw new TransactionNotInProgressException("No transaction in progress, cannot delete persistent"); } RuntimeObject rt = new RuntimeObject(object, tx); tx.deletePersistent(rt); // tx.moveToLastInOrderList(rt.getIdentity()); }
[ "Deletes an object from the database.\nIt must be executed in the context of an open transaction.\nIf the object is not persistent, then ObjectNotPersistent is thrown.\nIf the transaction in which this method is executed commits,\nthen the object is removed from the database.\nIf the transaction aborts,\nthen the deletePersistent operation is considered not to have been executed,\nand the target object is again in the database.\n@param\tobject\tThe object to delete." ]
[ "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"copy\"\n@param jsonObject of Link\n@return String", "Return a licenses view of the targeted module\n\n@param moduleId String\n@return List<DbLicense>", "Search for groups. 18+ groups will only be returned for authenticated calls where the authenticated user is over 18. This method does not require\nauthentication.\n\n@param text\nThe text to search for.\n@param perPage\nNumber of groups to return per page. If this argument is 0, it defaults to 100. The maximum allowed value is 500.\n@param page\nThe page of results to return. If this argument is 0, it defaults to 1.\n@return A GroupList Object. Only the fields <em>id</em>, <em>name</em> and <em>eighteenplus</em> in the Groups will be set.\n@throws FlickrException", "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "get the result speech recognize and find match in strings file.\n\n@param speechResult", "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}, {@link Long}, {@link Boolean}, {@link Float}, {@link Double},\n{@link java.util.Date}, or {@link Character}\n@param items An {@link ArrayList} which contains up to 15 {@link HashMap} objects,\nwhere each HashMap object describes a particular item purchased\n@throws InvalidEventNameException Thrown if the event name is not \"Charged\"\n@deprecated use {@link CleverTapAPI#pushChargedEvent(HashMap chargeDetails, ArrayList items)}", "Adds a table to this model.\n\n@param table The table", "Given a year, month, and day, find the number of occurrences of that day in the month\n\n@param year the year\n@param month the month\n@param day the day\n@return the number of occurrences of the day in the month", "Retrieve any resource field aliases defined in the MPP file.\n\n@param map index to field map\n@param data resource field name alias data" ]
private List<Bucket> lookup(Record record) { List<Bucket> buckets = new ArrayList(); for (Property p : config.getLookupProperties()) { String propname = p.getName(); Collection<String> values = record.getValues(propname); if (values == null) continue; for (String value : values) { String[] tokens = StringUtils.split(value); for (int ix = 0; ix < tokens.length; ix++) { Bucket b = store.lookupToken(propname, tokens[ix]); if (b == null || b.records == null) continue; long[] ids = b.records; if (DEBUG) System.out.println(propname + ", " + tokens[ix] + ": " + b.nextfree + " (" + b.getScore() + ")"); buckets.add(b); } } } return buckets; }
[ "Tokenizes lookup fields and returns all matching buckets in the\nindex." ]
[ "Get a list of referring domains for a photostream.\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 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.getPhotostreamDomains.html\"", "Add a '=' clause so the column must be equal to the value.", "Returns a collection view of this map's values.\n\n@return a collection view of this map's values.", "Gets the pathClasses.\nA Map containing hints about what Class to be used for what path segment\nIf local instance not set, try parent Criteria's instance. If this is\nthe top-level Criteria, try the m_query's instance\n@return Returns a Map", "Exports json encoded content to CrashReport object\n\n@param json valid json body.\n@return new instance of CrashReport", "Use this API to enable Interface of given name.", "Execute a HTTP request\n\n@param stringUrl URL\n@param method Method to use\n@param parameters Params\n@param input Input / Payload\n@param charset Input Charset\n@return response\n@throws IOException", "Use this API to fetch sslcertkey_sslvserver_binding resources of given name .", "Print a time value.\n\n@param value time value\n@return time value" ]
private void writeCalendars(List<ProjectCalendar> records) { // // Write project calendars // for (ProjectCalendar record : records) { m_buffer.setLength(0); m_buffer.append("CLDR "); m_buffer.append(SDEFmethods.lset(record.getUniqueID().toString(), 2)); // 2 character used, USACE allows 1 String workDays = SDEFmethods.workDays(record); // custom line, like NYYYYYN for a week m_buffer.append(SDEFmethods.lset(workDays, 8)); m_buffer.append(SDEFmethods.lset(record.getName(), 30)); m_writer.println(m_buffer); } }
[ "This will create a line in the SDEF file for each calendar\nif there are more than 9 calendars, you'll have a big error,\nas USACE numbers them 0-9.\n\n@param records list of ProjectCalendar instances" ]
[ "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException", "crates a StencilSet object and add it to the current diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Determine if the exception is relative based on the recurrence type integer value.\n\n@param value integer value\n@return true if the recurrence is relative", "Convenience method for retrieving a char resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Get the metadata cache files that are currently configured to be automatically attached when matching media is\nmounted in a player on the network.\n\n@return the current auto-attache cache files, sorted by name", "refresh credentials if CredentialProvider set", "Create and add model controller handler to an existing management channel handler.\n\n@param handler the channel handler\n@return the created client", "Validations specific to PUT", "Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the field alias.\nIf the field does not have an alias we won't write an\nentry.\n\n@param field custom field to write\n@throws IOException" ]
public static void setField(Object object, String field, Object value) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { Class<?> clazz = object.getClass(); Method m = clazz.getMethod( PROPERTY_ACCESSOR_PREFIX_SET + capitalize( field ), value.getClass() ); m.invoke( object, value ); }
[ "Set value for given object field.\n\n@param object object to be updated\n@param field field name\n@param value field value\n\n@throws NoSuchMethodException if property writer is not available\n@throws InvocationTargetException if property writer throws an exception\n@throws IllegalAccessException if property writer is inaccessible" ]
[ "Converts the provided javascript object to JSON string.\n\n<p>If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as\na list, otherwise the object is merely converted to string using the {@code toString()} method.\n\n@param object the object to stringify.\n\n@return the object as a JSON string", "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 fetch cmppolicylabel resource of given name .", "Returns the configured request parameter for the current query string, or the default parameter if the core is not specified.\n@return The configured request parameter for the current query string, or the default parameter if the core is not specified.", "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", "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop", "Get the Upper triangular factor.\n\n@return U.", "Determines if a point is inside a box.", "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment." ]
public void bindDelete(PreparedStatement stmt, Identity oid, ClassDescriptor cld) throws SQLException { Object[] pkValues = oid.getPrimaryKeyValues(); FieldDescriptor[] pkFields = cld.getPkFields(); int i = 0; try { for (; i < pkValues.length; i++) { setObjectForStatement(stmt, i + 1, pkValues[i], pkFields[i].getJdbcType().getType()); } } catch (SQLException e) { m_log.error("bindDelete failed for: " + oid.toString() + ", while set value '" + pkValues[i] + "' for column " + pkFields[i].getColumnName()); throw e; } }
[ "binds the Identities Primary key values to the statement" ]
[ "Required to close the connection reading on the terminal, otherwise\nit can't be interrupted.\n\n@throws InterruptedException", "Stop a managed server.", "Sets the content type for this ID\n\n@param pathId ID of path\n@param contentType content type value", "Adds a new metadata value of array type.\n@param path the path to the field.\n@param values the collection of values.\n@return the metadata object for chaining.", "multi-field string", "Construct a new instance.\n\n@return the new instance", "If there are any observer methods, they must be static or business\nmethods.", "Wrapper functions with no bounds checking are used to access matrix internals", "Start a managed server.\n\n@param factory the boot command factory" ]
public static String[] sortStringArray(String[] array) { if (isEmpty(array)) { return new String[0]; } Arrays.sort(array); return array; }
[ "Turn given source String array into sorted array.\n\n@param array the source array\n@return the sorted array (never <code>null</code>)" ]
[ "Resolve an operation transformer entry.\n\n@param address the address\n@param operationName the operation name\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the transformer entry", "this remove the linebreak.\n\n@param input\nthe input\n@param patternStr\nthe pattern str\n@return the string", "Handle a change in the weeks of month.\n@param week the changed weeks checkbox's internal value.\n@param value the new value of the changed checkbox.", "Loads a CRF classifier from an InputStream, and returns it. This method\ndoes not buffer the InputStream, so you should have buffered it before\ncalling this method.\n\n@param in\nInputStream to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Create a new entry in the database from an object.", "Gets the Hamming distance between two strings.\n\n@param first First string.\n@param second Second string.\n@return The Hamming distance between p and q.", "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.", "Gets the effects of this action.\n\n@return the effects. Will not be {@code null}", "Converts a byte array to a hexadecimal string representation\n@param bb the byte array to convert\n@return string the string representation" ]
@SuppressWarnings("rawtypes") public void setReplicationClassLoader(Fqn regionFqn, ClassLoader classLoader) { if (!isLocalMode()) { final Region region = jBossCache.getRegion(regionFqn, true); region.registerContextClassLoader(classLoader); if (!region.isActive() && jBossCache.getCacheStatus() == CacheStatus.STARTED) { region.activate(); } } }
[ "Sets the class loader to be used on serialization operations, for data\nstored in the specified fqn and child nodes. Note that if another class\nloader is set for a specific child node tree, the cache will use instead\nthat class loader.\n\n@param regionFqn\n@param classLoader" ]
[ "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "will trigger workers to cancel then wait for it to report back.", "Counts the number of elements in A which are not zero.\n@param A A matrix\n@return number of non-zero elements", "Returns the associated SQL WHERE statement.", "Deletes the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.", "Updates the polling state from a PUT or PATCH operation.\n\n@param response the response from Retrofit REST call\n@throws CloudException thrown if the response is invalid\n@throws IOException thrown by deserialization", "See convertToSQL92.\n\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Adds a row for the given component at the end of the group.\n\n@param component the component to wrap in the row to be added", "In Gerrit < 2.12 the XSRF token was included in the start page HTML." ]
private static void freeTempLOB(ClobWrapper clob, BlobWrapper blob) { try { if (clob != null) { // If the CLOB is open, close it if (clob.isOpen()) { clob.close(); } // Free the memory used by this CLOB clob.freeTemporary(); } if (blob != null) { // If the BLOB is open, close it if (blob.isOpen()) { blob.close(); } // Free the memory used by this BLOB blob.freeTemporary(); } } catch (Exception e) { logger.error("Error during temporary LOB release", e); } }
[ "Frees the temporary LOBs when an exception is raised in the application\nor when the LOBs are no longer needed. If the LOBs are not freed, the\nspace used by these LOBs are not reclaimed.\n@param clob CLOB-wrapper to free or null\n@param blob BLOB-wrapper to free or null" ]
[ "Get a loader that lists the files in the current path,\nand monitors changes.", "Add a date with a certain check state.\n@param date the date to add.\n@param checkState the check state.", "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape.", "Get an image as a stream. Callers must be sure to close the stream when they are done with it.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@param suffix\nThe suffix\n@return The InputStream\n@throws IOException", "Updates the indices in the index buffer from a Java CharBuffer.\nAll of the entries of the input buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data CharBuffer containing the new values\n@throws IllegalArgumentException if char array is wrong size", "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.", "Sets the request body to the contents of a String.\n\n<p>If the contents of the body are large, then it may be more efficient to use an {@link InputStream} instead of\na String. Using a String requires that the entire body be in memory before sending the request.</p>\n\n@param body a String containing the contents of the body.", "Get the ActivityInterface.\n\n@return The ActivityInterface", "Remove the given pair into the map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to remove from the map.\n@return {@code true} if the pair was removed.\n@since 2.15" ]
public ResponseOnSingeRequest onComplete(Response response) { cancelCancellable(); try { Map<String, List<String>> responseHeaders = null; if (responseHeaderMeta != null) { responseHeaders = new LinkedHashMap<String, List<String>>(); if (responseHeaderMeta.isGetAll()) { for (Map.Entry<String, List<String>> header : response .getHeaders()) { responseHeaders.put(header.getKey().toLowerCase(Locale.ROOT), header.getValue()); } } else { for (String key : responseHeaderMeta.getKeys()) { if (response.getHeaders().containsKey(key)) { responseHeaders.put(key.toLowerCase(Locale.ROOT), response.getHeaders().get(key)); } } } } int statusCodeInt = response.getStatusCode(); String statusCode = statusCodeInt + " " + response.getStatusText(); String charset = ParallecGlobalConfig.httpResponseBodyCharsetUsesResponseContentType && response.getContentType()!=null ? AsyncHttpProviderUtils.parseCharset(response.getContentType()) : ParallecGlobalConfig.httpResponseBodyDefaultCharset; if(charset == null){ getLogger().error("charset is not provided from response content type. Use default"); charset = ParallecGlobalConfig.httpResponseBodyDefaultCharset; } reply(response.getResponseBody(charset), false, null, null, statusCode, statusCodeInt, responseHeaders); } catch (IOException e) { getLogger().error("fail response.getResponseBody " + e); } return null; }
[ "On complete.\nSave response headers when needed.\n\n@param response\nthe response\n@return the response on single request" ]
[ "Returns the negative of the input variable", "This method can be used by child classes to apply the configuration that is stored in config.", "Compiles and performs the provided equation.\n\n@param equation String in simple equation format", "Try to reconnect to a started server.", "Checks if maintenance mode is enabled for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@return true if maintenance mode is enabled", "Fired whenever a browser event is received.\n@param event Event to process", "Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if null, returns false.", "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", "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity" ]
private AlbumArt findArtInMemoryCaches(DataReference artReference) { // First see if we can find the new track in the hot cache as a hot cue for (AlbumArt cached : hotCache.values()) { if (cached.artReference.equals(artReference)) { // Found a hot cue hit, use it. return cached; } } // Not in the hot cache, see if it is in our LRU cache return artCache.get(artReference); }
[ "Look for the specified album art in both the hot cache of loaded tracks and the longer-lived LRU cache.\n\n@param artReference uniquely identifies the desired album art\n\n@return the art, if it was found in one of our caches, or {@code null}" ]
[ "Returns all the elements in the sorted set with a score in the given range.\nIn contrary to the default ordering of sorted sets, for this command the elements are considered to be ordered\nfrom high to low scores.\nThe elements having the same score are returned in reverse lexicographical order.\n@param scoreRange\n@return elements in the specified score range", "Runs the given xpath and returns a boolean result.", "Use this API to fetch cmppolicylabel resource of given name .", "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods", "Emit a string event with parameters and force all listener to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(String, Object...)", "This method is called recursively to write a task and its child tasks\nto the JSON file.\n\n@param task task to write", "Will make the thread ready to run once again after it has stopped.", "Closes the outbound socket binding connection.\n\n@throws IOException", "Parse the XML for a collection as returned by getInfo call.\n\n@param collectionElement\n@return" ]
protected void showStep(A_CmsSetupStep step) { Window window = newWindow(); window.setContent(step); window.setCaption(step.getTitle()); A_CmsUI.get().addWindow(window); window.center(); }
[ "Shows the given step.\n\n@param step the step" ]
[ "Convert the continuous values into discrete values by chopping up\nthe distribution into several equally-sized intervals.", "Remove contents from the deployment and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data", "High-accuracy Complementary normal distribution function.\n\n@param x Value.\n@return Result.", "Convert the Phoenix representation of a finish date time into a Date instance.\n\n@param value Phoenix date time\n@return Date instance", "Throws an exception or logs a message\n\n@param message The message for the exception or the log message. Must be internationalized", "Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.\n\n@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.", "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", "Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.\n\n@param beanClass\n@return the additional bean deployment archive" ]
void successfulBoot() throws ConfigurationPersistenceException { synchronized (this) { if (doneBootup.get()) { return; } final File copySource; if (!interactionPolicy.isReadOnly()) { copySource = mainFile; } else { if ( FilePersistenceUtils.isParentFolderWritable(mainFile) ) { copySource = new File(mainFile.getParentFile(), mainFile.getName() + ".boot"); } else{ copySource = new File(configurationDir, mainFile.getName() + ".boot"); } FilePersistenceUtils.deleteFile(copySource); } try { if (!bootFile.equals(copySource)) { FilePersistenceUtils.copyFile(bootFile, copySource); } createHistoryDirectory(); final File historyBase = new File(historyRoot, mainFile.getName()); lastFile = addSuffixToFile(historyBase, LAST); final File boot = addSuffixToFile(historyBase, BOOT); final File initial = addSuffixToFile(historyBase, INITIAL); if (!initial.exists()) { FilePersistenceUtils.copyFile(copySource, initial); } FilePersistenceUtils.copyFile(copySource, lastFile); FilePersistenceUtils.copyFile(copySource, boot); } catch (IOException e) { throw ControllerLogger.ROOT_LOGGER.failedToCreateConfigurationBackup(e, bootFile); } finally { if (interactionPolicy.isReadOnly()) { //Delete the temporary file try { FilePersistenceUtils.deleteFile(copySource); } catch (Exception ignore) { } } } doneBootup.set(true); } }
[ "Notification that boot has completed successfully and the configuration history should be updated" ]
[ "static expansion helpers", "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", "Get the authentication for a specific token.\n\n@param token token\n@return authentication if any", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Creates an internal project and repositories such as a token storage.", "Returns true if the given candidate is a group that is filtered due to rule parameters in the current call graph.", "Use this API to fetch crvserver_binding resource of given name .", "Use this API to delete ntpserver.", "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." ]
public void findMatch(ArrayList<String> speechResult) { loadCadidateString(); for (String matchCandidate : speechResult) { Locale localeDefault = mGvrContext.getActivity().getResources().getConfiguration().locale; if (volumeUp.equals(matchCandidate)) { startVolumeUp(); break; } else if (volumeDown.toLowerCase(localeDefault).equals(matchCandidate.toLowerCase(localeDefault))) { startVolumeDown(); break; } else if (zoomIn.toLowerCase(localeDefault).equals(matchCandidate.toLowerCase(localeDefault))) { startZoomIn(); break; } else if (zoomOut.toLowerCase(localeDefault).equals(matchCandidate.toLowerCase(localeDefault))) { startZoomOut(); break; } else if (invertedColors.toLowerCase(localeDefault).equals(matchCandidate.toLowerCase(localeDefault))) { startInvertedColors(); break; } else if (talkBack.toLowerCase(localeDefault).equals(matchCandidate.toLowerCase(localeDefault))) { enableTalkBack(); } else if (disableTalkBack.toLowerCase(localeDefault).equals(matchCandidate.toLowerCase(localeDefault))) { disableTalkBack(); } } }
[ "get the result speech recognize and find match in strings file.\n\n@param speechResult" ]
[ "radi otsu da dobije spojena crna slova i ra\n\n@param input\n@return the processed image", "Look up record by identity.", "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history", "Returns the site path for the edited bundle file.\n\n@return the site path for the edited bundle file.", "Finds the parent group of the given one and returns it\n\n@param group Group for which the parent is needed\n@return The parent group of the given one. If the given one is the first one, it returns the same group", "Use this API to fetch appfwprofile resource of given name .", "Throws an exception if the request can for security reasons not be performed.\nSecurity restrictions can be set via parameters of the index.\n\n@param cms the current context.\n@param query the query.\n@param isSpell flag, indicating if the spellcheck handler is requested.\n@throws CmsSearchException thrown if the query cannot be executed due to security reasons.", "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", "Log the values for the provided template.\n\n@param templateName the name of the template the values came from\n@param template the template object\n@param values the resultant values" ]
public static aaaparameter get(nitro_service service) throws Exception{ aaaparameter obj = new aaaparameter(); aaaparameter[] response = (aaaparameter[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the aaaparameter resources that are configured on netscaler." ]
[ "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day", "Add a IN clause so the column must be equal-to one of the objects from the list passed in.", "Clones the given reference.\n\n@param refDef The reference descriptor\n@param prefix A prefix for the name\n@return The cloned reference", "Use this API to enable nsacl6 of given name.", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "find all accessibility object and set active false for enable talk back.", "Create a document that parses the tile's labelFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@param labelStyleInfo\nlabel style info\n@return graphics document\n@throws RenderException\ncannot render", "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", "Sort MapRows based on a named attribute.\n\n@param rows map rows to sort\n@param attribute attribute to sort on\n@return list argument (allows method chaining)" ]
public void declareShovel(String vhost, ShovelInfo info) { Map<String, Object> props = info.getDetails().getPublishProperties(); if(props != null && props.isEmpty()) { throw new IllegalArgumentException("Shovel publish properties must be a non-empty map or null"); } final URI uri = uriWithPath("./parameters/shovel/" + encodePathSegment(vhost) + "/" + encodePathSegment(info.getName())); this.rt.put(uri, info); }
[ "Declares a shovel.\n\n@param vhost virtual host where to declare the shovel\n@param info Shovel info." ]
[ "Apply the necessary rotation to the transform so that it is in front of\nthe camera. The actual rotation is performed not using the yaw angle but\nusing equivalent quaternion values for better accuracy. But the yaw angle\nis still returned for backward compatibility.\n\n@param widget The transform to modify.\n@return The camera's yaw in degrees.", "Sets the request type for this ID. Defaults to GET\n\n@param pathId ID of path\n@param requestType type of request to service", "Retrieves the work variance.\n\n@return work variance", "Return the numeraire at a given time.\nThe numeraire is provided for interpolated points. If requested on points which are not\npart of the tenor discretization, the numeraire uses a linear interpolation of the reciprocal\nvalue. See ISBN 0470047224 for details.\n\n@param time Time time <i>t</i> for which the numeraire should be returned <i>N(t)</i>.\n@return The numeraire at the specified time as <code>RandomVariableFromDoubleArray</code>\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Set default values for the TimeAndSizeRollingAppender appender\n\n@param appender", "Divide two complex numbers, in-place\n\n@param c complex number to divide this by\n@param result complex number to hold result\n@return same as result", "Return tabular data\n@param labels Labels array\n@param data Data bidimensional array\n@param padding Total space between fields\n@return String", "Use this API to fetch systemuser resource of given name .", "Used by dataformats if they need to load a class\n\n@param classname the name of the\n@param dataFormat\n@return" ]
protected int readShort(int offset, byte[] data) { int result = 0; int i = offset + m_offset; for (int shiftBy = 0; shiftBy < 16; shiftBy += 8) { result |= ((data[i] & 0xff)) << shiftBy; ++i; } return result; }
[ "Read a two byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value" ]
[ "Get file extension for script language.\n\n@param language the language name\n@return the file extension as string or null if the language is not in the set of languages supported by spin", "Uploads files from the given file input fields.<p<\n\n@param fields the set of names of fields containing the files to upload\n@param filenameCallback the callback to call with the resulting map from field names to file paths\n@param errorCallback the callback to call with an error message", "Set the start time.\n@param date the start time to set.", "Read flow id.\n\n@param message the message\n@return flow id from the message", "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", "Set the list of supported resolutions. Each resolution is specified in map units per pixel.\n\n@param resolutions\nresolutions\n@deprecated use {@link #setZoomLevels()}", "Unlinks a set of dependents from this task.\n\n@param task The task to remove dependents from.\n@return Request object", "Obtains the transform for a specific time in animation.\n\n@param animationTime The time in animation.\n\n@return The transform.", "Parse a version String and add the components to a properties object.\n\n@param version the version to parse" ]
public boolean detectBlackBerryHigh() { //Disambiguate for BlackBerry OS 6 or 7 (WebKit) browser if (detectBlackBerryWebKit()) { return false; } if (detectBlackBerry()) { if (detectBlackBerryTouch() || (userAgent.indexOf(deviceBBBold) != -1) || (userAgent.indexOf(deviceBBTour) != -1) || (userAgent.indexOf(deviceBBCurve) != -1)) { return true; } else { return false; } } else { return false; } }
[ "Detects if the current browser is a BlackBerry device AND\nhas a more capable recent browser. Excludes the Playbook.\nExamples, Storm, Bold, Tour, Curve2\nExcludes the new BlackBerry OS 6 and 7 browser!!\n@return detection of a Blackberry device with a better browser" ]
[ "set custom response or request for a profile's default client, ensures profile and path are enabled\n\n@param profileName profileName to modift, default client is used\n@param pathName friendly name of path\n@param isResponse true if response, false for request\n@param customData custom response/request data\n@return true if success, false otherwise", "resolves any lazy cross references in this resource, adding Issues for unresolvable elements to this resource.\nThis resource might still contain resolvable proxies after this method has been called.\n\n@param mon a {@link CancelIndicator} can be used to stop the resolution.", "Create a new queued pool using the defaults for key of type K, request of\ntype R, and value of Type V.\n\n@param factory The factory that creates objects\n@return The created pool", "Checks the initialization-method of given class descriptor.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "only TOP or Bottom", "adds a value to the list\n\n@param value the value", "Use this API to fetch onlinkipv6prefix resource of given name .", "Use this API to add dospolicy resources.", "adds the qualified names to the require-bundle attribute, if not already\npresent.\n\n@param bundles - passing parameterized bundled (e.g. versions, etc.) is\nnot supported" ]
private static boolean typeEquals(ParameterizedType from, ParameterizedType to, Map<String, Type> typeVarMap) { if (from.getRawType().equals(to.getRawType())) { Type[] fromArgs = from.getActualTypeArguments(); Type[] toArgs = to.getActualTypeArguments(); for (int i = 0; i < fromArgs.length; i++) { if (!matches(fromArgs[i], toArgs[i], typeVarMap)) { return false; } } return true; } return false; }
[ "Checks if two parameterized types are exactly equal, under the variable\nreplacement described in the typeVarMap." ]
[ "absolute for advancedJDBCSupport\n@param row", "Return a logger associated with a particular class name.", "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Mbeans for FETCH_ENTRIES", "Run a task periodically, for a set number of times.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@param repetitions\nRepeat count\n@return {@code null} if {@code repetitions < 1}; otherwise, an interface\nthat lets you query the status; cancel; or reschedule the event.", "This handler will be triggered when search is finish", "Get the first non-white Y point\n@param img Image in memory\n@return the trimmed y start", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Extracts a flat set of interception bindings from a given set of interceptor bindings.\n\n@param addTopLevelInterceptorBindings add top level interceptor bindings to the result set.\n@param addInheritedInterceptorBindings add inherited level interceptor bindings to the result set.\n@return" ]
public static DoubleMatrix absi(DoubleMatrix x) { /*# mapfct('Math.abs') #*/ //RJPP-BEGIN------------------------------------------------------------ for (int i = 0; i < x.length; i++) x.put(i, (double) Math.abs(x.get(i))); return x; //RJPP-END-------------------------------------------------------------- }
[ "Sets all elements in this matrix to their absolute values. Note\nthat this operation is in-place.\n@see MatrixFunctions#abs(DoubleMatrix)\n@return this matrix" ]
[ "Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plaintext password.\n@param hashed scrypt hashed password.\n\n@return true if passwd matches hashed value.", "Use this API to fetch all the policydataset resources that are configured on netscaler.", "Add an event to the queue. It will be processed in the order received.\n\n@param event Event", "Write back to hints file.", "Use this API to fetch clusterinstance resources of given names .", "Adds a column pair to this foreignkey.\n\n@param localColumn The column in the local table\n@param remoteColumn The column in the remote table", "Clean up the environment object for the given storage engine", "Converts a batch indexing into the sample, to a batch indexing into the\noriginal function.\n\n@param batch The batch indexing into the sample.\n@return A new batch indexing into the original function, containing only\nthe indices from the sample.", "Returns the parsed story from the given path\n\n@param configuration the Configuration used to run story\n@param storyPath the story path\n@return The parsed Story" ]
public static sslcipher_individualcipher_binding[] get(nitro_service service, String ciphergroupname) throws Exception{ sslcipher_individualcipher_binding obj = new sslcipher_individualcipher_binding(); obj.set_ciphergroupname(ciphergroupname); sslcipher_individualcipher_binding response[] = (sslcipher_individualcipher_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch sslcipher_individualcipher_binding resources of given name ." ]
[ "Sets the specified date 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", "Create a forward curve from forwards given by a LIBORMonteCarloModel.\n\n@param name name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a forward curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Use this API to fetch a vpnglobal_intranetip_binding resources.", "Load a properties file from a file path\n\n@param gradlePropertiesFilePath The file path where the gradle.properties is located.\n@return The loaded properties.\n@throws IOException In case an error occurs while reading the properties file, this exception is thrown.", "Get the beat grids available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the beat grids associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the BeatGridFinder is not running", "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", "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails.", "Returns all the dependencies taken into account the artifact of the module that will be removed from the dependencies\n\n@param module Module\n@param producedArtifacts List<String>\n@return Set<Dependency>", "Send a beat grid update announcement to all registered listeners.\n\n@param player the player whose beat grid information has changed\n@param beatGrid the new beat grid associated with that player, if any" ]
static PathAddress toPathAddress(String domain, ImmutableManagementResourceRegistration registry, ObjectName name) { if (!name.getDomain().equals(domain)) { return PathAddress.EMPTY_ADDRESS; } if (name.equals(ModelControllerMBeanHelper.createRootObjectName(domain))) { return PathAddress.EMPTY_ADDRESS; } final Hashtable<String, String> properties = name.getKeyPropertyList(); return searchPathAddress(PathAddress.EMPTY_ADDRESS, registry, properties); }
[ "Straight conversion from an ObjectName to a PathAddress.\n\nThere may not necessarily be a Resource at this path address (if that correspond to a pattern) but it must\nmatch a model in the registry.\n\n@param domain the name of the caller's JMX domain\n@param registry the root resource for the management model\n@param name the ObjectName to convert\n\n@return the PathAddress, or {@code null} if no address matches the object name" ]
[ "This method extracts the XML header comment if available.\n\n@param xmlFile is the XML {@link File} to parse.\n@return the XML comment between the XML header declaration and the root tag or <code>null</code> if NOT\navailable.\n@throws MojoExecutionException if anything goes wrong.", "Main database initialization. To be called only when _ds is a valid DataSource.", "Writes triples which conect properties with there corresponding rdf\nproperties for statements, simple statements, qualifiers, reference\nattributes and values.\n\n@param document\n@throws RDFHandlerException", "Set the classpath for loading the driver using the classpath reference.\n\n@param r reference to the classpath", "Encodes the given URI scheme with the given encoding.\n@param scheme the scheme to be encoded\n@param encoding the character encoding to encode to\n@return the encoded scheme\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Creates a map of metadata from json.\n@param jsonObject metadata json object for metadata field in get /files?fileds=,etadata.scope.template response\n@return Map of String as key a value another Map with a String key and Metadata value", "This method evaluates a if a graphical indicator should\nbe displayed, given a set of Task or Resource data. The\nmethod will return -1 if no indicator should be displayed.\n\n@param container Task or Resource instance\n@return indicator index", "Sets the SCXML model with a string\n\n@param model the model text", "Builds the radio input to set the export and secure property.\n\n@param propName the name of the property to build the radio input for\n\n@return html for the radio input\n\n@throws CmsException if the reading of a property fails" ]
public static String getButtonName(String gallery) { StringBuffer sb = new StringBuffer(GUI_BUTTON_PREF); sb.append(gallery.toUpperCase()); sb.append(GUI_BUTTON_SUF); return sb.toString(); }
[ "Create button message key.\n\n@param gallery name\n@return Button message key as String" ]
[ "Write an integer field to the JSON file.\n\n@param fieldName field name\n@param value field value", "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)}", "Determines a histogram of contiguous runs of partitions within a zone.\nI.e., for each run length of contiguous partitions, how many such runs\nare there.\n\nDoes not correctly address \"wrap around\" of partition IDs (i.e., the fact\nthat partition ID 0 is \"next\" to partition ID 'max')\n\n@param cluster\n@param zoneId\n@return map of length of contiguous run of partitions to count of number\nof such runs.", "Use this API to unset the properties of sslocspresponder resource.\nProperties that need to be unset are specified in args array.", "Register the entity as batch loadable, if enabled\n\nCopied from {@link org.hibernate.type.ManyToOneType#scheduleBatchLoadIfNeeded}", "Return true if the expression is a constructor call on any of the named classes, with any number of parameters.\n@param expression - the expression\n@param classNames - the possible List of class names\n@return as described", "Adds a value to the list if does not already exists.\n\n@param list the list\n@param value value to add if not exists in the list", "Creates the database.\n\n@throws PlatformException If some error occurred", "Return given duration in a human-friendly format. For example, \"4\nminutes\" or \"1 second\". Returns only largest meaningful unit of time,\nfrom seconds up to hours.\n\nThe longest duration it supports is hours.\n\nThis method assumes that there are 60 minutes in an hour,\n60 seconds in a minute and 1000 milliseconds in a second.\nAll currently supplied chronologies use this definition." ]
public static void openFavoriteDialog(CmsFileExplorer explorer) { try { CmsExplorerFavoriteContext context = new CmsExplorerFavoriteContext(A_CmsUI.getCmsObject(), explorer); CmsFavoriteDialog dialog = new CmsFavoriteDialog(context, new CmsFavoriteDAO(A_CmsUI.getCmsObject())); Window window = CmsBasicDialog.prepareWindow(DialogWidth.max); window.setContent(dialog); window.setCaption(CmsVaadinUtils.getMessageText(org.opencms.ui.Messages.GUI_FAVORITES_DIALOG_TITLE_0)); A_CmsUI.get().addWindow(window); window.center(); } catch (CmsException e) { CmsErrorDialog.showErrorDialog(e); } }
[ "Opens the favorite dialog.\n\n@param explorer the explorer instance (null if not currently in explorer)" ]
[ "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "decides which icon to apply or hide this view\n\n@param imageHolder\n@param imageView\n@param iconColor\n@param tint", "Delete a profile\n\n@param model\n@param id\n@return\n@throws Exception", "Begin building a url for this host with the specified image.", "Transfer the ownership of an application to another user.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param to Username of the person to transfer the app to. This is usually in the form of \"[email protected]\".", "Add a task to the project.\n\n@return new task instance", "Used to create a new retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param type the type of the retention policy. Can be \"finite\" or \"indefinite\".\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@return the created retention policy's info.", "Try to unlink the declaration from the importerService referenced by the ServiceReference,.\nreturn true if they have been cleanly unlink, false otherwise.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference of the ImporterService\n@return true if they have been cleanly unlink, false otherwise.", "Record the duration of a put operation, along with the size of the values\nreturned." ]
public static base_response update(nitro_service client, route6 resource) throws Exception { route6 updateresource = new route6(); updateresource.network = resource.network; updateresource.gateway = resource.gateway; updateresource.vlan = resource.vlan; updateresource.weight = resource.weight; updateresource.distance = resource.distance; updateresource.cost = resource.cost; updateresource.advertise = resource.advertise; updateresource.msr = resource.msr; updateresource.monitor = resource.monitor; updateresource.td = resource.td; return updateresource.update_resource(client); }
[ "Use this API to update route6." ]
[ "Apply clipping to the features in a tile. The tile and its features should already be in map space.\n\n@param tile\ntile to put features in\n@param scale\nscale\n@param panOrigin\nWhen panning on the client, only this parameter changes. So we need to be aware of it as we calculate\nthe maxScreenEnvelope.\n@throws GeomajasException oops", "Returns a list of Elements form the DOM tree, matching the tag element.", "Read the given number of bytes into a long\n\n@param bytes The byte array to read from\n@param offset The offset at which to begin reading\n@param numBytes The number of bytes to read\n@return The long value read", "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop", "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", "Returns the accrued interest of the bond for a given time.\n\n@param time The time of interest as double.\n@param model The model under which the product is valued.\n@return The accrued interest.", "Gets the gradient 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@param gradient The output gradient, a vector of partial derivatives.", "Returns an iterator equivalent to this iterator with all duplicated items removed\nby using the default comparator. The original iterator will become\nexhausted of elements after determining the unique values. A new iterator\nfor the unique values will be returned.\n\n@param self an Iterator\n@return the modified Iterator\n@since 1.5.5", "Converts a parameter map to the parameter string.\n@param parameters the parameter map.\n@return the parameter string." ]
public static base_responses update(nitro_service client, appfwlearningsettings resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwlearningsettings updateresources[] = new appfwlearningsettings[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appfwlearningsettings(); updateresources[i].profilename = resources[i].profilename; updateresources[i].starturlminthreshold = resources[i].starturlminthreshold; updateresources[i].starturlpercentthreshold = resources[i].starturlpercentthreshold; updateresources[i].cookieconsistencyminthreshold = resources[i].cookieconsistencyminthreshold; updateresources[i].cookieconsistencypercentthreshold = resources[i].cookieconsistencypercentthreshold; updateresources[i].csrftagminthreshold = resources[i].csrftagminthreshold; updateresources[i].csrftagpercentthreshold = resources[i].csrftagpercentthreshold; updateresources[i].fieldconsistencyminthreshold = resources[i].fieldconsistencyminthreshold; updateresources[i].fieldconsistencypercentthreshold = resources[i].fieldconsistencypercentthreshold; updateresources[i].crosssitescriptingminthreshold = resources[i].crosssitescriptingminthreshold; updateresources[i].crosssitescriptingpercentthreshold = resources[i].crosssitescriptingpercentthreshold; updateresources[i].sqlinjectionminthreshold = resources[i].sqlinjectionminthreshold; updateresources[i].sqlinjectionpercentthreshold = resources[i].sqlinjectionpercentthreshold; updateresources[i].fieldformatminthreshold = resources[i].fieldformatminthreshold; updateresources[i].fieldformatpercentthreshold = resources[i].fieldformatpercentthreshold; updateresources[i].xmlwsiminthreshold = resources[i].xmlwsiminthreshold; updateresources[i].xmlwsipercentthreshold = resources[i].xmlwsipercentthreshold; updateresources[i].xmlattachmentminthreshold = resources[i].xmlattachmentminthreshold; updateresources[i].xmlattachmentpercentthreshold = resources[i].xmlattachmentpercentthreshold; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update appfwlearningsettings resources." ]
[ "Read the top level tasks from GanttProject.\n\n@param gpProject GanttProject project", "apply the base fields to other views if configured to do so.", "Get the element at the index as a float.\n\n@param i the index of the element to access", "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x.", "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value", "Retrieves information for a collaboration whitelist for a given whitelist ID.\n\n@return information about this {@link BoxCollaborationWhitelistExemptTarget}.", "Returns the naming context.", "Convenience method for getting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field whose value to return.", "Invoked by subclasses; performs actual file roll. Tests to see whether roll\nis necessary have already been performed, so just do it." ]
private void setObjectForStatement(PreparedStatement stmt, int index, Object value, int sqlType) throws SQLException { if (value == null) { m_platform.setNullForStatement(stmt, index, sqlType); } else { m_platform.setObjectForStatement(stmt, index, value, sqlType); } }
[ "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" ]
[ "Use this API to fetch sslaction resource of given name .", "Compares two columns given by their names.\n\n@param objA The name of the first column\n@param objB The name of the second column\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node trees and expressions in templates can be of type IGeneratorNode.\n\n@return the given parent node", "Open the connection to the server.\n\n@param url the url to connect to\n@return returns the input stream for the connection\n@throws IOException cannot get result", "Counts the number of documents in the collection.\n\n@return a task containing the number of documents in the collection", "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress.\n@throws BoxAPIException if an error occurs while writing to the connection.", "Determine the size of a field in a fixed data block.\n\n@param type field data type\n@return field size in bytes", "Check that the parameter string is not null or empty\n\n@param value\nString value to be checked.\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@throws IllegalArgumentException\nIf the key is null or empty.", "Adds columns for the specified properties.\n@param _properties the array of <code>PropertyDescriptor</code>s to be added.\n@throws ColumnBuilderException if an error occurs.\n@throws ClassNotFoundException if an error occurs." ]
public static int NextPowerOf2(int x) { --x; x |= x >> 1; x |= x >> 2; x |= x >> 4; x |= x >> 8; x |= x >> 16; return ++x; }
[ "Returns the next power of 2 after the input value x.\n\n@param x Input value x.\n@return Returns the next power of 2 after the input value x." ]
[ "Creates a resource key for given enumeration value. By convention,\nresource bundle for enumerations has the name of enumeration class\nand value identifier is the same as enumeration value name.\n@param value the enumeration value\n@return the resource key", "Use this API to fetch nstrafficdomain_binding resources of given names .", "Use this API to flush cacheobject.", "Copy the contents of this buffer to the destination LBuffer\n@param srcOffset\n@param dest\n@param destOffset\n@param size", "If task completed success or failure from response.\n\n@param myResponse\nthe my response\n@return true, if successful", "Creates a new Table instance from data extracted from an MPP file.\n\n@param file parent project file\n@param data fixed data\n@param varMeta var meta\n@param varData var data\n@return Table instance", "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.", "The users element defines users within the domain model, it is a simple authentication for some out of the box users.", "Convenience method to escape any character that is special to the regex system.\n\n@param inString\nthe string to fix\n\n@return the fixed string" ]
public static String getSerializedVectorClocks(List<VectorClock> vectorClocks) { List<VectorClockWrapper> vectorClockWrappers = new ArrayList<VectorClockWrapper>(); for(VectorClock vc: vectorClocks) { vectorClockWrappers.add(new VectorClockWrapper(vc)); } String serializedVC = ""; try { serializedVC = mapper.writeValueAsString(vectorClockWrappers); } catch(Exception e) { e.printStackTrace(); } return serializedVC; }
[ "Function to serialize the given list of Vector clocks into a string. If\nsomething goes wrong, it returns an empty string.\n\n@param vectorClocks The Vector clock list to serialize\n@return The string (JSON) version of the specified Vector clock" ]
[ "Use this API to fetch tunneltrafficpolicy resource of given name .", "set the layout which will host the ScrimInsetsFrameLayout and its layoutParams\n\n@param container\n@param layoutParams\n@return", "Creates an IBlur instance for the given algorithm enum\n\n@param algorithm\n@param contextWrapper\n@return", "Use this API to delete nsip6 resources of given names.", "Constraint that ensures that the field has a length if the jdbc type requires it.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Get the JSON string representation of the selector configured for this index.\n\n@return selector JSON as string", "Returns the organization of a given module\n\n@return Organization", "Marks a given list of statements for insertion into the current document.\nInserted statements can have an id if they should update an existing\nstatement, or use an empty string as id if they should be added. The\nmethod removes duplicates and avoids unnecessary modifications by\nchecking the current content of the given document before marking\nstatements for being written.\n\n@param currentDocument\nthe document with the current statements\n@param addStatements\nthe list of new statements to be added", "other static handlers" ]
public void configure(Configuration pConfig) throws ConfigurationException { if (pConfig instanceof PBPoolConfiguration) { PBPoolConfiguration conf = (PBPoolConfiguration) pConfig; this.setMaxActive(conf.getMaxActive()); this.setMaxIdle(conf.getMaxIdle()); this.setMaxWait(conf.getMaxWaitMillis()); this.setMinEvictableIdleTimeMillis(conf.getMinEvictableIdleTimeMillis()); this.setTimeBetweenEvictionRunsMillis(conf.getTimeBetweenEvictionRunsMilli()); this.setWhenExhaustedAction(conf.getWhenExhaustedAction()); } else { LoggerFactory.getDefaultLogger().error(this.getClass().getName() + " cannot read configuration properties, use default."); } }
[ "Read in the configuration properties." ]
[ "Returns true if the information in this link should take\nprecedence over the information in the other link.", "Get prototype name.\n\n@return prototype name", "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history", "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map", "Stop a timer of the given string name for the current thread. If no such\ntimer exists, -1 will be returned. Otherwise the return value is the CPU\ntime that was measured.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return CPU time if timer existed and was running, and -1 otherwise", "This method returns the value random variable of the product within the specified model,\nevaluated at a given evalutationTime.\nCash-flows prior evaluationTime are not considered.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model The model used to price the product.\n@return The random variable representing the value of the product discounted to evaluation time.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Get a subset of the attributes of the provided class. An attribute is each public field in the class\nor super class.\n\n@param classToInspect the class to inspect\n@param filter a predicate that returns true when a attribute should be kept in resulting\ncollection.", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}", "Fetch the latest versions for cluster metadata" ]
private void processProperties() { state = true; try { importerServiceFilter = getFilter(importerServiceFilterProperty); } catch (InvalidFilterException invalidFilterException) { LOG.debug("The value of the Property " + FILTER_IMPORTERSERVICE_PROPERTY + " is invalid," + " the recuperation of the Filter has failed. The instance gonna stop.", invalidFilterException); state = false; return; } try { importDeclarationFilter = getFilter(importDeclarationFilterProperty); } catch (InvalidFilterException invalidFilterException) { LOG.debug("The value of the Property " + FILTER_IMPORTDECLARATION_PROPERTY + " is invalid," + " the recuperation of the Filter has failed. The instance gonna stop.", invalidFilterException); state = false; return; } }
[ "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid." ]
[ "Generates a change event for a local update of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@param update the update specifier.\n@return a change event for a local update of a document in the given namespace referring\nto the given document _id.", "helper to calculate the actionBar height\n\n@param context\n@return", "Handles the deletion of a key.\n@param key the deleted key.\n@return <code>true</code> if the deletion was successful, <code>false</code> otherwise.", "Creates the server setup, depending on the protocol flags.\n\n@return the configured server setups.", "Add assertions to tests execution.", "Remove contents from the deployment and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Removes CRs but returns LFs", "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 an activity status.\n\n@param mpxj MPXJ Task instance\n@return activity status" ]
private TableAlias getTableAliasForPath(String aPath, List hintClasses) { return (TableAlias) m_pathToAlias.get(buildAliasKey(aPath, hintClasses)); }
[ "Answer the TableAlias for aPath\n@param aPath\n@param hintClasses\n@return TableAlias, null if none" ]
[ "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", "Sets a listener for user actions within the SearchView.\n\n@param listener the listener object that receives callbacks when the user performs\nactions in the SearchView such as clicking on buttons or typing a query.", "Get the active operation.\n\n@param id the active operation id\n@return the active operation, {@code null} if if there is no registered operation", "Check if the specified sql-string is a stored procedure\nor not.\n@param sql The sql query to check\n@return <em>True</em> if the query is a stored procedure, else <em>false</em> is returned.", "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid", "Use this API to fetch authorizationpolicylabel_binding resource of given name .", "Calculate delta with another vector\n@param v another vector\n@return delta vector", "Print the common class node's properties", "Parses a single query facet item with query and label.\n@param prefix path to the query facet item (with trailing '/').\n@return the query facet item." ]
private void addDateWithCheckState(Date date, boolean checkState) { addCheckBox(date, checkState); if (!m_dates.contains(date)) { m_dates.add(date); fireValueChange(); } }
[ "Add a date with a certain check state.\n@param date the date to add.\n@param checkState the check state." ]
[ "A loop driver for applying operations to all primary ClassNodes in\nour AST. Automatically skips units that have already been processed\nthrough the current phase.", "Builds the path for an open arc based on a PolylineOptions.\n\n@param center\n@param start\n@param end\n@return PolylineOptions with the paths element populated.", "Records the result of updating a server.\n\n@param server the id of the server. Cannot be <code>null</code>\n@param response the result of the updates", "This method returns the value of the product using a Black-Scholes model for the swap rate with the Hunt-Kennedy convexity adjustment.\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve from which the swap rate is calculated. The discount curve, associated with this forward curve is used for discounting this option.\n@param swaprateVolatility The volatility of the log-swaprate.\n@return Value of this product", "Extracts the column of A and copies it into u while computing the magnitude of the\nlargest element and returning it.\n\n<pre>\nu[ (offsetU+row0+i)*2 ] = A.getReal(row0+i,col)\nu[ (offsetU+row0+i)*2 + 1] = A.getImag(row0+i,col)\n</pre>\n\n@param A Complex matrix\n@param row0 First row in A to be copied\n@param row1 Last row in A + 1 to be copied\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U\n@return magnitude of largest element", "Resize the given mesh keeping its aspect ration.\n@param mesh Mesh to be resized.\n@param size Max size for the axis.", "Registers the parameter for the value formatter for the given variable and puts\nit's implementation in the parameters map.\n@param djVariable\n@param variableName", "Writes the specified double to the stream, formatted according to the format specified in the constructor.\n\n@param d the double to write to the stream\n@return this writer\n@throws IOException if an I/O error occurs", "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" ]
public void setDates(SortedSet<Date> dates, boolean checked) { m_checkBoxes.clear(); for (Date date : dates) { CmsCheckBox cb = generateCheckBox(date, checked); m_checkBoxes.add(cb); } reInitLayoutElements(); setDatesInternal(dates); }
[ "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." ]
[ "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", "This is a temporary measure until we have a type-safe solution for\nretrieving serializers from a SerializerFactory. It avoids warnings all\nover the codebase while making it easy to verify who calls it.", "Use this API to fetch all the nsspparams resources that are configured on netscaler.", "Overrides the superclass implementation to allow the AttributeDefinition for each field in the\nobject to in turn resolve that field.\n\n{@inheritDoc}", "Add the list with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The list of all bundles to add.", "Calculates a checksum for the specified buffer.\n@param buffer the buffer to calculate.\n@return the checksum value.", "Returns new instance of OptionalValue with given value\n@param value wrapped object\n@param <T> type of the wrapped object\n@return given object wrapped in OptionalValue", "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", "Use this method to enable device network-related information tracking, including IP address.\nThis reporting is disabled by default. To re-disable tracking call this method with enabled set to false.\n\n@param value boolean Whether device network info reporting should be enabled/disabled." ]
@Deprecated public Location resolvePlaceURL(String flickrPlacesUrl) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_RESOLVE_PLACE_URL); parameters.put("url", flickrPlacesUrl); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element locationElement = response.getPayload(); return parseLocation(locationElement); }
[ "Find Flickr Places information by Place URL.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link PlacesInterface#getInfoByUrl(String)} instead.\n@param flickrPlacesUrl\n@return A Location\n@throws FlickrException" ]
[ "Visit all child nodes but not this one.\n\n@param visitor The visitor to use.", "Removes the specified objects.\n\n@param collection The collection to remove.", "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "Process a single project.\n\n@param reader Primavera reader\n@param projectID required project ID\n@param outputFile output file name", "Calculates Tangent value of the complex number.\n\n@param z1 A ComplexNumber instance.\n@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number.", "Adds a Statement.\n\n@param rank\nrank of the statement\n@param subject\nrdf resource that refers to the statement", "Use this API to update onlinkipv6prefix resources.", "Creates a new undeploy description.\n\n@param deploymentDescription the deployment description to copy\n\n@return the description", "Use this API to update clusternodegroup." ]