query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
private boolean isAcceptingNewJobs() { if (this.requestedToStop) { return false; } else if (new File(this.workingDirectories.getWorking(), "stop").exists()) { LOGGER.info("The print has been requested to stop"); this.requestedToStop = true; notifyIfStopped(); return false; } else { return true; } }
[ "Check if the print has not been asked to stop taking new jobs.\n\n@return true if it's OK to take new jobs." ]
[ "This method takes a calendar of MPXJ library type, then returns a String of the\ngeneral working days USACE format. For example, the regular 5-day work week is\nNYYYYYN\n\nIf you get Fridays off work, then the String becomes NYYYYNN\n\n@param input ProjectCalendar instance\n@return work days string", "Open the store with the version directory specified. If null is specified\nwe open the directory with the maximum version\n\n@param versionDir Version Directory to open. If null, we open the max\nversioned / latest directory", "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", "Create a new DateTime. To the last second. This will not create any\nextra-millis-seconds, which may cause bugs when writing to stores such as\ndatabases that round milli-seconds up and down.", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Determines if the queue identified by the given key is used.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key is used, false otherwise", "1-D Forward Discrete Hartley Transform.\n\n@param data Data.", "Deletes the VFS XML bundle file.\n@throws CmsException thrown if the delete operation fails.", "Loads the favorite list.\n\n@return the list of favorites\n\n@throws CmsException if something goes wrong" ]
public static String toSafeFileName(String name) { int size = name.length(); StringBuilder builder = new StringBuilder(size * 2); for (int i = 0; i < size; i++) { char c = name.charAt(i); boolean valid = c >= 'a' && c <= 'z'; valid = valid || (c >= 'A' && c <= 'Z'); valid = valid || (c >= '0' && c <= '9'); valid = valid || (c == '_') || (c == '-') || (c == '.'); if (valid) { builder.append(c); } else { // Encode the character using hex notation builder.append('x'); builder.append(Integer.toHexString(i)); } } return builder.toString(); }
[ "Converts any string into a string that is safe to use as a file name.\nThe result will only include ascii characters and numbers, and the \"-\",\"_\", and \".\" characters." ]
[ "Determine if a CharSequence can be parsed as an Integer.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isInteger(String)\n@since 1.8.2", "Clear out our DAO caches.", "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.", "Removes the expiration flag.", "get all parts of module name apart from first", "Retrieve the effective calendar for this task. If the task does not have\na specific calendar associated with it, fall back to using the default calendar\nfor the project.\n\n@return ProjectCalendar instance", "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..", "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.", "Calculate the screen size of a tile. Normally the screen size is expressed in pixels and should therefore be\nintegers, but for the sake of accuracy we try to keep a double value as long as possible.\n\n@param worldSize\nThe width and height of a tile in the layer's world coordinate system.\n@param scale\nThe current client side scale.\n@return Returns an array of double values where the first value is the tile screen width and the second value is\nthe tile screen height." ]
static PatchingTask createTask(final PatchingTasks.ContentTaskDefinition definition, final PatchContentProvider provider, final IdentityPatchContext.PatchEntry context) { final PatchContentLoader contentLoader = provider.getLoader(definition.getTarget().getPatchId()); final PatchingTaskDescription description = PatchingTaskDescription.create(definition, contentLoader); return PatchingTask.Factory.create(description, context); }
[ "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task" ]
[ "Registers the transformers for JBoss EAP 7.0.0.\n\n@param subsystemRegistration contains data about the subsystem registration", "Gets the string describing the uniforms used by shaders of this type.\n@param ctx GVFContext shader is associated with\n@return uniform descriptor string\n@see #getTemplate(GVRContext) GVRShader#getUniformDescriptor()", "Use this API to delete snmpmanager.", "Use this API to delete nsacl6 of given name.", "Use this API to fetch a responderglobal_responderpolicy_binding resources.", "Returns a new color that has the alpha adjusted by the\nspecified amount.", "Returns status message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String", "Construct a new uri by replacing query parameters in initialUri with the query parameters provided.\n\n@param initialUri the initial/template URI\n@param queryParams the new query parameters.", "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." ]
public Optional<URL> getServiceUrl() { Optional<Service> optionalService = client.services().inNamespace(namespace) .list().getItems() .stream() .findFirst(); return optionalService .map(this::createUrlForService) .orElse(Optional.empty()); }
[ "Gets the URL of the first service that have been created during the current session.\n\n@return URL of the first service." ]
[ "Get the root build which triggered the current build. The build root is considered to be the one furthest one\naway from the current build which has the isPassIdentifiedDownstream active, if no parent build exists, check\nthat the current build needs an upstream identifier, if it does return it.\n\n@param currentBuild The current build.\n@return The root build with isPassIdentifiedDownstream active. Null if no upstream or non is found.", "Execute pull docker image on agent\n\n@param launcher\n@param imageTag\n@param username\n@param password\n@param host\n@return\n@throws IOException\n@throws InterruptedException", "Use this API to clear Interface resources.", "Use this API to enable the mode on Netscaler.\n@param mode mode to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "Return a list of 'Files' of downloaded or uploaded files. Filters build files without local and remote paths.\n\n@param buildFilesStream - Stream of build Artifacts or Dependencies.\n@return - List of build files.", "Adds the basic sentence.\n\n@param s the s\n@throws ParseException the parse exception", "Return a list of Flickr supported blogging services.\n\nThis method does not require authentication.\n\n@return List of Services\n@throws FlickrException", "Computes the householder vector used in QR decomposition.\n\nu = x / max(x)\nu(0) = u(0) + |u|\nu = u / u(0)\n\n@param x Input vector. Unmodified.\n@return The found householder reflector vector", "Set the method arguments for an enabled method override\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param arguments Array of arguments to set(specify all arguments)\n@return true if success, false otherwise" ]
public static appfwpolicylabel_stats get(nitro_service service, String labelname) throws Exception{ appfwpolicylabel_stats obj = new appfwpolicylabel_stats(); obj.set_labelname(labelname); appfwpolicylabel_stats response = (appfwpolicylabel_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of appfwpolicylabel_stats resource of given name ." ]
[ "Return the knot at a given position.\n@param x the position\n@return the knot number, or 1 if no knot found", "Analyze all source code using the specified RuleSet and return the report results.\n\n@param ruleSet - the RuleSet to apply to each source component; must not be null.\n@return the results from applying the RuleSet to all of the source", "Runs a Story with the given steps factory, applying the given meta\nfilter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param stepsFactory the InjectableStepsFactory used to created the\ncandidate steps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@param beforeStories the State before running any of the stories, if not\n<code>null</code>\n\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown.", "Return the knot at a given position.\n@param x the position\n@return the knot number, or 1 if no knot found", "Reads a markdown link.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link.", "Close the Closeable. Logging a warning if any problems occur.\n\n@param c the thing to close", "Issue the database statements to drop the table associated with a table configuration.\n\n<p>\n<b>WARNING:</b> This is [obviously] very destructive and is unrecoverable.\n</p>\n\n@param connectionSource\nAssociated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@param ignoreErrors\nIf set to true then try each statement regardless of {@link SQLException} thrown previously.\n@return The number of statements executed to do so.", "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list of segments. Is never <code>null</code>.", "Cut the message content to the configured length.\n\n@param event the event" ]
public RedwoodConfiguration captureStdout(){ tasks.add(new Runnable() { public void run() { Redwood.captureSystemStreams(true, false); } }); return this; }
[ "Capture stdout and route them through Redwood\n@return this" ]
[ "a small static helper to set the text color to a textView null save\n\n@param colorHolder\n@param textView\n@param colorDefault", "Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.", "Record the checkout wait time in us\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param checkoutTimeUs The number of us to wait before getting a socket", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Compares two avro strings which contains multiple store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content", "Creates a tag directly from the working copy.\n\n@param tagUrl The URL of the tag to create.\n@param commitMessage Commit message\n@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure", "Calculate Median value.\n@param values Values.\n@return Median.", "Remove all the existing links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Add an element assigned with its score\n@param member the member to add\n@param score the score to assign\n@return <code>true</code> if the set has been changed" ]
public void addClass(ClassDescriptorDef classDef) { classDef.setOwner(this); // Regardless of the format of the class name, we're using the fully qualified format // This is safe because of the package & class naming constraints of the Java language _classDefs.put(classDef.getQualifiedName(), classDef); }
[ "Adds the class descriptor to this model.\n\n@param classDef The class descriptor\n@return The class descriptor or <code>null</code> if there is no such class in this model" ]
[ "Returns an iterable containing all the enterprise users that matches the filter and specifies which child fields\nto retrieve from the API.\n@param api the API connection to be used when retrieving the users.\n@param filterTerm used to filter the results to only users starting with this string in either the name or the\nlogin. Can be null to not filter the results.\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing all the enterprise users that matches the filter.", "Returns a map of URIs to package name, as specified by the packageNames\nparameter.", "Creates a metadata cache archive file of all tracks in the specified slot on the specified player. Any\nprevious contents of the specified file will be replaced.\n\n@param slot the slot in which the media to be cached can be found\n@param playlistId the id of playlist to be cached, or 0 of all tracks should be cached\n@param cache the file into which the metadata cache should be written\n\n@throws Exception if there is a problem communicating with the player or writing the cache file.", "copied and altered from TransactionHelper", "Reads the CSS and JavaScript files from the JAR file and writes them to\nthe output directory.\n@param outputDirectory Where to put the resources.\n@throws IOException If the resources can't be read or written.", "Checks if the child is currently in ViewPort\n@param dataIndex child index\n@return true if the child is in viewport, false - otherwise", "Parameter validity check.", "Gets an enhanced protection domain for a proxy based on the given protection domain.\n@param domain the given protection domain\n@return protection domain enhanced with \"accessDeclaredMembers\" runtime permission", "Hardcode a copy method as being valid. This should be used to tell Mutability Detector about\na method which copies a collection, and when the copy can be wrapped in an immutable wrapper\nwe can consider the assignment immutable. Useful for allowing Mutability Detector to correctly\nwork with other collections frameworks such as Google Guava. Reflection is used to obtain the\nmethod's descriptor and to verify the method's existence.\n\n@param fieldType - the type of the field to which the result of the copy is assigned\n@param fullyQualifiedMethodName - the fully qualified method name\n@param argType - the type of the argument passed to the copy method\n\n@throws MutabilityAnalysisException - if the specified class or method does not exist\n@throws IllegalArgumentException - if any of the arguments are null" ]
public static void log(byte[] data) { if (LOG != null) { LOG.println(ByteArrayHelper.hexdump(data, true, 16, "")); LOG.flush(); } }
[ "Log a byte array as a hex dump.\n\n@param data byte array" ]
[ "Reload a managed server.\n\n@param permit the controller permit\n@return whether the state was changed successfully or not", "Use this API to fetch cachecontentgroup resource of given name .", "Use this API to change responderhtmlpage.", "Returns an iterable containing all the enterprise users that matches the filter and specifies which child fields\nto retrieve from the API.\n@param api the API connection to be used when retrieving the users.\n@param filterTerm used to filter the results to only users starting with this string in either the name or the\nlogin. Can be null to not filter the results.\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing all the enterprise users that matches the filter.", "Returns this applications' context path.\n@return context path.", "Returns the boolean value of the specified property.\n\n@param name The name of the property\n@param defaultValue The value to use if the property is not set or not a boolean\n@return The value", "Determines if the queue identified by the given key is a delayed queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a delayed queue, false otherwise", "Checks if a given number is in the range of a double.\n\n@param number\na number which should be in the range of a double (positive or negative)\n\n@see java.lang.Double#MIN_VALUE\n@see java.lang.Double#MAX_VALUE\n\n@return number as a double", "This produces a string with no compressed segments and all segments of full length,\nwhich is 4 characters for IPv6 segments and 3 characters for IPv4 segments." ]
public Document createDOM(PDDocument doc) throws IOException { /* We call the original PDFTextStripper.writeText but nothing should be printed actually because our processing methods produce no output. They create the DOM structures instead */ super.writeText(doc, new OutputStreamWriter(System.out)); return this.doc; }
[ "Loads a PDF document and creates a DOM tree from it.\n@param doc the source document\n@return a DOM Document representing the DOM tree\n@throws IOException" ]
[ "once animation is setup, start the animation record the beginning and\nending time for the animation", "Method to send Request messages to a specific df_service\n\n@param df_service\nThe name of the df_service\n@param msgContent\nThe content of the message to be sent\n@return Message sent to + the name of the df_service", "Get the list of active tasks from the server.\n\n@return List of tasks\n@see <a href=\"https://console.bluemix.net/docs/services/Cloudant/api/active_tasks.html\">\nActive tasks</a>", "Returns all the persistent id generators which potentially require the creation of an object in the schema.", "Determines storage overhead and returns pretty printed summary.\n\n@param finalNodeToOverhead Map of node IDs from final cluster to number\nof partition-stores to be moved to the node.\n@return pretty printed string summary of storage overhead.", "Notifies that multiple header items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Locks a file.\n\n@param expiresAt expiration date of the lock.\n@param isDownloadPrevented is downloading of file prevented when locked.\n@return the lock returned from the server.", "Send message to all connections connected to the same URL of this context\n\n@param message the message to be sent\n@param excludeSelf whether the connection of this context should be sent to\n@return this context", "Copy the settings from another calendar to this calendar.\n\n@param cal calendar data source" ]
private <T extends Index> List<T> listIndexType(String type, Class<T> modelType) { List<T> indexesOfType = new ArrayList<T>(); Gson g = new Gson(); for (JsonElement index : indexes) { if (index.isJsonObject()) { JsonObject indexDefinition = index.getAsJsonObject(); JsonElement indexType = indexDefinition.get("type"); if (indexType != null && indexType.isJsonPrimitive()) { JsonPrimitive indexTypePrimitive = indexType.getAsJsonPrimitive(); if (type == null || (indexTypePrimitive.isString() && indexTypePrimitive .getAsString().equals(type))) { indexesOfType.add(g.fromJson(indexDefinition, modelType)); } } } } return indexesOfType; }
[ "Utility to list indexes of a given type.\n\n@param type the type of index to list, null means all types\n@param modelType the class to deserialize the index into\n@param <T> the type of the index\n@return the list of indexes of the specified type" ]
[ "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list.", "Sets the access token to use when authenticating a client.", "Creates a style definition used for the body element.\n@return The body style definition.", "Part of the endOfRun process that needs the database. May be deferred if the database is not available.", "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one.", "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "Create a transformation which takes the alignment settings into account.", "Logic for timestamp\n@param time Epoch date of creation\n@return String timestamp", "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool" ]
public static String httpRequest(String stringUrl, String method, Map<String, String> parameters, String input, String charset) throws IOException { URL url = new URL(stringUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod(method); if (parameters != null) { for (Entry<String, String> entry : parameters.entrySet()) { conn.addRequestProperty(entry.getKey(), entry.getValue()); } } if (input != null) { OutputStream output = null; try { output = conn.getOutputStream(); output.write(input.getBytes(charset)); } finally { if (output != null) { output.close(); } } } return MyStreamUtils.readContent(conn.getInputStream()); }
[ "Execute a HTTP request\n\n@param stringUrl URL\n@param method Method to use\n@param parameters Params\n@param input Input / Payload\n@param charset Input Charset\n@return response\n@throws IOException" ]
[ "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias", "Use this API to add nspbr6 resources.", "Sets the appropriate OpenCms context.\n@param cms The OpenCms instance object.", "Run through the map and remove any references that have been null'd out by the GC.", "List of releases for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return a list of releases", "Deploys application reading resources from specified InputStream\n\n@param inputStream where resources are read\n@throws IOException", "Return the Payload attached to the current active bucket for |test|.\nAlways returns a payload so the client doesn't crash on a malformed\ntest definition.\n\n@param testName test name\n@return pay load attached to the current active bucket\n@deprecated Use {@link #getPayload(String, Bucket)} instead", "Get content of a file as a Map&lt;String, String&gt;, using separator to split values\n@param file File to get content\n@param separator The separator\n@return The map with the values\n@throws IOException I/O Error", "Registers Jersey HeaderDelegateProviders for the specified TinyTypes.\n\n@param head a TinyType\n@param tail other TinyTypes\n@throws IllegalArgumentException when a non-TinyType is given" ]
protected boolean isDuplicate(String eventID) { if (this.receivedEvents == null) { this.receivedEvents = new LRUCache<String>(); } return !this.receivedEvents.add(eventID); }
[ "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." ]
[ "changes an existing property with the same name, or adds a new one\n@param key property name with which the specified value is to be\nassociated\n@param value value to be associated with the specified property name\n@return the previous value associated with property name, or null if\nthere was no mapping for property name. (A null return can also\nindicate that the map previously associated null with key.)", "This function compares style ID's between features. Features are usually sorted by style.", "Detailed request to track additional data about PUT, GET and GET_ALL\n\n@param timeNS The time in nanoseconds that the operation took to complete\n@param numEmptyResponses For GET and GET_ALL, how many keys were no values found\n@param valueBytes Total number of bytes across all versions of values' bytes\n@param keyBytes Total number of bytes in the keys\n@param getAllAggregatedCount Total number of keys returned for getAll calls", "Shutdown the server\n\n@throws Exception exception", "Parse priority.\n\n\n@param priority priority value\n@return Priority instance", "Split a span into two by adding a knot in the middle.\n@param n the span index", "Register this broker in ZK for the first time.", "Update the anchor based on arcore best knowledge of the world\n\n@param scale", "Initializes communication with the Z-Wave controller stick." ]
public void addProcedure(ProcedureDef procDef) { procDef.setOwner(this); _procedures.put(procDef.getName(), procDef); }
[ "Adds a procedure definition to this class descriptor.\n\n@param procDef The procedure definition" ]
[ "The default User-Agent header. Override this method to override the user agent.\n\n@return the user agent string.", "Set new front facing rotation\n@param rotation", "Returns all factory instances that match the query.\n\n@param query the factory query, not null.\n@return the instances found, never null.", "set proper expression text invoking the DJCRosstabMeasurePrecalculatedTotalProvider for the cell\n@param auxRows\n@param auxCols\n@param measureExp\n@param djmeasure\n@param crosstabColumn\n@param crosstabRow\n@param meausrePrefix", "List app dynos for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.", "Print the parameters of the parameterized type t", "Publish finish events for each of the specified query labels\n\n<pre>\n{@code\nLabelledEvents.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 labels Query types to post to event bus", "Closes this output stream and releases any system resources associated with the stream.\n\n@throws IOException\nif an I/O error occurs.", "Enables or disables sound.\nWhen sound is disabled, nothing is played but the\naudio sources remain intact.\n@param flag true to enable sound, false to disable." ]
public static <T> T createObject(final Class<T> clazz, final Object[] args, final Map<String,Object> vars) throws NoSuchConstructorException, AmbiguousConstructorException, ReflectiveOperationException { return invokeSetters(findConstructor(clazz, args).newInstance(args), vars); }
[ "Create an object of the given type using a constructor that matches the\nsupplied arguments and invoke the setters with the supplied variables.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@param vars\nthe named arguments for setters\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception" ]
[ "Determine whether all references are available locally.\n\n@param domain the domain model\n@param hostElement the host path element\n@return whether to a sync with the master is required", "Obtain the profile name associated with a profile ID\n\n@param id ID of profile\n@return Name of corresponding profile", "Reflection API to find the method corresponding to the default implementation of a trait, given a bridge method.\n@param someMethod a method node\n@return null if it is not a method implemented in a trait. If it is, returns the method from the trait class.", "performs an INSERT operation against RDBMS.\n@param obj The Object to be inserted as a row of the underlying table.\n@param cld ClassDescriptor providing mapping information.", "Extract information from a resource ID string with the resource type\nas the identifier.\n\n@param id the resource ID\n@param identifier the identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"\n@return the information extracted from the identifier", "MPP14 files seem to exhibit some occasional weirdness\nwith duplicate ID values which leads to the task structure\nbeing reported incorrectly. The following method attempts to correct this.\nThe method uses ordering data embedded in the file to reconstruct\nthe correct ID order of the tasks.", "Use this API to add gslbservice.", "Get a list of referrers from a given domain to 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 domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photosetId\n(Optional) The id of the photoset to get stats for. If not provided, stats for all sets 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.getPhotosetReferrers.html\"", "Retrieve the result produced by a task with the given id in the group.\n\nThis method can be used to retrieve the result of invocation of both dependency\nand \"post-run\" dependent tasks. If task with the given id does not exists then\nIllegalArgumentException exception will be thrown.\n\n@param taskId the task item id\n@return the task result, null will be returned if task has not yet been invoked" ]
public static InetAddress getLocalHost() throws UnknownHostException { InetAddress addr; try { addr = InetAddress.getLocalHost(); } catch (ArrayIndexOutOfBoundsException e) { //this is workaround for mac osx bug see AS7-3223 and JGRP-1404 addr = InetAddress.getByName(null); } return addr; }
[ "Methods returns InetAddress for localhost\n\n@return InetAddress of the localhost\n@throws UnknownHostException if localhost could not be resolved" ]
[ "Validate that the Unique IDs for the entities in this container are valid for MS Project.\nIf they are not valid, i.e one or more of them are too large, renumber them.", "Check if this request is part of the specified request. This is the case if both requests have equal properties\nand the specified request is asking for the same or more paint operations than this one.\n\n@param request another request\n@return true if the current request is contained in the specified request\n@since 1.10.0", "Check if a given string is a template path or template content\n\nIf the string contains anyone the following characters then we assume it\nis content, otherwise it is path:\n\n* space characters\n* non numeric-alphabetic characters except:\n** dot \".\"\n** dollar: \"$\"\n\n@param string\nthe string to be tested\n@return `true` if the string literal is template content or `false` otherwise", "Try to delegate the responsibility of sending slops to master\n\n@param node The node that slop should eventually be pushed to\n@return true if master accept the responsibility; false if master does\nnot accept", "Used to create a new finite 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 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.", "Builds the data structures that show the effects of the plan by server group", "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return", "Facade method for operating the Unix-like terminal supporting line editing and command\nhistory.\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Main command handler\n@param input Input stream.\n@param output Output stream.\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value" ]
final public Boolean checkPositionType(String type) { if (tokenPosition == null) { return false; } else { return tokenPosition.checkType(type); } }
[ "Check position type.\n\n@param type the type\n@return the boolean" ]
[ "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", "Returns a name for the principal based upon one of the attributes\nof the main CommonProfile. The attribute name used to query the CommonProfile\nis specified in the constructor.\n\n@return a name for the Principal or null if the attribute is not populated.", "Adds all categories from one resource to another, skipping categories that are not available for the resource copied to.\n\nThe resource where categories are copied to has to be locked.\n\n@param cms the CmsObject used for reading and writing.\n@param fromResource the resource to copy the categories from.\n@param toResourceSitePath the full site path of the resource to copy the categories to.\n@throws CmsException thrown if copying the resources fails.", "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.", "Use this API to rename a nsacl6 resource.", "Add a '&lt;&gt;' clause so the column must be not-equal-to the value.", "Returns the map from resourcetype names to default timestamp modes.\n@return the map from resourcetype names to default timestamp modes.", "retrieve a collection of type collectionClass matching the Query query\nif lazy = true return a CollectionProxy\n\n@param collectionClass\n@param query\n@param lazy\n@return ManageableCollection\n@throws PersistenceBrokerException", "Use this API to fetch authenticationvserver_auditnslogpolicy_binding resources of given name ." ]
@Override protected void registerRequest(RestRequestValidator requestValidator, ChannelHandlerContext ctx, MessageEvent messageEvent) { // At this point we know the request is valid and we have a // error handler. So we construct the composite Voldemort // request object. CompositeVoldemortRequest<ByteArray, byte[]> requestObject = requestValidator.constructCompositeVoldemortRequestObject(); if(requestObject != null) { // Dropping dead requests from going to next handler long now = System.currentTimeMillis(); if(requestObject.getRequestOriginTimeInMs() + requestObject.getRoutingTimeoutInMs() <= now) { RestErrorHandler.writeErrorResponse(messageEvent, HttpResponseStatus.REQUEST_TIMEOUT, "current time: " + now + "\torigin time: " + requestObject.getRequestOriginTimeInMs() + "\ttimeout in ms: " + requestObject.getRoutingTimeoutInMs()); return; } else { Store store = getStore(requestValidator.getStoreName(), requestValidator.getParsedRoutingType()); if(store != null) { VoldemortStoreRequest voldemortStoreRequest = new VoldemortStoreRequest(requestObject, store, parseZoneId()); Channels.fireMessageReceived(ctx, voldemortStoreRequest); } else { logger.error("Error when getting store. Non Existing store name."); RestErrorHandler.writeErrorResponse(messageEvent, HttpResponseStatus.BAD_REQUEST, "Non Existing store name. Critical error."); return; } } } }
[ "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'Store' object corresponding to the store name specified in\nthe REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Message Event used to write the response / exception" ]
[ "This method is used to initiate a release staging process using the Artifactory Release Staging API.", "Allocates a database connection.\n\n@throws SQLException", "Get the next available ordinal for a method ID\n\n@param methodId ID of method\n@return value of next ordinal\n@throws Exception exception", "Use this API to add cachecontentgroup.", "Return the bean type, untangling the proxy if needed\n\n@param name\nthe bean name\n@return The Class of the bean", "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps", "Bessel function of the second kind, of order n.\n\n@param n Order.\n@param x Value.\n@return Y value.", "Clear the connection that was previously saved.\n\n@return True if the connection argument had been saved.", "Calculates the distance between two points\n\n@return distance between two points" ]
public static void generateJRXML(DynamicReport dr, LayoutManager layoutManager, Map _parameters, String xmlEncoding, OutputStream outputStream) throws JRException { JasperReport jr = generateJasperReport(dr, layoutManager, _parameters); if (xmlEncoding == null) xmlEncoding = DEFAULT_XML_ENCODING; JRXmlWriter.writeReport(jr, outputStream, xmlEncoding); }
[ "Creates a jrxml file\n\n@param dr\n@param layoutManager\n@param _parameters\n@param xmlEncoding (default is UTF-8 )\n@param outputStream\n@throws JRException" ]
[ "Iterates over the contents of an object or collection, and checks whether a\npredicate is valid for at least one element.\n\n@param self the object over which we iterate\n@param closure the closure predicate used for matching\n@return true if any iteration for the object matches the closure predicate\n@since 1.0", "To read an object in a quick & dirty way. Prepare to handle failures when object serialization changes!", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Must be called with pathEntries lock taken", "Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.\nGets the capabilities for a specific endpoint.\n@param the number of the endpoint to get the\n@return the serial message.", "Prep for a new connection\n@return if stats are enabled, return the nanoTime when this connection was requested.\n@throws SQLException", "Adds position noise to the trajectories\n@param t\n@param sd\n@return trajectory with position noise", "Stop the drag action.", "Retrieve the version number" ]
public Map<AssociationKey, Map<RowKey, Map<String, Object>>> getAssociationsMap() { return Collections.unmodifiableMap( associationsKeyValueStorage ); }
[ "Meant to execute assertions in tests only\n@return a read-only view of the map containing the relations between entities" ]
[ "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed", "Use this API to unset the properties of bridgetable resources.\nProperties that need to be unset are specified in args array.", "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Checks if Docker Machine is installed by running docker-machine and inspect the result.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n\n@return true if it is installed, false otherwise.", "Copies from buffer to our internal strBufferIndex, expanding the internal buffer if necessary\n@param offset offset in the buffer to start copying from\n@param length length to copy", "Checks whether every property except 'preferred' is satisfied\n\n@return", "Initializes the editor states for the different modes, depending on the type of the opened file.", "Create all the links possible between the Declaration and all the ImporterService matching the.\nImporterServiceFilter of the Linker.\n\n@param declarationSRef the ServiceReference<Declaration> of the Declaration", "This method writes predecessor data to an MSPDI file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param xml MSPDI task data\n@param mpx MPX task data" ]
private RgbaColor withHsl(int index, float value) { float[] HSL = convertToHsl(); HSL[index] = value; return RgbaColor.fromHsl(HSL); }
[ "Returns a new color with a new value of the specified HSL\ncomponent." ]
[ "Adds a row for the given component at the end of the group.\n\n@param component the component to wrap in the row to be added", "Handle a simple ping request.\n\n@param channel the channel\n@param header the protocol header\n@throws IOException for any error", "Retrieve the default number of minutes per year.\n\n@return minutes per year", "performs a SELECT operation against RDBMS.\n@param query the query string.\n@param cld ClassDescriptor providing JDBC information.", "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x.", "Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)", "Classify the contents of a file.\n\n@param filename\nContains the sentence(s) to be classified.\n@return {@link List} of classified List of IN.", "Checks if the selected template context is \"templatemapper\".\n\n@param request the current request\n@return true if the selected template context is \"templatemapper\"", "Gets bounds which are identical for all dimensions.\n\n@param dim The number of dimensions.\n@param l The value of all lower bounds.\n@param u The value of all upper bounds.\n@return The new bounds." ]
public String putDocument(Document document) { String key = UUID.randomUUID().toString(); documentMap.put(key, document); return key; }
[ "Puts a new document in the service. The generate key is globally unique.\n\n@param document document\n@return key unique key to reference the document" ]
[ "Use this API to add dospolicy resources.", "Read an optional string value form a JSON value.\n@param val the JSON value that should represent the string.\n@return the string from the JSON or null if reading the string fails.", "Gets an exception reporting an unexpected XML element.\n\n@param reader a reference to the stream reader.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Use this API to fetch appfwprofile_excluderescontenttype_binding resources of given name .", "Return the numeric distance value in degrees.\n\n@return the degrees", "Print the visibility adornment of element e prefixed by\nany stereotypes", "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", "Registers Jersey HeaderDelegateProviders for the specified TinyTypes.\n\n@param head a TinyType\n@param tail other TinyTypes\n@throws IllegalArgumentException when a non-TinyType is given", "Retrieves the timephased breakdown of actual cost.\n\n@return timephased actual cost" ]
protected String getLocaleSpecificTitle(Locale locale) { String result = null; try { if (isDetailRequest()) { // this is a request to a detail page CmsResource res = getDetailContent(); CmsFile file = m_cms.readFile(res); CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, file); result = content.getHandler().getTitleMapping(m_cms, content, m_cms.getRequestContext().getLocale()); if (result == null) { // title not found, maybe no mapping OR not available in the current locale // read the title of the detail resource as fall back (may contain mapping from another locale) result = m_cms.readPropertyObject( res, CmsPropertyDefinition.PROPERTY_TITLE, false, locale).getValue(); } } if (result == null) { // read the title of the requested resource as fall back result = m_cms.readPropertyObject( m_cms.getRequestContext().getUri(), CmsPropertyDefinition.PROPERTY_TITLE, true, locale).getValue(); } } catch (CmsException e) { LOG.debug(e.getLocalizedMessage(), e); } if (CmsStringUtil.isEmptyOrWhitespaceOnly(result)) { result = ""; } return result; }
[ "Returns the title according to the given locale.\n@param locale the locale for which the title should be read.\n@return the title according to the given locale" ]
[ "Retrieve the default number of minutes per month.\n\n@return minutes per month", "Enqueues a message for sending on the send thread.\n@param serialMessage the serial message to enqueue.", "Add assertions to tests execution.", "Use this API to add dnstxtrec resources.", "Prints some basic documentation about this program.", "Reverse how the transition is applied, such that the transition previously performed when progress=start of range is only performed when progress=end of range\n\n@return", "Get the literal value for an expression.\n\n@param expression expression\n@return literal value", "Creates an appropriate HSGE for resources in the host tree, excluding the server and server-config subtrees", "Destroy the proxy & update the map containing the registration ref.\n\n@param importDeclaration" ]
private static <T> void readFields(BufferedReader reader, DatabaseTableConfig<T> config) throws SQLException { List<DatabaseFieldConfig> fields = new ArrayList<DatabaseFieldConfig>(); while (true) { String line; try { line = reader.readLine(); } catch (IOException e) { throw SqlExceptionUtil.create("Could not read next field from config file", e); } if (line == null || line.equals(CONFIG_FILE_FIELDS_END)) { break; } DatabaseFieldConfig fieldConfig = DatabaseFieldConfigLoader.fromReader(reader); if (fieldConfig == null) { break; } fields.add(fieldConfig); } config.setFieldConfigs(fields); }
[ "Read all of the fields information from the configuration file." ]
[ "Sets an Integer attribute.\n\n@param key the key, non null.\n@param value the value\n@return the Builder, for chaining.", "Returns a compact representation of all of the tags the task has.\n\n@param task The task to get tags on.\n@return Request object", "Removes file from your assembly.\n\n@param name field name of the file to remove.", "Returns an array of all endpoints\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param filters filters to apply to endpoints\n@return Collection of endpoints\n@throws Exception exception", "Method to be implemented by the RendererBuilder subtypes. In this method the library user will\ndefine the mapping between content and renderer class.\n\n@param content used to map object to Renderers.\n@return the class associated to the renderer.", "Resolve the server registry.\n\n@param mgmtVersion the mgmt version\n@param subsystems the subsystems\n@return the transformer registry", "Formats a date or a time according to the local conventions.\n\nSince ReadablePartials don't support all fields, we fill in any blanks\nneeded for formatting by using the epoch (1970-01-01T00:00:00Z).\n\nSee {@link android.text.format.DateUtils#formatDateTime} for full docs.\n\n@param context the context is required only if the time is shown\n@param time a point in time\n@param flags a bit mask of formatting options\n@return a string containing the formatted date/time.", "Adds special accessors for private constants so that inner classes can retrieve them.", "Adds the default value of property if defined.\n\n@param props the Properties object\n@param propDef the property definition\n\n@return true if the property could be added" ]
public ItemRequest<Project> delete(String project) { String path = String.format("/projects/%s", project); return new ItemRequest<Project>(this, Project.class, path, "DELETE"); }
[ "A specific, existing project can be deleted by making a DELETE request\non the URL for that project.\n\nReturns an empty data record.\n\n@param project The project to delete.\n@return Request object" ]
[ "Try to build an default PBKey for convenience PB create method.\n\n@return PBKey or <code>null</code> if default key was not declared in\nmetadata", "Performs a similar transform on A-pI", "Gets the crouton's layout parameters, constructing a default if necessary.\n\n@return the layout parameters", "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "Sets the text alignment for all cells in the table.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null", "This method uses the configured git credentials and repo, to test its validity.\nIn addition, in case the user requested creation of a new tag, it checks that\nanother tag with the same name doesn't exist", "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).", "Applies the mask to this address section and then compares values with the given address section\n\n@param mask\n@param other\n@return", "Checks whether the folder exists for fileName, and creates it if necessary.\n\n@param fileName folder name.\n@throws IOException an IO exception." ]
public void registerCollectionSizeGauge( CollectionSizeGauge collectionSizeGauge) { String name = createMetricName(LocalTaskExecutorService.class, "queue-size"); metrics.register(name, collectionSizeGauge); }
[ "Calling this twice will not actually overwrite the gauge\n\n@param collectionSizeGauge" ]
[ "Updates the exceptions panel.", "Method to send Request messages to a specific df_service\n\n@param df_service\nThe name of the df_service\n@param msgContent\nThe content of the message to be sent\n@return Message sent to + the name of the df_service", "Remove the group and all references to it\n\n@param groupId ID of group", "Escapes control characters with a preceding backslash.\nOptionally encodes special chars as unicode escape sequence.\nThe resulting string is safe to be put into a Java string literal between\nthe quotes.", "Returns the start position of the indicator.\n\n@return The start position of the indicator.", "Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions", "Calculates the Boundedness value to given confinement radius, diffusion coefficient, timlag and number of steps.\n@param D diffusion coefficient\n@param N Number of steps\n@param timelag Timelag\n@param confRadius Confinement radius\n@return Boundedness value", "Implement the persistence handler for storing the user properties.", "Returns a new instance of the class with the given qualified name using the default or\nor a no-arg constructor.\n\n@param className The qualified name of the class to instantiate" ]
public ImmutableList<AbstractElement> getFirstSetGrammarElements() { if (firstSetGrammarElements == null) { firstSetGrammarElements = ImmutableList.copyOf(mutableFirstSetGrammarElements); } return firstSetGrammarElements; }
[ "The grammar elements that may occur at the given offset." ]
[ "Part of the endOfRun process that needs the database. May be deferred if the database is not available.", "Returns all selected values of the list box, or empty array if none.\n\n@return the selected values of the list box", "Execute all recorded tasks.\n\n@param context the patch context\n@param callback the finalization callback\n@throws Exception", "Get the number of views, comments and favorites on a photostream for a given date.\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@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"", "Roll the java.util.Date forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "Get the JSON string representation of the selector configured for this index.\n\n@return selector JSON as string", "Create the close button UI Component.\n@return the close button.", "The only indication that a task is a SubProject is the contents\nof the subproject file name field. We test these here then add a skeleton\nsubproject structure to match the way we do things with MPP files." ]
public final Jar setAttribute(String name, String value) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Manifest cannot be modified after entries are added."); getManifest().getMainAttributes().putValue(name, value); return this; }
[ "Sets an attribute in the main section of the manifest.\n\n@param name the attribute's name\n@param value the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods." ]
[ "Return the knot at a given position.\n@param x the position\n@return the knot number, or 1 if no knot found", "Generate node data map.\n\n@param task\nthe job info", "Build the tree of joins for the given criteria", "Use this API to fetch tmtrafficaction resource of given name .", "Retrieve the start slack.\n\n@return start slack", "Determine the generic value type of the given Map field.\n@param mapField the map field to introspect\n@param nestingLevel the nesting level of the target type\n(typically 1; e.g. in case of a List of Lists, 1 would indicate the\nnested List, whereas 2 would indicate the element of the nested List)\n@return the generic type, or {@code null} if none", "helper function to convert strings to bytes as needed.\n\n@param key\n@param value", "Gets or creates id of the entity type.\n\n@param entityType entity type name.\n@param allowCreate if set to true and if there is no entity type like entityType,\ncreate the new id for the entityType.\n@return entity type id.", "Get the values of the fields for an obj\nAutoincrement values are automatically set.\n@param fields\n@param obj\n@throws PersistenceBrokerException" ]
@Override public <T> T get(Object key, Resource resource, Provider<T> provider) { if(resource == null) { return provider.get(); } CacheAdapter adapter = getOrCreate(resource); T element = adapter.<T>internalGet(key); if (element==null) { element = provider.get(); cacheMiss(adapter); adapter.set(key, element); } else { cacheHit(adapter); } if (element == CacheAdapter.NULL) { return null; } return element; }
[ "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>." ]
[ "Report on the filtered data in DMR .", "Forks off a runnable with the executor provided. Multiple calls are allowed, but the listeners must be\nthreadsafe.", "Obtains a Pax zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Pax zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Sets the bytecode compatibility mode\n\n@param version the bytecode compatibility mode", "Accessor method used to retrieve a char representing the\ncontents of an individual field. If the field does not exist in the\nrecord, the default character is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Create a Task instance from a Phoenix activity.\n\n@param activity Phoenix activity data", "Starts closing the keyboard when the hits are scrolled.", "Acquire the exclusive lock allowing the acquisition to be interrupted.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@throws InterruptedException - if the acquiring thread is interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "called by timer thread" ]
public ItemRequest<Section> createInProject(String project) { String path = String.format("/projects/%s/sections", project); return new ItemRequest<Section>(this, Section.class, path, "POST"); }
[ "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object" ]
[ "Create a style from a list of rules.\n\n@param styleRules the rules", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Adds listeners and reads from a file.\n\n@param reader reader for file type\n@param file schedule data\n@return ProjectFile instance", "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted.", "Get the OAuth request token - this is step one of authorization.\n\n@param callbackUrl\noptional callback URL - required for web auth flow, will be set to \"oob\" if not specified.\n@return the {@link OAuth1RequestToken}, store this for when the user returns from the Flickr website.", "Asynchronous call that begins execution of the task\nand returns immediately.", "Returns true if the lattice contains an entry at the specified location.\n\n@param maturityInMonths The maturity in months to check.\n@param tenorInMonths The tenor in months to check.\n@param moneynessBP The moneyness in bp to check.\n@return True iff there is an entry at the specified location.", "Convert a geometry class to a layer type.\n\n@param geometryClass\nJTS geometry class\n@return Geomajas layer type", "Process data for an individual calendar.\n\n@param row calendar data" ]
@Override public ModelNode resolveValue(ExpressionResolver resolver, ModelNode value) throws OperationFailedException { // Pass non-LIST values through the superclass so it can reject weird values and, in the odd chance // that's how this object is set up, turn undefined into a default list value. ModelNode superResult = value.getType() == ModelType.LIST ? value : super.resolveValue(resolver, value); // If it's not a LIST (almost certainly UNDEFINED), then nothing more we can do if (superResult.getType() != ModelType.LIST) { return superResult; } // Resolve each element. // Don't mess with the original value ModelNode clone = superResult == value ? value.clone() : superResult; ModelNode result = new ModelNode(); result.setEmptyList(); for (ModelNode element : clone.asList()) { result.add(valueType.resolveValue(resolver, element)); } // Validate the entire list getValidator().validateParameter(getName(), result); return result; }
[ "Overrides the superclass implementation to allow the value type's AttributeDefinition to in turn\nresolve each element.\n\n{@inheritDoc}" ]
[ "See page 385 of Fundamentals of Matrix Computations 2nd", "Returns a BoxStoragePolicyAssignment information.\n@param api the API connection to be used by the resource.\n@param resolvedForType the assigned entity type for the storage policy.\n@param resolvedForID the assigned entity id for the storage policy.\n@return information about this {@link BoxStoragePolicyAssignment}.", "Delivers the correct JSON Object for the Stencilset\n\n@param stencilSet\n@throws org.json.JSONException", "Give next index i where i and i+timelag is valid", "todo move to commonops", "Calls the specified Stitch function, and decodes the response into an instance of the specified\ntype. The response will be decoded using the codec registry given.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.\n@param resultClass the class that the Stitch response should be decoded as.\n@param <T> the type into which the Stitch response will be decoded.\n@param codecRegistry the codec registry that will be used to encode/decode the function call.\n@return the decoded value.", "Sign in a group of connections to the registry by key\n\n@param key\nthe key\n@param connections\na collection of websocket connections", "Make a string with the shader layout for a uniform block\nwith a given descriptor. The format of the descriptor is\nthe same as for a @{link GVRShaderData} - a string of\ntypes and names of each field.\n<p>\nThis function will return a Vulkan shader layout if the\nVulkan renderer is being used. Otherwise, it returns\nan OpenGL layout.\n@param descriptor string with types and names of each field\n@param blockName name of uniform block\n@param useUBO true to output uniform buffer layout, false for push constants\n@return string with shader declaration", "Checks whether the given set of properties is available.\n\n@param keys the keys to check\n@return true if all properties are available, false otherwise" ]
public static base_response unset(nitro_service client, filterhtmlinjectionparameter resource, String[] args) throws Exception{ filterhtmlinjectionparameter unsetresource = new filterhtmlinjectionparameter(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of filterhtmlinjectionparameter resource.\nProperties that need to be unset are specified in args array." ]
[ "Use this API to fetch authenticationradiuspolicy_vpnvserver_binding resources of given name .", "Release the broker instance.", "Use this API to add cmppolicylabel resources.", "Swaps two specified partitions.\n\nPair-wase partition swapping may be more prone to local minima than\nlarger perturbations. Could consider \"swapping\" a list of\n<nodeId/partitionId>. This would allow a few nodes to be identified\n(random # btw 2-5?) and then \"swapped\" (shuffled? rotated?).\n\n@return modified cluster metadata.", "Looks up and returns the value of the given key in the properties file of\nthe currently-selected theme.\n\n@param code Key to look up in the theme properties file.\n@return The value of the code in the current theme properties file, or an\nempty string if the code could not be resolved.", "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value", "Search for a publisher of the given type in a project and return it, or null if it is not found.\n\n@return The publisher", "Resets the helper's state.\n\n@return this {@link Searcher} for chaining.", "Process a graphical indicator definition for a known type.\n\n@param type field type" ]
boolean lock(final Integer permit, final long timeout, final TimeUnit unit) { boolean result = false; try { result = lockInterruptibly(permit, timeout, unit); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } return result; }
[ "Attempts exclusive acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success." ]
[ "Add an appliable dependency for this task item.\n\n@param appliable the appliable dependency.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated dependency", "Ensure that the given connection is established.\n\n@param jedis\na connection to Redis\n@return true if the supplied connection was already connected", "Whether this section is consistent with an EUI64 section,\nwhich means it came from an extended 8 byte address,\nand the corresponding segments in the middle match 0xff and 0xfe\n\n@param partial whether missing segments are considered a match\n@return", "Set the TimeSensor's cycleInterval property\nCurrently, this does not change the duration of the animation.\n@param newCycleInterval", "Gets the flags associated with this attribute.\n@return the flags. Will not return {@code null}", "Map custom info.\n\n@param ciType the custom info type\n@return the map", "Compute Cholesky decomposition of A\n\n@param A symmetric, positive definite matrix (only upper half is used)\n@return upper triangular matrix U such that A = U' * U", "Log a trace message.", "Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG" ]
public void writeOutput(DataPipe cr) { try { context.write(NullWritable.get(), new Text(cr.getPipeDelimited(outTemplate))); } catch (Exception e) { throw new RuntimeException("Exception occurred while writing to Context", e); } }
[ "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to" ]
[ "Log a fatal message.", "Returns an integer array that contains the current values for all the\ntexture parameters.\n\n@return an integer array that contains the current values for all the\ntexture parameters.", "Returns the shared prefix of these columns. Null otherwise.\n\n@param associationKeyColumns the columns sharing a prefix\n@return the shared prefix of these columns. {@code null} otherwise.", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specified fields.", "Called to execute this action.\n@param actionEvent", "Remove the report directory.", "Stops the background data synchronization thread and releases the local client.", "Find the next match of the pattern on the tree\n\n@return whether there is a match somewhere in the tree", "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" ]
public TwoDHashMap<K2, K3, V> getAs2d(final K1 firstKey) { final HashMap<K2, HashMap<K3, V>> innerMap1 = map.get(firstKey); if( innerMap1 != null ) { return new TwoDHashMap<K2, K3, V>(innerMap1); } else { return new TwoDHashMap<K2, K3, V>(); } }
[ "Fetch the outermost Hashmap as a TwoDHashMap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap" ]
[ "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "Reset the Where object so it can be re-used.", "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return", "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>.", "This method lists all resources defined in the file.\n\n@param file MPX file", "Set virtual host so the server can direct the request. Value is the host header if it is set, otherwise\nuse the hostname from the original request.\n\n@param httpMethodProxyRequest\n@param httpServletRequest", "Record the connection establishment time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param connEstTimeUs The number of us to wait before establishing a\nconnection", "The primary run loop of the kqueue event processor.", "Locks the bundle file that contains the translation for the provided locale.\n@param l the locale for which the bundle file should be locked.\n@throws CmsException thrown if locking fails." ]
public static Command newSetGlobal(String identifier, Object object) { return getCommandFactoryProvider().newSetGlobal( identifier, object ); }
[ "Sets the global. Does not add the global to the ExecutionResults.\n\n@param identifier\nThe identifier of the global\n@param object\nThe instance to be set as the global.\n@return" ]
[ "Registers your facet filters, adding them to this InstantSearch's widgets.\n\n@param filters a List of facet filters.", "Find the current layout and extract the activity code order and visibility.\n\n@param phoenixProject phoenix project data", "Toggles a style name on a ui object\n\n@param uiObject Object to toggle style on\n@param toggleStyle whether or not to toggle the style name on the object\n@param styleName Style name", "Get the FieldDescriptors of the extent based on the FieldDescriptors of the parent.", "Loads the tag definitions from the files with a \".tags.xml\" suffix from the addons.", "Removes elements from begin to end from the list, inclusive. Returns a new list which\nis composed of the removed elements", "Get the Operation metadata for a single operation on an MBean by name.\n@param operationName the Operation name (can be URL-encoded).\n@return the {@link MBeanOperationInfo} for the operation.\n@throws OperationNotFoundException Method was not found\n@throws UnsupportedEncodingException if the encoding is not supported.", "Discard the changes.", "Calculates the text height for the indicator value and sets its x-coordinate." ]
public <T> T handleResponse(Response response, Type returnType) throws ApiException { if (response.isSuccessful()) { if (returnType == null || response.code() == 204) { // returning null if the returnType is not defined, // or the status code is 204 (No Content) return null; } else { return deserialize(response, returnType); } } else { String respBody = null; if (response.body() != null) { try { respBody = response.body().string(); } catch (IOException e) { throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); } } throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); } }
[ "Handle the given response, return the deserialized object when the response is successful.\n\n@param <T> Type\n@param response Response\n@param returnType Return type\n@throws ApiException If the response has a unsuccessful status code or\nfail to deserialize the response body\n@return Type" ]
[ "Returns the compact records for all teams in the organization visible to\nthe authorized user.\n\n@param organization Globally unique identifier for the workspace or organization.\n@return Request object", "Does the bitwise conjunction with this address. Useful when subnetting.\n\n@param mask\n@param retainPrefix whether to drop the prefix\n@return\n@throws IncompatibleAddressException", "Adds the basic sentence.\n\n@param s the s\n@throws ParseException the parse exception", "converts the file URIs with an absent authority to one with an empty", "Packages of the specified classes will be scanned and found classes will be added to the set of bean classes for the synthetic bean archive.\n\n@param scanRecursively\n@param packageClasses\n@return self", "Starts the Okapi Barcode UI.\n\n@param args the command line arguments", "Write the auxiliary RDF data for encoding the given value.\n\n@param value\nthe value to write\n@param resource\nthe (subject) URI to use to represent this value in RDF\n@throws RDFHandlerException", "Throws if the given file is null, is not a file or directory, or is an empty directory.", "Purges the JSP repository.<p<\n\n@param afterPurgeAction the action to execute after purging" ]
static synchronized LogContext configureLogContext(final File logDir, final File configDir, final String defaultLogFileName, final CommandContext ctx) { final LogContext embeddedLogContext = Holder.LOG_CONTEXT; final Path bootLog = logDir.toPath().resolve(Paths.get(defaultLogFileName)); final Path loggingProperties = configDir.toPath().resolve(Paths.get("logging.properties")); if (Files.exists(loggingProperties)) { WildFlySecurityManager.setPropertyPrivileged("org.jboss.boot.log.file", bootLog.toAbsolutePath().toString()); try (final InputStream in = Files.newInputStream(loggingProperties)) { // Attempt to get the configurator from the root logger Configurator configurator = embeddedLogContext.getAttachment("", Configurator.ATTACHMENT_KEY); if (configurator == null) { configurator = new PropertyConfigurator(embeddedLogContext); final Configurator existing = embeddedLogContext.getLogger("").attachIfAbsent(Configurator.ATTACHMENT_KEY, configurator); if (existing != null) { configurator = existing; } } configurator.configure(in); } catch (IOException e) { ctx.printLine(String.format("Unable to configure logging from configuration file %s. Reason: %s", loggingProperties, e.getLocalizedMessage())); } } return embeddedLogContext; }
[ "Configures the log context for the server and returns the configured log context.\n\n@param logDir the logging directory, from jboss.server|domain.log.dir standalone default {@code $JBOSS_HOME/standalone/log}\n@param configDir the configuration directory from jboss.server|domain.config.dir, standalone default {@code $JBOSS_HOME/standalone/configuration}\n@param defaultLogFileName the name of the log file to pass to {@code org.jboss.boot.log.file}\n@param ctx the command context used to report errors to\n\n@return the configured log context" ]
[ "Use this API to update autoscaleaction resources.", "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally.", "Read custom fields for a GanttProject task.\n\n@param gpTask GanttProject task\n@param mpxjTask MPXJ Task instance", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Return a list of photos for a user at a specific latitude, longitude and accuracy.\n\n@param location\n@param extras\n@param perPage\n@param page\n@return The collection of Photo objects\n@throws FlickrException\n@see com.flickr4java.flickr.photos.Extras", "Sets the duration for the animation to be played.\n\n@param start the animation will start playing from the specified time\n@param end the animation will stop playing at the specified time\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code start} is either negative value, greater than\n{@code end} value or {@code end} is greater than duration", "Returns true if this instance has the same config as a given config.\n@param that\n@return true if the instance has the same config, false otherwise.", "Gets a collection of all the email aliases for this user.\n\n<p>Note that the user's primary login email is not included in the collection of email aliases.</p>\n\n@return a collection of all the email aliases for this user.", "Convert this buffer to a java array.\n@return" ]
public void writeTo(Writer destination) { Element eltRuleset = new Element("ruleset"); addAttribute(eltRuleset, "name", name); addChild(eltRuleset, "description", description); for (PmdRule pmdRule : rules) { Element eltRule = new Element("rule"); addAttribute(eltRule, "ref", pmdRule.getRef()); addAttribute(eltRule, "class", pmdRule.getClazz()); addAttribute(eltRule, "message", pmdRule.getMessage()); addAttribute(eltRule, "name", pmdRule.getName()); addAttribute(eltRule, "language", pmdRule.getLanguage()); addChild(eltRule, "priority", String.valueOf(pmdRule.getPriority())); if (pmdRule.hasProperties()) { Element ruleProperties = processRuleProperties(pmdRule); if (ruleProperties.getContentSize() > 0) { eltRule.addContent(ruleProperties); } } eltRuleset.addContent(eltRule); } XMLOutputter serializer = new XMLOutputter(Format.getPrettyFormat()); try { serializer.output(new Document(eltRuleset), destination); } catch (IOException e) { throw new IllegalStateException("An exception occurred while serializing PmdRuleSet.", e); } }
[ "Serializes this RuleSet in an XML document.\n\n@param destination The writer to which the XML document shall be written." ]
[ "Add a number of days to the supplied date.\n\n@param date start date\n@param days number of days to add\n@return new date", "Adds all fields declared in the object's class and its superclasses to the output.\n@return this", "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "Before cluster management operations, i.e. remember and disable quota\nenforcement settings", "Returns the list of colliders attached to scene objects that are\nvisible from the viewpoint of the camera.\n\n<p>\nThis method is thread safe because it guarantees that only\none thread at a time is picking against particular scene graph,\nand it extracts the hit data during within its synchronized block. You\ncan then examine the return list without worrying about another thread\ncorrupting your hit data.\n\nThe hit location returned is the world position of the scene object center.\n\n@param scene\nThe {@link GVRScene} with all the objects to be tested.\n\n@return A list of {@link org.gearvrf.GVRPicker.GVRPickedObject}, sorted by distance from the\ncamera rig. Each {@link org.gearvrf.GVRPicker.GVRPickedObject} contains the scene object\nwhich owns the {@link GVRCollider} along with the hit\nlocation and distance from the camera.\n\n@since 1.6.6", "Get a property as a json array or default.\n\n@param key the property name\n@param defaultValue default", "When the JRField needs properties, use this method.\n@param propertyName\n@param value\n@return", "Create the service name for a channel\n\n@param channelName\nthe channel name\n@return the service name", "Adds special accessors for private constants so that inner classes can retrieve them." ]
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." ]
[ "If the DefaultActionInvocation has been executed before and the Result is\nan instance of ActionChainResult, this method will walk down the chain of\nActionChainResults until it finds a non-chain result, which will be\nreturned. If the DefaultActionInvocation's result has not been executed\nbefore, the Result instance will be created and populated with the result\nparams.\n\n@return a Result instance\n@throws Exception", "Sets the resource to which this calendar is linked. Note that this\nmethod updates the calendar's name to be the same as the resource name.\nIf the resource does not yet have a name, then the calendar is given\na default name.\n\n@param resource resource instance", "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.", "helper to calculate the actionBar height\n\n@param context\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", "Attempts to checkout a resource so that one queued request can be\nserviced.\n\n@param key The key for which to process the requestQueue\n@return true iff an item was processed from the Queue.", "Checks if is single position prefix.\n\n@param fieldInfo\nthe field info\n@param prefix\nthe prefix\n@return true, if is single position prefix\n@throws IOException\nSignals that an I/O exception has occurred.", "Mojos perform different dependency resolution, so we add dependencies for each mojo.", "Uploads a new file to this folder while reporting the progress to a ProgressListener.\n\n@param fileContent a stream containing the contents of the file to upload.\n@param name the name to give the uploaded file.\n@param fileSize the size of the file used for determining the progress of the upload.\n@param listener a listener for monitoring the upload's progress.\n@return the uploaded file's info." ]
public long removeRangeByScore(final ScoreRange scoreRange) { return doWithJedis(new JedisCallable<Long>() { @Override public Long call(Jedis jedis) { return jedis.zremrangeByScore(getKey(), scoreRange.from(), scoreRange.to()); } }); }
[ "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed." ]
[ "Return a String of length a minimum of totalChars characters by\npadding the input String str at the right end with spaces.\nIf str is already longer\nthan totalChars, it is returned unchanged.", "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running", "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions or the original input in case\nthe input didn't contain any expressions or at least one of the\nexpressions could not be resolved", "Reads an argument of type \"nstring\" from the request.", "Returns the current download state for a download request.\n\n@param downloadId\n@return", "Gets the current instance of plugin manager\n\n@return PluginManager", "end class CoNLLIterator", "Given an array of variable names, returns an Xml String\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@param dataMap\n@return values in Xml format", "add a converted object to the pool\n\n@param converter\nthe converter that made the conversion\n@param sourceObject\nthe source object that has been converted\n@param destinationType\nthe destination type\n@param convertedObject\nthe converted object" ]
public static synchronized void resetAndSetNewConfig(Context ctx, Config config) { GLOBAL_CONFIG = config; if (DISK_CACHE_MANAGER != null) { DISK_CACHE_MANAGER.clear(); DISK_CACHE_MANAGER = null; createCache(ctx); } if (EXECUTOR_MANAGER != null) { EXECUTOR_MANAGER.shutDown(); EXECUTOR_MANAGER = null; } Log.i(TAG, "New config set"); }
[ "Sets a new config and clears the previous cache" ]
[ "Requests the waveform detail 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 detail 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 detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Creates a new Box Developer Edition connection with enterprise token leveraging an access token cache.\n@param enterpriseId the enterprise ID to use for requesting access token.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "Sets the fieldConversion.\n@param fieldConversionClassName The fieldConversion to set", "Aliases variables with an unknown type.\n@param variable The variable being aliased\n@param name Name of the variable", "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", "Retrieves the time at which work finishes on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return finish time, or null for non-working day", "Returns a set that contains all the unique entries of the given iterator in the order of their appearance.\nThe result set is a copy of the iterator with stable order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a set with the unique entries of the given iterator. Never <code>null</code>.", "Creates a Resque backtrace from a Throwable's stack trace. Includes\ncauses.\n\n@param t\nthe Exception to use\n@return a list of strings that represent how the exception's stacktrace\nappears.", "Retrieves the configured message by property key\n@param key The key in the file\n@return The associated value in case the key is found in the message bundle file. If\nno such key is defined, the returned value would be the key itself." ]
private String readOptionalString(JSONObject json, String key, String defaultValue) { try { String str = json.getString(key); if (str != null) { return str; } } catch (JSONException e) { LOG.debug("Reading optional JSON string failed. Default to provided default value.", e); } return defaultValue; }
[ "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." ]
[ "Append the given item to the end of the list\n@param segment segment to append", "Add additional source types", "Process start.\n\n@param endpoint the endpoint\n@param eventType the event type", "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data", "returns an Array with an Objects NON-PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Injects bound fields\n\n@param instance The instance to inject into", "Transforms user name and icon size into the image path.\n\n@param name the user name\n@param size IconSize to get icon for\n\n@return the path", "Use this API to fetch dnsnsecrec resource of given name .", "Get the authentication for a specific token.\n\n@param token token\n@return authentication if any" ]
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." ]
[ "Load all string recognize.", "Override this method to supply a custom splash screen image.\n\n@param gvrContext\nThe new {@link GVRContext}\n@return Texture to display\n\n@since 1.6.4", "Adds an EJB descriptor to the maps\n\n@param ejbDescriptor The EJB descriptor to add", "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Build the context name.\n\n@param objs the objects\n@return the global context name", "Return a long value which is the number of rows in the table.", "Starts asynchronous check. Result will be delivered to the listener on the main thread.\n\n@param context\n@param appId application id from the oculus dashboard\n@param listener listener to invoke when the result is available\n@throws IllegalStateException in case the platform sdk cannot be initialized\n@throws IllegalArgumentException if listener is null", "Convert an Object to a Date.", "Print currency.\n\n@param value currency value\n@return currency value" ]
private void clearDeckDetail(TrackMetadataUpdate update) { if (detailHotCache.remove(DeckReference.getDeckReference(update.player, 0)) != null) { deliverWaveformDetailUpdate(update.player, null); } }
[ "We have received an update that invalidates the waveform detail for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no waveform preview for the associated player" ]
[ "Used to get the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param output Storage for the value", "Marks inbox message as read for given messageId\n@param messageId String messageId\n@return boolean value depending on success of operation", "Unilaterally merge an update description into this update description.\n@param otherDescription the update description to merge into this\n@return this merged update description", "Returns a set of the distinct colours used in this image.\n\n@return the set of distinct Colors", "Use this API to update snmpmanager resources.", "common utility method for adding a statement to a record", "Read resource assignment baseline values.\n\n@param row result set row", "Insert a new value prior to the index location in the existing value array,\nincreasing the field length accordingly.\n@param index - where the new values in an SFVec2f object will be placed in the array list\n@param newValue - the new x, y value for the array list", "Update the installed identity using the modified state from the modification.\n\n@param name the identity name\n@param modification the modification\n@param state the installation state\n@return the installed identity" ]
public static String getJavaCommand(final Path javaHome) { final Path resolvedJavaHome = javaHome == null ? findJavaHome() : javaHome; final String exe; if (resolvedJavaHome == null) { exe = "java"; } else { exe = resolvedJavaHome.resolve("bin").resolve("java").toString(); } if (exe.contains(" ")) { return "\"" + exe + "\""; } if (WINDOWS) { return exe + ".exe"; } return exe; }
[ "Returns the Java command to use.\n\n@param javaHome the Java Home, if {@code null} an attempt to determine the command will be done\n\n@return the Java executable command" ]
[ "Sends the events to monitoring service client.\n\n@param events the events", "Calculates the bounds of the non-transparent parts of the given image.\n@param p the image\n@return the bounds of the non-transparent area", "Return the coding scheme to IOB1 coding, regardless of what was used\ninternally. This is useful for scoring against CoNLL test output.\n\n@param tokens List of tokens in some NER encoding", "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement the packet which reported the device’s disappearance", "Populate the constraint type and constraint date.\nNote that Merlin allows both start and end constraints simultaneously.\nAs we can't have both, we'll prefer the start constraint.\n\n@param row task data from database\n@param task Task instance", "Convert an operation for deployment overlays to be executed on local servers.\nSince this might be called in the case of redeployment of affected deployments, we need to take into account\nthe composite op resulting from such a transformation\n@see AffectedDeploymentOverlay#redeployLinksAndTransformOperationForDomain\n@param operation\n@param host\n@return", "Checks if the artifact is dependency of an dependent idl artifact\n@returns true if the artifact was a dependency of idl artifact", "Format a date that is parseable from JavaScript, according to ISO-8601.\n\n@param date the date to format to a JSON string\n@return a formatted date in the form of a string", "Creates a new deployment for the URL. The target server will require access to the URL.\n\n@param url the URL representing the content\n\n@return the deployment" ]
public String getMethodSignature() { if (method != null) { String methodSignature = method.toString(); return methodSignature.replaceFirst("public void ", ""); } return null; }
[ "Method signature without \"public void\" prefix\n\n@return The method signature in String format" ]
[ "Sets the node meta data but allows overwriting values.\n\n@param key - the meta data key\n@param value - the meta data value\n@return the old node meta data value for this key\n@throws GroovyBugError if key is null", "Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Finds the parent group of the given one and returns it\n\n@param group Group for which the parent is needed\n@return The parent group of the given one. If the given one is the first one, it returns the same group", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Get the bean if it exists in the contexts.\n\n@return An instance of the bean\n@throws ContextNotActiveException if the context is not active\n@see javax.enterprise.context.spi.Context#get(BaseBean, boolean)", "Get the URL for the user's profile.\n\n@param userId\nThe user ID\n@return The URL\n@throws FlickrException", "Return the profileId for a path\n\n@param path_id ID of path\n@return ID of profile\n@throws Exception exception", "Handle the given response, return the deserialized object when the response is successful.\n\n@param <T> Type\n@param response Response\n@param returnType Return type\n@throws ApiException If the response has a unsuccessful status code or\nfail to deserialize the response body\n@return Type", "Update the state of the picker. If it has an owner, the picker\nwill use that object to derive its position and orientation.\nThe \"active\" state of this controller is used to indicate touch.\nThe cursor position is updated after picking." ]
private CmsFavoriteEntry getEntry(Component row) { if (row instanceof CmsFavInfo) { return ((CmsFavInfo)row).getEntry(); } return null; }
[ "Gets the favorite entry for a given row.\n\n@param row the widget used to display the favorite\n@return the favorite entry for the widget" ]
[ "Use this API to fetch all the nsacl6 resources that are configured on netscaler.", "Find the the qualfied container port of the target service\nUses java annotations first or returns the container port.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved containerPort of '0' as a fallback.", "Update the Target Filter of the ImporterService.\nApply the induce modifications on the links of the ImporterService\n\n@param serviceReference", "Sets the value for the API's \"props\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "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.", "Get the permission information for the specified photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nThe photo id\n@return The Permissions object\n@throws FlickrException", "Has to be called when the scenario is finished in order to execute after methods.", "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", "Start component timer for current instance\n@param type - of component" ]
public static aaauser_aaagroup_binding[] get(nitro_service service, String username) throws Exception{ aaauser_aaagroup_binding obj = new aaauser_aaagroup_binding(); obj.set_username(username); aaauser_aaagroup_binding response[] = (aaauser_aaagroup_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaauser_aaagroup_binding resources of given name ." ]
[ "Check if information model entity referenced by archetype\nhas right name or type", "Use this API to fetch wisite_farmname_binding resources of given name .", "Reads numBytes bytes, and returns the corresponding string", "Returns the field definition with the specified name.\n\n@param name The name of the desired field\n@return The field definition or <code>null</code> if there is no such field", "Store the data of a print job in the registry.\n\n@param printJobStatus the print job status", "Returns PatternParser used to parse the conversion string. Subclasses may\noverride this to return a subclass of PatternParser which recognize\ncustom conversion characters.\n\n@since 0.9.0", "Attribute name and value are not escaped or modified in any way.\n\n@param name\n@param value\n@return self", "Ensures that the primary keys required by the given reference are present in the referenced class.\n\n@param modelDef The model\n@param refDef The reference\n@throws ConstraintException If there is a conflict between the primary keys", "Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name ." ]
private void populateDefaultData(FieldItem[] defaultData) { for (FieldItem item : defaultData) { m_map.put(item.getType(), item); } }
[ "This method takes an array of data and uses this to populate the\nfield map.\n\n@param defaultData field map default data" ]
[ "Validates operation model against the definition and its parameters\n\n@param operation model node of type {@link ModelType#OBJECT}, representing an operation request\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release", "Update max min.\n\n@param n the n\n@param c the c", "Get the first child element with the given name.\n\n@param element\nThe parent element\n@param name\nThe child element name\n@return The child element or null", "Explode the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Generates an organization regarding the parameters.\n\n@param name String\n@return Organization", "Try to build an default PBKey for convenience PB create method.\n\n@return PBKey or <code>null</code> if default key was not declared in\nmetadata", "Revisit message to set their item ref to a item definition\n@param def Definitions", "Throws an IllegalStateException when the given value is null.\n@return the value", "Helper method to add a parameter without having to create it explicitely. The created parameter should be persisted afterwards.\n\n@param key\nname of the parameter to add\n@param value\nvalue of the parameter to create\n@return the newly created parameter" ]
public static cmppolicy_stats get(nitro_service service, String name) throws Exception{ cmppolicy_stats obj = new cmppolicy_stats(); obj.set_name(name); cmppolicy_stats response = (cmppolicy_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of cmppolicy_stats resource of given name ." ]
[ "get the ClassTypeSignature corresponding to given parameterized type\n\n@param parameterizedType\n@return", "Returns all entries in no particular order.", "Retrieve the start slack.\n\n@return start slack", "Extract task data.", "Runs the given xpath and returns a boolean result.", "Runs the record linkage process.", "Checks if two parameterized types are exactly equal, under the variable\nreplacement described in the typeVarMap.", "Returns a resource description resolver that uses common descriptions for some attributes.\n\n@param keyPrefix the prefix to be appended to the {@link LoggingExtension#SUBSYSTEM_NAME}\n\n@return the resolver", "Get the element at the index as a string.\n\n@param i the index of the element to access" ]
public boolean addSsextension(String ssExt) { if (this.ssextensions == null) { this.ssextensions = new ArrayList<String>(); } return this.ssextensions.add(ssExt); }
[ "Add an additional SSExtension\n@param ssExt the ssextension to set" ]
[ "Use this API to update dbdbprofile.", "Are these two numbers effectively equal?\n\nThe same logic is applied for each of the 3 vector dimensions: see {@link #equal}\n@param v1\n@param v2", "Uncompresses the given textual content and writes it to the given file.\n\n@param file The file to write to\n@param compressedContent The content\n@throws IOException If an error occurred", "Returns a factory that vends DelimitRegExIterators that reads the contents of the\ngiven Reader, splits on the specified delimiter, applies op, then returns the result.", "Extracts value from map if given value is null.\n@param value current value\n@param props properties to extract value from\n@param key property name to extract\n@return initial value or value extracted from map", "Obtains the collection of server groups defined for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "Possibly coalesces the newest change event to match the user's original intent. For example,\nan unsynchronized insert and update is still an insert.\n\n@param lastUncommittedChangeEvent the last change event known about for a document.\n@param newestChangeEvent the newest change event known about for a document.\n@return the possibly coalesced change event.", "Get a project according to its full name.\n\n@param fullName The full name of the project.\n@return The project which answers the full name.", "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name." ]
public static base_responses delete(nitro_service client, ntpserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { ntpserver deleteresources[] = new ntpserver[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new ntpserver(); deleteresources[i].serverip = resources[i].serverip; deleteresources[i].servername = resources[i].servername; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete ntpserver resources." ]
[ "Enable clipping for the Widget. Widget content including its children will be clipped by a\nrectangular View Port. By default clipping is disabled.", "Given a String the method uses Regex to check if the String only contains punctuation characters\n\n@param s a String to check using regex\n@return true if the String is valid", "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param filterTerm The filter term to lookup users by (login for external, login or name for managed)\n@param userType The type of users we want to search with this request.\nValid values are 'managed' (enterprise users), 'external' or 'all'\n@param externalAppUserId the external app user id that has been set for an app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return An iterator over the selected users.", "Add a listener to be invoked when the checked button changes in this group.\n@param listener\n@param <T>\n@return", "Caches the given object using the given Identity as key\n\n@param oid The Identity key\n@param obj The object o cache", "Only call with monitor for 'this' held", "Adds tags to the If-Match header.\n\n@param tag the tag to add, may be null. This means the same as adding {@link Tag#ALL}\n@throws IllegalArgumentException if ALL is supplied more than once, or you add a null tag more than once.\n@return a new Conditionals object with the If-Match tag added.", "Adds an orthographic camera constructed from the designated\nperspective camera to describe the shadow projection.\nThe field of view and aspect ration of the perspective\ncamera are used to obtain the view volume of the\northographic camera. This type of camera is used\nfor shadows generated by direct lights at infinite distance.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@return Orthographic camera to use for shadow casting\n@see GVRDirectLight", "Executes the mojo." ]
public int clear() { int n = 0; for (GVRCursorController c : controllers) { c.stopDrag(); removeCursorController(c); ++n; } return n; }
[ "Remove all controllers but leave input manager running.\n@return number of controllers removed" ]
[ "Assign arguments to the statement.\n\n@return The statement passed in or null if it had to be closed on error.", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Create a transactional protocol client.\n\n@param channelAssociation the channel handler\n@return the transactional protocol client", "Gets a static resource from a plugin\n\n@param pluginName - Name of the plugin(defined in the plugin manifest)\n@param fileName - Filename to fetch\n@return byte array of the resource\n@throws Exception exception", "Creates the stats items.\n\n@param statsType\nthe stats type\n@return the sorted set\n@throws IOException\nSignals that an I/O exception has occurred.", "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given color.", "Return true only if the MethodCallExpression represents a method call for the specified method name\n@param methodCall - the AST MethodCallExpression\n@param methodNamePattern - the expected name of the method being called\n@param numArguments - The number of expected arguments\n@return true only if the method call name matches", "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started.", "Send a lifecycle announcement to all registered listeners.\n\n@param logger the logger to use, so the log entry shows as belonging to the proper subclass.\n@param starting will be {@code true} if the DeviceFinder is starting, {@code false} if it is stopping." ]
public Object getAttributeValue(String attributeName) { Attribute attribute = getAllAttributes().get(attributeName); if (attribute != null) { return attribute.getValue(); } return null; }
[ "Convenience method that returns the attribute value for the specified attribute name.\n\n@param attributeName the name of the attribute\n@return the value of the attribute or null if no such attribute exists\n@since 1.9.0" ]
[ "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Parse a comma-delimited list of method names into a List of strings.\nWhitespace is ignored.\n\n@param methods the comma delimited list of methods from the spring configuration\n\n@return List&lt;String&gt;", "Checks if we can see any players that are on a different network than the one we chose for the Virtual CDJ.\nIf so, we are not going to be able to communicate with them, and they should all be moved onto a single\nnetwork.\n\n@return the device announcements of any players which are on unreachable networks, or hopefully an empty list\n@throws IllegalStateException if we are not running", "Iterate through a set of bit field flags and set the value for each one\nin the supplied container.\n\n@param flags bit field flags\n@param container field container\n@param data source data", "Decorates a node with the affected operator, if any.\n\n@param context\n@param tree\n@param operations\n@return", "Reads the CSS and JavaScript files from the JAR file and writes them to\nthe output directory.\n@param outputDirectory Where to put the resources.\n@throws IOException If the resources can't be read or written.", "Gets the element at the given index.\n\n@param index the index\n@return the element\n\n@throws IndexOutOfBoundsException if the index is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>)", "Handles a key change.\n\n@param event the key change event.\n@param allLanguages <code>true</code> for changing the key for all languages, <code>false</code> if the key should be changed only for the current language.\n@return result, indicating if the key change was successful.", "Sets the Red, Green, and Blue color variables. This will automatically populate the Hue, Saturation and Brightness and Hexadecimal fields, too.\n\nThe RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue.\n@param red strength - valid range is 0-255\n@param green strength - valid range is 0-255\n@param blue strength - valid range is 0-255\n@throws java.lang.Exception Exception if the Red, Green or Blue variables are out of range." ]
private static boolean extractSimpleExtents(Variable var, Extents e, boolean row, int length) { int lower; int upper; if( var.getType() == VariableType.INTEGER_SEQUENCE ) { IntegerSequence sequence = ((VariableIntegerSequence)var).sequence; if( sequence.getType() == IntegerSequence.Type.FOR ) { IntegerSequence.For seqFor = (IntegerSequence.For)sequence; seqFor.initialize(length); if( seqFor.getStep() == 1 ) { lower = seqFor.getStart(); upper = seqFor.getEnd(); } else { return false; } } else { return false; } } else if( var.getType() == VariableType.SCALAR ) { lower = upper = ((VariableInteger)var).value; } else { throw new RuntimeException("How did a bad variable get put here?!?!"); } if( row ) { e.row0 = lower; e.row1 = upper; } else { e.col0 = lower; e.col1 = upper; } return true; }
[ "See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range or false if not" ]
[ "Create a new path\n\n@param pathName friendly name of path\n@param pathValue path value or regex\n@param requestType path request type. \"GET\", \"POST\", etc", "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", "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "Get the cached ETag for the given host and file\n@param host the host\n@param file the file\n@return the cached ETag or null if there is no ETag in the cache", "Gets the date time str concise.\n\n@param d\nthe d\n@return the date time str concise", "Set whether we should retrieve the waveform details in addition to the waveform previews.\n\n@param findDetails if {@code true}, both types of waveform will be retrieved, if {@code false} only previews\nwill be retrieved", "Creates a Bytes object by copying the data of the given byte array", "Check the given URI to see if it matches.\n\n@param matchInfo the matchInfo to validate.\n@return True if it matches.", "Send value to node.\n@param nodeId the node Id to send the value to.\n@param endpoint the endpoint to send the value to.\n@param value the value to send" ]
public static lbsipparameters get(nitro_service service) throws Exception{ lbsipparameters obj = new lbsipparameters(); lbsipparameters[] response = (lbsipparameters[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the lbsipparameters resources that are configured on netscaler." ]
[ "We will always try to gather as many results as possible and never throw an exception.\n\nTODO: Make MemberResponse hold an exception that we can populate if something bad happens so we always\nget to return something for a member in order to indicate a failure. Getting the result when there\nis an error should throw an exception.\n\n@param execSvc\n@param members\n@param callable\n@param maxWaitTime - a value of 0 indicates forever\n@param unit\n@return", "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", "append normal text\n\n@param text normal text\n@return SimplifySpanBuild", "Convert a color to an angle.\n\n@param color The RGB value of the color to \"find\" on the color wheel.\n\n@return The angle (in rad) the \"normalized\" color is displayed on the\ncolor wheel.", "combines all the lists in a collection to a single list", "Populates the project header.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Joins a collection in a string using a delimiter\n@param col Collection\n@param delim Delimiter\n@return String", "Create a Count-Query for ReportQueryByCriteria", "Write the domain controller data to a byte buffer.\n\n@param data the domain controller data\n@return the byte buffer\n@throws Exception" ]
public void setAppender(final Appender appender) { if (this.appender != null) { close(); } checkAccess(this); if (applyLayout && appender != null) { final Formatter formatter = getFormatter(); appender.setLayout(formatter == null ? null : new FormatterLayout(formatter)); } appenderUpdater.set(this, appender); }
[ "Set the Log4j appender.\n\n@param appender the log4j appender" ]
[ "Get a property of type java.util.Properties or return the default if\nno such property is defined\n@param props properties\n@param name the key\n@param defaultProperties default property if empty\n@return value from the property", "Add a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param newHash the new hash of the added content\n@return the builder", "private multi-value handlers and helpers", "Sets reference to the graph owning this node.\n\n@param ownerGraph the owning graph", "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance", "Associate a type with the given resource model.", "generate a select-Statement according to query\n\n@param query the Query\n@param cld the ClassDescriptor", "Sets the target hosts from json path.\n\n@param jsonPath\nthe json path\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", "Initializes an annotation class\n\n@param name The name of the annotation class\n@return The instance of the annotation. Returns a dummy if the class was\nnot found" ]
public void parseRawValue(String value) { int valueIndex = 0; int elementIndex = 0; m_elements.clear(); while (valueIndex < value.length() && elementIndex < m_elements.size()) { int elementLength = m_lengths.get(elementIndex).intValue(); if (elementIndex > 0) { m_elements.add(m_separators.get(elementIndex - 1)); } int endIndex = valueIndex + elementLength; if (endIndex > value.length()) { endIndex = value.length(); } String element = value.substring(valueIndex, endIndex); m_elements.add(element); valueIndex += elementLength; elementIndex++; } }
[ "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value" ]
[ "get the default profile\n\n@return representation of default profile\n@throws Exception exception", "Use this API to fetch policydataset_value_binding resources of given name .", "Specify the output format of the image.\n\n@see ImageFormat", "Add the list with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The list of all bundles to add.", "Retrieves state and metrics information for individual channel.\n\n@param name channel name\n@return channel information", "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", "Creates a new instance from the given configuration file.\n\n@throws IOException if failed to load the configuration from the specified file", "Recursively update parent task dates.\n\n@param parentTask parent task", "Called by spring when application context is being destroyed." ]
public static Set<Map<String, Object>> setify(ObjectMapper mapper, Object source) { return (Set<Map<String, Object>>) collectify(mapper, source, Set.class); }
[ "Convert an object to a set of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return set" ]
[ "Returns the end time of the event.\n@return the end time of the event.", "Returns the earlier of two dates, handling null values. A non-null Date\nis always considered to be earlier than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date earliest date", "returns true if a job was queued within a timeout", "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", "Get the authentication for a specific token.\n\n@param token token\n@return authentication if any", "Perform the given work with a Jedis connection from the given pool.\n\n@param pool the resource pool\n@param work the work to perform\n@param <V> the result type\n@return the result of the given work\n@throws Exception if something went wrong", "Configure the mapping between a database column and a field, including definition of\nan alias.\n\n@param container column to field map\n@param name column name\n@param type field type\n@param alias field alias", "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error", "Read JdbcConnectionDescriptors from this InputStream.\n\n@see #mergeConnectionRepository" ]
protected static final String formatUsingFormat(Long value, DateTimeFormat fmt) { if (value == null) { return ""; } else { // midnight GMT Date date = new Date(0); // offset by timezone and value date.setTime(UTCDateBox.timezoneOffsetMillis(date) + value.longValue()); // format it return fmt.format(date); } }
[ "Formats the value provided with the specified DateTimeFormat" ]
[ "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs", "a small static helper class to get the color from the colorHolder\n\n@param colorHolder\n@param ctx\n@return", "Responsible for executing file rolls as and when required, in addition to\ndelegating to the super class to perform the actual append operation.\nSynchronized for safety during enforced file roll.\n\n@see org.apache.log4j.WriterAppender#subAppend(org.apache.log4j.spi.LoggingEvent)", "Decode '%HH'.", "Returns an Object array of all FK field values of the specified object.\nIf the specified object is an unmaterialized Proxy, it will be materialized\nto read the FK values.\n\n@throws MetadataException if an error occours while accessing ForeingKey values on obj", "Calculates the text height for the indicator value and sets its x-coordinate.", "Executes the query and returns the factory found, if there is only one factory.\nIf multiple factories match the query, one is selected.\n\n@param query the factory query, not null.\n@return the factory found, or null.", "In-place scaling of a column in A\n\n@param alpha scale factor\n@param A matrix\n@param col which row in A", "Use this API to update sslparameter." ]
public ImmutableMap<String, String> getConfigurationTweak(String dbModuleName) { final DbInfo db = cluster.getNextDb(); return ImmutableMap.of("ness.db." + dbModuleName + ".uri", getJdbcUri(db), "ness.db." + dbModuleName + ".ds.user", db.user); }
[ "Return configuration tweaks in a format appropriate for ness-jdbc DatabaseModule." ]
[ "Shutdown task scheduler.", "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails.", "Write a project file in SDEF format to an output stream.\n\n@param projectFile ProjectFile instance\n@param out output stream", "Generates a download id for the request and adds the download request to the download request queue for the dispatchers pool to act on immediately.\n\n@param request\n@return downloadId", "Notifies that multiple header items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Initializes the Stitch SDK so that app clients can be created.\n\n@param context An Android context value.", "Add a misc file.\n\n@param name the file name\n@param path the relative path\n@param newHash the new hash of the added content\n@param isDirectory whether the file is a directory or not\n@return the builder", "Returns all categories that are direct children of the current main category.\n\n@return all categories that are direct children of the current main category.", "Collect the total times measured by all known named timers of the given\nname. This is useful to add up times that were collected across separate\nthreads.\n\n@param timerName\n@return timer" ]
private List<TimephasedCost> getTimephasedActualCostFixedAmount() { List<TimephasedCost> result = new LinkedList<TimephasedCost>(); double actualCost = getActualCost().doubleValue(); if (actualCost > 0) { AccrueType accrueAt = getResource().getAccrueAt(); if (accrueAt == AccrueType.START) { result.add(splitCostStart(getCalendar(), actualCost, getActualStart())); } else if (accrueAt == AccrueType.END) { result.add(splitCostEnd(getCalendar(), actualCost, getActualFinish())); } else { //for prorated, we have to deal with it differently; have to 'fill up' each //day with the standard amount before going to the next one double numWorkingDays = getCalendar().getWork(getStart(), getFinish(), TimeUnit.DAYS).getDuration(); double standardAmountPerDay = getCost().doubleValue() / numWorkingDays; result.addAll(splitCostProrated(getCalendar(), actualCost, standardAmountPerDay, getActualStart())); } } return result; }
[ "Generates timephased actual costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost" ]
[ "Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model.\nProxies\n@param obj\n@return", "Check if there is an attribute which tells us which concrete class is to be instantiated.", "This implementation checks whether a File can be opened,\nfalling back to whether an InputStream can be opened.\nThis will cover both directories and content resources.", "Retrieve the most recent storepoint.\n\n@param phoenixProject project data\n@return Storepoint instance", "exposed only for tests", "Convert a key-version-nodeSet information to string\n\n@param key The key\n@param versionMap mapping versions to set of PrefixNodes\n@param storeName store's name\n@param partitionId partition scanned\n@return a string that describe the information passed in", "Goes through all the RO Stores in the plan and swaps it\n\n@param swappedStoreNames Names of stores already swapped\n@param useSwappedStoreNames Swap only the previously swapped stores (\nHappens during error )", "Read exactly buffer.length bytes from the stream into the buffer\n\n@param stream The stream to read from\n@param buffer The buffer to read into", "Returns a set of the distinct colours used in this image.\n\n@return the set of distinct Colors" ]
public PreparedStatement getUpdateStatement(ClassDescriptor cds) throws PersistenceBrokerSQLException, PersistenceBrokerException { try { return cds.getStatementsForClass(m_conMan).getUpdateStmt(m_conMan.getConnection()); } catch (SQLException e) { throw new PersistenceBrokerSQLException("Could not build statement ask for", e); } catch (LookupException e) { throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e); } }
[ "return a prepared Update Statement fitting to the given ClassDescriptor" ]
[ "Use this API to update bridgetable resources.", "Sign in a connection to the registry by key.\n\nNote multiple connections can be attached to the same key\n\n@param key\nthe key\n@param connection\nthe websocket connection\n@see #register(String, WebSocketConnection)", "Set HTTP client\n\n@param httpClient\nAn instance of OkHttpClient\n@return Api Client", "Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Should only called on a column that is being set to null.\n\nReturns the most outer embeddable containing {@code column} that is entirely null.\nReturn null otherwise i.e. not embeddable.\n\nThe implementation lazily compute the embeddable state and caches it.\nThe idea behind the lazy computation is that only some columns will be set to null\nand only in some situations.\nThe idea behind caching is that an embeddable contains several columns, no need to recompute its state.", "Converts the string of given content to an input stream.\n\n@param content the string content.\n@param charset the charset for conversion.\n@return the stream (should be closed by invoker).", "Adds a row to the internal storage, indexed by primary key.\n\n@param uniqueID unique ID of the row\n@param map row data as a simpe map", "Retrieve the configuration of the named template.\n\n@param name the template name;", "Visit this and all child nodes.\n\n@param visitor The visitor to use." ]
Path resolveBaseDir(final String name, final String dirName) { final String currentDir = SecurityActions.getPropertyPrivileged(name); if (currentDir == null) { return jbossHomeDir.resolve(dirName); } return Paths.get(currentDir); }
[ "Resolves the base directory. If the system property is set that value will be used. Otherwise the path is\nresolved from the home directory.\n\n@param name the system property name\n@param dirName the directory name relative to the base directory\n\n@return the resolved base directory" ]
[ "Create a JsonParser for a given json node.\n@param jsonNode the json node\n@return the json parser\n@throws IOException", "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern", "Wrap an existing setter.", "Tries to load a site specific error page. If\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param errorCode the error code to display\n@return a flag, indicating if the custom error page could be loaded.", "Sends a server command continuation request '+' back to the client,\nrequesting more data to be sent.", "Give an embedded association, creates all the nodes and relationships required to represent it.\nIt assumes that the entity node containing the association already exists in the db.\n\n@param executionEngine the {@link GraphDatabaseService} to run the query\n@param associationKey the {@link AssociationKey} identifying the association\n@param embeddedKey the {@link EntityKey} identifying the embedded component\n@return the created {@link Relationship} that represents the association", "Add a column to be set to a value for UPDATE statements. This will generate something like 'columnName =\nexpression' where the expression is built by the caller.\n\n<p>\nThe expression should have any strings escaped using the {@link #escapeValue(String)} or\n{@link #escapeValue(StringBuilder, String)} methods and should have any column names escaped using the\n{@link #escapeColumnName(String)} or {@link #escapeColumnName(StringBuilder, String)} methods.\n</p>", "Handle a whole day change event.\n@param event the change event.", "Recursively descend through the hierarchy creating tasks.\n\n@param parent parent task\n@param parentName parent name\n@param rows rows to add as tasks to this parent" ]
private int countHours(Integer hours) { int value = hours.intValue(); int hoursPerDay = 0; int hour = 0; while (value > 0) { // Move forward until we find a working hour while (hour < 24) { if ((value & 0x1) != 0) { ++hoursPerDay; } value = value >> 1; ++hour; } } return hoursPerDay; }
[ "Count the number of working hours in a day, based in the\ninteger representation of the working hours.\n\n@param hours working hours\n@return number of hours" ]
[ "Returns the default privacy level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@throws FlickrException\n@return privacyLevel", "Get the metadata cache files that are currently configured to be automatically attached when matching media is\nmounted in a player on the network.\n\n@return the current auto-attache cache files, sorted by name", "Returns true if required properties for FluoClient are set", "Returns the yield value such that the sum of cash flows of the bond discounted with the yield curve\ncoincides with a given price.\n\n@param bondPrice The target price as double.\n@param model The model under which the product is valued.\n@return The optimal yield value.", "Checks if the given AnnotatedType is sensible, otherwise provides warnings.", "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException", "Executes the API action \"wbremoveclaims\" for the given parameters.\n\n@param statementIds\nthe statement ids to delete\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Calculate a shift value that can be used to create a power-of-two value between\nthe specified maximum and minimum values.\n@param minimumValue the minimum value\n@param maximumValue the maximum value\n@return the calculated shift (use {@code 1 << shift} to obtain a value)", "Helper method to convert seed bytes into the long value required by the\nsuper class." ]
public Set<? extends AbstractBean<?, ?>> resolveSpecializedBeans(Bean<?> specializingBean) { if (specializingBean instanceof AbstractClassBean<?>) { AbstractClassBean<?> abstractClassBean = (AbstractClassBean<?>) specializingBean; if (abstractClassBean.isSpecializing()) { return specializedBeans.getValue(specializingBean); } } if (specializingBean instanceof ProducerMethod<?, ?>) { ProducerMethod<?, ?> producerMethod = (ProducerMethod<?, ?>) specializingBean; if (producerMethod.isSpecializing()) { return specializedBeans.getValue(specializingBean); } } return Collections.emptySet(); }
[ "Returns a set of beans specialized by this bean. An empty set is returned if this bean does not specialize another beans." ]
[ "Passes the Socket's InputStream and OutputStream to the closure. The\nstreams will be closed after the closure returns, even if an exception\nis thrown.\n\n@param socket a Socket\n@param closure a Closure\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 1.5.2", "Returns the field with the specified value properly formatted. Multiline\nvalues are automatically indented, and dots are added on the empty lines.\n\n<pre>\nField-Name: value\n</pre>", "Use this API to update cachecontentgroup.", "Gets the Json Array representation of the given list of strings.\n@param keys List of strings\n@return the JsonArray represents the list of keys", "given the groupId, returns the groupName\n\n@param groupId ID of group\n@return name of group", "Adds labels to the item\n\n@param labels\nthe labels to add", "Evaluates the animation with the given index at the specified time.\n@param animIndex 0-based index of {@link GVRAnimator} to start\n@param timeInSec time to evaluate the animation at\n@see GVRAvatar#stop()\n@see #start(String)", "Gets whether this registration has an alternative wildcard registration", "Get the spatial object from the cache.\n\n@param key key to get object for\n@param type type of object which should be returned\n@return object for key or null if object does not exist or is a different type" ]
public static UriComponentsBuilder fromPath(String path) { UriComponentsBuilder builder = new UriComponentsBuilder(); builder.path(path); return builder; }
[ "Returns a builder that is initialized with the given path.\n@param path the path to initialize with\n@return the new {@code UriComponentsBuilder}" ]
[ "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "This method finds the start of the next working period.\n\n@param cal current Calendar instance", "Obtain the master partition for a given key\n\n@param key\n@return master partition id", "Get the content-type, including the optional \";base64\".", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "Get the list of store names from a list of store definitions\n\n@param list\n@param ignoreViews\n@return list of store names", "Invalidate the item in layout\n@param dataIndex data index", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Creates Accumulo connector given FluoConfiguration" ]
public @Nullable ChangeEvent<BsonDocument> getUnprocessedEventForDocumentId( final MongoNamespace namespace, final BsonValue documentId ) { this.instanceLock.readLock().lock(); final NamespaceChangeStreamListener streamer; try { streamer = nsStreamers.get(namespace); } finally { this.instanceLock.readLock().unlock(); } if (streamer == null) { return null; } return streamer.getUnprocessedEventForDocumentId(documentId); }
[ "If there is an unprocessed change event for a particular document ID, fetch it from the\nappropriate namespace change stream listener, and remove it. By reading the event here, we are\nassuming it will be processed by the consumer.\n\n@return the latest unprocessed change event for the given document ID and namespace, or null\nif none exists." ]
[ "Creates an element that represents a single positioned box containing the specified text string.\n@param data the text string to be contained in the created box.\n@return the resulting DOM element", "Join the Collection of Strings using the specified delimter and optionally quoting each\n\n@param s\nThe String collection\n@param delimiter\nthe delimiter String\n@param doQuote\nwhether or not to quote the Strings\n@return The joined String", "Print a task UID.\n\n@param value task UID\n@return task UID string", "Generate date patterns based on the project configuration.\n\n@param properties project properties\n@return date patterns", "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "returns an Array with an Objects NON-PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Additional objects to include with the requested group.\nNote that all the optional includes depend on \"assignments\" also being included.\n@param includes List of included objects to return\n@return this object to continue building options", "Was this beat sent by the current tempo master?\n\n@return {@code true} if the device that sent this beat is the master\n@throws IllegalStateException if the {@link VirtualCdj} is not running", "Retrieve a number of rows matching the supplied query.\n\n@param sql query statement\n@return result set\n@throws SQLException" ]
public JaCoCoReportReader readJacocoReport(IExecutionDataVisitor executionDataVisitor, ISessionInfoVisitor sessionInfoStore) { if (jacocoExecutionData == null) { return this; } JaCoCoExtensions.logger().info("Analysing {}", jacocoExecutionData); try (InputStream inputStream = new BufferedInputStream(new FileInputStream(jacocoExecutionData))) { if (useCurrentBinaryFormat) { ExecutionDataReader reader = new ExecutionDataReader(inputStream); reader.setSessionInfoVisitor(sessionInfoStore); reader.setExecutionDataVisitor(executionDataVisitor); reader.read(); } else { org.jacoco.previous.core.data.ExecutionDataReader reader = new org.jacoco.previous.core.data.ExecutionDataReader(inputStream); reader.setSessionInfoVisitor(sessionInfoStore); reader.setExecutionDataVisitor(executionDataVisitor); reader.read(); } } catch (IOException e) { throw new IllegalArgumentException(String.format("Unable to read %s", jacocoExecutionData.getAbsolutePath()), e); } return this; }
[ "Read JaCoCo report determining the format to be used.\n@param executionDataVisitor visitor to store execution data.\n@param sessionInfoStore visitor to store info session.\n@return true if binary format is the latest one.\n@throws IOException in case of error or binary format not supported." ]
[ "1-D Backward Discrete Cosine Transform.\n\n@param data Data.", "Use this API to fetch all the nsfeature resources that are configured on netscaler.", "Log a string.\n\n@param label label text\n@param data string data", "Get history for a specific database ID\n\n@param id ID of history entry\n@return History entry", "Creates metadata on this file in the specified template type.\n\n@param typeName the metadata template type name.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Calculates the smallest value between the three inputs.\n@param first value\n@param second value\n@param third value\n@return the smallest value between the three inputs", "Converts the given CharSequence into a List of Strings of one character.\n\n@param self a CharSequence\n@return a List of characters (a 1-character String)\n@see #toSet(String)\n@since 1.8.2", "Adds the List of Lists of CRFDatums to the data and labels arrays, treating\neach datum as if it were its own document. Adds context labels in addition\nto the target label for each datum, meaning that for a particular document,\nthe number of labels will be windowSize-1 greater than the number of\ndatums.\n\n@param processedData\na List of Lists of CRFDatums", "read the prefetchInLimit from Config based on OJB.properties" ]
public static <T> Method getMethod(Class<T> c, String name, Class<?>... argTypes) { try { return c.getMethod(name, argTypes); } catch(NoSuchMethodException e) { throw new IllegalArgumentException(e); } }
[ "Get the named method from the class\n\n@param c The class to get the method from\n@param name The method name\n@param argTypes The argument types\n@return The method" ]
[ "Enable or disable this component.\n@param flag true to enable, false to disable.\n@see #enable()\n@see #disable()\n@see #isEnabled()", "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove", "Get a collection of all of the user's groups.\n\n@return A Collection of Group objects\n@throws FlickrException", "Creates a non-binary text media type with the given subtype and a specified encoding", "Log column data.\n\n@param column column data", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Creates a date from the equivalent long value. This conversion\ntakes account of the time zone.\n\n@param date date expressed as a long integer\n@return new Date instance", "Check if the current node is part of routing request based on cluster.xml\nor throw an exception.\n\n@param key The key we are checking\n@param routingStrategy The routing strategy\n@param currentNode Current node", "Read correlation id.\n\n@param message the message\n@return correlation id from the message" ]
public static Object newInstance(String className, Class[] types, Object[] args) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException { return newInstance(getClass(className), types, args); }
[ "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" ]
[ "Adds an additional label to the constructed document.\n\n@param text\nthe text of the label\n@param languageCode\nthe language code of the label\n@return builder object to continue construction", "Start the operation by instantiating the first job instance in a separate Thread.\n\n@param arguments {@inheritDoc}", "Get the AuthInterface.\n\n@return The AuthInterface", "Given a string with method or package name, creates a Class Name with no\nspaces and first letter lower case\n\n@param String\n- The name of the scenario/story. It should be in lower case.\n@returns String - The class name", "Decomposes the provided matrix and stores the result in the same matrix.\n\n@param A Matrix that is to be decomposed. Modified.\n@return If it succeeded or not.", "Sets an attribute in a non-main section of the manifest.\n\n@param section the section's name\n@param name the attribute's name\n@param value the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Removes a tag from the task. Returns an empty data block.\n\n@param task The task to remove a tag from.\n@return Request object", "Write flow id to message.\n\n@param message the message\n@param flowId the flow id", "Use this API to fetch appfwpolicylabel_policybinding_binding resources of given name ." ]
private List<PermissionFactory> retrievePermissionSet(final OperationContext context, final ModelNode node) throws OperationFailedException { final List<PermissionFactory> permissions = new ArrayList<>(); if (node != null && node.isDefined()) { for (ModelNode permissionNode : node.asList()) { String permissionClass = CLASS.resolveModelAttribute(context, permissionNode).asString(); String permissionName = null; if (permissionNode.hasDefined(PERMISSION_NAME)) permissionName = NAME.resolveModelAttribute(context, permissionNode).asString(); String permissionActions = null; if (permissionNode.hasDefined(PERMISSION_ACTIONS)) permissionActions = ACTIONS.resolveModelAttribute(context, permissionNode).asString(); String moduleName = null; if(permissionNode.hasDefined(PERMISSION_MODULE)) { moduleName = MODULE.resolveModelAttribute(context, permissionNode).asString(); } ClassLoader cl = WildFlySecurityManager.getClassLoaderPrivileged(this.getClass()); if(moduleName != null) { try { cl = Module.getBootModuleLoader().loadModule(ModuleIdentifier.fromString(moduleName)).getClassLoader(); } catch (ModuleLoadException e) { throw new OperationFailedException(e); } } permissions.add(new LoadedPermissionFactory(cl, permissionClass, permissionName, permissionActions)); } } return permissions; }
[ "This method retrieves all security permissions contained within the specified node.\n\n@param context the {@link OperationContext} used to resolve the permission attributes.\n@param node the {@link ModelNode} that might contain security permissions metadata.\n@return a {@link List} containing the retrieved permissions. They are wrapped as {@link PermissionFactory} instances.\n@throws OperationFailedException if an error occurs while retrieving the security permissions." ]
[ "Gets a SerialMessage with the BASIC SET command\n@param the level to set.\n@return the serial message", "Look up the playback state that has reached furthest in the track, but give playing players priority over stopped players.\nThis is used to choose the scroll center when auto-scrolling is active.\n\n@return the playback state, if any, with the highest playing {@link PlaybackState#position} value", "Builds the resource.\n\n@return the cms resource", "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()}", "Returns the default privacy level for geographic information attached to the user's photos.\n\n@return privacy-level\n@throws FlickrException\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PRIVATE", "Finds all lazily-declared classes and methods and adds their definitions to the source.", "Transforms each character from this reader by passing it to the given\nclosure. The Closure should return each transformed character, which\nwill be passed to the Writer. The reader and writer will be both be\nclosed before this method returns.\n\n@param self a Reader object\n@param writer a Writer to receive the transformed characters\n@param closure a closure that performs the required transformation\n@throws IOException if an IOException occurs.\n@since 1.5.0", "This method writes predecessor data to a Planner file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param mpxjTask MPXJ task instance\n@param plannerTask planner task instance", "Writes the results of the processing to a file." ]
private void logColumn(FastTrackColumn column) { if (m_log != null) { m_log.println("TABLE: " + m_currentTable.getType()); m_log.println(column.toString()); m_log.flush(); } }
[ "Log column data.\n\n@param column column data" ]
[ "Get User application properties\nGet application properties of a user\n@param userId User Id (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Return all objects for the given class.", "Gets the SerialMessage as a byte array.\n@return the message", "Unlinks a set of dependents from this task.\n\n@param task The task to remove dependents from.\n@return Request object", "Set the end type as derived from other values.", "Print the class's constructors m", "Boyer Moore scan that proceeds backwards from the end of the file looking for endsig\n\n@param file the file being checked\n@param channel the channel\n@param context the scan context\n@return\n@throws IOException", "Sets the SyncFrequency on this collection.\n\n@param syncFrequency the SyncFrequency that contains all the desired options\n\n@return A Task that completes when the SyncFrequency has been updated", "Returns all ApplicationProjectModels." ]
public void editCoords(String photoId, String userId, Rectangle bounds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_COORDS); parameters.put("photo_id", photoId); parameters.put("user_id", userId); parameters.put("person_x", bounds.x); parameters.put("person_y", bounds.y); parameters.put("person_w", bounds.width); parameters.put("person_h", bounds.height); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } }
[ "Edit the co-ordinates that the user shows in\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrException" ]
[ "Call the onQueryExecuteTimeLimitExceeded hook if necessary\n@param sql sql statement that took too long\n@param queryStartTime time when query was started.", "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name.", "Generates a usable test specification for a given test definition\nUses the first bucket as the fallback value\n\n@param testDefinition a {@link TestDefinition}\n@return a {@link TestSpecification} which corresponding to given test definition.", "This method takes an array of data and uses this to populate the\nfield map.\n\n@param defaultData field map default data", "Use this API to add cmppolicylabel.", "Check if values in the column \"property\" are written to the bundle files.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle files.", "Sets the columns width by reading some report options like the\nprintableArea and useFullPageWidth.\ncolumns with fixedWidth property set in TRUE will not be modified", "Converts a class into a signature token.\n\n@param c class\n@return signature token text", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception" ]
public static final Integer parseInteger(String value) { return (value == null || value.length() == 0 ? null : Integer.valueOf(Integer.parseInt(value))); }
[ "Utility method to convert a String to an Integer, and\nhandles null values.\n\n@param value string representation of an integer\n@return int value" ]
[ "Retrieve the date range at the specified index.\nThe index is zero based, and this method will return\nnull if the requested date range does not exist.\n\n@param index range index\n@return date range instance", "Add a '&gt;=' clause so the column must be greater-than or equals-to the value.", "Return true if the class name is associated to an hidden class or matches a hide expression", "Return the number of entries in the cue list that represent hot cues.\n\n@return the number of cue list entries that are hot cues", "The amount of time to keep an idle client thread alive\n\n@param threadIdleTime", "Use this API to unset the properties of responderparam resource.\nProperties that need to be unset are specified in args array.", "Return a list of unique namespace and predicate pairs, optionally limited by predicate or namespace, in alphabetical order.\n\nThis method does not require authentication.\n\n@param namespace\noptional, can be null\n@param predicate\noptional, can be null\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList containing Pair-objects\n@throws FlickrException", "Return any feedback messages and errors that were generated - but\nsuppressed - during the interpolation process. Since unresolvable\nexpressions will be left in the source string as-is, this feedback is\noptional, and will only be useful for debugging interpolation problems.\n\n@return a {@link List} that may be interspersed with {@link String} and\n{@link Throwable} instances.", "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert." ]
public byte[] getMessageBuffer() { ByteArrayOutputStream resultByteBuffer = new ByteArrayOutputStream(); byte[] result; resultByteBuffer.write((byte)0x01); int messageLength = messagePayload.length + (this.messageClass == SerialMessageClass.SendData && this.messageType == SerialMessageType.Request ? 5 : 3); // calculate and set length resultByteBuffer.write((byte) messageLength); resultByteBuffer.write((byte) messageType.ordinal()); resultByteBuffer.write((byte) messageClass.getKey()); try { resultByteBuffer.write(messagePayload); } catch (IOException e) { } // callback ID and transmit options for a Send Data message. if (this.messageClass == SerialMessageClass.SendData && this.messageType == SerialMessageType.Request) { resultByteBuffer.write(transmitOptions); resultByteBuffer.write(callbackId); } resultByteBuffer.write((byte) 0x00); result = resultByteBuffer.toByteArray(); result[result.length - 1] = 0x01; result[result.length - 1] = calculateChecksum(result); logger.debug("Assembled message buffer = " + SerialMessage.bb2hex(result)); return result; }
[ "Gets the SerialMessage as a byte array.\n@return the message" ]
[ "Computes the householder vector used in QR decomposition.\n\nu = x / max(x)\nu(0) = u(0) + |u|\nu = u / u(0)\n\n@param x Input vector. Unmodified.\n@return The found householder reflector vector", "Use this API to disable nsacl6.", "Log table contents.\n\n@param label label text\n@param klass reader class name\n@param map table data", "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.", "Find a statement group by its property id, without checking for\nequality with the site IRI. More efficient implementation than\nthe default one.", "Returns a fine-grained word shape classifier, that equivalence classes\nlower and upper case and digits, and collapses sequences of the\nsame type, but keeps all punctuation. This adds an extra recognizer\nfor a greek letter embedded in the String, which is useful for bio.", "The MapReduce framework should operate sequentially, so thread safety shouldn't be a problem.", "Finds all lazily-declared classes and methods and adds their definitions to the source.", "Get the hours difference" ]
protected void processStart(Endpoint endpoint, EventTypeEnum eventType) { if (!sendLifecycleEvent) { return; } Event event = createEvent(endpoint, eventType); queue.add(event); }
[ "Process start.\n\n@param endpoint the endpoint\n@param eventType the event type" ]
[ "Creates a tag directly from the working copy.\n\n@param tagUrl The URL of the tag to create.\n@param commitMessage Commit message\n@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure", "Returns all the Artifacts of the module\n\n@param module Module\n@return List<Artifact>", "Returns a new intern odmg-transaction for the current database.", "Use this API to fetch systemsession resource of given name .", "Returns the context menu for the table item.\n@param itemId the table item.\n@return the context menu for the given item.", "Assign float value within allowed range of [0,infinity) to initializeOnly SFFloat field named spacing.\n@param newValue", "Use this API to fetch statistics of authenticationvserver_stats resource of given name .", "Add an order on the given column\n\n@param columnName the name of the column\n@param ascending whether the sorting is ascending or descending", "It will look for all the deployments under the deploymentsRootAddress with a runtimeName in the specified list of\nruntime names and then transform the operation so that every server having those deployments will redeploy the\naffected deployments.\n\n@see #transformOperation\n@param removeOperation\n@param context\n@param deploymentsRootAddress\n@param runtimeNames\n@throws OperationFailedException" ]
private List<ModelNode> describeAsNodeList(PathAddress rootAddress, final Resource resource, boolean isRuntimeChange) { final List<ModelNode> list = new ArrayList<ModelNode>(); describe(rootAddress, resource, list, isRuntimeChange); return list; }
[ "Describe the model as a list of resources with their address and model, which\nthe HC can directly apply to create the model. Although the format might appear\nsimilar as the operations generated at boot-time this description is only useful\nto create the resource tree and cannot be used to invoke any operation.\n\n@param rootAddress the address of the root resource being described\n@param resource the root resource\n@return the list of resources" ]
[ "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of the JSON result", "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.", "Use this API to fetch the statistics of all nsacl6_stats resources that are configured on netscaler.", "URL-Decodes a given string using UTF-8. No UnsupportedEncodingException to handle as it is dealt with in this\nmethod.", "Main file parser. Reads GIF content blocks. Stops after reading maxFrames", "Fills the week panel with checkboxes.", "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name", "Select item by it's position\n\n@param position int value of item position to select\n@param invokeListeners boolean value for invoking listeners", "Retrieve an instance of the TaskField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return TaskField instance" ]
private long doMemoryManagementAndPerFrameCallbacks() { long currentTime = GVRTime.getCurrentTime(); mFrameTime = (currentTime - mPreviousTimeNanos) / 1e9f; mPreviousTimeNanos = currentTime; /* * Without the sensor data, can't draw a scene properly. */ if (!(mSensoredScene == null || !mMainScene.equals(mSensoredScene))) { Runnable runnable; while ((runnable = mRunnables.poll()) != null) { try { runnable.run(); } catch (final Exception exc) { Log.e(TAG, "Runnable-on-GL %s threw %s", runnable, exc.toString()); exc.printStackTrace(); } } final List<GVRDrawFrameListener> frameListeners = mFrameListeners; for (GVRDrawFrameListener listener : frameListeners) { try { listener.onDrawFrame(mFrameTime); } catch (final Exception exc) { Log.e(TAG, "DrawFrameListener %s threw %s", listener, exc.toString()); exc.printStackTrace(); } } } return currentTime; }
[ "This is the code that needs to be executed before either eye is drawn.\n\n@return Current time, from {@link GVRTime#getCurrentTime()}" ]
[ "Resets all override settings for the clientUUID and disables it\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@throws Exception exception", "Allows testsuites to shorten the domain timeout adder", "Walks from the most outer embeddable to the most inner one\nlook for all columns contained in these embeddables\nand exclude the embeddables that have a non null column\nbecause of caching, the algorithm is only run once per column parameter", "Retrieve and validate vector clock value from the REST request.\n\"X_VOLD_VECTOR_CLOCK\" is the vector clock header.\n\n@return true if present, false if missing", "Get the names of the paths that would apply to the request\n\n@param requestUrl URL of the request\n@param requestType Type of the request: GET, POST, PUT, or DELETE as integer\n@return JSONArray of path names\n@throws Exception", "Set the week of month.\n@param weekOfMonthStr the week of month to set.", "Creates a new Product in Grapes database\n\n@param dbProduct DbProduct", "Get a sub-list of this list\n@param fromIndex index of the first element in the sub-list (inclusive)\n@param toIndex index of the last element in the sub-list (inclusive)\n@return the sub-list", "Set the refresh frequency of this scene object.\nUse NONE for improved performance when the text is set initially and never\nchanged.\n\n@param frequency\nThe refresh frequency of this TextViewSceneObject." ]
public static Class getClass(String name) throws ClassNotFoundException { try { return Class.forName(name); } catch (ClassNotFoundException ex) { throw new ClassNotFoundException(name); } }
[ "Retrieves the class object for the class with the given name.\n\n@param name The class name\n@return The class object\n@throws ClassNotFoundException If the class is not on the classpath (the exception message contains the class name)" ]
[ "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "get all consumers for the group\n\n@param zkClient the zookeeper client\n@param group the group name\n@return topic-&gt;(consumerIdStringA-0,consumerIdStringA-1...consumerIdStringB-0,consumerIdStringB-1)", "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder.", "Computes either the vector p-norm or the induced matrix p-norm depending on A\nbeing a vector or a matrix respectively.\n\n@param A Vector or matrix whose norm is to be computed.\n@param p The p value of the p-norm.\n@return The computed norm.", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Mark root of this task task group depends on the given task group's root.\nThis ensure this task group's root get picked for execution only after the completion\nof all tasks in the given group.\n\n@param dependencyTaskGroup the task group that this task group depends on", "Tells you if the date part of a datetime is in a certain time range.", "If the Authtoken was already created in a separate program but not saved to file.\n\n@param authToken\n@param tokenSecret\n@param username\n@return\n@throws IOException" ]
private void writeTaskPredecessors(Task record) { m_buffer.setLength(0); // // Write the task predecessor // if (!record.getSummary() && !record.getPredecessors().isEmpty()) { // I don't use summary tasks for SDEF m_buffer.append("PRED "); List<Relation> predecessors = record.getPredecessors(); for (Relation pred : predecessors) { m_buffer.append(SDEFmethods.rset(pred.getSourceTask().getUniqueID().toString(), 10) + " "); m_buffer.append(SDEFmethods.rset(pred.getTargetTask().getUniqueID().toString(), 10) + " "); String type = "C"; // default finish-to-start if (!pred.getType().toString().equals("FS")) { type = pred.getType().toString().substring(0, 1); } m_buffer.append(type + " "); Duration dd = pred.getLag(); double duration = dd.getDuration(); if (dd.getUnits() != TimeUnit.DAYS) { dd = Duration.convertUnits(duration, dd.getUnits(), TimeUnit.DAYS, m_minutesPerDay, m_minutesPerWeek, m_daysPerMonth); } Double days = Double.valueOf(dd.getDuration() + 0.5); // Add 0.5 so half day rounds up upon truncation Integer est = Integer.valueOf(days.intValue()); m_buffer.append(SDEFmethods.rset(est.toString(), 4) + " "); // task duration in days required by USACE } m_writer.println(m_buffer.toString()); } }
[ "Write each predecessor for a task.\n\n@param record Task instance" ]
[ "Isn't there a method for this in GeoTools?\n\n@param crs\nCRS string in the form of 'EPSG:<srid>'.\n@return SRID as integer.", "Use this API to add onlinkipv6prefix.", "Gets a JsonObject containing any pending changes to this object that can be sent back to the Box API.\n@return a JsonObject containing the pending changes.", "Returns true if the ASTNode is a declaration of a closure, either as a declaration\nor a field.\n@param expression\nthe target expression\n@return\nas described", "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", "This method lists all tasks defined in the file.\n\n@param file MPX file", "Delete inactive contents.", "returns a sorted array of properties", "Utility method to retrieve the previous working date finish 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 previous work finish" ]
public static void deleteRecursively(final Path path) throws IOException { DeploymentRepositoryLogger.ROOT_LOGGER.debugf("Deleting %s recursively", path); if (Files.exists(path)) { Files.walkFileTree(path, new FileVisitor<Path>() { @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { return FileVisitResult.CONTINUE; } @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { Files.delete(file); return FileVisitResult.CONTINUE; } @Override public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException { DeploymentRepositoryLogger.ROOT_LOGGER.cannotDeleteFile(exc, path); throw exc; } @Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { Files.delete(dir); return FileVisitResult.CONTINUE; } }); } }
[ "Delete a path recursively.\n@param path a Path pointing to a file or a directory that may not exists anymore.\n@throws IOException" ]
[ "Sets left and right padding for all cells in the table.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining", "Set a knot type.\n@param n the knot index\n@param type the type\n@see #getKnotType", "Sets the RegExp pattern for the TextBox\n@param pattern\n@param invalidCharactersInNameErrorMessage", "Create a directory at the given path if it does not exist yet.\n\n@param path\nthe path to the directory\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Exit the Application", "Refresh this context with the specified configuration locations.\n\n@param configLocations\nlist of configuration resources (see implementation for specifics)\n@throws GeomajasException\nindicates a problem with the new location files (see cause)", "Add server redirect to a profile\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@param groupId group ID\n@return ID of added ServerRedirect\n@throws Exception exception", "Scan all the class path and look for all classes that have the Format\nAnnotations.", "Returns values aggregated from all the delegates, without overriding\nvalues that already exist.\n\n@return The Map of aggregated values" ]
public static aaagroup_vpntrafficpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_vpntrafficpolicy_binding obj = new aaagroup_vpntrafficpolicy_binding(); obj.set_groupname(groupname); aaagroup_vpntrafficpolicy_binding response[] = (aaagroup_vpntrafficpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaagroup_vpntrafficpolicy_binding resources of given name ." ]
[ "When an alias for a field is added, index it here to allow lookup by alias and type.\n\n@param type field type\n@param alias field alias", "Checks whether given class descriptor has a primary key.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "END ODO CHANGES", "A convenience method for creating an immutable list\n\n@param self a List\n@return an immutable List\n@see java.util.Collections#unmodifiableList(java.util.List)\n@since 1.0", "Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance.", "Adds one statement to the list of statements to be kept, possibly merging\nit with other statements to be kept if possible. When two existing\nstatements are merged, one of them will be updated and the other will be\nmarked for deletion.\n\n@param statement\nstatement to add\n@param isNew\nif true, the statement should be marked for writing; if false,\nthe statement already exists in the current data and is only\nadded to remove duplicates and avoid unnecessary writes", "Return the current working directory\n\n@return the current working directory", "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise" ]
public List<String> getArtifactVersions(final String gavc) throws GrapesCommunicationException { final Client client = getClient(); final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactVersions(gavc)); final ClientResponse response = resource .accept(MediaType.APPLICATION_JSON).get(ClientResponse.class); client.destroy(); if(ClientResponse.Status.OK.getStatusCode() != response.getStatus()){ final String message = FAILED_TO_GET_CORPORATE_FILTERS; if(LOG.isErrorEnabled()) { LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, message, response.getStatus())); } throw new GrapesCommunicationException(message, response.getStatus()); } return response.getEntity(new GenericType<List<String>>(){}); }
[ "Returns the artifact available versions\n\n@param gavc String\n@return List<String>" ]
[ "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField instance", "Returns the path in the RFS where the Solr spellcheck files reside.\n@return String representation of Solrs spellcheck RFS path.", "Retrieves from all the Jenkins agents all the docker images, which have been registered for a specific build-info ID\nOnly images for which manifests have been captured are returned.\n\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "Tries to close off all the unused assigned connections back to the pool. Assumes that\nthe strategy mode has already been flipped prior to calling this routine.\nCalled whenever our no of connection requests > no of threads.", "Set the individual dates.\n@param dates the dates to set.", "Use this API to update cacheselector.", "Guess whether given file is binary. Just checks for anything under 0x09.", "Starts recursive delete on all delete objects object graph", "Create a new path address by appending more elements to the end of this address.\n\n@param additionalElements the elements to append\n@return the new path address" ]
public AsciiTable setPaddingBottomChar(Character paddingBottomChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingBottomChar(paddingBottomChar); } } return this; }
[ "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining" ]
[ "Returns the specified element, or null.", "Saves the favorites.\n\n@param favorites the list of favorites to save\n@throws CmsException if something goes wrong", "Get the URI for the given property in the given context.\n\n@param propertyIdValue\nthe property id for which to create a URI\n@param propertyContext\nthe context for which the URI will be needed\n@return the URI", "Retrieves the timephased breakdown of the planned overtime work for this\nresource assignment.\n\n@return timephased planned work", "Obtains a local date in Accounting calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Accounting era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code AccountingEra}", "Sets the underlying connect timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#connectTimeout(long, TimeUnit)", "Initializes the editor states for the different modes, depending on the type of the opened file.", "performs a SQL SELECT statement against RDBMS.\n@param sql the query string.\n@param cld ClassDescriptor providing meta-information.", "Disconnects from the serial interface and stops\nsend and receive threads." ]
public static InternetPrintWriter createForEncoding(OutputStream outputStream, boolean autoFlush, Charset charset) { return new InternetPrintWriter(new OutputStreamWriter(outputStream, charset), autoFlush); }
[ "Creates a new InternetPrintWriter for given charset encoding.\n\n@param outputStream the wrapped output stream.\n@param charset the charset.\n@return a new InternetPrintWriter." ]
[ "Adds the absolute path to command.\n\n@param command the command to add the arguments to.\n@param typeName the type of directory.\n@param propertyName the name of the property.\n@param properties the properties where the path may already be defined.\n@param directoryGrouping the directory group type.\n@param typeDir the domain level directory for the given directory type; to be used for by-type grouping\n@param serverDir the root directory for the server, to be used for 'by-server' grouping\n@return the absolute path that was added.", "Use this API to fetch transformpolicy resource of given name .", "Resets the helper's state.\n\n@return this {@link Searcher} for chaining.", "Returns the next object in the table.\n\n@throws IllegalStateException\nIf there was a problem extracting the object from SQL.", "Filter for public tweets on these languages.\n\n@param languages\nValid BCP 47 (http://tools.ietf.org/html/bcp47) language identifiers,\nand may represent any of the languages listed on Twitter's advanced search page\n(https://twitter.com/search-advanced), or \"und\" if no language could be detected.\nThese strings should NOT be url-encoded.\n@return this", "Encodes the given URI path with the given encoding.\n@param path the path to be encoded\n@param encoding the character encoding to encode to\n@return the encoded path\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Used to NOT the argument clause specified.", "Closes the Netty Channel and releases all resources", "Rethrows OperationCanceledErrors and wraps platform specific OperationCanceledExceptions. Does nothing for any other type of Throwable." ]
public RendererBuilder<T> withPrototype(Renderer<? extends T> renderer) { if (renderer == null) { throw new NeedsPrototypesException( "RendererBuilder can't use a null Renderer<T> instance as prototype"); } this.prototypes.add(renderer); return this; }
[ "Add a Renderer instance as prototype.\n\n@param renderer to use as prototype.\n@return the current RendererBuilder instance." ]
[ "Registers the resource to the parent deployment resource. The model returned is that of the resource parameter.\n\n@param subsystemName the subsystem name\n@param resource the resource to be used for the subsystem on the deployment\n\n@return the model\n\n@throws java.lang.IllegalStateException if the subsystem resource already exists", "Returns the designer version from the manifest.\n@param context\n@return version", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "This method processes any extended attributes associated with a\nresource assignment.\n\n@param xml MSPDI resource assignment instance\n@param mpx MPX task instance", "Get the items for the key.\n\n@param key\n@return the items for the given key", "Unregister the mgmt channel.\n\n@param old the proxy controller to unregister\n@param shuttingDown whether the server inventory is shutting down\n@return whether the registration can be removed from the domain-controller", "Convert a request type string to value\n\n@param requestType String value of request type GET/POST/PUT/DELETE\n@return Matching REQUEST_TYPE. Defaults to ALL", "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", "Remove the trailing line end from an RTF block.\n\n@param text source text\n@param formalRTF true if this is a real RTF block\n@return text with line end stripped" ]
protected AbsoluteURI getGeneratedLocation(PersistedTrace trace) { AbsoluteURI path = trace.getPath(); String fileName = traceFileNameProvider.getJavaFromTrace(path.getURI().toString()); return new AbsoluteURI(fileName); }
[ "Compute the location of the generated file from the given trace file." ]
[ "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "Implements the AAD Algorithm\n@return HashMap where the key is the internal index of the random variable with respect to which the partial derivative was computed. This key then gives access to the actual derivative.", "Creates a sorted list that contains the items of the given iterable. The resulting list is in ascending order,\naccording to the natural ordering of the elements in the iterable.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List)\n@see #sort(Iterable, Comparator)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List)", "Given a directory, determine if it contains a multi-file database whose format\nwe can process.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered.\n\n@param timeout number of milliseconds after which the callback should be called if it hasn't already been", "Use this API to fetch nd6ravariables resources of given names .", "Checks all data sets in IIM records 1, 2 and 3 for constraint violations.\n\n@return list of constraint violations, empty set if IIM file is valid", "Returns the JSON String representation of the payload\naccording to Apple APNS specification\n\n@return the String representation as expected by Apple", "Append the WHERE part of the statement to the StringBuilder." ]
public void setDefault() { try { TelephonyManager telephonyManager = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); String phone = telephonyManager.getLine1Number(); if (phone != null && !phone.isEmpty()) { this.setNumber(phone); } else { String iso = telephonyManager.getNetworkCountryIso(); setEmptyDefault(iso); } } catch (SecurityException e) { setEmptyDefault(); } }
[ "Set default value\nWill try to retrieve phone number from device" ]
[ "Extract child task data.\n\n@param task MPXJ task\n@param row Synchro task data", "Turn map into string\n\n@param propMap Map to be converted\n@return", "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids", "Use this API to add dnsview resources.", "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", "Submit a command to the server.\n\n@param command The CLI command\n@return The DMR response as a ModelNode\n@throws CommandFormatException\n@throws IOException", "Common mechanism to convert Synchro commentary recorss into notes.\n\n@param rows commentary table rows\n@return note text", "Returns an iterable containing the items in this folder and specifies which child fields to retrieve from the\nAPI.\n\n@param fields the fields to retrieve.\n@return an iterable containing the items in this folder.", "Sinc function.\n\n@param x Value.\n@return Sinc of the value." ]
private boolean removeRelation(List<Relation> relationList, Task targetTask, RelationType type, Duration lag) { boolean matchFound = false; for (Relation relation : relationList) { if (relation.getTargetTask() == targetTask) { if (relation.getType() == type && relation.getLag().compareTo(lag) == 0) { matchFound = relationList.remove(relation); break; } } } return matchFound; }
[ "Internal method used to locate an remove an item from a list Relations.\n\n@param relationList list of Relation instances\n@param targetTask target relationship task\n@param type target relationship type\n@param lag target relationship lag\n@return true if a relationship was removed" ]
[ "Mbeans for FETCH_KEYS", "Gets the Symmetric Kullback-Leibler distance.\nThis metric is valid only for real and positive P and Q.\n\n@param p P vector.\n@param q Q vector.\n@return The Symmetric Kullback Leibler distance between p and q.", "Use this API to add sslaction resources.", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "Load the InstalledIdentity configuration based on the module.path\n\n@param installedImage the installed image\n@param productConfig the product config\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the available layers\n@throws IOException", "Use this API to fetch vpath resource of given name .", "1.5 and on, 2.0 and on, 3.0 and on.", "return a prepared Insert Statement fitting for the given ClassDescriptor" ]
public static sslcertkey[] get(nitro_service service, String certkey[]) throws Exception{ if (certkey !=null && certkey.length>0) { sslcertkey response[] = new sslcertkey[certkey.length]; sslcertkey obj[] = new sslcertkey[certkey.length]; for (int i=0;i<certkey.length;i++) { obj[i] = new sslcertkey(); obj[i].set_certkey(certkey[i]); response[i] = (sslcertkey) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch sslcertkey resources of given names ." ]
[ "Convert the Phoenix representation of a duration into a Duration instance.\n\n@param value Phoenix duration\n@return Duration instance", "Reads an HTML snippet with the given name.\n\n@return the HTML data", "Computes the ratio of the smallest value to the largest. Does not assume\nthe array is sorted first\n@param sv array\n@return smallest / largest", "Constructs a new ClientBuilder for building a CloudantClient instance to connect to the\nCloudant server with the specified account.\n\n@param account the Cloudant account name to connect to e.g. \"example\" is the account name\nfor the \"example.cloudant.com\" endpoint\n@return a new ClientBuilder for the account\n@throws IllegalArgumentException if the specified account name forms an invalid endpoint URL", "Called when remote end send a message to this connection\n@param receivedMessage the message received\n@return this context", "Sets the value if the date only should be shown.\n@param dateOnly if the date only should be shown", "Returns a resource wrapper created from the input.\n\nThe wrapped result of {@link #convertRawResource(CmsObject, Object)} is returned.\n\n@param cms the current OpenCms user context\n@param input the input to create a resource from\n\n@return a resource wrapper created from the given Object\n\n@throws CmsException in case of errors accessing the OpenCms VFS for reading the resource", "Returns the primarykey fields.\n\n@return The field descriptors of the primarykey fields", "Writes all data that was collected about classes to a json file." ]
private void readRecurringData(ProjectCalendarException bce, Project.Calendars.Calendar.Exceptions.Exception exception) { RecurrenceType rt = getRecurrenceType(NumberHelper.getInt(exception.getType())); if (rt != null) { RecurringData rd = new RecurringData(); rd.setStartDate(bce.getFromDate()); rd.setFinishDate(bce.getToDate()); rd.setRecurrenceType(rt); rd.setRelative(getRelative(NumberHelper.getInt(exception.getType()))); rd.setOccurrences(NumberHelper.getInteger(exception.getOccurrences())); switch (rd.getRecurrenceType()) { case DAILY: { rd.setFrequency(getFrequency(exception)); break; } case WEEKLY: { rd.setWeeklyDaysFromBitmap(NumberHelper.getInteger(exception.getDaysOfWeek()), DAY_MASKS); rd.setFrequency(getFrequency(exception)); break; } case MONTHLY: { if (rd.getRelative()) { rd.setDayOfWeek(Day.getInstance(NumberHelper.getInt(exception.getMonthItem()) - 2)); rd.setDayNumber(Integer.valueOf(NumberHelper.getInt(exception.getMonthPosition()) + 1)); } else { rd.setDayNumber(NumberHelper.getInteger(exception.getMonthDay())); } rd.setFrequency(getFrequency(exception)); break; } case YEARLY: { if (rd.getRelative()) { rd.setDayOfWeek(Day.getInstance(NumberHelper.getInt(exception.getMonthItem()) - 2)); rd.setDayNumber(Integer.valueOf(NumberHelper.getInt(exception.getMonthPosition()) + 1)); } else { rd.setDayNumber(NumberHelper.getInteger(exception.getMonthDay())); } rd.setMonthNumber(Integer.valueOf(NumberHelper.getInt(exception.getMonth()) + 1)); break; } } if (rd.getRecurrenceType() != RecurrenceType.DAILY || rd.getDates().length > 1) { bce.setRecurring(rd); } } }
[ "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception" ]
[ "Merges two lists of references, eliminating duplicates in the process.\n\n@param references1\n@param references2\n@return merged list", "Converts a DTO attribute into a generic attribute object.\n\n@param attribute\nThe DTO attribute.\n@return The server side attribute representation. As we don't know at this point what kind of object the\nattribute is (that's a problem for the <code>FeatureModel</code>), we return an <code>Object</code>.", "Use this API to fetch dnsview_binding resource of given name .", "File URLs whose protocol are in these list will be processed as jars\ncontaining classes\n\n@param fileProtocols\nComma separated list of file protocols that will be considered\nas jar files and scanned", "Returns all the URL that should be inside the classpath. This includes the jar itself if any.\n\n@throws JqmPayloadException", "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\nelements are the second ones. For example, if the list of\nvalue-pair is [\"cluster.xml=file1\", \"stores.xml=file2\"], and the\npair delimiter is '=', we will then have the list of values in\nreturn: [\"cluster.xml\", \"file1\", \"stores.xml\", \"file2\"].", "Use this API to fetch appfwprofile_safeobject_binding resources of given name .", "Checks if there's exactly one option that exists among all opts.\n\n@param options OptionSet to checked\n@param opts List of options to be checked\n@throws VoldemortException", "Checks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already checked; {@code false} otherwise." ]
public static void divideElementsCol(final int blockLength , final DSubmatrixD1 Y , final int col , final double val ) { final int width = Math.min(blockLength,Y.col1-Y.col0); final double dataY[] = Y.original.data; for( int i = Y.row0; i < Y.row1; i += blockLength ) { int height = Math.min( blockLength , Y.row1 - i ); int index = i*Y.original.numCols + height*Y.col0 + col; if( i == Y.row0 ) { index += width*(col+1); for( int k = col+1; k < height; k++ , index += width ) { dataY[index] /= val; } } else { int endIndex = index + width*height; //for( int k = 0; k < height; k++ for( ; index != endIndex; index += width ) { dataY[index] /= val; } } } }
[ "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one." ]
[ "Use this API to delete appfwjsoncontenttype resources of given names.", "Obtain the class of a given className\n\n@param className\n@return\n@throws Exception", "Set hint number for country", "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth", "Ask the specified player for the album art in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any", "Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.\nGets the capabilities for a specific endpoint.\n@param the number of the endpoint to get the\n@return the serial message.", "Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content.", "Remove the S3 file that contains the domain controller data.\n\n@param directoryName the name of the directory that contains the S3 file", "Splits the given string." ]
private Charset getCharset() { Charset result = m_charset; if (result == null) { // We default to CP1252 as this seems to be the most common encoding result = m_encoding == null ? CharsetHelper.CP1252 : Charset.forName(m_encoding); } return result; }
[ "Retrieve the Charset used to read the file.\n\n@return Charset instance" ]
[ "Reads a duration value. This method relies on the fact that\nthe units of the duration have been specified elsewhere.\n\n@param value Duration value\n@param type type of units of the duration\n@return Duration instance", "Computes the householder vector used in QR decomposition.\n\nu = x / max(x)\nu(0) = u(0) + |u|\nu = u / u(0)\n\n@param x Input vector. Unmodified.\n@return The found householder reflector vector", "Remove the set of partitions from the node provided\n\n@param node The node from which we're removing the partitions\n@param donatedPartitions The list of partitions to remove\n@return The new node without the partitions", "Use this API to update nsconfig.", "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", "Notifies that a content item is inserted.\n\n@param position the position of the content item.", "Add a source and destination.\n\n@param source Source path to be routed. Routed path can have named wild-card pattern with braces \"{}\".\n@param destination Destination of the path.", "Creates a new indirection handler instance.\n\n@param brokerKey The associated {@link PBKey}.\n@param id The subject's ids\n@return The new instance", "Get random stub matching this user type\n@param userType User type\n@return Random stub" ]
public @Nullable String build() { StringBuilder queryString = new StringBuilder(); for (NameValuePair param : params) { if (queryString.length() > 0) { queryString.append(PARAM_SEPARATOR); } queryString.append(Escape.urlEncode(param.getName())); queryString.append(VALUE_SEPARATOR); queryString.append(Escape.urlEncode(param.getValue())); } if (queryString.length() > 0) { return queryString.toString(); } else { return null; } }
[ "Build query string.\n@return Query string or null if query string contains no parameters at all." ]
[ "Attach all project models within the application to the index. This will make it easy to navigate from the\nprojectModel to the application index.", "Read the values from the output object and write them to the values object.\n\n@param output the output object from a processor\n@param processor the processor the output if from\n@param values the object for sharing values between processors", "Check the model for expression values.\n\n@param model the model\n@return the attribute containing an expression", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "Adds all direct subtypes to the given list.\n\n@param type The type for which to determine the direct subtypes\n@param subTypes The list to receive the subtypes", "Create an IPv6 mixed address using the given ipv6 segments and using this address for the embedded IPv4 segments\n\n@param segs\n@return", "Append environment variables and system properties from othre PipelineEvn object", "Converts an object to an object, with squiggly filters applied.\n\n@param mapper the object mapper\n@param source the source to convert\n@return target instance\n@see SquigglyUtils#objectify(ObjectMapper, Object, Class)", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag" ]
public ProjectCalendar addDefaultDerivedCalendar() { ProjectCalendar calendar = add(); calendar.setWorkingDay(Day.SUNDAY, DayType.DEFAULT); calendar.setWorkingDay(Day.MONDAY, DayType.DEFAULT); calendar.setWorkingDay(Day.TUESDAY, DayType.DEFAULT); calendar.setWorkingDay(Day.WEDNESDAY, DayType.DEFAULT); calendar.setWorkingDay(Day.THURSDAY, DayType.DEFAULT); calendar.setWorkingDay(Day.FRIDAY, DayType.DEFAULT); calendar.setWorkingDay(Day.SATURDAY, DayType.DEFAULT); return (calendar); }
[ "This is a convenience method to add a default derived\ncalendar to the project.\n\n@return new ProjectCalendar instance" ]
[ "Triggers a new search with the given text.\n\n@param query the text to search for.", "End a \"track;\" that is, return to logging at one level shallower.\n@param title A title that should match the beginning of this track.", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "Do synchronization of the given J2EE ODMG Transaction", "Resize the image passing the new height and width\n\n@param height\n@param width\n@return", "set the specified object at index\n\n@param object The object to add at the end of the array.", "Gives the \"roots\" of a list of folders, i.e. the list of folders which are not descendants of any other folders in the original list\n@param folders the original list of folders\n@return the root folders of the list", "Notification that a connection was closed.\n\n@param closed the closed connection", "This method writes resource data to a Planner file." ]
public static String paramMapToString(final Map<String, String[]> parameters) { final StringBuffer result = new StringBuffer(); for (final String key : parameters.keySet()) { String[] values = parameters.get(key); if (null == values) { result.append(key).append('&'); } else { for (final String value : parameters.get(key)) { result.append(key).append('=').append(CmsEncoder.encode(value)).append('&'); } } } // remove last '&' if (result.length() > 0) { result.setLength(result.length() - 1); } return result.toString(); }
[ "Converts a parameter map to the parameter string.\n@param parameters the parameter map.\n@return the parameter string." ]
[ "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Read custom property definitions for resources.\n\n@param gpResources GanttProject resources", "Send the message using the JavaMail session defined in the message\n\n@param mimeMessage Message to send", "Gets id of a property and creates the new one if necessary.\n\n@param txn transaction\n@param propertyName name of the property.\n@param allowCreate if set to true and if there is no property named as propertyName,\ncreate the new id for the propertyName.\n@return < 0 if there is no such property and create=false, else id of the property", "Count the statements and property uses of an item or property document.\n\n@param usageStatistics\nstatistics object to store counters in\n@param statementDocument\ndocument to count the statements of", "Unregister the mbean with the given name, if there is one registered\n\n@param name The mbean name to unregister\n@see #registerMBean(Object, String)", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Populate the model with the object's properties.\n\n@param object object whose properties we're displaying\n@param excludedMethods method names to exclude", "Sends the events to monitoring service client.\n\n@param events the events" ]
public SerialMessage getMultiInstanceGetMessage(CommandClass commandClass) { logger.debug("Creating new message for application command MULTI_INSTANCE_GET for node {} and command class {}", this.getNode().getNodeId(), commandClass.getLabel()); SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageClass.SendData, SerialMessageType.Request, SerialMessageClass.ApplicationCommandHandler, SerialMessagePriority.Get); byte[] newPayload = { (byte) this.getNode().getNodeId(), 3, (byte) getCommandClass().getKey(), (byte) MULTI_INSTANCE_GET, (byte) commandClass.getKey() }; result.setMessagePayload(newPayload); return result; }
[ "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message." ]
[ "Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered.\n\n@param timeout number of milliseconds after which the callback should be called if it hasn't already been", "On host controller reload, remove a not running server registered in the process controller declared as down.", "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed.", "Returns the JRDesignGroup for the DJGroup passed\n@param jd\n@param layoutManager\n@param group\n@return", "Adds columns for the specified properties.\n@param _properties the array of <code>PropertyDescriptor</code>s to be added.\n@throws ColumnBuilderException if an error occurs.\n@throws ClassNotFoundException if an error occurs.", "Checks the constraints on this class.\n\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Open the log file for writing.", "Destroys the current session", "Set the name of the schema containing the schedule tables.\n\n@param schema schema name." ]
public static CharSequence getAt(CharSequence text, Range range) { RangeInfo info = subListBorders(text.length(), range); CharSequence sequence = text.subSequence(info.from, info.to); return info.reverse ? reverse(sequence) : sequence; }
[ "Support the range subscript operator for CharSequence\n\n@param text a CharSequence\n@param range a Range\n@return the subsequence CharSequence\n@since 1.0" ]
[ "Redirect standard streams so that the output can be passed to listeners.", "Convert given value to given target\n\n@param fromValue\nthe value to convert\n@param toType\ntarget target\n@param <T>\ntarget of the result\n@return the value converted to given target\n@throws TypeCastException\nif conversion was not possible", "Return list of all files in the directory.\n\n@param directory target directory on file system\n@return list of files in the directory or empty list if directory is empty.", "Mark root of this task task group depends on the given TaskItem.\nThis ensure this task group's root get picked for execution only after the completion\nof invocation of provided TaskItem.\n\n@param dependencyTaskItem the task item that this task group depends on\n@return the key of the dependency", "Count the number of working hours in a day, based in the\ninteger representation of the working hours.\n\n@param hours working hours\n@return number of hours", "Updates a path table value for column columnName\n\n@param columnName name of the column to update\n@param newData new content to set\n@param path_id ID of the path to update", "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "Checks that arguments and parameter types match.\n@param params method parameters\n@param args type arguments\n@return -1 if arguments do not match, 0 if arguments are of the exact type and >0 when one or more argument is\nnot of the exact type but still match", "Specify the class represented by this `ClassNode` implements\nan interface specified by the given name\n\n@param name the name of the interface class\n@return this `ClassNode` instance" ]
public static void deleteSilentlyRecursively(final Path path) { if (path != null) { try { deleteRecursively(path); } catch (IOException ioex) { DeploymentRepositoryLogger.ROOT_LOGGER.cannotDeleteFile(ioex, path); } } }
[ "Delete a path recursively, not throwing Exception if it fails or if the path is null.\n@param path a Path pointing to a file or a directory that may not exists anymore." ]
[ "Remove pairs with the given keys from the map.\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param keysToRemove the keys of the pairs to remove.\n@since 2.15", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "Get a property as a boolean or default value.\n\n@param key the property name\n@param defaultValue the default", "Renders the document to the specified output stream.", "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object.", "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Cosine interpolation.\n\n@param x1 X1 Value.\n@param x2 X2 Value.\n@param a Value.\n@return Value.", "This method displays the resource assignments for each task. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a task-by-task basis.\n\n@param file MPX file" ]