query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static final TimeUnit parseWorkUnits(BigInteger value) { TimeUnit result = TimeUnit.HOURS; if (value != null) { switch (value.intValue()) { case 1: { result = TimeUnit.MINUTES; break; } case 3: { result = TimeUnit.DAYS; break; } case 4: { result = TimeUnit.WEEKS; break; } case 5: { result = TimeUnit.MONTHS; break; } case 7: { result = TimeUnit.YEARS; break; } default: case 2: { result = TimeUnit.HOURS; break; } } } return (result); }
[ "Parse work units.\n\n@param value work units value\n@return TimeUnit instance" ]
[ "Get a log file and last relevant date, and check if the log file is relevant\n@param currentLogFile The log file\n@param lastRelevantDate The last date which files should be keeping since\n@return false if the file should be deleted, true if it does not.", "Old SOAP client uses new SOAP service with the\nredirection to the new endpoint and transformation\non the server side", "Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges", "Create a KnowledgeBuilderConfiguration on which properties can be set. Use\nthe given properties file and ClassLoader - either of which can be null.\n@return\nThe KnowledgeBuilderConfiguration.", "Runs through the log removing segments until the size of the log is at least\nlogRetentionSize bytes in size\n\n@throws IOException", "Issue the database statements to drop the table associated with a class.\n\n<p>\n<b>WARNING:</b> This is [obviously] very destructive and is unrecoverable.\n</p>\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be dropped.\n@param ignoreErrors\nIf set to true then try each statement regardless of {@link SQLException} thrown previously.\n@return The number of statements executed to do so.", "Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.\n\n@param s a Penn TreeBank POS tag.", "The sniffing Loggers are some special Loggers, whose level will be set to TRACE forcedly.\n@param logger", "Get the related tags.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\nThe source tag\n@return A RelatedTagsList object\n@throws FlickrException" ]
public boolean evaluate(Object feature) { // Checks to ensure that the attribute has been set if (attribute == null) { return false; } // Note that this converts the attribute to a string // for comparison. Unlike the math or geometry filters, which // require specific types to function correctly, this filter // using the mandatory string representation in Java // Of course, this does not guarantee a meaningful result, but it // does guarantee a valid result. // LOGGER.finest("pattern: " + pattern); // LOGGER.finest("string: " + attribute.getValue(feature)); // return attribute.getValue(feature).toString().matches(pattern); Object value = attribute.evaluate(feature); if (null == value) { return false; } Matcher matcher = getMatcher(); matcher.reset(value.toString()); return matcher.matches(); }
[ "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." ]
[ "Remove all children that have been added to the owner object of this camera rig; except the\ncamera objects.", "Process the start of this element.\n\n@param attributes The attribute list for this element\n@param namespace the namespace URI of the matching element, or an empty string if the parser is not namespace\naware or the element has no namespace\n@param name the local name if the parser is namespace aware, or just the element name otherwise\n@throws Exception if something goes wrong", "Send JSON representation of given data object to all connections tagged with all give tag labels\n@param data the data object\n@param labels the tag labels", "Returns the timestamp for the time at which the suite finished executing.\nThis is determined by finding the latest end time for each of the individual\ntests in the suite.\n@param suite The suite to find the end time of.\n@return The end time (as a number of milliseconds since 00:00 1st January 1970 UTC).", "Allocate a timestamp", "Initializes the type and validates it", "Flushes all changes to disk.", "Get logs for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return log stream response", "Returns the object pointed by the result-type parameter \"parameters\"\n@param _invocation\n@return" ]
protected static File platformIndependentUriToFile(final URI fileURI) { File file; try { file = new File(fileURI); } catch (IllegalArgumentException e) { if (fileURI.toString().startsWith("file://")) { file = new File(fileURI.toString().substring("file://".length())); } else { throw e; } } return file; }
[ "Convert a url to a file object. No checks are made to see if file exists but there are some hacks that\nare needed to convert uris to files across platforms.\n\n@param fileURI the uri to convert" ]
[ "Returns the expression string required\n\n@param ds\n@return", "Use this API to unset the properties of vridparam resource.\nProperties that need to be unset are specified in args array.", "Retrieves the baseline duration text value.\n\n@param baselineNumber baseline number\n@return baseline duration text value", "Add a new script\n\n@param model\n@param name\n@param script\n@return\n@throws Exception", "Return the basis functions for the regression suitable for this product.\n\n@param fixingDate The condition time.\n@param model The model\n@return The basis functions for the regression suitable for this product.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Returns first resolver that accepts the given resolverId.\nIn case none is found null is returned.\n@param resolverId identifier of the resolver\n@return found resolver or null otherwise", "Producers returned from this method are not validated. Internal use only.", "Auto re-initialize external resourced\nif resources have been already released.", "Get the class name without the qualified package name.\n@param className the className to get the short name for\n@return the class name of the class without the package name\n@throws IllegalArgumentException if the className is empty" ]
public int getGeoPerms() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GEO_PERMS); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } int perm = -1; Element personElement = response.getPayload(); String geoPerms = personElement.getAttribute("geoperms"); try { perm = Integer.parseInt(geoPerms); } catch (NumberFormatException e) { throw new FlickrException("0", "Unable to parse geoPermission"); } return perm; }
[ "Returns the default privacy level for geographic information attached to the user's photos.\n\n@return privacy-level\n@throws FlickrException\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PRIVATE" ]
[ "Read arguments from a file. Newline delimited, UTF-8 encoded. No fanciness to\navoid dependencies.", "It is required that T be Serializable", "Process an individual UDF.\n\n@param udf UDF definition", "Stops all servers.\n\n{@inheritDoc}", "Generic string joining function.\n@param strings Strings to be joined\n@param fixCase does it need to fix word case\n@param withChar char to join strings with.\n@return joined-string", "Append the bounding volume particle positions, times and velocities to the existing mesh\nbefore creating a new scene object with this mesh attached to it.\nAlso, append every created scene object and its creation time to corresponding array lists.\n\n@param particlePositions\n@param particleVelocities\n@param particleTimeStamps", "Converts an object into a tab delimited string with given fields\nRequires the object has public access for the specified fields\n\n@param object Object to convert\n@param delimiter delimiter\n@param fieldNames fieldnames\n@return String representing object", "This produces a canonical string.\n\nRFC 5952 describes canonical representations.\nhttp://en.wikipedia.org/wiki/IPv6_address#Recommended_representation_as_text\nhttp://tools.ietf.org/html/rfc5952", "Sets ID field value.\n\n@param val value" ]
private void readRecord(byte[] buffer, Table table) { //System.out.println(ByteArrayHelper.hexdump(buffer, true, 16, "")); int deletedFlag = getShort(buffer, 0); if (deletedFlag != 0) { Map<String, Object> row = new HashMap<String, Object>(); for (ColumnDefinition column : m_definition.getColumns()) { Object value = column.read(0, buffer); //System.out.println(column.getName() + ": " + value); row.put(column.getName(), value); } table.addRow(m_definition.getPrimaryKeyColumnName(), row); } }
[ "Reads a single record from the table.\n\n@param buffer record data\n@param table parent table" ]
[ "Use this API to fetch nsrpcnode resource of given name .", "For test purposes only.", "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message", "Update the underlying buffer using the short\n\n@param number number to be stored in checksum buffer", "Inserts a marshalled endpoint reference to a given DOM tree rooted by parent.\n@param wsAddr\n@param parent\n@throws ServiceLocatorException", "Infer app name from entry class\n\n@param entryClass\nthe entry class\n@return\napp name inferred from the entry class", "Converts a tab delimited string into an object with given fields\nRequires the object has setXxx functions for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterRegex delimiter regular expression\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Set the model used by the right table.\n\n@param model table model", "Obtains the collection of server groups defined for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
public Where<T, ID> eq(String columnName, Object value) throws SQLException { addClause(new SimpleComparison(columnName, findColumnFieldType(columnName), value, SimpleComparison.EQUAL_TO_OPERATION)); return this; }
[ "Add a '=' clause so the column must be equal to the value." ]
[ "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.", "Use this API to fetch inat resource of given name .", "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Returns a matrix full of ones", "Non-blocking call\n\n@param key\n@param value\n@return", "Retrieves the project finish date. If an explicit finish date has not been\nset, this method calculates the finish date by looking for\nthe latest task finish date.\n\n@return Finish Date", "Updates the template with the specified id.\n\n@param id id of the template to update\n@param options a Map of options to update/add.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value", "Create a Vendor from a Func0" ]
public static <T> T objectify(ObjectMapper mapper, Object source, JavaType targetType) { try { return mapper.readValue(mapper.writeValueAsBytes(source), targetType); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new RuntimeException(e); } }
[ "Converts an object to an instance of the target type.\n\n@param mapper the object mapper\n@param source the source to convert\n@param targetType the target class type\n@return target instance\n@see SquigglyUtils#objectify(ObjectMapper, Object, Class)" ]
[ "Makes a DocumentReaderAndWriter based on\nflags.plainTextReaderAndWriter. Useful for reading in\nuntokenized text documents or reading plain text from the command\nline. An example of a way to use this would be to return a\nedu.stanford.nlp.wordseg.Sighan2005DocumentReaderAndWriter for\nthe Chinese Segmenter.", "Return the number of days between startDate and endDate given the\nspecific daycount convention.\n\n@param startDate The start date given as a {@link org.threeten.bp.LocalDate}.\n@param endDate The end date given as a {@link org.threeten.bp.LocalDate}.\n@param convention A convention string.\n@return The number of days within the given period.", "Get interfaces implemented by clazz\n\n@param clazz\n@return", "calculate distance of two points\n\n@param a\n@param b\n@return", "Use this API to fetch auditsyslogpolicy_systemglobal_binding resources of given name .", "Facade method for operating the Telnet Shell supporting line editing and command\nhistory over a socket.\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Main command handler\n@param input Input stream.\n@param output Output stream.\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Start the chain of execution running.\n\n@throws IllegalStateException\nif the chain of execution has already been started.", "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", "Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be copied.\n@return The copied matrix." ]
private boolean fireEventWait(WebElement webElement, Eventable eventable) throws ElementNotVisibleException, InterruptedException { switch (eventable.getEventType()) { case click: try { webElement.click(); } catch (ElementNotVisibleException e) { throw e; } catch (WebDriverException e) { throwIfConnectionException(e); return false; } break; case hover: LOGGER.info("EventType hover called but this isn't implemented yet"); break; default: LOGGER.info("EventType {} not supported in WebDriver.", eventable.getEventType()); return false; } Thread.sleep(this.crawlWaitEvent); return true; }
[ "Fires the event and waits for a specified time.\n\n@param webElement the element to fire event on.\n@param eventable The HTML event type (onclick, onmouseover, ...).\n@return true if firing event is successful.\n@throws InterruptedException when interrupted during the wait." ]
[ "Extract note text.\n\n@param row task data\n@return note text", "Method to initialize the list.\n\n@param resList a given instance or null\n@return an instance", "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception", "This method is called when double quotes are found as part of\na value. The quotes are escaped by adding a second quote character\nand the entire value is quoted.\n\n@param value text containing quote characters\n@return escaped and quoted text", "Returns the first product found in the vector of calibration products\nwhich matches the given symbol, where symbol is the String set in\nthe calibrationSpecs.\n\n@param symbol A given symbol string.\n@return The product associated with that symbol.", "This method processes any extended attributes associated with a resource.\n\n@param xml MSPDI resource instance\n@param mpx MPX resource instance", "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.", "Add the list with given bundles to the \"Import-Package\" main attribute.\n\n@param importedPackages The list of all packages to add.", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping" ]
public Response getBill(int month, int year) throws RequestException, LocalOperationException { Request request = new Request(this); return new Response(request.get("/bill/" + year + String.format("-%02d", month))); }
[ "Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations." ]
[ "Updates the indices in the index buffer from a Java CharBuffer.\nAll of the entries of the input buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data CharBuffer containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.", "Use this API to expire cacheobject resources.", "Calculates the Black-Scholes option value of an atm call option.\n\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param forward The forward, i.e., the expectation of the index under the measure associated with payoff unit.\n@param payoffUnit The payoff unit, i.e., the discount factor or the anuity associated with the payoff.\n@return Returns the value of a European at-the-money call option under the Black-Scholes model", "returns an Array with an Objects PK VALUES, with any java-to-sql\nFieldConversion applied. If the Object is a Proxy or a VirtualProxy NO\nconversion is necessary.\n\n@param objectOrProxy\n@return Object[]\n@throws PersistenceBrokerException", "Carry out any post-processing required to tidy up\nthe data read from the database.", "Returns a row matrix which contains all the elements in A which are flagged as true in 'marked'\n\n@param A Input matrix\n@param marked Input matrix marking elements in A\n@param output Storage for output row vector. Can be null. Will be reshaped.\n@return Row vector with marked elements", "SetLoop will either set the GVRNodeAnimation's Repeat Mode to REPEATED if loop is true.\nor it will set the GVRNodeAnimation's Repeat Mode to ONCE if loop is false\nif loop is set to TRUE, when it was previously FALSE, then start the Animation.\n@param doLoop\n@param gvrContext", "Returns all base types.\n\n@return An iterator of the base types" ]
@Override public String toCanonicalString() { String result; if(hasNoStringCache() || (result = stringCache.canonicalString) == null) { stringCache.canonicalString = result = toNormalizedString(IPv6StringCache.canonicalParams); } return result; }
[ "This produces a canonical string.\n\nRFC 5952 describes canonical representations.\nhttp://en.wikipedia.org/wiki/IPv6_address#Recommended_representation_as_text\nhttp://tools.ietf.org/html/rfc5952" ]
[ "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", "Print work units.\n\n@param value TimeUnit instance\n@return work units value", "Parameter validity check.", "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "Returns the value of the identified field as a Long.\n@param fieldName the name of the field\n@return the value of the field as a Long\n@throws FqlException if the field cannot be expressed as an Long", "Extract resource data.", "Generate a new check box with the provided date and check state.\n@param date date for the check box.\n@param checkState the initial check state.\n@return the created check box", "Add a cause to the backtrace.\n\n@param cause\nthe cause\n@param bTrace\nthe backtrace list", "Whether the address has the well-known prefix for IPv4 translatable addresses as in rfc 6052 and 6144\n@return" ]
private void started(final ProcessorGraphNode processorGraphNode) { this.processorLock.lock(); try { this.runningProcessors.put(processorGraphNode.getProcessor(), null); } finally { this.processorLock.unlock(); } }
[ "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started." ]
[ "Use this API to fetch all the ntpserver resources that are configured on netscaler.", "Switches from a sparse to dense matrix", "Adds all options from the passed container to this container.\n\n@param container a container with options to add", "This method is currently in use only by the SvnCoordinator", "Returns a CmsSolrQuery representation of this class.\n@param cms the openCms object.\n@return CmsSolrQuery representation of this class.", "Creates a tar file entry with defaults parameters.\n@param fileName the entry name\n@return file entry with reasonable defaults", "Checks whether the given set of properties is available.\n\n@param keys the keys to check\n@return true if all properties are available, false otherwise", "Print a day.\n\n@param day Day instance\n@return day value", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}" ]
public PreparedStatement getDeleteStatement(ClassDescriptor cld) throws PersistenceBrokerSQLException, PersistenceBrokerException { try { return cld.getStatementsForClass(m_conMan).getDeleteStmt(m_conMan.getConnection()); } catch (SQLException e) { throw new PersistenceBrokerSQLException("Could not build statement ask for", e); } catch (LookupException e) { throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e); } }
[ "return a prepared DELETE Statement fitting for the given ClassDescriptor" ]
[ "Read pattern information from the provided JSON object.\n@param patternJson the JSON object containing the pattern information.", "all objects in list1 that are not in list2\n\n@param <T>\n@param list1\nFirst collection\n@param list2\nSecond collection\n@return The collection difference list1 - list2", "Send a DEBUG log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param pattern The message pattern\n@return", "Checks the existence of the directory. If it does not exist, the method creates it.\n\n@param dir the directory to check.\n@throws IOException if fails.", "Search for photos which match the given search parameters.\n\n@param params\nThe search parameters\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return A PhotoList\n@throws FlickrException", "Get the art available for all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the album art associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the ArtFinder is not running", "For the DC to check whether an operation should be ignored on the slave, if the slave is set up to ignore config not relevant to it\n\n@param domainResource the domain root resource\n@param serverConfigs the server configs the slave is known to have\n@param pathAddress the address of the operation to check if should be ignored or not", "Return true if the expression is a constructor call on a class that matches the supplied.\n@param expression - the expression\n@param classNamePattern - the possible List of class names\n@return as described", "Roll the java.util.Date forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards." ]
public float getColorR(int vertex, int colorset) { if (!hasColors(colorset)) { throw new IllegalStateException("mesh has no colorset " + colorset); } checkVertexIndexBounds(vertex); /* bound checks for colorset are done by java for us */ return m_colorsets[colorset].getFloat(vertex * 4 * SIZEOF_FLOAT); }
[ "Returns the red color component of a color from a vertex color set.\n\n@param vertex the vertex index\n@param colorset the color set\n@return the red color component" ]
[ "Comparator against other element.\n\n@param otherElement The other element.\n@param logging Whether to do logging.\n@return Whether the elements are equal.", "Called recursively to renumber child task IDs.\n\n@param parentTask parent task instance\n@param currentID current task ID\n@return updated current task ID", "Matches an array value if it contains all the elements of the argument array\n@param rhs The arguments\n@return PredicateExpression: $all rhs", "Use this API to fetch vrid_nsip6_binding resources of given name .", "Gets all data set values.\n\n@param dataSet\nIIM record and dataset code (See constants in {@link IIM})\n@return data set value\n@throws SerializationException\nif value can't be deserialized from binary representation", "Build a valid datastore URL.", "Internal method used to test for the existence of a relationship\nwith a task.\n\n@param task target task\n@param list list of relationships\n@return boolean flag", "Converts the key to the format in which it is stored for searching\n\n@param key Byte array of the key\n@return The format stored in the index file", "Counts the number of documents in the collection.\n\n@return a task containing the number of documents in the collection" ]
public static CurrencySymbolPosition getSymbolPosition(int value) { CurrencySymbolPosition result; switch (value) { case 1: { result = CurrencySymbolPosition.AFTER; break; } case 2: { result = CurrencySymbolPosition.BEFORE_WITH_SPACE; break; } case 3: { result = CurrencySymbolPosition.AFTER_WITH_SPACE; break; } case 0: default: { result = CurrencySymbolPosition.BEFORE; break; } } return (result); }
[ "This method maps the currency symbol position from the\nrepresentation used in the MPP file to the representation\nused by MPX.\n\n@param value MPP symbol position\n@return MPX symbol position" ]
[ "Use this API to fetch a vpnglobal_appcontroller_binding resources.", "Retrieves the index of a cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry index", "Returns the full record for a single team.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Calculates the world matrix based on the local matrix.", "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException", "Export the modules that should be checked in into git.", "Return a new File object based on the baseDir and the segments.\n\nThis method does not perform any operation on the file system.", "Use this API to add dnssuffix.", "Reset the Where object so it can be re-used." ]
public static synchronized void unregister(final String serviceName, final Callable<Class< ? >> factory) { if ( serviceName == null ) { throw new IllegalArgumentException( "serviceName cannot be null" ); } if ( factories != null ) { List<Callable<Class< ? >>> l = factories.get( serviceName ); if ( l != null ) { l.remove( factory ); } } }
[ "Removes the given service provider factory from the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>" ]
[ "Read an element which contains only a single boolean attribute.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@return the boolean value\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements.", "Signal that we are about to close the channel. This will not have any affect on the underlying channel, however\nprevent setting a new channel.\n\n@return whether the closing state was set successfully", "Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved.", "Copy new grayscale data to the GPU texture. This one is also safe even\nin a non-GL thread. An updateGPU request on a non-GL thread will\nbe forwarded to the GL thread and be executed before main rendering happens.\n\nBe aware that updating a texture will affect any and all\n{@linkplain GVRMaterial materials} and/or post effects that use the texture!\n@param width width of grayscale image\n@param height height of grayscale image\n@param grayscaleData A byte array containing grayscale data\n\n@since 1.6.3", "Helper function to create JsonArray from collection.\n\n@param values collection of values to convert to JsonArray\n@return JsonArray with collection values", "Assigns this retention policy to a metadata template, optionally with certain field values.\n@param templateID the ID of the metadata template to apply to.\n@param fieldFilters optional field value filters.\n@return info about the created assignment.", "Convenience method for setting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field to set.\n@param value\nValue to which to set the field.", "Compute \"sent\" date\n\n@param msg Message to take sent date from. May be null to use default\n@param defaultVal Default if sent date is not present\n@return Sent date or now if no date could be found", "Somewhat ad-hoc list of only greek letters that bio people use, partly\nto avoid false positives on short ones.\n@param s String to check for Greek\n@return true iff there is a greek lette embedded somewhere in the String" ]
private void initDefaultScopeType(EnhancedAnnotation<T> annotatedAnnotation) { Set<Annotation> scopeTypes = new HashSet<Annotation>(); scopeTypes.addAll(annotatedAnnotation.getMetaAnnotations(Scope.class)); scopeTypes.addAll(annotatedAnnotation.getMetaAnnotations(NormalScope.class)); if (scopeTypes.size() > 1) { throw MetadataLogger.LOG.multipleScopes(annotatedAnnotation); } else if (scopeTypes.size() == 1) { this.defaultScopeType = scopeTypes.iterator().next(); } }
[ "Initializes the default scope type" ]
[ "Parses the supplied text and converts it to a Long\ncorresponding to that midnight in UTC on the specified date.\n\n@return null if it fails to parsing using the specified\nDateTimeFormat", "Indicates if a set of types are all proxyable\n\n@param types The types to test\n@return True if proxyable, false otherwise", "Use this API to add linkset.", "Returns a color for a given absolute number that is to be shown on the\nmap.\n\n@param value\n@return", "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Use this API to fetch appfwprofile_csrftag_binding resources of given name .", "Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.\n@param className\n@param resourceLoader\n@return the loaded class or null if the given class cannot be loaded", "Removes an element from the observation matrix.\n\n@param index which element is to be removed", "Wait for the read side to close. Used when the writer needs to know when\nthe reader finishes consuming a message." ]
@Override public int add(DownloadRequest request) throws IllegalArgumentException { checkReleased("add(...) called on a released ThinDownloadManager."); if (request == null) { throw new IllegalArgumentException("DownloadRequest cannot be null"); } return mRequestQueue.add(request); }
[ "Add a new download. The download will start automatically once the download manager is\nready to execute it and connectivity is available.\n\n@param request the parameters specifying this download\n@return an ID for the download, unique across the application. This ID is used to make future\ncalls related to this download.\n@throws IllegalArgumentException" ]
[ "Maps a single prefix, uri pair as namespace.\n\n@param prefix the prefix to use\n@param namespaceURI the URI to use\n@throws IllegalArgumentException if prefix or namespaceURI is null", "Use this API to fetch filtered set of gslbservice resources.\nset the filter parameter values in filtervalue object.", "iteration not synchronized", "Return tabular data\n@param labels Labels array\n@param data Data bidimensional array\n@param padding Total space between fields\n@return String", "With the Batik SVG library it is only possible to create new SVG graphics, but you can not modify an\nexisting graphic. So, we are loading the SVG file as plain XML and doing the modifications by hand.", "Add all elements in the iterator to the collection.\n\n@param target\n@param iterator\n@return true if the target was modified, false otherwise", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid", "Return the single class name from a class-name string.", "Removes the specified entry point\n\n@param controlPoint The entry point" ]
public ManageableCollection getCollectionByQuery(Class collectionClass, Query query, boolean lazy) throws PersistenceBrokerException { ManageableCollection result; try { // BRJ: return empty Collection for null query if (query == null) { result = (ManageableCollection)collectionClass.newInstance(); } else { if (lazy) { result = pb.getProxyFactory().createCollectionProxy(pb.getPBKey(), query, collectionClass); } else { result = getCollectionByQuery(collectionClass, query.getSearchClass(), query); } } return result; } catch (Exception e) { if(e instanceof PersistenceBrokerException) { throw (PersistenceBrokerException) e; } else { throw new PersistenceBrokerException(e); } } }
[ "retrieve a collection of type collectionClass matching the Query query\nif lazy = true return a CollectionProxy\n\n@param collectionClass\n@param query\n@param lazy\n@return ManageableCollection\n@throws PersistenceBrokerException" ]
[ "Remove control from the control bar. Size of control bar is updated based on new number of\ncontrols.\n@param name name of the control to remove", "This method inserts a name value pair into internal storage.\n\n@param field task field\n@param value attribute value", "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", "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed", "Check that a list allowing null and empty item contains at least one element that is\nnot blank.\n@param list can't be null\n@return", "Returns a JRDesignExpression that points to the main report connection\n\n@return", "select a use case.", "Initialize all components of this URI builder with the components of the given URI.\n@param uri the URI\n@return this UriComponentsBuilder", "Sets the specified many-to-one attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
private IndexedContainer createContainerForDescriptorEditing() { IndexedContainer container = new IndexedContainer(); // create properties container.addContainerProperty(TableProperty.KEY, String.class, ""); container.addContainerProperty(TableProperty.DESCRIPTION, String.class, ""); container.addContainerProperty(TableProperty.DEFAULT, String.class, ""); // add entries CmsXmlContentValueSequence messages = m_descContent.getValueSequence( "/" + Descriptor.N_MESSAGE, Descriptor.LOCALE); for (int i = 0; i < messages.getElementCount(); i++) { String prefix = messages.getValue(i).getPath() + "/"; Object itemId = container.addItem(); Item item = container.getItem(itemId); String key = m_descContent.getValue(prefix + Descriptor.N_KEY, Descriptor.LOCALE).getStringValue(m_cms); item.getItemProperty(TableProperty.KEY).setValue(key); item.getItemProperty(TableProperty.DESCRIPTION).setValue( m_descContent.getValue(prefix + Descriptor.N_DESCRIPTION, Descriptor.LOCALE).getStringValue(m_cms)); item.getItemProperty(TableProperty.DEFAULT).setValue( m_descContent.getValue(prefix + Descriptor.N_DEFAULT, Descriptor.LOCALE).getStringValue(m_cms)); } return container; }
[ "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor." ]
[ "When the descriptor was added while editing, but the change was not saved, it has to be removed\nwhen the editor is closed.\n@throws CmsException thrown when deleting the descriptor resource fails", "Begin writing a named object attribute.\n\n@param name attribute name", "Sets the quaternion of the keyframe.", "Creates the string mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param position\nthe position\n@throws IOException\nSignals that an I/O exception has occurred.", "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)", "Persists the current set of versions buffered for the current key into\nstorage, using the multiVersionPut api\n\nNOTE: Now, it could be that the stream broke off and has more pending\nversions. For now, we simply commit what we have to disk. A better design\nwould rely on in-stream markers to do the flushing to storage.", "Delete the first n items from the list\n\n@param newStart the logsegment who's index smaller than newStart will be deleted.\n@return the deleted segment", "Access all currencies known.\n\n@param providers the (optional) specification of providers to consider.\n@return the list of known currencies, never null.", "Use this API to export appfwlearningdata." ]
public final Jar setAttribute(String section, String name, String value) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Manifest cannot be modified after entries are added."); Attributes attr = getManifest().getAttributes(section); if (attr == null) { attr = new Attributes(); getManifest().getEntries().put(section, attr); } attr.putValue(name, value); return this; }
[ "Sets an attribute in a non-main section of the manifest.\n\n@param section the section's name\n@param name the attribute's name\n@param value the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods." ]
[ "Gets a list of AssignmentRows based on the current Assignments\n@return", "read the file as a list of text lines", "Removes the given value to the set.\n\n@return true if the value was actually removed", "Reads a row of a CSV file and populates the bean, using the supplied name mapping to map column values to the\nappropriate fields. If processors are supplied then they are used, otherwise the raw String values will be used.\n\n@param bean\nthe bean to populate\n@param nameMapping\nthe name mapping array\n@param processors\nthe (optional) cell processors\n@return the populated bean, or null if EOF was reached\n@throws IllegalArgumentException\nif nameMapping.length != number of CSV columns read\n@throws IOException\nif an I/O error occurred\n@throws NullPointerException\nif bean or nameMapping are null\n@throws SuperCsvConstraintViolationException\nif a CellProcessor constraint failed\n@throws SuperCsvException\nif there was a general exception while reading/processing\n@throws SuperCsvReflectionException\nif there was an reflection exception while mapping the values to the bean", "Used to create a new finite retention policy with optional parameters.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@param optionalParams the optional parameters.\n@return the created retention policy's info.", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific date attributes to the default values\nfor the new locale.\n\n@param locale new locale", "Write 'properties' map to given log in given level - with pipe separator between each entry\nWrite exception stack trace to 'logger' in 'error' level, if not empty\n@param logger\n@param level - of logging", "Initialization that parses the String to a JSON object.\n@param configString The JSON as string.\n@param baseConfig The optional basic search configuration to overwrite (partly) by the JSON configuration.\n@throws JSONException thrown if parsing fails.", "note that for read from file, this will just load all to memory. not fit\nif need to read a very large file. However for getting the host name.\nnormally it is fine.\n\nfor reading large file, should use iostream.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the content from path\n@throws IOException\nSignals that an I/O exception has occurred." ]
public AdminClient checkout() { if (isClosed.get()) { throw new IllegalStateException("Pool is closing"); } AdminClient client; // Try to get one from the Cache. while ((client = clientCache.poll()) != null) { if (!client.isClusterModified()) { return client; } else { // Cluster is Modified, after the AdminClient is created. Close it client.close(); } } // None is available, create new one. return createAdminClient(); }
[ "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" ]
[ "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array.", "Answer the SQL-Clause for a SelectionCriteria\nIf the Criteria references a class with extents an OR-Clause is\nadded for each extent\n@param c SelectionCriteria", "Returns new instance of OptionalValue with given key and value\n@param key resource key of the created value\n@param value wrapped object\n@param <T> type of the wrapped object\n@return given object wrapped in OptionalValue with given key", "Returns the ReportModel with given name.", "Remove a custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Reports that a node is resolved hence other nodes depends on it can consume it.\n\n@param completed the node ready to be consumed", "Merge this ExecutionStatistics with all the statistics created within the child threads. All the child threads had to be created using Windup-specific\nThreadFactory in order to contain a reference to the parent thread.", "Returns true if the input is a vector\n@param a A matrix or vector\n@return true if it's a vector. Column or row.", "Sends a request to the API with the given parameters and the given\nrequest method and returns the result string. It automatically fills the\ncookie map with cookies in the result header after the request.\n\nWarning: You probably want to use ApiConnection.sendJsonRequest\nthat execute the request using JSON content format,\nthrows the errors and logs the warnings.\n\n@param requestMethod\neither POST or GET\n@param parameters\nMaps parameter keys to values. Out of this map the function\nwill create a query string for the request.\n@return API result\n@throws IOException" ]
public final ZoomToFeatures copy() { ZoomToFeatures obj = new ZoomToFeatures(); obj.zoomType = this.zoomType; obj.minScale = this.minScale; obj.minMargin = this.minMargin; return obj; }
[ "Make a copy." ]
[ "Get an extent aware Iterator based on the Query\n\n@param query\n@param cld the ClassDescriptor\n@return OJBIterator", "Returns the DBCP DataSource for the specified connection descriptor,\nafter creating a new DataSource if needed.\n@param jcd the descriptor for which to return a DataSource\n@return a DataSource, after creating a new pool if needed.\nGuaranteed to never be null.\n@throws LookupException if pool is not in cache and cannot be created", "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted.", "Generates a torque schema for the model.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"", "Retrieve and validate the key from the REST request.\n\n@return true if present, false if missing", "Returns the curve resulting from the local linear regression with discrete kernel.\n\n@return The regression curve.", "Set the color resources used in the progress animation from color resources.\nThe first color will also be the color of the bar that grows in response\nto a user swipe gesture.\n\n@param colorResIds", "Use this API to fetch all the vridparam resources that are configured on netscaler.", "Generate the next available field for a user defined field.\n\n@param <E> field type class\n@param clazz class of the desired field enum\n@param type user defined field type.\n@return field of specified type" ]
public static BoxAPIConnection getTransactionConnection(String accessToken, String scope) { return BoxTransactionalAPIConnection.getTransactionConnection(accessToken, scope, null); }
[ "Request a scoped transactional token.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@return a BoxAPIConnection which can be used to perform transactional requests." ]
[ "Get the value for a particular configuration property\n\n@param name - name of the property\n@return The first value encountered or null", "Returns the bounding box of the vertices.\n@param corners destination array to get corners of bounding box.\nThe first three entries are the minimum X,Y,Z values\nand the next three are the maximum X,Y,Z.\n@return true if bounds are not empty, false if empty (no vertices)", "Creates a new remote proxy controller using an existing channel.\n\n@param channelAssociation the channel association\n@param pathAddress the address within the model of the created proxy controller\n@param addressTranslator the translator to use translating the address for the remote proxy\n@return the proxy controller\n\n@deprecated only present for test case use", "Sets top and bottom padding for all cells in the row.\n@param padding new padding for top and bottom, ignored if smaller than 0\n@return this to allow chaining", "Add profile to database, return collection of profile data. Called when 'enter' is hit in the UI\ninstead of 'submit' button\n\n@param model\n@param name\n@return\n@throws Exception", "Build a Dataset from some data.\n\n@param oldData This {@link Dataset} represents data for which we which to\nsome features, specifically those features not in the {@link edu.stanford.nlp.util.Index}\ngoodFeatures.\n@param goodFeatures An {@link edu.stanford.nlp.util.Index} of features we wish to retain.\n@return A new {@link Dataset} wheres each datapoint contains only features\nwhich were in goodFeatures.", "Remove all children that have been added to the owner object of this camera rig; except the\ncamera objects.", "Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.\n@param other\n@return", "Get a property as a boolean or default value.\n\n@param key the property name\n@param defaultValue the default" ]
private String commaSeparate(Collection<String> strings) { StringBuilder buffer = new StringBuilder(); Iterator<String> iterator = strings.iterator(); while (iterator.hasNext()) { String string = iterator.next(); buffer.append(string); if (iterator.hasNext()) { buffer.append(", "); } } return buffer.toString(); }
[ "Takes a list of Strings and combines them into a single comma-separated\nString.\n@param strings The Strings to combine.\n@return The combined, comma-separated, String." ]
[ "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.", "Use this API to fetch all the vpath resources that are configured on netscaler.", "Create the index file that sets up the frameset.\n@param outputDirectory The target directory for the generated file(s).", "Handle a value change.\n@param propertyId the column in which the value has changed.", "returns the zero argument constructor for the class represented by this class descriptor\nor null if a zero argument constructor does not exist. If the zero argument constructor\nfor this class is not public it is made accessible before being returned.", "Fancy print without a space added to positive numbers", "Parse duration represented as an arbitrary fraction of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@param factor required fraction of a minute\n@return Duration instance", "Specify additional query parameters to be passed to the filter function.\n\n@param queryParams map of key-value parameters\n@return this Replication instance to set more options or trigger the replication", "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task" ]
public void write(Configuration config) throws IOException { pp.startDocument(); pp.startElement("duke", null); // FIXME: here we should write the objects, but that's not // possible with the current API. we don't need that for the // genetic algorithm at the moment, but it would be useful. pp.startElement("schema", null); writeElement("threshold", "" + config.getThreshold()); if (config.getMaybeThreshold() != 0.0) writeElement("maybe-threshold", "" + config.getMaybeThreshold()); for (Property p : config.getProperties()) writeProperty(p); pp.endElement("schema"); String dbclass = config.getDatabase(false).getClass().getName(); AttributeListImpl atts = new AttributeListImpl(); atts.addAttribute("class", "CDATA", dbclass); pp.startElement("database", atts); pp.endElement("database"); if (config.isDeduplicationMode()) for (DataSource src : config.getDataSources()) writeDataSource(src); else { pp.startElement("group", null); for (DataSource src : config.getDataSources(1)) writeDataSource(src); pp.endElement("group"); pp.startElement("group", null); for (DataSource src : config.getDataSources(2)) writeDataSource(src); pp.endElement("group"); } pp.endElement("duke"); pp.endDocument(); }
[ "Writes the given configuration to the given file." ]
[ "Validate some of the properties of this layer.", "Handle value change event on the individual dates list.\n@param event the change event.", "Injects EJBs and other EE resources.\n\n@param resourceInjectionsHierarchy\n@param beanInstance\n@param ctx", "Adds two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the sum of specified complex numbers.", "Set the main attribute \"Bundle-Activator\" to the given value.\n\n@param bundleActivator The new value", "Provides a type-specific Meta class for the given TinyType.\n\n@param <T> the TinyType class type\n@param candidate the TinyType class to obtain a Meta for\n@return a Meta implementation suitable for the candidate\n@throws IllegalArgumentException for null or a non-TinyType", "Converts an XML file to an object.\n\n@param fileName The filename where to save it to.\n@return The object.\n@throws FileNotFoundException On error.", "Use this API to fetch snmpalarm resources of given names .", "Renders the document to the specified output stream." ]
public static int getMpxField(int value) { int result = 0; if (value >= 0 && value < MPXJ_MPX_ARRAY.length) { result = MPXJ_MPX_ARRAY[value]; } return (result); }
[ "Retrieve the integer value used to represent a task field in an\nMPX file.\n\n@param value MPXJ task field value\n@return MPX field value" ]
[ "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", "Invalidate layout setup.", "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id", "Add a new script\n\n@param model\n@param name\n@param script\n@return\n@throws Exception", "Checks constraints on this model.\n\n@param checkLevel The amount of checks to perform\n@throws ConstraintException If a constraint has been violated", "Gets a list of AssignmentRows based on the current Assignments\n@return", "Reset hard on HEAD.\n\n@throws GitAPIException", "Write the given long value as a 4 byte unsigned integer. Overflow is\nignored.\n\n@param buffer The buffer to write to\n@param index The position in the buffer at which to begin writing\n@param value The value to write", "Run a task periodically and indefinitely.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@return An interface that lets you query the status; cancel; or\nreschedule the event." ]
public static String make512Safe(StringBuffer input, String newline) { StringBuilder result = new StringBuilder(); String content = input.toString(); String rest = content; while (!rest.isEmpty()) { if (rest.contains("\n")) { String line = rest.substring(0, rest.indexOf("\n")); rest = rest.substring(rest.indexOf("\n") + 1); if (line.length() > 1 && line.charAt(line.length() - 1) == '\r') line = line.substring(0, line.length() - 1); append512Safe(line, result, newline); } else { append512Safe(rest, result, newline); break; } } return result.toString(); }
[ "Return a string that ensures that no line is longer then 512 characters\nand lines are broken according to manifest specification.\n\n@param input The buffer containing the content that should be made safe\n@param newline The string to use to create newlines (usually \"\\n\" or\n\"\\r\\n\")\n@return The string with no longer lines then 512, ready to be read again\nby {@link MergeableManifest2}." ]
[ "Adds the provided map of key-value pairs as a new row in the table represented by this DataSet.\n\n@param map the key (column-name), value pairs to add as a new row\n@throws SQLException if a database error occurs", "Handle a whole day change event.\n@param event the change event.", "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "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.", "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", "Only return tools with a name matching this partial string\n@param searchTerm Tool name to search for\n@return This object to allow adding more options", "Entry point with no system exit", "Recursively update parent task dates.\n\n@param parentTask parent task", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name" ]
private static float angleDeg(final float ax, final float ay, final float bx, final float by) { final double angleRad = Math.atan2(ay - by, ax - bx); double angle = Math.toDegrees(angleRad); if (angleRad < 0) { angle += 360; } return (float) angle; }
[ "Returns angle in degrees between two points\n\n@param ax x of the point 1\n@param ay y of the point 1\n@param bx x of the point 2\n@param by y of the point 2\n@return angle in degrees between two points" ]
[ "This is the main entry point used to convert the internal representation\nof timephased baseline work into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param work timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels.", "Queues a Runnable to be run on the main thread on the next iteration of\nthe messaging loop. This is handy when code running on the main thread\nneeds to run something else on the main thread, but only after the\ncurrent code has finished executing.\n\n@param r\nThe {@link Runnable} to run on the main thread.\n@return Returns {@code true} if the Runnable was successfully placed in\nthe Looper's message queue.", "Stops the background data synchronization thread and releases the local client.", "The documentation for InputStream.skip indicates that it can bail out early, and not skip\nthe requested number of bytes. I've encountered this in practice, hence this helper method.\n\n@param stream InputStream instance\n@param skip number of bytes to skip", "Adds a new step to the list of steps.\n\n@param name Name of the step to add.\n@param robot The name of the robot ot use with the step.\n@param options extra options required for the step.", "Return the number of rows affected.", "Returns the value of the identified field as a Float.\n@param fieldName the name of the field\n@return the value of the field as a Float\n@throws FqlException if the field cannot be expressed as an Float", "This method dumps the entire contents of a file to an output\nprint writer as ascii data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors" ]
private int getPositiveInteger(String number) { try { return Math.max(0, Integer.parseInt(number)); } catch (NumberFormatException e) { return 0; } }
[ "Gets the positive integer.\n\n@param number the number\n@return the positive integer" ]
[ "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.", "Returns a flag represented as a String, indicating if\nthe supplied day is a working day.\n\n@param mpxjCalendar MPXJ ProjectCalendar instance\n@param day Day instance\n@return boolean flag as a string", "The keywords to include in the PDF metadata.\n\n@param keywords the keywords of the PDF.", "Adds the provided map of key-value pairs as a new row in the table represented by this DataSet.\n\n@param map the key (column-name), value pairs to add as a new row\n@throws SQLException if a database error occurs", "Converts days of the week into a bit field.\n\n@param data recurring data\n@return bit field", "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "Converts this file into a resource name on the classpath by cutting of the file path\nto the classpath root.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param file The file.\n@return The resource name on the classpath.", "Access all of the elements of the collection that evaluate to true for the\nprovided query predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tAn iterator used to iterate over the elements that evaluated true for the predicate.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Given a cluster and a node id checks if the node exists\n\n@param nodeId The node id to search for\n@return True if cluster contains the node id, else false" ]
public void setVariable(String name, Object value) { if (variables == null) variables = new LinkedHashMap(); variables.put(name, value); }
[ "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable" ]
[ "Use this API to fetch statistics of cmppolicy_stats resource of given name .", "Creates a new ServerDetails object for deployer, this will take URL and name from the oldDeployer ServerDetails", "Invoke to tell listeners that an step started event processed", "Retrieve a node list based on an XPath expression.\n\n@param document XML document to process\n@param expression compiled XPath expression\n@return node list", "Retrieve the number of minutes per month for this calendar.\n\n@return minutes per month", "Get FieldDescriptor from joined superclass.", "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository", "Make all elements of a String array upper case.\n@param strings string array, may contain null item but can't be null\n@return array containing all provided elements upper case", "Computes the p=2 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm." ]
public RandomVariable[] getParameter() { double[] parameterAsDouble = this.getParameterAsDouble(); RandomVariable[] parameter = new RandomVariable[parameterAsDouble.length]; for(int i=0; i<parameter.length; i++) { parameter[i] = new Scalar(parameterAsDouble[i]); } return parameter; }
[ "Get the parameters of determining this parametric\ncovariance model. The parameters are usually free parameters\nwhich may be used in calibration.\n\n@return Parameter vector." ]
[ "Processes an anonymous field definition specified at the class level.\n\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"true,false\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[email protected] name=\"conversion\" optional=\"true\" description=\"The fully qualified name of the\nconversion for the field\"\[email protected] name=\"default-fetch\" optional=\"true\" description=\"The default-fetch setting\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the field\"\[email protected] name=\"id\" optional=\"true\" description=\"The position of the field in the class\ndescriptor\"\[email protected] name=\"indexed\" optional=\"true\" description=\"Whether the field is indexed\"\nvalues=\"true,false\"\[email protected] name=\"jdbc-type\" optional=\"true\" description=\"The jdbc type of the column\"\[email protected] name=\"length\" optional=\"true\" description=\"The length of the column\"\[email protected] name=\"locking\" optional=\"true\" description=\"Whether the field supports locking\"\nvalues=\"true,false\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the field\"\[email protected] name=\"nullable\" optional=\"true\" description=\"Whether the field is nullable\"\nvalues=\"true,false\"\[email protected] name=\"precision\" optional=\"true\" description=\"The precision of the column\"\[email protected] name=\"primarykey\" optional=\"true\" description=\"Whether the field is a primarykey\"\nvalues=\"true,false\"\[email protected] name=\"scale\" optional=\"true\" description=\"The scale of the column\"\[email protected] name=\"sequence-name\" optional=\"true\" description=\"The name of the sequence for\nincrementing the field\"\[email protected] name=\"table\" optional=\"true\" description=\"The table of the field (not implemented\nyet)\"\[email protected] name=\"update-lock\" optional=\"true\" description=\"Can be set to false if the persistent attribute is\nused for optimistic locking AND the dbms should update the lock column itself (default is true). Can only be set for\nTIMESTAMP and INTEGER columns\" values=\"true,false\"", "Ask the specified player for a Track menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the track menu\n\n@throws Exception if there is a problem obtaining the menu", "Returns the right string representation of the effort level based on given number of points.", "A convenience method for creating an immutable sorted map.\n\n@param self a SortedMap\n@return an immutable SortedMap\n@see java.util.Collections#unmodifiableSortedMap(java.util.SortedMap)\n@since 1.0", "Reads all text of the XML tag and returns it as a String.\nAssumes that a '<' character has already been read.\n\n@param r The reader to read from\n@return The String representing the tag, or null if one couldn't be read\n(i.e., EOF). The returned item is a complete tag including angle\nbrackets, such as <code>&lt;TXT&gt;</code>", "Return the equivalence class of the argument. If the argument is not contained in\nand equivalence class, then an empty string is returned.\n\n@param punc\n@return The class name if found. Otherwise, an empty string.", "Specify the class represented by this `ClassNode` is annotated\nby an annotation class specified by the name\n@param name the name of the annotation class\n@return this `ClassNode` instance", "Caches the results of radix to the given power.\n\n@param radix\n@param power\n@return", "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly" ]
public GVRAnimator findAnimation(String name) { for (GVRAnimator anim : mAnimations) { if (name.equals(anim.getName())) { return anim; } } return null; }
[ "Find the animation associated with this avatar with the given name.\n@param name name of animation to look for\n@return {@link GVRAnimator} animation found or null if none with that name" ]
[ "Show a toast-like message for the specified duration\n\n@param message\n@param duration in seconds", "Bhattacharyya distance between two normalized histograms.\n\n@param histogram1 Normalized histogram.\n@param histogram2 Normalized histogram.\n@return The Bhattacharyya distance between the two histograms.", "Retrieves the amount of working time represented by\na calendar exception.\n\n@param exception calendar exception\n@return length of time in milliseconds", "Starts the enforcer.", "Sets this matrix equal to the matrix encoded in the array.\n\n@param numRows The number of rows.\n@param numCols The number of columns.\n@param rowMajor If the array is encoded in a row-major or a column-major format.\n@param data The formatted 1D array. Not modified.", "Sets the specified float attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Use this API to add route6.", "Parameter validity check.", "Use this API to update responderpolicy resources." ]
public ReferrerList getPhotostreamReferrers(Date date, String domain, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTOSTREAM_REFERRERS, domain, null, null, date, perPage, page); }
[ "Get a list of referrers from a given domain to a user's photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamReferrers.html\"" ]
[ "Move this rectangle to the specified bottom-left point.\n\n@param rect rectangle to move\n@param x new x origin\n@param y new y origin", "Reset the Where object so it can be re-used.", "Retrieve the correct index for the supplied Table instance.\n\n@param table Table instance\n@return index", "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps", "Performs a single synchronization pass in both the local and remote directions; the order\nof which does not matter. If switching the order produces different results after one pass,\nthen there is a bug.\n\n@return whether or not the synchronization pass was successful.", "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", "Remove any protocol-level headers from the remote server's response that\ndo not apply to the new response we are sending.\n\n@param response", "Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context", "Sets a parameter for the creator." ]
public void validate() throws PackagingException { if (control == null || !control.isDirectory()) { throw new PackagingException("The 'control' attribute doesn't point to a directory. " + control); } if (changesIn != null) { if (changesIn.exists() && (!changesIn.isFile() || !changesIn.canRead())) { throw new PackagingException("The 'changesIn' setting needs to point to a readable file. " + changesIn + " was not found/readable."); } if (changesOut != null && !isWritableFile(changesOut)) { throw new PackagingException("Cannot write the output for 'changesOut' to " + changesOut); } if (changesSave != null && !isWritableFile(changesSave)) { throw new PackagingException("Cannot write the output for 'changesSave' to " + changesSave); } } else { if (changesOut != null || changesSave != null) { throw new PackagingException("The 'changesOut' or 'changesSave' settings may only be used when there is a 'changesIn' specified."); } } if (Compression.toEnum(compression) == null) { throw new PackagingException("The compression method '" + compression + "' is not supported (expected 'none', 'gzip', 'bzip2' or 'xz')"); } if (deb == null) { throw new PackagingException("You need to specify where the deb file is supposed to be created."); } getDigestCode(digest); }
[ "Validates the input parameters." ]
[ "Retrieve all Collection attributes of a given instance\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true, loading is forced even if cld differs", "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", "ensures that the first invocation of a date seeking\nrule is captured", "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function", "Compute the key to use.\n\n@param ref The reference number.\n@param filename The filename.\n@param extension The file extension.", "Throws if the given file is null, is not a file or directory, or is an empty directory.", "returns an array containing values for all the Objects attribute\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Plots the MSD curve with the trajectory t and adds the fitted model for free diffusion.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param intercept", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns the number of elements in the sorted set with a value in the given range.\n@param lexRange\n@return the number of elements in the specified range." ]
public static base_response update(nitro_service client, systemuser resource) throws Exception { systemuser updateresource = new systemuser(); updateresource.username = resource.username; updateresource.password = resource.password; updateresource.externalauth = resource.externalauth; updateresource.promptstring = resource.promptstring; updateresource.timeout = resource.timeout; return updateresource.update_resource(client); }
[ "Use this API to update systemuser." ]
[ "convert object into another class using the JSON mapper\n\n@param <C> the generic target type\n@param object the object to convert\n@param targetClass the class of the target object\n@return the converted object\n@throws IllegalArgumentException if conversion fails", "The transaction will be executed. While it is running, any semantic state change\nin the given resource will be ignored and the cache will not be cleared.", "Delivers the correct JSON Object for the dockers\n\n@param dockers\n@throws org.json.JSONException", "Get the bounding box for a certain tile.\n\n@param code\nThe unique tile code. Determines what tile we're talking about.\n@param maxExtent\nThe maximum extent of the grid to which this tile belongs.\n@param scale\nThe current client side scale.\n@return Returns the bounding box for the tile, expressed in the layer's coordinate system.", "Retrieve and validate store name from the REST request.\n\n@return true if valid, false otherwise", "Check if values in the column \"property\" are written to the bundle descriptor.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle descriptor.", "Called when is removed the parent of the scene object.\n\n@param parent Old parent of this scene object.", "Compute the repair set from the given values and nodes\n\n@param nodeValues The value found on each node\n@return A set of repairs to perform", "Read an optional string value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the string value in the provided JSON object.\n@param defaultValue the default value, to be returned if the string can not be read from the JSON object.\n@return the string or the default value if reading the string fails." ]
public static BoxAPIConnection getTransactionConnection(String accessToken, String scope, String resource) { BoxAPIConnection apiConnection = new BoxAPIConnection(accessToken); URL url; try { url = new URL(apiConnection.getTokenURL()); } catch (MalformedURLException e) { assert false : "An invalid token URL indicates a bug in the SDK."; throw new RuntimeException("An invalid token URL indicates a bug in the SDK.", e); } String urlParameters; try { urlParameters = String.format("grant_type=%s&subject_token=%s&subject_token_type=%s&scope=%s", GRANT_TYPE, URLEncoder.encode(accessToken, "UTF-8"), SUBJECT_TOKEN_TYPE, URLEncoder.encode(scope, "UTF-8")); if (resource != null) { urlParameters += "&resource=" + URLEncoder.encode(resource, "UTF-8"); } } catch (UnsupportedEncodingException e) { throw new BoxAPIException( "An error occurred while attempting to encode url parameters for a transactional token request" ); } BoxAPIRequest request = new BoxAPIRequest(apiConnection, url, "POST"); request.shouldAuthenticate(false); request.setBody(urlParameters); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); final String fileToken = responseJSON.get("access_token").asString(); BoxTransactionalAPIConnection transactionConnection = new BoxTransactionalAPIConnection(fileToken); transactionConnection.setExpires(responseJSON.get("expires_in").asLong() * 1000); return transactionConnection; }
[ "Request a scoped transactional token for a particular resource.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@param resource resource transactional token has access to.\n@return a BoxAPIConnection which can be used to perform transactional requests." ]
[ "Writes a vInt directly to a byte array\n\n@param dest The destination array for the vInt to be written to\n@param offset The location where to write the vInt to\n@param i The Value being written into byte array\n@return Returns the new offset location", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width", "Sets the value to a default.", "Removes all pending broadcasts\n\n@param sessionIds to remove broadcast for (or null for all sessions)", "Checks if template mapper is configured in modules.\n\n@return true if the template mapper is configured in modules", "Create a buffered image with the correct image bands etc... for the tiles being loaded.\n\n@param imageWidth width of the image to create\n@param imageHeight height of the image to create.", "Adds a new Site matcher object to the map of server names.\n\n@param matcher the SiteMatcher of the server\n@param site the site to add", "Are these two numbers effectively equal?\n\nThe same logic is applied for each of the 3 vector dimensions: see {@link #equal}\n@param v1\n@param v2", "Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name ." ]
public String clean(String value) { String orig = value; // check if there's a + before the first digit boolean initialplus = findPlus(value); // remove everything but digits value = sub.clean(value); if (value == null) return null; // check for initial '00' boolean zerozero = !initialplus && value.startsWith("00"); if (zerozero) value = value.substring(2); // strip off the zeros // look for country code CountryCode ccode = findCountryCode(value); if (ccode == null) { // no country code, let's do what little we can if (initialplus || zerozero) return orig; // this number is messed up. dare not touch return value; } else { value = value.substring(ccode.getPrefix().length()); // strip off ccode if (ccode.getStripZero() && value.startsWith("0")) value = value.substring(1); // strip the zero if (ccode.isRightFormat(value)) return "+" + ccode.getPrefix() + " " + value; else return orig; // don't dare touch this } }
[ "look for zero after country code, and remove if present" ]
[ "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert.", "Sets the path name for this ID\n\n@param pathId ID of path\n@param pathName Name of path", "Registers the parameter for the value formatter for the given variable and puts\nit's implementation in the parameters map.\n@param djVariable\n@param variableName", "Gets whether this registration has an alternative wildcard registration", "Obtains a local date in Coptic 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 Coptic local date, not null\n@throws DateTimeException if unable to create the date", "Set whether we should obtain color versions of waveforms and previews when they are available. This will only\naffect waveforms loaded after the setting has been changed. If this changes the setting, and we were running,\nstop and restart in order to flush and reload the correct waveform versions.\n\n@param preferColor if {@code true}, the full-color versions of waveforms will be requested, if {@code false}\nonly the older blue versions will be retrieved", "Build a valid datastore URL.", "Update the default time unit for work based on data read from the file.\n\n@param column column data", "Use this API to disable nsfeature." ]
public boolean process( DMatrixSparseCSC A ) { init(A); TriangularSolver_DSCC.eliminationTree(A,true,parent,gwork); countNonZeroInR(parent); countNonZeroInV(parent); // if more columns than rows it's possible that Q*R != A. That's because a householder // would need to be created that's outside the m by m Q matrix. In reality it has // a partial solution. Column pivot are needed. if( m < n ) { for (int row = 0; row <m; row++) { if( gwork.data[head+row] < 0 ) { return false; } } } return true; }
[ "Examins the structure of A for QR decomposition\n@param A matrix which is to be decomposed\n@return true if the solution is valid or false if the decomposition can't be performed (i.e. requires column pivots)" ]
[ "Parse a list of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "Run a task once, after a delay.\n\n@param task\nTask to run.\n@param delay\nUnit is seconds.\n@return An interface that lets you query the status; cancel; or\nreschedule the event.", "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@param offset the optional time offset for this alias", "Start speech recognizer.\n\n@param speechListener", "dst is just for log information", "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to", "Utility function that fetches system store definitions\n\n@return The map container that maps store names to store definitions", "Boot with the given operations, performing full model and capability registry validation.\n\n@param bootOperations the operations. Cannot be {@code null}\n@param rollbackOnRuntimeFailure {@code true} if the boot should fail if operations fail in the runtime stage\n@return {@code true} if boot was successful\n@throws ConfigurationPersistenceException" ]
public void rotateWithPivot(float w, float x, float y, float z, float pivotX, float pivotY, float pivotZ) { getTransform().rotateWithPivot(w, x, y, z, pivotX, pivotY, pivotZ); if (mTransformCache.rotateWithPivot(w, x, y, z, pivotX, pivotY, pivotZ)) { onTransformChanged(); } }
[ "Modify the tranform's current rotation in quaternion terms, around a\npivot other than the origin.\n\n@param w\n'W' component of the quaternion.\n@param x\n'X' component of the quaternion.\n@param y\n'Y' component of the quaternion.\n@param z\n'Z' component of the quaternion.\n@param pivotX\n'X' component of the pivot's location.\n@param pivotY\n'Y' component of the pivot's location.\n@param pivotZ\n'Z' component of the pivot's location." ]
[ "Creates a polling state.\n\n@param response the response from Retrofit REST call that initiate the long running operation.\n@param lroOptions long running operation options.\n@param defaultRetryTimeout the long running operation retry timeout.\n@param resourceType the type of the resource the long running operation returns\n@param serializerAdapter the adapter for the Jackson object mapper\n@param <T> the result type\n@return the polling state\n@throws IOException thrown by deserialization", "Export the modules that should be checked in into git.", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Returns the command line options to be used for scalaxb, excluding the\ninput file names.", "Adds the contents of a Java package to this JAR.\n\n@param clazz a class whose package we wish to add to the JAR.\n@param filter a filter to select particular classes\n@return {@code this}", "lookup current maximum value for a single field in\ntable the given class descriptor was associated.", "Get file extension for script language.\n\n@param language the language name\n@return the file extension as string or null if the language is not in the set of languages supported by spin", "Creates and returns a matrix which is idential to this one.\n\n@return A new identical matrix.", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded" ]
public RedwoodConfiguration loggingClass(final String classToIgnoreInTraces){ tasks.add(new Runnable() { public void run() { Redwood.addLoggingClass(classToIgnoreInTraces); } }); return this; }
[ "Set a Java classname path to ignore when printing stack traces\n@param classToIgnoreInTraces The class name (with packages, etc) to ignore.\n@return this" ]
[ "convert Event bean to EventType manually.\n\n@param event the event\n@return the event type", "Clean up the environment object for the given storage engine", "Convert the Values using the FieldConversion.sqlToJava\n@param fcs\n@param values", "Add data for a column to this table.\n\n@param column column data", "Writes all data that was collected about properties to a json file.", "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args", "Write a map field to the JSON file.\n\n@param fieldName field name\n@param value field value", "returns null if no device is found.", "Notification that boot has completed successfully and the configuration history should be updated" ]
public void processPick(boolean touched, MotionEvent event) { mPickEventLock.lock(); mTouched = touched; mMotionEvent = event; doPick(); mPickEventLock.unlock(); }
[ "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" ]
[ "Tells you if the expression is a spread operator call\n@param expression\nexpression\n@return\ntrue if is spread expression", "Show a toast-like message for the specified duration\n\n@param message\n@param duration in seconds", "Creates a new Box Developer Edition connection with enterprise token leveraging an access token cache.\n@param enterpriseId the enterprise ID to use for requesting access token.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "Creates a new fixed size ThreadPoolExecutor\n\n@param threads\nthe number of threads\n@param groupname\na label to identify the threadpool; useful for profiling.\n@param queueSize\nthe size of the queue to store Runnables when all threads are busy\n@return the new ExecutorService", "We are adding a redeploy operation step for each specified deployment runtime name.\n\n@param context\n@param deploymentsRootAddress\n@param deploymentNames\n@throws OperationFailedException", "Use this API to update inat.", "associate the batched Children with their owner object loop over children", "Record a Screen View event\n@param screenName String, the name of the screen", "This procedure sets permissions to the given file to not allow everybody to read it.\n\nOnly when underlying OS allows the change.\n\n@param file File to set permissions" ]
public static Chart getMSDLineChart(Trajectory t, int lagMin, int lagMax) { return getMSDLineChart(t, lagMin, lagMax, new MeanSquaredDisplacmentFeature(t, lagMin)); }
[ "Plots the MSD curve for trajectory t.\n@param t List of trajectories\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" ]
[ "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove", "Returns the compact records for all stories on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object", "This method is called to format a percentage value.\n\n@param value numeric value\n@return percentage value", "Tests the string edit distance function.", "Checks that sequence-name is only used with autoincrement='ojb'\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", "Propagates node table of given DAG to all of it ancestors.", "Mapping originator.\n\n@param originator the originator\n@return the originator type", "Ensures that the given collection descriptor has a valid element-class-ref property.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If element-class-ref could not be determined or is invalid", "Use the universal project reader to open the file.\nThrow an exception if we can't determine the file type.\n\n@param inputFile file name\n@return ProjectFile instance" ]
private static JSONArray parseChildShapesRecursive(ArrayList<Shape> childShapes) throws JSONException { if (childShapes != null) { JSONArray childShapesArray = new JSONArray(); for (Shape childShape : childShapes) { JSONObject childShapeObject = new JSONObject(); childShapeObject.put("resourceId", childShape.getResourceId().toString()); childShapeObject.put("properties", parseProperties(childShape.getProperties())); childShapeObject.put("stencil", parseStencil(childShape.getStencilId())); childShapeObject.put("childShapes", parseChildShapesRecursive(childShape.getChildShapes())); childShapeObject.put("outgoing", parseOutgoings(childShape.getOutgoings())); childShapeObject.put("bounds", parseBounds(childShape.getBounds())); childShapeObject.put("dockers", parseDockers(childShape.getDockers())); if (childShape.getTarget() != null) { childShapeObject.put("target", parseTarget(childShape.getTarget())); } childShapesArray.put(childShapeObject); } return childShapesArray; } return new JSONArray(); }
[ "Parses all child Shapes recursively and adds them to the correct JSON\nObject\n\n@param childShapes\n@throws org.json.JSONException" ]
[ "Generate a call to the delegate object.", "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event.", "Gets the attributes provided by the processor.\n\n@return the attributes", "Given a layer ID, search for the WMS layer.\n\n@param layerId layer id\n@return WMS layer or null if layer is not a WMS layer", "Create and get actor system.\n\n@return the actor system", "Use this API to fetch all the configstatus resources that are configured on netscaler.", "Indicates whether or not an event ID is a duplicate.\n\n<p>This method can be overridden by a subclass in order to provide custom de-duping logic.</p>\n\n@param eventID the event ID.\n@return true if the event is a duplicate; otherwise false.", "Use this API to fetch appfwprofile_csrftag_binding resources of given name .", "Appends the indentation string at the current position of the parent and adds a new composite node, indicating the same indentation for\nsubsequent lines.\n\n@return an indentation node, using the given indentString, appended as a child on the given parent" ]
@Override public final Boolean optBool(final String key) { if (this.obj.optString(key, null) == null) { return null; } else { return this.obj.optBoolean(key); } }
[ "Get a property as a boolean or null.\n\n@param key the property name" ]
[ "Static factory method.\n\n@param targetVariable\nthe variable to find the effective {@code putfield} or\n{@code putstatic} instruction for.\n@param controlFlowBlocks\nall control flow blocks of an initialising constructor or\nmethod.\n@return a new instance of this class.", "generate a message for loglevel FATAL\n\n@param pObject the message Object", "Use this API to fetch appqoepolicy resource of given name .", "Configure high fps settings in the camera for VR mode\n\n@param fpsMode integer indicating the desired fps: 0 means 30 fps, 1 means 60\nfps, and 2 means 120 fps. Any other value is invalid.\n@return A boolean indicating the status of the method call. It may be false due\nto multiple reasons including: 1) supplying invalid fpsMode as the input\nparameter, 2) VR mode not supported.", "Answer the primary key query to retrieve an Object\n\n@param oid the Identity of the Object to retrieve\n@return The resulting query", "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "Does the slice contain only 7-bit ASCII characters.", "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", "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." ]
public static filterpolicy_binding get(nitro_service service, String name) throws Exception{ filterpolicy_binding obj = new filterpolicy_binding(); obj.set_name(name); filterpolicy_binding response = (filterpolicy_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch filterpolicy_binding resource of given name ." ]
[ "Use this API to fetch appfwpolicylabel_binding resource of given name .", "Not used.", "Recursively sort the supplied child tasks.\n\n@param container child tasks", "Computes the eigenvalue of the 2 by 2 matrix.", "Obtains a British Cutover local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the British Cutover local date-time, not null\n@throws DateTimeException if unable to create the date-time", "called periodically to check that the heartbeat has been received\n\n@return {@code true} if we have received a heartbeat recently", "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", "Determine the common ancestor of the given classes, if any.\n@param clazz1 the class to introspect\n@param clazz2 the other class to introspect\n@return the common ancestor (i.e. common superclass, one interface\nextending the other), or {@code null} if none found. If any of the\ngiven classes is {@code null}, the other class will be returned.\n@since 2.0", "Returns a File object whose path is the expected user directory.\nDoes not create or check for existence.\n@param prefix\n@param suffix\n@param parent\n@return" ]
private List<Pair<Integer, Double>> integerPixelCoordinatesAndWeights(double d, int numPixels) { if (d <= 0.5) return Collections.singletonList(new Pair<>(0, 1.0)); else if (d >= numPixels - 0.5) return Collections.singletonList(new Pair<>(numPixels - 1, 1.0)); else { double shifted = d - 0.5; double floor = Math.floor(shifted); double floorWeight = 1 - (shifted - floor); double ceil = Math.ceil(shifted); double ceilWeight = 1 - floorWeight; assert (floorWeight + ceilWeight == 1); return Arrays.asList(new Pair<>((int) floor, floorWeight), new Pair<>((int) ceil, ceilWeight)); } }
[ "Operates on one dimension at a time." ]
[ "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", "Creates a new resource.\n@param cmsObject The CmsObject of the current request context.\n@param newLink A string, specifying where which new content should be created.\n@param locale The locale for which the\n@param sitePath site path of the currently edited content.\n@param modelFileName not used.\n@param mode optional creation mode\n@param postCreateHandler optional class name of an {@link I_CmsCollectorPostCreateHandler} which is invoked after the content has been created.\nThe fully qualified class name can be followed by a \"|\" symbol and a handler specific configuration string.\n@return The site-path of the newly created resource.", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "Returns the complete tag record for a single tag.\n\n@param tag The tag to get.\n@return Request object", "Determine the length of a nul terminated UTF16LE string in bytes.\n\n@param data string data\n@param offset offset into string data\n@return length in bytes", "Use this API to fetch nssimpleacl resources of given names .", "Write the config to the writer.", "Use this API to fetch systemsession resources of given names .", "Attach a metadata cache file to a particular player media slot, so the cache will be used instead of querying\nthe player for metadata. This supports operation with metadata during shows where DJs are using all four player\nnumbers and heavily cross-linking between them.\n\nIf the media is ejected from that player slot, the cache will be detached.\n\n@param slot the media slot to which a meta data cache is to be attached\n@param file the metadata cache to be attached\n\n@throws IOException if there is a problem reading the cache file\n@throws IllegalArgumentException if an invalid player number or slot is supplied\n@throws IllegalStateException if the metadata finder is not running" ]
private void startInvertedColors() { if (managerFeatures.getInvertedColors().isInverted()) { managerFeatures.getInvertedColors().turnOff(mGvrContext.getMainScene()); } else { managerFeatures.getInvertedColors().turnOn(mGvrContext.getMainScene()); } }
[ "Active inverter colors" ]
[ "Called by spring on initialization.", "Destroys an instance of the bean\n\n@param instance The instance", "Finds trajectory by ID\n@param t List of Trajectories\n@param id ID of the trajectorie\n@return Trajectory with ID=id", "Specify additional query parameters to be passed to the filter function.\n\n@param queryParams map of key-value parameters\n@return this Replication instance to set more options or trigger the replication", "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param filterTerm The filter term to lookup users by (login for external, login or name for managed)\n@param userType The type of users we want to search with this request.\nValid values are 'managed' (enterprise users), 'external' or 'all'\n@param externalAppUserId the external app user id that has been set for an app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return An iterator over the selected users.", "Calculates Tangent value of the complex number.\n\n@param z1 A ComplexNumber instance.\n@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number.", "Derives the OJB platform to use for a database that is connected via a url using the specified\nsubprotocol, and where the specified jdbc driver is used.\n\n@param jdbcSubProtocol The JDBC subprotocol used to connect to the database\n@param jdbcDriver The JDBC driver used to connect to the database\n@return The platform identifier or <code>null</code> if no platform could be found", "Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler.\n@param fromObservable the source observable\n@param toValue the value to emit to the observer\n@param <T> the type of the value to emit\n@return an observable emitting the specified value", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance" ]
public boolean isExit() { if (currentRow > finalRow) { //request new block of work String newBlock = this.sendRequestSync("this/request/block"); LineCountManager.LineCountBlock block = new LineCountManager.LineCountBlock(0, 0); if (newBlock.contains("exit")) { getExitFlag().set(true); makeReport(true); return true; } else { block.buildFromResponse(newBlock); } currentRow = block.getStart(); finalRow = block.getStop(); } else { //report the number of lines written makeReport(false); if (exit.get()) { getExitFlag().set(true); return true; } } return false; }
[ "Exit reporting up to distributor, using information gained from status reports to the LineCountManager\n\n@return a boolean of whether this consumer should immediately exit" ]
[ "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance", "Make a WMS getLayer request and return the image read from the server.\n\n@param wmsLayerParam the wms request parameters\n@param commonURI the uri to use for the requests (excepting parameters of course.)\n@param imageSize the size of the image to request\n@param dpi the dpi of the image to request\n@param angle the angle of the image to request\n@param bounds the area and projection of the request on the world.", "convert filename to clean filename", "Analyze all source code using the specified RuleSet and return the report results.\n\n@param ruleSet - the RuleSet to apply to each source component; must not be null.\n@return the results from applying the RuleSet to all of the source", "capture center eye", "Lock a file lazily, if a value that should be written to the file has changed.\n@param propertyId the table column in which the value has changed (e.g., KEY, TRANSLATION, ...)\n@throws CmsException thrown if locking fails.", "scroll only once", "Use this API to add route6.", "Trim the trailing spaces.\n\n@param line" ]
public static void dumpNodeAnim(AiNodeAnim nodeAnim) { for (int i = 0; i < nodeAnim.getNumPosKeys(); i++) { System.out.println(i + ": " + nodeAnim.getPosKeyTime(i) + " ticks, " + nodeAnim.getPosKeyVector(i, Jassimp.BUILTIN)); } }
[ "Dumps an animation channel to stdout.\n\n@param nodeAnim the channel" ]
[ "Finds the maximum abs in each column of A and stores it into values\n@param A (Input) Matrix\n@param values (Output) storage for column max abs", "Populates a resource.\n\n@param resource resource instance\n@param record MPX record\n@throws MPXJException", "Use this API to fetch aaapreauthenticationpolicy_aaaglobal_binding resources of given name .", "Verify that the given queues are all valid.\n\n@param queues the given queues", "Add new control at the end of control bar with specified touch listener.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param properties JSON control specific properties\n@param listener touch listener", "FIXME Remove this method", "Get the features collection from a GeoJson URL.\n\n@param template the template\n@param geoJsonUrl what to parse\n@return the feature collection", "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "Print a task UID.\n\n@param value task UID\n@return task UID string" ]
protected static String jacksonObjectToString(Object object) { try { return mapper.writeValueAsString(object); } catch (JsonProcessingException e) { logger.error("Failed to serialize JSON data: " + e.toString()); return null; } }
[ "Serializes the given object in JSON and returns the resulting string. In\ncase of errors, null is returned. In particular, this happens if the\nobject is not based on a Jackson-annotated class. An error is logged in\nthis case.\n\n@param object\nobject to serialize\n@return JSON serialization or null" ]
[ "Designate the vertex attribute and shader variable for the texture coordinates\nassociated with the named texture.\n\n@param texName name of texture\n@param texCoordAttr name of vertex attribute with texture coordinates.\n@param shaderVarName name of shader variable to get texture coordinates.", "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", "Deletes this collaboration whitelist.", "Map originator type.\n\n@param originatorType the originator type\n@return the originator", "Use this API to delete dnsview of given name.", "set custom response or request for a profile's default client, ensures profile and path are enabled\n\n@param profileName profileName to modift, default client is used\n@param pathName friendly name of path\n@param isResponse true if response, false for request\n@param customData custom response/request data\n@return true if success, false otherwise", "Converts from partitionId to nodeId. The list of partition IDs,\npartitionIds, is expected to be a \"replicating partition list\", i.e., the\nmapping from partition ID to node ID should be one to one.\n\n@param partitionIds List of partition IDs for which to find the Node ID\nfor the Node that owns the partition.\n@return List of node ids, one for each partition ID in partitionIds\n@throws VoldemortException If multiple partition IDs in partitionIds map\nto the same Node ID.", "Creates an appropriate HSGE for a domain-wide resource of a type that is mappable to server groups", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable" ]
public String toNormalizedString(boolean keepMixed, IPv6StringOptions params) { if(keepMixed && fromString != null && getAddressfromString().isMixedIPv6() && !params.makeMixed()) { params = new IPv6StringOptions( params.base, params.expandSegments, params.wildcardOption, params.wildcards, params.segmentStrPrefix, true, params.ipv4Opts, params.compressOptions, params.separator, params.zoneSeparator, params.addrLabel, params.addrSuffix, params.reverse, params.splitDigits, params.uppercase); } return toNormalizedString(params); }
[ "Constructs a string representing this address according to the given parameters\n\n@param keepMixed if this address was constructed from a string with mixed representation (a:b:c:d:e:f:1.2.3.4), whether to keep it that way (ignored if makeMixed is true in the params argument)\n@param params the parameters for the address string" ]
[ "Gets the value of the task 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 task property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetTask().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link GanttDesignerRemark.Task }", "Decides and returns the preferred deployment credentials to use from this builder settings and selected server\n\n@param deployerOverrider Deploy-overriding capable builder\n@param server Selected Artifactory server\n@return Preferred deployment credentials", "Returns the value for a given key from the database properties.\n\n@param key the property key\n\n@return the string value for a given key", "Recovers the state of synchronization for a namespace in case a system failure happened.\nThe goal is to revert the namespace to a known, good state. This method itself is resilient\nto failures, since it doesn't delete any documents from the undo collection until the\ncollection is in the desired state with respect to those documents.", "Retrieve and validate vector clock value from the REST request.\n\"X_VOLD_VECTOR_CLOCK\" is the vector clock header.\n\n@return true if present, false if missing", "iteration not synchronized", "Send a device lost announcement to all registered listeners.\n\n@param announcement the last message received from the vanished device", "Get the ver\n\n@param id\n@return", "Constraint that ensures that the field has a column property. If none is specified, then\nthe name of the field is used.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)" ]
public static Path createTempDirectory(Path dir, String prefix) throws IOException { try { return Files.createTempDirectory(dir, prefix); } catch (UnsupportedOperationException ex) { } return Files.createTempDirectory(dir, prefix); }
[ "Create a temporary directory with the same attributes as its parent directory.\n@param dir\nthe path to directory in which to create the directory\n@param prefix\nthe prefix string to be used in generating the directory's name;\nmay be {@code null}\n@return the path to the newly created directory that did not exist before\nthis method was invoked\n@throws IOException" ]
[ "Get the set of metadata providers that can offer metadata for tracks loaded from the specified media.\n\n@param sourceMedia the media whose metadata providers are desired, or {@code null} to get the set of\nmetadata providers that can offer metadata for all media.\n\n@return any registered metadata providers that reported themselves as supporting tracks from that media", "Gets the message payload.\n\n@param message the message\n@return the payload", "Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String", "Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation", "Load a properties file from a file path\n\n@param gradlePropertiesFilePath The file path where the gradle.properties is located.\n@return The loaded properties.\n@throws IOException In case an error occurs while reading the properties file, this exception is thrown.", "Checks whether an XPath expression starts with an XPath eventable condition.\n\n@param dom The DOM String.\n@param eventableCondition The eventable condition.\n@param xpath The XPath.\n@return boolean whether xpath starts with xpath location of eventable condition xpath\ncondition\n@throws XPathExpressionException\n@throws CrawljaxException when eventableCondition is null or its inXPath has not been set", "Removes all children", "Only call async", "Convert an Object of type Class to an Object." ]
public ParallelTaskBuilder setResponseContext( Map<String, Object> responseContext) { if (responseContext != null) this.responseContext = responseContext; else logger.error("context cannot be null. skip set."); return this; }
[ "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder" ]
[ "Resets the helper's state.\n\n@return this {@link Searcher} for chaining.", "Remove duplicate Strings from the given array. Also sorts the array, as\nit uses a TreeSet.\n\n@param array the String array\n@return an array without duplicates, in natural sort order", "Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered.\n\n@param timeout number of milliseconds after which the callback should be called if it hasn't already been", "Returns a long between interval\n@param min Minimum value\n@param max Maximum value\n@return long number", "Convert a key-version-nodeSet information to string\n\n@param key The key\n@param versionMap mapping versions to set of PrefixNodes\n@param storeName store's name\n@param partitionId partition scanned\n@return a string that describe the information passed in", "Get the configuration for a TMS layer by retrieving and parsing it's XML description file. The parsing is done\nusing JaxB.\n@param layer the tms layer to get capabilities for.\n@return Returns the description as a Java configuration object.\n@throws TmsLayerException\nIn case something went wrong trying to find or parse the XML description file.", "Finds trajectory by ID\n@param t List of Trajectories\n@param id ID of the trajectorie\n@return Trajectory with ID=id", "Answer the TableAlias for aPath\n@param aPath\n@param hintClasses\n@return TableAlias, null if none", "Reads a \"flags\" argument from the request." ]
@Deprecated public int getEntityTypeId(@NotNull final String entityType, final boolean allowCreate) { return getEntityTypeId(txnProvider, entityType, allowCreate); }
[ "Gets or creates id of the entity type.\n\n@param entityType entity type name.\n@param allowCreate if set to true and if there is no entity type like entityType,\ncreate the new id for the entityType.\n@return entity type id." ]
[ "Tells you if the given ASTNode is a VariableExpression with the given name.\n@param expression\nany AST Node\n@param pattern\na string pattern to match\n@return\ntrue if the node is a variable with the specified name", "Appends the given string to the given StringBuilder, replacing '&amp;',\n'&lt;' and '&gt;' by their respective HTML entities.\n\n@param out\nThe StringBuilder to append to.\n@param value\nThe string to append.\n@param offset\nThe character offset into value from where to start", "Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator", "Sets a property on this Javascript object for which the value is a\nJavascript object itself.\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "Use this API to fetch all the cmpparameter resources that are configured on netscaler.", "Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.\nGets the capabilities for a specific endpoint.\n@param the number of the endpoint to get the\n@return the serial message.", "Performs a remote service method invocation. This method is called by\ngenerated proxy classes.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a {@link Request} object that can be used to track the request", "returns a unique long value for class clazz and field fieldName.\nthe returned number is unique accross all tables in the extent of clazz.", "cancels a running assembly.\n\n@param url full url of the Assembly.\n@return {@link AssemblyResponse}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations." ]
private boolean isOrdinal(int paramType) { switch ( paramType ) { case Types.INTEGER: case Types.NUMERIC: case Types.SMALLINT: case Types.TINYINT: case Types.BIGINT: case Types.DECIMAL: //for Oracle Driver case Types.DOUBLE: //for Oracle Driver case Types.FLOAT: //for Oracle Driver return true; case Types.CHAR: case Types.LONGVARCHAR: case Types.VARCHAR: return false; default: throw new HibernateException( "Unable to persist an Enum in a column of SQL Type: " + paramType ); } }
[ "in truth we probably only need the types as injected by the metadata binder" ]
[ "Upload a photo from an InputStream.\n\n@param in\n@param metaData\n@return photoId or ticketId\n@throws FlickrException", "returns true if a job was queued within a timeout", "Calculate Median value.\n@param values Values.\n@return Median.", "Meant to execute assertions in tests only\n@return a read-only view of the map containing the relations between entities", "Converts this file into a resource name on the classpath by cutting of the file path\nto the classpath root.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param file The file.\n@return The resource name on the classpath.", "why isn't this functionality in enum?", "Sets the character translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator\n@return this to allow chaining", "Use this API to add onlinkipv6prefix resources.", "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}" ]
public static void mainInternal(String[] args) throws Exception { Options options = new Options(); CmdLineParser parser = new CmdLineParser(options); try { parser.parseArgument(args); } catch (CmdLineException e) { helpScreen(parser); return; } try { List<String> configs = new ArrayList<>(); if (options.configs != null) { configs.addAll(Arrays.asList(options.configs.split(","))); } ConfigSupport.applyConfigChange(ConfigSupport.getJBossHome(), configs, options.enable); } catch (ConfigException ex) { ConfigLogger.error(ex); throw ex; } catch (Throwable th) { ConfigLogger.error(th); throw th; } }
[ "Entry point with no system exit" ]
[ "Converts url path to the Transloadit full url.\nReturns the url passed if it is already full.\n\n@param url\n@return String", "look for zero after country code, and remove if present", "Use this API to add sslcertkey resources.", "Try Oracle update batching and call executeUpdate or revert to\nJDBC update batching.\n@param stmt the statement beeing added to the batch\n@throws PlatformException upon JDBC failure", "Generate a new check box with the provided date and check state.\n@param date date for the check box.\n@param checkState the initial check state.\n@return the created check box", "Use this API to export appfwlearningdata.", "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data", "Triggers a new search with the given text.\n\n@param query the text to search for.", "static expansion helpers" ]
private void onChangedImpl(final int preferableCenterPosition) { for (ListOnChangedListener listener: mOnChangedListeners) { listener.onChangedStart(this); } Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "onChangedImpl(%s): items [%d] views [%d] mLayouts.size() = %d " + "preferableCenterPosition = %d", getName(), getDataCount(), getViewCount(), mContent.mLayouts.size(), preferableCenterPosition); // TODO: selectively recycle data based on the changes in the data set mPreferableCenterPosition = preferableCenterPosition; recycleChildren(); }
[ "This method is called if the data set has been changed. Subclasses might want to override\nthis method to add some extra logic.\n\nGo through all items in the list:\n- reuse the existing views in the list\n- add new views in the list if needed\n- trim the unused views\n- request re-layout\n\n@param preferableCenterPosition the preferable center position. If it is -1 - keep the\ncurrent center position." ]
[ "Generate random time stamps from the current time upto the next one second.\nPassed as texture coordinates to the vertex shader, an unused field is present\nwith every pair passed.\n\n@param totalTime\n@return", "Classify the tokens in a String. Each sentence becomes a separate document.\n\n@param str\nA String with tokens in one or more sentences of text to be\nclassified.\n@return {@link List} of classified sentences (each a List of something that\nextends {@link CoreMap}).", "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Returns the curve resulting from the local linear regression with discrete kernel.\n\n@return The regression curve.", "Use this API to fetch auditnslogpolicy_vpnvserver_binding resources of given name .", "Parse the given projection.\n\n@param projection The projection string.\n@param longitudeFirst longitudeFirst", "Adds an HTTP header to this request.\n@param key the header key.\n@param value the header value.", "Use this API to update nsrpcnode.", "Figure out the starting waveform segment that corresponds to the specified coordinate in the window.\n\n@param x the column being drawn\n\n@return the offset into the waveform at the current scale and playback time that should be drawn there" ]
private void addToInverseAssociations( Tuple resultset, int tableIndex, Serializable id, SharedSessionContractImplementor session) { new EntityAssociationUpdater( this ) .id( id ) .resultset( resultset ) .session( session ) .tableIndex( tableIndex ) .propertyMightRequireInverseAssociationManagement( propertyMightBeMainSideOfBidirectionalAssociation ) .addNavigationalInformationForInverseSide(); }
[ "Adds the given entity to the inverse associations it manages." ]
[ "Returns the complete task record for a single task.\n\n@param task The task to get.\n@return Request object", "Use this API to add vlan resources.", "Creates the adapter for the target database.", "Upcasts a Builder instance to the generated superclass, to allow access to private fields.\n\n<p>Reuses an existing upcast instance if one was already declared in this scope.\n\n@param code the {@link SourceBuilder} to add the declaration to\n@param datatype metadata about the user type the builder is being generated for\n@param builder the Builder instance to upcast\n@returns a variable holding the upcasted instance", "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag", "Create the actual patchable target.\n\n@param name the layer name\n@param layer the layer path config\n@param metadata the metadata location for this target\n@param image the installed image\n@return the patchable target\n@throws IOException", "Sets no of currency digits.\n\n@param currDigs Available values, 0,1,2", "Registers a handler and returns the callback key to be passed to\nJavascript.\n\n@param handler Handler to be registered.\n@return A String random UUID that can be used as the callback key.", "Returns the total count of partitions across all stores.\n\n@return returns the total count of partitions across all stores." ]
public static systemuser get(nitro_service service, String username) throws Exception{ systemuser obj = new systemuser(); obj.set_username(username); systemuser response = (systemuser) obj.get_resource(service); return response; }
[ "Use this API to fetch systemuser resource of given name ." ]
[ "Build the operation transformers.\n\n@param registry the shared resource registry\n@return the operation transformers", "Extract site path, base name and locale from the resource opened with the editor.", "Utility function that fetches system store definitions\n\n@return The map container that maps store names to store definitions", "Update the background color of the mBgCircle image view.", "Probe the existing cluster to retrieve the current cluster xml and stores\nxml.\n\n@return Pair of Cluster and List<StoreDefinition> from current cluster.", "Decide whether failure should trigger a rollback.\n\n@param cause\nthe cause of the failure, or {@code null} if failure is not\nthe result of catching a throwable\n@return the result action", "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "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", "Checks whether every property except 'preferred' is satisfied\n\n@return" ]
private ProjectFile read() throws Exception { m_project = new ProjectFile(); m_eventManager = m_project.getEventManager(); ProjectConfig config = m_project.getProjectConfig(); config.setAutoCalendarUniqueID(false); config.setAutoTaskID(false); config.setAutoTaskUniqueID(false); config.setAutoResourceUniqueID(false); config.setAutoWBS(false); config.setAutoOutlineNumber(false); m_project.getProjectProperties().setFileApplication("FastTrack"); m_project.getProjectProperties().setFileType("FTS"); m_eventManager.addProjectListeners(m_projectListeners); // processProject(); // processCalendars(); processResources(); processTasks(); processDependencies(); processAssignments(); return m_project; }
[ "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance" ]
[ "Deletes this collaboration.", "Obtains a local date in Pax calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Pax era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Pax local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code PaxEra}", "Retrieves the notes text for this resource.\n\n@return notes text", "Wrap CallableStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Callablestatement.", "Creates a \"delta clone\" of this Map, where only the differences are\nrepresented.", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.\n\n@param map\nthe map\n@param nameMapping\nthe keys of the Map values to add to the List\n@return a List of all of the values in the Map whose key matches an entry in the nameMapping array\n@throws NullPointerException\nif map or nameMapping is null", "Sets the elements in this matrix to be equal to the elements in the passed in matrix.\nBoth matrix must have the same dimension.\n\n@param a The matrix whose value this matrix is being set to.", "Map custom info.\n\n@param ciType the custom info type\n@return the map" ]
public void rollback(File rollbackToDir) { logger.info("Rolling back store '" + getName() + "'"); fileModificationLock.writeLock().lock(); try { if(rollbackToDir == null) throw new VoldemortException("Version directory specified to rollback is null"); if(!rollbackToDir.exists()) throw new VoldemortException("Version directory " + rollbackToDir.getAbsolutePath() + " specified to rollback does not exist"); long versionId = ReadOnlyUtils.getVersionId(rollbackToDir); if(versionId == -1) throw new VoldemortException("Cannot parse version id"); File[] backUpDirs = ReadOnlyUtils.getVersionDirs(storeDir, versionId, Long.MAX_VALUE); if(backUpDirs == null || backUpDirs.length <= 1) { logger.warn("No rollback performed since there are no back-up directories"); return; } backUpDirs = ReadOnlyUtils.findKthVersionedDir(backUpDirs, 0, backUpDirs.length - 1); if(isOpen) close(); // open the rollback directory open(rollbackToDir); // back-up all other directories DateFormat df = new SimpleDateFormat("MM-dd-yyyy"); for(int index = 1; index < backUpDirs.length; index++) { Utils.move(backUpDirs[index], new File(storeDir, backUpDirs[index].getName() + "." + df.format(new Date()) + ".bak")); } } finally { fileModificationLock.writeLock().unlock(); logger.info("Rollback operation completed on '" + getName() + "', releasing lock."); } }
[ "Rollback to the specified push version\n\n@param rollbackToDir The version directory to rollback to" ]
[ "Returns the object pointed by the result-type parameter \"parameters\"\n@param _invocation\n@return", "Execute JavaScript in the browser.\n\n@param code The code to execute.\n@return The return value of the JavaScript.\n@throws CrawljaxException when javascript execution failed.", "Given the alias of the entity and the path to the relationship it will return the alias\nof the component.\n\n@param entityAlias the alias of the entity\n@param propertyPathWithoutAlias the path to the property without the alias\n@return the alias the relationship or null", "Returns the compact representations of all of the dependents of a task.\n\n@param task The task to get dependents on.\n@return Request object", "Utility function that checks if store names are valid on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@param storeNames Store names to check", "callers of doLogin should be serialized before calling in.", "Handles the file deletions.\n\n@param cms the CMS context to use\n@param toDelete the resources to delete\n\n@throws CmsException if something goes wrong", "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", "This method allows a resource assignment workgroup fields record\nto be added to the current resource assignment. A maximum of\none of these records can be added to a resource assignment record.\n\n@return ResourceAssignmentWorkgroupFields object\n@throws MPXJException if MSP defined limit of 1 is exceeded" ]
public ConfigOptionBuilder setCommandLineOptionWithoutArgument( CommandLineOption commandLineOption, Object value ) { co.setCommandLineOption( commandLineOption ); co.setValue( value ); return this; }
[ "if you don't have an argument, choose the value that is going to be inserted into the map instead\n\n@param commandLineOption specification of the command line options\n@param value the value that is going to be inserted into the map instead of the argument" ]
[ "Install the installation manager service.\n\n@param serviceTarget\n@return the service controller for the installed installation manager", "Use this API to fetch all the systemuser resources that are configured on netscaler.", "Returns true if required properties for FluoAdmin are set", "Scroll to the next page. To process the scrolling by pages LayoutScroller must be constructed\nwith a pageSize greater than zero.\n@return the new current item after the scrolling processed.", "Returns a non-validating XML parser. The parser ignores both DTDs and XSDs.\n\n@return An XML parser in the form of a DocumentBuilder", "Parse the string representation of a double.\n\n@param value string representation\n@return Java representation\n@throws ParseException", "Renders a time period in human readable form\n\n@param time the time in milliseconds\n@return the time in human readable form", "Helper method to set a value in the internal header list.\n\n@param headers the headers to set the value in\n@param name the name to set\n@param value the value to set", "Use this API to add autoscaleaction resources." ]
public static StoreDefinition getStoreDef(List<StoreDefinition> list, String name) { for(StoreDefinition def: list) if(def.getName().equals(name)) return def; return null; }
[ "Get a store definition from the given list of store definitions\n\n@param list A list of store definitions\n@param name The name of the store\n@return The store definition" ]
[ "Gets a tokenizer from a reader.", "Describe the model as a list of resources with their address and model, which\nthe HC can directly apply to create the model. Although the format might appear\nsimilar as the operations generated at boot-time this description is only useful\nto create the resource tree and cannot be used to invoke any operation.\n\n@param rootAddress the address of the root resource being described\n@param resource the root resource\n@return the list of resources", "Returns the flag, indicating if the characters in the query string that are commands to Solr should be escaped.\n@return the flag, indicating if the characters in the query string that are commands to Solr should be escaped.", "Apply any applicable header overrides to request\n\n@param httpMethodProxyRequest\n@throws Exception", "Set the attributes for this template.\n\n@param attributes the attribute map", "Creates an object instance from the Groovy resource\n\n@param resource the Groovy resource to parse\n@return An Object instance", "Records that there is no media mounted in a particular media player slot, updating listeners if this is a change,\nand clearing any affected items from our in-memory caches.\n\n@param slot the slot in which no media is mounted", "Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations.", "Magnitude of complex number.\n\n@param z Complex number.\n@return Magnitude of complex number." ]
public static void addToListIfNotExists(List<String> list, String value) { boolean found = false; for (String item : list) { if (item.equalsIgnoreCase(value)) { found = true; break; } } if (!found) { list.add(value); } }
[ "Adds a value to the list if does not already exists.\n\n@param list the list\n@param value value to add if not exists in the list" ]
[ "Main render algorithm based on render the video thumbnail, render the title, render the marker\nand the label.", "Save an HTTP response to a file\n@param response the response to save\n@param destFile the destination file\n@throws IOException if the response could not be downloaded", "Convert from an internal Spring bean definition to a DTO.\n\n@param beanDefinition The internal Spring bean definition.\n@return Returns a DTO representation.", "Formats the supplied value using the specified DateTimeFormat.\n\n@return \"\" if the value is null", "Handles DMR strings in the configuration\n\n@param node the node to create.\n@param name the name for the node.\n@param value the value for the node.", "Returns the modules paths used on the command line.\n\n@return the paths separated by the {@link File#pathSeparator path separator}", "Populate data for analytics.", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Invoke an operation on an MBean by name.\nNote that only basic data types are supported for parameter values.\n@param operationName the operation name (can be URL-encoded).\n@param parameterMap the {@link Map} of parameter names and value arrays.\n@return the returned value from the operation.\n@throws JMException Java Management Exception\n@throws UnsupportedEncodingException if the encoding is not supported." ]
private FieldDescriptorDef cloneField(FieldDescriptorDef fieldDef, String prefix) { FieldDescriptorDef copyFieldDef = new FieldDescriptorDef(fieldDef, prefix); copyFieldDef.setOwner(this); // we remove properties that are only relevant to the class the features are declared in copyFieldDef.setProperty(PropertyHelper.OJB_PROPERTY_IGNORE, null); Properties mod = getModification(copyFieldDef.getName()); if (mod != null) { if (!PropertyHelper.toBoolean(mod.getProperty(PropertyHelper.OJB_PROPERTY_IGNORE), false) && hasFeature(copyFieldDef.getName())) { LogHelper.warn(true, ClassDescriptorDef.class, "process", "Class "+getName()+" has a feature that has the same name as its included field "+ copyFieldDef.getName()+" from class "+fieldDef.getOwner().getName()); } copyFieldDef.applyModifications(mod); } return copyFieldDef; }
[ "Clones the given field.\n\n@param fieldDef The field descriptor\n@param prefix A prefix for the name\n@return The cloned field" ]
[ "Obtain parameters from query\n\n@param query query to scan\n@return Map of parameters", "Use this API to unset the properties of filterhtmlinjectionparameter resource.\nProperties that need to be unset are specified in args array.", "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity", "Sets the set of site filters based on the given string.\n\n@param filters\ncomma-separates list of site keys, or \"-\" to filter all site\nlinks", "Set all unknown fields\n@param unknownFields the new unknown fields", "Login for a specific authentication, creating a new token.\n\n@param authentication authentication to assign to token\n@return token", "Log a byte array as a hex dump.\n\n@param data byte array", "Validates the deployment.\n\n@param isDomain {@code true} if this is a domain server, otherwise {@code false}\n\n@throws MojoDeploymentException if the deployment is invalid", "Use this API to fetch cachepolicylabel resource of given name ." ]
private void internalWriteNameValuePair(String name, String value) throws IOException { writeComma(); writeNewLineIndent(); writeName(name); if (m_pretty) { m_writer.write(' '); } m_writer.write(value); }
[ "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value" ]
[ "Puts value at given column\n\n@param value Will be encoded using UTF-8", "Handles the file deletions.\n\n@param cms the CMS context to use\n@param toDelete the resources to delete\n\n@throws CmsException if something goes wrong", "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name .", "Use this API to add clusterinstance resources.", "Use this API to fetch statistics of cmppolicy_stats resource of given name .", "Update the repeat number for a client path\n\n@param newNum new repeat number of the path\n@param path_id ID of the path\n@param client_uuid UUID of the client\n@throws Exception exception", "Return a long value from a prepared query.", "Sort and order steps to avoid unwanted generation", "generate a select-Statement according to query\n\n@param query the Query\n@param cld the ClassDescriptor" ]
public void stopServer() throws Exception { if (!externalDatabaseHost) { try (Connection sqlConnection = getConnection()) { sqlConnection.prepareStatement("SHUTDOWN").execute(); } catch (Exception e) { } try { server.stop(); } catch (Exception e) { } } }
[ "Shutdown the server\n\n@throws Exception exception" ]
[ "Returns the directory of the file.\n\n@param filePath Path of the file.\n@return The directory string or {@code null} if\nthere is no parent directory.\n@throws IllegalArgumentException if path is bad", "This method changes the value of an agent's belief through its external\naccess\n\n@param agent_name\nThe name of the agent to change a belief\n@param belief_name\nThe name of the belief to change\n@param new_value\nThe new value of the belief to be changed\n@param connector\nThe connector to get the external access", "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane", "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.", "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return", "Computes FPS average", "Ask the specified player for the specified artwork from the specified media slot, first checking if we have a\ncached copy.\n\n@param artReference uniquely identifies the desired artwork\n@param trackType the kind of track that owns the artwork\n\n@return the artwork, if it was found, or {@code null}\n\n@throws IllegalStateException if the ArtFinder is not running", "Update the default time unit for work based on data read from the file.\n\n@param column column data", "Adds all items from the iterator to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed" ]
protected final void setDerivedEndType() { m_endType = getPatternType().equals(PatternType.NONE) || getPatternType().equals(PatternType.INDIVIDUAL) ? EndType.SINGLE : null != getSeriesEndDate() ? EndType.DATE : EndType.TIMES; }
[ "Set the end type as derived from other values." ]
[ "Extent aware Delete by Query\n@param query\n@param cld\n@throws PersistenceBrokerException", "Generates an expression from a variable\n@param var The variable from which to generate the expression\n@return A expression that represents the given variable", "Compute singular values and U and V at the same time", "Drives the unit test.", "Changes to cluster OR store definition metadata results in routing\nstrategies changing. These changes need to be propagated to all the\nlisteners.\n\n@param cluster The updated cluster metadata\n@param storeDefs The updated list of store definition", "Do not call directly.\n@deprecated", "prefetch defined relationships requires JDBC level 2.0, does not work\nwith Arrays", "Updates the gatewayDirection attributes of all gateways.\n@param def", "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day" ]
public static final Integer parseMinutesFromHours(String value) { Integer result = null; if (value != null) { result = Integer.valueOf(Integer.parseInt(value) * 60); } return result; }
[ "Parse a duration in minutes form a number of hours.\n\n@param value String representation\n@return Integer instance" ]
[ "The user making this call must be a member of the team in order to add others.\nThe user to add must exist in the same organization as the team in order to be added.\nThe user to add can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the added user.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Use this API to unset the properties of onlinkipv6prefix resources.\nProperties that need to be unset are specified in args array.", "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", "Use this API to fetch nstrafficdomain_binding resource of given name .", "Delete all backups asynchronously", "Reads timephased assignment data.\n\n@param calendar current calendar\n@param assignment assignment data\n@param type flag indicating if this is planned or complete work\n@return list of timephased resource assignment instances", "Process class properties.\n\n@param writer output stream\n@param methodSet set of methods processed\n@param aClass class being processed\n@throws IntrospectionException\n@throws XMLStreamException", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key", "2-D Perlin noise function.\n\n@param x X Value.\n@param y Y Value.\n@return Returns function's value at point xy." ]
public void setOnKeyboardDone(final IntlPhoneInputListener listener) { mPhoneEdit.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { listener.done(IntlPhoneInput.this, isValid()); } return false; } }); }
[ "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener" ]
[ "On complete.\nSave response headers when needed.\n\n@param response\nthe response\n@return the response on single request", "Creates a quad consisting of two triangles, with the specified width and\nheight.\n\n@param gvrContext current {@link GVRContext}\n\n@param width\nthe quad's width\n@param height\nthe quad's height\n@return A 2D, rectangular mesh with four vertices and two triangles", "Add the string representation of the given object to this sequence. The given indentation will be prepended to\neach line except the first one if the object has a multi-line string representation.\n\n@param object\nthe appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.", "Calculate start dates for a monthly absolute recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Gets the Kullback Leibler divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kullback Leibler divergence between u and v.", "Retrieves the amount of work on a given day, and\nreturns it in the specified format.\n\n@param date target date\n@param format required format\n@return work duration", "Creates and returns a matrix which is idential to this one.\n\n@return A new identical matrix.", "Merges the item from the resultLocaleValues into the corresponding item of the localeValues.\n@param item the item to merge\n@param localeValues the values where the item gets merged into\n@param resultLocaleValues the values where the item to merge is read from\n@return the modified localeValues with the merged item" ]
public Collection<Contact> getListRecentlyUploaded(Date lastUpload, String filter) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST_RECENTLY_UPLOADED); if (lastUpload != null) { parameters.put("date_lastupload", String.valueOf(lastUpload.getTime() / 1000L)); } if (filter != null) { parameters.put("filter", filter); } Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element contactsElement = response.getPayload(); NodeList contactNodes = contactsElement.getElementsByTagName("contact"); for (int i = 0; i < contactNodes.getLength(); i++) { Element contactElement = (Element) contactNodes.item(i); Contact contact = new Contact(); contact.setId(contactElement.getAttribute("nsid")); contact.setUsername(contactElement.getAttribute("username")); contact.setRealName(contactElement.getAttribute("realname")); contact.setFriend("1".equals(contactElement.getAttribute("friend"))); contact.setFamily("1".equals(contactElement.getAttribute("family"))); contact.setIgnored("1".equals(contactElement.getAttribute("ignored"))); contact.setOnline(OnlineStatus.fromType(contactElement.getAttribute("online"))); contact.setIconFarm(contactElement.getAttribute("iconfarm")); contact.setIconServer(contactElement.getAttribute("iconserver")); if (contact.getOnline() == OnlineStatus.AWAY) { contactElement.normalize(); contact.setAwayMessage(XMLUtilities.getValue(contactElement)); } contacts.add(contact); } return contacts; }
[ "Return a list of contacts for a user who have recently uploaded photos along with the total count of photos uploaded.\n\n@param lastUpload\nLimits the resultset to contacts that have uploaded photos since this date. The date should be in the form of a Unix timestamp. The default,\nand maximum, offset is (1) hour. (Optional, can be null)\n@param filter\nLimit the result set to all contacts or only those who are friends or family.<br/>\nValid options are: <b>ff</b> -&gt; friends and family, <b>all</b> -&gt; all your contacts. (Optional, can be null)\n\n@return List of Contacts\n@throws FlickrException" ]
[ "Set the color for the statusBar\n\n@param statusBarColor", "Sets the specified float attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data", "Returns the mode in the Collection. If the Collection has multiple modes, this method picks one\narbitrarily.", "Return true if the processor of the node has previously been executed.\n\n@param processorGraphNode the node to test.", "Set the menu view from a layout resource.\n\n@param layoutResId Resource ID to be inflated.", "Performs a matrix inversion operations that takes advantage of the special\nproperties of a covariance matrix.\n\n@param cov A covariance matrix. Not modified.\n@param cov_inv The inverse of cov. Modified.\n@return true if it could invert the matrix false if it could not.", "Set the default size of the texture buffers. You can call this to reduce the buffer size\nof views with anti-aliasing issue.\n\nThe max value to the buffer size should be the Math.max(width, height) of attached view.\n\n@param size buffer size. Value > 0 and <= Math.max(width, height).", "Scans given archive for files passing given filter, adds the results into given list." ]
private String getTaskField(int key) { String result = null; if ((key > 0) && (key < m_taskNames.length)) { result = m_taskNames[key]; } return (result); }
[ "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name" ]
[ "Returns a name for the principal based upon one of the attributes\nof the main CommonProfile. The attribute name used to query the CommonProfile\nis specified in the constructor.\n\n@return a name for the Principal or null if the attribute is not populated.", "Triggers the building process, builds, creates and starts the docker container associated with the requested\ncontainer object, creates the container object and returns it\n\n@return the created container object\n\n@throws IllegalAccessException\nif there is an error accessing the container object fields\n@throws IOException\nif there is an I/O error while preparing the docker build\n@throws InvocationTargetException\nif there is an error while calling the DockerFile archive creation", "Generate a call to the delegate object.", "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", "perform rollback on all tx-states", "Send a sync command to all registered listeners.\n\n@param command the byte which identifies the type of sync command we received", "Delete the proxy history for the active profile\n\n@throws Exception exception", "Use this API to fetch lbmonitor_binding resource of given name .", "Returns a set of beans specialized by this bean. An empty set is returned if this bean does not specialize another beans." ]
private ClassDescriptor getRealClassDescriptor(ClassDescriptor aCld, Object anObj) { ClassDescriptor result; if(aCld.getClassOfObject() == ProxyHelper.getRealClass(anObj)) { result = aCld; } else { result = aCld.getRepository().getDescriptorFor(anObj.getClass()); } return result; }
[ "Answer the real ClassDescriptor for anObj\nie. aCld may be an Interface of anObj, so the cld for anObj is returned" ]
[ "The token was previously determined as potentially to-be-splitted thus we\nemit additional indentation or dedenting tokens.", "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.", "Returns all tags that designate this tag. E.g., for \"tesla-model3\", this would return \"car\", \"vehicle\", \"vendor-tesla\" etc.", "The user to remove can be referenced by their globally unique user ID or their email address.\nRemoves the user from the specified team. Returns an empty data record.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Loads configuration from InputStream. Later loads have lower priority.\n\n@param in InputStream to load from\n@since 1.2.0", "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Determine if a job name and job type are valid.\n@param jobName the name of the job\n@param jobType the class of the job\n@throws IllegalArgumentException if the name or type are invalid", "Checks if a point is in the given rectangle.\n\n@param _Rect rectangle which is checked\n@param _X x-coordinate of the point\n@param _Y y-coordinate of the point\n@return True if the points intersects with the rectangle.", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region" ]
public void setDay(Day d) { if (m_day != null) { m_parentCalendar.removeHoursFromDay(this); } m_day = d; m_parentCalendar.attachHoursToDay(this); }
[ "Set day.\n\n@param d day instance" ]
[ "Read one collection element from the current row of the JDBC result set\n\n@param optionalOwner the collection owner\n@param optionalKey the collection key\n@param persister the collection persister\n@param descriptor the collection aliases\n@param rs the result set\n@param session the session\n@throws HibernateException if an error occurs\n@throws SQLException if an error occurs during the query execution", "Handles the response of the SerialApiGetInitData request.\n@param incomingMlivessage the response message to process.", "Checks whether a character sequence matches against a specified pattern or not.\n\n@param pattern\npattern, that the {@code chars} must correspond to\n@param chars\na readable sequence of {@code char} values which should match the given pattern\n@return {@code true} when {@code chars} matches against the passed {@code pattern}, otherwise {@code false}", "Returns the editable columns for the provided edit mode.\n@param mode the edit mode.\n@return the editable columns for the provided edit mode.", "Check the given JWT\n\n@param jwtString the JSON Web Token\n@return the parsed and verified token or null if token is invalid\n@throws ParseException if the token cannot be parsed", "Process the module and bundle roots and cross check with the installed information.\n\n@param conf the installed configuration\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the processed layers\n@throws IOException", "Check if new license pattern is valid and doesn't match any existing one\n@param newComer License being added or edited\n@throws WebApplicationException if conflicts involving the newComer are detected", "Send a lifecycle announcement to all registered listeners.\n\n@param logger the logger to use, so the log entry shows as belonging to the proper subclass.\n@param starting will be {@code true} if the DeviceFinder is starting, {@code false} if it is stopping.", "Populate the expanded exceptions list based on the main exceptions list.\nWhere we find recurring exception definitions, we generate individual\nexceptions for each recurrence to ensure that we account for them correctly." ]
public static <T> ServiceFuture<T> fromResponse(final Observable<ServiceResponse<T>> observable) { final ServiceFuture<T> serviceFuture = new ServiceFuture<>(); serviceFuture.subscription = observable .last() .subscribe(new Action1<ServiceResponse<T>>() { @Override public void call(ServiceResponse<T> t) { serviceFuture.set(t.body()); } }, new Action1<Throwable>() { @Override public void call(Throwable throwable) { serviceFuture.setException(throwable); } }); return serviceFuture; }
[ "Creates a ServiceCall from an observable object.\n\n@param observable the observable to create from\n@param <T> the type of the response\n@return the created ServiceCall" ]
[ "Read an individual remark type from a Gantt Designer file.\n\n@param remark remark type", "Removes a value from the list box. Nothing is done if the value isn't on\nthe list box.\n\n@param value the value to be removed from the list\n@param reload perform a 'material select' reload to update the DOM.", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add.", "Get a property as a float or throw an exception.\n\n@param key the property name", "Returns an interval representing the subtraction of the\ngiven interval from this one.\n@param other interval to subtract from this one\n@return result of subtraction", "Set the host.\n\n@param host the host", "Adds to this set all of the elements in the specified map of members and their score.\n@param scoredMember the members to add together with their scores\n@return the number of members actually added", "Collapse repeated records, using exact string match on the record.\nThis is generally useful for making very verbose logs more readable.\n@return this", "a simple contains helper method, checks if array contains a numToCheck\n\n@param array array of ints\n@param numToCheck value to find\n@return True if found, false otherwise" ]
private void addCalendarException(MpxjTreeNode parentNode, final ProjectCalendarException exception) { MpxjTreeNode exceptionNode = new MpxjTreeNode(exception, CALENDAR_EXCEPTION_EXCLUDED_METHODS) { @Override public String toString() { return m_dateFormat.format(exception.getFromDate()); } }; parentNode.add(exceptionNode); addHours(exceptionNode, exception); }
[ "Add an exception to a calendar.\n\n@param parentNode parent node\n@param exception calendar exceptions" ]
[ "Sets the scale vector of the keyframe.", "Check that the scope type is allowed by the stereotypes on the bean and\nthe bean type", "Returns the metallic factor for PBR shading", "Use this API to fetch statistics of gslbservice_stats resource of given name .", "Retrieve a timestamp field.\n\n@param dateName field containing the date component\n@param timeName field containing the time component\n@return Date instance", "Update the central directory signature of a .jar.\n\n@param file the file to process\n@param searchPattern the search patter to use\n@param badSkipBytes the bad bytes skip table\n@param newSig the new signature\n@param endSig the expected signature\n@throws IOException", "generate a prepared DELETE-Statement according to query\n@param query the Query\n@param cld the ClassDescriptor", "Use this API to fetch all the nd6ravariables resources that are configured on netscaler.", "Start with specifying the groupId" ]
private void writeResourceExtendedAttributes(Project.Resources.Resource xml, Resource mpx) { Project.Resources.Resource.ExtendedAttribute attrib; List<Project.Resources.Resource.ExtendedAttribute> extendedAttributes = xml.getExtendedAttribute(); for (ResourceField mpxFieldID : getAllResourceExtendedAttributes()) { Object value = mpx.getCachedValue(mpxFieldID); if (FieldTypeHelper.valueIsNotDefault(mpxFieldID, value)) { m_extendedAttributesInUse.add(mpxFieldID); Integer xmlFieldID = Integer.valueOf(MPPResourceField.getID(mpxFieldID) | MPPResourceField.RESOURCE_FIELD_BASE); attrib = m_factory.createProjectResourcesResourceExtendedAttribute(); extendedAttributes.add(attrib); attrib.setFieldID(xmlFieldID.toString()); attrib.setValue(DatatypeConverter.printExtendedAttribute(this, value, mpxFieldID.getDataType())); attrib.setDurationFormat(printExtendedAttributeDurationFormat(value)); } } }
[ "This method writes extended attribute data for a resource.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource" ]
[ "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag", "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions", "Runs the print.\n\n@param args the cli arguments\n@throws Exception", "judge if an point in the area or not\n\n@param point\n@param area\n@param offsetRatio\n@return", "Schedule at most one task.\n\nThe scheduled task *must* invoke 'doneTask()' upon\ncompletion/termination.\n\n@param executeService flag to control execution of the service, some tests pass\nin value 'false'\n@return The task scheduled or null if not possible to schedule a task at\nthis time.", "Join a group as a public member.\n\nNote: if a group has rules - the client must display the rules to the user and the user must accept them prior to joining the group. The acceptRules\nparameter indicates that the user has accepted those rules.\n\n@param groupId\n- the id of the group to join\n@param acceptRules\n- if a group has rules, true indicates the user has accepted the rules\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.join.html\">flickr.groups.join</a>", "If there is an unprocessed change event for a particular document ID, fetch it from the\nappropriate namespace change stream listener, and remove it. By reading the event here, we are\nassuming it will be processed by the consumer.\n\n@return the latest unprocessed change event for the given document ID and namespace, or null\nif none exists.", "Get the inactive overlay directories.\n\n@return the inactive overlay directories" ]
private static EndpointReferenceType createEPR(Server server, String address, SLProperties props) { EndpointReferenceType sourceEPR = server.getEndpoint().getEndpointInfo().getTarget(); EndpointReferenceType targetEPR = WSAEndpointReferenceUtils.duplicate(sourceEPR); WSAEndpointReferenceUtils.setAddress(targetEPR, address); if (props != null) { addProperties(targetEPR, props); } return targetEPR; }
[ "Creates an endpoint reference by duplicating the endpoint reference of a given server.\n@param server\n@param address\n@param props\n@return" ]
[ "Returns a compact representation of all of the subtasks of a task.\n\n@param task The task to get the subtasks of.\n@return Request object", "those could be incorporated with above, but that would blurry everything.", "Sets the category display options that affect how the category selection dialog is shown.\n\n@param displayCategoriesByRepository if true, the categories are shown separated by repository.\n@param displayCategorySelectionCollapsed if true, the selection dialog opens showing only the top-level categories\n(or the various repositories) in collapsed state.", "Removes the row with the specified key from this association.\n\n@param key the key of the association row to remove", "Creates the string mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param position\nthe position\n@throws IOException\nSignals that an I/O exception has occurred.", "Counts the number of elements in A which are not zero.\n@param A A matrix\n@return number of non-zero elements", "Returns the integer value o the given belief", "Stop offering shared dbserver sessions.", "This method allows a resource calendar to be added to a resource.\n\n@return ResourceCalendar\n@throws MPXJException if more than one calendar is added" ]
public boolean shouldNotCache(String requestUri) { String uri = requestUri.toLowerCase(); return checkContains(uri, noCacheIdentifiers) || checkSuffixes(uri, noCacheSuffixes); }
[ "Should the URI explicitly not be cached.\n\n@param requestUri request URI\n@return true when caching is prohibited" ]
[ "Instantiate Service Locator client. After successful instantiation\nestablish a connection to the Service Locator server. This method will be\ncalled if property locatorClient is null. For this purpose was defined\nadditional properties to instantiate ServiceLocatorImpl.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Resolve the single type argument of the given generic interface against the given\ntarget method which is assumed to return the given interface or an implementation\nof it.\n@param method the target method to check the return type of\n@param genericIfc the generic interface or superclass to resolve the type argument from\n@return the resolved parameter type of the method return type, or {@code null}\nif not resolvable or if the single argument is of type {@link WildcardType}.", "Saves messages to a propertyvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails.", "Toggle between single events and series.\n@param isSeries flag, indicating if we want a series of events.", "Creates an option to deploy existing content to the runtime for each deployment\n\n@param deployments a set of deployments to deploy\n\n@return the deploy operation", "Calling this twice will not actually overwrite the gauge\n\n@param collectionSizeGauge", "Should use as destroy method. Disconnects from a Service Locator server.\nAll endpoints that were registered before are removed from the server.\nSet property locatorClient to null.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "get children nodes name\n\n@param zkClient zkClient\n@param path full path\n@return children nodes name or null while path not exist", "This method retrieves a Duration instance representing the amount of\nwork between two dates based on this calendar.\n\n@param startDate start date\n@param endDate end date\n@param format required duration format\n@return amount of work" ]
public Set<Annotation> getPropertyAnnotations() { if (accessor instanceof PropertyAwareAccessor) { return unmodifiableSet(((PropertyAwareAccessor) accessor).getReadMethodAnnotations()); } return unmodifiableSet(Collections.<Annotation>emptySet()); }
[ "If this node represents a bean property this method returns all annotations of its getter.\n\n@return A set of annotations of this nodes property getter or an empty set." ]
[ "Get a setted section knowing his title\n\nN.B. this search only into section list and bottom section list.\n@param title is the title of the section\n@return the section with title or null if the section is not founded", "Returns a new Set containing all the objects in the specified array.", "Reads the current properties for a language. If not already done, the properties are read from the respective file.\n@param locale the locale for which the localization should be returned.\n@return the properties.\n@throws IOException thrown if reading the properties from a file fails.\n@throws CmsException thrown if reading the properties from a file fails.", "Returns if this has any mapping for the specified cell.\n\n@param cell the cell name\n@return {@code true} if there is any mapping for the cell, {@code false} otherwise", "Handler for month changes.\n@param event change event.", "Save a weak reference to the resource", "Returns the complete Grapes root URL\n\n@return String", "Return the name of the current conf set\n@return the conf set name", "Get information about a partition in this database.\n\n@param partitionKey database partition key\n@return {@link com.cloudant.client.api.model.PartitionInfo} encapsulating the database partition info.\n@throws UnsupportedOperationException if called with {@code null} partition key." ]
private static void setDpiValue(final Multimap<String, String> extraParams, final int dpi) { String searchKey = "FORMAT_OPTIONS"; for (String key: extraParams.keys()) { if (key.equalsIgnoreCase(searchKey)) { Collection<String> values = extraParams.removeAll(key); List<String> newValues = new ArrayList<>(); for (String value: values) { if (!StringUtils.isEmpty(value)) { value += ";dpi:" + Integer.toString(dpi); newValues.add(value); } } extraParams.putAll(key, newValues); return; } } }
[ "Set the DPI value for GeoServer if there are already FORMAT_OPTIONS." ]
[ "Get a list of the members of a group. The call must be signed on behalf of a Flickr member, and the ability to see the group membership will be\ndetermined by the Flickr member's group privileges.\n\n@param groupId\nReturn a list of members for this group. The group must be viewable by the Flickr member on whose behalf the API call is made.\n@param memberTypes\nA set of Membertypes as available as constants in {@link Member}.\n@param perPage\nNumber of records per page.\n@param page\nResult-section.\n@return A members-list\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.members.getList.html\">API Documentation</a>", "Print a percent complete value.\n\n@param value Double instance\n@return percent complete value", "Returns true if \"file\" is a subfile or subdirectory of \"dir\".\n\nFor example with the directory /path/to/a, the following return values would occur:\n\n/path/to/a/foo.txt - true /path/to/a/bar/zoo/boo/team.txt - true /path/to/b/foo.txt - false", "Use this API to fetch lbvserver_scpolicy_binding resources of given name .", "Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Converts any path into something that can be placed in an Android directory.\n\nTraverses any subdirectories and flattens it all into a single filename. Also\ngets rid of commonly seen illegal characters in tz identifiers, and lower cases\nthe entire thing.\n\n@param path the path to convert\n@return a flat path with no directories (and lower-cased)", "Add the given headers to the given HTTP request.\n@param httpRequest the request to add the headers to\n@param headers the headers to add", "Checks if the given project exists or not.\n\n@param name project name\n@return true/false\n@throws IllegalArgumentException", "Use this API to fetch all the appfwlearningsettings resources that are configured on netscaler." ]
private boolean markAsObsolete(ContentReference ref) { if (obsoleteContents.containsKey(ref.getHexHash())) { //This content is already marked as obsolete if (obsoleteContents.get(ref.getHexHash()) + obsolescenceTimeout < System.currentTimeMillis()) { DeploymentRepositoryLogger.ROOT_LOGGER.obsoleteContentCleaned(ref.getContentIdentifier()); removeContent(ref); return true; } } else { obsoleteContents.put(ref.getHexHash(), System.currentTimeMillis()); //Mark content as obsolete } return false; }
[ "Mark content as obsolete. If content was already marked for obsolescenceTimeout ms then it is removed.\n\n@param ref the content refrence to be marked as obsolete.\n\n@return true if the content refrence is removed, fale otherwise." ]
[ "Creates the project used to import module resources and sets it on the CmsObject.\n\n@param cms the CmsObject to set the project on\n@param module the module\n@return the created project\n@throws CmsException if something goes wrong", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000.", "Handles incoming Send Data Request. Send Data request are used\nto acknowledge or cancel failed messages.\n@param incomingMessage the request message to process.", "Retrieves the members of the type and of its super types.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param paramName The feature to be added to the MembersInclSupertypes attribute\n@param paramValue The feature to be added to the MembersInclSupertypes attribute\n@throws XDocletException If an error occurs", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Converts the string of given content to an input stream.\n\n@param content the string content.\n@param charset the charset for conversion.\n@return the stream (should be closed by invoker).", "Log a byte array.\n\n@param label label text\n@param data byte array", "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs", "Use this API to fetch statistics of lbvserver_stats resource of given name ." ]
private void populateResourceAssignmentWorkgroupFields(Record record, ResourceAssignmentWorkgroupFields workgroup) throws MPXJException { workgroup.setMessageUniqueID(record.getString(0)); workgroup.setConfirmed(NumberHelper.getInt(record.getInteger(1)) == 1); workgroup.setResponsePending(NumberHelper.getInt(record.getInteger(1)) == 1); workgroup.setUpdateStart(record.getDateTime(3)); workgroup.setUpdateFinish(record.getDateTime(4)); workgroup.setScheduleID(record.getString(5)); }
[ "Populate a resource assignment workgroup instance.\n\n@param record MPX record\n@param workgroup workgroup instance\n@throws MPXJException" ]
[ "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "Returns a flag indicating if also expired resources should be found.\n@return A flag indicating if also expired resources should be found.", "Get the account knowing his title\n@param title the title of the account (it can change at runtime!)\n@return the account founded or null if the account not exists", "Returns the later of two dates, handling null values. A non-null Date\nis always considered to be later than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date latest date", "Updates the styling and content of the internal text area based on the real value, the ghost value, and whether\nit has focus.", "Returns the header with the specified name from the supplied map. The\nheader lookup is case-insensitive.\n\n@param headers A <code>Map</code> containing the HTTP request headers.\n@param name The name of the header to return.\n@return The value of specified header, or a comma-separated list if there\nwere multiple headers of that name.", "This method is called to format a date. It will return the null text\nif a null value is supplied.\n\n@param value date value\n@return formatted date value", "Processes a runtime procedure argument tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"field-ref\" optional=\"true\" description=\"Identifies the field that provides the value\nif a runtime argument; if not set, then null is used\"\[email protected] name=\"name\" optional=\"false\" description=\"The identifier of the argument tag\"\[email protected] name=\"return\" optional=\"true\" description=\"Whether this is a return value (if a runtime argument)\"\nvalues=\"true,false\"\[email protected] name=\"value\" optional=\"false\" description=\"The value if a constant argument\"", "Set an enterprise duration value.\n\n@param index duration index (1-30)\n@param value duration value" ]
TrackMetadata queryMetadata(final DataReference track, final CdjStatus.TrackType trackType, final Client client) throws IOException, InterruptedException, TimeoutException { // Send the metadata menu request if (client.tryLockingForMenuOperations(20, TimeUnit.SECONDS)) { try { final Message.KnownType requestType = (trackType == CdjStatus.TrackType.REKORDBOX) ? Message.KnownType.REKORDBOX_METADATA_REQ : Message.KnownType.UNANALYZED_METADATA_REQ; final Message response = client.menuRequestTyped(requestType, Message.MenuIdentifier.MAIN_MENU, track.slot, trackType, new NumberField(track.rekordboxId)); final long count = response.getMenuResultsCount(); if (count == Message.NO_MENU_RESULTS_AVAILABLE) { return null; } // Gather the cue list and all the metadata menu items final List<Message> items = client.renderMenuItems(Message.MenuIdentifier.MAIN_MENU, track.slot, trackType, response); final CueList cueList = getCueList(track.rekordboxId, track.slot, client); return new TrackMetadata(track, trackType, items, cueList); } finally { client.unlockForMenuOperations(); } } else { throw new TimeoutException("Unable to lock the player for menu operations"); } }
[ "Request metadata for a specific track ID, given a dbserver connection to a player that has already been set up.\nSeparated into its own method so it could be used multiple times with the same connection when gathering\nall track metadata.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved metadata, or {@code null} if there is no such track\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations" ]
[ "add a FK column pointing to the item Class", "Deletes the concrete representation of the specified object in the underlying\npersistence system. This method is intended for use in top-level api or\nby internal calls.\n\n@param obj The object to delete.\n@param ignoreReferences With this flag the automatic deletion/unlinking\nof references can be suppressed (independent of the used auto-delete setting in metadata),\nexcept {@link org.apache.ojb.broker.metadata.SuperReferenceDescriptor}\nthese kind of reference (descriptor) will always be performed. If <em>true</em>\nall \"normal\" referenced objects will be ignored, only the specified object is handled.\n@throws PersistenceBrokerException", "Drives the unit test.", "Adds an item to the list box, specifying an initial value for the item.\n\n@param value the item's value, to be submitted if it is part of a\n{@link FormPanel}; cannot be <code>null</code>\n@param text the text of the item to be added\n@param reload perform a 'material select' reload to update the DOM.", "Adds the dependencies typical for particular deployment types.\nThis is not accurate and doesn't cover the real needs of the project.\nBasically it's just to have \"something\" for the initial implementation.", "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>.", "Bind a prepared statment that represents a call to a procedure or\nuser-defined function.\n\n@param stmt the statement to bind.\n@param cld the class descriptor of the object that triggered the\ninvocation of the procedure or user-defined function.\n@param obj the object that triggered the invocation of the procedure\nor user-defined function.\n@param proc the procedure descriptor that provides information about\nthe arguments that shoudl be passed to the procedure or\nuser-defined function", "Curries a function that takes four arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes three arguments. Never <code>null</code>.", "Updates the database. Never call this during normal operations, upgrade is a user-controlled operation." ]
private StateVertex addStateToCurrentState(StateVertex newState, Eventable eventable) { LOGGER.debug("addStateToCurrentState currentState: {} newState {}", currentState.getName(), newState.getName()); // Add the state to the stateFlowGraph. Store the result StateVertex cloneState = stateFlowGraph.putIfAbsent(newState); // Is there a clone detected? if (cloneState != null) { LOGGER.info("CLONE State detected: {} and {} are the same.", newState.getName(), cloneState.getName()); LOGGER.debug("CLONE CURRENT STATE: {}", currentState.getName()); LOGGER.debug("CLONE STATE: {}", cloneState.getName()); LOGGER.debug("CLONE CLICKABLE: {}", eventable); boolean added = stateFlowGraph.addEdge(currentState, cloneState, eventable); if (!added) { LOGGER.debug("Clone edge !! Need to fix the crawlPath??"); } } else { stateFlowGraph.addEdge(currentState, newState, eventable); LOGGER.info("State {} added to the StateMachine.", newState.getName()); } return cloneState; }
[ "Adds the newState and the edge between the currentState and the newState on the SFG.\n\n@param newState the new state.\n@param eventable the clickable causing the new state.\n@return the clone state iff newState is a clone, else returns null" ]
[ "Create a transactional protocol client.\n\n@param channelAssociation the channel handler\n@return the transactional protocol client", "Create an error image should an error occur while fetching a WMS map.\n\n@param width image width\n@param height image height\n@param e exception\n@return error image\n@throws java.io.IOException oops", "Read a two byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "Convert an MPXJ Duration instance into an integer duration in minutes\nready to be written to an MPX file.\n\n@param properties project properties, used for duration units conversion\n@param duration Duration instance\n@return integer duration in minutes", "Record a content loader for a given patch id.\n\n@param patchID the patch id\n@param contentLoader the content loader", "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "Detect if the given object has a PK field represents a 'null' value.", "If the DefaultActionInvocation has been executed before and the Result is\nan instance of ActionChainResult, this method will walk down the chain of\nActionChainResults until it finds a non-chain result, which will be\nreturned. If the DefaultActionInvocation's result has not been executed\nbefore, the Result instance will be created and populated with the result\nparams.\n\n@return a Result instance\n@throws Exception", "Parses an item id\n\n@param id\nthe identifier of the entity, such as \"Q42\"\n@param siteIri\nthe siteIRI that this value refers to\n@throws IllegalArgumentException\nif the id is invalid" ]
private List<TimephasedWork> splitWork(CostRateTable table, ProjectCalendar calendar, TimephasedWork work, int rateIndex) { List<TimephasedWork> result = new LinkedList<TimephasedWork>(); work.setTotalAmount(Duration.getInstance(0, work.getAmountPerDay().getUnits())); while (true) { CostRateTableEntry rate = table.get(rateIndex); Date splitDate = rate.getEndDate(); if (splitDate.getTime() >= work.getFinish().getTime()) { result.add(work); break; } Date currentPeriodEnd = calendar.getPreviousWorkFinish(splitDate); TimephasedWork currentPeriod = new TimephasedWork(work); currentPeriod.setFinish(currentPeriodEnd); result.add(currentPeriod); Date nextPeriodStart = calendar.getNextWorkStart(splitDate); work.setStart(nextPeriodStart); ++rateIndex; } return result; }
[ "Splits timephased work segments in line with cost rates. Note that this is\nan approximation - where a rate changes during a working day, the second\nrate is used for the whole day.\n\n@param table cost rate table\n@param calendar calendar used by this assignment\n@param work timephased work segment\n@param rateIndex rate applicable at the start of the timephased work segment\n@return list of segments which replace the one supplied by the caller" ]
[ "Gets information about this collaboration.\n\n@return info about this collaboration.", "Reports a given exception as a RuntimeException, since the interface does\nnot allow us to throw checked exceptions directly.\n\n@param e\nthe exception to report\n@throws RuntimeException\nin all cases", "Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .", "Use this API to fetch vpnvserver_authenticationsamlpolicy_binding resources of given name .", "Exports a single queue to an XML file.", "Convert custom info.\n\n@param customInfo the custom info map\n@return the custom info type", "Wait for exclusive permit during a timeout in milliseconds.\n\n@return number of acquired permits if > 0", "The normalized string returned by this method is consistent with java.net.Inet6address.\n\nIPs are not compressed nor mixed in this representation. If this has a prefix length, that will be included in the string.", "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use" ]
public Date toDate(Object date) { Date d = null; if (null != date) { if (date instanceof Date) { d = (Date)date; } else if (date instanceof Long) { d = new Date(((Long)date).longValue()); } else { try { long l = Long.parseLong(date.toString()); d = new Date(l); } catch (Exception e) { // do nothing, just let d remain null } } } return d; }
[ "Converts the provided object to a date, if possible.\n\n@param date the date.\n\n@return the date as {@link java.util.Date}" ]
[ "Set the offsets in the compressed data area for each mip-map level.\n@param offsets array of offsets", "Remove the nodes representing the entity and the embedded elements attached to it.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values of the key identifying the entity to remove", "A Maven stub is a Maven Project for which we have found information, but the project has not yet been located\nwithin the input application. If we have found an application of the same GAV within the input app, we should\nfill out this stub instead of creating a new one.", "Turn this profile on or off\n\n@param enabled true or false\n@return true on success, false otherwise", "Set the value of a field using its alias.\n\n@param alias field alias\n@param value field value", "Delete a server group by id\n\n@param id server group ID", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests", "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one.", "Use this API to update clusternodegroup." ]
public void addBatch(PreparedStatement stmt) throws PlatformException { // Check for Oracle batching support final boolean statementBatchingSupported = m_batchStatementsInProgress.containsKey(stmt); if (statementBatchingSupported) { try { stmt.executeUpdate(); } catch (SQLException e) { throw new PlatformException(e.getLocalizedMessage(), e); } } else { super.addBatch(stmt); } }
[ "Try Oracle update batching and call executeUpdate or revert to\nJDBC update batching.\n@param stmt the statement beeing added to the batch\n@throws PlatformException upon JDBC failure" ]
[ "Support the subscript operator for GString.\n\n@param text a GString\n@param index the index of the Character to get\n@return the Character at the given index\n@since 2.3.7", "Triggers collapse of the parent.", "Prints dependencies recovered from the methods of a class. A\ndependency is inferred only if another relation between the two\nclasses is not already in the graph.\n@param classes", "Use this API to fetch statistics of appfwpolicy_stats resource of given name .", "Returns the key value in the given array.\n\n@param keyIndex the index of the scale key", "Convert a document List into arrays storing the data features and labels.\n\n@param document\nTraining documents\n@return A Pair, where the first element is an int[][][] representing the\ndata and the second element is an int[] representing the labels", "Read a text stream into a single string.\n\n@param inputStream\nStream containing text. Will be closed on exit.\n@return The contents, or null on error.", "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "Sets the content type for this ID\n\n@param pathId ID of path\n@param contentType content type value" ]
private void removeGroupIdFromTablePaths(int groupIdToRemove) { PreparedStatement queryStatement = null; PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { queryStatement = sqlConnection.prepareStatement("SELECT * FROM " + Constants.DB_TABLE_PATH); results = queryStatement.executeQuery(); // this is a hashamp from a pathId to the string of groups HashMap<Integer, String> idToGroups = new HashMap<Integer, String>(); while (results.next()) { int pathId = results.getInt(Constants.GENERIC_ID); String stringGroupIds = results.getString(Constants.PATH_PROFILE_GROUP_IDS); int[] groupIds = Utils.arrayFromStringOfIntegers(stringGroupIds); String newGroupIds = ""; for (int i = 0; i < groupIds.length; i++) { if (groupIds[i] != groupIdToRemove) { newGroupIds += (groupIds[i] + ","); } } idToGroups.put(pathId, newGroupIds); } // now i want to go though the hashmap and for each pathId, add // update the newGroupIds for (Map.Entry<Integer, String> entry : idToGroups.entrySet()) { Integer pathId = entry.getKey(); String newGroupIds = entry.getValue(); statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_PATH + " SET " + Constants.PATH_PROFILE_GROUP_IDS + " = ? " + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setString(1, newGroupIds); statement.setInt(2, pathId); statement.executeUpdate(); } } catch (SQLException e) { e.printStackTrace(); } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (queryStatement != null) { queryStatement.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Remove all references to a groupId\n\n@param groupIdToRemove ID of group" ]
[ "Get image Id from imageTag using DockerBuildInfoHelper client.\n\n@param imageTag\n@param host\n@return", "Writes the given configuration to the given file.", "Returns the locale specified by the named scoped attribute or context\nconfiguration parameter.\n\n<p> The named scoped attribute is searched in the page, request,\nsession (if valid), and application scope(s) (in this order). If no such\nattribute exists in any of the scopes, the locale is taken from the\nnamed context configuration parameter.\n\n@param pageContext the page in which to search for the named scoped\nattribute or context configuration parameter\n@param name the name of the scoped attribute or context configuration\nparameter\n\n@return the locale specified by the named scoped attribute or context\nconfiguration parameter, or <tt>null</tt> if no scoped attribute or\nconfiguration parameter with the given name exists", "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists of RTFEmbeddedObject instances", "Make a sort order for use in a query.", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "Initializes an annotation class\n\n@param name The name of the annotation class\n@return The instance of the annotation. Returns a dummy if the class was\nnot found", "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", "Logs the time taken by this rule, and attaches this to the total for the RuleProvider" ]
public static base_responses disable(nitro_service client, Long clid[]) throws Exception { base_responses result = null; if (clid != null && clid.length > 0) { clusterinstance disableresources[] = new clusterinstance[clid.length]; for (int i=0;i<clid.length;i++){ disableresources[i] = new clusterinstance(); disableresources[i].clid = clid[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
[ "Use this API to disable clusterinstance resources of given names." ]
[ "Returns the body of the request. This method is used to read posted JSON data.\n\n@param request The request.\n\n@return String representation of the request's body.\n\n@throws IOException in case reading the request fails", "Use this API to fetch authenticationvserver_binding resource of given name .", "Load physics information for the current avatar\n@param filename name of physics file\n@param scene scene the avatar is part of\n@throws IOException if physics file cannot be parsed", "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "creates a shape list containing all child shapes and set it to the\ncurrent shape new shape get added to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Parses the configuration node and provides a pipeline configuration without any extensions marked for loading.\nThe configuration node is supposed to conform to the pipeline configuration JSON schema.\n\n<p>The caller is supposed to use the methods from the builder to add/find extension classes that will be used in\nthe analysis.\n\n<p>Note that the returned pipeline configuration might not contain all the extensions available in\nthe classloader depending on the include/exclude filters in the configuration.\n\n@param json the configuration node\n@return a pipeline configuration parsed from the configuration\n@see Builder#build()", "Use this API to unset the properties of Interface resource.\nProperties that need to be unset are specified in args array.", "Handle a start time change.\n\n@param event the change event", "Make a copy." ]
private String getContentFromPath(String sourcePath, HostsSourceType sourceType) throws IOException { String res = ""; if (sourceType == HostsSourceType.LOCAL_FILE) { res = PcFileNetworkIoUtils.readFileContentToString(sourcePath); } else if (sourceType == HostsSourceType.URL) { res = PcFileNetworkIoUtils.readStringFromUrlGeneric(sourcePath); } return res; }
[ "note that for read from file, this will just load all to memory. not fit\nif need to read a very large file. However for getting the host name.\nnormally it is fine.\n\nfor reading large file, should use iostream.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the content from path\n@throws IOException\nSignals that an I/O exception has occurred." ]
[ "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", "Checks if a newly created action wants to write output to stdout, and\nlogs a warning if other actions are doing the same.\n\n@param newAction\nthe new action to be checked", "We have received notification that a device is no longer on the network, so clear out all its waveforms.\n\n@param announcement the packet which reported the device’s disappearance", "Use this API to Shutdown shutdown.", "Return true if the expression is a constructor call on a class that matches the supplied.\n@param expression - the expression\n@param classNamePattern - the possible List of class names\n@return as described", "Import CountryList from RAW resource\n\n@param context Context\n@return CountryList", "Plots the rotated trajectory, spline and support points.", "This method writes project properties to a Planner file.", "Returns the title according to the given locale.\n@param locale the locale for which the title should be read.\n@return the title according to the given locale" ]
private MapRow getRow(int index) { MapRow result; if (index == m_rows.size()) { result = new MapRow(this, new HashMap<FastTrackField, Object>()); m_rows.add(result); } else { result = m_rows.get(index); } return result; }
[ "Retrieve a specific row by index number, creating a blank row if this row does not exist.\n\n@param index index number\n@return MapRow instance" ]
[ "This method populates the task model from data read from an MPX file.\n\n@param record data read from an MPX file\n@param isText flag indicating whether the textual or numeric data is being supplied", "return a prepared Insert Statement fitting for the given ClassDescriptor", "Await service container stability ignoring thread interruption.\n\n@param timeout maximum period to wait for service container stability\n@param timeUnit unit in which {@code timeout} is expressed\n\n@throws java.util.concurrent.TimeoutException if service container stability is not reached before the specified timeout", "Chooses a single segment to be compressed, or null if no segment could be chosen.\n@param options\n@param createMixed\n@return", "Initialize elements from the duration panel.", "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token", "Sets the text alignment for all cells in the row.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "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" ]
protected static List<String> parseMandatoryStringValues(JSONObject json, String key) throws JSONException { List<String> list = null; JSONArray array = json.getJSONArray(key); list = new ArrayList<String>(array.length()); for (int i = 0; i < array.length(); i++) { try { String entry = array.getString(i); list.add(entry); } catch (JSONException e) { LOG.info(Messages.get().getBundle().key(Messages.LOG_OPTIONAL_STRING_ENTRY_UNPARSABLE_1, key), e); } } return list; }
[ "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails." ]
[ "Adds the given service provider factory to the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Read a Synchro date from an input stream.\n\n@param is input stream\n@return Date instance", "Resumes a given entry point type;\n\n@param entryPoint The entry point", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000.", "Get by index is used here.", "Replaces each substring of this CharSequence that matches the given\nregular expression with the given replacement.\n\n@param self a CharSequence\n@param regex the capturing regex\n@param replacement the string to be substituted for each match\n@return the toString() of the CharSequence with content replaced\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see String#replaceAll(String, String)\n@since 1.8.2", "Set a variable in the top variables layer to given \"collection\" of the vertex frames. Can't be reassigned -\nthrows on attempt to reassign.", "Returns a single sort option configuration as configured via the methods parameter, or null if the parameter does not specify a sort option.\n@param json The JSON sort option configuration.\n@return The sort option configuration, or null if the JSON could not be read.", "Writes a vInt directly to a byte array\n\n@param dest The destination array for the vInt to be written to\n@param offset The location where to write the vInt to\n@param i The Value being written into byte array\n@return Returns the new offset location" ]
void publish() { assert publishedFullRegistry != null : "Cannot write directly to main registry"; writeLock.lock(); try { if (!modified) { return; } publishedFullRegistry.writeLock.lock(); try { publishedFullRegistry.clear(true); copy(this, publishedFullRegistry); pendingRemoveCapabilities.clear(); pendingRemoveRequirements.clear(); modified = false; } finally { publishedFullRegistry.writeLock.unlock(); } } finally { writeLock.unlock(); } }
[ "Publish the changes to main registry" ]
[ "Use this API to fetch a tmglobal_tmsessionpolicy_binding resources.", "The parameter must never be null\n\n@param queryParameters", "Retrieves the table structure for an Asta PP file. Subclasses determine the exact contents of the structure\nfor a specific version of the Asta PP file.\n\n@return PP file table structure", "Use this API to clear nspbr6.", "Try Oracle update batching and call setExecuteBatch or revert to\nJDBC update batching. See 12-2 Update Batching in the Oracle9i\nJDBC Developer's Guide and Reference.\n@param stmt the prepared statement to be used for batching\n@throws PlatformException upon JDBC failure", "Expands the cluster to include density-reachable items.\n\n@param cluster Cluster to expand\n@param point Point to add to cluster\n@param neighbors List of neighbors\n@param points the data set\n@param visited the set of already visited points\n@return the expanded cluster", "Creates the actual path to the xml file of the module.", "Load a cubemap texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource.TextureCallback, GVRAndroidResource, int)}\n- it will usually be more convenient (and more efficient) to call that\ndirectly.\n\n@param context\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param callback\nAsynchronous notifications\n@param resource\nBasically, a stream containing a compressed texture. Taking a\n{@link GVRAndroidResource} parameter eliminates six overloads.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}", "Validate an RIBean. This includes validating whether two beans specialize\nthe same bean\n\n@param bean the bean to validate\n@param beanManager the current manager\n@param specializedBeans the existing specialized beans" ]
public void setRightValue(int index, Object value) { m_definedRightValues[index] = value; if (value instanceof FieldType) { m_symbolicValues = true; } else { if (value instanceof Duration) { if (((Duration) value).getUnits() != TimeUnit.HOURS) { value = ((Duration) value).convertUnits(TimeUnit.HOURS, m_properties); } } } m_workingRightValues[index] = value; }
[ "Add the value to list of values to be used as part of the\nevaluation of this indicator.\n\n@param index position in the list\n@param value evaluation value" ]
[ "Login for a specific authentication, creating a specific token if given.\n\n@param token token to use\n@param authentication authentication to assign to token\n@return token", "Get the last non-white Y point\n@param img Image in memory\n@return The trimmed height", "Populates a calendar instance.\n\n@param record MPX record\n@param calendar calendar instance\n@param isBaseCalendar true if this is a base calendar", "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", "Prepare a parallel HTTP POST Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Readable yyyyMMdd representation of a day, which is also sortable.", "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return", "Add sub-deployment units to the container\n\n@param bdaMapping", "Get the value of a Annotation in a class declaration.\n@param classType\n@param annotationType\n@param attributeName\n@return the value of the annotation as String or null if something goes wrong" ]
public void fireRelationWrittenEvent(Relation relation) { if (m_projectListeners != null) { for (ProjectListener listener : m_projectListeners) { listener.relationWritten(relation); } } }
[ "This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation instance" ]
[ "Gets information about all of the group memberships for this user.\nDoes not support paging.\n\n<p>Note: This method is only available to enterprise admins.</p>\n\n@return a collection of information about the group memberships for this user.", "Use this API to unset the properties of sslparameter resource.\nProperties that need to be unset are specified in args array.", "calculate and set position to menu items", "Use this API to fetch auditsyslogpolicy_systemglobal_binding resources of given name .", "Add all elements in the iterator to the collection.\n\n@param target\n@param iterator\n@return true if the target was modified, false otherwise", "Clean wait task queue.", "Sets the whole day flag.\n@param isWholeDay flag, indicating if the event lasts whole days.", "Loads the configuration XML from the given string.\n@since 1.3", "Do synchronization of the given J2EE ODMG Transaction" ]
public static vpntrafficpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{ vpntrafficpolicy_aaagroup_binding obj = new vpntrafficpolicy_aaagroup_binding(); obj.set_name(name); vpntrafficpolicy_aaagroup_binding response[] = (vpntrafficpolicy_aaagroup_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name ." ]
[ "Returns a compact representation of all of the tags the task has.\n\n@param task The task to get tags on.\n@return Request object", "Generate a Jongo query regarding a set of parameters.\n\n@param params Map<queryKey, queryValue> of query parameters\n@return String", "Use this API to clear route6 resources.", "Whether the address has the well-known prefix for IPv4 translatable addresses as in rfc 6052 and 6144\n@return", "1-D Forward Discrete Hartley Transform.\n\n@param data Data.", "Sanity-check a new non-beat update, make sure we are still interpolating a sensible position, and correct\nas needed.\n\n@param lastTrackUpdate the most recent digested update received from a player\n@param newDeviceUpdate a new status update from the player\n@param beatGrid the beat grid for the track that is playing, in case we have jumped\n\n@return the playback position we believe that player has reached at that point in time", "Perform a post-boot scan to remove any deployments added during boot that failed to deploy properly.\nThis method isn't private solely to allow a unit test in the same package to call it.", "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", "Magnitude of complex number.\n\n@param z Complex number.\n@return Magnitude of complex number." ]
public static nslimitidentifier_binding get(nitro_service service, String limitidentifier) throws Exception{ nslimitidentifier_binding obj = new nslimitidentifier_binding(); obj.set_limitidentifier(limitidentifier); nslimitidentifier_binding response = (nslimitidentifier_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch nslimitidentifier_binding resource of given name ." ]
[ "Returns an array of normalized strings for this host name instance.\n\nIf this represents an IP address, the address segments are separated into the returned array.\nIf this represents a host name string, the domain name segments are separated into the returned array,\nwith the top-level domain name (right-most segment) as the last array element.\n\nThe individual segment strings are normalized in the same way as {@link #toNormalizedString()}\n\nPorts, service name strings, prefix lengths, and masks are all omitted from the returned array.\n\n@return", "Determines whether the current object on the specified level has a specific property, and if so, processes the\ntemplate\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"", "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.", "Use this API to fetch Interface resource of given name .", "Non-supported in JadeAgentIntrospector", "Calculate start dates for a yearly absolute recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Deletes this collaboration whitelist.", "Returns an iterator of all direct and indirect extents of this class.\n\n@return The extents iterator", "Adds methods requiring special implementations rather than just\ndelegation.\n\n@param proxyClassType the Javassist class description for the proxy type" ]
public NamespacesList<Pair> getPairs(String namespace, String predicate, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); NamespacesList<Pair> nsList = new NamespacesList<Pair>(); parameters.put("method", METHOD_GET_PAIRS); if (namespace != null) { parameters.put("namespace", namespace); } if (predicate != null) { parameters.put("predicate", predicate); } if (perPage > 0) { parameters.put("per_page", "" + perPage); } if (page > 0) { parameters.put("page", "" + page); } Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element nsElement = response.getPayload(); NodeList nsNodes = nsElement.getElementsByTagName("pair"); nsList.setPage(nsElement.getAttribute("page")); nsList.setPages(nsElement.getAttribute("pages")); nsList.setPerPage(nsElement.getAttribute("perPage")); nsList.setTotal("" + nsNodes.getLength()); for (int i = 0; i < nsNodes.getLength(); i++) { Element element = (Element) nsNodes.item(i); nsList.add(parsePair(element)); } return nsList; }
[ "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" ]
[ "Verify that the given channels are all valid.\n\n@param channels\nthe given channels", "Write flow id.\n\n@param message the message\n@param flowId the flow id", "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "Add a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param newHash the new hash of the added content\n@return the builder", "Returns the flag, indicating if the characters in the query string that are commands to Solr should be escaped.\n@return the flag, indicating if the characters in the query string that are commands to Solr should be escaped.", "Returns all the version directories present in the root directory\nspecified\n\n@param rootDir The parent directory\n@param maxId The\n@return An array of version directories", "Add a new value to the array map.\n@param key The key under which to store the value. <b>Must not be null.</b> If\nthis key already exists in the array, its value will be replaced.\n@param value The value to store for the given key.\n@return Returns the old value that was stored for the given key, or null if there\nwas no such key.", "Emit information about all of suite's tests.", "Returns the parameter key of the facet with the given name.\n@param facet the facet's name.\n@return the parameter key for the facet." ]
protected boolean _load () { java.sql.ResultSet rs = null; try { // This synchronization is necessary for Oracle JDBC drivers 8.1.7, 9.0.1, 9.2.0.1 // The documentation says synchronization is done within the driver, but they // must have overlooked something. Without the lock we'd get mysterious error // messages. synchronized(getDbMeta()) { getDbMetaTreeModel().setStatusBarMessage("Reading schemas for catalog " + this.getAttribute(ATT_CATALOG_NAME)); rs = getDbMeta().getSchemas(); final java.util.ArrayList alNew = new java.util.ArrayList(); int count = 0; while (rs.next()) { getDbMetaTreeModel().setStatusBarMessage("Creating schema " + getCatalogName() + "." + rs.getString("TABLE_SCHEM")); alNew.add(new DBMetaSchemaNode(getDbMeta(), getDbMetaTreeModel(), DBMetaCatalogNode.this, rs.getString("TABLE_SCHEM"))); count++; } if (count == 0) alNew.add(new DBMetaSchemaNode(getDbMeta(), getDbMetaTreeModel(), DBMetaCatalogNode.this, null)); alChildren = alNew; javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { getDbMetaTreeModel().nodeStructureChanged(DBMetaCatalogNode.this); } }); rs.close(); } } catch (java.sql.SQLException sqlEx) { getDbMetaTreeModel().reportSqlError("Error retrieving schemas", sqlEx); try { if (rs != null) rs.close (); } catch (java.sql.SQLException sqlEx2) { this.getDbMetaTreeModel().reportSqlError("Error retrieving schemas", sqlEx2); } return false; } return true; }
[ "Loads the schemas associated to this catalog." ]
[ "A smoothed step function. A cubic function is used to smooth the step between two thresholds.\n@param a the lower threshold position\n@param b the upper threshold position\n@param x the input parameter\n@return the output value", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException", "Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context", "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client", "Finds all nWise combinations of a set of variables, each with a given domain of values\n\n@param nWise the number of variables in each combination\n@param coVariables the varisbles\n@param variableDomains the domains\n@return all nWise combinations of the set of variables", "Use this API to fetch aaauser_auditsyslogpolicy_binding resources of given name .", "Produces an IPv4 address from any sequence of 4 bytes in this IPv6 address.\n\n@param byteIndex the byte index to start\n@throws IndexOutOfBoundsException if the index is less than zero or bigger than 7\n@return", "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", "Returns the size of the shadow element" ]