query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
private final void replyErrors(final String errorMessage, final String stackTrace, final String statusCode, final int statusCodeInt) { reply(true, errorMessage, stackTrace, statusCode, statusCodeInt, PcConstants.NA, null); }
[ "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int" ]
[ "Decides what are the preferred credentials to use for resolving the repo keys of the server\n\n@return Preferred credentials for repo resolving. Never null.", "Clear any current allowed job types and use the given set.\n@param jobTypes the job types to allow", "Fires the event.\n\n@param source the event source\n@param date the date\n@param isTyping true if event was caused by user pressing key that may have changed the value", "generate a prepared SELECT-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor", "Use this API to fetch Interface resource of given name .", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return", "Performs a matrix multiplication between inner block matrices.\n\n(m , o) += (m , n) * (n , o)", "Sets the origin and direction of the pick ray.\n\n@param ox X coordinate of origin.\n@param oy Y coordinate of origin.\n@param oz Z coordinate of origin.\n@param dx X coordinate of ray direction.\n@param dy Y coordinate of ray direction.\n@param dz Z coordinate of ray direction.\n\nThe coordinate system of the ray depends on the whether the\npicker is attached to a scene object or not. When attached\nto a scene object, the ray is in the coordinate system of\nthat object where (0, 0, 0) is the center of the scene object\nand (0, 0, 1) is it's positive Z axis. If not attached to an\nobject, the ray is in the coordinate system of the scene's\nmain camera with (0, 0, 0) at the viewer and (0, 0, -1)\nwhere the viewer is looking.\n@see #doPick()\n@see #getPickRay()\n@see #getWorldPickRay(Vector3f, Vector3f)", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise" ]
public static<A, Z> Function1<A, Z> lift(Func1<A, Z> f) { return bridge.lift(f); }
[ "Lift a Java Func1 to a Scala Function1\n\n@param f the function to lift\n\n@returns the Scala function" ]
[ "exposed only for tests", "Locks the bundle descriptor.\n@throws CmsException thrown if locking fails.", "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", "Method generates abbreviated exception message.\n\n@param message\nOriginal log message\n@param throwable\nThe attached throwable\n@return Abbreviated exception message", "Old SOAP client uses new SOAP service with the\nredirection to the new endpoint and transformation\non the server side", "Writes the buffer contents to the given byte channel.\n\n@param channel\n@throws IOException", "Ask the specified player for a Folder menu for exploring its raw filesystem.\nThis is a request for unanalyzed items, so we do a typed menu request.\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@param folderId identifies the folder whose contents should be listed, use -1 to get the root folder\n\n@return the entries in the folder menu\n\n@throws Exception if there is a problem obtaining the menu", "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "Builds the table for the database results.\n\n@param results the database results\n@return the table" ]
public MaterialSection getSectionByTitle(String title) { for(MaterialSection section : sectionList) { if(section.getTitle().equals(title)) { return section; } } for(MaterialSection section : bottomSectionList) { if(section.getTitle().equals(title)) return section; } return null; }
[ "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" ]
[ "Start transaction on the underlying connection.", "Handles the cases in which we can use longs rather than BigInteger\n\n@param section\n@param increment\n@param addrCreator\n@param lowerProducer\n@param upperProducer\n@param prefixLength\n@return", "Calculates a md5 hash for an url\n\nIf a passed in url is absent then this method will return absent as well\n\n@param url - an url to a soy template file\n@return - md5 checksum of a template file\n@throws IOException - in a case there is an IO error calculating md5 checksum", "Finish the initialization.\n\n@param container\n@param isShutdownHookEnabled", "Add a rollback loader for a give patch.\n\n@param patchId the patch id.\n@param target the patchable target\n@throws XMLStreamException\n@throws IOException", "judge if an point in the area or not\n\n@param point\n@param area\n@param offsetRatio\n@return", "We have identified that we have a zip file. Extract the contents into\na temporary directory and process.\n\n@param stream schedule data\n@return ProjectFile instance", "Delete an object.", "Tells you if the expression is a predefined constant like TRUE or FALSE.\n@param expression\nany expression\n@return\nas described" ]
public String getValueSchema() throws IOException { Schema schema = getInputPathAvroSchema(); String valueSchema = schema.getField(valueFieldName).schema().toString(); return valueSchema; }
[ "Extract schema of the value field" ]
[ "Add \"ORDER BY\" clause to the SQL query statement. This can be called multiple times to add additional \"ORDER BY\"\nclauses. Ones earlier are applied first.", "Use this API to fetch the statistics of all lbvserver_stats resources that are configured on netscaler.", "Gets the flags associated with this attribute.\n@return the flags. Will not return {@code null}", "Read hints from a file and merge with the given hints map.", "Find the the qualfied container port of the target service\nUses java annotations first or returns the container port.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved containerPort of '0' as a fallback.", "Checks to see if a valid deployment parameter has been defined.\n\n@param operation the operation to check.\n\n@return {@code true} of the parameter is valid, otherwise {@code false}.", "Extract the generic type from the given Class object.\n@param clazz the Class to check\n@param source the expected raw source type (can be {@code null})\n@param typeIndex the index of the actual type argument\n@param nestingLevel the nesting level of the target type\n@param currentLevel the current nested level\n@return the generic type as Class, or {@code null} if none", "Adds tags to the If-Match header.\n\n@param tag the tag to add, may be null. This means the same as adding {@link Tag#ALL}\n@throws IllegalArgumentException if ALL is supplied more than once, or you add a null tag more than once.\n@return a new Conditionals object with the If-Match tag added.", "Throws an IllegalStateException when the given value is not null.\n@return the value" ]
public void enable(ConduitSelectorHolder conduitSelectorHolder, SLPropertiesMatcher matcher, String selectionStrategy) { LocatorTargetSelector selector = new LocatorTargetSelector(); selector.setEndpoint(conduitSelectorHolder.getConduitSelector().getEndpoint()); String actualStrategy = selectionStrategy != null ? selectionStrategy : defaultLocatorSelectionStrategy; LocatorSelectionStrategy locatorSelectionStrategy = getLocatorSelectionStrategy(actualStrategy); locatorSelectionStrategy.setServiceLocator(locatorClient); if (matcher != null) { locatorSelectionStrategy.setMatcher(matcher); } selector.setLocatorSelectionStrategy(locatorSelectionStrategy); if (LOG.isLoggable(Level.INFO)) { LOG.log(Level.INFO, "Client enabled with strategy " + locatorSelectionStrategy.getClass().getName() + "."); } conduitSelectorHolder.setConduitSelector(selector); if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Successfully enabled client " + conduitSelectorHolder + " for the service locator"); } }
[ "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set\nas selector in the conduitSelectorHolder.\n\n@param conduitSelectorHolder\n@param matcher\n@param selectionStrategy" ]
[ "Convenience method dispatches the specified event to the source appender,\nwhich will result in the custom event data being appended to the new file.\n\n@param customLoggingEvent\nThe custom Log4J event to be appended.", "Return the list of module dependencies\n\n@param moduleName\n@param moduleVersion\n@param fullRecursive\n@param corporate\n@param thirdParty\n@return List<Dependency>\n@throws GrapesCommunicationException", "Writes the results of the processing to a file.", "Returns the class hierarchy of the given type, from bottom to top, starting with the given class itself.\nInterfaces are not included.\n\n@param clazz the class of interest\n@return the class hierarchy of the given class", "Adds labels to the item\n\n@param labels\nthe labels to add", "Use this API to fetch authenticationvserver_binding resource of given name .", "Read a two byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Addes the current member as a nested object.\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\"", "Use this API to delete snmpmanager." ]
@SuppressWarnings("unchecked") public static <E> TypeConverter<E> typeConverterFor(Class<E> cls) throws NoSuchTypeConverterException { TypeConverter<E> typeConverter = TYPE_CONVERTERS.get(cls); if (typeConverter == null) { throw new NoSuchTypeConverterException(cls); } return typeConverter; }
[ "Returns a TypeConverter for a given class.\n\n@param cls The class for which the TypeConverter should be fetched." ]
[ "Legacy conversion.\n@param map\n@return Properties", "Associate a type with the given resource model.", "Use this API to delete nsacl6 of given name.", "Loads the asset referenced by the file name\nunder the owner of this component.\nIf this component was constructed to replace the scene with\nthe asset, the scene will contain only the owner of this\ncomponent upon return. Otherwise, the loaded asset is a\nchild of this component's owner.\n\nLoading the asset is performed in a separate thread.\nThis function returns before the asset has finished loading.\nIAssetEvents are emitted to the event listener on the context.\n\n@param scene scene to add the model to, null is permissible\n@return always true", "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "There appear to be two ways of representing task notes in an MPP8 file.\nThis method tries to determine which has been used.\n\n@param task task\n@param data task data\n@param taskExtData extended task data\n@param taskVarData task var data", "Apply content type to response with result provided.\n\nIf `result` is an error then it might not apply content type as requested:\n* If request is not ajax request, then use `text/html`\n* If request is ajax request then apply requested content type only when `json` or `xml` is requested\n* otherwise use `text/html`\n\n@param result\nthe result used to check if it is error result\n@return this `ActionContext`.", "Given a method node, checks if we are calling a private method from an inner class.", "Mark for creation all objects that were included into dependent collections.\nMark for deletion all objects that were excluded from dependent collections." ]
protected String getQueryParam() { String param = parseOptionalStringValue(m_configObject, JSON_KEY_QUERYPARAM); if (param == null) { return null != m_baseConfig ? m_baseConfig.getGeneralConfig().getQueryParam() : DEFAULT_QUERY_PARAM; } else { return param; } }
[ "Returns the configured request parameter for the query string, or the default parameter if no core is configured.\n@return The configured request parameter for the query string, or the default parameter if no core is configured." ]
[ "Returns an Array with an Objects PK VALUES if convertToSql is true, any\nassociated java-to-sql conversions are applied. If the Object is a Proxy\nor a VirtualProxy NO conversion is necessary.\n\n@param objectOrProxy\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.\n\n@param f the file containing the external vault configuration as generated by the vault tool\n@return the vault config", "Returns the end time of the event.\n@return the end time of the event.", "This is the probability density function for the Gaussian\ndistribution.", "Make sure that we have some reasonable defaults available. These would typically be provided by the rulesets\nin the real world.", "Sets the highlight strength for the InnerPaddingOutline.\n\n@param _highlightStrength The highlighting value for the outline.", "Create and bind a server socket\n\n@return the server socket\n@throws IOException", "Configures a RequestBuilder to send an RPC request when the RequestBuilder\nis intended to be returned through the asynchronous proxy interface.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a RequestBuilder object that is ready to have its\n{@link RequestBuilder#send()} method invoked." ]
public static String getXPathExpression(Node node) { Object xpathCache = node.getUserData(FULL_XPATH_CACHE); if (xpathCache != null) { return xpathCache.toString(); } Node parent = node.getParentNode(); if ((parent == null) || parent.getNodeName().contains("#document")) { String xPath = "/" + node.getNodeName() + "[1]"; node.setUserData(FULL_XPATH_CACHE, xPath, null); return xPath; } if (node.hasAttributes() && node.getAttributes().getNamedItem("id") != null) { String xPath = "//" + node.getNodeName() + "[@id = '" + node.getAttributes().getNamedItem("id").getNodeValue() + "']"; node.setUserData(FULL_XPATH_CACHE, xPath, null); return xPath; } StringBuffer buffer = new StringBuffer(); if (parent != node) { buffer.append(getXPathExpression(parent)); buffer.append("/"); } buffer.append(node.getNodeName()); List<Node> mySiblings = getSiblings(parent, node); for (int i = 0; i < mySiblings.size(); i++) { Node el = mySiblings.get(i); if (el.equals(node)) { buffer.append('[').append(Integer.toString(i + 1)).append(']'); // Found so break; break; } } String xPath = buffer.toString(); node.setUserData(FULL_XPATH_CACHE, xPath, null); return xPath; }
[ "Reverse Engineers an XPath Expression of a given Node in the DOM.\n\n@param node the given node.\n@return string xpath expression (e.g., \"/html[1]/body[1]/div[3]\")." ]
[ "Return the current handedness of the Gear Controller.\n\n@return returns whether the user is using the controller left or right handed. This function\nreturns <code>null</code> if the controller is unavailable or the data is stale.", "Insert an entity into the datastore.\n\nThe entity must have no ids.\n\n@return The key for the inserted entity.\n@throws DatastoreException on error", "Calculates the Black-Scholes option value of a digital call option.\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return Returns the value of a European call option under the Black-Scholes model", "Detect if the given object has a PK field represents a 'null' value.", "Close and remove expired streams. Package protected to allow unit tests to invoke it.", "returns true if a job was queued within a timeout", "Unlinks a set of dependents from this task.\n\n@param task The task to remove dependents from.\n@return Request object", "Validates for non-conflicting roles", "Use this API to fetch a appflowglobal_binding resource ." ]
public void cullHistory(final int profileId, final String clientUUID, final int limit) throws Exception { //Allow only 1 delete thread to run if (threadActive) { return; } threadActive = true; //Create a thread so proxy will continue to work during long delete Thread t1 = new Thread(new Runnable() { @Override public void run() { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { String sqlQuery = "SELECT COUNT(" + Constants.GENERIC_ID + ") FROM " + Constants.DB_TABLE_HISTORY + " "; // see if profileId is set or not (-1) if (profileId != -1) { sqlQuery += "WHERE " + Constants.GENERIC_PROFILE_ID + "=" + profileId + " "; } if (clientUUID != null && clientUUID.compareTo("") != 0) { sqlQuery += "AND " + Constants.GENERIC_CLIENT_UUID + "='" + clientUUID + "' "; } sqlQuery += ";"; Statement query = sqlConnection.createStatement(); ResultSet results = query.executeQuery(sqlQuery); if (results.next()) { if (results.getInt("COUNT(" + Constants.GENERIC_ID + ")") < (limit + 10000)) { return; } } //Find the last item in the table statement = sqlConnection.prepareStatement("SELECT " + Constants.GENERIC_ID + " FROM " + Constants.DB_TABLE_HISTORY + " WHERE " + Constants.CLIENT_CLIENT_UUID + " = \'" + clientUUID + "\'" + " AND " + Constants.CLIENT_PROFILE_ID + " = " + profileId + " ORDER BY " + Constants.GENERIC_ID + " ASC LIMIT 1"); ResultSet resultSet = statement.executeQuery(); if (resultSet.next()) { int currentSpot = resultSet.getInt(Constants.GENERIC_ID) + 100; int finalDelete = currentSpot + 10000; //Delete 100 items at a time until 10000 are deleted //Do this so table is unlocked frequently to allow other proxy items to access it while (currentSpot < finalDelete) { PreparedStatement deleteStatement = sqlConnection.prepareStatement("DELETE FROM " + Constants.DB_TABLE_HISTORY + " WHERE " + Constants.CLIENT_CLIENT_UUID + " = \'" + clientUUID + "\'" + " AND " + Constants.CLIENT_PROFILE_ID + " = " + profileId + " AND " + Constants.GENERIC_ID + " < " + currentSpot); deleteStatement.executeUpdate(); currentSpot += 100; } } } catch (Exception e) { e.printStackTrace(); } finally { try { threadActive = false; if (statement != null) { statement.close(); } } catch (Exception e) { } } } }); t1.start(); }
[ "Removes old entries in the history table for the given profile and client UUID\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param limit Maximum number of history entries to remove\n@throws Exception exception" ]
[ "Calculate start dates for a yearly recurrence.\n\n@param calendar current date\n@param dates array of start dates", "calculate the difference of the two maps, so we know what was added, removed & updated\n@param left\n@param right\n@param onlyOnLeft\n@param onlyOnRight\n@param updated", "In this method perform the actual override in runtime.\n\n@see org.apache.log4j.spi.HierarchyEventListener#addAppenderEvent(org.apache.log4j.Category, org.apache.log4j.Appender)", "Updates the model. Ensures that we reset the columns widths.\n\n@param model table model", "Read string from url generic.\n\n@param url\nthe url\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "Returns all program element docs that have a visibility greater or\nequal than the specified level", "Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL.\n\n@param cms the CmsObject to initialize for jumping to the favorite\n@return the link for the favorite location\n\n@throws CmsException if something goes wrong", "Sets the top and bottom frame margin.\n@param frameTop margin\n@param frameBottom margin\n@return this to allow chaining" ]
public static sslglobal_sslpolicy_binding[] get(nitro_service service) throws Exception{ sslglobal_sslpolicy_binding obj = new sslglobal_sslpolicy_binding(); sslglobal_sslpolicy_binding response[] = (sslglobal_sslpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a sslglobal_sslpolicy_binding resources." ]
[ "Validates operations against their description providers\n\n@param operations The operations to validate\n@throws IllegalArgumentException if any operation is not valid", "state chain management ops below", "Internal method that adds a metadata provider to the set associated with a particular hash key, creating the\nset if needed.\n\n@param key the hashKey identifying the media for which this provider can offer metadata (or the empty string if\nit can offer metadata for all media)\n@param provider the metadata provider to be added to the active set", "Creates a code location URL from a class\n\n@param codeLocationClass the class\n@return A URL created from Class\n@throws InvalidCodeLocation if URL creation fails", "Refactor the method into public CXF utility and reuse it from CXF instead copy&paste", "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish", "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 all the sslcertkey resources that are configured on netscaler.", "Reads GIF image from byte array.\n\n@param data containing GIF file.\n@return read status code (0 = no errors)." ]
public void search(String query) { final Query newQuery = searcher.getQuery().setQuery(query); searcher.setQuery(newQuery).search(); }
[ "Triggers a new search with the given text.\n\n@param query the text to search for." ]
[ "Adds version information.", "set the specified object at index\n\n@param object The object to add at the end of the array.", "Adds an array of groupby fieldNames for ReportQueries.\n@param fieldNames The groupby to set\n@deprecated use QueryByCriteria#addGroupBy", "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "Makes the object unpickable and removes the touch handler for it\n@param sceneObject\n@return true if the handler has been successfully removed", "Determine the color of the waveform given an index into it.\n\n@param segment the index of the first waveform byte to examine\n@param front if {@code true} the front (brighter) segment of a color waveform preview is returned,\notherwise the back (dimmer) segment is returned. Has no effect for blue previews.\n\n@return the color of the waveform at that segment, which may be based on an average\nof a number of values starting there, determined by the scale", "Convert a Identification to a By used in WebDriver Drivers.\n\n@return the correct By specification of the current Identification.", "Parse a command line with the defined command as base of the rules.\nIf any options are found, but not defined in the command object an\nCommandLineParserException will be thrown.\nAlso, if a required option is not found or options specified with value,\nbut is not given any value an CommandLineParserException will be thrown.\n\n@param line input\n@param mode parser mode", "Convert this object to a json array." ]
public static auditnslogpolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_systemglobal_binding obj = new auditnslogpolicy_systemglobal_binding(); obj.set_name(name); auditnslogpolicy_systemglobal_binding response[] = (auditnslogpolicy_systemglobal_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch auditnslogpolicy_systemglobal_binding resources of given name ." ]
[ "This method writes resource data to a PM XML file.", "Report on the filtered data in DMR .", "Returns all the retention policies.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable with all the retention policies.", "Implements the AAD Algorithm\n@return HashMap where the key is the internal index of the random variable with respect to which the partial derivative was computed. This key then gives access to the actual derivative.", "Return as a string the tagged values associated with c\n@param opt the Options used to guess font names\n@param c the Doc entry to look for @tagvalue\n@param prevterm the termination string for the previous element\n@param term the termination character for each tagged value", "Load the view port execution.\n\n@param then callback when the view port is detected.\n@param fallback fallback when no view port detected or failure to detect the given\n{@link Boundary} (using {@link #propagateFallback(boolean)})", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it is not a valid package or class name\n\n@param s\nthe string to be checked\n@return\n`true` if `s` is a valid java package or class name", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Get the permission information for the specified photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nThe photo id\n@return The Permissions object\n@throws FlickrException" ]
public String getController() { final StringBuilder controller = new StringBuilder(); if (getProtocol() != null) { controller.append(getProtocol()).append("://"); } if (getHost() != null) { controller.append(getHost()); } else { controller.append("localhost"); } if (getPort() > 0) { controller.append(':').append(getPort()); } return controller.toString(); }
[ "Formats a connection string for CLI to use as it's controller connection.\n\n@return the controller string to connect CLI" ]
[ "blocks until there is a connection", "LRN cross-channel forward computation. Double parameters cast to tensor data type", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar.\nThe name of the calendar to be used is passed as an argument.\n\n@param calendarName name of the calendar to use\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Use this API to fetch all the autoscaleprofile resources that are configured on netscaler.", "Gets the Jaccard distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Jaccard distance between x and y.", "Applies the mask to this address and then compares values with the given address\n\n@param mask\n@param other\n@return", "Write a long attribute.\n\n@param name attribute name\n@param value attribute value", "Should be called each frame.", "Prints a currency symbol position value.\n\n@param value CurrencySymbolPosition instance\n@return currency symbol position" ]
private boolean ignoreMethod(String name) { boolean result = false; for (String ignoredName : IGNORED_METHODS) { if (name.matches(ignoredName)) { result = true; break; } } return result; }
[ "Used to determine if the current method should be ignored.\n\n@param name method name\n@return true if the method should be ignored" ]
[ "Use this API to fetch all the appfwlearningdata resources that are configured on netscaler.\nThis uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources.", "Updates metadata versions on stores.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param oldStoreDefs List of old store definitions\n@param newStoreDefs List of new store definitions", "Reads a single day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT week day", "Sets the CircularImageView's border width in pixels.\n@param borderWidth Width in pixels for the border.", "Use this API to unset the properties of nsacl6 resources.\nProperties that need to be unset are specified in args array.", "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title", "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.", "Builds the mapping table.", "Write a duration field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public T create(BeanInstance beanInstance) { final T proxy = (System.getSecurityManager() == null) ? run() : AccessController.doPrivileged(this); ((ProxyObject) proxy).weld_setHandler(new ProxyMethodHandler(contextId, beanInstance, bean)); return proxy; }
[ "Method to create a new proxy that wraps the bean instance.\n\n@param beanInstance the bean instance\n@return a new proxy object" ]
[ "Gets the value for the key.\n\n@param key the key to check for the value\n\n@return the value or an empty collection if no values were set", "Retrieve the number of minutes per month for this calendar.\n\n@return minutes per month", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Decrements the client's use count, and makes it eligible for closing if it is no longer in use.\n\n@param client the dbserver connection client which is no longer being used for a task", "Launch Navigation Service residing in the navigation module", "Print a task UID.\n\n@param value task UID\n@return task UID string", "return the ctc costs and gradients, given the probabilities and labels", "Finds the most recent dump of the given type that is actually available.\n\n@param dumpContentType\nthe type of the dump to look for\n@return most recent main dump or null if no such dump exists" ]
public void setMonitoringService(org.talend.esb.sam.common.service.MonitoringService monitoringService) { this.monitoringService = monitoringService; }
[ "Sets the monitoring service.\n\n@param monitoringService the new monitoring service" ]
[ "Use this API to clear configuration on netscaler.\n@param force clear confirmation without prompting.\n@param level clear config according to the level. eg: basic, extended, full\n@return status of the operation performed.\n@throws Exception Nitro exception is thrown.", "Seeks to the given season within the given year\n\n@param seasonString\n@param yearString", "Return the area polygon as the only feature in the feature collection.\n\n@param mapAttributes the attributes that this aoi is part of.", "Evaluates the body if value for the member tag equals the specified value.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"value\" optional=\"false\" description=\"The expected value.\"", "Sets the location value as string.\n\n@param value the string representation of the location value (JSON)", "Build a compact representation of the ModelNode.\n@param node The model\n@return A single line containing the multi lines ModelNode.toString() content.", "Creates a new ServerDetails object for resolver, this will take URL and name from the deployer ServerDetails as a default behaviour", "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "Visits a dependence of the current module.\n\n@param module the qualified name of the dependence.\n@param access the access flag of the dependence among\nACC_TRANSITIVE, ACC_STATIC_PHASE, ACC_SYNTHETIC\nand ACC_MANDATED.\n@param version the module version at compile time or null." ]
private boolean isBundleProperty(Object property) { return (property.equals(TableProperty.KEY) || property.equals(TableProperty.TRANSLATION)); }
[ "Check if values in the column \"property\" are written to the bundle files.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle files." ]
[ "Writes the content of an input stream to an output stream\n\n@throws IOException", "Configure all UI elements in the \"ending\"-options panel.", "Copy a subsequence of Bytes to specific byte array. Uses the specified offset in the dest byte\narray to start the copy.\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)\n@param dest destination array\n@param destPos starting position in the destination data.\n@exception IndexOutOfBoundsException if copying would cause access of data outside array\nbounds.\n@exception NullPointerException if either <code>src</code> or <code>dest</code> is\n<code>null</code>.\n@since 1.1.0", "Gets the current instance of plugin manager\n\n@return PluginManager", "Update the anchor based on arcore best knowledge of the world\n\n@param scale", "Opens a JDBC connection with the given parameters.", "Number of failed actions in scheduler", "Closes off all connections in all partitions.", "Performs the filtering of the expired entries based on retention time.\nOptionally, deletes them also\n\n@param key the key whose value is to be deleted if needed\n@param vals set of values to be filtered out\n@return filtered list of values which are currently valid" ]
protected static PropertyDescriptor findPropertyDescriptor(Class aClass, String aPropertyName) { BeanInfo info; PropertyDescriptor[] pd; PropertyDescriptor descriptor = null; try { info = Introspector.getBeanInfo(aClass); pd = info.getPropertyDescriptors(); for (int i = 0; i < pd.length; i++) { if (pd[i].getName().equals(aPropertyName)) { descriptor = pd[i]; break; } } if (descriptor == null) { /* * Daren Drummond: Throw here so we are consistent * with PersistentFieldDefaultImpl. */ throw new MetadataException("Can't find property " + aPropertyName + " in " + aClass.getName()); } return descriptor; } catch (IntrospectionException ex) { /* * Daren Drummond: Throw here so we are consistent * with PersistentFieldDefaultImpl. */ throw new MetadataException("Can't find property " + aPropertyName + " in " + aClass.getName(), ex); } }
[ "Get the PropertyDescriptor for aClass and aPropertyName" ]
[ "Find Flickr Places information by Place ID.\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link #getInfo(String, String)} instead.\n@param placeId\n@return A Location\n@throws FlickrException", "Byte run automaton map.\n\n@param automatonMap the automaton map\n@return the map", "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node trees and expressions in templates can be of type IGeneratorNode.\n\n@return the given parent node", "Build query string.\n@return Query string or null if query string contains no parameters at all.", "Bean types of a session bean.", "Initialize elements from the duration panel.", "Set the rate types.\n\n@param rateTypes the rate types, not null and not empty.\n@return this, for chaining.\n@throws IllegalArgumentException when not at least one {@link RateType} is provided.", "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Get a collection of public groups for the user.\n\nThe groups will contain only the members nsid, name, admin and eighteenplus. If you want the whole group-information, you have to call\n{@link com.flickr4java.flickr.groups.GroupsInterface#getInfo(String)}.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The public groups\n@throws FlickrException" ]
public static String resolveDataSourceTypeFromDialect(String dialect) { if (StringUtils.contains(dialect, "Oracle")) { return "Oracle"; } else if (StringUtils.contains(dialect, "MySQL")) { return "MySQL"; } else if (StringUtils.contains(dialect, "DB2390Dialect")) { return "DB2/390"; } else if (StringUtils.contains(dialect, "DB2400Dialect")) { return "DB2/400"; } else if (StringUtils.contains(dialect, "DB2")) { return "DB2"; } else if (StringUtils.contains(dialect, "Ingres")) { return "Ingres"; } else if (StringUtils.contains(dialect, "Derby")) { return "Derby"; } else if (StringUtils.contains(dialect, "Pointbase")) { return "Pointbase"; } else if (StringUtils.contains(dialect, "Postgres")) { return "Postgres"; } else if (StringUtils.contains(dialect, "SQLServer")) { return "SQLServer"; } else if (StringUtils.contains(dialect, "Sybase")) { return "Sybase"; } else if (StringUtils.contains(dialect, "HSQLDialect")) { return "HyperSQL"; } else if (StringUtils.contains(dialect, "H2Dialect")) { return "H2"; } return dialect; }
[ "Converts the given dislect to a human-readable datasource type." ]
[ "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "Reads GIF image from stream.\n\n@param is containing GIF file.\n@return read status code (0 = no errors).", "Set the custom projection matrix with individual matrix elements.", "Returns a color for a given absolute number that is to be shown on the\nmap.\n\n@param value\n@return", "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Use this API to fetch rewritepolicylabel_rewritepolicy_binding resources of given name .", "The indices space is ignored for reduce ops other than min or max.", "Read the values from the output object and write them to the values object.\n\n@param output the output object from a processor\n@param processor the processor the output if from\n@param values the object for sharing values between processors", "Provides a nicely formatted string of the method definition. For simplicity, generic types on some of the elements\nare not displayed.\n@return\nstring form of node with some generic elements suppressed" ]
public synchronized static <D extends Dao<T, ?>, T> D lookupDao(ConnectionSource connectionSource, Class<T> clazz) { if (connectionSource == null) { throw new IllegalArgumentException("connectionSource argument cannot be null"); } ClassConnectionSource key = new ClassConnectionSource(connectionSource, clazz); Dao<?, ?> dao = lookupDao(key); @SuppressWarnings("unchecked") D castDao = (D) dao; return castDao; }
[ "Helper method to lookup a DAO if it has already been associated with the class. Otherwise this returns null." ]
[ "changes an existing property with the same name, or adds a new one\n@param key property name with which the specified value is to be\nassociated\n@param value value to be associated with the specified property name\n@return the previous value associated with property name, or null if\nthere was no mapping for property name. (A null return can also\nindicate that the map previously associated null with key.)", "Takes a string of the form \"x1=y1,x2=y2,...\" and returns Map\n@param map A string of the form \"x1=y1,x2=y2,...\"\n@return A Map m is returned such that m.get(xn) = yn", "Returns the JRDesignGroup for the DJGroup passed\n@param jd\n@param layoutManager\n@param group\n@return", "returns an Array with an Identities PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Load the InstalledIdentity configuration based on the module.path\n\n@param installedImage the installed image\n@param productConfig the product config\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the available layers\n@throws IOException", "This method returns an array containing all of the unique identifiers\nfor which data has been stored in the Var2Data block.\n\n@return array of unique identifiers", "Acquire the exclusive lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Calculates the next snapshot version based on the current release version\n\n@param fromVersion The version to bump to next development version\n@return The next calculated development (snapshot) version", "Dumps a texture coordinate set of a mesh to stdout.\n\n@param mesh the mesh\n@param coords the coordinates" ]
public Node createEmbedded(GraphDatabaseService executionEngine, Object[] columnValues) { Map<String, Object> params = params( columnValues ); Result result = executionEngine.execute( getCreateEmbeddedNodeQuery(), params ); return singleResult( result ); }
[ "Create a single node representing an embedded element.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node;" ]
[ "Configs created by this ConfigBuilder will use the given Redis sentinels.\n\n@param sentinels the Redis set of sentinels\n@return this ConfigBuilder", "Log long string using verbose tag\n\n@param TAG The tag.\n@param longString The long string.", "Use this API to fetch a vpnglobal_vpnnexthopserver_binding resources.", "Creates an empty block style definition.\n@return", "An extremely simple method for identifying multimedia. This\ncould be improved, but it's good enough for this example.\n\n@param file which could be an image or a video\n@return true if the file can be previewed, false otherwise", "Get the context for the specified photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@return The PhotoContext\n@throws FlickrException", "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none.", "Inserts a vertex into this list before another specificed vertex.", "Returns the zero rates for a given vector maturities.\n\n@param maturities The given maturities.\n@return The zero rates." ]
public static double elementSum( DMatrixSparseCSC A ) { if( A.nz_length == 0) return 0; double sum = 0; for(int i = 0; i < A.nz_length; i++ ) { sum += A.nz_values[i]; } return sum; }
[ "Sum of all elements\n\n@param A (Input) Matrix. Not modified.\n@return scalar" ]
[ "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", "Create a Build retention object out of the build\n\n@param build The build to create the build retention out of\n@param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded.\n@return a new Build retention", "Fills a rectangle in the image.\n\n@param x rect�s start position in x-axis\n@param y rect�s start positioj in y-axis\n@param w rect�s width\n@param h rect�s height\n@param c rect�s color", "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side", "Generates and writes the sql for inserting the currently contained data objects.\n\n@param model The database model\n@param platform The platform\n@param writer The output stream", "Specify the artifact configuration to be searched for\n@param artifact configured artifact object\n@return", "Sets the Base Calendar field indicates which calendar is the base calendar\nfor a resource calendar. The list includes the three built-in calendars,\nas well as any new base calendars you have created in the Change Working\nTime dialog box.\n\n@param val calendar name", "Convenience method which locates the first P3 database in a directory\nand opens it.\n\n@param directory directory containing a P3 database\n@return ProjectFile instance", "Use this API to update ipv6." ]
public void setT(int t) { this.t = Math.min((radius * 2 + 1) * (radius * 2 + 1) / 2, Math.max(0, t)); }
[ "Set trimmed value.\n\n@param t Trimmed value." ]
[ "Dumps an animation channel to stdout.\n\n@param nodeAnim the channel", "Detects if the current browser is a BlackBerry device AND\nhas a more capable recent browser. Excludes the Playbook.\nExamples, Storm, Bold, Tour, Curve2\nExcludes the new BlackBerry OS 6 and 7 browser!!\n@return detection of a Blackberry device with a better browser", "Performs the filtering of the expired entries based on retention time.\nOptionally, deletes them also\n\n@param key the key whose value is to be deleted if needed\n@param vals set of values to be filtered out\n@return filtered list of values which are currently valid", "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.", "Invoke the operation.\n@param parameterMap the {@link Map} of parameter names to value arrays.\n@return the {@link Object} return value from the operation.\n@throws JMException Java Management Exception", "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Start unmarshalling using the parser.\n@param parser\n@param preProcessingData\n@return the root element of a bpmn2 document.\n@throws java.io.IOException", "Set the value of the underlying component. Note that this will\nnot work for ListEditor components. Also, note that for a JComboBox,\nThe value object must have the same identity as an object in the drop-down.\n\n@param propName The DMR property name to set.\n@param value The value.", "Remove a server mapping from current profile by ID\n\n@param serverMappingId server mapping ID\n@return Collection of updated ServerRedirects" ]
private void deliverCacheUpdate(SlotReference slot, MetadataCache cache) { for (final MetadataCacheListener listener : getCacheListeners()) { try { if (cache == null) { listener.cacheDetached(slot); } else { listener.cacheAttached(slot, cache); } } catch (Throwable t) { logger.warn("Problem delivering metadata cache update to listener", t); } } }
[ "Send a metadata cache update announcement to all registered listeners.\n\n@param slot the media slot whose cache status has changed\n@param cache the cache which has been attached, or, if {@code null}, the previous cache has been detached" ]
[ "Pump events from event stream.", "Sets the CircularImageView's border width in pixels.\n@param borderWidth Width in pixels for the border.", "Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set", "Resets the generator state.", "Get the element at the index as a float.\n\n@param i the index of the element to access", "Use this API to fetch all the ntpserver resources that are configured on netscaler.", "If the status of a print job is not checked for a while, we assume that the user is no longer\ninterested in the report, and we cancel the job.\n\n@param printJob\n@return is the abandoned timeout exceeded?", "A convenience method for creating an immutable list.\n\n@param self a Set\n@return an immutable Set\n@see java.util.Collections#unmodifiableSet(java.util.Set)\n@since 1.0" ]
private void bindProcedure(PreparedStatement stmt, ClassDescriptor cld, Object obj, ProcedureDescriptor proc) throws SQLException { int valueSub = 0; // Figure out if we are using a callable statement. If we are, then we // will need to register one or more output parameters. CallableStatement callable = null; try { callable = (CallableStatement) stmt; } catch(Exception e) { m_log.error("Error while bind values for class '" + (cld != null ? cld.getClassNameOfObject() : null) + "', using stored procedure: "+ proc, e); if(e instanceof SQLException) { throw (SQLException) e; } else { throw new PersistenceBrokerException("Unexpected error while bind values for class '" + (cld != null ? cld.getClassNameOfObject() : null) + "', using stored procedure: "+ proc); } } // If we have a return value, then register it. if ((proc.hasReturnValue()) && (callable != null)) { int jdbcType = proc.getReturnValueFieldRef().getJdbcType().getType(); m_platform.setNullForStatement(stmt, valueSub + 1, jdbcType); callable.registerOutParameter(valueSub + 1, jdbcType); valueSub++; } // Process all of the arguments. Iterator iterator = proc.getArguments().iterator(); while (iterator.hasNext()) { ArgumentDescriptor arg = (ArgumentDescriptor) iterator.next(); Object val = arg.getValue(obj); int jdbcType = arg.getJdbcType(); setObjectForStatement(stmt, valueSub + 1, val, jdbcType); if ((arg.getIsReturnedByProcedure()) && (callable != null)) { callable.registerOutParameter(valueSub + 1, jdbcType); } valueSub++; } }
[ "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" ]
[ "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails.", "Returns the Class object of the Event implementation.", "Parse parameters from this request using HTTP.\n\n@param req The ServletRequest containing all request parameters.\n@param cms The OpenCms object.\n@return CmsSpellcheckingRequest object that contains parsed parameters.", "Returns tag formatted as an HTTP tag string.\n\n@return The formatted HTTP tag string.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "Obtain the ID associated with a profile name\n\n@param profileName profile name\n@return ID of profile", "This method retrieves ONLY the ROOT actions", "Creates a converter function that converts value using a constructor that accepts a single String argument.\n\n@return A converter function or {@code null} if the given type doesn't have a public constructor that accepts\na single String argument.", "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", "Creates a triangular matrix where the amount of fill is randomly selected too.\n\n@param upper true for upper triangular and false for lower\n@param N number of rows and columns\ner * @param minFill minimum fill fraction\n@param maxFill maximum fill fraction\n@param rand random number generator\n@return Random matrix" ]
public boolean hasNullPKField(ClassDescriptor cld, Object obj) { FieldDescriptor[] fields = cld.getPkFields(); boolean hasNull = false; // an unmaterialized proxy object can never have nullified PK's IndirectionHandler handler = ProxyHelper.getIndirectionHandler(obj); if(handler == null || handler.alreadyMaterialized()) { if(handler != null) obj = handler.getRealSubject(); FieldDescriptor fld; for(int i = 0; i < fields.length; i++) { fld = fields[i]; hasNull = representsNull(fld, fld.getPersistentField().get(obj)); if(hasNull) break; } } return hasNull; }
[ "Detect if the given object has a PK field represents a 'null' value." ]
[ "Add a dependency task item for this model.\n\n@param dependency the dependency task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result the task item", "Return a collection of product descriptors for each option in the smile.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@return a collection of product descriptors for each option in the smile.", "Adds each of the specified followers to the task, if they are not already\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to add followers to.\n@return Request object", "Use this API to update snmpalarm.", "Set the content type of a photo.\n\nThis method requires authentication with 'write' permission.\n\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_PHOTO\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_SCREENSHOT\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_OTHER\n@param photoId\nThe photo ID\n@param contentType\nThe contentType to set\n@throws FlickrException", "Retrieves a ProjectReader instance which can read a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectReader instance", "Removes any configured observers.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}", "Gracefully stop the engine", "Create the grid feature type.\n\n@param mapContext the map context containing the information about the map the grid will be\nadded to.\n@param geomClass the geometry type" ]
private static int checkResult(int result) { if (exceptionsEnabled && result != cudnnStatus.CUDNN_STATUS_SUCCESS) { throw new CudaException(cudnnStatus.stringFor(result)); } return result; }
[ "If the given result is not cudnnStatus.CUDNN_STATUS_SUCCESS\nand exceptions have been enabled, this method will throw a\nCudaException with an error message that corresponds to the\ngiven result code. Otherwise, the given result is simply\nreturned.\n\n@param result The result to check\n@return The result that was given as the parameter\n@throws CudaException If exceptions have been enabled and\nthe given result code is not cudnnStatus.CUDNN_STATUS_SUCCESS" ]
[ "Returns the key of the entity targeted by the represented association, retrieved from the given tuple.\n\n@param tuple the tuple from which to retrieve the referenced entity key\n@return the key of the entity targeted by the represented association", "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.", "add a FK column pointing to the item Class", "This deals with the CoNLL files for different languages which have\nbetween 2 and 5 columns on non-blank lines.\n\n@param line A line of CoNLL input\n@return The constructed token", "Fills the week panel with checkboxes.", "Returns the raw class of the given type.", "Gets the positive integer.\n\n@param number the number\n@return the positive integer", "Use this API to fetch all the auditmessages resources that are configured on netscaler.\nThis uses auditmessages_args which is a way to provide additional arguments while fetching the resources.", "Use this API to fetch aaapreauthenticationpolicy_aaaglobal_binding resources of given name ." ]
public static String readCorrelationId(Message message) { String correlationId = null; Map<String, List<String>> headers = getOrCreateProtocolHeader(message); List<String> correlationIds = headers.get(CORRELATION_ID_KEY); if (correlationIds != null && correlationIds.size() > 0) { correlationId = correlationIds.get(0); if (LOG.isLoggable(Level.FINE)) { LOG.fine("HTTP header '" + CORRELATION_ID_KEY + "' found: " + correlationId); } } else { if (LOG.isLoggable(Level.FINE)) { LOG.fine("No HTTP header '" + CORRELATION_ID_KEY + "' found"); } } return correlationId; }
[ "Read correlation id from message.\n\n@param message the message\n@return the CorrelationId as string" ]
[ "Sets padding between the pages\n@param padding\n@param axis", "Sorts the specified list itself into ascending order, according to the natural ordering of its elements.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "Heat Equation Boundary Conditions", "Resolve the server registry.\n\n@param mgmtVersion the mgmt version\n@param subsystems the subsystems\n@return the transformer registry", "Return a named object associated with the specified key.", "Use this API to fetch systemsession resources of given names .", "Generate and return the list of statements to drop a database table.", "Request the list of all tracks in the specified slot, given a dbserver connection to a player that has already\nbeen set up.\n\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved track list entry items\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", "Removes the specified entry point\n\n@param controlPoint The entry point" ]
public synchronized void createImportationDeclaration(String deviceId, String deviceType, String deviceSubType) { Map<String, Object> metadata = new HashMap<String, Object>(); metadata.put(Constants.DEVICE_ID, deviceId); metadata.put(Constants.DEVICE_TYPE, deviceType); metadata.put(Constants.DEVICE_TYPE_SUB, deviceSubType); metadata.put("scope", "generic"); ImportDeclaration declaration = ImportDeclarationBuilder.fromMetadata(metadata).build(); importDeclarations.put(deviceId, declaration); registerImportDeclaration(declaration); }
[ "Create an import declaration and delegates its registration for an upper class." ]
[ "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text", "Retrieves the notes text for this resource.\n\n@return notes text", "Applies the kubernetes json url to the configuration.\n\n@param map\nThe arquillian configuration.", "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width", "Recycles the Renderer getting it from the tag associated to the renderer root view. This view\nis not used with RecyclerView widget.\n\n@param convertView that contains the tag.\n@param content to be updated in the recycled renderer.\n@return a recycled renderer.", "Use this API to fetch ipset_nsip_binding resources of given name .", "Get a unique reference to the media slot on the network from which the specified data was loaded.\n\n@param dataReference the data whose media slot is of interest\n\n@return the instance that will always represent the slot associated with the specified data", "Adds main report query.\n\n@param text\n@param language use constants from {@link DJConstants}\n@return", "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException" ]
protected AbstractColumn buildExpressionColumn() { ExpressionColumn column = new ExpressionColumn(); populateCommonAttributes(column); populateExpressionAttributes(column); column.setExpression(customExpression); column.setExpressionToGroupBy(customExpressionToGroupBy); column.setExpressionForCalculation(customExpressionForCalculation); return column; }
[ "For creating expression columns\n@return" ]
[ "Helper method to add a parameter without having to create it explicitely. The created parameter should be persisted afterwards.\n\n@param key\nname of the parameter to add\n@param value\nvalue of the parameter to create\n@return the newly created parameter", "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", "Checks if a document exist in the database.\n\n@param id The document _id field.\n@return true If the document is found, false otherwise.", "Sign in a connection to the registry by key.\n\nNote multiple connections can be attached to the same key\n\n@param key\nthe key\n@param connection\nthe websocket connection\n@see #register(String, WebSocketConnection)", "Creates a statement with parameters that should work with most RDBMS.", "Lookup a native pointer to a collider and return its Java object.\n\n@param nativePointer native pointer to C++ Collider\n@return Java GVRCollider object", "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id", "Register a new DropPasteWorkerInterface.\n@param worker The new worker", "Removes from this set all of its elements that are contained in the specified members array\n@param members the members to remove\n@return the number of members actually removed" ]
public static auditsyslogpolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_systemglobal_binding obj = new auditsyslogpolicy_systemglobal_binding(); obj.set_name(name); auditsyslogpolicy_systemglobal_binding response[] = (auditsyslogpolicy_systemglobal_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch auditsyslogpolicy_systemglobal_binding resources of given name ." ]
[ "Finish the initialization.\n\n@param container\n@param isShutdownHookEnabled", "Used to retrieve the watermark for the item.\nIf the item does not have a watermark applied to it, a 404 Not Found will be returned by API.\n@param itemUrl url template for the item.\n@param fields the fields to retrieve.\n@return the watermark associated with the item.", "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", "Generate the body of a toString method that uses plain concatenation.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\nalways present, this can be done with a long block of unconditional code. We could use a\nStringBuilder for this, but in fact the Java compiler will do this for us under the hood\nif we use simple string concatenation, so we use the more readable approach.", "Returns an integer array that contains the current values for all the\ntexture parameters.\n\n@return an integer array that contains the current values for all the\ntexture parameters.", "Merge another AbstractTransition's states into this object, such that the other AbstractTransition\ncan be discarded.\n\n@param another\n@return true if the merge is successful.", "Used by Pipeline jobs only", "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", "Clears the collection and uses the iterator to run through the dao and delete all of the items in the collection\nfrom the associated database table. This is different from removing all of the elements in the table since this\niterator is across just one item's foreign objects." ]
public static <T> T assertNotNull(T value, String message) { if (value == null) throw new IllegalStateException(message); return value; }
[ "Throws an IllegalStateException when the given value is null.\n@return the value" ]
[ "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", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.", "request token from GCM", "Use this API to count sslcipher_individualcipher_binding resources configued on NetScaler.", "prefetch defined relationships requires JDBC level 2.0, does not work\nwith Arrays", "make it public for CLI interaction to reuse JobContext", "Return total number of connections created in all partitions.\n\n@return number of created connections", "Tests that the area is valid geojson, the style ref is valid or null and the display is non-null.", "Is alternative.\n\n@param annotated the annotated\n@param mergedStereotypes merged stereotypes\n@return true if alternative, false otherwise" ]
private void prepareInitialState(boolean isNewObject) { // determine appropriate modification state ModificationState initialState; if(isNewObject) { // if object is not already persistent it must be marked as new // it must be marked as dirty because it must be stored even if it will not modified during tx initialState = StateNewDirty.getInstance(); } else if(isDeleted(oid)) { // if object is already persistent it will be marked as old. // it is marked as dirty as it has been deleted during tx and now it is inserted again, // possibly with new field values. initialState = StateOldDirty.getInstance(); } else { // if object is already persistent it will be marked as old. // it is marked as clean as it has not been modified during tx already initialState = StateOldClean.getInstance(); } // remember it: modificationState = initialState; }
[ "Sets the initial MoificationState of the wrapped object myObj. The initial state will be StateNewDirty if myObj\nis not persisten already. The state will be set to StateOldClean if the object is already persistent." ]
[ "Returns the index of the first invalid character of the zone, or -1 if the zone is valid\n\n@param sequence\n@return", "Stops the current connection. No reconnecting will occur. Kills thread + cleanup.\nWaits for the loop to end", "Invokes a JavaScript function that takes no arguments.\n\n@param <T>\n@param function The function to invoke\n@param returnType The type of object to return\n@return The result of the function.", "Return a replica of this instance with the quality value of the given MediaType.\n@return the same instance if the given MediaType doesn't have a quality value, or a new one otherwise", "Returns the meta-data for the inverse side of the association represented by the given property on the given\npersister in case it represents the main side of a bi-directional one-to-many or many-to-many association.\n\n@param mainSidePersister persister of the entity hosting the property of interest\n@param propertyIndex index of the property of interest\n@return the meta-data of the inverse side of the specified association or {@code null} if no such meta-data\nexists", "Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .", "Calculate Median value.\n@param values Values.\n@return Median.", "Renders in LI tags, Wraps with UL tags optionally.", "Shutdown the socket server" ]
public boolean detectTierIphone() { if (detectIphoneOrIpod() || detectAndroidPhone() || detectWindowsPhone() || detectBlackBerry10Phone() || (detectBlackBerryWebKit() && detectBlackBerryTouch()) || detectPalmWebOS() || detectBada() || detectTizen() || detectFirefoxOSPhone() || detectSailfishPhone() || detectUbuntuPhone() || detectGamingHandheld()) { return true; } return false; }
[ "The quick way to detect for a tier of devices.\nThis method detects for devices which can\ndisplay iPhone-optimized web content.\nIncludes iPhone, iPod Touch, Android, Windows Phone 7 and 8, BB10, WebOS, Playstation Vita, etc.\n@return detection of any device in the iPhone/Android/Windows Phone/BlackBerry/WebOS Tier" ]
[ "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded", "Unlinks a set of dependencies from this task.\n\n@param task The task to remove dependencies from.\n@return Request object", "Use this API to fetch snmpalarm resource of given name .", "Shutdown the container.\n\n@see Weld#initialize()", "URLDecode a string\n@param s\n@return", "Converts an object to an XML file.\n\n@param object The object to convert.\n@param fileName The filename where to save it to.\n@throws FileNotFoundException On error.", "Creates the event type.\n\n@param type the EventEnumType\n@return the event type", "Implements the instanceof operator.\n\n@param instance The value that appeared on the LHS of the instanceof\noperator\n@return true if \"this\" appears in value's prototype chain", "Use this API to update vlan." ]
private static String toColumnName(String fieldName) { int lastDot = fieldName.indexOf('.'); if (lastDot > -1) { return fieldName.substring(lastDot + 1); } else { return fieldName; } }
[ "Returns the portion of the field name after the last dot, as field names\nmay actually be paths." ]
[ "Use this API to disable snmpalarm of given name.", "Load the windows resize handler with initial view port detection.", "Use this API to fetch statistics of appfwprofile_stats resource of given name .", "Helper function to bind script bundler to various targets", "Returns the value of the element with the largest value\n@param A (Input) Matrix. Not modified.\n@return scalar", "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", "The specified interface must not contain methods, that changes the state of this object itself.\n\n@param code\nsource code of an interface which describes how to generate the <i>immutable</i>\n@param settings\nsettings to generate code\n@return generated source code as string in a result wrapper", "Add all sub-classes using multiple joined tables feature for specified class.\n@param result The list to add results.\n@param cld The {@link ClassDescriptor} of the class to search for sub-classes.\n@param wholeTree If set <em>true</em>, the whole sub-class tree of the specified\nclass will be returned. If <em>false</em> only the direct sub-classes of the specified class\nwill be returned.", "Get all registration points associated with this registration.\n\n@return all registration points. Will not be {@code null} but may be empty" ]
public static linkset[] get(nitro_service service) throws Exception{ linkset obj = new linkset(); linkset[] response = (linkset[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the linkset resources that are configured on netscaler." ]
[ "All address strings are comparable. If two address strings are invalid, their strings are compared.\nOtherwise, address strings are compared according to which type or version of string, and then within each type or version\nthey are compared using the comparison rules for addresses.\n\n@param other\n@return", "Find the fields in which the Activity ID and Activity Type are stored.", ">>>>>> measureUntilFull helper methods", "Checks, if all values necessary for a specific pattern are valid.\n@return a flag, indicating if all values required for the pattern are valid.", "This method takes the textual version of an accrue type name\nand populates the class instance appropriately. Note that unrecognised\nvalues are treated as \"Prorated\".\n\n@param type text version of the accrue type\n@param locale target locale\n@return AccrueType class instance", "Reads a combined date and time value expressed in tenths of a minute.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "Adds a new Matrix variable. If one already has the same name it is written over.\n\nWhile more verbose for multiple variables, this function doesn't require new memory be declared\neach time it's called.\n\n@param variable Matrix which is to be assigned to name\n@param name The name of the variable", "Get prototype name.\n\n@return prototype name", "Tests whether the given string is the name of a java.lang type." ]
private void writeTaskPredecessors(Task record) { m_buffer.setLength(0); // // Write the task predecessor // if (!record.getSummary() && !record.getPredecessors().isEmpty()) { // I don't use summary tasks for SDEF m_buffer.append("PRED "); List<Relation> predecessors = record.getPredecessors(); for (Relation pred : predecessors) { m_buffer.append(SDEFmethods.rset(pred.getSourceTask().getUniqueID().toString(), 10) + " "); m_buffer.append(SDEFmethods.rset(pred.getTargetTask().getUniqueID().toString(), 10) + " "); String type = "C"; // default finish-to-start if (!pred.getType().toString().equals("FS")) { type = pred.getType().toString().substring(0, 1); } m_buffer.append(type + " "); Duration dd = pred.getLag(); double duration = dd.getDuration(); if (dd.getUnits() != TimeUnit.DAYS) { dd = Duration.convertUnits(duration, dd.getUnits(), TimeUnit.DAYS, m_minutesPerDay, m_minutesPerWeek, m_daysPerMonth); } Double days = Double.valueOf(dd.getDuration() + 0.5); // Add 0.5 so half day rounds up upon truncation Integer est = Integer.valueOf(days.intValue()); m_buffer.append(SDEFmethods.rset(est.toString(), 4) + " "); // task duration in days required by USACE } m_writer.println(m_buffer.toString()); } }
[ "Write each predecessor for a task.\n\n@param record Task instance" ]
[ "Deletes the metadata on this folder associated with a specified scope and template.\n\n@param templateName the metadata template type name.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").", "Search for rectangles which have the same width and x position, and\nwhich join together vertically and merge them together to reduce the\nnumber of rectangles needed to describe a symbol.", "After cluster management operations, i.e. reset quota and recover quota\nenforcement settings", "generate a prepared UPDATE-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor", "Appends the query part for the facet to the query string.\n@param query The current query string.\n@param name The name of the facet parameter, e.g. \"limit\", \"order\", ....\n@param value The value to set for the parameter specified by name.", "Gets the matching beans for binding criteria from a list of beans\n\n@param resolvable the resolvable\n@return A set of filtered beans", "Resolve the given class if it is a primitive class,\nreturning the corresponding primitive wrapper type instead.\n@param clazz the class to check\n@return the original class, or a primitive wrapper for the original primitive type", "Read custom fields for a GanttProject task.\n\n@param gpTask GanttProject task\n@param mpxjTask MPXJ Task instance", "Parse a date time value.\n\n@param value String representation\n@return Date instance" ]
public static void read(InputStream stream, byte[] buffer) throws IOException { int read = 0; while(read < buffer.length) { int newlyRead = stream.read(buffer, read, buffer.length - read); if(newlyRead == -1) throw new EOFException("Attempt to read " + buffer.length + " bytes failed due to EOF."); read += newlyRead; } }
[ "Read exactly buffer.length bytes from the stream into the buffer\n\n@param stream The stream to read from\n@param buffer The buffer to read into" ]
[ "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", "Consumer is required to do any privilege checks before getting here\n\n@param request a {@link HttpServletRequest} which may contain forced groups parameters from URL, Header or Cookie.\n@return a map of test names to bucket values specified by the request. Returns an empty {@link Map} if nothing was specified", "Returns true if this Bytes object equals another. This method checks it's arguments.\n\n@since 1.2.0", "Reads an argument of type \"nstring\" from the request.", "Returns the primary message codewords for mode 3.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "Set brightness to eg. darken the resulting image for use as background\n\n@param brightness default is 0, pos values increase brightness, neg. values decrease brightness\n.-100 is black, positive goes up to 1000+", "Generates a set of HTML files that contain data about the outcome of\nthe specified test suites.\n@param suites Data about the test runs.\n@param outputDirectoryName The directory in which to create the report.", "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "Return all Clients for a profile\n\n@param profileId ID of profile clients belong to\n@return collection of the Clients found\n@throws Exception exception" ]
public static dbdbprofile[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ dbdbprofile obj = new dbdbprofile(); options option = new options(); option.set_filter(filter); dbdbprofile[] response = (dbdbprofile[]) obj.getfiltered(service, option); return response; }
[ "Use this API to fetch filtered set of dbdbprofile resources.\nset the filter parameter values in filtervalue object." ]
[ "Use this API to delete appfwjsoncontenttype of given name.", "Returns the association row with the given key.\n\n@param key the key of the row to return.\n@return the association row with the given key or {@code null} if no row with that key is contained in this\nassociation", "Checks to see if the two matrices are inverses of each other.\n\n@param a A matrix. Not modified.\n@param b A matrix. Not modified.", "For the given service name return list of endpoint references currently\nregistered at the service locator server endpoints.\n\n@param serviceName\nthe name of the service for which to get the endpoints, must\nnot be <code>null</code>\n@return EndpointReferenceListType encapsulate list of endpoint references\nor <code>null</code>", "Returns the instance.\n@return InterceptorFactory", "Reads input data from a JSON file in the output directory.", "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise", "Use this API to fetch all the appfwwsdl resources that are configured on netscaler.", "Creates a date from the equivalent long value. This conversion\ntakes account of the time zone.\n\n@param date date expressed as a long integer\n@return new Date instance" ]
public void sub(Vector3d v1) { x -= v1.x; y -= v1.y; z -= v1.z; }
[ "Subtracts v1 from this vector and places the result in this vector.\n\n@param v1\nright-hand vector" ]
[ "Perform a one-off scan during boot to establish deployment tasks to execute during boot", "Reads primary key information from current RS row and generates a\n\ncorresponding Identity, and returns a proxy from the Identity.\n\n@throws PersistenceBrokerException\nif there was an error creating the proxy class", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return", "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", "Use this API to add dbdbprofile.", "Get an extent aware Iterator based on the Query\n\n@param query\n@param cld the ClassDescriptor\n@return OJBIterator", "Generate and return the list of statements to drop a database table.", "Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key", "Use this API to delete ntpserver resources of given names." ]
public int readFrom(byte[] src, int srcOffset, long destOffset, int length) { int readLen = (int) Math.min(src.length - srcOffset, Math.min(size() - destOffset, length)); ByteBuffer b = toDirectByteBuffer(destOffset, readLen); b.position(0); b.put(src, srcOffset, readLen); return readLen; }
[ "Read the given source byte array, then overwrite this buffer's contents\n\n@param src source byte array\n@param srcOffset offset in source byte array to read from\n@param destOffset offset in this buffer to read to\n@param length max number of bytes to read\n@return the number of bytes read" ]
[ "Sorts the given array into sorted order using the given comparator.\n\n@param self the array to be sorted\n@param comparator a Comparator used for the comparison\n@return the sorted array\n@since 1.5.5", "Loads a CRF classifier from an InputStream, and returns it. This method\ndoes not buffer the InputStream, so you should have buffered it before\ncalling this method.\n\n@param in\nInputStream to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with", "Gets a list of AssignmentRows based on the current Assignments\n@return", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set", "Removes all of the markers from the map.", "Only sets and gets that are by row and column are used.", "Use this API to unset the properties of clusterinstance resources.\nProperties that need to be unset are specified in args array.", "Check whether vector addition works. This is pure Java code and should work." ]
public void fire(StepStartedEvent event) { Step step = new Step(); event.process(step); stepStorage.put(step); notifier.fire(event); }
[ "Process StepStartedEvent. New step will be created and added to\nstepStorage.\n\n@param event to process" ]
[ "Gets the gradient at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@param gradient The output gradient, a vector of partial derivatives.", "Returns the real key object.", "Use this API to fetch all the ci resources that are configured on netscaler.", "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix.", "Readable yyyyMMdd int representation of a day, which is also sortable.", "Returns the latest change events, and clears them from the change stream listener.\n\n@return the latest change events.", "Adds a user defined field value to a task.\n\n@param fieldType field type\n@param container FieldContainer instance\n@param row UDF data", "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>", "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\"" ]
public static GVRTexture loadFutureCubemapTexture( GVRContext gvrContext, ResourceCache<GVRImage> textureCache, GVRAndroidResource resource, int priority, Map<String, Integer> faceIndexMap) { GVRTexture tex = new GVRTexture(gvrContext); GVRImage cached = textureCache.get(resource); if (cached != null) { Log.v("ASSET", "Future Texture: %s loaded from cache", cached.getFileName()); tex.setImage(cached); } else { AsyncCubemapTexture.get().loadTexture(gvrContext, CancelableCallbackWrapper.wrap(GVRCubemapImage.class, tex), resource, priority, faceIndexMap); } return tex; }
[ "Load a cube map texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource)} - it will\nusually be more convenient (and more efficient) to call that directly.\n\n@param gvrContext\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param resource\nA steam containing a zip file which contains six bitmaps. The\nsix bitmaps correspond to +x, -x, +y, -y, +z, and -z faces of\nthe cube map texture respectively. The default names of the\nsix images are \"posx.png\", \"negx.png\", \"posy.png\", \"negx.png\",\n\"posz.png\", and \"negz.png\", which can be changed by calling\n{@link GVRCubemapImage#setFaceNames(String[])}.\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)}" ]
[ "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 }", "Combines adjacent blocks of the same type.", "Get the domain controller data from the given byte buffer.\n\n@param buffer the byte buffer\n@return the domain controller data\n@throws Exception", "Verify that all OGM custom externalizers are present.\nN.B. even if some Externalizer is only needed in specific configuration,\nit is not safe to start a CacheManager without one as the same CacheManager\nmight be used, or have been used in the past, to store data using a different\nconfiguration.\n\n@see ExternalizerIds\n@see AdvancedExternalizer\n@param externalCacheManager the provided CacheManager to validate", "Return a stream of resources from a response\n\n@param response the response\n@param <R> the resource type\n@param <U> the response type\n@return a stream of resources from the response", "Returns the compact task records for all tasks with the given tag.\nTasks can have more than one tag at a time.\n\n@param tag The tag to fetch tasks from.\n@return Request object", "Converts from a bitmap to individual day flags for a weekly recurrence,\nusing the array of masks.\n\n@param days bitmap\n@param masks array of mask values", "Use this API to fetch vpnsessionaction resource of given name .", "Returns true if the query result has at least one row." ]
final protected char next(final ByteBuffer buffer, boolean allow8859) throws BaseExceptions.BadMessage { if (!buffer.hasRemaining()) return HttpTokens.EMPTY_BUFF; if (_segmentByteLimit <= _segmentBytePosition) { shutdownParser(); throw new BaseExceptions.BadMessage("Request length limit exceeded: " + _segmentByteLimit); } final byte b = buffer.get(); _segmentBytePosition++; // If we ended on a CR, make sure we are if (_cr) { if (b != HttpTokens.LF) { throw new BadCharacter("Invalid sequence: LF didn't follow CR: " + b); } _cr = false; return (char)b; // must be LF } // Make sure its a valid character if (b < HttpTokens.SPACE) { if (b == HttpTokens.CR) { // Set the flag to check for _cr and just run again _cr = true; return next(buffer, allow8859); } else if (b == HttpTokens.TAB || allow8859 && b < 0) { return (char)(b & 0xff); } else if (b == HttpTokens.LF) { return (char)b; // A backend should accept a bare linefeed. http://tools.ietf.org/html/rfc2616#section-19.3 } else if (isLenient()) { return HttpTokens.REPLACEMENT; } else { shutdownParser(); throw new BadCharacter("Invalid char: '" + (char)(b & 0xff) + "', 0x" + Integer.toHexString(b)); } } // valid ascii char return (char)b; }
[ "Removes CRs but returns LFs" ]
[ "Print a constraint type.\n\n@param value ConstraintType instance\n@return constraint type value", "Searches for brackets which are only used to construct new matrices by concatenating\n1 or more matrices together", "Invokes the ready tasks.\n\n@param context group level shared context that need be passed to\n{@link TaskGroupEntry#invokeTaskAsync(boolean, InvocationContext)}\nmethod of each entry in the group when it is selected for execution\n\n@return an observable that emits the result of tasks in the order they finishes.", "Random string from string array\n\n@param s Array\n@return String", "Checks if class is on class path\n@param className of the class to check.\n@return true if class in on class path, false otherwise.", "Unchecks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already unchecked; {@code false} otherwise.", "Get the exception message using the requested locale.\n\n@param locale locale for message\n@return exception message", "Use this API to fetch all the clusterinstance resources that are configured on netscaler.", "Writes all auxiliary triples that have been buffered recently. This\nincludes OWL property restrictions but it also includes any auxiliary\ntriples required by complex values that were used in snaks.\n\n@throws RDFHandlerException\nif there was a problem writing the RDF triples" ]
public ConfigOptionBuilder setCommandLineOptionWithArgument( CommandLineOption commandLineOption, StringConverter converter ) { co.setCommandLineOption( commandLineOption ); return setStringConverter( converter ); }
[ "if you want to parse an argument, you need a converter from String to Object\n\n@param commandLineOption specification of the command line options\n@param converter how to convert your String value to a castable Object" ]
[ "Create a mapping from entity names to entity ID values.", "Read resource data.", "Executes the query and returns the factory found, if there is only one factory.\nIf multiple factories match the query, one is selected.\n\n@param query the factory query, not null.\n@return the factory found, or null.", "Use this API to fetch cachepolicylabel_binding resource of given name .", "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", "Computes the eigenvalue of the 2 by 2 matrix.", "Ends interception context if it was previously stated. This is indicated by a local variable with index 0.", "Generates the build-info module for this docker image.\nAdditionally. this method tags the deployed docker layers with properties,\nsuch as build.name, build.number and custom properties defined in the Jenkins build.\n@param build\n@param listener\n@param config\n@param buildName\n@param buildNumber\n@param timestamp\n@return\n@throws IOException", "Wraps a linear solver of any type with a safe solver the ensures inputs are not modified" ]
public static Operation createDeployOperation(final DeploymentDescription deployment) { Assert.checkNotNullParam("deployment", deployment); final CompositeOperationBuilder builder = CompositeOperationBuilder.create(true); addDeployOperationStep(builder, deployment); return builder.build(); }
[ "Creates an operation to deploy existing deployment content to the runtime.\n\n@param deployment the deployment to deploy\n\n@return the deploy operation" ]
[ "Returns the result of the performed spellcheck formatted in JSON.\n\n@param request The CmsSpellcheckingRequest.\n@return JSONObject that contains the result of the performed spellcheck.", "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", "Extract resource assignments for a task.\n\n@param task parent task\n@param assignments list of Synchro resource assignment data", "We have obtained a beat grid for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this beat grid\n@param beatGrid the beat grid which we retrieved", "Setter for blob handle value.\n\n@param txn enclosing transaction\n@param localId entity local id.\n@param blobId blob id\n@param value property value.", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "Check real offset.\n\n@return the boolean", "Returns the index of the median of the three indexed chars.", "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" ]
public static Info rand( final Variable A , final Variable B , ManagerTempVariables manager) { Info ret = new Info(); final VariableMatrix output = manager.createMatrix(); ret.output = output; if( A instanceof VariableInteger && B instanceof VariableInteger ) { ret.op = new Operation("rand-ii") { @Override public void process() { int numRows = ((VariableInteger)A).value; int numCols = ((VariableInteger)B).value; output.matrix.reshape(numRows,numCols); RandomMatrices_DDRM.fillUniform(output.matrix, 0,1,manager.getRandom()); } }; } else { throw new RuntimeException("Expected two integers got "+A+" "+B); } return ret; }
[ "Uniformly random numbers" ]
[ "Record the details of the media being cached, to make it easier to recognize, now that we have access to that\ninformation.\n\n@param slot the slot from which a metadata cache is being created\n@param zos the stream to which the ZipFile is being written\n@param channel the low-level channel to which the cache is being written\n\n@throws IOException if there is a problem writing the media details entry", "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Returns whether or not the host editor service is available\n\n@return\n@throws Exception", "Removes all children", "Rollback the last applied patch.\n\n@param contentPolicy the content policy\n@param resetConfiguration whether to reset the configuration\n@param modification the installation modification\n@return the patching result\n@throws PatchingException", "Escape text to ensure valid JSON.\n\n@param value value\n@return escaped value", "Locate a feature in the file by match a byte pattern.\n\n@param patterns patterns to match\n@param bufferIndex start index\n@return true if the bytes at the position match a pattern", "Gets a SerialMessage with the SENSOR_ALARM_SUPPORTED_GET command\n@return the serial message, or null if the supported command is not supported.", "Returns the type discriminator value for given Frames model class, extracted from the @TypeValue annotation." ]
protected String sourceLineTrimmed(ASTNode node) { return sourceCode.line(AstUtil.findFirstNonAnnotationLine(node, sourceCode) - 1); }
[ "Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node" ]
[ "Resets all override settings for the clientUUID and disables it\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@throws Exception exception", "Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.\n\n@param self an Object with an iterator returning its values\n@param defaultResult an Object that should be returned if all closure results are null\n@param closure a closure that returns a non-null value when processing should stop\n@return the first non-null result of the closure, otherwise the default value\n@since 1.7.5", "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance", "Reads all sub-categories below the provided category.\n@return The map from the provided category to it's sub-categories in a {@link CmsJspCategoryAccessBean}.", "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "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 not 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", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Helper method fro providers to fire hotkey event in a separate thread\n\n@param hotKey hotkey to fire", "Generates a change event for a local deletion of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@return a change event for a local deletion of a document in the given namespace referring\nto the given document _id." ]
public ConverterServerBuilder baseUri(String baseUri) { checkNotNull(baseUri); this.baseUri = URI.create(baseUri); return this; }
[ "Specifies the base URI of this conversion server.\n\n@param baseUri The URI under which this remote conversion server is reachable.\n@return This builder instance." ]
[ "A specific, existing project can be updated by making a PUT request on the\nURL for that project. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated project record.\n\n@param project The project to update.\n@return Request object", "Use this API to fetch all the locationfile resources that are configured on netscaler.", "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", "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", "Call the no-arg constructor for the given class\n\n@param <T> The type of the thing to construct\n@param klass The class\n@return The constructed thing", "checks if the triangle is not re-entrant", "Take a stab at fixing validation problems ?\n\n@param object", "Write a short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "This method takes an array of data and uses this to populate the\nfield map.\n\n@param defaultData field map default data" ]
public static base_response unset(nitro_service client, nsconfig resource, String[] args) throws Exception{ nsconfig unsetresource = new nsconfig(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array." ]
[ "Obtains a Julian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Convert the message to a FinishRequest", "Use this API to fetch all the autoscaleprofile resources that are configured on netscaler.", "Are we running in Jetty with JMX enabled?", "Sets the HTML entity 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 htmlElementTranslator translator\n@return this to allow chaining", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the path containing the content\n\n@return the deployment", "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from", "Removes an accessory from being handled or advertised by this root. Any existing Homekit\nconnections will be terminated to allow the clients to reconnect and see the updated accessory\nlist.\n\n@param accessory accessory to cease advertising and handling" ]
public SerialMessage getValueMessage() { logger.debug("Creating new message for application command BASIC_GET for node {}", this.getNode().getNodeId()); SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageClass.SendData, SerialMessageType.Request, SerialMessageClass.ApplicationCommandHandler, SerialMessagePriority.Get); byte[] newPayload = { (byte) this.getNode().getNodeId(), 2, (byte) getCommandClass().getKey(), (byte) BASIC_GET }; result.setMessagePayload(newPayload); return result; }
[ "Gets a SerialMessage with the BASIC GET command\n@return the serial message" ]
[ "Gets the boxed type of a class\n\n@param type The type\n@return The boxed type", "Returns all methods for a specific group\n\n@param groupId group ID to remove methods from\n@param filters array of method types to filter by, null means no filter\n@return Collection of methods found\n@throws Exception exception", "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "Returns the screen height in pixels\n\n@param context is the context to get the resources\n@return the screen height in pixels", "Use this API to fetch statistics of spilloverpolicy_stats resource of given name .", "Get the DMR path for this node. For leaves, the DMR path is the path of its parent.\n@return The DMR path for this node.", "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException", "Checks the preconditions for creating a new LMinMax processor.\n\n@param min\nthe minimum value (inclusive)\n@param max\nthe maximum value (inclusive)\n@throws IllegalArgumentException\nif {@code max < min}" ]
private CmsFavInfo createFavInfo(CmsFavoriteEntry entry) throws CmsException { String title = ""; String subtitle = ""; CmsFavInfo result = new CmsFavInfo(entry); CmsObject cms = A_CmsUI.getCmsObject(); String project = getProject(cms, entry); String site = getSite(cms, entry); try { CmsUUID idToLoad = entry.getDetailId() != null ? entry.getDetailId() : entry.getStructureId(); CmsResource resource = cms.readResource(idToLoad, CmsResourceFilter.IGNORE_EXPIRATION.addRequireVisible()); CmsResourceUtil resutil = new CmsResourceUtil(cms, resource); switch (entry.getType()) { case explorerFolder: title = CmsStringUtil.isEmpty(resutil.getTitle()) ? CmsResource.getName(resource.getRootPath()) : resutil.getTitle(); break; case page: title = resutil.getTitle(); break; } subtitle = resource.getRootPath(); CmsResourceIcon icon = result.getResourceIcon(); icon.initContent(resutil, CmsResource.STATE_UNCHANGED, false, false); } catch (CmsException e) { LOG.warn(e.getLocalizedMessage(), e); } result.getTopLine().setValue(title); result.getBottomLine().setValue(subtitle); result.getProjectLabel().setValue(project); result.getSiteLabel().setValue(site); return result; }
[ "Creates a favorite widget for a favorite entry.\n\n@param entry the favorite entry\n@return the favorite widget\n\n@throws CmsException if something goes wrong" ]
[ "Start listening for device announcements and keeping track of the DJ Link devices visible on the network.\nIf already listening, has no effect.\n\n@throws SocketException if the socket to listen on port 50000 cannot be created", "Creates a real agent in the platform\n\n@param agent_name\nThe name that the agent is gonna have in the platform\n@param path\nThe path of the description (xml) of the agent", "get the ArrayTypeSignature corresponding to given generic array type\n\n@param genericArrayType\n@return", "Function to perform forward softmax", "Set day.\n\n@param d day instance", "Returns the coupon payment of the period with the given index. The analytic model is needed in case of floating bonds.\n\n@param periodIndex The index of the period of interest.\n@param model The model under which the product is valued.\n@return The value of the coupon payment in the given period.", "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Join to internal threads and wait millis time per thread or until all\nthreads are finished if millis is 0.\n\n@param millis the time to wait in milliseconds for the threads to join; a timeout of 0 means to wait forever.\n@throws InterruptedException if any thread has interrupted the current thread.\nThe interrupted status of the current thread is cleared when this exception is thrown.", "Perform construction.\n\n@param callbackHandler" ]
public AnalyticProductInterface getCalibrationProductForSymbol(String symbol) { /* * The internal data structure is not optimal here (a map would make more sense here), * if the user does not require access to the products, we would allow non-unique symbols. * Hence we store both in two side by side vectors. */ for(int i=0; i<calibrationProductsSymbols.size(); i++) { String calibrationProductSymbol = calibrationProductsSymbols.get(i); if(calibrationProductSymbol.equals(symbol)) { return calibrationProducts.get(i); } } return null; }
[ "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." ]
[ "Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plaintext password.\n@param hashed scrypt hashed password.\n\n@return true if passwd matches hashed value.", "Serialize the Document object.\n\n@param dom the document to serialize\n@return the serialized dom String", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"", "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", "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", "Validates that the data structure at position startEndRecord has a field in the expected position\nthat points to the start of the first central directory file, and, if so, that the file\nhas a complete end of central directory record comment at the end.\n\n@param file the file being checked\n@param channel the channel\n@param startEndRecord the start of the end of central directory record\n@param endSig the end of central dir signature\n@return true if it can be confirmed that the end of directory record points to a central directory\nfile and a complete comment is present, false otherwise\n@throws java.io.IOException", "Reads entries from transforms.xml.\n\n@param file the XML file\n@return the transform entries read from the file\n\n@throws Exception if something goes wrong", "Used to get the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param output Storage for the value", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the proper value" ]
public void configure(@Observes(precedence = -10) ArquillianDescriptor arquillianDescriptor) { Map<String, String> config = arquillianDescriptor.extension(EXTENSION_NAME).getExtensionProperties(); CubeConfiguration cubeConfiguration = CubeConfiguration.fromMap(config); configurationProducer.set(cubeConfiguration); }
[ "Add precedence -10 because we need that ContainerRegistry is available in the Arquillian scope." ]
[ "Returns the connection count by key specified in this registry\n\nNote it might count connections that are closed but not removed from registry yet\n\n@param key\nthe key\n@return connection count by key", "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.", "Set the draw mode for this mesh. Default is GL_TRIANGLES.\n\n@param drawMode", "Use this API to fetch vrid_nsip6_binding resources of given name .", "Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the\ntimestampTest.\n\n@param dest Destination ColumnBuffer\n@param timestampTest Test to determine which timestamps get added to dest", "Clears all scopes. Useful for testing and not getting any leak...", "Handle a simple ping request.\n\n@param channel the channel\n@param header the protocol header\n@throws IOException for any error", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "Add a polygon symbolizer definition to the rule.\n\n@param styleJson The old style." ]
public boolean getBooleanProperty(String name, boolean defaultValue) { return PropertyHelper.toBoolean(_properties.getProperty(name), defaultValue); }
[ "Returns the boolean value of the specified property.\n\n@param name The name of the property\n@param defaultValue The value to use if the property is not set or not a boolean\n@return The value" ]
[ "Shows error dialog, manually supplying details instead of getting them from an exception stack trace.\n\n@param message the error message\n@param details the details", "Locate a feature in the file by match a byte pattern.\n\n@param patterns patterns to match\n@param bufferIndex start index\n@return true if the bytes at the position match a pattern", "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1", "generates a Meta Object Protocol method, that is used to call a non public\nmethod, or to make a call to super.\n\n@param mopCalls list of methods a mop call method should be generated for\n@param useThis true if \"this\" should be used for the naming", "Retrieves the timephased breakdown of cost.\n\n@return timephased cost", "Writes a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.", "Checks the foreignkeys of all references in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid", "Returns the start position of the indicator.\n\n@return The start position of the indicator.", "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" ]
public Task add() { Task task = new Task(m_projectFile, (Task) null); add(task); m_projectFile.getChildTasks().add(task); return task; }
[ "Add a task to the project.\n\n@return new task instance" ]
[ "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop", "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "Executes the API action \"wbsearchentity\" for the given parameters.\nSearches for entities using labels and aliases. Returns a label and\ndescription for the entity in the user language if possible. Returns\ndetails of the matched term. The matched term text is also present in the\naliases key if different from the display label.\n\n<p>\nSee the <a href=\n\"https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentity\"\n>online API documentation</a> for further information.\n<p>\n\n@param search\n(required) search for this text\n@param language\n(required) search in this language\n@param strictLanguage\n(optional) whether to disable language fallback\n@param type\n(optional) search for this type of entity\nOne of the following values: item, property\nDefault: item\n@param limit\n(optional) maximal number of results\nno more than 50 (500 for bots) allowed\nDefault: 7\n@param offset\n(optional) offset where to continue a search\nDefault: 0\nthis parameter is called \"continue\" in the API (which is a Java keyword)\n\n@return list of matching entities retrieved via the API URL\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IllegalArgumentException\nif the given combination of parameters does not make sense", "Get the property name from the expression.\n\n@param expression expression\n@return property name", "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent", "Converts the node to JSON\n@return JSON object", "Use this API to fetch statistics of scpolicy_stats resource of given name .", "Given a partition ID, determine which replica of this partition is hosted by the\ncurrent node, if any.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param partitionId for which we want to know the replica type\n@return the requested partition's replica type (which ranges from 0 to replication\nfactor -1) if the partition is hosted on the current node, or -1 if the\nrequested partition is not hosted on this node.", "Convert an Object to a Timestamp." ]
public byte[] toByteArray() { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(this); return baos.toByteArray(); } catch (IOException e) { throw E.ioException(e); } }
[ "Serialize this `AppDescriptor` and output byte array\n\n@return\nserialize this `AppDescriptor` into byte array" ]
[ "Returns whether the division grouping range matches the block of values for its prefix length.\nIn other words, returns true if and only if it has a prefix length and it has just a single prefix.", "Computes annualized seasonal adjustments from given monthly realized CPI values.\n\n@param realizedCPIValues An array of consecutive monthly CPI values (minimum size is 12*numberOfYearsToAverage))\n@param lastMonth The index of the last month in the sequence of realizedCPIValues (corresponding to the enums in <code>{@link java.time.Month}</code>).\n@param numberOfYearsToAverage The number of years to go back in the array of realizedCPIValues.\n@return Array of annualized seasonal adjustments, where [0] corresponds to the adjustment for from December to January.", "Reads and sets the next feed in the stream.", "Method used to update fields with values received from API.\n@param jsonObject JSON-encoded info about File Version object.", "Returns iterable with all assignments of given type of this retention policy.\n@param type the type of the retention policy assignment to retrieve. Can either be \"folder\" or \"enterprise\".\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments of given type.", "Removes all events from table\n\n@param table the table to remove events", "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.", "Require that the namespace of the current element matches the required namespace.\n\n@param reader the reader\n@param requiredNs the namespace required\n@throws XMLStreamException if the current namespace does not match the required namespace", "Sets the right padding for all cells in the table.\n@param paddingRight new padding, ignored if smaller than 0\n@return this to allow chaining" ]
public ProteusApplication setServerConfigurationFunction(Function<Undertow.Builder, Undertow.Builder> serverConfigurationFunction) { this.serverConfigurationFunction = serverConfigurationFunction; return this; }
[ "Allows direct access to the Undertow.Builder for custom configuration\n\n@param serverConfigurationFunction the serverConfigurationFunction" ]
[ "Given a key and a list of steal infos give back a list of stealer node\nids which will steal this.\n\n@param key Byte array of key\n@param stealerNodeToMappingTuples Pairs of stealer node id to their\ncorresponding [ partition - replica ] tuples\n@param cluster Cluster metadata\n@param storeDef Store definitions\n@return List of node ids", "Deletes this collaboration whitelist.", "Get the authentication for a specific token.\n\n@param token token\n@return authentication if any", "Invalidate layout setup.", "Get the server redirects for a given clientId from the database\n\n@param clientId client ID\n@return collection of ServerRedirects", "This method calculates the absolute number of days between two dates.\nNote that where two date objects are provided that fall on the same\nday, this method will return one not zero. Note also that this method\nassumes that the dates are passed in the correct order, i.e.\nstartDate < endDate.\n\n@param startDate Start date\n@param endDate End date\n@return number of days in the date range", "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", "Generate a Jongo query regarding a set of parameters.\n\n@param params Map<queryKey, queryValue> of query parameters\n@return String", "Creates a new block box from the given element with the given parent. No style is assigned to the resulting box.\n@param parent The parent box in the tree of boxes.\n@param n The element that this box belongs to.\n@param replaced When set to <code>true</code>, a replaced block box will be created. Otherwise, a normal non-replaced block will be created.\n@return The new block box." ]
public static void ensureChildElement(DomXmlElement parentElement, DomXmlElement childElement) { Node parent = childElement.unwrap().getParentNode(); if (parent == null || !parentElement.unwrap().isEqualNode(parent)) { throw LOG.elementIsNotChildOfThisElement(childElement, parentElement); } }
[ "Ensures that the element is child element of the parent element.\n\n@param parentElement the parent xml dom element\n@param childElement the child element\n@throws SpinXmlElementException if the element is not child of the parent element" ]
[ "Creates a ServiceCall from a paging operation.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@return the future based ServiceCall", "Adds a criterion to given pipeline which filters out vertices representing given WindupVertexFrame.", "Loads the specified class name and stores it in the hash\n\n@param className class name\n@throws Exception exception", "Returns a projection object for specifying the fields to retrieve during a specific find operation.", "Description accessor provided for JSON serialization only.", "Returns whether this is a valid address string format.\n\nThe accepted IP address formats are:\nan IPv4 address, an IPv6 address, a network prefix alone, the address representing all addresses of all types, or an empty string.\nIf this method returns false, and you want more details, call validate() and examine the thrown exception.\n\n@return whether this is a valid address string format", "Shows a dialog with user information for given session.\n\n@param session to show information for", "Verifies a provided signature.\n\n@param key\nfor which signature key\n@param actualAlgorithm\ncurrent signature algorithm\n@param actualSignature\ncurrent signature\n@param webHookPayload\nfor signing\n@param deliveryTimestamp\nfor signing\n@return true if verification passed", "Given counters of true positives, false positives, and false\nnegatives, prints out precision, recall, and f1 for each key." ]
public void forAllMemberTagTokens(String template, Properties attributes) throws XDocletException { if (getCurrentField() != null) { forAllMemberTagTokens(template, attributes, FOR_FIELD); } else if (getCurrentMethod() != null) { forAllMemberTagTokens(template, attributes, FOR_METHOD); } }
[ "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"" ]
[ "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes", "Finds for the given project.\n\n@param name project name\n@return given project or an empty {@code Optional} if project does not exist\n@throws IllegalArgumentException", "Creates the next permutation in the sequence.\n\n@return An array containing the permutation. The returned array is modified each time this function is called.", "Processes the template for all indices of the current table.\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=\"unique\" optional=\"true\" description=\"Whether to process the unique indices or not\"\nvalues=\"true,false\"", "Adds one or several attributes to facet on for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "Reorder the objects in the table to resolve referential integrity dependencies.", "Get a default style. If null a simple black line style will be returned.\n\n@param geometryType the name of the geometry type (point, line, polygon)", "Use this API to update sslcertkey.", "Gives an sequence of ByteBuffers of a specified range. Writing to these ByteBuffers modifies the contents of this LBuffer.\n@param offset\n@param size\n@return" ]
public static hanode_routemonitor_binding[] get(nitro_service service, Long id) throws Exception{ hanode_routemonitor_binding obj = new hanode_routemonitor_binding(); obj.set_id(id); hanode_routemonitor_binding response[] = (hanode_routemonitor_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch hanode_routemonitor_binding resources of given name ." ]
[ "Use this API to fetch nslimitselector resource of given name .", "Reads characters until the 'end' character is encountered.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "Map from an activity code value UUID to the actual value itself, and its\nsequence number.\n\n@param storepoint storepoint containing current project data", "helper method to activate or deactivate a specific flag\n\n@param bits\n@param on", "Return a long value from a prepared query.", "associate the batched Children with their owner object loop over children", "Returns the name of the bone.\n\n@return the name", "Appends a String to the string representation of this number.\n\n@param value a Number\n@param right a String\n@return a String\n@since 1.0", "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods" ]
public ItemRequest<User> findById(String user) { String path = String.format("/users/%s", user); return new ItemRequest<User>(this, User.class, path, "GET"); }
[ "Returns the full user record for the single user with the provided ID.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object" ]
[ "This is the profiles page. this is the 'regular' page when the url is typed in", "Returns the result of calling a closure with the first occurrence of a regular expression found within a CharSequence.\nIf the regex doesn't match, the closure will not be called and find will return null.\n\n@param self a CharSequence\n@param regex the capturing regex CharSequence\n@param closure the closure that will be passed the full match, plus each of the capturing groups (if any)\n@return a String containing the result of calling the closure (calling toString() if needed), or null if the regex pattern doesn't match\n@see #find(String, java.util.regex.Pattern, groovy.lang.Closure)\n@since 1.8.2", "Reads data from a single page of the database file.\n\n@param buffer page from the database file\n@param table Table instance", "Converts a list of dates to a Json array with the long representation of the dates as strings.\n@param individualDates the list to convert.\n@return Json array with long values of dates as string", "Load the entity activating the persistence context execution boundaries\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when {@code true}, get an existing proxy for each collection element (if there is one)\n@return the result of the query", "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.", "Encodes the given URI user info with the given encoding.\n@param userInfo the user info to be encoded\n@param encoding the character encoding to encode to\n@return the encoded user info\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "True if a CharSequence only contains whitespace characters.\n\n@param self The CharSequence to check the characters in\n@return true If all characters are whitespace characters\n@see #isAllWhitespace(String)\n@since 1.8.2", "Moves a calendar to the nth named day of the month.\n\n@param calendar current date\n@param dayNumber nth day" ]
public static base_response disable(nitro_service client, Long clid) throws Exception { clusterinstance disableresource = new clusterinstance(); disableresource.clid = clid; return disableresource.perform_operation(client,"disable"); }
[ "Use this API to disable clusterinstance of given name." ]
[ "Build data model for serialization.", "Returns the device push token or null\n\n@param type com.clevertap.android.sdk.PushType (FCM or GCM)\n@return String device token or null\nNOTE: on initial install calling getDevicePushToken may return null, as the device token is\nnot yet available\nImplement CleverTapAPI.DevicePushTokenRefreshListener to get a callback once the token is\navailable", "Resize the given mesh keeping its aspect ration.\n@param mesh Mesh to be resized.\n@param size Max size for the axis.", "Does the bitwise conjunction with this address. Useful when subnetting.\n\n@param mask\n@param retainPrefix whether to drop the prefix\n@return\n@throws IncompatibleAddressException", "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", "Unescape and unquote the path. Ready for translation.", "Use this API to update cachecontentgroup.", "Sets the left padding for all cells in the row.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Returns the number of rows within this association.\n\n@return the number of rows within this association" ]
protected String consumeWord(ImapRequestLineReader request, CharacterValidator validator) throws ProtocolException { StringBuilder atom = new StringBuilder(); char next = request.nextWordChar(); while (!isWhitespace(next)) { if (validator.isValid(next)) { atom.append(next); request.consume(); } else { throw new ProtocolException("Invalid character: '" + next + '\''); } next = request.nextChar(); } return atom.toString(); }
[ "Reads the next \"word from the request, comprising all characters up to the next SPACE.\nCharacters are tested by the supplied CharacterValidator, and an exception is thrown\nif invalid characters are encountered." ]
[ "Enables a custom response\n\n@param model\n@param custom\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "Count the number of occurrences of a sub CharSequence.\n\n@param self a CharSequence\n@param text a sub CharSequence\n@return the number of occurrences of the given CharSequence inside this CharSequence\n@see #count(String, String)\n@since 1.8.2", "Determine which unit to use when creating grid labels.\n\n@param mapCrs the crs of the map, used if the {@link #labelProjection} is not defined.", "Returns a short class name for an object.\nThis is the class name stripped of any package name.\n\n@return The name of the class minus a package name, for example\n<code>ArrayList</code>", "Transits a float propertyId from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Fetch a value from the Hashmap .\n\n@param firstKey\nfirst key\n@param secondKey\nsecond key\n@return the element or null.", "Retrieves a vertex attribute as a float array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatVec(String, FloatBuffer)\n@see #getFloatArray(String)", "Solve the using the lower triangular matrix in LU. Diagonal elements are assumed\nto be 1" ]
public void addOrder(String columnName, boolean ascending) { if (columnName == null) { return; } for (int i = 0; i < columns.size(); i++) { if (!columnName.equals(columns.get(i).getData())) { continue; } order.add(new Order(i, ascending ? "asc" : "desc")); } }
[ "Add an order on the given column\n\n@param columnName the name of the column\n@param ascending whether the sorting is ascending or descending" ]
[ "Delete a server group by id\n\n@param id server group ID", "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Use this API to unset the properties of aaaparameter resource.\nProperties that need to be unset are specified in args array.", "Print a time value.\n\n@param value time value\n@return time value", "Roll the years forward or backward.\n\n@param startDate - The start date\n@param years - Negative to rollbackwards.", "Find all the node representing the entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@return an iterator over the nodes representing an entity", "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}.", "Read a Synchro date from an input stream.\n\n@param is input stream\n@return Date instance" ]
private String toRfsName(String name, IconSize size) { return CmsStringUtil.joinPaths(m_cache.getRepositoryPath(), "" + name.hashCode()) + size.getSuffix(); }
[ "Transforms user name and icon size into the rfs image path.\n\n@param name the user name\n@param size IconSize to get icon for\n\n@return the path" ]
[ "Write resource assignment.\n\n@param record resource assignment instance\n@throws IOException", "Returns IMAP formatted String of MessageFlags for named user", "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.", "Injects EJBs and other EE resources.\n\n@param resourceInjectionsHierarchy\n@param beanInstance\n@param ctx", "Starts a background thread which calls the controller every\ncheck_interval milliseconds. Returns immediately, leaving the\nbackground thread running.", "Adds an access constraint to the set used with the attribute\n@param accessConstraint the constraint\n@return a builder that can be used to continue building the attribute definition", "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", "Returns the connection count by key specified in this registry\n\nNote it might count connections that are closed but not removed from registry yet\n\n@param key\nthe key\n@return connection count by key", "This method is used by non-blocking code to determine if the give buffer\nrepresents a complete request. Because the non-blocking code can by\ndefinition not just block waiting for more data, it's possible to get\npartial reads, and this identifies that case.\n\n@param buffer Buffer to check; the buffer is reset to position 0 before\ncalling this method and the caller must reset it after the call\nreturns\n@return True if the buffer holds a complete request, false otherwise" ]
private String[] readXMLDeclaration(Reader r) throws KNXMLException { final StringBuffer buf = new StringBuffer(100); try { for (int c = 0; (c = r.read()) != -1 && c != '?';) buf.append((char) c); } catch (final IOException e) { throw new KNXMLException("reading XML declaration, " + e.getMessage(), buf .toString(), 0); } String s = buf.toString().trim(); String version = null; String encoding = null; String standalone = null; for (int state = 0; state < 3; ++state) if (state == 0 && s.startsWith("version")) { version = getAttValue(s = s.substring(7)); s = s.substring(s.indexOf(version) + version.length() + 1).trim(); } else if (state == 1 && s.startsWith("encoding")) { encoding = getAttValue(s = s.substring(8)); s = s.substring(s.indexOf(encoding) + encoding.length() + 1).trim(); } else if (state == 1 || state == 2) { if (s.startsWith("standalone")) { standalone = getAttValue(s); if (!standalone.equals("yes") && !standalone.equals("no")) throw new KNXMLException("invalid standalone pseudo-attribute", standalone, 0); break; } } else throw new KNXMLException("unknown XML declaration pseudo-attribute", s, 0); return new String[] { version, encoding, standalone }; }
[ "returns array with length 3 and optional entries version, encoding, standalone" ]
[ "Add raw SQL \"ORDER BY\" clause to the SQL query statement.\n\n@param rawSql\nThe raw SQL order by clause. This should not include the \"ORDER BY\".", "Closing will only skip to the end of this fixed length input stream and\nnot call the parent's close method.\n@throws IOException if an I/O error occurs while closing stream", "Sets a configuration option to the specified value.", "Return the value of field in the data argument if it is not the default value for the class. If it is the default\nthen null is returned.", "Read an optional boolean value form a JSON value.\n@param val the JSON value that should represent the boolean.\n@return the boolean from the JSON or null if reading the boolean fails.", "Add a new subsystem to a given registry.\n\n@param registry the registry\n@param name the subsystem name\n@param version the version", "Function to delete the specified store from Metadata store. This involves\n\n1. Remove entry from the ConfigurationStorageEngine for STORES.\n\n2. Update the metadata cache.\n\n3. Re-create the 'stores.xml' key\n\n@param storeName specifies name of the store to be deleted.", "return the workspace size needed for ctc", "Initializes the default scope type" ]
public static void log(byte[] data) { if (LOG != null) { LOG.println(ByteArrayHelper.hexdump(data, true, 16, "")); LOG.flush(); } }
[ "Log a byte array as a hex dump.\n\n@param data byte array" ]
[ "Demonstrates obtaining the request history data from a test run", "Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.\n\n@param beanClass\n@return the additional bean deployment archive", "Use this API to delete gslbservice of given name.", "This method returns the length of overlapping time between two time\nranges.\n\n@param start1 start of first range\n@param end1 end of first range\n@param start2 start start of second range\n@param end2 end of second range\n@return overlapping time in milliseconds", "Load a table configuration in from a text-file reader.\n\n@return A config if any of the fields were set otherwise null if we reach EOF.", "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance", "Create a clone of the Renderer. This method is the base of the prototype mechanism implemented\nto avoid create new objects from RendererBuilder. Pay an special attention implementing clone\nmethod in Renderer subtypes.\n\n@return a copy of the current renderer.", "Obtain the master partition for a given key\n\n@param key\n@return master partition id", "Read a block of data from the FastTrack file and determine if\nit contains a table definition, or columns.\n\n@param blockIndex index of the current block\n@param startIndex start index of the block in the file\n@param blockLength block length" ]
public static boolean isPrimitiveArray(Class<?> clazz) { Assert.notNull(clazz, "Class must not be null"); return (clazz.isArray() && clazz.getComponentType().isPrimitive()); }
[ "Check if the given class represents an array of primitives,\ni.e. boolean, byte, char, short, int, long, float, or double.\n@param clazz the class to check\n@return whether the given class is a primitive array class" ]
[ "Set the role info for this user. If set, this will be used to set the user's authorizations.\n\n@param roles the roles\n@since 1.10.0", "Adds tags to the If-Match header.\n\n@param tag the tag to add, may be null. This means the same as adding {@link Tag#ALL}\n@throws IllegalArgumentException if ALL is supplied more than once, or you add a null tag more than once.\n@return a new Conditionals object with the If-Match tag added.", "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)", "Returns the length of the message in bytes as it is encoded on the wire.\n\nApple require the message to be of length 255 bytes or less.\n\n@return length of encoded message in bytes", "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.", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "Create a Collection Proxy for a given query.\n\n@param brokerKey The key of the persistence broker\n@param query The query\n@param collectionClass The class to build the proxy for\n@return The collection proxy", "Function to perform backward pooling", "Read resource baseline values.\n\n@param row result set row" ]
@IntRange(from = 0, to = OPAQUE) private static int resolveLineAlpha( @IntRange(from = 0, to = OPAQUE) final int sceneAlpha, final float maxDistance, final float distance) { final float alphaPercent = 1f - distance / maxDistance; final int alpha = (int) ((float) OPAQUE * alphaPercent); return alpha * sceneAlpha / OPAQUE; }
[ "Resolves line alpha based on distance comparing to max distance.\nWhere alpha is close to 0 for maxDistance, and close to 1 to 0 distance.\n\n@param distance line length\n@param maxDistance max line length\n@return line alpha" ]
[ "Creates a map of identifiers or page titles to documents retrieved via\nthe API URL\n\n@param properties\nparameter setting for wbgetentities\n@return map of document identifiers or titles to documents retrieved via\nthe API URL\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\nif we encounter network issues or HTTP 500 errors from Wikibase", "Return the association as cached in the entry state.\n\n@param collectionRole the role of the association\n@return the cached association", "Adds a patch operation.\n@param op the operation type. Must be add, replace, remove, or test.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value to be set.", "Fancy print without a space added to positive numbers", "Handle a change in the weeks of month.\n@param week the changed weeks checkbox's internal value.\n@param value the new value of the changed checkbox.", "Removes a parameter from this configuration.\n\n@param key the parameter to remove", "Checks if a key already exists.\n@param newKey the key to check for.\n@return <code>true</code> if the key already exists, <code>false</code> otherwise.", "Returns the instance.\n@return InterceptorFactory", "Process the graphical indicator data." ]
private void deriveProjectCalendar() { // // Count the number of times each calendar is used // Map<ProjectCalendar, Integer> map = new HashMap<ProjectCalendar, Integer>(); for (Task task : m_project.getTasks()) { ProjectCalendar calendar = task.getCalendar(); Integer count = map.get(calendar); if (count == null) { count = Integer.valueOf(1); } else { count = Integer.valueOf(count.intValue() + 1); } map.put(calendar, count); } // // Find the most frequently used calendar // int maxCount = 0; ProjectCalendar defaultCalendar = null; for (Entry<ProjectCalendar, Integer> entry : map.entrySet()) { if (entry.getValue().intValue() > maxCount) { maxCount = entry.getValue().intValue(); defaultCalendar = entry.getKey(); } } // // Set the default calendar for the project // and remove it's use as a task-specific calendar. // if (defaultCalendar != null) { m_project.setDefaultCalendar(defaultCalendar); for (Task task : m_project.getTasks()) { if (task.getCalendar() == defaultCalendar) { task.setCalendar(null); } } } }
[ "Asta Powerproject assigns an explicit calendar for each task. This method\nis used to find the most common calendar and use this as the default project\ncalendar. This allows the explicitly assigned task calendars to be removed." ]
[ "Use this API to fetch all the nsspparams resources that are configured on netscaler.", "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object.", "Append a SubQuery the SQL-Clause\n@param subQuery the subQuery value of SelectionCriteria", "Use this API to fetch hanode_routemonitor_binding resources of given name .", "Use this API to update gslbsite resources.", "Get the value of a primitive type from the request data.\n\n@param fieldName the name of the attribute to get from the request data.\n@param pAtt the primitive attribute.\n@param requestData the data to retrieve the value from.", "Convert event type.\n\n@param eventType the event type\n@return the event enum type", "generate a prepared SELECT-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor", "Destroys the current session" ]
protected boolean isFiltered(Param param) { AbstractElement elementToParse = param.elementToParse; while (elementToParse != null) { if (isFiltered(elementToParse, param)) { return true; } elementToParse = getEnclosingSingleElementGroup(elementToParse); } return false; }
[ "Returns true if the grammar element that is associated with the given param is filtered due to guard conditions\nof parameterized rules in the current call stack.\n\nIf the grammar element is the only element contained in a group, its container is checked, too.\n\n@see #isFiltered(AbstractElement, Param)" ]
[ "Gets the value for the key.\n\n@param key the key to check for the value\n\n@return the value or an empty collection if no values were set", "Establish a new tempo master, and if it is a change from the existing one, report it to the listeners.\n\n@param newMaster the packet which caused the change of masters, or {@code null} if there is now no master.", "symbol for filling padding position in output", "Use this API to clear bridgetable.", "Updates the gatewayDirection attributes of all gateways.\n@param def", "Issue the database statements to drop the table associated with a table configuration.\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 tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\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.", "Reads color table as 256 RGB integer values.\n\n@param ncolors int number of colors to read.\n@return int array containing 256 colors (packed ARGB with full alpha).", "Use this API to delete snmpmanager.", "Converts a sequence of unicode code points to a sequence of Java characters.\n\n@return the number of chars written to the destination buffer" ]
private boolean contentEqualsUnchecked(byte[] bytes, int offset, int len) { if (length != len) { return false; } return compareToUnchecked(bytes, offset, len) == 0; }
[ "Returns true if this Bytes object equals another. This method doesn't check it's arguments.\n\n@since 1.2.0" ]
[ "Blocking function which completes the migration of one store\n\n@param storeName The name of the store\n@param adminClient Admin client used to initiate the copying of data\n@param stealInfo The steal information\n@param isReadOnlyStore Boolean indicating that this is a read-only store", "Retrieve the default number of minutes per month.\n\n@return minutes per month", "Use this API to fetch sslcipher resources of given names .", "Use this API to fetch all the cacheselector resources that are configured on netscaler.", "In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.\n\n@param f the file containing the external vault configuration as generated by the vault tool\n@return the vault config", "Init after constructor", "Convert an operation for deployment overlays to be executed on local servers.\nSince this might be called in the case of redeployment of affected deployments, we need to take into account\nthe composite op resulting from such a transformation\n@see AffectedDeploymentOverlay#redeployLinksAndTransformOperationForDomain\n@param operation\n@param host\n@return", "Make superclasses method protected??", "Pause the current entry point, and invoke the provided listener when all current requests have finished.\n\nIf individual control point tracking is not enabled then the listener will be invoked straight away\n\n@param requestCountListener The listener to invoke" ]
public static void unsetCurrentPersistenceBroker(PBKey key, PersistenceBrokerInternal broker) throws PBFactoryException { HashMap map = (HashMap) currentBrokerMap.get(); WeakHashMap set = null; if(map != null) { set = (WeakHashMap) map.get(key); if(set != null) { set.remove(broker); if(set.isEmpty()) { map.remove(key); } } if(map.isEmpty()) { currentBrokerMap.set(null); synchronized(lock) { loadedHMs.remove(map); } } } }
[ "Unmark a PersistenceBroker as preferred choice for current Thread\n\n@param key The PBKey the broker is associated to\n@param broker The PersistenceBroker to unmark" ]
[ "Closes the transactor node by removing its node in Zookeeper", "Append the data of another lattice to this lattice. If the other lattice follows a different quoting convention, it is automatically converted.\nHowever, this method does not check, whether the two lattices are aligned in terms of reference date, curve names and meta schedules.\nIf the two lattices have shared data points, the data from this lattice will be overwritten.\n\n@param other The lattice containing the data to be appended.\n@param model The model to use for context, in case the other lattice follows a different convention.\n\n@return The lattice with the combined swaption entries.", "Waits for the timeout duration until the url responds with correct status code\n\n@param routeUrl URL to check (usually a route one)\n@param timeout Max timeout value to await for route readiness.\nIf not set, default timeout value is set to 5.\n@param timeoutUnit TimeUnit used for timeout duration.\nIf not set, Minutes is used as default TimeUnit.\n@param repetitions How many times in a row the route must respond successfully to be considered available.\n@param statusCodes list of status code that might return that service is up and running.\nIt is used as OR, so if one returns true, then the route is considered valid.\nIf not set, then only 200 status code is used.", "Sets the origin and direction of the pick ray.\n\n@param ox X coordinate of origin.\n@param oy Y coordinate of origin.\n@param oz Z coordinate of origin.\n@param dx X coordinate of ray direction.\n@param dy Y coordinate of ray direction.\n@param dz Z coordinate of ray direction.\n\nThe coordinate system of the ray depends on the whether the\npicker is attached to a scene object or not. When attached\nto a scene object, the ray is in the coordinate system of\nthat object where (0, 0, 0) is the center of the scene object\nand (0, 0, 1) is it's positive Z axis. If not attached to an\nobject, the ray is in the coordinate system of the scene's\nmain camera with (0, 0, 0) at the viewer and (0, 0, -1)\nwhere the viewer is looking.\n@see #doPick()\n@see #getPickRay()\n@see #getWorldPickRay(Vector3f, Vector3f)", "Support the subscript operator for CharSequence.\n\n@param text a CharSequence\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Populate a milestone from a Row instance.\n\n@param row Row instance\n@param task Task instance", "Use this API to update appfwlearningsettings.", "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "Set hint number for country" ]
@Override public PaxDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); }
[ "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}" ]
[ "Set the main attribute \"Bundle-Activator\" to the given value.\n\n@param bundleActivator The new value", "Add the given pair to a given map for obtaining a new map.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n<p>\nEven if the key of the right operand exists in the left operand, the value in the right operand is preferred.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the map to consider.\n@param right the entry (key, value) to add into the map.\n@return an immutable map with the content of the map and with the given entry.\n@throws IllegalArgumentException - when the right operand key exists in the left operand.\n@since 2.15", "Print a duration represented by an arbitrary fraction of minutes.\n\n@param duration Duration instance\n@param factor required factor\n@return duration represented as an arbitrary fraction of minutes", "Convert gallery name to title key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"", "Flush the in-memory data to the file", "Sets that there are some pending writes that occurred at a time for an associated\nlocally emitted change event. This variant maintains the last version set.\n\n@param atTime the time at which the write occurred.\n@param changeEvent the description of the write/change.", "Stops the scavenger.", "Print priority.\n\n@param priority Priority instance\n@return priority value", "Add a '&gt;=' clause so the column must be greater-than or equals-to the value." ]
public boolean classifyDocumentStdin(DocumentReaderAndWriter<IN> readerWriter) throws IOException { BufferedReader is = new BufferedReader(new InputStreamReader(System.in, flags.inputEncoding)); String line; String text = ""; String eol = "\n"; String sentence = "<s>"; int blankLines = 0; while ((line = is.readLine()) != null) { if (line.trim().equals("")) { ++blankLines; if (blankLines > 3) { return false; } else if (blankLines > 2) { ObjectBank<List<IN>> documents = makeObjectBankFromString(text, readerWriter); classifyAndWriteAnswers(documents, readerWriter); text = ""; } else { text += sentence + eol; } } else { text += line + eol; blankLines = 0; } } // Classify last document before input stream end if (text.trim() != "") { ObjectBank<List<IN>> documents = makeObjectBankFromString(text, readerWriter); classifyAndWriteAnswers(documents, readerWriter); } return (line == null); // reached eol }
[ "Classify stdin by documents seperated by 3 blank line\n@param readerWriter\n@return boolean reached end of IO\n@throws IOException" ]
[ "Finds the file at the provided path within the archive.\n\nEg, getChildFile(ArchiveModel, \"/META-INF/MANIFEST.MF\") will return a {@link FileModel} if a file named\n/META-INF/MANIFEST.MF exists within the archive\n\n@return Returns the located {@link FileModel} or null if no file with this path could be located", "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", "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder", "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_", "Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0", "Sets the max min.\n\n@param n the new max min", "Return a licenses view of the targeted module\n\n@param moduleId String\n@return List<DbLicense>", "Return a copy of the zoom level scale denominators. Scales are sorted greatest to least.", "Returns a client model from a ResultSet\n\n@param result resultset containing client information\n@return Client or null\n@throws Exception exception" ]
public synchronized void start() throws SocketException { if (!isRunning()) { DeviceFinder.getInstance().addLifecycleListener(lifecycleListener); DeviceFinder.getInstance().addDeviceAnnouncementListener(announcementListener); DeviceFinder.getInstance().start(); for (DeviceAnnouncement device: DeviceFinder.getInstance().getCurrentDevices()) { requestPlayerDBServerPort(device); } new Thread(null, new Runnable() { @Override public void run() { while (isRunning()) { try { Thread.sleep(500); } catch (InterruptedException e) { logger.warn("Interrupted sleeping to close idle dbserver clients"); } closeIdleClients(); } logger.info("Idle dbserver client closer shutting down."); } }, "Idle dbserver client closer").start(); running.set(true); deliverLifecycleAnnouncement(logger, true); } }
[ "Start offering shared dbserver sessions.\n\n@throws SocketException if there is a problem opening connections" ]
[ "Retrieve the dir pointed to by 'latest' symbolic-link or the current\nversion dir\n\n@return Current version directory, else null", "Given a string with method or package name, creates a Class Name with no\nspaces and first letter lower case\n\n@param String\n- The name of the scenario/story. It should be in lower case.\n@returns String - The class name", "A specific, existing tag can be deleted by making a DELETE request\non the URL for that tag.\n\nReturns an empty data record.\n\n@param tag The tag to delete.\n@return Request object", "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.", "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.", "Use this API to fetch clusterinstance resource of given name .", "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.", "read message from file\n\n@param readOffset offset in this channel(file);not the message offset\n@param size max data size\n@return messages sharding data with file log\n@throws IOException reading file failed", "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" ]
public ArrayList<Duration> segmentBaselineWork(ProjectFile file, List<TimephasedWork> work, TimescaleUnits rangeUnits, ArrayList<DateRange> dateList) { return segmentWork(file.getBaselineCalendar(), work, rangeUnits, dateList); }
[ "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" ]
[ "returns the XmlCapable id associated with the literal.\nOJB maintains a RepositoryTags table that provides\na mapping from xml-tags to XmlCapable ids.\n\n@param literal the literal to lookup\n@return the int value representing the XmlCapable\n\n@throws MetadataException if no literal was found in tags mapping", "Get distance between geographical coordinates\n@param point1 Point1\n@param point2 Point2\n@return Distance (double)", "Set the dates for the specified photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param datePosted\nThe date the photo was posted or null\n@param dateTaken\nThe date the photo was taken or null\n@param dateTakenGranularity\nThe granularity of the taken date or null\n@throws FlickrException", "Get a property as a float or throw an exception.\n\n@param key the property name", "Tests the string edit distance function.", "SearchService is a service which shares the information about Persons with the PersonService.\nIt lets users search for individual people using simple or complex search expressions.\nThe interaction with this service also verifies that the JAX-RS server is capable of supporting multiple\nroot resource classes", "Writes assignment data to a PM XML file.", "Get a property as a json array or throw exception.\n\n@param key the property name", "Get a message bundle of the given type.\n\n@param type the bundle type class\n\n@return the bundle" ]
public void removeFile(String name) { if(files.containsKey(name)) { files.remove(name); } if(fileStreams.containsKey(name)) { fileStreams.remove(name); } }
[ "Removes file from your assembly.\n\n@param name field name of the file to remove." ]
[ "Exit the Application", "Distributed process finish.\n\n@param rb the rb\n@param mtasFields the mtas fields\n@throws IOException Signals that an I/O exception has occurred.", "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", "Checks to see if all the diagonal elements in the matrix are positive.\n\n@param a A matrix. Not modified.\n@return true if all the diagonal elements are positive, false otherwise.", "Print the class's constructors m", "Runs the given method with the specified arguments, substituting with proxies where necessary\n@param method\n@param target proxy target\n@param args\n@return Proxy-fied result for statements, actual call result otherwise\n@throws IllegalAccessException\n@throws InvocationTargetException", "Get the possible beans for the given element\n\n@param resolvable The resolving criteria\n@return An unmodifiable set of matching beans", "read CustomInfo list from table.\n\n@param eventId the event id\n@return the map", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods. Date rolling is ignored.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3" ]
public static String plus(Number value, String right) { return DefaultGroovyMethods.toString(value) + right; }
[ "Appends a String to the string representation of this number.\n\n@param value a Number\n@param right a String\n@return a String\n@since 1.0" ]
[ "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "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", "Validates the data for correct annotation", "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body", "is there a faster algorithm out there? This one is a bit sluggish", "Creates a color item that represents a color field found for a track based on a dbserver message.\n\n@param menuItem the rendered menu item containing the color metadata field\n\n@return the color metadata field", "Check whether vector addition works. This is pure Java code and should work.", "Create a Css Selector Transform" ]
private void computeUnnamedParams() { unnamedParams.addAll(rawArgs.stream().filter(arg -> !isNamedParam(arg)).collect(Collectors.toList())); }
[ "This method computes the list of unnamed parameters, by filtering the\nlist of raw arguments, stripping out the named parameters." ]
[ "Compute morse.\n\n@param term the term\n@return the string", "This method maps the encoded height of a Gantt bar to\nthe height in pixels.\n\n@param height encoded height\n@return height in pixels", "Process a file.\n\n@param file the file to be processed\n@param mode the patching mode\n@throws IOException", "Returns true if a List literal that contains only entries that are constants.\n@param expression - any expression", "Calculates the size based constraint width and height if present, otherwise from children sizes.", "Get a collection of all of the user's groups.\n\n@return A Collection of Group objects\n@throws FlickrException", "Constructs credentials for the given account and key file.\n\n@param serviceAccountId service account ID (typically an e-mail address).\n@param privateKeyFile the file name from which to get the private key.\n@param serviceAccountScopes Collection of OAuth scopes to use with the the service\naccount flow or {@code null} if not.\n@return valid credentials or {@code null}", "Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array\n@param inserted the array that we want to insert\n@return the combined array", "Removes all the given tags from the document.\n\n@param dom the document object.\n@param tagName the tag name, examples: script, style, meta\n@return the changed dom." ]
private static boolean isAssignableFrom(Type from, GenericArrayType to) { Type toGenericComponentType = to.getGenericComponentType(); if (toGenericComponentType instanceof ParameterizedType) { Type t = from; if (from instanceof GenericArrayType) { t = ((GenericArrayType) from).getGenericComponentType(); } else if (from instanceof Class) { Class<?> classType = (Class<?>) from; while (classType.isArray()) { classType = classType.getComponentType(); } t = classType; } return isAssignableFrom(t, (ParameterizedType) toGenericComponentType, new HashMap<String, Type>()); } // No generic defined on "to"; therefore, return true and let other // checks determine assignability return true; }
[ "Private helper function that performs some assignability checks for the\nprovided GenericArrayType." ]
[ "Gets the effects of this action.\n\n@return the effects. Will not be {@code null}", "Registers annotations which will be considered as bean defining annotations.\n\nNOTE - If used along with {@code <trim/>} bean archives and/or with Weld configuration key\n{@code org.jboss.weld.bootstrap.vetoTypesWithoutBeanDefiningAnnotation}, these annotations will be ignored.\n\n@param annotations annotations which will be considered as Bean Defining Annotations.\n@return self", "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", "Search for the attribute \"id\" and return the value.\n\n@return the id of this element or null when not found", "Create User Application Properties\nCreate application properties for a user\n@param userId User Id (required)\n@param properties Properties to be updated (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "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}", "Set the association in the entry state.\n\n@param collectionRole the role of the association\n@param association the association", "Map message info.\n\n@param messageInfoType the message info type\n@return the message info", "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." ]
private void addMetadataProviderForMedia(String key, MetadataProvider provider) { if (!metadataProviders.containsKey(key)) { metadataProviders.put(key, Collections.newSetFromMap(new ConcurrentHashMap<MetadataProvider, Boolean>())); } Set<MetadataProvider> providers = metadataProviders.get(key); providers.add(provider); }
[ "Internal method that adds a metadata provider to the set associated with a particular hash key, creating the\nset if needed.\n\n@param key the hashKey identifying the media for which this provider can offer metadata (or the empty string if\nit can offer metadata for all media)\n@param provider the metadata provider to be added to the active set" ]
[ "Returns the Field for a given parent class and a dot-separated path of\nfield names.\n\n@param clazz\nParent class.\n@param path\nPath to the desired field.", "Detect numbers using comma as a decimal separator and replace with period.\n\n@param value original numeric value\n@return corrected numeric value", "The number of bytes required to hold the given number\n\n@param number The number being checked.\n@return The required number of bytes (must be 8 or less)", "1-D Gabor function.\n\n@param x Value.\n@param mean Mean.\n@param amplitude Amplitude.\n@param position Position.\n@param width Width.\n@param phase Phase.\n@param frequency Frequency.\n@return Gabor response.", "Writes triples to determine the statements with the highest rank.", "Create a standalone target.\n\n@param controllerClient the connected controller client to a standalone instance.\n@return the remote target", "Used to NOT the argument clause specified.", "Swap the current version folder for a new one\n\n@param newStoreDirectory The path to the new version directory", "Ask the specified player for the album art in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any" ]
public static auditnslogpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_authenticationvserver_binding obj = new auditnslogpolicy_authenticationvserver_binding(); obj.set_name(name); auditnslogpolicy_authenticationvserver_binding response[] = (auditnslogpolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch auditnslogpolicy_authenticationvserver_binding resources of given name ." ]
[ "Execute push docker image on agent\n\n@param launcher\n@param log\n@param imageTag\n@param username\n@param password\n@param host @return\n@throws IOException\n@throws InterruptedException", "Returns true if required properties for FluoClient are set", "This method lists all resource assignments defined in the file.\n\n@param file MPX file", "Fill queue.\n\n@param item the item\n@param minStartPosition the min start position\n@param maxStartPosition the max start position\n@param minEndPosition the min end position\n@throws IOException Signals that an I/O exception has occurred.", "Deletes an individual alias\n\n@param alias\nthe alias to delete", "Sets the value for the API's \"sitefilter\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Evaluates the body if value for the member tag equals the specified value.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"value\" optional=\"false\" description=\"The expected value.\"", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Log a warning for the resource at the provided address and the given attributes, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attributes attributes we that have problems about" ]
public ItemRequest<Workspace> update(String workspace) { String path = String.format("/workspaces/%s", workspace); return new ItemRequest<Workspace>(this, Workspace.class, path, "PUT"); }
[ "A specific, existing workspace can be updated by making a PUT request on\nthe URL for that workspace. Only the fields provided in the data block\nwill be updated; any unspecified fields will remain unchanged.\n\nCurrently the only field that can be modified for a workspace is its `name`.\n\nReturns the complete, updated workspace record.\n\n@param workspace The workspace to update.\n@return Request object" ]
[ "Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction", "Write all state items to the log file.\n\n@param fileRollEvent the event to log", "LV morphology helper functions", "Releases a database connection, and cleans up any resources\nassociated with that connection.", "Sets either the upper or low triangle of a matrix to zero", "2-D Forward Discrete Cosine Transform.\n\n@param data Data.", "Build a Pk-Query base on the ClassDescriptor.\n\n@param cld\n@return a select by PK query", "Add a '&gt;=' clause so the column must be greater-than or equals-to the value.", "Assign FK values and store entries in indirection table\nfor all objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation" ]
public static int convertBytesToInt(byte[] bytes, int offset) { return (BITWISE_BYTE_TO_INT & bytes[offset + 3]) | ((BITWISE_BYTE_TO_INT & bytes[offset + 2]) << 8) | ((BITWISE_BYTE_TO_INT & bytes[offset + 1]) << 16) | ((BITWISE_BYTE_TO_INT & bytes[offset]) << 24); }
[ "Take four bytes from the specified position in the specified\nblock and convert them into a 32-bit int, using the big-endian\nconvention.\n@param bytes The data to read from.\n@param offset The position to start reading the 4-byte int from.\n@return The 32-bit integer represented by the four bytes." ]
[ "Checks if is file exist.\n\n@param filePath\nthe file path\n@return true, if is file exist", "Expects a height mat as input\n\n@param input - A grayscale height map\n@return edges", "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", "Prepares all files added for tus uploads.\n\n@param assemblyUrl the assembly url affiliated with the tus upload.\n@throws IOException when there's a failure with file retrieval.\n@throws ProtocolException when there's a failure with tus upload.", "Reads a quoted string value from the request.", "Adds an ORDER BY item with a direction indicator.\n\n@param name\nName of the column by which to sort.\n@param ascending\nIf true, specifies the direction \"asc\", otherwise, specifies\nthe direction \"desc\".", "Apply filters to a method name.\n@param methodName", "Verify that cluster is congruent to store def wrt zones.", "Returns the duration of the measured tasks in ms" ]
public static void dumpAnalysisToFile(String outputDirName, String baseFileName, PartitionBalance partitionBalance) { if(outputDirName != null) { File outputDir = new File(outputDirName); if(!outputDir.exists()) { Utils.mkdirs(outputDir); } try { FileUtils.writeStringToFile(new File(outputDirName, baseFileName + ".analysis"), partitionBalance.toString()); } catch(IOException e) { logger.error("IOException during dumpAnalysisToFile: " + e); } } }
[ "Prints a balance analysis to a file.\n\n@param outputDirName\n@param baseFileName suffix '.analysis' is appended to baseFileName.\n@param partitionBalance" ]
[ "Hide multiple channels. All other channels will be unaffected.\n@param channels The channels to hide", "Extract predecessor data.", "Update artifact download url of an artifact\n\n@param gavc String\n@param downLoadUrl String", "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field", "do delete given object. Should be used by all intern classes to delete\nobjects.", "Gets the project name for a favorite entry.\n\n@param cms the CMS context\n@param entry the favorite entry\n@return the project name for the favorite entry\n@throws CmsException if something goes wrong", "Sets the name of the designated bone.\n\n@param boneindex zero based index of bone to rotate.\n@param bonename string with name of bone.\n. * @see #getBoneName", "Unmarshals the XML content and adds the file to the bundle files.\n@throws CmsException thrown if reading the file or unmarshaling fails.", "Set a range of the colormap, interpolating between two colors.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color1 the first color\n@param color2 the second color" ]
private void printSuggestion( String arg, List<ConfigOption> co ) { List<ConfigOption> sortedList = new ArrayList<ConfigOption>( co ); Collections.sort( sortedList, new ConfigOptionLevenshteinDistance( arg ) ); System.err.println( "Parse error for argument \"" + arg + "\", did you mean " + sortedList.get( 0 ).getCommandLineOption() .showFlagInfo() + "? Ignoring for now." ); }
[ "Prints a suggestion to stderr for the argument based on the levenshtein distance metric\n\n@param arg the argument which could not be assigned to a flag\n@param co the {@link ConfigOption} List where every flag is stored" ]
[ "Convert one project file format to another.\n\n@param inputFile input file\n@param outputFile output file\n@throws Exception", "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "Declares a shovel.\n\n@param vhost virtual host where to declare the shovel\n@param info Shovel info.", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.", "Injects EJBs and other EE resources.\n\n@param resourceInjectionsHierarchy\n@param beanInstance\n@param ctx", "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list", "Use this API to fetch authenticationnegotiatepolicy_binding resource of given name .", "Start a server.\n\n@return the http server\n@throws Exception the exception", "Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name ." ]
public Number getOvertimeCost() { Number cost = (Number) getCachedValue(AssignmentField.OVERTIME_COST); if (cost == null) { Number actual = getActualOvertimeCost(); Number remaining = getRemainingOvertimeCost(); if (actual != null && remaining != null) { cost = NumberHelper.getDouble(actual.doubleValue() + remaining.doubleValue()); set(AssignmentField.OVERTIME_COST, cost); } } return (cost); }
[ "Returns the overtime cost of this resource assignment.\n\n@return cost" ]
[ "Returns the complete task record for a single task.\n\n@param task The task to get.\n@return Request object", "Gets the publisher of the specified type, if it is wrapped by the \"Flexible Publish\" publisher in a project.\nNull is returned if no such publisher is found.\n@param project The project\n@param type The type of the publisher", "Get the collection of contacts for the calling user.\n\n@return The Collection of Contact objects", "Creates a new deployment for the file. If the file is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the file containing the content\n\n@return the deployment", "Moves a calendar to the nth named day of the month.\n\n@param calendar current date\n@param dayNumber nth day", "Executes a HTTP request and parses the JSON response into a Response instance.\n\n@param connection The HTTP request to execute.\n@return Response object of the deserialized JSON response", "Returns a set of beans specialized by this bean. An empty set is returned if this bean does not specialize another beans.", "Check type.\n\n@param type the type\n@return the boolean", "Set the serial end date.\n@param date the serial end date." ]
public Integer getInteger(String fieldName) { try { return hasValue(fieldName) ? Integer.valueOf(String.valueOf(resultMap.get(fieldName))) : null; } catch (NumberFormatException e) { throw new FqlException("Field '" + fieldName +"' is not a number.", e); } }
[ "Returns the value of the identified field as an Integer.\n@param fieldName the name of the field\n@return the value of the field as an Integer\n@throws FqlException if the field cannot be expressed as an Integer" ]
[ "Helper to read an optional String value list.\n@param path The XML path of the element to read.\n@return The String list stored in the XML, or <code>null</code> if the value could not be read.", "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be thawed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\n@param isPaused whether or not this config is frozen", "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "Adjusts the day in the provided month, that it fits the specified week day.\nIf there's no match for that provided month, the next possible month is checked.\n\n@param date the date to adjust, with the correct year and month already set.", "Main file parser. Reads GIF content blocks. Stops after reading maxFrames", "Retrieve a list of the available P3 project names from a directory.\n\n@param directory directory containing P3 files\n@return list of project names", "Use this API to fetch clusternodegroup resource of given name .", "Removes the specified list of users from following the project, this will not affect project membership status.\nReturns the updated project record.\n\n@param project The project to remove followers from.\n@return Request object", "Specifies an input field to assign a value to. Crawljax first tries to match the found HTML\ninput element's id and then the name attribute.\n\n@param type\nthe type of input field\n@param identification\nthe locator of the input field\n@return an InputField" ]
public CliCommandBuilder setTimeout(final int timeout) { if (timeout > 0) { addCliArgument(CliArgument.TIMEOUT, Integer.toString(timeout)); } else { addCliArgument(CliArgument.TIMEOUT, null); } return this; }
[ "Sets the timeout used when connecting to the server.\n\n@param timeout the time out to use\n\n@return the builder" ]
[ "Initialize the pattern choice button group.", "Write the text to the File, using the specified encoding.\n\n@param file a File\n@param text the text to write to the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Old SOAP client uses new SOAP service with the\nredirection to the new endpoint and transformation\non the server side", "Transmits the SerialMessage to a single Z-Wave Node.\nSets the transmission options as well.\n@param serialMessage the Serial message to send.", "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title", "try to delegate the master to handle the response\n\n@param response\n@return true if the master accepted the response; false if the master\ndidn't accept", "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", "Create a WebDriver backed EmbeddedBrowser.\n\n@param driver The WebDriver to use.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser.", "Creates a project shared with the given team.\n\nReturns the full record of the newly created project.\n\n@param team The team to create the project in.\n@return Request object" ]
protected Connection newConnectionFromDataSource(JdbcConnectionDescriptor jcd) throws LookupException { Connection retval = null; // use JNDI lookup DataSource ds = jcd.getDataSource(); if (ds == null) { // [tomdz] Would it suffice to store the datasources only at the JCDs ? // Only possible problem would be serialization of the JCD because // the data source object in the JCD does not 'survive' this ds = (DataSource) dataSourceCache.get(jcd.getDatasourceName()); } try { if (ds == null) { /** * this synchronization block won't be a big deal as we only look up * new datasources not found in the map. */ synchronized (dataSourceCache) { InitialContext ic = new InitialContext(); ds = (DataSource) ic.lookup(jcd.getDatasourceName()); /** * cache the datasource lookup. */ dataSourceCache.put(jcd.getDatasourceName(), ds); } } if (jcd.getUserName() == null) { retval = ds.getConnection(); } else { retval = ds.getConnection(jcd.getUserName(), jcd.getPassWord()); } } catch (SQLException sqlEx) { log.error("SQLException thrown while trying to get Connection from Datasource (" + jcd.getDatasourceName() + ")", sqlEx); throw new LookupException("SQLException thrown while trying to get Connection from Datasource (" + jcd.getDatasourceName() + ")", sqlEx); } catch (NamingException namingEx) { log.error("Naming Exception while looking up DataSource (" + jcd.getDatasourceName() + ")", namingEx); throw new LookupException("Naming Exception while looking up DataSource (" + jcd.getDatasourceName() + ")", namingEx); } // initialize connection initializeJdbcConnection(retval, jcd); if(log.isDebugEnabled()) log.debug("Create new connection using DataSource: "+retval); return retval; }
[ "Creates a new connection from the data source that the connection descriptor\nrepresents. If the connection descriptor does not directly contain the data source\nthen a JNDI lookup is performed to retrieve the data source.\n\n@param jcd The connection descriptor\n@return A connection instance\n@throws LookupException if we can't get a connection from the datasource either due to a\nnaming exception, a failed sanity check, or a SQLException." ]
[ "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with", "Exit the Application", "Push docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host", "Creates a color item that represents a color field found for a track based on a dbserver message.\n\n@param menuItem the rendered menu item containing the color metadata field\n\n@return the color metadata field", "Restore authentications from persisted state.\n\n@param savedAuthorization saved authorizations", "Use this API to rename a nsacl6 resource.", "At the moment we only support the case where one entity type is returned", "Retrieve a flag value.\n\n@param index flag index (1-20)\n@return flag value", "List the greetings in the specified guestbook." ]
public static String getFilename(String path) throws IllegalArgumentException { if (Pattern.matches(sPatternUrl, path)) return getURLFilename(path); return new File(path).getName(); }
[ "Gets the filename from a path or URL.\n@param path or url.\n@return the file name." ]
[ "Generated the report.", "Returns an Organization that suits the Module or null if there is none\n\n@param dbModule DbModule\n@return DbOrganization", "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name .", "Main entry point. Reads a directory containing a P3 Btrieve database files\nand returns a map of table names and table content.\n\n@param directory directory containing the database\n@param prefix file name prefix used to identify files from the same database\n@return Map of table names to table data", "Update max min.\n\n@param n the n\n@param c the c", "Find the current layout and extract the activity code order and visibility.\n\n@param phoenixProject phoenix project data", "Waits for the current outstanding request retrying it with exponential backoff if it fails.\n\n@throws ClosedByInterruptException if request was interrupted\n@throws IOException In the event of FileNotFoundException, MalformedURLException\n@throws RetriesExhaustedException if exceeding the number of retries", "Return cached object by key. The key will be concatenated with\ncurrent session id when fetching the cached object\n\n@param key\n@param <T>\nthe object type\n@return the cached object", "Sets the underlying connect timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#connectTimeout(long, TimeUnit)" ]
public static base_response unset(nitro_service client, sslcertkey resource, String[] args) throws Exception{ sslcertkey unsetresource = new sslcertkey(); unsetresource.certkey = resource.certkey; return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of sslcertkey resource.\nProperties that need to be unset are specified in args array." ]
[ "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred", "Load resource content from given path into variable with\ntype specified by `spec`.\n\n@param resourcePath the resource path\n@param spec {@link BeanSpec} specifies the return value type\n@return the resource content in a specified type or `null` if resource not found\n@throws UnexpectedException if return value type not supported", "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none.", "Get 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.", "Returns all categories that are direct children of the current main category.\n\n@return all categories that are direct children of the current main category.", "Retrieves all of the headers from the servlet request and sets them on\nthe proxy request\n\n@param httpServletRequest The request object representing the client's request to the\nservlet engine\n@param httpMethodProxyRequest The request that we are about to send to the proxy host", "Populate a resource assignment.\n\n@param record MPX record\n@param assignment resource assignment\n@throws MPXJException", "A fairly basic 5-way classifier, that notes digits, and upper\nand lower case, mixed, and non-alphanumeric.\n\n@param s String to find word shape of\n@return Its word shape: a 5 way classification", "Read exceptions for a calendar.\n\n@param table calendar exception data\n@param calendar calendar\n@param exceptionID first exception ID" ]
public void onLayoutApplied(final WidgetContainer container, final Vector3Axis viewPortSize) { mContainer = container; mViewPort.setSize(viewPortSize); if (mContainer != null) { mContainer.onLayoutChanged(this); } }
[ "Called when the layout is applied to the data\n@param container WidgetContainer to access the org.gearvrf.org.gearvrf.widgetlib in the layout\n@param viewPortSize View port for data set" ]
[ "Creates a new Message from the specified text.", "Reads the integer representation of calendar hours for a given\nday and populates the calendar.\n\n@param calendar parent calendar\n@param day target day\n@param hours working hours", "Send a failed operation response.\n\n@param context the request context\n@param errorCode the error code\n@param message the operation message\n@throws IOException for any error", "This method extracts resource data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Creates the server bootstrap.", "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Uploads a new file to this folder while reporting the progress to a ProgressListener.\n\n@param fileContent a stream containing the contents of the file to upload.\n@param name the name to give the uploaded file.\n@param fileSize the size of the file used for determining the progress of the upload.\n@param listener a listener for monitoring the upload's progress.\n@return the uploaded file's info.", "Use this API to fetch dnspolicy_dnspolicylabel_binding resources of given name .", "Cretae a BufferedImage from an ImageProducer.\n@param producer the ImageProducer\n@return a new TYPE_INT_ARGB BufferedImage" ]
public User getUploadStatus() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_UPLOAD_STATUS); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element userElement = response.getPayload(); User user = new User(); user.setId(userElement.getAttribute("id")); user.setPro("1".equals(userElement.getAttribute("ispro"))); user.setUsername(XMLUtilities.getChildValue(userElement, "username")); Element bandwidthElement = XMLUtilities.getChild(userElement, "bandwidth"); user.setBandwidthMax(bandwidthElement.getAttribute("max")); user.setBandwidthUsed(bandwidthElement.getAttribute("used")); user.setIsBandwidthUnlimited("1".equals(bandwidthElement.getAttribute("unlimited"))); Element filesizeElement = XMLUtilities.getChild(userElement, "filesize"); user.setFilesizeMax(filesizeElement.getAttribute("max")); Element setsElement = XMLUtilities.getChild(userElement, "sets"); user.setSetsCreated(setsElement.getAttribute("created")); user.setSetsRemaining(setsElement.getAttribute("remaining")); Element videosElement = XMLUtilities.getChild(userElement, "videos"); user.setVideosUploaded(videosElement.getAttribute("uploaded")); user.setVideosRemaining(videosElement.getAttribute("remaining")); Element videoSizeElement = XMLUtilities.getChild(userElement, "videosize"); user.setVideoSizeMax(videoSizeElement.getAttribute("maxbytes")); return user; }
[ "Get upload status for the currently authenticated user.\n\nRequires authentication with 'read' permission using the new authentication API.\n\n@return A User object with upload status data fields filled\n@throws FlickrException" ]
[ "Creates a map between a work pattern ID and a list of time entry rows.\n\n@param rows time entry rows\n@return time entry map", "Returns a new List containing the given objects.", "Use this API to fetch dnstxtrec resources of given names .", "Use this API to fetch clusterinstance resources of given names .", "Generates the cache key for Online links.\n@param cms the current CmsObject\n@param targetSiteRoot the target site root\n@param detailPagePart the detail page part\n@param absoluteLink the absolute (site-relative) link to the resource\n@return the cache key", "read CustomInfo list from table.\n\n@param eventId the event id\n@return the map", "Returns true if the class node represents a the class node for the Class class\nand if the parametrized type is a neither a placeholder or a wildcard. For example,\nthe class node Class&lt;Foo&gt; where Foo is a class would return true, but the class\nnode for Class&lt;?&gt; would return false.\n@param classNode a class node to be tested\n@return true if it is the class node for Class and its generic type is a real class", "Creates the full sentence.\n\n@return the mtas CQL parser sentence condition\n@throws ParseException the parse exception", "Updates the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template\n@param fieldOperations the fields that needs to be updated / added in the template\n@return the updated metadata template" ]
public void bind(Object object, String name) throws ObjectNameNotUniqueException { /** * Is DB open? ODMG 3.0 says it has to be to call bind. */ if (!this.isOpen()) { throw new DatabaseClosedException("Database is not open. Must have an open DB to call bind."); } /** * Is Tx open? ODMG 3.0 says it has to be to call bind. */ TransactionImpl tx = getTransaction(); if (tx == null || !tx.isOpen()) { throw new TransactionNotInProgressException("Tx is not open. Must have an open TX to call bind."); } tx.getNamedRootsMap().bind(object, name); }
[ "Associate a name with an object and make it persistent.\nAn object instance may be bound to more than one name.\nBinding a previously transient object to a name makes that object persistent.\n@param object The object to be named.\n@param name The name to be given to the object.\n@exception org.odmg.ObjectNameNotUniqueException\nIf an attempt is made to bind a name to an object and that name is already bound\nto an object." ]
[ "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", "Use this API to fetch all the csparameter resources that are configured on netscaler.", "Multiple of gradient windwos per masc relation of x y\n\n@return int[]", "Get layer style by name.\n\n@param name layer style name\n@return layer style", "Get minimum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Minimum gray.", "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result", "This looks at the servlet attributes to get the list of response headers to remove while the response object gets created by the servlet", "Use this API to unset the properties of systemcollectionparam resource.\nProperties that need to be unset are specified in args array.", "Check, if all values used for calculating the series for a specific pattern are valid.\n@return <code>null</code> if the pattern is valid, a suitable error message otherwise." ]
private void addContentInfo() { if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject() && (null == m_searchController.getCommon().getConfig().getSolrIndex()) && (null != m_addContentInfoForEntries)) { CmsSolrQuery query = new CmsSolrQuery(); m_searchController.addQueryParts(query, m_cms); query.setStart(Integer.valueOf(0)); query.setRows(m_addContentInfoForEntries); CmsContentLoadCollectorInfo info = new CmsContentLoadCollectorInfo(); info.setCollectorClass(this.getClass().getName()); info.setCollectorParams(query.getQuery()); info.setId((new CmsUUID()).getStringValue()); if (CmsJspTagEditable.getDirectEditProvider(pageContext) != null) { try { CmsJspTagEditable.getDirectEditProvider(pageContext).insertDirectEditListMetadata( pageContext, info); } catch (JspException e) { LOG.error("Could not write content info.", e); } } } }
[ "Adds the content info for the collected resources used in the \"This page\" publish dialog." ]
[ "Map from an activity code value UUID to the actual value itself, and its\nsequence number.\n\n@param storepoint storepoint containing current project data", "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", "Detach the component of the specified type from this scene object.\n\nEach scene object has a list of components. Only one component\nof a particular type can be attached. Components are detached based on their type.\n\n@return GVRComponent detached or null if component not found\n@param type type of component to detach\n@see GVRSceneObject#attachComponent(GVRComponent)", "Read predecessors from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Sets the max min.\n\n@param n the new max min", "Determine whether we should use the normal repaint process, or delegate that to another component that is\nhosting us in a soft-loaded manner to save memory.\n\n@param x the left edge of the region that we want to have redrawn\n@param y the top edge of the region that we want to have redrawn\n@param width the width of the region that we want to have redrawn\n@param height the height of the region that we want to have redrawn", "Unmarshal the XML content with auto-correction.\n@param file the file that contains the XML\n@return the XML read from the file\n@throws CmsXmlException thrown if the XML can't be read.", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Add a Renderer instance as prototype.\n\n@param renderer to use as prototype.\n@return the current RendererBuilder instance." ]
private <Y> void checkObserverMethod(EnhancedAnnotatedMethod<T, Y> annotated) { // Make sure exactly one and only one parameter is annotated with Observes or ObservesAsync List<EnhancedAnnotatedParameter<?, Y>> eventObjects = annotated.getEnhancedParameters(Observes.class); eventObjects.addAll(annotated.getEnhancedParameters(ObservesAsync.class)); if (this.reception.equals(Reception.IF_EXISTS) && declaringBean.getScope().equals(Dependent.class)) { throw EventLogger.LOG.invalidScopedConditionalObserver(this, Formats.formatAsStackTraceElement(annotated.getJavaMember())); } if (eventObjects.size() > 1) { throw EventLogger.LOG.multipleEventParameters(this, Formats.formatAsStackTraceElement(annotated.getJavaMember())); } EnhancedAnnotatedParameter<?, Y> eventParameter = eventObjects.iterator().next(); checkRequiredTypeAnnotations(eventParameter); // Check for parameters annotated with @Disposes List<?> disposeParams = annotated.getEnhancedParameters(Disposes.class); if (disposeParams.size() > 0) { throw EventLogger.LOG.invalidDisposesParameter(this, Formats.formatAsStackTraceElement(annotated.getJavaMember())); } // Check annotations on the method to make sure this is not a producer // method, initializer method, or destructor method. if (this.observerMethod.getAnnotated().isAnnotationPresent(Produces.class)) { throw EventLogger.LOG.invalidProducer(this, Formats.formatAsStackTraceElement(annotated.getJavaMember())); } if (this.observerMethod.getAnnotated().isAnnotationPresent(Inject.class)) { throw EventLogger.LOG.invalidInitializer(this, Formats.formatAsStackTraceElement(annotated.getJavaMember())); } boolean containerLifecycleObserverMethod = Observers.isContainerLifecycleObserverMethod(this); for (EnhancedAnnotatedParameter<?, ?> parameter : annotated.getEnhancedParameters()) { // if this is an observer method for container lifecycle event, it must not inject anything besides BeanManager if (containerLifecycleObserverMethod && !parameter.isAnnotationPresent(Observes.class) && !parameter.isAnnotationPresent(ObservesAsync.class) && !BeanManager.class.equals(parameter.getBaseType())) { throw EventLogger.LOG.invalidInjectionPoint(this, Formats.formatAsStackTraceElement(annotated.getJavaMember())); } } }
[ "Performs validation of the observer method for compliance with the specifications." ]
[ "Verify that cluster is congruent to store def wrt zones.", "returns whether masking with the given mask results in a valid contiguous range for this segment,\nand if it does, if it matches the range obtained when masking the given values with the same mask.\n\n@param lowerValue\n@param upperValue\n@param mask\n@return", "Send message to all connections of a certain user\n\n@param message the message to be sent\n@param username the username\n@return this context", "Populate the container, converting raw data into Java types.\n\n@param field custom field to which these values belong\n@param values raw value data\n@param descriptions raw description data", "Plots the rotated trajectory, spline and support points.", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.", "Returns the naming context.", "Creates the row key of the given association row; columns present in the given association key will be obtained\nfrom there, all other columns from the given native association row.", "Read the set of property files. Keys and Values are automatically validated and converted.\n\n@param resourceLoader\n@return all the properties from the weld.properties file" ]
public synchronized Widget measureChild(final int dataIndex, boolean calculateOffset) { Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "measureChild dataIndex = %d", dataIndex); Widget widget = mContainer.get(dataIndex); if (widget != null) { synchronized (mMeasuredChildren) { mMeasuredChildren.add(dataIndex); } } return widget; }
[ "Calculate the child size along the axis and measure the offset inside the\nlayout container\n@param dataIndex of child in Container\n@return true item fits the container, false - otherwise" ]
[ "Gets the current page\n@return", "The timeout which we block for when a resource is not available\n\n@param timeout The timeout\n@param unit The units of the timeout", "Checks if this service implementation accepts the given resource path.\n@param resourcePath Resource path\n@return true if the implementation matches and the configuration is not invalid.", "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", "Set the menu's width in pixels.", "Add the elements that all values objects require from the provided values object.\n\n@param sourceValues the values object containing the required elements", "Converts the provided javascript object to JSON string.\n\n<p>If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as\na list, otherwise the object is merely converted to string using the {@code toString()} method.\n\n@param object the object to stringify.\n\n@return the object as a JSON string", "Searches for a declared method with a given name. If the class declares multiple methods with the given name,\nthere is no guarantee as of which methods is returned. Null is returned if the class does not declare a method\nwith the given name.\n@param clazz the given class\n@param methodName the given method name\n@return method method with the given name declared by the given class or null if no such method exists", "Reads a markdown link ID.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link ID." ]