query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static void symmetric(DMatrixRMaj A, double min, double max, Random rand) { if( A.numRows != A.numCols ) throw new IllegalArgumentException("A must be a square matrix"); double range = max-min; int length = A.numRows; for( int i = 0; i < length; i++ ) { for( int j = i; j < length; j++ ) { double val = rand.nextDouble()*range + min; A.set(i,j,val); A.set(j,i,val); } } }
[ "Sets the provided square matrix to be a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\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." ]
[ "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer", "Rotate list of String. Used for randomize selection of received endpoints\n\n@param strings\nlist of Strings\n@return the same list in random order", "Button onClick listener.\n\n@param v", "Populate a sorted list of custom fields to ensure that these fields\nare written to the file in a consistent order.", "Requests that the given namespace be started listening to for change events.\n\n@param namespace the namespace to listen for change events on.", "Replies the elements of the given map except the pair with the given key.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param key the key to remove.\n@return the map with the content of the map except the key.\n@since 2.15", "This method opens the named project, applies the named filter\nand displays the filtered list of tasks or resources. If an\ninvalid filter name is supplied, a list of valid filter names\nis shown.\n\n@param filename input file name\n@param filtername input filter name", "Subtracts vector v1 from v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Use this API to fetch a responderglobal_responderpolicy_binding resources." ]
public void setMenuView(int layoutResId) { mMenuContainer.removeAllViews(); mMenuView = LayoutInflater.from(getContext()).inflate(layoutResId, mMenuContainer, false); mMenuContainer.addView(mMenuView); }
[ "Set the menu view from a layout resource.\n\n@param layoutResId Resource ID to be inflated." ]
[ "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", "Construct an InterestRateSwapLegProductDescriptor from a node in a FIPXML file.\n\n@param leg The node containing the leg.\n@param forwardCurveName Forward curve name form outside the node.\n@param discountCurveName Discount curve name form outside the node.\n@param daycountConvention Daycount convention from outside the node.\n@return Descriptor of the swap leg.", "Appends a line separator node that will only be effective if the current line contains non-whitespace text.\n\n@return the given parent node", "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path", "Adds an index to the table for the given index descriptor.\n\n@param indexDescDef The index descriptor\n@param tableDef The table", "Whether the address has the well-known prefix for IPv4 translatable addresses as in rfc 6052 and 6144\n@return", "try to find the first none null table name for the given class-descriptor.\nIf cld has extent classes, all of these cld's searched for the first none null\ntable name.", "Inits the ws client.\n\n@param context the context\n@throws Exception the exception", "is ready to service requests" ]
public void addExtentClass(String newExtentClassName) { extentClassNames.add(newExtentClassName); if(m_repository != null) m_repository.addExtent(newExtentClassName, this); }
[ "add an Extent class to the current descriptor\n@param newExtentClassName name of the class to add" ]
[ "Pauses the playback of a sound.", "Returns whether this represents a valid host name or address format.\n@return", "Updates the information about the user status for this terms of service with any info fields that have\nbeen modified locally.\n@param info the updated info.", "Clone layer information considering what may be copied to the client.\n\n@param original layer info\n@return cloned copy including only allowed information", "returns a sorted array of enum constants", "This function returns the first external IP address encountered\n\n@return IP address or null\n@throws Exception", "caching is not supported for this method", "File URLs whose protocol are in these list will be processed as jars\ncontaining classes\n\n@param fileProtocols\nComma separated list of file protocols that will be considered\nas jar files and scanned", "Writes no-value restriction.\n\n@param rdfWriter\nthe writer to write the restrictions to\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param subject\nnode representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples" ]
public void finished(final ProcessorGraphNode processorGraphNode) { this.processorLock.lock(); try { this.runningProcessors.remove(processorGraphNode.getProcessor()); this.executedProcessors.put(processorGraphNode.getProcessor(), null); } finally { this.processorLock.unlock(); } }
[ "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished." ]
[ "Executes the mojo.", "A map of the header key value pairs. Keys are strings and values are either list of strings or a\nstring.\n\n@param headers the header map", "Print a resource UID.\n\n@param value resource UID value\n@return resource UID string", "Returns the primarykey fields.\n\n@return The field descriptors of the primarykey fields", "Use this API to delete dnssuffix of given name.", "Log a warning for the given operation at the provided address for the given attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param operation where which problem occurred\n@param message custom error message to append\n@param attribute attribute we that has problem", "Download a specified URL to a file\n\n@param stringUrl URL to use\n@param parameters HTTP Headers\n@param fileToSave File to save content\n@throws IOException I/O error happened", "Checks that the targetClass is widening the argument class\n\n@param argumentClass\n@param targetClass\n@return", "Delivers the correct JSON Object for the Stencilset\n\n@param stencilSet\n@throws org.json.JSONException" ]
public List<ProjectListType.Project> getProject() { if (project == null) { project = new ArrayList<ProjectListType.Project>(); } return this.project; }
[ "Gets the value of the project property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the project property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetProject().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link ProjectListType.Project }" ]
[ "Use this API to fetch dnsview_binding resource of given name .", "Retrieve a UUID in the form required by Primavera PMXML.\n\n@param guid UUID instance\n@return formatted UUID", "Specifies the container object class to be instantiated\n\n@param containerObjectClass\ncontainer object class to be instantiated\n\n@return the current builder instance", "This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true if the relation is found and removed", "Gets a Map of attributes from a json object given a path to traverse.\n\n@param record a JSONObject to traverse.\n@param path the json path to follow.\n@return the attributes as a {@link HashMap}, or null if it was not found.", "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "Sort and order steps to avoid unwanted generation", "Use this API to fetch lbvserver_filterpolicy_binding resources of given name .", "Get a collection of public photos for the specified user ID.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param userId\nThe User ID\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return The PhotoList collection\n@throws FlickrException" ]
private Integer getIntegerPropertyOverrideValue(String name, String key) { if (properties != null) { String propertyName = getPropertyName(name, key); String propertyOverrideValue = properties.getProperty(propertyName); if (propertyOverrideValue != null) { try { return Integer.parseInt(propertyOverrideValue); } catch (NumberFormatException e) { logger.error("Could not parse property override key={}, value={}", key, propertyOverrideValue); } } } return null; }
[ "Get an integer property override value.\n@param name the {@link CircuitBreaker} name.\n@param key the property override key.\n@return the property override value, or null if it is not found." ]
[ "Creates a new Message from the specified text.", "Write a single resource.\n\n@param mpxj Resource instance", "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", "get bearer token returned by IAM in JSON format", "Reset the internal state of this object back to what it originally was.\n\nUsed then reloading a server or in a slave host controller following a post-boot reconnect\nto the master.", "Use this API to delete linkset of given name.", "Creates a scheduled thread pool where each thread has the daemon\nproperty set to true. This allows the program to quit without\nexplicitly calling shutdown on the pool\n\n@param corePoolSize the number of threads to keep in the pool,\neven if they are idle\n\n@return a newly created scheduled thread pool", "Configures the configuration selector.", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters" ]
public boolean setCurrentPage(final int page) { Log.d(TAG, "setPageId pageId = %d", page); return (page >= 0 && page < getCheckableCount()) && check(page); }
[ "Sets selected page implicitly\n@param page new selected page\n@return true if the page has been selected successfully" ]
[ "Handle bind service event.\n@param service Service instance\n@param props Service reference properties", "Make a composite filter from the given sub-filters using AND to combine filters.", "Set the name of the schema containing the Primavera tables.\n\n@param schema schema name.", "Use this API to add onlinkipv6prefix.", "Search down all extent classes and return max of all found\nPK values.", "Returns a short class name for an object.\nThis is the class name stripped of any package name.\n\n@return The name of the class minus a package name, for example\n<code>ArrayList</code>", "This filter changes the amount of color in each of the three channels.\n\n@param r The amount of redness in the picture. Can range from -100 to 100 in percentage.\n@param g The amount of greenness in the picture. Can range from -100 to 100 in percentage.\n@param b The amount of blueness in the picture. Can range from -100 to 100 in percentage.\n@throws IllegalArgumentException if {@code r}, {@code g}, or {@code b} are outside of bounds.", "Merges the item from the resultLocaleValues into the corresponding item of the localeValues.\n@param item the item to merge\n@param localeValues the values where the item gets merged into\n@param resultLocaleValues the values where the item to merge is read from\n@return the modified localeValues with the merged item", "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" ]
public static void ensureChildElement(DomXmlElement parentElement, DomXmlElement childElement) { Node parent = childElement.unwrap().getParentNode(); if (parent == null || !parentElement.unwrap().isEqualNode(parent)) { throw LOG.elementIsNotChildOfThisElement(childElement, parentElement); } }
[ "Ensures that the element is child element of the parent element.\n\n@param parentElement the parent xml dom element\n@param childElement the child element\n@throws SpinXmlElementException if the element is not child of the parent element" ]
[ "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream", "Helper method to track storage operations & time via StreamingStats.\n\n@param startNs", "Answer the SQL-Clause for a LikeCriteria\n\n@param c\n@param buf", "Deploys application reading resources from specified classpath location\n\n@param applicationName to configure in cluster\n@param classpathLocations where resources are read\n@throws IOException", "Remove all references to a groupId\n\n@param groupIdToRemove ID of group", "Return the authorization URL which is used to perform the authorization_code based OAuth2 flow.\n@param clientID the client ID to use with the connection.\n@param redirectUri the URL to which Box redirects the browser when authentication completes.\n@param state the text string that you choose.\nBox sends the same string to your redirect URL when authentication is complete.\n@param scopes this optional parameter identifies the Box scopes available\nto the application once it's authenticated.\n@return the authorization URL", "Concatenate the arrays.\n\n@param array First array.\n@param array2 Second array.\n@return Concatenate between first and second array.", "Use this API to fetch tmsessionpolicy_binding resource of given name .", "Return the NTSC gray level of an RGB value.\n@param rgb1 the input pixel\n@return the gray level (0-255)" ]
public Sites getSitesInformation() throws IOException { MwDumpFile sitesTableDump = getMostRecentDump(DumpContentType.SITES); if (sitesTableDump == null) { return null; } // Create a suitable processor for such dumps and process the file: MwSitesDumpFileProcessor sitesDumpFileProcessor = new MwSitesDumpFileProcessor(); sitesDumpFileProcessor.processDumpFileContents( sitesTableDump.getDumpFileStream(), sitesTableDump); return sitesDumpFileProcessor.getSites(); }
[ "Processes the most recent dump of the sites table to extract information\nabout registered sites.\n\n@return a Sites objects that contains the extracted information, or null\nif no sites dump was available (typically in offline mode without\nhaving any previously downloaded sites dumps)\n@throws IOException\nif there was a problem accessing the sites table dump or the\ndump download directory" ]
[ "Removes the specified type from the frame.", "Scans a single class for Swagger annotations - does not invoke ReaderListeners", "Returns the value that has to be set for the dynamic attribute.\n\n@param file the file where the current content is stored\n@param value the content value that is represented by the attribute\n@param attributeName the attribute's name\n@param editedLocalEntity the entities that where edited last\n@return the value that has to be set for the dynamic attribute.", "Traverses the test case annotations. Will inject a HiveShell in the test case that envelopes the HiveServer.", "Get the spatial object from the cache.\n\n@param key key to get object for\n@param type type of object which should be returned\n@return object for key or null if object does not exist or is a different type", "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid", "Helper method to add a Java integer value to a message digest.\n\n@param digest the message digest being built\n@param value the integer whose bytes should be included in the digest", "This method extracts calendar data from a Planner file.\n\n@param project Root node of the Planner file", "Used to create a new retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param type the type of the retention policy. Can be \"finite\" or \"indefinite\".\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@return the created retention policy's info." ]
protected static void captureSystemStreams(boolean captureOut, boolean captureErr){ if(captureOut){ System.setOut(new RedwoodPrintStream(STDOUT, realSysOut)); } if(captureErr){ System.setErr(new RedwoodPrintStream(STDERR, realSysErr)); } }
[ "Captures System.out and System.err and redirects them\nto Redwood logging.\n@param captureOut True is System.out should be captured\n@param captureErr True if System.err should be captured" ]
[ "Read a single outline code field extended attribute.\n\n@param entityID parent entity\n@param row field data", "Creates, writes and loads a new keystore and CA root certificate.", "Set value for given object field.\n\n@param object object to be updated\n@param field field name\n@param value field value\n\n@throws NoSuchMethodException if property writer is not available\n@throws InvocationTargetException if property writer throws an exception\n@throws IllegalAccessException if property writer is inaccessible", "Dump raw data as hex.\n\n@param buffer buffer\n@param offset offset into buffer\n@param length length of data to dump\n@param ascii true if ASCII should also be printed\n@param columns number of columns\n@param prefix prefix when printing\n@return hex dump", "If this address was resolved from a host, returns that host. Otherwise, does a reverse name lookup.", "Returns a string that should be used as a label for the given item. The\nmethod also ensures that each label is used for only one class. Other\nclasses with the same label will have their QID added for disambiguation.\n\n@param entityIdValue\nthe item to label\n@return the label", "Get the Attribute metadata for an MBean by name.\n@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values.", "Return true only if the node has any of the named annotations\n@param node - the AST Node to check\n@param names - the names of the annotations\n@return true only if the node has any of the named annotations", "Stops the playback of a sound and destroys the corresponding Sound Object or Soundfield." ]
protected void appendHavingClause(StringBuffer having, Criteria crit, StringBuffer stmt) { if (having.length() == 0) { having = null; } if (having != null || crit != null) { stmt.append(" HAVING "); appendClause(having, crit, stmt); } }
[ "appends a HAVING-clause to the Statement\n@param having\n@param crit\n@param stmt" ]
[ "Sets current state\n@param state new state", "Create parameter converters from methods annotated with @AsParameterConverter\n@see {@link AbstractStepsFactory}", "Sets a new image\n\n@param BufferedImage imagem", "Returns the red color component of a color from a vertex color set.\n\n@param vertex the vertex index\n@param colorset the color set\n@return the red color component", "Attempts to add classification to a file. If classification already exists then do update.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type on the file.", "Invokes the ready tasks.\n\n@param context group level shared context that need be passed to\n{@link TaskGroupEntry#invokeTaskAsync(boolean, InvocationContext)}\nmethod of each entry in the group when it is selected for execution\n\n@return an observable that emits the result of tasks in the order they finishes.", "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.", "Delete an artifact in the Grapes server\n\n@param gavc\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Returns the compact task records for all tasks with the given tag.\nTasks can have more than one tag at a time.\n\n@param tag The tag to fetch tasks from.\n@return Request object" ]
public static Chart getMSDLineWithFreeModelChart(Trajectory t, int lagMin, int lagMax, double timelag, double diffusionCoefficient, double intercept) { double[] xData = new double[lagMax - lagMin + 1]; double[] yData = new double[lagMax - lagMin + 1]; double[] modelData = new double[lagMax - lagMin + 1]; MeanSquaredDisplacmentFeature msdeval = new MeanSquaredDisplacmentFeature( t, lagMin); msdeval.setTrajectory(t); msdeval.setTimelag(lagMin); for (int i = lagMin; i < lagMax + 1; i++) { msdeval.setTimelag(i); double msdhelp = msdeval.evaluate()[0]; xData[i - lagMin] = i; yData[i - lagMin] = msdhelp; modelData[i - lagMin] = intercept + 4*diffusionCoefficient*(i*timelag);//4 * D * Math.pow(i * timelag, a); } // Create Chart Chart chart = QuickChart.getChart("MSD Line", "LAG", "MSD", "MSD", xData, yData); chart.addSeries("y=4*D*t + a", xData, modelData); // Show it //new SwingWrapper(chart).displayChart(); return chart; }
[ "Plots the MSD curve with the trajectory t and adds the fitted model for free diffusion.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param intercept" ]
[ "Use this API to fetch cacheselector resource of given name .", "Notifies that an existing footer item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Notifies that an existing footer item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Use this API to update nsip6.", "Try to kill a given process.\n\n@param processName the process name\n@param id the process integer id, or {@code -1} if this is not relevant\n@return {@code true} if the command succeeded, {@code false} otherwise", "Add a Opacity bar to the color wheel.\n\n@param bar The instance of the Opacity bar.", "Setter for \"addContentInfo\", indicating if content information should be added.\n@param doAddInfo The value of the \"addContentInfo\" attribute of the tag", "Exceptions specific to each operation is handled in the corresponding\nsubclass. At this point we don't know the reason behind this exception.\n\n@param exception", "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object" ]
public static <T> T mode(Collection<T> values) { Set<T> modes = modes(values); return modes.iterator().next(); }
[ "Returns the mode in the Collection. If the Collection has multiple modes, this method picks one\narbitrarily." ]
[ "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps", "Get a collection of methods declared on this object by method name.\n\n@param name the name of the method\n@return the (possibly empty) collection of methods with the given name", "Delete the first n items from the list\n\n@param newStart the logsegment who's index smaller than newStart will be deleted.\n@return the deleted segment", "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record", "Check that the range resulting from the mask is contiguous, otherwise we cannot represent it.\n\nFor instance, for the range 0 to 3 (bits are 00 to 11), if we mask all 4 numbers from 0 to 3 with 2 (ie bits are 10),\nthen we are left with 1 and 3. 2 is not included. So we cannot represent 1 and 3 as a contiguous range.\n\nThe underlying rule is that mask bits that are 0 must be above the resulting range in each segment.\n\nAny bit in the mask that is 0 must not fall below any bit in the masked segment range that is different between low and high.\n\nAny network mask must eliminate the entire segment range. Any host mask is fine.\n\n@param maskValue\n@param segmentPrefixLength\n@return\n@throws PrefixLenException", "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.", "Scale all widgets in Main Scene hierarchy\n@param scale", "Stop finding waveforms for all active players.", "Use this API to fetch wisite_accessmethod_binding resources of given name ." ]
private static int getBinaryLength(int version, QrMode[] inputModeUnoptimized, int[] inputData, boolean gs1, int eciMode) { int i, j; QrMode currentMode; int inputLength = inputModeUnoptimized.length; int count = 0; int alphaLength; int percent = 0; // ZINT NOTE: in Zint, this call modifies the input mode array directly; here, we leave // the original array alone so that subsequent binary length checks don't irrevocably // optimize the mode array for the wrong QR Code version QrMode[] inputMode = applyOptimisation(version, inputModeUnoptimized); currentMode = QrMode.NULL; if (gs1) { count += 4; } if (eciMode != 3) { count += 12; } for (i = 0; i < inputLength; i++) { if (inputMode[i] != currentMode) { count += 4; switch (inputMode[i]) { case KANJI: count += tribus(version, 8, 10, 12); count += (blockLength(i, inputMode) * 13); break; case BINARY: count += tribus(version, 8, 16, 16); for (j = i; j < (i + blockLength(i, inputMode)); j++) { if (inputData[j] > 0xff) { count += 16; } else { count += 8; } } break; case ALPHANUM: count += tribus(version, 9, 11, 13); alphaLength = blockLength(i, inputMode); // In alphanumeric mode % becomes %% if (gs1) { for (j = i; j < (i + alphaLength); j++) { // TODO: need to do this only if in GS1 mode? or is the other code wrong? https://sourceforge.net/p/zint/tickets/104/#227b if (inputData[j] == '%') { percent++; } } } alphaLength += percent; switch (alphaLength % 2) { case 0: count += (alphaLength / 2) * 11; break; case 1: count += ((alphaLength - 1) / 2) * 11; count += 6; break; } break; case NUMERIC: count += tribus(version, 10, 12, 14); switch (blockLength(i, inputMode) % 3) { case 0: count += (blockLength(i, inputMode) / 3) * 10; break; case 1: count += ((blockLength(i, inputMode) - 1) / 3) * 10; count += 4; break; case 2: count += ((blockLength(i, inputMode) - 2) / 3) * 10; count += 7; break; } break; } currentMode = inputMode[i]; } } return count; }
[ "Calculate the actual bit length of the proposed binary string." ]
[ "Closes the server socket.", "Converts from RGB to Hexadecimal notation.", "Lift a Java Func0 to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Should be called each frame.", "Sets the highlight strength for the InnerPaddingOutline.\n\n@param _highlightStrength The highlighting value for the outline.", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.", "Utility function to set the current value in a ListBox.\n\n@return returns true if the option corresponding to the value\nwas successfully selected in the ListBox", "Creates an immutable copy that we can cache.", "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape." ]
public static base_responses flush(nitro_service client, cachecontentgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cachecontentgroup flushresources[] = new cachecontentgroup[resources.length]; for (int i=0;i<resources.length;i++){ flushresources[i] = new cachecontentgroup(); flushresources[i].name = resources[i].name; flushresources[i].query = resources[i].query; flushresources[i].host = resources[i].host; flushresources[i].selectorvalue = resources[i].selectorvalue; flushresources[i].force = resources[i].force; } result = perform_operation_bulk_request(client, flushresources,"flush"); } return result; }
[ "Use this API to flush cachecontentgroup resources." ]
[ "Set the options based on the tag elements of the ClassDoc parameter", "Converts the node to JSON\n@return JSON object", "Create the environment as specified by @Template or\narq.extension.ce-cube.openshift.template.* properties.\n<p>\nIn the future, this might be handled by starting application Cube\nobjects, e.g. CreateCube(application), StartCube(application)\n<p>\nNeeds to fire before the containers are started.", "Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name .", "Sets any application-specific custom fields. The values\nare presented to the application and the iPhone doesn't\ndisplay them automatically.\n\nThis can be used to pass specific values (urls, ids, etc) to\nthe application in addition to the notification message\nitself.\n\n@param key the custom field name\n@param value the custom field value\n@return this", "Use this API to add sslcertkey.", "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "Get a reader implementation class to perform API calls with while specifying\nan explicit page size for paginated API calls. This gets translated to a per_page=\nparameter on API requests. Note that Canvas does not guarantee it will honor this page size request.\nThere is an explicit maximum page size on the server side which could change. The default page size\nis 10 which can be limiting when, for example, trying to get all users in a 800 person course.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param paginationPageSize Requested pagination page size\n@param <T> The reader type to request an instance of\n@return An instance of the requested reader class", "Bessel function of the second kind, of order 0.\n\n@param x Value.\n@return Y0 value." ]
public void stopAnimation() { if(widget != null) { widget.removeStyleName("animated"); widget.removeStyleName(transition.getCssName()); widget.removeStyleName(CssName.INFINITE); } }
[ "Stop an animation." ]
[ "Use this API to update responderparam.", "Initialize the local plugins registry\n@param context the servlet context necessary to grab\nthe files inside the servlet.\n@return the set of local plugins organized by name", "Get the permission information for the specified photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nThe photo id\n@return The Permissions object\n@throws FlickrException", "Creates a curator built using the given zookeeper connection string and timeout", "Use this API to update nsrpcnode resources.", "Tests the string edit distance function.", "Register the Rowgroup buckets and places the header cells for the rows", "get specific property value of job.\n\n@param id the id\n@param property the property name/path\n@return the property value", "Try to get the line number associated with the given member.\n\nThe reflection API does not expose such an info and so we need to analyse the bytecode. Unfortunately, it seems there is no way to get this kind of\ninformation for fields. Moreover, the <code>LineNumberTable</code> attribute is just optional, i.e. the compiler is not required to store this\ninformation at all. See also <a href=\"http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.1\">Java Virtual Machine Specification</a>\n\nImplementation note: it wouldn't be appropriate to add a bytecode scanning dependency just for this functionality, therefore Apache BCEL included in\nOracle JDK 1.5+ and OpenJDK 1.6+ is used. Other JVMs should not crash as we only use it if it's on the classpath and by means of reflection calls.\n\n@param member\n@param resourceLoader\n@return the line number or 0 if it's not possible to find it" ]
public synchronized void stop(long quietPeriod, long timeout, TimeUnit unit) throws Exception { if (state == State.STOPPED) { LOG.debug("Ignore stop() call on HTTP service {} since it has already been stopped.", serviceName); return; } LOG.info("Stopping HTTP Service {}", serviceName); try { try { channelGroup.close().awaitUninterruptibly(); } finally { try { shutdownExecutorGroups(quietPeriod, timeout, unit, bootstrap.config().group(), bootstrap.config().childGroup(), eventExecutorGroup); } finally { resourceHandler.destroy(handlerContext); } } } catch (Throwable t) { state = State.FAILED; throw t; } state = State.STOPPED; LOG.debug("Stopped HTTP Service {} on address {}", serviceName, bindAddress); }
[ "Stops the HTTP service gracefully and release all resources.\n\n@param quietPeriod the quiet period as described in the documentation of {@link EventExecutorGroup}\n@param timeout the maximum amount of time to wait until the executor is\n{@linkplain EventExecutorGroup#shutdown()}\nregardless if a task was submitted during the quiet period\n@param unit the unit of {@code quietPeriod} and {@code timeout}\n@throws Exception if there is exception raised during shutdown." ]
[ "Delete the proxy history for the active profile\n\n@throws Exception exception", "Load the layers based on the default setup.\n\n@param jbossHome the jboss home directory\n@param productConfig the product config\n@param repoRoots the repository roots\n@return the available layers\n@throws IOException", "Initialize the random generator with a seed.", "blocks until there is a connection", "don't run on main thread", "Queries database meta data to check for the existence of\nspecific tables.", "Enable or disable this component.\n@param flag true to enable, false to disable.\n@see #enable()\n@see #disable()\n@see #isEnabled()", "Infer the type of and create a new output variable using the results from the right side of the equation.\nIf the type is already known just return that.", "Validates for non-conflicting roles" ]
public static ipset_nsip6_binding[] get(nitro_service service, String name) throws Exception{ ipset_nsip6_binding obj = new ipset_nsip6_binding(); obj.set_name(name); ipset_nsip6_binding response[] = (ipset_nsip6_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch ipset_nsip6_binding resources of given name ." ]
[ "Finish the work of building and sending a protocol packet.\n\n@param kind the type of packet to create and send\n@param payload the content which will follow our device name in the packet\n@param destination where the packet should be sent\n@param port the port to which the packet should be sent\n\n@throws IOException if there is a problem sending the packet", "Use this API to save cachecontentgroup resources.", "Resolve the given string using any plugin and the DMR resolve method", "Retrieves the default calendar for this project based on the calendar name\ngiven in the project properties. If a calendar of this name cannot be found, then\nthe first calendar listed for the project will be returned. If the\nproject contains no calendars, then a default calendar is added.\n\n@return default projectCalendar instance", "Create a mapping from entity names to entity ID values.", "Set cached value for the attribute. Used for dynamically loaded values in the Acacia content editor.\n\n@param attribute the attribute for which the value should be cached\n@param value the value to cache", "Add a single exception to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param date calendar exception", "Update the default time unit for work based on data read from the file.\n\n@param column column data", "QR decomposition.\n\nDecomposes (m,n) matrix A into a (m,m) matrix Q and an (m,n) matrix R such that\nQ is orthogonal, R is upper triangular and Q * R = A\n\nNote that if A has more rows than columns, then the lower rows of R will contain\nonly zeros, such that the corresponding later columns of Q do not enter the computation\nat all. For some reason, LAPACK does not properly normalize those columns.\n\n@param A matrix\n@return QR decomposition" ]
public boolean matchesWithMask(IPAddress other, IPAddress mask) { return getSection().matchesWithMask(other.getSection(), mask.getSection()); }
[ "Applies the mask to this address and then compares values with the given address\n\n@param mask\n@param other\n@return" ]
[ "This method calculates the total amount of working time in a single\nday, which intersects with the supplied time range.\n\n@param hours collection of working hours in a day\n@param startDate time range start\n@param endDate time range end\n@return length of time in milliseconds", "Writes a list of timephased data to the MSPDI file.\n\n@param assignmentID current assignment ID\n@param list output list of timephased data items\n@param data input list of timephased data\n@param type list type (planned or completed)", "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Return all valid tenors for a given moneyness and maturity.\n\n@param moneynessBP The moneyness in bp for which to get the tenors.\n@param maturityInMonths The maturities in months for which to get the tenors.\n@return The tenors in months.", "return either the first space or the first nbsp", "Tries to stop the JLAN server and return after it is stopped, but will also return if the thread hasn't stopped after MAX_SHUTDOWN_WAIT_MILLIS.", "A specific, existing task can be updated by making a PUT request on the\nURL for that task. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated task record.\n\n@param task The task to update.\n@return Request object", "Returns the orthogonal V matrix.\n\n@param V If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix.", "Use this API to fetch all the locationfile resources that are configured on netscaler." ]
public static void copy(String in, Writer out) throws IOException { Assert.notNull(in, "No input String specified"); Assert.notNull(out, "No Writer specified"); try { out.write(in); } finally { try { out.close(); } catch (IOException ex) { } } }
[ "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors" ]
[ "Returns the compact records for all teams to which user is assigned.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object", "Generate attachment extension from mime type\n\n@param type valid mime-type\n@return extension if it's known for specified mime-type, or empty string\notherwise", "Returns the aliased certificate. Certificates are aliased by their hostname.\n@see ThumbprintUtil\n@param alias\n@return\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchProviderException\n@throws NoSuchAlgorithmException\n@throws CertificateException\n@throws SignatureException\n@throws CertificateNotYetValidException\n@throws CertificateExpiredException\n@throws InvalidKeyException\n@throws CertificateParsingException", "Acquire transaction with a single permit in a thread. Transactions are acquired reentrantly, i.e.\nwith respect to transactions already acquired in the thread.\n\n@return the number of acquired permits, identically equal to 1.", "Hides the Loader component", "Initializes the counters for a property to zero if not done yet.\n\n@param usageStatistics\nstatistics object to initialize\n@param property\nthe property to count", "Extract raw table data from the input stream.\n\n@param is input stream", "Perform the given work with a Jedis connection from the given pool.\nWraps any thrown checked exceptions in a RuntimeException.\n\n@param pool the resource pool\n@param work the work to perform\n@param <V> the result type\n@return the result of the given work", "adds a TTL index to the given collection. The TTL must be a positive integer.\n\n@param collection the collection to use for the TTL index\n@param field the field to use for the TTL index\n@param ttl the TTL to set on the given field\n@throws IllegalArgumentException if the TTL is less or equal 0" ]
@SuppressWarnings( { "unchecked" }) public static <K1, K2> TwoDimensionalCounter<K2, K1> reverseIndexOrder(TwoDimensionalCounter<K1, K2> cc) { // they typing on the outerMF is violated a bit, but it'll work.... TwoDimensionalCounter<K2, K1> result = new TwoDimensionalCounter<K2, K1>((MapFactory) cc.outerMF, (MapFactory) cc.innerMF); for (K1 key1 : cc.firstKeySet()) { ClassicCounter<K2> c = cc.getCounter(key1); for (K2 key2 : c.keySet()) { double count = c.getCount(key2); result.setCount(key2, key1, count); } } return result; }
[ "Produces a new ConditionalCounter.\n\n@return a new ConditionalCounter, where order of indices is reversed" ]
[ "Facade method facilitating the creation of subshell.\nSubshell is created and run inside Command method and shares the same IO and naming strategy.\n\nRun the obtained Shell with commandLoop().\n\n@param pathElement sub-prompt\n@param parent Shell to be subshell'd\n@param appName The app name string\n@param mainHandler Command handler\n@param auxHandlers Aux handlers to be passed to all subshells.\n@return subshell", "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", "Cleanup function to remove all allocated listeners", "Runs the module import script.\n\n@param cms the CMS context to use\n@param module the module for which to run the script", "Replaces the proxy url with the correct url from the tileMap.\n\n@return correct url to TMS service", "Helper method that encapsulates the minimum logic for adding jobs to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJsons\na list of jobs serialized as JSON", "Converts from a Fluo RowColumn to a Accumulo Key\n\n@param rc RowColumn\n@return Key", "Removes obsolete elements from names and shared elements.\n\n@param names Shared element names.\n@param sharedElements Shared elements.\n@param elementsToRemove The elements that should be removed.", "Returns true if we should skip this bar, i.e. the bar only has a single child task.\n\n@param row bar row to test\n@return true if this bar should be skipped" ]
@Nonnull public BiMap<String, String> getOutputMapper() { final BiMap<String, String> outputMapper = this.processor.getOutputMapperBiMap(); if (outputMapper == null) { return HashBiMap.create(); } return outputMapper; }
[ "Get the output mapper from processor." ]
[ "Gets the estimated time remaining in milliseconds based upon the total number of work units, the start time, and how many units have been done\nso far.\n\nThis should not be called before any work units have been done.", "Obtains a Pax local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Pax local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Parses an RgbaColor from a hexadecimal value.\n\n@return returns the parsed color", "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", "Look up the database server port reported by a given player. You should not use this port directly; instead\nask this class for a session to use while you communicate with the database.\n\n@param player the player number of interest\n\n@return the port number on which its database server is running, or -1 if unknown\n\n@throws IllegalStateException if not running", "Use this API to fetch all the sslservice resources that are configured on netscaler.", "Detach a connection from a key.\n\n@param key\nthe key\n@param connection\nthe connection", "Use this API to fetch all the systemsession resources that are configured on netscaler.", "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value." ]
public ContentAssistEntry createProposal(final String proposal, final ContentAssistContext context) { return this.createProposal(proposal, context.getPrefix(), context, ContentAssistEntry.KIND_UNKNOWN, null); }
[ "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid." ]
[ "Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder", "Determines the field via reflection look-up.\n\n@param clazz The java class to search in\n@param fieldName The field's name\n@return The field object or <code>null</code> if no matching field was found", "Returns the next object in the table.\n\n@throws IllegalStateException\nIf there was a problem extracting the object from SQL.", "returns a sorted array of enum constants", "Return a html view that contains the targeted license\n\n@param name String\n@return DbLicense", "Use this API to add vpath resources.", "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", "Determine the enum value corresponding to the first play state found in the packet.\n\n@return the proper value", "Use this API to fetch aaauser_aaagroup_binding resources of given name ." ]
public List<String> deviceTypes() { Integer count = json().size(DEVICE_FAMILIES); List<String> deviceTypes = new ArrayList<String>(count); for(int i = 0 ; i < count ; i++) { String familyNumber = json().stringValue(DEVICE_FAMILIES, i); if(familyNumber.equals("1")) deviceTypes.add("iPhone"); if(familyNumber.equals("2")) deviceTypes.add("iPad"); } return deviceTypes; }
[ "The list of device types on which this application can run." ]
[ "Process schedule options from SCHEDOPTIONS. This table only seems to exist\nin XER files, not P6 databases.", "Generates a comment regarding the parameters.\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@param action - the action performed by the user\n@param commentedText - comment text\n@param user - comment left by\n@param date - date comment was created\n@return - comment entity", "Removes a parameter from this configuration.\n\n@param key the parameter to remove", "Submit a command to the server.\n\n@param command The CLI command\n@return The DMR response as a ModelNode\n@throws CommandFormatException\n@throws IOException", "This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true if the relation is found and removed", "Helper method for getting the current parameter values from a list of annotated parameters.\n\n@param parameters The list of annotated parameter to look up\n@param manager The Bean manager\n@return The object array of looked up values", "End building the prepared script\n@param config the configuration for the script to build\n@return the new {@link LuaPreparedScript} instance", "Join N sets.", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails" ]
public AT_Row setPaddingLeftChar(Character paddingLeftChar) { if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingLeftChar(paddingLeftChar); } } return this; }
[ "Sets the left padding character for all cells in the row.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining" ]
[ "Mark for creation all objects that were included into dependent collections.\nMark for deletion all objects that were excluded from dependent collections.", "Set the attributes for the associated object.\n\n@param attributes attributes for associated objects\n@deprecated replaced by {@link #setAllAttributes(Map)} after introduction of nested associations", "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Ensure that the node is not null.\n\n@param node the node to ensure to be not null\n@param expression the expression was used to find the node\n@throws SpinXPathException if the node is null", "Adds a listener to this collection.\n\n@param listener The listener to add", "Use this API to delete nsacl6 resources of given names.", "Use this API to fetch hanode_routemonitor_binding resources of given name .", "Returns the dimension of the type of the current member.\n\n@return The member dimension\n@exception XDocletException if an error occurs\n@see OjbMemberTagsHandler#getMemberType()", "Shows the Loader component" ]
public void flush() throws IOException { checkMutable(); long startTime = System.currentTimeMillis(); channel.force(true); long elapsedTime = System.currentTimeMillis() - startTime; LogFlushStats.recordFlushRequest(elapsedTime); logger.debug("flush time " + elapsedTime); setHighWaterMark.set(getSizeInBytes()); logger.debug("flush high water mark:" + highWaterMark()); }
[ "Commit all written data to the physical disk\n\n@throws IOException any io exception" ]
[ "Compares two annotated types and returns true if they are the same", "Use this API to fetch filtered set of gslbservice resources.\nset the filter parameter values in filtervalue object.", "Returns a copy of this year-week with the new year and week, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newWeek the week to represent, validated from 1 to 53\n@return the year-week, not null", "Set some initial values.", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression", "Returns the currently set filters in a map column -> filter.\n\n@return the currently set filters in a map column -> filter.", "Returns a string describing 'time' as a time relative to 'now'.\n\nSee {@link android.text.format.DateUtils#getRelativeTimeSpanString} for full docs.\n\n@param context the context\n@param time the time to describe\n@param flags a bit mask for formatting options, usually FORMAT_ABBREV_RELATIVE\n@return a string describing 'time' as a time relative to 'now'.", "Generates a set of excluded method names.\n\n@param methodNames method names\n@return set of method names", "Returns a sampling of the source at the specified line and column,\nof null if it is unavailable." ]
private void deliverMasterYieldCommand(int toPlayer) { for (final MasterHandoffListener listener : getMasterHandoffListeners()) { try { listener.yieldMasterTo(toPlayer); } catch (Throwable t) { logger.warn("Problem delivering master yield command to listener", t); } } }
[ "Send a master handoff yield command to all registered listeners.\n\n@param toPlayer the device number to which we are being instructed to yield the tempo master role" ]
[ "Use this API to fetch authenticationradiuspolicy_authenticationvserver_binding resources of given name .", "Submits the configured assembly to Transloadit for processing.\n\n@param isResumable boolean value that tells the assembly whether or not to use tus.\n@return {@link AssemblyResponse} the response received from the Transloadit server.\n@throws RequestException if request to Transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Sets the target hosts from line by line text.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the parallel task builder\n@throws TargetHostsLoadException\nthe target hosts load exception", "Use this API to delete ntpserver of given name.", "Appends a String to the string representation of this number.\n\n@param value a Number\n@param right a String\n@return a String\n@since 1.0", "Returns a flag indicating if also expired resources should be found.\n@return A flag indicating if also expired resources should be found.", "Converts an image to a RGBA direct color model using a workaround via buffered image directly calling the\nColorConvert operation fails for unknown reasons ?!\n\n@param img image to convert\n@return converted image", "Demonstrates how to add an override to an existing path", "Get the values for a particular configuration property\n\n@param name - name of the property\n@return All values encountered or null" ]
public CustomHeadersInterceptor replaceHeader(String name, String value) { this.headers.put(name, new ArrayList<String>()); this.headers.get(name).add(value); return this; }
[ "Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself." ]
[ "Creates the event for endpoint with specific type.\n\n@param endpoint the endpoint\n@param type the type\n@return the event", "Use this API to fetch statistics of cmppolicy_stats resource of given name .", "Used by Pipeline jobs only", "Returns iterable containing assignments for this single legal hold policy.\nParameters can be used to filter retrieved assignments.\n@param type filter assignments of this type only.\nCan be \"file_version\", \"file\", \"folder\", \"user\" or null if no type filter is necessary.\n@param id filter assignments to this ID only. Can be null if no id filter is necessary.\n@param limit the limit of entries per page. Default limit is 100.\n@param fields the fields to retrieve.\n@return an iterable containing assignments for this single legal hold policy.", "Evalutes AND and OR operators.\n\n@param container data context\n@param promptValues responses to prompts\n@return operator result", "Adds OPT_X | OPT_HEX option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Abort an active extern transaction associated with the given PB.", "Use this API to fetch lbvserver_servicegroup_binding resources of given name .", "Populates a calendar exception instance.\n\n@param record MPX record\n@param calendar calendar to which the exception will be added\n@throws MPXJException" ]
@SuppressWarnings("SameParameterValue") public static long bytesToNumberLittleEndian(byte[] buffer, int start, int length) { long result = 0; for (int index = start + length - 1; index >= start; index--) { result = (result << 8) + unsign(buffer[index]); } return result; }
[ "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number" ]
[ "Adds a constructor for the proxy for each constructor declared by the base\nbean type.\n\n@param proxyClassType the Javassist class for the proxy\n@param initialValueBytecode", "Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.", "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.", "Use this API to fetch statistics of gslbservice_stats resource of given name .", "Displays text which shows the valid command line parameters, and then exits.", "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition", "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by the FlexiblePublisher.\nNull is returned if the FlexiblePublisher does not wrap a publisher of the specified type.\n@throws IllegalArgumentException In case publisher is not of type\n{@link org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher}", "Gets an array of of all registered ConstantMetaClassListener instances.", "Recursively update parent task dates.\n\n@param parentTask parent task" ]
private void writeAllEnvelopes(boolean reuse) { // perform remove of m:n indirection table entries first performM2NUnlinkEntries(); Iterator iter; // using clone to avoid ConcurentModificationException iter = ((List) mvOrderOfIds.clone()).iterator(); while(iter.hasNext()) { ObjectEnvelope mod = (ObjectEnvelope) mhtObjectEnvelopes.get(iter.next()); boolean insert = false; if(needsCommit) { insert = mod.needsInsert(); mod.getModificationState().commit(mod); if(reuse && insert) { getTransaction().doSingleLock(mod.getClassDescriptor(), mod.getObject(), mod.getIdentity(), Transaction.WRITE); } } /* arminw: important to call this cleanup method for each registered ObjectEnvelope, because this method will e.g. remove proxy listener objects for registered objects. */ mod.cleanup(reuse, insert); } // add m:n indirection table entries performM2NLinkEntries(); }
[ "commit all envelopes against the current broker" ]
[ "Constraint that ensures that the proxy-prefetching-limit has a valid value.\n\n@param def The descriptor (class, reference, collection)\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Convolve with a 2D kernel.\n@param kernel the kernel\n@param inPixels the input pixels\n@param outPixels the output pixels\n@param width the width\n@param height the height\n@param alpha include alpha channel\n@param edgeAction what to do at the edges", "Constructs and sets the layout parameters to have some gravity.\n\n@param gravity the gravity of the Crouton\n@return <code>this</code>, for chaining.\n@see android.view.Gravity", "Returns all found resolvers\n@return", "Disposes resources created to service this connection context", "helper function to convert strings to bytes as needed.\n\n@param key\n@param value", "Accessor method used to retrieve a Float 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", "Checks, if the end type is valid for the set pattern type.\n@return a flag, indicating if the end type is valid for the pattern type.", "Compare two versions\n\n@param other\n@return an integer: 0 if equals, -1 if older, 1 if newer\n@throws IncomparableException is thrown when two versions are not coparable" ]
public void forAllIndexDescriptorDefinitions(String template, Properties attributes) throws XDocletException { for (Iterator it = _curClassDef.getIndexDescriptors(); it.hasNext(); ) { _curIndexDescriptorDef = (IndexDescriptorDef)it.next(); generate(template); } _curIndexDescriptorDef = null; }
[ "Processes the template for all index descriptors of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"" ]
[ "Calculate conversion map.\n\n@param inRange Input range.\n@param outRange Output range.\n@param map Conversion map.", "Obtain the ID associated with a profile name\n\n@param profileName profile name\n@return ID of profile", "Builds the mapping table.", "Update the currency format.\n\n@param properties project properties\n@param decimalSeparator decimal separator\n@param thousandsSeparator thousands separator", "Add the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #set(String, String)", "Parses command-line and synchronizes metadata versions across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Counts additional occurrences of a property as the main property of\nstatements.\n\n@param usageStatistics\nstatistics object where count is stored\n@param property\nthe property to count\n@param count\nthe number of times to count the property", "Opens the jar, wraps any IOException.", "Get prototype name.\n\n@return prototype name" ]
public List<BoxTask.Info> getTasks(String... fields) { QueryStringBuilder builder = new QueryStringBuilder(); if (fields.length > 0) { builder.appendParam("fields", fields).toString(); } URL url = GET_TASKS_URL_TEMPLATE.buildWithQuery(this.getAPI().getBaseURL(), builder.toString(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); int totalCount = responseJSON.get("total_count").asInt(); List<BoxTask.Info> tasks = new ArrayList<BoxTask.Info>(totalCount); JsonArray entries = responseJSON.get("entries").asArray(); for (JsonValue value : entries) { JsonObject taskJSON = value.asObject(); BoxTask task = new BoxTask(this.getAPI(), taskJSON.get("id").asString()); BoxTask.Info info = task.new Info(taskJSON); tasks.add(info); } return tasks; }
[ "Gets a list of any tasks on this file with requested fields.\n\n@param fields optional fields to retrieve for this task.\n@return a list of tasks on this file." ]
[ "Removes empty space when \"fitToContent\" is true and real height of object is\ntaller than current bands height, otherwise, it is not modified\n\n@param band\n@param currHeigth\n@param fitToContent", "Finish service initialization.\n\n@throws GeomajasException oops", "Multiple of gradient windwos per masc relation of x y\n\n@return int[]", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "Checks that all the qualifiers in the set requiredQualifiers are in the set of qualifiers. Qualifier equality rules for\nannotation members are followed.\n\n@param requiredQualifiers The required qualifiers\n@param qualifiers The set of qualifiers to check\n@return True if all matches, false otherwise", "Sets the body of this request to a given JSON string.\n@param body the JSON string to use as the body.", "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
public static base_response add(nitro_service client, sslcertkey resource) throws Exception { sslcertkey addresource = new sslcertkey(); addresource.certkey = resource.certkey; addresource.cert = resource.cert; addresource.key = resource.key; addresource.password = resource.password; addresource.fipskey = resource.fipskey; addresource.inform = resource.inform; addresource.passplain = resource.passplain; addresource.expirymonitor = resource.expirymonitor; addresource.notificationperiod = resource.notificationperiod; addresource.bundle = resource.bundle; return addresource.add_resource(client); }
[ "Use this API to add sslcertkey." ]
[ "Discards any tracks from the hot cache that were loaded from a now-unmounted media slot, because they are no\nlonger valid.", "Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name .", "Convenience routine to move to the next iterator if needed.\n@return true if the iterator is changed, false if no changes.", "Obtain the ID associated with a profile name\n\n@param profileName profile name\n@return ID of profile", "This method uses the configured git credentials and repo, to test its validity.\nIn addition, in case the user requested creation of a new tag, it checks that\nanother tag with the same name doesn't exist", "Add the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #set(String, String)", "Load the given configuration file.", "Get logs for an app by specifying additional parameters.\n@param logRequest See {LogRequestBuilder}\n@return log stream response", "Creates a ServiceCall from an observable object and a callback.\n\n@param observable the observable to create from\n@param callback the callback to call when events happen\n@param <T> the type of the response\n@return the created ServiceCall" ]
public CollectionRequest<ProjectMembership> findByProject(String project) { String path = String.format("/projects/%s/project_memberships", project); return new CollectionRequest<ProjectMembership>(this, ProjectMembership.class, path, "GET"); }
[ "Returns the compact project membership records for the project.\n\n@param project The project for which to fetch memberships.\n@return Request object" ]
[ "Creates a Blob holding a single-sheet spreadsheet with a pivot of the domain objects. The sheet name is derived from the\nclass name.\n\n<p>\nMinimal requirements for the domain object are:\n</p>\n<ul>\n<li>\nOne property has annotation {@link PivotRow} and will be used as row identifier in left column of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotColumn}. Its values will be used in columns of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotValue}. Its values will be distributed in the pivot.\n</li>\n</ul>", "Broadcast a packet that tells some players to start playing and others to stop. If a player number is in\nboth sets, it will be told to stop. Numbers outside the range 1 to 4 are ignored.\n\n@param deviceNumbersToStart the players that should start playing if they aren't already\n@param deviceNumbersToStop the players that should stop playing\n\n@throws IOException if there is a problem broadcasting the command to the players\n@throws IllegalStateException if the {@code VirtualCdj} is not active", "Create a document that parses the tile's featureFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@return document\n@throws RenderException\noops", "Returns the compact task records for all tasks within the given project,\nordered by their priority within the project.\n\n@param projectId The project in which to search for tasks.\n@return Request object", "Finds an entity given its primary key.\n\n@throws RowNotFoundException\nIf no such object was found.\n@throws TooManyRowsException\nIf more that one object was returned for the given ID.", "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "Invokes the ready tasks.\n\n@param context group level shared context that need be passed to\n{@link TaskGroupEntry#invokeTaskAsync(boolean, InvocationContext)}\nmethod of each entry in the group when it is selected for execution\n\n@return an observable that emits the result of tasks in the order they finishes.", "Utility method used to convert an arbitrary Number into an Integer.\n\n@param value Number instance\n@return Integer instance", "Logs to Info if the debug level is greater than or equal to 1." ]
private static Class<?> extractTypeFromClass(Class<?> clazz, Class<?> source, int typeIndex, Map<TypeVariable, Type> typeVariableMap, Map<Integer, Integer> typeIndexesPerLevel, int nestingLevel, int currentLevel) { if (clazz.getName().startsWith("java.util.")) { return null; } if (clazz.getSuperclass() != null && isIntrospectionCandidate(clazz.getSuperclass())) { try { return extractType(clazz.getGenericSuperclass(), source, typeIndex, typeVariableMap, typeIndexesPerLevel, nestingLevel, currentLevel); } catch (MalformedParameterizedTypeException ex) { // from getGenericSuperclass() - ignore and continue with interface introspection } } Type[] ifcs = clazz.getGenericInterfaces(); if (ifcs != null) { for (Type ifc : ifcs) { Type rawType = ifc; if (ifc instanceof ParameterizedType) { rawType = ((ParameterizedType) ifc).getRawType(); } if (rawType instanceof Class && isIntrospectionCandidate((Class) rawType)) { return extractType(ifc, source, typeIndex, typeVariableMap, typeIndexesPerLevel, nestingLevel, currentLevel); } } } return null; }
[ "Extract the generic type from the given Class object.\n@param clazz the Class to check\n@param source the expected raw source type (can be {@code null})\n@param typeIndex the index of the actual type argument\n@param nestingLevel the nesting level of the target type\n@param currentLevel the current nested level\n@return the generic type as Class, or {@code null} if none" ]
[ "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title", "Takes a String and converts it to a Date\n\n@param dateString the date\n@return Date denoted by dateString", "Transfer the data from the inputStream to the outputStream. Then close both streams.", "Adds the parent package to the java.protocol.handler.pkgs system property.", "Extract information from a resource ID string with the resource type\nas the identifier.\n\n@param id the resource ID\n@param identifier the identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"\n@return the information extracted from the identifier", "Create a Date instance representing a specific time.\n\n@param hour hour 0-23\n@param minutes minutes 0-59\n@return new Date instance", "This method extracts assignment data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Use this API to Import responderhtmlpage.", "Creates a simple deployment description.\n\n@param name the name for the deployment\n@param serverGroups the server groups\n\n@return the deployment description" ]
void addSomeValuesRestriction(Resource subject, String propertyUri, String rangeUri) { this.someValuesQueue.add(new PropertyRestriction(subject, propertyUri, rangeUri)); }
[ "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri" ]
[ "Use this API to fetch filtered set of gslbservice resources.\nset the filter parameter values in filtervalue object.", "Retrieve any resource field aliases defined in the MPP file.\n\n@param map index to field map\n@param data resource field name alias data", "Returns the value of the identified field as a Boolean.\n@param fieldName the name of the field\n@return the value of the field as a Boolean", "Determine if a key version is invalid by comparing the version's\nexistence and required writes configuration\n\n@param keyVersionNodeSetMap A map that contains keys mapping to a map\nthat maps versions to set of PrefixNodes\n@param requiredWrite Required Write configuration", "Returns the JMX connector address of a child process.\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return a {@link JMXServiceURL} to the process's MBean server", "Use this API to Import sslfipskey.", "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set.", "Specify the string and the int identifying which word shaper to\nuse and this returns the result of using that wordshaper on the String.\n\n@param inStr String to calculate word shape of\n@param wordShaper Constant for which shaping formula to use\n@param knownLCWords A Collection of known lowercase words, which some shapers use\nto decide the class of capitalized words.\n<i>Note: while this code works with any Collection, you should\nprovide a Set for decent performance.</i> If this parameter is\nnull or empty, then this option is not used (capitalized words\nare treated the same, regardless of whether the lowercased\nversion of the String has been seen).\n@return The wordshape String", "Analyzes a failure thrown connecting to the master for causes that indicate\nsome problem not likely to be resolved by immediately retrying. If found,\nthrows an exception highlighting the underlying cause. If the cause is not\none of the ones understood by this method, the method returns normally.\n\n@throws org.jboss.as.domain.controller.SlaveRegistrationException if the remote HC rejected the request\n@throws IllegalStateException for other failures understood by this method" ]
protected String generateCacheKey( CmsObject cms, String targetSiteRoot, String detailPagePart, String absoluteLink) { return cms.getRequestContext().getSiteRoot() + ":" + targetSiteRoot + ":" + detailPagePart + absoluteLink; }
[ "Generates the cache key for Online links.\n@param cms the current CmsObject\n@param targetSiteRoot the target site root\n@param detailPagePart the detail page part\n@param absoluteLink the absolute (site-relative) link to the resource\n@return the cache key" ]
[ "Loads the schemas associated to this catalog.", "Create a HttpComponents HttpUriRequest object for the given HTTP method and URI specification.\n\n@param httpMethod the HTTP method\n@param uri the URI\n@return the HttpComponents HttpUriRequest object", "Obtains a local date in Discordian 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 Discordian local date, not null\n@throws DateTimeException if unable to create the date", "Start the StatsD reporter, if configured.\n\n@throws URISyntaxException", "Parse a currency symbol position from a string representation.\n\n@param value String representation\n@return CurrencySymbolPosition instance", "URL-encodes a given string using ISO-8859-1, which may work better with web pages and umlauts compared to UTF-8.\nNo UnsupportedEncodingException to handle as it is dealt with in this method.", "Use this API to fetch all the nsdiameter resources that are configured on netscaler.", "Converts the real matrix into a complex matrix.\n\n@param input Real matrix. Not modified.\n@param output Complex matrix. Modified.", "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results." ]
protected Object[] escape(final Format format, Object... args) { // Transformer that escapes HTML,XML,JSON strings Transformer<Object, Object> escapingTransformer = new Transformer<Object, Object>() { @Override public Object transform(Object object) { return format.escapeValue(object); } }; List<Object> list = Arrays.asList(ArrayUtils.clone(args)); CollectionUtils.transform(list, escapingTransformer); return list.toArray(); }
[ "Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args" ]
[ "Adds a type to collection with inheriting base type properties.\n\n@param type the type definition to add\n\n@return true if the type definition was added", "Executes a given SPARQL query and returns a stream with the result in\nJSON format.\n\n@param query\n@return\n@throws IOException", "Get info about the shard a document belongs to.\n\n@param docId document ID\n@return Shard info\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/advanced.html#-get-database-_shards-\"\ntarget=\"_blank\">_shards</a>", "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", "Probe the existing cluster to retrieve the current cluster xml and stores\nxml.\n\n@return Pair of Cluster and List<StoreDefinition> from current cluster.", "Internal function that uses recursion to create the list", "Converts the string representation of the days bit field into an integer.\n\n@param days string bit field\n@return integer bit field", "Sets the specified float 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", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be JSON.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')" ]
protected ValueContainer[] getKeyValues(PersistenceBroker broker, ClassDescriptor cld, Identity oid) throws PersistenceBrokerException { return broker.serviceBrokerHelper().getKeyValues(cld, oid); }
[ "returns an Array with an Identities PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values" ]
[ "Returns this applications' context path.\n@return context path.", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Deletes a FilePath file.\n\n@param workspace The build workspace.\n@param path The path in the workspace.\n@throws IOException In case of missing file.", "Use this API to delete route6 of given name.", "Given a binary expression corresponding to an assignment, will check that the type of the RHS matches one\nof the possible setters and if not, throw a type checking error.\n@param expression the assignment expression\n@param leftExpression left expression of the assignment\n@param rightExpression right expression of the assignment\n@param setterInfo possible setters\n@return true if type checking passed", "Adds a rule row to the table with a given style.\n@param style the rule style, must not be null nor {@link TableRowStyle#UNKNOWN}\n@throws {@link NullPointerException} if style was null\n@throws {@link IllegalArgumentException} if style was {@link TableRowStyle#UNKNOWN}", "Init after constructor", "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X.", "Use this API to fetch all the sslcertkey resources that are configured on netscaler." ]
public void setClasspathRef(Reference r) { createClasspath().setRefid(r); log("Verification classpath is "+ _classpath, Project.MSG_VERBOSE); }
[ "Set the classpath for loading the driver using the classpath reference.\n\n@param r reference to the classpath" ]
[ "Creates a Span that covers an exact row. String parameters will be encoded as UTF-8", "See page 385 of Fundamentals of Matrix Computations 2nd", "Add image with a exception message in the PDF document.\n\n@param context\nPDF context\n@param e\nexception to put in image", "Sets the specified integer attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Checks the status of one or more asynchronous photo upload tickets. This method does not require authentication.\n\n@param tickets\na set of ticket ids (Strings) or {@link Ticket} objects containing ids\n@return a list of {@link Ticket} objects.\n@throws FlickrException", "Get a property as a double or defaultValue.\n\n@param key the property name\n@param defaultValue the default value", "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", "Write project properties.\n\n@param record project properties\n@throws IOException", "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance" ]
@Override protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException { // Is the line an empty comment "#" ? if (line.startsWith(COMMENT_PREFIX) && line.length() == 1) { String nextLine = bufferedFileReader.readLine(); if (nextLine != null) { // Is the next line the realm name "#$REALM_NAME=" ? if (nextLine.startsWith(COMMENT_PREFIX) && nextLine.contains(REALM_COMMENT_PREFIX)) { // Realm name block detected! // The next line must be and empty comment "#" bufferedFileReader.readLine(); // Avoid adding the realm block } else { // It's a user comment... content.add(line); content.add(nextLine); } } else { super.addLineContent(bufferedFileReader, content, line); } } else { super.addLineContent(bufferedFileReader, content, line); } }
[ "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)" ]
[ "Retrieves or if necessary, creates a user alias to be used\nby a child criteria\n@param attribute The alias to set", "Use this API to delete dnsaaaarec resources of given names.", "Retrieve list of assignment extended attributes.\n\n@return list of extended attributes", "Creates a new status update on the project.\n\nReturns the full record of the newly created project status update.\n\n@param project The project on which to create a status update.\n@return Request object", "Get an extent aware Iterator based on the ReportQuery\n\n@param query\n@param cld\n@return OJBIterator", "Tokenizes lookup fields and returns all matching buckets in the\nindex.", "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data", "Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content.", "Removes empty space when \"fitToContent\" is true and real height of object is\ntaller than current bands height, otherwise, it is not modified\n\n@param band\n@param currHeigth\n@param fitToContent" ]
protected String addDependency(TaskGroup.HasTaskGroup dependency) { Objects.requireNonNull(dependency); this.taskGroup().addDependencyTaskGroup(dependency.taskGroup()); return dependency.taskGroup().key(); }
[ "Add a dependency task group for this model.\n\n@param dependency the dependency.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependency task group" ]
[ "Writes all data that was collected about classes to a json file.", "Send an album art update announcement to all registered listeners.", "Returns the value of an optional property, if the property is\nset. If it is not set defval is returned.", "A specific, existing tag can be deleted by making a DELETE request\non the URL for that tag.\n\nReturns an empty data record.\n\n@param tag The tag to delete.\n@return Request object", "Returns the currently scheduled job description identified by the given id.\n\n@param id the job id\n\n@return a job or <code>null</code> if not found", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command removes all elements in the sorted set between the lexicographical range specified.\n@param lexRange\n@return the number of elements removed.", "Compute 1-dimensional Perlin noise.\n@param x the x value\n@return noise value at x in the range -1..1", "Use this API to fetch the statistics of all gslbdomain_stats resources that are configured on netscaler.", "Attribute name and value are not escaped or modified in any way.\n\n@param name\n@param value\n@return self" ]
public PathElement getLastElement() { final List<PathElement> list = pathAddressList; return list.size() == 0 ? null : list.get(list.size() - 1); }
[ "Gets the last element in the address.\n\n@return the element, or {@code null} if {@link #size()} is zero." ]
[ "We have identified that we have an MDB file. This could be a Microsoft Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Verify JUnit presence and version.", "Parse a duration value.\n\n@param value duration value\n@return Duration instance", "Create a new instance of a two input function from an operator character\n@param op Which operation\n@param left Input variable on left\n@param right Input variable on right\n@return Resulting operation", "Starts processor thread.", "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance", "Returns the y-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the y coordinate", "Use this API to flush cacheobject." ]
protected CmsProject createAndSetModuleImportProject(CmsObject cms, CmsModule module) throws CmsException { CmsProject importProject = cms.createProject( org.opencms.module.Messages.get().getBundle(cms.getRequestContext().getLocale()).key( org.opencms.module.Messages.GUI_IMPORT_MODULE_PROJECT_NAME_1, new Object[] {module.getName()}), org.opencms.module.Messages.get().getBundle(cms.getRequestContext().getLocale()).key( org.opencms.module.Messages.GUI_IMPORT_MODULE_PROJECT_DESC_1, new Object[] {module.getName()}), OpenCms.getDefaultUsers().getGroupAdministrators(), OpenCms.getDefaultUsers().getGroupAdministrators(), CmsProject.PROJECT_TYPE_TEMPORARY); cms.getRequestContext().setCurrentProject(importProject); cms.copyResourceToProject("/"); return importProject; }
[ "Creates the project used to import module resources and sets it on the CmsObject.\n\n@param cms the CmsObject to set the project on\n@param module the module\n@return the created project\n@throws CmsException if something goes wrong" ]
[ "Adds OPT_U | OPT_URL option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Retrieves a ProjectReader instance which can read a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectReader instance", "Returns the value stored for the given key at the point of call.\n@param key a non null key\n@return the value stored in the map for the given key", "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", "Creates a PathAddress from the given ModelNode address. The given node is expected to be an address node.\n\n@param node the node (cannot be {@code null})\n\n@return the update identifier", "Check if the gravity and orientation are not in conflict one with other.\n@param gravity\n@param orientation\n@return true if orientation and gravity can be applied together, false - otherwise", "Set the on-finish callback.\n\nThe basic {@link GVROnFinish} callback will notify you when the animation\nruns to completion. This is a good time to do things like removing\nnow-invisible objects from the scene graph.\n\n<p>\nThe extended {@link GVROnRepeat} callback will be called after every\niteration of an indefinite (repeat count less than 0) animation, giving\nyou a way to stop the animation when it's not longer appropriate.\n\n@param callback\nA {@link GVROnFinish} or {@link GVROnRepeat} implementation.\n<p>\n<em>Note</em>: Supplying a {@link GVROnRepeat} callback will\n{@linkplain #setRepeatCount(int) set the repeat count} to a\nnegative number. Calling {@link #setRepeatCount(int)} with a\nnon-negative value after setting a {@link GVROnRepeat}\ncallback will effectively convert the callback to a\n{@link GVROnFinish}.\n@return {@code this}, so you can chain setProperty() calls.", "Create an info object from an authscope object.\n\n@param authscope the authscope", "Converts the http entity to string. If entity is null, returns empty string.\n@param entity\n@return\n@throws IOException" ]
public void setSessionTimeout(int timeout) { ((ZKBackend) getBackend()).setSessionTimeout(timeout); if (LOG.isLoggable(Level.FINE)) { LOG.fine("Locator session timeout set to: " + timeout); } }
[ "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000." ]
[ "Compares two columns given by their names.\n\n@param objA The name of the first column\n@param objB The name of the second column\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "Send a device lost announcement to all registered listeners.\n\n@param announcement the last message received from the vanished device", "Only converts the B matrix and passes that onto solve. Te result is then copied into\nthe input 'X' matrix.\n\n@param B A matrix &real; <sup>m &times; p</sup>. Not modified.\n@param X A matrix &real; <sup>n &times; p</sup>, where the solution is written to. Modified.", "Add the given headers to the given HTTP request.\n@param httpRequest the request to add the headers to\n@param headers the headers to add", "Add a listener to be invoked when the checked button changes in this group.\n@param listener\n@param <T>\n@return", "Dump an array of bytes in hexadecimal.\n\n@param displayOffset the display offset (left column)\n@param data the byte array of data\n@param offset the offset to start dumping in the byte array\n@param len the length of data to dump\n@return the dump string", "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return", "Emit a event object with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(EventObject, Object...)", "Prepare a parallel HTTP OPTION Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder" ]
@Override public void setPosition(float x, float y, float z) { position.set(x, y, z); pickDir.set(x, y, z); pickDir.normalize(); invalidate(); }
[ "Set the position of the pick ray.\nThis function is used internally to update the\npick ray with the new controller position.\n@param x the x value of the position.\n@param y the y value of the position.\n@param z the z value of the position." ]
[ "Deletes a vertex from this list.", "Calculates Tangent value of the complex number.\n\n@param z1 A ComplexNumber instance.\n@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number.", "Inserts the provided document. If the document is missing an identifier, the client should\ngenerate one.\n\n@param document the document to insert\n@return a task containing the result of the insert one operation", "Use this API to unset the properties of gslbservice resources.\nProperties that need to be unset are specified in args array.", "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", "Process the settings when we are going to consume them.", "Query for an object in the database which matches the id argument.", "Use this API to fetch transformpolicylabel resource of given name .", "URLEncode a string\n@param s\n@return" ]
public final void setWeekOfMonth(WeekOfMonth weekOfMonth) { SortedSet<WeekOfMonth> woms = new TreeSet<>(); if (null != weekOfMonth) { woms.add(weekOfMonth); } setWeeksOfMonth(woms); }
[ "Set the week of the month the events should occur.\n@param weekOfMonth the week of month to set (first to fifth, where fifth means last)." ]
[ "Create a shell object and assign its id field.", "Cleans up the subsystem children for the deployment and each sub-deployment resource.\n\n@param resource the subsystem resource to clean up", "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "if |a11-a22| >> |a12+a21| there might be a better way. see pg371", "Sets the text alignment for all cells in the row.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null", "get all parts of module name apart from first", "Backup the current configuration as part of the patch history.\n\n@throws IOException for any error", "Configures a worker pool for the converter.\n\n@param corePoolSize The core pool size of the worker pool.\n@param maximumPoolSize The maximum pool size of the worker pool.\n@param keepAliveTime The keep alive time of the worker pool.\n@param unit The time unit of the specified keep alive time.\n@return This builder instance.", "Convenience method to determine if a character is special to the regex system.\n\n@param chr\nthe character to test\n\n@return is the character a special character." ]
public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, JRDataSource ds, Map<String, Object> _parameters) throws JRException { log.info("generating JasperPrint"); JasperPrint jp; JasperReport jr = DynamicJasperHelper.generateJasperReport(dr, layoutManager, _parameters); jp = JasperFillManager.fillReport(jr, _parameters, ds); return jp; }
[ "Compiles and fills the reports design.\n\n@param dr the DynamicReport\n@param layoutManager the object in charge of doing the layout\n@param ds The datasource\n@param _parameters Map with parameters that the report may need\n@return\n@throws JRException" ]
[ "Print priority.\n\n@param priority Priority instance\n@return priority value", "Creates an attachment from a given array of bytes.\nThe bytes will be Base64 encoded.\n@throws java.lang.IllegalArgumentException if mediaType is not binary", "Configure column aliases.", "Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.\nGets the capabilities for a specific endpoint.\n@param the number of the endpoint to get the\n@return the serial message.", "Selects the specified value in the list.\n\n@param value the new value\n@param fireEvents if true, a ValueChangeEvent event will be fired\n@see #setAddMissingValue", "Returns tag formatted as an HTTP tag string.\n\n@return The formatted HTTP tag string.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "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", "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", "Sets the bottom padding for all cells in the row.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining" ]
public void filterUnsafeOrUnnecessaryRequest( Map<String, NodeReqResponse> nodeDataMapValidSource, Map<String, NodeReqResponse> nodeDataMapValidSafe) { for (Entry<String, NodeReqResponse> entry : nodeDataMapValidSource .entrySet()) { String hostName = entry.getKey(); NodeReqResponse nrr = entry.getValue(); Map<String, String> map = nrr.getRequestParameters(); /** * 20130507: will generally apply to all requests: if have this * field and this field is false */ if (map.containsKey(PcConstants.NODE_REQUEST_WILL_EXECUTE)) { Boolean willExecute = Boolean.parseBoolean(map .get(PcConstants.NODE_REQUEST_WILL_EXECUTE)); if (!willExecute) { logger.info("NOT_EXECUTE_COMMAND " + " on target: " + hostName + " at " + PcDateUtils.getNowDateTimeStrStandard()); continue; } } // now safely to add this node in. nodeDataMapValidSafe.put(hostName, nrr); }// end for loop }
[ "Filter unsafe or unnecessary request.\n\n@param nodeDataMapValidSource\nthe node data map valid source\n@param nodeDataMapValidSafe\nthe node data map valid safe" ]
[ "Detect new objects.", "Use this API to fetch systemuser resource of given name .", "Set possible tile URLs.\n\n@param tileUrls tile URLs", "Use this API to fetch ipset_nsip_binding resources of given name .", "Converts this object to JSON.\n\n@return the JSON representation\n\n@throws JSONException if JSON operations fail", "Removes the given row.\n\n@param row the row to remove", "Checks the given model.\n\n@param modelDef The model\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Prints dependencies recovered from the methods of a class. A\ndependency is inferred only if another relation between the two\nclasses is not already in the graph.\n@param classes", "Write correlation id.\n\n@param message the message\n@param correlationId the correlation id" ]
public static Double checkLongitude(String name, Double longitude) { if (longitude == null) { throw new IndexException("{} required", name); } else if (longitude < MIN_LONGITUDE || longitude > MAX_LONGITUDE) { throw new IndexException("{} must be in range [{}, {}], but found {}", name, MIN_LONGITUDE, MAX_LONGITUDE, longitude); } return longitude; }
[ "Checks if the specified longitude is correct.\n\n@param name the name of the longitude field\n@param longitude the value of the longitude field\n@return the longitude" ]
[ "Sets the maxConnectionAge. Any connections older than this setting will be closed\noff whether it is idle or not. Connections currently in use will not be affected until they\nare returned to the pool.\n\n@param maxConnectionAge the maxConnectionAge to set.\n@param timeUnit the unit of the maxConnectionAge argument.", "Do the set-up that's needed to access Amazon S3.", "Set a range of the colormap to a single color.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color the color", "Load a classifier from the specified InputStream. The classifier is\nreinitialized from the flags serialized in the classifier. This does not\nclose the InputStream.\n\n@param in\nThe InputStream to load the serialized classifier from\n@param props\nThis Properties object will be used to update the\nSeqClassifierFlags which are read from 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", "Makes object obj persistent in the underlying persistence system.\nE.G. by INSERT INTO ... or UPDATE ... in an RDBMS.\nThe ObjectModification parameter can be used to determine whether INSERT or update is to be used.\nThis functionality is typically called from transaction managers, that\ntrack which objects have to be stored. If the object is an unmaterialized\nproxy the method return immediately.", "Permanently close the ClientRequestExecutor pool. Resources subsequently\nchecked in will be destroyed.", "Sends a normal HTTP response containing the serialization information in\na XML format", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "Sets the upper limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis upper rotation limit (in radians)\n@param limitY the Y axis upper rotation limit (in radians)\n@param limitZ the Z axis upper rotation limit (in radians)" ]
private String writeSchemata(File dir) throws IOException { writeCompressedTexts(dir, _torqueSchemata); StringBuffer includes = new StringBuffer(); for (Iterator it = _torqueSchemata.keySet().iterator(); it.hasNext();) { includes.append((String)it.next()); if (it.hasNext()) { includes.append(","); } } return includes.toString(); }
[ "Writes the torque schemata to files in the given directory and returns\na comma-separated list of the filenames.\n\n@param dir The directory to write the files to\n@return The list of filenames\n@throws IOException If an error occurred" ]
[ "Set the DPI value for GeoServer if there are already FORMAT_OPTIONS.", "Return the version string of this instance of finmath-lib.\n\n@return The version string of this instance of finmath-lib.", "Convenience method for retrieving a char resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "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", "Removes the token from the list\n@param token Token which is to be removed", "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", "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", "Given the comma separated list of properties as a string, splits it\nmultiple strings\n\n@param paramValue Concatenated string\n@param type Type of parameter ( to throw exception )\n@return List of string properties", "Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array." ]
public ListExternalToolsOptions searchTerm(String searchTerm) { if(searchTerm == null || searchTerm.length() < 3) { throw new IllegalArgumentException("Search term must be at least 3 characters"); } addSingleItem("search_term", searchTerm); return this; }
[ "Only return tools with a name matching this partial string\n@param searchTerm Tool name to search for\n@return This object to allow adding more options" ]
[ "Add statistics about sent emails.\n\n@param recipients The list of recipients.\n@param storageUsed If a remote storage was used.", "retrieve a single reference- or collection attribute\nof a persistent instance.\n@param pInstance the persistent instance\n@param pAttributeName the name of the Attribute to load", "Iterates over the elements of an iterable collection of items, starting from\na specified startIndex, and returns the index values of the items that match\nthe condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param startIndex start matching from this index\n@param closure the filter to perform a match on the collection\n@return a list of numbers corresponding to the index values of all matched objects\n@since 1.5.2", "Mark content as obsolete. If content was already marked for obsolescenceTimeout ms then it is removed.\n\n@param ref the content refrence to be marked as obsolete.\n\n@return true if the content refrence is removed, fale otherwise.", "Delete the first n items from the list\n\n@param newStart the logsegment who's index smaller than newStart will be deleted.\n@return the deleted segment", "If the given result is not cudnnStatus.CUDNN_STATUS_SUCCESS\nand exceptions have been enabled, this method will throw a\nCudaException with an error message that corresponds to the\ngiven result code. Otherwise, the given result is simply\nreturned.\n\n@param result The result to check\n@return The result that was given as the parameter\n@throws CudaException If exceptions have been enabled and\nthe given result code is not cudnnStatus.CUDNN_STATUS_SUCCESS", "Returns first resolver that accepts the given resolverId.\nIn case none is found null is returned.\n@param resolverId identifier of the resolver\n@return found resolver or null otherwise", "Delivers the correct JSON Object for the stencilId\n\n@param stencilId\n@throws org.json.JSONException", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions" ]
protected void createSetterMethod(ClassNode declaringClass, PropertyNode propertyNode, String setterName, Statement setterBlock) { MethodNode setter = new MethodNode( setterName, propertyNode.getModifiers(), ClassHelper.VOID_TYPE, params(param(propertyNode.getType(), "value")), ClassNode.EMPTY_ARRAY, setterBlock); setter.setSynthetic(true); // add it to the class declaringClass.addMethod(setter); }
[ "Creates a setter method with the given body.\n\n@param declaringClass the class to which we will add the setter\n@param propertyNode the field to back the setter\n@param setterName the name of the setter\n@param setterBlock the statement representing the setter block" ]
[ "Provides a message which describes the expected format and arguments\nfor this command. This is used to provide user feedback when a command\nrequest is malformed.\n\n@return A message describing the command protocol format.", "On host controller reload, remove a not running server registered in the process controller declared as down.", "Gets the or create protocol header.\n\n@param message the message\n@return the message headers map", "Create a new instance of a two input function from an operator character\n@param op Which operation\n@param left Input variable on left\n@param right Input variable on right\n@return Resulting operation", "Loops through all resource roots that have been made available transitively via Class-Path entries, and\nadds them to the list of roots to be processed.", "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", "prefix the this class fk columns with the indirection table", "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return", "Synchronize the geotools transaction with the platform transaction, if such a transaction is active.\n\n@param featureStore\n@param dataSource" ]
private static String getPath(Service service, Annotation... qualifiers) { for (Annotation q : qualifiers) { if (q instanceof Scheme) { return ((Scheme) q).value(); } } if (service.getMetadata() != null && service.getMetadata().getAnnotations() != null) { String s = service.getMetadata().getAnnotations().get(SERVICE_SCHEME); if (s != null && s.isEmpty()) { return s; } } return DEFAULT_PATH; }
[ "Find the path to use .\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved path of '/' as a fallback." ]
[ "Remove duplicate Strings from the given array. Also sorts the array, as\nit uses a TreeSet.\n\n@param array the String array\n@return an array without duplicates, in natural sort order", "Create a HttpComponents HttpUriRequest object for the given HTTP method and URI specification.\n\n@param httpMethod the HTTP method\n@param uri the URI\n@return the HttpComponents HttpUriRequest object", "Returns a module\n\n@param moduleId String\n@return DbModule", "Validates aliases.\n\n@param uuid The structure id for which the aliases should be valid\n@param aliasPaths a map from id strings to alias paths\n@param callback the callback which should be called with the validation results", "Returns all keys in no particular order.", "Sets number of pages. If the index of currently selected page is bigger than the total number\nof pages, first page will be selected instead.\n@return difference between the previous number of pages and new one. Negative value is\nreturned if new number of pages is less then it was before.", "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@param offset the optional time offset for this alias", "END ODO CHANGES", "Set whether the WMS tiles should be cached for later use. This implies that the WMS tiles will be proxied.\n\n@param useCache true when request needs to be cached\n@since 1.9.0" ]
public ItemRequest<Workspace> findById(String workspace) { String path = String.format("/workspaces/%s", workspace); return new ItemRequest<Workspace>(this, Workspace.class, path, "GET"); }
[ "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object" ]
[ "Cretae a BufferedImage from an ImageProducer.\n@param producer the ImageProducer\n@return a new TYPE_INT_ARGB BufferedImage", "Add a new download. The download will start automatically once the download manager is\nready to execute it and connectivity is available.\n\n@param request the parameters specifying this download\n@return an ID for the download, unique across the application. This ID is used to make future\ncalls related to this download.\n@throws IllegalArgumentException", "Get the collection of untagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\n@param page\n@return A Collection of Photos\n@throws FlickrException", "Gets the task from in progress map.\n\n@param jobId\nthe job id\n@return the task from in progress map", "Set the property on the given object to the new value.\n\n@param object on which to set the property\n@param newValue the new value of the property\n@throws RuntimeException if the property could not be set", "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "Curries a function that takes two arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes one argument. Never <code>null</code>.", "Output the SQL type for a Java String.", "For missing objects associated by one-to-one with another object in the\nresult set, register the fact that the object is missing with the\nsession.\n\ncopied form Loader#registerNonExists" ]
static String createStatsType(Set<String> statsItems, String sortType, MtasFunctionParserFunction functionParser) { String statsType = STATS_BASIC; for (String statsItem : statsItems) { if (STATS_FULL_TYPES.contains(statsItem)) { statsType = STATS_FULL; break; } else if (STATS_ADVANCED_TYPES.contains(statsItem)) { statsType = STATS_ADVANCED; } else if (statsType != STATS_ADVANCED && STATS_BASIC_TYPES.contains(statsItem)) { statsType = STATS_BASIC; } else { Matcher m = fpStatsFunctionItems.matcher(statsItem.trim()); if (m.find()) { if (STATS_FUNCTIONS.contains(m.group(2).trim())) { statsType = STATS_FULL; break; } } } } if (sortType != null && STATS_TYPES.contains(sortType)) { if (STATS_FULL_TYPES.contains(sortType)) { statsType = STATS_FULL; } else if (STATS_ADVANCED_TYPES.contains(sortType)) { statsType = (statsType == null || statsType != STATS_FULL) ? STATS_ADVANCED : statsType; } } return statsType; }
[ "Creates the stats type.\n\n@param statsItems\nthe stats items\n@param sortType\nthe sort type\n@param functionParser\nthe function parser\n@return the string" ]
[ "Prints the error message as log message.\n\n@param level the log level", "Create a SVG graphic with the give dimensions.\n\n@param size The size of the SVG graphic.", "Set the main attribute \"Bundle-Activator\" to the given value.\n\n@param bundleActivator The new value", "Use this API to update snmpmanager.", "Updates the backing render texture. This method should not\nbe called when capturing is in progress.\n\n@param width The width of the backing texture in pixels.\n@param height The height of the backing texture in pixels.\n@param sampleCount The MSAA sample count.", "Reopen the associated static logging stream. Set to null to redirect to System.out.", "returns a sorted array of fields", "Redirect to page\n\n@param model\n@return", "Writes image files for all data that was collected and the statistics\nfile for all sites." ]
private void createAndLockDescriptorFile() throws CmsException { String sitePath = m_sitepath + m_basename + CmsMessageBundleEditorTypes.Descriptor.POSTFIX; m_desc = m_cms.createResource( sitePath, OpenCms.getResourceManager().getResourceType(CmsMessageBundleEditorTypes.BundleType.DESCRIPTOR.toString())); m_descFile = LockedFile.lockResource(m_cms, m_desc); m_descFile.setCreated(true); }
[ "Creates a descriptor for the bundle in the same folder where the bundle files are located.\n@throws CmsException thrown if creation fails." ]
[ "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "Creates a unique name, suitable for use with Resque.\n\n@return a unique name for this worker", "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)", "Function to perform backward activation", "Adds an additional interface that the proxy should implement. The default\nimplementation will be to forward invocations to the bean instance.\n\n@param newInterface an interface", "Try to get a system property for obsolete keys. The value is automatically converted - a runtime exception may be thrown during conversion.\n\n@return all the properties whose system property keys were different in previous versions", "Use this API to add sslaction.", "Configure the access permissions required to access this print job.\n\n@param template the containing print template which should have sufficient information to\nconfigure the access.\n@param context the application context" ]
static BsonDocument getVersionedFilter( @Nonnull final BsonValue documentId, @Nullable final BsonValue version ) { final BsonDocument filter = new BsonDocument("_id", documentId); if (version == null) { filter.put(DOCUMENT_VERSION_FIELD, new BsonDocument("$exists", BsonBoolean.FALSE)); } else { filter.put(DOCUMENT_VERSION_FIELD, version); } return filter; }
[ "Returns a query filter for the given document _id and version. The version is allowed to be\nnull. The query will match only if there is either no version on the document in the database\nin question if we have no reference of the version or if the version matches the database's\nversion.\n\n@param documentId the _id of the document.\n@param version the expected version of the document, if any.\n@return a query filter for the given document _id and version for a remote operation." ]
[ "Use this API to fetch bridgegroup_nsip_binding resources of given name .", "Remove all of the audio sources from the audio manager.\nThis will stop all sound from playing.", "Return the number of days between startDate and endDate given the\nspecific daycount convention.\n\n@param startDate The start date given as a {@link org.threeten.bp.LocalDate}.\n@param endDate The end date given as a {@link org.threeten.bp.LocalDate}.\n@param convention A convention string.\n@return The number of days within the given period.", "Set an enterprise number value.\n\n@param index number index (1-40)\n@param value number value", "Return the text box for the specified text and font.\n\n@param text text\n@param font font\n@return text box", "Returns an array of all the singular values", "Removes bean from scope.\n\n@param name bean name\n@return previous value", "Exchanges the final messages which politely report our intention to disconnect from the dbserver.", "Split an artifact gavc to get the groupId\n@param gavc\n@return String" ]
@ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class }) public static void isNumber(final boolean condition, @Nonnull final String value) { if (condition) { Check.isNumber(value); } }
[ "Ensures that a String argument is a number.\n\n@param condition\ncondition must be {@code true}^ so that the check will be performed\n@param value\nvalue which must be a number\n@throws IllegalNumberArgumentException\nif the given argument {@code value} is not a number" ]
[ "Use this API to fetch the statistics of all cmppolicy_stats resources that are configured on netscaler.", "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.", "Notifies that an existing header item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Given a key and a list of steal infos give back a list of stealer node\nids which will steal this.\n\n@param key Byte array of key\n@param stealerNodeToMappingTuples Pairs of stealer node id to their\ncorresponding [ partition - replica ] tuples\n@param cluster Cluster metadata\n@param storeDef Store definitions\n@return List of node ids", "Use this API to update cacheselector.", "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", "If converters are set on a table, this function tests if these can convert a cell value. The first\nconverter, which claims that it can convert, will be used to do the conversion.", "Verify that the given channels are all valid.\n\n@param channels\nthe given channels", "Use this API to add autoscaleprofile resources." ]
@Override public void process() { if (client.isDone() || executorService.isTerminated()) { throw new IllegalStateException("Client is already stopped"); } Runnable runner = new Runnable() { @Override public void run() { try { while (!client.isDone()) { String msg = messageQueue.take(); try { parseMessage(msg); } catch (Exception e) { logger.warn("Exception thrown during parsing msg " + msg, e); onException(e); } } } catch (Exception e) { onException(e); } } }; executorService.execute(runner); }
[ "Forks off a runnable with the executor provided. Multiple calls are allowed, but the listeners must be\nthreadsafe." ]
[ "To store an object in a quick & dirty way.", "Set the buttons size.", "Package-protected method used to initiate operation execution.\n@return the result action", "Check if a dependency matches the filters\n\n@param dependency\n\n@return boolean", "Use this API to unset the properties of bridgetable resource.\nProperties that need to be unset are specified in args array.", "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", "Parses the list of query items for the query facet.\n@param queryFacetObject JSON object representing the node with the query facet.\n@return list of query options\n@throws JSONException if the list cannot be parsed.", "Accessor method used to retrieve a Float 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", "Determines the encoding block groups for the specified data." ]
public JsonTypeDefinition projectionType(String... properties) { if(this.getType() instanceof Map<?, ?>) { Map<?, ?> type = (Map<?, ?>) getType(); Arrays.sort(properties); Map<String, Object> newType = new LinkedHashMap<String, Object>(); for(String prop: properties) newType.put(prop, type.get(prop)); return new JsonTypeDefinition(newType); } else { throw new IllegalArgumentException("Cannot take the projection of a type that is not a Map."); } }
[ "Get the type created by selecting only a subset of properties from this\ntype. The type must be a map for this to work\n\n@param properties The properties to select\n@return The new type definition" ]
[ "Use this API to disable nsfeature.", "Given a string with the scenario or story name, creates a Class Name with\nno spaces and first letter capital\n\n@param String\n- The name of the scenario/story. It should be in lower case.\n@returns String - The class name", "Write a resource.\n\n@param record resource instance\n@throws IOException", "Returns all entries in no particular order.", "Sends the JSON-formatted spellchecking results to the client.\n\n@param res The HttpServletResponse object.\n@param request The spellchecking request object.\n\n@throws IOException in case writing the response fails", "Maps all views that don't start with \"android\" namespace.\n\n@param names All shared element names.\n@return The obsolete shared element names.", "Construct a new instance.\n\n@return the new instance", "Removes 'original' and places 'target' at the same location", "Fill queue.\n\n@param item the item\n@param minStartPosition the min start position\n@param maxStartPosition the max start position\n@param minEndPosition the min end position\n@throws IOException Signals that an I/O exception has occurred." ]
protected float getSizeArcLength(float angle) { if (mRadius <= 0) { throw new IllegalArgumentException("mRadius is not specified!"); } return angle == Float.MAX_VALUE ? Float.MAX_VALUE : LayoutHelpers.lengthOfArc(angle, mRadius); }
[ "Calculate the arc length by angle and radius\n@param angle\n@return arc length" ]
[ "Use this API to fetch filterpolicy_csvserver_binding resources of given name .", "Test the list of TimephasedWork instances to see\nif any of them have been modified.\n\n@param list list of TimephasedWork instances\n@return boolean flag", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong", "Turns a series of strings into their corresponding license entities\nby using regular expressions\n\n@param licStrings The list of license strings\n@return A set of license entities", "Set a knot blend type.\n@param n the knot index\n@param type the knot blend type\n@see #getKnotBlend", "Given a list of store definitions, find out and return a map of similar\nstore definitions + count of them\n\n@param storeDefs All store definitions\n@return Map of a unique store definition + counts", "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "Write a size prefixed string where the size is stored as a 2 byte\nshort\n\n@param buffer The buffer to write to\n@param s The string to write", "Reads the given source byte buffer into this buffer at the given offset\n@param src source byte buffer\n@param destOffset offset in this buffer to read to\n@return the number of bytes read" ]
public static HttpConnection createPost(URI uri, String body, String contentType) { HttpConnection connection = Http.POST(uri, "application/json"); if(body != null) { setEntity(connection, body, contentType); } return connection; }
[ "create a HTTP POST request.\n\n@return {@link HttpConnection}" ]
[ "Whether the address has the well-known prefix for IPv4 translatable addresses as in rfc 6052 and 6144\n@return", "Moves the given row up.\n\n@param row the row to move", "Get a property as a boolean or null.\n\n@param key the property name", "Helper method to check if log4j is already configured", "Get random geographical location\n@return 2-Tuple of ints (latitude, longitude)", "Process class properties.\n\n@param writer output stream\n@param methodSet set of methods processed\n@param aClass class being processed\n@throws IntrospectionException\n@throws XMLStreamException", "Draw a rectangle's interior with this color.\n\n@param rect rectangle\n@param color colour", "Mapping message info.\n\n@param messageInfo the message info\n@return the message info type", "bootstrap method for method calls with \"this\" as receiver\n@deprecated since Groovy 2.1.0" ]
private void readPredecessors(Project.Tasks.Task task) { Integer uid = task.getUID(); if (uid != null) { Task currTask = m_projectFile.getTaskByUniqueID(uid); if (currTask != null) { for (Project.Tasks.Task.PredecessorLink link : task.getPredecessorLink()) { readPredecessor(currTask, link); } } } }
[ "This method extracts predecessor data from an MSPDI file.\n\n@param task Task data" ]
[ "Parse a date value.\n\n@param value String representation\n@return Date instance", "Create a document that parses the tile's featureFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@return document\n@throws RenderException\noops", "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text", "Export modules and check them in. Assumes the log stream already open.\n@return exit code of the commit-script.", "Build a Pk-Query base on the ClassDescriptor.\n\n@param cld\n@return a select by PK query", "Recursively update parent task dates.\n\n@param parentTask parent task", "Initializes context size.\n\n@param rectangle rectangle", "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", "Handle value change event on the individual dates list.\n@param event the change event." ]
public void checkpoint(ObjectEnvelope mod) throws PersistenceBrokerException { mod.doInsert(); mod.setModificationState(StateOldClean.getInstance()); }
[ "checkpoint the ObjectModification" ]
[ "Save a SVG graphic to the given path.\n\n@param graphics2d The SVG graphic to save.\n@param path The file.", "Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array\n@param inserted the array that we want to insert\n@return the combined array", "Use this API to add ntpserver resources.", "Returns the value associated with the given key, if any.\n\n@return the value associated with the given key, or <Code>null</Code>\nif the key maps to no value", "Converts a JSON patch path to a JSON property name.\nCurrently the metadata API only supports flat maps.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the JSON property name.", "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", "Restores a BoxAPIConnection from a saved state.\n\n@see #save\n@param clientID the client ID to use with the connection.\n@param clientSecret the client secret to use with the connection.\n@param state the saved state that was created with {@link #save}.\n@return a restored API connection.", "Acquire the exclusive lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Return any feedback messages and errors that were generated - but\nsuppressed - during the interpolation process. Since unresolvable\nexpressions will be left in the source string as-is, this feedback is\noptional, and will only be useful for debugging interpolation problems.\n\n@return a {@link List} that may be interspersed with {@link String} and\n{@link Throwable} instances." ]
public static appflowpolicy_appflowglobal_binding[] get(nitro_service service, String name) throws Exception{ appflowpolicy_appflowglobal_binding obj = new appflowpolicy_appflowglobal_binding(); obj.set_name(name); appflowpolicy_appflowglobal_binding response[] = (appflowpolicy_appflowglobal_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name ." ]
[ "1-D Gaussian kernel.\n\n@param size Kernel size (should be odd), [3, 101].\n@return Returns 1-D Gaussian kernel of the specified size.", "If the DefaultActionInvocation has been executed before and the Result is\nan instance of ActionChainResult, this method will walk down the chain of\nActionChainResults until it finds a non-chain result, which will be\nreturned. If the DefaultActionInvocation's result has not been executed\nbefore, the Result instance will be created and populated with the result\nparams.\n\n@return a Result instance\n@throws Exception", "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", "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", "Set the color for each total for the column\n@param column the number of the column (starting from 1)\n@param color", "Create the Grid Point style.", "Records the result of updating a server.\n\n@param server the id of the server. Cannot be <code>null</code>\n@param response the result of the updates", "Restore backup data\n\n@param fileData - json file with restore data\n@return\n@throws Exception", "Checks whether a property can be added to a Properties.\n\n@param typeManager\n@param properties the properties object\n@param typeId the type id\n@param filter the property filter\n@param id the property id\n\n@return true if the property should be added" ]
public static boolean isSymmetric( DMatrixSparseCSC A , double tol ) { if( A.numRows != A.numCols ) return false; int N = A.numCols; for (int i = 0; i < N; i++) { int idx0 = A.col_idx[i]; int idx1 = A.col_idx[i+1]; for (int index = idx0; index < idx1; index++) { int j = A.nz_rows[index]; double value_ji = A.nz_values[index]; double value_ij = A.get(i,j); if( Math.abs(value_ij-value_ji) > tol ) return false; } } return true; }
[ "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" ]
[ "create a HTTP POST request.\n\n@return {@link HttpConnection}", "Replace a photo from a File.\n\n@param file\n@param flickrId\n@param async\n@return photoId or ticketId\n@throws FlickrException", "Registers the parameter for the value formatter for the given variable and puts\nit's implementation in the parameters map.\n@param djVariable\n@param variableName", "Get an active operation.\n\n@param header the request header\n@return the active operation, {@code null} if if there is no registered operation", "Formats a date or a time according to the local conventions.\n\nSince ReadablePartials don't support all fields, we fill in any blanks\nneeded for formatting by using the epoch (1970-01-01T00:00:00Z).\n\nSee {@link android.text.format.DateUtils#formatDateTime} for full docs.\n\n@param context the context is required only if the time is shown\n@param time a point in time\n@param flags a bit mask of formatting options\n@return a string containing the formatted date/time.", "Returns all accessible projects of the given organizational unit.\n\nThat is all projects which are owned by the current user or which are\naccessible for the group of the user.<p>\n\n@param cms the opencms context\n@param ouFqn the fully qualified name of the organizational unit to get projects for\n@param includeSubOus if all projects of sub-organizational units should be retrieved too\n\n@return all <code>{@link org.opencms.file.CmsProject}</code> objects in the organizational unit\n\n@throws CmsException if operation was not successful", "Puts a new document in the service. The generate key is globally unique.\n\n@param document document\n@return key unique key to reference the document", "Set ViewPort visibility of the object.\n\n@see ViewPortVisibility\n@param viewportVisibility\nThe ViewPort visibility of the object.\n@return {@code true} if the ViewPort visibility was changed, {@code false} if it\nwasn't.", "Set the week day.\n@param weekDayStr the week day to set." ]
List<String> getWarnings(JsonNode root) { ArrayList<String> warnings = new ArrayList<>(); if (root.has("warnings")) { JsonNode warningNode = root.path("warnings"); Iterator<Map.Entry<String, JsonNode>> moduleIterator = warningNode .fields(); while (moduleIterator.hasNext()) { Map.Entry<String, JsonNode> moduleNode = moduleIterator.next(); Iterator<JsonNode> moduleOutputIterator = moduleNode.getValue() .elements(); while (moduleOutputIterator.hasNext()) { JsonNode moduleOutputNode = moduleOutputIterator.next(); if (moduleOutputNode.isTextual()) { warnings.add("[" + moduleNode.getKey() + "]: " + moduleOutputNode.textValue()); } else if (moduleOutputNode.isArray()) { Iterator<JsonNode> messageIterator = moduleOutputNode .elements(); while (messageIterator.hasNext()) { JsonNode messageNode = messageIterator.next(); warnings.add("[" + moduleNode.getKey() + "]: " + messageNode.path("html").path("*") .asText(messageNode.toString())); } } else { warnings.add("[" + moduleNode.getKey() + "]: " + "Warning was not understood. Please report this to Wikidata Toolkit. JSON source: " + moduleOutputNode.toString()); } } } } return warnings; }
[ "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of the JSON result" ]
[ "Returns the result of the performed spellcheck formatted in JSON.\n\n@param request The CmsSpellcheckingRequest.\n@return JSONObject that contains the result of the performed spellcheck.", "Returns the number of days from the given weekday to the next weekday the event should occur.\n@param weekDay the current weekday.\n@return the number of days to the next weekday an event could occur.", "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context", "Just collapses digits to 9 characters.\nDoes lazy copying of String.\n\n@param s String to find word shape of\n@return The same string except digits are equivalence classed to 9.", "Returns the item at the specified position.\n\n@param position index of the item to return\n@return the item at the specified position or {@code null} when not found", "For a particular stealer node find all the primary partitions tuples it\nwill steal.\n\n@param currentCluster The cluster definition of the existing cluster\n@param finalCluster The final cluster definition\n@param stealNodeId Node id of the stealer node\n@return Returns a list of primary partitions which this stealer node will\nget", "Invoke to find all services for given service type using specified class loader\n\n@param classLoader specified class loader\n@param serviceType given service type\n@return List of found services", "Extent aware Delete by Query\n@param query\n@param cld\n@throws PersistenceBrokerException", "Obtain instance of the SQL Service\n\n@return instance of SQLService\n@throws Exception exception" ]
public <OD> Where<T, ID> idEq(Dao<OD, ?> dataDao, OD data) throws SQLException { if (idColumnName == null) { throw new SQLException("Object has no id column specified"); } addClause(new SimpleComparison(idColumnName, idFieldType, dataDao.extractId(data), SimpleComparison.EQUAL_TO_OPERATION)); return this; }
[ "Add a clause where the ID is from an existing object." ]
[ "Returns all entries in no particular order.", "Append the Parameter\nAdd the place holder ? or the SubQuery\n@param value the value of the criteria", "This method extracts predecessor data from an MSPDI file.\n\n@param task Task data", "The quick way to detect for a tier of devices.\nThis method detects for devices which can\ndisplay iPhone-optimized web content.\nIncludes iPhone, iPod Touch, Android, Windows Phone 7 and 8, BB10, WebOS, Playstation Vita, etc.\n@return detection of any device in the iPhone/Android/Windows Phone/BlackBerry/WebOS Tier", "Use this API to fetch appfwlearningsettings resource of given name .", "compare between two points.", "Edit the text of a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to edit.\n@param commentText\nUpdate the comment to this text.\n@throws FlickrException", "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.", "Create a new thread\n\n@param name The name of the thread\n@param runnable The work for the thread to do\n@param daemon Should the thread block JVM shutdown?\n@return The unstarted thread" ]
public List<Module> getModules(final Map<String, String> filters) throws GrapesCommunicationException { final Client client = getClient(); WebResource resource = client.resource(serverURL).path(RequestUtils.getAllModulesPath()); for(final Map.Entry<String,String> queryParam: filters.entrySet()){ resource = resource.queryParam(queryParam.getKey(), queryParam.getValue()); } final ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class); client.destroy(); if(ClientResponse.Status.OK.getStatusCode() != response.getStatus()){ final String message = "Failed to get filtered modules."; if(LOG.isErrorEnabled()) { LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, message, response.getStatus())); } throw new GrapesCommunicationException(message, response.getStatus()); } return response.getEntity(new GenericType<List<Module>>(){}); }
[ "Get a list of modules regarding filters\n\n@param filters Map<String,String>\n@return List<Module>\n@throws GrapesCommunicationException" ]
[ "Extracts project properties from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Get the first non-white Y point\n@param img Image in memory\n@return the trimmed y start", "Wait and retry.", "Adds the includes of the fileset to the handling.\n\n@param handling The handling\n@param fileSet The fileset", "Deletes the inbox message for given messageId\n@param messageId String messageId\n@return boolean value based on success of operation", "Reopen the associated static logging stream. Set to null to redirect to System.out.", "Reads a command \"tag\" from the request.", "below is testing code", "Returns the directory of the file.\n\n@param filePath Path of the file.\n@return The directory string or {@code null} if\nthere is no parent directory.\n@throws IllegalArgumentException if path is bad" ]
public boolean equalId(Element otherElement) { if (getElementId() == null || otherElement.getElementId() == null) { return false; } return getElementId().equalsIgnoreCase(otherElement.getElementId()); }
[ "Are both Id's the same?\n\n@param otherElement the other element to compare\n@return true if id == otherElement.id" ]
[ "Support the range subscript operator for CharSequence with IntRange\n\n@param text a CharSequence\n@param range an IntRange\n@return the subsequence CharSequence\n@since 1.0", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Uploads a new large file.\n@param boxApi the API connection to be used by the upload session.\n@param folderId the id of the folder in which the file will be uploaded.\n@param stream the input stream that feeds the content of the file.\n@param url the upload session URL.\n@param fileName the name of the file to be created.\n@param fileSize the total size of the file.\n@return the created file instance.\n@throws InterruptedException when a thread gets interupted.\n@throws IOException when reading a stream throws exception.", "Adds error correction data to the specified binary string, which already contains the primary data", "Get the property of the given object.\n\n@param object which to be got\n@return the property of the given object\n@throws RuntimeException if the property could not be evaluated", "Moves a calendar to the nth named day of the month.\n\n@param calendar current date\n@param dayNumber nth day", "Return total number of connections currently in use by an application\n@return no of leased connections", "Setter for property value. Doesn't affect entity version and doesn't\ninvalidate any of the cached entity iterables.\n\n@param localId entity local id.\n@param value property value.\n@param oldValue property old value\n@param propertyId property id", "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" ]
public CollectionRequest<Project> findByWorkspace(String workspace) { String path = String.format("/workspaces/%s/projects", workspace); return new CollectionRequest<Project>(this, Project.class, path, "GET"); }
[ "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object" ]
[ "Creates a non-binary media type with the given type, subtype, and charSet\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0", "One of facade methods for operating the Shell.\n\nRun the obtained Shell with commandLoop().\n\n@see org.gearvrf.debug.cli.Shell#Shell(org.gearvrf.debug.cli.Shell.Settings, org.gearvrf.debug.cli.CommandTable, java.util.List)\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param handlers Command handlers\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Processes an anonymous field definition specified at the class level.\n\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"true,false\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[email protected] name=\"conversion\" optional=\"true\" description=\"The fully qualified name of the\nconversion for the field\"\[email protected] name=\"default-fetch\" optional=\"true\" description=\"The default-fetch setting\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the field\"\[email protected] name=\"id\" optional=\"true\" description=\"The position of the field in the class\ndescriptor\"\[email protected] name=\"indexed\" optional=\"true\" description=\"Whether the field is indexed\"\nvalues=\"true,false\"\[email protected] name=\"jdbc-type\" optional=\"true\" description=\"The jdbc type of the column\"\[email protected] name=\"length\" optional=\"true\" description=\"The length of the column\"\[email protected] name=\"locking\" optional=\"true\" description=\"Whether the field supports locking\"\nvalues=\"true,false\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the field\"\[email protected] name=\"nullable\" optional=\"true\" description=\"Whether the field is nullable\"\nvalues=\"true,false\"\[email protected] name=\"precision\" optional=\"true\" description=\"The precision of the column\"\[email protected] name=\"primarykey\" optional=\"true\" description=\"Whether the field is a primarykey\"\nvalues=\"true,false\"\[email protected] name=\"scale\" optional=\"true\" description=\"The scale of the column\"\[email protected] name=\"sequence-name\" optional=\"true\" description=\"The name of the sequence for\nincrementing the field\"\[email protected] name=\"table\" optional=\"true\" description=\"The table of the field (not implemented\nyet)\"\[email protected] name=\"update-lock\" optional=\"true\" description=\"Can be set to false if the persistent attribute is\nused for optimistic locking AND the dbms should update the lock column itself (default is true). Can only be set for\nTIMESTAMP and INTEGER columns\" values=\"true,false\"", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "Links the form with an HTML element which can be clicked.\n\n@param form the collection of the input fields\n@return a FormAction\n@see Form", "Gets the global and adds it ot the BatchExecutionresults using the alternative outIdentifier.\n\n@param identifier\nThe identifier of the global\n@param outIdentifier\nThe identifier used in the ExecutionResults to store the global.\n@return", "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler.", "Adds each forbidden substring, checking that it's not null.\n\n@param forbiddenSubStrings\nthe forbidden substrings\n@throws NullPointerException\nif a forbidden substring is null" ]
public static final String printWorkContour(WorkContour value) { return (Integer.toString(value == null ? WorkContour.FLAT.getValue() : value.getValue())); }
[ "Print a work contour.\n\n@param value WorkContour instance\n@return work contour value" ]
[ "Finishes the process of attaching a metadata cache file once it has been opened and validated.\n\n@param slot the slot to which the cache should be attached\n@param cache the opened, validated metadata cache file", "Use this API to unset the properties of sslservice resource.\nProperties that need to be unset are specified in args array.", "Set the weekdays at which the event should take place.\n@param weekDays the weekdays at which the event should take place.", "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", "Disable all overrides for a specified path with overrideType\n\n@param pathID ID of path containing overrides\n@param clientUUID UUID of client\n@param overrideType Override type identifier", "Use this API to enable Interface of given name.", "Finish initialization of the configuration.", "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read.", "This method retrieves ONLY the ROOT actions" ]
@SuppressWarnings("unchecked") public B setTargetType(Class<?> type) { Objects.requireNonNull(type); set(AbstractQuery.KEY_QUERY_TARGET_TYPE, type); return (B) this; }
[ "Sets the target implementation type required. This can be used to explicitly acquire a specific\nimplementation\ntype and use a query to configure the instance or factory to be returned.\n\n@param type the target implementation type, not null.\n@return this query builder for chaining." ]
[ "Handles the cases in which we can use longs rather than BigInteger\n\n@param section\n@param increment\n@param addrCreator\n@param lowerProducer\n@param upperProducer\n@param prefixLength\n@return", "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException", "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", "Prepare a parallel HTTP HEAD Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Method used to instantiate the appropriate input stream reader,\na standard one, or one which can deal with \"encrypted\" data.\n\n@param directory directory entry\n@param name file name\n@return new input stream\n@throws IOException", "Check if there is an attribute which tells us which concrete class is to be instantiated.", "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", "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call this method to re-prepare the query for execution.", "Converts the node to JSON\n@return JSON object" ]
public static ModelNode validateRequest(CommandContext ctx, ModelNode request) throws CommandFormatException { final Set<String> keys = request.keys(); if (keys.size() == 2) { // no props return null; } ModelNode outcome = (ModelNode) ctx.get(Scope.REQUEST, DESCRIPTION_RESPONSE); if (outcome == null) { outcome = retrieveDescription(ctx, request, true); if (outcome == null) { return null; } else { ctx.set(Scope.REQUEST, DESCRIPTION_RESPONSE, outcome); } } if(!outcome.has(Util.RESULT)) { throw new CommandFormatException("Failed to perform " + Util.READ_OPERATION_DESCRIPTION + " to validate the request: result is not available."); } final String operationName = request.get(Util.OPERATION).asString(); final ModelNode result = outcome.get(Util.RESULT); final Set<String> definedProps = result.hasDefined(Util.REQUEST_PROPERTIES) ? result.get(Util.REQUEST_PROPERTIES).keys() : Collections.emptySet(); if(definedProps.isEmpty()) { if(!(keys.size() == 3 && keys.contains(Util.OPERATION_HEADERS))) { throw new CommandFormatException("Operation '" + operationName + "' does not expect any property."); } } else { int skipped = 0; for(String prop : keys) { if(skipped < 2 && (prop.equals(Util.ADDRESS) || prop.equals(Util.OPERATION))) { ++skipped; continue; } if(!definedProps.contains(prop)) { if(!Util.OPERATION_HEADERS.equals(prop)) { throw new CommandFormatException("'" + prop + "' is not found among the supported properties: " + definedProps); } } } } return outcome; }
[ "return null if the operation has no params to validate" ]
[ "get the setter method corresponding to given property", "Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU", "Returns a new intern odmg-transaction for the current database.", "Read metadata by populating an instance of the target class\nusing SAXParser.", "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "Returns the screen width in pixels\n\n@param context is the context to get the resources\n@return the screen width in pixels", "Obtain the class of a given className\n\n@param className\n@return\n@throws Exception", "Closes the server socket.", "Returns a new color with a new value of the specified HSL\ncomponent." ]
public static base_responses create(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey createresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ createresources[i] = new sslfipskey(); createresources[i].fipskeyname = resources[i].fipskeyname; createresources[i].modulus = resources[i].modulus; createresources[i].exponent = resources[i].exponent; } result = perform_operation_bulk_request(client, createresources,"create"); } return result; }
[ "Use this API to create sslfipskey resources." ]
[ "Use this API to update transformpolicy.", "Calculates the legend positions and which legend title should be displayed or not.\n\nImportant: the LegendBounds in the _Models should be set and correctly calculated before this\nfunction is called!\n@param _Models The graph data which should have the BaseModel class as parent class.\n@param _StartX Left starting point on the screen. Should be the absolute pixel value!\n@param _Paint The correctly set Paint which will be used for the text painting in the later process", "Remove a named object", "Mark root of this task task group depends on the given TaskItem.\nThis ensure this task group's root get picked for execution only after the completion\nof invocation of provided TaskItem.\n\n@param dependencyTaskItem the task item that this task group depends on\n@return the key of the dependency", "Does the bitwise conjunction with this address. Useful when subnetting.\n\n@param mask\n@param retainPrefix whether to drop the prefix\n@return\n@throws IncompatibleAddressException", "Build the context name.\n\n@param objs the objects\n@return the global context name", "Use this API to fetch lbvserver_appflowpolicy_binding resources of given name .", "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function", "Read activities." ]
public List<DbModule> getAncestors(final String gavc, final FiltersHolder filters) { final DbArtifact dbArtifact = getArtifact(gavc); return repositoryHandler.getAncestors(dbArtifact, filters); }
[ "Return the list of module that uses the targeted artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbModule>" ]
[ "Should be called after new data is inserted. Will be automatically called, when the view dimensions\nhas changed.\n\nCalculates the start- and end-angles for every PieSlice.", "Converts a DTO attribute into a generic attribute object.\n\n@param attribute\nThe DTO attribute.\n@return The server side attribute representation. As we don't know at this point what kind of object the\nattribute is (that's a problem for the <code>FeatureModel</code>), we return an <code>Object</code>.", "Gets the time warp.\n\n@return the time warp", "Checks to see if the specified off diagonal element is zero using a relative metric.", "Disable all overrides for a specified path with overrideType\n\n@param pathID ID of path containing overrides\n@param clientUUID UUID of client\n@param overrideType Override type identifier", "Configure file logging and stop console logging.\n\n@param filename\nLog to this file.", "Returns a collection view of this map's values.\n\n@return a collection view of this map's values.", "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Creates a timestamp from the equivalent long value. This conversion\ntakes account of the time zone and any daylight savings time.\n\n@param timestamp timestamp expressed as a long integer\n@return new Date instance" ]
public synchronized void mapPublicKeys(final PublicKey original, final PublicKey substitute) { _mappedPublicKeys.put(original, substitute); if(persistImmediately) { persistPublicKeyMap(); } }
[ "Stores a public key mapping.\n@param original\n@param substitute" ]
[ "Print the visibility adornment of element e prefixed by\nany stereotypes", "Sets the bean store\n\n@param beanStore The bean store", "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs", "Checks if a given number is in the range of a short.\n\n@param number\na number which should be in the range of a short (positive or negative)\n\n@see java.lang.Short#MIN_VALUE\n@see java.lang.Short#MAX_VALUE\n\n@return number as a short (rounding might occur)", "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}.", "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.", "Login for a specific authentication, creating a specific token if given.\n\n@param token token to use\n@param authentication authentication to assign to token\n@return token", "Decodes a signed request, returning the payload of the signed request as a Map\n@param signedRequest the value of the signed_request parameter sent by Facebook.\n@return the payload of the signed request as a Map\n@throws SignedRequestException if there is an error decoding the signed request", "Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>" ]
public static void saveBin(DMatrix A, String fileName) throws IOException { FileOutputStream fileStream = new FileOutputStream(fileName); ObjectOutputStream stream = new ObjectOutputStream(fileStream); try { stream.writeObject(A); stream.flush(); } finally { // clean up try { stream.close(); } finally { fileStream.close(); } } }
[ "Saves a matrix to disk using Java binary serialization.\n\n@param A The matrix being saved.\n@param fileName Name of the file its being saved at.\n@throws java.io.IOException" ]
[ "Return the TransactionManager of the external app", "Calculate start dates for a weekly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Shut down the input manager.\n\nAfter this call, GearVRf will not be able to access IO devices.", "Returns a short class name for an object.\nThis is the class name stripped of any package name.\n\n@return The name of the class minus a package name, for example\n<code>ArrayList</code>", "Utility method used to convert an integer time representation into a\nDuration instance.\n\n@param totalTime integer time representation\n@param format required time format\n@return new Duration instance", "Detects if the current browser is a BlackBerry device AND\nhas a more capable recent browser. Excludes the Playbook.\nExamples, Storm, Bold, Tour, Curve2\nExcludes the new BlackBerry OS 6 and 7 browser!!\n@return detection of a Blackberry device with a better browser", "The list of device types on which this application can run.", "Creates a clone of the current automatonEng instance for\niteration alternative purposes.\n@return", "Loads the localization for the current locale from a bundle of type xmlvfsbundle.\nIt assumes, the content has already been unmarshalled before.\n@param locale the locale for which the localization should be loaded" ]
public static double[] singularValues( DMatrixRMaj A ) { SingularValueDecomposition_F64<DMatrixRMaj> svd = DecompositionFactory_DDRM.svd(A.numRows,A.numCols,false,true,true); if( svd.inputModified() ) { A = A.copy(); } if( !svd.decompose(A)) { throw new RuntimeException("SVD Failed!"); } double sv[] = svd.getSingularValues(); Arrays.sort(sv,0,svd.numberOfSingularValues()); // change the ordering to ascending for (int i = 0; i < sv.length/2; i++) { double tmp = sv[i]; sv[i] = sv[sv.length-i-1]; sv[sv.length-i-1] = tmp; } return sv; }
[ "Returns an array of all the singular values in A sorted in ascending order\n\n@param A Matrix. Not modified.\n@return singular values" ]
[ "Sends a normal HTTP response containing the serialization information in\na XML format", "Changes the vertex buffer associated with this mesh.\n@param vbuf new vertex buffer to use\n@see #setVertices(float[])\n@see #getVertexBuffer()\n@see #getVertices()", "required for rest assured base URI configuration.", "Updates the style of the field label according to the field value if the\nfield value is empty - null or \"\" - removes the label 'active' style else\nwill add the 'active' style to the field label.", "Print a date time value.\n\n@param value date time value\n@return string representation", "Get bean manager from portlet context.\n\n@param ctx the portlet context\n@return bean manager if found", "Find the channel in the animation that animates the named bone.\n@param boneName name of bone to animate.", "Creates the udpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}" ]
public static void objectToXML(Object object, String fileName) throws FileNotFoundException { FileOutputStream fo = new FileOutputStream(fileName); XMLEncoder encoder = new XMLEncoder(fo); encoder.writeObject(object); encoder.close(); }
[ "Converts an object to an XML file.\n\n@param object The object to convert.\n@param fileName The filename where to save it to.\n@throws FileNotFoundException On error." ]
[ "Creates a Bytes object by copying the data of the given ByteBuffer.\n\n@param bb Data will be read from this ByteBuffer in such a way that its position is not\nchanged.", "Decompiles the given .class file and creates the specified output source file.\n\n@param classFilePath the .class file to be decompiled.\n@param outputDir The directory where decompiled .java files will be placed.", "Adds all fields declared directly in the object's class to the output\n@return this", "Use this API to fetch aaauser_intranetip_binding resources of given name .", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Sorts the row indices in ascending order.\n@param sorter (Optional) Used to sort rows. If null a new instance will be declared internally.", "Returns a list that contains all the entries of the given iterator in the same order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a list with the same entries as the given iterator. Never <code>null</code>.", "Get all Groups\n\n@return\n@throws Exception", "Sets the indirection handler class.\n\n@param indirectionHandlerClass The class for indirection handlers" ]
public static dnsview get(nitro_service service, String viewname) throws Exception{ dnsview obj = new dnsview(); obj.set_viewname(viewname); dnsview response = (dnsview) obj.get_resource(service); return response; }
[ "Use this API to fetch dnsview resource of given name ." ]
[ "Returns the screen height in pixels\n\n@param context is the context to get the resources\n@return the screen height in pixels", "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context", "Checks if the given argument is null and throws an exception with a\nmessage containing the argument name if that it true.\n\n@param argument the argument to check for null\n@param argumentName the name of the argument to check.\nThis is used in the exception message.\n@param <T> the type of the argument\n@return the argument itself\n@throws IllegalArgumentException in case argument is null", "Use this API to fetch all the snmpmanager resources that are configured on netscaler.", "If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Context#getResources()}\n@return Point where x = width and y = height", "Loads the leap second rules from a URL, often in a jar file.\n\n@param url the jar file to load, not null\n@throws Exception if an error occurs", "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.", "Create the index file that sets up the frameset.\n@param outputDirectory The target directory for the generated file(s).", "Creates a clone using java serialization\n\n@param from Object to be cloned\n@param <T> type of the cloned object\n@return Clone of the object" ]
private void handleIncomingRequestMessage(SerialMessage incomingMessage) { logger.debug("Message type = REQUEST"); switch (incomingMessage.getMessageClass()) { case ApplicationCommandHandler: handleApplicationCommandRequest(incomingMessage); break; case SendData: handleSendDataRequest(incomingMessage); break; case ApplicationUpdate: handleApplicationUpdateRequest(incomingMessage); break; default: logger.warn(String.format("TODO: Implement processing of Request Message = %s (0x%02X)", incomingMessage.getMessageClass().getLabel(), incomingMessage.getMessageClass().getKey())); break; } }
[ "Handles an incoming request message.\nAn incoming request message is a message initiated by a node or the controller.\n@param incomingMessage the incoming message to process." ]
[ "Find and return the appropriate getter method for field.\n\n@return Get method or null (or throws IllegalArgumentException) if none found.", "Adds the file to the tar archive represented by output stream. It's caller's responsibility to close output stream\nproperly.\n\n@param out target archive.\n@param source file to be added.\n@param fileSize size of the file (which is known in most cases).\n@throws IOException in case of any issues with underlying store.", "Adds the given property and value to the constructed reference.\n\n@param propertyIdValue\nthe property to add\n@param value\nthe value to add\n@return builder object to continue construction", "Returns the primarykey fields.\n\n@return The field descriptors of the primarykey fields", "Used to retrieve all metadata associated with the item.\n@param item item to get metadata for.\n@param fields the optional fields to retrieve.\n@return An iterable of metadata instances associated with the item.", "Returns a new intern odmg-transaction for the current database.", "Set dates with the provided check states.\n@param datesWithCheckInfo the dates to set, accompanied with the check state to set.", "Print duration in thousandths of minutes.\n\n@param duration Duration instance\n@return duration in thousandths of minutes", "Used when setting the \"visible\" field in the response. See the \"List Conversations\" docs for details\n@param filters Filter strings to be applied to the visibility of conversations\n@return this to continue building options" ]
public void sendToTagged(String message, String ... labels) { for (String label : labels) { sendToTagged(message, label); } }
[ "Send message to all connections tagged with all given tags\n@param message the message\n@param labels the tag labels" ]
[ "Use this API to delete sslfipskey of given name.", "Create an executable jar to generate the report. Created jar contains only\nallure configuration file.", "Call when you are done with the client\n\n@throws Exception", "Calculates the length of the next block of RTF data.\n\n@param text RTF data\n@param offset current offset into this data\n@return block length", "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an integer (rounding might occur)", "Ensures that the start and end dates for ranges fit within the\nworking times for a given day.\n\n@param calendar current calendar\n@param list assignment data", "Computes the p=2 norm. If A is a matrix then the induced norm is computed. This\nimplementation is faster, but more prone to buffer overflow or underflow problems.\n\n@param A Matrix or vector.\n@return The norm.", "Stops the current debug server. Active connections are\nnot affected.", "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" ]
protected static <R extends AddressSection, S extends AddressSegment> R fastIncrement( R section, long increment, AddressCreator<?, R, ?, S> addrCreator, Supplier<R> lowerProducer, Supplier<R> upperProducer, Integer prefixLength) { if(increment >= 0) { BigInteger count = section.getCount(); if(count.compareTo(LONG_MAX) <= 0) { long longCount = count.longValue(); if(longCount > increment) { if(longCount == increment + 1) { return upperProducer.get(); } return incrementRange(section, increment, addrCreator, lowerProducer, prefixLength); } BigInteger value = section.getValue(); BigInteger upperValue; if(value.compareTo(LONG_MAX) <= 0 && (upperValue = section.getUpperValue()).compareTo(LONG_MAX) <= 0) { return increment( section, increment, addrCreator, count.longValue(), value.longValue(), upperValue.longValue(), lowerProducer, upperProducer, prefixLength); } } } else { BigInteger value = section.getValue(); if(value.compareTo(LONG_MAX) <= 0) { return add(lowerProducer.get(), value.longValue(), increment, addrCreator, prefixLength); } } return null; }
[ "Handles the cases in which we can use longs rather than BigInteger\n\n@param section\n@param increment\n@param addrCreator\n@param lowerProducer\n@param upperProducer\n@param prefixLength\n@return" ]
[ "Add the list with given bundles to the \"Export-Package\" main attribute.\n\n@param exportedPackages The list of all packages to add.", "Evict cached object\n\n@param key\nthe key indexed the cached object to be evicted", "Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked", "Test for equality.\n@param obj1 the first object\n@param obj2 the second object\n@return true if both are null or the two objects are equal", "Read the top level tasks from GanttProject.\n\n@param gpProject GanttProject project", "Checks to see if every value in the matrix is the specified value.\n\n@param mat The matrix being tested. Not modified.\n@param val Checks to see if every element in the matrix has this value.\n@param tol True if all the elements are within this tolerance.\n@return true if the test passes.", "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance.", "If the String argument defaultLocatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the\ncorresponding strategy is selected and set as default strategy, else both the selected strategy and the default strategy remain\nunchanged.\n@param defaultLocatorSelectionStrategy", "Loads configuration from File. Later loads have lower priority.\n\n@param file File to load from\n@since 1.2.0" ]
public Set<S> getMatchedDeclarationBinder() { Set<S> bindedSet = new HashSet<S>(); for (Map.Entry<ServiceReference<S>, BinderDescriptor> e : declarationBinders.entrySet()) { if (e.getValue().match) { bindedSet.add(getDeclarationBinder(e.getKey())); } } return bindedSet; }
[ "Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.\n\n@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker." ]
[ "checks if the 2 triangles shares a segment\n@author Doron Ganel & Eyal Roth(2009)\n@param t2 - a second triangle\n@return boolean", "Adds OPT_D | OPT_DIR option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Uploads files from the given file input fields.<p<\n\n@param fields the set of names of fields containing the files to upload\n@param filenameCallback the callback to call with the resulting map from field names to file paths\n@param errorCallback the callback to call with an error message", "Get a fallback handler.\n\n@param header the protocol header\n@return the fallback handler", "returns a sorted array of enum constants", "Notifies all listeners that the data is about to be loaded.", "Call the named method\n\n@param obj The object to call the method on\n@param c The class of the object\n@param name The name of the method\n@param args The method arguments\n@return The result of the method", "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.", "Execute a Runnable on a thread pool thread\n\n@param priority\nThe thread priority. Be careful with this! <blockquote>\n<b>Note:</b> Use Thread.MIN_PRIORITY..Thread.MAX_PRIORITY\n(1..10), <b>not</b> the Process/Linux -20..19 range!\n</blockquote>\n@param threadProc\nThe code to run. It doesn't matter if this code never returns\n- by using spawn (and, hence the thread pool) there is at\nleast a chance that you will be reusing a thread, thus saving\nteardown/startup costs.\n\n@return A Future<?> that lets you wait for thread completion, if\nnecessary" ]
public static final String printTaskType(TaskType value) { return (Integer.toString(value == null ? TaskType.FIXED_UNITS.getValue() : value.getValue())); }
[ "Print a task type.\n\n@param value TaskType instance\n@return task type value" ]
[ "Restore backup data\n\n@param fileData - json file with restore data\n@return\n@throws Exception", "Prepare the filter for the transiton at a given time.\nThe default implementation sets the given filter property, but you could override this method to make other changes.\n@param transition the transition time in the range 0 - 1", "Sets allowed values for attribute\n\n@param allowedValues values that are legal as part in this attribute\n@return a builder that can be used to continue building the attribute definition", "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", "Sets the name of the base calendar associated with this task.\nNote that this attribute appears in MPP9 and MSPDI files.\n\n@param calendar calendar instance", "Gets the date time str concise.\n\n@param d\nthe d\n@return the date time str concise", "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "Returns a specific profile\n\n@param profileId ID of profile\n@return Selected profile if found, null if not found\n@throws Exception exception", "Finds edges based to a specific object reference descriptor and\nadds them to the edge map.\n@param vertex the object envelope vertex holding the object reference\n@param rds the object reference descriptor" ]
public static boolean isPortletEnvSupported() { if (enabled == null) { synchronized (PortletSupport.class) { if (enabled == null) { try { PortletSupport.class.getClassLoader().loadClass("javax.portlet.PortletContext"); enabled = true; } catch (Throwable ignored) { enabled = false; } } } } return enabled; }
[ "Is portlet env supported.\n\n@return true if portlet env is supported, false otherwise" ]
[ "Add a new server mapping to current profile\n\n@param sourceHost source hostname\n@param destinationHost destination hostname\n@param hostHeader host header\n@return ServerRedirect", "Get the seconds difference", "Use this API to add inat.", "Add a 'IS NOT NULL' clause so the column must not be null. '&lt;&gt;' NULL does not work.", "Command-line version of the classifier. See the class\ncomments for examples of use, and SeqClassifierFlags\nfor more information on supported flags.", "Sets the permissions associated with this shared link.\n@param permissions the new permissions for this shared link.", "Returns an iterator equivalent to this iterator with all duplicated items removed\nby using the default comparator. The original iterator will become\nexhausted of elements after determining the unique values. A new iterator\nfor the unique values will be returned.\n\n@param self an Iterator\n@return the modified Iterator\n@since 1.5.5", "Picks out a File from `thriftFiles` corresponding to a given artifact ID\nand file name. Returns null if `artifactId` and `fileName` do not map to a\nthrift file path.\n\n@parameter artifactId The artifact ID of which to look up the path\n@parameter fileName the name of the thrift file for which to extract a path\n@parameter thriftFiles The set of Thrift files in which to lookup the\nartifact ID.\n@return The path of the directory containing Thrift files for the given\nartifact ID. null if artifact ID not found.", "Excludes Vertices that are of the provided type." ]
@Override public DMatrixRMaj getA() { if( A.data.length < numRows*numCols ) { A = new DMatrixRMaj(numRows,numCols); } A.reshape(numRows,numCols, false); CommonOps_DDRM.mult(Q,R,A); return A; }
[ "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix." ]
[ "Flattens an option into its value or else null, which is not great but is usually more convenient in Java.\n@param option Optional value -- either Some(T) or None\n@param <T> Any type\n@return The value inside the option, or else null", "Starts the one and only job instance in a separate Thread. Should be called exactly one time before\nthe operation is stopped.\n\n@param arguments {@inheritDoc}", "Get the PropertyDescriptor for aClass and aPropertyName", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "Set hint number for country", "Calculate the child size along the axis\n@param dataIndex data index\n@param axis {@link Axis}\n@return child size", "Add a '&lt;' clause so the column must be less-than the value.", "Main method for testing fetching", "Send an error to the client with an exception.\n\n@param httpServletResponse the http response to send the error to\n@param e the error that occurred" ]
private ProjectFile handleXerFile(InputStream stream) throws Exception { PrimaveraXERFileReader reader = new PrimaveraXERFileReader(); reader.setCharset(m_charset); List<ProjectFile> projects = reader.readAll(stream); ProjectFile project = null; for (ProjectFile file : projects) { if (file.getProjectProperties().getExportFlag()) { project = file; break; } } if (project == null && !projects.isEmpty()) { project = projects.get(0); } return project; }
[ "XER files can contain multiple projects when there are cross-project dependencies.\nAs the UniversalProjectReader is designed just to read a single project, we need\nto select one project from those available in the XER file.\nThe original project selected for export by the user will have its \"export flag\"\nset to true. We'll return the first project we find where the export flag is\nset to true, otherwise we'll just return the first project we find in the file.\n\n@param stream schedule data\n@return ProjectFile instance" ]
[ "Sets the name of the base calendar associated with this task.\nNote that this attribute appears in MPP9 and MSPDI files.\n\n@param calendar calendar instance", "Parses the query facet configurations.\n@param rangeFacetObject The JSON sub-node with the query facet configurations.\n@return The query facet configurations.", "Check the version of a command class by sending a VERSION_COMMAND_CLASS_GET message to the node.\n@param commandClass the command class to check the version for.", "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "Reads baseline values for the current resource.\n\n@param xmlResource MSPDI resource instance\n@param mpxjResource MPXJ resource instance", "Readable yyyyMMdd representation of a day, which is also sortable.", "Resolve the single type argument of the given generic interface against the given\ntarget method which is assumed to return the given interface or an implementation\nof it.\n@param method the target method to check the return type of\n@param genericIfc the generic interface or superclass to resolve the type argument from\n@return the resolved parameter type of the method return type, or {@code null}\nif not resolvable or if the single argument is of type {@link WildcardType}.", "Gets the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.\n@return the metadata returned from the server.", "Record a prepare operation timeout.\n\n@param failedOperation the prepared operation" ]
public ParallelTaskBuilder setHttpPollerProcessor( HttpPollerProcessor httpPollerProcessor) { this.httpMeta.setHttpPollerProcessor(httpPollerProcessor); this.httpMeta.setPollable(true); return this; }
[ "Sets the HTTP poller processor to handle Async API.\nWill auto enable the pollable mode with this call\n\n@param httpPollerProcessor\nthe http poller processor\n@return the parallel task builder" ]
[ "Adds a Statement to a given collection of statement groups.\nIf the statement id is not null and matches that of an existing statement,\nthis statement will be replaced.\n\n@param statement\n@param claims\n@return", "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", "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance", "Set the custom projection matrix with individual matrix elements.", "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.", "Create a smaller array from an existing one.\n\n@param strings an array containing element of type {@link String}\n@param begin the starting position of the sub-array\n@param length the number of element to consider\n@return a new array continaining only the selected elements", "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object", "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()", "Prints command-line help menu." ]
private ProjectFile handleDirectory(File directory) throws Exception { ProjectFile result = handleDatabaseInDirectory(directory); if (result == null) { result = handleFileInDirectory(directory); } return result; }
[ "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null" ]
[ "Gets display duration for specified frame.\n\n@param n int index of frame.\n@return delay in milliseconds.", "Tries to load a property file with the specified name.\n\n@param localizedName the name\n@return the resource bundle if it was loaded, otherwise the backup", "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field", "compares two snippet", "Returns a single parent of the given tag. If there are multiple parents, throws a WindupException.", "Process an operand value used in the definition of the graphical\nindicator criteria.\n\n@param index position in operand list\n@param type field type\n@param criteria indicator criteria", "Inserts a child task prior to a given sibling task.\n\n@param child new child task\n@param previousSibling sibling task", "Create the exception assignment map.\n\n@param rows calendar rows\n@return exception assignment map", "Send a request to another handler internal to the server, getting back the response body and response code.\n\n@param request request to send to another handler.\n@return {@link InternalHttpResponse} containing the response code and body." ]
public ProjectCalendarException getException(Date date) { ProjectCalendarException exception = null; // We're working with expanded exceptions, which includes any recurring exceptions // expanded into individual entries. populateExpandedExceptions(); if (!m_expandedExceptions.isEmpty()) { sortExceptions(); int low = 0; int high = m_expandedExceptions.size() - 1; long targetDate = date.getTime(); while (low <= high) { int mid = (low + high) >>> 1; ProjectCalendarException midVal = m_expandedExceptions.get(mid); int cmp = 0 - DateHelper.compare(midVal.getFromDate(), midVal.getToDate(), targetDate); if (cmp < 0) { low = mid + 1; } else { if (cmp > 0) { high = mid - 1; } else { exception = midVal; break; } } } } if (exception == null && getParent() != null) { // Check base calendar as well for an exception. exception = getParent().getException(date); } return (exception); }
[ "Retrieve a calendar exception which applies to this date.\n\n@param date target date\n@return calendar exception, or null if none match this date" ]
[ "Creates a color item that represents a color field fond for a track.\n\n@param colorId the key of the color as found in the database\n@param label the corresponding color label as found in the database (or sent in the dbserver message)\n\n@return the color metadata field", "Use this API to fetch vpnvserver_vpnnexthopserver_binding resources of given name .", "Computes either the vector p-norm or the induced matrix p-norm depending on A\nbeing a vector or a matrix respectively.\n\n@param A Vector or matrix whose norm is to be computed.\n@param p The p value of the p-norm.\n@return The computed norm.", "Create 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", "Should be called after all columns have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias", "Returns all base types.\n\n@return An iterator of the base types", "Convert any number class to array of integer.\n\n@param <T> Type.\n@param array Array.\n@return Integer array.", "Return all objects for the given class." ]
private static Data loadLeapSeconds(URL url) throws ClassNotFoundException, IOException { List<String> lines; try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), StandardCharsets.UTF_8))) { lines = reader.lines().collect(Collectors.toList()); } List<Long> dates = new ArrayList<>(); List<Integer> offsets = new ArrayList<>(); for (String line : lines) { line = line.trim(); if (line.isEmpty() || line.startsWith("#")) { continue; } Matcher matcher = LEAP_FILE_FORMAT.matcher(line); if (matcher.matches() == false) { throw new StreamCorruptedException("Invalid leap second file"); } dates.add(LocalDate.parse(matcher.group(1)).getLong(JulianFields.MODIFIED_JULIAN_DAY)); offsets.add(Integer.valueOf(matcher.group(2))); } long[] datesData = new long[dates.size()]; int[] offsetsData = new int[dates.size()]; long[] taiData = new long[dates.size()]; for (int i = 0; i < datesData.length; i++) { datesData[i] = dates.get(i); offsetsData[i] = offsets.get(i); taiData[i] = tai(datesData[i], offsetsData[i]); } return new Data(datesData, offsetsData, taiData); }
[ "Loads the leap second rules from a URL, often in a jar file.\n\n@param url the jar file to load, not null\n@throws Exception if an error occurs" ]
[ "Read data for a single column.\n\n@param startIndex block start\n@param length block length", "exposed only for tests", "Convenience method to determine if a character is special to the regex system.\n\n@param chr\nthe character to test\n\n@return is the character a special character.", "Checks to see if the token is in the list of allowed character operations. Used to apply order of operations\n@param token Token being checked\n@param ops List of allowed character operations\n@return true for it being in the list and false for it not being in the list", "Recursively builds the VFS entry bean for the quick filtering function in the folder tab.<p<\n\n@param resource the resource\n@param childMap map from parent to child resources\n@param filterMatches the resources matching the filter\n@param parentPaths root paths of resources which are not leaves\n@param isRoot true if this the root node\n\n@return the VFS entry bean for the client\n\n@throws CmsException if something goes wrong", "Append field with quotes and escape characters added, if required.\n\n@return this", "Send a master handoff yield response to all registered listeners.\n\n@param fromPlayer the device number that is responding to our request that it yield the tempo master role to us\n@param yielded will be {@code true} if we should now be the tempo master", "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value", "Gets information for a Box Storage Policy with optional fields.\n\n@param fields the fields to retrieve.\n@return info about this item containing only the specified fields, including storage policy." ]
static public String bb2hex(byte[] bb) { String result = ""; for (int i=0; i<bb.length; i++) { result = result + String.format("%02X ", bb[i]); } return result; }
[ "Converts a byte array to a hexadecimal string representation\n@param bb the byte array to convert\n@return string the string representation" ]
[ "Use this API to unset the properties of responderpolicy resource.\nProperties that need to be unset are specified in args array.", "Create a directory at the given path if it does not exist yet.\n\n@param path\nthe path to the directory\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Execute a CLI command. This can be any command that you might execute on\nthe CLI command line, including both server-side operations and local\ncommands such as 'cd' or 'cn'.\n\n@param cliCommand A CLI command.\n@return A result object that provides all information about the execution\nof the command.", "Return the releaseId\n\n@return releaseId", "This method reads a two byte integer from the input stream.\n\n@param is the input stream\n@return integer value\n@throws IOException on file read error or EOF", "Make a copy of JobContext of current thread\n@return the copy of current job context or an empty job context", "Reads the NTriples file from the reader, pushing statements into\nthe handler.", "Converts from a Fluo RowColumn to a Accumulo Key\n\n@param rc RowColumn\n@return Key" ]
public String getOriginalUrl() throws FlickrException { if (originalSize == null) { if (originalFormat != null) { return getOriginalBaseImageUrl() + "_o." + originalFormat; } return getOriginalBaseImageUrl() + DEFAULT_ORIGINAL_IMAGE_SUFFIX; } else { return originalSize.getSource(); } }
[ "Get the original image URL.\n\n@return The original image URL" ]
[ "Delete an object from the database.", "Process a relationship between two tasks.\n\n@param row relationship data", "Returns the probability that the records v1 and v2 came from\nrepresent the same entity, based on high and low probability\nsettings etc.", "This method sends the same message to many agents.\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param connector\nThe connector to get the external access", "Loads the leap second rules from a URL, often in a jar file.\n\n@param url the jar file to load, not null\n@throws Exception if an error occurs", "This method is used to process an MPP14 file. This is the file format\nused by Project 14.\n\n@param reader parent file reader\n@param file parent MPP file\n@param root Root of the POI file system.", "Shrinks the alert message body so that the resulting payload\nmessage fits within the passed expected payload length.\n\nThis method performs best-effort approach, and its behavior\nis unspecified when handling alerts where the payload\nwithout body is already longer than the permitted size, or\nif the break occurs within word.\n\n@param payloadLength the expected max size of the payload\n@param postfix for the truncated body, e.g. \"...\"\n@return this", "Get distance between geographical coordinates\n@param point1 Point1\n@param point2 Point2\n@return Distance (double)", "Obtain a connection asynchronously by queueing a request to obtain a connection in a separate thread.\n\nUse as follows:<p>\nFuture&lt;Connection&gt; result = pool.getAsyncConnection();<p>\n... do something else in your application here ...<p>\nConnection connection = result.get(); // get the connection<p>\n\n@return A Future task returning a connection." ]
public ParallelTaskBuilder prepareUdp(String command) { reinitIfClosed(); ParallelTaskBuilder cb = new ParallelTaskBuilder(); cb.setProtocol(RequestProtocol.UDP); cb.getUdpMeta().setCommand(command); return cb; }
[ "Prepare a parallel UDP Task.\n\n@param command\nthe command\n@return the parallel task builder" ]
[ "Reads a \"date-time\" argument from the request.", "For a particular stealer node find all the primary partitions tuples it\nwill steal.\n\n@param currentCluster The cluster definition of the existing cluster\n@param finalCluster The final cluster definition\n@param stealNodeId Node id of the stealer node\n@return Returns a list of primary partitions which this stealer node will\nget", "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Get a TokenizerFactory that does Penn Treebank tokenization.\nThis is now the recommended factory method to use.\n\n@param factory A TokenFactory that determines what form of token is returned by the Tokenizer\n@param options A String specifying options (see the class javadoc for details)\n@param <T> The type of the tokens built by the LexedTokenFactory\n@return A TokenizerFactory that does Penn Treebank tokenization", "This method performs database modification at the very and of transaction.", "Cancel all currently active operations.\n\n@return a list of cancelled operations", "Use this API to fetch all the sslcertkey resources that are configured on netscaler.", "This is the probability density function for the Gaussian\ndistribution." ]
private void appendParameter(Object value, StringBuffer buf) { if (value instanceof Query) { appendSubQuery((Query) value, buf); } else { buf.append("?"); } }
[ "Append the Parameter\nAdd the place holder ? or the SubQuery\n@param value the value of the criteria" ]
[ "Adds Editor specific UI components to the toolbar.\n@param context The context that provides access to the toolbar.", "Returns whether this host should ignore operations from the master domain controller that target\nthe given address.\n\n@param address the resource address. Cannot be {@code null}\n\n@return {@code true} if the operation should be ignored; {@code false} otherwise", "generate a message for loglevel FATAL\n\n@param pObject the message Object", "Retrieves a timestamp from the property data.\n\n@param type Type identifier\n@return timestamp", "host.xml", "Returns the comma separated list of available scopes\n\n@return String", "Use this API to fetch the statistics of all systemmemory_stats resources that are configured on netscaler.", "Receive some bytes from the player we are requesting metadata from.\n\n@param is the input stream associated with the player metadata socket.\n@return the bytes read.\n\n@throws IOException if there is a problem reading the response", "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" ]
public DynamicReportBuilder setQuery(String text, String language) { this.report.setQuery(new DJQuery(text, language)); return this; }
[ "Adds main report query.\n\n@param text\n@param language use constants from {@link DJConstants}\n@return" ]
[ "Button onClick listener.\n\n@param v", "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event.", "Creates the .story file necessary for every Beast Test Case.\n\n@param scenarioName\n- The name of the scenario, with spaces\n@param srcTestRootFolder\n- The test root folder\n@param packagePath\n- The package of the BeastTestCase\n@param scenarioDescription\n- the scenario name\n@param givenDescription\n- The given description\n@param whenDescription\n- The when description\n@param thenDescription\n- The then description\n@throws BeastException", "Extract a slice [from, to) of this buffer. This methods creates a copy of the specified region.\n@param from\n@param to\n@return", "Creates a map between a work pattern ID and a list of time entry rows.\n\n@param rows time entry rows\n@return time entry map", "Find out the scrollable child view from a ViewGroup.\n\n@param viewGroup", "Invokes a function defined in the script.\n\n@param funcName\nThe function name.\n@param params\nThe parameter array.\n@return\nA boolean value representing whether the function is\nexecuted correctly. If the function cannot be found, or\nparameters don't match, {@code false} is returned.", "Check, if the resource should be exported with minimal meta-data.\nThis holds for resources that are not part of the export, but must be\nexported as super-folders.\n\n@param path export-site relative path of the resource to check.\n\n@return flag, indicating if the resource should be exported with minimal meta data.", "Reads baseline values for the current task.\n\n@param xmlTask MSPDI task instance\n@param mpxjTask MPXJ task instance\n@param durationFormat duration format to use" ]
public void configure(@Observes(precedence = -200) ArquillianDescriptor arquillianDescriptor) { restAssuredConfigurationInstanceProducer.set( RestAssuredConfiguration.fromMap(arquillianDescriptor .extension("restassured") .getExtensionProperties())); }
[ "required for rest assured base URI configuration." ]
[ "Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered.\n\n@param timeout number of milliseconds after which the callback should be called if it hasn't already been", "Processes one of the menu responses that jointly constitute the track metadata, updating our\nfields accordingly.\n\n@param item the menu response to be considered", "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", "Use this API to fetch cmppolicylabel resource of given name .", "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.", "Returns the count of total number of unread inbox messages for the user\n@return int - count of all unread messages", "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this", "Set the week day the event should take place.\n@param dayString the day as string.", "Returns a compact representation of all of the tags the task has.\n\n@param task The task to get tags on.\n@return Request object" ]