query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
protected void reportStorageOpTime(long startNs) { if(streamStats != null) { streamStats.reportStreamingScan(operation); streamStats.reportStorageTime(operation, Utils.elapsedTimeNs(startNs, System.nanoTime())); } }
[ "Helper method to track storage operations & time via StreamingStats.\n\n@param startNs" ]
[ "Retrieve the value of a single-valued parameter.\n\n@param key\n@param defaultValue\n@param cnx", "Call the no-arg constructor for the given class\n\n@param <T> The type of the thing to construct\n@param klass The class\n@return The constructed thing", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Remove a management request handler factory from this context.\n\n@param instance the request handler factory\n@return {@code true} if the instance was removed, {@code false} otherwise", "Reads a file and returns the result in a String\n\n@param file File\n@return String\n@throws IOException", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "Use this API to fetch aaagroup_vpntrafficpolicy_binding resources of given name .", "Retrieve the integer value used to represent a task field in an\nMPX file.\n\n@param value MPXJ task field value\n@return MPX field value", "Removes the given key with its associated element from the receiver, if present.\n\n@param key the key to be removed from the receiver.\n@return <tt>true</tt> if the receiver contained the specified key, <tt>false</tt> otherwise." ]
public int nextToken() throws IOException { int c; int nextc = -1; boolean quoted = false; int result = m_next; if (m_next != 0) { m_next = 0; } m_buffer.setLength(0); while (result == 0) { if (nextc != -1) { c = nextc; nextc = -1; } else { c = read(); } switch (c) { case TT_EOF: { if (m_buffer.length() != 0) { result = TT_WORD; m_next = TT_EOF; } else { result = TT_EOF; } break; } case TT_EOL: { int length = m_buffer.length(); if (length != 0 && m_buffer.charAt(length - 1) == '\r') { --length; m_buffer.setLength(length); } if (length == 0) { result = TT_EOL; } else { result = TT_WORD; m_next = TT_EOL; } break; } default: { if (c == m_quote) { if (quoted == false && startQuotedIsValid(m_buffer)) { quoted = true; } else { if (quoted == false) { m_buffer.append((char) c); } else { nextc = read(); if (nextc == m_quote) { m_buffer.append((char) c); nextc = -1; } else { quoted = false; } } } } else { if (c == m_delimiter && quoted == false) { result = TT_WORD; } else { m_buffer.append((char) c); } } } } } m_type = result; return (result); }
[ "This method retrieves the next token and returns a constant representing\nthe type of token found.\n\n@return token type value" ]
[ "Remove a named object", "Disable all overrides for a specified path\n\n@param pathID ID of path containing overrides\n@param clientUUID UUID of client", "Creates a non-binary media type with the given type, subtype, and charSet\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Calculate start dates for a monthly relative recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Shutdown task scheduler.", "Convert this buffer to a java array.\n@return", "Find the index of the specified name in field name array.", "Sets the color for the big total between the column and row\n@param row row index (starting from 1)\n@param column column index (starting from 1)\n@param color" ]
static TarArchiveEntry defaultFileEntryWithName( final String fileName ) { TarArchiveEntry entry = new TarArchiveEntry(fileName, true); entry.setUserId(ROOT_UID); entry.setUserName(ROOT_NAME); entry.setGroupId(ROOT_UID); entry.setGroupName(ROOT_NAME); entry.setMode(TarArchiveEntry.DEFAULT_FILE_MODE); return entry; }
[ "Creates a tar file entry with defaults parameters.\n@param fileName the entry name\n@return file entry with reasonable defaults" ]
[ "Returns the HTTP status text for the HTTP or WebDav status code\nspecified by looking it up in the static mapping. This is a\nstatic function.\n\n@param nHttpStatusCode [IN] HTTP or WebDAV status code\n@return A string with a short descriptive phrase for the\nHTTP status code (e.g., \"OK\").", "Internal method which performs the authenticated request by preparing the auth request with\nthe provided auth info and request.", "Returns the device push token or null\n\n@param type com.clevertap.android.sdk.PushType (FCM or GCM)\n@return String device token or null\nNOTE: on initial install calling getDevicePushToken may return null, as the device token is\nnot yet available\nImplement CleverTapAPI.DevicePushTokenRefreshListener to get a callback once the token is\navailable", "Get string value of flow context for current instance\n@return string value of flow context", "Cancel request and workers.", "Set an unknown field.\n@param name the unknown property name\n@param value the unknown property value", "Extracts a duration from a JAXBElement instance.\n\n@param duration duration expressed in hours\n@return duration instance", "send object to client and serialize it using JSON\n\n@param objectToSend the object to send\n@param cb the callback after sending the message", "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" ]
public static appqoepolicy get(nitro_service service, String name) throws Exception{ appqoepolicy obj = new appqoepolicy(); obj.set_name(name); appqoepolicy response = (appqoepolicy) obj.get_resource(service); return response; }
[ "Use this API to fetch appqoepolicy resource of given name ." ]
[ "Populates a relation list.\n\n@param task parent task\n@param field target task field\n@param data MPX relation list data", "Returns whether this address contains the non-zero host addresses in other.\n@param other\n@return", "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Type-safe wrapper around setVariable which sets only one framed vertex.", "Searches all descendant folders using a given query and query parameters.\n@param offset is the starting position.\n@param limit the maximum number of items to return. The default is 30 and the maximum is 200.\n@param bsp containing query and advanced search capabilities.\n@return a PartialCollection containing the search results.", "Generates JUnit 4 RunListener instances for any user defined RunListeners", "Creates a directory at the given path if it does not exist yet and if the\ndirectory manager was not configured for read-only access.\n\n@param path\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Searches for descriptions of integer sequences and array ranges that have a colon character in them\n\nExamples of integer sequences:\n1:6\n2:4:20\n:\n\nExamples of array range\n2:\n2:4:", "Use this API to fetch statistics of appfwprofile_stats resource of given name ." ]
public static Command newInsert(Object object, String outIdentifier, boolean returnObject, String entryPoint ) { return getCommandFactoryProvider().newInsert( object, outIdentifier, returnObject, entryPoint ); }
[ "Inserts a new instance but references via the outIdentifier, which is returned as part of the ExecutionResults\nThe outIdentifier can be null.\nThe entryPoint, which can also be null, specifies the entrypoint the object is inserted into.\n\n@param object\n@param outIdentifier\n@param entryPoint\n@return" ]
[ "Randomly generates matrix with the specified number of non-zero elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix", "fetch correct array index if index is less than 0\n\nArrayNode will convert all negative integers into 0...\n\n@param index wanted index\n@return {@link Integer} new index", "Put a new value in map.\n\n@param key id of the value for looking up.\n@param value the value.", "set proper expression text invoking the DJCRosstabMeasurePrecalculatedTotalProvider for the cell\n@param auxRows\n@param auxCols\n@param measureExp\n@param djmeasure\n@param crosstabColumn\n@param crosstabRow\n@param meausrePrefix", "This static method calculated the rho of a call option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The rho of the option", "parse json text to specified class\n\n@param jsonRtn\n@param jsonRtnClazz\n@return", "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return", "Note that if there is sleep in this method.\n\n@param stopCount\nthe stop count", "Declares the internal data structures so that it can process matrices up to the specified size.\n\n@param maxRows\n@param maxCols" ]
public String toDecodedString(final java.net.URI uri) { final String scheme = uri.getScheme(); final String part = uri.getSchemeSpecificPart(); if ((scheme == null)) { return part; } return ((scheme + ":") + part); }
[ "converts a java.net.URI to a decoded string" ]
[ "Use this API to add route6 resources.", "Call the appropriate handler for handling the httprequest. 404 if path is not found. 405 if path is found but\nhttpMethod does not match what's configured.\n\n@param request instance of {@code HttpRequest}\n@param responder instance of {@code HttpResponder} to handle the request.", "Called when the scene object gets a new parent.\n\n@param parent New parent of this scene object.", "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted.", "Adds BETWEEN criteria,\ncustomer_id between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary", "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.", "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", "Returns string content of blob identified by specified blob handle. String contents cache is used.\n\n@param blobHandle blob handle\n@param txn {@linkplain Transaction} instance\n@return string content of blob identified by specified blob handle\n@throws IOException if something went wrong", "Edit the text of a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to edit.\n@param commentText\nUpdate the comment to this text.\n@throws FlickrException" ]
public static String getPrefixFromValue(String value) { if (value == null) { return null; } else if (value.contains(DELIMITER)) { String[] list = value.split(DELIMITER); if (list != null && list.length > 0) { return list[0].replaceAll("\u0000", ""); } else { return null; } } else { return value.replaceAll("\u0000", ""); } }
[ "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value" ]
[ "Creates a text box with the given parent and text node assigned.\n@param contblock The parent node (and the containing block in the same time)\n@param n The corresponding text node in the DOM tree.\n@return The new text box.", "Iterates through the given InputStream line by line using the specified\nencoding, splitting each line using the given separator. The list of tokens\nfor each line is then passed to the given closure. Finally, the stream\nis closed.\n\n@param stream an InputStream\n@param regex the delimiting regular expression\n@param charset opens the stream with a specified charset\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see #splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5", "Creates a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix.", "Log a byte array as a hex dump.\n\n@param data byte array", "Register an active operation with a specific operation id.\n\n@param id the operation id\n@param attachment the shared attachment\n@param callback the completed callback\n@return the created active operation\n\n@throws java.lang.IllegalStateException if an operation with the same id is already registered", "Resize and return the image passing the new height and width\n\n@param height\n@param width\n@return", "Compiles and fills the reports design.\n\n@param dr the DynamicReport\n@param layoutManager the object in charge of doing the layout\n@param ds The datasource\n@param _parameters Map with parameters that the report may need\n@return\n@throws JRException", "Specifies an input field to assign a value to. Crawljax first tries to match the found HTML\ninput element's id and then the name attribute.\n\n@param type\nthe type of input field\n@param identification\nthe locator of the input field\n@return an InputField", "Gives the \"roots\" of a list of folders, i.e. the list of folders which are not descendants of any other folders in the original list\n@param folders the original list of folders\n@return the root folders of the list" ]
public DynamicReportBuilder setColspan(int colNumber, int colQuantity, String colspanTitle) { this.setColspan(colNumber, colQuantity, colspanTitle, null); return this; }
[ "Set a colspan in a group of columns. First add the cols to the report\n\n@param colNumber the index of the col\n@param colQuantity the number of cols how i will take\n@param colspanTitle colspan title\n@return a Dynamic Report Builder\n@throws ColumnBuilderException When the index of the cols is out of\nbounds." ]
[ "Return an input stream to read the data from the named table.\n\n@param name table name\n@return InputStream instance\n@throws IOException", "Sets the upper limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis upper rotation limit (in radians)\n@param limitY the Y axis upper rotation limit (in radians)\n@param limitZ the Z axis upper rotation limit (in radians)", "Given the lambda value perform an implicit QR step on the matrix.\n\nB^T*B-lambda*I\n\n@param lambda Stepping factor.", "Go through all nodes and determine how many partition Ids each node\nhosts.\n\n@param cluster\n@return map of nodeId to number of primary partitions hosted on node.", "If the String argument defaultLocatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the\ncorresponding strategy is selected and set as default strategy, else both the selected strategy and the default strategy remain\nunchanged.\n@param defaultLocatorSelectionStrategy", "Use this API to fetch all the policydataset resources that are configured on netscaler.", "Gets the effects of this action.\n\n@return the effects. Will not be {@code null}", "This method writes resource data to a Planner file.", "Use this API to fetch all the gslbsite resources that are configured on netscaler." ]
private String parsePropertyName(String orgPropertyName, Object userData) { // try to assure the correct separator is used String propertyName = orgPropertyName.replace(HibernateLayerUtil.XPATH_SEPARATOR, HibernateLayerUtil.SEPARATOR); // split the path (separator is defined in the HibernateLayerUtil) String[] props = propertyName.split(HibernateLayerUtil.SEPARATOR_REGEXP); String finalName; if (props.length > 1 && userData instanceof Criteria) { // the criteria API requires an alias for each join table !!! String prevAlias = null; for (int i = 0; i < props.length - 1; i++) { String alias = props[i] + "_alias"; if (!aliases.contains(alias)) { Criteria criteria = (Criteria) userData; if (i == 0) { criteria.createAlias(props[0], alias); } else { criteria.createAlias(prevAlias + "." + props[i], alias); } aliases.add(alias); } prevAlias = alias; } finalName = prevAlias + "." + props[props.length - 1]; } else { finalName = propertyName; } return finalName; }
[ "Go through the property name to see if it is a complex one. If it is, aliases must be declared.\n\n@param orgPropertyName\nThe propertyName. Can be complex.\n@param userData\nThe userData object that is passed in each method of the FilterVisitor. Should always be of the info\n\"Criteria\".\n@return property name" ]
[ "Reads a command \"tag\" from the request.", "Add a clause where the ID is equal to the argument.", "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.", "Creates a single property declaration.\n@param property Property name.\n@param term Property value.\n@return The resulting declaration.", "Get the unique set of declared methods on the leaf class and all superclasses. Leaf\nclass methods are included first and while traversing the superclass hierarchy any methods found\nwith signatures matching a method already included are filtered out.", "Throws one RendererException if the viewType, layoutInflater or parent are null.", "Gets the matching beans for binding criteria from a list of beans\n\n@param resolvable the resolvable\n@return A set of filtered beans", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "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." ]
public Object copy(Object obj, PersistenceBroker broker) throws ObjectCopyException { if (obj instanceof OjbCloneable) { try { return ((OjbCloneable) obj).ojbClone(); } catch (Exception e) { throw new ObjectCopyException(e); } } else { throw new ObjectCopyException("Object must implement OjbCloneable in order to use the" + " CloneableObjectCopyStrategy"); } }
[ "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)" ]
[ "read broker info for watching topics\n\n@param zkClient the zookeeper client\n@param topics topic names\n@return topic-&gt;(brokerid-0,brokerid-1...brokerid2-0,brokerid2-1...)", "Returns the complete project record for a single project.\n\n@param project The project to get.\n@return Request object", "Remove a management request handler factory from this context.\n\n@param instance the request handler factory\n@return {@code true} if the instance was removed, {@code false} otherwise", "Use this API to add gslbservice.", "Try to provide an escaped, ready-to-use shell line to repeat a given command line.", "Return a logger associated with a particular class name.", "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods", "Gets the element view.\n\n@return the element view", "Handle value change event on the individual dates list.\n@param event the change event." ]
public void setIntegerAttribute(String name, Integer value) { ensureValue(); Attribute attribute = new IntegerAttribute(value); attribute.setEditable(isEditable(name)); getValue().getAllAttributes().put(name, attribute); }
[ "Sets the specified integer 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" ]
[ "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", "Use this API to fetch a appflowglobal_binding resource .", "If this node represents a bean property this method returns all annotations of its getter.\n\n@return A set of annotations of this nodes property getter or an empty set.", "Adds a property to report design, this properties are mostly used by\nexporters to know if any specific configuration is needed\n\n@param name\n@param value\n@return A Dynamic Report Builder", "Provides a method that compares two comparables using Groovy's\ndefault number aware comparator.\n\n@param self a Comparable\n@param other another Comparable\n@return a -ve number, 0 or a +ve number according to Groovy's compareTo contract\n@since 1.6.0", "Use this API to update ntpserver resources.", "Requests the cue list for a specific track ID, given a dbserver connection to a player that has already\nbeen set up.\n\n@param rekordboxId the track of interest\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved cue list, or {@code null} if none was available\n@throws IOException if there is a communication problem", "This method evaluates a if a graphical indicator should\nbe displayed, given a set of Task or Resource data. The\nmethod will return -1 if no indicator should be displayed.\n\n@param container Task or Resource instance\n@return indicator index", "Use this API to fetch sslvserver_sslciphersuite_binding resources of given name ." ]
public static base_response enable(nitro_service client, String acl6name) throws Exception { nsacl6 enableresource = new nsacl6(); enableresource.acl6name = acl6name; return enableresource.perform_operation(client,"enable"); }
[ "Use this API to enable nsacl6 of given name." ]
[ "Starts given docker machine.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n@param machineName\nto be started.", "Appends formatted text to the source.\n\n<p>Formatting supports {@code %s} and {@code %n$s}. Most args are converted according to their\n{@link Object#toString()} method, except that:<ul>\n<li> {@link Package} and {@link PackageElement} instances use their fully-qualified names\n(no \"package \" prefix).\n<li> {@link Class}, {@link TypeElement}, {@link DeclaredType} and {@link QualifiedName}\ninstances use their qualified names where necessary, or shorter versions if a suitable\nimport line can be added.\n<li> {@link Excerpt} instances have {@link Excerpt#addTo(SourceBuilder)} called.\n</ul>", "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model", "Removes CRs but returns LFs", "Use this API to fetch all the dnstxtrec resources that are configured on netscaler.", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Fetch the specified expression from the cache or create it if necessary.\n\n@param expressionString the expression string\n@return the expression\n@throws ParseException oops", "Generates a full list of all parents and their children, in order.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@return A list of all parents and their children, expanded", "Deserialize a javascript design document file to a DesignDocument object.\n\n@param file the design document javascript file (UTF-8 encoded)\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read" ]
private void writeAllEnvelopes(boolean reuse) { // perform remove of m:n indirection table entries first performM2NUnlinkEntries(); Iterator iter; // using clone to avoid ConcurentModificationException iter = ((List) mvOrderOfIds.clone()).iterator(); while(iter.hasNext()) { ObjectEnvelope mod = (ObjectEnvelope) mhtObjectEnvelopes.get(iter.next()); boolean insert = false; if(needsCommit) { insert = mod.needsInsert(); mod.getModificationState().commit(mod); if(reuse && insert) { getTransaction().doSingleLock(mod.getClassDescriptor(), mod.getObject(), mod.getIdentity(), Transaction.WRITE); } } /* arminw: important to call this cleanup method for each registered ObjectEnvelope, because this method will e.g. remove proxy listener objects for registered objects. */ mod.cleanup(reuse, insert); } // add m:n indirection table entries performM2NLinkEntries(); }
[ "commit all envelopes against the current broker" ]
[ "find the middle point of two intersect points in circle,only one point will be correct\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Populates a resource availability table.\n\n@param table resource availability table\n@param data file data", "Find out the scrollable child view from a ViewGroup.\n\n@param viewGroup", "Checks if a newly created action wants to write output to stdout, and\nlogs a warning if other actions are doing the same.\n\n@param newAction\nthe new action to be checked", "Verify JUnit presence and version.", "Validates a String to be a valid name to be used in MongoDB for a collection name.\n\n@param collectionName", "exposed only for tests", "Normalizes elements in 'u' by dividing by max and computes the norm2 of the normalized\narray u. Adjust the sign of the returned value depending on the size of the first\nelement in 'u'. Normalization is done to avoid overflow.\n\n<pre>\nfor i=j:numRows\nu[i] = u[i] / max\ntau = tau + u[i]*u[i]\nend\ntau = sqrt(tau)\nif( u[j] &lt; 0 )\ntau = -tau;\n</pre>\n\n@param j Element in 'u' that it starts at.\n@param numRows Element in 'u' that it stops at.\n@param u Array\n@param max Max value in 'u' that is used to normalize it.\n@return norm2 of 'u'", "Determines if a mouse event is inside a box." ]
private void readRecurringData(ProjectCalendarException bce, Project.Calendars.Calendar.Exceptions.Exception exception) { RecurrenceType rt = getRecurrenceType(NumberHelper.getInt(exception.getType())); if (rt != null) { RecurringData rd = new RecurringData(); rd.setStartDate(bce.getFromDate()); rd.setFinishDate(bce.getToDate()); rd.setRecurrenceType(rt); rd.setRelative(getRelative(NumberHelper.getInt(exception.getType()))); rd.setOccurrences(NumberHelper.getInteger(exception.getOccurrences())); switch (rd.getRecurrenceType()) { case DAILY: { rd.setFrequency(getFrequency(exception)); break; } case WEEKLY: { rd.setWeeklyDaysFromBitmap(NumberHelper.getInteger(exception.getDaysOfWeek()), DAY_MASKS); rd.setFrequency(getFrequency(exception)); break; } case MONTHLY: { if (rd.getRelative()) { rd.setDayOfWeek(Day.getInstance(NumberHelper.getInt(exception.getMonthItem()) - 2)); rd.setDayNumber(Integer.valueOf(NumberHelper.getInt(exception.getMonthPosition()) + 1)); } else { rd.setDayNumber(NumberHelper.getInteger(exception.getMonthDay())); } rd.setFrequency(getFrequency(exception)); break; } case YEARLY: { if (rd.getRelative()) { rd.setDayOfWeek(Day.getInstance(NumberHelper.getInt(exception.getMonthItem()) - 2)); rd.setDayNumber(Integer.valueOf(NumberHelper.getInt(exception.getMonthPosition()) + 1)); } else { rd.setDayNumber(NumberHelper.getInteger(exception.getMonthDay())); } rd.setMonthNumber(Integer.valueOf(NumberHelper.getInt(exception.getMonth()) + 1)); break; } } if (rd.getRecurrenceType() != RecurrenceType.DAILY || rd.getDates().length > 1) { bce.setRecurring(rd); } } }
[ "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception" ]
[ "Gets the current user.\n@param api the API connection of the current user.\n@return the current user.", "Add the given string 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 str\nthe appended string.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.\n@since 2.11", "Sets the class loader to be used on serialization operations, for data\nstored in the specified fqn and child nodes. Note that if another class\nloader is set for a specific child node tree, the cache will use instead\nthat class loader.\n\n@param regionFqn\n@param classLoader", "updates the groupname in the table given the id\n\n@param newGroupName new group name\n@param id ID of group", "Saves the current translations from the container to the respective localization.", "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)", "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null", "Displays a localized warning.\n@param caption the caption of the warning.\n@param description the description of the warning.", "Peeks the current top of the stack or returns null if the stack is empty\n@return the current top of the stack or returns null if the stack is empty" ]
public static boolean sameNetwork(int prefixLength, InetAddress address1, InetAddress address2) { if (logger.isDebugEnabled()) { logger.debug("Comparing address " + address1.getHostAddress() + " with " + address2.getHostAddress() + ", prefixLength=" + prefixLength); } long prefixMask = 0xffffffffL & (-1 << (32 - prefixLength)); return (addressToLong(address1) & prefixMask) == (addressToLong(address2) & prefixMask); }
[ "Checks whether two internet addresses are on the same subnet.\n\n@param prefixLength the number of bits within an address that identify the network\n@param address1 the first address to be compared\n@param address2 the second address to be compared\n\n@return true if both addresses share the same network bits" ]
[ "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "Determines how many primary partitions each node within each zone should\nhave. The list of integers returned per zone is the same length as the\nnumber of nodes in that zone.\n\n@param nextCandidateCluster\n@param targetPartitionsPerZone\n@return A map of zoneId to list of target number of partitions per node\nwithin zone.", "Multiple of gradient windwos per masc relation of x y\n\n@return int[]", "Deletes a chain of vertices from this list.", "Reports a dependency of this node has been faulted.\n\n@param dependencyKey the id of the dependency node\n@param throwable the reason for unsuccessful resolution", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name", "Vend a SessionVar with the default value", "Tells you if the expression is a null safe dereference.\n@param expression\nexpression\n@return\ntrue if is null safe dereference." ]
public static boolean isMapLiteralWithOnlyConstantValues(Expression expression) { if (expression instanceof MapExpression) { List<MapEntryExpression> entries = ((MapExpression) expression).getMapEntryExpressions(); for (MapEntryExpression entry : entries) { if (!isConstantOrConstantLiteral(entry.getKeyExpression()) || !isConstantOrConstantLiteral(entry.getValueExpression())) { return false; } } return true; } return false; }
[ "Returns true if a Map literal that contains only entries where both key and value are constants.\n@param expression - any expression" ]
[ "Converts a time in milliseconds to the appropriate x coordinate for drawing something at that time.\n\n@param milliseconds the time at which something should be drawn\n\n@return the component x coordinate at which it should be drawn", "Hardcode a copy method as being valid. This should be used to tell Mutability Detector about\na method which copies a collection, and when the copy can be wrapped in an immutable wrapper\nwe can consider the assignment immutable. Useful for allowing Mutability Detector to correctly\nwork with other collections frameworks such as Google Guava. Reflection is used to obtain the\nmethod's descriptor and to verify the method's existence.\n\n@param fieldType - the type of the field to which the result of the copy is assigned\n@param fullyQualifiedMethodName - the fully qualified method name\n@param argType - the type of the argument passed to the copy method\n\n@throws MutabilityAnalysisException - if the specified class or method does not exist\n@throws IllegalArgumentException - if any of the arguments are null", "Returns the current download state for a download request.\n\n@param downloadId\n@return", "Get the error message with the dependencies appended\n\n@param dependencies - the list with dependencies to be attached to the message\n@param message - the custom error message to be displayed to the user\n@return String", "Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data", "Verify that the given queues are all valid.\n\n@param queues the given queues", "Delete a record.\n\n@param referenceId the reference ID.", "Populates a relation list.\n\n@param task parent task\n@param field target task field\n@param data MPX relation list data", "List the photos with the most views, comments or favorites.\n\n@param date\n(Optional) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day. If no date is provided, all time view counts will be returned.\n@param sort\n(Optional) The order in which to sort returned photos. Defaults to views. The possible values are views, comments and favorites. Other sort\noptions are available through flickr.photos.search.\n@param perPage\n(Optional) Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html\"" ]
public static appflowpolicylabel get(nitro_service service, String labelname) throws Exception{ appflowpolicylabel obj = new appflowpolicylabel(); obj.set_labelname(labelname); appflowpolicylabel response = (appflowpolicylabel) obj.get_resource(service); return response; }
[ "Use this API to fetch appflowpolicylabel resource of given name ." ]
[ "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException", "Get the Operation metadata for a single operation on an MBean by name.\n@param operationName the Operation name (can be URL-encoded).\n@return the {@link MBeanOperationInfo} for the operation.\n@throws OperationNotFoundException Method was not found\n@throws UnsupportedEncodingException if the encoding is not supported.", "Calculate the value of a swaption assuming the Black'76 model.\n\n@param forwardSwaprate The forward (spot)\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity.\n@param optionStrike The option strike.\n@param swapAnnuity The swap annuity corresponding to the underlying swap.\n@return Returns the value of a Swaption under the Black'76 model", "Sets the RDF serialization tasks based on the given string value.\n\n@param tasks\na space-free, comma-separated list of task names", "Renders in LI tags, Wraps with UL tags optionally.", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "Writes resource baseline data.\n\n@param xmlResource MSPDI resource\n@param mpxjResource MPXJ resource", "Process task dependencies.", "Returns the bounding box of the vertices.\n@param corners destination array to get corners of bounding box.\nThe first three entries are the minimum X,Y,Z values\nand the next three are the maximum X,Y,Z.\n@return true if bounds are not empty, false if empty (no vertices)" ]
protected void parseCombineIntegerLists(TokenList tokens) { TokenList.Token t = tokens.getFirst(); if( t == null || t.next == null ) return; int numFound = 0; TokenList.Token start = null; TokenList.Token end = null; while( t != null ) { if( t.getType() == Type.VARIABLE && (isVariableInteger(t) || t.getVariable().getType() == VariableType.INTEGER_SEQUENCE )) { if( numFound == 0 ) { numFound = 1; start = end = t; } else { numFound++; end = t; } } else if( numFound > 1 ) { IntegerSequence sequence = new IntegerSequence.Combined(start,end); VariableIntegerSequence varSequence = functions.getManagerTemp().createIntegerSequence(sequence); replaceSequence(tokens, varSequence, start, end); numFound = 0; } else { numFound = 0; } t = t.next; } if( numFound > 1 ) { IntegerSequence sequence = new IntegerSequence.Combined(start,end); VariableIntegerSequence varSequence = functions.getManagerTemp().createIntegerSequence(sequence); replaceSequence(tokens, varSequence, start, end); } }
[ "Looks for sequences of integer lists and combine them into one big sequence" ]
[ "Renders the given FreeMarker template to given directory, using given variables.", "Loads a classifier from the file specified. If the file's name ends in .gz,\nuses a GZIPInputStream, else uses a regular FileInputStream. This method\ncloses the File when done.\n\n@param file\nLoads a classifier from this file.\n@param props\nProperties in this object will be used to overwrite those\nspecified in the serialized classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Converts the provided javascript object to JSON string.\n\n<p>If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as\na list, otherwise the object is merely converted to string using the {@code toString()} method.\n\n@param object the object to stringify.\n\n@return the object as a JSON string", "Get the active operation.\n\n@param id the active operation id\n@return the active operation, {@code null} if if there is no registered operation", "Queues a Runnable to be run on the main thread on the next iteration of\nthe messaging loop. This is handy when code running on the main thread\nneeds to run something else on the main thread, but only after the\ncurrent code has finished executing.\n\n@param r\nThe {@link Runnable} to run on the main thread.\n@return Returns {@code true} if the Runnable was successfully placed in\nthe Looper's message queue.", "Verify that all OGM custom externalizers are present.\nN.B. even if some Externalizer is only needed in specific configuration,\nit is not safe to start a CacheManager without one as the same CacheManager\nmight be used, or have been used in the past, to store data using a different\nconfiguration.\n\n@see ExternalizerIds\n@see AdvancedExternalizer\n@param externalCacheManager the provided CacheManager to validate", "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value", "Moves the given row up.\n\n@param row the row to move", "Remove a previously registered requirement for a capability.\n\n@param requirementRegistration the requirement. Cannot be {@code null}\n@see #registerAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)" ]
private void computeGradientAndHessian(DMatrixRMaj param ) { // residuals = f(x) - y function.compute(param, residuals); computeNumericalJacobian(param,jacobian); CommonOps_DDRM.multTransA(jacobian, residuals, g); CommonOps_DDRM.multTransA(jacobian, jacobian, H); CommonOps_DDRM.extractDiag(H,Hdiag); }
[ "Computes the d and H parameters.\n\nd = J'*(f(x)-y) <--- that's also the gradient\nH = J'*J" ]
[ "Close all HTTP clients created by this factory\n@throws IOException if an I/O error occurs", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "Get a value as a string.\n\n@param key the key for looking up the value.\n@param type the type of the object\n@param <V> the type", "Disable certificate verification.\n\n@throws KeyManagementException\nthe key management exception\n@throws NoSuchAlgorithmException\nthe no such algorithm exception", "If a and b are not null, returns a new duration of a + b.\nIf a is null and b is not null, returns b.\nIf a is not null and b is null, returns a.\nIf a and b are null, returns null.\nIf needed, b is converted to a's time unit using the project properties.\n\n@param a first duration\n@param b second duration\n@param defaults project properties containing default values\n@return a + b", "Use this API to fetch rewritepolicy_csvserver_binding resources of given name .", "Reads input data from a JSON file in the output directory.", "Get the related tags.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\nThe source tag\n@return A RelatedTagsList object\n@throws FlickrException", "Method for reporting SQLException. This is used by\nthe treenodes if retrieving information for a node\nis not successful.\n@param message The message describing where the error occurred\n@param sqlEx The exception to be reported." ]
public static Bitmap flip(Bitmap src) { Matrix m = new Matrix(); m.preScale(-1, 1); return Bitmap.createBitmap(src, 0, 0, src.getWidth(), src.getHeight(), m, false); }
[ "Mirrors the given bitmap" ]
[ "Creates a remove operation.\n\n@param address the address for the operation\n@param recursive {@code true} if the remove should be recursive, otherwise {@code false}\n\n@return the operation", "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object", "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", "Returns the value of found in the model.\n\n@param model the model that contains the key and value.\n@param expressionResolver the expression resolver to use to resolve expressions\n\n@return the directory grouping found in the model.\n\n@throws IllegalArgumentException if the {@link org.jboss.as.controller.descriptions.ModelDescriptionConstants#DIRECTORY_GROUPING directory grouping}\nwas not found in the model.", "Tests if this partition has hit a threshold and signal to the pool watch thread to create new connections\n@param connectionPartition to test for.", "Reads a quoted string value from the request.", "Generate the next permutation and return an array containing\nthe elements in the appropriate order.\n@see #nextPermutationAsArray(Object[])\n@see #nextPermutationAsList()\n@return The next permutation as an array.", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Use this API to fetch vpnclientlessaccesspolicy resource of given name ." ]
public static void main(String[] args) throws Exception { StringUtils.printErrInvocationString("CRFClassifier", args); Properties props = StringUtils.argsToProperties(args); CRFClassifier<CoreLabel> crf = new CRFClassifier<CoreLabel>(props); String testFile = crf.flags.testFile; String textFile = crf.flags.textFile; String loadPath = crf.flags.loadClassifier; String loadTextPath = crf.flags.loadTextClassifier; String serializeTo = crf.flags.serializeTo; String serializeToText = crf.flags.serializeToText; if (loadPath != null) { crf.loadClassifierNoExceptions(loadPath, props); } else if (loadTextPath != null) { System.err.println("Warning: this is now only tested for Chinese Segmenter"); System.err.println("(Sun Dec 23 00:59:39 2007) (pichuan)"); try { crf.loadTextClassifier(loadTextPath, props); // System.err.println("DEBUG: out from crf.loadTextClassifier"); } catch (Exception e) { throw new RuntimeException("error loading " + loadTextPath, e); } } else if (crf.flags.loadJarClassifier != null) { crf.loadJarClassifier(crf.flags.loadJarClassifier, props); } else if (crf.flags.trainFile != null || crf.flags.trainFileList != null) { crf.train(); } else { crf.loadDefaultClassifier(); } // System.err.println("Using " + crf.flags.featureFactory); // System.err.println("Using " + // StringUtils.getShortClassName(crf.readerAndWriter)); if (serializeTo != null) { crf.serializeClassifier(serializeTo); } if (serializeToText != null) { crf.serializeTextClassifier(serializeToText); } if (testFile != null) { DocumentReaderAndWriter<CoreLabel> readerAndWriter = crf.makeReaderAndWriter(); if (crf.flags.searchGraphPrefix != null) { crf.classifyAndWriteViterbiSearchGraph(testFile, crf.flags.searchGraphPrefix, crf.makeReaderAndWriter()); } else if (crf.flags.printFirstOrderProbs) { crf.printFirstOrderProbs(testFile, readerAndWriter); } else if (crf.flags.printProbs) { crf.printProbs(testFile, readerAndWriter); } else if (crf.flags.useKBest) { int k = crf.flags.kBest; crf.classifyAndWriteAnswersKBest(testFile, k, readerAndWriter); } else if (crf.flags.printLabelValue) { crf.printLabelInformation(testFile, readerAndWriter); } else { crf.classifyAndWriteAnswers(testFile, readerAndWriter); } } if (textFile != null) { crf.classifyAndWriteAnswers(textFile); } if (crf.flags.readStdin) { crf.classifyStdin(); } }
[ "The main method. See the class documentation." ]
[ "Use this API to fetch responderpolicy resource of given name .", "Request a scoped transactional token for a particular resource.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@param resource resource transactional token has access to.\n@return a BoxAPIConnection which can be used to perform transactional requests.", "Copy bytes from an input stream to a file and log progress\n@param is the input stream to read\n@param destFile the file to write to\n@throws IOException if an I/O error occurs", "a small helper to get the color from the colorHolder\n\n@param ctx\n@return", "Get MultiJoined ClassDescriptors\n@param cld", "Call commit on the underlying connection.", "Use this API to reset Interface.", "Use this API to fetch cacheselector resources of given names .", "Use this API to update lbsipparameters." ]
protected boolean isChangedByMask(int maskValue, Integer segmentPrefixLength) throws IncompatibleAddressException { boolean hasBits = (segmentPrefixLength != null); if(hasBits && (segmentPrefixLength < 0 || segmentPrefixLength > getBitCount())) { throw new PrefixLenException(this, segmentPrefixLength); } //note that the mask can represent a range (for example a CIDR mask), //but we use the lowest value (maskSegment.value) in the range when masking (ie we discard the range) int value = getSegmentValue(); int upperValue = getUpperSegmentValue(); return value != (value & maskValue) || upperValue != (upperValue & maskValue) || (isPrefixed() ? !getSegmentPrefixLength().equals(segmentPrefixLength) : hasBits); }
[ "returns a new segment masked by the given mask\n\nThis method applies the mask first to every address in the range, and it does not preserve any existing prefix.\nThe given prefix will be applied to the range of addresses after the mask.\nIf the combination of the two does not result in a contiguous range, then {@link IncompatibleAddressException} is thrown." ]
[ "Returns the value of this product under the given model.\n\n@param evaluationTime Evaluation time.\n@param model The model.\n@return Value of this product und the given model.", "Check if the current version match the last release or the last snapshot one\n\n@param artifact\n@return boolean", "Send an announcement packet so the other devices see us as being part of the DJ Link network and send us\nupdates.", "Create new logging action\nThis method check if there is an old instance for this thread-local\nIf not - Initialize new instance and set it as this thread-local's instance\n@param logger\n@param auditor\n@param instance\n@return whether new instance was set to thread-local", "Only call with monitor for 'this' held", "Parse a parameterized object from an InputStream.\n\n@param is The InputStream, most likely from your networking library.\n@param jsonObjectType The ParameterizedType describing the object. Ex: LoganSquare.parse(is, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });", "Return a capitalized version of the specified property name.\n\n@param s\nThe property name", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Builds a new instance for the class represented by the given class descriptor.\n\n@param cld The class descriptor\n@return The instance" ]
private void addGreeting(String guestbookName, String user, String message) throws DatastoreException { Entity.Builder greeting = Entity.newBuilder(); greeting.setKey(makeKey(GUESTBOOK_KIND, guestbookName, GREETING_KIND)); greeting.getMutableProperties().put(USER_PROPERTY, makeValue(user).build()); greeting.getMutableProperties().put(MESSAGE_PROPERTY, makeValue(message).build()); greeting.getMutableProperties().put(DATE_PROPERTY, makeValue(new Date()).build()); Key greetingKey = insert(greeting.build()); System.out.println("greeting key is: " + greetingKey); }
[ "Add a greeting to the specified guestbook." ]
[ "New REST client uses new REST service", "Decompiles a single type.\n\n@param metadataSystem\n@param typeName\n@return\n@throws IOException", "Use this API to fetch a filterglobal_filterpolicy_binding resources.", "Attempt to send the specified field to the dbserver.\nThis low-level function is available only to the package itself for use in setting up the connection. It was\npreviously also used for sending parts of larger-scale messages, but because that sometimes led to them being\nfragmented into multiple network packets, and Windows rekordbox cannot handle that, full message sending no\nlonger uses this method.\n\n@param field the field to be sent\n\n@throws IOException if the field cannot be sent", "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize objects and they will enter the registered for\nlock map.", "Gets an iterable of all the assignments of this task.\n@param fields the fields to retrieve.\n@return an iterable containing info about all the assignments.", "A convenience method for creating an immutable map.\n\n@param self a Map\n@return an immutable Map\n@see java.util.Collections#unmodifiableMap(java.util.Map)\n@since 1.0", "converts Map of data to json string\n\n@param data map data to converted to json\n@return {@link String}" ]
public static base_response update(nitro_service client, snmpoption resource) throws Exception { snmpoption updateresource = new snmpoption(); updateresource.snmpset = resource.snmpset; updateresource.snmptraplogging = resource.snmptraplogging; return updateresource.update_resource(client); }
[ "Use this API to update snmpoption." ]
[ "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter", "Initializes context size.\n\n@param rectangle rectangle", "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.", "Checks the hour, minute and second are equal.", "Parse a duration in minutes form a number of hours.\n\n@param value String representation\n@return Integer instance", "Use this API to clear gslbldnsentries resources.", "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", "Creates a pattern choice radio button and adds it where necessary.\n@param pattern the pattern that should be chosen by the button.\n@param messageKey the message key for the button's label.", "Returns the parsed story from the given path\n\n@param configuration the Configuration used to run story\n@param storyPath the story path\n@return The parsed Story" ]
public int getLinkId(@NotNull final PersistentStoreTransaction txn, @NotNull final String linkName, final boolean allowCreate) { return allowCreate ? linkIds.getOrAllocateId(txn, linkName) : linkIds.getId(txn, linkName); }
[ "Gets id of a link and creates the new one if necessary.\n\n@param linkName name of the link.\n@param allowCreate if set to true and if there is no link named as linkName,\ncreate the new id for the linkName.\n@return < 0 if there is no such link and create=false, else id of the link" ]
[ "Get the DMR path for this node. For leaves, the DMR path is the path of its parent.\n@return The DMR path for this node.", "Remove a custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Processes text as a FreeMarker template. Usually used to process an inner body of a tag.\n\n@param text text of a template.\n@param params map with parameters for processing.\n@param writer writer to write output to.", "Utility method used to convert a Number into a BigInteger.\n\n@param value Number instance\n@return BigInteger instance", "Access all of the elements of the collection that evaluate to true for the\nprovided query predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tAn iterator used to iterate over the elements that evaluated true for the predicate.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Check that the parameter string is not null or empty\n\n@param value\nString value to be checked.\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@throws IllegalArgumentException\nIf the key is null or empty.", "Flatten a list of test suite results into a collection of results grouped by test class.\nThis method basically strips away the TestNG way of organising tests and arranges\nthe results by test class.", "Specifies the maximum capacity of the counter.\n\n@param capacity\n<code>long</code>\n@throws IllegalArgumentException\nif windowMillis is less than 1.", "Open a new content stream.\n\n@param item the content item\n@return the content stream" ]
protected Boolean checkBoolean(Object val, Boolean def) { return (val == null) ? def : (Boolean) val; }
[ "Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if null, returns false." ]
[ "Builds the table for the database results.\n\n@param results the database results\n@return the table", "This returns all profiles associated with a server name\n\n@param serverName server Name\n@return profile UUID\n@throws Exception exception", "Return a long value which is the number of rows in the table.", "Convert moneyness given as difference to par swap rate to moneyness in bp.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness as offset.\n@return Moneyness in bp.", "Returns whether the division grouping range matches the block of values for its prefix length.\nIn other words, returns true if and only if it has a prefix length and it has just a single prefix.", "Parses an item id\n\n@param id\nthe identifier of the entity, such as \"Q42\"\n@param siteIri\nthe siteIRI that this value refers to\n@throws IllegalArgumentException\nif the id is invalid", "We have identified that we have an MDB file. This could be a Microsoft Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Use this API to fetch auditnslogpolicy_authenticationvserver_binding resources of given name .", "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" ]
public static void checkSvdMatrixSize(DMatrixRMaj U, boolean tranU, DMatrixRMaj W, DMatrixRMaj V, boolean tranV ) { int numSingular = Math.min(W.numRows,W.numCols); boolean compact = W.numRows == W.numCols; if( compact ) { if( U != null ) { if( tranU && U.numRows != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix U"); else if( !tranU && U.numCols != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix U"); } if( V != null ) { if( tranV && V.numRows != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix V"); else if( !tranV && V.numCols != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix V"); } } else { if( U != null && U.numRows != U.numCols ) throw new IllegalArgumentException("Unexpected size of matrix U"); if( V != null && V.numRows != V.numCols ) throw new IllegalArgumentException("Unexpected size of matrix V"); if( U != null && U.numRows != W.numRows ) throw new IllegalArgumentException("Unexpected size of W"); if( V != null && V.numRows != W.numCols ) throw new IllegalArgumentException("Unexpected size of W"); } }
[ "Checks to see if all the provided matrices are the expected size for an SVD. If an error is encountered\nthen an exception is thrown. This automatically handles compact and non-compact formats" ]
[ "Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.\n\n@param self an Object with an iterator returning its values\n@param defaultResult an Object that should be returned if all closure results are null\n@param closure a closure that returns a non-null value when processing should stop\n@return the first non-null result of the closure, otherwise the default value\n@since 1.7.5", "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.", "Compare two versions\n\n@param other\n@return an integer: 0 if equals, -1 if older, 1 if newer\n@throws IncomparableException is thrown when two versions are not coparable", "Execute the transactional flow - catch all exceptions\n\n@param input Initial data input\n@return Try that represents either success (with result) or failure (with errors)", "Internal method used to retrieve a byte array from one\nor more embedded data blocks. Consecutive data blocks may\nneed to be concatenated by this method in order to retrieve\nthe complete set of data.\n\n@param blocks list of data blocks\n@param length expected length of the data\n@return byte array", "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ViewPager.\n\nIf RendererBuilder returns a null Renderer this method will throw a\nNullRendererBuiltException.\n\n@param parent The containing View in which the page will be shown.\n@param position to render.\n@return view rendered.", "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", "Label accessor provided for JSON serialization only.", "Read the metadata from a hadoop SequenceFile\n\n@param fs The filesystem to read from\n@param path The file to read from\n@return The metadata from this file" ]
public static void acceptsJson(OptionParser parser) { parser.acceptsAll(Arrays.asList(OPT_J, OPT_JSON), "fetch key/entry by key value of json type") .withRequiredArg() .describedAs("key-list") .withValuesSeparatedBy(',') .ofType(String.class); }
[ "Adds OPT_J | OPT_JSON 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" ]
[ "A simple helper method that creates a pool of connections to Redis using\nthe supplied configurations.\n\n@param jesqueConfig the config used to create the pooled Jedis connections\n@param poolConfig the config used to create the pool\n@return a configured Pool of Jedis connections", "Execute a HTTP request\n\n@param stringUrl URL\n@param method Method to use\n@param parameters Params\n@param input Input / Payload\n@param charset Input Charset\n@return response\n@throws IOException", "make a copy of the criteria\n@param includeGroupBy if true\n@param includeOrderBy if ture\n@param includePrefetchedRelationships if true\n@return a copy of the criteria", "Main method of this class related to ListView widget. This method is the responsible of\nrecycle or create a new Renderer instance with all the needed information to implement the\nrendering. This method will validate all the attributes passed in the builder constructor and\nwill check if can recycle or has to create a new Renderer instance.\n\nThis method is used with ListView because the view recycling mechanism is implemented in this\nclass. RecyclerView widget will use buildRendererViewHolder method.\n\n@return ready to use Renderer instance.", "Create a shell object and assign its id field.", "Groups all of the metadata cache files that are candidates for auto-attachment to player slots into lists\nthat are keyed by the playlist ID used to create the cache file. Files that cache all tracks have a playlist\nID of 0.\n\n@return a map from playlist ID to the caches holding tracks from that playlist", "Helper method for variance calculations.\n@return The sum of the squares of the differences between\neach value and the arithmetic mean.\n@throws EmptyDataSetException If the data set is empty.", "Add a method to the enabled response overrides for a path\n\n@param pathName name of path\n@param methodName name of method\n@return true if success, false otherwise", "Send a fader start command to all registered listeners.\n\n@param playersToStart contains the device numbers of all players that should start playing\n@param playersToStop contains the device numbers of all players that should stop playing" ]
public IndirectionHandler getIndirectionHandler(Object obj) { if(obj == null) { return null; } else if(isNormalOjbProxy(obj)) { return getDynamicIndirectionHandler(obj); } else if(isVirtualOjbProxy(obj)) { return VirtualProxy.getIndirectionHandler((VirtualProxy) obj); } else { return null; } }
[ "Returns the invocation handler object of the given proxy object.\n\n@param obj The object\n@return The invocation handler if the object is an OJB proxy, or <code>null</code>\notherwise" ]
[ "Whether the given grid dialect implements the specified facet or not.\n\n@param gridDialect the dialect of interest\n@param facetType the dialect facet type of interest\n@return {@code true} in case the given dialect implements the specified facet, {@code false} otherwise", "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Get the last date to keep logs from, by a given current date.\n@param currentDate the date of today\n@return the last date to keep log files from.", "Validates bic.\n\n@param bic to be validated.\n@throws BicFormatException if bic is invalid.\nUnsupportedCountryException if bic's country is not supported.", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Checks that native primarykey fields have readonly access, and warns if not.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Run the configured crawl. This method blocks until the crawl is done.\n\n@return the CrawlSession once the crawl is done.", "Triggers a replication request.", "Polls from the URL provided.\n\n@param url the URL to poll from.\n@return the raw response." ]
public void setImage(final GVRImage imageData) { mImage = imageData; if (imageData != null) NativeTexture.setImage(getNative(), imageData, imageData.getNative()); else NativeTexture.setImage(getNative(), null, 0); }
[ "Changes the image data associated with a GVRTexture.\nThis can be a simple bitmap, a compressed bitmap,\na cubemap or a compressed cubemap.\n@param imageData data for the texture as a GVRImate" ]
[ "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)", "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block", "Gets a first data set value.\n\n@param dataSet\nIIM record and dataset code (See constants in {@link IIM})\n@return data set value\n@throws SerializationException\nif value can't be deserialized from binary representation", "Returns a CmsSolrQuery representation of this class.\n@param cms the openCms object.\n@return CmsSolrQuery representation of this class.", "Uses the iterator to run through the dao and retain only the items that are in the passed in collection. This\nwill remove the items from the associated database table as well.\n\n@return Returns true of the collection was changed at all otherwise false.", "get the last segment at the moment\n\n@return the last segment", "The range of velocities that a particle generated from this emitter can have.\n@param minV Minimum velocity that a particle can have\n@param maxV Maximum velocity that a particle can have", "Shuts down a standalone server.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server" ]
public static String httpRequest(String stringUrl, String method, Map<String, String> parameters, String input, String charset) throws IOException { URL url = new URL(stringUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod(method); if (parameters != null) { for (Entry<String, String> entry : parameters.entrySet()) { conn.addRequestProperty(entry.getKey(), entry.getValue()); } } if (input != null) { OutputStream output = null; try { output = conn.getOutputStream(); output.write(input.getBytes(charset)); } finally { if (output != null) { output.close(); } } } return MyStreamUtils.readContent(conn.getInputStream()); }
[ "Execute a HTTP request\n\n@param stringUrl URL\n@param method Method to use\n@param parameters Params\n@param input Input / Payload\n@param charset Input Charset\n@return response\n@throws IOException" ]
[ "alert, prompt, and confirm behave as if the OK button is always clicked.", "Gets the publisher of the specified type, if it is wrapped by the \"Flexible Publish\" publisher in a project.\nNull is returned if no such publisher is found.\n@param project The project\n@param type The type of the publisher", "Convenience routine to return the specified error's\nunderlying SyntaxException, or null if it isn't one.", "Removes the value from the Collection mapped to by this key, leaving the\nrest of the collection intact.\n\n@param key\nthe key to the Collection to remove the value from\n@param value\nthe value to remove", "Get an image using the specified URL suffix.\n\n@deprecated\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException", "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", "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "Dumps an animation channel to stdout.\n\n@param nodeAnim the channel", "Add a new Corporate GroupId to an organization.\n\n@param credential DbCredential\n@param organizationId String Organization name\n@param corporateGroupId String\n@return Response" ]
@Nullable public ByteIterable get2(@NotNull final Transaction txn, @NotNull final ByteIterable second) { return this.second.get(txn, second); }
[ "Search for the second entry in the second database. Use this method for databases configured with no duplicates.\n\n@param second second key (value for first).\n@return null if no entry found, otherwise the value." ]
[ "This method will return a list of installed identities for which\nthe corresponding .conf file exists under .installation directory.\nThe list will also include the default identity even if the .conf\nfile has not been created for it.", "a specialized version of solve that avoid additional checks that are not needed.", "Unlinks a set of dependencies from this task.\n\n@param task The task to remove dependencies from.\n@return Request object", "Return a copy of the result as a String.\n\n<p>The default version of this method copies the result into a temporary byte array and then\ntries to decode it using the configured encoding.\n\n@return string version of the result.\n@throws IOException if the data cannot be produced or could not be decoded to a String.", "Creates a remove operation.\n\n@param address the address for the operation\n@param recursive {@code true} if the remove should be recursive, otherwise {@code false}\n\n@return the operation", "Add a new server group\n\n@param groupName name of the group\n@param profileId ID of associated profile\n@return id of server group\n@throws Exception", "Inits the ws client.\n\n@param context the context\n@throws Exception the exception", "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType the target collection element type\n@return collection", "Adds each forbidden substring, checking that it's not null.\n\n@param forbiddenSubStrings\nthe forbidden substrings\n@throws NullPointerException\nif a forbidden substring is null" ]
private TableAlias createTableAlias(String aTable, String aPath, String aUserAlias) { if (aUserAlias == null) { return createTableAlias(aTable, aPath); } else { return createTableAlias(aTable, aUserAlias + ALIAS_SEPARATOR + aPath); } }
[ "Create a TableAlias for path or userAlias\n@param aTable\n@param aPath\n@param aUserAlias\n@return TableAlias" ]
[ "Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the field alias.\nIf the field does not have an alias we won't write an\nentry.\n\n@param field custom field to write\n@throws IOException", "This static method calculated the rho of a call option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The rho of the option", "Sets the bottom padding character for all cells in the row.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining", "Process a compilation unit already parsed and build.", "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array.", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Tests if this enumeration contains more elements.\n@return <code>true</code> if and only if this enumeration object\ncontains at least one more element to provide;\n<code>false</code> otherwise.", "Validate arguments.", "Progress info message\n\n@param tag Message that precedes progress info. Indicate 'keys' or\n'entries'." ]
public static void append(File file, Writer writer, String charset) throws IOException { appendBuffered(file, writer, charset); }
[ "Append the text supplied by the Writer at the end of the File, using a specified encoding.\n\n@param file a File\n@param writer the Writer supplying the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 2.3" ]
[ "Return a stream of resources from a response\n\n@param response the response\n@param <R> the resource type\n@param <U> the response type\n@return a stream of resources from the response", "Convert any number class to array of integer.\n\n@param <T> Type.\n@param array Array.\n@return Integer array.", "Get the ordinal value for the last of a particular override on a path\n\n@param overrideId Id of the override to check\n@param pathId Path the override is on\n@param clientUUID UUID of the client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return The integer ordinal\n@throws Exception", "Cleans up the subsystem children for the deployment and each sub-deployment resource.\n\n@param resource the subsystem resource to clean up", "Get HttpResourceModel which matches the HttpMethod of the request.\n\n@param routableDestinations List of ResourceModels.\n@param targetHttpMethod HttpMethod.\n@param requestUri request URI.\n@return RoutableDestination that matches httpMethod that needs to be handled. null if there are no matches.", "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", "Checks the component type of the given array against the expected component type.\n\n@param array\nthe array to be checked. May not be <code>null</code>.\n@param expectedComponentType\nthe expected component type of the array. May not be <code>null</code>.\n@return the unchanged array.\n@throws ArrayStoreException\nif the expected runtime {@code componentType} does not match the actual runtime component type.", "This continuously tries to reconnect in a separate thread and will only stop if the connection was established\nsuccessfully or the server gets shutdown. If there is currently a reconnect task active the connection paramaters\nand callback will get updated.\n\n@param reconnectUri the updated connection uri\n@param authKey the updated authentication key\n@param callback the current callback", "Extent aware Delete by Query\n@param query\n@param cld\n@throws PersistenceBrokerException" ]
private void writeBufferedValsToStorage() { List<Versioned<byte[]>> obsoleteVals = storageEngine.multiVersionPut(currBufferedKey, currBufferedVals); // log Obsolete versions in debug mode if(logger.isDebugEnabled() && obsoleteVals.size() > 0) { logger.debug("updateEntries (Streaming multi-version-put) rejected these versions as obsolete : " + StoreUtils.getVersions(obsoleteVals) + " for key " + currBufferedKey); } currBufferedVals = new ArrayList<Versioned<byte[]>>(VALS_BUFFER_EXPECTED_SIZE); }
[ "Persists the current set of versions buffered for the current key into\nstorage, using the multiVersionPut api\n\nNOTE: Now, it could be that the stream broke off and has more pending\nversions. For now, we simply commit what we have to disk. A better design\nwould rely on in-stream markers to do the flushing to storage." ]
[ "Add the dependencies if the deployment contains a service activator loader entry.\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Use this API to fetch all the nd6ravariables resources that are configured on netscaler.", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "Log a trace message with a throwable.", "Flush this log file to the physical disk\n\n@throws IOException file read error", "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", "Computes the eigenvalues of a 2 by 2 matrix using a faster but more prone to errors method. This\nis the typical method.", "Helper method to track storage operations & time via StreamingStats.\n\n@param startNs", "change server state between OFFLINE_SERVER and NORMAL_SERVER\n\n@param setToOffline True if set to OFFLINE_SERVER" ]
static <K, V> ViewQueryParameters<K, V> forwardPaginationQueryParameters (ViewQueryParameters<K, V> initialQueryParameters, K startkey, String startkey_docid) { // Copy the initial query parameters ViewQueryParameters<K, V> pageParameters = initialQueryParameters.copy(); // Now override with the start keys provided pageParameters.setStartKey(startkey); pageParameters.setStartKeyDocId(startkey_docid); return pageParameters; }
[ "Generate query parameters for a forward page with the specified start key.\n\n@param initialQueryParameters page 1 query parameters\n@param startkey the startkey for the forward page\n@param startkey_docid the doc id for the startkey (in case of duplicate keys)\n@param <K> the view key type\n@param <V> the view value type\n@return the query parameters for the forward page" ]
[ "Gets an entry point for the given deployment. If one does not exist it will be created. If the request controller is disabled\nthis will return null.\n\nEntry points are reference counted. If this method is called n times then {@link #removeControlPoint(ControlPoint)}\nmust also be called n times to clean up the entry points.\n\n@param deploymentName The top level deployment name\n@param entryPointName The entry point name\n@return The entry point, or null if the request controller is disabled", "Gets id of a property and creates the new one if necessary.\n\n@param txn transaction\n@param propertyName name of the property.\n@param allowCreate if set to true and if there is no property named as propertyName,\ncreate the new id for the propertyName.\n@return < 0 if there is no such property and create=false, else id of the property", "Find and read the cache format entry in a metadata cache file.\n\n@return the content of the format entry, or {@code null} if none was found\n\n@throws IOException if there is a problem reading the file", "Sets the replace var map to single target.\n\n@param replacementVarMapList\nthe replacement var map list\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "binds the objects primary key and locking values to the statement, BRJ", "Guesses the best set to use at the specified index by looking at the surrounding sets. In general, characters in\nlower-numbered sets are more common, so we choose them if we can. If no good surrounding sets can be found, the default\nvalue returned is the first value from the valid set.\n\n@param index the current index\n@param length the maximum length to look at\n@param valid the valid sets for this index\n@return the best set to use at the specified index", "Remove the sequence for given sequence name.\n\n@param sequenceName Name of the sequence to remove.", "Calculate the color using the supplied angle.\n\n@param angle The selected color's position expressed as angle (in rad).\n\n@return The ARGB value of the color on the color wheel at the specified\nangle.", "Set an outline code value.\n\n@param index outline code index (1-10)\n@param value outline code value" ]
public static Date setTime(Date date, Date canonicalTime) { Date result; if (canonicalTime == null) { result = date; } else { // // The original naive implementation of this method generated // the "start of day" date (midnight) for the required day // then added the milliseconds from the canonical time // to move the time forward to the required point. Unfortunately // if the date we'e trying to do this for is the entry or // exit from DST, the result is wrong, hence I've switched to // the approach below. // Calendar cal = popCalendar(canonicalTime); int dayOffset = cal.get(Calendar.DAY_OF_YEAR) - 1; int hourOfDay = cal.get(Calendar.HOUR_OF_DAY); int minute = cal.get(Calendar.MINUTE); int second = cal.get(Calendar.SECOND); int millisecond = cal.get(Calendar.MILLISECOND); cal.setTime(date); if (dayOffset != 0) { // The canonical time can be +1 day. // It's to do with the way we've historically // managed time ranges and midnight. cal.add(Calendar.DAY_OF_YEAR, dayOffset); } cal.set(Calendar.MILLISECOND, millisecond); cal.set(Calendar.SECOND, second); cal.set(Calendar.MINUTE, minute); cal.set(Calendar.HOUR_OF_DAY, hourOfDay); result = cal.getTime(); pushCalendar(cal); } return result; }
[ "Given a date represented by a Date 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 date Date instance representing the date\n@param canonicalTime Date instance representing the time of day\n@return new Date instance with the required time set" ]
[ "Print classes that were parts of relationships, but not parsed by javadoc", "Checks whether the given field definition is used as the primary key of a class referenced by\na reference.\n\n@param modelDef The model\n@param fieldDef The current field descriptor def\n@return The reference that uses the field or <code>null</code> if the field is not used in this way", "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.", "Only call async", "Get the vector of regression coefficients.\n\n@param value The random variable to regress.\n@return The vector of regression coefficients.", "If the Artifact does not exist, it will add it to the database. Nothing if it already exit.\n\n@param fromClient DbArtifact", "Creates a new instance from the given configuration file.\n\n@throws IOException if failed to load the configuration from the specified file", "Returns a JSONObject keyed with the lastId retrieved and a value of a JSONArray of the retrieved JSONObject events\n\n@param table the table to read from\n@return JSONObject containing the max row ID and a JSONArray of the JSONObject events or null", "Read the role definitions from a GanttProject project.\n\n@param gpProject GanttProject project" ]
public Date getFinishDate() { Date finishDate = null; for (Task task : m_tasks) { // // If a hidden "summary" task is present we ignore it // if (NumberHelper.getInt(task.getUniqueID()) == 0) { continue; } // // Select the actual or forecast start date // Date taskFinishDate; taskFinishDate = task.getActualFinish(); if (taskFinishDate == null) { taskFinishDate = task.getFinish(); } if (taskFinishDate != null) { if (finishDate == null) { finishDate = taskFinishDate; } else { if (taskFinishDate.getTime() > finishDate.getTime()) { finishDate = taskFinishDate; } } } } return (finishDate); }
[ "Find the latest task finish date. We treat this as the\nfinish date for the project.\n\n@return finish date" ]
[ "Set a Java classname path to ignore when printing stack traces\n@param classToIgnoreInTraces The class name (with packages, etc) to ignore.\n@return this", "Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data", "Creates a new Collaboration Whitelist for a domain.\n@param api the API connection to be used by the resource.\n@param domain the domain to be added to a collaboration whitelist for a Box Enterprise.\n@param direction an enum representing the direction of the collaboration whitelist. Can be set to\ninbound, outbound, or both.\n@return information about the collaboration whitelist created.", "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "Binds a script bundle to scene graph rooted at a scene object.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param rootSceneObject\nThe root of the scene object tree to which the scripts are bound.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "compares two AST nodes", "Write correlation id.\n\n@param message the message\n@param correlationId the correlation id", "Get path ID for a given profileId and pathName\n\n@param pathName Name of path\n@param profileId ID of profile\n@return ID of path", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add" ]
public static clusternodegroup get(nitro_service service, String name) throws Exception{ clusternodegroup obj = new clusternodegroup(); obj.set_name(name); clusternodegroup response = (clusternodegroup) obj.get_resource(service); return response; }
[ "Use this API to fetch clusternodegroup resource of given name ." ]
[ "Parses an item id\n\n@param id\nthe identifier of the entity, such as \"Q42\"\n@param siteIri\nthe siteIRI that this value refers to\n@throws IllegalArgumentException\nif the id is invalid", "Initialize the style generators for the messages table.", "Gets the element view.\n\n@return the element view", "Read all resource assignments from a GanttProject project.\n\n@param gpProject GanttProject project", "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured.", "Create a new server group\n\n@param groupName name of server group\n@return Created ServerGroup", "Configures a text field to look like a filter box for a table.\n\n@param searchBox the text field to configure", "Find and unmarshal all test suite files in given directories.\n\n@throws IOException if any occurs.\n@see #unmarshal(File)", "Use this API to add cmppolicylabel." ]
public static base_response unset(nitro_service client, systemcollectionparam resource, String[] args) throws Exception{ systemcollectionparam unsetresource = new systemcollectionparam(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of systemcollectionparam resource.\nProperties that need to be unset are specified in args array." ]
[ "Return a replica of this instance with its quality value removed.\n@return the same instance if the media type doesn't contain a quality value, or a new one otherwise", "Copies the given container page to the provided root path.\n@param originalPage the page to copy\n@param targetPageRootPath the root path of the copy target.\n@throws CmsException thrown if something goes wrong.\n@throws NoCustomReplacementException if a custom replacement is not found for a type which requires it.", "Clone a widget info map considering what may be copied to the client.\n\n@param widgetInfo widget info map\n@return cloned copy including only records which are not {@link ServerSideOnlyInfo}", "Handles the response of the getVersion request.\n@param incomingMessage the response message to process.", "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens", "Update the current position with specified length.\nThe input will append to the current position of the iterator.\n\n@param length update length", "Writes resource baseline data.\n\n@param xmlResource MSPDI resource\n@param mpxjResource MPXJ resource", "Add all headers in a header map.\n\n@param headers a map of headers.\n@return the interceptor instance itself.", "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document." ]
private void addWSAddressingInterceptors(InterceptorProvider provider) { MAPAggregator mapAggregator = new MAPAggregator(); MAPCodec mapCodec = new MAPCodec(); provider.getInInterceptors().add(mapAggregator); provider.getInInterceptors().add(mapCodec); provider.getOutInterceptors().add(mapAggregator); provider.getOutInterceptors().add(mapCodec); provider.getInFaultInterceptors().add(mapAggregator); provider.getInFaultInterceptors().add(mapCodec); provider.getOutFaultInterceptors().add(mapAggregator); provider.getOutFaultInterceptors().add(mapCodec); }
[ "Add WSAddressing Interceptors to InterceptorProvider, in order to using\nAddressingProperties to get MessageID.\n\n@param provider the interceptor provider" ]
[ "Return the structured backup data\n\n@return Backup of current configuration\n@throws Exception exception", "Assigns the element in the Matrix to the specified value. Performs a bounds check to make sure\nthe requested element is part of the matrix.\n\n@param row The row of the element.\n@param col The column of the element.\n@param value The element's new value.", "Use this API to enable Interface of given name.", "checking availability of ClassInfo.setFlags method is just workaround for JANDEX-37", "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth", "Computes the cross product of v1 and v2 and places the result in this\nvector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to control the intensity of ambient light reflected.\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)", "Use this API to add ntpserver resources.", "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result" ]
private void parseJSON(JsonObject jsonObject) { for (JsonObject.Member member : jsonObject) { JsonValue value = member.getValue(); if (value.isNull()) { continue; } try { String memberName = member.getName(); if (memberName.equals("id")) { this.versionID = value.asString(); } else if (memberName.equals("sha1")) { this.sha1 = value.asString(); } else if (memberName.equals("name")) { this.name = value.asString(); } else if (memberName.equals("size")) { this.size = Double.valueOf(value.toString()).longValue(); } else if (memberName.equals("created_at")) { this.createdAt = BoxDateFormat.parse(value.asString()); } else if (memberName.equals("modified_at")) { this.modifiedAt = BoxDateFormat.parse(value.asString()); } else if (memberName.equals("trashed_at")) { this.trashedAt = BoxDateFormat.parse(value.asString()); } else if (memberName.equals("modified_by")) { JsonObject userJSON = value.asObject(); String userID = userJSON.get("id").asString(); BoxUser user = new BoxUser(getAPI(), userID); this.modifiedBy = user.new Info(userJSON); } } catch (ParseException e) { assert false : "A ParseException indicates a bug in the SDK."; } } }
[ "Method used to update fields with values received from API.\n@param jsonObject JSON-encoded info about File Version object." ]
[ "Main entry point used to determine the format used to write\ncalendar exceptions.\n\n@param calendar parent calendar\n@param dayList list of calendar days\n@param exceptions list of exceptions", "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", "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)", "return either the first space or the first nbsp", "Register opened database via the PBKey.", "Use this API to add gslbsite.", "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Called when the end type is changed.", "Find the logging profile attached to any resource.\n\n@param resourceRoot the root resource\n\n@return the logging profile name or {@code null} if one was not found" ]
public void updateShownOptions(boolean showModeSwitch, boolean showAddKeyOption) { if (showModeSwitch != m_showModeSwitch) { m_upperLeftComponent.removeAllComponents(); m_upperLeftComponent.addComponent(m_languageSwitch); if (showModeSwitch) { m_upperLeftComponent.addComponent(m_modeSwitch); } m_upperLeftComponent.addComponent(m_filePathLabel); m_showModeSwitch = showModeSwitch; } if (showAddKeyOption != m_showAddKeyOption) { if (showAddKeyOption) { m_optionsComponent.addComponent(m_lowerLeftComponent, 0, 1); m_optionsComponent.addComponent(m_lowerRightComponent, 1, 1); } else { m_optionsComponent.removeComponent(0, 1); m_optionsComponent.removeComponent(1, 1); } m_showAddKeyOption = showAddKeyOption; } }
[ "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be shown." ]
[ "Reads a nested table. Uses the supplied reader class instance.\n\n@param readerClass reader class instance\n@return table rows", "Use this API to delete cacheselector resources of given names.", "Determine the length of a nul terminated UTF16LE string in bytes.\n\n@param data string data\n@param offset offset into string data\n@return length in bytes", "Return the NTSC gray level of an RGB value.\n@param rgb1 the input pixel\n@return the gray level (0-255)", "Updates all inverse associations managed by a given entity.", "Returns the difference of sets s1 and s2.", "Use this API to login into Netscaler.\n@param username Username\n@param password Password for the Netscaler.\n@param timeout timeout for netscaler session.Default is 1800secs\n@return status of the operation performed.\n@throws Exception nitro exception is thrown.", "Writes all auxiliary triples that have been buffered recently. This\nincludes OWL property restrictions but it also includes any auxiliary\ntriples required by complex values that were used in snaks.\n\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "Returns the field with the specified value properly formatted. Multiline\nvalues are automatically indented, and dots are added on the empty lines.\n\n<pre>\nField-Name: value\n</pre>" ]
public ItemRequest<User> findById(String user) { String path = String.format("/users/%s", user); return new ItemRequest<User>(this, User.class, path, "GET"); }
[ "Returns the full user record for the single user with the provided ID.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object" ]
[ "Compute 2-dimensional Perlin noise.\n@param x the x coordinate\n@param y the y coordinate\n@return noise value at (x,y)", "Unescape and unquote the path. Ready for translation.", "The main conversion method.\n@param image A BufferedImage containing the image that needs to be converted\n@param favicon When ico is true it will convert ico file into 16 x 16 size\n@return A string containing the ASCII version of the original image.", "Notifies that multiple content items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException", "Delivers the correct JSON Object for outgoings\n\n@param outgoings\n@throws org.json.JSONException", "Generates the path to an output file for a given source URL. Creates\nall necessary parent directories for the destination file.\n@param src the source\n@return the path to the output file", "Look for the specified album art in both the hot cache of loaded tracks and the longer-lived LRU cache.\n\n@param artReference uniquely identifies the desired album art\n\n@return the art, if it was found in one of our caches, or {@code null}", "Loads a PDF document and creates a DOM tree from it.\n@param doc the source document\n@return a DOM Document representing the DOM tree\n@throws IOException" ]
public Task<Void> confirmUser(@NonNull final String token, @NonNull final String tokenId) { return dispatcher.dispatchTask( new Callable<Void>() { @Override public Void call() { confirmUserInternal(token, tokenId); return null; } }); }
[ "Confirms a user with the given token and token id.\n\n@param token the confirmation token.\n@param tokenId the id of the confirmation token.\n@return A {@link Task} that completes when confirmation completes/fails." ]
[ "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map", "Determines the number of elements that the query would return. Override this\nmethod if the size shall be determined in a specific way.\n\n@return The number of elements", "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException", "Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Used to create a new indefinite retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@return the created retention policy's info.", "Obtains a local date in Julian calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Julian local date, not null\n@throws DateTimeException if unable to create the date", "Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0", "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" ]
protected synchronized PersistenceBroker getBroker() throws PBFactoryException { /* mkalen: NB! The loadProfileIfNeeded must be called _before_ acquiring a broker below, since some methods in PersistenceBrokerImpl will keep a local reference to the descriptor repository that was active during broker construction/refresh (not checking the repository beeing used on method invocation). PersistenceBrokerImpl#getClassDescriptor(Class clazz) is such a method, that will throw ClassNotPersistenceCapableException on the following scenario: (All happens in one thread only): t0: activate per-thread metadata changes t1: load, register and activate profile A t2: load object O1 witch collection proxy C to objects {O2} (C stores profile key K(A)) t3: close broker from t2 t4: load, register and activate profile B t5: reference O1.getO2Collection, causing C loadData() to be invoked t6: C calls getBroker broker B is created and descriptorRepository is set to descriptors from profile B t7: C calls loadProfileIfNeeded, re-activating profile A t8: C calls B.getCollectionByQuery t9: B gets callback (via QueryReferenceBroker) to getClassDescriptor the local descriptorRepository from t6 is used! => We will now try to query for {O2} with profile B (even though we re-activated profile A in t7) => ClassNotPersistenceCapableException Keeping loadProfileIfNeeded() at the start of this method changes everything from t6: t6: C calls loadProfileIfNeeded, re-activating profile A t7: C calls getBroker, broker B is created and descriptorRepository is set to descriptors from profile A t8: C calls B.getCollectionByQuery t9: B gets callback to getClassDescriptor, the local descriptorRepository from t6 is used => We query for {O2} with profile A => All good :-) */ if (_perThreadDescriptorsEnabled) { loadProfileIfNeeded(); } PersistenceBroker broker; if (getBrokerKey() == null) { /* arminw: if no PBKey is set we throw an exception, because we don't know which PB (connection) should be used. */ throw new OJBRuntimeException("Can't find associated PBKey. Need PBKey to obtain a valid" + "PersistenceBroker instance from intern resources."); } // first try to use the current threaded broker to avoid blocking broker = PersistenceBrokerThreadMapping.currentPersistenceBroker(getBrokerKey()); // current broker not found or was closed, create a intern new one if (broker == null || broker.isClosed()) { broker = PersistenceBrokerFactory.createPersistenceBroker(getBrokerKey()); // signal that we use a new internal obtained PB instance to read the // data and that this instance have to be closed after use _needsClose = true; } return broker; }
[ "Acquires a broker instance. If no PBKey is available a runtime exception will be thrown.\n\n@return A broker instance" ]
[ "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", "Determines if this connection's access token has expired and needs to be refreshed.\n@return true if the access token needs to be refreshed; otherwise false.", "Replaces the proxy url with the correct url from the tileMap.\n\n@return correct url to TMS service", "Write a short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance", "Returns the value of an optional property, if the property is\nset. If it is not set defval is returned.", "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running", "By default uses InputStream as the type of the image\n@param title\n@param property\n@param width\n@param fixedWidth\n@param imageScaleMode\n@param style\n@return\n@throws ColumnBuilderException\n@throws ClassNotFoundException", "Returns a pretty printed string of nodes that host specific \"hot\"\npartitions, where hot is defined as following a contiguous run of\npartitions of some length in another zone.\n\n@param cluster The cluster to analyze\n@param hotContiguityCutoff cutoff below which a contiguous run is not\nhot.\n@return pretty string of hot partitions" ]
public void printInferredDependencies(ClassDoc c) { if (hidden(c)) return; Options opt = optionProvider.getOptionsFor(c); Set<Type> types = new HashSet<Type>(); // harvest method return and parameter types for (MethodDoc method : filterByVisibility(c.methods(false), opt.inferDependencyVisibility)) { types.add(method.returnType()); for (Parameter parameter : method.parameters()) { types.add(parameter.type()); } } // and the field types if (!opt.inferRelationships) { for (FieldDoc field : filterByVisibility(c.fields(false), opt.inferDependencyVisibility)) { types.add(field.type()); } } // see if there are some type parameters if (c.asParameterizedType() != null) { ParameterizedType pt = c.asParameterizedType(); types.addAll(Arrays.asList(pt.typeArguments())); } // see if type parameters extend something for(TypeVariable tv: c.typeParameters()) { if(tv.bounds().length > 0 ) types.addAll(Arrays.asList(tv.bounds())); } // and finally check for explicitly imported classes (this // assumes there are no unused imports...) if (opt.useImports) types.addAll(Arrays.asList(importedClasses(c))); // compute dependencies for (Type type : types) { // skip primitives and type variables, as well as dependencies // on the source class if (type.isPrimitive() || type instanceof WildcardType || type instanceof TypeVariable || c.toString().equals(type.asClassDoc().toString())) continue; // check if the destination is excluded from inference ClassDoc fc = type.asClassDoc(); if (hidden(fc)) continue; // check if source and destination are in the same package and if we are allowed // to infer dependencies between classes in the same package if(!opt.inferDepInPackage && c.containingPackage().equals(fc.containingPackage())) continue; // if source and dest are not already linked, add a dependency RelationPattern rp = getClassInfo(c, true).getRelation(fc.toString()); if (rp == null || rp.matchesOne(new RelationPattern(RelationDirection.OUT))) { relation(opt, RelationType.DEPEND, c, fc, "", "", ""); } } }
[ "Prints dependencies recovered from the methods of a class. A\ndependency is inferred only if another relation between the two\nclasses is not already in the graph.\n@param classes" ]
[ "Set the Log4j appender.\n\n@param appender the log4j appender", "Compute 1-dimensional Perlin noise.\n@param x the x value\n@return noise value at x in the range -1..1", "Check if values in the column \"property\" are written to the bundle files.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle files.", "Mark the given TaskItem depends on this taskGroup.\n\n@param dependentTaskItem the task item that depends on this task group\n@return key to be used as parameter to taskResult(string) method to retrieve result of\ninvocation of given task item.", "Writes one or more String columns as a line to the CsvWriter.\n\n@param columns\nthe columns to write\n@throws IllegalArgumentException\nif columns.length == 0\n@throws IOException\nIf an I/O error occurs\n@throws NullPointerException\nif columns is null", "The documentation for InputStream.skip indicates that it can bail out early, and not skip\nthe requested number of bytes. I've encountered this in practice, hence this helper method.\n\n@param stream InputStream instance\n@param skip number of bytes to skip", "converts a java.net.URI to a decoded string", "Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone.", "private int numCalls = 0;" ]
public int addServerRedirect(String region, String srcUrl, String destUrl, String hostHeader, int profileId, int groupId) throws Exception { int serverId = -1; PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement("INSERT INTO " + Constants.DB_TABLE_SERVERS + "(" + Constants.SERVER_REDIRECT_REGION + "," + Constants.SERVER_REDIRECT_SRC_URL + "," + Constants.SERVER_REDIRECT_DEST_URL + "," + Constants.SERVER_REDIRECT_HOST_HEADER + "," + Constants.SERVER_REDIRECT_PROFILE_ID + "," + Constants.SERVER_REDIRECT_GROUP_ID + ")" + " VALUES (?, ?, ?, ?, ?, ?);", PreparedStatement.RETURN_GENERATED_KEYS); statement.setString(1, region); statement.setString(2, srcUrl); statement.setString(3, destUrl); statement.setString(4, hostHeader); statement.setInt(5, profileId); statement.setInt(6, groupId); statement.executeUpdate(); results = statement.getGeneratedKeys(); if (results.next()) { serverId = results.getInt(1); } else { // something went wrong throw new Exception("Could not add path"); } } catch (SQLException e) { e.printStackTrace(); } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } return serverId; }
[ "Add server redirect to a profile\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@param groupId group ID\n@return ID of added ServerRedirect\n@throws Exception exception" ]
[ "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", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Send a master changed announcement to all registered master listeners.\n\n@param update the message announcing the new tempo master", "generate random velocities in the given range\n@return", "Filters attributes from the HTML string.\n\n@param html The HTML to filter.\n@return The filtered HTML string.", "Return true only if the MethodCallExpression represents a method call for the specified method name\n@param methodCall - the AST MethodCallExpression\n@param methodNamePattern - the expected name of the method being called\n@param numArguments - The number of expected arguments\n@return true only if the method call name matches", "Delete rows that match the prepared statement.", "Returns the number of key-value mappings in this map for the third key.\n\n@param firstKey\nthe first key\n@param secondKey\nthe second key\n@return Returns the number of key-value mappings in this map for the third key.", "Puts value at given column\n\n@param value Will be encoded using UTF-8" ]
private List<Integer> getNodeIdListForPartitionIdList(List<Integer> partitionIds) throws VoldemortException { List<Integer> nodeIds = new ArrayList<Integer>(partitionIds.size()); for(Integer partitionId: partitionIds) { int nodeId = getNodeIdForPartitionId(partitionId); if(nodeIds.contains(nodeId)) { throw new VoldemortException("Node ID " + nodeId + " already in list of Node IDs."); } else { nodeIds.add(nodeId); } } return nodeIds; }
[ "Converts from partitionId to nodeId. The list of partition IDs,\npartitionIds, is expected to be a \"replicating partition list\", i.e., the\nmapping from partition ID to node ID should be one to one.\n\n@param partitionIds List of partition IDs for which to find the Node ID\nfor the Node that owns the partition.\n@return List of node ids, one for each partition ID in partitionIds\n@throws VoldemortException If multiple partition IDs in partitionIds map\nto the same Node ID." ]
[ "Support the range subscript operator for String\n\n@param text a String\n@param range a Range\n@return a substring corresponding to the Range\n@since 1.0", "Given a key and a list of steal infos give back a list of stealer node\nids which will steal this.\n\n@param key Byte array of key\n@param stealerNodeToMappingTuples Pairs of stealer node id to their\ncorresponding [ partition - replica ] tuples\n@param cluster Cluster metadata\n@param storeDef Store definitions\n@return List of node ids", "This method allows a pre-existing resource calendar to be attached to a\nresource.\n\n@param calendar resource calendar", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "Finds the next valid line of words in the stream and extracts them.\n\n@return List of valid words on the line. null if the end of the file has been reached.\n@throws java.io.IOException", "If the belief its a count of some sort his counting its increased by one.\n\n@param bName\n- the name of the belief count.", "Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context", "This method is used to initiate a release staging process using the Artifactory Release Staging API." ]
public static double TruncatedPower(double value, double degree) { double x = Math.pow(value, degree); return (x > 0) ? x : 0.0; }
[ "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result." ]
[ "Removes a value from the list.\n\n@param list the list\n@param value value to remove", "Use this API to add ntpserver.", "Returns the rendered element content for all the given containers.\n\n@param element the element to render\n@param containers the containers the element appears in\n\n@return a map from container names to rendered page contents", "Use this API to unset the properties of sslcertkey resource.\nProperties that need to be unset are specified in args array.", "This method allows a resource calendar to be added to a resource.\n\n@return ResourceCalendar\n@throws MPXJException if more than one calendar is added", "Performs a Bulk Documents insert request.\n\n@param objects The {@link List} of objects.\n@param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.\n@return {@code List<Response>} Containing the resulted entries.", "Tests whether the ClassNode implements the specified method name\n\n@param classNode The ClassNode\n@param methodName The method name\n@param argTypes\n@return True if it implements the method", "Gets fully-qualified name of a table or sequence.\n\n@param localName local table name.\n@param params params.\n@return fully-qualified table name.", "Gets the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.\n@return the metadata returned from the server." ]
public static String stringMatcherByPattern(String input, String patternStr) { String output = PcConstants.SYSTEM_FAIL_MATCH_REGEX; // 20140105: fix the NPE issue if (patternStr == null) { logger.error("patternStr is NULL! (Expected when the aggregation rule is not defined at " + PcDateUtils.getNowDateTimeStrStandard()); return output; } if (input == null) { logger.error("input (Expected when the response is null and now try to match on response) is NULL in stringMatcherByPattern() at " + PcDateUtils.getNowDateTimeStrStandard()); return output; } else { input = input.replace("\n", "").replace("\r", ""); } logger.debug("input: " + input); logger.debug("patternStr: " + patternStr); Pattern patternMetric = Pattern.compile(patternStr, Pattern.MULTILINE); final Matcher matcher = patternMetric.matcher(input); if (matcher.matches()) { output = matcher.group(1); } return output; }
[ "this remove the linebreak.\n\n@param input\nthe input\n@param patternStr\nthe pattern str\n@return the string" ]
[ "Stops the current debug server. Active connections are\nnot affected.", "Get the original-image using the specified URL suffix.\n\n@deprecated\n@see PhotosInterface#getImage(Photo, int)\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException\n@throws FlickrException", "Returns the orthogonal U matrix.\n\n@param U If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix.", "Retrieve the Charset used to read the file.\n\n@return Charset instance", "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\"", "Returns the current transaction for the calling thread.\n\n@throws org.odmg.TransactionNotInProgressException\n{@link org.odmg.TransactionNotInProgressException} if no transaction was found.", "used by Error template", "Returns a handle to the pool. Useful to obtain a handle to the\nstatistics for example.\n@return pool", "Utility function that copies a string array except for the first element\n\n@param arr Original array of strings\n@return Copied array of strings" ]
private Query getQueryBySqlCount(QueryBySQL aQuery) { String countSql = aQuery.getSql(); int fromPos = countSql.toUpperCase().indexOf(" FROM "); if(fromPos >= 0) { countSql = "select count(*)" + countSql.substring(fromPos); } int orderPos = countSql.toUpperCase().indexOf(" ORDER BY "); if(orderPos >= 0) { countSql = countSql.substring(0, orderPos); } return new QueryBySQL(aQuery.getSearchClass(), countSql); }
[ "Create a Count-Query for QueryBySQL\n\n@param aQuery\n@return The count query" ]
[ "Returns the setter method for the field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@param argumentType\nthe type to be passed to the setter\n@param <T>\nthe object type\n@return the setter method associated with the field on the object\n@throws NullPointerException\nif object, fieldName or fieldType is null\n@throws SuperCsvReflectionException\nif the setter doesn't exist or is not visible", "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data", "Obtain the name of the caller, most likely a user but could also be a remote process.\n\n@return The name of the caller.", "Extract and return the table name for a class.", "Splits switch in specialStateTransition containing more than maxCasesPerSwitch\ncases into several methods each containing maximum of maxCasesPerSwitch cases\nor less.\n@since 2.9", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "Sets the top and bottom frame margin.\n@param frameTop margin\n@param frameBottom margin\n@return this to allow chaining", "Log a warning for the resource at the provided address and the given attributes, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attributes attributes we that have problems about", "Use this API to fetch the statistics of all rnatip_stats resources that are configured on netscaler." ]
MongoCollection<BsonDocument> getLocalCollection(final MongoNamespace namespace) { return getLocalCollection( namespace, BsonDocument.class, MongoClientSettings.getDefaultCodecRegistry()); }
[ "Returns the local collection representing the given namespace for raw document operations.\n\n@param namespace the namespace referring to the local collection.\n@return the local collection representing the given namespace for raw document operations." ]
[ "This method is called when the locale of the parent file is updated.\nIt resets the locale specific date attributes to the default values\nfor the new locale.\n\n@param locale new locale", "Processes the template for all columns of the current table index.\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\"", "Calls the provided closure for a \"page\" of rows from the table represented by this DataSet.\nA page is defined as starting at a 1-based offset, and containing a maximum number of rows.\n\n@param offset the 1-based offset for the first row to be processed\n@param maxRows the maximum number of rows to be processed\n@param closure called for each row with a GroovyResultSet\n@throws SQLException if a database access error occurs\n@see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure)", "Builds the task hierarchy.\n\nNote that there are two distinct levels of organisation going on here. The first is the\nAsta \"summary\" organisation, where the user organises bars into summary groups. We are using this\nto create our hierarchy of tasks.\n\nThe second level displayed within a summary group (or at the project level if the user has not\ncreated summary groups) is the WBS. At the moment we are not including the WBS in the hierarchy.\n\n@param bars bar data\n@param expandedTasks expanded task data\n@param tasks task data\n@param milestones milestone data\n@return list containing the top level tasks", "Use this API to fetch crvserver_policymap_binding resources of given name .", "Retrieve the value from the REST request body.\n\nTODO: REST-Server value cannot be null ( null/empty string ?)", "Get the class name without the package\n\n@param c The class name with package\n@return the class name without the package", "rollback the transaction", "Parses a String email address to an IMAP address string." ]
public static authenticationvserver_authenticationcertpolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_authenticationcertpolicy_binding obj = new authenticationvserver_authenticationcertpolicy_binding(); obj.set_name(name); authenticationvserver_authenticationcertpolicy_binding response[] = (authenticationvserver_authenticationcertpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name ." ]
[ "Check if all cluster objects in the list are congruent.\n\n@param clusterUrls of cluster objects\n@return", "Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value", "Use this API to fetch policydataset_value_binding resources of given name .", "prevent too many refreshes happening one after the other.", "Retrieves a specific range of items in this collection.\n@param offset the index of the first item to retrieve.\n@param limit the maximum number of items to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of items.", "Get a timer of the given string name for the given thread. If no such\ntimer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@param threadId\nof the thread to track, or 0 if only system clock should be\ntracked\n@return timer", "Search for interesting photos using the Flickr Interestingness algorithm.\n\n@param params\nAny search parameters\n@param perPage\nNumber of items per page\n@param page\nThe page to start on\n@return A PhotoList\n@throws FlickrException", "Calculates the smallest value between the three inputs.\n@param first value\n@param second value\n@param third value\n@return the smallest value between the three inputs", "Reduce the given value to the nearest smaller 1 significant digit number starting with 1, 2 or 5.\n\n@param value the value to find a nice number for.\n@param scaleUnit the unit of the value.\n@param lockUnits if set, the values are not scaled to a \"nicer\" unit." ]
public void postPhoto(Photo photo, String blogId) throws FlickrException { postPhoto(photo, blogId, null); }
[ "Post the specified photo to a blog.\n\n@param photo\nThe photo metadata\n@param blogId\nThe blog ID\n@throws FlickrException" ]
[ "All the sub-level attributes.\n\n@param name the attribute name.\n@param attribute the attribute.", "Notifies that a content item is inserted.\n\n@param position the position of the content item.", "Returns a new instance of the given class using the constructor with the specified parameter.\n\n@param target The class to instantiate\n@param type The types of the single parameter of the constructor\n@param arg The argument\n@return The instance", "Go through the property name to see if it is a complex one. If it is, aliases must be declared.\n\n@param orgPropertyName\nThe propertyName. Can be complex.\n@param userData\nThe userData object that is passed in each method of the FilterVisitor. Should always be of the info\n\"Criteria\".\n@return property name", "Initialize all components of this URI builder with the components of the given URI.\n@param uri the URI\n@return this UriComponentsBuilder", "Creates a new ServerDetails object for resolver, this will take URL and name from the deployer ServerDetails as a default behaviour", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "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", "Given a String the method uses Regex to check if the String only contains punctuation characters\n\n@param s a String to check using regex\n@return true if the String is valid" ]
public static MimeMultipart createMultipartWithAttachment(String msg, final byte[] attachment, final String contentType, final String filename, String description) { try { MimeMultipart multiPart = new MimeMultipart(); MimeBodyPart textPart = new MimeBodyPart(); multiPart.addBodyPart(textPart); textPart.setText(msg); MimeBodyPart binaryPart = new MimeBodyPart(); multiPart.addBodyPart(binaryPart); DataSource ds = new DataSource() { @Override public InputStream getInputStream() throws IOException { return new ByteArrayInputStream(attachment); } @Override public OutputStream getOutputStream() throws IOException { ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); byteStream.write(attachment); return byteStream; } @Override public String getContentType() { return contentType; } @Override public String getName() { return filename; } }; binaryPart.setDataHandler(new DataHandler(ds)); binaryPart.setFileName(filename); binaryPart.setDescription(description); return multiPart; } catch (MessagingException e) { throw new IllegalArgumentException("Can not create multipart message with attachment", e); } }
[ "Create new multipart with a text part and an attachment\n\n@param msg Message text\n@param attachment Attachment data\n@param contentType MIME content type of body\n@param filename File name of the attachment\n@param description Description of the attachment\n@return New multipart" ]
[ "Gets an item that was shared with a shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@return info about the shared item.", "Returns true if templates are to be instantiated synchronously and false if\nasynchronously.", "Populate the constraint type and constraint date.\nNote that Merlin allows both start and end constraints simultaneously.\nAs we can't have both, we'll prefer the start constraint.\n\n@param row task data from database\n@param task Task instance", "Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context", "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", "Convenience method dispatches this object to the source appender, which\nwill result in the custom message being appended to the new file.\n\n@param message\nThe custom logging message to be appended.", "Attaches the menu drawer to the content view.", "Build list of style filters from style definitions.\n\n@param styleDefinitions\nlist of style definitions\n@return list of style filters\n@throws GeomajasException", "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process." ]
private String getInitials(String name) { String result = null; if (name != null && name.length() != 0) { StringBuilder sb = new StringBuilder(); sb.append(name.charAt(0)); int index = 1; while (true) { index = name.indexOf(' ', index); if (index == -1) { break; } ++index; if (index < name.length() && name.charAt(index) != ' ') { sb.append(name.charAt(index)); } ++index; } result = sb.toString(); } return result; }
[ "Convert a name into initials.\n\n@param name source name\n@return initials" ]
[ "Roll the java.util.Date forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "Find out which method to call on the service bean.", "Use this API to fetch appflowpolicy_binding resource of given name .", "Read the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar object\n@param mpxjCalendar MPXJ calendar object", "Adds tags to the If-Match header.\n\n@param tag the tag to add, may be null. This means the same as adding {@link Tag#ALL}\n@throws IllegalArgumentException if ALL is supplied more than once, or you add a null tag more than once.\n@return a new Conditionals object with the If-Match tag added.", "Adds a tag to the resource.\n@param key the key for the tag\n@param value the value for the tag\n@return the next stage of the definition/update", "Print channels to the left of log messages\n@param width The width (in characters) to print the channels\n@return this", "Returns the total count of partitions across all stores.\n\n@return returns the total count of partitions across all stores.", "Function to perform the forward pass for batch convolution" ]
public PlanarImage toDirectColorModel(RenderedImage img) { BufferedImage dest = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_4BYTE_ABGR); BufferedImage source = new BufferedImage(img.getColorModel(), (WritableRaster) img.getData(), img .getColorModel().isAlphaPremultiplied(), null); ColorConvertOp op = new ColorConvertOp(null); op.filter(source, dest); return PlanarImage.wrapRenderedImage(dest); }
[ "Converts an image to a RGBA direct color model using a workaround via buffered image directly calling the\nColorConvert operation fails for unknown reasons ?!\n\n@param img image to convert\n@return converted image" ]
[ "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps", "Confirms that both clusters have the same number of nodes by comparing\nset of node Ids between clusters.\n\n@param lhs\n@param rhs", "Print a time value.\n\n@param value time value\n@return time value", "Notify all WorkerListeners currently registered for the given WorkerEvent.\n@param event the WorkerEvent that occurred\n@param worker the Worker that the event occurred in\n@param queue the queue the Worker is processing\n@param job the Job related to the event (only supply for JOB_PROCESS, JOB_EXECUTE, JOB_SUCCESS, and\nJOB_FAILURE events)\n@param runner the materialized object that the Job specified (only supply for JOB_EXECUTE and\nJOB_SUCCESS events)\n@param result the result of the successful execution of the Job (only set for JOB_SUCCESS and if the Job was\na Callable that returned a value)\n@param t the Throwable that caused the event (only supply for JOB_FAILURE and ERROR events)", "Produces an IPv4 address section from any sequence of bytes in this IPv6 address section\n\n@param startIndex the byte index in this section to start from\n@param endIndex the byte index in this section to end at\n@throws IndexOutOfBoundsException\n@return\n\n@see #getEmbeddedIPv4AddressSection()\n@see #getMixedAddressSection()", "Get the target entry for a given patch element.\n\n@param element the patch element\n@return the patch entry\n@throws PatchingException", "Find the current active layout.\n\n@param phoenixProject phoenix project data\n@return current active layout", "Gets a SerialMessage with the SENSOR_ALARM_SUPPORTED_GET command\n@return the serial message, or null if the supported command is not supported.", "Connect sync.\n\n@param configuration the protocol configuration\n@return the connection\n@throws IOException" ]
private void configureConfigurationSelector() { if (m_checkinBean.getConfigurations().size() < 2) { // Do not show the configuration selection at all. removeComponent(m_configurationSelectionPanel); } else { for (CmsGitConfiguration configuration : m_checkinBean.getConfigurations()) { m_configurationSelector.addItem(configuration); m_configurationSelector.setItemCaption(configuration, configuration.getName()); } m_configurationSelector.setNullSelectionAllowed(false); m_configurationSelector.setNewItemsAllowed(false); m_configurationSelector.setWidth("350px"); m_configurationSelector.select(m_checkinBean.getCurrentConfiguration()); // There is really a choice between configurations m_configurationSelector.addValueChangeListener(new ValueChangeListener() { private static final long serialVersionUID = 1L; @SuppressWarnings("synthetic-access") public void valueChange(ValueChangeEvent event) { updateForNewConfiguration((CmsGitConfiguration)event.getProperty().getValue()); restoreFieldsFromUserInfo(); } }); } }
[ "Configures the configuration selector." ]
[ "Retrieve configuration details for a given custom field.\n\n@param field required custom field\n@return configuration detail", "Sets the text alignment for all cells in the table.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null", "Read relation data.", "Performs a null edit on a property. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param propertyId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Configure column aliases.", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "Maps a duration unit value from a recurring task record in an MPX file\nto a TimeUnit instance. Defaults to days if any problems are encountered.\n\n@param value integer duration units value\n@return TimeUnit instance", "Submits the configured assembly to Transloadit for processing.\n\n@param isResumable boolean value that tells the assembly whether or not to use tus.\n@return {@link AssemblyResponse} the response received from the Transloadit server.\n@throws RequestException if request to Transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Decrements the client's use count, and makes it eligible for closing if it is no longer in use.\n\n@param client the dbserver connection client which is no longer being used for a task" ]
public void copyTo(int srcOffset, byte[] destArray, int destOffset, int size) { int cursor = destOffset; for (ByteBuffer bb : toDirectByteBuffers(srcOffset, size)) { int bbSize = bb.remaining(); if ((cursor + bbSize) > destArray.length) throw new ArrayIndexOutOfBoundsException(String.format("cursor + bbSize = %,d", cursor + bbSize)); bb.get(destArray, cursor, bbSize); cursor += bbSize; } }
[ "Copy the contents of this buffer begginning from the srcOffset to a destination byte array\n@param srcOffset\n@param destArray\n@param destOffset\n@param size" ]
[ "Create a plan. The plan consists of batches. Each batch involves the\nmovement of no more than batchSize primary partitions. The movement of a\nsingle primary partition may require migration of other n-ary replicas,\nand potentially deletions. Migrating a primary or n-ary partition\nrequires migrating one partition-store for every store hosted at that\npartition.", "Use this API to fetch all the ci resources that are configured on netscaler.", "Takes a date, and retrieves the next business day\n\n@param dateString the date\n@param onlyBusinessDays only business days\n@return a string containing the next business day", "Write an error response.\n\n@param channel the channel\n@param header the request\n@param error the error\n@throws IOException", "remove an objects entry from the object registry", "Handles the file deletions.\n\n@param cms the CMS context to use\n@param toDelete the resources to delete\n\n@throws CmsException if something goes wrong", "Clear any custom configurations to Redwood\n@return this", "Copied from AbstractEntityPersister", "Checks, if all values necessary for a specific pattern are valid.\n@return a flag, indicating if all values required for the pattern are valid." ]
public void fatal(Throwable throwable, String msg, Object[] argArray) { logIfEnabled(Level.FATAL, throwable, msg, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, argArray); }
[ "Log a fatal message with a throwable." ]
[ "Obtains a local date in Accounting calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Accounting era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code AccountingEra}", "Notifies that multiple footer items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "This method extracts data for a single calendar from a Phoenix file.\n\n@param calendar calendar data", "Removes a design document from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}", "Call when you are done with the client\n\n@throws Exception", "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", "Control whether the Virtual CDJ sends status packets to the other players. Most uses of Beat Link will not\nrequire this level of activity. However, if you want to be able to take over the tempo master role, and control\nthe tempo and beat alignment of other players, you will need to turn on this feature, which also requires that\nyou are using one of the standard player numbers, 1-4.\n\n@param send if {@code true} we will send status packets, and can participate in (and control) tempo and beat sync\n\n@throws IllegalStateException if the virtual CDJ is not running, or if it is not using a device number in the\nrange 1 through 4\n@throws IOException if there is a problem starting the {@link BeatFinder}", "Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Return the List of VariableExpression objects referenced by the specified DeclarationExpression.\n@param declarationExpression - the DeclarationExpression\n@return the List of VariableExpression objects" ]
public static InputStream getContentStream(String stringUrl) throws MalformedURLException, IOException { URL url = new URL(stringUrl); URLConnection urlConnection = url.openConnection(); InputStream is = urlConnection.getInputStream(); if ("gzip".equals(urlConnection.getContentEncoding())) { is = new GZIPInputStream(is); } return is; }
[ "Get stream for URL only\n\n@param stringUrl URL to get content\n@return the input stream\n@throws IOException I/O error happened" ]
[ "Parses whole value as list attribute\n@deprecated in favour of using {@link AttributeParser attribute parser}\n@param value String with \",\" separated string elements\n@param operation operation to with this list elements are added\n@param reader xml reader from where reading is be done\n@throws XMLStreamException if {@code value} is not valid", "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "Returns if this maps the specified cell.\n\n@param cell the cell name\n@return {@code true} if this maps the column, {@code false} otherwise", "Use this API to Reboot reboot.", "Maps a duration unit value from a recurring task record in an MPX file\nto a TimeUnit instance. Defaults to days if any problems are encountered.\n\n@param value integer duration units value\n@return TimeUnit instance", "When set to true, all items in layout will be considered having the size of the largest child. If false, all items are\nmeasured normally. Disabled by default.\n@param enable true to measure children using the size of the largest child, false - otherwise.", "Return the hostname of this address such as \"MYCOMPUTER\".", "Build copyright map once.", "Gets type from super class's type parameter." ]
public static CrashReport fromJson(String json) throws IllegalArgumentException { try { return new CrashReport(json); } catch (JSONException je) { throw new IllegalArgumentException(je.toString()); } }
[ "Exports json encoded content to CrashReport object\n\n@param json valid json body.\n@return new instance of CrashReport" ]
[ "This method only overrides properties that are specific from Cube like await strategy or before stop events.\n\n@param overrideDockerCompositions\nthat contains information to override.", "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException", "Answer the search class.\nThis is the class of the example object or\nthe class represented by Identity.\n@return Class", "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "Queries taking longer than this limit to execute are logged.\n@param queryExecuteTimeLimit the limit to set in milliseconds.\n@param timeUnit", "Introspect the given object.\n\n@param obj object for introspection.\n\n@return a map containing object's field values.\n\n@throws IntrospectionException if an exception occurs during introspection\n@throws InvocationTargetException if property getter throws an exception\n@throws IllegalAccessException if property getter is inaccessible", "Use this API to fetch policydataset_value_binding resources of given name .", "Create parameter converters from methods annotated with @AsParameterConverter\n@see {@link AbstractStepsFactory}", "decides which icon to apply or hide this view\n\n@param imageHolder\n@param imageView\n@param iconColor\n@param tint" ]
public Set<DeviceAnnouncement> findUnreachablePlayers() { ensureRunning(); Set<DeviceAnnouncement> result = new HashSet<DeviceAnnouncement>(); for (DeviceAnnouncement candidate: DeviceFinder.getInstance().getCurrentDevices()) { if (!Util.sameNetwork(matchedAddress.getNetworkPrefixLength(), matchedAddress.getAddress(), candidate.getAddress())) { result.add(candidate); } } return Collections.unmodifiableSet(result); }
[ "Checks if we can see any players that are on a different network than the one we chose for the Virtual CDJ.\nIf so, we are not going to be able to communicate with them, and they should all be moved onto a single\nnetwork.\n\n@return the device announcements of any players which are on unreachable networks, or hopefully an empty list\n@throws IllegalStateException if we are not running" ]
[ "We have received an update that invalidates the waveform preview for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no waveform preview for the associated player", "Returns the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.\n\n@param namespace the namespace referring to the undo collection.\n@return the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.", "Returns a new color that has the alpha adjusted by the\nspecified amount.", "Creates the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node", "Use this API to fetch nsacl6 resource of given name .", "Returns a description a block of work, or \"exit\" if no more blocks exist\n\n@param name the assigned name of the consumer requesting a block of work\n@return a description a block of work, or \"exit\" if no more blocks exist", "Read resource data from a PEP file.", "When set to true, all items in layout will be considered having the size of the largest child. If false, all items are\nmeasured normally. Disabled by default.\n@param enable true to measure children using the size of the largest child, false - otherwise.", "Get the hours difference" ]
@UiThread protected void parentCollapsedFromViewHolder(int flatParentPosition) { ExpandableWrapper<P, C> parentWrapper = mFlatItemList.get(flatParentPosition); updateCollapsedParent(parentWrapper, flatParentPosition, true); }
[ "Called when a ParentViewHolder has triggered a collapse for it's parent\n\n@param flatParentPosition the position of the parent that is calling to be collapsed" ]
[ "Dumps the partition IDs per node in terms of zone n-ary type.\n\n@param cluster\n@param storeRoutingPlan\n@return pretty printed string of detailed zone n-ary type.", "Extract WOEID after XML loads", "Use this API to fetch lbmonitor_binding resource of given name .", "Use this API to fetch statistics of scpolicy_stats resource of given name .", "Method used to instantiate the appropriate input stream reader,\na standard one, or one which can deal with \"encrypted\" data.\n\n@param directory directory entry\n@param name file name\n@return new input stream\n@throws IOException", "Define the set of extensions.\n\n@param extensions\n@return self", "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image", "Returns an HTML table containing the matrix of Strings passed in.\nThe first dimension of the matrix should represent the rows, and the\nsecond dimension the columns.", "Calculate Euclidean distance between two points.\n\n@param anotherPoint Point to calculate distance to.\n@return Euclidean distance between this point and anotherPoint points." ]
public void setPrefix(String prefix) { if (!Strings.isNullOrEmpty(getProject().getUserProperty(SYSPROP_PREFIX()))) { log("Ignoring prefix attribute because it is overridden by user properties.", Project.MSG_WARN); } else { SysGlobals.initializeWith(prefix); } }
[ "Initializes custom prefix for all junit4 properties. This must be consistent\nacross all junit4 invocations if done from the same classpath. Use only when REALLY needed." ]
[ "Used to retrieve the watermark for the item.\nIf the item does not have a watermark applied to it, a 404 Not Found will be returned by API.\n@param itemUrl url template for the item.\n@param fields the fields to retrieve.\n@return the watermark associated with the item.", "Check if there is an attribute which tells us which concrete class is to be instantiated.", "Use this API to unset the properties of cmpparameter resource.\nProperties that need to be unset are specified in args array.", "Sets the category of the notification for iOS8 notification\nactions. See 13 minutes into \"What's new in iOS Notifications\"\n\nPassing {@code null} removes the category.\n\n@param category the name of the category supplied to the app\nwhen receiving the notification\n@return this", "set custom response for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise", "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.", "Start the operation by instantiating the first job instance in a separate Thread.\n\n@param arguments {@inheritDoc}", "2-D Integer array to double array.\n\n@param array Integer array.\n@return Double array.", "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results." ]
private void verifyClusterStoreDefinition() { if(SystemStoreConstants.isSystemStore(storeDefinition.getName())) { // TODO: Once "todo" in StorageService.initSystemStores is complete, // this early return can be removed and verification can be enabled // for system stores. return; } Set<Integer> clusterZoneIds = cluster.getZoneIds(); if(clusterZoneIds.size() > 1) { // Zoned Map<Integer, Integer> zoneRepFactor = storeDefinition.getZoneReplicationFactor(); Set<Integer> storeDefZoneIds = zoneRepFactor.keySet(); if(!clusterZoneIds.equals(storeDefZoneIds)) { throw new VoldemortException("Zone IDs in cluster (" + clusterZoneIds + ") are incongruent with zone IDs in store defs (" + storeDefZoneIds + ")"); } for(int zoneId: clusterZoneIds) { if(zoneRepFactor.get(zoneId) > cluster.getNumberOfNodesInZone(zoneId)) { throw new VoldemortException("Not enough nodes (" + cluster.getNumberOfNodesInZone(zoneId) + ") in zone with id " + zoneId + " for replication factor of " + zoneRepFactor.get(zoneId) + "."); } } } else { // Non-zoned if(storeDefinition.getReplicationFactor() > cluster.getNumberOfNodes()) { System.err.println(storeDefinition); System.err.println(cluster); throw new VoldemortException("Not enough nodes (" + cluster.getNumberOfNodes() + ") for replication factor of " + storeDefinition.getReplicationFactor() + "."); } } }
[ "Verify that cluster is congruent to store def wrt zones." ]
[ "Changes the vertex buffer associated with this mesh.\n@param vbuf new vertex buffer to use\n@see #setVertices(float[])\n@see #getVertexBuffer()\n@see #getVertices()", "Operates on one dimension at a time.", "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer.", "this method is called from the event methods", "Decrease the indent level.", "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix.", "Sets the values of this vector to those of v1.\n\n@param v1\nvector whose values are copied", "Handles Multi Instance Report message. Handles Report on\nthe number of instances for the command class.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Create a set containing all the processors in the graph." ]
public static String formatBigDecimal(BigDecimal number) { if (number.signum() != -1) { return "+" + number.toString(); } else { return number.toString(); } }
[ "Returns a signed string representation of the given number.\n\n@param number\n@return String for BigDecimal value" ]
[ "An internal method, public only so that GVRContext can make cross-package\ncalls.\n\nA synchronous (blocking) wrapper around\n{@link android.graphics.BitmapFactory#decodeStream(InputStream)\nBitmapFactory.decodeStream} that uses an\n{@link android.graphics.BitmapFactory.Options} <code>inTempStorage</code>\ndecode buffer. On low memory, returns half (quarter, eighth, ...) size\nimages.\n<p>\nIf {@code stream} is a {@link FileInputStream} and is at offset 0 (zero),\nuses\n{@link android.graphics.BitmapFactory#decodeFileDescriptor(FileDescriptor)\nBitmapFactory.decodeFileDescriptor()} instead of\n{@link android.graphics.BitmapFactory#decodeStream(InputStream)\nBitmapFactory.decodeStream()}.\n\n@param stream\nBitmap stream\n@param closeStream\nIf {@code true}, closes {@code stream}\n@return Bitmap, or null if cannot be decoded into a bitmap", "Retrieve the value of a single-valued parameter.\n\n@param key\n@param defaultValue\n@param cnx", "Handles the response of the SerialAPIGetCapabilities request.\n@param incomingMessage the response message to process.", "Submits the configured template to Transloadit.\n\n@return {@link Response}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "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", "Compute \"sent\" date\n\n@param msg Message to take sent date from. May be null to use default\n@param defaultVal Default if sent date is not present\n@return Sent date or now if no date could be found", "Returns the URL to the property file that contains CRS definitions.\n\n@return The URL to the epsg file containing custom EPSG codes", "Configure the access permissions required to access this print job.\n\n@param template the containing print template which should have sufficient information to\nconfigure the access.\n@param context the application context", "Validates aliases.\n\n@param uuid The structure id for which the aliases should be valid\n@param aliasPaths a map from id strings to alias paths\n@param callback the callback which should be called with the validation results" ]
private static boolean getSystemConnectivity(Context context) { try { ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (cm == null) { return false; } NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); return activeNetwork.isConnectedOrConnecting(); } catch (Exception exception) { return false; } }
[ "Get the connectivity state as reported by the Android system\n\n@param context Android context\n@return the connectivity state as reported by the Android system" ]
[ "Resets the state of the scope.\nUseful for automation testing when we want to reset the scope used to install test modules.", "Get a unique reference to the media slot on the network from which the specified data was loaded.\n\n@param dataReference the data whose media slot is of interest\n\n@return the instance that will always represent the slot associated with the specified data", "set ViewPager scroller to change animation duration when sliding", "Processes one item document. This is often the main workhorse that\ngathers the data you are interested in. You can modify this code as you\nwish.", "Transforms a single configuration file using the given transformation source.\n\n@param file the configuration file\n@param transformSource the transform soruce\n\n@throws TransformerConfigurationException -\n@throws IOException -\n@throws SAXException -\n@throws TransformerException -\n@throws ParserConfigurationException -", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Use this API to fetch linkset resource of given name .", "Find Flickr Places information by Place URL.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link PlacesInterface#getInfoByUrl(String)} instead.\n@param flickrPlacesUrl\n@return A Location\n@throws FlickrException", "Checks to see if a WORD matches the name of a macro. if it does it applies the macro at that location" ]
private void processProperties() { state = true; try { importerServiceFilter = getFilter(importerServiceFilterProperty); } catch (InvalidFilterException invalidFilterException) { LOG.debug("The value of the Property " + FILTER_IMPORTERSERVICE_PROPERTY + " is invalid," + " the recuperation of the Filter has failed. The instance gonna stop.", invalidFilterException); state = false; return; } try { importDeclarationFilter = getFilter(importDeclarationFilterProperty); } catch (InvalidFilterException invalidFilterException) { LOG.debug("The value of the Property " + FILTER_IMPORTDECLARATION_PROPERTY + " is invalid," + " the recuperation of the Filter has failed. The instance gonna stop.", invalidFilterException); state = false; return; } }
[ "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid." ]
[ "Use this API to fetch nstrafficdomain_binding resource of given name .", "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block", "Use this API to delete ntpserver resources of given names.", "Build a stack trace for this path. This can be used in generating more meaningful exceptions\nwhile using Crawljax in conjunction with JUnit for example.\n\n@return a array of StackTraceElements denoting the steps taken by this path. The first\nelement [0] denotes the last {@link Eventable} on this path while the last item\ndenotes the first {@link Eventable} executed.", "Specialized version of readValue just for reading map keys, because the StdDeserializer methods like\n_parseIntPrimitive blow up when the current JsonToken is FIELD_NAME", "add a FK column pointing to This Class", "Creates a polling state.\n\n@param response the response from Retrofit REST call that initiate the long running operation.\n@param lroOptions long running operation options.\n@param defaultRetryTimeout the long running operation retry timeout.\n@param resourceType the type of the resource the long running operation returns\n@param serializerAdapter the adapter for the Jackson object mapper\n@param <T> the result type\n@return the polling state\n@throws IOException thrown by deserialization", "Use this API to update rsskeytype.", "Returns the output path specified on the javadoc options" ]
private void readRoleDefinitions(Project gpProject) { m_roleDefinitions.put("Default:1", "project manager"); for (Roles roles : gpProject.getRoles()) { if ("Default".equals(roles.getRolesetName())) { continue; } for (Role role : roles.getRole()) { m_roleDefinitions.put(role.getId(), role.getName()); } } }
[ "Read the role definitions from a GanttProject project.\n\n@param gpProject GanttProject project" ]
[ "Mbeans for FETCH_ENTRIES", "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly", "Reset hard on HEAD.\n\n@throws GitAPIException", "Returns a PreparedStatementCreator that returns a count of the rows that\nthis creator would return.\n\n@param dialect\nDatabase dialect.", "Returns a simple web page where certs can be downloaded. This is meant for mobile device setup.\n@return\n@throws Exception", "Retrieve a timestamp field.\n\n@param dateName field containing the date component\n@param timeName field containing the time component\n@return Date instance", "public because it's used by other packages that use Duke", "Main method for testing fetching", "Return the inverse cumulative distribution function at x.\n\n@param x Argument\n@return Inverse cumulative distribution function at x." ]
private void performScriptedStep() { double scale = computeBulgeScale(); if( steps > giveUpOnKnown ) { // give up on the script followScript = false; } else { // use previous singular value to step double s = values[x2]/scale; performImplicitSingleStep(scale,s*s,false); } }
[ "Shifts are performed based upon singular values computed previously. If it does not converge\nusing one of those singular values it uses a Wilkinson shift instead." ]
[ "Read all task relationships from a GanttProject.\n\n@param gpProject GanttProject project", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Randomly generates matrix with the specified number of non-zero elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix", "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 a string that should be used as a label for the given property.\n\n@param propertyIdValue\nthe property to label\n@return the label", "Finds the beat in which the specified track position falls.\n\n@param milliseconds how long the track has been playing\n\n@return the beat number represented by that time, or -1 if the time is before the first beat", "Computes the unbiased standard deviation of all the elements.\n\n@return standard deviation", "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width", "Convert a wavelength to an RGB value.\n@param wavelength wavelength in nanometres\n@return the RGB value" ]
public ArrayList<Duration> segmentWork(ProjectCalendar projectCalendar, List<TimephasedWork> work, TimescaleUnits rangeUnits, List<DateRange> dateList) { ArrayList<Duration> result = new ArrayList<Duration>(dateList.size()); int lastStartIndex = 0; // // Iterate through the list of dates range we are interested in. // Each date range in this list corresponds to a column // shown on the "timescale" view by MS Project // for (DateRange range : dateList) { // // If the current date range does not intersect with any of the // assignment date ranges in the list, then we show a zero // duration for this date range. // int startIndex = lastStartIndex == -1 ? -1 : getStartIndex(range, work, lastStartIndex); if (startIndex == -1) { result.add(Duration.getInstance(0, TimeUnit.HOURS)); } else { // // We have found an assignment which intersects with the current // date range, call the method below to determine how // much time from this resource assignment can be allocated // to the current date range. // result.add(getRangeDuration(projectCalendar, rangeUnits, range, work, startIndex)); lastStartIndex = startIndex; } } return result; }
[ "This is the main entry point used to convert the internal representation\nof timephased work into an external form which can\nbe displayed to the user.\n\n@param projectCalendar calendar used by the resource assignment\n@param work timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range" ]
[ "Add an appliable dependency for this task item.\n\n@param appliable the appliable dependency.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated dependency", "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", "Creates the JSON serialized form of the accessory for use over the Homekit Accessory Protocol.\n\n@param instanceId the static id of the accessory.\n@return a future that will complete with the JSON builder for the object.", "Download a specified URL to a file\n\n@param stringUrl URL to use\n@param parameters HTTP Headers\n@param fileToSave File to save content\n@throws IOException I/O error happened", "Encrypt a string with HMAC-SHA1 using the specified key.\n\n@param message Input string.\n@param key Encryption key.\n@return Encrypted output.", "Write an error response.\n\n@param channel the channel\n@param header the request\n@param error the error\n@throws IOException", "This method processes any extended attributes associated with a\nresource assignment.\n\n@param xml MSPDI resource assignment instance\n@param mpx MPX task instance", "is ready to service requests", "This method lists task predecessor and successor relationships.\n\n@param file project file" ]
private static void unpackFace(File outputDirectory) throws IOException { ClassLoader loader = AllureMain.class.getClassLoader(); for (ClassPath.ResourceInfo info : ClassPath.from(loader).getResources()) { Matcher matcher = REPORT_RESOURCE_PATTERN.matcher(info.getResourceName()); if (matcher.find()) { String resourcePath = matcher.group(1); File dest = new File(outputDirectory, resourcePath); Files.createParentDirs(dest); try (FileOutputStream output = new FileOutputStream(dest); InputStream input = info.url().openStream()) { IOUtils.copy(input, output); LOGGER.debug("{} successfully copied.", resourcePath); } } } }
[ "Unpack report face to given directory.\n\n@param outputDirectory the output directory to unpack face.\n@throws IOException if any occurs." ]
[ "Helper method to add cue list entries from a parsed ANLZ cue tag\n\n@param entries the list of entries being accumulated\n@param tag the tag whose entries are to be added", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field", "Use this API to save cachecontentgroup.", "Remove a handler from the list\n@param toRemove The handler to remove. Any handler object that\nmatches this class will be removed.\n@return true if this handler was in the list.", "Get the contents from the request URL.\n\n@param url URL to get the response from\n@param layer the raster layer\n@return {@link InputStream} with the content\n@throws IOException cannot get content", "Register the entity as batch loadable, if enabled\n\nCopied from {@link org.hibernate.type.ManyToOneType#scheduleBatchLoadIfNeeded}", "Obtains a Julian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "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", "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by the specified comparator.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@param comparator\nthe comparator to be used. May be <code>null</code> to indicate that the natural ordering of the\nelements should be used.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List, Comparator)\n@see #sort(Iterable)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List, Comparator)\n@since 2.7" ]
public Map<String, String> decompose(Frontier frontier, String modelText) { if (!(frontier instanceof SCXMLFrontier)) { return null; } TransitionTarget target = ((SCXMLFrontier) frontier).getRoot().nextState; Map<String, String> variables = ((SCXMLFrontier) frontier).getRoot().variables; Map<String, String> decomposition = new HashMap<String, String>(); decomposition.put("target", target.getId()); StringBuilder packedVariables = new StringBuilder(); for (Map.Entry<String, String> variable : variables.entrySet()) { packedVariables.append(variable.getKey()); packedVariables.append("::"); packedVariables.append(variable.getValue()); packedVariables.append(";"); } decomposition.put("variables", packedVariables.toString()); decomposition.put("model", modelText); return decomposition; }
[ "Takes a model and an SCXMLFrontier and decomposes the Frontier into a Map of Strings to Strings\nThese strings can be sent over a network to get a Frontier past a 'gap'\n\n@param frontier the Frontier\n@param modelText the model\n@return the map of strings representing a decomposition" ]
[ "Get a collection of methods declared on this object by method name.\n\n@param name the name of the method\n@return the (possibly empty) collection of methods with the given name", "Read an individual remark type from a Gantt Designer file.\n\n@param remark remark type", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width", "Set hint number for country", "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "Returns the string in the buffer minus an leading or trailing whitespace or quotes", "Returns the compact records for all teams in the organization visible to\nthe authorized user.\n\n@param organization Globally unique identifier for the workspace or organization.\n@return Request object", "Process normal calendar working and non-working days.\n\n@param calendar parent calendar", "Each schema set has its own database cluster. The template1 database has the schema preloaded so that\neach test case need only create a new database and not re-invoke Migratory." ]
@Override public void setID(Integer val) { ProjectFile parent = getParentFile(); Integer previous = getID(); if (previous != null) { parent.getTasks().unmapID(previous); } parent.getTasks().mapID(val, this); set(TaskField.ID, val); }
[ "The ID field contains the identifier number that Microsoft Project\nautomatically assigns to each task as you add it to the project.\nThe ID indicates the position of a task with respect to the other tasks.\n\n@param val ID" ]
[ "Returns the perma link for the given resource and optional detail content.<p<\n\n@param cms the CMS context to use\n@param resourceName the page to generate the perma link for\n@param detailContentId the structure id of the detail content (may be null)\n\n@return the perma link", "Method to read our client's plain text\n\n@param file_name\n@return the filereader to translate client's plain text into our files\n@throws BeastException\nif any problem is found whit the file", "Parse an extended attribute date value.\n\n@param value string representation\n@return date value", "Enables or disables auto closing when selecting a date.", "This is the main entry point used to convert the internal representation\nof timephased cost into an external form which can\nbe displayed to the user.\n\n@param projectCalendar calendar used by the resource assignment\n@param cost timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "If you want to stop recorded events from being sent to the server, use this method to set the SDK instance to offline.\nOnce offline, events will be recorded and queued locally but will not be sent to the server until offline is disabled.\nCalling this method again with offline set to false will allow events to be sent to server and the SDK instance will immediately attempt to send events that have been queued while offline.\n\n@param value boolean, true sets the sdk offline, false sets the sdk back online", "Get a list of referrers from a given domain to a user's photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamReferrers.html\"", "Start the drag of the pivot object.\n\n@param dragMe Scene object with a rigid body.\n@param relX rel position in x-axis.\n@param relY rel position in y-axis.\n@param relZ rel position in z-axis.\n\n@return Pivot instance if success, otherwise returns null.", "Checks if a parameter exists. If it exists, it is updated. If it doesn't, it is created. Only works for parameters which key is\nunique. Will create a transaction on the given entity manager." ]
public static long getGcTimestamp(String zookeepers) { ZooKeeper zk = null; try { zk = new ZooKeeper(zookeepers, 30000, null); // wait until zookeeper is connected long start = System.currentTimeMillis(); while (!zk.getState().isConnected() && System.currentTimeMillis() - start < 30000) { Uninterruptibles.sleepUninterruptibly(10, TimeUnit.MILLISECONDS); } byte[] d = zk.getData(ZookeeperPath.ORACLE_GC_TIMESTAMP, false, null); return LongUtil.fromByteArray(d); } catch (KeeperException | InterruptedException | IOException e) { log.warn("Failed to get oldest timestamp of Oracle from Zookeeper", e); return OLDEST_POSSIBLE; } finally { if (zk != null) { try { zk.close(); } catch (InterruptedException e) { log.error("Failed to close zookeeper client", e); } } } }
[ "Retrieves the GC timestamp, set by the Oracle, from zookeeper\n\n@param zookeepers Zookeeper connection string\n@return Oldest active timestamp or oldest possible ts (-1) if not found" ]
[ "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", "Converts from an Accumulo Key to a Fluo RowColumn\n\n@param key Key\n@return RowColumn", "Add a creatable \"post-run\" dependent for this task item.\n\n@param creatable the creatable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve created \"post-run\" dependent", "checks whether the specified Object obj is read-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false", "Convert an Object to a Date.", "Detect bad xml 1.0 characters\n\n@param c to detect\n@return true if specified character valid, false otherwise", "Notifies that an existing footer item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Create and return a new Violation for this rule and the specified values\n@param lineNumber - the line number for the violation; may be null\n@param sourceLine - the source line for the violation; may be null\n@param message - the message for the violation; may be null\n@return a new Violation object", "Retrieves from all the Jenkins agents all the docker images, which have been registered for a specific build-info ID\nOnly images for which manifests have been captured are returned.\n\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException" ]
public static void validate(final Organization organization) { if(organization.getName() == null || organization.getName().isEmpty()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Organization name cannot be null or empty!") .build()); } }
[ "Checks if the provided organization is valid and could be stored into the database\n\n@param organization Organization\n@throws WebApplicationException if the data is corrupted" ]
[ "Generates the path to an output file for a given source URL. Creates\nall necessary parent directories for the destination file.\n@param src the source\n@return the path to the output file", "Clears all checked widgets in the group", "Returns the Field for a given parent class and a dot-separated path of\nfield names.\n\n@param clazz\nParent class.\n@param path\nPath to the desired field.", "Convert this path address to its model node representation.\n\n@return the model node list of properties", "Use this API to delete nsip6 of given name.", "Checks each available roll strategy in turn, starting at the per-minute\nstrategy, next per-hour, and so on for increasing units of time until a\nmatch is found. If no match is found, the error strategy is returned.\n\n@param properties\n@return The appropriate roll strategy.", "Use this API to fetch authenticationvserver_authenticationtacacspolicy_binding resources of given name .", "Set the position of the given Matcher to the given index.\n\n@param matcher a Matcher\n@param idx the index number\n@since 1.0", "Returns a product regarding its name\n\n@param name String\n@return DbProduct" ]
private static Pod getRandomPod(KubernetesClient client, String name, String namespace) { Endpoints endpoints = client.endpoints().inNamespace(namespace).withName(name).get(); List<String> pods = new ArrayList<>(); if (endpoints != null) { for (EndpointSubset subset : endpoints.getSubsets()) { for (EndpointAddress address : subset.getAddresses()) { if (address.getTargetRef() != null && POD.equals(address.getTargetRef().getKind())) { String pod = address.getTargetRef().getName(); if (pod != null && !pod.isEmpty()) { pods.add(pod); } } } } } if (pods.isEmpty()) { return null; } else { String chosen = pods.get(RANDOM.nextInt(pods.size())); return client.pods().inNamespace(namespace).withName(chosen).get(); } }
[ "Get a random pod that provides the specified service in the specified namespace.\n\n@param client\nThe client instance to use.\n@param name\nThe name of the service.\n@param namespace\nThe namespace of the service.\n\n@return The pod or null if no pod matches." ]
[ "Starts the Okapi Barcode UI.\n\n@param args the command line arguments", "Register this broker in ZK for the first time.", "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", "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.\n@param other\n@return", "Close all JDBC objects related to this connection.", "Build all children.\n\n@return the child descriptions", "Use this API to flush cacheobject.", "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" ]
@Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); // If the API level is less than 11, we can't rely on the view animation system to // do the scrolling animation. Need to tick it here and call postInvalidate() until the scrolling is done. if (Build.VERSION.SDK_INT < 11) { tickScrollAnimation(); if (!mScroller.isFinished()) { mGraph.postInvalidate(); } } }
[ "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn" ]
[ "Function to perform forward activation", "Is portlet env supported.\n\n@return true if portlet env is supported, false otherwise", "Read predecessors from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to this panel\n@return the modified index", "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token", "Uninstall current location collection client.\n\n@return true if uninstall was successful", "Use this API to add responderpolicy.", "Record a prepare operation timeout.\n\n@param failedOperation the prepared operation", "Returns a list of all the eigenvalues" ]
public boolean merge(AbstractTransition another) { if (!isCompatible(another)) { return false; } if (another.mId != null) { if (mId == null) { mId = another.mId; } else { StringBuilder sb = new StringBuilder(mId.length() + another.mId.length()); sb.append(mId); sb.append("_MERGED_"); sb.append(another.mId); mId = sb.toString(); } } mUpdateStateAfterUpdateProgress |= another.mUpdateStateAfterUpdateProgress; mSetupList.addAll(another.mSetupList); Collections.sort(mSetupList, new Comparator<S>() { @Override public int compare(S lhs, S rhs) { if (lhs instanceof AbstractTransitionBuilder && rhs instanceof AbstractTransitionBuilder) { AbstractTransitionBuilder left = (AbstractTransitionBuilder) lhs; AbstractTransitionBuilder right = (AbstractTransitionBuilder) rhs; float startLeft = left.mReverse ? left.mEnd : left.mStart; float startRight = right.mReverse ? right.mEnd : right.mStart; return (int) ((startRight - startLeft) * 1000); } return 0; } }); return true; }
[ "Merge another AbstractTransition's states into this object, such that the other AbstractTransition\ncan be discarded.\n\n@param another\n@return true if the merge is successful." ]
[ "This method returns an array containing all of the unique identifiers\nfor which data has been stored in the Var2Data block.\n\n@return array of unique identifiers", "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", "Gets the host-ignore data for a slave host running the given version.\n\n@param major the kernel management API major version\n@param minor the kernel management API minor version\n@param micro the kernel management API micro version\n\n@return the host-ignore data, or {@code null} if there is no matching registration", "Read a block of data from the FastTrack file and determine if\nit contains a table definition, or columns.\n\n@param blockIndex index of the current block\n@param startIndex start index of the block in the file\n@param blockLength block length", "Detects if the current device is a mobile device.\nThis method catches most of the popular modern devices.\nExcludes Apple iPads and other modern tablets.\n@return detection of any mobile device using the quicker method", "Places a new value at the end of the existing value array, increasing the field length accordingly.\n@param newValue - the 2 floats making the new SFVec2f appended to the MFVec2f array list", "Get the target entry for a given patch element.\n\n@param element the patch element\n@return the patch entry\n@throws PatchingException", "Make superclasses method protected??", "This produces a canonical string.\n\nRFC 5952 describes canonical representations.\nhttp://en.wikipedia.org/wiki/IPv6_address#Recommended_representation_as_text\nhttp://tools.ietf.org/html/rfc5952" ]
public void contextInitialized(ServletContextEvent event) { this.context = event.getServletContext(); // Output a simple message to the server's console System.out.println("The Simple Web App. Is Ready"); ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( "/client.xml"); LocatorService client = (LocatorService) context .getBean("locatorService"); String serviceHost = this.context.getInitParameter("serviceHost"); try { client.registerEndpoint(new QName( "http://talend.org/esb/examples/", "GreeterService"), serviceHost, BindingType.SOAP_11, TransportType.HTTP, null); } catch (InterruptedExceptionFault e) { e.printStackTrace(); } catch (ServiceLocatorFault e) { e.printStackTrace(); } }
[ "is ready to service requests" ]
[ "Detach any script file from a scriptable target.\n\n@param target The scriptable target.", "Submits the configured template to Transloadit.\n\n@return {@link Response}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Calculates the maximum text height which is possible based on the used Paint and its settings.\n\n@param _Paint Paint object which will be used to display a text.\n@param _Text The text which should be measured. If null, a default text is chosen, which\nhas a maximum possible height\n@return Maximum text height in px.", "Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException", "Use this API to fetch lbvserver_appflowpolicy_binding resources of given name .", "Rotate the specified photo. The only allowed values for degrees are 90, 180 and 270.\n\n@param photoId\nThe photo ID\n@param degrees\nThe degrees to rotate (90, 170 or 270)", "Get a System property by its name.\n\n@param name the name of the wanted System property.\n@return the System property value - null if it is not defined.", "Initialize. create the httpClientStore, tcpClientStore", "Checks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already checked; {@code false} otherwise." ]
private void processOutlineCodeFields(Row parentRow) throws SQLException { Integer entityID = parentRow.getInteger("CODE_REF_UID"); Integer outlineCodeEntityID = parentRow.getInteger("CODE_UID"); for (ResultSetRow row : getRows("SELECT * FROM MSP_OUTLINE_CODES WHERE CODE_UID=?", outlineCodeEntityID)) { processOutlineCodeField(entityID, row); } }
[ "Process a single outline code.\n\n@param parentRow outline code to task mapping table\n@throws SQLException" ]
[ "Diagnostic method used to dump known field map data.\n\n@param props props block containing field map data", "Generate a where clause for a prepared Statement.\nOnly primary key and locking fields are used in this where clause\n\n@param cld the ClassDescriptor\n@param useLocking true if locking fields should be included\n@param stmt the StatementBuffer", "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this", "Find the index of the specified name in field name array.", "Get the list of build numbers that are to be kept forever.", "Convert Day instance to MPX day index.\n\n@param day Day instance\n@return day index", "dispatch to gravity state", "Drops a driver from the DriverManager's list.", "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function" ]
public static Class<?>[] toClassArray(Collection<Class<?>> collection) { if (collection == null) { return null; } return collection.toArray(new Class<?>[collection.size()]); }
[ "Copy the given Collection into a Class array.\nThe Collection must contain Class elements only.\n@param collection the Collection to copy\n@return the Class array ({@code null} if the passed-in\nCollection was {@code null})" ]
[ "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded", "Adds an object to the Index. If it was already in the Index,\nthen nothing is done. If it is not in the Index, then it is\nadded iff the Index hasn't been locked.\n\n@return true if the item was added to the index and false if the\nitem was already in the index or if the index is locked", "Add a rollback loader for a give patch.\n\n@param patchId the patch id.\n@param target the patchable target\n@throws XMLStreamException\n@throws IOException", "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", "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value", "Converts the string representation of a Planner duration into\nan MPXJ Duration instance.\n\nPlanner represents durations as a number of seconds in its\nfile format, however it displays durations as days and hours,\nand seems to assume that a working day is 8 hours.\n\n@param value string representation of a duration\n@return Duration instance", "Adds the scroll position CSS extension to the given component\n\n@param componentContainer the component to extend\n@param scrollBarrier the scroll barrier\n@param barrierMargin the margin\n@param styleName the style name to set beyond the scroll barrier", "get the last segment at the moment\n\n@return the last segment", "Searches the model for all variable assignments and makes a default map of those variables, setting them to \"\"\n\n@return the default variable assignment map" ]
private void readProjectProperties(Project ganttProject) { ProjectProperties mpxjProperties = m_projectFile.getProjectProperties(); mpxjProperties.setName(ganttProject.getName()); mpxjProperties.setCompany(ganttProject.getCompany()); mpxjProperties.setDefaultDurationUnits(TimeUnit.DAYS); String locale = ganttProject.getLocale(); if (locale == null) { locale = "en_US"; } m_localeDateFormat = DateFormat.getDateInstance(DateFormat.SHORT, new Locale(locale)); }
[ "This method extracts project properties from a GanttProject file.\n\n@param ganttProject GanttProject file" ]
[ "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Retrieves a long value from the extended data.\n\n@param type Type identifier\n@return long value", "Sets the transformations to be applied to the shape before indexing it.\n\n@param transformations the sequence of transformations\n@return this with the specified sequence of transformations", "Returns an URI which represents the statement rank in a triple.\n\n@param rank\n@return", "Creates a random symmetric matrix. The entire matrix will be filled in, not just a triangular\nportion.\n\n@param N Number of rows and columns\n@param nz_total Number of nonzero elements in the triangular portion of the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix", "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.", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "Adds a parameter that requires a string argument to the argument list.\nIf the given argument is null, then the argument list remains unchanged.", "Add a new server group\n\n@param groupName name of the group\n@param profileId ID of associated profile\n@return id of server group\n@throws Exception" ]
public static final String printTaskType(TaskType value) { return (Integer.toString(value == null ? TaskType.FIXED_UNITS.getValue() : value.getValue())); }
[ "Print a task type.\n\n@param value TaskType instance\n@return task type value" ]
[ "Remove the listener active in this session.\n\n@param listenerId the id of the listener to remove", "Update the state of the picker. If it has an owner, the picker\nwill use that object to derive its position and orientation.\nThe \"active\" state of this controller is used to indicate touch.\nThe cursor position is updated after picking.", "Begin building a url for this host with the specified image.", "Process the timephased resource assignment data to work out the\nsplit structure of the task.\n\n@param task parent task\n@param timephasedComplete completed resource assignment work\n@param timephasedPlanned planned resource assignment work", "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by the FlexiblePublisher.\nNull is returned if the FlexiblePublisher does not wrap a publisher of the specified type.\n@throws IllegalArgumentException In case publisher is not of type\n{@link org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher}", "Constraint that ensures that the proxy-prefetching-limit has a valid value.\n\n@param def The descriptor (class, reference, collection)\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Sends a normal HTTP response containing the serialization information in\na XML format", "Use this API to fetch all the rsskeytype resources that are configured on netscaler.", "Use this API to fetch all the nsacl6 resources that are configured on netscaler." ]
protected static FileWriter createFileWriter(String scenarioName, String aux_package_path, String dest_dir) throws BeastException { try { return new FileWriter(new File(createFolder(aux_package_path, dest_dir), scenarioName + ".story")); } catch (IOException e) { String message = "ERROR writing the " + scenarioName + ".story file: " + e.toString(); logger.severe(message); throw new BeastException(message, e); } }
[ "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException" ]
[ "Sets allowed values for attribute\n\n@param allowedValues values that are legal as part in this attribute\n@return a builder that can be used to continue building the attribute definition", "Returns true if this Bytes object equals another. This method checks it's arguments.\n\n@since 1.2.0", "Converts this object to JSON.\n\n@return the JSON representation\n\n@throws JSONException if JSON operations fail", "Registers a handler and returns the callback key to be passed to\nJavascript.\n\n@param handler Handler to be registered.\n@return A String random UUID that can be used as the callback key.", "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.", "Get a list of all methods.\n\n@return The method names\n@throws FlickrException", "This utility displays a list of available task filters, and a\nlist of available resource filters.\n\n@param project project file", "This solution is based on an absolute path", "Helper to generate the common configuration part for client-side and server-side widget.\n@return the common configuration options as map" ]
@Override public Integer[] getUniqueIdentifierArray() { Integer[] result = new Integer[m_table.size()]; int index = 0; for (Integer value : m_table.keySet()) { result[index] = value; ++index; } return (result); }
[ "This method returns an array containing all of the unique identifiers\nfor which data has been stored in the Var2Data block.\n\n@return array of unique identifiers" ]
[ "Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler.\n@param fromObservable the source observable\n@param toValue the value to emit to the observer\n@param <T> the type of the value to emit\n@return an observable emitting the specified value", "Saves the current translations from the container to the respective localization.", "Add an exact path to the routing table.\n\n@throws RouteAlreadyMappedException", "The user making this call must be an admin in the workspace.\nReturns an empty data record.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "2-D Complex Gabor function.\n\n@param x X axis coordinate.\n@param y Y axis coordinate.\n@param wavelength Wavelength.\n@param orientation Orientation.\n@param phaseOffset Phase offset.\n@param gaussVariance Gaussian variance.\n@param aspectRatio Aspect ratio.\n@return Gabor response.", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be JSON.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')", "Return the containing group if it contains exactly one element.\n\n@since 2.14", "Add a new column\n\n@param columnName the name of the column\n@param searchable whether the column is searchable or not\n@param orderable whether the column is orderable or not\n@param searchValue if any, the search value to apply", "Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise" ]
public static <InnerT> Observable<InnerT> convertListToInnerAsync(Observable<List<InnerT>> innerList) { return innerList.flatMap(new Func1<List<InnerT>, Observable<InnerT>>() { @Override public Observable<InnerT> call(List<InnerT> inners) { return Observable.from(inners); } }); }
[ "Converts Observable of list to Observable of Inner.\n@param innerList list to be converted.\n@param <InnerT> type of inner.\n@return Observable for list of inner." ]
[ "Counts additional occurrences of a property as the main property of\nstatements.\n\n@param usageStatistics\nstatistics object where count is stored\n@param property\nthe property to count\n@param count\nthe number of times to count the property", "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\".", "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException", "Handle the given response, return the deserialized object when the response is successful.\n\n@param <T> Type\n@param response Response\n@param returnType Return type\n@throws ApiException If the response has a unsuccessful status code or\nfail to deserialize the response body\n@return Type", "Sends the events to monitoring service client.\n\n@param events the events", "if you have a default, it's automatically optional", "Sets test status.", "Restores the dropout descriptor to a previously saved-off state", "This method tokenizes a string by space characters,\nbut ignores spaces in quoted parts,that are parts in\n'' or \"\". The method does allows the usage of \"\" in ''\nand '' in \"\". The space character between tokens is not\nreturned.\n\n@param s the string to tokenize\n@return the tokens" ]
public static base_responses update(nitro_service client, nd6ravariables resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nd6ravariables updateresources[] = new nd6ravariables[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nd6ravariables(); updateresources[i].vlan = resources[i].vlan; updateresources[i].ceaserouteradv = resources[i].ceaserouteradv; updateresources[i].sendrouteradv = resources[i].sendrouteradv; updateresources[i].srclinklayeraddroption = resources[i].srclinklayeraddroption; updateresources[i].onlyunicastrtadvresponse = resources[i].onlyunicastrtadvresponse; updateresources[i].managedaddrconfig = resources[i].managedaddrconfig; updateresources[i].otheraddrconfig = resources[i].otheraddrconfig; updateresources[i].currhoplimit = resources[i].currhoplimit; updateresources[i].maxrtadvinterval = resources[i].maxrtadvinterval; updateresources[i].minrtadvinterval = resources[i].minrtadvinterval; updateresources[i].linkmtu = resources[i].linkmtu; updateresources[i].reachabletime = resources[i].reachabletime; updateresources[i].retranstime = resources[i].retranstime; updateresources[i].defaultlifetime = resources[i].defaultlifetime; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update nd6ravariables resources." ]
[ "Add a task to the project.\n\n@return new task instance", "Recursively scan the provided path and return a list of all Java packages contained therein.", "Get FieldDescriptor from Reference", "Given a list of store definitions, makes sure that rebalance supports all\nof them. If not it throws an error.\n\n@param storeDefList List of store definitions\n@return Filtered list of store definitions which rebalancing supports", "Function to compute the bias gradient for batch convolution", "Open a new content stream.\n\n@param item the content item\n@return the content stream", "This method is used to extract the resource hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param resource resource instance\n@param data hyperlink data block", "Adds another scene object to pick against.\nEach frame all the colliders in the scene will be compared\nagainst the bounding volumes of all the collidables associated\nwith this picker.\n@param sceneObj new collidable\n@return index of collidable added, this is the CursorID in the GVRPickedObject", "Use this API to export application." ]
public ItemRequest<Workspace> removeUser(String workspace) { String path = String.format("/workspaces/%s/removeUser", workspace); return new ItemRequest<Workspace>(this, Workspace.class, path, "POST"); }
[ "The user making this call must be an admin in the workspace.\nReturns an empty data record.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object" ]
[ "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error", "Generate the next available field for a user defined field.\n\n@param <E> field type class\n@param clazz class of the desired field enum\n@param type user defined field type.\n@return field of specified type", "This is the main entry point used to convert the internal representation\nof timephased baseline cost into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param cost timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Use this API to fetch the statistics of all appfwpolicy_stats resources that are configured on netscaler.", "Moves to the next step.", "Controls whether we are currently staying in sync with the tempo master. Will only be meaningful if we are\nsending status packets.\n\n@param sync if {@code true}, our status packets will be tempo and beat aligned with the tempo master", "Remove the nodes representing the entity and the embedded elements attached to it.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values of the key identifying the entity to remove", "Sets the values of this input field. Only Applicable check-boxes and a radio buttons.\n\n@param values Values to set.", "Returns values aggregated from all the delegates, without overriding\nvalues that already exist.\n\n@return The Map of aggregated values" ]
public static void main(String[] args) { Treebank treebank = new DiskTreebank(); treebank.loadPath(args[0]); WordStemmer ls = new WordStemmer(); for (Tree tree : treebank) { ls.visitTree(tree); System.out.println(tree); } }
[ "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file" ]
[ "Copy one Gradient into another.\n@param g the Gradient to copy into", "Given a layer ID, search for the WMS layer.\n\n@param layerId layer id\n@return WMS layer or null if layer is not a WMS layer", "Creates a rectangular matrix which is zero except along the diagonals.\n\n@param numRows Number of rows in the matrix.\n@param numCols NUmber of columns in the matrix.\n@return A matrix with diagonal elements equal to one.", "Roll back to the previous configuration.\n\n@throws GeomajasException\nindicates an unlikely problem with the rollback (see cause)", "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width", "Reads non outline code custom field values and populates container.", "Adds a new metadata value of array type.\n@param path the path to the field.\n@param values the collection of values.\n@return the metadata object for chaining.", "Determine if the buffer, when expressed as text, matches a fingerprint regular expression.\n\n@param buffer bytes from file\n@param fingerprint fingerprint regular expression\n@return true if the file matches the fingerprint", "Cancel the pause operation" ]
protected FieldDescriptor resolvePayloadField(Message message) { for (FieldDescriptor field : message.getDescriptorForType().getFields()) { if (message.hasField(field)) { return field; } } throw new RuntimeException("No payload found in message " + message); }
[ "Find out which field in the incoming message contains the payload that is.\ndelivered to the service method." ]
[ "Use this API to update gslbsite resources.", "You can register styles object for later reference them directly. Parent\nstyles should be registered this way\n\n@param style\n@return\n@throws DJBuilderException", "Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data", "Gets the message payload.\n\n@param message the message\n@return the payload", "Given a list of typedDependencies, returns true if the node \"node\" is the\ngovernor of a conj relation with a dependent which is not a preposition\n\n@param node\nA node in this GrammaticalStructure\n@param list\nA list of typedDependencies\n@return true If node is the governor of a conj relation in the list with\nthe dep not being a preposition", "Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the\ntimestampTest.\n\n@param dest Destination ColumnBuffer\n@param timestampTest Test to determine which timestamps get added to dest", "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.", "Use this API to update clusterinstance resources.", "Get a random sample of k out of n elements.\n\nSee Algorithm S, D. E. Knuth, The Art of Computer Programming, Vol. 2, p.142." ]
public final List<MtasSolrStatus> checkForExceptions() { List<MtasSolrStatus> statusWithException = null; for (MtasSolrStatus item : data) { if (item.checkResponseForException()) { if (statusWithException == null) { statusWithException = new ArrayList<>(); } statusWithException.add(item); } } return statusWithException; }
[ "Check for exceptions.\n\n@return the list" ]
[ "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor.", "Callback from the worker when it terminates", "Makes sure that there is a class definition for the given qualified name, and returns it.\n\n@param original The XDoclet class object\n@return The class definition", "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>", "Initialize new instance\n@param instance\n@param logger\n@param auditor", "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer.", "Start check of execution time\n@param extra", "prevent too many refreshes happening one after the other.", "Make a copy of this Area of Interest." ]
@Nullable public final String getStringContent(final long blobHandle, @NotNull final Transaction txn) throws IOException { String result; result = stringContentCache.tryKey(this, blobHandle); if (result == null) { final InputStream content = getContent(blobHandle, txn); if (content == null) { logger.error("Blob string not found: " + getBlobLocation(blobHandle), new FileNotFoundException()); } result = content == null ? null : UTFUtil.readUTF(content); if (result != null && result.length() <= config.getBlobStringsCacheMaxValueSize()) { if (stringContentCache.getObject(this, blobHandle) == null) { stringContentCache.cacheObject(this, blobHandle, result); } } } return result; }
[ "Returns string content of blob identified by specified blob handle. String contents cache is used.\n\n@param blobHandle blob handle\n@param txn {@linkplain Transaction} instance\n@return string content of blob identified by specified blob handle\n@throws IOException if something went wrong" ]
[ "Use this API to fetch sslciphersuite resource of given name .", "Returns the getter method associated with the object's field.\n\n@param object\nthe object\n@param fieldName\nthe name of the field\n@return the getter method\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible", "The Baseline Duration field shows the original span of time planned\nto complete a task.\n\n@return - duration string", "Use this API to fetch gslbsite resources of given names .", "Read an optional JSON array.\n@param json the JSON Object that has the array as element\n@param key the key for the array in the provided JSON object\n@return the array or null if reading the array fails.", "Write correlation id.\n\n@param message the message\n@param correlationId the correlation id", "Delivers the correct JSON Object for the stencilId\n\n@param stencilId\n@throws org.json.JSONException", "Read one collection element from the current row of the JDBC result set\n\n@param optionalOwner the collection owner\n@param optionalKey the collection key\n@param persister the collection persister\n@param descriptor the collection aliases\n@param rs the result set\n@param session the session\n@throws HibernateException if an error occurs\n@throws SQLException if an error occurs during the query execution", "Copy the data from an InputStream to a temp file.\n\n@param inputStream data source\n@param tempFileSuffix suffix to use for temp file\n@return File instance" ]
public synchronized void resumeDeployment(final String deployment) { for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { ep.resume(); } } }
[ "resumed a given deployment\n\n@param deployment The deployment to resume" ]
[ "Add a new column\n\n@param columnName the name of the column\n@param searchable whether the column is searchable or not\n@param orderable whether the column is orderable or not\n@param searchValue if any, the search value to apply", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix in the linear equation. Modified. Reference saved.\n@return true if the decomposition was successful.", "Obtains the Constructor specified from the given Class and argument types\n\n@throws NoSuchMethodException", "Installs a remoting stream server for a domain instance\n@param serviceTarget the service target to install the services into\n@param endpointName the name of the endpoint to install the stream server into\n@param networkInterfaceBinding the network interface binding\n@param port the port\n@param securityRealm the security real name\n@param options the remoting options", "Returns the count of total number of unread inbox messages for the user\n@return int - count of all unread messages", "Alternative entry point allowing an MPP file to be read from\na user-supplied POI file stream.\n\n@param fs POI file stream\n@return ProjectFile instance\n@throws MPXJException", "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", "Append the html-code to finish a html mail message to the given buffer.\n\n@param buffer The StringBuffer to add the html code to.", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name ." ]
private void sendEvents(final List<Event> events) { if (null != handlers) { for (EventHandler current : handlers) { for (Event event : events) { current.handleEvent(event); } } } LOG.info("Put events(" + events.size() + ") to Monitoring Server."); try { if (sendToEventadmin) { EventAdminPublisher.publish(events); } else { monitoringServiceClient.putEvents(events); } } catch (MonitoringException e) { throw e; } catch (Exception e) { throw new MonitoringException("002", "Unknown error while execute put events to Monitoring Server", e); } }
[ "Sends the events to monitoring service client.\n\n@param events the events" ]
[ "Returns the number of key-value mappings in this map for the second key.\n\n@param firstKey\nthe first key\n@return Returns the number of key-value mappings in this map for the second key.", "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices", "Get MultiJoined ClassDescriptors\n@param cld", "Creates a new empty HTML document tree.\n@throws ParserConfigurationException", "Set default value with\n\n@param iso ISO2 of country", "Exception handler if we are unable to parse a json value into a java representation\n\n@param expectedType Name of the expected Type\n@param type Type of the json node\n@return SpinJsonDataFormatException", "convert object into another class using the JSON mapper\n\n@param <C> the generic target type\n@param object the object to convert\n@param targetClass the class of the target object\n@return the converted object\n@throws IllegalArgumentException if conversion fails", "Reads the integer representation of calendar hours for a given\nday and populates the calendar.\n\n@param calendar parent calendar\n@param day target day\n@param hours working hours", "Registers a BeanNameAutoProxyCreator class that wraps the bean being\nmonitored. The proxy is associated with the PerformanceMonitorInterceptor\nfor the bean, which is created when parsing the methods attribute from\nthe springconfiguration xml file.\n\n@param source An Attribute node from the spring configuration\n@param holder A container for the beans I will create\n@param context the context currently parsing my spring config" ]
@SuppressWarnings("unchecked") public static <T extends Serializable> T makeClone(T from) { return (T) SerializationUtils.clone(from); }
[ "Creates a clone using java serialization\n\n@param from Object to be cloned\n@param <T> type of the cloned object\n@return Clone of the object" ]
[ "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity", "Calculate the signature by which we can reliably recognize a loaded track.\n\n@param title the track title\n@param artist the track artist, or {@code null} if there is no artist\n@param duration the duration of the track in seconds\n@param waveformDetail the monochrome waveform detail of the track\n@param beatGrid the beat grid of the track\n\n@return the SHA-1 hash of all the arguments supplied, or {@code null} if any either {@code waveFormDetail} or {@code beatGrid} were {@code null}", "Add the given pair into the map.\n\n<p>\nIf the pair key already exists in the map, its value is replaced\nby the value in the pair, and the old value in the map is returned.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to add into the map.\n@return the value previously associated to the key, or <code>null</code>\nif the key was not present in the map before the addition.\n@since 2.15", "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "Obtains a Symmetry454 zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry454 zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "set custom request for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise", "Gathers all parameters' annotations for the given method, starting from the third parameter.", "Returns true if \"file\" is a subfile or subdirectory of \"dir\".\n\nFor example with the directory /path/to/a, the following return values would occur:\n\n/path/to/a/foo.txt - true /path/to/a/bar/zoo/boo/team.txt - true /path/to/b/foo.txt - false" ]
public void setValue(Quaternionf rot) { mX = rot.x; mY = rot.y; mZ = rot.z; mW = rot.w; }
[ "Sets the quaternion of the keyframe." ]
[ "Generate the global CSS style for the whole document.\n@return the CSS code used in the generated document header", "Has to be called when the scenario is finished in order to execute after methods.", "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of part IDs to part values\n@return the original secret\n@throws IllegalArgumentException if {@code parts} is empty or contains values of varying\nlengths", "Use this API to fetch nsrpcnode resource of given name .", "Parse an extended attribute value.\n\n@param file parent file\n@param mpx parent entity\n@param value string value\n@param mpxFieldID field ID\n@param durationFormat duration format associated with the extended attribute", "Sets the stream for a resource.\nThis function allows you to provide a stream that is already open to\nan existing resource. It will throw an exception if that resource\nalready has an open stream.\n@param s InputStream currently open stream to use for I/O.", "Returns all values that can be selected in the widget.\n@param cms the current CMS object\n@param rootPath the root path to the currently edited xml file (sitemap config)\n@param allRemoved flag, indicating if all inheritedly available formatters should be disabled\n@return all values that can be selected in the widget.", "Use this API to fetch snmpuser resource of given name ." ]
public void setFinalTransformMatrix(Matrix4f finalTransform) { float[] mat = new float[16]; finalTransform.get(mat); NativeBone.setFinalTransformMatrix(getNative(), mat); }
[ "Sets the final transform of the bone during animation.\n\n@param finalTransform The transform matrix representing\nthe bone's pose after computing the skeleton." ]
[ "Process a file.\n\n@param file the file to be processed\n@param mode the patching mode\n@throws IOException", "Print the method parameter p", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "convert a param object to a multimap.\n\n@param objectParams the parameters to convert.\n@return the corresponding Multimap.", "Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation", "Pick arbitrary wrapping method. No generics should be set.\n@param builder", "Create a new Time, with no date component.", "Gets a collection.\n\n@param collectionName the name of the collection to return\n@return the collection", "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" ]