query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public void updateConfig(String appName, Map<String, String> config) { connection.execute(new ConfigUpdate(appName, config), apiKey); }
[ "Update environment variables to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param config Key/Value pairs of environment variables." ]
[ "Use this API to clear bridgetable.", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success.", "Detailed request to track additional data about PUT, GET and GET_ALL\n\n@param timeNS The time in nanoseconds that the operation took to complete\n@param numEmptyResponses For GET and GET_ALL, how many keys were no values found\n@param valueBytes Total number of bytes across all versions of values' bytes\n@param keyBytes Total number of bytes in the keys\n@param getAllAggregatedCount Total number of keys returned for getAll calls", "Finds and sets up the Listeners in the given rootView.\n\n@param rootView a View to traverse looking for listeners.\n@return the list of refinement attributes found on listeners.", "Performs DBSCAN cluster analysis.\n\n@param points the points to cluster\n@return the list of clusters\n@throws NullArgumentException if the data points are null", "Returns a new instance of the class with the given qualified name using the default or\nor a no-arg constructor.\n\n@param className The qualified name of the class to instantiate", "Trim the trailing spaces.\n\n@param line", "Iterate through a set of bit field flags and set the value for each one\nin the supplied container.\n\n@param flags bit field flags\n@param container field container\n@param data source data", "Find documents using an index\n\n@param selectorJson String representation of a JSON object describing criteria used to\nselect documents. For example:\n{@code \"{ \\\"selector\\\": {<your data here>} }\"}.\n@param classOfT The class of Java objects to be returned\n@param <T> the type of the Java object to be returned\n@return List of classOfT objects\n@see #findByIndex(String, Class, FindByIndexOptions)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/cloudant_query.html#selector-syntax\"\ntarget=\"_blank\">selector syntax</a>\n@deprecated Use {@link #query(String, Class)} instead" ]
@VisibleForTesting protected static int getBarSize(final ScaleBarRenderSettings settings) { if (settings.getParams().barSize != null) { return settings.getParams().barSize; } else { if (settings.getParams().getOrientation().isHorizontal()) { return settings.getMaxSize().height / 4; } else { return settings.getMaxSize().width / 4; } } }
[ "Get the bar size.\n\n@param settings Parameters for rendering the scalebar." ]
[ "Parse a command line with the defined command as base of the rules.\nIf any options are found, but not defined in the command object an\nCommandLineParserException will be thrown.\nAlso, if a required option is not found or options specified with value,\nbut is not given any value an CommandLineParserException will be thrown.\n\n@param line input\n@param mode parser mode", "Obtains a Ethiopic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Ethiopic local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Use this API to fetch all the vpnclientlessaccesspolicy resources that are configured on netscaler.", "Initializes the Stitch SDK so that app clients can be created.\n\n@param context An Android context value.", "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.\nThis uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources.", "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy", "Loads a classifier from the file specified. If the file's name ends in .gz,\nuses a GZIPInputStream, else uses a regular FileInputStream. This method\ncloses the File when done.\n\n@param file\nLoads a classifier from this file.\n@param props\nProperties in this object will be used to overwrite those\nspecified in the serialized classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Gets existing config files.\n\n@return the existing config files", "Does the server support log downloads?\n\n@param cliGuiCtx The context.\n@return <code>true</code> if the server supports log downloads,\n<code>false</code> otherwise." ]
public static <E> Collection<E> collectify(ObjectMapper mapper, Object source, Class<? extends Collection> targetCollectionType, Class<E> targetElementType) { CollectionType collectionType = mapper.getTypeFactory().constructCollectionType(targetCollectionType, targetElementType); return objectify(mapper, convertToCollection(source), collectionType); }
[ "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType the target collection element type\n@return collection" ]
[ "Returns the \"msgCount\" belief\n\n@return int - the count", "Throws an IllegalArgumentException when the given value is not false.\n@param value the value to assert if false\n@param message the message to display if the value is false\n@return the value", "radi otsu da dobije spojena crna slova i ra\n\n@param input\n@return the processed image", "Get the underlying channel. This may block until the channel is set.\n\n@return the channel\n@throws IOException for any error", "Flush output streams.", "Parse a comma-delimited list of method names into a List of strings.\nWhitespace is ignored.\n\n@param methods the comma delimited list of methods from the spring configuration\n\n@return List&lt;String&gt;", "Use this API to delete sslcipher of given name.", "Generate a placeholder for an unknown type.\n\n@param type expected type\n@param fieldID field ID\n@return placeholder", "Add columns to the tree.\n\n@param parentNode parent tree node\n@param table columns container" ]
public Map<String, EntityDocument> wbGetEntities( WbGetEntitiesActionData properties) throws MediaWikiApiErrorException, IOException { return wbGetEntities(properties.ids, properties.sites, properties.titles, properties.props, properties.languages, properties.sitefilter); }
[ "Creates a map of identifiers or page titles to documents retrieved via\nthe API URL\n\n@param properties\nparameter setting for wbgetentities\n@return map of document identifiers or titles to documents retrieved via\nthe API URL\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\nif we encounter network issues or HTTP 500 errors from Wikibase" ]
[ "This method should be called after all column have been added to the report.\n@param numgroups\n@return", "Waits for the timeout duration until the url responds with correct status code\n\n@param routeUrl URL to check (usually a route one)\n@param timeout Max timeout value to await for route readiness.\nIf not set, default timeout value is set to 5.\n@param timeoutUnit TimeUnit used for timeout duration.\nIf not set, Minutes is used as default TimeUnit.\n@param repetitions How many times in a row the route must respond successfully to be considered available.\n@param statusCodes list of status code that might return that service is up and running.\nIt is used as OR, so if one returns true, then the route is considered valid.\nIf not set, then only 200 status code is used.", "Begin writing a named object attribute.\n\n@param name attribute name", "Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception.", "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "Map originator type.\n\n@param originatorType the originator type\n@return the originator", "Rehashes the contents of the receiver into a new table\nwith a smaller or larger capacity.\nThis method is called automatically when the\nnumber of keys in the receiver exceeds the high water mark or falls below the low water mark.", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "Use this API to expire cacheobject." ]
protected <T> T getDatamodelObjectFromResponse(JsonNode response, List<String> path, Class<T> targetClass) throws JsonProcessingException { if(response == null) { throw new JsonMappingException("The API response is null"); } JsonNode currentNode = response; for(String field : path) { if (!currentNode.has(field)) { throw new JsonMappingException("Field '"+field+"' not found in API response."); } currentNode = currentNode.path(field); } return mapper.treeToValue(currentNode, targetClass); }
[ "Extracts a particular data model instance from a JSON response\nreturned by MediaWiki. The location is described by a list of successive\nfields to use, from the root to the target object.\n\n@param response\nthe API response as returned by MediaWiki\n@param path\na list of fields from the root to the target object\n@return\nthe parsed POJO object\n@throws JsonProcessingException" ]
[ "Gets the automaton by id.\n\n@param id the id\n@return the automaton by id\n@throws IOException Signals that an I/O exception has occurred.", "Extract where the destination is reshaped to match the extracted region\n@param src The original matrix which is to be copied. Not modified.\n@param srcX0 Start column.\n@param srcX1 Stop column+1.\n@param srcY0 Start row.\n@param srcY1 Stop row+1.\n@param dst Where the submatrix are stored. Modified.", "Attemps to delete all provided segments from a log and returns how many it was able to", "Obtains a local date in Ethiopic calendar system from the\nera, year-of-era, month-of-year and day-of-month fields.\n\n@param era the Ethiopic era, not null\n@param yearOfEra the year-of-era\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code EthiopicEra}", "Add nodes to the workers list\n\n@param nodeIds list of node ids.", "Sign off a group of connections from the registry by key\n\n@param key\nthe key\n@param connections\na collection of websocket connections", "Find the collision against a specific collider in a list of collisions.\n@param pickList collision list\n@param findme collider to find\n@return collision with the specified collider, null if not found", "Adds a new Token to the end of the linked list", "Use this API to update rsskeytype." ]
private void copyToStrBuffer(byte[] buffer, int offset, int length) { Preconditions.checkArgument(length >= 0); if (strBuffer.length - strBufferIndex < length) { // cannot fit, expanding buffer expandStrBuffer(length); } System.arraycopy( buffer, offset, strBuffer, strBufferIndex, Math.min(length, MAX_ALLOWABLE_BUFFER_SIZE - strBufferIndex)); strBufferIndex += length; }
[ "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" ]
[ "Retrieve a duration field.\n\n@param type field type\n@return Duration instance", "This method retrieves a double value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of a double\n@return double value", "Dumps a texture coordinate set of a mesh to stdout.\n\n@param mesh the mesh\n@param coords the coordinates", "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "to do with XmlId value being strictly of type 'String'", "Creates multiple aliases at once.", "Used by FreeStyle Maven jobs only", "Converts the node to JSON\n@return JSON object", "Detach a connection from a key.\n\n@param key\nthe key\n@param connection\nthe connection" ]
private void reconnectFlows() { // create the reverse id map: for (Entry<Object, List<String>> entry : _outgoingFlows.entrySet()) { for (String flowId : entry.getValue()) { if (entry.getKey() instanceof SequenceFlow) { // if it is a sequence flow, we can tell its targets if (_idMap.get(flowId) instanceof FlowNode) { ((SequenceFlow) entry.getKey()).setTargetRef((FlowNode) _idMap.get(flowId)); } if (_idMap.get(flowId) instanceof Association) { ((Association) _idMap.get(flowId)).setTargetRef((SequenceFlow) entry.getKey()); } } else if (entry.getKey() instanceof Association) { ((Association) entry.getKey()).setTargetRef((BaseElement) _idMap.get(flowId)); } else { // if it is a node, we can map it to its outgoing sequence flows if (_idMap.get(flowId) instanceof SequenceFlow) { ((FlowNode) entry.getKey()).getOutgoing().add((SequenceFlow) _idMap.get(flowId)); } else if (_idMap.get(flowId) instanceof Association) { ((Association) _idMap.get(flowId)).setSourceRef((BaseElement) entry.getKey()); } } } } }
[ "Reconnect the sequence flows and the flow nodes.\nDone after the initial pass so that we have all the target information." ]
[ "Handles the deletion of a key.\n@param key the deleted key.\n@return <code>true</code> if the deletion was successful, <code>false</code> otherwise.", "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.", "Sets the elements of this vector to uniformly distributed random values\nin a specified range, using a supplied random number generator.\n\n@param lower\nlower random value (inclusive)\n@param upper\nupper random value (exclusive)\n@param generator\nrandom number generator", "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body", "Sets an attribute in the main section of the manifest.\n\n@param name the attribute's name\n@param value the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Retrieves a specific range of child items in this folder.\n\n@param offset the index of the first child item to retrieve.\n@param limit the maximum number of children to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of child items.", "Retrieves state and metrics information for all client connections across the cluster.\n\n@return list of connections across the cluster", "Use this API to reset Interface resources." ]
public static String getEffortLevelDescription(Verbosity verbosity, int points) { EffortLevel level = EffortLevel.forPoints(points); switch (verbosity) { case ID: return level.name(); case VERBOSE: return level.getVerboseDescription(); case SHORT: default: return level.getShortDescription(); } }
[ "Returns the right string representation of the effort level based on given number of points." ]
[ "read data from channel to buffer\n\n@param channel readable channel\n@param buffer bytebuffer\n@return read size\n@throws IOException any io exception", "Use this API to add dnspolicylabel.", "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Publish finish events for each of the specified query labels\n\n<pre>\n{@code\nLabelledEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Identifier\n@param bus EventBus to post events to\n@param labels Query types to post to event bus", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "May have to be changed to let multiple touch", "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.", "Readable yyyyMMdd int representation of a day, which is also sortable." ]
public static DiscountCurve createDiscountCurveFromDiscountFactors(String name, double[] times, double[] givenDiscountFactors) { DiscountCurve discountFactors = new DiscountCurve(name); for(int timeIndex=0; timeIndex<times.length;timeIndex++) { discountFactors.addDiscountFactor(times[timeIndex], givenDiscountFactors[timeIndex], times[timeIndex] > 0); } return discountFactors; }
[ "Create a discount curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this discount curve.\n@param times Array of times as doubles.\n@param givenDiscountFactors Array of corresponding discount factors.\n@return A new discount factor object." ]
[ "Save current hostname and reuse it.\n\n@return hostname as String", "Skip to the next matching short value.\n\n@param buffer input data array\n@param offset start offset into the input array\n@param value value to match\n@return offset of matching pattern", "fetch correct array index if index is less than 0\n\nArrayNode will convert all negative integers into 0...\n\n@param index wanted index\n@return {@link Integer} new index", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none.", "Get the Upper triangular factor.\n\n@return U.", "Use this API to add authenticationradiusaction resources.", "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "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" ]
PatchEntry getEntry(final String name, boolean addOn) { return addOn ? addOns.get(name) : layers.get(name); }
[ "Get a patch entry for either a layer or add-on.\n\n@param name the layer name\n@param addOn whether the target is an add-on\n@return the patch entry, {@code null} if it there is no such layer" ]
[ "Converts string to UUID and returns it, or null if the conversion is not possible.\n\n@param uuid the potential UUID string\n@return the UUID, or null if conversion is not possible", "Gets container with alls groups of a certain user.\n\n@param cms cmsobject\n@param user to find groups for\n@param caption caption property\n@param iconProp property\n@param ou ou\n@param propStatus status property\n@param iconProvider the icon provider\n@return Indexed Container", "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.", "By default uses InputStream as the type of the image\n@param title\n@param property\n@param width\n@param fixedWidth\n@param imageScaleMode\n@param style\n@return\n@throws ColumnBuilderException\n@throws ClassNotFoundException", "Use this API to delete onlinkipv6prefix of given name.", "get the jdbcTypes from the Query or the ResultSet if not available from the Query\n@throws SQLException", "persist decorator and than continue to children without touching the model", "Extracts a particular data model instance from a JSON response\nreturned by MediaWiki. The location is described by a list of successive\nfields to use, from the root to the target object.\n\n@param response\nthe API response as returned by MediaWiki\n@param path\na list of fields from the root to the target object\n@return\nthe parsed POJO object\n@throws JsonProcessingException", "Declares the internal data structures so that it can process matrices up to the specified size.\n\n@param maxRows\n@param maxCols" ]
public static base_responses update(nitro_service client, snmpuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpuser updateresources[] = new snmpuser[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new snmpuser(); updateresources[i].name = resources[i].name; updateresources[i].group = resources[i].group; updateresources[i].authtype = resources[i].authtype; updateresources[i].authpasswd = resources[i].authpasswd; updateresources[i].privtype = resources[i].privtype; updateresources[i].privpasswd = resources[i].privpasswd; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update snmpuser resources." ]
[ "Use this API to export sslfipskey.", "Use this API to fetch gslbsite resource of given name .", "Retrieve the currently cached value for the given document.", "Removes a value from the list.\n\n@param list the list\n@param value value to remove", "See page 385 of Fundamentals of Matrix Computations 2nd", "Print the common class node's properties", "Generate an IKVM map file.\n\n@param mapFileName map file name\n@param jarFile jar file containing code to be mapped\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws XMLStreamException\n@throws ClassNotFoundException\n@throws IntrospectionException", "Returns the text value of all of the elements in the collection.\n\n@return the text value of all the elements in the collection or null", "Read a field from the supplied stream, starting with the tag that identifies the type, and reading enough\nto collect the corresponding value.\n\n@param is the stream on which a type tag is expected to be the next byte, followed by the field value.\n\n@return the field that was found on the stream.\n\n@throws IOException if there is a problem reading the field." ]
protected I_CmsSearchDocument createDefaultIndexDocument() { try { return m_index.getFieldConfiguration().createDocument(m_cms, m_res, m_index, null); } catch (CmsException e) { LOG.error( "Default document for " + m_res.getRootPath() + " and index " + m_index.getName() + " could not be created.", e); return null; } }
[ "Creates a document for the resource without extracting the content. The aim is to get a content indexed,\neven if extraction runs into a timeout.\n\n@return the document for the resource generated if the content is discarded,\ni.e., only meta information are indexed." ]
[ "Add query part for the facet, without filters.\n@param query The query part that is extended for the facet", "Removes the row with the specified key from this association.\n\n@param key the key of the association row to remove", "Set the value for a custom request\n\n@param pathId ID of path\n@param customRequest value of custom request\n@param clientUUID UUID of client", "Runs a query that returns a single int.", "Initializes the editor states for the different modes, depending on the type of the opened file.", "Select item by it's position\n\n@param position int value of item position to select\n@param invokeListeners boolean value for invoking listeners", "Append a Handler to a portion of the handler tree\n@param parent The parent to add the child to\n@param child The Handler to add.", "Returns the designer version from the manifest.\n@param context\n@return version", "Starts advertising on Hyperbahn at a fixed interval.\n\n@return a future that resolves to the response of the first advertise request" ]
public static void writeDocumentToFile(Document document, String filePathname, String method, int indent) throws TransformerException, IOException { Transformer transformer = TransformerFactory.newInstance() .newTransformer(); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no"); transformer.setOutputProperty(OutputKeys.METHOD, method); transformer.transform(new DOMSource(document), new StreamResult( new FileOutputStream(filePathname))); }
[ "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." ]
[ "Return the entity of a resource\n\n@param resource the resource\n@param <T> the type of the resource's entity\n@param <R> the resource type\n@return the resource's entity", "Compute the location of the generated file from the given trace file.", "Set the directory and test that the directory exists and is contained within the Configuration\ndirectory.\n\n@param directory the new directory", "Compress a directory into a zip file\n\n@param dir Directory\n@param zipFile ZIP file to create\n@throws IOException I/O Error", "Returns the primary message codewords for mode 3.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "binds the objects primary key and locking values to the statement, BRJ", "call with lock on 'children' held", "Generates the body of a toString method that uses a StringBuilder.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, but if any of them will\nalways be present, we can actually do the hard work at compile time. Specifically, we can pick\nthe first such and output it without a comma; any property before it will have a comma\n<em>appended</em>, and any property after it will have a comma <em>prepended</em>. This gives\nus the right number of commas in the right places in all circumstances.\n\n<p>As well as keeping track of whether we are <b>prepending commas</b> yet (initially false),\nwe also keep track of whether we have just finished an if-then block for an optional property,\nor if we are in the <b>middle of an append chain</b>, and if so, whether we are in the\n<b>middle of a string literal</b>. This lets us output the fewest literals and statements,\nmuch as a mildly compulsive programmer would when writing the same code.", "Writes assignment baseline data.\n\n@param xml MSPDI assignment\n@param mpxj MPXJ assignment" ]
public static double[] toDouble(int[] array) { double[] n = new double[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (double) array[i]; } return n; }
[ "1-D Integer array to double array.\n\n@param array Integer array.\n@return Double array." ]
[ "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "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.", "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance", "Tries to return the single table to which all classes in the hierarchy with the given\nclass as the root map.\n\n@param classDef The root class of the hierarchy\n@return The table name or <code>null</code> if the classes map to more than one table\nor no class in the hierarchy maps to a table", "Log a warning message with a throwable.", "Adds the given reference to the list of references that should still be\nserialized, and returns the RDF resource that will be used as a subject.\n\n@param reference\nthe reference to be serialized\n@return RDF resource that represents this reference", "Parses int value and returns the provided default if the value can't be parsed.\n@param value the int to parse.\n@param defaultValue the default value.\n@return the parsed int, or the default value if parsing fails.", "Use this API to fetch sslpolicylabel resource of given name .", "Generate query parameters for a forward page with the specified start key.\n\n@param initialQueryParameters page 1 query parameters\n@param startkey the startkey for the forward page\n@param startkey_docid the doc id for the startkey (in case of duplicate keys)\n@param <K> the view key type\n@param <V> the view value type\n@return the query parameters for the forward page" ]
public static int nullity(SingularValueDecomposition_F64 svd , double threshold ) { int ret = 0; double w[]= svd.getSingularValues(); int N = svd.numberOfSingularValues(); int numCol = svd.numCols(); for( int j = 0; j < N; j++ ) { if( w[j] <= threshold) ret++; } return ret + numCol-N; }
[ "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix." ]
[ "Creates a new form session to edit the file with the given name using the given form configuration.\n\n@param configPath the site path of the form configuration\n@param fileName the name (not path) of the XML content to edit\n@return the id of the newly created form session\n\n@throws CmsUgcException if something goes wrong", "Awaits at most 5 minutes until all pods meets the given predicate.\n\n@param filter used to wait to detect that a pod is up and running.", "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characters in quotes", "Returns iterable with all non-deleted file version legal holds for this legal hold policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing file version legal holds info.", "Use this API to fetch all the nsfeature resources that are configured on netscaler.", "Update the server group's name\n\n@param serverGroupId ID of server group\n@param name new name of server group\n@return updated ServerGroup", "Store the char in the internal buffer", "Get the OAuth request token - this is step one of authorization.\n\n@param callbackUrl\noptional callback URL - required for web auth flow, will be set to \"oob\" if not specified.\n@return the {@link OAuth1RequestToken}, store this for when the user returns from the Flickr website.", "Get the section list\n\nN.B. The section list contains the bottom sections\n@return the list of sections setted" ]
protected void switchTab() { Component tab = m_tab.getSelectedTab(); int pos = m_tab.getTabPosition(m_tab.getTab(tab)); if (m_isWebOU) { if (pos == 0) { pos = 1; } } m_tab.setSelectedTab(pos + 1); }
[ "Switches to the next tab." ]
[ "Determines storage overhead and returns pretty printed summary.\n\n@param finalNodeToOverhead Map of node IDs from final cluster to number\nof partition-stores to be moved to the node.\n@return pretty printed string summary of storage overhead.", "Wrap connection with a proxy.\n@param target connection handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a connection.", "Sets the bounds of a UIObject, moving and sizing to match the\nbounds specified. Currently used for the itemhover and useful\nfor other absolutely positioned elements.", "Derive a calendar for a resource.\n\n@param parentCalendarID calendar from which resource calendar is derived\n@return new calendar for a resource", "Rollback to the specified push version\n\n@param rollbackToDir The version directory to rollback to", "Use this API to fetch filtered set of appfwlearningsettings resources.\nset the filter parameter values in filtervalue object.", "Returns the name from the inverse side if the given property de-notes a one-to-one association.", "Pseudo-Inverse of a matrix calculated in the least square sense.\n\n@param matrix The given matrix A.\n@return pseudoInverse The pseudo-inverse matrix P, such that A*P*A = A and P*A*P = P", "Matrix inverse for symmetric positive definite matrices. For small matrices an unrolled\ncholesky is used. Otherwise a standard decomposition.\n\n@see UnrolledCholesky_DDRM\n@see LinearSolverFactory_DDRM#chol(int)\n\n@param mat (Input) SPD matrix\n@param result (Output) Inverted matrix.\n@return true if it could invert the matrix false if it could not." ]
public void open(File versionDir) { /* acquire modification lock */ fileModificationLock.writeLock().lock(); try { /* check that the store is currently closed */ if(isOpen) throw new IllegalStateException("Attempt to open already open store."); // Find version directory from symbolic link or max version id if(versionDir == null) { versionDir = ReadOnlyUtils.getCurrentVersion(storeDir); if(versionDir == null) versionDir = new File(storeDir, "version-0"); } // Set the max version id long versionId = ReadOnlyUtils.getVersionId(versionDir); if(versionId == -1) { throw new VoldemortException("Unable to parse id from version directory " + versionDir.getAbsolutePath()); } Utils.mkdirs(versionDir); // Validate symbolic link, and create it if it doesn't already exist Utils.symlink(versionDir.getAbsolutePath(), storeDir.getAbsolutePath() + File.separator + "latest"); this.fileSet = new ChunkedFileSet(versionDir, routingStrategy, nodeId, maxValueBufferAllocationSize); storeVersionManager.syncInternalStateFromFileSystem(false); this.lastSwapped = System.currentTimeMillis(); this.isOpen = true; } catch(IOException e) { logger.error("Error in opening store", e); } finally { fileModificationLock.writeLock().unlock(); } }
[ "Open the store with the version directory specified. If null is specified\nwe open the directory with the maximum version\n\n@param versionDir Version Directory to open. If null, we open the max\nversioned / latest directory" ]
[ "Generates required number of placeholders as string.\n\nExample: {@code numberOfPlaceholders == 1, result == \"?\"},\n{@code numberOfPlaceholders == 2, result == \"?,?\"}.\n\n@param numberOfPlaceholders required amount of placeholders, should be {@code > 0}.\n@return string with placeholders.", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Called when the pattern has changed.", "Select a List of characters from a CharSequence using a Collection\nto identify the indices to be selected.\n\n@param self a CharSequence\n@param indices a Collection of indices\n@return a String consisting of the characters at the given indices\n@since 1.0", "end AnchorImplementation class", "Checks if the given group of statements contains the given value as the\nvalue of a main snak of some statement.\n\n@param statementGroup\nthe statement group to scan\n@param value\nthe value to scan for\n@return true if value was found", "Sets the request type for this ID. Defaults to GET\n\n@param pathId ID of path\n@param requestType type of request to service", "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.", "Writes task predecessor links to a PM XML file.\n\n@param task MPXJ Task instance" ]
public Where<T, ID> in(String columnName, Object... objects) throws SQLException { return in(true, columnName, objects); }
[ "Add a IN clause so the column must be equal-to one of the objects passed in." ]
[ "Determines if the key replicates to the given node\n\n@param key\n@param nodeId\n@return true if the key belongs to the node as some replica", "Check if information model entity referenced by archetype\nhas right name or type", "Returns current selenium version from JAR set in classpath.\n\n@return Version of Selenium.", "Use this API to update nspbr6 resources.", "Add a file to notify the script that asked to stop the print that it is now done processing the remain\njobs.", "Sets a listener to inform when the user closes the SearchView.\n\n@param listener the listener to call when the user closes the SearchView.", "Convenience method to escape any character that is special to the regex system.\n\n@param inString\nthe string to fix\n\n@return the fixed string", "Add tags to a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param tags\nThe tags\n@throws FlickrException", "Use this API to fetch all the dospolicy resources that are configured on netscaler." ]
public static String getRelativePathName(Path root, Path path) { Path relative = root.relativize(path); return Files.isDirectory(path) && !relative.toString().endsWith("/") ? String.format("%s/", relative.toString()) : relative.toString(); }
[ "Get the relative path of an application\n\n@param root the root to relativize against\n@param path the path to relativize\n@return the relative path" ]
[ "Writes the content of an input stream to an output stream\n\n@throws IOException", "Use this API to disable Interface of given name.", "Find the user by their email address.\n\nThis method does not require authentication.\n\n@param email\nThe email address\n@return The User\n@throws FlickrException", "Get the current stack trace element, skipping anything from known logging classes.\n@return The current stack trace for this thread", "Use this API to fetch dnsview resource of given name .", "Print a time value.\n\n@param value time value\n@return time value", "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.", "Configure the mapping between a database column and a field, including definition of\nan alias.\n\n@param container column to field map\n@param name column name\n@param type field type\n@param alias field alias", "adds the qualified names to the require-bundle attribute, if not already\npresent.\n\n@param bundles - passing parameterized bundled (e.g. versions, etc.) is\nnot supported" ]
public Info getInfo() { BoxAPIConnection api = this.getAPI(); URL url = COLLABORATION_URL_TEMPLATE.build(api.getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); return new Info(jsonObject); }
[ "Gets information about this collaboration.\n\n@return info about this collaboration." ]
[ "Peeks the current top of the stack or returns null if the stack is empty\n@return the current top of the stack or returns null if the stack is empty", "I promise that this is always a collection of HazeltaskTasks", "Retrieve any task field value lists defined in the MPP file.", "Initializes the bean name defaulted", "Accessor method to retrieve an accrue type instance.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Gets fully-qualified name of a table or sequence.\n\n@param localName local table name.\n@param params params.\n@return fully-qualified table name.", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Initializes the editor states for the different modes, depending on the type of the opened file.", "returns a unique String for given field.\nthe returned uid is unique accross all tables." ]
public static <T extends Range> T findRange(List<T> ranges, long value, int arraySize) { if (ranges.size() < 1) return null; T first = ranges.get(0); T last = ranges.get(arraySize - 1); // check out of bounds if (value < first.start() || value > last.start() + last.size()) { throw new OffsetOutOfRangeException(format("offset %s is out of range (%s, %s)",// value,first.start(),last.start()+last.size())); } // check at the end if (value == last.start() + last.size()) return null; int low = 0; int high = arraySize - 1; while (low <= high) { int mid = (high + low) / 2; T found = ranges.get(mid); if (found.contains(value)) { return found; } else if (value < found.start()) { high = mid - 1; } else { low = mid + 1; } } return null; }
[ "Find a given range object in a list of ranges by a value in that range. Does a binary\nsearch over the ranges but instead of checking for equality looks within the range.\nTakes the array size as an option in case the array grows while searching happens\n@param <T> Range type\n@param ranges data list\n@param value value in the list\n@param arraySize the max search index of the list\n@return search result of range\nTODO: This should move into SegmentList.scala" ]
[ "JSObject will return the String \"undefined\" at certain times, so we\nneed to make sure we're not getting a value that looks valid, but isn't.\n\n@param val The value from Javascript to be checked.\n@return Either null or the value passed in.", "Generate a currency format.\n\n@param position currency symbol position\n@return currency format", "Obtains a local date in Accounting calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Stop announcing ourselves and listening for status updates.", "Convert the integer representation of a duration value and duration units\ninto an MPXJ Duration instance.\n\n@param properties project properties, used for duration units conversion\n@param durationValue integer duration value\n@param unitsValue integer units value\n@return Duration instance", "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array.", "Use this API to login into Netscaler.\n@param username Username\n@param password Password for the Netscaler.\n@param timeout timeout for netscaler session.Default is 1800secs\n@return status of the operation performed.\n@throws Exception nitro exception is thrown.", "Tells you if the expression is a predefined constant like TRUE or FALSE.\n@param expression\nany expression\n@return\nas described" ]
private void performTeardownExchange() throws IOException { Message teardownRequest = new Message(0xfffffffeL, Message.KnownType.TEARDOWN_REQ); sendMessage(teardownRequest); // At this point, the server closes the connection from its end, so we can’t read any more. }
[ "Exchanges the final messages which politely report our intention to disconnect from the dbserver." ]
[ "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task", "Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a question mark or a token in the style\nof {@link ParameterizedPreparedStatementCreator}, e.g. \":foo\".", "Computes the QR decomposition of A and store the results in A.\n\n@param A The A matrix in the linear equation. Modified. Reference saved.\n@return true if the decomposition was successful.", "Creates a resource ID from information of a generic resource.\n\n@param subscriptionId the subscription UUID\n@param resourceGroupName the resource group name\n@param resourceProviderNamespace the resource provider namespace\n@param resourceType the type of the resource or nested resource\n@param resourceName name of the resource or nested resource\n@param parentResourcePath parent resource's relative path to the provider,\nif the resource is a generic resource\n@return the resource ID string", "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", "Parses command-line and gets metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.\nThis uses nsrollbackcmd_args which is a way to provide additional arguments while fetching the resources.", "delete of files more than 1 day old", "Internal method used to locate an remove an item from a list Relations.\n\n@param relationList list of Relation instances\n@param targetTask target relationship task\n@param type target relationship type\n@param lag target relationship lag\n@return true if a relationship was removed" ]
public void setColorRange(int firstIndex, int lastIndex, int color1, int color2) { for (int i = firstIndex; i <= lastIndex; i++) map[i] = ImageMath.mixColors((float)(i-firstIndex)/(lastIndex-firstIndex), color1, color2); }
[ "Set a range of the colormap, interpolating between two colors.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color1 the first color\n@param color2 the second color" ]
[ "Attempts to return the token from cache. If this is not possible because it is expired or was\nnever assigned, a new token is requested and parallel requests will block on retrieving a new\ntoken. As such no guarantee of maximum latency is provided.\n\nTo avoid blocking the token is refreshed before it's expiration, while parallel requests\ncontinue to use the old token.", "Returns the full path of the resource file with extension.\n\n@return path of the GVRAndroidResource. May return null if the\nresource is not associated with any file", ">>>>>> measureUntilFull helper methods", "Registers a new site for specific data collection. If null is used as a\nsite key, then all data is collected.\n\n@param siteKey\nthe site to collect geo data for", "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", "A helper - in Java 9, the extension CL was renamed to platform CL and hosts all the JDK classes. Before 9, it was useless and we used\nbootstrap CL instead.\n\n@return the base CL to use.", "Record a prepare operation timeout.\n\n@param failedOperation the prepared operation", "Sign in a connection to the registry by key.\n\nNote multiple connections can be attached to the same key\n\n@param key\nthe key\n@param connection\nthe websocket connection\n@see #register(String, WebSocketConnection)", "Fetch the latest versions for cluster metadata" ]
public static Method getSetterPropertyMethod(Class<?> type, String propertyName) { String sourceMethodName = "set" + BeanUtils.capitalizePropertyName(propertyName); Method sourceMethod = BeanUtils.getMethod(type, sourceMethodName); return sourceMethod; }
[ "get the setter method corresponding to given property" ]
[ "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>", "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.", "Creates a new InternetPrintWriter for given charset encoding.\n\n@param outputStream the wrapped output stream.\n@param charset the charset.\n@return a new InternetPrintWriter.", "Update the underlying buffer using the short\n\n@param number number to be stored in checksum buffer", "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment", "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return", "Called when the layout is applied to the data\n@param container WidgetContainer to access the org.gearvrf.org.gearvrf.widgetlib in the layout\n@param viewPortSize View port for data set", "Check if this is a redeployment triggered after the removal of a link.\n@param operation the current operation.\n@return true if this is a redeploy after the removal of a link.\n@see org.jboss.as.server.deploymentoverlay.DeploymentOverlayDeploymentRemoveHandler" ]
@UiThread protected void expandView() { setExpanded(true); onExpansionToggled(false); if (mParentViewHolderExpandCollapseListener != null) { mParentViewHolderExpandCollapseListener.onParentExpanded(getAdapterPosition()); } }
[ "Triggers expansion of the parent." ]
[ "Removes a filter from this project file.\n\n@param filterName The name of the filter", "Generates an organization regarding the parameters.\n\n@param name String\n@return Organization", "Clears the proxy. A cleared proxy is defined as loaded\n\n@see Collection#clear()", "Scans given directory for files passing given filter, adds the results into given list.", "Generates the routing Java source code", "another media scan way", "Processes the template for all procedures 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\"", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "Use this API to fetch the statistics of all scpolicy_stats resources that are configured on netscaler." ]
public String getMethodSignature() { if (method != null) { String methodSignature = method.toString(); return methodSignature.replaceFirst("public void ", ""); } return null; }
[ "Method signature without \"public void\" prefix\n\n@return The method signature in String format" ]
[ "Copy the contents of the given byte array to the given OutputStream.\nLeaves the stream open when done.\n@param in the byte array to copy from\n@param out the OutputStream to copy to\n@throws IOException in case of I/O errors", "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account", "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", "Initializes the alarm sensor command class. Requests the supported alarm types.", "At the moment we only support the case where one entity type is returned", "Adds an access constraint to the set used with the attribute\n@param accessConstraint the constraint\n@return a builder that can be used to continue building the attribute definition", "Entry point for processing filter definitions.\n\n@param properties project properties\n@param filters project filters\n@param fixedData filter fixed data\n@param varData filter var data", "Returns the value of the element with the minimum value\n@param A (Input) Matrix. Not modified.\n@return scalar", "Build the key for the TableAlias based on the path and the hints\n@param aPath\n@param hintClasses\n@return the key for the TableAlias" ]
public static BoxUser.Info createAppUser(BoxAPIConnection api, String name, CreateUserParams params) { params.setIsPlatformAccessOnly(true); return createEnterpriseUser(api, null, name, params); }
[ "Provisions a new app user in an enterprise with additional user information using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info." ]
[ "Return the inverse cumulative distribution function at x.\n\n@param x Argument\n@return Inverse cumulative distribution function at x.", "Attaches a morph to scene object with a base mesh\n@param sceneObj is the base mesh.\n@throws IllegalStateException if component is null\n@throws IllegalStateException if mesh is null\n@throws IllegalStateException if material is null", "Retrieves the timephased breakdown of the planned overtime work for this\nresource assignment.\n\n@return timephased planned work", "Set the dither matrix.\n@param matrix the dither matrix\n@see #getMatrix", "Determine the color to use to draw a cue list entry. Hot cues are green, ordinary memory points are red,\nand loops are orange.\n\n@param entry the entry being drawn\n\n@return the color with which it should be represented.", "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account", "Call the no-arg constructor for the given class\n\n@param <T> The type of the thing to construct\n@param klass The class\n@return The constructed thing", "Forceful cleanup the logs", "Allows direct access to the Undertow.Builder for custom configuration\n\n@param serverConfigurationFunction the serverConfigurationFunction" ]
private static Set<ProjectModel> getAllApplications(GraphContext graphContext) { Set<ProjectModel> apps = new HashSet<>(); Iterable<ProjectModel> appProjects = graphContext.findAll(ProjectModel.class); for (ProjectModel appProject : appProjects) apps.add(appProject); return apps; }
[ "Returns all ApplicationProjectModels." ]
[ "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance", "Filters attributes from the HTML string.\n\n@param html The HTML to filter.\n@return The filtered HTML string.", "Use this API to fetch a vpnglobal_intranetip_binding resources.", "checks if the 2 triangles shares a segment\n@author Doron Ganel & Eyal Roth(2009)\n@param t2 - a second triangle\n@return boolean", "Function to clear all the metadata related to the given store\ndefinitions. This is needed when a put on 'stores.xml' is called, thus\nreplacing the existing state.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will handle concurrency related issues.\n\n@param storeNamesToDelete", "Display web page, but no user interface - close", "returns the total count of objects in the GeneralizedCounter.", "Create a Collection Proxy for a given query.\n\n@param brokerKey The key of the persistence broker\n@param query The query\n@param collectionClass The class to build the proxy for\n@return The collection proxy", "Create and return a new Violation for this rule and the specified values\n@param lineNumber - the line number for the violation; may be null\n@param sourceLine - the source line for the violation; may be null\n@param message - the message for the violation; may be null\n@return a new Violation object" ]
public static dnsaaaarec[] get(nitro_service service, dnsaaaarec_args args) throws Exception{ dnsaaaarec obj = new dnsaaaarec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsaaaarec[] response = (dnsaaaarec[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.\nThis uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources." ]
[ "Use this API to update nspbr6.", "Concats an element and an array.\n\n@param firstElement the first element\n@param array the array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first element", "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object", "Get User application properties\nGet application properties of a user\n@param userId User Id (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Use this API to fetch aaauser_aaagroup_binding resources of given name .", "Static main.\n\n@param args\nProgram arguments.\n@throws IOException\nIf an IO error occurred.", "Performs a Versioned put operation with the specified composite request\nobject\n\n@param requestWrapper Composite request object containing the key and the\nversioned object\n@return Version of the value for the successful put\n@throws ObsoleteVersionException", "Notifies that an existing header item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings" ]
public static int[] arrayFromStringOfIntegers(String str) throws IllegalArgumentException { StringTokenizer tokenizer = new StringTokenizer(str, ","); int n = tokenizer.countTokens(); int[] list = new int[n]; for (int i = 0; i < n; i++) { String token = tokenizer.nextToken(); list[i] = Integer.parseInt(token); } return list; }
[ "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException" ]
[ "Checks to see if another AbstractTransition's states is isCompatible for merging.\n\n@param another\n@return", "Gets the object whose index is the integer argument.\n\n@param i the integer index to be queried for the corresponding argument\n@return the object whose index is the integer argument.", "Returns the getter method for field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@return the getter associated with the field on the object\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible", "Returns a button component. On click, it triggers adding a bundle descriptor.\n@return a button for adding a descriptor to a bundle.", "Use this API to login into Netscaler.\n@param username Username\n@param password Password for the Netscaler.\n@param timeout timeout for netscaler session.Default is 1800secs\n@return status of the operation performed.\n@throws Exception nitro exception is thrown.", "Extracts the rank of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The rank of the decomposed matrix.", "Creates a map of work pattern rows indexed by the primary key.\n\n@param rows work pattern rows\n@return work pattern map", "Adds new connections to the partition.\n@param connectionsToCreate number of connections to create\n@throws InterruptedException", "Add a listener to be invoked when the checked button changes in this group.\n@param listener\n@param <T>\n@return" ]
public double compare(String v1, String v2) { // FIXME: it should be possible here to say that, actually, we // didn't learn anything from comparing these two values, so that // probability is set to 0.5. if (comparator == null) return 0.5; // we ignore properties with no comparator // first, we call the comparator, to get a measure of how similar // these two values are. note that this is not the same as what we // are going to return, which is a probability. double sim = comparator.compare(v1, v2); // we have been configured with a high probability (for equal // values) and a low probability (for different values). given // sim, which is a measure of the similarity somewhere in between // equal and different, we now compute our estimate of the // probability. // if sim = 1.0, we return high. if sim = 0.0, we return low. for // values in between we need to compute a little. the obvious // formula to use would be (sim * (high - low)) + low, which // spreads the values out equally spaced between high and low. // however, if the similarity is higher than 0.5 we don't want to // consider this negative evidence, and so there's a threshold // there. also, users felt Duke was too eager to merge records, // and wanted probabilities to fall off faster with lower // probabilities, and so we square sim in order to achieve this. if (sim >= 0.5) return ((high - 0.5) * (sim * sim)) + 0.5; else return low; }
[ "Returns the probability that the records v1 and v2 came from\nrepresent the same entity, based on high and low probability\nsettings etc." ]
[ "Transposes an individual block inside a block matrix.", "Get a random pod that provides the specified service in the specified namespace.\n\n@param client\nThe client instance to use.\n@param name\nThe name of the service.\n@param namespace\nThe namespace of the service.\n\n@return The pod or null if no pod matches.", "Delete an object.", "Get content of a file as a Map&lt;String, String&gt;, using separator to split values\n@param file File to get content\n@param separator The separator\n@return The map with the values\n@throws IOException I/O Error", "Poll for the next N waiting jobs in line.\n\n@param size maximum amount of jobs to poll for\n@return up to \"size\" jobs", "Enables support for large-payload messages.\n\n@param s3\nAmazon S3 client which is going to be used for storing\nlarge-payload messages.\n@param s3BucketName\nName of the bucket which is going to be used for storing\nlarge-payload messages. The bucket must be already created and\nconfigured in s3.", "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Encode a long into a byte array at an offset\n\n@param ba Byte array\n@param offset Offset\n@param v Long value\n@return byte array given in input", "Use this API to fetch all the autoscaleaction resources that are configured on netscaler." ]
public static locationfile get(nitro_service service) throws Exception{ locationfile obj = new locationfile(); locationfile[] response = (locationfile[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the locationfile resources that are configured on netscaler." ]
[ "Calculate entropy value.\n@param values Values.\n@return Returns entropy value of the specified histogram array.", "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception", "Get the waveform previews available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the previews associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the WaveformFinder is not running", "Called every frame if the picker is enabled\nto generate pick events.\n@param frameTime starting time of the current frame", "Return as a string the stereotypes associated with c\nterminated by the escape character term", "Utility function that fetches node ids.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return Node ids in cluster", "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format.", "Extracts the service name from a Server.\n@param server\n@return", "Returns an interval representing the addition of the\ngiven interval with this one.\n@param other interval to add to this one\n@return interval sum" ]
public static Map<String, StoreDefinition> getUserStoreDefMapOnNode(AdminClient adminClient, Integer nodeId) { List<StoreDefinition> storeDefinitionList = adminClient.metadataMgmtOps.getRemoteStoreDefList(nodeId) .getValue(); Map<String, StoreDefinition> storeDefinitionMap = Maps.newHashMap(); for(StoreDefinition storeDefinition: storeDefinitionList) { storeDefinitionMap.put(storeDefinition.getName(), storeDefinition); } return storeDefinitionMap; }
[ "Utility function that fetches user defined store definitions\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch store definitions from\n@return The map container that maps store names to store definitions" ]
[ "Make a comparison where the operator is specified by the caller. It is up to the caller to specify an appropriate\noperator for the database and that it be formatted correctly.", "Start speech recognizer.\n\n@param speechListener", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "Acquire the exclusive lock allowing the acquisition to be interrupted.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@throws InterruptedException - if the acquiring thread is interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Gets a JSON string containing any pending changes to this object that can be sent back to the Box API.\n@return a JSON string containing the pending changes.", "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.", "is ready to service requests", "Set the permission for who may view the geo data associated with a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe id of the photo to set permissions for.\n@param perms\nPermissions, who can see the geo data of this photo\n@throws FlickrException", "Checks if the given project exists or not.\n\n@param name project name\n@return true/false\n@throws IllegalArgumentException" ]
public static Method getStaticMethod(Class<?> clazz, String methodName, Class<?>... args) { Assert.notNull(clazz, "Class must not be null"); Assert.notNull(methodName, "Method name must not be null"); try { Method method = clazz.getMethod(methodName, args); return Modifier.isStatic(method.getModifiers()) ? method : null; } catch (NoSuchMethodException ex) { return null; } }
[ "Return a public static method of a class.\n@param methodName the static method name\n@param clazz the class which defines the method\n@param args the parameter types to the method\n@return the static method, or {@code null} if no static method was found\n@throws IllegalArgumentException if the method name is blank or the clazz is null" ]
[ "Internal used method which start the real store work.", "Get the response headers for URL, following redirects\n\n@param stringUrl URL to use\n@param followRedirects whether to follow redirects\n@return headers HTTP Headers\n@throws IOException I/O error happened", "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x.", "Get the FieldDescriptor for the PathInfo\n\n@param aTableAlias\n@param aPathInfo\n@return FieldDescriptor", "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException", "Set the permission for who may view the geo data associated with a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe id of the photo to set permissions for.\n@param perms\nPermissions, who can see the geo data of this photo\n@throws FlickrException", "Use this API to fetch snmpuser resource of given name .", "get an AdminClient from the cache if exists, if not create new one\nand return it. This method is non-blocking.\n\nAll AdminClient returned from checkout, once after the completion of\nusage must be returned to the pool by calling checkin. If not,\nthere will be leak of AdminClients (connections, threads and file handles).\n\n@return AdminClient", "Generate the specified output file by merging the specified\nVelocity template with the supplied context." ]
public MaterializeBuilder withActivity(Activity activity) { this.mRootView = (ViewGroup) activity.findViewById(android.R.id.content); this.mActivity = activity; return this; }
[ "Pass the activity you use the drawer in ;)\nThis is required if you want to set any values by resource\n\n@param activity\n@return" ]
[ "Looks up a variable given its name. If none is found then return null.", "Determines if still WRITING or COMPLETE.\n\n@param itemTag mad libs style string to insert into progress message.\n@return state of stream request handler", "Converts the Conditionals into real headers.\n@return real headers.", "We have obtained metadata for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this metadata\n@param data the metadata which we received", "Dumps all properties of a material to stdout.\n\n@param material the material", "Specialized version of readValue just for reading map keys, because the StdDeserializer methods like\n_parseIntPrimitive blow up when the current JsonToken is FIELD_NAME", "Returns the value of the identified field as a Date.\nTime fields returned from an FQL query are expressed in terms of seconds since midnight, January 1, 1970 UTC.\n@param fieldName the name of the field\n@return the value of the field as a Date\n@throws FqlException if the field's value cannot be expressed as a long value from which a Date object can be constructed.", "Determine the target type for the generic return type of the given method,\nwhere formal type variables are declared on the given class.\n@param method the method to introspect\n@param clazz the class to resolve type variables against\n@return the corresponding generic parameter or return type\n@see #resolveReturnTypeForGenericMethod", "Attaches an arbitrary object to this context.\n\n@param key they attachment key used to ensure uniqueness and used for retrieval of the value.\n@param value the value to store.\n@param <V> the value type of the attachment.\n\n@return the previous value associated with the key or {@code null} if there was no previous value." ]
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" ]
[ "Reset the Where object so it can be re-used.", "Special-purpose version for hashing a single int value. Value is treated as little-endian", "Sets the maximum time to wait before a call to getConnection is timed out.\n\nSetting this to zero is similar to setting it to Long.MAX_VALUE\n\n@param connectionTimeout\n@param timeUnit the unit of the connectionTimeout argument", "Adds a JSON string to the DB.\n\n@param obj the JSON to record\n@param table the table to insert into\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR", "Retrieves the baseline duration text value.\n\n@param baselineNumber baseline number\n@return baseline duration text value", "Use this API to reset Interface.", "Checks constraints on this model.\n\n@param checkLevel The amount of checks to perform\n@throws ConstraintException If a constraint has been violated", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "Add a method to the enabled response overrides for a path\n\n@param pathName name of path\n@param methodName name of method\n@return true if success, false otherwise" ]
MongoCollection<BsonDocument> getUndoCollection(final MongoNamespace namespace) { return localClient .getDatabase(String.format("sync_undo_%s", namespace.getDatabaseName())) .getCollection(namespace.getCollectionName(), BsonDocument.class) .withCodecRegistry(MongoClientSettings.getDefaultCodecRegistry()); }
[ "Returns the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.\n\n@param namespace the namespace referring to the undo collection.\n@return the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure." ]
[ "Get public photos from the user's contacts.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param userId\nThe user ID\n@param count\nThe number of photos to return\n@param justFriends\nTrue to include friends\n@param singlePhoto\nTrue to get a single photo\n@param includeSelf\nTrue to include self\n@return A collection of Photo objects\n@throws FlickrException", "Use this API to fetch authenticationradiuspolicy_vpnvserver_binding resources of given name .", "Helper method to load a property file from class path.\n\n@param filesToLoad\nan array of paths (class path paths) designating where the files may be. All files are loaded, in the order\ngiven. Missing files are silently ignored.\n\n@return a Properties object, which may be empty but not null.", "Clones the cluster by constructing a new one with same name, partition\nlayout, and nodes.\n\n@param cluster\n@return clone of Cluster cluster.", "Use this API to unset the properties of nsspparams resource.\nProperties that need to be unset are specified in args array.", "Set the groups assigned to a path\n\n@param groups group IDs to set\n@param pathId ID of path", "Retrieves the path using the endpoint value\n\n@param pathValue - path (endpoint) value\n@param requestType - \"GET\", \"POST\", etc\n@return Path or null\n@throws Exception exception", "The ARP is additional request parameters, which must be sent once\nreceived after any HTTP call. This is sort of a proxy for cookies.\n\n@return A JSON object containing the ARP key/values. Can be null.", "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" ]
public Date getFinish() { Date result = (Date) getCachedValue(AssignmentField.FINISH); if (result == null) { result = getTask().getFinish(); } return result; }
[ "Returns the finish date for this resource assignment.\n\n@return finish date" ]
[ "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods", "Parse the json string to the diagram model, assumes that the json is\nhierarchical ordered\n@param json\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException", "Find the user by their email address.\n\nThis method does not require authentication.\n\n@param email\nThe email address\n@return The User\n@throws FlickrException", "This method writes resource data to a Planner file.", "Use this API to fetch lbvserver_servicegroup_binding resources of given name .", "Creates a statement with parameters that should work with most RDBMS.", "Extracts a flat set of interception bindings from a given set of interceptor bindings.\n\n@param addTopLevelInterceptorBindings add top level interceptor bindings to the result set.\n@param addInheritedInterceptorBindings add inherited level interceptor bindings to the result set.\n@return", "Returns the field with the specified value properly formatted. Multiline\nvalues are automatically indented, and dots are added on the empty lines.\n\n<pre>\nField-Name: value\n</pre>", "Adds a new email alias to this user's account and confirms it without user interaction.\nThis functionality is only available for enterprise admins.\n@param email the email address to add as an alias.\n@param isConfirmed whether or not the email alias should be automatically confirmed.\n@return the newly created email alias." ]
public void writeLine(String pattern, Object... parameters) { String line = (parameters == null || parameters.length == 0) ? pattern : String.format(pattern, parameters); lines.add(0, line); // we'll write bottom to top, then purge unwritten // lines from end updateHUD(); }
[ "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern" ]
[ "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", "Calculates the bar width and bar margin based on the _DataSize and settings and starts the boundary\ncalculation in child classes.\n@param _DataSize Amount of data sets", "Reads next frame image.", "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", "Sets the scale vector of the keyframe.", "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", "Creates an element that represents a single page.\n@return the resulting DOM element", "Returns an integer array that contains the current values for all the\ntexture parameters.\n\n@return an integer array that contains the current values for all the\ntexture parameters.", "Use this API to fetch all the appqoepolicy resources that are configured on netscaler." ]
public static base_response add(nitro_service client, ntpserver resource) throws Exception { ntpserver addresource = new ntpserver(); addresource.serverip = resource.serverip; addresource.servername = resource.servername; addresource.minpoll = resource.minpoll; addresource.maxpoll = resource.maxpoll; addresource.autokey = resource.autokey; addresource.key = resource.key; return addresource.add_resource(client); }
[ "Use this API to add ntpserver." ]
[ "Write the configuration to a buffered writer.", "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance", "Add \"GROUP BY\" clause to the SQL query statement. This can be called multiple times to add additional \"GROUP BY\"\nclauses.\n\n<p>\nNOTE: Use of this means that the resulting objects may not have a valid ID column value so cannot be deleted or\nupdated.\n</p>", "Propagates the names of all facets to each single facet.", "get the setter method corresponding to given property", "Set the content type of a photo.\n\nThis method requires authentication with 'write' permission.\n\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_PHOTO\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_SCREENSHOT\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_OTHER\n@param photoId\nThe photo ID\n@param contentType\nThe contentType to set\n@throws FlickrException", "add trace information for received frame", "returns all methods not in the group\n\n@param groupId Id of group\n@return List of Methods for a group\n@throws Exception exception", "Remove all unnecessary comments from a lexer or parser file" ]
private void writeAssignments(Project project) { Project.Assignments assignments = m_factory.createProjectAssignments(); project.setAssignments(assignments); List<Project.Assignments.Assignment> list = assignments.getAssignment(); for (ResourceAssignment assignment : m_projectFile.getResourceAssignments()) { list.add(writeAssignment(assignment)); } // // Check to see if we have any tasks that have a percent complete value // but do not have resource assignments. If any exist, then we must // write a dummy resource assignment record to ensure that the MSPDI // file shows the correct percent complete amount for the task. // ProjectConfig config = m_projectFile.getProjectConfig(); boolean autoUniqueID = config.getAutoAssignmentUniqueID(); if (!autoUniqueID) { config.setAutoAssignmentUniqueID(true); } for (Task task : m_projectFile.getTasks()) { double percentComplete = NumberHelper.getDouble(task.getPercentageComplete()); if (percentComplete != 0 && task.getResourceAssignments().isEmpty() == true) { ResourceAssignment dummy = new ResourceAssignment(m_projectFile, task); Duration duration = task.getDuration(); if (duration == null) { duration = Duration.getInstance(0, TimeUnit.HOURS); } double durationValue = duration.getDuration(); TimeUnit durationUnits = duration.getUnits(); double actualWork = (durationValue * percentComplete) / 100; double remainingWork = durationValue - actualWork; dummy.setResourceUniqueID(NULL_RESOURCE_ID); dummy.setWork(duration); dummy.setActualWork(Duration.getInstance(actualWork, durationUnits)); dummy.setRemainingWork(Duration.getInstance(remainingWork, durationUnits)); // Without this, MS Project will mark a 100% complete milestone as 99% complete if (percentComplete == 100 && duration.getDuration() == 0) { dummy.setActualFinish(task.getActualStart()); } list.add(writeAssignment(dummy)); } } config.setAutoAssignmentUniqueID(autoUniqueID); }
[ "This method writes assignment data to an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
[ "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo", "Gets the automaton by id.\n\n@param id the id\n@return the automaton by id\n@throws IOException Signals that an I/O exception has occurred.", "Detects Opera Mobile or Opera Mini.\n@return detection of an Opera browser for a mobile device", "Use this API to delete nsip6 resources.", "Sums up the square of each element in the matrix. This is equivalent to the\nFrobenius norm squared.\n\n@param m Matrix.\n@return Sum of elements squared.", "returns an Array with an Identities PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Adds an individual alias. It will be merged with the current\nlist of aliases, or added as a label if there is no label for\nthis item in this language yet.\n\n@param alias\nthe alias to add", "This method returns the installed identity with the requested name and version.\nIf the product name is null, the default identity will be returned.\n\nIf the product name was recognized and the requested version was not null,\nthe version comparison will take place. If the version of the currently installed product\ndoesn't match the requested one, the exception will be thrown.\nIf the requested version is null, the currently installed identity with the requested name\nwill be returned.\n\nIf the product name was not recognized among the registered ones, a new installed identity\nwith the requested name will be created and returned. (This is because the patching system\nis not aware of how many and what the patching streams there are expected).\n\n@param productName\n@param productVersion\n@return\n@throws PatchingException", "Creates a field map for relations.\n\n@param props props data" ]
public void stop() { if (accelerometer != null) { queue.clear(); sensorManager.unregisterListener(this, accelerometer); sensorManager = null; accelerometer = null; } }
[ "Stops listening. Safe to call when already stopped. Ignored on devices\nwithout appropriate hardware." ]
[ "Gets the current page\n@return", "Read calendar data from a PEP file.", "Determines the prefix of an accessor method based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulting prefix", "Append Join for SQL92 Syntax without parentheses", "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", "Creates a descriptor for the bundle in the same folder where the bundle files are located.\n@throws CmsException thrown if creation fails.", "Calculates directory size as total size of all its files, recursively.\n\n@param self a file object\n@return directory size (length)\n@since 2.1\n\n@throws IOException if File object specified does not exist\n@throws IllegalArgumentException if the provided File object does not represent a directory", "Creates a new block box from the given element with the given parent. No style is assigned to the resulting box.\n@param parent The parent box in the tree of boxes.\n@param n The element that this box belongs to.\n@param replaced When set to <code>true</code>, a replaced block box will be created. Otherwise, a normal non-replaced block will be created.\n@return The new block box.", "Use this API to enable nsfeature." ]
public int[] getVertexPointIndices() { int[] indices = new int[numVertices]; for (int i = 0; i < numVertices; i++) { indices[i] = vertexPointIndices[i]; } return indices; }
[ "Returns an array specifing the index of each hull vertex with respect to\nthe original input points.\n\n@return vertex indices with respect to the original points" ]
[ "Returns all categories that are direct children of the current main category.\n\n@return all categories that are direct children of the current main category.", "Use this API to fetch authenticationvserver_authenticationlocalpolicy_binding resources of given name .", "Gets all the enterprise events that occurred within a specified date range.\n@param api the API connection to use.\n@param after the lower bound on the timestamp of the events returned.\n@param before the upper bound on the timestamp of the events returned.\n@param types an optional list of event types to filter by.\n@return a log of all the events that met the given criteria.", "Use this API to enable nsacl6 of given name.", "Get the Roman Numeral of the current value\n@return", "With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way.", "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter.", "Wraps a StatisticsMatrix around 'm'. Does NOT create a copy of 'm' but saves a reference\nto it.", "Resolve the targeted license thanks to the license ID\nReturn null if no license is matching the licenseId\n\n@param licenseId\n@return DbLicense" ]
public void migrate() { if (databaseIsUpToDate()) { LOGGER.info(format("Keyspace %s is already up to date at version %d", database.getKeyspaceName(), database.getVersion())); return; } List<DbMigration> migrations = repository.getMigrationsSinceVersion(database.getVersion()); migrations.forEach(database::execute); LOGGER.info(format("Migrated keyspace %s to version %d", database.getKeyspaceName(), database.getVersion())); database.close(); }
[ "Start the actual migration. Take the version of the database, get all required migrations and execute them or do\nnothing if the DB is already up to date.\n\nAt the end the underlying database instance is closed.\n\n@throws MigrationException if a migration fails" ]
[ "Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1", "Orders first by word, then by lemma, then by tag.\n\n@param wordLemmaTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)", "Escape a value to be HTML friendly.\n@param value the Object value.\n@return the HTML-escaped String, or <null> if the value is null.", "Restore authentications from persisted state.\n\n@param savedAuthorization saved authorizations", "Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDigest the digest used to hash.\n@param path the file/directory we want to hash.\n@return the resulting hash.\n@throws IOException", "Here the lambda in the implicit step is determined dynamically. At first\nit selects zeros to quickly reveal singular values that are zero or close to zero.\nThen it computes it using a Wilkinson shift.", "Issue the database statements to create the table associated with a class.\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be created.\n@return The number of statements executed to do so.", "Helper method to check if log4j is already configured", "Should only called on a column that is being set to null.\n\nReturns the most outer embeddable containing {@code column} that is entirely null.\nReturn null otherwise i.e. not embeddable.\n\nThe implementation lazily compute the embeddable state and caches it.\nThe idea behind the lazy computation is that only some columns will be set to null\nand only in some situations.\nThe idea behind caching is that an embeddable contains several columns, no need to recompute its state." ]
public synchronized RegistrationPoint getOldestRegistrationPoint() { return registrationPoints.size() == 0 ? null : registrationPoints.values().iterator().next().get(0); }
[ "Gets the registration point that been associated with the registration for the longest period.\n\n@return the initial registration point, or {@code null} if there are no longer any registration points" ]
[ "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "map a property id. Property id can only be an Integer or String", "Returns a sampling of the source at the specified line and column,\nof null if it is unavailable.", "Add a '&lt;' clause so the column must be less-than the value.", "Detects if the current browser is a Sony Mylo device.\n@return detection of a Sony Mylo device", "Given a read-only store name and a directory, swaps it in while returning\nthe directory path being swapped out\n\n@param storeName The name of the read-only store\n@param directory The directory being swapped in\n@return The directory path which was swapped out\n@throws VoldemortException", "Read calendar data from a PEP file.", "Returns the list of the configured sort options, or the empty list if no sort options are configured.\n@return The list of the configured sort options, or the empty list if no sort options are configured.", "Parses command-line and removes metadata related to rebalancing.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
public ClassDescriptor getDescriptorFor(String strClassName) throws ClassNotPersistenceCapableException { ClassDescriptor result = discoverDescriptor(strClassName); if (result == null) { throw new ClassNotPersistenceCapableException(strClassName + " not found in OJB Repository"); } else { return result; } }
[ "lookup a ClassDescriptor in the internal Hashtable\n@param strClassName a fully qualified class name as it is returned by Class.getName()." ]
[ "Adds a data set to IIM file.\n\n@param ds\ndata set id (see constants in IIM class)\n@param value\ndata set value. Null values are silently ignored.\n@throws SerializationException\nif value can't be serialized by data set's serializer\n@throws InvalidDataSetException\nif data set isn't defined", "Used to get the current repository key\n@return keyFromText or keyFromSelect reflected by the dynamicMode flag", "Returns the number of history entries for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param searchFilter unused\n@return number of history entries", "Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements", "Enable a host\n\n@param hostName\n@throws Exception", "Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)", "Write the table configuration to a buffered writer.", "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "This is the probability density function for the Gaussian\ndistribution." ]
public boolean validation() throws ParallelTaskInvalidException { ParallelTask task = new ParallelTask(); targetHostMeta = new TargetHostMeta(targetHosts); task = new ParallelTask(requestProtocol, concurrency, httpMeta, targetHostMeta, sshMeta, tcpMeta, udpMeta, pingMeta, null, responseContext, replacementVarMapNodeSpecific, replacementVarMap, requestReplacementType, config); boolean valid = false; try { valid = task.validateWithFillDefault(); } catch (ParallelTaskInvalidException e) { logger.info("task is invalid " + e); } return valid; }
[ "add some validation to see if this miss anything.\n\n@return true, if successful\n@throws ParallelTaskInvalidException\nthe parallel task invalid exception" ]
[ "Update the current position with specified length.\nThe input will append to the current position of the iterator.\n\n@param length update length", "Gets the end.\n\n@return the end", "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", "Creates a style definition used for pages.\n@return The page style definition.", "Extracts project properties from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Returns the organization of a given module\n\n@return Organization", "Use this API to delete route6 resources.", "Creates an temporary directory. The created directory will be deleted when\ncommand will ended.", "Retrieve the currently cached value for the given document." ]
private <T> List<Class<?>> filter(List<Class<?>> enabledClasses, List<Class<?>> globallyEnabledClasses, LogMessageCallback logMessageCallback, BeanDeployment deployment) { for (Iterator<Class<?>> iterator = enabledClasses.iterator(); iterator.hasNext(); ) { Class<?> enabledClass = iterator.next(); if (globallyEnabledClasses.contains(enabledClass)) { logMessageCallback.log(enabledClass, deployment.getBeanDeploymentArchive().getId()); iterator.remove(); } } return enabledClasses; }
[ "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list" ]
[ "What is something came in between when we last checked and when this method is called", "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "Removes a tag from the task. Returns an empty data block.\n\n@param task The task to remove a tag from.\n@return Request object", "Remove a variable in the top variables layer.", "Converts a boolean array containing the pixel data in BINARY mode to an\ninteger array with the pixel data in RGB mode.\n\n@param binaryArray pixel binary data\n@return pixel integer data in RGB mode.", "Commit all changes if there are uncommitted changes.\n\n@param msg the commit message.\n@throws GitAPIException", "Get the AuthInterface.\n\n@return The AuthInterface", "Main render algorithm based on render the video thumbnail, render the title, render the marker\nand the label.", "Show only the given channel.\n@param channels The channels to show" ]
private Priority getPriority(Integer gpPriority) { int result; if (gpPriority == null) { result = Priority.MEDIUM; } else { int index = gpPriority.intValue(); if (index < 0 || index >= PRIORITY.length) { result = Priority.MEDIUM; } else { result = PRIORITY[index]; } } return Priority.getInstance(result); }
[ "Given a GanttProject priority value, turn this into an MPXJ Priority instance.\n\n@param gpPriority GanttProject priority\n@return Priority instance" ]
[ "Use this API to fetch lbmonitor_binding resources of given names .", "Use this API to update autoscaleaction resources.", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise", "Use this API to Shutdown shutdown.", "Get a property as a boolean or null.\n\n@param key the property name", "Use this API to delete onlinkipv6prefix of given name.", "Given an array of variable names, returns a JsonObject\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@return a json object of values", "Return all server groups for a profile\n\n@param profileId ID of profile\n@return collection of ServerGroups for a profile", "Collection of JRVariable\n\n@param variables\n@return" ]
private void readTableData(List<SynchroTable> tables, InputStream is) throws IOException { for (SynchroTable table : tables) { if (REQUIRED_TABLES.contains(table.getName())) { readTable(is, table); } } }
[ "Read the data for all of the tables we're interested in.\n\n@param tables list of all available tables\n@param is input stream" ]
[ "Read custom fields for a GanttProject resource.\n\n@param gpResource GanttProject resource\n@param mpxjResource MPXJ Resource instance", "Convert JsonString to Object of Clazz\n\n@param json\n@param clazz\n@return Object of Clazz", "Adds a boolean refinement for the next queries.\n\n@param attribute the attribute to refine on.\n@param value the value to refine with.\n@return this {@link Searcher} for chaining.", "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "When it is time to actually close a client, do so, and clean up the related data structures.\n\n@param client the client which has been idle for long enough to be closed", "Starts this EventStream and begins long polling the API.\n@throws IllegalStateException if the EventStream is already started.", "Function to serialize the given list of Vector clocks into a string. If\nsomething goes wrong, it returns an empty string.\n\n@param vectorClocks The Vector clock list to serialize\n@return The string (JSON) version of the specified Vector clock", "Add the set with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The set with all bundles to add.", "Use this API to fetch lbvserver_servicegroup_binding resources of given name ." ]
@NonNull @Override public File getParent(@NonNull final File from) { if (from.getPath().equals(getRoot().getPath())) { // Already at root, we can't go higher return from; } else if (from.getParentFile() != null) { return from.getParentFile(); } else { return from; } }
[ "Return the path to the parent directory. Should return the root if\nfrom is root.\n\n@param from either a file or directory\n@return the parent directory" ]
[ "this method will be invoked after methodToBeInvoked is invoked", "Check that the ranges and sizes add up, otherwise we have lost some data somewhere", "Adds this handler to the widget.\n\n@param <H> the type of handler to add\n@param type the event type\n@param handler the handler\n@return {@link HandlerRegistration} used to remove the handler", "Set up the services to create a channel listener and operation handler service.\n@param serviceTarget the service target to install the services into\n@param endpointName the endpoint name to install the services into\n@param channelName the name of the channel\n@param executorServiceName service name of the executor service to use in the operation handler service\n@param scheduledExecutorServiceName service name of the scheduled executor service to use in the operation handler service", "Use this API to fetch dospolicy resource of given name .", "Replace the last element of an address with a static path element.\n\n@param element the path element\n@return the operation address transformer", "Use this API to fetch all the cachecontentgroup resources that are configured on netscaler.", "Append Join for SQL92 Syntax without parentheses", "Retrieves a vertex attribute as a float buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatArray(String, float[])\n@see #getFloatVec(String)" ]
private void saveToPropertyVfsBundle() throws CmsException { for (Locale l : m_changedTranslations) { SortedProperties props = m_localizations.get(l); LockedFile f = m_lockedBundleFiles.get(l); if ((null != props) && (null != f)) { try { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); Writer writer = new OutputStreamWriter(outputStream, f.getEncoding()); props.store(writer, null); byte[] contentBytes = outputStream.toByteArray(); CmsFile file = f.getFile(); file.setContents(contentBytes); String contentEncodingProperty = m_cms.readPropertyObject( file, CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING, false).getValue(); if ((null == contentEncodingProperty) || !contentEncodingProperty.equals(f.getEncoding())) { m_cms.writePropertyObject( m_cms.getSitePath(file), new CmsProperty( CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING, f.getEncoding(), f.getEncoding())); } m_cms.writeFile(file); } catch (IOException e) { LOG.error( Messages.get().getBundle().key( Messages.ERR_READING_FILE_UNSUPPORTED_ENCODING_2, f.getFile().getRootPath(), f.getEncoding()), e); } } } }
[ "Saves messages to a propertyvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails." ]
[ "Use this API to fetch the statistics of all rnat_stats resources that are configured on netscaler.", "Converts the string representation of the days bit field into an integer.\n\n@param days string bit field\n@return integer bit field", "Abort an active extern transaction associated with the given PB.", "Put a value if and only if the map has not changed since the given snapshot was taken. If the put fails,\nit is the caller's responsibility to retry.\n\n@param instance the instance with the map field\n@param key the key\n@param value the value\n@param snapshot the map snapshot\n@return {@code false} if the snapshot is out of date and we could not update, {@code true} if the put succeeded", "Answer the FieldConversions for the PkFields\n@param cld\n@return the pk FieldConversions", "Add an additional SSExtension\n@param ssExt the ssextension to set", "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", "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name", "Retrieves the amount of time between two date time values. Note that\nthese values are converted into canonical values to remove the\ndate component.\n\n@param start start time\n@param end end time\n@return length of time" ]
@Override public void validate() throws AddressStringException { if(isValidated()) { return; } synchronized(this) { if(isValidated()) { return; } //we know nothing about this address. See what it is. try { parsedAddress = getValidator().validateAddress(this); isValid = true; } catch(AddressStringException e) { cachedException = e; isValid = false; throw e; } } }
[ "Validates this string is a valid address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws AddressStringException" ]
[ "Read resource baseline values.\n\n@param row result set row", "Look up the playback state that has reached furthest in the track, but give playing players priority over stopped players.\nThis is used to choose the scroll center when auto-scrolling is active.\n\n@return the playback state, if any, with the highest playing {@link PlaybackState#position} value", "Check if a module can be promoted in the Grapes server\n\n@param name\n@param version\n@return a boolean which is true only if the module can be promoted\n@throws GrapesCommunicationException", "Used to get the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param output Storage for the value", "Sets the transformations to be applied to the shape before indexing it.\n\n@param transformations the sequence of transformations\n@return this with the specified sequence of transformations", "Create a Renderer getting a copy from the prototypes collection.\n\n@param content to render.\n@param parent used to inflate the view.\n@return a new renderer.", "updates the values for locking fields , BRJ\nhandles int, long, Timestamp\nrespects updateLock so locking field are only updated when updateLock is true\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance", "Process the standard working hours for a given day.\n\n@param mpxjCalendar MPXJ Calendar instance\n@param uniqueID unique ID sequence generation\n@param day Day instance\n@param typeList Planner list of days" ]
public Date dateTime(ImapRequestLineReader request) throws ProtocolException { char next = request.nextWordChar(); String dateString; // From https://tools.ietf.org/html/rfc3501 : // date-time = DQUOTE date-day-fixed "-" date-month "-" date-year // SP time SP zone DQUOTE // zone = ("+" / "-") 4DIGIT if (next == '"') { dateString = consumeQuoted(request); } else { throw new ProtocolException("DateTime values must be quoted."); } try { // You can use Z or zzzz return new SimpleDateFormat("dd-MMM-yyyy hh:mm:ss Z", Locale.US).parse(dateString); } catch (ParseException e) { throw new ProtocolException("Invalid date format <" + dateString + ">, should comply to dd-MMM-yyyy hh:mm:ss Z"); } }
[ "Reads a \"date-time\" argument from the request." ]
[ "Returns string content of blob identified by specified blob handle. String contents cache is used.\n\n@param blobHandle blob handle\n@param txn {@linkplain Transaction} instance\n@return string content of blob identified by specified blob handle\n@throws IOException if something went wrong", "Given a String the method uses Regex to check if the String only contains punctuation characters\n\n@param s a String to check using regex\n@return true if the String is valid", "Add a clause where the ID is from an existing object.", "Create a mapping from entity names to entity ID values.", "Create all the links possible between the Declaration and all the ImporterService matching the.\nImporterServiceFilter of the Linker.\n\n@param declarationSRef the ServiceReference<Declaration> of the Declaration", "Notifies that a header item is changed.\n\n@param position the position.", "Creates the save and exit button UI Component.\n@return the save and exit button.", "This takes into account objects that breaks the JavaBean convention\nand have as getter for Boolean objects an \"isXXX\" method.\n@param dest\n@param orig", "Determine the enum value corresponding to the third play state found in the packet.\n\n@return the proper value" ]
public RedwoodConfiguration collapseExact(){ tasks.add(new Runnable() { public void run() { Redwood.spliceHandler(VisibilityHandler.class, new RepeatedRecordHandler(RepeatedRecordHandler.EXACT), OutputHandler.class); } }); return this; }
[ "Collapse repeated records, using exact string match on the record.\nThis is generally useful for making very verbose logs more readable.\n@return this" ]
[ "Processes the template for all table definitions in the torque model.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Modify the meta-data for a photoset.\n\n@param photosetId\nThe photoset ID\n@param title\nA new title\n@param description\nA new description (can be null)\n@throws FlickrException", "Fetch the latest versions for cluster metadata", "Use this API to add clusternodegroup resources.", "Returns a handle to the pool. Useful to obtain a handle to the\nstatistics for example.\n@return pool", "Return the index associated to the Renderer.\n\n@param renderer used to search in the prototypes collection.\n@return the prototype index associated to the renderer passed as argument.", "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", "Reports a dependency of this node has been faulted.\n\n@param dependencyKey the id of the dependency node\n@param throwable the reason for unsuccessful resolution", "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait." ]
protected String stringValue(COSBase value) { if (value instanceof COSString) return ((COSString) value).getString(); else if (value instanceof COSNumber) return String.valueOf(((COSNumber) value).floatValue()); else return ""; }
[ "Obtains a string from a PDF value\n@param value the PDF value of the String, Integer or Float type\n@return the corresponging string value" ]
[ "Use this API to update cachecontentgroup.", "Record the checkout wait time in us\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param checkoutTimeUs The number of us to wait before getting a socket", "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed", "Returns an iban with replaced check digit.\n\n@param iban The iban\n@return The iban without the check digit", "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context", "Returns the encoding of the file.\nEncoding is read from the content-encoding property and defaults to the systems default encoding.\nSince properties can change without rewriting content, the actual encoding can differ.\n\n@param cms {@link CmsObject} used to read properties of the given file.\n@param file the file for which the encoding is requested\n@return the file's encoding according to the content-encoding property, or the system's default encoding as default.", "Patches the product module names\n\n@param name String\n@param moduleNames List<String>", "This is a convenience method to add a default derived\ncalendar to the project.\n\n@return new ProjectCalendar instance", "Get the original-image using the specified URL suffix.\n\n@deprecated\n@see PhotosInterface#getImage(Photo, int)\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException\n@throws FlickrException" ]
public void updateActive(int profileId, String clientUUID, Boolean active) throws Exception { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_CLIENT + " SET " + Constants.CLIENT_IS_ACTIVE + "= ?" + " WHERE " + Constants.GENERIC_CLIENT_UUID + "= ? " + " AND " + Constants.GENERIC_PROFILE_ID + "= ?" ); statement.setBoolean(1, active); statement.setString(2, clientUUID); statement.setInt(3, profileId); statement.executeUpdate(); } catch (Exception e) { // ok to swallow this.. just means there wasn't any } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "disables the current active id, enables the new one selected\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@param active true to make client active, false to make client inactive\n@throws Exception exception" ]
[ "Use this API to update ipv6.", "Use this API to delete dnssuffix of given name.", "Create a document that parses the tile's labelFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@param labelStyleInfo\nlabel style info\n@return graphics document\n@throws RenderException\ncannot render", "Use this API to fetch all the route6 resources that are configured on netscaler.", "Serialize a parameterized object to an OutputStream.\n\n@param object The object to serialize.\n@param parameterizedType The ParameterizedType describing the object. Ex: LoganSquare.serialize(object, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { }, os);\n@param os The OutputStream being written to.", "Use this API to fetch statistics of lbvserver_stats resource of given name .", "Returns a product regarding its name\n\n@param name String\n@return DbProduct", "Destroys the internal connection handle and creates a new one.\n@throws SQLException", "Generates timephased actual costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost" ]
private List<org.jfrog.hudson.pipeline.types.File> getBuildFilesList(Stream<? extends BaseBuildFileBean> buildFilesStream) { return buildFilesStream .filter(buildFile -> StringUtils.isNotBlank(buildFile.getLocalPath())) .filter(buildFile -> StringUtils.isNotBlank(buildFile.getRemotePath())) .map(org.jfrog.hudson.pipeline.types.File::new) .distinct() .collect(Collectors.toList()); }
[ "Return a list of 'Files' of downloaded or uploaded files. Filters build files without local and remote paths.\n\n@param buildFilesStream - Stream of build Artifacts or Dependencies.\n@return - List of build files." ]
[ "Processes a row of the sites table and stores the site information found\ntherein.\n\n@param siteRow\nstring serialisation of a sites table row as found in the SQL\ndump", "Obtains a Symmetry010 zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Returns the query string currently in the text field.\n\n@return the query string", "Initializes the persistence strategy to be used when accessing the datastore. In particular, all the required\ncaches will be configured and initialized.\n\n@param cacheMappingType the {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType} to be used\n@param entityTypes meta-data of all the entity types registered with the current session factory\n@param associationTypes meta-data of all the association types registered with the current session factory\n@param idSourceTypes meta-data of all the id source types registered with the current session factory\n@param namespaces from the database currently in use", "Get the subsystem deployment model root.\n\n<p>\nIf the subsystem resource does not exist one will be created.\n</p>\n\n@param subsystemName the subsystem name.\n\n@return the model", "Stops the service. If a timeout is given and the service has still not\ngracefully been stopped after timeout ms the service is stopped by force.\n\n@param millis value in ms", "Set the menu view from a layout resource.\n\n@param layoutResId Resource ID to be inflated.", "Fetch the specified expression from the cache or create it if necessary.\n\n@param expressionString the expression string\n@return the expression\n@throws ParseException oops", "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" ]
private void processActivity(Activity activity) { Task task = getParentTask(activity).addTask(); task.setText(1, activity.getId()); task.setActualDuration(activity.getActualDuration()); task.setActualFinish(activity.getActualFinish()); task.setActualStart(activity.getActualStart()); //activity.getBaseunit() //activity.getBilled() //activity.getCalendar() //activity.getCostAccount() task.setCreateDate(activity.getCreationTime()); task.setFinish(activity.getCurrentFinish()); task.setStart(activity.getCurrentStart()); task.setName(activity.getDescription()); task.setDuration(activity.getDurationAtCompletion()); task.setEarlyFinish(activity.getEarlyFinish()); task.setEarlyStart(activity.getEarlyStart()); task.setFreeSlack(activity.getFreeFloat()); task.setLateFinish(activity.getLateFinish()); task.setLateStart(activity.getLateStart()); task.setNotes(activity.getNotes()); task.setBaselineDuration(activity.getOriginalDuration()); //activity.getPathFloat() task.setPhysicalPercentComplete(activity.getPhysicalPercentComplete()); task.setRemainingDuration(activity.getRemainingDuration()); task.setCost(activity.getTotalCost()); task.setTotalSlack(activity.getTotalFloat()); task.setMilestone(activityIsMilestone(activity)); //activity.getUserDefined() task.setGUID(activity.getUuid()); if (task.getMilestone()) { if (activityIsStartMilestone(activity)) { task.setFinish(task.getStart()); } else { task.setStart(task.getFinish()); } } if (task.getActualStart() == null) { task.setPercentageComplete(Integer.valueOf(0)); } else { if (task.getActualFinish() != null) { task.setPercentageComplete(Integer.valueOf(100)); } else { Duration remaining = activity.getRemainingDuration(); Duration total = activity.getDurationAtCompletion(); if (remaining != null && total != null && total.getDuration() != 0) { double percentComplete = ((total.getDuration() - remaining.getDuration()) * 100.0) / total.getDuration(); task.setPercentageComplete(Double.valueOf(percentComplete)); } } } m_activityMap.put(activity.getId(), task); }
[ "Create a Task instance from a Phoenix activity.\n\n@param activity Phoenix activity data" ]
[ "Makes a CRFDatum by producing features and a label from input data at a\nspecific position, using the provided factory.\n\n@param info\nThe input data\n@param loc\nThe position to build a datum at\n@param featureFactory\nThe FeatureFactory to use to extract features\n@return The constructed CRFDatum", "Returns true if templates are to be instantiated synchronously and false if\nasynchronously.", "Sets the package pattern to match against.", "The local event will decide the next state of the document in question.\n\n@param <T> the type of class represented by the document in the change event.\n@return the local full document which may be null.", "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)", "Callback for constant meta class update change", "This method inserts a name value pair into internal storage.\n\n@param field task field\n@param value attribute value", "This method writes task data to a JSON file.\nNote that we write the task hierarchy in order to make rebuilding the hierarchy easier.", "Copies the non-zero structure of orig into \"this\"\n@param orig Matrix who's structure is to be copied" ]
private void initStoreDefinitions(Version storesXmlVersion) { if(this.storeDefinitionsStorageEngine == null) { throw new VoldemortException("The store definitions directory is empty"); } String allStoreDefinitions = "<stores>"; Version finalStoresXmlVersion = null; if(storesXmlVersion != null) { finalStoresXmlVersion = storesXmlVersion; } this.storeNames.clear(); ClosableIterator<Pair<String, Versioned<String>>> storesIterator = this.storeDefinitionsStorageEngine.entries(); // Some test setups may result in duplicate entries for 'store' element. // Do the de-dup here Map<String, Versioned<String>> storeNameToDefMap = new HashMap<String, Versioned<String>>(); Version maxVersion = null; while(storesIterator.hasNext()) { Pair<String, Versioned<String>> storeDetail = storesIterator.next(); String storeName = storeDetail.getFirst(); Versioned<String> versionedStoreDef = storeDetail.getSecond(); storeNameToDefMap.put(storeName, versionedStoreDef); Version curVersion = versionedStoreDef.getVersion(); // Get the highest version from all the store entries if(maxVersion == null) { maxVersion = curVersion; } else if(maxVersion.compare(curVersion) == Occurred.BEFORE) { maxVersion = curVersion; } } // If the specified version is null, assign highest Version to // 'stores.xml' key if(finalStoresXmlVersion == null) { finalStoresXmlVersion = maxVersion; } // Go through all the individual stores and update metadata for(Entry<String, Versioned<String>> storeEntry: storeNameToDefMap.entrySet()) { String storeName = storeEntry.getKey(); Versioned<String> versionedStoreDef = storeEntry.getValue(); // Add all the store names to the list of storeNames this.storeNames.add(storeName); this.metadataCache.put(storeName, new Versioned<Object>(versionedStoreDef.getValue(), versionedStoreDef.getVersion())); } Collections.sort(this.storeNames); for(String storeName: this.storeNames) { Versioned<String> versionedStoreDef = storeNameToDefMap.get(storeName); // Stitch together to form the complete store definition list. allStoreDefinitions += versionedStoreDef.getValue(); } allStoreDefinitions += "</stores>"; // Update cache with the composite store definition list. metadataCache.put(STORES_KEY, convertStringToObject(STORES_KEY, new Versioned<String>(allStoreDefinitions, finalStoresXmlVersion))); }
[ "Function to go through all the store definitions contained in the STORES\ndirectory and\n\n1. Update metadata cache.\n\n2. Update STORES_KEY by stitching together all these keys.\n\n3. Update 'storeNames' list.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will correctly handle concurrency issues. Currently this is not an\nissue since its invoked by init, put, add and delete store all of which\nuse locks to deal with any concurrency related issues." ]
[ "Get photos from the user's contacts.\n\nThis method requires authentication with 'read' permission.\n\n@param count\nThe number of photos to return\n@param justFriends\nSet to true to only show friends photos\n@param singlePhoto\nSet to true to get a single photo\n@param includeSelf\nSet to true to include self\n@return The Collection of photos\n@throws FlickrException", "Use this API to delete dnspolicylabel of given name.", "Uploads a new file to this folder while reporting the progress to a ProgressListener.\n\n@param fileContent a stream containing the contents of the file to upload.\n@param name the name to give the uploaded file.\n@param fileSize the size of the file used for determining the progress of the upload.\n@param listener a listener for monitoring the upload's progress.\n@return the uploaded file's info.", "Register the given callback as to be executed after request completion.\n\n@param name The name of the bean.\n@param callback The callback of the bean to be executed for destruction.", "A convenient way of creating a map on the fly.\n\n@param <K> the key type\n@param <V> the value type\n@param entries\nMap.Entry objects to be added to the map\n@return a LinkedHashMap with the supplied entries", "Use this API to disable nsfeature.", "Image scale method\n@param imageToScale The image to be scaled\n@param dWidth Desired width, the new image object is created to this size\n@param dHeight Desired height, the new image object is created to this size\n@param fWidth What to multiply the width by. value < 1 scales down, and value > one scales up\n@param fHeight What to multiply the height by. value < 1 scales down, and value > one scales up\n@return A scaled image", "Calculate the summed conditional likelihood of this data by summing\nconditional estimates.", "Extract the outline level from a task's WBS attribute.\n\n@param task Task instance\n@return outline level" ]
public static appfwpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ appfwpolicy_csvserver_binding obj = new appfwpolicy_csvserver_binding(); obj.set_name(name); appfwpolicy_csvserver_binding response[] = (appfwpolicy_csvserver_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch appfwpolicy_csvserver_binding resources of given name ." ]
[ "Returns the class hierarchy of the given type, from bottom to top, starting with the given class itself.\nInterfaces are not included.\n\n@param clazz the class of interest\n@return the class hierarchy of the given class", "Use this API to delete dnssuffix resources of given names.", "End building the script, adding a return value statement\n@param config the configuration for the script to build\n@param value the value to return\n@return the new {@link LuaScript} instance", "Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name .", "Convert the holiday format from EquivalenceClassTransformer into a date format\n\n@param holiday the date\n@return a date String in the format yyyy-MM-dd", "compute Cosh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Override the thread context ClassLoader with the environment's bean ClassLoader\nif necessary, i.e. if the bean ClassLoader is not equivalent to the thread\ncontext ClassLoader already.\n@param classLoaderToUse the actual ClassLoader to use for the thread context\n@return the original thread context ClassLoader, or {@code null} if not overridden", "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", "Exception handler if we are unable to parse a json value into a java representation\n\n@param expectedType Name of the expected Type\n@param type Type of the json node\n@return SpinJsonDataFormatException" ]
Response delete(URI uri) { HttpConnection connection = Http.DELETE(uri); return executeToResponse(connection); }
[ "Performs a HTTP DELETE request.\n\n@return {@link Response}" ]
[ "Use this API to clear gslbldnsentries resources.", "Set the list of supported resolutions. Each resolution is specified in map units per pixel.\n\n@param resolutions\nresolutions\n@deprecated use {@link #setZoomLevels()}", "Transits a float propertyId from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Use this API to fetch the statistics of all protocolip_stats resources that are configured on netscaler.", "Gets validation errors either as a JSON string, or null if there are no validation errors.\n\n@return the validation error JSON", "Emits a change event for the given document id.\n\n@param nsConfig the configuration for the namespace to which the\ndocument referred to by the change event belongs.\n@param event the change event.", "Called every frame if the picker is enabled\nto generate pick events.\n@param frameTime starting time of the current frame", "Combines adjacent blocks of the same type.", "Cut the message content to the configured length.\n\n@param event the event" ]
public Set<DbLicense> resolveLicenses(List<String> licStrings) { Set<DbLicense> result = new HashSet<>(); licStrings .stream() .map(this::getMatchingLicenses) .forEach(result::addAll); return result; }
[ "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" ]
[ "Clears the internal used cache for object materialization.", "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array.", "Template method for verification of lazy initialisation.", "Logs the time taken by this rule, and attaches this to the total for the RuleProvider", "Use this API to fetch sslpolicy_lbvserver_binding resources of given name .", "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given reference curve and an additional spread.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param spread The spread which should be added to the discount curve.\n@param model The model under which the product is valued.\n@return The value of the bond for the given curve and spread.", "Copy a subsequence of Bytes to specific byte array. Uses the specified offset in the dest byte\narray to start the copy.\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)\n@param dest destination array\n@param destPos starting position in the destination data.\n@exception IndexOutOfBoundsException if copying would cause access of data outside array\nbounds.\n@exception NullPointerException if either <code>src</code> or <code>dest</code> is\n<code>null</code>.\n@since 1.1.0", "Try to link the declaration with the importerService referenced by the ServiceReference,.\nreturn true if they have been link together, false otherwise.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<S> of S\n@return true if they have been link together, false otherwise.", "Calculates the bounds of the non-transparent parts of the given image.\n@param p the image\n@return the bounds of the non-transparent area" ]
private String parseEnvelope() { List<String> response = new ArrayList<>(); //1. Date --------------- response.add(LB + Q + sentDateEnvelopeString + Q + SP); //2. Subject --------------- if (subject != null && (subject.length() != 0)) { response.add(Q + escapeHeader(subject) + Q + SP); } else { response.add(NIL + SP); } //3. From --------------- addAddressToEnvelopeIfAvailable(from, response); response.add(SP); //4. Sender --------------- addAddressToEnvelopeIfAvailableWithNetscapeFeature(sender, response); response.add(SP); addAddressToEnvelopeIfAvailableWithNetscapeFeature(replyTo, response); response.add(SP); addAddressToEnvelopeIfAvailable(to, response); response.add(SP); addAddressToEnvelopeIfAvailable(cc, response); response.add(SP); addAddressToEnvelopeIfAvailable(bcc, response); response.add(SP); if (inReplyTo != null && inReplyTo.length > 0) { response.add(inReplyTo[0]); } else { response.add(NIL); } response.add(SP); if (messageID != null && messageID.length > 0) { messageID[0] = escapeHeader(messageID[0]); response.add(Q + messageID[0] + Q); } else { response.add(NIL); } response.add(RB); StringBuilder buf = new StringBuilder(16 * response.size()); for (String aResponse : response) { buf.append(aResponse); } return buf.toString(); }
[ "Builds IMAP envelope String from pre-parsed data." ]
[ "Returns a new created connection\n\n@param jcd the connection descriptor\n@return an instance of Connection from the drivermanager", "Return the class of one of the properties of another class from which the Hibernate metadata is given.\n\n@param meta\nThe parent class to search a property in.\n@param propertyName\nThe name of the property in the parent class (provided by meta)\n@return Returns the class of the property in question.\n@throws HibernateLayerException\nThrows an exception if the property name could not be retrieved.", "Allows to access the names of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used.\n@return the set of custom rounding ids, never {@code null}.", "Add a comment to a photoset. This method requires authentication with 'write' permission.\n\n@param photosetId\nThe id of the photoset to add a comment to.\n@param commentText\nText of the comment\n@return the comment id\n@throws FlickrException", "Upload a photo from a File.\n\n@param file\nthe photo file\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException", "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices", "Clear JobContext of current thread", "get the key name to use in log from the logging keys map", "Reads and sets the next feed in the stream." ]
public static <T> DecoratorImpl<T> of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager) { return new DecoratorImpl<T>(attributes, clazz, beanManager); }
[ "Creates a decorator bean\n\n@param <T> The type\n@param clazz The class\n@param beanManager the current manager\n@return a Bean" ]
[ "See if a range for assignment is specified. If so return the range, otherwise return null\n\nExample of assign range:\na(0:3,4:5) = blah\na((0+2):3,4:5) = blah", "convenience method for setting working or non-working days.\n\n@param day required day\n@param working flag indicating if the day is a working day", "Set child components.\n\n@param children\nchildren", "Processes the template for all reference definitions 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\"", "Ensure that a tool object is valid for creation. The API requires certain fields to be filled out.\nThrows an IllegalArgumentException if the conditions are not met.\n@param tool The external tool object we are trying to create", "Alternative implementation for the drift. For experimental purposes.\n\n@param timeIndex\n@param componentIndex\n@param realizationAtTimeIndex\n@param realizationPredictor\n@return", "Used to apply or update the watermark for the item.\n@param itemUrl url template for the item.\n@param imprint the value must be \"default\", as custom watermarks is not yet supported.\n@return the watermark associated with the item.", "Start component timer for current instance\n@param type - of component", "Use this API to fetch filtered set of vpnglobal_auditnslogpolicy_binding resources.\nset the filter parameter values in filtervalue object." ]
public final Processor.ExecutionContext print( final String jobId, final PJsonObject specJson, final OutputStream out) throws Exception { final OutputFormat format = getOutputFormat(specJson); final File taskDirectory = this.workingDirectories.getTaskDirectory(); try { return format.print(jobId, specJson, getConfiguration(), this.configFile.getParentFile(), taskDirectory, out); } finally { this.workingDirectories.removeDirectory(taskDirectory); } }
[ "Start a print.\n\n@param jobId the job ID\n@param specJson the client json request.\n@param out the stream to write to." ]
[ "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value", "Return the bean type, untangling the proxy if needed\n\n@param name\nthe bean name\n@return The Class of the bean", "Read the top level tasks from GanttProject.\n\n@param gpProject GanttProject project", "Creates a span that covers an exact row", "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "Checks to see if an Oracle Server exists.\n\n@param curator It is the responsibility of the caller to ensure the curator is started\n@return boolean if the server exists in zookeeper", "Returns the metallic factor for PBR shading", "any possible bean invocations from other ADV observers", "Must be called before any other functions. Declares and sets up internal data structures.\n\n@param numSamples Number of samples that will be processed.\n@param sampleSize Number of elements in each sample." ]
public void fillRect(int x, int y, int w, int h, Color c) { int color = c.getRGB(); for (int i = x; i < x + w; i++) { for (int j = y; j < y + h; j++) { setIntColor(i, j, color); } } }
[ "Fills a rectangle in the image.\n\n@param x rect�s start position in x-axis\n@param y rect�s start positioj in y-axis\n@param w rect�s width\n@param h rect�s height\n@param c rect�s color" ]
[ "Adds a boolean refinement for the next queries.\n\n@param attribute the attribute to refine on.\n@param value the value to refine with.\n@return this {@link Searcher} for chaining.", "FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to close the connection in this method, because the TxManager does prepare for commit\nafter this method and all used DataSource-connections have to be closed before.\n\n@see javax.transaction.Synchronization", "Adds a resource collection with execution hints.", "This method extracts data for a normal working day from an MSPDI file.\n\n@param calendar Calendar data\n@param weekDay Day data", "Receives a PropertyColumn and returns a JRDesignField", "Browse groups for the given category ID. If a null value is passed for the category then the root category is used.\n\n@param catId\nThe optional category id. Null value will be ignored.\n@return The Collection of Photo objects\n@throws FlickrException\n@deprecated Flickr returns just empty results", "Use this API to count sslcertkey_crldistribution_binding resources configued on NetScaler.", "Restores the dropout descriptor to a previously saved-off state", "Creates a Bytes object by copying the value of the given String" ]
public Integer getVarDataKey(FieldType type) { Integer result = null; FieldItem item = m_map.get(type); if (item != null) { result = item.getVarDataKey(); } return result; }
[ "Retrieve the var data key for a specific field.\n\n@param type field type\n@return var data key" ]
[ "Add the steal information to the rebalancer state\n\n@param stealInfo The steal information to add", "Given a GanttProject priority value, turn this into an MPXJ Priority instance.\n\n@param gpPriority GanttProject priority\n@return Priority instance", "Finish the oauth flow after the user was redirected back.\n\n@param code\nCode returned by the Eve Online SSO\n@param state\nThis should be some secret to prevent XRSF see\ngetAuthorizationUri\n@throws net.troja.eve.esi.ApiException", "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress.\n@throws BoxAPIException if an error occurs while writing to the connection.", "Sets the name of the attribute group with which this attribute is associated.\n\n@param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null}\nif the attribute is not associated with a group.\n@return a builder that can be used to continue building the attribute definition", "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Recursively read a task, and any sub tasks.\n\n@param mpxjParent Parent for the MPXJ tasks\n@param gpTask GanttProject task", "This method will be intercepted by the proxy if it is enabled to return the internal target.\n@return the target.", "Pull docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host" ]
public static cmppolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_policybinding_binding obj = new cmppolicylabel_policybinding_binding(); obj.set_labelname(labelname); cmppolicylabel_policybinding_binding response[] = (cmppolicylabel_policybinding_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch cmppolicylabel_policybinding_binding resources of given name ." ]
[ "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", "Creates a random diagonal matrix where the diagonal elements are selected from a uniform\ndistribution that goes from min to max.\n\n@param N Dimension of the matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "Use this API to fetch rewritepolicy_csvserver_binding resources of given name .", "Add a mapping of properties between two beans\n\n@param beanToBeanMapping", "Utility function that converts a list to a map.\n\n@param list The list in which even elements are keys and odd elements are\nvalues.\n@rturn The map container that maps even elements to odd elements, e.g.\n0->1, 2->3, etc.", "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param dayList list of calendar days\n@param exceptions list of exceptions", "Wrapped version of standard jdbc executeUpdate Pays attention to DB\nlocked exception and waits up to 1s\n\n@param query SQL query to execute\n@throws Exception - will throw an exception if we can never get a lock", "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list", "Reads and returns the mediator URN from the JSON content.\n\n@see #RegistrationConfig(String)" ]
static Path resolvePath(final Path base, final String... paths) { return Paths.get(base.toString(), paths); }
[ "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" ]
[ "Calls the provided metric getter on all the tracked environments and\nobtains their values\n\n@param metricGetterName\n@return", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success.", "Store the char in the internal buffer", "Returns the corresponding ModuleLoadService service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleLoadService service", "The keywords to include in the PDF metadata.\n\n@param keywords the keywords of the PDF.", "Prints some basic documentation about this program.", "This methods enhances the objects loaded by a broker query\nwith a JDO StateManager an brings them under JDO control.\n@param pojos the OJB pojos as obtained by the broker\n@return the collection of JDO PersistenceCapable instances", "Check if the print has not been asked to stop taking new jobs.\n\n@return true if it's OK to take new jobs.", "Record a new event." ]
public boolean clearSelection(boolean requestLayout) { Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "clearSelection [%d]", mSelectedItemsList.size()); boolean updateLayout = false; List<ListItemHostWidget> views = getAllHosts(); for (ListItemHostWidget host: views) { if (host.isSelected()) { host.setSelected(false); updateLayout = true; if (requestLayout) { host.requestLayout(); } } } clearSelectedItemsList(); return updateLayout; }
[ "Clear the selection of all items.\n@param requestLayout request layout after clear selection if the flag is true, no layout\nrequested otherwise\n@return {@code true} if at least one item was deselected,\n{@code false} otherwise." ]
[ "Gets the Kumar-Johnson divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kumar-Johnson divergence between p and q.", "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", "Use this API to update nsdiameter.", "Return a list of unique namespace and predicate pairs, optionally limited by predicate or namespace, in alphabetical order.\n\nThis method does not require authentication.\n\n@param namespace\noptional, can be null\n@param predicate\noptional, can be null\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList containing Pair-objects\n@throws FlickrException", "Use this API to link sslcertkey.", "Use this API to unset the properties of clusterinstance resource.\nProperties that need to be unset are specified in args array.", "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", "Flatten a list of test suite results into a collection of results grouped by test class.\nThis method basically strips away the TestNG way of organising tests and arranges\nthe results by test class.", "Get a property as a boolean or throw exception.\n\n@param key the property name" ]
public void delete() { URL url = STORAGE_POLICY_ASSIGNMENT_WITH_ID_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, HttpMethod.DELETE); request.send(); }
[ "Deletes this BoxStoragePolicyAssignment." ]
[ "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", "A specific, existing custom field can be updated by making a PUT request on the URL for that custom field. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged\n\nWhen using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the custom field.\n\nA custom field's `type` cannot be updated.\n\nAn enum custom field's `enum_options` cannot be updated with this endpoint. Instead see \"Work With Enum Options\" for information on how to update `enum_options`.\n\nReturns the complete updated custom field record.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Execute a slave process. Pump events to the given event bus.", "Use this API to save cachecontentgroup resources.", "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter.", "Return the Payload attached to the current active bucket for |test|.\nAlways returns a payload so the client doesn't crash on a malformed\ntest definition.\n\n@param testName test name\n@return pay load attached to the current active bucket\n@deprecated Use {@link #getPayload(String, Bucket)} instead", "Use this API to fetch sslcertkey_crldistribution_binding resources of given name .", "Set the configuration property.\n\n@param key\n@param value\n@return self\n@see #ARCHIVE_ISOLATION_SYSTEM_PROPERTY\n@see #SHUTDOWN_HOOK_SYSTEM_PROPERTY\n@see #DEV_MODE_SYSTEM_PROPERTY\n@see ConfigurationKey", "Read a text file from assets into a single string\n\n@param context\nA non-null Android Context\n@param asset\nThe asset file to read\n@return The contents or null on error." ]
public static final UUID parseUUID(String value) { return value == null || value.isEmpty() ? null : UUID.fromString(value); }
[ "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance" ]
[ "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", "Evict cached object\n\n@param key\nthe key indexed the cached object to be evicted", "Counts the number of elements in A which are not zero.\n@param A A matrix\n@return number of non-zero elements", "Returns a new Set containing all the objects in the specified array.", "Applies the mask to this address section and then compares values with the given address section\n\n@param mask\n@param other\n@return", "Cleans up the subsystem children for the deployment and each sub-deployment resource.\n\n@param resource the subsystem resource to clean up", "Try to set specified property to given marshaller\n\n@param marshaller specified marshaller\n@param name name of property to set\n@param value value of property to set", "Update the id field of the object in the database.", "Active inverter colors" ]
public void run() { ConnectionHandle connection = null; long tmp; long nextCheckInMs = this.maxAgeInMs; int partitionSize= this.partition.getAvailableConnections(); long currentTime = System.currentTimeMillis(); for (int i=0; i < partitionSize; i++){ try { connection = this.partition.getFreeConnections().poll(); if (connection != null){ connection.setOriginatingPartition(this.partition); tmp = this.maxAgeInMs - (currentTime - connection.getConnectionCreationTimeInMs()); if (tmp < nextCheckInMs){ nextCheckInMs = tmp; } if (connection.isExpired(currentTime)){ // kill off this connection closeConnection(connection); continue; } if (this.lifoMode){ // we can't put it back normally or it will end up in front again. if (!(connection.getOriginatingPartition().getFreeConnections().offer(connection))){ connection.internalClose(); } } else { this.pool.putConnectionBackInPartition(connection); } Thread.sleep(20L); // test slowly, this is not an operation that we're in a hurry to deal with (avoid CPU spikes)... } } catch (Throwable e) { logger.error("Connection max age thread exception.", e); } } // throw it back on the queue }
[ "Invoked periodically." ]
[ "Counts the coordinates stored in a single statement for the relevant\nproperty, if they are actually given and valid.\n\n@param statement\n@param itemDocument", "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", "Writes task baseline data.\n\n@param xmlTask MSPDI task\n@param mpxjTask MPXJ task", "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent", "Finish initialization of the configuration.", "Adds labels to the item\n\n@param labels\nthe labels to add", "Retrieve the number of minutes per year for this calendar.\n\n@return minutes per year", "Returns the configured page sizes, or the default page size if no core is configured.\n@return The configured page sizes, or the default page size if no core is configured.", "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" ]
public static int cudnnGetReductionWorkspaceSize( cudnnHandle handle, cudnnReduceTensorDescriptor reduceTensorDesc, cudnnTensorDescriptor aDesc, cudnnTensorDescriptor cDesc, long[] sizeInBytes) { return checkResult(cudnnGetReductionWorkspaceSizeNative(handle, reduceTensorDesc, aDesc, cDesc, sizeInBytes)); }
[ "Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output\ntensors" ]
[ "Set the classpath for loading the driver.\n\n@param classpath the classpath", "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField instance", "Returns the currently set filters in a map column -> filter.\n\n@return the currently set filters in a map column -> filter.", "Get a prefix for the log message to help identify which request is which and which responses\nbelong to which requests.", "Use this API to update cacheselector.", "Find the channel in the animation that animates the named bone.\n@param boneName name of bone to animate.", "Remove all scene objects.", "Use this API to add appfwjsoncontenttype.", "Gets validation errors either as a JSON string, or null if there are no validation errors.\n\n@return the validation error JSON" ]
@Override public void onNewState(CrawlerContext context, StateVertex vertex) { LOG.debug("onNewState"); StateBuilder state = outModelCache.addStateIfAbsent(vertex); visitedStates.putIfAbsent(state.getName(), vertex); saveScreenshot(context.getBrowser(), state.getName(), vertex); outputBuilder.persistDom(state.getName(), context.getBrowser().getUnStrippedDom()); }
[ "Saves a screenshot of every new state." ]
[ "Tests if this partition has hit a threshold and signal to the pool watch thread to create new connections\n@param connectionPartition to test for.", "Transfer the ownership of an application to another user.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param to Username of the person to transfer the app to. This is usually in the form of \"[email protected]\".", "See convertToSQL92.\n\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Checks, if all values necessary for a specific pattern are valid.\n@return a flag, indicating if all values required for the pattern are valid.", "This method permanently removes a webhook. Note that it may be possible\nto receive a request that was already in flight after deleting the\nwebhook, but no further requests will be issued.\n\n@param webhook The webhook to delete.\n@return Request object", "Record the duration of a put operation, along with the size of the values\nreturned.", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "Updates the polling state from a DELETE or POST operation.\n\n@param response the response from Retrofit REST call\n@throws IOException thrown by deserialization", "Logs the time taken by this rule, and attaches this to the total for the RuleProvider" ]
public static DMatrixRMaj symmetric(int length, double min, double max, Random rand) { DMatrixRMaj A = new DMatrixRMaj(length,length); symmetric(A,min,max,rand); return A; }
[ "Creates a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix." ]
[ "Use this API to fetch responderhtmlpage resource of given name .", "Add a source and destination.\n\n@param source Source path to be routed. Routed path can have named wild-card pattern with braces \"{}\".\n@param destination Destination of the path.", "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode", "Helper method to send message on outputStream and account for network\ntime stats.\n\n@param outputStream\n@param message\n@throws IOException", "Add exceptions to the calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "The main conversion method.\n@param image A BufferedImage containing the image that needs to be converted\n@param favicon When ico is true it will convert ico file into 16 x 16 size\n@return A string containing the ASCII version of the original image.", "Handle a whole day change event.\n@param event the change event.", "todo move to commonops", "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name." ]
public static int positionOf(char value, char[] array) { for (int i = 0; i < array.length; i++) { if (value == array[i]) { return i; } } throw new OkapiException("Unable to find character '" + value + "' in character array."); }
[ "Returns the position of the specified value in the specified array.\n\n@param value the value to search for\n@param array the array to search in\n@return the position of the specified value in the specified array" ]
[ "Helper method used to peel off spurious wrappings of DateTimeException\n\n@param e DateTimeException to peel\n\n@return DateTimeException that does not have another DateTimeException as its cause.", "Add a misc file.\n\n@param name the file name\n@param path the relative path\n@param newHash the new hash of the added content\n@param isDirectory whether the file is a directory or not\n@return the builder", "Returns values aggregated from all the delegates, without overriding\nvalues that already exist.\n\n@return The Map of aggregated values", "Here we specify the configuration, starting from default MostUsefulConfiguration, and changing only what is needed", "Performs an implicit double step using the values contained in the lower right hand side\nof the submatrix for the estimated eigenvector values.\n@param x1\n@param x2", "Set the time and value of the key at the given index\n@param keyIndex 0 based index of key\n@param time key time in seconds\n@param values key values", "returns a unique long value for class clazz and field fieldName.\nthe returned number is unique accross all tables in the extent of clazz.", "Returns the name of the class to be instantiated.\n@param rs the Resultset\n@return null if the column is not available", "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance" ]
public final double[] getDpiSuggestions() { if (this.dpiSuggestions == null) { List<Double> list = new ArrayList<>(); for (double suggestion: DEFAULT_DPI_VALUES) { if (suggestion <= this.maxDpi) { list.add(suggestion); } } double[] suggestions = new double[list.size()]; for (int i = 0; i < suggestions.length; i++) { suggestions[i] = list.get(i); } return suggestions; } return this.dpiSuggestions; }
[ "Get DPI suggestions.\n\n@return DPI suggestions" ]
[ "Places a disabled marker file in the directory of the specified version.\n\n@param version to disable\n@throws PersistenceFailureException if the marker file could not be created (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible).", "Retrieves the class object for the given qualified class name.\n\n@param className The qualified name of the class\n@param initialize Whether the class shall be initialized\n@return The class object", "Should the URI explicitly not be cached.\n\n@param requestUri request URI\n@return true when caching is prohibited", "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", "Send an empty request using a standard HTTP connection.", "Converts the real matrix into a complex matrix.\n\n@param input Real matrix. Not modified.\n@param output Complex matrix. Modified.", "Use this API to fetch vlan_nsip_binding resources of given name .", "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", "This must be called with the write lock held.\n@param requirement the requirement" ]
private void removeObsoleteElements(List<String> names, Map<String, View> sharedElements, List<String> elementsToRemove) { if (elementsToRemove.size() > 0) { names.removeAll(elementsToRemove); for (String elementToRemove : elementsToRemove) { sharedElements.remove(elementToRemove); } } }
[ "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." ]
[ "Reads baseline values for the current resource.\n\n@param xmlResource MSPDI resource instance\n@param mpxjResource MPXJ resource instance", "Method to service public recording APIs\n\n@param op Operation being tracked\n@param timeNS Duration of operation\n@param numEmptyResponses Number of empty responses being sent back,\ni.e.: requested keys for which there were no values (GET and GET_ALL only)\n@param valueSize Size in bytes of the value\n@param keySize Size in bytes of the key\n@param getAllAggregateRequests Total of amount of keys requested in the operation (GET_ALL only)", "Retrieve the recurrence type.\n\n@param value integer value\n@return RecurrenceType instance", "change server state between OFFLINE_SERVER and NORMAL_SERVER\n\n@param setToOffline True if set to OFFLINE_SERVER", "Converts a list of dates to a Json array with the long representation of the dates as strings.\n@param individualDates the list to convert.\n@return Json array with long values of dates as string", "Gets the Taneja divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Taneja divergence between p and q.", "Upload a file and attach it to a task\n\n@param task Globally unique identifier for the task.\n@param fileContent Content of the file to be uploaded\n@param fileName Name of the file to be uploaded\n@param fileType MIME type of the file to be uploaded\n@return Request object", "Use this API to fetch sslaction resource of given name .", "Update the underlying buffer using the integer\n\n@param number number to be stored in checksum buffer" ]
static synchronized void clearLogContext() { final LogContext embeddedLogContext = Holder.LOG_CONTEXT; // Remove the configurator and clear the log context final Configurator configurator = embeddedLogContext.getLogger("").detach(Configurator.ATTACHMENT_KEY); // If this was a PropertyConfigurator we can use the LogContextConfiguration API to tear down the LogContext if (configurator instanceof PropertyConfigurator) { final LogContextConfiguration logContextConfiguration = ((PropertyConfigurator) configurator).getLogContextConfiguration(); clearLogContext(logContextConfiguration); } else if (configurator instanceof LogContextConfiguration) { clearLogContext((LogContextConfiguration) configurator); } else { // Remove all the handlers and close them as well as reset the loggers final List<String> loggerNames = Collections.list(embeddedLogContext.getLoggerNames()); for (String name : loggerNames) { final Logger logger = embeddedLogContext.getLoggerIfExists(name); if (logger != null) { final Handler[] handlers = logger.clearHandlers(); if (handlers != null) { for (Handler handler : handlers) { handler.close(); } } logger.setFilter(null); logger.setUseParentFilters(false); logger.setUseParentHandlers(true); logger.setLevel(Level.INFO); } } } }
[ "Attempts to clear the global log context used for embedded servers." ]
[ "Use this API to fetch auditnslogpolicy_vpnvserver_binding resources of given name .", "Sets left and right padding for all cells in the table.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining", "Fires given event for non-web modules. Used for @BeforeDestroyed and @Destroyed events.", "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", "Scans the scene graph to collect picked items\nand generates appropriate pick and touch events.\nThis function is called by the cursor controller\ninternally but can also be used to funnel a\nstream of Android motion events into the picker.\n@see #pickObjects(GVRScene, float, float, float, float, float, float)\n@param touched true if the \"touched\" button is pressed.\nWhich button indicates touch is controller dependent.\n@param event Android MotionEvent which caused the pick\n@see IPickEvents\n@see ITouchEvents", "Creates a simple, annotation defined Web Bean\n\n@param <T> The type\n@param clazz The class\n@param beanManager the current manager\n@return A Web Bean", "Attachments are only structurally different if one step has an inline attachment\nand the other step either has no inline attachment or the inline attachment is\ndifferent.", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException", "Use this API to delete ntpserver resources." ]
@Nullable private static Converter<List<String>, Object> createPrimitiveTypeConverter(final Class<?> resultClass) { Object defaultValue = defaultValue(resultClass); if (defaultValue == null) { // For primitive type, the default value shouldn't be null return null; } return new BasicConverter(defaultValue) { @Override protected Object convert(String value) throws Exception { return valueOf(value, resultClass); } }; }
[ "Creates a converter function that converts value into primitive type.\n\n@return A converter function or {@code null} if the given type is not primitive type or boxed type" ]
[ "Use this API to fetch nsacl6 resource of given name .", "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "Find the scheme to use to connect to the service.\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 scheme of 'http' as a fallback.", "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Returns the context the view is running in, through which it can\naccess the current theme, resources, etc.\n\n@return The view's Context.", "Gets the filename from a path or URL.\n@param path or url.\n@return the file name.", "Read a Synchro time from an input stream.\n\n@param is input stream\n@return Date instance", "Creates a converter function that converts value using a constructor that accepts a single String argument.\n\n@return A converter function or {@code null} if the given type doesn't have a public constructor that accepts\na single String argument.", "Get the text value for the specified element. If the element is null, or the element's body is empty then this method will return null.\n\n@param element\nThe Element\n@return The value String or null" ]
public boolean isLabelAnnotationIntroducingCharacter(char ch) { char[] cutChars = labelAnnotationIntroducingCharacters(); for (char cutChar : cutChars) { if (ch == cutChar) { return true; } } return false; }
[ "Say whether this character is an annotation introducing\ncharacter.\n\n@param ch The character to check\n@return Whether it is an annotation introducing character" ]
[ "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to get events for.\n@return the latest change events for a given namespace.", "Removes from this set all of its elements that are contained in the specified members array\n@param members the members to remove\n@return the number of members actually removed", "Use this API to update cmpparameter.", "Calculates the Black-Scholes option value of a digital call option.\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return Returns the value of a European call option under the Black-Scholes model", "Convert an Object to a Date.", "Add the key and return it's index code. If the key already is present, the previous\nindex code is returned and no insertion is done.\n\n@param key key to add\n@return index of the key", "To store an object in a quick & dirty way.", "Process a calendar exception.\n\n@param calendar parent calendar\n@param row calendar exception data", "Starts a background thread which calls the controller every\ncheck_interval milliseconds. Returns immediately, leaving the\nbackground thread running." ]
public static void Forward(double[][] data) { int rows = data.length; int cols = data[0].length; double[] row = new double[cols]; double[] col = new double[rows]; for (int i = 0; i < rows; i++) { for (int j = 0; j < row.length; j++) row[j] = data[i][j]; Forward(row); for (int j = 0; j < row.length; j++) data[i][j] = row[j]; } for (int j = 0; j < cols; j++) { for (int i = 0; i < col.length; i++) col[i] = data[i][j]; Forward(col); for (int i = 0; i < col.length; i++) data[i][j] = col[i]; } }
[ "2-D Forward Discrete Cosine Transform.\n\n@param data Data." ]
[ "Optimized version of the Wagner & Fischer algorithm that only\nkeeps a single column in the matrix in memory at a time. It\nimplements the simple cutoff, but otherwise computes the entire\nmatrix. It is roughly twice as fast as the original function.", "Modifier method to set the unique ID of this calendar.\n\n@param uniqueID unique identifier", "Polls from the URL provided.\n\n@param url the URL to poll from.\n@return the raw response.", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Return all tenors for which data exists.\n\n@return The tenors in months.", "Reads a stringtemplate group from a stream.\n\nThis will always return a group (empty if necessary), even if reading it from the stream fails.\n\n@param stream the stream to read from\n@return the string template group", "Resolves the path relative to the parent and normalizes it.\n\n@param parent the parent path\n@param path the path\n\n@return the normalized path", "Updates the terms and statements of the current document.\nThe updates are computed with respect to the current data in the document,\nmaking sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged. The labels\nand aliases in a given language are kept distinct.\n\n@param currentDocument\nthe document to be updated; needs to have a correct revision id and\nentity id\n@param addLabels\nlabels to be set on the item. They will overwrite existing values\nin the same language.\n@param addDescriptions\ndescription to be set on the item. They will overwrite existing values\nin the same language.\n@param addAliases\naliases to be added. Existing aliases will be kept.\n@param deleteAliases\naliases to be deleted.\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return" ]
public static final PatchOperationTarget createLocal(final File jbossHome, List<File> moduleRoots, List<File> bundlesRoots) throws IOException { final PatchTool tool = PatchTool.Factory.createLocalTool(jbossHome, moduleRoots, bundlesRoots); return new LocalPatchOperationTarget(tool); }
[ "Create a local target.\n\n@param jbossHome the jboss home\n@param moduleRoots the module roots\n@param bundlesRoots the bundle roots\n@return the local target\n@throws IOException" ]
[ "Given a block of data representing completed work, this method will\nretrieve a set of TimephasedWork instances which represent\nthe day by day work carried out for a specific resource assignment.\n\n@param calendar calendar on which date calculations are based\n@param resourceAssignment resource assignment\n@param data completed work data block\n@return list of TimephasedWork instances", "Retrieve the \"complete through\" date.\n\n@return complete through date", "Creates an operations that targets this handler.\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "Retrieve a single field value.\n\n@param id parent entity ID\n@param type field type\n@param fixedData fixed data block\n@param varData var data block\n@return field value", "Old REST client uses new REST service", "Reports that a node is faulted.\n\n@param faulted the node faulted\n@param throwable the reason for fault", "Adds a resource collection with execution hints.", "Gets the index input list.\n\n@return the index input list", "Gets the current user.\n@param api the API connection of the current user.\n@return the current user." ]
public ProteusApplication addDefaultRoutes(RoutingHandler router) { if (config.hasPath("health.statusPath")) { try { final String statusPath = config.getString("health.statusPath"); router.add(Methods.GET, statusPath, (final HttpServerExchange exchange) -> { exchange.getResponseHeaders().add(Headers.CONTENT_TYPE, MediaType.TEXT_PLAIN); exchange.getResponseSender().send("OK"); }); this.registeredEndpoints.add(EndpointInfo.builder().withConsumes("*/*").withProduces("text/plain").withPathTemplate(statusPath).withControllerName("Internal").withMethod(Methods.GET).build()); } catch (Exception e) { log.error("Error adding health status route.", e.getMessage()); } } if (config.hasPath("application.favicon")) { try { final ByteBuffer faviconImageBuffer; final File faviconFile = new File(config.getString("application.favicon")); if (!faviconFile.exists()) { try (final InputStream stream = this.getClass().getResourceAsStream(config.getString("application.favicon"))) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[4096]; int read = 0; while (read != -1) { read = stream.read(buffer); if (read > 0) { baos.write(buffer, 0, read); } } faviconImageBuffer = ByteBuffer.wrap(baos.toByteArray()); } } else { try (final InputStream stream = Files.newInputStream(Paths.get(config.getString("application.favicon")))) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[4096]; int read = 0; while (read != -1) { read = stream.read(buffer); if (read > 0) { baos.write(buffer, 0, read); } } faviconImageBuffer = ByteBuffer.wrap(baos.toByteArray()); } } router.add(Methods.GET, "favicon.ico", (final HttpServerExchange exchange) -> { exchange.getResponseHeaders().add(Headers.CONTENT_TYPE, io.sinistral.proteus.server.MediaType.IMAGE_X_ICON.toString()); exchange.getResponseSender().send(faviconImageBuffer); }); } catch (Exception e) { log.error("Error adding favicon route.", e.getMessage()); } } return this; }
[ "Add utility routes the router\n\n@param router" ]
[ "Use this API to fetch spilloverpolicy resource of given name .", "These exact lines are shared between three different tools, so\nthey have been moved here to reduce code duplication.\n@return The parsed command-line, with options removed.", "Returns the bit at the specified index.\n@param index The index of the bit to look-up (0 is the least-significant bit).\n@return A boolean indicating whether the bit is set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Delete the given file in a separate thread\n\n@param file The file to delete", "Returns the string in the buffer minus an leading or trailing whitespace or quotes", "Set the named arguments.\n\n@param vars\nthe new named arguments", "Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Get the Attribute metadata for an MBean by name.\n@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values.", "Creates the database.\n\n@throws PlatformException If some error occurred" ]
@Override @SuppressWarnings("unchecked") public V put(K key, V value) { if (value == null) { return put(key, (V)nullValue); } // key could be not in original or in deltaMap // key could be not in original but in deltaMap // key could be in original but removed from deltaMap // key could be in original but mapped to something else in deltaMap V result = deltaMap.put(key, value); if (result == null) { return originalMap.get(key); } if (result == nullValue) { return null; } if (result == removedValue) { return null; } return result; }
[ "This may cost twice what it would in the original Map because we have to find\nthe original value for this key.\n\n@param key key with which the specified value is to be associated.\n@param value value to be associated with the specified key.\n@return previous value associated with specified key, or <tt>null</tt>\nif there was no mapping for key. A <tt>null</tt> return can\nalso indicate that the map previously associated <tt>null</tt>\nwith the specified key, if the implementation supports\n<tt>null</tt> values." ]
[ "Get a collection of tags used by the specified user.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param userId\nThe User ID\n@return The User object\n@throws FlickrException", "Get MultiJoined ClassDescriptors\n@param cld", "Write a date field to the JSON file.\n\n@param fieldName field name\n@param value field value", "EAP 7.1", "Whether the address is IPv4-compatible\n\n@see java.net.Inet6Address#isIPv4CompatibleAddress()", "Add a '&lt;&gt;' clause so the column must be not-equal-to the value.", "Write the management protocol header.\n\n@param header the mgmt protocol header\n@param os the output stream\n@throws IOException", "Use this API to unset the properties of gslbsite resource.\nProperties that need to be unset are specified in args array.", "Called to execute this action.\n@param actionEvent" ]
public static lbvserver_scpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_scpolicy_binding obj = new lbvserver_scpolicy_binding(); obj.set_name(name); lbvserver_scpolicy_binding response[] = (lbvserver_scpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch lbvserver_scpolicy_binding resources of given name ." ]
[ "Returns the latest change events, and clears them from the change stream listener.\n\n@return the latest change events.", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "Format a cue countdown indicator in the same way as the CDJ would at this point in the track.\n\n@return the value that the CDJ would display to indicate the distance to the next cue\n@see #getCueCountdown()", "Check if the current node is part of routing request based on cluster.xml\nor throw an exception.\n\n@param key The key we are checking\n@param routingStrategy The routing strategy\n@param currentNode Current node", "Plots the MSD curve for trajectory t\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param msdeval Evaluates the mean squared displacment", "Check that each emitted notification is properly described by its source.", "Gets the value of the resourceRequestCriterion 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 resourceRequestCriterion property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetResourceRequestCriterion().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link ResourceRequestType.ResourceRequestCriterion }", "Returns the set of synchronized documents in a namespace.\n\n@param namespace the namespace to get synchronized documents for.\n@return the set of synchronized documents in a namespace.", "Generates a HashMap used to store expanded state for items in the list\non configuration change or whenever onResume is called.\n\n@return A HashMap containing the expanded state of all parents" ]
public void createResourceFieldMap(Props props) { byte[] fieldMapData = null; for (Integer key : RESOURCE_KEYS) { fieldMapData = props.getByteArray(key); if (fieldMapData != null) { break; } } if (fieldMapData == null) { populateDefaultData(getDefaultResourceData()); } else { createFieldMap(fieldMapData); } }
[ "Creates a field map for resources.\n\n@param props props data" ]
[ "Checks length and compare order of field names with declared PK fields in metadata.", "Collect the total times measured by all known named timers of the given\nname. This is useful to add up times that were collected across separate\nthreads.\n\n@param timerName\n@return timer", "Clear out our DAO caches.", "Checks if a key already exists.\n@param newKey the key to check for.\n@return <code>true</code> if the key already exists, <code>false</code> otherwise.", "Clear history for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client", "Emit a event object with parameters and force all listeners to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(EventObject, Object...)", "Transfer the data from the inputStream to the outputStream. Then close both streams.", "Executes a method on the server asynchronously", "Return total number of connections currently in use by an application\n@return no of leased connections" ]
public static URL codeLocationFromPath(String filePath) { try { return new File(filePath).toURI().toURL(); } catch (Exception e) { throw new InvalidCodeLocation(filePath); } }
[ "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails" ]
[ "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Sets the top padding for all cells in the table.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Deletes all steps of scenario cases where a data table\nis generated to reduce the size of the data file.\nIn this case only the steps of the first scenario case are actually needed.", "Expands all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start expanding parents\n@param parentCount The number of parents to expand", "Button onClick listener.\n\n@param v", "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", "Invite a user to an enterprise.\n@param api the API connection to use for the request.\n@param userLogin the login of the user to invite.\n@param enterpriseID the ID of the enterprise to invite the user to.\n@return the invite info.", "retrieve a collection of type collectionClass matching the Query query\n\n@see org.apache.ojb.broker.PersistenceBroker#getCollectionByQuery(Class, Query)", "Creates a Bytes object by copying the data of the given byte array" ]
public static void checkMinimumArrayLength(String parameterName, int actualLength, int minimumLength) { if (actualLength < minimumLength) { throw Exceptions .IllegalArgument( "Array %s should have at least %d elements, but it only has %d", parameterName, minimumLength, actualLength); } }
[ "Check that the parameter array has at least as many elements as it\nshould.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@param actualLength\nThe actual array length\n@param minimumLength\nThe minimum array length" ]
[ "Plots the MSD curve with the trajectory t and adds the fitted model for anomalous diffusion above.\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 a Exponent alpha of power law function\n@param D Diffusion coeffcient", "defines the KEY in the parent report parameters map where to get the subreport parameters map.\n@param path where to get the parameter map for the subrerpot.\n@return", "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", "Setting the type of Checkbox.", "Populate the authenticated user profiles in the Shiro subject.\n\n@param profiles the linked hashmap of profiles", "return a prepared Update Statement fitting to the given ClassDescriptor", "Read task relationships.", "Lift a Java Func4 to a Scala Function4\n\n@param f the function to lift\n\n@returns the Scala function", "Specify the class represented by this `ClassNode` implements\nan interface specified by the given name\n\n@param name the name of the interface class\n@return this `ClassNode` instance" ]
public Object doGetObjectByIdentity(Identity id) throws PersistenceBrokerException { if (logger.isDebugEnabled()) logger.debug("getObjectByIdentity " + id); // check if object is present in ObjectCache: Object obj = objectCache.lookup(id); // only perform a db lookup if necessary (object not cached yet) if (obj == null) { obj = getDBObject(id); } else { ClassDescriptor cld = getClassDescriptor(obj.getClass()); // if specified in the ClassDescriptor the instance must be refreshed if (cld.isAlwaysRefresh()) { refreshInstance(obj, id, cld); } // now refresh all references checkRefreshRelationships(obj, id, cld); } // Invoke events on PersistenceBrokerAware instances and listeners AFTER_LOOKUP_EVENT.setTarget(obj); fireBrokerEvent(AFTER_LOOKUP_EVENT); AFTER_LOOKUP_EVENT.setTarget(null); //logger.info("RETRIEVING object " + obj); return obj; }
[ "Internal used method to retrieve object based on Identity.\n\n@param id\n@return\n@throws PersistenceBrokerException" ]
[ "Get the default provider used.\n\n@return the default provider, never {@code null}.", "Clears the internal used cache for object materialization.", "Removes a child task.\n\n@param child child task instance", "Cosine interpolation.\n\n@param x1 X1 Value.\n@param x2 X2 Value.\n@param a Value.\n@return Value.", "Utility method used to convert an arbitrary Number into an Integer.\n\n@param value Number instance\n@return Integer instance", "Private helper method which decodes the Stitch error from the body of an HTTP `Response`\nobject. If the error is successfully decoded, this function will throw the error for the end\nuser to eventually consume. If the error cannot be decoded, this is likely not an error from\nthe Stitch server, and this function will return an error message that the calling function\nshould use as the message of a StitchServiceException with an unknown code.", "Sets the global. Does not add the global to the ExecutionResults.\n\n@param identifier\nThe identifier of the global\n@param object\nThe instance to be set as the global.\n@return", "Gets the actual type arguments of a class\n\n@param clazz The class to examine\n@return The type arguments", "Constructs a new FastEvent instance\n@param type the event type\n@param manager the bean manager\n@param notifier the notifier to be used for observer method resolution\n@param qualifiers the event qualifiers\n@return" ]
private void writeAttributeTypes(String name, FieldType[] types) throws IOException { m_writer.writeStartObject(name); for (FieldType field : types) { m_writer.writeNameValuePair(field.name().toLowerCase(), field.getDataType().getValue()); } m_writer.writeEndObject(); }
[ "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write" ]
[ "performs a SQL SELECT statement against RDBMS.\n@param sql the query string.\n@param cld ClassDescriptor providing meta-information.", "Ends interception context if it was previously stated. This is indicated by a local variable with index 0.", "Read all child tasks for a given parent.\n\n@param parentTask parent task", "For test purposes only.", "Required to close the connection reading on the terminal, otherwise\nit can't be interrupted.\n\n@throws InterruptedException", "Set the value for a custom request\n\n@param pathId ID of path\n@param customRequest value of custom request\n@param clientUUID UUID of client", "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "Returns the key value in the given array.\n\n@param keyIndex the index of the scale key", "Register the given object under the package name of the object's class\nwith the given type name.\n\nthis method using the platform mbean server as returned by\nManagementFactory.getPlatformMBeanServer()\n\n@param typeName The name of the type to register\n@param obj The object to register as an mbean" ]
public static Boolean compareSingleClientConfigAvro(String configAvro1, String configAvro2) { Properties props1 = readSingleClientConfigAvro(configAvro1); Properties props2 = readSingleClientConfigAvro(configAvro2); if(props1.equals(props2)) { return true; } else { return false; } }
[ "Compares two avro strings which contains single store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content" ]
[ "Use this API to fetch all the appfwlearningdata resources that are configured on netscaler.\nThis uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources.", "Use this API to fetch statistics of rnatip_stats resource of given name .", "Set the correct day for the date with year and month already fixed.\n@param date the date, where year and month are already correct.", "Most complete output", "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", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient", "Sends a dummy statement to the server to keep the connection alive\n@param connection Connection handle to perform activity on\n@return true if test query worked, false otherwise", "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running", "Clear any current allowed job types and use the given set.\n@param jobTypes the job types to allow" ]
private Set<String> populateTableNames(String url) throws SQLException { Set<String> tableNames = new HashSet<String>(); Connection connection = null; ResultSet rs = null; try { connection = DriverManager.getConnection(url); DatabaseMetaData dmd = connection.getMetaData(); rs = dmd.getTables(null, null, null, null); while (rs.next()) { tableNames.add(rs.getString("TABLE_NAME").toUpperCase()); } } finally { if (rs != null) { rs.close(); } if (connection != null) { connection.close(); } } return tableNames; }
[ "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names" ]
[ "Read the version number.\n\n@param is input stream", "Check invariant.\n\n@param browser The browser.\n@return Whether the condition is satisfied or <code>false</code> when it it isn't or a\n{@link CrawljaxException} occurs.", "Removes the expiration flag.", "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class.", "ChromeCast does not allow you to jump levels too quickly to avoid blowing speakers.\nSetting by increment allows us to easily get the level we want\n\n@param level volume level from 0 to 1 to set\n@throws IOException\n@see <a href=\"https://developers.google.com/cast/docs/design_checklist/sender#sender-control-volume\">sender</a>", "Construct a Access Token from a Flickr Response.\n\n@param response", "Retrieve a boolean field.\n\n@param type field type\n@return field data", "Gets validation errors either as a JSON string, or null if there are no validation errors.\n\n@return the validation error JSON", "Returns a Span that covers all rows beginning with a prefix String parameters will be encoded\nas UTF-8" ]
private static ClassLoader getParentCl() { try { Method m = ClassLoader.class.getMethod("getPlatformClassLoader"); return (ClassLoader) m.invoke(null); } catch (NoSuchMethodException e) { // Java < 9, just use the bootstrap CL. return null; } catch (Exception e) { throw new JqmInitError("Could not fetch Platform Class Loader", e); } }
[ "A helper - in Java 9, the extension CL was renamed to platform CL and hosts all the JDK classes. Before 9, it was useless and we used\nbootstrap CL instead.\n\n@return the base CL to use." ]
[ "Deletes this BoxStoragePolicyAssignment.", "Creates an object instance from the Scala class name\n\n@param className the Scala class name\n@return An Object instance", "Looks up the EJB in the container and executes the method on it\n\n@param self the proxy instance.\n@param method the overridden method declared in the super class or\ninterface.\n@param proceed the forwarder method for invoking the overridden method. It\nis null if the overridden method is abstract or declared in the\ninterface.\n@param args an array of objects containing the values of the arguments\npassed in the method invocation on the proxy instance. If a\nparameter type is a primitive type, the type of the array\nelement is a wrapper class.\n@return the resulting value of the method invocation.\n@throws Throwable if the method invocation fails.", "Create a ModelNode representing the JVM the instance is running on.\n\n@return a ModelNode representing the JVM the instance is running on.\n@throws OperationFailedException", "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Sanity check precondition for above setters", "Parses a single query item for the query facet.\n@param item JSON object of the query item.\n@return the parsed query item, or <code>null</code> if parsing failed.", "Returns the current revision.", "Reads and consumes a number of characters from the underlying reader,\nfilling the byte array provided.\n\n@param holder A byte array which will be filled with bytes read from the underlying reader.\n@throws ProtocolException If a char can't be read into each array element." ]
private void addProperty(XMLStreamWriter writer, String name, Class<?> propertyType, String readMethod, String writeMethod) throws XMLStreamException { if (name.length() != 0) { writer.writeStartElement("property"); // convert property name to .NET style (i.e. first letter uppercase) String propertyName = name.substring(0, 1).toUpperCase() + name.substring(1); writer.writeAttribute("name", propertyName); String type = getTypeString(propertyType); writer.writeAttribute("sig", "()" + type); if (readMethod != null) { writer.writeStartElement("getter"); writer.writeAttribute("name", readMethod); writer.writeAttribute("sig", "()" + type); writer.writeEndElement(); } if (writeMethod != null) { writer.writeStartElement("setter"); writer.writeAttribute("name", writeMethod); writer.writeAttribute("sig", "(" + type + ")V"); writer.writeEndElement(); } writer.writeEndElement(); } }
[ "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException" ]
[ "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", "Replace full request content.\n\n@param requestContentTemplate\nthe request content template\n@param replacementString\nthe replacement string\n@return the string", "Returns a BSON version document representing a new version with a new instance ID, and\nversion counter of zero.\n@return a BsonDocument representing a synchronization version", "Copy the given Collection into a Class array.\nThe Collection must contain Class elements only.\n@param collection the Collection to copy\n@return the Class array ({@code null} if the passed-in\nCollection was {@code null})", "do 'Distinct' operation\n\n@param queryDescriptor descriptor of MongoDB query\n@param collection collection for execute the operation\n@return result iterator\n@see <a href =\"https://docs.mongodb.com/manual/reference/method/db.collection.distinct/\">distinct</a>", "Execute the transactional flow - catch only specified exceptions\n\n@param input Initial data input\n@param classes Exception types to catch\n@return Try that represents either success (with result) or failure (with errors)", "Join N sets.", "Attempts to return the token from cache. If this is not possible because it is expired or was\nnever assigned, a new token is requested and parallel requests will block on retrieving a new\ntoken. As such no guarantee of maximum latency is provided.\n\nTo avoid blocking the token is refreshed before it's expiration, while parallel requests\ncontinue to use the old token.", "Saves the state of this connection to a string so that it can be persisted and restored at a later time.\n\n<p>Note that proxy settings aren't automatically saved or restored. This is mainly due to security concerns\naround persisting proxy authentication details to the state string. If your connection uses a proxy, you will\nhave to manually configure it again after restoring the connection.</p>\n\n@see #restore\n@return the state of this connection." ]
public static lbvserver_servicegroup_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_servicegroup_binding obj = new lbvserver_servicegroup_binding(); obj.set_name(name); lbvserver_servicegroup_binding response[] = (lbvserver_servicegroup_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch lbvserver_servicegroup_binding resources of given name ." ]
[ "Start speech recognizer.\n\n@param speechListener", "static expansion helpers", "Counts the number of lines.\n\n@param str the input string\n@return Returns the number of lines terminated by '\\n' in string", "Refresh the layout element.", "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace", "Adds the word.\n\n@param w the w\n@throws ParseException the parse exception", "When set to true, all items in layout will be considered having the size of the largest child. If false, all items are\nmeasured normally. Disabled by default.\n@param enable true to measure children using the size of the largest child, false - otherwise.", "Parses the provided file, using the given libraryPaths and sourcePaths as context. The libraries may be either\njar files or references to directories containing class files.\n\nThe sourcePaths must be a reference to the top level directory for sources (eg, for a file\nsrc/main/java/org/example/Foo.java, the source path would be src/main/java).\n\nThe wildcard resolver provides a fallback for processing wildcard imports that the underlying parser was unable\nto resolve.", "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField instance" ]
private boolean absoluteBasic(int row) { boolean retval = false; if (row > m_current_row) { try { while (m_current_row < row && getRsAndStmt().m_rs.next()) { m_current_row++; } if (m_current_row == row) { retval = true; } else { setHasCalledCheck(true); setHasNext(false); retval = false; autoReleaseDbResources(); } } catch (Exception ex) { setHasCalledCheck(true); setHasNext(false); retval = false; } } else { logger.info("Your driver does not support advanced JDBC Functionality, " + "you cannot call absolute() with a position < current"); } return retval; }
[ "absolute for basicJDBCSupport\n@param row" ]
[ "Enable a host\n\n@param hostName\n@throws Exception", "Prep for a new connection\n@return if stats are enabled, return the nanoTime when this connection was requested.\n@throws SQLException", "Checks the hour, minute and second are equal.", "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name .", "Convert a SSE to a Stitch SSE\n@param event SSE to convert\n@param decoder decoder for decoding data\n@param <T> type to decode data to\n@return a Stitch server-sent event", "Removes bean from scope.\n\n@param name bean name\n@return previous value", "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", "Acquire the shared 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.", "Closes a Closeable and swallows any exceptions that might occur in the\nprocess.\n\n@param closeable" ]
public QueryBuilder<T, ID> selectColumns(String... columns) { for (String column : columns) { addSelectColumnToList(column); } return this; }
[ "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>" ]
[ "not start with another option name", "Add the extra parameters which are passed as report parameters. The type of the parameter is \"guessed\" from the\nfirst letter of the parameter name.\n\n@param model view model\n@param request servlet request", "Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise", "Adds a function to the end of the token list\n@param function Function which is to be added\n@return The new Token created around function", "Returns the configured extra parameters that should be given to Solr, or the empty string if no parameters are configured.\n@return The configured extra parameters that should be given to Solr, or the empty string if no parameters are configured.", "Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction", "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message", "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.", "Use this API to fetch a appfwglobal_auditnslogpolicy_binding resources." ]