query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static String readTextFile(InputStream inputStream) { InputStreamReader streamReader = new InputStreamReader(inputStream); return readTextFile(streamReader); }
[ "Read a text stream into a single string.\n\n@param inputStream\nStream containing text. Will be closed on exit.\n@return The contents, or null on error." ]
[ "For creating expression columns\n@return", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "GENERIC!!! HELPER FUNCION FOR REPLACEMENT\n\nupdate the var: DYNAMIC REPLACEMENT of VAR.\n\nEvery task must have matching command data and task result\n\n@param task\nthe task\n@param replaceVarKey\nthe replace var key\n@param replaceVarValue\nthe replace var value", "Add an additional SSExtension\n@param ssExt the ssextension to set", "Concatenate all the arrays in the list into a vector.\n\n@param arrays List of arrays.\n@return Vector.", "Send JSON representation of given data object to all connections tagged with all give tag labels\n@param data the data object\n@param labels the tag labels", "Fills the Boyer Moore \"bad character array\" for the given pattern", "Iterates through the given CharSequence line by line, splitting each line using\nthe given separator Pattern. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param pattern the regular expression Pattern for the delimiter\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@since 1.8.2", "Get all views from the list content\n@return list of views currently visible" ]
public void put(@NotNull final Transaction txn, final long localId, final int blobId, @NotNull final ByteIterable value) { primaryStore.put(txn, PropertyKey.propertyKeyToEntry(new PropertyKey(localId, blobId)), value); allBlobsIndex.put(txn, IntegerBinding.intToCompressedEntry(blobId), LongBinding.longToCompressedEntry(localId)); }
[ "Setter for blob handle value.\n\n@param txn enclosing transaction\n@param localId entity local id.\n@param blobId blob id\n@param value property value." ]
[ "Process a compilation unit already parsed and build.", "Upgrades a read transaction to a write transaction, executes the work then downgrades to a read transaction\nagain.\n\n@since 2.4\n@noreference", "Compute \"sent\" date\n\n@param msg Message to take sent date from. May be null to use default\n@param defaultVal Default if sent date is not present\n@return Sent date or now if no date could be found", "Recovers the state of synchronization for a namespace in case a system failure happened.\nThe goal is to revert the namespace to a known, good state. This method itself is resilient\nto failures, since it doesn't delete any documents from the undo collection until the\ncollection is in the desired state with respect to those documents.", "The main method, which is essentially the same as in CRFClassifier. See the class documentation.", "Get all the names of inputs that are required to be in the Values object when this graph is executed.", "Updates the template with the specified id.\n\n@param id id of the template to update\n@param options a Map of options to update/add.\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.", "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object", "Returns the query string currently in the text field.\n\n@return the query string" ]
public static long raiseToPower(int value, int power) { if (power < 0) { throw new IllegalArgumentException("This method does not support negative powers."); } long result = 1; for (int i = 0; i < power; i++) { result *= value; } return result; }
[ "Calculate the first argument raised to the power of the second.\nThis method only supports non-negative powers.\n@param value The number to be raised.\n@param power The exponent (must be positive).\n@return {@code value} raised to {@code power}." ]
[ "Sets the replacement var map.\n\n@param replacementVarMap\nthe replacement var map\n@return the parallel task builder", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.", "Tokenizes the input file and extracts the required data.\n\n@param is input stream\n@throws MPXJException", "Converts a string representation of an integer into an Integer object.\nSilently ignores any parse exceptions and returns null.\n\n@param value String representation of an integer\n@return Integer instance", "Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name .", "Discard the changes.", "New SOAP client uses new SOAP service.", "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", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return" ]
public static String resourceProviderFromResourceId(String id) { return (id != null) ? ResourceId.fromString(id).providerNamespace() : null; }
[ "Extract resource provider from a resource ID string.\n@param id the resource ID string\n@return the resource group name" ]
[ "Restores a trashed file back to its original location.\n@param fileID the ID of the trashed file.\n@return info about the restored file.", "Initializes the information on an available master mode.\n@throws CmsException thrown if the write permission check on the bundle descriptor fails.", "try to delegate the master to handle the response\n\n@param response\n@return true if the master accepted the response; false if the master\ndidn't accept", "Use this API to add cachecontentgroup.", "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", "Optimized version of the Wagner & Fischer algorithm that only\nkeeps a single column in the matrix in memory at a time. It\nimplements the simple cutoff, but otherwise computes the entire\nmatrix. It is roughly twice as fast as the original function.", "Apply all attributes on the given context.\n\n@param context the context to be applied, not null.\n@param overwriteDuplicates flag, if existing entries should be overwritten.\n@return this Builder, for chaining", "Guess whether given file is binary. Just checks for anything under 0x09.", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be JSON.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')" ]
public static void convertTranSrc(DMatrixRMaj src , DMatrixRBlock dst ) { if( src.numRows != dst.numCols || src.numCols != dst.numRows ) throw new IllegalArgumentException("Incompatible matrix shapes."); for( int i = 0; i < dst.numRows; i += dst.blockLength ) { int blockHeight = Math.min( dst.blockLength , dst.numRows - i); for( int j = 0; j < dst.numCols; j += dst.blockLength ) { int blockWidth = Math.min( dst.blockLength , dst.numCols - j); int indexDst = i*dst.numCols + blockHeight*j; int indexSrc = j*src.numCols + i; for( int l = 0; l < blockWidth; l++ ) { int rowSrc = indexSrc + l*src.numCols; int rowDst = indexDst + l; for( int k = 0; k < blockHeight; k++ , rowDst += blockWidth ) { dst.data[ rowDst ] = src.data[rowSrc++]; } } } } }
[ "Converts the transpose of a row major matrix into a row major block matrix.\n\n@param src Original DMatrixRMaj. Not modified.\n@param dst Equivalent DMatrixRBlock. Modified." ]
[ "Transform the operation into something the proxy controller understands.\n\n@param identity the server identity\n@return the transformed operation", "Use this API to fetch all the spilloverpolicy resources that are configured on netscaler.", "Given a filesystem, path and buffer-size, read the file contents and\npresents it as a string\n\n@param fs Underlying filesystem\n@param path The file to read\n@param bufferSize The buffer size to use for reading\n@return The contents of the file as a string\n@throws IOException", "This method will be intercepted by the proxy if it is enabled to return the internal target.\n@return the target.", "Set the name to be used in announcing our presence on the network. The name can be no longer than twenty\nbytes, and should be normal ASCII, no Unicode.\n\n@param name the device name to report in our presence announcement packets.", "Iterates over the elements of an iterable collection of items and returns\nthe index values of the items that match the condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param closure the filter to perform a match on the collection\n@return a list of numbers corresponding to the index values of all matched objects\n@since 1.5.2", "Notifies that multiple footer items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Use this API to fetch statistics of appfwprofile_stats resource of given name .", "It's enough to just set the disabled attribute on the\nelement, but we want to also add a \"disabled\" class so that we can\nstyle it.\n\nAt some point we'll just be able to use .button:disabled,\nbut that doesn't work in IE8-" ]
@Inject(optional = true) protected Pattern setEndTag(@Named(AbstractMultiLineCommentProvider.END_TAG) final String endTag) { return this.endTagPattern = Pattern.compile((endTag + "\\z")); }
[ "this method is not intended to be called by clients\n@since 2.12" ]
[ "Get a loader that lists the files in the current path,\nand monitors changes.", "This method reads a byte array from the input stream.\n\n@param is the input stream\n@param size number of bytes to read\n@return byte array\n@throws IOException on file read error or EOF", "Retrieve and validate store name from the REST request.\n\n@return true if valid, false otherwise", "Sets the country for which currencies should be requested.\n\n@param countries The ISO countries.\n@return the query for chaining.", "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", "Returns a flag indicating if also unreleased resources should be found.\n@return A flag indicating if also unreleased resources should be found.", "Read a single weekday from the provided JSON value.\n@param val the value to read the week day from.\n@return the week day read\n@throws IllegalArgumentException thrown if the provided JSON value is not the representation of a week day.", "Create a Vendor from a Func0", "Generate the next available field for a user defined field.\n\n@param <E> field type class\n@param clazz class of the desired field enum\n@param type user defined field type.\n@return field of specified type" ]
public static void saveContentMap(Map<String, String> map, File file) throws IOException { FileWriter out = new FileWriter(file); for (String key : map.keySet()) { if (map.get(key) != null) { out.write(key.replace(":", "#escapedtwodots#") + ":" + map.get(key).replace(":", "#escapedtwodots#") + "\r\n"); } } out.close(); }
[ "Save map to file\n@param map Map to save\n@param file File to save\n@throws IOException I/O error" ]
[ "Provides a RunAs client login context", "Generates the specified number of random resource names with the same prefix.\n@param prefix the prefix to be used if possible\n@param maxLen the maximum length for the random generated name\n@param count the number of names to generate\n@return random names", "Write a set of fields from a field container to a JSON file.\n@param objectName name of the object, or null if no name required\n@param container field container\n@param fields fields to write", "Return true only if the specified object responds to the named method\n@param object - the object to check\n@param methodName - the name of the method\n@return true if the object responds to the named method", "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown", "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@param target\nthe class\n@return\ntrue if the class node 'is a' target", "Read properties from the raw header data.\n\n@param stream input stream", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "Destroys the context" ]
@RequestMapping(value = "api/edit/disable", method = RequestMethod.POST) public @ResponseBody String disableResponses(Model model, int path_id, @RequestParam(defaultValue = Constants.PROFILE_CLIENT_DEFAULT_ID) String clientUUID) throws Exception { OverrideService.getInstance().disableAllOverrides(path_id, clientUUID); //TODO also need to disable custom override if there is one of those editService.removeCustomOverride(path_id, clientUUID); return null; }
[ "disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@param clientUUID\n@return\n@throws Exception" ]
[ "The range of velocities that a particle generated from this emitter can have.\n@param minV Minimum velocity that a particle can have\n@param maxV Maximum velocity that a particle can have", "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", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests", "Check if number is valid\n\n@return boolean", "Returns the value of the matrix at the specified index of the 1D row major array.\n\n@see DMatrixRMaj#get(int)\n\n@param index The element's index whose value is to be returned\n@return The value of the specified element.", "set the property destination type for given property\n\n@param propertyName\n@param destinationType", "Create a temporary directory under a given workspace", "Scan all the class path and look for all classes that have the Format\nAnnotations.", "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" ]
private void deliverWaveformDetailUpdate(final int player, final WaveformDetail detail) { if (!getWaveformListeners().isEmpty()) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { final WaveformDetailUpdate update = new WaveformDetailUpdate(player, detail); for (final WaveformListener listener : getWaveformListeners()) { try { listener.detailChanged(update); } catch (Throwable t) { logger.warn("Problem delivering waveform detail update to listener", t); } } } }); } }
[ "Send a waveform detail update announcement to all registered listeners.\n\n@param player the player whose waveform detail has changed\n@param detail the new waveform detail, if any" ]
[ "Extract and return the table name for a class.", "get the setter method corresponding to given property", "Writes an untagged OK response, with the supplied response code,\nand an optional message.\n\n@param responseCode The response code, included in [].\n@param message The message to follow the []", "Returns all base types.\n\n@return An iterator of the base types", "Runs a queued task, if the queue is not already empty.\n\nNote that this will decrement the request count if there are no queued tasks to be run\n\n@param hasPermit If the caller has already called {@link #beginRequest(boolean force)}", "Sets any application-specific custom fields. The values\nare presented to the application and the iPhone doesn't\ndisplay them automatically.\n\nThis can be used to pass specific values (urls, ids, etc) to\nthe application in addition to the notification message\nitself.\n\n@param key the custom field name\n@param value the custom field value\n@return this", "Execute the transactional flow - catch all exceptions\n\n@param input Initial data input\n@return Try that represents either success (with result) or failure (with errors)", "Internal used method which start the real store work.", "The way calendars are stored in an MSPDI file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects" ]
private void createResultSubClassesMultipleJoinedTables(List result, ClassDescriptor cld, boolean wholeTree) { List tmp = (List) superClassMultipleJoinedTablesMap.get(cld.getClassOfObject()); if(tmp != null) { result.addAll(tmp); if(wholeTree) { for(int i = 0; i < tmp.size(); i++) { Class subClass = (Class) tmp.get(i); ClassDescriptor subCld = getDescriptorFor(subClass); createResultSubClassesMultipleJoinedTables(result, subCld, wholeTree); } } } }
[ "Add all sub-classes using multiple joined tables feature for specified class.\n@param result The list to add results.\n@param cld The {@link ClassDescriptor} of the class to search for sub-classes.\n@param wholeTree If set <em>true</em>, the whole sub-class tree of the specified\nclass will be returned. If <em>false</em> only the direct sub-classes of the specified class\nwill be returned." ]
[ "Determines run length for each 'initial' partition ID. Note that a\ncontiguous run may \"wrap around\" the end of the ring.\n\n@param cluster\n@param zoneId\n@return map of initial partition Id to length of contiguous run of\npartition IDs within the same zone..", "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code", "Convert this lattice to store data in the given convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param targetConvention The convention to store the data in.\n@param displacement The displacement to use, if applicable.\n@param model The model for context.\n\n@return The converted lattice.", "Returns the item at the specified position.\n\n@param position index of the item to return\n@return the item at the specified position or {@code null} when not found", "Use this API to fetch sslpolicylabel resource of given name .", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong", "Publish finish events for each of the specified query types\n\n<pre>\n{@code\nRequestEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Identifier\n@param bus EventBus to post events to\n@param types Query types to post to event bus", "Convert string to qname.\n\n@param str the string\n@return the qname", "Used to NOT the argument clause specified." ]
private static String findOutputPath(String[][] options) { for (int i = 0; i < options.length; i++) { if (options[i][0].equals("-d")) return options[i][1]; } return "."; }
[ "Returns the output path specified on the javadoc options" ]
[ "Builds a new instance for the class represented by the given class descriptor.\n\n@param cld The class descriptor\n@return The instance", "This is private because the execute is the only method that should be called here.", "Returns a new intern odmg-transaction for the current database.", "Runs calls in a background thread so that the results will actually be asynchronous.\n\n@see com.google.appengine.tools.cloudstorage.RawGcsService#continueObjectCreationAsync(\ncom.google.appengine.tools.cloudstorage.RawGcsService.RawGcsCreationToken,\njava.nio.ByteBuffer, long)", "Creates the server bootstrap.", "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history", "ends the request and clears the cache. This can be called before the request is over,\nin which case the cache will be unavailable for the rest of the request.", "This method converts an offset value into an array index, which in\nturn allows the data present in the fixed block to be retrieved. Note\nthat if the requested offset is not found, then this method returns -1.\n\n@param offset Offset of the data in the fixed block\n@return Index of data item within the fixed data block", "Get the original image URL.\n\n@return The original image URL" ]
public Task<RemoteInsertOneResult> insertOne(final DocumentT document) { return dispatcher.dispatchTask(new Callable<RemoteInsertOneResult>() { @Override public RemoteInsertOneResult call() { return proxy.insertOne(document); } }); }
[ "Inserts the provided document. If the document is missing an identifier, the client should\ngenerate one.\n\n@param document the document to insert\n@return a task containing the result of the insert one operation" ]
[ "Log a byte array.\n\n@param label label text\n@param data byte array", "Creates a new SimpleMatrix with the specified DMatrixRMaj used as its internal matrix. This means\nthat the reference is saved and calls made to the returned SimpleMatrix will modify the passed in DMatrixRMaj.\n\n@param internalMat The internal DMatrixRMaj of the returned SimpleMatrix. Will be modified.", "Retrieves state and metrics information for individual client connection.\n\n@param name connection name\n@return connection information", "Mark root of this DAG depends on given DAG's root.\n\n@param dependencyGraph the dependency DAG", "Delete a database for a given path and userId.\n@param appInfo the info for this application\n@param serviceName the name of the associated service\n@param clientFactory the associated factory that creates clients\n@param userId the id of the user's to delete\n@return true if successfully deleted, false if not", "Connect and register at the remote domain controller.\n\n@return connection the established connection\n@throws IOException", "Writes this IIMFile to writer.\n\n@param writer\nwriter to write to\n@throws IOException\nif file can't be written to", "Create the close button UI Component.\n@return the close button.", "Iterates through the range of prefixes in this range instance using the given prefix length.\n\n@param prefixLength\n@return" ]
private void readTaskExtendedAttributes(Project.Tasks.Task xml, Task mpx) { for (Project.Tasks.Task.ExtendedAttribute attrib : xml.getExtendedAttribute()) { int xmlFieldID = Integer.parseInt(attrib.getFieldID()) & 0x0000FFFF; TaskField mpxFieldID = MPPTaskField.getInstance(xmlFieldID); TimeUnit durationFormat = DatatypeConverter.parseDurationTimeUnits(attrib.getDurationFormat(), null); DatatypeConverter.parseExtendedAttribute(m_projectFile, mpx, attrib.getValue(), mpxFieldID, durationFormat); } }
[ "This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance" ]
[ "Returns the classDescriptor.\n\n@return ClassDescriptor", "Use this API to unset the properties of clusterinstance resources.\nProperties that need to be unset are specified in args array.", "Convert an ObjectBank to corresponding collection of data features and\nlabels.\n\n@return A List of pairs, one for each document, where the first element is\nan int[][][] representing the data and the second element is an\nint[] representing the labels.", "Creates Accumulo connector given FluoConfiguration", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Called when the layout is applied to the data\n@param container WidgetContainer to access the org.gearvrf.org.gearvrf.widgetlib in the layout\n@param viewPortSize View port for data set", "Updates the exceptions.\n@param exceptions the exceptions to set", "As we merge several operations into one operation, we need to be sure the write concern applied to the aggregated\noperation respects all the requirements expressed for each separate operation.\n\nThus, for each parameter of the write concern, we keep the stricter one for the resulting merged write concern." ]
public String clean(String value) { String orig = value; // check if there's a + before the first digit boolean initialplus = findPlus(value); // remove everything but digits value = sub.clean(value); if (value == null) return null; // check for initial '00' boolean zerozero = !initialplus && value.startsWith("00"); if (zerozero) value = value.substring(2); // strip off the zeros // look for country code CountryCode ccode = findCountryCode(value); if (ccode == null) { // no country code, let's do what little we can if (initialplus || zerozero) return orig; // this number is messed up. dare not touch return value; } else { value = value.substring(ccode.getPrefix().length()); // strip off ccode if (ccode.getStripZero() && value.startsWith("0")) value = value.substring(1); // strip the zero if (ccode.isRightFormat(value)) return "+" + ccode.getPrefix() + " " + value; else return orig; // don't dare touch this } }
[ "look for zero after country code, and remove if present" ]
[ "Determine the current state the server is in.\n\n@return the server status", "Checks if template mapper is configured in modules.\n\n@return true if the template mapper is configured in modules", "Gets the URL of the route with given name.\n@param routeName to return its URL\n@return URL backed by the route with given name.", "Hides the original Java-style method name using an attribute\nwhich should be respected by Visual Studio, the creates a new\nwrapper method using a .Net style method name.\n\nNote that this does not work for VB as it is case insensitive. Even\nthough Visual Studio won't show you the Java-style method name,\nthe VB compiler sees both and thinks they are the same... which\ncauses it to fail.\n\n@param writer output stream\n@param aClass class being processed\n@param methodSet set of methods which have been processed.\n@throws XMLStreamException", "Sets the target hosts from line by line text.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the parallel task builder\n@throws TargetHostsLoadException\nthe target hosts load exception", "Use this API to update vpnclientlessaccesspolicy.", "Generate the next permutation and return an array containing\nthe elements in the appropriate order.\n@see #nextPermutationAsArray(Object[])\n@see #nextPermutationAsList()\n@return The next permutation as an array.", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Update the current position with specified length.\nThe input will append to the current position of the iterator.\n\n@param length update length" ]
public static void writeUnsignedShort(byte[] bytes, int value, int offset) { bytes[offset] = (byte) (0xFF & (value >> 8)); bytes[offset + 1] = (byte) (0xFF & value); }
[ "Write an unsigned short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at" ]
[ "sets the class object described by this descriptor.\n@param c the class to describe", "Use this API to fetch statistics of scpolicy_stats resource of given name .", "Create the service name for a channel\n\n@param channelName\nthe channel name\n@return the service name", "Sets the size of a UIObject", "Gets the sub-entries of the navigation entry.\n\n@return the sub-entries", "Create a Task instance from a Phoenix activity.\n\n@param activity Phoenix activity data", "Saves the state of this connection to a string so that it can be persisted and restored at a later time.\n\n<p>Note that proxy settings aren't automatically saved or restored. This is mainly due to security concerns\naround persisting proxy authentication details to the state string. If your connection uses a proxy, you will\nhave to manually configure it again after restoring the connection.</p>\n\n@see #restore\n@return the state of this connection.", "Use this API to fetch nstimer_binding resource of given name .", "provides a safe toString" ]
public ItemRequest<Tag> update(String tag) { String path = String.format("/tags/%s", tag); return new ItemRequest<Tag>(this, Tag.class, path, "PUT"); }
[ "Updates the properties of a tag. Only the fields provided in the `data`\nblock will be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated tag record.\n\n@param tag The tag to update.\n@return Request object" ]
[ "find all accessibility object and set active false for enable talk back.", "Generates timephased costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost", "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException", "Returns iterable with all folder assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all folder assignments.", "Initialize the domain registry.\n\n@param registry the domain registry", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Validate the header signature.\n\n@param input The input to read the signature from\n@throws IOException If any read problems occur", "Use this API to fetch all the ci resources that are configured on netscaler.", "Returns an array of all the singular values in A sorted in ascending order\n\n@param A Matrix. Not modified.\n@return singular values" ]
public void getElevationForLocations(LocationElevationRequest req, ElevationServiceCallback callback) { this.callback = callback; JSObject doc = (JSObject) getJSObject().eval("document"); doc.setMember(getVariableName(), this); StringBuilder r = new StringBuilder(getVariableName()) .append(".") .append("getElevationForLocations(") .append(req.getVariableName()) .append(", ") .append("function(results, status) {alert('rec:'+status);\ndocument.") .append(getVariableName()) .append(".processResponse(results, status);});"); LOG.trace("ElevationService direct call: " + r.toString()); getJSObject().eval(r.toString()); }
[ "Create a request for elevations for multiple locations.\n\n@param req\n@param callback" ]
[ "Record the details of the media being cached, to make it easier to recognize, now that we have access to that\ninformation.\n\n@param slot the slot from which a metadata cache is being created\n@param zos the stream to which the ZipFile is being written\n@param channel the low-level channel to which the cache is being written\n\n@throws IOException if there is a problem writing the media details entry", "Returns true if the class node represents a the class node for the Class class\nand if the parametrized type is a neither a placeholder or a wildcard. For example,\nthe class node Class&lt;Foo&gt; where Foo is a class would return true, but the class\nnode for Class&lt;?&gt; would return false.\n@param classNode a class node to be tested\n@return true if it is the class node for Class and its generic type is a real class", "StartMain passes in the command line args here.\n\n@param args The command line arguments. If null is given then an empty\narray will be used instead.", "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "At the moment we only support the case where one entity type is returned", "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation terminates.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param <T> the return type of the caller\n@param resourceType the java.lang.reflect.Type of the resource.\n@return the terminal response for the operation.\n@throws CloudException REST exception\n@throws InterruptedException interrupted exception\n@throws IOException thrown by deserialization", "Use this API to fetch sslpolicy_lbvserver_binding resources of given name .", "Get by index is used here.", "compute Sin using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result." ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher deleteFacet(String... attributes) { for (String attribute : attributes) { facetRequestCount.put(attribute, 0); facets.remove(attribute); } rebuildQueryFacets(); return this; }
[ "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining." ]
[ "Retrieve list of task extended attributes.\n\n@return list of extended attributes", "parse the target resource and add it to the current shape\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Abort an upload session, discarding any chunks that were uploaded to it.", "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.", "Converts a collection of dates to a JSON array with the long representation of the dates as strings.\n@param dates the list to convert.\n@return JSON array with long values of dates as string", "Gets all tags that are \"prime\" tags.", "Gets display duration for specified frame.\n\n@param n int index of frame.\n@return delay in milliseconds.", "Get a collection of public groups for the user.\n\nThe groups will contain only the members nsid, name, admin and eighteenplus. If you want the whole group-information, you have to call\n{@link com.flickr4java.flickr.groups.GroupsInterface#getInfo(String)}.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The public groups\n@throws FlickrException", "Returns the default conversion for the given java type.\n\n@param javaType The qualified java type\n@return The default conversion or <code>null</code> if there is no default conversion for the type" ]
public List<Client> findAllClients(int profileId) throws Exception { ArrayList<Client> clients = new ArrayList<Client>(); PreparedStatement query = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { query = sqlConnection.prepareStatement( "SELECT * FROM " + Constants.DB_TABLE_CLIENT + " WHERE " + Constants.GENERIC_PROFILE_ID + " = ?" ); query.setInt(1, profileId); results = query.executeQuery(); while (results.next()) { clients.add(this.getClientFromResultSet(results)); } } catch (Exception e) { throw e; } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (query != null) { query.close(); } } catch (Exception e) { } } return clients; }
[ "Return all Clients for a profile\n\n@param profileId ID of profile clients belong to\n@return collection of the Clients found\n@throws Exception exception" ]
[ "Handles the change of a value in the current translation.\n@param propertyId the property id of the column where the value has changed.", "Returns a correlation matrix which has rank &lt; n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.", "Try to extract a numeric version from a collection of strings.\n\n@param versionStrings Collection of string properties.\n@return The version string if exists in the collection.", "Deletes the specified shovel from specified virtual host.\n\n@param vhost virtual host from where to delete the shovel\n@param shovelname Shovel to be deleted.", "Performs all actions that have been configured.", "Use this API to update ntpserver.", "Returns the index of the eigenvalue which has the largest magnitude.\n\n@return index of the largest magnitude eigen value.", "Adds a table to this model.\n\n@param table The table", "Create a mapping from entity names to entity ID values." ]
public static DMatrixRMaj nullspaceSVD( DMatrixRMaj A , int totalSingular ) { SolveNullSpace<DMatrixRMaj> solver = new SolveNullSpaceSvd_DDRM(); DMatrixRMaj nullspace = new DMatrixRMaj(1,1); if( !solver.process(A,totalSingular,nullspace)) throw new RuntimeException("Solver failed. try SVD based method instead?"); return nullspace; }
[ "Computes the null space using SVD. Slowest bust most stable way to find the solution\n\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space" ]
[ "The Cost Variance field shows the difference between the baseline cost\nand total cost for a task. The total cost is the current estimate of costs\nbased on actual costs and remaining costs.\n\n@return amount", "Configure if you want this collapsible container to\naccordion its child elements or use expandable.", "To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT\n@param aligment\n@return", "Update the value of an embedded node property.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param keyValues the columns representing the identifier in the entity owning the embedded\n@param embeddedColumn the column on the embedded node (dot-separated properties)\n@param value the new value for the property", "Returns the corresponding ModuleSpec service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service", "Retrieves the Material Shader ID associated with the\ngiven shader template class.\n\nA shader template is capable of generating multiple variants\nfrom a single shader source. The exact vertex and fragment\nshaders are generated by GearVRF based on the lights\nbeing used and the material attributes. you may subclass\nGVRShaderTemplate to create your own shader templates.\n\n@param shaderClass shader class to find (subclass of GVRShader)\n@return GVRShaderId associated with that shader template\n@see GVRShaderTemplate GVRShader", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Parses command-line and checks if metadata is consistent 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", "Removes top of thread-local shell stack." ]
ArgumentsBuilder param(String param, Integer value) { if (value != null) { args.add(param); args.add(value.toString()); } return this; }
[ "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." ]
[ "appends a WHERE-clause to the Statement\n@param where\n@param crit\n@param stmt", "Logs the time taken by this rule and adds this to the total time taken for this phase", "Returns the length of the message in bytes as it is encoded on the wire.\n\nApple require the message to be of length 255 bytes or less.\n\n@return length of encoded message in bytes", "Add a plugin path\n\n@param model\n@param add\n@return\n@throws Exception", "Notifies that multiple content items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Method to build Integration flow for IMAP Idle configuration.\n@param urlName Mail source URL.\n@return Integration Flow object IMAP IDLE.", "Deserializes a variable, checking whether the datatype is custom or not\n@param s\n@param variableType\n@param dataTypes\n@return", "return a generic Statement for the given ClassDescriptor", "Prints the data of one property to the given output. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param propertyRecord\nthe data to write\n@param propertyIdValue\nthe property that the data refers to" ]
public void connect(final String serialPortName) throws SerialInterfaceException { logger.info("Connecting to serial port {}", serialPortName); try { CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(serialPortName); CommPort commPort = portIdentifier.open("org.openhab.binding.zwave",2000); this.serialPort = (SerialPort) commPort; this.serialPort.setSerialPortParams(115200,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE); this.serialPort.enableReceiveThreshold(1); this.serialPort.enableReceiveTimeout(ZWAVE_RECEIVE_TIMEOUT); this.receiveThread = new ZWaveReceiveThread(); this.receiveThread.start(); this.sendThread = new ZWaveSendThread(); this.sendThread.start(); logger.info("Serial port is initialized"); } catch (NoSuchPortException e) { logger.error(e.getLocalizedMessage()); throw new SerialInterfaceException(e.getLocalizedMessage(), e); } catch (PortInUseException e) { logger.error(e.getLocalizedMessage()); throw new SerialInterfaceException(e.getLocalizedMessage(), e); } catch (UnsupportedCommOperationException e) { logger.error(e.getLocalizedMessage()); throw new SerialInterfaceException(e.getLocalizedMessage(), e); } }
[ "Connects to the comm port and starts send and receive threads.\n@param serialPortName the port name to open\n@throws SerialInterfaceException when a connection error occurs." ]
[ "Changes the vertex buffer associated with this mesh.\n@param vbuf new vertex buffer to use\n@see #setVertices(float[])\n@see #getVertexBuffer()\n@see #getVertices()", "This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation instance", "Use this API to delete gslbsite resources of given names.", "Adds a slash to a path if it doesn't end with a slash.\n\n@param folderName The path to append a possible slash.\n@return The new, correct path.", "Convert this path address to its model node representation.\n\n@return the model node list of properties", "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.", "Try to get an attribute value from two elements.\n\n@param firstElement\n@param secondElement\n@return attribute value", "Registers annotations which will be considered as bean defining annotations.\n\nNOTE - If used along with {@code <trim/>} bean archives and/or with Weld configuration key\n{@code org.jboss.weld.bootstrap.vetoTypesWithoutBeanDefiningAnnotation}, these annotations will be ignored.\n\n@param annotations annotations which will be considered as Bean Defining Annotations.\n@return self", "Returns the name under which this dump file. This is the name used online\nand also locally when downloading the file.\n\n@param dumpContentType\nthe type of the dump\n@param projectName\nthe project name, e.g. \"wikidatawiki\"\n@param dateStamp\nthe date of the dump in format YYYYMMDD\n@return file name string" ]
public static final String getString(byte[] data, int offset) { return getString(data, offset, data.length - offset); }
[ "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value" ]
[ "Print a resource UID.\n\n@param value resource UID value\n@return resource UID string", "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array.", "All tests completed.", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field", "Adds the given service provider factory to the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Set the buttons size.", "Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy", "Generate a string with all selected checkboxes separated with ','.\n\n@return a string with all selected checkboxes", "Checks if the DPI value is already set for GeoServer." ]
public static base_response update(nitro_service client, autoscaleprofile resource) throws Exception { autoscaleprofile updateresource = new autoscaleprofile(); updateresource.name = resource.name; updateresource.url = resource.url; updateresource.apikey = resource.apikey; updateresource.sharedsecret = resource.sharedsecret; return updateresource.update_resource(client); }
[ "Use this API to update autoscaleprofile." ]
[ "Adds a listener to this collection.\n\n@param listener The listener to add", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.", "Produces the Soundex key for the given string.", "Store an Object.\n@see org.apache.ojb.broker.PersistenceBroker#store(Object)", "Returns an array of all the singular values in A sorted in ascending order\n\n@param A Matrix. Not modified.\n@return singular values", "Returns the \"msgCount\" belief\n\n@return int - the count", "Stop finding signatures for all active players.", "Sets the alias. Empty String is regarded as null.\n@param alias The alias to set", "Converts a parameter map to the parameter string.\n@param parameters the parameter map.\n@return the parameter string." ]
public ApnsServiceBuilder withAuthProxy(Proxy proxy, String proxyUsername, String proxyPassword) { this.proxy = proxy; this.proxyUsername = proxyUsername; this.proxyPassword = proxyPassword; return this; }
[ "Specify the proxy and the authentication parameters to be used\nto establish the connections to Apple Servers.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n@param proxy the proxy object to be used to create connections\n@param proxyUsername a String object representing the username of the proxy server\n@param proxyPassword a String object representing the password of the proxy server\n@return this" ]
[ "Returns current selenium version from JAR set in classpath.\n\n@return Version of Selenium.", "Use this API to fetch cmppolicylabel resource of given name .", "Compute the location of the generated file from the given trace file.", "Creates the DAO if we have config information cached and caches the DAO.", "Adds the offset.\n\n@param start the start\n@param end the end", "Returns the required gallery open parameters.\n\n@param cms an initialized instance of a CmsObject\n@param messages the dialog messages\n@param param the widget parameter to generate the widget for\n@param resource the resource being edited\n@param hashId the field id hash\n\n@return the gallery open parameters", "Performs all actions that have been configured.", "Retrieve any task field value lists defined in the MPP file.", "Removes the row with the specified key from this association.\n\n@param key the key of the association row to remove" ]
public static base_response expire(nitro_service client, cacheobject resource) throws Exception { cacheobject expireresource = new cacheobject(); expireresource.locator = resource.locator; expireresource.url = resource.url; expireresource.host = resource.host; expireresource.port = resource.port; expireresource.groupname = resource.groupname; expireresource.httpmethod = resource.httpmethod; return expireresource.perform_operation(client,"expire"); }
[ "Use this API to expire cacheobject." ]
[ "checks if the triangle is not re-entrant", "This method is called to alert project listeners to the fact that\na resource has been read from a project file.\n\n@param resource resource instance", "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance", "Reads data from a single page of the database file.\n\n@param buffer page from the database file\n@param table Table instance", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar. The\ncalendar used is the \"Standard\" calendar. If this calendar does not exist,\nand exception will be thrown.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Adds a JSON string representing to the DB.\n\n@param obj the JSON to record\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR", "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset.", "Copy the given Collection into a Class array.\nThe Collection must contain Class elements only.\n@param collection the Collection to copy\n@return the Class array ({@code null} if the passed-in\nCollection was {@code null})", "Re-maps a provided collection.\n\n@param <T_Result>\ntype of result\n@param <T_Source>\ntype of source\n@param source\nfor mapping\n@param mapper\nelement mapper\n@return mapped source" ]
public static boolean isDiagonalPositive( DMatrixRMaj a ) { for( int i = 0; i < a.numRows; i++ ) { if( !(a.get(i,i) >= 0) ) return false; } return true; }
[ "Checks to see if all the diagonal elements in the matrix are positive.\n\n@param a A matrix. Not modified.\n@return true if all the diagonal elements are positive, false otherwise." ]
[ "Keep track of this handle tied to which thread so that if the thread is terminated\nwe can reclaim our connection handle. We also\n@param c connection handle to track.", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "Visits an annotation on a local variable type.\n\n@param typeRef\na reference to the annotated type. The sort of this type\nreference must be {@link TypeReference#LOCAL_VARIABLE\nLOCAL_VARIABLE} or {@link TypeReference#RESOURCE_VARIABLE\nRESOURCE_VARIABLE}. See {@link TypeReference}.\n@param typePath\nthe path to the annotated type argument, wildcard bound, array\nelement type, or static inner type within 'typeRef'. May be\n<tt>null</tt> if the annotation targets 'typeRef' as a whole.\n@param start\nthe fist instructions corresponding to the continuous ranges\nthat make the scope of this local variable (inclusive).\n@param end\nthe last instructions corresponding to the continuous ranges\nthat make the scope of this local variable (exclusive). This\narray must have the same size as the 'start' array.\n@param index\nthe local variable's index in each range. This array must have\nthe same size as the 'start' array.\n@param desc\nthe class descriptor of the annotation class.\n@param visible\n<tt>true</tt> if the annotation is visible at runtime.\n@return a visitor to visit the annotation values, or <tt>null</tt> if\nthis visitor is not interested in visiting this annotation.", "Write notes.\n\n@param recordNumber record number\n@param text note text\n@throws IOException", "Set the pattern scheme.\n@param isWeekDayBased flag, indicating if the week day based scheme should be set.", "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "Creates metadata on this folder using a specified scope and template.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Transposes an individual block inside a block matrix.", "Remove an existing Corporate GroupId from an organization.\n\n@return Response" ]
public static ScheduledJob create(String cronExpression) { ScheduledJob res = new ScheduledJob(); res.cronExpression = cronExpression; return res; }
[ "Fluent API builder.\n\n@param cronExpression\n@return" ]
[ "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.", "Button onClick listener.\n\n@param v", "Use this API to unset the properties of nsrpcnode resource.\nProperties that need to be unset are specified in args array.", "Execute the transactional flow - catch only specified exceptions\n\n@param input Initial data input\n@param classes Exception types to catch\n@return Try that represents either success (with result) or failure (with errors)", "If there is an unprocessed change event for a particular document ID, fetch it from the\nchange stream listener, and remove it. By reading the event here, we are assuming it will be\nprocessed by the consumer.\n\n@return the latest unprocessed change event for the given document ID, or null if none exists.", "Sets the proxy class to be used.\n@param newProxyClass java.lang.Class", "get target hosts from line by line.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the list\n@throws TargetHostsLoadException\nthe target hosts load exception", "Go over the task list and create a map of stealerId -> Tasks\n\n@param sbTaskList List of all stealer-based rebalancing tasks to be\nscheduled.", "Returns iterable with all non-deleted file version legal holds for this legal hold policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing file version legal holds info." ]
@AfterThrowing(pointcut = "execution(* org.apache.cassandra.thrift.CassandraServer.doInsert(..))", throwing = "throwable") public void logErrorFromThrownException(final JoinPoint joinPoint, final Throwable throwable) { final String className = joinPoint.getTarget().getClass().getName(); final String methodName = joinPoint.getSignature().getName(); logger.error("Could not write to cassandra! Method: " + className + "."+ methodName + "()", throwable); }
[ "Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation" ]
[ "This method returns the existing folder, and if it does not exist, the\nmethod generates it.\n\n@param path\n@param dest_dir\n@return the folder\n@throws BeastException", "There is a race condition that is not handled properly by the DialogFragment class.\nIf we don't check that this onDismiss callback isn't for the old progress dialog from before\nthe device orientation change, then this will cause the newly created dialog after the\norientation change to be dismissed immediately.", "Use this API to fetch the statistics of all servicegroup_stats resources that are configured on netscaler.", "Paint a check pattern, used for a background to indicate image transparency.\n@param c the component to draw into\n@param g the Graphics objects\n@param x the x position\n@param y the y position\n@param width the width\n@param height the height", "Gets id of a link and creates the new one if necessary.\n\n@param linkName name of the link.\n@param allowCreate if set to true and if there is no link named as linkName,\ncreate the new id for the linkName.\n@return < 0 if there is no such link and create=false, else id of the link", "Copy the contents of this buffer to the destination LBuffer\n@param srcOffset\n@param dest\n@param destOffset\n@param size", "Dumps a texture coordinate set of a mesh to stdout.\n\n@param mesh the mesh\n@param coords the coordinates", "Add working days and working time to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "Used for initialization of the underlying map provider.\n\n@param fragmentManager required for initialization" ]
public static MapBounds adjustBoundsToScaleAndMapSize( final GenericMapAttributeValues mapValues, final Rectangle paintArea, final MapBounds bounds, final double dpi) { MapBounds newBounds = bounds; if (mapValues.isUseNearestScale()) { newBounds = newBounds.adjustBoundsToNearestScale( mapValues.getZoomLevels(), mapValues.getZoomSnapTolerance(), mapValues.getZoomLevelSnapStrategy(), mapValues.getZoomSnapGeodetic(), paintArea, dpi); } newBounds = new BBoxMapBounds(newBounds.toReferencedEnvelope(paintArea)); if (mapValues.isUseAdjustBounds()) { newBounds = newBounds.adjustedEnvelope(paintArea); } return newBounds; }
[ "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." ]
[ "Registers the transformers for JBoss EAP 7.0.0.\n\n@param subsystemRegistration contains data about the subsystem registration", "Use this API to fetch all the tunneltrafficpolicy resources that are configured on netscaler.", "Add a raw statement as part of the where that can be anything that the database supports. Using more structured\nmethods is recommended but this gives more control over the query and allows you to utilize database specific\nfeatures.\n\n@param rawStatement\nThe statement that we should insert into the WHERE.\n\n@param args\nOptional arguments that correspond to any ? specified in the rawStatement. Each of the arguments must\nhave either the corresponding columnName or the sql-type set. <b>WARNING,</b> you cannot use the\n{@code SelectArg(\"columnName\")} constructor since that sets the _value_, not the name. Use\n{@code new SelectArg(\"column-name\", null);}.", "Sets the license for a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo to update the license for.\n@param licenseId\nThe license to apply, or 0 (zero) to remove the current license.\n@throws FlickrException", "Calculate the duration percent complete.\n\n@param row task data\n@return percent complete", "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", "Checks to see within the flags if a reload, i.e. not a full restart, is required.\n\n@param flags the flags to check\n\n@return {@code true} if a reload is required, otherwise {@code false}", "Layout which gets displayed if table is empty.\n\n@see org.opencms.ui.apps.user.I_CmsFilterableTable#getEmptyLayout()", "Get the default provider used.\n\n@return the default provider, never {@code null}." ]
public void editMeta(String photosetId, String title, String description) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_META); parameters.put("photoset_id", photosetId); parameters.put("title", title); if (description != null) { parameters.put("description", description); } Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } }
[ "Modify the meta-data for a photoset.\n\n@param photosetId\nThe photoset ID\n@param title\nA new title\n@param description\nA new description (can be null)\n@throws FlickrException" ]
[ "bind attribute and value\n@param stmt\n@param index\n@param attributeOrQuery\n@param value\n@param cld\n@return\n@throws SQLException", "Prep for a new connection\n@return if stats are enabled, return the nanoTime when this connection was requested.\n@throws SQLException", "Handle bind service event.\n@param service Service instance\n@param props Service reference properties", "Extracts a duration from a JAXBElement instance.\n\n@param duration duration expressed in hours\n@return duration instance", "Use this API to fetch all the lbroute resources that are configured on netscaler.", "Return the numeric distance value in degrees.\n\n@return the degrees", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "Checks the preconditions for creating a new HashMapper processor.\n\n@param mapping\nthe Map\n@throws NullPointerException\nif mapping is null\n@throws IllegalArgumentException\nif mapping is empty", "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." ]
public String join(List<String> list) { if (list == null) { return null; } StringBuilder sb = new StringBuilder(); boolean first = true; for (String s : list) { if (s == null) { if (convertEmptyToNull) { s = ""; } else { throw new IllegalArgumentException("StringListFlattener does not support null strings in the list. Consider calling setConvertEmptyToNull(true)."); } } if (!first) { sb.append(separator); } for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == escapeChar || c == separator) { sb.append(escapeChar); } sb.append(c); } first = false; } return sb.toString(); }
[ "Joins the given list into a single string." ]
[ "Add component processing time to given map\n@param mapComponentTimes\n@param component", "Creates a non-binary text media type with the given subtype and a specified encoding", "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", "Initialize the various DAO configurations after the various setters have been called.", "Add a mapping of properties between two beans\n\n@param beanToBeanMapping", "This method must be called on the start of the component. Initialize and start the directory monitor.\n\n@param monitoredDirectory\n@param pollingTime", "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "From three tagNames, if one is under sectorTag and one under rowTag, returns the remaining one, which is supposedly the a box label. Otherwise,\nreturns null.", "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder" ]
public static void launchPermissionSettings(Activity activity) { Intent intent = new Intent(); intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.fromParts("package", activity.getPackageName(), null)); activity.startActivity(intent); }
[ "Launch Application Setting to grant permission." ]
[ "Ask the specified player for the beat grid of the track in the specified slot with the specified rekordbox ID,\nfirst checking if we have a cache we can use instead.\n\n@param track uniquely identifies the track whose beat grid is desired\n\n@return the beat grid, if any", "This method retrieves a Duration instance representing the amount of\nwork between two dates based on this calendar.\n\n@param startDate start date\n@param endDate end date\n@param format required duration format\n@return amount of work", "Publish the bundle resources directly.", "Creates a PathAddress from the given ModelNode address. The given node is expected to be an address node.\n\n@param node the node (cannot be {@code null})\n\n@return the update identifier", "Seeks to the given day within the current year\n@param dayOfYear the day of the year to seek to, represented as an integer\nfrom 1 to 366. Must be guaranteed to parse as an Integer. If this day is\nbeyond the last day of the current year, the actual last day of the year\nwill be used.", "Handles week day changes.\n@param event the change event.", "retrieve a single reference- or collection attribute\nof a persistent instance.\n@param pInstance the persistent instance\n@param pAttributeName the name of the Attribute to load", "Sets a single element of this vector. Elements 0, 1, and 2 correspond to\nx, y, and z.\n\n@param i\nelement index\n@param value\nelement value\n@return element value throws ArrayIndexOutOfBoundsException if i is not\nin the range 0 to 2.", "Handler for month changes.\n@param event change event." ]
@SuppressWarnings("serial") private Component createCloseButton() { Button closeBtn = CmsToolBar.createButton( FontOpenCms.CIRCLE_INV_CANCEL, m_messages.key(Messages.GUI_BUTTON_CANCEL_0)); closeBtn.addClickListener(new ClickListener() { public void buttonClick(ClickEvent event) { closeAction(); } }); return closeBtn; }
[ "Create the close button UI Component.\n@return the close button." ]
[ "Package-protected method used to initiate operation execution.\n@return the result action", "Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value corresponding to the key", "Signal that all threads have run to completion, and the multithreaded\nenvironment is over.\n@param check The name of the thread group passed to startThreads()", "Get the MonetaryAmount implementation class.\n\n@return the implementation class of the containing amount instance, never null.\n@see MonetaryAmount#getContext()", "Read an optional Date value form a JSON value.\n@param val the JSON value that should represent the Date as long value in a string.\n@return the Date from the JSON or null if reading the date fails.", "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name", "multi-field string", "dst is just for log information", "Returns the directory of the URL.\n\n@param urlString URL of the file.\n@return The directory string.\n@throws IllegalArgumentException if URL is malformed" ]
public Date getFinish() { Date result = (Date) getCachedValue(AssignmentField.FINISH); if (result == null) { result = getTask().getFinish(); } return result; }
[ "Returns the finish date for this resource assignment.\n\n@return finish date" ]
[ "Adds an additional alias to the constructed document.\n\n@param text\nthe text of the alias\n@param languageCode\nthe language code of the alias\n@return builder object to continue construction", "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Handle an end time change.\n@param event the change event.", "Compute 1-dimensional Perlin noise.\n@param x the x value\n@return noise value at x in the range -1..1", "Returns the distance between the two points in meters.", "helper to calculate the statusBar height\n\n@param context\n@param force pass true to get the height even if the device has no translucent statusBar\n@return", "Set the week days the events should occur.\n@param weekDays the week days to set.", "Aliases variables with an unknown type.\n@param variable The variable being aliased\n@param name Name of the variable", "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" ]
public void migrate() { if (databaseIsUpToDate()) { LOGGER.info(format("Keyspace %s is already up to date at version %d", database.getKeyspaceName(), database.getVersion())); return; } List<DbMigration> migrations = repository.getMigrationsSinceVersion(database.getVersion()); migrations.forEach(database::execute); LOGGER.info(format("Migrated keyspace %s to version %d", database.getKeyspaceName(), database.getVersion())); database.close(); }
[ "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" ]
[ "Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "Adds special accessors for private constants so that inner classes can retrieve them.", "Adds to this set all of the elements in the specified map of members and their score.\n@param scoredMember the members to add together with their scores\n@return the number of members actually added", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Formats a vertex using it's properties. Debugging purposes.", "Converts assignment duration values from minutes to hours.\n\n@param list assignment data", "Digest format to layer file name.\n\n@param digest\n@return", "Returns an array of the enabled endpoints as Integer IDs\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return Collection of endpoints\n@throws Exception exception", "Returns all the pixels for the image\n\n@return an array of pixels for this image" ]
@SuppressWarnings({"unused", "WeakerAccess"}) public int getTotalVisits() { EventDetail ed = getLocalDataStore().getEventDetail(Constants.APP_LAUNCHED_EVENT); if (ed != null) return ed.getCount(); return 0; }
[ "Returns the total number of times the app has been launched\n@return Total number of app launches in int" ]
[ "Start offering shared dbserver sessions.\n\n@throws SocketException if there is a problem opening connections", "Feeds input stream to data consumer using metadata from tar entry.\n@param consumer the consumer\n@param inputStream the stream to feed\n@param entry the entry to use for metadata\n@throws IOException on consume error", "Use this API to add clusternodegroup resources.", "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd, while reporting the\nprogress to a ProgressListener.\n\n@param output the stream to where the file will be written.\n@param rangeStart the byte offset at which to start the download.\n@param rangeEnd the byte offset at which to stop the download.\n@param listener a listener for monitoring the download's progress.", "Constructs the convex hull of a set of points whose coordinates are given\nby an array of doubles.\n\n@param coords\nx, y, and z coordinates of each input point. The length of\nthis array must be at least three times <code>nump</code>.\n@param nump\nnumber of input points\n@throws IllegalArgumentException\nthe number of input points is less than four or greater than\n1/3 the length of <code>coords</code>, or the points appear\nto be coincident, colinear, or coplanar.", "We are adding a redeploy operation step for each specified deployment runtime name.\n\n@param context\n@param deploymentsRootAddress\n@param deploymentNames\n@throws OperationFailedException", "Adds a handler for a mouse type event on the map.\n\n@param obj The object that the event should be registered on.\n@param type Type of the event to register against.\n@param h Handler that will be called when the event occurs.", "Validates the type", "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset." ]
public static void main(String[] args) { Treebank treebank = new DiskTreebank(); treebank.loadPath(args[0]); WordStemmer ls = new WordStemmer(); for (Tree tree : treebank) { ls.visitTree(tree); System.out.println(tree); } }
[ "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file" ]
[ "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Use this API to disable nsacl6.", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException", "Use this API to fetch the statistics of all gslbdomain_stats resources that are configured on netscaler.", "Calls the httpHandler method.", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "Returns the number of days from the given weekday to the next weekday the event should occur.\n@param weekDay the current weekday.\n@return the number of days to the next weekday an event could occur.", "Make a sort order for use in a query.", "Returns a product regarding its name\n\n@param name String\n@return DbProduct" ]
public void addRowAfter(I_CmsEditableGroupRow row) { int index = m_container.getComponentIndex(row); if (index >= 0) { Component component = m_newComponentFactory.get(); I_CmsEditableGroupRow newRow = m_rowBuilder.buildRow(this, component); m_container.addComponent(newRow, index + 1); } updatePlaceholder(); updateButtonBars(); updateGroupValidation(); }
[ "Adds a new row after the given one.\n\n@param row the row after which a new one should be added" ]
[ "build a complete set of local files, files from referenced projects, and dependencies.", "Closes the window containing the given component.\n\n@param component a component", "Computes the inverse permutation vector\n\n@param original Original permutation vector\n@param inverse It's inverse", "Collapses all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start collapsing parents\n@param parentCount The number of parents to collapse", "Resize picture to desired size.\n\n@param width Desired width.\n@param height Desired height.\n@throws IllegalArgumentException if {@code width} or {@code height} is less than 0 or both are\n0.", "Runs the given xpath and returns a boolean result.", "Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference<D> of the Declaration", "Make sure that the Identity objects of garbage collected cached\nobjects are removed too.", "Function to filter files based on defined rules." ]
public BlurBuilder contrast(float contrast) { data.preProcessors.add(new ContrastProcessor(data.contextWrapper.getRenderScript(), Math.max(Math.min(1500.f, contrast), -1500.f))); return this; }
[ "Change contrast of the image\n\n@param contrast default is 0, pos values increase contrast, neg. values decrease contrast" ]
[ "Use this API to fetch rewritepolicylabel_rewritepolicy_binding resources of given name .", "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", "Returns the configuration value with the specified name.", "Returns the instance.\n@return InterceptorFactory", "Add the specified files in reverse order.", "Execute a partitioned query using an index and a query selector.\n\nOnly available in partitioned databases. To verify a database is partitioned call\n{@link Database#info()} and check that {@link DbInfo.Props#getPartitioned()} returns\n{@code true}.\n\n<p>Example usage:</p>\n<pre>\n{@code\n// Query database partition 'Coppola'.\nQueryResult<Movie> movies = db.query(\"Coppola\", new QueryBuilder(and(\ngt(\"Movie_year\", 1960),\neq(\"Person_name\", \"Al Pacino\"))).\nfields(\"Movie_name\", \"Movie_year\").\nbuild(), Movie.class);\n}\n</pre>\n\n@param partitionKey Database partition to query.\n@param query String representation of a JSON object describing criteria used to\nselect documents.\n@param classOfT The class of Java objects to be returned in the {@code docs} field of\nresult.\n@param <T> The type of the Java object to be returned in the {@code docs} field of\nresult.\n@return A {@link QueryResult} object, containing the documents matching the query\nin the {@code docs} field.\n@see com.cloudant.client.api.Database#query(String, Class)", "Calculates the LatLong position of the end point of a line the specified\ndistance from this LatLong, along the provided bearing, where North is 0,\nEast is 90 etc.\n\n@param bearing The bearing, in degrees, with North as 0, East as 90 etc.\n@param distance The distance in metres.\n@return A new LatLong indicating the end point.", "This method is used to finalize the configuration\nafter the configuration items have been set.", "Get information about a partition in this database.\n\n@param partitionKey database partition key\n@return {@link com.cloudant.client.api.model.PartitionInfo} encapsulating the database partition info.\n@throws UnsupportedOperationException if called with {@code null} partition key." ]
public static appfwsignatures get(nitro_service service) throws Exception{ appfwsignatures obj = new appfwsignatures(); appfwsignatures[] response = (appfwsignatures[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the appfwsignatures resources that are configured on netscaler." ]
[ "Creates a new Box Developer Edition connection with App User token levaraging BoxConfig.\n@param userId the user ID to use for an App User.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection.", "Creates a code location URL from a class\n\n@param codeLocationClass the class\n@return A URL created from Class\n@throws InvalidCodeLocation if URL creation fails", "Lists the buildpacks installed on an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.", "Checks if a newly created action wants to write output to stdout, and\nlogs a warning if other actions are doing the same.\n\n@param newAction\nthe new action to be checked", "Fires the event and waits for a specified time.\n\n@param webElement the element to fire event on.\n@param eventable The HTML event type (onclick, onmouseover, ...).\n@return true if firing event is successful.\n@throws InterruptedException when interrupted during the wait.", "Start pushing the element off to the right.", "Removes the specified objects.\n\n@param collection The collection to remove.", "Use this API to unset the properties of gslbsite resource.\nProperties that need to be unset are specified in args array.", "Await the completion of all currently active operations.\n\n@param timeout the timeout\n@param unit the time unit\n@return {@code } false if the timeout was reached and there were still active operations\n@throws InterruptedException" ]
private static final Duration parseDurationInFractionsOfMinutes(ProjectProperties properties, Number value, TimeUnit targetTimeUnit, int factor) { Duration result = null; if (value != null) { result = Duration.getInstance(value.intValue() / factor, TimeUnit.MINUTES); if (targetTimeUnit != result.getUnits()) { result = result.convertUnits(targetTimeUnit, properties); } } return (result); }
[ "Parse duration represented as an arbitrary fraction of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@param factor required fraction of a minute\n@return Duration instance" ]
[ "Delete a profile\n\n@param model\n@param id\n@return\n@throws Exception", "Increases the maximum size of the data array so that it can store sparse data up to 'length'. The class\nparameter nz_length is not modified by this function call.\n\n@param arrayLength Desired maximum length of sparse data\n@param preserveValue If true the old values will be copied into the new arrays. If false that step will be skipped.", "This returns a string from decimal digit smallestDigit to decimal digit\nbiggest digit. Smallest digit is labeled 1, and the limits are\ninclusive.", "add a FK column pointing to This Class", "Called when a previously created loader has finished its load.\n\n@param loader The Loader that has finished.\n@param data The data generated by the Loader.", "Constructs a triangule Face from vertices v0, v1, and v2.\n\n@param v0\nfirst vertex\n@param v1\nsecond vertex\n@param v2\nthird vertex", "OR operation which takes the previous clause and the next clause and OR's them together.", "Create and bind a server socket\n\n@return the server socket\n@throws IOException", "Method for reporting SQLException. This is used by\nthe treenodes if retrieving information for a node\nis not successful.\n@param message The message describing where the error occurred\n@param sqlEx The exception to be reported." ]
public Build createBuild(String appName, Build build) { return connection.execute(new BuildCreate(appName, build), apiKey); }
[ "Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build information" ]
[ "Lift a Java Func1 to a Scala Function1\n\n@param f the function to lift\n\n@returns the Scala function", "Sets the replace var map to single target.\n\n@param replacementVarMapList\nthe replacement var map list\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "Helper method to find Strings of form \"all digits\" and \"digits-comma-digits\"", "Returns the names of parser rules that should be called in order to obtain the follow elements for the parser\ncall stack described by the given param.", "Returns a new instance of the class with the given qualified name using the constructor with\nthe specified signature.\n\n@param className The qualified name of the class to instantiate\n@param types The parameter types\n@param args The arguments\n@return The instance", "Inserts the LokenList immediately following the 'before' token", "returns all methods not in the group\n\n@param groupId Id of group\n@return List of Methods for a group\n@throws Exception exception", "Send message to all connections of a certain user\n\n@param message the message to be sent\n@param username the username\n@return this context", "Read a list of sub projects.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset" ]
private <T> List<Class<?>> filter(List<Class<?>> enabledClasses, List<Class<?>> globallyEnabledClasses, LogMessageCallback logMessageCallback, BeanDeployment deployment) { for (Iterator<Class<?>> iterator = enabledClasses.iterator(); iterator.hasNext(); ) { Class<?> enabledClass = iterator.next(); if (globallyEnabledClasses.contains(enabledClass)) { logMessageCallback.log(enabledClass, deployment.getBeanDeploymentArchive().getId()); iterator.remove(); } } return enabledClasses; }
[ "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" ]
[ "Returns the expected name of a workspace for a given suffix\n@param suffix\n@return", "Returns the corresponding module resolved service name for the given module.\n\nThe module resolved service is basically a latch that prevents the module from being loaded\nuntil all the transitive dependencies that it depends upon have have their module spec services\ncome up.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service", "This method allows a resource assignment workgroup fields record\nto be added to the current resource assignment. A maximum of\none of these records can be added to a resource assignment record.\n\n@return ResourceAssignmentWorkgroupFields object\n@throws MPXJException if MSP defined limit of 1 is exceeded", "Utility function to get the current value.", "Add a shutdown listener, which gets called when all requests completed on shutdown.\n\n@param listener the shutdown listener", "Find and validate manifest.json file in Artifactory for the current image.\nSince provided imageTag differs between reverse-proxy and proxy-less configuration, try to build the correct manifest path.\n@param server\n@param dependenciesClient\n@param listener\n@return\n@throws IOException", "Use this API to fetch hanode_routemonitor6_binding resources of given name .", "Use this API to fetch all the dnsview resources that are configured on netscaler.", "Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a question mark or a token in the style\nof {@link ParameterizedPreparedStatementCreator}, e.g. \":foo\"." ]
public String toRomanNumeral() { if (this.romanString == null) { this.romanString = ""; int remainder = this.value; for (int i = 0; i < BASIC_VALUES.length; i++) { while (remainder >= BASIC_VALUES[i]) { this.romanString += BASIC_ROMAN_NUMERALS[i]; remainder -= BASIC_VALUES[i]; } } } return this.romanString; }
[ "Get the Roman Numeral of the current value\n@return" ]
[ "Shrinks the alert message body so that the resulting payload\nmessage fits within the passed expected payload length.\n\nThis method performs best-effort approach, and its behavior\nis unspecified when handling alerts where the payload\nwithout body is already longer than the permitted size, or\nif the break occurs within word.\n\n@param payloadLength the expected max size of the payload\n@param postfix for the truncated body, e.g. \"...\"\n@return this", "Returns the absolute directory on the Web site where dumpfiles of the\ngiven type can be found.\n\n@param dumpContentType\nthe type of dump\n@return relative web directory for the current dumpfiles\n@throws IllegalArgumentException\nif the given dump file type is not known", "Dump data for all non-summary tasks to stdout.\n\n@param name file name", "Convert an object to a set of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return set", "Provides a consistent ordering over lists. First compares by the first\nelement. If that element is equal, the next element is considered, and so\non.", "Creates a code location URL from a class\n\n@param codeLocationClass the class\n@return A URL created from Class\n@throws InvalidCodeLocation if URL creation fails", "Returns server group by ID\n\n@param id ID of server group\n@return ServerGroup\n@throws Exception exception", "Creates the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node", "Use this API to add responderpolicy." ]
public final String getPath(final String key) { StringBuilder result = new StringBuilder(); addPathTo(result); result.append("."); result.append(getPathElement(key)); return result.toString(); }
[ "Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key" ]
[ "Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be copied.\n@return The copied matrix.", "Helper method to get a list of node ids.\n\n@param nodeList", "Stop the service and end the program", "Use this API to delete dnsaaaarec.", "Generates a change event for a local replacement 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 document the replacement document.\n@return a change event for a local replacement of a document in the given namespace referring\nto the given document _id.", "Creates a tar directory entry with defaults parameters.\n@param dirName the directory name\n@return dir entry with reasonable defaults", "Returns the Map value of the field.\n\n@return the Map value of the field. It returns a reference of the value both for <code>MAP</code> and\n<code>LIST_MAP</code>.\n@throws IllegalArgumentException if the value cannot be converted to Map.", "Tests whether the ClassNode implements the specified method name\n\n@param classNode The ClassNode\n@param methodName The method name\n@param argTypes\n@return True if it implements the method", "Prepares this DAG for node enumeration using getNext method, each call to getNext returns next node\nin the DAG with no dependencies." ]
private void writeCalendars(Project project) { // // Create the new MSPDI calendar list // Project.Calendars calendars = m_factory.createProjectCalendars(); project.setCalendars(calendars); List<Project.Calendars.Calendar> calendar = calendars.getCalendar(); // // Process each calendar in turn // for (ProjectCalendar cal : m_projectFile.getCalendars()) { calendar.add(writeCalendar(cal)); } }
[ "This method writes calendar data to an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
[ "Add custom fields to the tree.\n\n@param parentNode parent tree node\n@param file custom fields container", "Destroys an instance of the bean\n\n@param instance The instance", "Binds a script bundle to scene graph rooted at a scene object.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param rootSceneObject\nThe root of the scene object tree to which the scripts are bound.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "Attach a component to this scene object.\n\nEach scene object has a list of components that may\nbe attached to it. Only one component of a particular type\ncan be attached. Components are retrieved based on their type.\n\n@return true if component is attached, false if a component of that class is already attached.\n@param component component to attach.\n@see GVRSceneObject#detachComponent(long)\n@see GVRSceneObject#getComponent(long)", "Ask the specified player for an Artist menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the artist menu\n\n@throws Exception if there is a problem obtaining the menu", "Save map to file\n@param map Map to save\n@param file File to save\n@throws IOException I/O error", "Use this API to fetch statistics of cmppolicylabel_stats resource of given name .", "Obtains the collection of server groups defined for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return" ]
private ClassMatcher buildMatcher(String tagText) { // check there are at least @match <type> and a parameter String[] strings = StringUtil.tokenize(tagText); if (strings.length < 2) { System.err.println("Skipping uncomplete @match tag, type missing: " + tagText + " in view " + viewDoc); return null; } try { if (strings[0].equals("class")) { return new PatternMatcher(Pattern.compile(strings[1])); } else if (strings[0].equals("context")) { return new ContextMatcher(root, Pattern.compile(strings[1]), getGlobalOptions(), false); } else if (strings[0].equals("outgoingContext")) { return new ContextMatcher(root, Pattern.compile(strings[1]), getGlobalOptions(), false); } else if (strings[0].equals("interface")) { return new InterfaceMatcher(root, Pattern.compile(strings[1])); } else if (strings[0].equals("subclass")) { return new SubclassMatcher(root, Pattern.compile(strings[1])); } else { System.err.println("Skipping @match tag, unknown match type, in view " + viewDoc); } } catch (PatternSyntaxException pse) { System.err.println("Skipping @match tag due to invalid regular expression '" + tagText + "'" + " in view " + viewDoc); } catch (Exception e) { System.err.println("Skipping @match tag due to an internal error '" + tagText + "'" + " in view " + viewDoc); e.printStackTrace(); } return null; }
[ "Factory method that builds the appropriate matcher for @match tags" ]
[ "Notifies that an existing header item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the PGP secure keyring if it was found,\nnull otherwise", "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.", "Use this API to delete gslbsite of given name.", "Use this API to add cachecontentgroup.", "Transform the given object into an array of bytes\n\n@param object The object to be serialized\n@return The bytes created from serializing the object", "Read an exception day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT exception day", "Computes annualized seasonal adjustments from given monthly realized CPI values.\n\n@param realizedCPIValues An array of consecutive monthly CPI values (minimum size is 12*numberOfYearsToAverage))\n@param lastMonth The index of the last month in the sequence of realizedCPIValues (corresponding to the enums in <code>{@link java.time.Month}</code>).\n@param numberOfYearsToAverage The number of years to go back in the array of realizedCPIValues.\n@return Array of annualized seasonal adjustments, where [0] corresponds to the adjustment for from December to January.", "Use this API to unset the properties of snmpalarm resources.\nProperties that need to be unset are specified in args array." ]
public static int cudnnOpTensor( cudnnHandle handle, cudnnOpTensorDescriptor opTensorDesc, Pointer alpha1, cudnnTensorDescriptor aDesc, Pointer A, Pointer alpha2, cudnnTensorDescriptor bDesc, Pointer B, Pointer beta, cudnnTensorDescriptor cDesc, Pointer C) { return checkResult(cudnnOpTensorNative(handle, opTensorDesc, alpha1, aDesc, A, alpha2, bDesc, B, beta, cDesc, C)); }
[ "B tensor is ignored for CUDNN_OP_TENSOR_SQRT, CUDNN_OP_TENSOR_NOT." ]
[ "Send a mount update announcement to all registered listeners, and see if we can auto-attach a media cache file.\n\n@param slot the slot in which media has been mounted or unmounted\n@param mounted will be {@code true} if there is now media mounted in the specified slot", "Delete any log segments matching the given predicate function\n\n@throws IOException", "Use this API to fetch all the protocolhttpband resources that are configured on netscaler.\nThis uses protocolhttpband_args which is a way to provide additional arguments while fetching the resources.", "Reads a UUID from a JSON object.\n\nReturns null if the JSON value for the given key is not present or not a valid UUID\n\n@param obj the JSON object\n@param key the JSON key\n\n@return the UUID", "Alias accessor provided for JSON serialization only", "Use this API to fetch a responderglobal_responderpolicy_binding resources.", "Set the end type as derived from other values.", "Use this API to fetch dnszone_domain_binding resources of given name .", "Obtains a string from a PDF value\n@param value the PDF value of the String, Integer or Float type\n@return the corresponging string value" ]
PollingState<T> withResponse(Response<ResponseBody> response) { this.response = response; withPollingUrlFromResponse(response); withPollingRetryTimeoutFromResponse(response); return this; }
[ "Sets the last operation response.\n\n@param response the last operation response." ]
[ "waits for all async mutations that were added before this was called to be flushed. Does not\nwait for async mutations added after call.", "Emits a sentence fragment combining all the merge actions.", "Invoked by subclasses; performs actual file roll. Tests to see whether roll\nis necessary have already been performed, so just do it.", "Compares two sets of snaks, given by iterators. The method is optimised\nfor short lists of snaks, as they are typically found in claims and\nreferences.\n\n@param snaks1\n@param snaks2\n@return true if the lists are equal", "Returns the first product found in the vector of calibration products\nwhich matches the given symbol, where symbol is the String set in\nthe calibrationSpecs.\n\n@param symbol A given symbol string.\n@return The product associated with that symbol.", "Reads an argument of type \"number\" from the request.", "Encode a path segment, escaping characters not valid for a URL.\n\n<p>The following characters are not escaped:\n\n<ul>\n<li>{@code a..z, A..Z, 0..9}\n<li>{@code . - * _}\n</ul>\n\n<p>' ' (space) is encoded as '+'.\n\n<p>All other characters (including '/') are converted to the triplet \"%xy\" where \"xy\" is the\nhex representation of the character in UTF-8.\n\n@param component a string containing text to encode.\n@return a string with all invalid URL characters escaped.", "Sets a new config and clears the previous cache", "Main database initialization. To be called only when _ds is a valid DataSource." ]
public byte[] getByteArray(int offset) { byte[] result = null; if (offset > 0 && offset < m_data.length) { int nextBlockOffset = MPPUtility.getInt(m_data, offset); offset += 4; int itemSize = MPPUtility.getInt(m_data, offset); offset += 4; if (itemSize > 0 && itemSize < m_data.length) { int blockRemainingSize = 28; if (nextBlockOffset != -1 || itemSize <= blockRemainingSize) { int itemRemainingSize = itemSize; result = new byte[itemSize]; int resultOffset = 0; while (nextBlockOffset != -1) { MPPUtility.getByteArray(m_data, offset, blockRemainingSize, result, resultOffset); resultOffset += blockRemainingSize; offset += blockRemainingSize; itemRemainingSize -= blockRemainingSize; if (offset != nextBlockOffset) { offset = nextBlockOffset; } nextBlockOffset = MPPUtility.getInt(m_data, offset); offset += 4; blockRemainingSize = 32; } MPPUtility.getByteArray(m_data, offset, itemRemainingSize, result, resultOffset); } } } return (result); }
[ "Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data" ]
[ "Sets the path of the edited file in the corresponding display.\n@param editedFilePath path of the edited file to set.", "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image", "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes", "Get the VCS revision from the Jenkins build environment. The search will one of \"SVN_REVISION\", \"GIT_COMMIT\",\n\"P4_CHANGELIST\" in the environment.\n\n@param env Th Jenkins build environment.\n@return The vcs revision for supported VCS", "Given a path to a VFS resource, the method removes the OpenCms context,\nin case the path is prefixed by that context.\n@param path the path where the OpenCms context should be removed\n@return the adjusted path", "Creates needed textfields for general label in footer groups.\n@param djgroup\n@param jgroup", "Sets a custom response on an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@param customData custom response data\n@return true if success, false otherwise", "Processes the template for all reference definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"" ]
public void run() { ConnectionHandle connection = null; long tmp; long nextCheckInMs = this.maxAgeInMs; int partitionSize= this.partition.getAvailableConnections(); long currentTime = System.currentTimeMillis(); for (int i=0; i < partitionSize; i++){ try { connection = this.partition.getFreeConnections().poll(); if (connection != null){ connection.setOriginatingPartition(this.partition); tmp = this.maxAgeInMs - (currentTime - connection.getConnectionCreationTimeInMs()); if (tmp < nextCheckInMs){ nextCheckInMs = tmp; } if (connection.isExpired(currentTime)){ // kill off this connection closeConnection(connection); continue; } if (this.lifoMode){ // we can't put it back normally or it will end up in front again. if (!(connection.getOriginatingPartition().getFreeConnections().offer(connection))){ connection.internalClose(); } } else { this.pool.putConnectionBackInPartition(connection); } Thread.sleep(20L); // test slowly, this is not an operation that we're in a hurry to deal with (avoid CPU spikes)... } } catch (Throwable e) { logger.error("Connection max age thread exception.", e); } } // throw it back on the queue }
[ "Invoked periodically." ]
[ "Adds methods requiring special implementations rather than just\ndelegation.\n\n@param proxyClassType the Javassist class description for the proxy type", "Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "Set a range of the colormap to a single color.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color the color", "Returns the metallic factor for PBR shading", "Initial random seed used for shuffling test suites and other sources\nof pseudo-randomness. If not set, any random value is set.\n\n<p>The seed's format is compatible with {@link RandomizedRunner} so that\nseed can be fixed for suites and methods alike.", "Returns all migrations starting from and excluding the given version. Usually you want to provide the version of\nthe database here to get all migrations that need to be executed. In case there is no script with a newer\nversion than the one given, an empty list is returned.\n\n@param version the version that is currently in the database\n@return all versions since the given version or an empty list if no newer script is available. Never null.\nDoes not include the given version.", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "Add parameter to testCase\n\n@param context which can be changed" ]
public final void setWeekOfMonth(WeekOfMonth weekOfMonth) { SortedSet<WeekOfMonth> woms = new TreeSet<>(); if (null != weekOfMonth) { woms.add(weekOfMonth); } setWeeksOfMonth(woms); }
[ "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)." ]
[ "Add new control at the control bar with specified touch listener, resource and position.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param resId the control face\n@param listener touch listener\n@param position control position in the bar", "Fetch all relevant attributes from the backing store and copy instances which are not present in the local bean store.", "Adds a file with the provided description.", "Only converts the B matrix and passes that onto solve. Te result is then copied into\nthe input 'X' matrix.\n\n@param B A matrix &real; <sup>m &times; p</sup>. Not modified.\n@param X A matrix &real; <sup>n &times; p</sup>, where the solution is written to. Modified.", "Build the operation transformers.\n\n@param registry the shared resource registry\n@return the operation transformers", "Produces all tuples of size n chosen from a list of variable names\n\n@param variables the list of variable names to make tuples of\n@param nWise the size of the desired tuples\n@return all tuples of size nWise", "Returns the compact task records for all tasks within the given project,\nordered by their priority within the project.\n\n@param projectId The project in which to search for tasks.\n@return Request object", "2-D Gaussian kernel.\n\n@param size Kernel size (should be odd), [3, 101].\n@return Returns 2-D Gaussian kernel of specified size.", "return null if the operation has no params to validate" ]
protected void update(float scale) { GVRSceneObject owner = getOwnerObject(); if (isEnabled() && (owner != null) && owner.isEnabled()) { float w = getWidth(); float h = getHeight(); mPose.update(mARPlane.getCenterPose(), scale); Matrix4f m = new Matrix4f(); m.set(mPose.getPoseMatrix()); m.scaleLocal(w * 0.95f, h * 0.95f, 1.0f); owner.getTransform().setModelMatrix(m); } }
[ "Update the plane based on arcore best knowledge of the world\n\n@param scale" ]
[ "Sets the ProjectCalendar instance from which this calendar is derived.\n\n@param calendar base calendar instance", "Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges", "Use this API to fetch vrid_nsip6_binding resources of given name .", "Helper to get locale specific properties.\n\n@return the locale specific properties map.", "Extracts project properties from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Set the amount of offset between child objects and parent.\n@param axis {@link Axis}\n@param offset", "Extract child task data.\n\n@param task MPXJ task\n@param row Synchro task data", "Add an executable \"post-run\" dependent for this model.\n\n@param executable the executable \"post-run\" dependent\n@return the key to be used as parameter to taskResult(string) method to retrieve result of executing\nthe executable \"post-run\" dependent", "Get the rate types set.\n\n@return the rate types set, or an empty array, but never null." ]
protected List<Versioned<V>> resolveAndConstructVersionsToPersist(List<Versioned<V>> valuesInStorage, List<Versioned<V>> multiPutValues) { List<Versioned<V>> obsoleteVals = new ArrayList<Versioned<V>>(multiPutValues.size()); // Go over all the values and determine whether the version is // acceptable for(Versioned<V> value: multiPutValues) { Iterator<Versioned<V>> iter = valuesInStorage.iterator(); boolean obsolete = false; // Compare the current version with a set of accepted versions while(iter.hasNext()) { Versioned<V> curr = iter.next(); Occurred occurred = value.getVersion().compare(curr.getVersion()); if(occurred == Occurred.BEFORE) { obsolete = true; break; } else if(occurred == Occurred.AFTER) { iter.remove(); } } if(obsolete) { // add to return value if obsolete obsoleteVals.add(value); } else { // else update the set of accepted versions valuesInStorage.add(value); } } return obsoleteVals; }
[ "Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPutVals that were rejected as obsolete" ]
[ "bootstrap method for method calls with \"this\" as receiver\n@deprecated since Groovy 2.1.0", "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", "Consumes the version field from the given input and raises an exception if the record is in a newer version,\nwritten by a newer version of Hibernate OGM.\n\n@param input the input to read from\n@param supportedVersion the type version supported by this version of OGM\n@param externalizedType the type to be unmarshalled\n\n@throws IOException if an error occurs while reading the input", "Upload a photo from a File.\n\n@param file\nthe photo file\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException", "Places a connection back in the originating partition.\n@param connectionHandle to place back\n@throws SQLException on error", "Clones the given field.\n\n@param fieldDef The field descriptor\n@param prefix A prefix for the name\n@return The cloned field", "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", "Must be called with pathEntries lock taken", "Obtains a Symmetry010 local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
public static base_response add(nitro_service client, gslbsite resource) throws Exception { gslbsite addresource = new gslbsite(); addresource.sitename = resource.sitename; addresource.sitetype = resource.sitetype; addresource.siteipaddress = resource.siteipaddress; addresource.publicip = resource.publicip; addresource.metricexchange = resource.metricexchange; addresource.nwmetricexchange = resource.nwmetricexchange; addresource.sessionexchange = resource.sessionexchange; addresource.triggermonitor = resource.triggermonitor; addresource.parentsite = resource.parentsite; return addresource.add_resource(client); }
[ "Use this API to add gslbsite." ]
[ "Retrieves state and metrics information for all channels on individual connection.\n@param connectionName the connection name to retrieve channels\n@return list of channels on the connection", "Sets the time to wait when close connection watch threads are enabled. 0 = wait forever.\n@param closeConnectionWatchTimeout the watchTimeout to set\n@param timeUnit Time granularity", "Convert this object to a json array.", "Adds a leaf node, which could be a task or a milestone.\n\n@param parentName parent bar name\n@param row row to add\n@param task task to populate with data from the row", "Returns the value associated with the given key, if any.\n\n@return the value associated with the given key, or <Code>null</Code>\nif the key maps to no value", "Loads the tag definitions from the files with a \".tags.xml\" suffix from the addons.", "Helper method to check if log4j is already configured", "Create all the links possible between the DeclarationBinder and all the ImportDeclaration matching the.\nImportDeclarationFilter of the Linker.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Given a particular key, first converts its to the storage format and then\ndetermines which chunk it belongs to\n\n@param key Byte array of keys\n@return Chunk id\n@throws IllegalStateException if unable to find the chunk id for the given key" ]
public Filter geoSearch(String value) { GeopositionComparator comp = (GeopositionComparator) prop.getComparator(); double dist = comp.getMaxDistance(); double degrees = DistanceUtils.dist2Degrees(dist, DistanceUtils.EARTH_MEAN_RADIUS_KM * 1000.0); Shape circle = spatialctx.makeCircle(parsePoint(value), degrees); SpatialArgs args = new SpatialArgs(SpatialOperation.Intersects, circle); return strategy.makeFilter(args); }
[ "Returns a geoquery." ]
[ "Returns a String summarizing overall accuracy that will print nicely.", "Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.", "Write an attribute name.\n\n@param name attribute name", "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "This is the original, naive implementation, using the Wagner &\nFischer algorithm from 1974. It uses a flattened matrix for\nspeed, but still computes the entire matrix.", "Appends a line separator node that will only be effective if the current line contains non-whitespace text.\n\n@return the given parent node", "Handles a complete record at a time, stores it in a form ready for\nfurther processing.\n\n@param record record to be processed\n@return flag indicating if this is the last record in the file to be processed\n@throws MPXJException", "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return", "Compares current cluster with final cluster. Uses pertinent store defs\nfor each cluster to determine if a node that hosts a zone-primary in the\ncurrent cluster will no longer host any zone-nary in the final cluster.\nThis check is the precondition for a server returning an invalid metadata\nexception to a client on a normal-case put or get. Normal-case being that\nthe zone-primary receives the pseudo-master put or the get operation.\n\n@param currentCluster\n@param currentStoreDefs\n@param finalCluster\n@param finalStoreDefs\n@return pretty-printed string documenting invalid metadata rates for each\nzone." ]
protected PreparedStatement prepareStatement(Connection con, String sql, boolean scrollable, boolean createPreparedStatement, int explicitFetchSizeHint) throws SQLException { PreparedStatement result; // if a JDBC1.0 driver is used the signature // prepareStatement(String, int, int) is not defined. // we then call the JDBC1.0 variant prepareStatement(String) try { // if necessary use JDB1.0 methods if (!FORCEJDBC1_0) { if (createPreparedStatement) { result = con.prepareStatement( sql, scrollable ? ResultSet.TYPE_SCROLL_INSENSITIVE : ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); afterJdbc2CapableStatementCreate(result, explicitFetchSizeHint); } else { result = con.prepareCall( sql, scrollable ? ResultSet.TYPE_SCROLL_INSENSITIVE : ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); } } else { if (createPreparedStatement) { result = con.prepareStatement(sql); } else { result = con.prepareCall(sql); } } } catch (AbstractMethodError err) { // this exception is raised if Driver is not JDBC 2.0 compliant log.warn("Used driver seems not JDBC 2.0 compatible, use the JDBC 1.0 mode", err); if (createPreparedStatement) { result = con.prepareStatement(sql); } else { result = con.prepareCall(sql); } FORCEJDBC1_0 = true; } catch (SQLException eSql) { // there are JDBC Driver that nominally implement JDBC 2.0, but // throw DriverNotCapableExceptions. If we catch one of these // we force usage of JDBC 1.0 if (eSql .getClass() .getName() .equals("interbase.interclient.DriverNotCapableException")) { log.warn("JDBC 2.0 problems with this interbase driver, we use the JDBC 1.0 mode"); if (createPreparedStatement) { result = con.prepareStatement(sql); } else { result = con.prepareCall(sql); } FORCEJDBC1_0 = true; } else { throw eSql; } } try { if (!ProxyHelper.isNormalOjbProxy(result)) // tomdz: What about VirtualProxy { platform.afterStatementCreate(result); } } catch (PlatformException e) { log.error("Platform dependend failure", e); } return result; }
[ "Prepares a statement with parameters that should work with most RDBMS.\n\n@param con the connection to utilize\n@param sql the sql syntax to use when creating the statement.\n@param scrollable determines if the statement will be scrollable.\n@param createPreparedStatement if <code>true</code>, then a\n{@link PreparedStatement} will be created. If <code>false</code>, then\na {@link java.sql.CallableStatement} will be created.\n@param explicitFetchSizeHint will be used as fetchSize hint\n(if applicable) if > 0\n\n@return a statement that can be used to execute the syntax contained in\nthe <code>sql</code> argument." ]
[ "This method is used to associate a child task with the current\ntask instance. It has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be updated once all of the task data has been read.\n\n@param child child task", "Obtains a local date in Pax calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Pax era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Pax local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code PaxEra}", "Emit information about a single suite and all of its tests.", "Recursively inspects the given objects and returns a node representing their differences. Both objects\nhave be have the same type.\n\n@param working This object will be treated as the successor of the `base` object.\n@param base This object will be treated as the predecessor of the <code>working</code> object.\n@return A node representing the differences between the given objects.", "A final cluster ought to be a super set of current cluster. I.e.,\nexisting node IDs ought to map to same server, but partition layout can\nhave changed and there may exist new nodes.\n\n@param currentCluster\n@param finalCluster", "return the list of FormInputs that match this element\n\n@param element\n@return", "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read.", "The user can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the invited user.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type" ]
public static dospolicy[] get(nitro_service service) throws Exception{ dospolicy obj = new dospolicy(); dospolicy[] response = (dospolicy[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the dospolicy resources that are configured on netscaler." ]
[ "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "Append data to JSON response.\n@param param\n@param value", "Create constant name.\n@param state STATE_UNCHANGED, STATE_CHANGED, STATE_NEW or STATE_DELETED.\n@return cconstanname as String", "Parses btch api response to create a list of BoxAPIResponse objects.\n@param batchResponse response of a batch api request\n@return list of BoxAPIResponses", "Returns tag formatted as an HTTP tag string.\n\n@return The formatted HTTP tag string.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "Ignore some element from the AST\n\n@param element\n@return", "Return tabular data\n@param labels Labels array\n@param data Data bidimensional array\n@param padding Total space between fields\n@return String", "On host controller reload, remove a not running server registered in the process controller declared as stopping.", "Utility function that creates directory.\n\n@param dir Directory path\n@return File object of directory." ]
protected void loadEntries(final StorageAwareResource resource, final ZipInputStream zipIn) throws IOException { zipIn.getNextEntry(); BufferedInputStream _bufferedInputStream = new BufferedInputStream(zipIn); this.readContents(resource, _bufferedInputStream); zipIn.getNextEntry(); BufferedInputStream _bufferedInputStream_1 = new BufferedInputStream(zipIn); this.readResourceDescription(resource, _bufferedInputStream_1); if (this.storeNodeModel) { zipIn.getNextEntry(); BufferedInputStream _bufferedInputStream_2 = new BufferedInputStream(zipIn); this.readNodeModel(resource, _bufferedInputStream_2); } }
[ "Load entries from the storage.\nOverriding methods should first delegate to super before adding their own entries." ]
[ "Delete a license from the repository\n\n@param licName The name of the license to remove", "Set editable state on an attribute. This needs to also set the state on the associated attributes.\n\n@param attribute attribute for which the editable state needs to be set\n@param editable new editable state", "Retains only beans which are enabled.\n\n@param beans The mutable set of beans to filter\n@param beanManager The bean manager\n@return a mutable set of enabled beans", "Deletes the disabled marker file in the directory of the specified version.\n\n@param version to enable\n@throws PersistenceFailureException if the marker file could not be deleted (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible).", "copy all fields from the \"from\" object to the \"to\" object.\n\n@param from source object\n@param to from's clone\n@param fields fields to be populated\n@param accessible 'true' if all 'fields' have been made accessible during\ntraversal", "Get a TokenizerFactory that does Penn Treebank tokenization.\nThis is now the recommended factory method to use.\n\n@param factory A TokenFactory that determines what form of token is returned by the Tokenizer\n@param options A String specifying options (see the class javadoc for details)\n@param <T> The type of the tokens built by the LexedTokenFactory\n@return A TokenizerFactory that does Penn Treebank tokenization", "Use this API to add snmpmanager.", "Replaces sequences of whitespaces with tabs.\n\n@param self A CharSequence to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Handle interval change.\n@param event the change event." ]
@Override protected void clearReference(EObject obj, EReference ref) { super.clearReference(obj, ref); if (obj.eIsSet(ref) && ref.getEType().equals(XtextPackage.Literals.TYPE_REF)) { INode node = NodeModelUtils.getNode((EObject) obj.eGet(ref)); if (node == null) obj.eUnset(ref); } if (obj.eIsSet(ref) && ref == XtextPackage.Literals.CROSS_REFERENCE__TERMINAL) { INode node = NodeModelUtils.getNode((EObject) obj.eGet(ref)); if (node == null) obj.eUnset(ref); } if (ref == XtextPackage.Literals.RULE_CALL__RULE) { obj.eUnset(XtextPackage.Literals.RULE_CALL__EXPLICITLY_CALLED); } }
[ "We add typeRefs without Nodes on the fly, so we should remove them before relinking." ]
[ "digest message with MD5\n\n@param source message\n@return 32 bit MD5 value (lower case)", "Read an array of bytes of a specified size.\n\n@param size number of bytes to read\n@return ByteArray instance", "Indicates whether or not an event ID is a duplicate.\n\n<p>This method can be overridden by a subclass in order to provide custom de-duping logic.</p>\n\n@param eventID the event ID.\n@return true if the event is a duplicate; otherwise false.", "Determines the number of elements that the query would return. Override this\nmethod if the size shall be determined in a specific way.\n\n@return The number of elements", "Set the depth of the cursor.\nThis is the length of the ray from the origin\nto the cursor.\n@param depth default cursor depth", "Bessel function of order 0.\n\n@param x Value.\n@return J0 value.", "Get a collection of public groups for the user.\n\nThe groups will contain only the members nsid, name, admin and eighteenplus. If you want the whole group-information, you have to call\n{@link com.flickr4java.flickr.groups.GroupsInterface#getInfo(String)}.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The public groups\n@throws FlickrException", "Returns the number of history entries for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param searchFilter unused\n@return number of history entries", "Create an info object from a uri and the http method object.\n\n@param uri the uri\n@param method the method" ]
public static sslcertlink[] get(nitro_service service) throws Exception{ sslcertlink obj = new sslcertlink(); sslcertlink[] response = (sslcertlink[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the sslcertlink resources that are configured on netscaler." ]
[ "Create a patch representing what we actually processed. This may contain some fixed content hashes for removed\nmodules.\n\n@param original the original\n@return the processed patch", "Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Register the given common classes with the ClassUtils cache.", "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.", "Read an optional string value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the string value in the provided JSON object.\n@param defaultValue the default value, to be returned if the string can not be read from the JSON object.\n@return the string or the default value if reading the string fails.", "Return a copy of the result as a String.\n\n<p>The default version of this method copies the result into a temporary byte array and then\ntries to decode it using the configured encoding.\n\n@return string version of the result.\n@throws IOException if the data cannot be produced or could not be decoded to a String.", "returns the XmlCapable id associated with the literal.\nOJB maintains a RepositoryTags table that provides\na mapping from xml-tags to XmlCapable ids.\n\n@param literal the literal to lookup\n@return the int value representing the XmlCapable\n\n@throws MetadataException if no literal was found in tags mapping", "Parses an RgbaColor from an rgb value.\n\n@return the parsed color", "Convert a Java date into a Planner date-time string.\n\n20070222T080000Z\n\n@param value Java date\n@return Planner date-time string" ]
public static MediaType binary( MediaType.Type type, String subType ) { return new MediaType( type, subType, true ); }
[ "Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}" ]
[ "Main method for testing fetching", "Creates an operation to deploy existing deployment content to the runtime.\n\n@param deployment the deployment to deploy\n\n@return the deploy operation", "Init the bundle type member variable.\n@return the bundle type of the opened resource.", "Sets the top padding for all cells in the table.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Given a protobuf rebalance-partition info, converts it into our\nrebalance-partition info\n\n@param rebalanceTaskInfoMap Proto-buff version of\nRebalanceTaskInfoMap\n@return RebalanceTaskInfo object.", "Start a process using the given parameters.\n\n@param processId\n@param parameters\n@return", "Returns an array of normalized strings for this host name instance.\n\nIf this represents an IP address, the address segments are separated into the returned array.\nIf this represents a host name string, the domain name segments are separated into the returned array,\nwith the top-level domain name (right-most segment) as the last array element.\n\nThe individual segment strings are normalized in the same way as {@link #toNormalizedString()}\n\nPorts, service name strings, prefix lengths, and masks are all omitted from the returned array.\n\n@return", "Extracts assignment baseline data.\n\n@param assignment xml assignment\n@param mpx mpxj assignment", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key" ]
public Object convertJavaFieldToSqlArgValue(Object fieldVal) throws SQLException { /* * Limitation here. Some people may want to override the null with their own value in the converter but we * currently don't allow that. Specifying a default value I guess is a better mechanism. */ if (fieldVal == null) { return null; } else { return fieldConverter.javaToSqlArg(this, fieldVal); } }
[ "Convert a field value to something suitable to be stored in the database." ]
[ "Parses command-line and checks if metadata is consistent 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", "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name .", "Adds vector v1 to v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Returns the decoded string, in case it contains non us-ascii characters.\nReturns the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.\n\n@param str string to be decoded\n@return the decoded string, in case it contains non us-ascii characters;\nor the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.", "Returns the compact records for all teams to which user is assigned.\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", "Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args", "Main method for testing fetching", "Print currency.\n\n@param value currency value\n@return currency value", "Returns true if the predicate is true for all pixels in the image.\n\n@param predicate a predicate function that accepts 3 parameters - the x,y coordinate and the pixel at that coordinate\n@return true if f holds for at least one pixel" ]
public void beforeBatch(PreparedStatement stmt) throws PlatformException { // Check for Oracle batching support final Method methodSetExecuteBatch; final Method methodSendBatch; methodSetExecuteBatch = ClassHelper.getMethod(stmt, "setExecuteBatch", PARAM_TYPE_INTEGER); methodSendBatch = ClassHelper.getMethod(stmt, "sendBatch", null); final boolean statementBatchingSupported = methodSetExecuteBatch != null && methodSendBatch != null; if (statementBatchingSupported) { try { // Set number of statements per batch methodSetExecuteBatch.invoke(stmt, PARAM_STATEMENT_BATCH_SIZE); m_batchStatementsInProgress.put(stmt, methodSendBatch); } catch (Exception e) { throw new PlatformException(e.getLocalizedMessage(), e); } } else { super.beforeBatch(stmt); } }
[ "Try Oracle update batching and call setExecuteBatch or revert to\nJDBC update batching. See 12-2 Update Batching in the Oracle9i\nJDBC Developer's Guide and Reference.\n@param stmt the prepared statement to be used for batching\n@throws PlatformException upon JDBC failure" ]
[ "Creates a document for the resource without extracting the content. The aim is to get a content indexed,\neven if extraction runs into a timeout.\n\n@return the document for the resource generated if the content is discarded,\ni.e., only meta information are indexed.", "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object", "All the sub-level attributes.\n\n@param name the attribute name.\n@param attribute the attribute.", "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "Log a trace message.", "This method is called on every reference that is in the .class file.\n@param typeReference\n@return", "Renders the document to the specified output stream.", "Set a Java classname path to ignore when printing stack traces\n@param classToIgnoreInTraces The class name (with packages, etc) to ignore.\n@return this", "Insert entity object. The caller must first initialize the primary key\nfield." ]
public static void checkDirectory(File directory) { if (!(directory.exists() || directory.mkdirs())) { throw new ReportGenerationException( String.format("Can't create data directory <%s>", directory.getAbsolutePath()) ); } }
[ "If directory doesn't exists try to create it.\n\n@param directory given directory to check\n@throws ReportGenerationException if can't create specified directory" ]
[ "Load a table configuration in from a text-file reader.\n\n@return A config if any of the fields were set otherwise null if we reach EOF.", "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Replaces an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object.", "Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error", "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\"", "Adds multiple observers using unique integer prefixes for each.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}", "Updates property of parent id for the image provided.\nReturns false if image was not captured true otherwise.\n\n@param log\n@param imageTag\n@param host\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "Adjust the visible columns." ]
public void exceptionShift() { numExceptional++; double mag = 0.05 * numExceptional; if (mag > 1.0) mag = 1.0; double angle = 2.0 * UtilEjml.PI * (rand.nextDouble() - 0.5) * mag; performImplicitSingleStep(0, angle, true); // allow more convergence time nextExceptional = steps + exceptionalThresh; // (numExceptional+1)* }
[ "It is possible for the QR algorithm to get stuck in a loop because of symmetries. This happens\nmore often with larger matrices. By taking a random step it can break the symmetry and finish." ]
[ "Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data", "Remove all scene objects.", "Set the visibility of the object.\n\n@see Visibility\n@param visibility\nThe visibility of the object.\n@return {@code true} if the visibility was changed, {@code false} if it\nwasn't.", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Get or create the log context based on the logging profile.\n\n@param loggingProfile the logging profile to get or create the log context for\n\n@return the log context that was found or a new log context", "Returns the list of Solr fields a search result must have to initialize the gallery search result correctly.\n@return the list of Solr fields.", "Get interfaces implemented by clazz\n\n@param clazz\n@return", "Does a query for the object's Id and copies in each of the field values from the database to refresh the data\nparameter.", "Opens a file from the volume. The filePath is relative to the\ndefaultPath.\n\n@param filePath\nFile path of the resource to open.\n\n@throws IOException" ]
public static appfwprofile_cookieconsistency_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_cookieconsistency_binding obj = new appfwprofile_cookieconsistency_binding(); obj.set_name(name); appfwprofile_cookieconsistency_binding response[] = (appfwprofile_cookieconsistency_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch appfwprofile_cookieconsistency_binding resources of given name ." ]
[ "Performs DBSCAN cluster analysis.\n\n@param points the points to cluster\n@return the list of clusters\n@throws NullArgumentException if the data points are null", "Makes it possible to uniquify a collection of objects which are normally\nnon-hashable. Alternatively, it lets you define an alternate hash function\nfor them for limited-use hashing.", "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", "Use this API to export sslfipskey.", "Process the requestJsonAttributes using the attributes and the MapfishParser and add all resulting\nvalues to this values object.\n\n@param template the template of the current request.\n@param attributes the attributes that will be used to add values to this values object\n@param requestJsonAttributes the json data for populating the attribute values", "Record a device announcement in the devices map, so we know whe saw it.\n\n@param announcement the announcement to be recorded", "Delete old jobs.\n\n@param checkTimeThreshold threshold for last check time\n@return the number of jobs deleted", "Generated the report.", "Function to filter files based on defined rules." ]
@Override @SuppressWarnings("unchecked") public ChronoZonedDateTime<InternationalFixedDate> zonedDateTime(TemporalAccessor temporal) { return (ChronoZonedDateTime<InternationalFixedDate>) super.zonedDateTime(temporal); }
[ "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
[ "Requests that the given namespace stopped being listened to for change events.\n\n@param namespace the namespace to stop listening for change events on.", "Creates the publish button.\n\n@param updateListener the update listener\n@return the publish button", "This method extracts predecessor data from an MSPDI file.\n\n@param task Task data", "Check if a dependency matches the filters\n\n@param dependency\n\n@return boolean", "Use this API to fetch lbvserver_scpolicy_binding resources of given name .", "Utility function that fetches all stores on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@return List of all store names", "Adds a JSON string to the DB.\n\n@param obj the JSON to record\n@param table the table to insert into\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR", "Given the lambda value perform an implicit QR step on the matrix.\n\nB^T*B-lambda*I\n\n@param lambda Stepping factor.", "Set the face to be culled\n\n@param cullFace\n{@code GVRCullFaceEnum.Back} Tells Graphics API to discard\nback faces, {@code GVRCullFaceEnum.Front} Tells Graphics API\nto discard front faces, {@code GVRCullFaceEnum.None} Tells\nGraphics API to not discard any face\n@param passIndex\nThe rendering pass to set cull face state" ]
public void store(Object obj) throws PersistenceBrokerException { obj = extractObjectToStore(obj); // only do something if obj != null if(obj == null) return; ClassDescriptor cld = getClassDescriptor(obj.getClass()); /* if one of the PK fields was null, we assume the objects was new and needs insert */ boolean insert = serviceBrokerHelper().hasNullPKField(cld, obj); Identity oid = serviceIdentity().buildIdentity(cld, obj); /* if PK values are set, lookup cache or db to see whether object needs insert or update */ if (!insert) { insert = objectCache.lookup(oid) == null && !serviceBrokerHelper().doesExist(cld, oid, obj); } store(obj, oid, cld, insert); }
[ "Store an Object.\n@see org.apache.ojb.broker.PersistenceBroker#store(Object)" ]
[ "Mapping originator.\n\n@param originator the originator\n@return the originator type", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Throws an IllegalArgumentException when the given value is not true.\n@param value the value to assert if true\n@param message the message to display if the value is false\n@return the value", "Use this API to fetch dnsview resources of given names .", "Use this API to add responderpolicy.", "Set cached value for the attribute. Used for dynamically loaded values in the Acacia content editor.\n\n@param attribute the attribute for which the value should be cached\n@param value the value to cache", "Send a DEBUG 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 pattern The message pattern\n@return", "Returns the version document of the given document, if any; returns null otherwise.\n@param document the document to get the version from.\n@return the version of the given document, if any; returns null otherwise.", "At the moment we only support the case where one entity type is returned" ]
private DecompilerSettings getDefaultSettings(File outputDir) { DecompilerSettings settings = new DecompilerSettings(); procyonConf.setDecompilerSettings(settings); settings.setOutputDirectory(outputDir.getPath()); settings.setShowSyntheticMembers(false); settings.setForceExplicitImports(true); if (settings.getTypeLoader() == null) settings.setTypeLoader(new ClasspathTypeLoader()); return settings; }
[ "Default settings set type loader to ClasspathTypeLoader if not set before." ]
[ "return the squared area of the triangle defined by the half edge hedge0\nand the point at the head of hedge1.\n\n@param hedge0\n@param hedge1\n@return", "Returns the dot product of this vector and v1.\n\n@param v1\nright-hand vector\n@return dot product", "Check if this path matches the address path.\nAn address matches this address if its path elements match or are valid\nmulti targets for this path elements. Addresses that are equal are matching.\n\n@param address The path to check against this path. If null, this method\nreturns false.\n@return true if the provided path matches, false otherwise.", "Create a REST call to artifactory with a generic request\n\n@param artifactoryRequest that should be sent to artifactory\n@return {@link ArtifactoryResponse} artifactory response as per to the request sent", "Filters a list of rows from the named table. If a column name and a value\nare supplied, then use this to filter the rows. If no column name is\nsupplied, then return all rows.\n\n@param tableName table name\n@param columnName filter column name\n@param id filter column value\n@return filtered list of rows", "The way calendars are stored in an MPP8 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs", "Get an ObjectReferenceDescriptor by name BRJ\n@param name\n@return ObjectReferenceDescriptor or null", "Cleanup function to remove all allocated listeners", "Use this API to export application." ]
public void beforeCompletion() { // avoid redundant calls if(beforeCompletionCall) return; log.info("Method beforeCompletion was called"); int status = Status.STATUS_UNKNOWN; try { JTATxManager mgr = (JTATxManager) getImplementation().getTxManager(); status = mgr.getJTATransaction().getStatus(); // ensure proper work, check all possible status // normally only check for 'STATUS_MARKED_ROLLBACK' is necessary if(status == Status.STATUS_MARKED_ROLLBACK || status == Status.STATUS_ROLLEDBACK || status == Status.STATUS_ROLLING_BACK || status == Status.STATUS_UNKNOWN || status == Status.STATUS_NO_TRANSACTION) { log.error("Synchronization#beforeCompletion: Can't prepare for commit, because tx status was " + TxUtil.getStatusString(status) + ". Do internal cleanup only."); } else { if(log.isDebugEnabled()) { log.debug("Synchronization#beforeCompletion: Prepare for commit"); } // write objects to database prepareCommit(); } } catch(Exception e) { log.error("Synchronization#beforeCompletion: Error while prepare for commit", e); if(e instanceof LockNotGrantedException) { throw (LockNotGrantedException) e; } else if(e instanceof TransactionAbortedException) { throw (TransactionAbortedException) e; } else if(e instanceof ODMGRuntimeException) { throw (ODMGRuntimeException) e; } else { throw new ODMGRuntimeException("Method beforeCompletion() fails, status of JTA-tx was " + TxUtil.getStatusString(status) + ", message: " + e.getMessage()); } } finally { beforeCompletionCall = true; setInExternTransaction(false); internalCleanup(); } }
[ "FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to close the connection in this method, because the TxManager does prepare for commit\nafter this method and all used DataSource-connections have to be closed before.\n\n@see javax.transaction.Synchronization" ]
[ "Assigns retention policy with givenID to the folder.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param folderID id of the folder to assign policy to.\n@return info about created assignment.", "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance.", "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "Add several jvm metrics.", "Check if we still need more nodes from the given zone and reduce the\nzoneReplicationFactor count accordingly.\n\n@param requiredRepFactor\n@param zoneId\n@return", "Creates the event for endpoint with specific type.\n\n@param endpoint the endpoint\n@param type the type\n@return the event", "Write the given long value as a 4 byte unsigned integer. Overflow is\nignored.\n\n@param buffer The buffer to write to\n@param index The position in the buffer at which to begin writing\n@param value The value to write", "Delivers the correct JSON Object for the Stencilset Extensions\n\n@param extensions", "Convert gallery name to title key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"" ]
Map<UUID, UUID> getActivityCodes(Activity activity) { Map<UUID, UUID> map = m_activityCodeCache.get(activity); if (map == null) { map = new HashMap<UUID, UUID>(); m_activityCodeCache.put(activity, map); for (CodeAssignment ca : activity.getCodeAssignment()) { UUID code = getUUID(ca.getCodeUuid(), ca.getCode()); UUID value = getUUID(ca.getValueUuid(), ca.getValue()); map.put(code, value); } } return map; }
[ "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs" ]
[ "Returns true if the string is a valid Java full qualified class name.\n\n@param str the string to be examined\n@return true if str is a valid Java Fqcn", "Read project calendars.", "Obtain the master partition for a given key\n\n@param key\n@return master partition id", "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bundle\n@param locale the preferred locale\n@return the configured bundle or, if not found, the default bundle.", "Creates a real agent in the platform\n\n@param agent_name\nThe name that the agent is gonna have in the platform\n@param path\nThe path of the description (xml) of the agent", "This method processes a single deferred relationship list.\n\n@param dr deferred relationship list data\n@throws MPXJException", "Parser for forecast\n\n@param feed\n@return", "Read a task relationship.\n\n@param link ConceptDraw PROJECT task link", "Installs a provider either in the scope or the pool of unbound providers.\n\n@param clazz the class for which to install the provider.\n@param bindingName the name, possibly {@code null}, for which to install the scoped provider.\n@param internalProvider the internal provider to install.\n@param isBound whether or not the provider is bound to the scope or belongs to the pool of unbound providers.\n@param isTestProvider whether or not is a test provider, installed through a Test Module that should override\nexisting providers for the same class-bindingname.\n@param <T> the type of {@code clazz}.\n\nNote to maintainers : we don't use this method directly, both {@link #installBoundProvider(Class, String, InternalProviderImpl, boolean)}\nand {@link #installUnBoundProvider(Class, String, InternalProviderImpl)}\nare a facade of this method and make the calls more clear." ]
protected void calcWorld(Bone bone, int parentId) { getWorldMatrix(parentId, mTempMtxB); // WorldMatrix (parent) TempMtxB mTempMtxB.mul(bone.LocalMatrix); // WorldMatrix = WorldMatrix(parent) * LocalMatrix bone.WorldMatrix.set(mTempMtxB); }
[ "Calculates the world matrix based on the local matrix." ]
[ "Adds a procedure definition to this class descriptor.\n\n@param procDef The procedure definition", "1.0 version of parser is different at simple mapperParser", "Recursively add indirect subclasses to a class record.\n\n@param directSuperClass\nthe superclass to add (together with its own superclasses)\n@param subClassRecord\nthe subclass to add to", "Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatArray(String, float[])\n@see #getFloatVec(String)", "Determines if a mouse event is inside a box.", "Retrieve a FieldType instance based on an ID value from\nan MPP9 or MPP12 file.\n\n@param fieldID field ID\n@return FieldType instance", "generate a prepared INSERT-Statement for the Class\ndescribed by cld.\n\n@param cld the ClassDescriptor", "Do not call this method outside of activity!!!", "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." ]
Response put(URI uri, InputStream instream, String contentType) { HttpConnection connection = Http.PUT(uri, contentType); connection.setRequestBody(instream); return executeToResponse(connection); }
[ "Performs a HTTP PUT request, saves an attachment.\n\n@return {@link Response}" ]
[ "sets the initialization method for this descriptor", "Set the position of the given Matcher to the given index.\n\n@param matcher a Matcher\n@param idx the index number\n@since 1.0", "Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The index descriptor definition or <code>null</code> if there is no such index", "Record a Screen View event\n@param screenName String, the name of the screen", "Query a player to determine the port on which its database server is running.\n\n@param announcement the device announcement with which we detected a new player on the network.", "Start a process using the given parameters.\n\n@param processId\n@param parameters\n@return", "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Dumps a texture coordinate set of a mesh to stdout.\n\n@param mesh the mesh\n@param coords the coordinates" ]
@SuppressWarnings("rawtypes") public static final Map getMap(Locale locale, String key) { ResourceBundle bundle = ResourceBundle.getBundle(LocaleData.class.getName(), locale); return ((Map) bundle.getObject(key)); }
[ "Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value" ]
[ "Initialize all components of this URI builder with the components of the given URI.\n@param uri the URI\n@return this UriComponentsBuilder", "Perform a one-off scan during boot to establish deployment tasks to execute during boot", "Checks if class package match provided list of action packages\n\n@param classPackageName\nname of class package\n@return true if class package is on the {@link #actionPackages} list", "Processes the template for all foreignkeys of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Gets a JSON string containing any pending changes to this object that can be sent back to the Box API.\n@return a JSON string containing the pending changes.", "Support the subscript operator for CharSequence.\n\n@param text a CharSequence\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Get the subsystem deployment model root.\n\n<p>\nIf the subsystem resource does not exist one will be created.\n</p>\n\n@param subsystemName the subsystem name.\n\n@return the model", "public for testing purpose", "Use this API to convert sslpkcs8." ]
public GVRCursorController findCursorController(GVRControllerType type) { for (int index = 0, size = cache.size(); index < size; index++) { int key = cache.keyAt(index); GVRCursorController controller = cache.get(key); if (controller.getControllerType().equals(type)) { return controller; } } return null; }
[ "Get the first controller of a specified type\n@param type controller type to search for\n@return controller found or null if no controllers of the given type" ]
[ "Release the connection back to the pool.\n\n@throws SQLException Never really thrown", "Test a given date for being easter sunday.\n\nThe method uses the algorithms sometimes cited as Meeus,Jones, Butcher Gregorian algorithm.\nTaken from http://en.wikipedia.org/wiki/Computus\n\n@param date The date to check.\n@return True, if date is easter sunday.", "One of facade methods for operating the Shell.\n\nRun the obtained Shell with commandLoop().\n\n@see org.gearvrf.debug.cli.Shell#Shell(org.gearvrf.debug.cli.Shell.Settings, org.gearvrf.debug.cli.CommandTable, java.util.List)\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param handlers Command handlers\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Find the style filter that must be applied to this feature.\n\n@param feature\nfeature to find the style for\n@param styles\nstyle filters to select from\n@return a style filter", "Puts as many of the given bytes as possible into this buffer.\n\n@return number of bytes actually put into this buffer (0 if the buffer is full)", "returns a sorted array of properties", "Guess whether given file is binary. Just checks for anything under 0x09.", "Adds a criterion to given pipeline which filters out vertices representing given WindupVertexFrame.", "Waits for the timeout duration until the url responds with correct status code\n\n@param routeUrl URL to check (usually a route one)\n@param timeout Max timeout value to await for route readiness.\nIf not set, default timeout value is set to 5.\n@param timeoutUnit TimeUnit used for timeout duration.\nIf not set, Minutes is used as default TimeUnit.\n@param repetitions How many times in a row the route must respond successfully to be considered available.\n@param statusCodes list of status code that might return that service is up and running.\nIt is used as OR, so if one returns true, then the route is considered valid.\nIf not set, then only 200 status code is used." ]
public static base_response add(nitro_service client, responderpolicy resource) throws Exception { responderpolicy addresource = new responderpolicy(); addresource.name = resource.name; addresource.rule = resource.rule; addresource.action = resource.action; addresource.undefaction = resource.undefaction; addresource.comment = resource.comment; addresource.logaction = resource.logaction; addresource.appflowaction = resource.appflowaction; return addresource.add_resource(client); }
[ "Use this API to add responderpolicy." ]
[ "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n\n@return the metadata, if any", "Abort and close the transaction. Calling abort abandons all persistent\nobject modifications and releases the associated locks. Aborting a\ntransaction does not restore the state of modified transient objects", "Clear tmpData in subtree rooted in this node.", "Append a Handler to a portion of the handler tree\n@param parent The parent to add the child to\n@param child The Handler to add.", "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\n@param namespace namespace for the document\n@param documentId the id of the document to resume syncing\n@return true if successfully resumed, false if the document\ncould not be found or there was an error resuming", "Initialize the metadata cache with system store list", "Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name .", "Sets the delegate of the service, that gets notified of the\nstatus of message delivery.\n\nNote: This option has no effect when using non-blocking\nconnections.", "Wait for exclusive permit during a timeout in milliseconds.\n\n@return number of acquired permits if > 0" ]
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { if (mv != null) { mv.visitMethodInsn(opcode, owner, name, desc, itf); } }
[ "Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{@link Type#getInternalName() getInternalName}).\n@param name\nthe method's name.\n@param desc\nthe method's descriptor (see {@link Type Type}).\n@param itf\nif the method's owner class is an interface." ]
[ "Read resource assignment baseline values.\n\n@param row result set row", "Check if a module can be promoted in the Grapes server\n\n@param name\n@param version\n@return a boolean which is true only if the module can be promoted\n@throws GrapesCommunicationException", "Initialization necessary for editing a property bundle.\n\n@throws CmsLoaderException thrown if loading a bundle file fails.\n@throws CmsException thrown if loading a bundle file fails.\n@throws IOException thrown if loading a bundle file fails.", "Tokenizes lookup fields and returns all matching buckets in the\nindex.", "Retrieves the overallocated flag.\n\n@return overallocated flag", "Get the status of the upload session. It contains the number of parts that are processed so far,\nthe total number of parts required for the commit and expiration date and time of the upload session.\n@return the status.", "Read all resource assignments from a GanttProject project.\n\n@param gpProject GanttProject project", "Encrypts data.\n\n@param plainData {@code initVector || payload || zeros:4}\n@return {@code initVector || E(payload) || I(signature)}", "Emit a event object with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(EventObject, Object...)" ]
private static Dimension adaptTileDimensions( final Dimension pixels, final int maxWidth, final int maxHeight) { return new Dimension(adaptTileDimension(pixels.width, maxWidth), adaptTileDimension(pixels.height, maxHeight)); }
[ "Adapt the size of the tiles so that we have the same amount of tiles as we would have had with maxWidth\nand maxHeight, but with the smallest tiles as possible." ]
[ "Updates the store definition object and the retention time based on the\nupdated store definition", "Reads characters until the 'end' character is encountered.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "Harvest any values that may have been returned during the execution\nof a procedure.\n\n@param proc the procedure descriptor that provides info about the procedure\nthat was invoked.\n@param obj the object that was persisted\n@param stmt the statement that was used to persist the object.\n\n@throws PersistenceBrokerSQLException if a problem occurs.", "Retrieve the fixed data offset for a specific field.\n\n@param type field type\n@return offset", "Read a single calendar exception.\n\n@param bc parent calendar\n@param exception exception data", "Method used to write the name of the scenarios methods\n\n@param word\n@return the same word starting with lower case", "Remove any overrides for an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise", "Remove a collaborator from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param collaborator See {@link #listCollaborators} for collaborators that can be removed from the app.", "Factory method that returns an Identity object created from a serializated representation.\n\n@param anArray The serialized representation\n@return The identity\n@see {@link #serialize}.\n@deprecated" ]
private boolean isEqual(FieldDescriptorDef first, FieldDescriptorDef second) { return first.getName().equals(second.getName()) && first.getProperty(PropertyHelper.OJB_PROPERTY_COLUMN).equals(second.getProperty(PropertyHelper.OJB_PROPERTY_COLUMN)) && first.getProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE).equals(second.getProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE)); }
[ "Tests whether the two field descriptors are equal, i.e. have same name, same column\nand same jdbc-type.\n\n@param first The first field\n@param second The second field\n@return <code>true</code> if they are equal" ]
[ "Append the path to the StringBuilder.\n\n@param result the string builder to add the path to.", "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", "Determines the component type for a given array type.\n\n@param type the given array type\n@return the component type of a given array type", "Given an AVRO serializer definition, validates if all the avro schemas\nare valid i.e parseable.\n\n@param avroSerDef", "Use this API to fetch auditnslogpolicy_vpnvserver_binding resources of given name .", "Process a compilation unit already parsed and build.", "Generate query parameters for a forward page with the specified start key.\n\n@param initialQueryParameters page 1 query parameters\n@param startkey the startkey for the forward page\n@param startkey_docid the doc id for the startkey (in case of duplicate keys)\n@param <K> the view key type\n@param <V> the view value type\n@return the query parameters for the forward page", "Runs the example program.\n\n@param args\n@throws IOException\nif there was a problem in writing the output file", "Main executable method of Crawljax CLI.\n\n@param args\nthe arguments." ]
public void startServer() throws Exception { if (!externalDatabaseHost) { try { this.port = Utils.getSystemPort(Constants.SYS_DB_PORT); server = Server.createTcpServer("-tcpPort", String.valueOf(port), "-tcpAllowOthers").start(); } catch (SQLException e) { if (e.toString().contains("java.net.UnknownHostException")) { logger.error("Startup failure. Potential bug in OSX & Java7. Workaround: add name of local machine to '/etc/hosts.'"); logger.error("Example: 127.0.0.1 MacBook"); throw e; } } } }
[ "Only meant to be called once\n\n@throws Exception exception" ]
[ "Enables a custom response\n\n@param model\n@param custom\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "EXecutes command to given container returning the inspection object as well. This method does 3 calls to\ndockerhost. Create, Start and Inspect.\n\n@param containerId\nto execute command.", "Do the search, called as a \"page action\"", "If the file is compressed, handle this so that the stream is ready to read.\n\n@param stream input stream\n@return uncompressed input stream", "In MongoDB the equivalent of a stored procedure is a stored Javascript.\n\n@param storedProcedureName name of stored procedure\n@param params query parameters\n@param tupleContext the tuple context\n\n@return the result as a {@link ClosableIterator}", "Samples without replacement from a collection.\n\n@param c\nThe collection to be sampled from\n@param n\nThe number of samples to take\n@return a new collection with the sample", "Get the title and read the Title property according the provided locale.\n@return The map from locales to the locale specific titles.", "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Process an MPP file to make it anonymous.\n\n@param input input file name\n@param output output file name\n@throws Exception" ]
private String getValueFromProp(final String propValue) { String value = propValue; // remove quotes value = value.trim(); if ((value.startsWith("\"") && value.endsWith("\"")) || (value.startsWith("'") && value.endsWith("'"))) { value = value.substring(1, value.length() - 1); } return value; }
[ "Helper to read a line from the config file.\n@param propValue the property value\n@return the value of the variable set at this line." ]
[ "Processes a runtime procedure argument tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"field-ref\" optional=\"true\" description=\"Identifies the field that provides the value\nif a runtime argument; if not set, then null is used\"\[email protected] name=\"name\" optional=\"false\" description=\"The identifier of the argument tag\"\[email protected] name=\"return\" optional=\"true\" description=\"Whether this is a return value (if a runtime argument)\"\nvalues=\"true,false\"\[email protected] name=\"value\" optional=\"false\" description=\"The value if a constant argument\"", "Create and add model controller handler to an existing management channel handler.\n\n@param handler the channel handler\n@return the created client", "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", "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotations", "Submit a operations. Throw a run time exception if the operations is\nalready submitted\n\n@param operation The asynchronous operations to submit\n@param requestId Id of the request", "Open a new content stream.\n\n@param item the content item\n@return the content stream", "Cancels all the pending & running requests and releases all the dispatchers.", "Returns a configured transformer to write XML.\n\n@return the XML configured transformer\n@throws SpinXmlElementException if no new transformer can be created", "Checks to make sure that pseudo scoped beans (i.e. @Dependent scoped beans) have no circular dependencies." ]
public JavadocLink javadocMethodLink(String memberName, Type... types) { return new JavadocLink("%s#%s(%s)", getQualifiedName(), memberName, (Excerpt) code -> { String separator = ""; for (Type type : types) { code.add("%s%s", separator, type.getQualifiedName()); separator = ", "; } }); }
[ "Returns a source excerpt of a JavaDoc link to a method on this type." ]
[ "Send a device found announcement to all registered listeners.\n\n@param announcement the message announcing the new device", "Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform preview, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Find the index of the first matching element in the list\n@param element the element value to find\n@return the index of the first matching element, or <code>-1</code> if none found", "Utility function that pauses and asks for confirmation on dangerous\noperations.\n\n@param confirm User has already confirmed in command-line input\n@param opDesc Description of the dangerous operation\n@throws IOException\n@return True if user confirms the operation in either command-line input\nor here.", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "Writes this IIMFile to writer.\n\n@param writer\nwriter to write to\n@throws IOException\nif file can't be written to", "Registers an event handler in the repository shared between Javascript\nand Java.\n\n@param h Event handler to be registered.\n@return Callback key that Javascript will use to find this handler.", "Removes the expiration flag.", "removes an Object from the cache.\n\n@param oid the Identity of the object to be removed." ]
public static <E> List<E> listify(ObjectMapper mapper, Object source, Class<E> targetElementType) { return (List<E>) collectify(mapper, source, List.class, targetElementType); }
[ "Convert an object to a list.\n\n@param mapper the object mapper\n@param source the source object\n@param targetElementType the target list element type\n@return list" ]
[ "Position the child inside the layout based on the offset and axis-s factors\n@param dataIndex data index", "MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentFields()\";\nString parametersMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentParams()\";\nString variablesMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentVariables()\";\n\nString evalMethodParams = fieldsMap +\", \" + variablesMap + \", \" + parametersMap + \", \" + columExpression;\n\nString text = \"((\"+ConditionStyleExpression.class.getName()+\")$P{\" + JRParameter.REPORT_PARAMETERS_MAP + \"}.get(\\\"\"+condition.getName()+\"\\\")).\"+CustomExpression.EVAL_METHOD_NAME+\"(\"+evalMethodParams+\")\";\nJRDesignExpression expression = new JRDesignExpression();\nexpression.setValueClass(Boolean.class);\nexpression.setText(text);\nreturn expression;\n}", "Decode a code from the stream s using huffman table h. Return the symbol or\na negative value if there is an error. If all of the lengths are zero, i.e.\nan empty code, or if the code is incomplete and an invalid code is received,\nthen -9 is returned after reading MAXBITS bits.\n\nFormat notes:\n\n- The codes as stored in the compressed data are bit-reversed relative to\na simple integer ordering of codes of the same lengths. Hence below the\nbits are pulled from the compressed data one at a time and used to\nbuild the code value reversed from what is in the stream in order to\npermit simple integer comparisons for decoding.\n\n- The first code for the shortest length is all ones. Subsequent codes of\nthe same length are simply integer decrements of the previous code. When\nmoving up a length, a one bit is appended to the code. For a complete\ncode, the last code of the longest length will be all zeros. To support\nthis ordering, the bits pulled during decoding are inverted to apply the\nmore \"natural\" ordering starting with all zeros and incrementing.\n\n@param h Huffman table\n@return status code", "Starts closing the keyboard when the hits are scrolled.", "Generate a sql where-clause for the array of fields\n\n@param fields array containing all columns used in WHERE clause", "Sends the events to monitoring service client.\n\n@param events the events", "Constructs the convex hull of a set of points whose coordinates are given\nby an array of doubles.\n\n@param coords\nx, y, and z coordinates of each input point. The length of\nthis array must be at least three times <code>nump</code>.\n@param nump\nnumber of input points\n@throws IllegalArgumentException\nthe number of input points is less than four or greater than\n1/3 the length of <code>coords</code>, or the points appear\nto be coincident, colinear, or coplanar.", "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with", "Save page to log\n\n@return address of this page after save" ]
public static MBeanServerConnection getMBeanServerConnection(Process p, boolean startAgent) { try { final JMXServiceURL serviceURL = getLocalConnectorAddress(p, startAgent); final JMXConnector connector = JMXConnectorFactory.connect(serviceURL); final MBeanServerConnection mbsc = connector.getMBeanServerConnection(); return mbsc; } catch (Exception e) { throw new RuntimeException(e); } }
[ "Connects to a child JVM process\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return an {@link MBeanServerConnection} to the process's MBean server" ]
[ "Adds a slash to a path if it doesn't end with a slash.\n\n@param folderName The path to append a possible slash.\n@return The new, correct path.", "Converts a Map to an array of objects, adding only those entries whose key is in the nameMapping array.\n\n@param values\nthe Map of values to convert\n@param nameMapping\nthe keys to extract from the Map (elements in the target array will be added in this order)\n@return the array of Objects\n@throws NullPointerException\nif values or nameMapping is null", "Only call with the read lock held", "Export modules and check them in. Assumes the log stream already open.\n@return exit code of the commit-script.", "Attaches an arbitrary object to this context.\n\n@param key they attachment key used to ensure uniqueness and used for retrieval of the value.\n@param value the value to store.\n@param <V> the value type of the attachment.\n\n@return the previous value associated with the key or {@code null} if there was no previous value.", "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy", "Simply appends the given parameters and returns it to obtain a cache key\n@param sql\n@param resultSetConcurrency\n@param resultSetHoldability\n@param resultSetType\n@return cache key to use", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "Get the deferred flag. Exchange rates can be deferred or real.time.\n\n@return the deferred flag, or {code null}." ]
public void synchronizeTaskIDToHierarchy() { clear(); int currentID = (getByID(Integer.valueOf(0)) == null ? 1 : 0); for (Task task : m_projectFile.getChildTasks()) { task.setID(Integer.valueOf(currentID++)); add(task); currentID = synchroizeTaskIDToHierarchy(task, currentID); } }
[ "Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the case where a hierarchical task\nstructure has been created programmatically in MPXJ." ]
[ "Store a comment based on comment text, gavc and user information\n\n@param gavc - entity id\n@param commentText - comment text\n@param credential - user credentials\n@param entityType - type of the entity", "Remove a PropertyChangeListener for a specific property from this node.\nThis functionality has. Please note that the listener this does not remove\na listener that has been added without specifying the property it is\ninterested in.", "In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.\n\n@param f the file containing the external vault configuration as generated by the vault tool\n@return the vault config", "Find and return the appropriate setter method for field.\n\n@return Set method or null (or throws IllegalArgumentException) if none found.", "Get or create the log context based on the logging profile.\n\n@param loggingProfile the logging profile to get or create the log context for\n\n@return the log context that was found or a new log context", "Creates a pattern choice radio button and adds it where necessary.\n@param pattern the pattern that should be chosen by the button.\n@param messageKey the message key for the button's label.", "simple echo implementation", "If directory doesn't exists try to create it.\n\n@param directory given directory to check\n@throws ReportGenerationException if can't create specified directory", "Checks if the provided duration information is valid.\n@return <code>null</code> if the information is valid, the key of the suitable error message otherwise." ]
public static final Object getObject(Locale locale, String key) { ResourceBundle bundle = ResourceBundle.getBundle(LocaleData.class.getName(), locale); return (bundle.getObject(key)); }
[ "Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value" ]
[ "add converter at given index. The index can be changed during conversion\nif canReorder is true\n\n@param index\n@param converter", "Use this API to update dbdbprofile resources.", "Use this API to unset the properties of bridgetable resources.\nProperties that need to be unset are specified in args array.", "Returns the compact project status update records for all updates on the project.\n\n@param project The project to find status updates for.\n@return Request object", "We have received notification that a device is no longer on the network, so clear out its metadata.\n\n@param announcement the packet which reported the device’s disappearance", "Initialize VIDEO_INFO data.", "Give next index i where i and i+timelag is valid", "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", "Use this API to delete sslcertkey." ]
public void updateSchema(String migrationPath) { try { logger.info("Updating schema... "); int current_version = 0; // first check the current schema version HashMap<String, Object> configuration = getFirstResult("SELECT * FROM " + Constants.DB_TABLE_CONFIGURATION + " WHERE " + Constants.DB_TABLE_CONFIGURATION_NAME + " = \'" + Constants.DB_TABLE_CONFIGURATION_DATABASE_VERSION + "\'"); if (configuration == null) { logger.info("Creating configuration table.."); // create configuration table executeUpdate("CREATE TABLE " + Constants.DB_TABLE_CONFIGURATION + " (" + Constants.GENERIC_ID + " INTEGER IDENTITY," + Constants.DB_TABLE_CONFIGURATION_NAME + " VARCHAR(256)," + Constants.DB_TABLE_CONFIGURATION_VALUE + " VARCHAR(1024));"); executeUpdate("INSERT INTO " + Constants.DB_TABLE_CONFIGURATION + "(" + Constants.DB_TABLE_CONFIGURATION_NAME + "," + Constants.DB_TABLE_CONFIGURATION_VALUE + ")" + " VALUES (\'" + Constants.DB_TABLE_CONFIGURATION_DATABASE_VERSION + "\', '0');"); } else { logger.info("Getting current schema version.."); // get current version current_version = new Integer(configuration.get("VALUE").toString()); logger.info("Current schema version is {}", current_version); } // loop through until we get up to the right schema version while (current_version < Constants.DB_CURRENT_SCHEMA_VERSION) { current_version++; // look for a schema file for this version logger.info("Updating to schema version {}", current_version); String currentFile = migrationPath + "/schema." + current_version; Resource migFile = new ClassPathResource(currentFile); BufferedReader in = new BufferedReader(new InputStreamReader( migFile.getInputStream())); String str; while ((str = in.readLine()) != null) { // execute each line if (str.length() > 0) { executeUpdate(str); } } in.close(); } // update the configuration table with the correct version executeUpdate("UPDATE " + Constants.DB_TABLE_CONFIGURATION + " SET " + Constants.DB_TABLE_CONFIGURATION_VALUE + "='" + current_version + "' WHERE " + Constants.DB_TABLE_CONFIGURATION_NAME + "='" + Constants.DB_TABLE_CONFIGURATION_DATABASE_VERSION + "';"); } catch (Exception e) { logger.info("Error in executeUpdate"); e.printStackTrace(); } }
[ "Update database schema\n\n@param migrationPath path to migrations" ]
[ "Evict cached object\n\n@param key\nthe key indexed the cached object to be evicted", "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>", "Get a compatible constructor\n\n@param type\nClass to look for constructor in\n@param argumentType\nArgument type for constructor\n@return the compatible constructor or null if none found", "init database with demo data", "Use this API to fetch sslciphersuite resource of given name .", "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle", "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", "gets the count of addresses that this address division grouping may represent\n\nIf this address division grouping is not a subnet block of multiple addresses or has no range of values, then there is only one such address.\n\n@return", "Must be called before any other functions. Declares and sets up internal data structures.\n\n@param numSamples Number of samples that will be processed.\n@param sampleSize Number of elements in each sample." ]
public static int removeDuplicateNodeList(List<String> list) { int originCount = list.size(); // add elements to all, including duplicates HashSet<String> hs = new LinkedHashSet<String>(); hs.addAll(list); list.clear(); list.addAll(hs); return originCount - list.size(); }
[ "Removes the duplicate node list.\n\n@param list\nthe list\n@return the int" ]
[ "Convenience method for retrieving an Object resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Draw a rounded rectangular boundary.\n\n@param rect rectangle\n@param color colour\n@param linewidth line width\n@param r radius for rounded corners", "Inserts an array of Parcelable values into the mapping of the underlying Bundle, replacing any\nexisting value for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value an array of Parcelable objects, or null\n@return this bundler instance to chain method calls", "Retrieve timephased baseline work. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present", "Accessor method to retrieve a Boolean instance.\n\n@param field the index number of the field to be retrieved\n@param falseText locale specific text representing false\n@return the value of the required field", "Returns the default conversion for the given java type.\n\n@param javaType The qualified java type\n@return The default conversion or <code>null</code> if there is no default conversion for the type", "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.", "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time.", "Returns the instance.\n@return InterceptorFactory" ]
public void setAssociation(String collectionRole, Association association) { if ( associations == null ) { associations = new HashMap<>(); } associations.put( collectionRole, association ); }
[ "Set the association in the entry state.\n\n@param collectionRole the role of the association\n@param association the association" ]
[ "Delete a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to delete.\n@throws FlickrException", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "Check the model for expression values.\n\n@param model the model\n@return the attribute containing an expression", "Reduce the given value to the nearest smaller 1 significant digit number starting with 1, 2 or 5.\n\n@param value the value to find a nice number for.\n@param scaleUnit the unit of the value.\n@param lockUnits if set, the values are not scaled to a \"nicer\" unit.", "Reloads the synchronization config. This wipes all in-memory synchronization settings.", "If converters are set on a table, this function tests if these can convert a cell value. The first\nconverter, which claims that it can convert, will be used to do the conversion.", "at this point definition below is not really needed as it is the same as for 1.1, but it is here as place holder when subsystem parser evolves.", "Clear all overrides, reset repeat counts for a response path\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@throws Exception exception", "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>" ]
private boolean isCacheable(PipelineContext context) throws GeomajasException { VectorLayer layer = context.get(PipelineCode.LAYER_KEY, VectorLayer.class); return !(layer instanceof VectorLayerLazyFeatureConversionSupport && ((VectorLayerLazyFeatureConversionSupport) layer).useLazyFeatureConversion()); }
[ "Features are only cacheable when not converted lazily as lazy features are incomplete, it would put detached\nobjects in the cache.\n\n@return true when features are not converted lazily" ]
[ "Performs an efficient update of each columns' norm", "refresh credentials if CredentialProvider set", "Use this API to add nsip6 resources.", "Sets the color of the drop shadow.\n\n@param color The color of the drop shadow.", "Convert a Throwable into a list containing all of its causes.\n@param t The throwable for which the causes are to be returned.\n@return A (possibly empty) list of {@link Throwable}s.", "Extract note text.\n\n@param row task data\n@return note text", "Retrieves a vertex attribute as an integer array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntVec(String, IntBuffer)\n@see #getIntArray(String)", "Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.\n@param className\n@param resourceLoader\n@return the loaded class or null if the given class cannot be loaded", "Expand a macro.\n\nThis will look up the macro definition from {@link #macros} map.\nIf not found then return passed in `macro` itself, otherwise return\nthe macro definition found.\n\n**note** if macro definition is not found and the string\n{@link #isMacro(String) comply to macro name convention}, then a\nwarn level message will be logged.\n\n@param macro the macro name\n@return macro definition or macro itself if no definition found." ]
protected Object[] getFieldObjects(Object data) throws SQLException { Object[] objects = new Object[argFieldTypes.length]; for (int i = 0; i < argFieldTypes.length; i++) { FieldType fieldType = argFieldTypes[i]; if (fieldType.isAllowGeneratedIdInsert()) { objects[i] = fieldType.getFieldValueIfNotDefault(data); } else { objects[i] = fieldType.extractJavaFieldToSqlArgValue(data); } if (objects[i] == null) { // NOTE: the default value could be null as well objects[i] = fieldType.getDefaultValue(); } } return objects; }
[ "Return the array of field objects pulled from the data object." ]
[ "Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name .", "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.", "Parse the given projection.\n\n@param projection The projection string.\n@param longitudeFirst longitudeFirst", "Sets the final transform of the bone during animation.\n\n@param finalTransform The transform matrix representing\nthe bone's pose after computing the skeleton.", "Lists the formation info for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.", "This method extracts project extended attribute data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Given a list of store definitions return a list of store names\n\n@param storeDefList The list of store definitions\n@return Returns a list of store names", "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", "Use this API to fetch all the lbsipparameters resources that are configured on netscaler." ]
public Iterable<BoxRetentionPolicyAssignment.Info> getFolderAssignments(int limit, String ... fields) { return this.getAssignments(BoxRetentionPolicyAssignment.TYPE_FOLDER, limit, fields); }
[ "Returns iterable with all folder assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all folder assignments." ]
[ "Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>", "Select a List of values from a Matcher using a Collection\nto identify the indices to be selected.\n\n@param self a Matcher\n@param indices a Collection of indices\n@return a String of the values at the given indices\n@since 1.6.0", "Does this procedure return any values to the 'caller'?\n\n@return <code>true</code> if the procedure returns at least 1\nvalue that is returned to the caller.", "Writes the object to the specified document, optionally creating a child\nelement. The object in this case should be a point.\n\n@param o the object (of type Point).\n@param document the document to write to.\n@param asChild create child element if true.\n@throws RenderException", "Utility function that fetches node ids.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return Node ids in cluster", "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler.", "converts Map of data to json string\n\n@param data map data to converted to json\n@return {@link String}", "Get layer style by name.\n\n@param name layer style name\n@return layer style" ]
public void ifDoesntHaveMemberTag(String template, Properties attributes) throws XDocletException { boolean result = false; if (getCurrentField() != null) { if (!hasTag(attributes, FOR_FIELD)) { result = true; generate(template); } } else if (getCurrentMethod() != null) { if (!hasTag(attributes, FOR_METHOD)) { result = true; generate(template); } } if (!result) { String error = attributes.getProperty("error"); if (error != null) { getEngine().print(error); } } }
[ "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.\"" ]
[ "Adds a submodule to the module.\n\n<P>\nINFO: If the module is promoted, all added submodule will be promoted.\n\n@param submodule Module", "Retrieve a FieldType instance based on an ID value from\nan MPP9 or MPP12 file.\n\n@param fieldID field ID\n@return FieldType instance", "Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference<D> of the Declaration", "Reverses all the TransitionControllers managed by this TransitionManager", "See also JLS8, 4.12.5 Initial Values of Variables.\n\n@param type\n@return the default value for the given type as defined by JLS", "Utility method to retrieve the next working date start time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of next work start", "StartMain passes in the command line args here.\n\n@param args The command line arguments. If null is given then an empty\narray will be used instead.", "retrieve a collection of type collectionClass matching the Query query\n\n@see org.apache.ojb.broker.PersistenceBroker#getCollectionByQuery(Class, Query)", "Inits the ws client.\n\n@param context the context\n@throws Exception the exception" ]
private Object getValue(FieldType field, byte[] block) { Object result = null; switch (block[0]) { case 0x07: // Field { result = getFieldType(block); break; } case 0x01: // Constant value { result = getConstantValue(field, block); break; } case 0x00: // Prompt { result = getPromptValue(field, block); break; } } return result; }
[ "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value" ]
[ "Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories.", "This method is currently in use only by the SvnCoordinator", "we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize objects and they will enter the registered for\nlock map.", "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "Rename a key for all languages.\n@param oldKey the key to rename\n@param newKey the new key name\n@return <code>true</code> if renaming was successful, <code>false</code> otherwise.", "Used to get the current repository key\n@return keyFromText or keyFromSelect reflected by the dynamicMode flag", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width", "Get a log file and last relevant date, and check if the log file is relevant\n@param currentLogFile The log file\n@param lastRelevantDate The last date which files should be keeping since\n@return false if the file should be deleted, true if it does not.", "Returns the 'Up' - vector of the camera coordinate system.\n\nThe returned vector is relative to the coordinate space defined by the\ncorresponding node.<p>\n\nThe 'right' vector of the camera coordinate system is the cross product\nof the up and lookAt vectors. The default value is 0|1|0. The vector\nmay be normalized, but it needn't.<p>\n\nThis method is part of the wrapped API (see {@link AiWrapperProvider}\nfor details on wrappers).<p>\n\nThe built-in behavior is to return a {@link AiVector}.\n\n@param wrapperProvider the wrapper provider (used for type inference)\n@return the 'Up' vector" ]
private void writeProjectProperties() { ProjectProperties properties = m_projectFile.getProjectProperties(); m_plannerProject.setCompany(properties.getCompany()); m_plannerProject.setManager(properties.getManager()); m_plannerProject.setName(getString(properties.getName())); m_plannerProject.setProjectStart(getDateTime(properties.getStartDate())); m_plannerProject.setCalendar(getIntegerString(m_projectFile.getDefaultCalendar().getUniqueID())); m_plannerProject.setMrprojectVersion("2"); }
[ "This method writes project properties to a Planner file." ]
[ "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.", "Use this API to fetch lbmonitor_binding resources of given names .", "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "Store the data of a print job in the registry.\n\n@param printJobStatus the print job status", "Template method for verification of lazy initialisation.", "Handle a completed request producing an optional response", "Update the content of the tables.", "2-D Integer array to float array.\n\n@param array Integer array.\n@return Float array.", "Get permissions for who may view geo data for a photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nreqired photo id, not null\n@return the permissions\n@throws FlickrException\nif photo id is invalid, if photo has no geodata or if any other error has been reported in the response." ]
private void getMultipleValues(Method method, Object object, Map<String, String> map) { try { int index = 1; while (true) { Object value = filterValue(method.invoke(object, Integer.valueOf(index))); if (value != null) { map.put(getPropertyName(method, index), String.valueOf(value)); } ++index; } } catch (Exception ex) { // Reached the end of the valid indexes } }
[ "Retrieve multiple properties.\n\n@param method method definition\n@param object target object\n@param map parameter values" ]
[ "Returns the directory of the URL.\n\n@param urlString URL of the file.\n@return The directory string.\n@throws IllegalArgumentException if URL is malformed", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception", "Returns the compact task records for all tasks within the given project,\nordered by their priority within the project. Tasks can exist in more than one project at a time.\n\n@param project The project in which to search for tasks.\n@return Request object", "Merge all reports in reportOverall.\n@param reportOverall destination file of merge.\n@param reports files to be merged.", "Set an outline code value.\n\n@param index outline code index (1-10)\n@param value outline code value", "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object", "Calculate start dates for a yearly absolute recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Checks if the method being invoked should be wrapped by a service.\nIt looks the method name up in the methodList. If its in the list, then\nthe method should be wrapped. If the list is null, then all methods\nare wrapped.\n\n@param methodName The method being called\n\n@return boolean", "Opens a new FileOutputStream for a file of the given name in the given\nresult directory. Any file of this name that exists already will be\nreplaced. The caller is responsible for eventually closing the stream.\n\n@param resultDirectory\nthe path to the result directory\n@param filename\nthe name of the file to write to\n@return FileOutputStream for the file\n@throws IOException\nif the file or example output directory could not be created" ]
public static void popShell() { ArrayList<CmsShell> shells = SHELL_STACK.get(); if (shells.size() > 0) { shells.remove(shells.size() - 1); } }
[ "Removes top of thread-local shell stack." ]
[ "Returns the compact task records for all tasks with the given tag.\nTasks can have more than one tag at a time.\n\n@param tag The tag to fetch tasks from.\n@return Request object", "Calculates the size based constraint width and height if present, otherwise from children sizes.", "Removes any child object that has the given name by performing\ncase-sensitive search.\n\n@param name name of scene object to be removed.\n\n@return number of removed objects, 0 if none was found.", "crops the srcBmp with the canvasView bounds and returns the cropped bitmap", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "mark a node as blacklisted\n\n@param nodeId Integer node id of the node to be blacklisted", "Does the headset the device is docked into have a dedicated home key\n@return", "Processes a procedure tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"arguments\" optional=\"true\" description=\"The arguments of the procedure as a comma-separated\nlist of names of procedure attribute tags\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"include-all-fields\" optional=\"true\" description=\"For insert/update: whether all fields of the current\nclass shall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"include-pk-only\" optional=\"true\" description=\"For delete: whether all primary key fields\nshall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the procedure\"\[email protected] name=\"return-field-ref\" optional=\"true\" description=\"Identifies the field that receives the return value\"\[email protected] name=\"type\" optional=\"false\" description=\"The type of the procedure\" values=\"delete,insert,update\"", "Set all unknown fields\n@param unknownFields the new unknown fields" ]
public QueryBuilder<T, ID> orderByRaw(String rawSql) { addOrderBy(new OrderBy(rawSql, (ArgumentHolder[]) null)); return this; }
[ "Add raw SQL \"ORDER BY\" clause to the SQL query statement.\n\n@param rawSql\nThe raw SQL order by clause. This should not include the \"ORDER BY\"." ]
[ "Performs an inline lower Cholesky decomposition on an inner row-major matrix. Only\nthe lower triangular portion of the matrix is read or written to.\n\n@param T Array containing an inner row-major matrix. Modified.\n@param indexT First index of the inner row-major matrix.\n@param n Number of rows and columns of the matrix.\n@return If the decomposition succeeded.", "Copy the settings from another calendar to this calendar.\n\n@param cal calendar data source", "Map message info.\n\n@param messageInfoType the message info type\n@return the message info", "Get the default providers list to be used.\n\n@return the default provider list and ordering, not null.", "Throws an IllegalStateException when the given value is null.\n@return the value", "Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.\n@param other\n@return", "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data", "Executes an operation on the controller latching onto an existing transaction\n\n@param operation the operation\n@param handler the handler\n@param control the transaction control\n@param prepareStep the prepare step to be executed before any other steps\n@param operationId the id of the current transaction\n@return the result of the operation", "Clears the collection and uses the iterator to run through the dao and delete all of the items in the collection\nfrom the associated database table. This is different from removing all of the elements in the table since this\niterator is across just one item's foreign objects." ]