query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public static aaagroup_aaauser_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_aaauser_binding obj = new aaagroup_aaauser_binding(); obj.set_groupname(groupname); aaagroup_aaauser_binding response[] = (aaagroup_aaauser_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaagroup_aaauser_binding resources of given name ." ]
[ "return a generic Statement for the given ClassDescriptor", "Handles Multi Instance Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\ninstance.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Process a text-based PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance", "Adds an additional site link to the constructed document.\n\n@param title\nthe title of the linked page\n@param siteKey\nidentifier of the site, e.g., \"enwiki\"\n@param badges\none or more badges", "Extracts the words from a string. Words are seperated by a space character.\n\n@param line The line that is being parsed.\n@return A list of words contained on the line.", "Gets an array of of all registered ConstantMetaClassListener instances.", "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", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Return the area polygon as the only feature in the feature collection.\n\n@param mapAttributes the attributes that this aoi is part of." ]
public String calculateCacheKey(String sql, int autoGeneratedKeys) { StringBuilder tmp = new StringBuilder(sql.length()+4); tmp.append(sql); tmp.append(autoGeneratedKeys); return tmp.toString(); }
[ "Alternate version of autoGeneratedKeys.\n@param sql\n@param autoGeneratedKeys\n@return cache key to use." ]
[ "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.", "This is an assertion method that can be used by a thread to confirm that\nthe thread isn't already holding lock for an object, before acquiring a\nlock\n\n@param object\nobject to test for lock\n@param name\ntag associated with the lock", "Sort and order steps to avoid unwanted generation", "Get the refresh frequency of this scene object.\n\n@return The refresh frequency of this TextViewSceneObject.", "Function to perform forward softmax", "Checks to see if every value in the matrix is the specified value.\n\n@param mat The matrix being tested. Not modified.\n@param val Checks to see if every element in the matrix has this value.\n@param tol True if all the elements are within this tolerance.\n@return true if the test passes.", "Reads a single schema file.\n\n@param reader The schema reader\n@param schemaFile The schema file\n@return The model", "Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser", "Makes http DELETE request\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException" ]
private void writeProperties() throws IOException { writeAttributeTypes("property_types", ProjectField.values()); writeFields("property_values", m_projectFile.getProjectProperties(), ProjectField.values()); }
[ "This method writes project property data to a JSON file." ]
[ "Stores a public key mapping.\n@param original\n@param substitute", "Reports a given exception as a RuntimeException, since the interface does\nnot allow us to throw checked exceptions directly.\n\n@param e\nthe exception to report\n@throws RuntimeException\nin all cases", "Returns true if the given candidate is a group that is filtered due to rule parameters in the current call graph.", "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read.", "Returns the text value of all of the elements in the collection.\n\n@return the text value of all the elements in the collection or null", "Returns an empty Promotion details in Json\n\n@return String\n@throws IOException", "Called when a drawer has settled in a completely open state.", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "to check availability, then class name is truncated to bundle id" ]
public static <T extends EObject> IScope scopeFor(Iterable<? extends T> elements, final Function<T, QualifiedName> nameComputation, IScope outer) { return new SimpleScope(outer,scopedElementsFor(elements, nameComputation)); }
[ "creates a scope using the passed function to compute the names and sets the passed scope as the parent scope" ]
[ "Set the style for the widgets in the panel according to the chosen style option.\n@param widget the widget that should be styled.\n@return the styled widget.", "Read resource assignment baseline values.\n\n@param row result set row", "Use this API to update sslcertkey.", "Returns the result of the performed spellcheck formatted in JSON.\n\n@param request The CmsSpellcheckingRequest.\n@return JSONObject that contains the result of the performed spellcheck.", "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Returns true if this instance has the same config as a given config.\n@param that\n@return true if the instance has the same config, false otherwise.", "This method should be called after all column have been added to the report.\n@param numgroups\n@return", "Use this API to fetch appfwwsdl resource of given name .", "Write a comma to the output stream if required." ]
public static String getCorrelationId(Message message) { String correlationId = (String) message.get(CORRELATION_ID_KEY); if(null == correlationId) { correlationId = readCorrelationId(message); } if(null == correlationId) { correlationId = readCorrelationIdSoap(message); } return correlationId; }
[ "Get CorrelationId from message.\n\n@param message the message\n@return correlationId or null if not set" ]
[ "Calls the stored procedure stored procedure throws an\nerror if it doesn't exist.\n@param broker\n@param cld\n@param sequenceName\n@return\n@throws LookupException\n@throws SQLException", "Extract phrases from Korean input text\n\n@param tokens Korean tokens (output of tokenize(CharSequence text)).\n@return List of phrase CharSequences.", "Cleans up the given group and adds it to the list of groups if still valid\n@param group\n@param groups", "Send a database announcement to all registered listeners.\n\n@param slot the media slot whose database availability has changed\n@param database the database whose relevance has changed\n@param available if {@code} true, the database is newly available, otherwise it is no longer relevant", "Returns true if the request should continue.\n\n@return", "Enables or disabled shadow casting for a direct light.\nEnabling shadows attaches a GVRShadowMap component to the\nGVRSceneObject which owns the light and provides the\ncomponent with an orthographic camera for shadow casting.\n@param enableFlag true to enable shadow casting, false to disable", "Adds a classpath source which contains the given resource.\n\nTODO: [GH-213] this is extremely ugly; separate the code required to run on the\nforked JVM into an isolated bundle and either create it on-demand (in temp.\nfiles location?) or locate it in classpath somehow (in a portable way).", "Check the variable name and if not set, set it with the singleton variable name being on the top of the stack.", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type" ]
public List<TableProperty> getEditableColumns(CmsMessageBundleEditorTypes.EditMode mode) { return m_editorState.get(mode).getEditableColumns(); }
[ "Returns the editable columns for the provided edit mode.\n@param mode the edit mode.\n@return the editable columns for the provided edit mode." ]
[ "Returns an array of all the singular values", "Extracts the words from a string. Words are seperated by a space character.\n\n@param line The line that is being parsed.\n@return A list of words contained on the line.", "Given a date represented by a Calendar instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param cal Calendar instance representing the date\n@param time Date instance representing the time of day", "Called when a drawer has settled in a completely open state.", "Add a column to be set to a value for UPDATE statements. This will generate something like columnName = 'value'\nwith the value escaped if necessary.", "Demonstrates how to add an override to an existing path", "Creates a check box and adds it to the week panel and the checkboxes.\n@param internalValue the internal value of the checkbox\n@param labelMessageKey key for the label of the checkbox", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "except for the ones that make the content appear under the system bars." ]
public static vpnglobal_vpntrafficpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding(); vpnglobal_vpntrafficpolicy_binding response[] = (vpnglobal_vpntrafficpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a vpnglobal_vpntrafficpolicy_binding resources." ]
[ "Curries a function that takes one argument.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a function that takes no arguments. Never <code>null</code>.", "Use this API to fetch the statistics of all appfwprofile_stats resources that are configured on netscaler.", "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map", "Get a collection of recent photos.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param extras\nSet of extra-fields\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return A collection of Photo objects\n@throws FlickrException", "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code", "Throws an exception if at least one results directory is missing.", "Validates the return value\n\n@param instance The instance to validate", "Use this API to fetch onlinkipv6prefix resource of given name .", "Sets the value to a default." ]
public static Broker createBroker(int id, String brokerInfoString) { String[] brokerInfo = brokerInfoString.split(":"); String creator = brokerInfo[0].replace('#', ':'); String hostname = brokerInfo[1].replace('#', ':'); String port = brokerInfo[2]; boolean autocreated = Boolean.valueOf(brokerInfo.length > 3 ? brokerInfo[3] : "true"); return new Broker(id, creator, hostname, Integer.parseInt(port), autocreated); }
[ "create a broker with given broker info\n\n@param id broker id\n@param brokerInfoString broker info format: <b>creatorId:host:port:autocreated</b>\n@return broker instance with connection config\n@see #getZKString()" ]
[ "Get the node that has been selected by the user, or null if\nnothing is selected.\n@return The node or <code>null</code>", "Get file extension for script language.\n\n@param language the language name\n@return the file extension as string or null if the language is not in the set of languages supported by spin", "Joins the given ranges into the fewest number of ranges.\nIf no joining can take place, the original array is returned.\n\n@param ranges\n@return", "Checks if a given number is in the range of a float.\n\n@param number\na number which should be in the range of a float (positive or negative)\n\n@see java.lang.Float#MIN_VALUE\n@see java.lang.Float#MAX_VALUE\n\n@return number as a float", "Retrieves state and metrics information for individual channel.\n\n@param name channel name\n@return channel information", "Adds to this set all of the elements in the specified members array\n@param members the members to add\n@return the number of members actually added", "Returns the path to java executable.", "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed." ]
public static CharSequence getAt(CharSequence text, int index) { index = normaliseIndex(index, text.length()); return text.subSequence(index, index + 1); }
[ "Support the subscript operator for CharSequence.\n\n@param text a CharSequence\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0" ]
[ "Use this API to fetch all the appfwlearningdata resources that are configured on netscaler.\nThis uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources.", "static lifecycle callbacks", "Adds a new Token to the end of the linked list", "Convert an ObjectBank to arrays of data features and labels.\n\n@return A Pair, where the first element is an int[][][][] representing the\ndata and the second element is an int[][] representing the labels.", "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment", "Allows the closure to be called for NullObject\n\n@param closure the closure to call on the object\n@return result of calling the closure", "Add the string representation of the given object to this sequence. The given indentation will be prepended to\neach line except the first one if the object has a multi-line string representation.\n\n@param object\nthe appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.", "Exit reporting up to distributor, using information gained from status reports to the LineCountManager\n\n@return a boolean of whether this consumer should immediately exit", "Wait to shutdown service\n\n@param executorService Executor service to shutdown\n@param timeOutSec Time we wait for" ]
protected void parseLinks(CmsObject cms) throws CmsException { List<CmsResource> linkParseables = new ArrayList<>(); for (CmsResourceImportData resData : m_moduleData.getResourceData()) { CmsResource importRes = resData.getImportResource(); if ((importRes != null) && m_importIds.contains(importRes.getStructureId()) && isLinkParsable(importRes)) { linkParseables.add(importRes); } } m_report.println(Messages.get().container(Messages.RPT_START_PARSE_LINKS_0), I_CmsReport.FORMAT_HEADLINE); CmsImportVersion10.parseLinks(cms, linkParseables, m_report); m_report.println(Messages.get().container(Messages.RPT_END_PARSE_LINKS_0), I_CmsReport.FORMAT_HEADLINE); }
[ "Parses links for XMLContents etc.\n\n@param cms the CMS context to use\n@throws CmsException if something goes wrong" ]
[ "Given a GanttProject priority value, turn this into an MPXJ Priority instance.\n\n@param gpPriority GanttProject priority\n@return Priority instance", "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.", "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "Helper method to track storage operations & time via StreamingStats.\n\n@param startNs", "Send an event to other applications\n\n@param context context in which to send the broadcast\n@param event event to send", "Harvest a single value that was returned by a callable statement.\n\n@param obj the object that will receive the value that is harvested.\n@param callable the CallableStatement that contains the value to harvest\n@param fmd the FieldDescriptor that identifies the field where the\nharvested value will be stord.\n@param index the parameter index.\n\n@throws PersistenceBrokerSQLException if a problem occurs.", "Parses a duration and returns the corresponding number of milliseconds.\n\nDurations consist of a space-separated list of components of the form {number}{time unit},\nfor example 1d 5m. The available units are d (days), h (hours), m (months), s (seconds), ms (milliseconds).<p>\n\n@param durationStr the duration string\n@param defaultValue the default value to return in case the pattern does not match\n@return the corresponding number of milliseconds", "Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements", "Tests whether the two field descriptors are equal, i.e. have same name, same column\nand same jdbc-type.\n\n@param first The first field\n@param second The second field\n@return <code>true</code> if they are equal" ]
protected void mergeSameWork(LinkedList<TimephasedWork> list) { LinkedList<TimephasedWork> result = new LinkedList<TimephasedWork>(); TimephasedWork previousAssignment = null; for (TimephasedWork assignment : list) { if (previousAssignment == null) { assignment.setAmountPerDay(assignment.getTotalAmount()); result.add(assignment); } else { Duration previousAssignmentWork = previousAssignment.getAmountPerDay(); Duration assignmentWork = assignment.getTotalAmount(); if (NumberHelper.equals(previousAssignmentWork.getDuration(), assignmentWork.getDuration(), 0.01)) { Date assignmentStart = previousAssignment.getStart(); Date assignmentFinish = assignment.getFinish(); double total = previousAssignment.getTotalAmount().getDuration(); total += assignmentWork.getDuration(); Duration totalWork = Duration.getInstance(total, TimeUnit.MINUTES); TimephasedWork merged = new TimephasedWork(); merged.setStart(assignmentStart); merged.setFinish(assignmentFinish); merged.setAmountPerDay(assignmentWork); merged.setTotalAmount(totalWork); result.removeLast(); assignment = merged; } else { assignment.setAmountPerDay(assignment.getTotalAmount()); } result.add(assignment); } previousAssignment = assignment; } list.clear(); list.addAll(result); }
[ "Merges individual days together into time spans where the\nsame work is undertaken each day.\n\n@param list assignment data" ]
[ "There appear to be two ways of representing task notes in an MPP8 file.\nThis method tries to determine which has been used.\n\n@param task task\n@param data task data\n@param taskExtData extended task data\n@param taskVarData task var data", "Processes the template if the property value of the current object on the specified level equals the given value.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"value\" optional=\"false\" description=\"The value to check for\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"", "Create a Build retention object out of the build\n\n@param build The build to create the build retention out of\n@param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded.\n@return a new Build retention", "Runs the record linkage process.", "Checks the given collection descriptor.\n\n@param collDef The collection descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Returns the index of the median of the three indexed chars.", "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", "visibility increased for testing", "Analyses the content of the general section of an ini configuration file\nand fills out the class arguments with this data.\n\n@param section\n{@link Section} with name \"general\"" ]
private void ensureFields(ClassDescriptorDef classDef, Collection fields) throws ConstraintException { boolean forceVirtual = !classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_REPOSITORY_INFO, true); for (Iterator it = fields.iterator(); it.hasNext();) { FieldDescriptorDef fieldDef = (FieldDescriptorDef)it.next(); // First we check whether this field is already present in the class FieldDescriptorDef foundFieldDef = classDef.getField(fieldDef.getName()); if (foundFieldDef != null) { if (isEqual(fieldDef, foundFieldDef)) { if (forceVirtual) { foundFieldDef.setProperty(PropertyHelper.OJB_PROPERTY_VIRTUAL_FIELD, "true"); } continue; } else { throw new ConstraintException("Cannot pull up the declaration of the required field "+fieldDef.getName()+ " from type "+fieldDef.getOwner().getName()+" to basetype "+classDef.getName()+ " because there is already a different field of the same name"); } } // perhaps a reference or collection ? if (classDef.getCollection(fieldDef.getName()) != null) { throw new ConstraintException("Cannot pull up the declaration of the required field "+fieldDef.getName()+ " from type "+fieldDef.getOwner().getName()+" to basetype "+classDef.getName()+ " because there is already a collection of the same name"); } if (classDef.getReference(fieldDef.getName()) != null) { throw new ConstraintException("Cannot pull up the declaration of the required field "+fieldDef.getName()+ " from type "+fieldDef.getOwner().getName()+" to basetype "+classDef.getName()+ " because there is already a reference of the same name"); } classDef.addFieldClone(fieldDef); classDef.getField(fieldDef.getName()).setProperty(PropertyHelper.OJB_PROPERTY_VIRTUAL_FIELD, "true"); } }
[ "Ensures that the specified fields are present in the given class.\n\n@param classDef The class to copy the fields into\n@param fields The fields to copy\n@throws ConstraintException If there is a conflict between the new fields and fields in the class" ]
[ "Logout the current session. After calling this method,\nthe session will be cleared", "Get an InputStream for the original image. Callers must close the stream upon completion.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@return The InputStream\n@throws IOException", "Parse request parameters and files.\n@param request\n@param response", "Ensures that the primary keys required by the given collection with indirection table are present in\nthe element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the fitting collection (if any) or the primary keys", "Not exposed directly - the Query object passed as parameter actually contains results...", "Revert all the working copy changes.", "Retrieves a vertex attribute as a float array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatVec(String, FloatBuffer)\n@see #getFloatArray(String)", "Handle a completed request producing an optional response", "If the specified value is not greater than or equal to the specified minimum and\nless than or equal to the specified maximum, adjust it so that it is.\n@param value The value to check.\n@param min The minimum permitted value.\n@param max The maximum permitted value.\n@return {@code value} if it is between the specified limits, {@code min} if the value\nis too low, or {@code max} if the value is too high.\n@since 1.2" ]
protected Boolean getEscapeQueryChars() { Boolean isEscape = parseOptionalBooleanValue(m_configObject, JSON_KEY_ESCAPE_QUERY_CHARACTERS); return (null == isEscape) && (m_baseConfig != null) ? Boolean.valueOf(m_baseConfig.getGeneralConfig().getEscapeQueryChars()) : isEscape; }
[ "Returns the flag, indicating if the characters in the query string that are commands to Solr should be escaped.\n@return the flag, indicating if the characters in the query string that are commands to Solr should be escaped." ]
[ "Sets the current class definition derived from the current class, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"accept-locks\" optional=\"true\" description=\"The accept locks setting\" values=\"true,false\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the class as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"determine-extents\" optional=\"true\" description=\"Whether to determine\npersistent direct sub types automatically\" values=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a no-argument factory method that is\nused to create instances (not yet implemented !)\"\[email protected] name=\"factory-class\" optional=\"true\" description=\"Specifies a factory class to be used for creating\nobjects of this class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a static no-argument method in the factory class\"\[email protected] name=\"generate-repository-info\" optional=\"true\" description=\"Whether repository data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"generate-table-info\" optional=\"true\" description=\"Whether table data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"include-inherited\" optional=\"true\" description=\"Whether to include\nfields/references/collections of supertypes\" values=\"true,false\"\[email protected] name=\"initialization-method\" optional=\"true\" description=\"Specifies a no-argument instance method that is\ncalled right after an instance has been read from the database\"\[email protected] name=\"isolation-level\" optional=\"true\" description=\"The isolation level setting\"\[email protected] name=\"proxy\" optional=\"true\" description=\"The proxy setting for this class\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects of\nobjects of this class to prefetch in collections\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Can be set to force OJB to refresh instances when\nloaded from the cache\" values=\"true,false\"\[email protected] name=\"row-reader\" optional=\"true\" description=\"The row reader for the class\"\[email protected] name=\"schema\" optional=\"true\" description=\"The schema for the type\"\[email protected] name=\"table\" optional=\"true\" description=\"The table for the class\"\[email protected] name=\"table-documentation\" optional=\"true\" description=\"Documentation on the table\"", "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance", "Post a build info to the server\n\n@param moduleName String\n@param moduleVersion String\n@param buildInfo Map<String,String>\n@param user String\n@param password String\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Generate a sql where-clause for the array of fields\n\n@param fields array containing all columns used in WHERE clause", "Each string item rendering requires the border and a space on both sides.\n\n12 3 12 3 12 34\n+----- +-------- +------+\nabc venkat last\n\n@param colCount\n@param colMaxLenList\n@param data\n@return", "Returns the project membership record.\n\n@param projectMembership Globally unique identifier for the project membership.\n@return Request object", "Use this API to fetch vpnvserver_aaapreauthenticationpolicy_binding resources of given name .", "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "Use this API to fetch clusterinstance resources of given names ." ]
public void notifyHeaderItemRangeRemoved(int positionStart, int itemCount) { if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > headerItemCount) { throw new IndexOutOfBoundsException("The given range [" + positionStart + " - " + (positionStart + itemCount - 1) + "] is not within the position bounds for header items [0 - " + (headerItemCount - 1) + "]."); } notifyItemRangeRemoved(positionStart, itemCount); }
[ "Notifies that multiple header items are removed.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "This method maps the task unique identifiers to their index number\nwithin the FixedData block.\n\n@param fieldMap field map\n@param taskFixedMeta Fixed meta data for this task\n@param taskFixedData Fixed data for this task\n@param taskVarData Variable task data\n@return Mapping between task identifiers and block position", "Returns the rank of the decomposed matrix.\n\n@see SingularOps_DDRM#rank(SingularValueDecomposition_F64, double)\n\n@return The matrix's rank", "Send Request Node info message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response.", "Returns a flag represented as a String, indicating if\nthe supplied day is a working day.\n\n@param mpxjCalendar MPXJ ProjectCalendar instance\n@param day Day instance\n@return boolean flag as a string", "Remove any overrides for an endpoint on the default profile, client\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise", "Abort and close the transaction. Calling abort abandons all persistent\nobject modifications and releases the associated locks. Aborting a\ntransaction does not restore the state of modified transient objects", "Get a property as a float or throw an exception.\n\n@param key the property name", "Construct a Libor index for a given curve and schedule.\n\n@param forwardCurveName\n@param schedule\n@return The Libor index or null, if forwardCurveName is null.", "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value" ]
public static java.sql.Time toTime(Object value) throws ParseException { if (value == null) { return null; } if (value instanceof java.sql.Time) { return (java.sql.Time) value; } if (value instanceof String) { if ("".equals((String) value)) { return null; } return new java.sql.Time(IN_TIME_FORMAT.parse((String) value).getTime()); } return new java.sql.Time(IN_TIME_FORMAT.parse(value.toString()).getTime()); }
[ "Convert an Object to a Time." ]
[ "Serializes the given object in JSON and returns the resulting string. In\ncase of errors, null is returned. In particular, this happens if the\nobject is not based on a Jackson-annotated class. An error is logged in\nthis case.\n\n@param object\nobject to serialize\n@return JSON serialization or null", "Removes the value connected to the given key\nfrom all levels of the cache. Will not throw an\nexception on fail.\n\n@param cacheKey", "Retrieves the default calendar for this project based on the calendar name\ngiven in the project properties. If a calendar of this name cannot be found, then\nthe first calendar listed for the project will be returned. If the\nproject contains no calendars, then a default calendar is added.\n\n@return default projectCalendar instance", "Update environment variables to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param config Key/Value pairs of environment variables.", "Convert an Object to a Date.", "Set whether we should obtain color versions of waveforms and previews when they are available. This will only\naffect waveforms loaded after the setting has been changed. If this changes the setting, and we were running,\nstop and restart in order to flush and reload the correct waveform versions.\n\n@param preferColor if {@code true}, the full-color versions of waveforms will be requested, if {@code false}\nonly the older blue versions will be retrieved", "Get the authentication for a specific token.\n\n@param token token\n@return authentication if any", "Create a container in the platform\n\n@param container\nThe name of the container", "Use this API to fetch dnstxtrec resources of given names ." ]
public String convertToPrefixLength() throws AddressStringException { IPAddress address = toAddress(); Integer prefix; if(address == null) { if(isPrefixOnly()) { prefix = getNetworkPrefixLength(); } else { return null; } } else { prefix = address.getBlockMaskPrefixLength(true); if(prefix == null) { return null; } } return IPAddressSegment.toUnsignedString(prefix, 10, new StringBuilder(IPAddressSegment.toUnsignedStringLength(prefix, 10) + 1).append(IPAddress.PREFIX_LEN_SEPARATOR)).toString(); }
[ "Converts this address to a prefix length\n\n@return the prefix of the indicated IP type represented by this address or null if this address is valid but cannot be represented by a network prefix length\n@throws AddressStringException if the address is invalid" ]
[ "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", "returns array with all allowed values\n@return allowed values", "Process normal calendar working and non-working days.\n\n@param calendar parent calendar", "Returns the \"short rate\" from timeIndex to timeIndex+1.\n\n@param timeIndex The time index (corresponding to {@link getTime()).\n@return The \"short rate\" from timeIndex to timeIndex+1.\n@throws CalculationException Thrown if simulation failed.", "Keep a cache of items files associated with classification in order to improve performance.", "package for testing purpose", "Does the server support log downloads?\n\n@param cliGuiCtx The context.\n@return <code>true</code> if the server supports log downloads,\n<code>false</code> otherwise.", "Performs a query to retrieve all the design documents defined in the database.\n\n@return a list of the design documents from the database\n@throws IOException if there was an error communicating with the server\n@since 2.5.0", "The only difference between version 1.5 and 1.6 of the schema were to make is possible to define discovery options, this\nresulted in the host and port attributes becoming optional -this method also indicates if discovery options are required\nwhere the host and port were not supplied.\n\n@param allowDiscoveryOptions i.e. are host and port potentially optional?\n@return true if discovery options are required, i.e. no host and port set and the admin policy requires a config." ]
@AsParameterConverter public Trader retrieveTrader(String name) { for (Trader trader : traders) { if (trader.getName().equals(name)) { return trader; } } return mockTradePersister().retrieveTrader(name); }
[ "Method used as dynamical parameter converter" ]
[ "Creates a unique name, suitable for use with Resque.\n\n@return a unique name for this worker", "Look up the database server port reported by a given player. You should not use this port directly; instead\nask this class for a session to use while you communicate with the database.\n\n@param player the player number of interest\n\n@return the port number on which its database server is running, or -1 if unknown\n\n@throws IllegalStateException if not running", "Invokes a JavaScript function that takes no arguments.\n\n@param <T>\n@param function The function to invoke\n@param returnType The type of object to return\n@return The result of the function.", "Updates the gatewayDirection attributes of all gateways.\n@param def", "Read a nested table whose contents we don't understand.\n\n@param rowSize fixed row size\n@param rowMagicNumber row magic number\n@return table rows", "Count the number of non-zero elements in R", "Initialize the connection with the specified properties in OJB\nconfiguration files and platform depended properties.\nInvoke this method after a NEW connection is created, not if re-using from pool.\n\n@see org.apache.ojb.broker.platforms.PlatformFactory\n@see org.apache.ojb.broker.platforms.Platform", "Creates a window visually showing the matrix's state. Block means an element is zero.\nRed positive and blue negative. More intense the color larger the element's absolute value\nis.\n\n@param A A matrix.\n@param title Name of the window.", "Creates the given directory. Fails if it already exists." ]
public static Map<String, Automaton> createAutomatonMap(String prefix, List<String> valueList, Boolean filter) { HashMap<String, Automaton> automatonMap = new HashMap<>(); if (valueList != null) { for (String item : valueList) { if (filter) { item = item.replaceAll("([\\\"\\)\\(\\<\\>\\.\\@\\#\\]\\[\\{\\}])", "\\\\$1"); } automatonMap.put(item, new RegExp(prefix + MtasToken.DELIMITER + item + "\u0000*") .toAutomaton()); } } return automatonMap; }
[ "Creates the automaton map.\n\n@param prefix the prefix\n@param valueList the value list\n@param filter the filter\n@return the map" ]
[ "This configuration requires that all your tasks you submit to the system implement\nthe Groupable interface. By default, it will round robin tasks from each group\n\nTasks will be tracked internally in the system by randomly generated UUIDs\n\n@return", "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed", "Attempt to detect the current platform.\n\n@return The current platform.\n\n@throws UnsupportedPlatformException if the platform cannot be detected.", "Builds a batch-fetch capable loader based on the given persister, lock-options, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockOptions The lock options\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Gets the date time str concise.\n\n@param d\nthe d\n@return the date time str concise", "Use this API to add sslcipher.", "Determines if we need to calculate more dates.\nIf we do not have a finish date, this method falls back on using the\noccurrences attribute. If we have a finish date, we'll use that instead.\nWe're assuming that the recurring data has one or other of those values.\n\n@param calendar current date\n@param dates dates generated so far\n@return true if we should calculate another date", "Renders in LI tags, Wraps with UL tags optionally.", "Abort an active extern transaction associated with the given PB." ]
private void readRecord(Tokenizer tk, List<String> record) throws IOException { record.clear(); while (tk.nextToken() == Tokenizer.TT_WORD) { record.add(tk.getToken()); } }
[ "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException" ]
[ "Resolves current full path with .yml and .yaml extensions\n\n@param fullpath\nwithout extension.\n\n@return Path of existing definition or null", "Get interfaces implemented by clazz\n\n@param clazz\n@return", "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results.", "This method is called to alert project listeners to the fact that\na resource has been read from a project file.\n\n@param resource resource instance", "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", "Opens a new FileOutputStream for a file of the given name in the given\nresult directory. Any file of this name that exists already will be\nreplaced. The caller is responsible for eventually closing the stream.\n\n@param resultDirectory\nthe path to the result directory\n@param filename\nthe name of the file to write to\n@return FileOutputStream for the file\n@throws IOException\nif the file or example output directory could not be created", "Write the given pattern to given log in given logging level\n@param logger\n@param level\n@param pattern\n@param exception", "Demonstrates obtaining the request history data from a test run", "Create the work pattern assignment map.\n\n@param rows calendar rows\n@return work pattern assignment map" ]
private void processHyperlinkData(ResourceAssignment assignment, byte[] data) { if (data != null) { int offset = 12; offset += 12; String hyperlink = MPPUtility.getUnicodeString(data, offset); offset += ((hyperlink.length() + 1) * 2); offset += 12; String address = MPPUtility.getUnicodeString(data, offset); offset += ((address.length() + 1) * 2); offset += 12; String subaddress = MPPUtility.getUnicodeString(data, offset); offset += ((subaddress.length() + 1) * 2); offset += 12; String screentip = MPPUtility.getUnicodeString(data, offset); assignment.setHyperlink(hyperlink); assignment.setHyperlinkAddress(address); assignment.setHyperlinkSubAddress(subaddress); assignment.setHyperlinkScreenTip(screentip); } }
[ "Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data" ]
[ "This method is very similar to addMainHandler, except ShellFactory\nwill pass all handlers registered with this method to all this shell's subshells.\n\n@see org.gearvrf.debug.cli.Shell#addMainHandler(java.lang.Object, java.lang.String)\n\n@param handler Object which should be registered as handler.\n@param prefix Prefix that should be prepended to all handler's command names.", "Writes a number to the specified byte array field, breaking it into its component bytes in big-endian order.\nIf the number is too large to fit in the specified number of bytes, only the low-order bytes are written.\n\n@param number the number to be written to the array\n@param buffer the buffer to which the number should be written\n@param start where the high-order byte should be written\n@param length how many bytes of the number should be written", "Convenience extension, to generate traced code.", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Returns a list of resource wrappers created from the input list of resources.\n\n@param cms the current OpenCms user context\n@param list the list to create the resource wrapper list from\n\n@return the list of wrapped resources.", "Remove an write lock.", "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", "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Use this API to Import application." ]
public File curDir() { File file = session().attribute(ATTR_PWD); if (null == file) { file = new File(System.getProperty("user.dir")); session().attribute(ATTR_PWD, file); } return file; }
[ "Return the current working directory\n\n@return the current working directory" ]
[ "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "Add key value pair to extra info\n\n@param key Key of new item\n@param value New value to add", "Initializes OJB for the purposes of this task.\n\n@return The metadata manager used by OJB", "Create a new custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Main method of the class, which handles the process of creating the tests\n\n@param requirementsFolder\n, it is the folder where the plain text given by the client is\nstored\n@param platformName\n, to choose the MAS platform (JADE, JADEX, etc.)\n@param src_test_dir\n, the folder where our classes are created\n@param tests_package\n, the name of the package where the stories are created\n@param casemanager_package\n, the path where casemanager must be created\n@param loggingPropFile\n, properties file\n@throws Exception\n, if any error is found in the configuration", "Get the element value in the list by index\n@param index the position in the list from which to get the element\n@return the element value", "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)", "handles when a member leaves and hazelcast partition data is lost. We want\nto find the Futures that are waiting on lost data and error them", "Stores all entries contained in the given map in the cache." ]
public static base_response update(nitro_service client, inatparam resource) throws Exception { inatparam updateresource = new inatparam(); updateresource.nat46v6prefix = resource.nat46v6prefix; updateresource.nat46ignoretos = resource.nat46ignoretos; updateresource.nat46zerochecksum = resource.nat46zerochecksum; updateresource.nat46v6mtu = resource.nat46v6mtu; updateresource.nat46fragheader = resource.nat46fragheader; return updateresource.update_resource(client); }
[ "Use this API to update inatparam." ]
[ "Try to open a file at the given position.", "Updates the value in HashMap and writeBack as Atomic step", "Get minimum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Minimum gray.", "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "What is the maximum bounds in screen space? Needed for correct clipping calculation.\n\n@param tile\ntile\n@param panOrigin\npan origin\n@return max screen bbox", "Loads configuration from InputStream. Later loads have lower priority.\n\n@param in InputStream to load from\n@since 1.2.0", "Adds the given value to the set.\n\n@return true if the value was actually new", "A Maven stub is a Maven Project for which we have found information, but the project has not yet been located\nwithin the input application. If we have found an application of the same GAV within the input app, we should\nfill out this stub instead of creating a new one.", "Retrieves a vertex attribute as an integer buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntArray(String, int[])\n@see #getIntVec(String)" ]
private void setFileNotWorldReadablePermissions(File file) { file.setReadable(false, false); file.setWritable(false, false); file.setExecutable(false, false); file.setReadable(true, true); file.setWritable(true, true); }
[ "This procedure sets permissions to the given file to not allow everybody to read it.\n\nOnly when underlying OS allows the change.\n\n@param file File to set permissions" ]
[ "Build a standard-format UDP packet for sending to port 50001 or 50002 in the protocol.\n\n@param type the type of packet to create.\n@param deviceName the 0x14 (twenty) bytes of the device name to send in the packet.\n@param payload the remaining bytes which come after the device name.\n@return the packet to send.", "Use this API to fetch lbvserver_appflowpolicy_binding resources of given name .", "Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.\n\n@param map\nthe map\n@param nameMapping\nthe keys of the Map values to add to the List\n@return a List of all of the values in the Map whose key matches an entry in the nameMapping array\n@throws NullPointerException\nif map or nameMapping is null", "Returns a unique file name\n@param baseFileName the requested base name for the file\n@param extension the requested extension for the file\n@param cleanBaseFileName specify if the <code>baseFileName</code> has to be cleaned before being used (i.e. 'jboss-web' should not be cleaned to avoid '-' to become '_')\n@param ancestorFolders specify the ancestor folders for the file (if there's no ancestor folder, just pass 'null' value)\n@return a String representing the unique file generated", "Per the navigation drawer design guidelines, updates the action bar to show the global app\n'context', rather than just what's in the current screen.", "Creates a new RDF serializer based on the current configuration of this\nobject.\n\n@return the newly created RDF serializer\n@throws IOException\nif there were problems opening the output files", "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs", "Shutdown task scheduler.", "parse when there are two date-times" ]
protected void propagateOnEnter(GVRPickedObject hit) { GVRSceneObject hitObject = hit.getHitObject(); GVREventManager eventManager = getGVRContext().getEventManager(); if (mEventOptions.contains(EventOptions.SEND_TOUCH_EVENTS)) { if (mEventOptions.contains(EventOptions.SEND_TO_LISTENERS)) { eventManager.sendEvent(this, ITouchEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_HIT_OBJECT)) { eventManager.sendEvent(hitObject, ITouchEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_SCENE) && (mScene != null)) { eventManager.sendEvent(mScene, ITouchEvents.class, "onEnter", hitObject, hit); } } if (mEventOptions.contains(EventOptions.SEND_PICK_EVENTS)) { if (mEventOptions.contains(EventOptions.SEND_TO_LISTENERS)) { eventManager.sendEvent(this, IPickEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_HIT_OBJECT)) { eventManager.sendEvent(hitObject, IPickEvents.class, "onEnter", hitObject, hit); } if (mEventOptions.contains(EventOptions.SEND_TO_SCENE) && (mScene != null)) { eventManager.sendEvent(mScene, IPickEvents.class, "onEnter", hitObject, hit); } } }
[ "Propagate onEnter events to listeners\n@param hit collision object" ]
[ "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful", "Generate a string with all selected checkboxes separated with ','.\n\n@return a string with all selected checkboxes", "Use this API to fetch all the nssimpleacl resources that are configured on netscaler.", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "The full path of a jrxml file, or the path in the classpath of a jrxml\nresource.\n\n@param path\n@return", "Process StepFinishedEvent. Change last added to stepStorage step\nand add it as child of previous step.\n\n@param event to process", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "Inserts an array of Parcelable values into the mapping of the underlying Bundle, replacing any\nexisting value for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value an array of Parcelable objects, or null\n@return this bundler instance to chain method calls", "Set the model used by the left table.\n\n@param model table model" ]
public TransformersSubRegistration getDomainRegistration(final ModelVersionRange range) { final PathAddress address = PathAddress.EMPTY_ADDRESS; return new TransformersSubRegistrationImpl(range, domain, address); }
[ "Get the sub registry for the domain.\n\n@param range the version range\n@return the sub registry" ]
[ "Returns the decoded string, in case it contains non us-ascii characters.\nReturns the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.\n\n@param str string to be decoded\n@return the decoded string, in case it contains non us-ascii characters;\nor the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.", "Hide the following channels.\n@param channels The names of the channels to hide.\n@return this", "return a prepared DELETE Statement fitting for the given ClassDescriptor", "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder.", "Sets the target directory.", "Return total number of connections created in all partitions.\n\n@return number of created connections", "Updates value of entity in the table.", "Store the char in the internal buffer", "Use this API to enable clusterinstance of given name." ]
public TaskProvider<GenerateHensonNavigatorTask> createHensonNavigatorGenerationTask( BaseVariant variant, String hensonNavigatorPackageName, File destinationFolder) { TaskProvider<GenerateHensonNavigatorTask> generateHensonNavigatorTask = project .getTasks() .register( "generate" + capitalize(variant.getName()) + "HensonNavigator", GenerateHensonNavigatorTask.class, (Action<GenerateHensonNavigatorTask>) generateHensonNavigatorTask1 -> { generateHensonNavigatorTask1.hensonNavigatorPackageName = hensonNavigatorPackageName; generateHensonNavigatorTask1.destinationFolder = destinationFolder; generateHensonNavigatorTask1.variant = variant; generateHensonNavigatorTask1.logger = logger; generateHensonNavigatorTask1.project = project; generateHensonNavigatorTask1.hensonNavigatorGenerator = hensonNavigatorGenerator; }); return generateHensonNavigatorTask; }
[ "A henson navigator is a class that helps a consumer to consume the navigation api that it\ndeclares in its dependencies. The henson navigator will wrap the intent builders. Thus, a\nhenson navigator, is driven by consumption of intent builders, whereas the henson classes are\ndriven by the production of an intent builder.\n\n<p>This task is created per android variant:\n\n<ul>\n<li>we scan the variant compile configuration for navigation api dependencies\n<li>we generate a henson navigator class for this variant that wraps the intent builders\n</ul>\n\n@param variant the variant for which to create a builder.\n@param hensonNavigatorPackageName the package name in which we create the class." ]
[ "Use this API to delete nsip6.", "Generate node data map.\n\n@param task\nthe job info", "Writes this JAR to an output stream, and closes the stream.", "Creates a new deployment for the file. If the file is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the file containing the content\n\n@return the deployment", "Sets in-place the right child with the same first byte.\n\n@param b next byte of child suffix.\n@param child child node.", "domain.xml", "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate", "Triggers a replication request, blocks while the replication is in progress.\n@return ReplicationResult encapsulating the result", "Deletes the VFS XML bundle file.\n@throws CmsException thrown if the delete operation fails." ]
private Map<String, Criteria> getCriterias(Map<String, String[]> params) { Map<String, Criteria> result = new HashMap<String, Criteria>(); for (Map.Entry<String, String[]> param : params.entrySet()) { for (Criteria criteria : FILTER_CRITERIAS) { if (criteria.getName().equals(param.getKey())) { try { Criteria[] parsedCriterias = criteria.parseValue(param.getValue()[0]); for (Criteria parsedCriteria : parsedCriterias) { result.put(parsedCriteria.getName(), parsedCriteria); } } catch (Exception e) { // Exception happened during paring LOG.log(Level.SEVERE, "Error parsing parameter " + param.getKey(), e); } break; } } } return result; }
[ "Reads filter parameters.\n\n@param params the params\n@return the criterias" ]
[ "Remove an existing Corporate GroupId from an organization.\n\n@return Response", "Obtains a local date in Symmetry454 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry454 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry454 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}", "This method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions.\n\n@param date Date to be tested\n@return boolean value", "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.", "Connect sync.\n\n@param configuration the protocol configuration\n@return the connection\n@throws IOException", "Adds all items from the iterator to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed", "Searches for a declared method with a given name. If the class declares multiple methods with the given name,\nthere is no guarantee as of which methods is returned. Null is returned if the class does not declare a method\nwith the given name.\n@param clazz the given class\n@param methodName the given method name\n@return method method with the given name declared by the given class or null if no such method exists", "Writes this IIMFile to writer.\n\n@param writer\nwriter to write to\n@throws IOException\nif file can't be written to", "Creates a new instance of this class.\n\n@param variableName\nname of the instance variable to search aliases for. Must\nneither be {@code null} nor empty.\n@param controlFlowBlockToExamine\na {@link ControlFlowBlock} which possibly contains the setup\nof an alias for a lazy variable. This method thereby examines\npredecessors of {@code block}, too. This parameter must not be\n{@code null}.\n@return a new instance of this class." ]
public void setDefaults(Annotation[] defaultAnnotations) { if (defaultAnnotations == null) { return; } for (Annotation each : defaultAnnotations) { Class<? extends Annotation> key = each.annotationType(); if (Title.class.equals(key) || Description.class.equals(key)) { continue; } if (!annotations.containsKey(key)) { annotations.put(key, each); } } }
[ "Set default values for annotations.\nInitial annotation take precedence over the default annotation when both annotation types are present\n\n@param defaultAnnotations default value for annotations" ]
[ "Bessel function of the first kind, of order 0.\n\n@param x Value.\n@return I0 value.", "If first and second are Strings, then this returns an MutableInternedPair\nwhere the Strings have been interned, and if this Pair is serialized\nand then deserialized, first and second are interned upon\ndeserialization.\n\n@param p A pair of Strings\n@return MutableInternedPair, with same first and second as this.", "Sets the currently edited locale.\n@param locale the locale to set.", "Used to set 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 real Real component of assigned value\n@param imaginary Imaginary component of assigned value", "Prepares a representation of the model that is easier accessible for our purposes.\n\n@param model The original model\n@return The model representation", "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id.", "Create an ephemeral node with the given path and data. Create parents if necessary.\n@param zkClient client of zookeeper\n@param path node path of zookeeper\n@param data node data", "Convert event type.\n\n@param eventType the event type\n@return the event enum type", "Return the version string of this instance of finmath-lib.\n\n@return The version string of this instance of finmath-lib." ]
public static void applyWsdlExtensions(Bus bus) { ExtensionRegistry registry = bus.getExtension(WSDLManager.class).getExtensionRegistry(); try { JAXBExtensionHelper.addExtensions(registry, javax.wsdl.Definition.class, org.talend.esb.mep.requestcallback.impl.wsdl.PLType.class); JAXBExtensionHelper.addExtensions(registry, javax.wsdl.Binding.class, org.talend.esb.mep.requestcallback.impl.wsdl.CallbackExtension.class); } catch (JAXBException e) { throw new RuntimeException("Failed to add WSDL JAXB extensions", e); } }
[ "Adds JAXB WSDL extensions to allow work with custom\nWSDL elements such as \\\"partner-link\\\"\n\n@param bus CXF bus" ]
[ "adds a TTL index to the given collection. The TTL must be a positive integer.\n\n@param collection the collection to use for the TTL index\n@param field the field to use for the TTL index\n@param ttl the TTL to set on the given field\n@throws IllegalArgumentException if the TTL is less or equal 0", "will trigger workers to cancel then wait for it to report back.", "Classify stdin by senteces seperated by blank line\n@param readerWriter\n@return\n@throws IOException", "Upcasts a Builder instance to the generated superclass, to allow access to private fields.\n\n<p>Reuses an existing upcast instance if one was already declared in this scope.\n\n@param code the {@link SourceBuilder} to add the declaration to\n@param datatype metadata about the user type the builder is being generated for\n@param builder the Builder instance to upcast\n@returns a variable holding the upcasted instance", "Call the Coverage Task.", "Set default interval for sending events to monitoring service. DefaultInterval will be used by\nscheduler.\n\n@param defaultInterval the new default interval", "Send a request that expects a single message as its response, then read and return that response.\n\n@param requestType identifies what kind of request to send\n@param responseType identifies the type of response we expect, or {@code null} if we’ll accept anything\n@param arguments The argument fields to send in the request\n\n@return the response from the player\n\n@throws IOException if there is a communication problem, or if the response does not have the same transaction\nID as the request.", "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException", "Try to set specified property to given marshaller\n\n@param marshaller specified marshaller\n@param name name of property to set\n@param value value of property to set" ]
private int getPositiveInteger(String number) { try { return Math.max(0, Integer.parseInt(number)); } catch (NumberFormatException e) { return 0; } }
[ "Gets the positive integer.\n\n@param number the number\n@return the positive integer" ]
[ "parse the stencil out of a JSONObject and set it to the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "With the Batik SVG library it is only possible to create new SVG graphics, but you can not modify an\nexisting graphic. So, we are loading the SVG file as plain XML and doing the modifications by hand.", "Return configuration tweaks in a format appropriate for ness-jdbc DatabaseModule.", "Register the given mbean with the server\n\n@param server The server to register with\n@param mbean The mbean to register\n@param name The name to register under", "Creates an operation to list the deployments.\n\n@return the operation", "Create a new instance of a single input function from an operator character\n@param op Which operation\n@param input Input variable\n@return Resulting operation", "Gets read-only metadata.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to fetch read-only metadata from\n@param storeNames Stores names to fetch read-only metadata from\n@param metaKeys List of read-only metadata to fetch\n@throws IOException", "Create and return a new Violation for this rule and the specified import\n@param sourceCode - the SourceCode\n@param importNode - the ImportNode for the import triggering the violation\n@return a new Violation object", "Use this API to fetch statistics of cmppolicylabel_stats resource of given name ." ]
public static boolean isQuotedConstant(String str) { if (str == null || str.isEmpty()) { return false; } return (str.startsWith("\"") && str.endsWith("\"")); }
[ "Returns true if string starts and ends with double-quote\n@param str\n@return" ]
[ "Find the earliest start time of the specified methods.\n@param methods A list of test methods.\n@return The earliest start time.", "Maps a story if it is allowed by the meta filter\n\n@param story\nthe Story\n@param metaFilter\nthe meta filter", "Use this API to fetch appflowpolicylabel resource of given name .", "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.", "Makes http GET request.\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException", "Returns the value of the identified field as a Boolean.\n@param fieldName the name of the field\n@return the value of the field as a Boolean", "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", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException", "Gets the health memory.\n\n@return the health memory" ]
public static BoxDeveloperEditionAPIConnection getAppEnterpriseConnection(String enterpriseId, String clientId, String clientSecret, JWTEncryptionPreferences encryptionPref, IAccessTokenCache accessTokenCache) { BoxDeveloperEditionAPIConnection connection = new BoxDeveloperEditionAPIConnection(enterpriseId, DeveloperEditionEntityType.ENTERPRISE, clientId, clientSecret, encryptionPref, accessTokenCache); connection.tryRestoreUsingAccessTokenCache(); return connection; }
[ "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." ]
[ "Search for rectangles which have the same width and x position, and\nwhich join together vertically and merge them together to reduce the\nnumber of rectangles needed to describe a symbol.", "Get an extent aware Iterator based on the ReportQuery\n\n@param query\n@param cld\n@return OJBIterator", "Do synchronization of the given J2EE ODMG Transaction", "Creates a CSS rgb specification from a PDF color\n@param pdcolor\n@return the rgb() string", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "Extract a list of time entries.\n\n@param shiftData string representation of time entries\n@return list of time entry rows", "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return", "FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to close the connection in this method, because the TxManager does prepare for commit\nafter this method and all used DataSource-connections have to be closed before.\n\n@see javax.transaction.Synchronization", "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param dayList list of calendar days\n@param exceptions list of exceptions" ]
void setRightChild(final byte b, @NotNull final MutableNode child) { final ChildReference right = children.getRight(); if (right == null || (right.firstByte & 0xff) != (b & 0xff)) { throw new IllegalArgumentException(); } children.setAt(children.size() - 1, new ChildReferenceMutable(b, child)); }
[ "Sets in-place the right child with the same first byte.\n\n@param b next byte of child suffix.\n@param child child node." ]
[ "Get a writer implementation to push data into Canvas while being able to control the behavior of blank values.\nIf the serializeNulls parameter is set to true, this writer will serialize null fields in the JSON being\nsent to Canvas. This is required if you want to explicitly blank out a value that is currently set to something.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param serializeNulls Whether or not to include null fields in the serialized JSON. Defaults to false if null\n@param <T> A writer implementation\n@return An instantiated instance of the requested writer type", "Get the photos for the specified group pool, optionally filtering by taf.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param groupId\nThe group ID\n@param userId\nThe user ID (may be null)\n@param tags\nThe optional tags (may be null)\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page (0 to ignore)\n@param page\nThe page offset (0 to ignore)\n@return A Collection of Photo objects\n@throws FlickrException", "Use this API to fetch statistics of spilloverpolicy_stats resource of given name .", "Performs the closure within a transaction using a cached connection.\nIf the closure takes a single argument, it will be called\nwith the connection, otherwise it will be called with no arguments.\n\n@param closure the given closure\n@throws SQLException if a database error occurs", "Close all JDBC objects related to this connection.", "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Remove control from the control bar. Size of control bar is updated based on new number of\ncontrols.\n@param name name of the control to remove", "delete of files more than 1 day old", "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" ]
public final void notifyFooterItemInserted(int position) { int newHeaderItemCount = getHeaderItemCount(); int newContentItemCount = getContentItemCount(); int newFooterItemCount = getFooterItemCount(); // if (position < 0 || position >= newFooterItemCount) { // throw new IndexOutOfBoundsException("The given position " + position // + " is not within the position bounds for footer items [0 - " // + (newFooterItemCount - 1) + "]."); // } notifyItemInserted(position + newHeaderItemCount + newContentItemCount); }
[ "Notifies that a footer item is inserted.\n\n@param position the position of the content item." ]
[ "Copied from AbstractEntityPersister", "Convert an ObjectBank to corresponding collection of data features and\nlabels.\n\n@return A List of pairs, one for each document, where the first element is\nan int[][][] representing the data and the second element is an\nint[] representing the labels.", "Check to see whether a packet starts with the standard header bytes, followed by a known byte identifying it.\nIf so, return the kind of packet that has been recognized.\n\n@param packet a packet that has just been received\n@param port the port on which the packet has been received\n\n@return the type of packet that was recognized, or {@code null} if the packet was not recognized", "Set the week of month.\n@param weekOfMonthStr the week of month to set.", "Creates a Source Processor\n\n@param source the data source itself\n@param parallelism the parallelism of this processor\n@param description the description of this processor\n@param taskConf the configuration of this processor\n@param system actor system\n@return the new created source processor", "Checks if the query should be executed using the debug mode where the security restrictions do not apply.\n@param cms the current context.\n@param query the query to execute.\n@return a flag, indicating, if the query should be performed in debug mode.", "Navigate to this address in the given model node.\n\n@param model the model node\n@param create {@code true} to create the last part of the node if it does not exist\n@return the submodel\n@throws NoSuchElementException if the model contains no such element\n\n@deprecated manipulating a deep DMR node tree via PathAddress is no longer how the management layer works\ninternally, so this method has become legacy cruft. Management operation handlers\nshould obtain a {@link org.jboss.as.controller.registry.Resource Resource} from the\n{@link org.jboss.as.controller.OperationContext#readResource(PathAddress) OperationContext}\nand use the {@code Resource} API to access child resources", "Injects bound fields\n\n@param instance The instance to inject into", "Add all elements in the iterator to the collection.\n\n@param target\n@param iterator\n@return true if the target was modified, false otherwise" ]
void apply() { final FlushLog log = new FlushLog(); store.logOperations(txn, log); final BlobVault blobVault = store.getBlobVault(); if (blobVault.requiresTxn()) { try { blobVault.flushBlobs(blobStreams, blobFiles, deferredBlobsToDelete, txn); } catch (Exception e) { // out of disk space not expected there throw ExodusException.toEntityStoreException(e); } } txn.setCommitHook(new Runnable() { @Override public void run() { log.flushed(); final EntityIterableCacheAdapterMutable cache = PersistentStoreTransaction.this.mutableCache; if (cache != null) { // mutableCache can be null if only blobs are modified applyAtomicCaches(cache); } } }); }
[ "exposed only for tests" ]
[ "Determines whether the given documentation part contains the specified tag with the given parameter having the\ngiven value.\n\n@param doc The documentation part\n@param tagName The tag to be searched for\n@param paramName The parameter that the tag is required to have\n@param paramValue The value of the parameter\n@return boolean Whether the documentation part has the tag and parameter", "convolution data type", "Switches to the next tab.", "Validates a favorite entry.\n\n<p>If the favorite entry references a resource or project that can't be read, this will return false.\n\n@param entry the favorite entry\n@return the", "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name .", "Use this API to fetch the statistics of all appfwpolicy_stats resources that are configured on netscaler.", "Set the named arguments.\n\n@param vars\nthe new named arguments", "Create a new photoset.\n\n@param title\nThe photoset title\n@param description\nThe photoset description\n@param primaryPhotoId\nThe primary photo id\n@return The new Photset\n@throws FlickrException", "Adds the newState and the edge between the currentState and the newState on the SFG.\n\n@param newState the new state.\n@param eventable the clickable causing the new state.\n@return the clone state iff newState is a clone, else returns null" ]
public List<TimephasedWork> getTimephasedOvertimeWork() { if (m_timephasedOvertimeWork == null && m_timephasedWork != null && getOvertimeWork() != null) { double perDayFactor = getRemainingOvertimeWork().getDuration() / (getRemainingWork().getDuration() - getRemainingOvertimeWork().getDuration()); double totalFactor = getRemainingOvertimeWork().getDuration() / getRemainingWork().getDuration(); perDayFactor = Double.isNaN(perDayFactor) ? 0 : perDayFactor; totalFactor = Double.isNaN(totalFactor) ? 0 : totalFactor; m_timephasedOvertimeWork = new DefaultTimephasedWorkContainer(m_timephasedWork, perDayFactor, totalFactor); } return m_timephasedOvertimeWork == null ? null : m_timephasedOvertimeWork.getData(); }
[ "Retrieves the timephased breakdown of the planned overtime work for this\nresource assignment.\n\n@return timephased planned work" ]
[ "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.", "Add additional source types", "Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions", "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted.", "Specify a specific index to run the query against\n\n@param designDocument set the design document to use\n@param indexName set the index name to use\n@return this to set additional options", "Creates the operation to add a resource.\n\n@param address the address of the operation to add.\n@param properties the properties to set for the resource.\n\n@return the operation.", "Writes a list of timephased data to the MSPDI file.\n\n@param assignmentID current assignment ID\n@param list output list of timephased data items\n@param data input list of timephased data\n@param type list type (planned or completed)", "Tells you if the date part of a datetime is in a certain time range.", "Processes graphical indicator definitions for each column." ]
private void nodeProperties(Options opt) { Options def = opt.getGlobalOptions(); if (opt.nodeFontName != def.nodeFontName) w.print(",fontname=\"" + opt.nodeFontName + "\""); if (opt.nodeFontColor != def.nodeFontColor) w.print(",fontcolor=\"" + opt.nodeFontColor + "\""); if (opt.nodeFontSize != def.nodeFontSize) w.print(",fontsize=" + fmt(opt.nodeFontSize)); w.print(opt.shape.style); w.println("];"); }
[ "Print the common class node's properties" ]
[ "Build a URL with Query String and URL Parameters.\n@param base base URL\n@param queryString query string\n@param values URL Parameters\n@return URL", "Given a filesystem, path and buffer-size, read the file contents and\npresents it as a string\n\n@param fs Underlying filesystem\n@param path The file to read\n@param bufferSize The buffer size to use for reading\n@return The contents of the file as a string\n@throws IOException", "Convert any number class to array of integer.\n\n@param <T> Type.\n@param array Array.\n@return Integer array.", "Convert an object to another object given a parameterized type signature\n\n@param context\n@param destinationType\nthe destination type\n@param source\nthe source object\n\n@return the converted object\n@throws ConverterException\nif conversion failed", "Updates the model. Ensures that we reset the columns widths.\n\n@param model table model", "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", "Publish finish events for each of the specified query types\n\n<pre>\n{@code\nRequestEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Identifier\n@param bus EventBus to post events to\n@param types Query types to post to event bus", "This should be called from a subclass constructor, if offset or length\nare unknown at a time when SubIIMInputStream constructor is called. This\nmethod shouldn't be called more than once.\n\n@param offset\nbyte offset\n@param length\nbyte length\n@throws IOException\nif underlying stream can't be read", "Generate the init script from the Artifactory URL.\n\n@return The generated script." ]
@Override public void registerChildren(ManagementResourceRegistration resourceRegistration) { // Register wildcard children last to prevent duplicate registration errors when override definitions exist for (ResourceDefinition rd : singletonChildren) { resourceRegistration.registerSubModel(rd); } for (ResourceDefinition rd : wildcardChildren) { resourceRegistration.registerSubModel(rd); } }
[ "Register child resources associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition" ]
[ "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors", "Set the specific device class of the node.\n@param specificDeviceClass the specificDeviceClass to set\n@exception IllegalArgumentException thrown when the specific device class does not match\nthe generic device class.", "Create a standalone target.\n\n@param controllerClient the connected controller client to a standalone instance.\n@return the remote target", "Performs a standard QR decomposition on the specified submatrix that is one block wide.\n\n@param blockLength\n@param Y\n@param gamma", "If users want to implement clone on all their objects, we can use this\nto make copies. This is hazardous as user may mess it up, but it is also\npotentially the fastest way of making a copy.\n\nUsually the OjbCloneable interface should just be delegating to the clone()\noperation that the user has implemented.\n\n@see org.apache.ojb.otm.copy.ObjectCopyStrategy#copy(Object)", "Creates a new empty HTML document tree.\n@throws ParserConfigurationException", "Parses values out of the header text.\n\n@param header header text", "Digest format to layer file name.\n\n@param digest\n@return", "Prepare a parallel HTTP POST Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder" ]
public List<TimephasedCost> getTimephasedActualCost() { if (m_timephasedActualCost == null) { Resource r = getResource(); ResourceType type = r != null ? r.getType() : ResourceType.WORK; //for Work and Material resources, we will calculate in the normal way if (type != ResourceType.COST) { if (m_timephasedActualWork != null && m_timephasedActualWork.hasData()) { if (hasMultipleCostRates()) { m_timephasedActualCost = getTimephasedCostMultipleRates(getTimephasedActualWork(), getTimephasedActualOvertimeWork()); } else { m_timephasedActualCost = getTimephasedCostSingleRate(getTimephasedActualWork(), getTimephasedActualOvertimeWork()); } } } else { m_timephasedActualCost = getTimephasedActualCostFixedAmount(); } } return m_timephasedActualCost; }
[ "Retrieves the timephased breakdown of actual cost.\n\n@return timephased actual cost" ]
[ "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "Set the permissions for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param permissions\nThe permissions object\n@throws FlickrException", "Returns whether this subnet or address has alphabetic digits when printed.\n\nNote that this method does not indicate whether any address contained within this subnet has alphabetic digits,\nonly whether the subnet itself when printed has alphabetic digits.\n\n@return whether the section has alphabetic digits when printed.", "Returns a new client id for the profileIdentifier\n\n@param model\n@param profileIdentifier\n@return json with a new client_id\n@throws Exception", "Use this API to fetch all the nsip6 resources that are configured on netscaler.", "Use this API to fetch aaapreauthenticationpolicy_binding resource of given name .", "Extracts the postal code, country code and service code from the primary data and returns the corresponding primary message\ncodewords.\n\n@return the primary message codewords", "Makes a CRFDatum by producing features and a label from input data at a\nspecific position, using the provided factory.\n\n@param info\nThe input data\n@param loc\nThe position to build a datum at\n@param featureFactory\nThe FeatureFactory to use to extract features\n@return The constructed CRFDatum", "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails." ]
public void execute(CommandHandler handler, int timeout, TimeUnit unit) throws CommandLineException, InterruptedException, ExecutionException, TimeoutException { ExecutableBuilder builder = new ExecutableBuilder() { CommandContext c = newTimeoutCommandContext(ctx); @Override public Executable build() { return () -> { handler.handle(c); }; } @Override public CommandContext getCommandContext() { return c; } }; execute(builder, timeout, unit); }
[ "public for testing purpose" ]
[ "a small helper to set the text color to a textView null save\n\n@param textView\n@param colorDefault", "The grammar elements that may occur at the given offset.", "Starts the named animation.\n@see GVRAvatar#stop(String)\n@see GVRAnimationEngine#start(GVRAnimation)", "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", "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader", "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", "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list", "Fills a rectangle in the image.\n\n@param x rect�s start position in x-axis\n@param y rect�s start positioj in y-axis\n@param w rect�s width\n@param h rect�s height\n@param c rect�s color", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name ." ]
public static MediaType nonBinaryUtf8( MediaType.Type type, String subType ) { return new MediaType( type, subType, UTF_8 ); }
[ "Creates a non-binary media type with the given type, subtype, and UTF-8 encoding\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}" ]
[ "Parses operations where the input comes from variables to its left and right\n\n@param ops List of operations which should be parsed\n@param tokens List of all the tokens\n@param sequence List of operation sequence", "Use this API to add autoscaleprofile resources.", "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", "visibility increased for testing", "Parse an extended attribute date value.\n\n@param value string representation\n@return date value", "Watches specified IDs in a collection.\n@param ids the ids to watch.\n@return the stream of change events.", "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null.", "Use this API to update nspbr6.", "Returns a query filter for the given document _id and version. The version is allowed to be\nnull. The query will match only if there is either no version on the document in the database\nin question if we have no reference of the version or if the version matches the database's\nversion.\n\n@param documentId the _id of the document.\n@param version the expected version of the document, if any.\n@return a query filter for the given document _id and version for a remote operation." ]
public static List<String> enableJMX(List<String> jvmArgs) { final String arg = "-D" + OPT_JMX_REMOTE; if (jvmArgs.contains(arg)) return jvmArgs; final List<String> cmdLine2 = new ArrayList<>(jvmArgs); cmdLine2.add(arg); return cmdLine2; }
[ "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args" ]
[ "Use this API to add dnsaaaarec resources.", "Call the onQueryExecuteTimeLimitExceeded hook if necessary\n@param sql sql statement that took too long\n@param queryStartTime time when query was started.", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the proper value", "Deploys application reading resources from specified InputStream.\n\n@param inputStream where resources are read\n@throws IOException", "Validates bic.\n\n@param bic to be validated.\n@throws BicFormatException if bic is invalid.\nUnsupportedCountryException if bic's country is not supported.", "Loads the favorite list.\n\n@return the list of favorites\n\n@throws CmsException if something goes wrong", "Returns true if a pixel with the given color exists\n\n@param color the pixel colour to look for.\n@return true if there exists at least one pixel that has the given pixels color", "Use this API to update gslbsite.", "Pauses a given deployment\n\n@param deployment The deployment to pause\n@param listener The listener that will be notified when the pause is complete" ]
@Override public void invert(DMatrixRMaj A_inv) { blockB.reshape(A_inv.numRows,A_inv.numCols,false); alg.invert(blockB); MatrixOps_DDRB.convert(blockB,A_inv); }
[ "Creates a block matrix the same size as A_inv, inverts the matrix and copies the results back\nonto A_inv.\n\n@param A_inv Where the inverted matrix saved. Modified." ]
[ "Returns the number of days from the given weekday to the next weekday the event should occur.\n@param weekDay the current weekday.\n@return the number of days to the next weekday an event could occur.", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "Updates property of parent id for the image provided.\nReturns false if image was not captured true otherwise.\n\n@param log\n@param imageTag\n@param host\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "page breaks should be near the bottom of the band, this method used while adding subreports\nwhich has the \"start on new page\" option.\n@param band", "Parse duration represented in thousandths of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@return Duration instance", "Check if this type is assignable from the given Type.", "Replaces current Collection mapped to key with the specified Collection.\nUse carefully!", "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 )", "Multiplied a transpose orthogonal matrix Q by the specified rotator. This is used\nto update the U and V matrices. Updating the transpose of the matrix is faster\nsince it only modifies the rows.\n\n\n@param Q Orthogonal matrix\n@param m Coordinate of rotator.\n@param n Coordinate of rotator.\n@param c cosine of rotator.\n@param s sine of rotator." ]
public List<BoxTaskAssignment.Info> getAssignments() { URL url = GET_ASSIGNMENTS_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); int totalCount = responseJSON.get("total_count").asInt(); List<BoxTaskAssignment.Info> assignments = new ArrayList<BoxTaskAssignment.Info>(totalCount); JsonArray entries = responseJSON.get("entries").asArray(); for (JsonValue value : entries) { JsonObject assignmentJSON = value.asObject(); BoxTaskAssignment assignment = new BoxTaskAssignment(this.getAPI(), assignmentJSON.get("id").asString()); BoxTaskAssignment.Info info = assignment.new Info(assignmentJSON); assignments.add(info); } return assignments; }
[ "Gets any assignments for this task.\n@return a list of assignments for this task." ]
[ "Returns a Client object for a clientUUID and profileId\n\n@param clientUUID UUID or friendlyName of client\n@param profileId - can be null, safer if it is not null\n@return Client object or null\n@throws Exception exception", "Obtain override ID\n\n@param overrideIdentifier can be the override ID or class name\n@return\n@throws Exception", "Retrieves the work variance.\n\n@return work variance", "submit the adminClient after usage is completed.\nBehavior is undefined, if checkin is called with objects not retrieved\nfrom checkout.\n\n@param client AdminClient retrieved from checkout", "Replies the elements of the left map without the pairs in the right map.\nIf the pair's values differ from\nthe value within the map, the map entry is not removed.\n\n<p>\nThe difference is an immutable\nsnapshot of the state of the maps at the time this method is called. It\nwill never change, even if the maps change at a later time.\n</p>\n\n<p>\nSince this method uses {@code HashMap} instances internally, the keys of\nthe supplied maps must be well-behaved with respect to\n{@link Object#equals} and {@link Object#hashCode}.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the map to update.\n@param right the pairs to remove.\n@return the map with the content of the left map except the pairs of the right map.\n@since 2.15", "A find query only given as criterion. Leave it to MongoDB's own parser to handle it.\n\n@return the {@link Rule} to identify a find query only", "Notifies that multiple footer items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Gets the value of the callout property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the callout property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetCallout().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link Callouts.Callout }", "Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String" ]
@SuppressWarnings("rawtypes") public static MonetaryAmountFactory getAmountFactory(MonetaryAmountFactoryQuery query) { return Optional.ofNullable(monetaryAmountsSingletonQuerySpi()).orElseThrow(() -> new MonetaryException( "No MonetaryAmountsSingletonQuerySpi loaded, query functionality is not available.")) .getAmountFactory(query); }
[ "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." ]
[ "Create the log if it does not exist or return back exist log\n\n@param topic the topic name\n@param partition the partition id\n@return read or create a log\n@throws IOException any IOException", "Write the provided chunk at the offset specified in the token. If finalChunk is set, the file\nwill be closed.", "Convert an ObjectBank to arrays of data features and labels.\n\n@return A Pair, where the first element is an int[][][][] representing the\ndata and the second element is an int[][] representing the labels.", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "This method calls the index state. It should be called once per crawl in order to setup the\ncrawl.\n\n@return The initial state.", "Use this API to fetch service_dospolicy_binding resources of given name .", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "Transforms a length according to the current transformation matrix.", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests" ]
public void retrieveReferences(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException { Iterator i = cld.getObjectReferenceDescriptors().iterator(); // turn off auto prefetching for related proxies final Class saveClassToPrefetch = classToPrefetch; classToPrefetch = null; pb.getInternalCache().enableMaterializationCache(); try { while (i.hasNext()) { ObjectReferenceDescriptor rds = (ObjectReferenceDescriptor) i.next(); retrieveReference(newObj, cld, rds, forced); } pb.getInternalCache().disableMaterializationCache(); } catch(RuntimeException e) { pb.getInternalCache().doLocalClear(); throw e; } finally { classToPrefetch = saveClassToPrefetch; } }
[ "Retrieve all References\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true loading is forced even if cld differs." ]
[ "width of input section", "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.", "The indices space is ignored for reduce ops other than min or max.", "Get a collection of Photo objects for the specified Photoset.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\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@param photosetId\nThe photoset ID\n@param extras\nSet of extra-fields\n@param privacy_filter\nfilter value for authenticated calls\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return PhotoList The Collection of Photo objects\n@throws FlickrException", "Get the time zone for a specific stock or index.\nFor stocks, the exchange suffix is extracted from the stock symbol to retrieve the time zone.\n\n@param symbol stock symbol in YahooFinance\n@return time zone of the exchange on which this stock is traded", "Gets external resource for an HTML page in the setup-resources folder.\n\n@param context the context\n@param name the file name\n\n@return the resource for the HTML page", "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", "Use this API to add vlan resources.", "Sets the right padding for all cells in the table.\n@param paddingRight new padding, ignored if smaller than 0\n@return this to allow chaining" ]
@SuppressWarnings("unchecked") public B setTargetType(Class<?> type) { Objects.requireNonNull(type); set(AbstractQuery.KEY_QUERY_TARGET_TYPE, type); return (B) this; }
[ "Sets the target implementation type required. This can be used to explicitly acquire a specific\nimplementation\ntype and use a query to configure the instance or factory to be returned.\n\n@param type the target implementation type, not null.\n@return this query builder for chaining." ]
[ "This method extracts calendar data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param map Map of calendar UIDs to names", "Create a set containing all the processors in the graph.", "Add a mapping of properties between two beans\n\n@param beanToBeanMapping", "Puts value at given column\n\n@param value Will be encoded using UTF-8", "Obtain instance of the SQL Service\n\n@return instance of SQLService\n@throws Exception exception", "Use this API to fetch auditsyslogpolicy_vpnglobal_binding resources of given name .", "This method is called to try to catch any invalid tasks that may have sneaked past all our other checks.\nThis is done by validating the tasks by task ID.", "Adds OPT_Z | OPT_ZONE option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Compute the proportional padding for all items in the cache\n@param cache Cache data set\n@return the uniform padding amount" ]
public static boolean isTypesProxyable(Iterable<? extends Type> types, ServiceRegistry services) { return getUnproxyableTypesException(types, services) == null; }
[ "Indicates if a set of types are all proxyable\n\n@param types The types to test\n@return True if proxyable, false otherwise" ]
[ "Returns the red color component of a color from a vertex color set.\n\n@param vertex the vertex index\n@param colorset the color set\n@return the red color component", "If needed declares and sets up internal data structures.\n\n@param A Matrix being decomposed.", "Cancel request and worker on host.\n\n@param targetHosts\nthe target hosts", "Attempt to shutdown the server. As much shutdown as possible will be\ncompleted, even if intermediate errors are encountered.\n\n@throws VoldemortException", "On throwable.\n\n@param cause\nthe cause", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "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.", "Show only the following channels.\n@param channels The names of the channels to show.\n@return this", "Get log level depends on provided client parameters such as verbose and quiet." ]
public static SimpleMatrix diag( Class type, double ...vals ) { SimpleMatrix M = new SimpleMatrix(vals.length,vals.length,type); for (int i = 0; i < vals.length; i++) { M.set(i,i,vals[i]); } return M; }
[ "Creates a real valued diagonal matrix of the specified type" ]
[ "Read all top level tasks.", "Use this API to fetch nssimpleacl resources of given names .", "Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the PGP secure keyring if it was found,\nnull otherwise", "Finds an Object of the specified type.\n\n@param <T> Object type.\n@param classType The class of type T.\n@param id The document _id field.\n@param rev The document _rev field.\n@return An object of type T.\n@throws NoDocumentException If the document is not found in the database.", "Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.", "Use this API to add ntpserver resources.", "Merges a list of local and online dumps. For dumps available both online\nand locally, only the local version is included. The list is order with\nmost recent dump date first.\n\n@return a merged list of dump files", "Return the discount factor within a given model context for a given maturity.\n@param model The model used as a context (not required for this class).\n@param maturity The maturity in terms of ACT/365 daycount form this curve reference date. Note that this parameter might get rescaled to a different time parameter.\n@see net.finmath.marketdata.model.curves.DiscountCurveInterface#getDiscountFactor(net.finmath.marketdata.model.AnalyticModelInterface, double)", "Gets the file from which boot operations should be parsed.\n@return the file. Will not be {@code null}" ]
private ModelNode parseAddress(final String profileName, final String inputAddress) { final ModelNode result = new ModelNode(); if (profileName != null) { result.add(ServerOperations.PROFILE, profileName); } String[] parts = inputAddress.split(","); for (String part : parts) { String[] address = part.split("="); if (address.length != 2) { throw new RuntimeException(part + " is not a valid address segment"); } result.add(address[0], address[1]); } return result; }
[ "Parses the comma delimited address into model nodes.\n\n@param profileName the profile name for the domain or {@code null} if not a domain\n@param inputAddress the address.\n\n@return a collection of the address nodes." ]
[ "Adds the specified list of objects at the end of the array.\n\n@param collection The objects to add at the end of the array.", "Convert an Object of type Class to an Object.", "Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved.", "Add the given person to the photo. Optionally, send in co-ordinates\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrException", "Gets a property from system, environment or an external map.\nThe lookup order is system > env > map > defaultValue.\n\n@param name\nThe name of the property.\n@param map\nThe external map.\n@param defaultValue\nThe value that should be used if property is not found.", "Authenticate with the target database using OAuth.\n\n@param consumerSecret consumer secret\n@param consumerKey consumer key\n@param tokenSecret token secret\n@param token token\n@return this Replication instance to set more options\n@deprecated OAuth 1.0 implementation has been <a href=\"http://docs.couchdb.org/en/stable/whatsnew/2.1.html?highlight=oauth#upgrade-notes\"\ntarget=\"_blank\">removed in CouchDB 2.1</a>", "1.5 and on, 2.0 and on, 3.0 and on.", "Serializes the timing data to a \"~\" delimited file at outputPath.", "Create a host target.\n\n@param hostName the host name\n@param client the connected controller client to the master host.\n@return the remote target" ]
public void getRepresentationContent(String representationHint, String assetPath, OutputStream output) { List<Representation> reps = this.getInfoWithRepresentations(representationHint).getRepresentations(); if (reps.size() < 1) { throw new BoxAPIException("No matching representations found"); } Representation representation = reps.get(0); String repState = representation.getStatus().getState(); if (repState.equals("viewable") || repState.equals("success")) { this.makeRepresentationContentRequest(representation.getContent().getUrlTemplate(), assetPath, output); return; } else if (repState.equals("pending") || repState.equals("none")) { String repContentURLString = null; while (repContentURLString == null) { repContentURLString = this.pollRepInfo(representation.getInfo().getUrl()); } this.makeRepresentationContentRequest(repContentURLString, assetPath, output); return; } else if (repState.equals("error")) { throw new BoxAPIException("Representation had error status"); } else { throw new BoxAPIException("Representation had unknown status"); } }
[ "Fetches the contents of a file representation with asset path and writes them to the provided output stream.\n@see <a href=https://developer.box.com/reference#section-x-rep-hints-header>X-Rep-Hints Header</a>\n@param representationHint the X-Rep-Hints query for the representation to fetch.\n@param assetPath the path of the asset for representations containing multiple files.\n@param output the output stream to write the contents to." ]
[ "Whether the given value generation strategy requires to read the value from the database or not.", "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "Writes an activity to a PM XML file.\n\n@param mpxj MPXJ Task instance", "Starts this EventStream and begins long polling the API.\n@throws IllegalStateException if the EventStream is already started.", "ten less than Cube Q", "Gets the Hamming distance between two strings.\n\n@param first First string.\n@param second Second string.\n@return The Hamming distance between p and q.", "Checks whether a built of the indices is necessary.\n@param cms The appropriate CmsObject instance.\n@return true, if the spellcheck indices have to be rebuilt, otherwise false", "Return an instance of this class.\n\n@param container Solr CoreContainer container object in order to create a server object.\n\n@return instance of CmsSolrSpellchecker", "Log table contents.\n\n@param label label text\n@param klass reader class name\n@param map table data" ]
public void setExplicitTime(String hours, String minutes, String seconds, String amPm, String zoneString) { int hoursInt = Integer.parseInt(hours); int minutesInt = minutes != null ? Integer.parseInt(minutes) : 0; assert(amPm == null || amPm.equals(AM) || amPm.equals(PM)); assert(hoursInt >= 0); assert(minutesInt >= 0 && minutesInt < 60); markTimeInvocation(amPm); // reset milliseconds to 0 _calendar.set(Calendar.MILLISECOND, 0); // if no explicit zone is given, we use our own TimeZone zone = null; if(zoneString != null) { if(zoneString.startsWith(PLUS) || zoneString.startsWith(MINUS)) { zoneString = GMT + zoneString; } zone = TimeZone.getTimeZone(zoneString); } _calendar.setTimeZone(zone != null ? zone : _defaultTimeZone); _calendar.set(Calendar.HOUR_OF_DAY, hoursInt); // hours greater than 12 are in 24-hour time if(hoursInt <= 12) { int amPmInt = amPm == null ? (hoursInt >= 12 ? Calendar.PM : Calendar.AM) : amPm.equals(PM) ? Calendar.PM : Calendar.AM; _calendar.set(Calendar.AM_PM, amPmInt); // calendar is whacky at 12 o'clock (must use 0) if(hoursInt == 12) hoursInt = 0; _calendar.set(Calendar.HOUR, hoursInt); } if(seconds != null) { int secondsInt = Integer.parseInt(seconds); assert(secondsInt >= 0 && secondsInt < 60); _calendar.set(Calendar.SECOND, secondsInt); } else { _calendar.set(Calendar.SECOND, 0); } _calendar.set(Calendar.MINUTE, minutesInt); }
[ "Sets the the time of day\n\n@param hours the hours to set. Must be guaranteed to parse as an\ninteger between 0 and 23\n\n@param minutes the minutes to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param seconds the optional seconds to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param amPm the meridian indicator to use. Must be either 'am' or 'pm'\n\n@param zoneString the time zone to use in one of two formats:\n- zoneinfo format (America/New_York, America/Los_Angeles, etc)\n- GMT offset (+05:00, -0500, +5, etc)" ]
[ "Detect and apply waves, now or when the widget is attached.\n\n@param widget target widget to ensure is attached first", "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "Delivers the correct JSON Object for outgoings\n\n@param outgoings\n@throws org.json.JSONException", "Get cached value that is dynamically loaded by the Acacia content editor.\n\n@param attribute the attribute to load the value to\n@return the cached value", "Use this API to fetch all the vpath resources that are configured on netscaler.", "Operators which affect the variables to its left and right", "Remove an write lock.", "creates a point array of all dockers and add it to the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Handles the response of the SerialApiGetInitData request.\n@param incomingMlivessage the response message to process." ]
public static ProjectWriter getProjectWriter(String name) throws InstantiationException, IllegalAccessException { int index = name.lastIndexOf('.'); if (index == -1) { throw new IllegalArgumentException("Filename has no extension: " + name); } String extension = name.substring(index + 1).toUpperCase(); Class<? extends ProjectWriter> fileClass = WRITER_MAP.get(extension); if (fileClass == null) { throw new IllegalArgumentException("Cannot write files of type: " + name); } ProjectWriter file = fileClass.newInstance(); return (file); }
[ "Retrieves a ProjectWriter instance which can write a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectWriter instance" ]
[ "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Add a Comparator to the end of the chain using the provided sort order.\n@param comparator the Comparator to add to the end of the chain\n@param ascending the sort order: ascending (true) or descending (false)", "For use on a slave HC to get all the server groups used by the host\n\n@param hostResource the host resource\n@return the server configs on this host", "Parses a string that contains single fat client config string in avro\nformat\n\n@param configAvro Input string of avro format, that contains config for\nmultiple stores\n@return Properties of single fat client config", "Accesses a property from the DB configuration for the selected DB.\n\n@param name the name of the property\n@return the value of the property", "Gets the i-th half-edge associated with the face.\n\n@param i\nthe half-edge index, in the range 0-2.\n@return the half-edge", "Commit all written data to the physical disk\n\n@throws IOException any io exception", "Find the path to the first association in the property path.\n\n@param targetTypeName the entity with the property\n@param pathWithoutAlias the path to the property WITHOUT the alias\n@return the path to the first association or {@code null} if there isn't an association in the property path", "Convenience routine to move to the next iterator if needed.\n@return true if the iterator is changed, false if no changes." ]
protected void modify(Transaction t) { try { this.lock.writeLock().lock(); t.perform(); } finally { this.lock.writeLock().unlock(); } }
[ "Executes the given transaction within the context of a write lock.\n\n@param t The transaction to execute." ]
[ "This method converts a node to text.\n\nLeading and trailing text from hidden tokens (whitespace/comments) is removed. Text from hidden tokens that is\nsurrounded by text from non-hidden tokens is summarized to a single whitespace.\n\nThe preferred use case of this method is to convert the {@link ICompositeNode} that has been created for a data\ntype rule to text.\n\nThis is also the recommended way to convert a node to text if you want to invoke\n{@link org.eclipse.xtext.conversion.IValueConverterService#toValue(String, String, INode)}", "Returns the getter method for field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@return the getter associated with the field on the object\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible", "Transforms a list of Integer objects to an array of primitive int values.\n\n@param integers\n@return", "Inverts the value of the bit at the specified index.\n@param index The bit to flip (0 is the least-significant bit).\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Checks that the targetClass is widening the argument class\n\n@param argumentClass\n@param targetClass\n@return", "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "Constructs a full capability name from a static base name and a dynamic element.\n\n@param baseName the base name. Cannot be {@code null}\n@param dynamicNameElement the dynamic portion of the name. Cannot be {@code null}\n@return the full capability name. Will not return {@code null}", "Checks whether a built of the indices is necessary.\n@param cms The appropriate CmsObject instance.\n@return true, if the spellcheck indices have to be rebuilt, otherwise false", "This essentially ensures that we only store a single Vertex for each unique \"Set\" of tags." ]
public static int cudnnPoolingForward( cudnnHandle handle, cudnnPoolingDescriptor poolingDesc, Pointer alpha, cudnnTensorDescriptor xDesc, Pointer x, Pointer beta, cudnnTensorDescriptor yDesc, Pointer y) { return checkResult(cudnnPoolingForwardNative(handle, poolingDesc, alpha, xDesc, x, beta, yDesc, y)); }
[ "Function to perform forward pooling" ]
[ "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Get the cached entry or null if no valid cached entry is found.", "rollback the transaction", "Checks whether a String satisfies the number range selection filter.\nThe test is evaluated based on the rightmost natural number found in\nthe String. Note that this is just evaluated on the String as given.\nIt is not trying to interpret it as a filename and to decide whether\nthe file exists, is a directory or anything like that.\n\n@param str The String to check for a number in\n@return true If the String is within the ranges filtered for", "Writes the results of the processing to a file.", "Helper method to create a Dao object without having to define a class. Dao classes are supposed to be convenient\nbut if you have a lot of classes, they can seem to be a pain.\n\n<p>\n<b>NOTE:</b> You should use {@link DaoManager#createDao(ConnectionSource, DatabaseTableConfig)} instead of this\nmethod so you won't have to create the DAO multiple times.\n</p>", "Compute the CRC32 of the segment of the byte array given by the\nspecificed size and offset\n\n@param bytes The bytes to checksum\n@param offset the offset at which to begin checksumming\n@param size the number of bytes to checksum\n@return The CRC32", "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", "Read an individual Phoenix task relationship.\n\n@param relation Phoenix task relationship" ]
public final Jar setAttribute(String section, String name, String value) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Manifest cannot be modified after entries are added."); Attributes attr = getManifest().getAttributes(section); if (attr == null) { attr = new Attributes(); getManifest().getEntries().put(section, attr); } attr.putValue(name, value); return this; }
[ "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." ]
[ "Returns the designer version from the manifest.\n@param context\n@return version", "Read custom fields for a GanttProject resource.\n\n@param gpResource GanttProject resource\n@param mpxjResource MPXJ Resource instance", "Retrieve the details of a single project from the database.\n\n@param result Map instance containing the results\n@param row result set row read from the database", "Use this API to fetch dnsview resource of given name .", "Set the meta data for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param title\nThe new title\n@param description\nThe new description\n@throws FlickrException", "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class", "Returns the dot product of this vector and v1.\n\n@param v1\nright-hand vector\n@return dot product", "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "Populate the properties indicating the source of this schedule.\n\n@param properties project properties" ]
private <T> RequestBuilder doPrepareRequestBuilderImpl( ResponseReader responseReader, String methodName, RpcStatsContext statsContext, String requestData, AsyncCallback<T> callback) { if (getServiceEntryPoint() == null) { throw new NoServiceEntryPointSpecifiedException(); } RequestCallback responseHandler = doCreateRequestCallback(responseReader, methodName, statsContext, callback); ensureRpcRequestBuilder(); rpcRequestBuilder.create(getServiceEntryPoint()); rpcRequestBuilder.setCallback(responseHandler); // changed code rpcRequestBuilder.setSync(isSync(methodName)); // changed code rpcRequestBuilder.setContentType(RPC_CONTENT_TYPE); rpcRequestBuilder.setRequestData(requestData); rpcRequestBuilder.setRequestId(statsContext.getRequestId()); return rpcRequestBuilder.finish(); }
[ "Configures a RequestBuilder to send an RPC request.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a RequestBuilder object that is ready to have its\n{@link RequestBuilder#send()} method invoked." ]
[ "Calculate delta with another vector\n@param v another vector\n@return delta vector", "Notifies that an existing footer item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "If we have a class Foo with a collection of Bar's then we go through Bar's DAO looking for a Foo field. We need\nthis field to build the query that is able to find all Bar's that have foo_id that matches our id.", "Convert a string value into the appropriate Java field value.", "Whether the address has the well-known prefix for IPv4 translatable addresses as in rfc 6052 and 6144\n@return", "Returns a compact representation of all of the stories on the task.\n\n@param task The task containing the stories to get.\n@return Request object", "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", "request token from FCM", "Implements getAll by delegating to get." ]
public static void ensureXPathNotEmpty(NodeList nodeList, String expression) { if (nodeList == null || nodeList.getLength() == 0) { throw LOG.unableToFindXPathExpression(expression); } }
[ "Ensure that the nodeList is either null or empty.\n\n@param nodeList the nodeList to ensure to be either null or empty\n@param expression the expression was used to fine the nodeList\n@throws SpinXPathException if the nodeList is either null or empty" ]
[ "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\n@param lexRange\n@return the range of elements", "FOR internal use. This method was called after the external transaction was completed.\n\n@see javax.transaction.Synchronization", "Assign based on execution time history. The algorithm is a greedy heuristic\nassigning the longest remaining test to the slave with the\nshortest-completion time so far. This is not optimal but fast and provides\na decent average assignment.", "See also JLS8, 4.12.5 Initial Values of Variables.\n\n@param type\n@return the default value for the given type as defined by JLS", "Check whether the URL contains one of the patterns.\n\n@param uri URI\n@param patterns possible patterns\n@return true when URL contains one of the patterns", "Notifies that multiple header items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Sets the polling status.\n\n@param status the polling status.\n@param statusCode the HTTP status code\n@throws IllegalArgumentException thrown if status is null.", "Should the URI explicitly not be cached.\n\n@param requestUri request URI\n@return true when caching is prohibited", "Deletes an individual alias\n\n@param alias\nthe alias to delete" ]
public List<RoutableDestination<T>> getDestinations(String path) { String cleanPath = (path.endsWith("/") && path.length() > 1) ? path.substring(0, path.length() - 1) : path; List<RoutableDestination<T>> result = new ArrayList<>(); for (ImmutablePair<Pattern, RouteDestinationWithGroups> patternRoute : patternRouteList) { Map<String, String> groupNameValuesBuilder = new HashMap<>(); Matcher matcher = patternRoute.getFirst().matcher(cleanPath); if (matcher.matches()) { int matchIndex = 1; for (String name : patternRoute.getSecond().getGroupNames()) { String value = matcher.group(matchIndex); groupNameValuesBuilder.put(name, value); matchIndex++; } result.add(new RoutableDestination<>(patternRoute.getSecond().getDestination(), groupNameValuesBuilder)); } } return result; }
[ "Get a list of destinations and the values matching templated parameter for the given path.\nReturns an empty list when there are no destinations that are matched.\n\n@param path path to be routed.\n@return List of Destinations matching the given route." ]
[ "Deserialize a directory of javascript design documents to a List of DesignDocument objects.\n\n@param directory the directory containing javascript files\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "Remove a partition from the node provided\n\n@param node The node from which we're removing the partition\n@param donatedPartition The partitions to remove\n@return The new node without the partition", "Adds the given service provider factory to the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Painter the tile, by building a URL where the image can be found.\n\n@param tile\nMust be an instance of {@link InternalTile}, and must have a non-null {@link RasterUrlBuilder}.\n@return Returns a {@link InternalTile}.", "Bessel function of order 0.\n\n@param x Value.\n@return J0 value.", "Provides a reverse view on the given list which is especially useful to traverse a list backwards in a for-each\nloop. The list itself is not modified by calling this method.\n\n@param list\nthe list whose elements should be traversed in reverse. May not be <code>null</code>.\n@return a list with the same elements as the given list, in reverse", "Create a new connection manager, based on an existing connection.\n\n@param connection the existing connection\n@param openHandler a connection open handler\n@return the connected manager", "Creates a non-binary media type with the given type, subtype, and UTF-8 encoding\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}" ]
public boolean find() { if (findIterator == null) { findIterator = root.iterator(); } if (findCurrent != null && matches()) { return true; } while (findIterator.hasNext()) { findCurrent = findIterator.next(); resetChildIter(findCurrent); if (matches()) { return true; } } return false; }
[ "Find the next match of the pattern on the tree\n\n@return whether there is a match somewhere in the tree" ]
[ "Set the background color.\n\nIf you don't set the background color, the default is an opaque black:\n{@link Color#BLACK}, 0xff000000.\n\n@param color\nAn Android 32-bit (ARGB) {@link Color}, such as you get from\n{@link Resources#getColor(int)}", "Converts a batch indexing into the sample, to a batch indexing into the\noriginal function.\n\n@param batch The batch indexing into the sample.\n@return A new batch indexing into the original function, containing only\nthe indices from the sample.", "Facade method facilitating the creation of subshell.\nSubshell is created and run inside Command method and shares the same IO and naming strategy.\n\nRun the obtained Shell with commandLoop().\n\n@param pathElement sub-prompt\n@param parent Shell to be subshell'd\n@param appName The app name string\n@param mainHandler Command handler\n@param auxHandlers Aux handlers to be passed to all subshells.\n@return subshell", "Returns the value of the indicated property of the current object on the specified level.\n\n@param level The level\n@param name The name of the property\n@return The property value", "called when we are completed finished with using the TcpChannelHub", "Called when the end type is changed.", "Re-maps a provided collection.\n\n@param <T_Result>\ntype of result\n@param <T_Source>\ntype of source\n@param source\nfor mapping\n@param mapper\nelement mapper\n@return mapped source", "Set a status message in the JTextComponent passed to this\nmodel.\n@param message The message that should be displayed.", "This method extracts project properties from a GanttProject file.\n\n@param ganttProject GanttProject file" ]
List getOrderby() { List result = _getOrderby(); Iterator iter = getCriteria().iterator(); Object crit; while (iter.hasNext()) { crit = iter.next(); if (crit instanceof Criteria) { result.addAll(((Criteria) crit).getOrderby()); } } return result; }
[ "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List" ]
[ "Returns the ordered Map value of the field.\n\n@return the ordered Map value of the field. It returns a reference of the value.\n@throws IllegalArgumentException if the value cannot be converted to ordered Map.", "Generates the routing Java source code", "Commits the working copy.\n\n@param commitMessage@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure", "we can't call this method 'of', cause it won't compile on JDK7", "Rent a car available in the last serach result\n@param intp - the command interpreter instance", "Tests the string edit distance function.", "Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPutVals that were rejected as obsolete", "The parameter 'project' is not used at the moment, but will be used once schema and plugin support lands.", "Add the key and return it's index code. If the key already is present, the previous\nindex code is returned and no insertion is done.\n\n@param key key to add\n@return index of the key" ]
public void growInternal(int amount ) { int tmp[] = new int[ data.length + amount ]; System.arraycopy(data,0,tmp,0,data.length); this.data = tmp; }
[ "Increases the internal array's length by the specified amount. Previous values are preserved.\nThe length value is not modified since this does not change the 'meaning' of the array, just\nincreases the amount of data which can be stored in it.\n\nthis.data = new data_type[ data.length + amount ]\n\n\n@param amount Number of elements added to the internal array's length" ]
[ "Watches specified IDs in a collection.\n@param ids the ids to watch.\n@return the stream of change events.", "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.", "Parses a single query item for the query facet.\n@param item JSON object of the query item.\n@return the parsed query item, or <code>null</code> if parsing failed.", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "Creates a descriptor for the currently edited message bundle.\n@return <code>true</code> if the descriptor could be created, <code>false</code> otherwise.", "a simple contains helper method, checks if array contains a numToCheck\n\n@param array array of ints\n@param numToCheck value to find\n@return True if found, false otherwise", "Adds each required length, ensuring it isn't negative.\n\n@param requiredLengths\none or more required lengths\n@throws IllegalArgumentException\nif a supplied length is negative", "Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.\n\n@param s a Penn TreeBank POS tag.", "Apply the remote read domain model result.\n\n@param result the domain model result\n@return whether it was applied successfully or not" ]
private static void checkPreconditions(final int maxSize, final String suffix) { if( maxSize <= 0 ) { throw new IllegalArgumentException(String.format("maxSize should be > 0 but was %d", maxSize)); } if( suffix == null ) { throw new NullPointerException("suffix should not be null"); } }
[ "Checks the preconditions for creating a new Truncate processor.\n\n@param maxSize\nthe maximum size of the String\n@param suffix\nthe String to append if the input is truncated (e.g. \"...\")\n@throws IllegalArgumentException\nif {@code maxSize <= 0}\n@throws NullPointerException\nif suffix is null" ]
[ "Overridden method always creating a new instance\n\n@param contextual The bean to create\n@param creationalContext The creation context", "Send an ERROR log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param msg The message you would like logged.\n@return", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory", "Use this API to convert sslpkcs12.", "Gen error response.\n\n@param t\nthe t\n@return the response on single request", "Frees the temporary LOBs when an exception is raised in the application\nor when the LOBs are no longer needed. If the LOBs are not freed, the\nspace used by these LOBs are not reclaimed.\n@param clob CLOB-wrapper to free or null\n@param blob BLOB-wrapper to free or null", "returns a sorted array of enum constants", "Creates a namespace if needed.", "Use this API to delete dnspolicylabel of given name." ]
public List<com.groupon.odo.proxylib.models.Method> getMethodsNotInGroup(int groupId) throws Exception { List<com.groupon.odo.proxylib.models.Method> allMethods = getAllMethods(); List<com.groupon.odo.proxylib.models.Method> methodsNotInGroup = new ArrayList<com.groupon.odo.proxylib.models.Method>(); List<com.groupon.odo.proxylib.models.Method> methodsInGroup = editService.getMethodsFromGroupId(groupId, null); for (int i = 0; i < allMethods.size(); i++) { boolean add = true; String methodName = allMethods.get(i).getMethodName(); String className = allMethods.get(i).getClassName(); for (int j = 0; j < methodsInGroup.size(); j++) { if ((methodName.equals(methodsInGroup.get(j).getMethodName())) && (className.equals(methodsInGroup.get(j).getClassName()))) { add = false; } } if (add) { methodsNotInGroup.add(allMethods.get(i)); } } return methodsNotInGroup; }
[ "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" ]
[ "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.", "Get the Roman Numeral of the current value\n@return", "Update an object in the database to change its id to the newId parameter.", "Show only the given channel.\n@param channels The channels to show", "Use this API to fetch vpnvserver_auditnslogpolicy_binding resources of given name .", "Log a trace message with a throwable.", "Switches from a sparse to dense matrix", "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array.", "Checks if the given operator code is a valid one.\n\n@param operatorCode an operator code to evaluate\n@throws IllegalStateException if operatorCode is not a known operator code." ]
public ItemRequest<CustomField> insertEnumOption(String customField) { String path = String.format("/custom_fields/%s/enum_options/insert", customField); return new ItemRequest<CustomField>(this, CustomField.class, path, "POST"); }
[ "Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object" ]
[ "Specify the string and the int identifying which word shaper to\nuse and this returns the result of using that wordshaper on the String.\n\n@param inStr String to calculate word shape of\n@param wordShaper Constant for which shaping formula to use\n@param knownLCWords A Collection of known lowercase words, which some shapers use\nto decide the class of capitalized words.\n<i>Note: while this code works with any Collection, you should\nprovide a Set for decent performance.</i> If this parameter is\nnull or empty, then this option is not used (capitalized words\nare treated the same, regardless of whether the lowercased\nversion of the String has been seen).\n@return The wordshape String", "Log long string using verbose tag\n\n@param TAG The tag.\n@param longString The long string.", "Triggers expansion of the parent.", "Method to build Integration flow for IMAP Idle configuration.\n@param urlName Mail source URL.\n@return Integration Flow object IMAP IDLE.", "This method calls the index state. It should be called once per crawl in order to setup the\ncrawl.\n\n@return The initial state.", "Visit the implicit first frame of this method.", "Use this API to add sslaction resources.", "The Total Slack field contains the amount of time a task can be\ndelayed without delaying the project's finish date.\n\n@return string representing duration", "Returns a non-validating XML parser. The parser ignores both DTDs and XSDs.\n\n@return An XML parser in the form of a DocumentBuilder" ]
public CustomHeadersInterceptor addHeaderMultimap(Map<String, List<String>> headers) { this.headers.putAll(headers); return this; }
[ "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself." ]
[ "Writes the results of the processing to a file.", "This method writes project properties to a Planner file.", "This method extracts predecessor data from an MSPDI file.\n\n@param task Task data", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "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.", "Utility function to get the current text.", "Deletes the inbox message for given messageId\n@param messageId String messageId\n@return boolean value based on success of operation", "Use this API to fetch dnsview resources of given names .", "Removes the given object from the cache\n\n@param oid oid of the object to remove" ]
public synchronized void persistProperties() throws IOException { beginPersistence(); // Read the properties file into memory // Shouldn't be so bad - it's a small file List<String> content = readFile(propertiesFile); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(propertiesFile), StandardCharsets.UTF_8)); try { for (String line : content) { String trimmed = line.trim(); if (trimmed.length() == 0) { bw.newLine(); } else { Matcher matcher = PROPERTY_PATTERN.matcher(trimmed); if (matcher.matches()) { final String key = cleanKey(matcher.group(1)); if (toSave.containsKey(key) || toSave.containsKey(key + DISABLE_SUFFIX_KEY)) { writeProperty(bw, key, matcher.group(2)); toSave.remove(key); toSave.remove(key + DISABLE_SUFFIX_KEY); } else if (trimmed.startsWith(COMMENT_PREFIX)) { // disabled user write(bw, line, true); } } else { write(bw, line, true); } } } endPersistence(bw); } finally { safeClose(bw); } }
[ "Saves changes in properties file. It reads the property file into memory, modifies it and saves it back to the file.\n\n@throws IOException" ]
[ "Processes an anonymous reference definition.\n\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the reference as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\nreferenced object on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe referenced object\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\nreferenced object\"\[email protected] name=\"class-ref\" optional=\"false\" description=\"The fully qualified name of the class\nowning the referenced field\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the reference\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The fields in the current type used for\nimplementing the reference\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the reference is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the reference\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\nreference\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The fields in the referenced type\ncorresponding to the local fields (is only used for the table definition)\"", "Setter for blob handle value.\n\n@param txn enclosing transaction\n@param localId entity local id.\n@param blobId blob id\n@param value property value.", "Replaces the proxy url with the correct url from the tileMap.\n\n@return correct url to TMS service", "Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges", "Returns the indices that would sort an array.\n\n@param array Array.\n@param ascending Ascending order.\n@return Array of indices.", "Returns the value of the identified field as a Boolean.\n@param fieldName the name of the field\n@return the value of the field as a Boolean", "Split an artifact gavc to get the groupId\n@param gavc\n@return String", "Helper method to lookup a DAO if it has already been associated with the class. Otherwise this returns null.", "Load all string recognize." ]
protected EntityKey getEntityKey(Tuple tuple, AssociatedEntityKeyMetadata associatedEntityKeyMetadata) { Object[] columnValues = new Object[ associatedEntityKeyMetadata.getAssociationKeyColumns().length]; int i = 0; for ( String associationKeyColumn : associatedEntityKeyMetadata.getAssociationKeyColumns() ) { columnValues[i] = tuple.get( associationKeyColumn ); i++; } return new EntityKey( associatedEntityKeyMetadata.getEntityKeyMetadata(), columnValues ); }
[ "Returns the key of the entity targeted by the represented association, retrieved from the given tuple.\n\n@param tuple the tuple from which to retrieve the referenced entity key\n@return the key of the entity targeted by the represented association" ]
[ "Retrieve a calendar exception which applies to this date.\n\n@param date target date\n@return calendar exception, or null if none match this date", "A connection to the database. Should be short-lived. No transaction active by default.\n\n@return a new open connection.", "Deletes and publishes resources with ID conflicts.\n\n@param cms the CMS context to use\n@param module the module\n@param conflictingIds the conflicting ids\n@throws CmsException if something goes wrong\n@throws Exception if something goes wrong", "Reads the bundle descriptor, sets m_desc and m_descContent.\n@throws CmsXmlException thrown when unmarshalling fails.\n@throws CmsException thrown when reading the resource fails or several bundle descriptors for the bundle exist.", "Return the equivalence class of the argument. If the argument is not contained in\nand equivalence class, then an empty string is returned.\n\n@param punc\n@return The class name if found. Otherwise, an empty string.", "Private helper function that performs some assignability checks for the\nprovided GenericArrayType.", "Returns true if a pixel with the given color exists\n\n@param color the pixel colour to look for.\n@return true if there exists at least one pixel that has the given pixels color", "Adds all rows from the file specified, using the provided parser.\n\n@param file File to read the data from.\n@param fileParser Parser to be used to parse the file.\n@return {@code this}", "Use this API to update inat resources." ]
protected void prepareRequest(List<BoxAPIRequest> requests) { JsonObject body = new JsonObject(); JsonArray requestsJSONArray = new JsonArray(); for (BoxAPIRequest request: requests) { JsonObject batchRequest = new JsonObject(); batchRequest.add("method", request.getMethod()); batchRequest.add("relative_url", request.getUrl().toString().substring(this.api.getBaseURL().length() - 1)); //If the actual request has a JSON body then add it to vatch request if (request instanceof BoxJSONRequest) { BoxJSONRequest jsonRequest = (BoxJSONRequest) request; batchRequest.add("body", jsonRequest.getBodyAsJsonValue()); } //Add any headers that are in the request, except Authorization if (request.getHeaders() != null) { JsonObject batchRequestHeaders = new JsonObject(); for (RequestHeader header: request.getHeaders()) { if (header.getKey() != null && !header.getKey().isEmpty() && !HttpHeaders.AUTHORIZATION.equals(header.getKey())) { batchRequestHeaders.add(header.getKey(), header.getValue()); } } batchRequest.add("headers", batchRequestHeaders); } //Add the request to array requestsJSONArray.add(batchRequest); } //Add the requests array to body body.add("requests", requestsJSONArray); super.setBody(body); }
[ "Prepare a batch api request using list of individual reuests.\n@param requests list of api requests that has to be executed in batch." ]
[ "Construct an InterestRateSwapProductDescriptor from a node in a FpML file.\n\n@param trade The node containing the swap.\n@return Descriptor of the swap.", "You should call this method from your activity onRequestPermissionsResult.\n\n@param requestCode The request code passed in requestPermissions(android.app.Activity, String[], int)\n@param permissions The requested permissions. Never null.\n@param grantResults The grant results for the corresponding permissions which is either\nPERMISSION_GRANTED or PERMISSION_DENIED. Never null.", "Return the class of one of the properties of another class from which the Hibernate metadata is given.\n\n@param meta\nThe parent class to search a property in.\n@param propertyName\nThe name of the property in the parent class (provided by meta)\n@return Returns the class of the property in question.\n@throws HibernateLayerException\nThrows an exception if the property name could not be retrieved.", "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON object or null if something goes wrong.", "Get the bone index for the bone with the given name.\n\n@param bonename string identifying the bone whose index you want\n@return 0 based bone index or -1 if bone with that name is not found.", "Performs the closure within a transaction using a cached connection.\nIf the closure takes a single argument, it will be called\nwith the connection, otherwise it will be called with no arguments.\n\n@param closure the given closure\n@throws SQLException if a database error occurs", "Access all currencies known.\n\n@param providers the (optional) specification of providers to consider.\n@return the list of known currencies, never null.", "Validates a String to be a valid name to be used in MongoDB for a field name.\n\n@param fieldName" ]
@Override public void write(ProjectFile projectFile, OutputStream out) throws IOException { m_projectFile = projectFile; m_eventManager = projectFile.getEventManager(); m_writer = new PrintStream(out); // the print stream class is the easiest way to create a text file m_buffer = new StringBuilder(); try { write(); // method call a method, this is how MPXJ is structured, so I followed the lead? } // catch (Exception e) // { // used during console debugging // System.out.println("Caught Exception in SDEFWriter.java"); // System.out.println(" " + e.toString()); // } finally { // keeps things cool after we're done m_writer = null; m_projectFile = null; m_buffer = null; } }
[ "Write a project file in SDEF format to an output stream.\n\n@param projectFile ProjectFile instance\n@param out output stream" ]
[ "Returns a signed string representation of the given number.\n\n@param number\n@return String for BigDecimal value", "Helper method to get a list of node ids.\n\n@param nodeList", "Does the headset the device is docked into have a dedicated home key\n@return", "Use this API to fetch all the tmsessionparameter resources that are configured on netscaler.", "Creates a ServiceCall from a paging operation that returns a header response.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@param <V> the header object type\n@return the future based ServiceCall", "XER files can contain multiple projects when there are cross-project dependencies.\nAs the UniversalProjectReader is designed just to read a single project, we need\nto select one project from those available in the XER file.\nThe original project selected for export by the user will have its \"export flag\"\nset to true. We'll return the first project we find where the export flag is\nset to true, otherwise we'll just return the first project we find in the file.\n\n@param stream schedule data\n@return ProjectFile instance", "Serialize an object with Json\n@param obj Object\n@return String\n@throws IOException", "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed.", "Parses command-line and gets read-only metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
public static void acceptsHex(OptionParser parser) { parser.acceptsAll(Arrays.asList(OPT_X, OPT_HEX), "fetch key/entry by key value of hex type") .withRequiredArg() .describedAs("key-list") .withValuesSeparatedBy(',') .ofType(String.class); }
[ "Adds OPT_X | OPT_HEX option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional" ]
[ "Process events in the order as they were received.\n\n<p/>\n\nThe overall time to process the events must be within the bounds of the\ntimeout or an {@link InsufficientOperationalNodesException} will be\nthrown.", "Creates a new instance with the given key and value.\nMay be used instead of the constructor for convenience reasons.\n\n@param k\nthe key. May be <code>null</code>.\n@param v\nthe value. May be <code>null</code>.\n@return a newly created pair. Never <code>null</code>.\n@since 2.3", "Add the final assignment of the property to the partial value object's source code.", "process all messages in this batch, provided there is plenty of output space.", "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", "Package-protected method used to initiate operation execution.\n@return the result action", "Select calendar data from the database.\n\n@throws SQLException", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Convert this object to a json object." ]
public static boolean requiresReload(final Set<Flag> flags) { return flags.contains(Flag.RESTART_ALL_SERVICES) || flags.contains(Flag.RESTART_RESOURCE_SERVICES); }
[ "Checks to see within the flags if a reload, i.e. not a full restart, is required.\n\n@param flags the flags to check\n\n@return {@code true} if a reload is required, otherwise {@code false}" ]
[ "Whether the address is IPv4-mapped\n\n::ffff:x:x/96 indicates IPv6 address mapped to IPv4", "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record", "Plots a list of charts in matrix with 2 columns.\n@param charts", "Convert element to another object given a parameterized type signature\n\n@param context\n@param destinationType\nthe destination type\n@param source\nthe source object\n\n@return the converted object\n@throws ConverterException\nif conversion failed", "Creates a new remote proxy controller using an existing channel.\n\n@param channelAssociation the channel association\n@param pathAddress the address within the model of the created proxy controller\n@param addressTranslator the translator to use translating the address for the remote proxy\n@return the proxy controller\n\n@deprecated only present for test case use", "Use this API to add tmtrafficaction resources.", "Adds the value to the Collection mapped to by the key.", "Remove a DAO from the cache. This is necessary if we've registered it already but it throws an exception during\nconfiguration.", "Log modified request\n\n@param httpMethodProxyRequest\n@param httpServletResponse\n@param history" ]
public void drawImage(Image img, Rectangle rect, Rectangle clipRect) { drawImage(img, rect, clipRect, 1); }
[ "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds" ]
[ "Returns the configuration value with the specified name.", "Get a PropertyResourceBundle able to read an UTF-8 properties file.\n@param baseName\n@param locale\n@return new ResourceBundle or null if no bundle can be found.\n@throws UnsupportedEncodingException\n@throws IOException", "Get all info for the specified photo.\n\nThe calling user must have permission to view the photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo Id\n@param secret\nThe optional secret String\n@return The Photo\n@throws FlickrException", "Remove a DropPasteWorker from the helper.\n@param worker the worker that should be removed", "Read a duration.\n\n@param units duration units\n@param duration duration value\n@return Duration instance", "Use this API to fetch auditsyslogpolicy_systemglobal_binding resources of given name .", "Entry point with no system exit", "loads a class using the name of the class", "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" ]
private void markDateInvocation() { _updatePreviousDates = !_dateGivenInGroup; _dateGivenInGroup = true; _dateGroup.setDateInferred(false); if(_firstDateInvocationInGroup) { // if a time has been given within the current date group, // we capture the current time before resetting the calendar if(_timeGivenInGroup) { int hours = _calendar.get(Calendar.HOUR_OF_DAY); int minutes = _calendar.get(Calendar.MINUTE); int seconds = _calendar.get(Calendar.SECOND); resetCalendar(); _calendar.set(Calendar.HOUR_OF_DAY, hours); _calendar.set(Calendar.MINUTE, minutes); _calendar.set(Calendar.SECOND, seconds); } else { resetCalendar(); } _firstDateInvocationInGroup = false; } }
[ "ensures that the first invocation of a date seeking\nrule is captured" ]
[ "Get the Exif data for the photo.\n\nThe calling user must have permission to view the photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@param secret\nThe secret\n@return A collection of Exif objects\n@throws FlickrException", "Grab random holiday from the equivalence class that falls between the two dates\n\n@param earliest the earliest date parameter as defined in the model\n@param latest the latest date parameter as defined in the model\n@return a holiday that falls between the dates", "Are we running in Jetty with JMX enabled?", "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", "A regular embedded is an element that it is embedded but it is not a key or a collection.\n\n@param keyColumnNames the column names representing the identifier of the entity\n@param column the column we want to check\n@return {@code true} if the column represent an attribute of a regular embedded element, {@code false} otherwise", "Replace error msg.\n\n@param origMsg\nthe orig msg\n@return the string", "Delivers the correct JSON Object for the Bounds\n\n@param bounds\n@throws org.json.JSONException", "Returns the parsed story from the given path\n\n@param configuration the Configuration used to run story\n@param storyPath the story path\n@return The parsed Story", "Sets padding between the pages\n@param padding\n@param axis" ]
public void close() throws IOException { final ManagedBinding binding = this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name); if (binding == null) { return; } binding.close(); }
[ "Closes the outbound socket binding connection.\n\n@throws IOException" ]
[ "Computes the likelihood of the random draw\n\n@return The likelihood.", "If there is a SubReport on a Group, we do the layout here\n@param columnsGroup\n@param jgroup", "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.", "A disposer method is bound to a producer if the producer is assignable to the disposed parameter.\n\n@param enhancedDisposedParameter\n@return the set of required qualifiers for the given disposed parameter", "Tests correctness.", "Build and return a foreign collection based on the field settings that matches the id argument. This can return\nnull in certain circumstances.\n\n@param parent\nThe parent object that we will set on each item in the collection.\n@param id\nThe id of the foreign object we will look for. This can be null if we are creating an empty\ncollection.", "Shows the Loader component", "If credentials are incorrect or not provided for Basic Auth, then Android\nmay throw this exception when an HTTP 401 is received. A separate exception\nis thrown for proxy authentication errors. Checking for this response and\nreturning the proper status.\n@param ex the exception raised from Android\n@return HTTP Status Code", "Flush this log file to the physical disk\n\n@throws IOException file read error" ]
private List<TimephasedWork> splitWork(CostRateTable table, ProjectCalendar calendar, TimephasedWork work, int rateIndex) { List<TimephasedWork> result = new LinkedList<TimephasedWork>(); work.setTotalAmount(Duration.getInstance(0, work.getAmountPerDay().getUnits())); while (true) { CostRateTableEntry rate = table.get(rateIndex); Date splitDate = rate.getEndDate(); if (splitDate.getTime() >= work.getFinish().getTime()) { result.add(work); break; } Date currentPeriodEnd = calendar.getPreviousWorkFinish(splitDate); TimephasedWork currentPeriod = new TimephasedWork(work); currentPeriod.setFinish(currentPeriodEnd); result.add(currentPeriod); Date nextPeriodStart = calendar.getNextWorkStart(splitDate); work.setStart(nextPeriodStart); ++rateIndex; } return result; }
[ "Splits timephased work segments in line with cost rates. Note that this is\nan approximation - where a rate changes during a working day, the second\nrate is used for the whole day.\n\n@param table cost rate table\n@param calendar calendar used by this assignment\n@param work timephased work segment\n@param rateIndex rate applicable at the start of the timephased work segment\n@return list of segments which replace the one supplied by the caller" ]
[ "Registers the transformers for JBoss EAP 7.0.0.\n\n@param subsystemRegistration contains data about the subsystem registration", "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited.", "Pretty-print the object.", "Fixed length fancy formatting for doubles. If possible decimal notation is used. If all the significant digits\ncan't be shown then it will switch to exponential notation. If not all the space is needed then it will\nbe filled in to ensure it has the specified length.\n\n@param value value being formatted\n@param format default format before exponential\n@param length Maximum number of characters it can take.\n@param significant Number of significant decimal digits to show at a minimum.\n@return formatted string", "Returns an array of the enabled endpoints as Integer IDs\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return Collection of endpoints\n@throws Exception exception", "Check if a module can be promoted in the Grapes server\n\n@param name\n@param version\n@return a boolean which is true only if the module can be promoted\n@throws GrapesCommunicationException", "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.", "Helper method for formatting connection establishment messages.\n\n@param connectionName\nThe name of the connection\n@param host\nThe remote host\n@param connectionReason\nThe reason for establishing the connection\n@return A formatted message in the format:\n\"[&lt;connectionName&gt;] remote host[&lt;host&gt;] &lt;connectionReason&gt;\"\n<br/>\ne.g. [con1] remote host[123.123.123.123] connection to ECMG.", "Consumer is required to do any privilege checks before getting here\n\n@param request a {@link HttpServletRequest} which may contain forced groups parameters from URL, Header or Cookie.\n@return a map of test names to bucket values specified by the request. Returns an empty {@link Map} if nothing was specified" ]
public static base_response unset(nitro_service client, snmpalarm resource, String[] args) throws Exception{ snmpalarm unsetresource = new snmpalarm(); unsetresource.trapname = resource.trapname; return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array." ]
[ "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.", "Use this API to fetch all the nslimitselector resources that are configured on netscaler.", "Sets the specified long attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Subtracts the given range from this range, to produce either zero, one, or two address ranges that contain the addresses in this range and not in the given range.\nIf the result has length 2, the two ranges are in increasing order.\n\n@param other\n@return", "Receive an expected number of bytes from the player, logging a warning if we get a different number of them.\n\n@param is the input stream associated with the player metadata socket.\n@param size the number of bytes we expect to receive.\n@param description the type of response being processed, for use in the warning message.\n@return the bytes read.\n\n@throws IOException if there is a problem reading the response.", "Gets information about all of the group memberships for this user.\nDoes not support paging.\n\n<p>Note: This method is only available to enterprise admins.</p>\n\n@return a collection of information about the group memberships for this user.", "Physically close off the internal connection.\n@param conn", "Generates the body of a toString method that uses a StringBuilder.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, but if any of them will\nalways be present, we can actually do the hard work at compile time. Specifically, we can pick\nthe first such and output it without a comma; any property before it will have a comma\n<em>appended</em>, and any property after it will have a comma <em>prepended</em>. This gives\nus the right number of commas in the right places in all circumstances.\n\n<p>As well as keeping track of whether we are <b>prepending commas</b> yet (initially false),\nwe also keep track of whether we have just finished an if-then block for an optional property,\nor if we are in the <b>middle of an append chain</b>, and if so, whether we are in the\n<b>middle of a string literal</b>. This lets us output the fewest literals and statements,\nmuch as a mildly compulsive programmer would when writing the same code.", "Get the TagsInterface for working with Flickr Tags.\n\n@return The TagsInterface" ]
public Bundler put(String key, Bundle value) { delegate.putBundle(key, value); return this; }
[ "Inserts a Bundle value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Bundle object, or null\n@return this bundler instance to chain method calls" ]
[ "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise", "Calculates the next snapshot version based on the current release version\n\n@param fromVersion The version to bump to next development version\n@return The next calculated development (snapshot) version", "Just collapses digits to 9 characters.\nDoes lazy copying of String.\n\n@param s String to find word shape of\n@return The same string except digits are equivalence classed to 9.", "Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name .", "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Triggers collapse of the parent.", "Adds to this set all of the elements in the specified members array\n@param members the members to add\n@return the number of members actually added", "Creates a searchable item that represents a metadata field found for a track.\n\n@param menuItem the rendered menu item containing the searchable metadata field\n@return the searchable metadata field", "Removes old entries in the history table for the given profile and client UUID\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param limit Maximum number of history entries to remove\n@throws Exception exception" ]
@Override protected void updateState(final String name, final InstallationModificationImpl modification, final InstallationModificationImpl.InstallationState state) { final PatchableTarget.TargetInfo identityInfo = modification.getModifiedState(); this.identity = new Identity() { @Override public String getVersion() { return modification.getVersion(); } @Override public String getName() { return name; } @Override public TargetInfo loadTargetInfo() throws IOException { return identityInfo; } @Override public DirectoryStructure getDirectoryStructure() { return modification.getDirectoryStructure(); } }; this.allPatches = Collections.unmodifiableList(modification.getAllPatches()); this.layers.clear(); for (final Map.Entry<String, MutableTargetImpl> entry : state.getLayers().entrySet()) { final String layerName = entry.getKey(); final MutableTargetImpl target = entry.getValue(); putLayer(layerName, new LayerInfo(layerName, target.getModifiedState(), target.getDirectoryStructure())); } this.addOns.clear(); for (final Map.Entry<String, MutableTargetImpl> entry : state.getAddOns().entrySet()) { final String addOnName = entry.getKey(); final MutableTargetImpl target = entry.getValue(); putAddOn(addOnName, new LayerInfo(addOnName, target.getModifiedState(), target.getDirectoryStructure())); } }
[ "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" ]
[ "Returns the comma separated list of available scopes\n\n@return String", "Use this API to enable nsacl6 resources of given names.", "Write the given pattern to given log in given logging level\n@param logger\n@param level\n@param pattern\n@param exception", "Use this API to fetch all the appfwhtmlerrorpage resources that are configured on netscaler.", "Write the domain controller data to an S3 file.\n\n@param data the domain controller data\n@param domainName the name of the directory in the bucket to write the S3 file to\n@throws IOException", "Propagate onNoPick events to listeners\n@param picker GVRPicker which generated the event", "Checks if the given argument is null and throws an exception with a\nmessage containing the argument name if that it true.\n\n@param argument the argument to check for null\n@param argumentName the name of the argument to check.\nThis is used in the exception message.\n@param <T> the type of the argument\n@return the argument itself\n@throws IllegalArgumentException in case argument is null", "Create the voldemort key and value from the input Avro record by\nextracting the key and value and map it out for each of the responsible\nvoldemort nodes\n\n\nThe output value is the node_id & partition_id of the responsible node\nfollowed by serialized value", "xml -> object\n\n@param message\n@param childClass\n@return" ]
public void sendJsonToTagged(Object data, String label) { sendToTagged(JSON.toJSONString(data), label); }
[ "Send JSON representation of given data object to all connections tagged with\ngiven label\n@param data the data object\n@param label the tag label" ]
[ "Returns tag formatted as an HTTP tag string.\n\n@return The formatted HTTP tag string.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "Use this API to fetch appfwprofile_csrftag_binding resources of given name .", "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1", "Set the numeric code. Setting it to -1 search for currencies that have no numeric code.\n\n@param codes the numeric codes.\n@return the query for chaining.", "Test for equality.\n@param obj1 the first object\n@param obj2 the second object\n@return true if both are null or the two objects are equal", "Sets all elements in this matrix to their absolute values. Note\nthat this operation is in-place.\n@see MatrixFunctions#abs(DoubleMatrix)\n@return this matrix", "Function to clear all the metadata related to the given store\ndefinitions. This is needed when a put on 'stores.xml' is called, thus\nreplacing the existing state.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will handle concurrency related issues.\n\n@param storeNamesToDelete", "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.", "Add a '&lt;=' clause so the column must be less-than or equals-to the value." ]
private Map<String, String> toPayload(Map<String, Object> data) throws LocalOperationException { Map<String, Object> dataClone = new HashMap<String, Object>(data); dataClone.put("auth", getAuthData()); Map<String, String> payload = new HashMap<String, String>(); payload.put("params", jsonifyData(dataClone)); if (transloadit.shouldSignRequest) { payload.put("signature", getSignature(jsonifyData(dataClone))); } return payload; }
[ "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException" ]
[ "Creates a ServiceCall from a paging operation.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@return the future based ServiceCall", "Runs a Story with the given configuration and steps, applying the given\nmeta filter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param candidateSteps the List of CandidateSteps containing the candidate\nsteps 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@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown.", "Use this API to fetch vrid_nsip6_binding resources of given name .", "Removes the task from wait q.\n\n@param taskTobeRemoved\nthe task tobe removed\n@return true, if successful", "A method for determining from and to information when using this IntRange to index an aggregate object of the specified size.\nNormally only used internally within Groovy but useful if adding range indexing support for your own aggregates.\n\n@param size the size of the aggregate being indexed\n@return the calculated range information (with 1 added to the to value, ready for providing to subList", "Invalidate layout setup.", "Accessor method to retrieve an accrue type instance.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Performs validation of the observer method for compliance with the specifications.", "Return a product descriptor for a specific strike.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@param index The index corresponding to the strike grid.\n@return a product descriptor for a specific strike.\n@throws ArrayIndexOutOfBoundsException Thrown if index is out of bound." ]
@SuppressWarnings("unchecked") public <T extends GVRComponent> ArrayList<T> getAllComponents(long type) { ArrayList<T> list = new ArrayList<T>(); GVRComponent component = getComponent(type); if (component != null) list.add((T) component); for (GVRSceneObject child : mChildren) { ArrayList<T> temp = child.getAllComponents(type); list.addAll(temp); } return list; }
[ "Get all components of a specific class from this scene object and its descendants.\n@param type component type (as returned from getComponentType())\n@return ArrayList of components with the specified class." ]
[ "Sets the seed for random number generator", "Generates a set of HTML files that contain data about the outcome of\nthe specified test suites.\n@param suites Data about the test runs.\n@param outputDirectoryName The directory in which to create the report.", "Helper method to lookup a DAO if it has already been associated with the class. Otherwise this returns null.", "Get a PropertyResourceBundle able to read an UTF-8 properties file.\n@param baseName\n@param locale\n@return new ResourceBundle or null if no bundle can be found.\n@throws UnsupportedEncodingException\n@throws IOException", "Sets the bottom padding for all cells in the table.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining", "Returns a new color that has the alpha adjusted by the\nspecified amount.", "This method is called to alert project listeners to the fact that\na resource assignment has been read from a project file.\n\n@param resourceAssignment resourceAssignment instance", "Set the specular intensity of the light.\n\nThis designates the color of the specular reflection.\nIt is multiplied by the material specular color to derive\nthe hue of the specular reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code specular_intensity} to control the specular intensity.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Set the timeout for idle connections. Voldemort client caches all\nconnections to the Voldemort server. This setting allows the a connection\nto be dropped, if it is idle for more than this time.\n\nThis could be useful in the following cases 1) Voldemort client is not\ndirectly connected to the server and is connected via a proxy or\nfirewall. The Proxy or firewall could drop the connection silently. If\nthe connection is dropped, then client will see operations fail with a\ntimeout. Setting this property enables the Voldemort client to tear down\nthe connection before a firewall could drop it. 2) Voldemort server\ncaches the connection and each connection has an associated memory cost.\nSetting this property on all clients, enable the clients to prune the\nconnections and there by freeing up the server connections.\n\nthrows IllegalArgumentException if the timeout is less than 10 minutes.\n\nCurrently it can't be set below 10 minutes to avoid the racing risk of\ncontention between connection checkout and selector trying to close it.\nThis is intended for low throughput scenarios.\n\n@param idleConnectionTimeout\nzero or negative number to disable the feature ( default -1)\ntimeout\n@param unit {@link TimeUnit}\n@return ClientConfig object for chained set\n\nthrows {@link IllegalArgumentException} if the timeout is greater\nthan 0, but less than 10 minutes." ]
public static void createDotStoryFile(String scenarioName, String srcTestRootFolder, String packagePath, String givenDescription, String whenDescription, String thenDescription) throws BeastException { String[] folders = packagePath.split("."); for (String folder : folders) { srcTestRootFolder += "/" + folder; } FileWriter writer = createFileWriter(createDotStoryName(scenarioName), packagePath, srcTestRootFolder); try { writer.write("Scenario: " + scenarioName + "\n"); writer.write("Given " + givenDescription + "\n"); writer.write("When " + whenDescription + "\n"); writer.write("Then " + thenDescription + "\n"); writer.close(); } catch (Exception e) { String message = "Unable to write the .story file for the scenario " + scenarioName; logger.severe(message); logger.severe(e.getMessage()); throw new BeastException(message, e); } }
[ "Creates the .story file necessary for every Beast Test Case.\n\n@param scenarioName\n- The name of the scenario, with spaces\n@param srcTestRootFolder\n- The test root folder\n@param packagePath\n- The package of the BeastTestCase\n@param scenarioDescription\n- the scenario name\n@param givenDescription\n- The given description\n@param whenDescription\n- The when description\n@param thenDescription\n- The then description\n@throws BeastException" ]
[ "Updates the store definition object and the retention time based on the\nupdated store definition", "Returns the list of user defined attribute names.\n\n@return the list of user defined attribute names, if there are none it returns an empty set.", "Obtains a local date in Symmetry454 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry454 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry454 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}", "Translate the given byte array into a string of 1s and 0s\n\n@param bytes The bytes to translate\n@return The string", "given the groupName, it returns the groupId\n\n@param groupName name of group\n@return ID of group", "Retrieve the Charset used to read the file.\n\n@return Charset instance", "Read the name of a table and prepare to populate it with column data.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Handles reports by consumers\n\n@param name the name of the reporting consumer\n@param report the number of lines the consumer has written since last report\n@return \"exit\" if maxScenarios has been reached, \"ok\" otherwise", "Obtain the master partition for a given key\n\n@param key\n@return master partition id" ]
public static aaauser_intranetip_binding[] get(nitro_service service, String username) throws Exception{ aaauser_intranetip_binding obj = new aaauser_intranetip_binding(); obj.set_username(username); aaauser_intranetip_binding response[] = (aaauser_intranetip_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaauser_intranetip_binding resources of given name ." ]
[ "Handles the response of the SendData request.\n@param incomingMessage the response message to process.", "Start the first inner table of a class.", "create a HashMap form the json properties and add it to the shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Create a list out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a list.\n@return A list consisting of the items of the Iterable, in the same order.", "this remove the linebreak.\n\n@param input\nthe input\n@param patternStr\nthe pattern str\n@return the string", "Extracts the service name from a Server.\n@param server\n@return", "This only gets half of the EnabledEndpoint from a JDBC ResultSet\nGetting the method for the override id requires an additional SQL query and needs to be called after\nthe SQL connection is released\n\n@param result result to scan for endpoint\n@return EnabledEndpoint\n@throws Exception exception", "Create the actual patchable target.\n\n@param name the layer name\n@param layer the layer path config\n@param metadata the metadata location for this target\n@param image the installed image\n@return the patchable target\n@throws IOException", "Gets all rows.\n\n@return the list of all rows" ]
public static vpnclientlessaccesspolicy_binding get(nitro_service service, String name) throws Exception{ vpnclientlessaccesspolicy_binding obj = new vpnclientlessaccesspolicy_binding(); obj.set_name(name); vpnclientlessaccesspolicy_binding response = (vpnclientlessaccesspolicy_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch vpnclientlessaccesspolicy_binding resource of given name ." ]
[ "Returns the name of the class to be instantiated.\n@param rs the Resultset\n@return null if the column is not available", "helper function to convert strings to bytes as needed.\n\n@param key\n@param value", "Require that the namespace of the current element matches the required namespace.\n\n@param reader the reader\n@param requiredNs the namespace required\n@throws XMLStreamException if the current namespace does not match the required namespace", "Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Orders first by word, then by lemma, then by tag.\n\n@param wordLemmaTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)", "Stops the processing and prints the final time.", "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", "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.", "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" ]
private void handleMultiChannelEncapResponse( SerialMessage serialMessage, int offset) { logger.trace("Process Multi-channel Encapsulation"); CommandClass commandClass; ZWaveCommandClass zwaveCommandClass; int endpointId = serialMessage.getMessagePayloadByte(offset); int commandClassCode = serialMessage.getMessagePayloadByte(offset + 2); commandClass = CommandClass.getCommandClass(commandClassCode); if (commandClass == null) { logger.error(String.format("Unsupported command class 0x%02x", commandClassCode)); return; } logger.debug(String.format("Node %d Requested Command Class = %s (0x%02x)", this.getNode().getNodeId(), commandClass.getLabel() , commandClassCode)); ZWaveEndpoint endpoint = this.endpoints.get(endpointId); if (endpoint == null){ logger.error("Endpoint {} not found on node {}. Cannot set command classes.", endpoint, this.getNode().getNodeId()); return; } zwaveCommandClass = endpoint.getCommandClass(commandClass); if (zwaveCommandClass == null) { logger.warn(String.format("CommandClass %s (0x%02x) not implemented by endpoint %d, fallback to main node.", commandClass.getLabel(), commandClassCode, endpointId)); zwaveCommandClass = this.getNode().getCommandClass(commandClass); } if (zwaveCommandClass == null) { logger.error(String.format("CommandClass %s (0x%02x) not implemented by node %d.", commandClass.getLabel(), commandClassCode, this.getNode().getNodeId())); return; } logger.debug(String.format("Node %d, Endpoint = %d, calling handleApplicationCommandRequest.", this.getNode().getNodeId(), endpointId)); zwaveCommandClass.handleApplicationCommandRequest(serialMessage, offset + 3, endpointId); }
[ "Handles Multi Channel Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\nendpoint.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing." ]
[ "Sets the specified boolean attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Returns the y-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the y coordinate", "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.", "Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument", "Prints the URL of a thumbnail for the given item document to the output,\nor a default image if no image is given for the item.\n\n@param out\nthe output to write to\n@param itemDocument\nthe document that may provide the image information", "Use this API to unset the properties of snmpmanager resource.\nProperties that need to be unset are specified in args array.", "Calculate start dates for a yearly absolute recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Attempts to create a human-readable String representation of the provided rule.", "Curries a procedure that takes two arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes one argument. Never <code>null</code>." ]
@Override public void solve(DMatrixRMaj B, DMatrixRMaj X) { X.reshape(blockA.numCols,B.numCols); blockB.reshape(B.numRows,B.numCols,false); blockX.reshape(X.numRows,X.numCols,false); MatrixOps_DDRB.convert(B,blockB); alg.solve(blockB,blockX); MatrixOps_DDRB.convert(blockX,X); }
[ "Converts B and X into block matrices and calls the block matrix solve routine.\n\n@param B A matrix &real; <sup>m &times; p</sup>. Not modified.\n@param X A matrix &real; <sup>n &times; p</sup>, where the solution is written to. Modified." ]
[ "Uploads files from the given file input fields.<p<\n\n@param fields the set of names of fields containing the files to upload\n@param filenameCallback the callback to call with the resulting map from field names to file paths\n@param errorCallback the callback to call with an error message", "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characters in quotes", "Discard the changes.", "Throws one RendererException if the content parent or layoutInflater are null.", "FOR internal use. This method was called after the external transaction was completed.\n\n@see javax.transaction.Synchronization", "Return the array of field objects pulled from the data object.", "Retrieve all Collection attributes of a given instance\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true, loading is forced even if cld differs", "Register opened database via the PBKey.", "Set possible tile URLs.\n\n@param tileUrls tile URLs" ]
public void close() { if (watchdog != null) { watchdog.cancel(); watchdog = null; } disconnect(); // clear nodes collection and send queue for (Object listener : this.zwaveEventListeners.toArray()) { if (!(listener instanceof ZWaveNode)) continue; this.zwaveEventListeners.remove(listener); } this.zwaveNodes.clear(); this.sendQueue.clear(); logger.info("Stopped Z-Wave controller"); }
[ "Closes the connection to the Z-Wave controller." ]
[ "returns null if no device is found.", "Position the child inside the layout based on the offset and axis-s factors\n@param dataIndex data index", "Add raw SQL \"ORDER BY\" clause to the SQL query statement.\n\n@param rawSql\nThe raw SQL order by clause. This should not include the \"ORDER BY\".", "Uses getResult to get the final Result and executes it\n\n@throws ConfigurationException\nIf not result can be found with the returned code", "Requests that the given namespace stopped being listened to for change events.\n\n@param namespace the namespace to stop listening for change events on.", "Convert a given date to a floating point date using a given reference date.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param date The given date to be associated with the return value \\( T \\).\n@return The value T measuring the distance of reference date and date by ACT/365 with SECONDS_PER_DAY seconds used as the smallest time unit and SECONDS_PER_DAY is a constant 365*24*60*60.", "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "Dump an array of bytes in hexadecimal.\n\n@param displayOffset the display offset (left column)\n@param data the byte array of data\n@param offset the offset to start dumping in the byte array\n@param len the length of data to dump\n@return the dump string", "Write a Date attribute.\n\n@param name attribute name\n@param value attribute value" ]
public Map<String, String> listConfig(String appName) { return connection.execute(new ConfigList(appName), apiKey); }
[ "List all the environment variables for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return map of config vars" ]
[ "Converts the results to CSV data.\n\n@return the CSV data", "Use this API to delete sslcipher resources of given names.", "Loads the script from a text string.\n@param scriptText text string containing script to execute.\n@param language language (\"js\" or \"lua\")", "The way calendars are stored in an MPP14 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value", "Use this API to delete onlinkipv6prefix of given name.", "Returns a flag, indicating if the current event is a multi-day event.\nThe method is only called if the single event has an explicitely set end date\nor an explicitely changed whole day option.\n\n@return a flag, indicating if the current event takes lasts over more than one day.", "Parses command-line and removes metadata related to rebalancing.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Stops the current connection. No reconnecting will occur. Kills thread + cleanup.\nWaits for the loop to end" ]
public String addPostRunDependent(FunctionalTaskItem dependent) { Objects.requireNonNull(dependent); return this.taskGroup().addPostRunDependent(dependent); }
[ "Add a \"post-run\" dependent task item for this task item.\n\n@param dependent the \"post-run\" dependent task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group" ]
[ "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the", "Use this API to delete systemuser of given name.", "Returns a string to resolve apostrophe issue in xpath\n\n@param text\n@return the apostrophe resolved xpath value string", "Adds OPT_D | OPT_DIR option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Constructs credentials for the given account and key file.\n\n@param serviceAccountId service account ID (typically an e-mail address).\n@param privateKeyFile the file name from which to get the private key.\n@param serviceAccountScopes Collection of OAuth scopes to use with the the service\naccount flow or {@code null} if not.\n@return valid credentials or {@code null}", "Write the given pattern to given log in given logging level\n@param logger\n@param level\n@param pattern\n@param exception", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "Set default interval for sending events to monitoring service. DefaultInterval will be used by\nscheduler.\n\n@param defaultInterval the new default interval", "Comparator against other element.\n\n@param otherElement The other element.\n@param logging Whether to do logging.\n@return Whether the elements are equal." ]
public CollectionRequest<ProjectStatus> findByProject(String project) { String path = String.format("/projects/%s/project_statuses", project); return new CollectionRequest<ProjectStatus>(this, ProjectStatus.class, path, "GET"); }
[ "Returns the compact project status update records for all updates on the project.\n\n@param project The project to find status updates for.\n@return Request object" ]
[ "Removes metadata related to rebalancing.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to clear metadata after rebalancing", "Extract resource provider from a resource ID string.\n@param id the resource ID string\n@return the resource group name", "Returns a collection view of this map's values.\n\n@return a collection view of this map's values.", "Login for a specific authentication, creating a specific token if given.\n\n@param token token to use\n@param authentication authentication to assign to token\n@return token", "Creates an association row representing the given entry and adds it to the association managed by the given\npersister.", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name", "returns &gt; 0 when o1 is more specific than o2,\n\nreturns == 0 when o1 and o2 are equal or unrelated,\n\nreturns &lt; 0 when o2 is more specific than o1,", "Executes an operation on the controller latching onto an existing transaction\n\n@param operation the operation\n@param handler the handler\n@param control the transaction control\n@param prepareStep the prepare step to be executed before any other steps\n@param operationId the id of the current transaction\n@return the result of the operation", "Get the Exif data for the photo.\n\nThe calling user must have permission to view the photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@param secret\nThe secret\n@return A collection of Exif objects\n@throws FlickrException" ]
@Override public void run() { try { startBarrier.await(); int idleCount = 0; while (!isRunning.compareAndSet(idleCount > LINGER_ITERATIONS && deadPool.isEmpty() && completionKeyToProcessMap.isEmpty(), false)) { idleCount = (!shutdown && process()) ? 0 : (idleCount + 1); } } catch (Exception e) { // TODO: how to handle this error? e.printStackTrace(); isRunning.set(false); } }
[ "The primary run loop of the kqueue event processor." ]
[ "Gets whether the given server can be updated.\n\n@param server the id of the server. Cannot be <code>null</code>\n\n@return <code>true</code> if the server can be updated; <code>false</code>\nif the update should be cancelled\n\n@throws IllegalStateException if this policy is not expecting a request\nto update the given server", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "Set a friendly name for a client\n\n@param profileId profileId of the client\n@param clientUUID UUID of the client\n@param friendlyName friendly name of the client\n@return return Client object or null\n@throws Exception exception", "Resolve the single type argument of the given generic interface against the given\ntarget method which is assumed to return the given interface or an implementation\nof it.\n@param method the target method to check the return type of\n@param genericIfc the generic interface or superclass to resolve the type argument from\n@return the resolved parameter type of the method return type, or {@code null}\nif not resolvable or if the single argument is of type {@link WildcardType}.", "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched.", "To be called at node startup - it purges all job instances associated to this node.\n\n@param cnx\n@param node", "A package of the specified class 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 packageClass\n@return self", "Perform a security check against OpenCms.\n\n@param cms The OpenCms object.\n\n@throws CmsPermissionViolationException in case of the anonymous guest user", "Obtain parameters from query\n\n@param query query to scan\n@return Map of parameters" ]
public static String eachMatch(String self, String regex, @ClosureParams(value=FromString.class, options={"List<String>","String[]"}) Closure closure) { return eachMatch(self, Pattern.compile(regex), closure); }
[ "Process each regex group matched substring of the given string. If the closure\nparameter takes one argument, an array with all match groups is passed to it.\nIf the closure takes as many arguments as there are match groups, then each\nparameter will be one match group.\n\n@param self the source string\n@param regex a Regex string\n@param closure a closure with one parameter or as much parameters as groups\n@return the source string\n@since 1.6.0" ]
[ "Convert a Java date into a Planner date-time string.\n\n20070222T080000Z\n\n@param value Java date\n@return Planner date-time string", "Given a string which is either the name of a predefined tab configuration or a configuration string, returns\nthe corresponding tab configuration.\n\n@param configStr a configuration string or predefined configuration name\n\n@return the gallery tab configuration", "Sets the current reference definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the reference as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\nreferenced object on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe referenced object\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\nreferenced object\"\[email protected] name=\"class-ref\" optional=\"true\" description=\"The fully qualified name of the class\nowning the referenced field\"\[email protected] name=\"database-foreignkey\" optional=\"true\" description=\"Whether a database foreignkey shall be created\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the reference\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The fields in the current type used for\nimplementing the reference\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the reference is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the reference\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\nreference\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The fields in the referenced type\ncorresponding to the local fields (is only used for the table definition)\"", "Updates the cluster and store metadata atomically\n\nThis is required during rebalance and expansion into a new zone since we\nhave to update the store def along with the cluster def.\n\n@param cluster The cluster metadata information\n@param storeDefs The stores metadata information", "Reads non outline code custom field values and populates container.", "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration", "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result", "Stop an animation.", "Get a property as an int or throw an exception.\n\n@param key the property name" ]
public static Map<String, List<String>> getResponseHeaders(String stringUrl) throws IOException { return getResponseHeaders(stringUrl, true); }
[ "Get the response headers for URL\n\n@param stringUrl URL to use\n@return headers HTTP Headers\n@throws IOException I/O error happened" ]
[ "Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the path containing the content\n\n@return the deployment", "Processes the template for all table definitions in the torque model.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens", "Use this API to delete nsip6 resources.", "Adds an EJB descriptor to the maps\n\n@param ejbDescriptor The EJB descriptor to add", "Get all categories\nGet all tags marked as categories\n@return ApiResponse&lt;TagsEnvelope&gt;\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Choose from three numbers based on version.", "Use this API to unset the properties of sslservice resource.\nProperties that need to be unset are specified in args array.", "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" ]
public void setType(CheckBoxType type) { this.type = type; switch (type) { case FILLED: Element input = DOM.getChild(getElement(), 0); input.setAttribute("class", CssName.FILLED_IN); break; case INTERMEDIATE: addStyleName(type.getCssName() + "-checkbox"); break; default: addStyleName(type.getCssName()); break; } }
[ "Setting the type of Checkbox." ]
[ "Creates a CostRateTable instance from a block of data.\n\n@param resource parent resource\n@param index cost rate table index\n@param data data block", "Get the bone index for the given scene object.\n\n@param bone GVRSceneObject bone to search for\n@return bone index or -1 for root bone.\n@see #getParentBoneIndex", "Adds a classpath source which contains the given resource.\n\nTODO: [GH-213] this is extremely ugly; separate the code required to run on the\nforked JVM into an isolated bundle and either create it on-demand (in temp.\nfiles location?) or locate it in classpath somehow (in a portable way).", "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", "Adds an environment variable to the process being created.\n\n@param key they key for the variable\n@param value the value for the variable\n\n@return the launcher", "Select a List of characters from a CharSequence using a Collection\nto identify the indices to be selected.\n\n@param self a CharSequence\n@param indices a Collection of indices\n@return a String consisting of the characters at the given indices\n@since 1.0", "Check if the provided date or any date after it are part of the series.\n@param nextDate the current date to check.\n@param previousOccurrences the number of events of the series that took place before the date to check.\n@return <code>true</code> if more dates (including the provided one) could be in the series, <code>false</code> otherwise.", "Use this API to fetch the statistics of all lbvserver_stats resources that are configured on netscaler.", "This method sends the same message to many agents.\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param connector\nThe connector to get the external access" ]
public static void readAndCheckVersion(ObjectInput input, int supportedVersion, Class<?> externalizedType) throws IOException { int version = input.readInt(); if ( version != supportedVersion ) { throw LOG.unexpectedKeyVersion( externalizedType, version, supportedVersion ); } }
[ "Consumes the version field from the given input and raises an exception if the record is in a newer version,\nwritten by a newer version of Hibernate OGM.\n\n@param input the input to read from\n@param supportedVersion the type version supported by this version of OGM\n@param externalizedType the type to be unmarshalled\n\n@throws IOException if an error occurs while reading the input" ]
[ "Gets the name of the shader variable to get the texture\ncoordinates for the named texture.\n\n@param texName name of texture\n@return name of shader variable", "Creates the automaton map.\n\n@param prefix the prefix\n@param valueList the value list\n@param filter the filter\n@return the map", "Used to add working hours to the calendar. Note that the MPX file\ndefinition allows a maximum of 7 calendar hours records to be added to\na single calendar.\n\n@param day day number\n@return new ProjectCalendarHours instance", "Adds steps types from given injector and recursively its parent\n\n@param injector the current Inject\n@param types the List of steps types", "Pretty prints the given source code.\n\n@param code\nsource code to format\n@param options\nformatter options\n@param lineEnding\ndesired line ending\n@return formatted source code", "Processes the template for all indices of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"unique\" optional=\"true\" description=\"Whether to process the unique indices or not\"\nvalues=\"true,false\"", "Generate an ordered set of column definitions from an ordered set of column names.\n\n@param columns column definitions\n@param order column names\n@return ordered set of column definitions", "Returns a usage String based on the defined command and options.\nUseful when printing \"help\" info etc.", "Use this API to unset the properties of nsrpcnode resource.\nProperties that need to be unset are specified in args array." ]
protected void runQuery() { String pool = m_pool.getValue(); String stmt = m_script.getValue(); if (stmt.trim().isEmpty()) { return; } CmsStringBufferReport report = new CmsStringBufferReport(Locale.ENGLISH); List<Throwable> errors = new ArrayList<>(); CmsSqlConsoleResults result = m_console.execute(stmt, pool, report, errors); if (errors.size() > 0) { CmsErrorDialog.showErrorDialog(report.toString() + errors.get(0).getMessage(), errors.get(0)); } else { Window window = CmsBasicDialog.prepareWindow(DialogWidth.max); window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_SQLCONSOLE_QUERY_RESULTS_0)); window.setContent(new CmsSqlConsoleResultsForm(result, report.toString())); A_CmsUI.get().addWindow(window); window.center(); } }
[ "Runs the currently entered query and displays the results." ]
[ "Creates a simple, annotation defined Enterprise Web Bean using the annotations specified on type\n\n@param <T> The type\n@param beanManager the current manager\n@param type the AnnotatedType to use\n@return An Enterprise Web Bean", "Find a given range object in a list of ranges by a value in that range. Does a binary\nsearch over the ranges but instead of checking for equality looks within the range.\nTakes the array size as an option in case the array grows while searching happens\n@param <T> Range type\n@param ranges data list\n@param value value in the list\n@param arraySize the max search index of the list\n@return search result of range\nTODO: This should move into SegmentList.scala", "Use this API to fetch all the gslbsite resources that are configured on netscaler.", "Creates the graphic element to be shown when the datasource is empty", "Features are only cacheable when not converted lazily as lazy features are incomplete, it would put detached\nobjects in the cache.\n\n@return true when features are not converted lazily", "Does the server support log downloads?\n\n@param cliGuiCtx The context.\n@return <code>true</code> if the server supports log downloads,\n<code>false</code> otherwise.", "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", "Set the String-representation of size.\n\nLike: Square, Thumbnail, Small, Medium, Large, Original.\n\n@param label", "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 Duration getWork(Date startDate, Date endDate, TimeUnit format) { DateRange range = new DateRange(startDate, endDate); Long cachedResult = m_workingDateCache.get(range); long totalTime = 0; if (cachedResult == null) { // // We want the start date to be the earliest date, and the end date // to be the latest date. Set a flag here to indicate if we have swapped // the order of the supplied date. // boolean invert = false; if (startDate.getTime() > endDate.getTime()) { invert = true; Date temp = startDate; startDate = endDate; endDate = temp; } Date canonicalStartDate = DateHelper.getDayStartDate(startDate); Date canonicalEndDate = DateHelper.getDayStartDate(endDate); if (canonicalStartDate.getTime() == canonicalEndDate.getTime()) { ProjectCalendarDateRanges ranges = getRanges(startDate, null, null); if (ranges.getRangeCount() != 0) { totalTime = getTotalTime(ranges, startDate, endDate); } } else { // // Find the first working day in the range // Date currentDate = startDate; Calendar cal = Calendar.getInstance(); cal.setTime(startDate); Day day = Day.getInstance(cal.get(Calendar.DAY_OF_WEEK)); while (isWorkingDate(currentDate, day) == false && currentDate.getTime() < canonicalEndDate.getTime()) { cal.add(Calendar.DAY_OF_YEAR, 1); currentDate = cal.getTime(); day = day.getNextDay(); } if (currentDate.getTime() < canonicalEndDate.getTime()) { // // Calculate the amount of working time for this day // totalTime += getTotalTime(getRanges(currentDate, null, day), currentDate, true); // // Process each working day until we reach the last day // while (true) { cal.add(Calendar.DAY_OF_YEAR, 1); currentDate = cal.getTime(); day = day.getNextDay(); // // We have reached the last day // if (currentDate.getTime() >= canonicalEndDate.getTime()) { break; } // // Skip this day if it has no working time // ProjectCalendarDateRanges ranges = getRanges(currentDate, null, day); if (ranges.getRangeCount() == 0) { continue; } // // Add the working time for the whole day // totalTime += getTotalTime(ranges); } } // // We are now at the last day // ProjectCalendarDateRanges ranges = getRanges(endDate, null, day); if (ranges.getRangeCount() != 0) { totalTime += getTotalTime(ranges, DateHelper.getDayStartDate(endDate), endDate); } } if (invert) { totalTime = -totalTime; } m_workingDateCache.put(range, Long.valueOf(totalTime)); } else { totalTime = cachedResult.longValue(); } return convertFormat(totalTime, format); }
[ "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" ]
[ "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", "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream", "Runs calls in a background thread so that the results will actually be asynchronous.\n\n@see com.google.appengine.tools.cloudstorage.RawGcsService#continueObjectCreationAsync(\ncom.google.appengine.tools.cloudstorage.RawGcsService.RawGcsCreationToken,\njava.nio.ByteBuffer, long)", "For every String key, it registers the object as a parameter to make it available\nin the report.\n\n@param jd\n@param _parameters", "Create a ModelNode representing the operating system the instance is running on.\n\n@return a ModelNode representing the operating system the instance is running on.\n@throws OperationFailedException", "Pause the current entry point, and invoke the provided listener when all current requests have finished.\n\nIf individual control point tracking is not enabled then the listener will be invoked straight away\n\n@param requestCountListener The listener to invoke", "Constructs and sets the layout parameters to have some gravity.\n\n@param gravity the gravity of the Crouton\n@return <code>this</code>, for chaining.\n@see android.view.Gravity", "Convert raw data into Java types.\n\n@param type data type\n@param data raw data\n@return list of Java object", "Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A line to expand\n@param tabStop The number of spaces a tab represents\n@return The expanded toString() of this CharSequence\n@see #expandLine(String, int)\n@since 1.8.2" ]
private void readException(ProjectCalendar bc, Project.Calendars.Calendar.Exceptions.Exception exception) { Date fromDate = exception.getTimePeriod().getFromDate(); Date toDate = exception.getTimePeriod().getToDate(); // Vico Schedule Planner seems to write start and end dates to FromTime and ToTime // rather than FromDate and ToDate. This is plain wrong, and appears to be ignored by MS Project // so we will ignore it too! if (fromDate != null && toDate != null) { ProjectCalendarException bce = bc.addCalendarException(fromDate, toDate); bce.setName(exception.getName()); readRecurringData(bce, exception); Project.Calendars.Calendar.Exceptions.Exception.WorkingTimes times = exception.getWorkingTimes(); if (times != null) { List<Project.Calendars.Calendar.Exceptions.Exception.WorkingTimes.WorkingTime> time = times.getWorkingTime(); for (Project.Calendars.Calendar.Exceptions.Exception.WorkingTimes.WorkingTime period : time) { Date startTime = period.getFromTime(); Date endTime = period.getToTime(); if (startTime != null && endTime != null) { if (startTime.getTime() >= endTime.getTime()) { endTime = DateHelper.addDays(endTime, 1); } bce.addRange(new DateRange(startTime, endTime)); } } } } }
[ "Read a single calendar exception.\n\n@param bc parent calendar\n@param exception exception data" ]
[ "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the value", "Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content.", "This method is called to alert project listeners to the fact that\na calendar has been read from a project file.\n\n@param calendar calendar instance", "Returns the docker version.\n\n@param serverUrl\nThe serverUrl to use.", "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors", "Sends out the SQL as defined in the config upon first init of the connection.\n@param connection\n@param initSQL\n@throws SQLException", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance", "Get the Json Schema of the input path, assuming the path contains just one\nschema version in all files under that path.", "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" ]
private void createPropertyVfsBundleFiles() throws CmsIllegalArgumentException, CmsLoaderException, CmsException { String bundleFileBasePath = m_sitepath + m_basename + "_"; for (Locale l : m_localizations.keySet()) { CmsResource res = m_cms.createResource( bundleFileBasePath + l.toString(), OpenCms.getResourceManager().getResourceType( CmsMessageBundleEditorTypes.BundleType.PROPERTY.toString())); m_bundleFiles.put(l, res); LockedFile file = LockedFile.lockResource(m_cms, res); file.setCreated(true); m_lockedBundleFiles.put(l, file); m_changedTranslations.add(l); } }
[ "Creates all propertyvfsbundle files for the currently loaded translations.\nThe method is used to convert xmlvfsbundle files into propertyvfsbundle files.\n\n@throws CmsIllegalArgumentException thrown if resource creation fails.\n@throws CmsLoaderException thrown if the propertyvfsbundle type can't be read from the resource manager.\n@throws CmsException thrown if creation, type retrieval or locking fails." ]
[ "Output the SQL type for a Java String.", "Print a date.\n\n@param value Date instance\n@return string representation of a date", "Adds mappings for each declared field in the mapped class. Any fields\nalready mapped by addColumn are skipped.", "Gets read-only metadata.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to fetch read-only metadata from\n@param storeNames Stores names to fetch read-only metadata from\n@param metaKeys List of read-only metadata to fetch\n@throws IOException", "Convert an Object to a DateTime.", "Formats a date or a time range according to the local conventions.\n\nYou should ensure that start/end are in the same timezone; formatDateRange()\ndoesn't handle start/end in different timezones well.\n\nSee {@link android.text.format.DateUtils#formatDateRange} for full docs.\n\n@param context the context is required only if the time is shown\n@param start the start time\n@param end the end time\n@param flags a bit mask of options\n@return a string containing the formatted date/time range", "This method retrieves ONLY the ROOT actions", "Load the available layers.\n\n@param image the installed image\n@param productConfig the product config to establish the identity\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the layers\n@throws IOException", "Create a list of operations required to a boot a managed server.\n\n@param serverName the server name\n@param domainModel the complete domain model\n@param hostModel the local host model\n@param domainController the domain controller\n@return the list of boot operations" ]