query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public DependencyReport getDependencyReport(final String moduleId, final FiltersHolder filters) { final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); final DependencyReport report = new DependencyReport(moduleId); final List<String> done = new ArrayList<String>(); for(final DbModule submodule: DataUtils.getAllSubmodules(module)){ done.add(submodule.getId()); } addModuleToReport(report, module, filters, done, 1); return report; }
[ "Generate a report about the targeted module dependencies\n\n@param moduleId String\n@param filters FiltersHolder\n@return DependencyReport" ]
[ "Execute a set of API calls as batch request.\n@param requests list of api requests that has to be executed in batch.\n@return list of BoxAPIResponses", "Return the NTSC gray level of an RGB value.\n@param rgb1 the input pixel\n@return the gray level (0-255)", "Checks if there's exactly one option that exists among all opts.\n\n@param options OptionSet to checked\n@param opts List of options to be checked\n@throws VoldemortException", "Checks to see if a handler is disabled\n\n@param handlerName the name of the handler to enable.", "delete of files more than 1 day old", "Cut all characters from maxLength and replace it with \"...\"", "compute Cosh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Fires the event.\n\n@param source the event source\n@param date the date\n@param isTyping true if event was caused by user pressing key that may have changed the value", "Remove a DropPasteWorker from the helper.\n@param worker the worker that should be removed" ]
@Override public Object[] getDatabaseSnapshot(Serializable id, SharedSessionContractImplementor session) throws HibernateException { if ( log.isTraceEnabled() ) { log.trace( "Getting current persistent state for: " + MessageHelper.infoString( this, id, getFactory() ) ); } //snapshot is a Map in the end final Tuple resultset = getFreshTuple( EntityKeyBuilder.fromPersister( this, id, session ), session ); //if there is no resulting row, return null if ( resultset == null || resultset.getSnapshot().isEmpty() ) { return null; } //otherwise return the "hydrated" state (ie. associations are not resolved) GridType[] types = gridPropertyTypes; Object[] values = new Object[types.length]; boolean[] includeProperty = getPropertyUpdateability(); for ( int i = 0; i < types.length; i++ ) { if ( includeProperty[i] ) { values[i] = types[i].hydrate( resultset, getPropertyAliases( "", i ), session, null ); //null owner ok?? } } return values; }
[ "This snapshot is meant to be used when updating data." ]
[ "Converts a number of bytes to a human-readable string\n@param bytes the bytes\n@return the human-readable string", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "returns array with length 3 and optional entries version, encoding, standalone", "Return the inverse cumulative distribution function at x.\n\n@param x Argument\n@return Inverse cumulative distribution function at x.", "invoked from the jelly file\n\n@throws Exception Any exception", "Combines adjacent blocks of the same type.", "An invalid reference or references. The verification of the digest of a\nreference failed. This can be caused by a change to the referenced data\nsince the signature was generated.\n\n@param aInvalidReferences\nThe indices to the invalid references.\n@return Result object", "Returns the texture magnification filter\n\nIf missing, defaults to {@link GL_LINEAR }\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture magnification filter", "Get parent digest of an image.\n\n@param digest\n@param host\n@return" ]
public static ResourceResolutionContext context(ResourceResolutionComponent[] components, Map<String, Object> messageParams) { return new ResourceResolutionContext(components, messageParams); }
[ "Build resolution context in which message will be discovered and built\n@param components resolution components, used to identify message bundle\n@param messageParams message parameters will be substituted in message and used in pattern matching\n@since 3.1\n@return immutable resolution context instance for given parameters" ]
[ "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "Set the horizontal and vertical alignment for the image when image gets cropped by resizing.\n\n@param valign Vertical alignment.\n@param halign Horizontal alignment.\n@throws IllegalStateException if image has not been marked for resize.", "Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model.\nProxies\n@param obj\n@return", "Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy", "This method takes the textual version of an accrue type name\nand populates the class instance appropriately. Note that unrecognised\nvalues are treated as \"Prorated\".\n\n@param type text version of the accrue type\n@param locale target locale\n@return AccrueType class instance", "of the unbound provider (", "removes all timed out lock entries from the persistent storage.\nThe timeout value can be set in the OJB properties file.", "URL-Decodes a given string using UTF-8. No UnsupportedEncodingException to handle as it is dealt with in this\nmethod.", "Update the installed identity using the modified state from the modification.\n\n@param name the identity name\n@param modification the modification\n@param state the installation state\n@return the installed identity" ]
public static vpath[] get(nitro_service service) throws Exception{ vpath obj = new vpath(); vpath[] response = (vpath[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the vpath resources that are configured on netscaler." ]
[ "Return the first header value for the given header name, if any.\n@param headerName the header name\n@return the first header value, or {@code null} if none", "Designate the vertex attribute and shader variable for the texture coordinates\nassociated with the named texture.\n\n@param texName name of texture\n@param texCoordAttr name of vertex attribute with texture coordinates.\n@param shaderVarName name of shader variable to get texture coordinates.", "Returns the supplied string with any trailing '\\n' removed.", "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration", "Generate a sql where-clause for the array of fields\n\n@param fields array containing all columns used in WHERE clause", "Formats a connection string for CLI to use as it's controller connection.\n\n@return the controller string to connect CLI", "Derive a calendar for a resource.\n\n@param parentCalendarID calendar from which resource calendar is derived\n@return new calendar for a resource", "Returns the associated SQL WHERE statement.", "Returns a set that contains all the unique entries of the given iterator in the order of their appearance.\nThe result set is a copy of the iterator with stable order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a set with the unique entries of the given iterator. Never <code>null</code>." ]
public T copy() { T ret = createLike(); ret.getMatrix().set(this.getMatrix()); return ret; }
[ "Creates and returns a matrix which is idential to this one.\n\n@return A new identical matrix." ]
[ "Sorts the row indices in ascending order.\n@param sorter (Optional) Used to sort rows. If null a new instance will be declared internally.", "Initialization that parses the String to a JSON object.\n@param configString The JSON as string.\n@param baseConfig The optional basic search configuration to overwrite (partly) by the JSON configuration.\n@throws JSONException thrown if parsing fails.", "this remove the linebreak.\n\n@param input\nthe input\n@param patternStr\nthe pattern str\n@return the string", "Set editable state on an attribute. This needs to also set the state on the associated attributes.\n\n@param attribute attribute for which the editable state needs to be set\n@param editable new editable state", "Creates an object from the given JSON data.\n\n@param data the JSON data\n@param clazz the class object for the content of the JSON data\n@param <T> the type of the class object extending {@link InterconnectObject}\n@return the object contained in the given JSON data\n@throws JsonParseException if a the JSON data could not be parsed\n@throws JsonMappingException if the mapping of the JSON data to the IVO failed\n@throws IOException if an I/O related problem occurred", "Use this API to fetch all the nsfeature resources that are configured on netscaler.", "Overloads the left shift operator to provide an easy way to append multiple\nobjects as string representations to a String.\n\n@param self a String\n@param value an Object\n@return a StringBuffer built from this string\n@since 1.0", "Use this API to add snmpuser resources.", "Parses a PDF document and serializes the resulting DOM tree to an output. This requires\na DOM Level 3 capable implementation to be available." ]
private Integer getKeyPartitionId(byte[] key) { Integer keyPartitionId = storeInstance.getNodesPartitionIdForKey(nodeId, key); Utils.notNull(keyPartitionId); return keyPartitionId; }
[ "Given the key, figures out which partition on the local node hosts the key.\n\n@param key\n@return" ]
[ "Checks if the object with the given identity has been deleted\nwithin the transaction.\n@param id The identity\n@return true if the object has been deleted\n@throws PersistenceBrokerException", "Get all registration points associated with this registration.\n\n@return all registration points. Will not be {@code null} but may be empty", "Use this API to add clusterinstance.", "Sets Idle max age.\n\nThe time, for a connection to remain unused before it is closed off. Do not use aggressive values here!\n@param idleMaxAge time after which a connection is closed off\n@param timeUnit idleMaxAge time granularity.", "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "A method for determining from and to information when using this IntRange to index an aggregate object of the specified size.\nNormally only used internally within Groovy but useful if adding range indexing support for your own aggregates.\n\n@param size the size of the aggregate being indexed\n@return the calculated range information (with 1 added to the to value, ready for providing to subList", "Sets the distance from the origin to the near clipping plane for the\nwhole camera rig.\n\n@param near\nDistance to the near clipping plane.", "Update list of sorted services by copying it from the array and making it unmodifiable.", "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" ]
public void enableClipRegion() { if (mClippingEnabled) { Log.w(TAG, "Clipping has been enabled already for %s!", getName()); return; } Log.d(Log.SUBSYSTEM.WIDGET, TAG, "enableClipping for %s [%f, %f, %f]", getName(), getViewPortWidth(), getViewPortHeight(), getViewPortDepth()); mClippingEnabled = true; GVRTexture texture = WidgetLib.getTextureHelper().getSolidColorTexture(Color.YELLOW); GVRSceneObject clippingObj = new GVRSceneObject(mContext, getViewPortWidth(), getViewPortHeight(), texture); clippingObj.setName("clippingObj"); clippingObj.getRenderData() .setRenderingOrder(GVRRenderData.GVRRenderingOrder.STENCIL) .setStencilTest(true) .setStencilFunc(GLES30.GL_ALWAYS, 1, 0xFF) .setStencilOp(GLES30.GL_KEEP, GLES30.GL_KEEP, GLES30.GL_REPLACE) .setStencilMask(0xFF); mSceneObject.addChildObject(clippingObj); for (Widget child : getChildren()) { setObjectClipped(child); } }
[ "Enable clipping for the Widget. Widget content including its children will be clipped by a\nrectangular View Port. By default clipping is disabled." ]
[ "Parses links for XMLContents etc.\n\n@param cms the CMS context to use\n@throws CmsException if something goes wrong", "Reset hard on HEAD.\n\n@throws GitAPIException", "Get prototype name.\n\n@return prototype name", "Use this API to update appfwlearningsettings.", "Use this API to delete gslbsite resources of given names.", "Method to know if already exists one file with the same name in the same\nfolder\n\n@param scenario_name\n@param path\n@param dest_dir\n@return true when the file does not exist", "20130512 Converts the sdsm string generated above to Date format.\n\n@param str\nthe str\n@return the date from concise str", "Returns the Java executable command.\n\n@param javaHome the java home directory or {@code null} to use the default\n\n@return the java command to use", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels." ]
public Rate getRate(int field) throws MPXJException { Rate result; if ((field < m_fields.length) && (m_fields[field].length() != 0)) { try { String rate = m_fields[field]; int index = rate.indexOf('/'); double amount; TimeUnit units; if (index == -1) { amount = m_formats.getCurrencyFormat().parse(rate).doubleValue(); units = TimeUnit.HOURS; } else { amount = m_formats.getCurrencyFormat().parse(rate.substring(0, index)).doubleValue(); units = TimeUnitUtility.getInstance(rate.substring(index + 1), m_locale); } result = new Rate(amount, units); } catch (ParseException ex) { throw new MPXJException("Failed to parse rate", ex); } } else { result = null; } return (result); }
[ "Accessor method used to retrieve an Rate object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails" ]
[ "Performs a single synchronization pass in both the local and remote directions; the order\nof which does not matter. If switching the order produces different results after one pass,\nthen there is a bug.\n\n@return whether or not the synchronization pass was successful.", "Given a method node, checks if we are calling a private method from an inner class.", "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", "Determines if a mouse event is inside a box.", "This produces the dotted hexadecimal format aaaa.bbbb.cccc", "Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException", "Get a property as a boolean or throw exception.\n\n@param key the property name", "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.", "Take a stab at fixing validation problems ?\n\n@param object" ]
public static List<DatabaseTableConfig<?>> loadDatabaseConfigFromReader(BufferedReader reader) throws SQLException { List<DatabaseTableConfig<?>> list = new ArrayList<DatabaseTableConfig<?>>(); while (true) { DatabaseTableConfig<?> config = DatabaseTableConfigLoader.fromReader(reader); if (config == null) { break; } list.add(config); } return list; }
[ "Load in a number of database configuration entries from a buffered reader." ]
[ "Non-zero counts of Householder vectors and computes a permutation\nmatrix that ensures diagonal entires are all structurally nonzero.\n\n@param parent elimination tree\n@param ll linked list for each row that specifies elements that are not zero", "Sets the elements of this vector to uniformly distributed random values\nin a specified range, using a supplied random number generator.\n\n@param lower\nlower random value (inclusive)\n@param upper\nupper random value (exclusive)\n@param generator\nrandom number generator", "Creates the actual path to the xml file of the module.", "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", "Roll the java.util.Time forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "Assign an ID value to this field.", "Does the headset the device is docked into have a dedicated home key\n@return", "Emit information about all of suite's tests.", "Reconnect the sequence flows and the flow nodes.\nDone after the initial pass so that we have all the target information." ]
public static String createQuotedConstant(String str) { if (str == null || str.isEmpty()) { return str; } try { Double.parseDouble(str); } catch (NumberFormatException nfe) { return "\"" + str + "\""; } return str; }
[ "Puts strings inside quotes and numerics are left as they are.\n@param str\n@return" ]
[ "Adds special accessors for private constants so that inner classes can retrieve them.", "Returns current selenium version from JAR set in classpath.\n\n@return Version of Selenium.", "Use this API to flush cachecontentgroup resources.", "Perform a module dependency graph of the target and return the graph as a JSON\n\n@param moduleName\n@param moduleVersion\n@param uriInfo\n@return Response", "Pump events from event stream.", "Determine the raw type for the given generic parameter type.\n@param genericType the generic type to resolve\n@param typeVariableMap the TypeVariable Map to resolved against\n@return the resolved raw type", "Removes the given entity from the inverse associations it manages.", "Returns the total number of weights associated with this classifier.\n\n@return number of weights", "Generate node data map.\n\n@param task\nthe job info" ]
protected BoneCP createPool(BoneCPConfig config) { try{ return new BoneCP(config); } catch (SQLException e) { throw new HibernateException(e); } }
[ "Creates the given connection pool with the given configuration. Extracted here to make unit mocking easier.\n@param config configuration object.\n@return BoneCP connection pool handle." ]
[ "Checks to see if the matrix is symmetric to within tolerance.\n\n@param A Matrix being tested. Not modified.\n@param tol Tolerance that defines how similar two values must be to be considered identical\n@return true if symmetric or false if not", "Convert a floating point date to a LocalDateTime.\n\nNote: This method currently performs a rounding to the next second.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@return The date resulting from adding Math.round(fixingTime*SECONDS_PER_DAY) seconds to referenceDate, where one day has SECONDS_PER_DAY seconds and SECONDS_PER_DAY is a constant 365*24*60*60", "The only properties added to a relationship are the columns representing the index of the association.", "Searches for cases where a minus sign means negative operator. That happens when there is a minus\nsign with a variable to its right and no variable to its left\n\nExample:\na = - b * c", "Get a misc file.\n\n@param root the root\n@param item the misc content item\n@return the misc file", "Runs a query that returns a single int.", "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array.", "Adds a new row after the given one.\n\n@param row the row after which a new one should be added", "Load the view port execution.\n\n@param then callback when the view port is detected.\n@param fallback fallback when no view port detected or failure to detect the given\n{@link Boundary} (using {@link #propagateFallback(boolean)})" ]
protected List<File> getRecursiveThriftFiles(MavenProject project, String outputDirectory) throws IOException { return getRecursiveThriftFiles(project, outputDirectory, new ArrayList<File>()); }
[ "Walk project references recursively, building up a list of thrift files they provide, starting\nwith an empty file list." ]
[ "This is a convenience method which reads the first project\nfrom the named MPD file using the JDBC-ODBC bridge driver.\n\n@param accessDatabaseFileName access database file name\n@return ProjectFile instance\n@throws MPXJException", "Create a clone of this LevenbergMarquardt optimizer with a new vector for the\ntarget values and weights.\n\nThe clone will use the same objective function than this implementation,\ni.e., the implementation of {@link #setValues(RandomVariable[], RandomVariable[])} and\nthat of {@link #setDerivatives(RandomVariable[], RandomVariable[][])} is reused.\n\nThe initial values of the cloned optimizer will either be the original\ninitial values of this object or the best parameters obtained by this\noptimizer, the latter is used only if this optimized signals a {@link #done()}.\n\n@param newTargetVaues New list of target values.\n@param newWeights New list of weights.\n@param isUseBestParametersAsInitialParameters If true and this optimizer is done(), then the clone will use this.{@link #getBestFitParameters()} as initial parameters.\n@return A new LevenbergMarquardt optimizer, cloning this one except modified target values and weights.\n@throws CloneNotSupportedException Thrown if this optimizer cannot be cloned.", "Returns the matrix's rank. Automatic selection of threshold\n\n@param A Matrix. Not modified.\n@return The rank of the decomposed matrix.", "Reads a nested table. Uses the supplied reader class instance.\n\n@param readerClass reader class instance\n@return table rows", "Sets up the coordinate transformations between the coordinate system of the parent element of the image element and the native coordinate system\nof the original image.", "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", "Registers the resource to the parent deployment resource. The model returned is that of the resource parameter.\n\n@param subsystemName the subsystem name\n@param resource the resource to be used for the subsystem on the deployment\n\n@return the model\n\n@throws java.lang.IllegalStateException if the subsystem resource already exists", "Returns the compact project membership records for the project.\n\n@param project The project for which to fetch memberships.\n@return Request object", "Returns the x-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the x coordinate" ]
@Override protected void stopInner() throws VoldemortException { List<VoldemortException> exceptions = new ArrayList<VoldemortException>(); logger.info("Stopping services:" + getIdentityNode().getId()); /* Stop in reverse order */ exceptions.addAll(stopOnlineServices()); for(VoldemortService service: Utils.reversed(basicServices)) { try { service.stop(); } catch(VoldemortException e) { exceptions.add(e); logger.error(e); } } logger.info("All services stopped for Node:" + getIdentityNode().getId()); if(exceptions.size() > 0) throw exceptions.get(0); // release lock of jvm heap JNAUtils.tryMunlockall(); }
[ "Attempt to shutdown the server. As much shutdown as possible will be\ncompleted, even if intermediate errors are encountered.\n\n@throws VoldemortException" ]
[ "Use this API to disable nsacl6.", "Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone.", "Get the value for a particular configuration property\n\n@param name - name of the property\n@return The first value encountered or null", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "We have a non-null date, try each format in turn to see if it can be parsed.\n\n@param str date to parse\n@param pos position at which to start parsing\n@return Date instance", "Calls the specified Stitch function.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.", "Are both Id's the same?\n\n@param otherElement the other element to compare\n@return true if id == otherElement.id", "Gets display duration for specified frame.\n\n@param n int index of frame.\n@return delay in milliseconds.", "Set the replace of the uri and return the new URI.\n\n@param initialUri the starting URI, the URI to update\n@param path the path to set on the baeURI" ]
public static final TimeUnit getTimeUnit(int value) { TimeUnit result = null; switch (value) { case 1: { // Appears to mean "use the document format" result = TimeUnit.ELAPSED_DAYS; break; } case 2: { result = TimeUnit.HOURS; break; } case 4: { result = TimeUnit.DAYS; break; } case 6: { result = TimeUnit.WEEKS; break; } case 8: case 10: { result = TimeUnit.MONTHS; break; } case 12: { result = TimeUnit.YEARS; break; } default: { break; } } return result; }
[ "Convert an integer value into a TimeUnit instance.\n\n@param value time unit value\n@return TimeUnit instance" ]
[ "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", "If an error is thrown while loading zone data, the exception is logged\nto system error and null is returned for this and all future requests.\n\n@param id the id to load\n@return the loaded zone", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Recursively construct a LblTree from DOM tree\n\n@param walker tree walker for DOM tree traversal\n@return tree represented by DOM tree", "Reads a single record from the table.\n\n@param buffer record data\n@param table parent table", "Replaces sequences of whitespaces with tabs.\n\n@param self A CharSequence to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Executed read-resource-description and returns access-control info.\nReturns null in case there was any kind of problem.\n\n@param client\n@param address\n@return", "Compares two annotated parameters and returns true if they are equal", "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title" ]
protected void addFacetPart(CmsSolrQuery query) { StringBuffer value = new StringBuffer(); value.append("{!key=").append(m_config.getName()); addFacetOptions(value); if (m_config.getIgnoreAllFacetFilters() || (!m_state.getCheckedEntries().isEmpty() && !m_config.getIsAndFacet())) { value.append(" ex=").append(m_config.getIgnoreTags()); } value.append("}"); value.append(m_config.getRange()); query.add("facet.range", value.toString()); }
[ "Generate query part for the facet, without filters.\n@param query The query, where the facet part should be added" ]
[ "Add the final assignment of the property to the partial value object's source code.", "Destroys an instance of the bean\n\n@param instance The instance", "Produces a string in which the lower 4 bytes are expressed as an IPv4 address and the remaining upper bytes are expressed in IPv6 format.\n\nThis the mixed IPv6/IPv4 format described in RFC 1884 https://tools.ietf.org/html/rfc1884\n\n@return", "Set the attributes for this template.\n\n@param attributes the attribute map", "Write a comma to the output stream if required.", "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 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.", "Reads data sets from a passed reader.\n\n@param reader\ndata sets source\n@param recover\nmax number of errors reading process will try to recover from.\nSet to 0 to fail immediately\n@throws IOException\nif reader can't read underlying stream\n@throws InvalidDataSetException\nif invalid/undefined data set is encountered", "Returns an empty map with expected size matching the iterable size if\nit's of type Collection. Otherwise, an empty map with the default size is\nreturned." ]
public GVRAnimator animate(int animIndex, float timeInSec) { if ((animIndex < 0) || (animIndex >= mAnimations.size())) { throw new IndexOutOfBoundsException("Animation index out of bounds"); } GVRAnimator anim = mAnimations.get(animIndex); anim.animate(timeInSec); return anim; }
[ "Evaluates the animation with the given index at the specified time.\n@param animIndex 0-based index of {@link GVRAnimator} to start\n@param timeInSec time to evaluate the animation at\n@see GVRAvatar#stop()\n@see #start(String)" ]
[ "Use this API to add nsacl6 resources.", "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value", "Set dates with the provided check states.\n@param datesWithCheckInfo the dates to set, accompanied with the check state to set.", "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "Gets the value of a global editor configuration parameter.\n\n@param cms the CMS context\n@param editor the editor name\n@param param the name of the parameter\n\n@return the editor parameter value", "Sets the scale vector of the keyframe.", "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name.", "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date" ]
public <FT, FID> BaseForeignCollection<FT, FID> buildForeignCollection(Object parent, FID id) throws SQLException { // this can happen if we have a foreign-auto-refresh scenario if (foreignFieldType == null) { return null; } @SuppressWarnings("unchecked") Dao<FT, FID> castDao = (Dao<FT, FID>) foreignDao; if (!fieldConfig.isForeignCollectionEager()) { // we know this won't go recursive so no need for the counters return new LazyForeignCollection<FT, FID>(castDao, parent, id, foreignFieldType, fieldConfig.getForeignCollectionOrderColumnName(), fieldConfig.isForeignCollectionOrderAscending()); } // try not to create level counter objects unless we have to LevelCounters levelCounters = threadLevelCounters.get(); if (levelCounters == null) { if (fieldConfig.getForeignCollectionMaxEagerLevel() == 0) { // then return a lazy collection instead return new LazyForeignCollection<FT, FID>(castDao, parent, id, foreignFieldType, fieldConfig.getForeignCollectionOrderColumnName(), fieldConfig.isForeignCollectionOrderAscending()); } levelCounters = new LevelCounters(); threadLevelCounters.set(levelCounters); } if (levelCounters.foreignCollectionLevel == 0) { levelCounters.foreignCollectionLevelMax = fieldConfig.getForeignCollectionMaxEagerLevel(); } // are we over our level limit? if (levelCounters.foreignCollectionLevel >= levelCounters.foreignCollectionLevelMax) { // then return a lazy collection instead return new LazyForeignCollection<FT, FID>(castDao, parent, id, foreignFieldType, fieldConfig.getForeignCollectionOrderColumnName(), fieldConfig.isForeignCollectionOrderAscending()); } levelCounters.foreignCollectionLevel++; try { return new EagerForeignCollection<FT, FID>(castDao, parent, id, foreignFieldType, fieldConfig.getForeignCollectionOrderColumnName(), fieldConfig.isForeignCollectionOrderAscending()); } finally { levelCounters.foreignCollectionLevel--; } }
[ "Build and return a foreign collection based on the field settings that matches the id argument. This can return\nnull in certain circumstances.\n\n@param parent\nThe parent object that we will set on each item in the collection.\n@param id\nThe id of the foreign object we will look for. This can be null if we are creating an empty\ncollection." ]
[ "Extract a list of time entries.\n\n@param shiftData string representation of time entries\n@return list of time entry rows", "Creates a resource ID from information of a generic resource.\n\n@param subscriptionId the subscription UUID\n@param resourceGroupName the resource group name\n@param resourceProviderNamespace the resource provider namespace\n@param resourceType the type of the resource or nested resource\n@param resourceName name of the resource or nested resource\n@param parentResourcePath parent resource's relative path to the provider,\nif the resource is a generic resource\n@return the resource ID string", "Record a new event.", "Use this API to fetch the statistics of all scpolicy_stats resources that are configured on netscaler.", "Shutdown the server\n\n@throws Exception exception", "Adds all rows from the TSV file specified, using the provided delimiter and null value.\n\n@param file The file to read the data from.\n@param delimiter A column delimiter.\n@param nullValue Value to be treated as null in the source data.\n@return {@code this}", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message.", "Bessel function of the first kind, of order 0.\n\n@param x Value.\n@return I0 value.", "Lookup an object via its name.\n@param name The name of an object.\n@return The object with that name.\n@exception ObjectNameNotFoundException There is no object with the specified name.\nObjectNameNotFoundException" ]
public JSONObject getJsonFormatted(Map<String, String> dataMap) { JSONObject oneRowJson = new JSONObject(); for (int i = 0; i < outTemplate.length; i++) { oneRowJson.put(outTemplate[i], dataMap.get(outTemplate[i])); } return oneRowJson; }
[ "Given an array of variable names, returns a JsonObject\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@return a json object of values" ]
[ "Return the serialized form of this Identity.\n\n@return The serialized representation\n@see #fromByteArray\n@deprecated", "Sets an element in at the specified index.", "Use this API to unset the properties of lbsipparameters resource.\nProperties that need to be unset are specified in args array.", "Write exceptions into the format used by MSPDI files from\nProject 2007 onwards.\n\n@param calendar parent calendar\n@param exceptions list of exceptions", "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", "Creates an element that represents a rectangle drawn at the specified coordinates in the page.\n@param x the X coordinate of the rectangle\n@param y the Y coordinate of the rectangle\n@param width the width of the rectangle\n@param height the height of the rectangle\n@param stroke should there be a stroke around?\n@param fill should the rectangle be filled?\n@return the resulting DOM element", "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition", "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.", "Returns a copy of the given document.\n@param document the document to copy.\n@return a copy of the given document." ]
private void allRelation(Options opt, RelationType rt, ClassDoc from) { String tagname = rt.lower; for (Tag tag : from.tags(tagname)) { String t[] = tokenize(tag.text()); // l-src label l-dst target t = t.length == 1 ? new String[] { "-", "-", "-", t[0] } : t; // Shorthand if (t.length != 4) { System.err.println("Error in " + from + "\n" + tagname + " expects four fields (l-src label l-dst target): " + tag.text()); return; } ClassDoc to = from.findClass(t[3]); if (to != null) { if(hidden(to)) continue; relation(opt, rt, from, to, t[0], t[1], t[2]); } else { if(hidden(t[3])) continue; relation(opt, rt, from, from.toString(), to, t[3], t[0], t[1], t[2]); } } }
[ "Print all relations for a given's class's tag\n@param tagname the tag containing the given relation\n@param from the source class\n@param edgetype the dot edge specification" ]
[ "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Pushes a class type onto the stack from the string representation This can\nalso handle primitives\n\n@param b the bytecode\n@param classType the type descriptor for the class or primitive to push.\nThis will accept both the java.lang.Object form and the\nLjava/lang/Object; form", "Find the the qualified container port of the target service\nUses java annotations first or returns the container port.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved containerPort of '0' as a fallback.", "Update the installed identity using the modified state from the modification.\n\n@param name the identity name\n@param modification the modification\n@param state the installation state\n@return the installed identity", "Checks if a property's type is valid to be included in the report.\n@param _property the property.\n@return true if the property is is of a valid type.", "Loads the given class, respecting the given classloader.\n@param clazz class to load\n@return Loaded class\n@throws ClassNotFoundException", "Replace a photo from a File.\n\n@param file\n@param flickrId\n@param async\n@return photoId or ticketId\n@throws FlickrException", "Moves the drawer to the position passed.\n\n@param position The position the content is moved to.\n@param velocity Optional velocity if called by releasing a drag event.\n@param animate Whether the move is animated.", "Update the given resource in the persistent configuration model based on the values in the given operation.\n\n@param operation the operation\n@param resource the resource that corresponds to the address of {@code operation}\n\n@throws OperationFailedException if {@code operation} is invalid or populating the model otherwise fails" ]
protected String sourceLineTrimmed(ASTNode node) { return sourceCode.line(AstUtil.findFirstNonAnnotationLine(node, sourceCode) - 1); }
[ "Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node" ]
[ "Adds an additional site link to the constructed document.\n\n@param title\nthe title of the linked page\n@param siteKey\nidentifier of the site, e.g., \"enwiki\"\n@param badges\none or more badges", "Add a photo to the user's favorites.\n\n@param photoId\nThe photo ID\n@throws FlickrException", "Encode a path segment, escaping characters not valid for a URL.\n\n<p>The following characters are not escaped:\n\n<ul>\n<li>{@code a..z, A..Z, 0..9}\n<li>{@code . - * _}\n</ul>\n\n<p>' ' (space) is encoded as '+'.\n\n<p>All other characters (including '/') are converted to the triplet \"%xy\" where \"xy\" is the\nhex representation of the character in UTF-8.\n\n@param component a string containing text to encode.\n@return a string with all invalid URL characters escaped.", "Adds steps types from given injector and recursively its parent\n\n@param injector the current Inject\n@param types the List of steps types", "Webkit based browsers require that we set the webkit-user-drag style\nattribute to make an element draggable.", "Use this API to fetch dnsnsecrec resource of given name .", "Requests the waveform detail for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform detail is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Connect sync.\n\n@param configuration the protocol configuration\n@return the connection\n@throws IOException", "Allows the closure to be called for NullObject\n\n@param closure the closure to call on the object\n@return result of calling the closure" ]
public OperationTransformerRegistry resolveServer(final ModelVersion mgmtVersion, final ModelNode subsystems) { return resolveServer(mgmtVersion, resolveVersions(subsystems)); }
[ "Resolve the server registry.\n\n@param mgmtVersion the mgmt version\n@param subsystems the subsystems\n@return the transformer registry" ]
[ "Updates the value in HashMap and writeBack as Atomic step", "Sets the category display options that affect how the category selection dialog is shown.\n\n@param displayCategoriesByRepository if true, the categories are shown separated by repository.\n@param displayCategorySelectionCollapsed if true, the selection dialog opens showing only the top-level categories\n(or the various repositories) in collapsed state.", "Sets a new value for a given key. an older value is overwritten.\n@param key a non null key\n@param value the new value", "Write an int attribute.\n\n@param name attribute name\n@param value attribute value", "Updates an existing enum option. Enum custom fields require at least one enabled enum option.\n\nReturns the full record of the updated enum option.\n\n@param enumOption Globally unique identifier for the enum option.\n@return Request object", "Prints the data for a single class to the given stream. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param classRecord\nthe class record to write\n@param entityIdValue\nthe item id that this class record belongs to", "Verifies that the received image is identical to the original one.\n@param xopOriginal\n@param xopResponse", "Override the thread context ClassLoader with the environment's bean ClassLoader\nif necessary, i.e. if the bean ClassLoader is not equivalent to the thread\ncontext ClassLoader already.\n@param classLoaderToUse the actual ClassLoader to use for the thread context\n@return the original thread context ClassLoader, or {@code null} if not overridden", "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" ]
public V internalNonBlockingGet(K key) throws Exception { Pool<V> resourcePool = getResourcePoolForKey(key); return attemptNonBlockingCheckout(key, resourcePool); }
[ "Used only for unit testing. Please do not use this method in other ways.\n\n@param key\n@return\n@throws Exception" ]
[ "Test whether the operation has a defined criteria attribute.\n\n@param operation the operation\n@return", "Create a MfClientHttpRequestFactory for adding the specified headers.\n\n@param requestFactory the basic request factory. It should be unmodified and just wrapped with\na proxy class.\n@param matchers The matchers.\n@param headers The headers.\n@return", "Return the basis functions for the regression suitable for this product.\n\n@param fixingDate The condition time.\n@param model The model\n@return The basis functions for the regression suitable for this product.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Generates a usable test specification for a given test definition\nUses the first bucket as the fallback value\n\n@param testDefinition a {@link TestDefinition}\n@return a {@link TestSpecification} which corresponding to given test definition.", "Transform the operation into something the proxy controller understands.\n\n@param identity the server identity\n@return the transformed operation", "selects either a synchronous or an asynchronous producer, for the\nspecified broker id and calls the send API on the selected producer\nto publish the data to the specified broker partition\n\n@param ppd the producer pool request object", "Get bean for given name in the \"thread\" scope.\n\n@param name name of bean\n@param factory factory for new instances\n@return bean for this scope", "Stores all entries contained in the given map in the cache.", "Takes a list of Strings and combines them into a single comma-separated\nString.\n@param strings The Strings to combine.\n@return The combined, comma-separated, String." ]
public final void loadCollection( final SharedSessionContractImplementor session, final Serializable id, final Type type) throws HibernateException { if ( log.isDebugEnabled() ) { log.debug( "loading collection: " + MessageHelper.collectionInfoString( getCollectionPersisters()[0], id, getFactory() ) ); } Serializable[] ids = new Serializable[]{id}; QueryParameters qp = new QueryParameters( new Type[]{type}, ids, ids ); doQueryAndInitializeNonLazyCollections( session, qp, OgmLoadingContext.EMPTY_CONTEXT, true ); log.debug( "done loading collection" ); }
[ "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs" ]
[ "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null", "Updates the information about this weblink with any info fields that have been modified locally.\n\n<p>The only fields that will be updated are the ones that have been modified locally. For example, the following\ncode won't update any information (or even send a network request) since none of the info's fields were\nchanged:</p>\n\n<pre>BoxWebLink webLink = new BoxWebLink(api, id);\nBoxWebLink.Info info = webLink.getInfo();\nwebLink.updateInfo(info);</pre>\n\n@param info the updated info.", "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "This method writes extended attribute data for an assignment.\n\n@param xml MSPDI assignment\n@param mpx MPXJ assignment", "Gets a static resource from a plugin\n\n@param pluginName - Name of the plugin(defined in the plugin manifest)\n@param fileName - Filename to fetch\n@return byte array of the resource\n@throws Exception exception", "very big duct tape", "close the AdminPool, if no long required.\nAfter closed, all public methods will throw IllegalStateException", "Returns true if\n- includeTags is not empty and tag is in includeTags\n- includeTags is empty and tag is not in excludeTags\n@param tags Hint tags\n@param includeTags Include tags\n@param excludeTags Exclude tags\n@return has tag match", "Creates a code location URL from a URL\n\n@param url the URL external form\n@return A URL created from URL\n@throws InvalidCodeLocation if URL creation fails" ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public void enableKeyboardAutoHiding() { keyboardListener = new OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { if (dx != 0 || dy != 0) { imeManager.hideSoftInputFromWindow( Hits.this.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } super.onScrolled(recyclerView, dx, dy); } }; addOnScrollListener(keyboardListener); }
[ "Starts closing the keyboard when the hits are scrolled." ]
[ "Log a trace message.", "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", "Call the constructor for the given class, inferring the correct types for\nthe arguments. This could be confusing if there are multiple constructors\nwith the same number of arguments and the values themselves don't\ndisambiguate.\n\n@param klass The class to construct\n@param args The arguments\n@return The constructed value", "Get the JSON string representation of the selector configured for this index.\n\n@return selector JSON as string", "Returns a reasonable timeout duration for a watch request.\n\n@param expectedTimeoutMillis timeout duration that a user wants to use, in milliseconds\n@param bufferMillis buffer duration which needs to be added, in milliseconds\n@return timeout duration in milliseconds, between the specified {@code bufferMillis} and\nthe {@link #MAX_MILLIS}.", "Returns the naming context.", "To use main report datasource. There should be nothing else in the detail band\n@param preSorted\n@return", "set custom response for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise", "Processes the template for all class definitions.\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\"" ]
@Override public boolean isCompleteRequest(ByteBuffer buffer) { DataInputStream inputStream = new DataInputStream(new ByteBufferBackedInputStream(buffer)); try { int dataSize = inputStream.readInt(); if(logger.isTraceEnabled()) logger.trace("In isCompleteRequest, dataSize: " + dataSize + ", buffer position: " + buffer.position()); if(dataSize == -1) return true; // Here we skip over the data (without reading it in) and // move our position to just past it. buffer.position(buffer.position() + dataSize); return true; } catch(Exception e) { // This could also occur if the various methods we call into // re-throw a corrupted value error as some other type of exception. // For example, updating the position on a buffer past its limit // throws an InvalidArgumentException. if(logger.isTraceEnabled()) logger.trace("In isCompleteRequest, probable partial read occurred: " + e); return false; } }
[ "This method is used by non-blocking code to determine if the give buffer\nrepresents a complete request. Because the non-blocking code can by\ndefinition not just block waiting for more data, it's possible to get\npartial reads, and this identifies that case.\n\n@param buffer Buffer to check; the buffer is reset to position 0 before\ncalling this method and the caller must reset it after the call\nreturns\n@return True if the buffer holds a complete request, false otherwise" ]
[ "Is invoked on the leaf deletion only.\n\n@param left left page.\n@param right right page.\n@return true if the left page ought to be merged with the right one.", "Use this API to delete sslcertkey resources of given names.", "Returns the value of the primitive type from the given string value.\n\n@param value the value to parse\n@param cls the primitive type class\n@return the boxed type value or {@code null} if the given class is not a primitive type", "Gets the end.\n\n@return the end", "Parse a string representation of a Boolean value.\n\n@param value string representation\n@return Boolean value", "Obtains a local date in Discordian calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Discordian era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Discordian local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code DiscordianEra}", "Retrieve all addresses of a host by it's address. NetBIOS hosts can\nhave many names for a given IP address. The name and IP address make the\nNetBIOS address. This provides a way to retrieve the other names for a\nhost with the same IP address.\n\n@param addr the address to query\n@throws UnknownHostException if address cannot be resolved", "Initialize new instance\n@param instance\n@param logger\n@param auditor", "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output" ]
public void setSessionFactory(SessionFactory sessionFactory) throws HibernateLayerException { try { this.sessionFactory = sessionFactory; if (null != layerInfo) { entityMetadata = sessionFactory.getClassMetadata(layerInfo.getFeatureInfo().getDataSourceName()); } } catch (Exception e) { // NOSONAR throw new HibernateLayerException(e, ExceptionCode.HIBERNATE_NO_SESSION_FACTORY); } }
[ "Set session factory.\n\n@param sessionFactory session factory\n@throws HibernateLayerException could not get class metadata for data source" ]
[ "Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the case where a hierarchical task\nstructure has been created programmatically in MPXJ.", "dst is just for log information", "Map custom info.\n\n@param ciType the custom info type\n@return the map", "Throws one RendererException if the viewType, layoutInflater or parent are null.", "Load the view port execution.\n\n@param then callback when the view port is detected.\n@param fallback fallback when no view port detected or failure to detect the given\n{@link Boundary} (using {@link #propagateFallback(boolean)})", "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.", "Paint a check pattern, used for a background to indicate image transparency.\n@param c the component to draw into\n@param g the Graphics objects\n@param x the x position\n@param y the y position\n@param width the width\n@param height the height", "Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.", "Creates a Resque backtrace from a Throwable's stack trace. Includes\ncauses.\n\n@param t\nthe Exception to use\n@return a list of strings that represent how the exception's stacktrace\nappears." ]
public void setDateAttribute(String name, Date value) { ensureAttributes(); Attribute attribute = new DateAttribute(value); attribute.setEditable(isEditable(name)); getAllAttributes().put(name, attribute); }
[ "Sets the specified date attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
[ "The main method. See the class documentation.", "Gets all checked widget indexes in the group. The indexes are counted from 0 to size -1,\nwhere size is the number of Checkable widgets in the group. It does not take into account\nany non-Checkable widgets added to the group widget.\n\n@return list of checked widget indexes", "Decorates a node with the affected operator, if any.\n\n@param context\n@param tree\n@param operations\n@return", "Call batch tasks inside of a connection which may, or may not, have been \"saved\".", "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", "Adds all rows from the TSV file specified, using the provided delimiter and null value.\n\n@param file The file to read the data from.\n@param delimiter A column delimiter.\n@param nullValue Value to be treated as null in the source data.\n@return {@code this}", "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with", "Reads Logical Screen Descriptor.", "What is something came in between when we last checked and when this method is called" ]
public T modifyBundle(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return returnThis(); }
[ "Modify a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder" ]
[ "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class.", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "add a foreign key field ID", "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.", "Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name .", "Delete a path recursively, not throwing Exception if it fails or if the path is null.\n@param path a Path pointing to a file or a directory that may not exists anymore.", "Retrieve multiple properties.\n\n@param method method definition\n@param object target object\n@param map parameter values", "Clear the selection of all items.\n@param requestLayout request layout after clear selection if the flag is true, no layout\nrequested otherwise\n@return {@code true} if at least one item was deselected,\n{@code false} otherwise.", "Set the TableAlias for ClassDescriptor" ]
public static base_response rename(nitro_service client, nsacl6 resource, String new_acl6name) throws Exception { nsacl6 renameresource = new nsacl6(); renameresource.acl6name = resource.acl6name; return renameresource.rename_resource(client,new_acl6name); }
[ "Use this API to rename a nsacl6 resource." ]
[ "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "Obtain instance of the SQL Service\n\n@return instance of SQLService\n@throws Exception exception", "Adds a command class to the list of supported command classes by this node.\nDoes nothing if command class is already added.\n@param commandClass the command class instance to add.", "Runs a Story with the given configuration and steps.\n\n@param configuration the Configuration used to run story\n@param candidateSteps the List of CandidateSteps containing the candidate\nsteps methods\n@param story the Story to run\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown.", "Remove a path\n\n@param pathId ID of path", "used for encoding queries or form data", "remove the user profile with id from the db.", "get the default profile\n\n@return representation of default profile\n@throws Exception exception", "Get a default style. If null a simple black line style will be returned.\n\n@param geometryType the name of the geometry type (point, line, polygon)" ]
public void setWriteTimeout(int writeTimeout) { this.client = this.client.newBuilder() .writeTimeout(writeTimeout, TimeUnit.MILLISECONDS) .build(); }
[ "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)" ]
[ "Removes all items from the list box.", "Extract data for a single resource.\n\n@param row Synchro resource data", "Recursively scan the provided path and return a list of all Java packages contained therein.", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Retrieve the value of a single-valued parameter.\n\n@param key\n@param defaultValue\n@param cnx", "Finish a state transition from a notification.\n\n@param current\n@param next", "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Returns a client object for a clientId\n\n@param clientId ID of client to return\n@return Client or null\n@throws Exception exception", "Use this API to add sslcipher." ]
public FastReportBuilder addGroups(int numgroups) { groupCount = numgroups; for (int i = 0; i < groupCount; i++) { GroupBuilder gb = new GroupBuilder(); PropertyColumn col = (PropertyColumn) report.getColumns().get(i); gb.setCriteriaColumn(col); report.getColumnsGroups().add(gb.build()); } return this; }
[ "This method should be called after all column have been added to the report.\n@param numgroups\n@return" ]
[ "Accessor method used to retrieve a String object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Processes graphical indicator definitions for each column.", "Converts a tab delimited string into an object with given fields\nRequires the object has setXxx functions for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterRegex delimiter regular expression\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Replaces current Collection mapped to key with the specified Collection.\nUse carefully!", "Determine the enum value corresponding to the third play state found in the packet.\n\n@return the proper value", "Delete by id.\n\n@param id the id", "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes", "Reads characters until any 'end' character is encountered, ignoring\nescape sequences.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container" ]
private String getResourceType(Resource resource) { String result; net.sf.mpxj.ResourceType type = resource.getType(); if (type == null) { type = net.sf.mpxj.ResourceType.WORK; } switch (type) { case MATERIAL: { result = "Material"; break; } case COST: { result = "Nonlabor"; break; } default: { result = "Labor"; break; } } return result; }
[ "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type" ]
[ "Builder method for specifying the name of an app.\n@param name The name to give an app.\n@return A copy of the {@link App}", "creates a scope using the passed function to compute the names and sets the passed scope as the parent scope", "Return the number of rows affected.", "Flush output streams.", "Constructs a new FastEvent instance\n@param type the event type\n@param manager the bean manager\n@param notifier the notifier to be used for observer method resolution\n@param qualifiers the event qualifiers\n@return", "Invokes the exit logger if and only if no ExitLogger was previously invoked.\n@param logger the logger. Cannot be {@code null}", "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.", "Account for key being fetched.\n\n@param key", "Abort and close the transaction.\nCalling abort abandons all persistent object modifications and releases the\nassociated locks.\nIf transaction is not in progress a TransactionNotInProgressException is thrown" ]
protected void endDragging(MouseUpEvent event) { m_dragging = false; DOM.releaseCapture(getElement()); removeStyleName(I_CmsLayoutBundle.INSTANCE.dialogCss().dragging()); }
[ "Called on mouse up in the caption area, ends dragging by ending event\ncapture.\n\n@param event the mouse up event that ended dragging\n\n@see DOM#releaseCapture\n@see #beginDragging\n@see #endDragging" ]
[ "convert filename to clean filename", "sets the row reader class name for thie class descriptor", "Gets information about this user.\n@param fields the optional fields to retrieve.\n@return info about this user.", "Post a license to the server\n\n@param license\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Export the modules that should be checked in into git.", "Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the PGP secure keyring if it was found,\nnull otherwise", "Deletes all steps of scenario cases where a data table\nis generated to reduce the size of the data file.\nIn this case only the steps of the first scenario case are actually needed.", "New SOAP client uses new SOAP service.", "This is the profiles page. this is the 'regular' page when the url is typed in" ]
private String getStringPredicate(String fieldName, List<String> filterValues, List<Object> prms) { if (filterValues != null && !filterValues.isEmpty()) { String res = ""; for (String filterValue : filterValues) { if (filterValue == null) { continue; } if (!filterValue.isEmpty()) { prms.add(filterValue); if (filterValue.contains("%")) { res += String.format("(%s LIKE ?) OR ", fieldName); } else { res += String.format("(%s = ?) OR ", fieldName); } } else { res += String.format("(%s IS NULL OR %s = '') OR ", fieldName, fieldName); } } if (!res.isEmpty()) { res = "AND (" + res.substring(0, res.length() - 4) + ") "; return res; } } return ""; }
[ "GetJob helper - String predicates are all created the same way, so this factors some code." ]
[ "Indicates if the type is a simple Web Bean\n\n@param clazz The type to inspect\n@return True if simple Web Bean, false otherwise", "Executes a given SPARQL query and returns a stream with the result in\nJSON format.\n\n@param query\n@return\n@throws IOException", "Gets the explorer file entry options.\n\n@return the explorer file entry options", "Use this API to fetch aaagroup_vpnsessionpolicy_binding resources of given name .", "Find the earliest start time of the specified methods.\n@param methods A list of test methods.\n@return The earliest start time.", "for bpm connector", "Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform preview, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Checks all data sets in IIM records 1, 2 and 3 for constraint violations.\n\n@return list of constraint violations, empty set if IIM file is valid", "validates operation against the definition and sets model for the parameters passed.\n\n@param operationObject model node of type {@link ModelType#OBJECT}, typically representing an operation request\n@param model model node in which the value should be stored\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release" ]
@Override public <T> Producer<T> createProducer(final Bean<X> declaringBean, final Bean<T> bean, DisposalMethod<X, T> disposalMethod) { EnhancedAnnotatedField<T, X> enhancedField = getManager().getServices().get(MemberTransformer.class).loadEnhancedMember(field, getManager().getId()); return new ProducerFieldProducer<X, T>(enhancedField, disposalMethod) { @Override public AnnotatedField<X> getAnnotated() { return field; } @Override public BeanManagerImpl getBeanManager() { return getManager(); } @Override public Bean<X> getDeclaringBean() { return declaringBean; } @Override public Bean<T> getBean() { return bean; } }; }
[ "Producers returned from this method are not validated. Internal use only." ]
[ "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>", "Checks to see if an Oracle Server exists.\n\n@param curator It is the responsibility of the caller to ensure the curator is started\n@return boolean if the server exists in zookeeper", "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes", "Finds the maximum abs in each column of A and stores it into values\n@param A (Input) Matrix\n@param values (Output) storage for column max abs", "Resolve the given string using any plugin and the DMR resolve method", "Function to serialize the given Vector clock into a string. If something\ngoes wrong, it returns an empty string.\n\n@param vc The Vector clock to serialize\n@return The string (JSON) version of the specified Vector clock", "Removes a value from the list.\n\n@param list the list\n@param value value to remove", "Registers all custom Externalizer implementations that Hibernate OGM needs into a running\nInfinispan CacheManager configuration.\nThis is only safe to do when Caches from this CacheManager haven't been started yet,\nor the ones already started do not contain any data needing these.\n\n@see ExternalizerIds\n@param globalCfg the Serialization section of a GlobalConfiguration builder", "Read resource assignment baseline values.\n\n@param row result set row" ]
private String formatPriority(Priority value) { String result = null; if (value != null) { String[] priorityTypes = LocaleData.getStringArray(m_locale, LocaleData.PRIORITY_TYPES); int priority = value.getValue(); if (priority < Priority.LOWEST) { priority = Priority.LOWEST; } else { if (priority > Priority.DO_NOT_LEVEL) { priority = Priority.DO_NOT_LEVEL; } } priority /= 100; result = priorityTypes[priority - 1]; } return (result); }
[ "This method is called to format a priority.\n\n@param value priority instance\n@return formatted priority value" ]
[ "A recursive getAttribute method. In case a one-to-many is passed, an array will be returned.\n\n@param feature The feature wherein to search for the attribute\n@param name The attribute's full name. (can be attr1.attr2)\n@return Returns the value. In case a one-to-many is passed along the way, an array will be returned.\n@throws LayerException oops", "Restores a trashed file back to its original location.\n@param fileID the ID of the trashed file.\n@return info about the restored file.", "Adds api doc roots from a link. The folder reffered by the link should contain a package-list\nfile that will be parsed in order to add api doc roots to this configuration\n@param packageListUrl", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "Handles incoming Send Data Request. Send Data request are used\nto acknowledge or cancel failed messages.\n@param incomingMessage the request message to process.", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings", "Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>", "Extracts the elements from the source matrix by their 1D index.\n\n@param src Source matrix. Not modified.\n@param indexes array of row indexes\n@param length maximum element in row array\n@param dst output matrix. Must be a vector of the correct length.", "Puts value at given column\n\n@param value Will be encoded using UTF-8" ]
public static <T> String join(Collection<T> col, String delim) { StringBuilder sb = new StringBuilder(); Iterator<T> iter = col.iterator(); if (iter.hasNext()) sb.append(iter.next().toString()); while (iter.hasNext()) { sb.append(delim); sb.append(iter.next().toString()); } return sb.toString(); }
[ "Joins a collection in a string using a delimiter\n@param col Collection\n@param delim Delimiter\n@return String" ]
[ "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", "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name .", "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 the directory where the compiled jasper reports should be put.\n\n@param configuration the configuration for the current app.", "Called when the scene object gets a new parent.\n\n@param parent New parent of this scene object.", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in the prototypes collection.\n@return the prototype index associated to the prototypeClass.", "List details of all calendars in the file.\n\n@param file ProjectFile instance", "Modifies the belief referenced by bName parameter.\n\n@param bName\n- the name of the belief to update.\n@param value\n- the new value for the belief" ]
static String[] tokenize(String str) { char sep = '.'; int start = 0; int len = str.length(); int count = 0; for (int pos = 0; pos < len; pos++) { if (str.charAt(pos) == sep) { if (pos != start) { count++; } start = pos + 1; } } if (len != start) { count++; } String[] l = new String[count]; count = 0; start = 0; for (int pos = 0; pos < len; pos++) { if (str.charAt(pos) == sep) { if (pos != start) { String tok = str.substring(start, pos); l[count++] = tok; } start = pos + 1; } } if (len != start) { String tok = str.substring(start); l[count/* ++ */] = tok; } return l; }
[ "Tokenize the the string as a package hierarchy\n\n@param str\n@return" ]
[ "Write the document object to a file.\n\n@param document the document object.\n@param filePathname the path name of the file to be written to.\n@param method the output method: for instance html, xml, text\n@param indent amount of indentation. -1 to use the default.\n@throws TransformerException if an exception occurs.\n@throws IOException if an IO exception occurs.", "Compare an array of bytes with a subsection of a larger array of bytes.\n\n@param lhs small array of bytes\n@param rhs large array of bytes\n@param rhsOffset offset into larger array of bytes\n@return true if a match is found", "Gets the actual type arguments of a Type\n\n@param type The type to examine\n@return The type arguments", "This method is currently in use only by the SvnCoordinator", "Use this API to delete sslcertkey resources of given names.", "Cut all characters from maxLength and replace it with \"...\"", "add an Extent class to the current descriptor\n@param newExtentClassName name of the class to add", "Send an empty request using a standard HTTP connection.", "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registration completes/fails." ]
public static aaa_stats get(nitro_service service) throws Exception{ aaa_stats obj = new aaa_stats(); aaa_stats[] response = (aaa_stats[])obj.stat_resources(service); return response[0]; }
[ "Use this API to fetch the statistics of all aaa_stats resources that are configured on netscaler." ]
[ "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object", "Transforms an input file into HTML.\n\n@param file\nThe File to process.\n@param safeMode\nSet to <code>true</code> to escape unsafe HTML tags.\n@return The processed String.\n@throws IOException\nif an IO error occurs\n@see Configuration#DEFAULT", "Write an integer field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle", "Provisions a new user in an enterprise with additional user information.\n@param api the API connection to be used by the created user.\n@param login the email address the user will use to login.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info.", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "Set the horizontal and vertical alignment for the image when image gets cropped by resizing.\n\n@param valign Vertical alignment.\n@param halign Horizontal alignment.\n@throws IllegalStateException if image has not been marked for resize.", "Use this API to delete systemuser of given name.", "Lookup Seam integration resource loader.\n@return the Seam integration resource loader\n@throws DeploymentUnitProcessingException for any error" ]
private void cleanupDestination(DownloadRequest request, boolean forceClean) { if (!request.isResumable() || forceClean) { Log.d("cleanupDestination() deleting " + request.getDestinationURI().getPath()); File destinationFile = new File(request.getDestinationURI().getPath()); if (destinationFile.exists()) { destinationFile.delete(); } } }
[ "Called just before the thread finishes, regardless of status, to take any necessary action on\nthe downloaded file with mDownloadedCacheSize file.\n\n@param forceClean - It will delete downloaded cache, Even streaming is enabled, If user intentionally cancelled." ]
[ "Extracts a house holder vector from the column of A and stores it in u\n@param A Complex matrix with householder vectors stored in the lower left triangle\n@param row0 first row in A (implicitly assumed to be r + i0)\n@param row1 last row + 1 in A\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U", "Get the geo interface.\n\n@return Access class to the flickr.photos.geo methods.", "Calling EventProducerInterceptor in case of logging faults.\n\n@param exchange\nthe message exchange\n@param reqFid\nthe FlowId\n\n@throws Fault\nthe fault", "Summarizes balance for the given nodeId to PartitionCount.\n\n@param nodeIdToPartitionCount\n@param title for use in pretty string\n@return Pair: getFirst() is utility value to be minimized, getSecond() is\npretty summary string of balance", "Appends the indentation string at the current position of the parent and adds a new composite node, indicating the same indentation for\nsubsequent lines.\n\n@return an indentation node, using the given indentString, appended as a child on the given parent", "Sets a header per-request\n\n@param key Header key\n@param value Header value\n@return The request itself", "Sets the provided metadata on the folder, overwriting any existing metadata keys already present.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "The primary run loop of the kqueue event processor.", "Set the pattern scheme to either \"by weekday\" or \"by day of month\".\n@param isByWeekDay flag, indicating if the pattern \"by weekday\" should be set.\n@param fireChange flag, indicating if a value change event should be fired." ]
public boolean matches(String uri) { if (uri == null) { return false; } Matcher matcher = this.matchPattern.matcher(uri); return matcher.matches(); }
[ "Indicate whether the given URI matches this template.\n@param uri the URI to match to\n@return {@code true} if it matches; {@code false} otherwise" ]
[ "Does a query for the object's Id and copies in each of the field values from the database to refresh the data\nparameter.", "Get all info for the specified photo.\n\nThe calling user must have permission to view the photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo Id\n@param secret\nThe optional secret String\n@return The Photo\n@throws FlickrException", "Returns the classDescriptor.\n\n@return ClassDescriptor", "Use this API to add lbroute.", "Extracts a set of interceptor bindings from a collection of annotations.\n@param beanManager\n@param annotations\n@return", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance", "Make a composite filter from the given sub-filters using AND to combine filters.", "Utils for making collections out of arrays of primitive types.", "Use this API to fetch bridgegroup_nsip_binding resources of given name ." ]
private int[] getPrimaryCodewords() { assert mode == 2 || mode == 3; if (primaryData.length() != 15) { throw new OkapiException("Invalid Primary String"); } for (int i = 9; i < 15; i++) { /* check that country code and service are numeric */ if (primaryData.charAt(i) < '0' || primaryData.charAt(i) > '9') { throw new OkapiException("Invalid Primary String"); } } String postcode; if (mode == 2) { postcode = primaryData.substring(0, 9); int index = postcode.indexOf(' '); if (index != -1) { postcode = postcode.substring(0, index); } } else { // if (mode == 3) postcode = primaryData.substring(0, 6); } int country = Integer.parseInt(primaryData.substring(9, 12)); int service = Integer.parseInt(primaryData.substring(12, 15)); if (debug) { System.out.println("Using mode " + mode); System.out.println(" Postcode: " + postcode); System.out.println(" Country Code: " + country); System.out.println(" Service: " + service); } if (mode == 2) { return getMode2PrimaryCodewords(postcode, country, service); } else { // mode == 3 return getMode3PrimaryCodewords(postcode, country, service); } }
[ "Extracts the postal code, country code and service code from the primary data and returns the corresponding primary message\ncodewords.\n\n@return the primary message codewords" ]
[ "Grab random holiday from the equivalence class that falls between the two dates\n\n@param earliest the earliest date parameter as defined in the model\n@param latest the latest date parameter as defined in the model\n@return a holiday that falls between the dates", "Calls all initializers of the bean\n\n@param instance The bean instance", "Called when the layout is applied to the data\n@param container WidgetContainer to access the org.gearvrf.org.gearvrf.widgetlib in the layout\n@param viewPortSize View port for data set", "Collects all the fields from columns and also the fields not bounds to columns\n@return List<ColumnProperty>", "Checks if user exists.\n\n@param userId the user id, which can be an email or the login.\n@return true, if user exists.", "Use this API to unset the properties of gslbsite resources.\nProperties that need to be unset are specified in args array.", "Returns the logger name that should be used in the log manager.\n\n@param name the name of the logger from the resource\n\n@return the name of the logger", "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value", "Start the drag operation of a scene object with a rigid body.\n\n@param sceneObject Scene object with a rigid body attached to it.\n@param hitX rel position in x-axis.\n@param hitY rel position in y-axis.\n@param hitZ rel position in z-axis.\n@return true if success, otherwise returns false." ]
public Node createEmbedded(GraphDatabaseService executionEngine, Object[] columnValues) { Map<String, Object> params = params( columnValues ); Result result = executionEngine.execute( getCreateEmbeddedNodeQuery(), params ); return singleResult( result ); }
[ "Create a single node representing an embedded element.\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;" ]
[ "Whether this association contains no rows.\n\n@return {@code true} if this association contains no rows, {@code false} otherwise", "object -> xml\n\n@param object\n@param childClass", "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "The way calendars are stored in an MPP8 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs", "Execute a request\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history\n@throws Exception", "Generates the context diagram for a single class", "Start a print.\n\n@param jobId the job ID\n@param specJson the client json request.\n@param out the stream to write to.", "for testing purpose", "All the sub-level attributes.\n\n@param name the attribute name.\n@param attribute the attribute." ]
public static base_responses update(nitro_service client, sslocspresponder resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslocspresponder updateresources[] = new sslocspresponder[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new sslocspresponder(); updateresources[i].name = resources[i].name; updateresources[i].url = resources[i].url; updateresources[i].cache = resources[i].cache; updateresources[i].cachetimeout = resources[i].cachetimeout; updateresources[i].batchingdepth = resources[i].batchingdepth; updateresources[i].batchingdelay = resources[i].batchingdelay; updateresources[i].resptimeout = resources[i].resptimeout; updateresources[i].respondercert = resources[i].respondercert; updateresources[i].trustresponder = resources[i].trustresponder; updateresources[i].producedattimeskew = resources[i].producedattimeskew; updateresources[i].signingcert = resources[i].signingcert; updateresources[i].usenonce = resources[i].usenonce; updateresources[i].insertclientcert = resources[i].insertclientcert; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update sslocspresponder resources." ]
[ "Extracts the version id from a string\n\n@param versionDir The string\n@return Returns the version id of the directory, else -1", "This method extracts data for an exception day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data", "Obtains a Symmetry454 local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry454 local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Utility method to retrieve the previous working date finish time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of previous work finish", "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", "Use this API to unset the properties of systemuser resources.\nProperties that need to be unset are specified in args array.", "Removes CRs but returns LFs", "Generic version of getting value by key from the JobContext of current thread\n@param key the key\n@param clz the val class\n@param <T> the val type\n@return the value", "Read resource assignment data from a PEP file." ]
private long interpolateTimeSinceUpdate(TrackPositionUpdate update, long currentTimestamp) { if (!update.playing) { return update.milliseconds; } long elapsedMillis = (currentTimestamp - update.timestamp) / 1000000; long moved = Math.round(update.pitch * elapsedMillis); if (update.reverse) { return update.milliseconds - moved; } return update.milliseconds + moved; }
[ "Figure out, based on how much time has elapsed since we received an update, and the playback position,\nspeed, and direction at the time of that update, where the player will be now.\n\n@param update the most recent update received from a player\n@param currentTimestamp the nanosecond timestamp representing when we want to interpolate the track's position\n\n@return the playback position we believe that player has reached now" ]
[ "Encode a long into a byte array at an offset\n\n@param ba Byte array\n@param offset Offset\n@param v Long value\n@return byte array given in input", "Create an element that represents a horizntal or vertical line.\n@param x1\n@param y1\n@param x2\n@param y2\n@return the created DOM element", "Validates the binding types", "LRN cross-channel forward computation. Double parameters cast to tensor data type", "Update properties for a specific client id\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@param active - true false depending on if the client should be active\n@param reset - true to reset the state of a client(clears settings for all paths and disables the client)\n@return\n@throws Exception", "generate a prepared INSERT-Statement for the Class\ndescribed by cld.\n\n@param cld the ClassDescriptor", "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", "Write objects to data store, but don't release the locks.\nI don't know what we should do if we are in a checkpoint and\nwe need to abort.", "Returns the duration of the measured tasks in ms" ]
private static boolean containsObject(Object searchFor, Object[] searchIn) { for (int i = 0; i < searchIn.length; i++) { if (searchFor == searchIn[i]) { return true; } } return false; }
[ "Helper method that searches an object array for the occurence of a\nspecific object based on reference equality\n@param searchFor the object to search for\n@param searchIn the array to search in\n@return true if the object is found, otherwise false" ]
[ "package scope in order to test the method", "Utility method to convert a String to an Integer, and\nhandles null values.\n\n@param value string representation of an integer\n@return int value", "Makes a CRFDatum by producing features and a label from input data at a\nspecific position, using the provided factory.\n\n@param info\nThe input data\n@param loc\nThe position to build a datum at\n@param featureFactory\nThe FeatureFactory to use to extract features\n@return The constructed CRFDatum", "Scans a path on the filesystem for resources inside the given classpath location.\n\n@param location The system-independent location on the classpath.\n@param locationUri The system-specific physical location URI.\n@return a sorted set containing all the resources inside the given location\n@throws IOException if an error accessing the filesystem happens", "use parseJsonResponse instead", "Creates the request.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Use this API to fetch the statistics of all vpath_stats resources that are configured on netscaler.", "Upload a photo from a byte-array.\n\n@param data\nThe photo data as a byte array\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region" ]
public static synchronized void unregisterDao(ConnectionSource connectionSource, Dao<?, ?> dao) { if (connectionSource == null) { throw new IllegalArgumentException("connectionSource argument cannot be null"); } removeDaoToClassMap(new ClassConnectionSource(connectionSource, dao.getDataClass())); }
[ "Remove a DAO from the cache. This is necessary if we've registered it already but it throws an exception during\nconfiguration." ]
[ "Process encoded payload.\n\n@throws IOException Signals that an I/O exception has occurred.", "Drives the unit test.", "Look for the closing parenthesis corresponding to the one at position\nrepresented by the opening index.\n\n@param text input expression\n@param opening opening parenthesis index\n@return closing parenthesis index", "Add groups for given group parent item.\n\n@param type the tree type\n@param ouItem group parent item", "Returns a reference definition of the given name if it exists.\n\n@param name The name of the reference\n@return The reference def or <code>null</code> if there is no such reference", "Read a single outline code field extended attribute.\n\n@param entityID parent entity\n@param row field data", "Add roles for given role parent item.\n\n@param ouItem group parent item", "Computes eigenvalues only\n\n@return", "Returns whether this represents a valid host name or address format.\n@return" ]
protected static final Long parseUsingFallbacksWithColon(String text, DateTimeFormat timeFormat) { if (text.indexOf(':') == -1) { text = text.replace(" ", ""); int numdigits = 0; int lastdigit = 0; for (int i = 0; i < text.length(); i++) { char c = text.charAt(i); if (Character.isDigit(c)) { numdigits++; lastdigit = i; } } if (numdigits == 1 || numdigits == 2) { // insert :00 int colon = lastdigit + 1; text = text.substring(0, colon) + ":00" + text.substring(colon); } else if (numdigits > 2) { // insert : int colon = lastdigit - 1; text = text.substring(0, colon) + ":" + text.substring(colon); } return parseUsingFallbacks(text, timeFormat); } else { return null; } }
[ "Attempts to insert a colon so that a value without a colon can\nbe parsed." ]
[ "Add a new script\n\n@param model\n@param name\n@param script\n@return\n@throws Exception", "Constructs a relative path between this path and a given path.\n\n<p> Relativization is the inverse of {@link #getAbsolutePath(Path) resolution}.\nThis method attempts to construct a {@link #isAbsolute relative} path\nthat when {@link #getAbsolutePath(Path) resolved} against this path, yields a\npath that locates the same file as the given path. For example, on UNIX,\nif this path is {@code \"/a/b\"} and the given path is {@code \"/a/b/c/d\"}\nthen the resulting relative path would be {@code \"c/d\"}.\nBoth paths must be absolute and and either this path or the given path must be a\n{@link #startsWith(Path) prefix} of the other.\n\n@param other\nthe path to relativize against this path\n\n@return the resulting relative path or null if neither of the given paths is a prefix of the other\n\n@throws IllegalArgumentException\nif this path and {@code other} are not both absolute or relative", "Return the discount factor within a given model context for a given maturity.\n@param model The model used as a context (not required for this class).\n@param maturity The maturity in terms of ACT/365 daycount form this curve reference date. Note that this parameter might get rescaled to a different time parameter.\n@see net.finmath.marketdata.model.curves.DiscountCurveInterface#getDiscountFactor(net.finmath.marketdata.model.AnalyticModelInterface, double)", "Helper method to find Strings of form \"all digits\" and \"digits-comma-digits\"", "returns null if no device is found.", "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", "Use this API to delete locationfile.", "Add a forward to this curve.\n\n@param model An analytic model providing a context. The discount curve (if needed) is obtained from this model.\n@param fixingTime The given fixing time.\n@param forward The given forward.\n@param isParameter If true, then this point is server via {@link #getParameter()} and changed via {@link #setParameter(RandomVariable[])} and {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "Pull docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host" ]
public Set<Tag> getAncestorTags(Tag tag) { Set<Tag> ancestors = new HashSet<>(); getAncestorTags(tag, ancestors); return ancestors; }
[ "Returns all tags that designate this tag. E.g., for \"tesla-model3\", this would return \"car\", \"vehicle\", \"vendor-tesla\" etc." ]
[ "This method is used to associate a child task with the current\ntask instance. It has package access, and has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be constructed as the file is read in.\n\n@param child Child task.\n@param childOutlineLevel Outline level of the child task.", "Returns a correlation matrix which has rank &lt; n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.", "Builds a instance of the class for a map containing the values\n\n@param clazz Class to build\n@param values Values map\n@param differenceHandler The difference handler\n@return The created instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "create a path structure representing the object graph", "Returns status help message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String", "Convert a floating point date to a LocalDate.\n\nNote: This method currently performs a rounding to the next day.\nIn a future extension intra-day time offsets may be considered.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@return The date resulting from adding Math.round(fixingTime*365.0) days to referenceDate.", "Process the graphical indicator data.", "obtains the internal JDO lifecycle state of the input StatemanagerInternal.\nThis Method is helpful to display persistent objects internal state.\n@param sm the StateManager to be inspected\n@return the LifeCycleState of a StateManager instance", "Returns iterable with all folder assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all folder assignments." ]
private StyleFilter findStyleFilter(Object feature, List<StyleFilter> styles) { for (StyleFilter styleFilter : styles) { if (styleFilter.getFilter().evaluate(feature)) { return styleFilter; } } return new StyleFilterImpl(); }
[ "Find the style filter that must be applied to this feature.\n\n@param feature\nfeature to find the style for\n@param styles\nstyle filters to select from\n@return a style filter" ]
[ "Pull docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host", "Get the number of views, comments and favorites on a collection for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param collectionId\n(Required) The id (from the URL!) of the collection to get stats for.\n@see \"http://www.flickr.com/services/api/flickr.stats.getCollectionStats.htm\"", "Read properties from the active profiles.\n\nGoes through all active profiles (in the order the\nprofiles are defined in settings.xml) and extracts\nthe desired properties (if present). The prefix is\nused when looking up properties in the profile but\nnot in the returned map.\n\n@param prefix The prefix to use or null if no prefix should be used\n@param properties The properties to read\n\n@return A map containing the values for the properties that were found", "used for encoding queries or form data", "Attribute name and value are not escaped or modified in any way.\n\n@param name\n@param value\n@return self", "generate a prepared UPDATE-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Starts the compressor.", "Creates builder for passed path element\n\n@param elementName name of xml element that is used as decorator\n@return PersistentResourceXMLBuilder\n@deprecated decorator element support is currently considered as preview\n@since 4.0" ]
public static <T> DecoratorImpl<T> of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager) { return new DecoratorImpl<T>(attributes, clazz, beanManager); }
[ "Creates a decorator bean\n\n@param <T> The type\n@param clazz The class\n@param beanManager the current manager\n@return a Bean" ]
[ "Generate a groupId tree regarding the filters\n\n@param moduleId\n@return TreeNode", "This will blur the view behind it and set it in\na imageview over the content with a alpha value\nthat corresponds to slideOffset.", "Configures a RequestBuilder to send an RPC request.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a RequestBuilder object that is ready to have its\n{@link RequestBuilder#send()} method invoked.", "Use this API to save cacheobject.", "Get log file\n\n@return log file", "Handles the response of the MemoryGetId request.\nThe MemoryGetId function gets the home and node id from the controller memory.\n@param incomingMessage the response message to process.", "Sets the origin and direction of the pick ray.\n\n@param ox X coordinate of origin.\n@param oy Y coordinate of origin.\n@param oz Z coordinate of origin.\n@param dx X coordinate of ray direction.\n@param dy Y coordinate of ray direction.\n@param dz Z coordinate of ray direction.\n\nThe coordinate system of the ray depends on the whether the\npicker is attached to a scene object or not. When attached\nto a scene object, the ray is in the coordinate system of\nthat object where (0, 0, 0) is the center of the scene object\nand (0, 0, 1) is it's positive Z axis. If not attached to an\nobject, the ray is in the coordinate system of the scene's\nmain camera with (0, 0, 0) at the viewer and (0, 0, -1)\nwhere the viewer is looking.\n@see #doPick()\n@see #getPickRay()\n@see #getWorldPickRay(Vector3f, Vector3f)", "Reverse how the transition is applied, such that the transition previously performed when progress=start of range is only performed when progress=end of range\n\n@return", "Parse a percent complete value.\n\n@param value sting representation of a percent complete value.\n@return Double instance" ]
public URI build() { try { String uriString = String.format("%s%s", baseUri.toASCIIString(), (path.isEmpty() ? "" : path)); if(qParams != null && qParams.size() > 0) { //Add queries together if both exist if(!completeQuery.isEmpty()) { uriString = String.format("%s?%s&%s", uriString, getJoinedQuery(qParams.getParams()), completeQuery); } else { uriString = String.format("%s?%s", uriString, getJoinedQuery(qParams.getParams())); } } else if(!completeQuery.isEmpty()) { uriString = String.format("%s?%s", uriString, completeQuery); } return new URI(uriString); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
[ "Build and return the complete URI containing values\nsuch as the document ID, attachment ID, and query syntax." ]
[ "those could be incorporated with above, but that would blurry everything.", "Returns the input to parse including the whitespace left to the cursor position since\nit may be relevant to the list of proposals for whitespace sensitive languages.", "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 -", "Check whether the URL start with one of the given prefixes.\n\n@param uri URI\n@param patterns possible prefixes\n@return true when URL starts with one of the prefixes", "Load the view port execution.\n\n@param then callback when the view port is detected.\n@param fallback fallback when no view port detected or failure to detect the given\n{@link Boundary} (using {@link #propagateFallback(boolean)})", "Creates the next permutation in the sequence.\n\n@return An array containing the permutation. The returned array is modified each time this function is called.", "Sets a default style for every element that doesn't have one\n\n@throws JRException", "Helper method to lookup a DAO if it has already been associated with the class. Otherwise this returns null.", "Creates a scenario with 3 different steps classes.\n\nTo share state between the different steps instances use the\n{@link com.tngtech.jgiven.annotation.ScenarioState} annotation\n\n@param givenClass the Given steps class\n@param whenClass the When steps class\n@param thenClass the Then steps class\n@return the new scenario" ]
static GVRPerspectiveCamera makePerspShadowCamera(GVRPerspectiveCamera centerCam, float coneAngle) { GVRPerspectiveCamera camera = new GVRPerspectiveCamera(centerCam.getGVRContext()); float near = centerCam.getNearClippingDistance(); float far = centerCam.getFarClippingDistance(); camera.setNearClippingDistance(near); camera.setFarClippingDistance(far); camera.setFovY((float) Math.toDegrees(coneAngle)); camera.setAspectRatio(1.0f); return camera; }
[ "Adds a perspective camera constructed from the designated\nperspective camera to describe the shadow projection.\nThis type of camera is used for shadows generated by spot lights.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@param coneAngle spot light cone angle\n@return Perspective camera to use for shadow casting\n@see GVRSpotLight" ]
[ "Checks String to see if the parameter is null.\n@param paramValue Object that will be checked if null.\n@return this.true if the parameter that is being checked is not null", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "The third method to write caseManager. Its task is to write the call to\nthe story to be run.\n\n@param caseManager\nthe file where the test must be written\n@param storyName\nthe name of the story\n@param test_path\nthe path where the story can be found\n@param user\nthe user requesting the story\n@param feature\nthe feature requested by the user\n@param benefit\nthe benefit provided by the feature\n@throws BeastException", "Configure file logging and stop console logging.\n\n@param filename\nLog to this file.", "Determine the size of a field in a fixed data block.\n\n@param type field data type\n@return field size in bytes", "Checks if the selected template context is \"templatemapper\".\n\n@param request the current request\n@return true if the selected template context is \"templatemapper\"", "Label accessor provided for JSON serialization only.", "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the highest to the lowest score.\nDescending lexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements" ]
public static String writeSingleClientConfigAvro(Properties props) { // TODO: Use a dedicated json lib. We shouldn't be manually manipulating json... String avroConfig = ""; Boolean firstProp = true; for(String key: props.stringPropertyNames()) { if(firstProp) { firstProp = false; } else { avroConfig = avroConfig + ",\n"; } avroConfig = avroConfig + "\t\t\"" + key + "\": \"" + props.getProperty(key) + "\""; } if(avroConfig.isEmpty()) { return "{}"; } else { return "{\n" + avroConfig + "\n\t}"; } }
[ "Assembles an avro format string of single store config from store\nproperties\n\n@param props Store properties\n@return String in avro format that contains single store configs" ]
[ "Get the service name of a top-level deployment unit.\n\n@param name the simple name of the deployment\n@param phase the deployment phase\n@return the service name", "Initializes a type\n\n@param name The name of the class\n@return The instance of the class. Returns a dummy if the class was not\nfound.", "Obtain host header value for a hostname\n\n@param hostName\n@return", "Configure a selector to choose documents that should be added to the index.", "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "Adds each required substring, checking that it's not null.\n\n@param requiredSubStrings\nthe required substrings\n@throws NullPointerException\nif a required substring is null", "Computes the inner product of A times A and stores the results in B. The inner product is symmetric and this\nfunction will only store the lower triangle. The value of the upper triangular matrix is undefined.\n\n<p>B = A<sup>T</sup>*A</sup>\n\n@param A (Input) Matrix\n@param B (Output) Storage for output.", "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Gets the type to use for the Vaadin table column corresponding to the c-th column in this result.\n\n@param c the column index\n@return the class to use for the c-th Vaadin table column" ]
public static boolean setCustomRequestForDefaultProfile(String pathName, String customData) { try { return setCustomForDefaultProfile(pathName, false, customData); } catch (Exception e) { e.printStackTrace(); } return false; }
[ "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" ]
[ "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Parses btch api response to create a list of BoxAPIResponse objects.\n@param batchResponse response of a batch api request\n@return list of BoxAPIResponses", "Handle interval change.\n@param event the change event.", "Ask the specified player for the specified artwork from the specified media slot, first checking if we have a\ncached copy.\n\n@param artReference uniquely identifies the desired artwork\n@param trackType the kind of track that owns the artwork\n\n@return the artwork, if it was found, or {@code null}\n\n@throws IllegalStateException if the ArtFinder is not running", "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar", "Should the URI be cached?\n\n@param requestUri request URI\n@return true when caching is needed", "Returns the effective batch size. If the dialect is multiget capable and a batch size has been configured, use\nthat one, otherwise the default.", "Command-line version of the classifier. See the class\ncomments for examples of use, and SeqClassifierFlags\nfor more information on supported flags.", "Decode a content Type header line into types and parameters pairs" ]
private List<String> parseRssFeedForeCast(String feed) { String[] result = feed.split("<br />"); List<String> returnList = new ArrayList<String>(); String[] result2 = result[2].split("<BR />"); returnList.add(result2[3] + "\n"); returnList.add(result[3] + "\n"); returnList.add(result[4] + "\n"); returnList.add(result[5] + "\n"); returnList.add(result[6] + "\n"); return returnList; }
[ "Parser for forecast\n\n@param feed\n@return" ]
[ "Returns the count of all inbox messages for the user\n@return int - count of all inbox messages", "Validates that this string is a valid host name or IP address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws HostNameException", "Read relationship data from a PEP file.", "Hides the original Java-style method name using an attribute\nwhich should be respected by Visual Studio, the creates a new\nwrapper method using a .Net style method name.\n\nNote that this does not work for VB as it is case insensitive. Even\nthough Visual Studio won't show you the Java-style method name,\nthe VB compiler sees both and thinks they are the same... which\ncauses it to fail.\n\n@param writer output stream\n@param aClass class being processed\n@param methodSet set of methods which have been processed.\n@throws XMLStreamException", "Performs a standard QR decomposition on the specified submatrix that is one block wide.\n\n@param blockLength\n@param Y\n@param gamma", "Create a structured Record instance from the flat text data.\nNull is returned if errors are encountered during parse.\n\n@param text flat text data\n@return Record instance", "Returns a vector from the PCA's basis.\n\n@param which Which component's vector is to be returned.\n@return Vector from the PCA basis.", "The grammar elements that may occur at the given offset.", "Remove contents from the deployment and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException" ]
private void onShow() { if (m_detailsFieldset != null) { m_detailsFieldset.getContentPanel().getElement().getStyle().setPropertyPx( "maxHeight", getAvailableHeight(m_messageWidget.getOffsetHeight())); } }
[ "Checks the available space and sets max-height to the details field-set." ]
[ "Use this API to fetch sslservice resource of given name .", "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally.", "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", "Make a copy of this Area of Interest.", "Use this API to fetch vpath resource of given name .", "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}", "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.", "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException", "Pretty prints the given source code.\n\n@param code\nsource code to format\n@param options\nformatter options\n@param lineEnding\ndesired line ending\n@return formatted source code" ]
protected synchronized int loadSize() throws PersistenceBrokerException { PersistenceBroker broker = getBroker(); try { return broker.getCount(getQuery()); } catch (Exception ex) { throw new PersistenceBrokerException(ex); } finally { releaseBroker(broker); } }
[ "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" ]
[ "Generate random time stamps from the current time upto the next one second.\nPassed as texture coordinates to the vertex shader, an unused field is present\nwith every pair passed.\n\n@param totalTime\n@return", "This method is called to format a task type.\n\n@param value task type value\n@return formatted task type", "Generate node data map.\n\n@param task\nthe job info", "Deletes the given directory.\n\n@param directory The directory to delete.", "Apply all attributes on the given context, hereby existing entries are preserved.\n\n@param context the context to be applied, not null.\n@return this Builder, for chaining\n@see #importContext(AbstractContext, boolean)", "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "Wrap PreparedStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Preparedstatement.", "Assemble and send a packet that performs sync control, turning a device's sync mode on or off, or telling it\nto become the tempo master.\n\n@param target an update from the device whose sync state is to be set\n@param command the byte identifying the specific sync command to be sent\n\n@throws IOException if there is a problem sending the command to the device", "Inject members into this instance and register the services afterwards.\n@see #getGuiceModule()\n@see #registerInRegistry(boolean)\n@since 2.1" ]
private void visitImplicitFirstFrame() { // There can be at most descriptor.length() + 1 locals int frameIndex = startFrame(0, descriptor.length() + 1, 0); if ((access & Opcodes.ACC_STATIC) == 0) { if ((access & ACC_CONSTRUCTOR) == 0) { frame[frameIndex++] = Frame.OBJECT | cw.addType(cw.thisName); } else { frame[frameIndex++] = Frame.UNINITIALIZED_THIS; } } int i = 1; loop: while (true) { int j = i; switch (descriptor.charAt(i++)) { case 'Z': case 'C': case 'B': case 'S': case 'I': frame[frameIndex++] = Frame.INTEGER; break; case 'F': frame[frameIndex++] = Frame.FLOAT; break; case 'J': frame[frameIndex++] = Frame.LONG; break; case 'D': frame[frameIndex++] = Frame.DOUBLE; break; case '[': while (descriptor.charAt(i) == '[') { ++i; } if (descriptor.charAt(i) == 'L') { ++i; while (descriptor.charAt(i) != ';') { ++i; } } frame[frameIndex++] = Frame.type(cw, descriptor.substring(j, ++i)); break; case 'L': while (descriptor.charAt(i) != ';') { ++i; } frame[frameIndex++] = Frame.OBJECT | cw.addType(descriptor.substring(j + 1, i++)); break; default: break loop; } } frame[1] = frameIndex - 3; endFrame(); }
[ "Visit the implicit first frame of this method." ]
[ "Inserts 'token' after 'where'. if where is null then it is inserted to the beginning of the list.\n@param where Where 'token' should be inserted after. if null the put at it at the beginning\n@param token The token that is to be inserted", "Creates a single property declaration.\n@param property Property name.\n@param term Property value.\n@return The resulting declaration.", "Create an info object from an authscope object.\n\n@param authscope the authscope", "Collapse repeated records, using exact string match on the record.\nThis is generally useful for making very verbose logs more readable.\n@return this", "Removes a parameter from this configuration.\n\n@param key the parameter to remove", "A recursive getAttribute method. In case a one-to-many is passed, an array will be returned.\n\n@param feature The feature wherein to search for the attribute\n@param name The attribute's full name. (can be attr1.attr2)\n@return Returns the value. In case a one-to-many is passed along the way, an array will be returned.\n@throws LayerException oops", "if any item in toCheck is present in collection\n@param <T>\n@param collection\n@param toCheck\n@return", "Splits data into blocks, adds error correction and then interleaves the blocks and error correction data.", "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources." ]
private void addProgressInterceptor() { httpClient.networkInterceptors().add(new Interceptor() { @Override public Response intercept(Interceptor.Chain chain) throws IOException { final Request request = chain.request(); final Response originalResponse = chain.proceed(request); if (request.tag() instanceof ApiCallback) { final ApiCallback callback = (ApiCallback) request.tag(); return originalResponse.newBuilder() .body(new ProgressResponseBody(originalResponse.body(), callback)).build(); } return originalResponse; } }); }
[ "Add network interceptor to httpClient to track download progress for\nasync requests." ]
[ "Mojos perform different dependency resolution, so we add dependencies for each mojo.", "Create a new file but fail if it already exists. The check for\nexistance of the file and it's creation are an atomic operation with\nrespect to other filesystem activities.", "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.", "Process a single outline code.\n\n@param parentRow outline code to task mapping table\n@throws SQLException", "Use this API to fetch nsrpcnode resource of given name .", "Queries the running container and attempts to lookup the information from the running container.\n\n@param client the client used to execute the management operation\n\n@return the container description\n\n@throws IOException if an error occurs while executing the management operation\n@throws OperationExecutionException if the operation used to query the container fails", "returns all methods not in the group\n\n@param groupId Id of group\n@return List of Methods for a group\n@throws Exception exception", "Informs this sequence model that the value of the element at position pos has changed.\nThis allows this sequence model to update its internal model if desired.", "The method determines if the type can be resolved and if not, will try to guess the qualified name using the information from the imports." ]
public static void openLogFile(String logPath) { if (logPath == null) { printStream = System.out; } else { try { printStream = new PrintStream(new File(logPath)); } catch (FileNotFoundException e) { throw new IllegalArgumentException("Log file " + logPath + " was not found", e); } } }
[ "Reopen the associated static logging stream. Set to null to redirect to System.out." ]
[ "Whether this section is consistent with an EUI64 section,\nwhich means it came from an extended 8 byte address,\nand the corresponding segments in the middle match 0xff and 0xfe\n\n@param partial whether missing segments are considered a match\n@return", "Builds the mapping table.", "Puts strings inside quotes and numerics are left as they are.\n@param str\n@return", "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Create an `AppDescriptor` with appName and package name specified\n\nIf `appName` is `null` or blank, it will try the following\napproach to get app name:\n\n1. check the {@link Version#getArtifactId() artifact id} and use it unless\n2. if artifact id is null or empty, then infer app name using {@link AppNameInferer}\n\n@param appName\nthe app name\n@param packageName\nthe package name of the app\n@return\nan `AppDescriptor` instance", "Get a property as a double or throw an exception.\n\n@param key the property name", "Creates a new SimpleMatrix with the specified DMatrixRMaj used as its internal matrix. This means\nthat the reference is saved and calls made to the returned SimpleMatrix will modify the passed in DMatrixRMaj.\n\n@param internalMat The internal DMatrixRMaj of the returned SimpleMatrix. Will be modified.", "Scans a set of classes for both ReaderListeners and Swagger annotations. All found listeners will\nbe instantiated before any of the classes are scanned for Swagger annotations - so they can be invoked\naccordingly.\n\n@param classes a set of classes to scan\n@return the generated Swagger definition", "Use this API to fetch lbvserver_auditnslogpolicy_binding resources of given name ." ]
public ServerGroup updateServerGroupName(int serverGroupId, String name) { ServerGroup serverGroup = null; BasicNameValuePair[] params = { new BasicNameValuePair("name", name), new BasicNameValuePair("profileIdentifier", this._profileName) }; try { JSONObject response = new JSONObject(doPost(BASE_SERVERGROUP + "/" + serverGroupId, params)); serverGroup = getServerGroupFromJSON(response); } catch (Exception e) { e.printStackTrace(); return null; } return serverGroup; }
[ "Update the server group's name\n\n@param serverGroupId ID of server group\n@param name new name of server group\n@return updated ServerGroup" ]
[ "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the", "Classify stdin by senteces seperated by blank line\n@param readerWriter\n@return\n@throws IOException", "Renders the given FreeMarker template to given directory, using given variables.", "Validate ipv4 address with regular expression\n\n@param ip\naddress for validation\n\n@return true valid ip address, false invalid ip address", "Loads configuration from InputStream. Later loads have lower priority.\n\n@param in InputStream to load from\n@since 1.2.0", "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor.", "Create a Count-Query for QueryBySQL\n\n@param aQuery\n@return The count query", "Get FieldDescriptor from Reference", "If this address was resolved from a host, returns that host. Otherwise, does a reverse name lookup." ]
public static Iterable<BoxRetentionPolicy.Info> getAll( String name, String type, String userID, int limit, final BoxAPIConnection api, String ... fields) { QueryStringBuilder queryString = new QueryStringBuilder(); if (name != null) { queryString.appendParam("policy_name", name); } if (type != null) { queryString.appendParam("policy_type", type); } if (userID != null) { queryString.appendParam("created_by_user_id", userID); } if (fields.length > 0) { queryString.appendParam("fields", fields); } URL url = RETENTION_POLICIES_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), queryString.toString()); return new BoxResourceIterable<BoxRetentionPolicy.Info>(api, url, limit) { @Override protected BoxRetentionPolicy.Info factory(JsonObject jsonObject) { BoxRetentionPolicy policy = new BoxRetentionPolicy(api, jsonObject.get("id").asString()); return policy.new Info(jsonObject); } }; }
[ "Returns all the retention policies with specified filters.\n@param name a name to filter the retention policies by. A trailing partial match search is performed.\nSet to null if no name filtering is required.\n@param type a policy type to filter the retention policies by. Set to null if no type filtering is required.\n@param userID a user id to filter the retention policies by. Set to null if no type filtering is required.\n@param limit the limit of items per single response. The default value is 100.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable with all the retention policies met search conditions." ]
[ "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Use this API to fetch all the systementitydata resources that are configured on netscaler.\nThis uses systementitydata_args which is a way to provide additional arguments while fetching the resources.", "Get the vector of regression coefficients.\n\n@param value The random variable to regress.\n@return The vector of regression coefficients.", "Resets the text box by removing its content and resetting visual state.", "Checks to see if an Oracle Server exists.\n\n@param curator It is the responsibility of the caller to ensure the curator is started\n@return boolean if the server exists in zookeeper", "To read an object in a quick & dirty way. Prepare to handle failures when object serialization changes!", "We want to get the best result possible as this value\nis used to determine what work needs to be recovered.\n\n@return", "Sets an error message that will be displayed in a popup when the EditText has focus along\nwith an icon displayed at the right-hand side.\n\n@param error error message to show", "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." ]
public static String padOrTrim(String str, int num) { if (str == null) { str = "null"; } int leng = str.length(); if (leng < num) { StringBuilder sb = new StringBuilder(str); for (int i = 0; i < num - leng; i++) { sb.append(' '); } return sb.toString(); } else if (leng > num) { return str.substring(0, num); } else { return str; } }
[ "Pad or trim so as to produce a string of exactly a certain length.\n\n@param str The String to be padded or truncated\n@param num The desired length" ]
[ "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources.", "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotations", "Issue the database statements to create the table associated with a class.\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be created.\n@return The number of statements executed to do so.", "Converts the paged list.\n\n@param uList the resource list to convert from\n@return the converted list", "Allow for the use of text shading and auto formatting.", "Set the color for each total for the column\n@param column the number of the column (starting from 1)\n@param color", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar.\nThe name of the calendar to be used is passed as an argument.\n\n@param calendarName name of the calendar to use\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Return the value from the field in the object that is defined by this FieldType. If the field is a foreign object\nthen the ID of the field is returned instead.", "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs" ]
public static Priority getInstance(Locale locale, String priority) { int index = DEFAULT_PRIORITY_INDEX; if (priority != null) { String[] priorityTypes = LocaleData.getStringArray(locale, LocaleData.PRIORITY_TYPES); for (int loop = 0; loop < priorityTypes.length; loop++) { if (priorityTypes[loop].equalsIgnoreCase(priority) == true) { index = loop; break; } } } return (Priority.getInstance((index + 1) * 100)); }
[ "This method takes the textual version of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param locale target locale\n@param priority text version of the priority\n@return Priority class instance" ]
[ "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Find any standard methods the user has 'underridden' in their type.", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "Join to internal threads and wait millis time per thread or until all\nthreads are finished if millis is 0.\n\n@param millis the time to wait in milliseconds for the threads to join; a timeout of 0 means to wait forever.\n@throws InterruptedException if any thread has interrupted the current thread.\nThe interrupted status of the current thread is cleared when this exception is thrown.", "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "The only difference between version 1.5 and 1.6 of the schema were to make is possible to define discovery options, this\nresulted in the host and port attributes becoming optional -this method also indicates if discovery options are required\nwhere the host and port were not supplied.\n\n@param allowDiscoveryOptions i.e. are host and port potentially optional?\n@return true if discovery options are required, i.e. no host and port set and the admin policy requires a config.", "Remove all children that have been added to the owner object of this camera rig; except the\ncamera objects.", "Notifies that multiple header items are changed.\n\n@param positionStart the position.\n@param itemCount the item count." ]
public static IndexedContainer getGroupsOfUser( CmsObject cms, CmsUser user, String caption, String iconProp, String ou, String propStatus, Function<CmsGroup, CmsCssIcon> iconProvider) { IndexedContainer container = new IndexedContainer(); container.addContainerProperty(caption, String.class, ""); container.addContainerProperty(ou, String.class, ""); container.addContainerProperty(propStatus, Boolean.class, new Boolean(true)); if (iconProvider != null) { container.addContainerProperty(iconProp, CmsCssIcon.class, null); } try { for (CmsGroup group : cms.getGroupsOfUser(user.getName(), true)) { Item item = container.addItem(group); item.getItemProperty(caption).setValue(group.getSimpleName()); item.getItemProperty(ou).setValue(group.getOuFqn()); if (iconProvider != null) { item.getItemProperty(iconProp).setValue(iconProvider.apply(group)); } } } catch (CmsException e) { LOG.error("Unable to read groups from user", e); } return container; }
[ "Gets container with alls groups of a certain user.\n\n@param cms cmsobject\n@param user to find groups for\n@param caption caption property\n@param iconProp property\n@param ou ou\n@param propStatus status property\n@param iconProvider the icon provider\n@return Indexed Container" ]
[ "Modify a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder", "Serialize a content into a targeted file, checking that the parent directory exists.\n\n@param folder File\n@param content String\n@param fileName String", "Removing surrounding space in image. Get trim color from specified pixel.\n@param value orientation from where to get the pixel color.\n@param colorTolerance 0 - 442. This is the euclidian distance\nbetween the colors of the reference pixel and the surrounding pixels is used.\nIf the distance is within the tolerance they'll get trimmed.", "Returns the type of the current member which is the type in the case of a field, the return type for a getter\nmethod, or the type of the parameter for a setter method.\n\n@return The member type\n@exception XDocletException if an error occurs", "Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver\nretrieved using the default server integration classloader.\n\n@return this class instance", "Set the face to be culled\n\n@param cullFace\n{@code GVRCullFaceEnum.Back} Tells Graphics API to discard\nback faces, {@code GVRCullFaceEnum.Front} Tells Graphics API\nto discard front faces, {@code GVRCullFaceEnum.None} Tells\nGraphics API to not discard any face\n@param passIndex\nThe rendering pass to set cull face state", "Private recursive helper function to actually do the type-safe checking\nof assignability.", "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler.", "Prepare a model JSON for analyze, resolves the hierarchical structure\ncreates a HashMap which contains all resourceIds as keys and for each key\nthe JSONObject, all id are keys of this map\n@param object\n@return a HashMap keys: all ressourceIds values: all child JSONObjects\n@throws org.json.JSONException" ]
public static String getMemberName() throws XDocletException { if (getCurrentField() != null) { return getCurrentField().getName(); } else if (getCurrentMethod() != null) { return MethodTagsHandler.getPropertyNameFor(getCurrentMethod()); } else { return null; } }
[ "Returns the name of the current member which is the name in the case of a field, or the property name for an\naccessor method.\n\n@return The member name\n@exception XDocletException if an error occurs" ]
[ "Configure the HTTP response to switch off caching.\n\n@param response response to configure\n@since 1.9.0", "Uploads chunk of a stream to an open upload session.\n@param stream the stream that is used to read the chunck using the offset and part size.\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size.", "Waits the given amount of time in seconds for a managed domain to start. A domain is considered started when each\nof the servers in the domain are started unless the server is disabled.\n\n@param client the client used to communicate with the server\n@param startupTimeout the time, in seconds, to wait for the server start\n\n@throws InterruptedException if interrupted while waiting for the server to start\n@throws RuntimeException if the process has died\n@throws TimeoutException if the timeout has been reached and the server is still not started", "Extract the parameters from a method using the Jmx annotation if present,\nor just the raw types otherwise\n\n@param m The method to extract parameters from\n@return An array of parameter infos", "Use this API to fetch dnstxtrec resources of given names .", "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", "Sets the duration for the animations in this animator.\n\n@param start the animation will start playing from the specified time\n@param end the animation will stop playing at the specified time\n\n@see GVRAnimation#setDuration(float, float)", "Returns a list of files in given addon passing given filter.", "Use this API to fetch sslservice resource of given name ." ]
void killAll() { for (RjiRegistration reg : this.instancesById.values().toArray(new RjiRegistration[] {})) { reg.rji.handleInstruction(Instruction.KILL); } }
[ "Send a kill signal to all running instances and return as soon as the signal is sent." ]
[ "Reads a time value. The time is represented as tenths of a\nminute since midnight.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "Attempts to retrieves ResourceReport until maxWaitMs time is reached. Set maxWaitMs to -1 to\nretry forever.", "Asynchronous call that begins execution of the task\nand returns immediately.", "Get all views from the list content\n@return list of views currently visible", "Returns a single item from the Iterator.\nIf there's none, returns null.\nIf there are more, throws an IllegalStateException.\n\n@throws IllegalStateException", "Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .", "Gets the property and casts to the appropriate type\n\n@param <T>\n@param key The property name\n@param type The property type\n@return The value of the property", "Remove the group and all references to it\n\n@param groupId ID of group", "Loads configuration from File. Later loads have lower priority.\n\n@param file File to load from\n@since 1.2.0" ]
private <T> T request(ClientRequest<T> delegate, String operationName) { long startTimeMs = -1; long startTimeNs = -1; if(logger.isDebugEnabled()) { startTimeMs = System.currentTimeMillis(); } ClientRequestExecutor clientRequestExecutor = pool.checkout(destination); String debugMsgStr = ""; startTimeNs = System.nanoTime(); BlockingClientRequest<T> blockingClientRequest = null; try { blockingClientRequest = new BlockingClientRequest<T>(delegate, timeoutMs); clientRequestExecutor.addClientRequest(blockingClientRequest, timeoutMs, System.nanoTime() - startTimeNs); boolean awaitResult = blockingClientRequest.await(); if(awaitResult == false) { blockingClientRequest.timeOut(); } if(logger.isDebugEnabled()) debugMsgStr += "success"; return blockingClientRequest.getResult(); } catch(InterruptedException e) { if(logger.isDebugEnabled()) debugMsgStr += "unreachable: " + e.getMessage(); throw new UnreachableStoreException("Failure in " + operationName + " on " + destination + ": " + e.getMessage(), e); } catch(UnreachableStoreException e) { clientRequestExecutor.close(); if(logger.isDebugEnabled()) debugMsgStr += "failure: " + e.getMessage(); throw new UnreachableStoreException("Failure in " + operationName + " on " + destination + ": " + e.getMessage(), e.getCause()); } finally { if(blockingClientRequest != null && !blockingClientRequest.isComplete()) { // close the executor if we timed out clientRequestExecutor.close(); } // Record operation time long opTimeNs = Utils.elapsedTimeNs(startTimeNs, System.nanoTime()); if(stats != null) { stats.recordSyncOpTimeNs(destination, opTimeNs); } if(logger.isDebugEnabled()) { logger.debug("Sync request end, type: " + operationName + " requestRef: " + System.identityHashCode(delegate) + " totalTimeNs: " + opTimeNs + " start time: " + startTimeMs + " end time: " + System.currentTimeMillis() + " client:" + clientRequestExecutor.getSocketChannel().socket().getLocalAddress() + ":" + clientRequestExecutor.getSocketChannel().socket().getLocalPort() + " server: " + clientRequestExecutor.getSocketChannel() .socket() .getRemoteSocketAddress() + " outcome: " + debugMsgStr); } pool.checkin(destination, clientRequestExecutor); } }
[ "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests" ]
[ "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Sets all elements in this matrix to their absolute values. Note\nthat this operation is in-place.\n@see MatrixFunctions#abs(DoubleMatrix)\n@return this matrix", "Retrieve the fixed data offset for a specific field.\n\n@param type field type\n@return offset", "Stop a timer of the given string name for the current thread. If no such\ntimer exists, -1 will be returned. Otherwise the return value is the CPU\ntime that was measured.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return CPU time if timer existed and was running, and -1 otherwise", "Get by index is used here.", "Create a set containing all the processors in the graph.", "Determines the offset code of a forward contract from the name of a forward curve.\nThis method will extract a group of one or more digits together with the first letter behind them, if any.\nIf there are multiple groups of digits in the name, this method will extract the last.\nIf there is no number in the string, this method will return null.\n\n@param curveName The name of the curve.\n@return The offset code as String", "Walk project references recursively, adding thrift files to the provided list.", "Write the given number of bytes out to the array\n\n@param bytes The array to write to\n@param value The value to write from\n@param offset the offset into the array\n@param numBytes The number of bytes to write" ]
@Override public EthiopicDate date(int prolepticYear, int month, int dayOfMonth) { return EthiopicDate.of(prolepticYear, month, dayOfMonth); }
[ "Obtains a local date in Ethiopic 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 Ethiopic local date, not null\n@throws DateTimeException if unable to create the date" ]
[ "Turn a resultset into EndpointOverride\n\n@param results results containing relevant information\n@return EndpointOverride\n@throws Exception exception", "Sets the top padding for all cells in the table.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Add a BETWEEN clause so the column must be between the low and high parameters.", "refresh credentials if CredentialProvider set", "Prioritises the list of step candidates that match a given step.\n\n@param stepAsText\nthe textual step to match\n@param candidates\nthe List of StepCandidate\n@return The prioritised list according to the\n{@link PrioritisingStrategy}.", "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format.", "Add a 'IS NOT NULL' clause so the column must not be null. '&lt;&gt;' NULL does not work.", "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of base calendars", "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation terminates.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param <T> the return type of the caller\n@param resourceType the java.lang.reflect.Type of the resource.\n@return the terminal response for the operation.\n@throws CloudException REST exception\n@throws InterruptedException interrupted exception\n@throws IOException thrown by deserialization" ]
public static void start(final GVRContext context, final String appId, final ResultListener listener) { if (null == listener) { throw new IllegalArgumentException("listener cannot be null"); } final Activity activity = context.getActivity(); final long result = create(activity, appId); if (0 != result) { throw new IllegalStateException("Could not initialize the platform sdk; error code: " + result); } context.registerDrawFrameListener(new GVRDrawFrameListener() { @Override public void onDrawFrame(float frameTime) { final int result = processEntitlementCheckResponse(); if (0 != result) { context.unregisterDrawFrameListener(this); final Runnable runnable; if (-1 == result) { runnable = new Runnable() { @Override public void run() { listener.onFailure(); } }; } else { runnable = new Runnable() { @Override public void run() { listener.onSuccess(); } }; } activity.runOnUiThread(runnable); } } }); }
[ "Starts asynchronous check. Result will be delivered to the listener on the main thread.\n\n@param context\n@param appId application id from the oculus dashboard\n@param listener listener to invoke when the result is available\n@throws IllegalStateException in case the platform sdk cannot be initialized\n@throws IllegalArgumentException if listener is null" ]
[ "Move the SQL value to the next one for version processing.", "Creates a style definition used for the body element.\n@return The body style definition.", "Create a new GP entry in the database. No commit performed.", "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", "Internal used method to retrieve object based on Identity.\n\n@param id\n@return\n@throws PersistenceBrokerException", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods. Date rolling is ignored.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar.\nThe name of the calendar to be used is passed as an argument.\n\n@param calendarName name of the calendar to use\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "Generate the specified output file by merging the specified\nVelocity template with the supplied context." ]
public void createLinks(ServiceReference<S> declarationBinderRef) { for (D declaration : linkerManagement.getMatchedDeclaration()) { if (linkerManagement.canBeLinked(declaration, declarationBinderRef)) { linkerManagement.link(declaration, declarationBinderRef); } } }
[ "Create all the links possible between the DeclarationBinder and all the ImportDeclaration matching the.\nImportDeclarationFilter of the Linker.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder" ]
[ "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value", "Returns the compact task records for all tasks within the given project,\nordered by their priority within the project. Tasks can exist in more than one project at a time.\n\n@param project The project in which to search for tasks.\n@return Request object", "This method finds the start of the next working period.\n\n@param cal current Calendar instance", "Remove a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder", "Parses operations where the input comes from variables to its left and right\n\n@param ops List of operations which should be parsed\n@param tokens List of all the tokens\n@param sequence List of operation sequence", "Gets a SerialMessage with the BASIC SET command\n@param the level to set.\n@return the serial message", "Update the selection state of the item\n@param dataIndex data set index\n@param select if it is true the item is marked as selected, otherwise - unselected\n@return true if the selection state has been changed successfully, otherwise - false", "Use this API to reset Interface resources.", "Inserts the specified objects at the specified index in the array.\n\n@param items The objects to insert into the array.\n@param index The index at which the object must be inserted." ]
public void delete(Vertex vtx) { if (vtx.prev == null) { head = vtx.next; } else { vtx.prev.next = vtx.next; } if (vtx.next == null) { tail = vtx.prev; } else { vtx.next.prev = vtx.prev; } }
[ "Deletes a vertex from this list." ]
[ "Returns the number of rows within this association.\n\n@return the number of rows within this association", "Write each predecessor for a task.\n\n@param record Task instance", "Use this API to change appfwsignatures.", "Initialize current thread's JobContext using specified copy\n@param origin the original job context", "Set the background color.\n\nIf you don't set the background color, the default is an opaque black:\n{@link Color#BLACK}, 0xff000000.\n\n@param color\nAn Android 32-bit (ARGB) {@link Color}, such as you get from\n{@link Resources#getColor(int)}", "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List", "Retrieves all file version retentions matching given filters as an Iterable.\n@param api the API connection to be used by the resource.\n@param filter filters for the query stored in QueryFilter object.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions matching given filter.", "Returns an ArrayList of String URLs of the Carousel Images\n@return ArrayList of Strings", "Use this API to fetch crvserver_binding resource of given name ." ]
protected Model createFlattenedPom( File pomFile ) throws MojoExecutionException, MojoFailureException { ModelBuildingRequest buildingRequest = createModelBuildingRequest( pomFile ); Model effectivePom = createEffectivePom( buildingRequest, isEmbedBuildProfileDependencies(), this.flattenMode ); Model flattenedPom = new Model(); // keep original encoding (we could also normalize to UTF-8 here) String modelEncoding = effectivePom.getModelEncoding(); if ( StringUtils.isEmpty( modelEncoding ) ) { modelEncoding = "UTF-8"; } flattenedPom.setModelEncoding( modelEncoding ); Model cleanPom = createCleanPom( effectivePom ); FlattenDescriptor descriptor = getFlattenDescriptor(); Model originalPom = this.project.getOriginalModel(); Model resolvedPom = this.project.getModel(); Model interpolatedPom = createResolvedPom( buildingRequest ); // copy the configured additional POM elements... for ( PomProperty<?> property : PomProperty.getPomProperties() ) { if ( property.isElement() ) { Model sourceModel = getSourceModel( descriptor, property, effectivePom, originalPom, resolvedPom, interpolatedPom, cleanPom ); if ( sourceModel == null ) { if ( property.isRequired() ) { throw new MojoFailureException( "Property " + property.getName() + " is required and can not be removed!" ); } } else { property.copy( sourceModel, flattenedPom ); } } } return flattenedPom; }
[ "This method creates the flattened POM what is the main task of this plugin.\n\n@param pomFile is the name of the original POM file to read and transform.\n@return the {@link Model} of the flattened POM.\n@throws MojoExecutionException if anything goes wrong (e.g. POM can not be processed).\n@throws MojoFailureException if anything goes wrong (logical error)." ]
[ "Returns the compact representations of all of the dependencies of a task.\n\n@param task The task to get dependencies on.\n@return Request object", "User-initiated commands use this method.\n\n@param command The CLI command\n@return A Response object containing the command line, DMR request, and DMR response\n@throws CommandFormatException\n@throws IOException", "Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved.", "Draw a rounded rectangular boundary.\n\n@param rect rectangle\n@param color colour\n@param linewidth line width\n@param r radius for rounded corners", "of the unbound provider (", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings", "Deletes a user from an enterprise account.\n@param notifyUser whether or not to send an email notification to the user that their account has been deleted.\n@param force whether or not this user should be deleted even if they still own files.", "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "Escape text to ensure valid JSON.\n\n@param value value\n@return escaped value" ]
public static final Date getTimestamp(byte[] data, int offset) { Date result; long days = getShort(data, offset + 2); if (days < 100) { // We are seeing some files which have very small values for the number of days. // When the relevant field is shown in MS Project it appears as NA. // We try to mimic this behaviour here. days = 0; } if (days == 0 || days == 65535) { result = null; } else { long time = getShort(data, offset); if (time == 65535) { time = 0; } result = DateHelper.getTimestampFromLong((EPOCH + (days * DateHelper.MS_PER_DAY) + ((time * DateHelper.MS_PER_MINUTE) / 10))); } return (result); }
[ "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value" ]
[ "Removes metadata related to rebalancing.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to clear metadata after rebalancing", "In-place scaling of a column in A\n\n@param alpha scale factor\n@param A matrix\n@param col which row in A", "Sets the appropriate OpenCms context.\n@param cms The OpenCms instance object.", "Returns an array of the enabled endpoints as Integer IDs\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return Collection of endpoints\n@throws Exception exception", "Answer the SQL-Clause for a FieldCriteria\n\n@param c FieldCriteria\n@param cld ClassDescriptor", "Updates property of parent id for the image provided.\nReturns false if image was not captured true otherwise.\n\n@param log\n@param imageTag\n@param host\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "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.", "Helper xml end tag writer\n\n@param value the output stream to use in writing", "This one picks up on Dan2 ideas, but seeks to make less distinctions\nmid sequence by sorting for long words, but to maintain extra\ndistinctions for short words, by always recording the class of the\nfirst and last two characters of the word.\nCompared to chris2 on which it is based,\nit uses more Unicode classes, and so collapses things like\npunctuation more, and might work better with real unicode.\n\n@param s The String to find the word shape of\n@param omitIfInBoundary If true, character classes present in the\nfirst or last two (i.e., BOUNDARY_SIZE) letters\nof the word are not also registered\nas classes that appear in the middle of the word.\n@param knownLCWords If non-null and non-empty, tag with a \"k\" suffix words\nthat are in this list when lowercased (representing\nthat the word is \"known\" as a lowercase word).\n@return A word shape for the word." ]
public ProjectCalendarWeek addWorkWeek() { ProjectCalendarWeek week = new ProjectCalendarWeek(); week.setParent(this); m_workWeeks.add(week); m_weeksSorted = false; clearWorkingDateCache(); return week; }
[ "Add an empty work week.\n\n@return new work week" ]
[ "Formats a vertex using it's properties. Debugging purposes.", "Add the list with given bundles to the \"Import-Package\" main attribute.\n\n@param importedPackages The list of all packages to add.", "Flush output streams.", "Removes all documents from the collection that match the given query filter. If no documents\nmatch, the collection is not modified.\n\n@param filter the query filter to apply the the delete operation\n@return the result of the remove many operation", "Creates a triangular matrix where the amount of fill is randomly selected too.\n\n@param upper true for upper triangular and false for lower\n@param N number of rows and columns\ner * @param minFill minimum fill fraction\n@param maxFill maximum fill fraction\n@param rand random number generator\n@return Random matrix", "Generate a VideoCollection with random data obtained form VIDEO_INFO map. You don't need o\ncreate your own AdapteeCollections. Review ListAdapteeCollection if needed.\n\n@param videoCount size of the collection.\n@return VideoCollection generated.", "This implementation checks whether a File can be opened,\nfalling back to whether an InputStream can be opened.\nThis will cover both directories and content resources.", "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself.", "Sorts the row indices in ascending order.\n@param sorter (Optional) Used to sort rows. If null a new instance will be declared internally." ]
public static final long getLong(byte[] data, int offset) { long result = 0; int i = offset; for (int shiftBy = 0; shiftBy < 64; shiftBy += 8) { result |= ((long) (data[i] & 0xff)) << shiftBy; ++i; } return result; }
[ "Read a long int from a byte array.\n\n@param data byte array\n@param offset start offset\n@return long value" ]
[ "Gets whether this registration has an alternative wildcard registration", "Gets an exception reporting an unexpected XML element.\n\n@param reader a reference to the stream reader.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Sets the queue.\n\n@param queue the new queue", "Creates the server setup, depending on the protocol flags.\n\n@return the configured server setups.", "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance", "Utility method used to round a double to the given precision.\n\n@param value value to truncate\n@param precision Number of decimals to round to.\n@return double value", "Used by TracedParallelBatch where its used to wrap a TraceContext and puts it in the\nregistry for the forked execution. This is marked deprecated as we prefer not to\nexpose details of the RatpackCurrentTraceContext implementation.\n\n@param traceContext a trace context.\n@return a holder for the trace context, which can be put into the registry.", "Get the real Object\n\n@param objectOrProxy\n@return Object", "Checks that the data starting at startLocRecord looks like a local file record header.\n\n@param channel the channel\n@param startLocRecord offset into channel of the start of the local record\n@param compressedSize expected compressed size of the file, or -1 to indicate this isn't known" ]
private void initWsClient(BundleContext context) throws Exception { ServiceReference serviceRef = context.getServiceReference(ConfigurationAdmin.class.getName()); ConfigurationAdmin cfgAdmin = (ConfigurationAdmin)context.getService(serviceRef); Configuration config = cfgAdmin.getConfiguration("org.talend.esb.sam.agent"); String serviceURL = (String)config.getProperties().get("service.url"); retryNum = Integer.parseInt((String)config.getProperties().get("service.retry.number")); retryDelay = Long.parseLong((String)config.getProperties().get("service.retry.delay")); JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setServiceClass(org.talend.esb.sam.monitoringservice.v1.MonitoringService.class); factory.setAddress(serviceURL); monitoringService = (MonitoringService)factory.create(); }
[ "Inits the ws client.\n\n@param context the context\n@throws Exception the exception" ]
[ "Calcs the bonding size of given mesh.\n\n@param mesh Mesh to calc its bouding size.\n@return The bounding size for x, y and z axis.", "LV morphology helper functions", "Updates an existing enum option. Enum custom fields require at least one enabled enum option.\n\nReturns the full record of the updated enum option.\n\n@param enumOption Globally unique identifier for the enum option.\n@return Request object", "Copies from buffer to our internal strBufferIndex, expanding the internal buffer if necessary\n@param offset offset in the buffer to start copying from\n@param length length to copy", "convert filename to clean filename", "Given a read-only store name and a directory, swaps it in while returning\nthe directory path being swapped out\n\n@param storeName The name of the read-only store\n@param directory The directory being swapped in\n@return The directory path which was swapped out\n@throws VoldemortException", "Entry point for this example\nUses HDFS ToolRunner to wrap processing of\n\n@param args Command-line arguments for HDFS example", "Reads OAuth 2.0 with JWT app configurations from the reader. The file should be in JSON format.\n\n@param reader a reader object which points to a JSON formatted configuration file\n@return a new Instance of BoxConfig\n@throws IOException when unable to access the mapping file's content of the reader", "simple echo implementation" ]
public static List<Versioned<byte[]>> pruneNonReplicaEntries(List<Versioned<byte[]>> vals, List<Integer> keyReplicas, MutableBoolean didPrune) { List<Versioned<byte[]>> prunedVals = new ArrayList<Versioned<byte[]>>(vals.size()); for(Versioned<byte[]> val: vals) { VectorClock clock = (VectorClock) val.getVersion(); List<ClockEntry> clockEntries = new ArrayList<ClockEntry>(); for(ClockEntry clockEntry: clock.getEntries()) { if(keyReplicas.contains((int) clockEntry.getNodeId())) { clockEntries.add(clockEntry); } else { didPrune.setValue(true); } } prunedVals.add(new Versioned<byte[]>(val.getValue(), new VectorClock(clockEntries, clock.getTimestamp()))); } return prunedVals; }
[ "Remove all non replica clock entries from the list of versioned values\nprovided\n\n@param vals list of versioned values to prune replicas from\n@param keyReplicas list of current replicas for the given key\n@param didPrune flag to mark if we did actually prune something\n@return pruned list" ]
[ "Update the given resource in the persistent configuration model based on the values in the given operation.\n\n@param operation the operation\n@param resource the resource that corresponds to the address of {@code operation}\n\n@throws OperationFailedException if {@code operation} is invalid or populating the model otherwise fails", "Creates an observer\n\n@param method The observer method abstraction\n@param declaringBean The declaring bean\n@param manager The Bean manager\n@return An observer implementation built from the method abstraction", "Create a new queued pool with key type K, request type R, and value type\nV.\n\n@param factory The factory that creates objects\n@param config The pool config\n@return The created pool", "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", "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo", "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", "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Process a currency definition.\n\n@param row record from XER file", "Create a new AwsServiceClient instance with a different codec registry.\n\n@param codecRegistry the new {@link CodecRegistry} for the client.\n@return a new AwsServiceClient instance with the different codec registry" ]
static boolean isEmptyWhitespace(@Nullable final String s) { if (s == null) { return true; } return CharMatcher.WHITESPACE.matchesAllOf(s); }
[ "Returns flag whose value indicates if the string is null, empty or\nonly contains whitespace characters\n\n@param s a string\n@return true if the string is null, empty or only contains whitespace characters" ]
[ "Returns whether the given host matches this one. For hosts to match, they must represent the same addresses or have the same host names.\nHosts are not resolved when matching. Also, hosts must have the same port and service. They must have the same masks if they are host names.\nEven if two hosts are invalid, they match if they have the same invalid string.\n\n@param host\n@return", "Process start.\n\n@param endpoint the endpoint\n@param eventType the event type", "Move the animation frame counter forward.\n\n@return boolean specifying if animation should continue or if loopCount has been fulfilled.", "Use this API to fetch a vpnglobal_vpnnexthopserver_binding resources.", "Counts the number of documents in the collection.\n\n@return a task containing the number of documents in the collection", "Use this API to fetch clusternodegroup resource of given name .", "Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.", "Escapes control characters with a preceding backslash.\nOptionally encodes special chars as unicode escape sequence.\nThe resulting string is safe to be put into a Java string literal between\nthe quotes.", "Aggregates a list of templates specified by @Template" ]
protected Container findContainer(ContainerContext ctx, StringBuilder dump) { Container container = null; // 1. Custom container class String containerClassName = ctx.getServletContext().getInitParameter(Container.CONTEXT_PARAM_CONTAINER_CLASS); if (containerClassName != null) { try { Class<Container> containerClass = Reflections.classForName(resourceLoader, containerClassName); container = SecurityActions.newInstance(containerClass); WeldServletLogger.LOG.containerDetectionSkipped(containerClassName); } catch (Exception e) { WeldServletLogger.LOG.unableToInstantiateCustomContainerClass(containerClassName); WeldServletLogger.LOG.catchingDebug(e); } } if (container == null) { // 2. Service providers Iterable<Container> extContainers = ServiceLoader.load(Container.class, getClass().getClassLoader()); container = checkContainers(ctx, dump, extContainers); if (container == null) { // 3. Built-in containers in predefined order container = checkContainers(ctx, dump, Arrays.asList(TomcatContainer.INSTANCE, JettyContainer.INSTANCE, UndertowContainer.INSTANCE, GwtDevHostedModeContainer.INSTANCE)); } } return container; }
[ "Find container env.\n\n@param ctx the container context\n@param dump the exception dump\n@return valid container or null" ]
[ "Use this API to fetch all the dnssuffix resources that are configured on netscaler.", "Process the graphical indicator data.", "Convert a Java LinkedList to a Scala Iterable.\n@param linkedList Java LinkedList to convert\n@return Scala Iterable", "Detokenize the input list of words.\n\n@param tokens List of words.\n@return Detokenized string.", "Handle a simple ping request.\n\n@param channel the channel\n@param header the protocol header\n@throws IOException for any error", "Unlinks a set of dependents from this task.\n\n@param task The task to remove dependents from.\n@return Request object", "Gets bounds which are identical for all dimensions.\n\n@param dim The number of dimensions.\n@param l The value of all lower bounds.\n@param u The value of all upper bounds.\n@return The new bounds.", "Deregister shutdown hook and execute it immediately", "Retains only beans which are enabled.\n\n@param beans The mutable set of beans to filter\n@param beanManager The bean manager\n@return a mutable set of enabled beans" ]
private double[] formatTargetValuesForOptimizer() { //Put all values in an array for the optimizer. int numberOfMaturities = surface.getMaturities().length; double mats[] = surface.getMaturities(); ArrayList<Double> vals = new ArrayList<Double>(); for(int t = 0; t<numberOfMaturities; t++) { double mat = mats[t]; double[] myStrikes = surface.getSurface().get(mat).getStrikes(); OptionSmileData smileOfInterest = surface.getSurface().get(mat); for(int k = 0; k < myStrikes.length; k++) { vals.add(smileOfInterest.getSmile().get(myStrikes[k]).getValue()); } } Double[] targetVals = new Double[vals.size()]; return ArrayUtils.toPrimitive(vals.toArray(targetVals)); }
[ "This is a service method that takes care of putting al the target values in a single array.\n@return" ]
[ "This method writes extended attribute data for an assignment.\n\n@param xml MSPDI assignment\n@param mpx MPXJ assignment", "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int", "Delete any log segments matching the given predicate function\n\n@throws IOException", "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", "Calculates the delta of a digital 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 delta of the digital option", "Sets this matrix equal to the matrix encoded in the array.\n\n@param numRows The number of rows.\n@param numCols The number of columns.\n@param rowMajor If the array is encoded in a row-major or a column-major format.\n@param data The formatted 1D array. Not modified.", "Reads data from the SP file.\n\n@return Project File instance", "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name", "Use this API to fetch responderpolicy_binding resource of given name ." ]
private static MenuDrawer createMenuDrawer(Activity activity, int dragMode, Position position, Type type) { MenuDrawer drawer; if (type == Type.STATIC) { drawer = new StaticDrawer(activity); } else if (type == Type.OVERLAY) { drawer = new OverlayDrawer(activity, dragMode); if (position == Position.LEFT || position == Position.START) { drawer.setupUpIndicator(activity); } } else { drawer = new SlidingDrawer(activity, dragMode); if (position == Position.LEFT || position == Position.START) { drawer.setupUpIndicator(activity); } } drawer.mDragMode = dragMode; drawer.setPosition(position); return drawer; }
[ "Constructs the appropriate MenuDrawer based on the position." ]
[ "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "Retrieves a vertex attribute as an integer array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntVec(String, IntBuffer)\n@see #getIntArray(String)", "Non-supported in JadeAgentIntrospector", "Get an CollectionDescriptor by name BRJ\n@param name\n@return CollectionDescriptor or null", "Returns the inverse of a given matrix.\n\n@param matrix A matrix given as double[n][n].\n@return The inverse of the given matrix.", "Returns the class of datatype URI that best characterizes the range of\nthe given property based on its datatype.\n\n@param propertyIdValue\nthe property for which to get a range\n@return the range URI or null if the datatype could not be identified.", "Create a KnowledgeBuilderConfiguration on which properties can be set. Use\nthe given properties file and ClassLoader - either of which can be null.\n@return\nThe KnowledgeBuilderConfiguration.", "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list.", "Parse the string representation of a timestamp.\n\n@param value string representation\n@return Java representation" ]
private void logTimeTakenByPhase(GraphContext graphContext, Class<? extends RulePhase> phase, int timeTaken) { if (!timeTakenByPhase.containsKey(phase)) { RulePhaseExecutionStatisticsModel model = new GraphService<>(graphContext, RulePhaseExecutionStatisticsModel.class).create(); model.setRulePhase(phase.toString()); model.setTimeTaken(timeTaken); model.setOrderExecuted(timeTakenByPhase.size()); timeTakenByPhase.put(phase, model.getElement().id()); } else { GraphService<RulePhaseExecutionStatisticsModel> service = new GraphService<>(graphContext, RulePhaseExecutionStatisticsModel.class); RulePhaseExecutionStatisticsModel model = service.getById(timeTakenByPhase.get(phase)); int prevTimeTaken = model.getTimeTaken(); model.setTimeTaken(prevTimeTaken + timeTaken); } }
[ "Logs the time taken by this rule and adds this to the total time taken for this phase" ]
[ "Creates a new RDF serializer based on the current configuration of this\nobject.\n\n@return the newly created RDF serializer\n@throws IOException\nif there were problems opening the output files", "Reads a data block and adds it to the list of blocks.\n\n@param text RTF data\n@param offset current offset\n@param length next block length\n@param blocks list of blocks\n@return next offset", "Execute a HTTP request and handle common error cases.\n\n@param connection the HttpConnection request to execute\n@return the executed HttpConnection\n@throws CouchDbException for HTTP error codes or if an IOException was thrown", "Used for unit tests only.\n\nFIXME: Refactor test code with dependency injection or scope restrictions so this function is not public.\n\n@deprecated Do not use for production code, use {@link #fetch(String, String, voldemort.server.protocol.admin.AsyncOperationStatus, String, long, voldemort.store.metadata.MetadataStore, Long diskQuotaSizeInKB)} instead.", "Write a map field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Sets the bit at the specified index.\n@param index The index of the bit to set (0 is the least-significant bit).\n@param set A boolean indicating whether the bit should be set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Creates a collaboration whitelist for a Box User with a given ID.\n@param api the API connection to be used by the collaboration whitelist.\n@param userID the ID of the Box User to add to the collaboration whitelist.\n@return information about the collaboration whitelist created for user.", "gets the first non annotation line number of a node, taking into account annotations.", "Serializes any char sequence and writes it into specified buffer." ]
@Override public void deploy(InputStream inputStream) throws IOException { final List<? extends HasMetadata> entities = deploy("application", inputStream); if (this.applicationName == null) { Optional<String> deploymentConfig = entities.stream() .filter(hm -> hm instanceof DeploymentConfig) .map(hm -> (DeploymentConfig) hm) .map(dc -> dc.getMetadata().getName()).findFirst(); deploymentConfig.ifPresent(name -> this.applicationName = name); } }
[ "Deploys application reading resources from specified InputStream.\n\n@param inputStream where resources are read\n@throws IOException" ]
[ "Return a capitalized version of the specified property name.\n\n@param s\nThe property name", "Ask the specified player for a Track menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the track menu\n\n@throws Exception if there is a problem obtaining the menu", "These exact lines are shared between three different tools, so\nthey have been moved here to reduce code duplication.\n@return The parsed command-line, with options removed.", "Gets the SerialMessage as a byte array.\n@return the message", "Construct a new uri by replacing query parameters in initialUri with the query parameters provided.\n\n@param initialUri the initial/template URI\n@param queryParams the new query parameters.", "Returns a unique file name\n@param baseFileName the requested base name for the file\n@param extension the requested extension for the file\n@param cleanBaseFileName specify if the <code>baseFileName</code> has to be cleaned before being used (i.e. 'jboss-web' should not be cleaned to avoid '-' to become '_')\n@param ancestorFolders specify the ancestor folders for the file (if there's no ancestor folder, just pass 'null' value)\n@return a String representing the unique file generated", "Returns the default conversion for the given java type.\n\n@param javaType The qualified java type\n@return The default conversion or <code>null</code> if there is no default conversion for the type", "Use this API to fetch all the nsconfig resources that are configured on netscaler.", "Retrieve timephased baseline cost. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present" ]
public Date getTime(String fieldName) { try { if (hasValue(fieldName)) { return new Date(Long.valueOf(String.valueOf(resultMap.get(fieldName))) * 1000); } else { return null; } } catch (NumberFormatException e) { throw new FqlException("Field '" + fieldName +"' is not a time.", e); } }
[ "Returns the value of the identified field as a Date.\nTime fields returned from an FQL query are expressed in terms of seconds since midnight, January 1, 1970 UTC.\n@param fieldName the name of the field\n@return the value of the field as a Date\n@throws FqlException if the field's value cannot be expressed as a long value from which a Date object can be constructed." ]
[ "build the Join-Information if a super reference exists\n\n@param left\n@param cld\n@param name", "Deletes the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type 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.", "We need to make sure the terms are of the right type, otherwise they will not be serialized correctly.", "Chooses a single segment to be compressed, or null if no segment could be chosen.\n@param options\n@param createMixed\n@return", "Remove custom overrides\n\n@param path_id ID of path containing custom override\n@param client_uuid UUID of the client\n@throws Exception exception", "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context", "Increment the version info associated with the given node\n\n@param node The node", "Stops the scavenger." ]
@Override public void registerChildren(ManagementResourceRegistration resourceRegistration) { // Register wildcard children last to prevent duplicate registration errors when override definitions exist for (ResourceDefinition rd : singletonChildren) { resourceRegistration.registerSubModel(rd); } for (ResourceDefinition rd : wildcardChildren) { resourceRegistration.registerSubModel(rd); } }
[ "Register child resources associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition" ]
[ "This method retrieves ONLY the ROOT actions", "Returns a product regarding its name\n\n@param name String\n@return DbProduct", "Start the rendering of the scalebar.", "True if a CharSequence only contains whitespace characters.\n\n@param self The CharSequence to check the characters in\n@return true If all characters are whitespace characters\n@see #isAllWhitespace(String)\n@since 1.8.2", "set ViewPager scroller to change animation duration when sliding", "Use this API to fetch systemsession resources of given names .", "Returns the expected name of a workspace for a given suffix\n@param suffix\n@return", "Specify the method to instantiate objects\nrepresented by this descriptor.\n@see #setFactoryClass", "Writes the timephased data for a resource assignment.\n\n@param mpx MPXJ assignment\n@param xml MSDPI assignment" ]
private void processWorkWeekDay(byte[] data, int offset, ProjectCalendarWeek week, Day day) { //System.out.println(ByteArrayHelper.hexdump(data, offset, 60, false)); int dayType = MPPUtility.getShort(data, offset + 0); if (dayType == 1) { week.setWorkingDay(day, DayType.DEFAULT); } else { ProjectCalendarHours hours = week.addCalendarHours(day); int rangeCount = MPPUtility.getShort(data, offset + 2); if (rangeCount == 0) { week.setWorkingDay(day, DayType.NON_WORKING); } else { week.setWorkingDay(day, DayType.WORKING); Calendar cal = DateHelper.popCalendar(); for (int index = 0; index < rangeCount; index++) { Date startTime = DateHelper.getCanonicalTime(MPPUtility.getTime(data, offset + 8 + (index * 2))); int durationInSeconds = MPPUtility.getInt(data, offset + 20 + (index * 4)) * 6; cal.setTime(startTime); cal.add(Calendar.SECOND, durationInSeconds); Date finishTime = DateHelper.getCanonicalTime(cal.getTime()); hours.addRange(new DateRange(startTime, finishTime)); } DateHelper.pushCalendar(cal); } } }
[ "Process an individual work week day.\n\n@param data calendar data\n@param offset current offset into data\n@param week parent week\n@param day current day" ]
[ "Read an optional month value form a JSON value.\n@param val the JSON value that should represent the month.\n@return the month from the JSON or null if reading the month fails.", "Read exceptions for a calendar.\n\n@param table calendar exception data\n@param calendar calendar\n@param exceptionID first exception ID", "Gets the actual key - will create a new row with the max key of table if it\ndoes not exist.\n@param field\n@return\n@throws SequenceManagerException", "Gets the string describing the uniforms used by shaders of this type.\n@param ctx GVFContext shader is associated with\n@return uniform descriptor string\n@see #getTemplate(GVRContext) GVRShader#getUniformDescriptor()", "Adds an additional description to the constructed document.\n\n@param text\nthe text of the description\n@param languageCode\nthe language code of the description\n@return builder object to continue construction", "Render a zero Double as null.\n\n@param value double value\n@return null if the double value is zero", "In managed environment do internal close the used connection", "Read all of the fields information from the configuration file.", "Read task data from a Gantt Designer file.\n\n@param gantt Gantt Designer file" ]
public synchronized Response<ByteArray, Object> responseQueuePoll(long timeout, TimeUnit timeUnit) throws InterruptedException { long timeoutMs = timeUnit.toMillis(timeout); long timeoutWallClockMs = System.currentTimeMillis() + timeoutMs; while(responseQueue.isEmpty() && System.currentTimeMillis() < timeoutWallClockMs) { long remainingMs = Math.max(0, timeoutWallClockMs - System.currentTimeMillis()); if(logger.isDebugEnabled()) { logger.debug("Start waiting for response queue with timeoutMs: " + timeoutMs); } this.wait(remainingMs); if(logger.isDebugEnabled()) { logger.debug("End waiting for response queue with timeoutMs: " + timeoutMs); } } return responseQueue.poll(); }
[ "poll the response queue for response\n\n@param timeout timeout amount\n@param timeUnit timeUnit of timeout\n@return same result of BlockQueue.poll(long, TimeUnit)\n@throws InterruptedException" ]
[ "Process the standard working hours for a given day.\n\n@param mpxjCalendar MPXJ Calendar instance\n@param uniqueID unique ID sequence generation\n@param day Day instance\n@param typeList Planner list of days", "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid", "Check if position is in inner circle\n\n@param x x position\n@param y y position\n@return true if in inner circle, false otherwise", "Calculates the LatLong position of the end point of a line the specified\ndistance from this LatLong, along the provided bearing, where North is 0,\nEast is 90 etc.\n\n@param bearing The bearing, in degrees, with North as 0, East as 90 etc.\n@param distance The distance in metres.\n@return A new LatLong indicating the end point.", "Give an embedded association, creates all the nodes and relationships required to represent it.\nIt assumes that the entity node containing the association already exists in the db.\n\n@param executionEngine the {@link GraphDatabaseService} to run the query\n@param associationKey the {@link AssociationKey} identifying the association\n@param embeddedKey the {@link EntityKey} identifying the embedded component\n@return the created {@link Relationship} that represents the association", "Sets the target translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Returns all migrations starting from and excluding the given version. Usually you want to provide the version of\nthe database here to get all migrations that need to be executed. In case there is no script with a newer\nversion than the one given, an empty list is returned.\n\n@param version the version that is currently in the database\n@return all versions since the given version or an empty list if no newer script is available. Never null.\nDoes not include the given version.", "Start the first inner table of a class.", "Gen error response.\n\n@param t\nthe t\n@return the response on single request" ]
protected void mergeHardcodedResultsFrom(Configuration otherConfiguration) { Map<Dotted, AnalysisResult> resultsMap = hardcodedResults.build().stream() .collect(Collectors.toMap(r -> r.className, r -> r)); resultsMap.putAll(otherConfiguration.hardcodedResults()); hardcodedResults = ImmutableSet.<AnalysisResult>builder().addAll(resultsMap.values()); }
[ "Merges the hardcoded results of this Configuration with the given\nConfiguration.\n\nThe resultant hardcoded results will be the union of the two sets of\nhardcoded results. Where the AnalysisResult for a class is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeHardcodedResultsFrom(Configuration)}.\n\n@param otherConfiguration - Configuration to merge hardcoded results with." ]
[ "Computes an MD4 hash for the password.\n\n@param password the password for which to compute the hash\n@throws NoSuchAlgorithmException\n@throws InvalidKeyException\n\n@return the password hash", "Use this API to fetch lbvserver_scpolicy_binding resources of given name .", "Remove a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder", "Set the method arguments for an enabled method override\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param arguments Array of arguments to set(specify all arguments)\n@return true if success, false otherwise", "Initialize. create the httpClientStore, tcpClientStore", "returns array with length 3 and optional entries version, encoding, standalone", "After obtaining a connection, perform additional tasks.\n@param handle\n@param statsObtainTime", "Converts an object into a tab delimited string with given fields\nRequires the object has public access for the specified fields\n\n@param object Object to convert\n@param delimiter delimiter\n@param fieldNames fieldnames\n@return String representing object", "2-D Forward Discrete Cosine Transform.\n\n@param data Data." ]
public String calculateCacheKey(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability){ StringBuilder tmp = calculateCacheKeyInternal(sql, resultSetType, resultSetConcurrency); tmp.append(", H:"); tmp.append(resultSetHoldability); return tmp.toString(); }
[ "Simply appends the given parameters and returns it to obtain a cache key\n@param sql\n@param resultSetConcurrency\n@param resultSetHoldability\n@param resultSetType\n@return cache key to use" ]
[ "Create a Count-Query for ReportQueryByCriteria", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\nIf the elements in the sorted set have different scores, the returned elements are unspecified.\n@param lexRange\n@return the range of elements", "Compute 2-dimensional Perlin noise.\n@param x the x coordinate\n@param y the y coordinate\n@return noise value at (x,y)", "Stop a managed server.", "Throws one RendererException if the content parent or layoutInflater are null.", "Turn map into string\n\n@param propMap Map to be converted\n@return", "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", "Shows the given step.\n\n@param step the step", "Obtains a local date in Accounting 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 Accounting local date, not null\n@throws DateTimeException if unable to create the date" ]
@Override public void invert(DMatrixRMaj A_inv) { blockB.reshape(A_inv.numRows,A_inv.numCols,false); alg.invert(blockB); MatrixOps_DDRB.convert(blockB,A_inv); }
[ "Creates a block matrix the same size as A_inv, inverts the matrix and copies the results back\nonto A_inv.\n\n@param A_inv Where the inverted matrix saved. Modified." ]
[ "Calculate the name of the input value.\n\n@param inputPrefix a nullable prefix to prepend to the name if non-null and non-empty\n@param inputMapper the name mapper\n@param field the field containing the value", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add.", "Sets an attribute in the main section of the manifest to a list.\nThe list elements will be joined with a single whitespace character.\n\n@param name the attribute's name\n@param values the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Tests an observer method to see if it is transactional.\n\n@param observer The observer method\n@return true if the observer method is annotated as transactional", "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", "Deletes a chain of vertices from this list.", "Removes a set of calendar hours from the day to which they\nare currently attached.\n\n@param hours calendar hours instance", "Retrieves the real subject from the underlying RDBMS. Override this\nmethod if the object is to be materialized in a specific way.\n\n@return The real subject of the proxy", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specified fields." ]
public static base_response unset(nitro_service client, vridparam resource, String[] args) throws Exception{ vridparam unsetresource = new vridparam(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of vridparam resource.\nProperties that need to be unset are specified in args array." ]
[ "Transform the given object into an array of bytes\n\n@param object The object to be serialized\n@return The bytes created from serializing the object", "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\n@param buildInfoId\n@return", "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}", "Extracts the version id from a string\n\n@param versionDir The string\n@return Returns the version id of the directory, else -1", "Return true if the class name is associated to an hidden class or matches a hide expression", "Sets either the upper or low triangle of a matrix to zero", "Delete a license from the repository\n\n@param licName The name of the license to remove", "Convert an Object to a Timestamp.", "adds all json extension to an diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
public final void notifyContentItemChanged(int position) { if (position < 0 || position >= contentItemCount) { throw new IndexOutOfBoundsException("The given position " + position + " is not within the position bounds for content items [0 - " + (contentItemCount - 1) + "]."); } notifyItemChanged(position + headerItemCount); }
[ "Notifies that a content item is changed.\n\n@param position the position." ]
[ "Create a new file but fail if it already exists. The check for\nexistance of the file and it's creation are an atomic operation with\nrespect to other filesystem activities.", "Set the value of switch component.", "Register capabilities associated with this resource.\n\n<p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p>\n\n@param resourceRegistration a {@link ManagementResourceRegistration} created from this definition", "Determines the offset code of a forward contract from the name of a forward curve.\nThis method will extract a group of one or more digits together with the first letter behind them, if any.\nIf there are multiple groups of digits in the name, this method will extract the last.\nIf there is no number in the string, this method will return null.\n\n@param curveName The name of the curve.\n@return The offset code as String", "Write project properties.\n\n@param record project properties\n@throws IOException", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "This method lists any notes attached to tasks.\n\n@param file MPX file", "Computes the longest common contiguous substring of s and t.\nThe LCCS is the longest run of characters that appear consecutively in\nboth s and t. For instance, the LCCS of \"color\" and \"colour\" is 4, because\nof \"colo\".", "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster" ]
public boolean needToSetCategoryFolder() { if (m_adeModuleVersion == null) { return true; } CmsModuleVersion categoryFolderUpdateVersion = new CmsModuleVersion("9.0.0"); return (m_adeModuleVersion.compareTo(categoryFolderUpdateVersion) == -1); }
[ "Checks if the categoryfolder setting needs to be updated.\n\n@return true if the categoryfolder setting needs to be updated" ]
[ "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "Clones the given field.\n\n@param fieldDef The field descriptor\n@param prefix A prefix for the name\n@return The cloned field", "Requests the waveform detail for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform detail is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Returns the start position of the indicator.\n\n@return The start position of the indicator.", "Finds all nWise combinations of a set of variables, each with a given domain of values\n\n@param nWise the number of variables in each combination\n@param coVariables the varisbles\n@param variableDomains the domains\n@return all nWise combinations of the set of variables", "Gets all Checkable widgets in the group\n@return list of Checkable widgets", "Use this API to fetch tunneltrafficpolicy resource of given name .", "Finds the most recent dump of the given type that is actually available.\n\n@param dumpContentType\nthe type of the dump to look for\n@return most recent main dump or null if no such dump exists", "Returns the compact records for all stories on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object" ]
synchronized void start(final ManagedServerBootCmdFactory factory) { final InternalState required = this.requiredState; // Ignore if the server is already started if(required == InternalState.SERVER_STARTED) { return; } // In case the server failed to start, try to start it again if(required != InternalState.FAILED) { final InternalState current = this.internalState; if(current != required) { // TODO this perhaps should wait? throw new IllegalStateException(); } } operationID = CurrentOperationIdHolder.getCurrentOperationID(); bootConfiguration = factory.createConfiguration(); requiredState = InternalState.SERVER_STARTED; ROOT_LOGGER.startingServer(serverName); transition(); }
[ "Start a managed server.\n\n@param factory the boot command factory" ]
[ "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>", "Add server redirect to a profile, using current active ServerGroup\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@return ID of added ServerRedirect\n@throws Exception exception", "Removes a set of calendar hours from the day to which they\nare currently attached.\n\n@param hours calendar hours instance", "Determines the encoding block groups for the specified data.", "Use this API to link sslcertkey resources.", "Loads the data from the database. Override this method if the objects\nshall be loaded in a specific way.\n\n@return The loaded data", "Overridden to ensure that our timestamp handling is as expected", "Manually set the breaker to be reset and ready for use. This\nis only useful after a manual trip otherwise the breaker will\ntrip automatically again if the service is still unavailable.\nJust like a real breaker. WOOT!!!", "Recursively add indirect subclasses to a class record.\n\n@param directSuperClass\nthe superclass to add (together with its own superclasses)\n@param subClassRecord\nthe subclass to add to" ]
void decodeContentType(String rawLine) { int slash = rawLine.indexOf('/'); if (slash == -1) { // if (DEBUG) getLogger().debug("decoding ... no slash found"); return; } else { primaryType = rawLine.substring(0, slash).trim(); } int semicolon = rawLine.indexOf(';'); if (semicolon == -1) { // if (DEBUG) getLogger().debug("decoding ... no semicolon found"); secondaryType = rawLine.substring(slash + 1).trim(); return; } // have parameters secondaryType = rawLine.substring(slash + 1, semicolon).trim(); Header h = new Header(rawLine); parameters = h.getParams(); }
[ "Decode a content Type header line into types and parameters pairs" ]
[ "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining", "Creates a field map for tasks.\n\n@param props props data", "Retrieve a number of rows matching the supplied query.\n\n@param sql query statement\n@return result set\n@throws SQLException", "Use this API to fetch systemuser resource of given name .", "Use this API to fetch all the appfwlearningsettings resources that are configured on netscaler.", "Add a '=' clause so the column must be equal to the value.", "Print the parameters of the parameterized type t", "Adds the index input to list.\n\n@param name the name\n@param in the in\n@param postingsFormatName the postings format name\n@return the string\n@throws IOException Signals that an I/O exception has occurred.", "Read an individual Phoenix task relationship.\n\n@param relation Phoenix task relationship" ]
private void initAdapter() { Connection tmp = null; DatabaseMetaData meta = null; try { tmp = _ds.getConnection(); meta = tmp.getMetaData(); product = meta.getDatabaseProductName().toLowerCase(); } catch (SQLException e) { throw new DatabaseException("Cannot connect to the database", e); } finally { try { if (tmp != null) { tmp.close(); } } catch (SQLException e) { // Nothing to do. } } DbAdapter newAdpt = null; for (String s : ADAPTERS) { try { Class<? extends DbAdapter> clazz = Db.class.getClassLoader().loadClass(s).asSubclass(DbAdapter.class); newAdpt = clazz.newInstance(); if (newAdpt.compatibleWith(meta)) { adapter = newAdpt; break; } } catch (Exception e) { throw new DatabaseException("Issue when loading database adapter named: " + s, e); } } if (adapter == null) { throw new DatabaseException("Unsupported database! There is no JQM database adapter compatible with product name " + product); } else { jqmlogger.info("Using database adapter {}", adapter.getClass().getCanonicalName()); } }
[ "Creates the adapter for the target database." ]
[ "Returns the primary message codewords for mode 2.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "Gets the default options to be passed when no custom properties are given.\n\n@return properties with formatter options", "Store some state on this request context associated with the specified interceptor instance.\nUsed where a single interceptor instance needs to associate state with each HTTP request.\n\n@param interceptor the interceptor instance\n@param stateName the key to store the state object under\n@param stateObjectToStore the state object to store\n@param <T> the type of the state object to store\n@see #getState(HttpConnectionInterceptor, String, Class)\n@since 2.6.0", "Logs a message for a case where the value of a property does not fit to\nits declared datatype.\n\n@param propertyIdValue\nthe property that was used\n@param datatype\nthe declared type of the property\n@param valueType\na string to denote the type of value", "Emit information about all of suite's tests.", "Convert a Java date into a Planner time.\n\n0800\n\n@param value Java Date instance\n@return Planner time value", "Remove all existing subscriptions", "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement the packet which reported the device’s disappearance", "Returns server group by ID\n\n@param id ID of server group\n@return ServerGroup\n@throws Exception exception" ]
public static String defaultHtml(HttpServletRequest request) { CmsObject cms = CmsFlexController.getController(request).getCmsObject(); // We only want the big red warning in Offline mode if (cms.getRequestContext().getCurrentProject().isOnlineProject()) { return "<div><!--Dynamic function not configured--></div>"; } else { Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms); String message = Messages.get().getBundle(locale).key(Messages.GUI_FUNCTION_DEFAULT_HTML_0); return "<div style=\"border: 2px solid red; padding: 10px;\">" + message + "</div>"; } }
[ "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output" ]
[ "Add the currentSceneObject to an active Level-of-Detail", "Retrieves the earliest start date for all assigned tasks.\n\n@return start date", "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", "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode", "Initialization necessary for editing a property bundle.\n\n@throws CmsLoaderException thrown if loading a bundle file fails.\n@throws CmsException thrown if loading a bundle file fails.\n@throws IOException thrown if loading a bundle file fails.", "Use this API to fetch sslfipskey resources of given names .", "Returns a new List containing the given objects.", "Add a photo to the user's favorites.\n\n@param photoId\nThe photo ID\n@throws FlickrException", "Returns redirect information for the given ID\n\n@param id ID of redirect\n@return ServerRedirect\n@throws Exception exception" ]
public static appfwsignatures get(nitro_service service, String name) throws Exception{ appfwsignatures obj = new appfwsignatures(); obj.set_name(name); appfwsignatures response = (appfwsignatures) obj.get_resource(service); return response; }
[ "Use this API to fetch appfwsignatures resource of given name ." ]
[ "Given a resource field number, this method returns the resource field name.\n\n@param key resource field number\n@return resource field name", "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.", "Stores all entries contained in the given map in the cache.", "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle", "Returns the y-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the y coordinate", "Attempts to clear the global log context used for embedded servers.", "Get the first non-white X point\n@param img Image n memory\n@return the x start", "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched.", "Returns the configured body or the default value." ]