query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
private void applyAliases(Map<FieldType, String> aliases) { CustomFieldContainer fields = m_project.getCustomFields(); for (Map.Entry<FieldType, String> entry : aliases.entrySet()) { fields.getCustomField(entry.getKey()).setAlias(entry.getValue()); } }
[ "Apply aliases to task and resource fields.\n\n@param aliases map of aliases" ]
[ "Magnitude of complex number.\n\n@param z Complex number.\n@return Magnitude of complex number.", "Converts a time in UTC to a gwt Date object which is in the timezone of\nthe current browser.\n\n@return The Date corresponding to the time, adjusted for the timezone of\nthe current browser. null if the specified time is null or\nrepresents a negative number.", "Returns the complete property list of a class\n@param c the class\n@return the property list of the class", "Sets the currently edited locale.\n@param locale the locale to set.", "Return a Halton number, sequence starting at index = 0, base &gt; 1.\n\n@param index The index of the sequence.\n@param base The base of the sequence. Has to be greater than one (this is not checked).\n@return The Halton number.", "Installs a remoting stream server for a domain instance\n@param serviceTarget the service target to install the services into\n@param endpointName the name of the endpoint to install the stream server into\n@param networkInterfaceBinding the network interface binding\n@param port the port\n@param securityRealm the security real name\n@param options the remoting options", "Return the serialized form of this Identity.\n\n@return The serialized representation\n@see #fromByteArray\n@deprecated", "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", "Use this API to fetch all the dnstxtrec resources that are configured on netscaler.\nThis uses dnstxtrec_args which is a way to provide additional arguments while fetching the resources." ]
public static base_responses add(nitro_service client, nsacl6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsacl6 addresources[] = new nsacl6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nsacl6(); addresources[i].acl6name = resources[i].acl6name; addresources[i].acl6action = resources[i].acl6action; addresources[i].td = resources[i].td; addresources[i].srcipv6 = resources[i].srcipv6; addresources[i].srcipop = resources[i].srcipop; addresources[i].srcipv6val = resources[i].srcipv6val; addresources[i].srcport = resources[i].srcport; addresources[i].srcportop = resources[i].srcportop; addresources[i].srcportval = resources[i].srcportval; addresources[i].destipv6 = resources[i].destipv6; addresources[i].destipop = resources[i].destipop; addresources[i].destipv6val = resources[i].destipv6val; addresources[i].destport = resources[i].destport; addresources[i].destportop = resources[i].destportop; addresources[i].destportval = resources[i].destportval; addresources[i].ttl = resources[i].ttl; addresources[i].srcmac = resources[i].srcmac; addresources[i].protocol = resources[i].protocol; addresources[i].protocolnumber = resources[i].protocolnumber; addresources[i].vlan = resources[i].vlan; addresources[i].Interface = resources[i].Interface; addresources[i].established = resources[i].established; addresources[i].icmptype = resources[i].icmptype; addresources[i].icmpcode = resources[i].icmpcode; addresources[i].priority = resources[i].priority; addresources[i].state = resources[i].state; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add nsacl6 resources." ]
[ "Apply the AAD algorithm to this very variable\n\nNOTE: in this case it is indeed correct to assume that the output dimension is \"one\"\nmeaning that there is only one {@link RandomVariableUniqueVariable} as an output.\n\n@return gradient for the built up function", "Call the Coverage Task.", "retrieve a collection of type collectionClass matching the Query query\n\n@see org.apache.ojb.broker.PersistenceBroker#getCollectionByQuery(Class, Query)", "Iterates over all tags of current member and evaluates the template for each one.\n\n@param template The template to be evaluated\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\" optional=\"true\" description=\"The parameter name.\"", "A Maven stub is a Maven Project for which we have found information, but the project has not yet been located\nwithin the input application. If we have found an application of the same GAV within the input app, we should\nfill out this stub instead of creating a new one.", "Generic version of getting value by key from the JobContext of current thread\n@param key the key\n@param clz the val class\n@param <T> the val type\n@return the value", "Use this API to fetch dnszone_domain_binding resources of given name .", "Use this API to fetch nd6ravariables resources of given names .", "performs a DELETE operation against RDBMS.\n@param cld ClassDescriptor providing mapping information.\n@param obj The object to be deleted." ]
private ProjectFile readFile(String inputFile) throws MPXJException { ProjectReader reader = new UniversalProjectReader(); ProjectFile projectFile = reader.read(inputFile); if (projectFile == null) { throw new IllegalArgumentException("Unsupported file type"); } return projectFile; }
[ "Use the universal project reader to open the file.\nThrow an exception if we can't determine the file type.\n\n@param inputFile file name\n@return ProjectFile instance" ]
[ "Calculates the radius to a given boundedness value\n@param D Diffusion coefficient\n@param N Number of steps\n@param timelag Timelag\n@param B Boundedeness\n@return Confinement radius", "Obtains a Ethiopic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Ethiopic local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Serializes the given object in JSON and returns the resulting string. In\ncase of errors, null is returned. In particular, this happens if the\nobject is not based on a Jackson-annotated class. An error is logged in\nthis case.\n\n@param object\nobject to serialize\n@return JSON serialization or null", "Mark 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 mark as current", "Find any standard methods the user has 'underridden' in their type.", "Use this API to fetch auditsyslogpolicy_aaauser_binding resources of given name .", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "Last caller of this method will unregister the Mbean. All callers\ndecrement the counter.", "Flush this log file to the physical disk\n\n@throws IOException file read error" ]
@RequestMapping(value = "/api/plugins", method = RequestMethod.POST) public @ResponseBody HashMap<String, Object> addPluginPath(Model model, Plugin add) throws Exception { PluginManager.getInstance().addPluginPath(add.getPath()); return pluginInformation(); }
[ "Add a plugin path\n\n@param model\n@param add\n@return\n@throws Exception" ]
[ "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" or \"managed\".\n@param text the text field of terms of service containing terms of service agreement info.\n@return information about the Terms of Service created.", "Invokes a function defined in the script.\n\n@param funcName\nThe function name.\n@param params\nThe parameter array.\n@return\nA boolean value representing whether the function is\nexecuted correctly. If the function cannot be found, or\nparameters don't match, {@code false} is returned.", "We have identified that we have an MDB file. This could be a Microsoft Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Sets the values of this input field. Only Applicable check-boxes and a radio buttons.\n\n@param values Values to set.", "Returns the Organization that produce this artifact or null if there is none\n\n@param dbArtifact DbArtifact\n@return DbOrganization", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "Add a point to this curveFromInterpolationPoints. The method will throw an exception if the point\nis already part of the curveFromInterpolationPoints.\n\n@param time The x<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param value The y<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param isParameter If true, then this point is served via {@link #getParameter()} and changed via {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "Use this API to fetch statistics of spilloverpolicy_stats resource of given name .", "Close the ClientRequestExecutor." ]
public static byte[] copy(byte[] array, int from, int to) { if(to - from < 0) { return new byte[0]; } else { byte[] a = new byte[to - from]; System.arraycopy(array, from, a, 0, to - from); return a; } }
[ "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" ]
[ "Get the authentication for a specific token.\n\n@param token token\n@return authentication if any", "Sets this matrix equal to the matrix encoded in the array.\n\n@param numRows The number of rows.\n@param numCols The number of columns.\n@param rowMajor If the array is encoded in a row-major or a column-major format.\n@param data The formatted 1D array. Not modified.", "Reads a single resource from a ConceptDraw PROJECT file.\n\n@param resource ConceptDraw PROJECT resource", "Use this API to fetch systemsession resources of given names .", "Determines if the key replicates to the given node\n\n@param key\n@param nodeId\n@return true if the key belongs to the node as some replica", "Send message to all connections connected to the same URL of this context\n\n@param message the message to be sent\n@param excludeSelf whether the connection of this context should be sent to\n@return this context", "a small static helper class to get the color from the colorHolder\n\n@param colorHolder\n@param ctx\n@return", "Post an artifact to the Grapes server\n\n@param artifact The artifact to post\n@param user The user posting the information\n@param password The user password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value" ]
private String getValueFromProp(final String propValue) { String value = propValue; // remove quotes value = value.trim(); if ((value.startsWith("\"") && value.endsWith("\"")) || (value.startsWith("'") && value.endsWith("'"))) { value = value.substring(1, value.length() - 1); } return value; }
[ "Helper to read a line from the config file.\n@param propValue the property value\n@return the value of the variable set at this line." ]
[ "Set the background color of the progress spinner disc.\n\n@param colorRes Resource id of the color.", "Creates a new broker instance.\n\n@param jcdAlias The jdbc connection descriptor name as defined in the repository\n@param user The user name to be used for connecting to the database\n@param password The password to be used for connecting to the database\n@return The persistence broker\n@see org.apache.ojb.broker.core.PersistenceBrokerFactoryIF#createPersistenceBroker(java.lang.String, java.lang.String, java.lang.String)", "Is the transport secured by a policy", "Method used to read the sub project details from a byte array.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset\n@return new SubProject instance", "Returns a string that represents a valid Solr query range.\n\n@param from Lower bound of the query range.\n@param to Upper bound of the query range.\n@return String that represents a Solr query range.", "Parses command-line and removes metadata related to rebalancing.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Returns a human-readable string representation of a reference to a\nprecision that is used for a time value.\n\n@param precision\nthe numeric precision\n@return a string representation of the precision", "Get the spatial object from the cache.\n\n@param key key to get object for\n@param type type of object which should be returned\n@return object for key or null if object does not exist or is a different type", "Creates an IBlur instance for the given algorithm enum\n\n@param algorithm\n@param contextWrapper\n@return" ]
private void appendSubQuery(Query subQuery, StringBuffer buf) { buf.append(" ("); buf.append(getSubQuerySQL(subQuery)); buf.append(") "); }
[ "Append a SubQuery the SQL-Clause\n@param subQuery the subQuery value of SelectionCriteria" ]
[ "Detect and apply waves, now or when the widget is attached.\n\n@param widget target widget to ensure is attached first", "Retrieve the start slack.\n\n@return start slack", "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance", "Use this API to Import responderhtmlpage.", "Installs a provider either in the scope or the pool of unbound providers.\n\n@param clazz the class for which to install the provider.\n@param bindingName the name, possibly {@code null}, for which to install the scoped provider.\n@param internalProvider the internal provider to install.\n@param isBound whether or not the provider is bound to the scope or belongs to the pool of unbound providers.\n@param isTestProvider whether or not is a test provider, installed through a Test Module that should override\nexisting providers for the same class-bindingname.\n@param <T> the type of {@code clazz}.\n\nNote to maintainers : we don't use this method directly, both {@link #installBoundProvider(Class, String, InternalProviderImpl, boolean)}\nand {@link #installUnBoundProvider(Class, String, InternalProviderImpl)}\nare a facade of this method and make the calls more clear.", "Internal method for recursivly searching for a class descriptor that avoids\nclass loading when we already have a class object.\n\n@param clazz The class whose descriptor we need to find\n@return ClassDescriptor for <code>clazz</code> or <code>null</code>\nif no ClassDescriptor could be located.", "This method is called on every reference that is in the .class file.\n@param typeReference\n@return", "Returns an Organization\n\n@param organizationId String\n@return DbOrganization", "Start the first inner table of a class." ]
private String getFullUrl(String url) { return url.startsWith("https://") || url.startsWith("http://") ? url : transloadit.getHostUrl() + url; }
[ "Converts url path to the Transloadit full url.\nReturns the url passed if it is already full.\n\n@param url\n@return String" ]
[ "gets the profile_name associated with a specific id", "Use this API to update systemuser resources.", "Initialize elements from the duration panel.", "Closes the Netty Channel and releases all resources", "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "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.", "Determine the relevant pieces of configuration which need to be included when processing the domain model.\n\n@param root the resource root\n@param requiredConfigurationHolder the resolution context\n@param serverConfig the server config\n@param extensionRegistry the extension registry", "Add an exception to a calendar.\n\n@param parentNode parent node\n@param exception calendar exceptions", "Use this API to delete onlinkipv6prefix of given name." ]
public String getFormattedParentValue() { String result = null; if (m_elements.size() > 2) { result = joinElements(m_elements.size() - 2); } return result; }
[ "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value" ]
[ "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors", "Generate Allure report data from directories with allure report results.\n\n@param args a list of directory paths. First (args.length - 1) arguments -\nresults directories, last argument - the folder to generated data", "Set the style for the widgets in the panel according to the chosen style option.\n@param widget the widget that should be styled.\n@return the styled widget.", "Issue the database statements to drop the table associated with a dao.\n\n@param dao\nAssociated dao.\n@return The number of statements executed to do so.", "This is the profiles page. this is the 'regular' page when the url is typed in", "Initialize that Foundation Logging library.", "Given the comma separated list of properties as a string, splits it\nmultiple strings\n\n@param paramValue Concatenated string\n@param type Type of parameter ( to throw exception )\n@return List of string properties", "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", "Sets an attribute in the main section of the manifest to a list.\nThe list elements will be joined with a single whitespace character.\n\n@param name the attribute's name\n@param values the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods." ]
public boolean absolute(int row) throws PersistenceBrokerException { // 1. handle the special cases first. if (row == 0) { return true; } if (row == 1) { m_activeIteratorIndex = 0; m_activeIterator = (OJBIterator) m_rsIterators.get(m_activeIteratorIndex); m_activeIterator.absolute(1); return true; } if (row == -1) { m_activeIteratorIndex = m_rsIterators.size(); m_activeIterator = (OJBIterator) m_rsIterators.get(m_activeIteratorIndex); m_activeIterator.absolute(-1); return true; } // now do the real work. boolean movedToAbsolute = false; boolean retval = false; setNextIterator(); // row is positive, so index from beginning. if (row > 0) { int sizeCount = 0; Iterator it = m_rsIterators.iterator(); OJBIterator temp = null; while (it.hasNext() && !movedToAbsolute) { temp = (OJBIterator) it.next(); if (temp.size() < row) { sizeCount += temp.size(); } else { // move to the offset - sizecount m_currentCursorPosition = row - sizeCount; retval = temp.absolute(m_currentCursorPosition); movedToAbsolute = true; } } } // row is negative, so index from end else if (row < 0) { int sizeCount = 0; OJBIterator temp = null; for (int i = m_rsIterators.size(); ((i >= 0) && !movedToAbsolute); i--) { temp = (OJBIterator) m_rsIterators.get(i); if (temp.size() < row) { sizeCount += temp.size(); } else { // move to the offset - sizecount m_currentCursorPosition = row + sizeCount; retval = temp.absolute(m_currentCursorPosition); movedToAbsolute = true; } } } return retval; }
[ "the absolute and relative calls are the trickiest parts. We have to\nmove across cursor boundaries potentially.\n\na + row value indexes from beginning of resultset\na - row value indexes from the end of th resulset.\n\nCalling absolute(1) is the same as calling first().\nCalling absolute(-1) is the same as calling last()." ]
[ "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.", "Print currency.\n\n@param value currency value\n@return currency value", "Return the number of entries in the cue list that represent hot cues.\n\n@return the number of cue list entries that are hot cues", "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", "Process an operand value used in the definition of the graphical\nindicator criteria.\n\n@param index position in operand list\n@param type field type\n@param criteria indicator criteria", "Helper method that encapsulates the minimum logic for adding a job to a\nqueue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJson\nthe job serialized as JSON", "Sets all padding for all cells in the row to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining", "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.", "Subtract a complex number.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the subtract of specified complex number with a scalar value." ]
public void setTotalColorForColumn(int column, Color color){ int map = (colors.length-1) - column; colors[map][colors[0].length-1]=color; }
[ "Set the color for each total for the column\n@param column the number of the column (starting from 1)\n@param color" ]
[ "Returns a new Set containing all the objects in the specified array.", "Convenience method to escape any character that is special to the regex system.\n\n@param inString\nthe string to fix\n\n@return the fixed string", "This method is a sync parse to the JSON stream of atlas information.\n\n@return List of atlas information.", "read all brokers in the zookeeper\n\n@param zkClient zookeeper client\n@return all brokers", "Compares two annotated parameters and returns true if they are equal", "Generate a new check box with the provided date and check state.\n@param date date for the check box.\n@param checkState the initial check state.\n@return the created check box", "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", "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.", "Creates a setter method with the given body.\n\n@param declaringClass the class to which we will add the setter\n@param propertyNode the field to back the setter\n@param setterName the name of the setter\n@param setterBlock the statement representing the setter block" ]
@Override public Task addTask() { ProjectFile parent = getParentFile(); Task task = new Task(parent, this); m_children.add(task); parent.getTasks().add(task); setSummary(true); return (task); }
[ "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task" ]
[ "Creates a new subtask and adds it to the parent task. Returns the full record\nfor the newly created subtask.\n\n@param task The task to add a subtask to.\n@return Request object", "Read assignment data.", "Scan a network interface to find if it has an address space which matches the device we are trying to reach.\nIf so, return the address specification.\n\n@param aDevice the DJ Link device we are trying to communicate with\n@param networkInterface the network interface we are testing\n@return the address which can be used to communicate with the device on the interface, or null", "Use this API to fetch sslcipher resources of given names .", "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code", "Adds a parameter that requires a string argument to the argument list.\nIf the given argument is null, then the argument list remains unchanged.", "Main render algorithm based on render the video thumbnail, render the title, render the marker\nand the label.", "Creates a file logger in the current thread. The file is in XML format, suitable for interpretation by Eclipse's Drools Audit View\nor other tools. Note that while events are written as they happen, the file will not be flushed until it is closed or the underlying\nfile buffer is filled. If you need real time logging then use a Console Logger or a Threaded File Logger.\n\n@param session\n@param fileName - .log is appended to this.\n@return", "Controls whether we report that we are playing. This will only have an impact when we are sending status and\nbeat packets.\n\n@param playing {@code true} if we should seem to be playing" ]
private List<ExpandableWrapper<P, C>> generateFlattenedParentChildList(List<P> parentList) { List<ExpandableWrapper<P, C>> flatItemList = new ArrayList<>(); int parentCount = parentList.size(); for (int i = 0; i < parentCount; i++) { P parent = parentList.get(i); generateParentWrapper(flatItemList, parent, parent.isInitiallyExpanded()); } return flatItemList; }
[ "Generates a full list of all parents and their children, in order.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@return A list of all parents and their children, expanded" ]
[ "Gets the i-th half-edge associated with the face.\n\n@param i\nthe half-edge index, in the range 0-2.\n@return the half-edge", "Base64 encodes a byte array.\n\n@param bytes Bytes to encode.\n@return Encoded string.\n@throws IllegalArgumentException if {@code bytes} is null or exceeds 3/4ths of {@code\nInteger.MAX_VALUE}.", "Use this API to fetch clusterinstance resources of given names .", "Use this API to fetch transformpolicy resource of given name .", "This method is called if the data set has been scrolled.", "Adds a table to this model.\n\n@param table The table", "Return the number of entries in the cue list that represent hot cues.\n\n@return the number of cue list entries that are hot cues", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Utility method to convert an array of bytes into a long. Byte ordered is\nassumed to be big-endian.\n@param bytes The data to read from.\n@param offset The position to start reading the 8-byte long from.\n@return The 64-bit integer represented by the eight bytes.\n@since 1.1" ]
private List<TimephasedCost> getTimephasedCostFixedAmount() { List<TimephasedCost> result = new LinkedList<TimephasedCost>(); ProjectCalendar cal = getCalendar(); double remainingCost = getRemainingCost().doubleValue(); if (remainingCost > 0) { AccrueType accrueAt = getResource().getAccrueAt(); if (accrueAt == AccrueType.START) { result.add(splitCostStart(cal, remainingCost, getStart())); } else if (accrueAt == AccrueType.END) { result.add(splitCostEnd(cal, remainingCost, getFinish())); } else { //for prorated, we have to deal with it differently depending on whether or not //any actual has been entered, since we want to mimic the other timephased data //where planned and actual values do not overlap double numWorkingDays = cal.getWork(getStart(), getFinish(), TimeUnit.DAYS).getDuration(); double standardAmountPerDay = getCost().doubleValue() / numWorkingDays; if (getActualCost().intValue() > 0) { //need to get three possible blocks of data: one for the possible partial amount //overlap with timephased actual cost; one with all the standard amount days //that happen after the actual cost stops; and one with any remaining //partial day cost amount int numActualDaysUsed = (int) Math.ceil(getActualCost().doubleValue() / standardAmountPerDay); Date actualWorkFinish = cal.getDate(getStart(), Duration.getInstance(numActualDaysUsed, TimeUnit.DAYS), false); double partialDayActualAmount = getActualCost().doubleValue() % standardAmountPerDay; if (partialDayActualAmount > 0) { double dayAmount = standardAmountPerDay < remainingCost ? standardAmountPerDay - partialDayActualAmount : remainingCost; result.add(splitCostEnd(cal, dayAmount, actualWorkFinish)); remainingCost -= dayAmount; } //see if there's anything left to work with if (remainingCost > 0) { //have to split up the amount into standard prorated amount days and whatever is left result.addAll(splitCostProrated(cal, remainingCost, standardAmountPerDay, cal.getNextWorkStart(actualWorkFinish))); } } else { //no actual cost to worry about, so just a standard split from the beginning of the assignment result.addAll(splitCostProrated(cal, remainingCost, standardAmountPerDay, getStart())); } } } return result; }
[ "Generates timephased costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost" ]
[ "Set new point coordinates somewhere on screen and apply new direction\n\n@param position the point position to apply new values to", "Determine the X coordinate within the component at which the specified beat begins.\n\n@param beat the beat number whose position is desired\n@return the horizontal position within the component coordinate space where that beat begins\n@throws IllegalArgumentException if the beat number exceeds the number of beats in the track.", "If the file is compressed, handle this so that the stream is ready to read.\n\n@param stream input stream\n@return uncompressed input stream", "Writes a DTD that can be used for data XML files matching the current model to the given writer.\n\n@param output The writer to write the DTD to", "Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a question mark or a token in the style\nof {@link ParameterizedPreparedStatementCreator}, e.g. \":foo\".", "Painter the tile, by building a URL where the image can be found.\n\n@param tile\nMust be an instance of {@link InternalTile}, and must have a non-null {@link RasterUrlBuilder}.\n@return Returns a {@link InternalTile}.", "Close all JDBC objects related to this connection.", "returns an Enumeration of PrimaryKey Objects for objects of class DataClass.\nThe Elements returned come from a SELECT ... WHERE Statement\nthat is defined by the fields and their coresponding values of listFields\nand listValues.\nUseful for EJB Finder Methods...\n@param primaryKeyClass the pk class for the searched objects\n@param query the query", "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" ]
public void setDropShadowColor(int color) { GradientDrawable.Orientation orientation = getDropShadowOrientation(); final int endColor = color & 0x00FFFFFF; mDropShadowDrawable = new GradientDrawable(orientation, new int[] { color, endColor, }); invalidate(); }
[ "Sets the color of the drop shadow.\n\n@param color The color of the drop shadow." ]
[ "This method writes predecessor data to a Planner file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param mpxjTask MPXJ task instance\n@param plannerTask planner task instance", "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", "This one picks up on Dan2 ideas, but seeks to make less distinctions\nmid sequence by sorting for long words, but to maintain extra\ndistinctions for short words, by always recording the class of the\nfirst and last two characters of the word.\nCompared to chris2 on which it is based,\nit uses more Unicode classes, and so collapses things like\npunctuation more, and might work better with real unicode.\n\n@param s The String to find the word shape of\n@param omitIfInBoundary If true, character classes present in the\nfirst or last two (i.e., BOUNDARY_SIZE) letters\nof the word are not also registered\nas classes that appear in the middle of the word.\n@param knownLCWords If non-null and non-empty, tag with a \"k\" suffix words\nthat are in this list when lowercased (representing\nthat the word is \"known\" as a lowercase word).\n@return A word shape for the word.", "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices", "Downloads this version of the file to a given OutputStream while reporting the progress to a ProgressListener.\n@param output the stream to where the file will be written.\n@param listener a listener for monitoring the download's progress.", "open a readable or writeable FileChannel\n\n@param file file object\n@param mutable writeable\n@return open the FileChannel\n@throws IOException any io exception", "Use this API to delete sslcertkey.", "Set the host running the Odo instance to configure\n\n@param hostName name of host", "Adds an artifact to the module.\n\n<P>\nINFO: If the module is promoted, all added artifacts will be promoted.\n\n@param artifact Artifact" ]
public static base_response delete(nitro_service client, String viewname) throws Exception { dnsview deleteresource = new dnsview(); deleteresource.viewname = viewname; return deleteresource.delete_resource(client); }
[ "Use this API to delete dnsview of given name." ]
[ "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails", "Append Join for non SQL92 Syntax", "Creates a ServiceCall from an observable object.\n\n@param observable the observable to create from\n@param <T> the type of the response\n@return the created ServiceCall", "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.", "Scans given directory for files passing given filter, adds the results into given list.", "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "Performs a matrix multiplication between inner block matrices.\n\n(m , o) += (m , n) * (n , o)", "Get bean manager from portlet context.\n\n@param ctx the portlet context\n@return bean manager if found", "Add a row to the table. We have a limited understanding of the way\nBtrieve handles outdated rows, so we use what we think is a version number\nto try to ensure that we only have the latest rows.\n\n@param primaryKeyColumnName primary key column name\n@param map Map containing row data" ]
private void readActivities() { List<MapRow> items = new ArrayList<MapRow>(); for (MapRow row : m_tables.get("ACT")) { items.add(row); } final AlphanumComparator comparator = new AlphanumComparator(); Collections.sort(items, new Comparator<MapRow>() { @Override public int compare(MapRow o1, MapRow o2) { return comparator.compare(o1.getString("ACTIVITY_ID"), o2.getString("ACTIVITY_ID")); } }); for (MapRow row : items) { String activityID = row.getString("ACTIVITY_ID"); String wbs; if (m_wbsFormat == null) { wbs = null; } else { m_wbsFormat.parseRawValue(row.getString("WBS")); wbs = m_wbsFormat.getFormattedValue(); } ChildTaskContainer parent = m_wbsMap.get(wbs); if (parent == null) { parent = m_projectFile; } Task task = parent.addTask(); setFields(TASK_FIELDS, row, task); task.setStart(task.getEarlyStart()); task.setFinish(task.getEarlyFinish()); task.setMilestone(task.getDuration().getDuration() == 0); task.setWBS(wbs); Duration duration = task.getDuration(); Duration remainingDuration = task.getRemainingDuration(); task.setActualDuration(Duration.getInstance(duration.getDuration() - remainingDuration.getDuration(), TimeUnit.HOURS)); m_activityMap.put(activityID, task); } }
[ "Read activities." ]
[ "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", "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character Character.MIN_VALUE.\n\n@param self a CharSequence\n@return a value obtained by incrementing the toString() of the CharSequence\n@since 1.8.2", "Calculate the highlight color. Saturate at 0xff to make sure that high values\ndon't result in aliasing.\n\n@param _Slice The Slice which will be highlighted.", "Blocks until the server has started successfully or an exception is\nthrown.\n\n@throws VoldemortException if a problem occurs during start-up wrapping\nthe original exception.", "Print the method parameter p", "Check for exceptions.\n\n@return the list", "Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories.", "Performs a matrix inversion operations that takes advantage of the special\nproperties of a covariance matrix.\n\n@param cov A covariance matrix. Not modified.\n@param cov_inv The inverse of cov. Modified.\n@return true if it could invert the matrix false if it could not.", "Use this API to fetch nstrafficdomain_binding resources of given names ." ]
public List<String> getMultiSelect(String path) { List<String> values = new ArrayList<String>(); for (JsonValue val : this.getValue(path).asArray()) { values.add(val.asString()); } return values; }
[ "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the list of values set in the field." ]
[ "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", "Fall-back for types that are not handled by a subclasse's dispatch method.", "dispatch to gravity state", "Returns all the dependencies of a module\n\n@param module Module\n@return List<Dependency>", "Sets the actual path for this ID\n\n@param pathId ID of path\n@param path value of path", "Rethrows platform specific OperationCanceledExceptions and unwraps OperationCanceledErrors. Does nothing for any other type of Throwable.", "Parses and adds dictionaries to the Solr index.\n\n@param cms the OpenCms object.\n\n@throws CmsRoleViolationException in case the user does not have the required role ROOT_ADMIN", "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", "This method displays the resource assignments for each task. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a task-by-task basis.\n\n@param file MPX file" ]
String buildSelect(String htmlAttributes, SelectOptions options) { return buildSelect(htmlAttributes, options.getOptions(), options.getValues(), options.getSelectedIndex()); }
[ "Builds the HTML code for a select widget given a bean containing the select options\n\n@param htmlAttributes html attributes for the select widget\n@param options the bean containing the select options\n\n@return the HTML for the select box" ]
[ "Get an interpolated value for a given argument x.\n\n@param x The abscissa at which the interpolation should be performed.\n@return The interpolated value (ordinate).", "Retrieves the configured message by property key\n@param key The key in the file\n@return The associated value in case the key is found in the message bundle file. If\nno such key is defined, the returned value would be the key itself.", "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix", "Answer the TableAlias for aPath or aUserAlias\n@param aPath\n@param aUserAlias\n@param hintClasses\n@return TableAlias, null if none", "Process the module and bundle roots and cross check with the installed information.\n\n@param conf the installed configuration\n@param moduleRoots the module roots\n@param bundleRoots the bundle roots\n@return the processed layers\n@throws IOException", "Gets the attributes provided by the processor.\n\n@return the attributes", "Use this API to fetch responderpolicylabel_responderpolicy_binding resources of given name .", "Add filters to the tree.\n\n@param parentNode parent tree node\n@param filters list of filters", "Binds a script bundle to scene graph rooted at a scene object.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param rootSceneObject\nThe root of the scene object tree to which the scripts are bound.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if a script processing error occurs." ]
public void addFile(String description, FileModel fileModel) { Map<FileModel, ProblemFileSummary> files = addDescription(description); if (files.containsKey(fileModel)) { files.get(fileModel).addOccurrence(); } else { files.put(fileModel, new ProblemFileSummary(fileModel, 1)); } }
[ "Adds a file with the provided description." ]
[ "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 main scene of the current context\nwill 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 input event handler and\nto any event listener on the context.\n\n@param handler\nIAssetEvents handler to process asset loading events", "Processes the template for the comma-separated value pairs in an attribute of the current object on the specified level.\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=\"true\" description=\"The name of the attribute containg attributes (defaults to 'attributes')\"\[email protected] name=\"default-right\" optional=\"true\" description=\"The default right value if none is given (defaults to empty value)\"", "Adds error correction data to the specified binary string, which already contains the primary data", "Gets an exception reporting an unexpected XML attribute.\n\n@param reader a reference to the stream reader.\n@param index the attribute index.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Remove all references to a groupId\n\n@param groupIdToRemove ID of group", "Get a property as a string or throw an exception.\n\n@param key the property name", "Convert an Object to a Time, without an Exception", "This method reads a two byte integer from the input stream.\n\n@param is the input stream\n@return integer value\n@throws IOException on file read error or EOF", "Given a list of keys and a number of splits find the keys to split on.\n\n@param keys the list of keys.\n@param numSplits the number of splits." ]
public static File createFolder(String path, String dest_dir) throws BeastException { File f = new File(dest_dir); if (!f.isDirectory()) { try { f.mkdirs(); } catch (Exception e) { logger.severe("Problem creating directory: " + path + File.separator + dest_dir); } } String folderPath = createFolderPath(path); f = new File(f, folderPath); if (!f.isDirectory()) { try { f.mkdirs(); } catch (Exception e) { String message = "Problem creating directory: " + path + File.separator + dest_dir; logger.severe(message); throw new BeastException(message, e); } } return f; }
[ "This method returns the existing folder, and if it does not exist, the\nmethod generates it.\n\n@param path\n@param dest_dir\n@return the folder\n@throws BeastException" ]
[ "Called to reset current sensor data.\n\n@param timeStamp\ncurrent time stamp\n@param rotationW\nQuaternion rotation W\n@param rotationX\nQuaternion rotation X\n@param rotationY\nQuaternion rotation Y\n@param rotationZ\nQuaternion rotation Z\n@param gyroX\nGyro rotation X\n@param gyroY\nGyro rotation Y\n@param gyroZ\nGyro rotation Z", "Filters a list of rows from the named table. If a column name and a value\nare supplied, then use this to filter the rows. If no column name is\nsupplied, then return all rows.\n\n@param tableName table name\n@param columnName filter column name\n@param id filter column value\n@return filtered list of rows", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Get the items for the key.\n\n@param key\n@return the items for the given key", "Creates an appropriate HSGE for a domain-wide resource of a type that is mappable to server groups", "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider.", "Use this API to count nstrafficdomain_bridgegroup_binding resources configued on NetScaler.", "Assign an ID value to this field.", "Determines whether the given type is an array type.\n\n@param type the given type\n@return true if the given type is a subclass of java.lang.Class or implements GenericArrayType" ]
public void writeAuxiliaryTriples() throws RDFHandlerException { for (PropertyRestriction pr : this.someValuesQueue) { writeSomeValueRestriction(pr.propertyUri, pr.rangeUri, pr.subject); } this.someValuesQueue.clear(); this.valueRdfConverter.writeAuxiliaryTriples(); }
[ "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" ]
[ "Gets as many of the requested bytes as available from this buffer.\n\n@return number of bytes actually got from this buffer (0 if no bytes are available)", "Get a list of the members of a group. The call must be signed on behalf of a Flickr member, and the ability to see the group membership will be\ndetermined by the Flickr member's group privileges.\n\n@param groupId\nReturn a list of members for this group. The group must be viewable by the Flickr member on whose behalf the API call is made.\n@param memberTypes\nA set of Membertypes as available as constants in {@link Member}.\n@param perPage\nNumber of records per page.\n@param page\nResult-section.\n@return A members-list\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.members.getList.html\">API Documentation</a>", "Use this API to Import responderhtmlpage.", "returns the total count of objects in the GeneralizedCounter.", "Use this API to fetch the statistics of all rnat_stats resources that are configured on netscaler.", "Sets up this object to represent an argument that will be set to a\nconstant value.\n\n@param constantValue the constant value.", "Converts from a Fluo RowColumn to a Accumulo Key\n\n@param rc RowColumn\n@return Key", "Do post exam of child inside the layout after it has been positioned in parent\n@param dataIndex data index", "Given a rebalance-task info, convert it into the protobuf equivalent\n\n@param stealInfo Rebalance task info\n@return Protobuf equivalent of the same" ]
public synchronized boolean put(byte value) { if (available == capacity) { return false; } buffer[idxPut] = value; idxPut = (idxPut + 1) % capacity; available++; return true; }
[ "Puts a single byte if the buffer is not yet full.\n\n@return true if the byte was put, or false if the buffer is full" ]
[ "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "Get the value of the fist child element with the given name.\n\n@param element\nThe parent element\n@param name\nThe child element name\n@return The child element value or null", "This method calls the index state. It should be called once per crawl in order to setup the\ncrawl.\n\n@return The initial state.", "Return fallback if first string is null or empty", "Generate query parameters for a forward page with the specified start key.\n\n@param initialQueryParameters page 1 query parameters\n@param startkey the startkey for the forward page\n@param startkey_docid the doc id for the startkey (in case of duplicate keys)\n@param <K> the view key type\n@param <V> the view value type\n@return the query parameters for the forward page", "Returns all visble sets and pools the photo belongs to.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo to return information for.\n@return a list of {@link PhotoContext} objects\n@throws FlickrException", "Accessor method used to retrieve a Number instance representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors.", "For each node in specified zones, tries swapping some minimum number of\nrandom partitions per node with some minimum number of random partitions\nfrom other specified nodes. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This may get very expensive.\n\nSo if a node had partitions P1, P2, P3 and P4 and the other partitions\nset was Q1, Q2, Q3, Q4, Q5 The combinations that will be tried for\nswapping will be the cartesian product of the two sets. That is, {P1,\nQ1}, {P2, Q2}...{P2,Q1}, {P2,Q2}, in total 20 such swap pairs will be\ngenerated. The best among these swap pairs will be chosen.\n\n@param nextCandidateCluster\n@param nodeIds Node IDs within which to shuffle partitions\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param storeDefs\n@return updated cluster" ]
private void readWBS() { Map<Integer, List<MapRow>> levelMap = new HashMap<Integer, List<MapRow>>(); for (MapRow row : m_tables.get("STR")) { Integer level = row.getInteger("LEVEL_NUMBER"); List<MapRow> items = levelMap.get(level); if (items == null) { items = new ArrayList<MapRow>(); levelMap.put(level, items); } items.add(row); } int level = 1; while (true) { List<MapRow> items = levelMap.get(Integer.valueOf(level++)); if (items == null) { break; } for (MapRow row : items) { m_wbsFormat.parseRawValue(row.getString("CODE_VALUE")); String parentWbsValue = m_wbsFormat.getFormattedParentValue(); String wbsValue = m_wbsFormat.getFormattedValue(); row.setObject("WBS", wbsValue); row.setObject("PARENT_WBS", parentWbsValue); } final AlphanumComparator comparator = new AlphanumComparator(); Collections.sort(items, new Comparator<MapRow>() { @Override public int compare(MapRow o1, MapRow o2) { return comparator.compare(o1.getString("WBS"), o2.getString("WBS")); } }); for (MapRow row : items) { String wbs = row.getString("WBS"); if (wbs != null && !wbs.isEmpty()) { ChildTaskContainer parent = m_wbsMap.get(row.getString("PARENT_WBS")); if (parent == null) { parent = m_projectFile; } Task task = parent.addTask(); String name = row.getString("CODE_TITLE"); if (name == null || name.isEmpty()) { name = wbs; } task.setName(name); task.setWBS(wbs); task.setSummary(true); m_wbsMap.put(wbs, task); } } } }
[ "Read tasks representing the WBS." ]
[ "Return a named object associated with the specified key.", "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", "set proper expression text invoking the DJCRosstabMeasurePrecalculatedTotalProvider for the cell\n@param auxRows\n@param auxCols\n@param measureExp\n@param djmeasure\n@param crosstabColumn\n@param crosstabRow\n@param meausrePrefix", "Log a info message with a throwable.", "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance", "Prints and stores final result of the processing. This should be called\nafter finishing the processing of a dump. It will print the statistics\ngathered during processing and it will write a CSV file with usage counts\nfor every property.", "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", "Use this API to fetch a appflowglobal_binding resource .", "Upload a photo from an InputStream.\n\n@param in\n@param metaData\n@return photoId or ticketId\n@throws FlickrException" ]
public static Pointer mmap(long len, int prot, int flags, int fildes, long off) throws IOException { // we don't really have a need to change the recommended pointer. Pointer addr = new Pointer(0); Pointer result = Delegate.mmap(addr, new NativeLong(len), prot, flags, fildes, new NativeLong(off)); if(Pointer.nativeValue(result) == -1) { if(logger.isDebugEnabled()) logger.debug(errno.strerror()); throw new IOException("mmap failed: " + errno.strerror()); } return result; }
[ "Map the given region of the given file descriptor into memory.\nReturns a Pointer to the newly mapped memory throws an\nIOException on error." ]
[ "Expands all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start expanding parents\n@param parentCount The number of parents to expand", "Sorts the row indices in ascending order.\n@param sorter (Optional) Used to sort rows. If null a new instance will be declared internally.", "Encode a long into a byte array at an offset\n\n@param ba Byte array\n@param offset Offset\n@param v Long value\n@return byte array given in input", "Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of part IDs to part values\n@return the original secret\n@throws IllegalArgumentException if {@code parts} is empty or contains values of varying\nlengths", "Divide two complex numbers, in-place\n\n@param c complex number to divide this by\n@param result complex number to hold result\n@return same as result", "get the result speech recognize and find match in strings file.\n\n@param speechResult", "Checks if we can see any players that are on a different network than the one we chose for the Virtual CDJ.\nIf so, we are not going to be able to communicate with them, and they should all be moved onto a single\nnetwork.\n\n@return the device announcements of any players which are on unreachable networks, or hopefully an empty list\n@throws IllegalStateException if we are not running", "This may cost twice what it would in the original Map because we have to find\nthe original value for this key.\n\n@param key key with which the specified value is to be associated.\n@param value value to be associated with the specified key.\n@return previous value associated with specified key, or <tt>null</tt>\nif there was no mapping for key. A <tt>null</tt> return can\nalso indicate that the map previously associated <tt>null</tt>\nwith the specified key, if the implementation supports\n<tt>null</tt> values.", "Write the domain controller data to a byte buffer.\n\n@param data the domain controller data\n@return the byte buffer\n@throws Exception" ]
public static base_responses apply(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 applyresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ applyresources[i] = new nspbr6(); } result = perform_operation_bulk_request(client, applyresources,"apply"); } return result; }
[ "Use this API to apply nspbr6 resources." ]
[ "Returns the x-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the x coordinate", "Checks whether the folder exists for fileName, and creates it if necessary.\n\n@param fileName folder name.\n@throws IOException an IO exception.", "Creates a server setup based on provided properties.\n\n@param properties the properties.\n@return the server setup, or an empty array.", "Add a forward to this curve.\n\n@param model An analytic model providing a context. The discount curve (if needed) is obtained from this model.\n@param fixingTime The given fixing time.\n@param forward The given forward.\n@param isParameter If true, then this point is server via {@link #getParameter()} and changed via {@link #setParameter(RandomVariable[])} and {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host section.\nA CIDR host mask is an address with all 0s in the network section and then all 1s in the host section.\nThe prefix length is the length of the network section.\n\nAlso, keep in mind that the prefix length returned by this method is not equivalent to the prefix length used to construct this object.\nThe prefix length used to construct indicates the network and host section of this address.\nThe prefix length returned here indicates the whether the value of this address can be used as a mask for the network and host\nsection of any other address. Therefore the two values can be different values, or one can be null while the other is not.\n\nThis method applies only to the lower value of the range if this section represents multiple values.\n\n@param network whether to check for a network mask or a host mask\n@return the prefix length corresponding to this mask, or null if there is no such prefix length", "add an Extent class to the current descriptor\n@param newExtentClassName name of the class to add", "Deletes a path from the filesystem\n\nIf the path is a directory its contents\nwill be recursively deleted before it itself\nis deleted.\n\nNote that removal of a directory is not an atomic-operation\nand so if an error occurs during removal, some of the directories\ndescendants may have already been removed\n\n@throws IOException if an error occurs whilst removing a file or directory", "Gets a collection.\n\n@param collectionName the name of the collection to return\n@return the collection", "Find container env.\n\n@param ctx the container context\n@param dump the exception dump\n@return valid container or null" ]
public void adjustGlassSize() { if (isGlassEnabled()) { ResizeHandler handler = getGlassResizer(); if (handler != null) handler.onResize(null); } }
[ "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer." ]
[ "Transits a float property from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Creates an immutable list that consists of the elements in the given array. A copy of the given array is used which means\nthat any modifications to the given array will not affect the immutable list.\n\n@param elements the given array of elements\n@return an immutable list", "Get a random sample of k out of n elements.\n\nSee Algorithm S, D. E. Knuth, The Art of Computer Programming, Vol. 2, p.142.", "Finds the last entry of the address list and returns it as a property.\n\n@param address the address to get the last part of\n\n@return the last part of the address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty", "Adds a path to the request response table with the specified values\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param pathId ID of path\n@throws Exception exception", "Extracts the version id from a string\n\n@param versionDir The string\n@return Returns the version id of the directory, else -1", "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "Checks the given class descriptor for correct procedure settings.\n\n@param classDef The class 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", "Overridden to skip some symbolizers." ]
@Override public boolean isPrefixBlock() { Integer networkPrefixLength = getNetworkPrefixLength(); if(networkPrefixLength == null) { return false; } if(getNetwork().getPrefixConfiguration().allPrefixedAddressesAreSubnets()) { return true; } return containsPrefixBlock(networkPrefixLength); }
[ "Returns whether this address section represents a subnet block of addresses associated its prefix length.\n\nReturns false if it has no prefix length, if it is a single address with a prefix length (ie not a subnet), or if it is a range of addresses that does not include\nthe entire subnet block for its prefix length.\n\nIf {@link AddressNetwork#getPrefixConfiguration} is set to consider all prefixes as subnets, this returns true for any grouping with prefix length.\n\n@return" ]
[ "Create a smaller array from an existing one.\n\n@param strings an array containing element of type {@link String}\n@param begin the starting position of the sub-array\n@param length the number of element to consider\n@return a new array continaining only the selected elements", "Use this API to update snmpalarm resources.", "Starts the HTTP service.\n\n@throws Exception if the service failed to started", "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}", "Send JSON representation of given data object to all connections tagged with\ngiven label\n@param data the data object\n@param label the tag label", "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this", "we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize objects and they will enter the registered for\nlock map.", "Write the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar instance\n@param mpxjCalendar MPXJ calendar instance", "Restores a trashed folder back to its original location.\n@param folderID the ID of the trashed folder.\n@return info about the restored folder." ]
public float getNormalZ(int vertex) { if (!hasNormals()) { throw new IllegalStateException("mesh has no normals"); } checkVertexIndexBounds(vertex); return m_normals.getFloat((vertex * 3 + 2) * SIZEOF_FLOAT); }
[ "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate" ]
[ "Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of part IDs to part values\n@return the original secret\n@throws IllegalArgumentException if {@code parts} is empty or contains values of varying\nlengths", "Answer the counted size\n\n@return int", "This will blur the view behind it and set it in\na imageview over the content with a alpha value\nthat corresponds to slideOffset.", "Returns a module\n\n@param moduleId String\n@return DbModule", "EXecutes command to given container returning the inspection object as well. This method does 3 calls to\ndockerhost. Create, Start and Inspect.\n\n@param containerId\nto execute command.", "Delete a module from Grapes server\n\n@param name\n@param version\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name", "Returns a predicate that takes no parameters. The given SQL expression is\nused directly.\n\n@param sql\nSQL text of the expression", "Create a temporary directory with the same attributes as its parent directory.\n@param dir\nthe path to directory in which to create the directory\n@param prefix\nthe prefix string to be used in generating the directory's name;\nmay be {@code null}\n@return the path to the newly created directory that did not exist before\nthis method was invoked\n@throws IOException" ]
@Pure public static <K, V> Map<K, V> operator_minus(Map<K, V> left, final Map<? extends K, ? extends V> right) { return Maps.filterEntries(left, new Predicate<Entry<K, V>>() { @Override public boolean apply(Entry<K, V> input) { final V value = right.get(input.getKey()); if (value == null) { return input.getValue() == null && right.containsKey(input.getKey()); } return !Objects.equal(input.getValue(), value); } }); }
[ "Replies the elements of the left map without the pairs in the right map.\nIf the pair's values differ from\nthe value within the map, the map entry is not removed.\n\n<p>\nThe difference is an immutable\nsnapshot of the state of the maps at the time this method is called. It\nwill never change, even if the maps change at a later time.\n</p>\n\n<p>\nSince this method uses {@code HashMap} instances internally, the keys of\nthe supplied maps must be well-behaved with respect to\n{@link Object#equals} and {@link Object#hashCode}.\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 update.\n@param right the pairs to remove.\n@return the map with the content of the left map except the pairs of the right map.\n@since 2.15" ]
[ "Returns the later of two dates, handling null values. A non-null Date\nis always considered to be later than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date latest date", "Acquire the shared lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Method is called by spring and verifies that there is only one plugin per URI scheme.", "Return the number of entries in the cue list that represent hot cues.\n\n@return the number of cue list entries that are hot cues", "Read activities.", "Find a Constructor on the given type that matches the given arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a Constructor from the given type that matches the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments", "Use this API to fetch snmpalarm resource of given name .", "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array.", "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" ]
public static sslocspresponder get(nitro_service service, String name) throws Exception{ sslocspresponder obj = new sslocspresponder(); obj.set_name(name); sslocspresponder response = (sslocspresponder) obj.get_resource(service); return response; }
[ "Use this API to fetch sslocspresponder resource of given name ." ]
[ "Divide two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the divide of specified complex numbers.", "checks whether the specified Object obj is write-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false", "add a converted object to the pool\n\n@param converter\nthe converter that made the conversion\n@param sourceObject\nthe source object that has been converted\n@param destinationType\nthe destination type\n@param convertedObject\nthe converted object", "Add an appender to Logback logging framework that will track the types of log messages made.", "Creates a slice for directly a raw memory address. This is\ninherently unsafe as it may be used to access arbitrary memory.\n\n@param address the raw memory address base\n@param size the size of the slice\n@return the unsafe slice", "Process a module or bundle root.\n\n@param root the root\n@param layers the processed layers\n@param setter the bundle or module path setter\n@throws IOException", "Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .", "Helper method to convert seed bytes into the long value required by the\nsuper class.", "Use this API to unset the properties of nslimitselector resources.\nProperties that need to be unset are specified in args array." ]
protected void doSave() { List<CmsFavoriteEntry> entries = getEntries(); try { m_favDao.saveFavorites(entries); } catch (Exception e) { CmsErrorDialog.showErrorDialog(e); } }
[ "Saves the list of currently displayed favorites." ]
[ "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "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", "This method is called if the data set has been changed. Subclasses might want to override\nthis method to add some extra logic.\n\nGo through all items in the list:\n- reuse the existing views in the list\n- add new views in the list if needed\n- trim the unused views\n- request re-layout\n\n@param preferableCenterPosition the preferable center position. If it is -1 - keep the\ncurrent center position.", "Splits timephased work segments in line with cost rates. Note that this is\nan approximation - where a rate changes during a working day, the second\nrate is used for the whole day.\n\n@param table cost rate table\n@param calendar calendar used by this assignment\n@param work timephased work segment\n@param rateIndex rate applicable at the start of the timephased work segment\n@return list of segments which replace the one supplied by the caller", "Sets the node meta data but allows overwriting values.\n\n@param key - the meta data key\n@param value - the meta data value\n@return the old node meta data value for this key\n@throws GroovyBugError if key is null", "Use this API to fetch snmpalarm resources of given names .", "Returns the remote collection representing the given namespace.\n\n@param namespace the namespace referring to the remote collection.\n@param resultClass the {@link Class} that represents documents in the collection.\n@param <T> the type documents in the collection.\n@return the remote collection representing the given namespace.", "Main method of this class related to ListView widget. This method is the responsible of\nrecycle or create a new Renderer instance with all the needed information to implement the\nrendering. This method will validate all the attributes passed in the builder constructor and\nwill check if can recycle or has to create a new Renderer instance.\n\nThis method is used with ListView because the view recycling mechanism is implemented in this\nclass. RecyclerView widget will use buildRendererViewHolder method.\n\n@return ready to use Renderer instance.", "Returns whether this address contains the non-zero host addresses in other.\n@param other\n@return" ]
protected void captureCenterEye(GVRRenderTarget renderTarget, boolean isMultiview) { if (mScreenshotCenterCallback == null) { return; } // TODO: when we will use multithreading, create new camera using centercamera as we are adding posteffects into it final GVRCamera centerCamera = mMainScene.getMainCameraRig().getCenterCamera(); final GVRMaterial postEffect = new GVRMaterial(this, GVRMaterial.GVRShaderType.VerticalFlip.ID); centerCamera.addPostEffect(postEffect); GVRRenderTexture posteffectRenderTextureB = null; GVRRenderTexture posteffectRenderTextureA = null; if(isMultiview) { posteffectRenderTextureA = mRenderBundle.getEyeCapturePostEffectRenderTextureA(); posteffectRenderTextureB = mRenderBundle.getEyeCapturePostEffectRenderTextureB(); renderTarget = mRenderBundle.getEyeCaptureRenderTarget(); renderTarget.cullFromCamera(mMainScene, centerCamera ,mRenderBundle.getShaderManager()); renderTarget.beginRendering(centerCamera); } else { posteffectRenderTextureA = mRenderBundle.getPostEffectRenderTextureA(); posteffectRenderTextureB = mRenderBundle.getPostEffectRenderTextureB(); } renderTarget.render(mMainScene,centerCamera, mRenderBundle.getShaderManager(), posteffectRenderTextureA, posteffectRenderTextureB); centerCamera.removePostEffect(postEffect); readRenderResult(renderTarget, EYE.MULTIVIEW, false); if(isMultiview) renderTarget.endRendering(); final Bitmap bitmap = Bitmap.createBitmap(mReadbackBufferWidth, mReadbackBufferHeight, Bitmap.Config.ARGB_8888); mReadbackBuffer.rewind(); bitmap.copyPixelsFromBuffer(mReadbackBuffer); final GVRScreenshotCallback callback = mScreenshotCenterCallback; Threads.spawn(new Runnable() { public void run() { callback.onScreenCaptured(bitmap); } }); mScreenshotCenterCallback = null; }
[ "capture center eye" ]
[ "Assign float value within allowed range of [0,infinity) to initializeOnly SFFloat field named spacing.\n@param newValue", "Cache a parse failure for this document.", "Configures the log context for the server and returns the configured log context.\n\n@param logDir the logging directory, from jboss.server|domain.log.dir standalone default {@code $JBOSS_HOME/standalone/log}\n@param configDir the configuration directory from jboss.server|domain.config.dir, standalone default {@code $JBOSS_HOME/standalone/configuration}\n@param defaultLogFileName the name of the log file to pass to {@code org.jboss.boot.log.file}\n@param ctx the command context used to report errors to\n\n@return the configured log context", "Remember execution time for all executed suites.", "Update the current position with specified length.\nThe input will append to the current position of the iterator.\n\n@param length update length", "Get the metadata of all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the track information reported by all current players, including any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the MetadataFinder is not running", "Deletes the specified shovel from specified virtual host.\n\n@param vhost virtual host from where to delete the shovel\n@param shovelname Shovel to be deleted.", "Print an extended attribute value.\n\n@param writer parent MSPDIWriter instance\n@param value attribute value\n@param type type of the value being passed\n@return string representation", "Attaches a pre-existing set of hours to the correct\nday within the calendar.\n\n@param hours calendar hours instance" ]
public ParallelTaskBuilder prepareHttpPost(String url) { reinitIfClosed(); ParallelTaskBuilder cb = new ParallelTaskBuilder(); cb.getHttpMeta().setHttpMethod(HttpMethod.POST); cb.getHttpMeta().setRequestUrlPostfix(url); return cb; }
[ "Prepare a parallel HTTP POST Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder" ]
[ "Compute \"sent\" date\n\n@param msg Message to take sent date from. May be null to use default\n@param defaultVal Default if sent date is not present\n@return Sent date or now if no date could be found", "Merge a subtree.\n\n@param targetRegistry the target registry\n@param subTree the subtree", "Checks to see if matrix 'a' is the same as this matrix within the specified\ntolerance.\n\n@param a The matrix it is being compared against.\n@param tol How similar they must be to be equals.\n@return If they are equal within tolerance of each other.", "Generic string joining function.\n@param strings Strings to be joined\n@param fixCase does it need to fix word case\n@param withChar char to join strings with.\n@return joined-string", "Creates and start an engine representing the node named as the given parameter.\n\n@param name\nname of the node, as present in the configuration (case sensitive)\n@param handler\ncan be null. A set of callbacks hooked on different engine life cycle events.\n@return an object allowing to stop the engine.", "Makes a DocumentReaderAndWriter based on the flags the CRFClassifier\nwas constructed with. Will create the flags.readerAndWriter and\ninitialize it with the CRFClassifier's flags.", "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue...", "Wrapper delayed emission, based on delayProvider.\n\n@param event the event to emit\n@param milliseconds the delay in milliseconds\n@param <T> the type of event\n@return delayed observable" ]
public static boolean checkVersionDirName(File versionDir) { return (versionDir.isDirectory() && versionDir.getName().contains("version-") && !versionDir.getName() .endsWith(".bak")); }
[ "Checks if the name of the file follows the version-n format\n\n@param versionDir The directory\n@return Returns true if the name is correct, else false" ]
[ "Use this API to expire cacheobject.", "Sets the lower limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis lower rotation limit (in radians)\n@param limitY the Y axis lower rotation limit (in radians)\n@param limitZ the Z axis lower rotation limit (in radians)", "Finds an Object of the specified type.\n\n@param <T> Object type.\n@param classType The class of type T.\n@param id The document _id field.\n@param rev The document _rev field.\n@return An object of type T.\n@throws NoDocumentException If the document is not found in the database.", "Calculate the determinant.\n\n@return Determinant.", "Rebuild logging systems with updated mode\n@param newMode log mode", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "Creates a new file.\n\n@param inputStream the stream instance that contains the data.\n@param fileName the name of the file to be created.\n@param fileSize the size of the file that will be uploaded.\n@return the created file instance.\n@throws InterruptedException when a thread execution is interrupted.\n@throws IOException when reading a stream throws exception.", "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.", "Performs an implicit double step given the set of two imaginary eigenvalues provided.\nSince one eigenvalue is the complex conjugate of the other only one set of real and imaginary\nnumbers is needed.\n\n@param x1 upper index of submatrix.\n@param x2 lower index of submatrix.\n@param real Real component of each of the eigenvalues.\n@param img Imaginary component of one of the eigenvalues." ]
public RedwoodConfiguration showOnlyChannels(final Object[] channels){ tasks.add(new Runnable() { public void run() { Redwood.showOnlyChannels(channels); } }); return this; }
[ "Show only the following channels.\n@param channels The names of the channels to show.\n@return this" ]
[ "Clear all overrides, reset repeat counts for a request path\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@throws Exception exception", "Use this API to link sslcertkey resources.", "Wait for the read side to close. Used when the writer needs to know when\nthe reader finishes consuming a message.", "A helper - in Java 9, the extension CL was renamed to platform CL and hosts all the JDK classes. Before 9, it was useless and we used\nbootstrap CL instead.\n\n@return the base CL to use.", "Add sub-deployment units to the container\n\n@param bdaMapping", "We have a non-null date, try each format in turn to see if it can be parsed.\n\n@param str date to parse\n@param pos position at which to start parsing\n@return Date instance", "Retrieve all References\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true loading is forced even if cld differs.", "Renames this file.\n\n@param newName the new name of the file.", "Returns true if required properties for FluoClient are set" ]
protected String getPayload(Message message) { try { String encoding = (String) message.get(Message.ENCODING); if (encoding == null) { encoding = "UTF-8"; } CachedOutputStream cos = message.getContent(CachedOutputStream.class); if (cos == null) { LOG.warning("Could not find CachedOutputStream in message." + " Continuing without message content"); return ""; } return new String(cos.getBytes(), encoding); } catch (IOException e) { throw new RuntimeException(e); } }
[ "Gets the message payload.\n\n@param message the message\n@return the payload" ]
[ "Loads the script from a text string.\n@param scriptText text string containing script to execute.\n@param language language (\"js\" or \"lua\")", "sorts are a bit more awkward and need a helper...", "Loads the configuration from file \"OBJ.properties\". If the system\nproperty \"OJB.properties\" is set, then the configuration in that file is\nloaded. Otherwise, the file \"OJB.properties\" is tried. If that is also\nunsuccessful, then the configuration is filled with default values.", "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)", "Checks to see if every value in the matrix is the specified value.\n\n@param mat The matrix being tested. Not modified.\n@param val Checks to see if every element in the matrix has this value.\n@param tol True if all the elements are within this tolerance.\n@return true if the test passes.", "Create a clone of this LevenbergMarquardt optimizer with a new vector for the\ntarget values and weights.\n\nThe clone will use the same objective function than this implementation,\ni.e., the implementation of {@link #setValues(RandomVariable[], RandomVariable[])} and\nthat of {@link #setDerivatives(RandomVariable[], RandomVariable[][])} is reused.\n\nThe initial values of the cloned optimizer will either be the original\ninitial values of this object or the best parameters obtained by this\noptimizer, the latter is used only if this optimized signals a {@link #done()}.\n\n@param newTargetVaues New list of target values.\n@param newWeights New list of weights.\n@param isUseBestParametersAsInitialParameters If true and this optimizer is done(), then the clone will use this.{@link #getBestFitParameters()} as initial parameters.\n@return A new LevenbergMarquardt optimizer, cloning this one except modified target values and weights.\n@throws CloneNotSupportedException Thrown if this optimizer cannot be cloned.", "Makes the object unpickable and removes the touch handler for it\n@param sceneObject\n@return true if the handler has been successfully removed", "Check whether the media seems to have changed since a saved version of it was used. We ignore changes in\nfree space because those probably just reflect history entries being added.\n\n@param originalMedia the media details when information about it was saved\n\n@return true if there have been detectable significant changes to the media since it was saved\n\n@throws IllegalArgumentException if the {@link #hashKey()} values of the media detail objects differ" ]
private boolean loadCustomErrorPage( CmsObject cms, HttpServletRequest req, HttpServletResponse res, String rootPath) { try { // get the site of the error page resource CmsSite errorSite = OpenCms.getSiteManager().getSiteForRootPath(rootPath); cms.getRequestContext().setSiteRoot(errorSite.getSiteRoot()); String relPath = cms.getRequestContext().removeSiteRoot(rootPath); if (cms.existsResource(relPath)) { cms.getRequestContext().setUri(relPath); OpenCms.getResourceManager().loadResource(cms, cms.readResource(relPath), req, res); return true; } else { return false; } } catch (Throwable e) { // something went wrong log the exception and return false LOG.error(e.getMessage(), e); return false; } }
[ "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded" ]
[ "Use this API to rename a responderpolicy resource.", "Helper to generate the common configuration part for client-side and server-side widget.\n@return the common configuration options as map", "Permanently deletes a trashed file.\n@param fileID the ID of the trashed folder to permanently delete.", "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", "Calculate the finish variance.\n\n@return finish variance", "Returns the bit at the specified index.\n@param index The index of the bit to look-up (0 is the least-significant bit).\n@return A boolean indicating whether the bit is set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Deploys application reading resources from specified InputStream.\n\n@param inputStream where resources are read\n@throws IOException", "Parameter validity check.", "Creates a new HTML-formatted label with the given content.\n\n@param html the label content" ]
public PlaybackState getFurthestPlaybackState() { PlaybackState result = null; for (PlaybackState state : playbackStateMap.values()) { if (result == null || (!result.playing && state.playing) || (result.position < state.position) && (state.playing || !result.playing)) { result = state; } } return result; }
[ "Look up the playback state that has reached furthest in the track, but give playing players priority over stopped players.\nThis is used to choose the scroll center when auto-scrolling is active.\n\n@return the playback state, if any, with the highest playing {@link PlaybackState#position} value" ]
[ "Query zipcode from Yahoo to find associated WOEID", "Sets the value of a UDF.\n\n@param udf user defined field\n@param dataType MPXJ data type\n@param value field value", "Retrieve the details of a single project from the database.\n\n@param result Map instance containing the results\n@param row result set row read from the database", "Use this API to update systemuser resources.", "Performs a remote service method invocation. This method is called by\ngenerated proxy classes.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a {@link Request} object that can be used to track the request", "Delete the partition steal information from the rebalancer state\n\n@param stealInfo The steal information to delete", "validates operation against the definition and sets model for the parameters passed.\n\n@param operationObject model node of type {@link ModelType#OBJECT}, typically representing an operation request\n@param model model node in which the value should be stored\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release", "Attach the given link to the classification, while checking for duplicates.", "Reads a stringtemplate group from a stream.\n\nThis will always return a group (empty if necessary), even if reading it from the stream fails.\n\n@param stream the stream to read from\n@return the string template group" ]
public static base_response delete(nitro_service client, String id) throws Exception { linkset deleteresource = new linkset(); deleteresource.id = id; return deleteresource.delete_resource(client); }
[ "Use this API to delete linkset of given name." ]
[ "Get a list of referring domains for a photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamDomains.html\"", "Gets the path used for the results of XSLT Transforms.", "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name.", "Use this API to fetch a tmglobal_tmsessionpolicy_binding resources.", "do 'Distinct' operation\n\n@param queryDescriptor descriptor of MongoDB query\n@param collection collection for execute the operation\n@return result iterator\n@see <a href =\"https://docs.mongodb.com/manual/reference/method/db.collection.distinct/\">distinct</a>", "Convert a Java date into a Planner date.\n\n20070222\n\n@param value Java Date instance\n@return Planner date", "Get the days difference", "Get the OAuth request token - this is step one of authorization.\n\n@param callbackUrl\noptional callback URL - required for web auth flow, will be set to \"oob\" if not specified.\n@return the {@link OAuth1RequestToken}, store this for when the user returns from the Flickr website.", "get all consumers for the group\n\n@param zkClient the zookeeper client\n@param group the group name\n@return topic-&gt;(consumerIdStringA-0,consumerIdStringA-1...consumerIdStringB-0,consumerIdStringB-1)" ]
public static boolean isTemplatePath(String string) { int sz = string.length(); if (sz == 0) { return true; } for (int i = 0; i < sz; ++i) { char c = string.charAt(i); switch (c) { case ' ': case '\t': case '\b': case '<': case '>': case '(': case ')': case '[': case ']': case '{': case '}': case '!': case '@': case '#': case '*': case '?': case '%': case '|': case ',': case ':': case ';': case '^': case '&': return false; } } return true; }
[ "Check if a given string is a template path or template content\n\nIf the string contains anyone the following characters then we assume it\nis content, otherwise it is path:\n\n* space characters\n* non numeric-alphabetic characters except:\n** dot \".\"\n** dollar: \"$\"\n\n@param string\nthe string to be tested\n@return `true` if the string literal is template content or `false` otherwise" ]
[ "Fill the buffer of the specified range with a given value\n@param offset\n@param length\n@param value", "Get a project according to its full name.\n\n@param fullName The full name of the project.\n@return The project which answers the full name.", "Created a fresh CancelIndicator", "Records the list of backedup files into a text file\n\n@param filesInEnv\n@param backupDir", "Sets the ProjectCalendar instance from which this calendar is derived.\n\n@param calendar base calendar instance", "poll the response queue for response\n\n@param timeout timeout amount\n@param timeUnit timeUnit of timeout\n@return same result of BlockQueue.poll(long, TimeUnit)\n@throws InterruptedException", "Reads a string of two byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nThe value starts at the position specified by the offset\nparameter.\n\n@param data byte array of data\n@param offset start point of unicode string\n@return string value", "Log a warning for the resource at the provided address and the given attributes. The detail message is a default\n'Attributes are not understood in the target model version and this resource will need to be ignored on the target host.'\n\n@param address where warning occurred\n@param attributes attributes we are warning about", "Clone layer information considering what may be copied to the client.\n\n@param original layer info\n@return cloned copy including only allowed information" ]
public Iterable<BoxRetentionPolicyAssignment.Info> getAllAssignments(int limit, String ... fields) { return this.getAssignments(null, limit, fields); }
[ "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments." ]
[ "Read the work weeks.\n\n@param data calendar data\n@param offset current offset into data\n@param cal parent calendar", "Update a variable name with a date if the variable is detected as being a date.\n\n@param variableName the variable name.\n@param date the date to replace the value with if the variable is a date variable.", "Sets the distance from the origin to the near clipping plane for the\nwhole camera rig.\n\n@param near\nDistance to the near clipping plane.", "Sets the content type for this ID\n\n@param pathId ID of path\n@param contentType content type value", "If supported by the WMS server, a parameter \"angle\" can be set on \"customParams\" or \"mergeableParams\".\nIn this case the rotation will be done natively by the WMS.", "Given a read-only store name and a directory, swaps it in while returning\nthe directory path being swapped out\n\n@param storeName The name of the read-only store\n@param directory The directory being swapped in\n@return The directory path which was swapped out\n@throws VoldemortException", "Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8.", "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Initialize the version properties map from the gradle.properties file, and the additional properties from the\ngradle.properties file." ]
@Pure public static <K, V> Map<K, V> operator_minus(Map<K, V> map, final K key) { return Maps.filterKeys(map, new Predicate<K>() { @Override public boolean apply(K input) { return !Objects.equal(input, key); } }); }
[ "Replies the elements of the given map except the pair with the given key.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param key the key to remove.\n@return the map with the content of the map except the key.\n@since 2.15" ]
[ "is there a faster algorithm out there? This one is a bit sluggish", "Aliases variables with an unknown type.\n@param variable The variable being aliased\n@param name Name of the variable", "generate random velocities in the given range\n@return", "Warning emitter. Uses whatever alternative non-event communication channel is.", "Detects if the current browser is a BlackBerry Touch\ndevice, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.\n@return detection of a Blackberry touchscreen device", "Use this API to fetch statistics of nspbr6_stats resource of given name .", "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name .", "An invalid reference or references. The verification of the digest of a\nreference failed. This can be caused by a change to the referenced data\nsince the signature was generated.\n\n@param aInvalidReferences\nThe indices to the invalid references.\n@return Result object", "Validates a favorite entry.\n\n<p>If the favorite entry references a resource or project that can't be read, this will return false.\n\n@param entry the favorite entry\n@return the" ]
protected boolean hasTimeOutHeader() { boolean result = false; String timeoutValStr = this.request.getHeader(RestMessageHeaders.X_VOLD_REQUEST_TIMEOUT_MS); if(timeoutValStr != null) { try { this.parsedTimeoutInMs = Long.parseLong(timeoutValStr); if(this.parsedTimeoutInMs < 0) { RestErrorHandler.writeErrorResponse(messageEvent, HttpResponseStatus.BAD_REQUEST, "Time out cannot be negative "); } else { result = true; } } catch(NumberFormatException nfe) { logger.error("Exception when validating request. Incorrect timeout parameter. Cannot parse this to long: " + timeoutValStr, nfe); RestErrorHandler.writeErrorResponse(this.messageEvent, HttpResponseStatus.BAD_REQUEST, "Incorrect timeout parameter. Cannot parse this to long: " + timeoutValStr); } } else { logger.error("Error when validating request. Missing timeout parameter."); RestErrorHandler.writeErrorResponse(this.messageEvent, HttpResponseStatus.BAD_REQUEST, "Missing timeout parameter."); } return result; }
[ "Retrieve and validate the timeout value from the REST request.\n\"X_VOLD_REQUEST_TIMEOUT_MS\" is the timeout header.\n\n@return true if present, false if missing" ]
[ "format with lazy-eval", "Counts additional occurrences of a property as the main property of\nstatements.\n\n@param usageStatistics\nstatistics object where count is stored\n@param property\nthe property to count\n@param count\nthe number of times to count the property", "Constructs the appropriate MenuDrawer based on the position.", "Sets the baseline start text value.\n\n@param baselineNumber baseline number\n@param value baseline start text value", "replace region length", "Generate a set of datetime patterns to accommodate variations in MPX files.\n\n@param datePattern date pattern element\n@param timePatterns time patterns\n@return datetime patterns", "Use this API to fetch filtered set of dbdbprofile resources.\nset the filter parameter values in filtervalue object.", "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress.\n@throws BoxAPIException if an error occurs while writing to the connection.", "Apply aliases to task and resource fields.\n\n@param aliases map of aliases" ]
private String getHierarchyTable(ClassDescriptorDef classDef) { ArrayList queue = new ArrayList(); String tableName = null; queue.add(classDef); while (!queue.isEmpty()) { ClassDescriptorDef curClassDef = (ClassDescriptorDef)queue.get(0); queue.remove(0); if (curClassDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_TABLE_INFO, true)) { if (tableName != null) { if (!tableName.equals(curClassDef.getProperty(PropertyHelper.OJB_PROPERTY_TABLE))) { return null; } } else { tableName = curClassDef.getProperty(PropertyHelper.OJB_PROPERTY_TABLE); } } for (Iterator it = curClassDef.getExtentClasses(); it.hasNext();) { curClassDef = (ClassDescriptorDef)it.next(); if (curClassDef.getReference("super") == null) { queue.add(curClassDef); } } } return tableName; }
[ "Tries to return the single table to which all classes in the hierarchy with the given\nclass as the root map.\n\n@param classDef The root class of the hierarchy\n@return The table name or <code>null</code> if the classes map to more than one table\nor no class in the hierarchy maps to a table" ]
[ "This method extracts assignment data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Add a Renderer instance as prototype.\n\n@param renderer to use as prototype.\n@return the current RendererBuilder instance.", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.", "Modify the tranform's current rotation in quaternion terms, around a\npivot other than the origin.\n\n@param w\n'W' component of the quaternion.\n@param x\n'X' component of the quaternion.\n@param y\n'Y' component of the quaternion.\n@param z\n'Z' component of the quaternion.\n@param pivotX\n'X' component of the pivot's location.\n@param pivotY\n'Y' component of the pivot's location.\n@param pivotZ\n'Z' component of the pivot's location.", "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields", "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", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ViewPager.\n\nIf RendererBuilder returns a null Renderer this method will throw a\nNullRendererBuiltException.\n\n@param parent The containing View in which the page will be shown.\n@param position to render.\n@return view rendered.", "Return a list of unique values for a namespace and predicate.\n\nThis method does not require authentication.\n\n@param namespace\nThe namespace that all values should be restricted to.\n@param predicate\nThe predicate that all values should be restricted to.\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList\n@throws FlickrException" ]
public static Double getDistanceBetweenCoordinates(Tuple2<Double, Double> point1, Tuple2<Double, Double> point2) { // sqrt( (x2-x1)^2 + (y2-y2)^2 ) Double xDiff = point1._1() - point2._1(); Double yDiff = point1._2() - point2._2(); return Math.sqrt(xDiff * xDiff + yDiff * yDiff); }
[ "Get distance between geographical coordinates\n@param point1 Point1\n@param point2 Point2\n@return Distance (double)" ]
[ "Puts as many of the given bytes as possible into this buffer.\n\n@return number of bytes actually put into this buffer (0 if the buffer is full)", "Fetch the given image from the web.\n\n@param request The request\n@param transformer The transformer\n@return The image", "Return true only if the node has the named annotation\n@param node - the AST Node to check\n@param name - the name of the annotation\n@return true only if the node has the named annotation", "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance", "Tells you if the expression is the false expression, either literal or constant.\n@param expression\nexpression\n@return\nas described", "Process a compilation unit already parsed and build.", "Get the replication partitions list for the given partition.\n\n@param index Partition id for which we are generating the preference list\n@return The List of partitionId where this partition is replicated.", "Check invariant.\n\n@param browser The browser.\n@return Whether the condition is satisfied or <code>false</code> when it it isn't or a\n{@link CrawljaxException} occurs.", "Retrieve a finish date time in the form required by Phoenix.\n\n@param value Date instance\n@return formatted date time" ]
public static URI makeWmsGetLayerRequest( final WmsLayerParam wmsLayerParam, final URI commonURI, final Dimension imageSize, final double dpi, final double angle, final ReferencedEnvelope bounds) throws FactoryException, URISyntaxException, IOException { if (commonURI == null || commonURI.getAuthority() == null) { throw new RuntimeException("Invalid WMS URI: " + commonURI); } String[] authority = commonURI.getAuthority().split(":"); URL url; if (authority.length == 2) { url = new URL( commonURI.getScheme(), authority[0], Integer.parseInt(authority[1]), commonURI.getPath() ); } else { url = new URL( commonURI.getScheme(), authority[0], commonURI.getPath() ); } final GetMapRequest getMapRequest = WmsVersion.lookup(wmsLayerParam.version). getGetMapRequest(url); getMapRequest.setBBox(bounds); getMapRequest.setDimensions(imageSize.width, imageSize.height); getMapRequest.setFormat(wmsLayerParam.imageFormat); getMapRequest.setSRS(CRS.lookupIdentifier(bounds.getCoordinateReferenceSystem(), false)); for (int i = wmsLayerParam.layers.length - 1; i > -1; i--) { String layer = wmsLayerParam.layers[i]; String style = ""; if (wmsLayerParam.styles != null) { style = wmsLayerParam.styles[i]; } getMapRequest.addLayer(layer, style); } final URI getMapUri = getMapRequest.getFinalURL().toURI(); Multimap<String, String> extraParams = HashMultimap.create(); if (commonURI.getQuery() != null) { for (NameValuePair pair: URLEncodedUtils.parse(commonURI, Charset.forName("UTF-8"))) { extraParams.put(pair.getName(), pair.getValue()); } } extraParams.putAll(wmsLayerParam.getMergeableParams()); extraParams.putAll(wmsLayerParam.getCustomParams()); if (wmsLayerParam.serverType != null) { addDpiParam(extraParams, (int) Math.round(dpi), wmsLayerParam.serverType); if (wmsLayerParam.useNativeAngle && angle != 0.0) { addAngleParam(extraParams, angle, wmsLayerParam.serverType); } } return URIUtils.addParams(getMapUri, extraParams, Collections.emptySet()); }
[ "Make a WMS getLayer request and return the image read from the server.\n\n@param wmsLayerParam the wms request parameters\n@param commonURI the uri to use for the requests (excepting parameters of course.)\n@param imageSize the size of the image to request\n@param dpi the dpi of the image to request\n@param angle the angle of the image to request\n@param bounds the area and projection of the request on the world." ]
[ "Creates the operation to add a resource.\n\n@param address the address of the operation to add.\n@param properties the properties to set for the resource.\n\n@return the operation.", "Calculates the size based constraint width and height if present, otherwise from children sizes.", "Reads a duration value. This method relies on the fact that\nthe units of the duration have been specified elsewhere.\n\n@param value Duration value\n@param type type of units of the duration\n@return Duration instance", "Computes the null space using QR decomposition. This is much faster than using SVD\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space", "Starts a background thread which calls the controller every\ncheck_interval milliseconds. Returns immediately, leaving the\nbackground thread running.", "Writes a resource's cost rate tables.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "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.", "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}", "Returns formatted version of Iban.\n\n@return A string representing formatted Iban for printing." ]
public static Type getDeclaredBeanType(Class<?> clazz) { Type[] actualTypeArguments = Reflections.getActualTypeArguments(clazz); if (actualTypeArguments.length == 1) { return actualTypeArguments[0]; } else { return null; } }
[ "Gets the declared bean type\n\n@return The bean type" ]
[ "This method permanently removes a webhook. Note that it may be possible\nto receive a request that was already in flight after deleting the\nwebhook, but no further requests will be issued.\n\n@param webhook The webhook to delete.\n@return Request object", "This method retrieves an int value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of an integer\n@return int value", "A convenience method for creating an immutable sorted map.\n\n@param self a SortedMap\n@return an immutable SortedMap\n@see java.util.Collections#unmodifiableSortedMap(java.util.SortedMap)\n@since 1.0", "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", "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "Retrieve a single value property.\n\n@param method method definition\n@param object target object\n@param map parameter values", "Creates a text box with the given parent and text node assigned.\n@param contblock The parent node (and the containing block in the same time)\n@param n The corresponding text node in the DOM tree.\n@return The new text box.", "Construct an InterestRateSwapLegProductDescriptor from a node in a FIPXML file.\n\n@param leg The node containing the leg.\n@param forwardCurveName Forward curve name form outside the node.\n@param discountCurveName Discount curve name form outside the node.\n@param daycountConvention Daycount convention from outside the node.\n@return Descriptor of the swap leg.", "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix" ]
public String getName() { GVRSceneObject owner = getOwnerObject(); String name = ""; if (owner != null) { name = owner.getName(); if (name == null) return ""; } return name; }
[ "Returns the name of the bone.\n\n@return the name" ]
[ "Parse the XML for a collection as returned by getInfo call.\n\n@param collectionElement\n@return", "Set default interval for sending events to monitoring service. DefaultInterval will be used by\nscheduler.\n\n@param defaultInterval the new default interval", "combines all the lists in a collection to a single list", "Checks attributes for rejection\n\n@param rejectedAttributes gathers information about failed attributes\n@param attributeValue the attribute value", "Stops the HTTP service gracefully and release all resources.\n\n@param quietPeriod the quiet period as described in the documentation of {@link EventExecutorGroup}\n@param timeout the maximum amount of time to wait until the executor is\n{@linkplain EventExecutorGroup#shutdown()}\nregardless if a task was submitted during the quiet period\n@param unit the unit of {@code quietPeriod} and {@code timeout}\n@throws Exception if there is exception raised during shutdown.", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Perform the given work with a Jedis connection from the given pool.\nWraps any thrown checked exceptions in a RuntimeException.\n\n@param pool the resource pool\n@param work the work to perform\n@param <V> the result type\n@return the result of the given work", "Validates the inputed color value.\n@param colorvalue the value of the color\n@return true if the inputed color value is valid", "Creates a window visually showing the matrix's state. Block means an element is zero.\nRed positive and blue negative. More intense the color larger the element's absolute value\nis.\n\n@param A A matrix.\n@param title Name of the window." ]
public GridCoverage2D call() { try { BufferedImage coverageImage = this.tiledLayer.createBufferedImage( this.tilePreparationInfo.getImageWidth(), this.tilePreparationInfo.getImageHeight()); Graphics2D graphics = coverageImage.createGraphics(); try { for (SingleTilePreparationInfo tileInfo: this.tilePreparationInfo.getSingleTiles()) { final TileTask task; if (tileInfo.getTileRequest() != null) { task = new SingleTileLoaderTask( tileInfo.getTileRequest(), this.errorImage, tileInfo.getTileIndexX(), tileInfo.getTileIndexY(), this.failOnError, this.registry, this.context); } else { task = new PlaceHolderImageTask(this.tiledLayer.getMissingTileImage(), tileInfo.getTileIndexX(), tileInfo.getTileIndexY()); } Tile tile = task.call(); if (tile.getImage() != null) { graphics.drawImage(tile.getImage(), tile.getxIndex() * this.tiledLayer.getTileSize().width, tile.getyIndex() * this.tiledLayer.getTileSize().height, null); } } } finally { graphics.dispose(); } GridCoverageFactory factory = CoverageFactoryFinder.getGridCoverageFactory(null); GeneralEnvelope gridEnvelope = new GeneralEnvelope(this.tilePreparationInfo.getMapProjection()); gridEnvelope.setEnvelope(this.tilePreparationInfo.getGridCoverageOrigin().x, this.tilePreparationInfo.getGridCoverageOrigin().y, this.tilePreparationInfo.getGridCoverageMaxX(), this.tilePreparationInfo.getGridCoverageMaxY()); return factory.create(this.tiledLayer.createCommonUrl(), coverageImage, gridEnvelope, null, null, null); } catch (Exception e) { throw ExceptionUtils.getRuntimeException(e); } }
[ "Call the Coverage Task." ]
[ "The primary run loop of the kqueue event processor.", "This method retrieves an integer of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required integer data", "Initialize the domain registry.\n\n@param registry the domain registry", "Return the containing group if it contains exactly one element.\n\n@since 2.14", "Use this API to update lbsipparameters.", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient", "Assembles an avro format string that contains multiple fat client configs\nfrom map of store to properties\n\n@param mapStoreToProps A map of store names to their properties\n@return Avro string that contains multiple store configs", "Return true if the expression is a constructor call on any of the named classes, with any number of parameters.\n@param expression - the expression\n@param classNames - the possible List of class names\n@return as described", "Use this API to fetch a vpnglobal_vpnnexthopserver_binding resources." ]
public int getFixedDataOffset(FieldType type) { int result; FieldItem item = m_map.get(type); if (item != null) { result = item.getFixedDataOffset(); } else { result = -1; } return result; }
[ "Retrieve the fixed data offset for a specific field.\n\n@param type field type\n@return offset" ]
[ "Throws an IllegalArgumentException when the given value is not true.\n@param value the value to assert if true\n@param message the message to display if the value is false\n@return the value", "Calculate the value of a swaption assuming the Black'76 model.\n\n@param forwardSwaprate The forward (spot)\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity.\n@param optionStrike The option strike.\n@param swapAnnuity The swap annuity corresponding to the underlying swap.\n@return Returns the value of a Swaption under the Black'76 model", "Set the given column name to the given value.\n\n@param name The column name to set.\n@param value the value to set.\n@return {@code this}\n@throws IllegalArgumentException if a column name does not exist in the table.", "Put a value if and only if the map has not changed since the given snapshot was taken. If the put fails,\nit is the caller's responsibility to retry.\n\n@param instance the instance with the map field\n@param key the key\n@param value the value\n@param snapshot the map snapshot\n@return {@code false} if the snapshot is out of date and we could not update, {@code true} if the put succeeded", "Returns the first number available, starting at portNumberStartingPoint that's not already in the reservedPorts\nlist.\n\n@param portNumberStartingPoint first port number to start from.\n@param reservedPorts the ports already reserved.\n@return first number available not in the given list, starting at the given parameter.", "Returns a projection object for specifying the fields to retrieve during a specific find operation.", "Use this API to update cachecontentgroup.", "Add a console pipeline to the Redwood handler tree,\nprinting to stderr.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this", "Write file creation record.\n\n@throws IOException" ]
public static List<DbModule> getAllSubmodules(final DbModule module) { final List<DbModule> submodules = new ArrayList<DbModule>(); submodules.addAll(module.getSubmodules()); for(final DbModule submodule: module.getSubmodules()){ submodules.addAll(getAllSubmodules(submodule)); } return submodules; }
[ "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>" ]
[ "This returns all profiles associated with a server name\n\n@param serverName server Name\n@return profile UUID\n@throws Exception exception", "Use this API to fetch vpnvserver_vpnsessionpolicy_binding resources of given name .", "Does the headset the device is docked into have a dedicated home key\n@return", "Append Join for SQL92 Syntax", "Use this API to fetch appfwprofile resource of given name .", "Constructs a new ClientBuilder for building a CloudantClient instance to connect to the\nCloudant server with the specified account.\n\n@param account the Cloudant account name to connect to e.g. \"example\" is the account name\nfor the \"example.cloudant.com\" endpoint\n@return a new ClientBuilder for the account\n@throws IllegalArgumentException if the specified account name forms an invalid endpoint URL", "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", "Return all scripts of a given type\n\n@param type integer value of type\n@return Array of scripts of the given type", "Use this API to fetch tmtrafficpolicy_lbvserver_binding resources of given name ." ]
public Changes parameter(String name, String value) { this.databaseHelper.query(name, value); return this; }
[ "Add a custom query parameter to the _changes request. Useful for specifying extra parameters\nto a filter function for example.\n\n@param name the name of the query parameter\n@param value the value of the query parameter\n@return this Changes instance\n@since 2.5.0" ]
[ "Use this API to fetch all the nssimpleacl resources that are configured on netscaler.", "when divisionPrefixLen is null, isAutoSubnets has no effect", "Determines if this value is the default value for the given field type.\n\n@param type field type\n@param value value\n@return true if the value is not default", "Returns the mode in the Collection. If the Collection has multiple modes, this method picks one\narbitrarily.", "Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions", "Returns the portion of the field name after the last dot, as field names\nmay actually be paths.", "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "Adds the download button.\n\n@param view layout which displays the log file", "Post the specified photo to a blog.\n\n@param photo\nThe photo metadata\n@param blogId\nThe blog ID\n@throws FlickrException" ]
@Override public void invert(DMatrixRBlock A_inv) { int M = Math.min(QR.numRows,QR.numCols); if( A_inv.numRows != M || A_inv.numCols != M ) throw new IllegalArgumentException("A_inv must be square an have dimension "+M); // Solve for A^-1 // Q*R*A^-1 = I // Apply householder reflectors to the identity matrix // y = Q^T*I = Q^T MatrixOps_DDRB.setIdentity(A_inv); decomposer.applyQTran(A_inv); // Solve using upper triangular R matrix // R*A^-1 = y // A^-1 = R^-1*y TriangularSolver_DDRB.solve(QR.blockLength,true, new DSubmatrixD1(QR,0,M,0,M),new DSubmatrixD1(A_inv),false); }
[ "Invert by solving for against an identity matrix.\n\n@param A_inv Where the inverted matrix saved. Modified." ]
[ "Returns a raw handle to the SQLite database connection. Do not close!\n@param context A context, which is used to (when needed) set up a connection to the database\n@return The single, unique connection to the database, as is (also) used by our Cupboard instance", "Make sure we don't attempt to recover inline; if the parser\nsuccessfully recovers, it won't throw an exception.", "Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler.", "Get an image using the specified URL suffix.\n\n@deprecated\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException", "Returns a list of all the eigenvalues", "Concat a List into a CSV String.\n@param list list to concat\n@return csv string", "Send a master changed announcement to all registered master listeners.\n\n@param update the message announcing the new tempo master", "Sets the underlying connect timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#connectTimeout(long, TimeUnit)", "Creates a field map for assignments.\n\n@param props props data" ]
public void fireTaskReadEvent(Task task) { if (m_projectListeners != null) { for (ProjectListener listener : m_projectListeners) { listener.taskRead(task); } } }
[ "This method is called to alert project listeners to the fact that\na task has been read from a project file.\n\n@param task task instance" ]
[ "Given a string which is either the name of a predefined tab configuration or a configuration string, returns\nthe corresponding tab configuration.\n\n@param configStr a configuration string or predefined configuration name\n\n@return the gallery tab configuration", "Excludes Vertices that are of the provided type.", "Copy values from the inserted config to this config. Note that if properties has not been explicitly set,\nthe defaults will apply.", "running in App Engine", "Gets the numeric codes. Setting it to -1 search for currencies that have no numeric code.\n\n@return the query for chaining.", "This method reads a six byte long from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Use to generate a file based on generator node.", "Sets a single element of this vector. Elements 0, 1, and 2 correspond to\nx, y, and z.\n\n@param i\nelement index\n@param value\nelement value\n@return element value throws ArrayIndexOutOfBoundsException if i is not\nin the range 0 to 2.", "Use this API to fetch rnat6_nsip6_binding resources of given name ." ]
public RedwoodConfiguration captureStdout(){ tasks.add(new Runnable() { public void run() { Redwood.captureSystemStreams(true, false); } }); return this; }
[ "Capture stdout and route them through Redwood\n@return this" ]
[ "This function returns the first external IP address encountered\n\n@return IP address or null\n@throws Exception", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Log original incoming request\n\n@param requestType\n@param request\n@param history", "Serializes this RuleSet in an XML document.\n\n@param destination The writer to which the XML document shall be written.", "Finish initialization of the configuration.", "Calcs the bonding size of given mesh.\n\n@param mesh Mesh to calc its bouding size.\n@return The bounding size for x, y and z axis.", "Use this API to add autoscaleprofile resources.", "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.", "Retrieve the \"complete through\" date.\n\n@return complete through date" ]
static ChangeEvent<BsonDocument> changeEventForLocalReplace( final MongoNamespace namespace, final BsonValue documentId, final BsonDocument document, final boolean writePending ) { return new ChangeEvent<>( new BsonDocument(), OperationType.REPLACE, document, namespace, new BsonDocument("_id", documentId), null, writePending); }
[ "Generates a change event for a local replacement 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@param document the replacement document.\n@return a change event for a local replacement of a document in the given namespace referring\nto the given document _id." ]
[ "from IsoFields in ThreeTen-Backport", "Return the number of rows affected.", "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value", "Returns the value of an option, or the default if the value is null or the key is not part of the map.\n@param configOptions the map with the config options.\n@param optionKey the option to get the value of\n@param defaultValue the default value to return if the option is not set.\n@return the value of an option, or the default if the value is null or the key is not part of the map.", "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", "Accessor method used to retrieve an Rate object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Sets the current switch index based on object name.\nThis function finds the child of the scene object\nthis component is attached to and sets the switch\nindex to reference it so this is the object that\nwill be displayed.\n\nIf it is out of range, none of the children will be shown.\n@param childName name of child to select\n@see GVRSceneObject#getChildByIndex(int)", "Merges this with the list of sections to produce the smallest array of sequential block subnets, going from smallest to largest\n\n@param sections the sections to merge with this\n@return", "Formats a logging event to a writer.\n\n@param event\nlogging event to be formatted." ]
public BoxFolder.Info createFolder(String name) { JsonObject parent = new JsonObject(); parent.add("id", this.getID()); JsonObject newFolder = new JsonObject(); newFolder.add("name", name); newFolder.add("parent", parent); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), CREATE_FOLDER_URL.build(this.getAPI().getBaseURL()), "POST"); request.setBody(newFolder.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); BoxFolder createdFolder = new BoxFolder(this.getAPI(), responseJSON.get("id").asString()); return createdFolder.new Info(responseJSON); }
[ "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info." ]
[ "Stops the HTTP service gracefully and release all resources.\n\n@param quietPeriod the quiet period as described in the documentation of {@link EventExecutorGroup}\n@param timeout the maximum amount of time to wait until the executor is\n{@linkplain EventExecutorGroup#shutdown()}\nregardless if a task was submitted during the quiet period\n@param unit the unit of {@code quietPeriod} and {@code timeout}\n@throws Exception if there is exception raised during shutdown.", "Use this API to fetch all the nsspparams resources that are configured on netscaler.", "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object", "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "We have received an update that invalidates the waveform preview for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no waveform preview for the associated player", "Get list of replies\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@return A reply object\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getList.html\">API Documentation</a>", "Creates a householder reflection.\n\n(I-gamma*v*v')*x = tau*e1\n\n<p>NOTE: Same as cs_house in csparse</p>\n@param x (Input) Vector x (Output) Vector v. Modified.\n@param xStart First index in X that is to be processed\n@param xEnd Last + 1 index in x that is to be processed.\n@param gamma (Output) Storage for computed gamma\n@return variable tau", "Run a task periodically and indefinitely.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@return An interface that lets you query the status; cancel; or\nreschedule the event.", "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" ]
protected TextBox createTextBox(BlockBox contblock, Text n) { TextBox text = new TextBox(n, (Graphics2D) contblock.getGraphics().create(), contblock.getVisualContext().create()); text.setOrder(next_order++); text.setContainingBlockBox(contblock); text.setClipBlock(contblock); text.setViewport(viewport); text.setBase(baseurl); return text; }
[ "Creates a text box with the given parent and text node assigned.\n@param contblock The parent node (and the containing block in the same time)\n@param n The corresponding text node in the DOM tree.\n@return The new text box." ]
[ "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", "Bessel function of the second kind, of order 0.\n\n@param x Value.\n@return Y0 value.", "Calculates the maximum text height which is possible based on the used Paint and its settings.\n\n@param _Paint Paint object which will be used to display a text.\n@param _Text The text which should be measured. If null, a default text is chosen, which\nhas a maximum possible height\n@return Maximum text height in px.", "Pauses the playback of a sound.", "Returns the list of store defs as a map\n\n@param storeDefs\n@return", "Returns a builder that is initialized with the given path.\n@param path the path to initialize with\n@return the new {@code UriComponentsBuilder}", "Revert all the working copy changes.", "Starts data synchronization in a background thread.", "Invokes the given configurator, obtaining the correct global context type via the datastore configuration type of\nthe current datastore provider.\n\n@param configurator the configurator to invoke\n@return a context object containing the options set via the given configurator" ]
private BigInteger getTaskCalendarID(Task mpx) { BigInteger result = null; ProjectCalendar cal = mpx.getCalendar(); if (cal != null) { result = NumberHelper.getBigInteger(cal.getUniqueID()); } else { result = NULL_CALENDAR_ID; } return (result); }
[ "This method retrieves the UID for a calendar associated with a task.\n\n@param mpx MPX Task instance\n@return calendar UID" ]
[ "Converts a duration to duration time units.\n\n@param value duration value\n@return duration time units", "Initialize current thread's JobContext using specified copy\n@param origin the original job context", "Searches the variables layers, top to bottom, for the iterable having all of it's items of the given type. Return\nnull if not found.", "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", "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange", "Logs the time taken by this rule and adds this to the total time taken for this phase", "Use this API to fetch a vpnglobal_vpntrafficpolicy_binding resources.", "Returns a TypeConverter for a given class.\n\n@param cls The class for which the TypeConverter should be fetched.", "Sets any application-specific custom fields. The values\nare presented to the application and the iPhone doesn't\ndisplay them automatically.\n\nThis can be used to pass specific values (urls, ids, etc) to\nthe application in addition to the notification message\nitself.\n\n@param key the custom field name\n@param value the custom field value\n@return this" ]
private static void filter(String filename, String filtername) throws Exception { ProjectFile project = new UniversalProjectReader().read(filename); Filter filter = project.getFilters().getFilterByName(filtername); if (filter == null) { displayAvailableFilters(project); } else { System.out.println(filter); System.out.println(); if (filter.isTaskFilter()) { processTaskFilter(project, filter); } else { processResourceFilter(project, filter); } } }
[ "This method opens the named project, applies the named filter\nand displays the filtered list of tasks or resources. If an\ninvalid filter name is supplied, a list of valid filter names\nis shown.\n\n@param filename input file name\n@param filtername input filter name" ]
[ "Returns the compact records for all attachments on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object", "Overrides the superclass implementation to allow the AttributeDefinition for each field in the\nobject to in turn resolve that field.\n\n{@inheritDoc}", "Propagates the names of all facets to each single facet.", "Construct an InterestRateSwapProductDescriptor from a node in a FpML file.\n\n@param trade The node containing the swap.\n@return Descriptor of the swap.", "Reconstructs a number that is represented by more than one byte in a network packet in big-endian order.\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", "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "Use this API to fetch appfwprofile_denyurl_binding resources of given name .", "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)", "Start the initialization.\n\n@param id\n@param manager\n@param bootstrap\n@return the initialized Weld container" ]
private List<String> getCommandLines(File file) { List<String> lines = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new FileReader(file))) { String line = reader.readLine(); while (line != null) { lines.add(line); line = reader.readLine(); } } catch (Throwable e) { throw new IllegalStateException("Failed to process file " + file.getAbsolutePath(), e); } return lines; }
[ "read the file as a list of text lines" ]
[ "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token", "Constructs a relative path between this path and a given path.\n\n<p> Relativization is the inverse of {@link #getAbsolutePath(Path) resolution}.\nThis method attempts to construct a {@link #isAbsolute relative} path\nthat when {@link #getAbsolutePath(Path) resolved} against this path, yields a\npath that locates the same file as the given path. For example, on UNIX,\nif this path is {@code \"/a/b\"} and the given path is {@code \"/a/b/c/d\"}\nthen the resulting relative path would be {@code \"c/d\"}.\nBoth paths must be absolute and and either this path or the given path must be a\n{@link #startsWith(Path) prefix} of the other.\n\n@param other\nthe path to relativize against this path\n\n@return the resulting relative path or null if neither of the given paths is a prefix of the other\n\n@throws IllegalArgumentException\nif this path and {@code other} are not both absolute or relative", "Parses the given XML doc to extract the properties and return them into a java.util.Properties.\n@param doc to parse\n@param sectionName which section to extract\n@return Properties map", "This method writes data for a single resource to a Planner file.\n\n@param mpxjResource MPXJ Resource instance\n@param plannerResource Planner Resource instance", "Reads data sets from a passed reader.\n\n@param reader\ndata sets source\n@param recover\nmax number of errors reading process will try to recover from.\nSet to 0 to fail immediately\n@throws IOException\nif reader can't read underlying stream\n@throws InvalidDataSetException\nif invalid/undefined data set is encountered", "Returns the configured fields of the current field configuration.\n\n@return the configured fields of the current field configuration", "Get the minutes difference", "Exit the Application", "Calculate the units percent complete.\n\n@param row task data\n@return percent complete" ]
@RequestMapping(value = "api/servergroup", method = RequestMethod.POST) public @ResponseBody ServerGroup createServerGroup(Model model, @RequestParam(value = "name") String name, @RequestParam(value = "profileId", required = false) Integer profileId, @RequestParam(value = "profileIdentifier", required = false) String profileIdentifier) throws Exception { if (profileId == null && profileIdentifier == null) { throw new Exception("profileId required"); } if (profileId == null) { profileId = ProfileService.getInstance().getIdFromName(profileIdentifier); } int groupId = ServerRedirectService.getInstance().addServerGroup(name, profileId); return ServerRedirectService.getInstance().getServerGroup(groupId, profileId); }
[ "Create a new server group for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
[ "Returns true if the string matches the name of a function", "Exchanges the initial fully-formed messages which establishes the transaction context for queries to\nthe dbserver.\n\n@throws IOException if there is a problem during the exchange", "Compares the StoreVersionManager's internal state with the content on the file-system\nof the rootDir provided at construction time.\n\nTODO: If the StoreVersionManager supports non-RO stores in the future,\nwe should move some of the ReadOnlyUtils functions below to another Utils class.", "Read phases and activities from the Phoenix file to create the task hierarchy.\n\n@param phoenixProject all project data\n@param storepoint storepoint containing current project data", "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.", "Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the case where a hierarchical task\nstructure has been created programmatically in MPXJ.", "Sets all padding for all cells in the row to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining", "Initialize; cached threadpool is safe as it is releasing resources automatically if idle", "Uses current variable assignments and info in an NWiseActionTag to expand on an n wise combinatorial set\n\n@param action an NWiseAction Action\n@param possibleStateList a current list of possible states produced so far from expanding a model state\n@return every input possible state expanded on an n wise combinatorial set defined by that input possible state" ]
private void readZookeeperConfig() { try (CuratorFramework curator = CuratorUtil.newAppCurator(config)) { curator.start(); accumuloInstance = new String(curator.getData().forPath(ZookeeperPath.CONFIG_ACCUMULO_INSTANCE_NAME), StandardCharsets.UTF_8); accumuloInstanceID = new String(curator.getData().forPath(ZookeeperPath.CONFIG_ACCUMULO_INSTANCE_ID), StandardCharsets.UTF_8); fluoApplicationID = new String(curator.getData().forPath(ZookeeperPath.CONFIG_FLUO_APPLICATION_ID), StandardCharsets.UTF_8); table = new String(curator.getData().forPath(ZookeeperPath.CONFIG_ACCUMULO_TABLE), StandardCharsets.UTF_8); observers = ObserverUtil.load(curator); config = FluoAdminImpl.mergeZookeeperConfig(config); // make sure not to include config passed to env, only want config from zookeeper appConfig = config.getAppConfiguration(); } catch (Exception e) { throw new IllegalStateException(e); } }
[ "Read configuration from zookeeper" ]
[ "Get the pickers date.", "convert Date to XMLGregorianCalendar.\n\n@param date the date\n@return the xML gregorian calendar", "Rollback to the specified push version\n\n@param rollbackToDir The version directory to rollback to", "Unlock all edited resources.", "Creates a resource key defined as a child of key defined by enumeration value.\n@see #key(Enum)\n@see #child(String)\n@param enumValue the enumeration value defining the parent key\n@param key the child id\n@return the resource key", "Starts given docker machine.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n@param machineName\nto be started.", "Callback for constant meta class update change", "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally.", "Deserialize an `AppDescriptor` from byte array\n\n@param bytes\nthe byte array\n@return\nan `AppDescriptor` instance" ]
public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Connection con, Map<String, Object> _parameters) throws JRException { log.info("generating JasperPrint"); JasperPrint jp; if (_parameters == null) _parameters = new HashMap<String, Object>(); visitSubreports(dr, _parameters); compileOrLoadSubreports(dr, _parameters, "r"); DynamicJasperDesign jd = generateJasperDesign(dr); Map<String, Object> params = new HashMap<String, Object>(); if (!_parameters.isEmpty()) { registerParams(jd, _parameters); params.putAll(_parameters); } registerEntities(jd, dr, layoutManager); layoutManager.applyLayout(jd, dr); JRPropertiesUtil.getInstance(DefaultJasperReportsContext.getInstance()).setProperty(JRCompiler.COMPILER_PREFIX, DJCompilerFactory.getCompilerClassName()); //JRProperties.setProperty(JRCompiler.COMPILER_PREFIX, DJCompilerFactory.getCompilerClassName()); JasperReport jr = JasperCompileManager.compileReport(jd); params.putAll(jd.getParametersWithValues()); jp = JasperFillManager.fillReport(jr, params, con); return jp; }
[ "For running queries embebed in the report design\n\n@param dr\n@param layoutManager\n@param con\n@param _parameters\n@return\n@throws JRException" ]
[ "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "URL-encodes a given string using ISO-8859-1, which may work better with web pages and umlauts compared to UTF-8.\nNo UnsupportedEncodingException to handle as it is dealt with in this method.", "Returns the shared prefix of these columns. Null otherwise.\n\n@param associationKeyColumns the columns sharing a prefix\n@return the shared prefix of these columns. {@code null} otherwise.", "Gets all of the column names for a result meta data\n\n@param rsmd Resultset metadata\n@return Array of column names\n@throws Exception exception", "Removes the specified object in index from the array.\n\n@param index The index to remove.", "This method opens the named project, applies the named filter\nand displays the filtered list of tasks or resources. If an\ninvalid filter name is supplied, a list of valid filter names\nis shown.\n\n@param filename input file name\n@param filtername input filter name", "Gets or creates the a resource for the sub-deployment on the parent deployments resource.\n\n@param deploymentName the name of the deployment\n@param parent the parent deployment used to find the parent resource\n\n@return the already registered resource or a newly created resource", "Mutate the gradient.\n@param amount the amount in the range zero to one" ]
protected int getDonorId(StoreRoutingPlan currentSRP, StoreRoutingPlan finalSRP, int stealerZoneId, int stealerNodeId, int stealerPartitionId) { int stealerZoneNAry = finalSRP.getZoneNaryForNodesPartition(stealerZoneId, stealerNodeId, stealerPartitionId); int donorZoneId; if(currentSRP.zoneNAryExists(stealerZoneId, stealerZoneNAry, stealerPartitionId)) { // Steal from local n-ary (since one exists). donorZoneId = stealerZoneId; } else { // Steal from zone that hosts primary partition Id. int currentMasterNodeId = currentSRP.getNodeIdForPartitionId(stealerPartitionId); donorZoneId = currentCluster.getNodeById(currentMasterNodeId).getZoneId(); } return currentSRP.getNodeIdForZoneNary(donorZoneId, stealerZoneNAry, stealerPartitionId); }
[ "Decide which donor node to steal from. This is a policy implementation.\nI.e., in the future, additional policies could be considered. At that\ntime, this method should be overridden in a sub-class, or a policy object\nought to implement this algorithm.\n\nCurrent policy:\n\n1) If possible, a stealer node that is the zone n-ary in the finalCluster\nsteals from the zone n-ary in the currentCluster in the same zone.\n\n2) If there are no partition-stores to steal in the same zone (i.e., this\nis the \"zone expansion\" use case), then a differnt policy must be used.\nThe stealer node that is the zone n-ary in the finalCluster determines\nwhich pre-existing zone in the currentCluster hosts the primary partition\nid for the partition-store. The stealer then steals the zone n-ary from\nthat pre-existing zone.\n\nThis policy avoids unnecessary cross-zone moves and distributes the load\nof cross-zone moves approximately-uniformly across pre-existing zones.\n\nOther policies to consider:\n\n- For zone expansion, steal all partition-stores from one specific\npre-existing zone.\n\n- Replace heuristic to approximately uniformly distribute load among\nexisting zones to something more concrete (i.e. track steals from each\npre-existing zone and forcibly balance them).\n\n- Select a single donor for all replicas in a new zone. This will require\ndonor-based rebalancing to be run (at least for this specific part of the\nplan). This would reduce the number of donor-side scans of data. (But\nstill send replication factor copies over the WAN.) This would require\napparatus in the RebalanceController to work.\n\n- Set up some sort of chain-replication in which a single stealer in the\nnew zone steals some replica from a pre-exising zone, and then other\nn-aries in the new zone steal from the single cross-zone stealer in the\nzone. This would require apparatus in the RebalanceController to work.\n\n@param currentSRP\n@param finalSRP\n@param stealerZoneId\n@param stealerNodeId\n@param stealerPartitionId\n@return the node id of the donor for this partition Id." ]
[ "Send a beat announcement to all registered master listeners.\n\n@param beat the beat sent by the tempo master", "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.", "Use this API to fetch lbvserver_filterpolicy_binding resources of given name .", "Visit an exported package of the current module.\n\n@param packaze the qualified name of the exported package.\n@param access the access flag of the exported package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can access to\nthe public classes of the exported package or\n<tt>null</tt>.", "Read a field into our table configuration for field=value line.", "Read an optional boolean value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the boolean value in the provided JSON object.\n@return the boolean or null if reading the boolean fails.", "Close a transaction and do all the cleanup associated with it.", "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "Transmits the SerialMessage to a single Z-Wave Node.\nSets the transmission options as well.\n@param serialMessage the Serial message to send." ]
public void addForeignKeyField(String newField) { if (m_ForeignKeyFields == null) { m_ForeignKeyFields = new Vector(); } m_ForeignKeyFields.add(newField); }
[ "add a foreign key field" ]
[ "This method is called recursively to write a task and its child tasks\nto the JSON file.\n\n@param task task to write", "Writes the specified double to the stream, formatted according to the format specified in the constructor.\n\n@param d the double to write to the stream\n@return this writer\n@throws IOException if an I/O error occurs", "Get the PropertyDescriptor for aClass and aPropertyName", "Use this API to fetch vpnvserver_auditnslogpolicy_binding resources of given name .", "Gets the filename from a path or URL.\n@param path or url.\n@return the file name.", "Clears all properties of specified entity.\n\n@param entity to clear.", "Unregister the mbean with the given name from the platform mbean server\n\n@param name The name of the mbean to unregister", "Given a String the method uses Regex to check if the String only contains punctuation characters\n\n@param s a String to check using regex\n@return true if the String is valid", "Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\nmust be called first." ]
public void setIssueTrackerInfo(BuildInfoBuilder builder) { Issues issues = new Issues(); issues.setAggregateBuildIssues(aggregateBuildIssues); issues.setAggregationBuildStatus(aggregationBuildStatus); issues.setTracker(new IssueTracker("JIRA", issueTrackerVersion)); Set<Issue> affectedIssuesSet = IssuesTrackerUtils.getAffectedIssuesSet(affectedIssues); if (!affectedIssuesSet.isEmpty()) { issues.setAffectedIssues(affectedIssuesSet); } builder.issues(issues); }
[ "Apply issues tracker info to a build info builder (used by generic tasks and maven2 which doesn't use the extractor" ]
[ "Generate a placeholder for an unknown type.\n\n@param type expected type\n@param fieldID field ID\n@return placeholder", "Use this API to expire cachecontentgroup.", "Use this API to fetch dnsview_binding resource of given name .", "Use this API to fetch aaapreauthenticationpolicy_aaaglobal_binding resources of given name .", "Deletes a specific, existing project status update.\n\nReturns an empty data record.\n\n@param projectStatus The project status update to delete.\n@return Request object", "Initializes custom prefix for all junit4 properties. This must be consistent\nacross all junit4 invocations if done from the same classpath. Use only when REALLY needed.", "The way calendars are stored in an MSPDI file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects", "Check if position is in inner circle\n\n@param x x position\n@param y y position\n@return true if in inner circle, false otherwise", "Start the rendering of the scalebar." ]
static Resource getOrCreateSubDeployment(final String deploymentName, final DeploymentUnit parent) { final Resource root = parent.getAttachment(DEPLOYMENT_RESOURCE); return getOrCreate(root, PathElement.pathElement(SUBDEPLOYMENT, deploymentName)); }
[ "Gets or creates the a resource for the sub-deployment on the parent deployments resource.\n\n@param deploymentName the name of the deployment\n@param parent the parent deployment used to find the parent resource\n\n@return the already registered resource or a newly created resource" ]
[ "Gets all tags that are \"prime\" tags.", "Merges two lists together.\n\n@param one first list\n@param two second list\n@return merged lists", "Select the specific vertex and fragment shader to use with this material.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the material properties only.\nIt will ignore the mesh attributes and all lights.\n\n@param context\nGVRContext\n@param material\nmaterial to use with the shader\n@return ID of vertex/fragment shader set", "Sets the ssh priv key relative path wtih passphrase.\n\n@param privKeyRelativePath the priv key relative path\n@param passphrase the passphrase\n@return the parallel task builder", "Removes a child task.\n\n@param child child task instance", "Sets the left and right frame margin.\n@param frameLeft margin\n@param frameRight margin\n@return this to allow chaining", "Find a statement group by its property id, without checking for\nequality with the site IRI. More efficient implementation than\nthe default one.", "A map of the header key value pairs. Keys are strings and values are either list of strings or a\nstring.\n\n@param headers the header map", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar. The\ncalendar used is the \"Standard\" calendar. If this calendar does not exist,\nand exception will be thrown.\n\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)" ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher deleteFacet(String... attributes) { for (String attribute : attributes) { facetRequestCount.put(attribute, 0); facets.remove(attribute); } rebuildQueryFacets(); return this; }
[ "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining." ]
[ "Try to set specified property to given marshaller\n\n@param marshaller specified marshaller\n@param name name of property to set\n@param value value of property to set", "Sets the real offset.\n\n@param start the start\n@param end the end", "Append a Handler to a portion of the handler tree\n@param parent The parent to add the child to\n@param child The Handler to add.", "Produces all tuples of size n chosen from a list of variable names\n\n@param variables the list of variable names to make tuples of\n@param nWise the size of the desired tuples\n@return all tuples of size nWise", "Another method to force an input string into a fixed width field\nand set it on the right with the left side filled with space ' ' characters.\n\n@param input input string\n@param width required width\n@return formatted string", "Return overall per token accuracy", "Returns an array of the enabled endpoints as Integer IDs\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return Collection of endpoints\n@throws Exception exception", "Record the connection establishment time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param connEstTimeUs The number of us to wait before establishing a\nconnection", "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." ]
public void setPromoted(final boolean promoted) { this.promoted = promoted; for (final Artifact artifact : artifacts) { artifact.setPromoted(promoted); } for (final Module suModule : submodules) { suModule.setPromoted(promoted); } }
[ "Sets the promotion state.\n\n<P>INFO: This method updates automatically all the contained artifacts.\n\n@param promoted boolean" ]
[ "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods.\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@param dateRollConvention Adjustment to be applied to the all dates.\n@param businessdayCalendar Businessday calendar (holiday calendar) to be used for date roll adjustment.\n@param fixingOffsetDays Number of business days to be added to period start to get the fixing date.\n@param paymentOffsetDays Number of business days to be added to period end to get the payment date.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3", "Whether the given value generation strategy requires to read the value from the database or not.", "This method is called to format a priority.\n\n@param value priority instance\n@return formatted priority value", "Add a text symbolizer definition to the rule.\n\n@param styleJson The old style.", "Adds a function to the end of the token list\n@param function Function which is to be added\n@return The new Token created around function", "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", "Send parallel task to execution manager.\n\n@param task\nthe parallel task\n@return the batch response from manager", "Add another store destination to an existing streaming session\n\n\n@param store the name of the store to stream to" ]
private void readResources() { for (MapRow row : getTable("RTAB")) { Resource resource = m_projectFile.addResource(); setFields(RESOURCE_FIELDS, row, resource); m_eventManager.fireResourceReadEvent(resource); // TODO: Correctly handle calendar } }
[ "Read resource data from a PEP file." ]
[ "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset.", "Load the layers based on the default setup.\n\n@param jbossHome the jboss home directory\n@param productConfig the product config\n@param repoRoots the repository roots\n@return the available layers\n@throws IOException", "Use this API to add cachepolicylabel resources.", "Returns all selected values of the list box, or empty array if none.\n\n@return the selected values of the list box", "Set the color resources used in the progress animation from color resources.\nThe first color will also be the color of the bar that grows in response\nto a user swipe gesture.\n\n@param colorResIds", "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", "The way calendars are stored in an MPP14 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects", "Use this API to fetch all the callhome resources that are configured on netscaler.", "Create a JMX ObjectName\n\n@param domain The domain of the object\n@param type The type of the object\n@return An ObjectName representing the name" ]
private int indexFor(int hash) { // mix the bits to avoid bucket collisions... hash += ~(hash << 15); hash ^= (hash >>> 10); hash += (hash << 3); hash ^= (hash >>> 6); hash += ~(hash << 11); hash ^= (hash >>> 16); return hash & (table.length - 1); }
[ "Converts the given hash code into an index into the\nhash table." ]
[ "Begin writing a named list attribute.\n\n@param name attribute name", "Construct an InterestRateSwapProductDescriptor from a node in a FpML file.\n\n@param trade The node containing the swap.\n@return Descriptor of the swap.", "Get the group URL for the specified group ID\n\n@param groupId\nThe group ID\n@return The group URL\n@throws FlickrException", "Use this API to disable snmpalarm of given name.", "Gets a property with a default value.\n@param key\nThe key string.\n@param defaultValue\nThe default value.\n@return The property string.", "Creates a simple deployment description.\n\n@param name the name for the deployment\n@param serverGroups the server groups\n\n@return the deployment description", "we need to cache the address in here and not in the address section if there is a zone", "Use this API to clear nspbr6.", "Renders in LI tags, Wraps with UL tags optionally." ]
public static Collection<String> getKnownPGPSecureRingLocations() { final LinkedHashSet<String> locations = new LinkedHashSet<String>(); final String os = System.getProperty("os.name"); final boolean runOnWindows = os == null || os.toLowerCase().contains("win"); if (runOnWindows) { // The user's roaming profile on Windows, via environment final String windowsRoaming = System.getenv("APPDATA"); if (windowsRoaming != null) { locations.add(joinLocalPath(windowsRoaming, "gnupg", "secring.gpg")); } // The user's local profile on Windows, via environment final String windowsLocal = System.getenv("LOCALAPPDATA"); if (windowsLocal != null) { locations.add(joinLocalPath(windowsLocal, "gnupg", "secring.gpg")); } // The Windows installation directory final String windir = System.getProperty("WINDIR"); if (windir != null) { // Local Profile on Windows 98 and ME locations.add(joinLocalPath(windir, "Application Data", "gnupg", "secring.gpg")); } } final String home = System.getProperty("user.home"); if (home != null && runOnWindows) { // These are for various flavours of Windows // if the environment variables above have failed // Roaming profile on Vista and later locations.add(joinLocalPath(home, "AppData", "Roaming", "gnupg", "secring.gpg")); // Local profile on Vista and later locations.add(joinLocalPath(home, "AppData", "Local", "gnupg", "secring.gpg")); // Roaming profile on 2000 and XP locations.add(joinLocalPath(home, "Application Data", "gnupg", "secring.gpg")); // Local profile on 2000 and XP locations.add(joinLocalPath(home, "Local Settings", "Application Data", "gnupg", "secring.gpg")); } // *nix, including OS X if (home != null) { locations.add(joinLocalPath(home, ".gnupg", "secring.gpg")); } return locations; }
[ "Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the PGP secure keyring if it was found,\nnull otherwise" ]
[ "Get the currently selected opacity.\n\n@return The int value of the currently selected opacity.", "Determines if still WRITING or COMPLETE.\n\n@param itemTag mad libs style string to insert into progress message.\n@return state of stream request handler", "Obtain plugin information\n\n@return", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific date attributes to the default values\nfor the new locale.\n\n@param locale new locale", "Record a prepare operation timeout.\n\n@param failedOperation the prepared operation", "Find the current active layout.\n\n@param phoenixProject phoenix project data\n@return current active layout", "Given a directory, determine if it contains a multi-file database whose format\nwe can process.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Retrieve the field location for a specific field.\n\n@param type field type\n@return field location", "Use this API to fetch all the systementitydata resources that are configured on netscaler.\nThis uses systementitydata_args which is a way to provide additional arguments while fetching the resources." ]
public static base_response unset(nitro_service client, sslparameter resource, String[] args) throws Exception{ sslparameter unsetresource = new sslparameter(); return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of sslparameter resource.\nProperties that need to be unset are specified in args array." ]
[ "Attach a component to this scene object.\n\nEach scene object has a list of components that may\nbe attached to it. Only one component of a particular type\ncan be attached. Components are retrieved based on their type.\n\n@return true if component is attached, false if a component of that class is already attached.\n@param component component to attach.\n@see GVRSceneObject#detachComponent(long)\n@see GVRSceneObject#getComponent(long)", "Returns a new client id for the profileIdentifier\n\n@param model\n@param profileIdentifier\n@return json with a new client_id\n@throws Exception", "A final cluster ought to be a super set of current cluster. I.e.,\nexisting node IDs ought to map to same server, but partition layout can\nhave changed and there may exist new nodes.\n\n@param currentCluster\n@param finalCluster", "Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation", "Assigns one variable to one value\n\n@param action an Assign Action\n@param possibleStateList a current list of possible states produced so far from expanding a model state\n\n@return the same list, with every possible state augmented with an assigned variable, defined by action", "persist decorator and than continue to children without touching the model", "Set trimmed value.\n\n@param t Trimmed value.", "Cleans the object key.\n\n@param name Name of the object key\n@return The {@link ValidationResult} object containing the object,\nand the error code(if any)", "Retrieves all Metadata Cascade Policies on a folder.\n\n@param fields optional fields to retrieve for cascade policies.\n@return the Iterable of Box Metadata Cascade Policies in your enterprise." ]
public boolean isObjectsFieldValueDefault(Object object) throws SQLException { Object fieldValue = extractJavaFieldValue(object); return isFieldValueDefault(fieldValue); }
[ "Return whether or not the data object has a default value passed for this field of this type." ]
[ "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance", "Remove a bean from the context, calling the destruction callback if any.\n\n@param name bean name\n@return previous value", "Ensure that a tool object is valid for creation. The API requires certain fields to be filled out.\nThrows an IllegalArgumentException if the conditions are not met.\n@param tool The external tool object we are trying to create", "Adds the specified list of objects at the end of the array.\n\n@param collection The objects to add at the end of the array.", "Determine if the exception is relative based on the recurrence type integer value.\n\n@param value integer value\n@return true if the recurrence is relative", "Magnitude of complex number.\n\n@param z Complex number.\n@return Magnitude of complex number.", "Tells you if the expression is true, which can be true or Boolean.TRUE.\n@param expression\nexpression\n@return\nas described", "Parse a string representation of a Boolean value.\nXER files sometimes have \"N\" and \"Y\" to indicate boolean\n\n@param value string representation\n@return Boolean value", "Add the operation at the end of Stage MODEL if this operation has not already been registered.\n\nThis operation should be added if any of the following occur: -\n- The authorization configuration is removed from a security realm.\n- The rbac provider is changed to rbac.\n- A role is removed.\n- An include is removed from a role.\n- A management interface is removed.\n\nNote: This list only includes actions that could invalidate the configuration, actions that would not invalidate the\nconfiguration do not need this operation registering. e.g. Adding a role, if the configuration was already valid this\ncould not invalidate it.\n\n@param context - The OperationContext to use to register the step." ]
public boolean isIPv4Compatible() { return getSegment(0).isZero() && getSegment(1).isZero() && getSegment(2).isZero() && getSegment(3).isZero() && getSegment(4).isZero() && getSegment(5).isZero(); }
[ "Whether the address is IPv4-compatible\n\n@see java.net.Inet6Address#isIPv4CompatibleAddress()" ]
[ "Generate random velocities for every particle. The direction is obtained by assuming\nthe position of a particle as a vector. This normalised vector is scaled by\nthe speed range.\n\n@return", "This method retrieves the next token and returns a constant representing\nthe type of token found.\n\n@return token type value", "Use this API to fetch all the dnsview resources that are configured on netscaler.", "Helper function to return the minimum size of the index space to be passed to the reduction given the input and\noutput tensors", "Convert a field value to something suitable to be stored in the database.", "Returns a set that contains all the unique entries of the given iterator in the order of their appearance.\nThe result set is a copy of the iterator with stable order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a set with the unique entries of the given iterator. Never <code>null</code>.", "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "This method displays the resource assignments for each resource. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a resource-by-resource basis.\n\n@param file MPX file", "Restores the dropout descriptor to a previously saved-off state" ]
public GeoShapeMapper transform(GeoTransformation... transformations) { if (this.transformations == null) { this.transformations = Arrays.asList(transformations); } else { this.transformations.addAll(Arrays.asList(transformations)); } return this; }
[ "Sets the transformations to be applied to the shape before indexing it.\n\n@param transformations the sequence of transformations\n@return this with the specified sequence of transformations" ]
[ "This produces a string with no compressed segments and all segments of full length,\nwhich is 3 characters for IPv4 segments.", "Check that an array only contains elements that are not null.\n@param values, can't be null\n@return", "This is a method to stream slops to \"slop\" store when a node is detected\nfaulty in a streaming session\n\n@param key -- original key\n@param value -- original value\n@param storeName -- the store for which we are registering the slop\n@param failedNodeId -- the faulty node ID for which we register a slop\n@throws IOException", "set ViewPager scroller to change animation duration when sliding", "1.5 and on, 2.0 and on, 3.0 and on.", "Read a single outline code field extended attribute.\n\n@param entityID parent entity\n@param row field data", "Use this API to fetch all the filterhtmlinjectionparameter resources that are configured on netscaler.", "Given a field node, checks if we are calling a private field from an inner class.", "Returns the real value object." ]
private static int[] getErrorCorrection(int[] codewords, int ecclen) { ReedSolomon rs = new ReedSolomon(); rs.init_gf(0x43); rs.init_code(ecclen, 1); rs.encode(codewords.length, codewords); int[] results = new int[ecclen]; for (int i = 0; i < ecclen; i++) { results[i] = rs.getResult(results.length - 1 - i); } return results; }
[ "Returns the error correction codewords for the specified data codewords.\n\n@param codewords the codewords that we need error correction codewords for\n@param ecclen the number of error correction codewords needed\n@return the error correction codewords for the specified data codewords" ]
[ "Sends a user a password reset email for the given email.\n\n@param email the email of the user.\n@return A {@link Task} that completes when the reqest request completes/fails.", "Puts a single byte if the buffer is not yet full.\n\n@return true if the byte was put, or false if the buffer is full", "Try to open a file at the given position.", "Before cluster management operations, i.e. remember and disable quota\nenforcement settings", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Use this API to add cacheselector resources.", "Retrieves the amount of working time represented by\na calendar exception.\n\n@param exception calendar exception\n@return length of time in milliseconds", "Retrieve a finish date time in the form required by Phoenix.\n\n@param value Date instance\n@return formatted date time", "Returns the x-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the x coordinate" ]
public static void addIndex(DBCollection collection, String field, boolean asc, boolean background) { int dir = (asc) ? 1 : -1; collection.createIndex(new BasicDBObject(field, dir), new BasicDBObject("background", background)); }
[ "Add an index on the given collection and field\n\n@param collection the collection to use for the index\n@param field the field to use for the index\n@param asc the sorting direction. <code>true</code> to sort ascending; <code>false</code> to sort descending\n@param background iff <code>true</code> the index is created in the background" ]
[ "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token", "Throws an IllegalArgumentException when the given value is not true.\n@param value the value to assert if true\n@param message the message to display if the value is false\n@return the value", "Returns the bundle descriptor for the bundle with the provided base name.\n@param cms {@link CmsObject} used for searching.\n@param basename the bundle base name, for which the descriptor is searched.\n@return the bundle descriptor, or <code>null</code> if it does not exist or searching fails.", "Read a project from a ConceptDraw PROJECT file.\n\n@param project ConceptDraw PROJECT project", "Restore authentications from persisted state.\n\n@param savedAuthorization saved authorizations", "The primary run loop of the event processor.", "Validates given external observer method.\n\n@param observerMethod the given observer method\n@param beanManager\n@param originalObserverMethod observer method replaced by given observer method (this parameter is optional)", "Remove a connection from all keys.\n\n@param connection\nthe connection", "Upgrades a read transaction to a write transaction, executes the work then downgrades to a read transaction\nagain.\n\n@since 2.4\n@noreference" ]
public Character getCharacter(int field) { Character result; if ((field < m_fields.length) && (m_fields[field].length() != 0)) { result = Character.valueOf(m_fields[field].charAt(0)); } else { result = null; } return (result); }
[ "Accessor method used to retrieve a char representing the\ncontents of an individual field. If the field does not exist in the\nrecord, the default character is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
[ "sorts are a bit more awkward and need a helper...", "This method is called when double quotes are found as part of\na value. The quotes are escaped by adding a second quote character\nand the entire value is quoted.\n\n@param value text containing quote characters\n@return escaped and quoted text", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Parses a String comprised of 0 or more comma-delimited key=value pairs.\n\n@param s the string to parse\n@return the Map of parsed key value pairs", "Compress a directory into a zip file\n\n@param dir Directory\n@param zipFile ZIP file to create\n@throws IOException I/O Error", "Sums up the square of each element in the matrix. This is equivalent to the\nFrobenius norm squared.\n\n@param m Matrix.\n@return Sum of elements squared.", "Calling EventProducerInterceptor in case of logging faults.\n\n@param exchange\nthe message exchange\n@param reqFid\nthe FlowId\n\n@throws Fault\nthe fault", "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream", "Detects if the current browser is a Sony Mylo device.\n@return detection of a Sony Mylo device" ]
public static List<? extends Expression> getMethodArguments(ASTNode methodCall) { if (methodCall instanceof ConstructorCallExpression) { return extractExpressions(((ConstructorCallExpression) methodCall).getArguments()); } else if (methodCall instanceof MethodCallExpression) { return extractExpressions(((MethodCallExpression) methodCall).getArguments()); } else if (methodCall instanceof StaticMethodCallExpression) { return extractExpressions(((StaticMethodCallExpression) methodCall).getArguments()); } else if (respondsTo(methodCall, "getArguments")) { throw new RuntimeException(); // TODO: remove, should never happen } return new ArrayList<Expression>(); }
[ "Return the List of Arguments for the specified MethodCallExpression or a ConstructorCallExpression.\nThe returned List contains either ConstantExpression or MapEntryExpression objects.\n@param methodCall - the AST MethodCallExpression or ConstructorCalLExpression\n@return the List of argument objects" ]
[ "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client", "Use this API to clear Interface.", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Given the current cluster and a zone id that needs to be dropped, this\nmethod will remove all partitions from the zone that is being dropped and\nmove it to the existing zones. The partitions are moved intelligently so\nas not to avoid any data movement in the existing zones.\n\nThis is achieved by moving the partitions to nodes in the surviving zones\nthat is zone-nry to that partition in the surviving zone.\n\n@param currentCluster Current cluster metadata\n@return Returns an interim cluster with empty partition lists on the\nnodes from the zone being dropped", "Creates a list of placeholders for use in a PreparedStatement\n\n@param length number of placeholders\n@return String of placeholders, seperated by comma", "Resolve an operation transformer entry.\n\n@param address the address\n@param operationName the operation name\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the transformer entry", "Configures a text field to look like a filter box for a table.\n\n@param searchBox the text field to configure", "Processes the template for all procedure arguments of the current procedure.\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\"", "Prints text to output stream, replacing parameter start and end\nplaceholders\n\n@param text the String to print" ]
public static base_responses update(nitro_service client, clusterinstance resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { clusterinstance updateresources[] = new clusterinstance[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new clusterinstance(); updateresources[i].clid = resources[i].clid; updateresources[i].deadinterval = resources[i].deadinterval; updateresources[i].hellointerval = resources[i].hellointerval; updateresources[i].preemption = resources[i].preemption; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update clusterinstance resources." ]
[ "Use this API to fetch all the rsskeytype resources that are configured on netscaler.", "Use this API to fetch the statistics of all protocolip_stats resources that are configured on netscaler.", "Computes the p=1 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm.", "create a consumer\n\n@param zookeeperConfig connect config of zookeeper; ex: 127.0.0.1:2181/jafka\n@param topic the topic to be watched\n@param groupId grouping the consumer clients\n@param listener message listener\n@return the real consumer", "Clear all beans and call the destruction callback.", "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", "Searches the variables layers, top to bottom, for the iterable having all of it's items of the given type. Return\nnull if not found.", "Return overall per token accuracy", "Performs a remote service method invocation. This method is called by\ngenerated proxy classes.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a {@link Request} object that can be used to track the request" ]
okhttp3.Response get(String url, Map<String, Object> params) throws RequestException, LocalOperationException { String fullUrl = getFullUrl(url); okhttp3.Request request = new okhttp3.Request.Builder() .url(addUrlParams(fullUrl, toPayload(params))) .addHeader("Transloadit-Client", version) .build(); try { return httpClient.newCall(request).execute(); } catch (IOException e) { throw new RequestException(e); } }
[ "Makes http GET request.\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException" ]
[ "Casts a ray into the scene graph, and returns the objects it intersects.\n\nThe ray is defined by its origin {@code [ox, oy, oz]} and its direction\n{@code [dx, dy, dz]}.\n\n<p>\nThe ray origin may be [0, 0, 0] and the direction components should be\nnormalized from -1 to 1: Note that the y direction runs from -1 at the\nbottom to 1 at the top. To construct a picking ray originating at the\nuser's head and pointing into the scene along the camera lookat vector,\npass in 0, 0, 0 for the origin and 0, 0, -1 for the direction.\n\n<p>\nThis method is thread safe because it guarantees that only\none thread at a time is doing a ray cast into a particular scene graph,\nand it extracts the hit data during within its synchronized block. You\ncan then examine the return list without worrying about another thread\ncorrupting your hit data.\n<p>\nDepending on the type of collider, that the hit location may not be exactly\nwhere the ray would intersect the scene object itself. Rather, it is\nwhere the ray intersects the collision geometry associated with the collider.\n\n@param scene\nThe {@link GVRScene} with all the objects to be tested.\n\n@param ox\nThe x coordinate of the ray origin.\n\n@param oy\nThe y coordinate of the ray origin.\n\n@param oz\nThe z coordinate of the ray origin.\n\n@param dx\nThe x vector of the ray direction.\n\n@param dy\nThe y vector of the ray direction.\n\n@param dz\nThe z vector of the ray direction.\n@return A list of {@link GVRPickedObject}, sorted by distance from the\ncamera rig. Each {@link GVRPickedObject} contains the scene object\nwhich owns the {@link GVRCollider} along with the hit\nlocation and distance from the camera.\n\n@since 1.6.6", "Do not call directly.\n@deprecated", "Use this API to fetch all the csparameter resources that are configured on netscaler.", "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment", "Adds all rows from the file specified, using the provided parser.\n\n@param file File to read the data from.\n@param fileParser Parser to be used to parse the file.\n@return {@code this}", "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.", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Verifies that the connection is still alive. Returns true if it\nis, false if it is not. If the connection is broken we try\nclosing everything, too, so that the caller need only open a new\nconnection.", "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited" ]
public void deleteArtifact(final String gavc, final String user, final String password) throws GrapesCommunicationException, AuthenticationException{ final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactPath(gavc)); final ClientResponse response = resource.delete(ClientResponse.class); client.destroy(); if(ClientResponse.Status.OK.getStatusCode() != response.getStatus()){ final String message = "Failed to DELETE artifact " + gavc; if(LOG.isErrorEnabled()) { LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, message, response.getStatus())); } throw new GrapesCommunicationException(message, response.getStatus()); } }
[ "Delete an artifact in the Grapes server\n\n@param gavc\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException" ]
[ "detect if WS Addressing feature already enabled.\n\n@param provider the interceptor provider\n@param bus the bus\n@return true, if successful", "Shut down the input manager.\n\nAfter this call, GearVRf will not be able to access IO devices.", "Use this API to unset the properties of inatparam resource.\nProperties that need to be unset are specified in args array.", "Initialize that Foundation Logging library.", "Perform construction with custom thread pool size.", "Helper method to add cue list entries from a parsed ANLZ cue tag\n\n@param entries the list of entries being accumulated\n@param tag the tag whose entries are to be added", "Polls from the URL provided.\n\n@param url the URL to poll from.\n@return the raw response.", "A specific, existing custom field can be updated by making a PUT request on the URL for that custom field. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged\n\nWhen using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the custom field.\n\nA custom field's `type` cannot be updated.\n\nAn enum custom field's `enum_options` cannot be updated with this endpoint. Instead see \"Work With Enum Options\" for information on how to update `enum_options`.\n\nReturns the complete updated custom field record.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Delete old jobs.\n\n@param checkTimeThreshold threshold for last check time\n@return the number of jobs deleted" ]
private long getTime(Date start, Date end) { long total = 0; if (start != null && end != null) { Date startTime = DateHelper.getCanonicalTime(start); Date endTime = DateHelper.getCanonicalTime(end); Date startDay = DateHelper.getDayStartDate(start); Date finishDay = DateHelper.getDayStartDate(end); // // Handle the case where the end of the range is at midnight - // this will show up as the start and end days not matching // if (startDay.getTime() != finishDay.getTime()) { endTime = DateHelper.addDays(endTime, 1); } total = (endTime.getTime() - startTime.getTime()); } return (total); }
[ "Retrieves the amount of time between two date time values. Note that\nthese values are converted into canonical values to remove the\ndate component.\n\n@param start start time\n@param end end time\n@return length of time" ]
[ "Start a managed server.\n\n@param factory the boot command factory", "Performs a streaming request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return an {@link EventStream} that will provide response events.", "Utility function that constructs AdminClient.\n\n@param url URL pointing to the bootstrap node\n@return Newly constructed AdminClient", "Main method of this class related to RecyclerView widget. This method is the responsible of\ncreate a new Renderer instance with all the needed information to implement the rendering.\nThis method will validate all the attributes passed in the builder constructor and will create\na RendererViewHolder instance.\n\nThis method is used with RecyclerView because the view recycling mechanism is implemented out\nof this class and we only have to return new RendererViewHolder instances.\n\n@return ready to use RendererViewHolder instance.", "provides a safe toString", "Use this API to Force clustersync.", "Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present", "do delete given object. Should be used by all intern classes to delete\nobjects.", "Ensures that the foreign keys required by the given collection are present in the element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the foreign keys" ]
private int[] getCompressIndexAndCount(CompressOptions options, boolean createMixed) { if(options != null) { CompressionChoiceOptions rangeSelection = options.rangeSelection; RangeList compressibleSegs = rangeSelection.compressHost() ? getZeroRangeSegments() : getZeroSegments(); int maxIndex = -1, maxCount = 0; int segmentCount = getSegmentCount(); boolean compressMixed = createMixed && options.compressMixedOptions.compressMixed(this); boolean preferHost = (rangeSelection == CompressOptions.CompressionChoiceOptions.HOST_PREFERRED); boolean preferMixed = createMixed && (rangeSelection == CompressOptions.CompressionChoiceOptions.MIXED_PREFERRED); for(int i = compressibleSegs.size() - 1; i >= 0 ; i--) { Range range = compressibleSegs.getRange(i); int index = range.index; int count = range.length; if(createMixed) { //so here we shorten the range to exclude the mixed part if necessary int mixedIndex = IPv6Address.MIXED_ORIGINAL_SEGMENT_COUNT - addressSegmentIndex; if(!compressMixed || index > mixedIndex || index + count < segmentCount) { //range does not include entire mixed part. We never compress only part of a mixed part. //the compressible range must stop at the mixed part count = Math.min(count, mixedIndex - index); } } //select this range if is the longest if(count > 0 && count >= maxCount && (options.compressSingle || count > 1)) { maxIndex = index; maxCount = count; } if(preferHost && isPrefixed() && ((index + count) * IPv6Address.BITS_PER_SEGMENT) > getNetworkPrefixLength()) { //this range contains the host //Since we are going backwards, this means we select as the maximum any zero segment that includes the host break; } if(preferMixed && index + count >= segmentCount) { //this range contains the mixed section //Since we are going backwards, this means we select to compress the mixed segment break; } } if(maxIndex >= 0) { return new int[] {maxIndex, maxCount}; } } return null; }
[ "Chooses a single segment to be compressed, or null if no segment could be chosen.\n@param options\n@param createMixed\n@return" ]
[ "Checks if the required option exists.\n\n@param options OptionSet to checked\n@param opt Required option to check\n@throws VoldemortException", "Creates a tar directory entry with defaults parameters.\n@param dirName the directory name\n@return dir entry with reasonable defaults", "caching is not supported for this method", "This method extracts predecessor data from a Planner file.\n\n@param plannerTask Task data", "Creates an Executor that is based on daemon threads.\nThis allows the program to quit without explicitly\ncalling shutdown on the pool\n\n@return the newly created single-threaded Executor", "Add a mapping of properties between two beans\n\n@param beanToBeanMapping", "Lift a Java Func4 to a Scala Function4\n\n@param f the function to lift\n\n@returns the Scala function", "Obtains a local date in International Fixed calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the International Fixed local date, not null\n@throws DateTimeException if unable to create the date", "Joins with another IPv4 segment to produce a IPv6 segment.\n\n@param creator\n@param low\n@return" ]
public AutomatonInstance doClone() { AutomatonInstance clone = new AutomatonInstance(this.automatonEng, this.current, this.instanceId, this.safeGuard); clone.failed = this.failed; clone.transitionCount = this.transitionCount; clone.failCount = this.failCount; clone.iterateCount = this.iterateCount; clone.backtrackCount = this.backtrackCount; clone.trace = new LinkedList<>(); for(StateExploration se:this.trace) { clone.trace.add(se.doClone()); } return clone; }
[ "Creates a clone of the current automatonEng instance for\niteration alternative purposes.\n@return" ]
[ "Returns the number of consecutive trailing one or zero bits.\nIf network is true, returns the number of consecutive trailing zero bits.\nOtherwise, returns the number of consecutive trailing one bits.\n\n@param network\n@return", "This method is used to associate a child task with the current\ntask instance. It has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be updated once all of the task data has been read.\n\n@param child child task", "Gets an overrideID for a class name, method name\n\n@param className name of class\n@param methodName name of method\n@return override ID of method", "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", "The connection timeout for making a connection to Twitter.", "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", "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@param offset the optional time offset for this alias", "Creates a new RgbaColor from the specified HSL components.\n\n<p>\n<i>Implementation based on <a\nhref=\"http://en.wikipedia.org/wiki/HSL_and_HSV\">wikipedia</a>\nand <a\nhref=\"http://www.w3.org/TR/css3-color/#hsl-color\">w3c</a></i>\n\n@param H\nHue [0,360)\n@param S\nSaturation [0,100]\n@param L\nLightness [0,100]", "Writes a buffered some-value restriction.\n\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param bnode\nblank node representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples" ]
private void populateMetaData() throws SQLException { m_meta.clear(); ResultSetMetaData meta = m_rs.getMetaData(); int columnCount = meta.getColumnCount() + 1; for (int loop = 1; loop < columnCount; loop++) { String name = meta.getColumnName(loop); Integer type = Integer.valueOf(meta.getColumnType(loop)); m_meta.put(name, type); } }
[ "Retrieves basic meta data from the result set.\n\n@throws SQLException" ]
[ "Mark for creation all newly introduced dependent references.\nMark for deletion all nullified dependent references.\n@return the list of created objects", "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results.", "Specify the proxy and the authentication parameters to be used\nto establish the connections to Apple Servers.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n@param proxy the proxy object to be used to create connections\n@param proxyUsername a String object representing the username of the proxy server\n@param proxyPassword a String object representing the password of the proxy server\n@return this", "Call batch tasks inside of a connection which may, or may not, have been \"saved\".", "Verifies if the new value is different from the field's old value. It's\nuseful, for example, in NoSQL databases that replicates data between\nservers. This verification prevents to mark a field as modified and to be\nreplicated needlessly.\n\n@param field\nthe field that we are checking before to be modified\n@param value\nthe new value\n@return true if the new and the old values are different and the value\nwas changed.", "Resolve a resource transformer for a given address.\n\n@param address the address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the resource transformer", "Use this API to add appfwjsoncontenttype resources.", "Used to add working hours to the calendar. Note that the MPX file\ndefinition allows a maximum of 7 calendar hours records to be added to\na single calendar.\n\n@param day day number\n@return new ProjectCalendarHours instance", "this method will be invoked after methodToBeInvoked is invoked" ]
private void addMembers(Collection memberNames, HashMap members, XClass type, String tagName, String paramName, String paramValue) throws XDocletException { if (!type.isInterface() && (type.getFields() != null)) { XField field; for (Iterator it = type.getFields().iterator(); it.hasNext(); ) { field = (XField)it.next(); if (!field.isFinal() && !field.isStatic() && !field.isTransient()) { if (checkTagAndParam(field.getDoc(), tagName, paramName, paramValue)) { // already processed ? if (!members.containsKey(field.getName())) { memberNames.add(field.getName()); members.put(field.getName(), field); } } } } } if (type.getMethods() != null) { XMethod method; String propertyName; for (Iterator it = type.getMethods().iterator(); it.hasNext(); ) { method = (XMethod)it.next(); if (!method.isConstructor() && !method.isNative() && !method.isStatic()) { if (checkTagAndParam(method.getDoc(), tagName, paramName, paramValue)) { if (MethodTagsHandler.isGetterMethod(method) || MethodTagsHandler.isSetterMethod(method)) { propertyName = MethodTagsHandler.getPropertyNameFor(method); if (!members.containsKey(propertyName)) { memberNames.add(propertyName); members.put(propertyName, method); } } } } } } }
[ "Retrieves the members of the given type.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param paramName The feature to be added to the Members attribute\n@param paramValue The feature to be added to the Members attribute\n@throws XDocletException If an error occurs" ]
[ "Collect the URIs of resources, that are referenced by the given description.\n@return the list of referenced URIs. Never <code>null</code>.", "Registers an image to the images cache, so that it can be captured by the build-info proxy.\n\n@param imageId\n@param imageTag\n@param targetRepo\n@param buildInfoId\n@throws IOException", "Use this API to update nsip6.", "Initialize the version properties map from the gradle.properties file, and the additional properties from the\ngradle.properties file.", "Access the customInfo of a message using this accessor. The CustomInfo\nmap will be automatically created and stored in the event if it is not yet present\n\n@param message\n@return", "Ensures that the given collection descriptor has a valid element-class-ref property.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If element-class-ref could not be determined or is invalid", "Writes references that have been added recently. Auxiliary triples that\nare generated for serializing snaks in references will be written right\nafterwards. This will also trigger any other auxiliary triples to be\nwritten that the snak converter object may have buffered.\n\n@throws RDFHandlerException\nif there was a problem writing the restrictions", "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent.", "Wait and retry." ]
public void logAttributeWarning(PathAddress address, String message, Set<String> attributes) { messageQueue.add(new AttributeLogEntry(address, null, message, attributes)); }
[ "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" ]
[ "Merges individual days together into time spans where the\nsame work is undertaken each day.\n\n@param list assignment data", "Process a module or bundle root.\n\n@param root the root\n@param layers the processed layers\n@param setter the bundle or module path setter\n@throws IOException", "Will prompt a user the \"Add to Homescreen\" feature\n\n@param callback A callback function after the method has been executed.", "Checks the id value.\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", "overridden in ipv6 to handle zone", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key", "Restores a trashed folder to a new location with a new name.\n@param folderID the ID of the trashed folder.\n@param newName an optional new name to give the folder. This can be null to use the folder's original name.\n@param newParentID an optional new parent ID for the folder. This can be null to use the folder's original\nparent.\n@return info about the restored folder.", "Method used to write the name of the scenarios methods\n\n@param word\n@return the same word starting with lower case", "Probe the existing cluster to retrieve the current cluster xml and stores\nxml.\n\n@return Pair of Cluster and List<StoreDefinition> from current cluster." ]
@Deprecated public ClientConfig setThreadIdleTime(long threadIdleTime, TimeUnit unit) { this.threadIdleMs = unit.toMillis(threadIdleTime); return this; }
[ "The amount of time to keep an idle client thread alive\n\n@param threadIdleTime" ]
[ "Ensures that no more than maxContiguousPartitionsPerZone partitions are\ncontiguous within a single zone.\n\nMoves the necessary partitions to break up contiguous runs from each zone\nto some other random zone/node. There is some chance that such random\nmoves could result in contiguous partitions in other zones.\n\n@param nextCandidateCluster cluster metadata\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return Return updated cluster metadata.", "Returns the text content to any HTML.\n\n@param html the HTML\n\n@return the text content", "Alias accessor provided for JSON serialization only", "Update properties for a specific client id\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@param active - true false depending on if the client should be active\n@param reset - true to reset the state of a client(clears settings for all paths and disables the client)\n@return\n@throws Exception", "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.", "Gets the Symmetric Kullback-Leibler distance.\nThis metric is valid only for real and positive P and Q.\n\n@param p P vector.\n@param q Q vector.\n@return The Symmetric Kullback Leibler distance between p and q.", "Removes all elems in the given Collection that aren't accepted by the given Filter.", "Returns a compact representation of all of the stories on the task.\n\n@param task The task containing the stories to get.\n@return Request object", "Find the index of the first matching element in the list\n@param element the element value to find\n@return the index of the first matching element, or <code>-1</code> if none found" ]
private Path getTempDir() { if (this.tempDir == null) { if (this.dir != null) { this.tempDir = dir; } else { this.tempDir = getProject().getBaseDir().toPath(); } } return tempDir; }
[ "Resolve temporary folder." ]
[ "Use this API to fetch responderpolicylabel_responderpolicy_binding resources of given name .", "Function to clear all the metadata related to the given store\ndefinitions. This is needed when a put on 'stores.xml' is called, thus\nreplacing the existing state.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will handle concurrency related issues.\n\n@param storeNamesToDelete", "Creates a jrxml file\n\n@param dr\n@param layoutManager\n@param _parameters\n@param xmlEncoding (default is UTF-8 )\n@param outputStream\n@throws JRException", "Use this API to fetch all the gslbservice resources that are configured on netscaler.", "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler.", "prefetch defined relationships requires JDBC level 2.0, does not work\nwith Arrays", "Decides and returns the preferred deployment credentials to use from this builder settings and selected server\n\n@param deployerOverrider Deploy-overriding capable builder\n@param server Selected Artifactory server\n@return Preferred deployment credentials", "Provisions a new user in an enterprise with additional user information.\n@param api the API connection to be used by the created user.\n@param login the email address the user will use to login.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info.", "Add parameter to testCase\n\n@param context which can be changed" ]
@Pure public static <P1, P2, P3, RESULT> Function2<P2, P3, RESULT> curry(final Function3<? super P1, ? super P2, ? super P3, ? extends RESULT> function, final P1 argument) { if (function == null) throw new NullPointerException("function"); return new Function2<P2, P3, RESULT>() { @Override public RESULT apply(P2 p2, P3 p3) { return function.apply(argument, p2, p3); } }; }
[ "Curries a function that takes three arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes two arguments. Never <code>null</code>." ]
[ "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "returns an Array with an Identities PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Overridden method always creating a new instance\n\n@param contextual The bean to create\n@param creationalContext The creation context", "Creates the server setup, depending on the protocol flags.\n\n@return the configured server setups.", "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", "Save map to file\n@param map Map to save\n@param file File to save\n@throws IOException I/O error", "Get the features collection from a GeoJson URL.\n\n@param template the template\n@param geoJsonUrl what to parse\n@return the feature collection", "Use this API to delete cacheselector of given name.", "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" ]
public <T> List<T> query(String query, Class<T> classOfT) { InputStream instream = null; List<T> result = new ArrayList<T>(); try { Reader reader = new InputStreamReader(instream = queryForStream(query), "UTF-8"); JsonObject json = new JsonParser().parse(reader).getAsJsonObject(); if (json.has("rows")) { if (!includeDocs) { log.warning("includeDocs set to false and attempting to retrieve doc. " + "null object will be returned"); } for (JsonElement e : json.getAsJsonArray("rows")) { result.add(jsonToObject(client.getGson(), e, "doc", classOfT)); } } else { log.warning("No ungrouped result available. Use queryGroups() if grouping set"); } return result; } catch (UnsupportedEncodingException e1) { // This should never happen as every implementation of the java platform is required // to support UTF-8. throw new RuntimeException(e1); } finally { close(instream); } }
[ "Queries a Search Index and returns ungrouped results. In case the query\nused grouping, an empty list is returned\n\n@param <T> Object type T\n@param query the Lucene query to be passed to the Search index\n@param classOfT The class of type T\n@return The result of the search query as a {@code List<T> }" ]
[ "Parse request parameters and files.\n@param request\n@param response", "Copy new grayscale data to the GPU texture. This one is also safe even\nin a non-GL thread. An updateGPU request on a non-GL thread will\nbe forwarded to the GL thread and be executed before main rendering happens.\n\nBe aware that updating a texture will affect any and all\n{@linkplain GVRMaterial materials} and/or post effects that use the texture!\n@param width width of grayscale image\n@param height height of grayscale image\n@param grayscaleData A byte array containing grayscale data\n\n@since 1.6.3", "Takes a matrix and splits it into a set of row or column vectors.\n\n@param A original matrix.\n@param column If true then column vectors will be created.\n@return Set of vectors.", "Get the server redirects belonging to a server group\n\n@param profileId ID of profile\n@param serverGroupId ID of server group\n@return Collection of ServerRedirect for a server group", "Scroll to the specific position\n@param position\n@return the new current item after the scrolling processed.", "Print the lead string followed by centered formatted string. The whole\nlength of the line is 80 chars.\n\nExample:\n\n```java\nprintCenterWithLead(\" *\", \"Hello %s\", \"World\");\n```\n\nwill print something like\n\n```\n* Hello World\n```\n\nNote the above is just a demo, the exact number of whitespace might not be correct.\n\n\n@param lead\nthe lead string\n@param format\nThe string format pattern\n@param args\nThe string format arguments", "Obtain a dbserver client session that can be used to perform some task, call that task with the client,\nthen release the client.\n\n@param targetPlayer the player number whose dbserver we wish to communicate with\n@param task the activity that will be performed with exclusive access to a dbserver connection\n@param description a short description of the task being performed for error reporting if it fails,\nshould be a verb phrase like \"requesting track metadata\"\n@param <T> the type that will be returned by the task to be performed\n\n@return the value returned by the completed task\n\n@throws IOException if there is a problem communicating\n@throws Exception from the underlying {@code task}, if any", "Converts SMatrixTriplet_64 into a SMatrixCC_64.\n\n@param src Original matrix which is to be copied. Not modified.\n@param dst Destination. Will be a copy. Modified.\n@param hist Workspace. Should be at least as long as the number of columns. Can be null.", "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 CountryList getCountries(Context context) { if (mCountries != null) { return mCountries; } mCountries = new CountryList(); try { JSONArray countries = new JSONArray(getJsonFromRaw(context, R.raw.countries)); for (int i = 0; i < countries.length(); i++) { try { JSONObject country = (JSONObject) countries.get(i); mCountries.add(new Country(country.getString("name"), country.getString("iso2"), country.getInt("dialCode"))); } catch (JSONException e) { e.printStackTrace(); } } } catch (JSONException e) { e.printStackTrace(); } return mCountries; }
[ "Import CountryList from RAW resource\n\n@param context Context\n@return CountryList" ]
[ "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "Close off the connection.\n\n@throws SQLException", "Initializes the information on an available master mode.\n@throws CmsException thrown if the write permission check on the bundle descriptor fails.", "Set the week day the event should take place.\n@param dayString the day as string.", "Gets the name of the vertex attribute containing the texture\ncoordinates for the named texture.\n\n@param texName name of texture\n@return name of texture coordinate vertex attribute", "Sets the right padding character for all cells in the table.\n@param paddingRightChar new padding character, ignored if null\n@return this to allow chaining", "Send a lifecycle announcement to all registered listeners.\n\n@param logger the logger to use, so the log entry shows as belonging to the proper subclass.\n@param starting will be {@code true} if the DeviceFinder is starting, {@code false} if it is stopping.", "Creates the udpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Finds properties of datatype string on test.wikidata.org. Since the test\nsite changes all the time, we cannot hardcode a specific property here.\nInstead, we just look through all properties starting from P1 to find the\nfirst few properties of type string that have an English label. These\nproperties are used for testing in this code.\n\n@param connection\n@throws MediaWikiApiErrorException\n@throws IOException" ]
public void promote() { URL url = VERSION_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.fileID, "current"); JsonObject jsonObject = new JsonObject(); jsonObject.add("type", "file_version"); jsonObject.add("id", this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "POST"); request.setBody(jsonObject.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); this.parseJSON(JsonObject.readFrom(response.getJSON())); }
[ "Promotes this version of the file to be the latest version." ]
[ "Count some stats on what occurs in a file.", "Update the underlying buffer using the short\n\n@param number number to be stored in checksum buffer", "Transform the root bone of the pose by the given matrix.\n@param trans matrix to transform the pose by.", "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name", "Executes the given transaction within the context of a write lock.\n\n@param t The transaction to execute.", "Looks up a variable given its name. If none is found then return null.", "This method is called to alert project listeners to the fact that\na resource has been read from a project file.\n\n@param resource resource instance", "Use this API to add snmpuser resources.", "Convert a Identification to a By used in WebDriver Drivers.\n\n@return the correct By specification of the current Identification." ]
public App named(String name) { App newApp = copy(); newApp.name = name; return newApp; }
[ "Builder method for specifying the name of an app.\n@param name The name to give an app.\n@return A copy of the {@link App}" ]
[ "Parses command line arguments.\n\n@param args\nArray of arguments, like the ones provided by\n{@code void main(String[] args)}\n@param objs\nOne or more objects with annotated public fields.\n@return A {@code List} containing all unparsed arguments (i.e. arguments\nthat are no switches)\n@throws IOException\nif a parsing error occurred.\n@see CmdArgument", "Use this context as prototype for a new mutable builder. The new builder is\npre-populated with the current settings of this context instance.", "Add a point to this curveFromInterpolationPoints. The method will throw an exception if the point\nis already part of the curveFromInterpolationPoints.\n\n@param time The x<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param value The y<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param isParameter If true, then this point is served via {@link #getParameter()} and changed via {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "Read all top level tasks.", "returns true if the primary key fields are valid for delete, else false.\nPK fields are valid if each of them contains a valid non-null value\n@param cld the ClassDescriptor\n@param obj the object\n@return boolean", "Parse a version String and add the components to a properties object.\n\n@param version the version to parse", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Compares two sets of snaks, given by iterators. The method is optimised\nfor short lists of snaks, as they are typically found in claims and\nreferences.\n\n@param snaks1\n@param snaks2\n@return true if the lists are equal", "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)" ]
void writeSomeValueRestriction(String propertyUri, String rangeUri, Resource bnode) throws RDFHandlerException { this.rdfWriter.writeTripleValueObject(bnode, RdfWriter.RDF_TYPE, RdfWriter.OWL_RESTRICTION); this.rdfWriter.writeTripleUriObject(bnode, RdfWriter.OWL_ON_PROPERTY, propertyUri); this.rdfWriter.writeTripleUriObject(bnode, RdfWriter.OWL_SOME_VALUES_FROM, rangeUri); }
[ "Writes a buffered some-value restriction.\n\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param bnode\nblank node representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples" ]
[ "Creates PollingState from another polling state.\n\n@param other other polling state\n@param result the final result of the LRO\n@param <ResultT> the result that the poll operation produces\n@return the polling state", "Reads characters into a portion of an array, then replace invalid XML characters\n\n@throws IOException If an I/O error occurs\n@see ru.yandex.qatools.allure.config.AllureNamingUtils#isBadXmlCharacter(char) by space", "Retrieve all Collection attributes of a given instance\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true, loading is forced even if cld differs", "Record the resource request wait time in us\n\n@param dest Destination of the socket for which the resource was\nrequested. Will actually record if null. Otherwise will call this\non self and corresponding child with this param null.\n@param resourceRequestTimeUs The number of us to wait before getting a\nsocket", "Set the menu view from a layout resource.\n\n@param layoutResId Resource ID to be inflated.", "Sets the header of the collection component.", "Get the time zone for a specific stock or index.\nFor stocks, the exchange suffix is extracted from the stock symbol to retrieve the time zone.\n\n@param symbol stock symbol in YahooFinance\n@return time zone of the exchange on which this stock is traded", "set the specified object at index\n\n@param object The object to add at the end of the array.", "Copy all of the mappings from the specified map to this one, replacing\nany mappings with the same keys.\n\n@param in the map whose mappings are to be copied" ]
public static systemeventhistory[] get(nitro_service service, systemeventhistory_args args) throws Exception{ systemeventhistory obj = new systemeventhistory(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); systemeventhistory[] response = (systemeventhistory[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the systemeventhistory resources that are configured on netscaler.\nThis uses systemeventhistory_args which is a way to provide additional arguments while fetching the resources." ]
[ "Builds the data structures that show the effects of the plan by server group", "Creates a clone of the current automatonEng instance for\niteration alternative purposes.\n@return", "Convert a Java date into a Planner date-time string.\n\n20070222T080000Z\n\n@param value Java date\n@return Planner date-time string", "Merges the item from the resultLocaleValues into the corresponding item of the localeValues.\n@param item the item to merge\n@param localeValues the values where the item gets merged into\n@param resultLocaleValues the values where the item to merge is read from\n@return the modified localeValues with the merged item", "Connect and register at the remote domain controller.\n\n@return connection the established connection\n@throws IOException", "Closes the outbound socket binding connection.\n\n@throws IOException", "Load the properties from the resource file if one is specified", "Helper to read an optional Integer value.\n@param path The XML path of the element to read.\n@return The Integer value stored in the XML, or <code>null</code> if the value could not be read.", "Returns the filename of the resource with extension.\n\n@return Filename of the GVRAndroidResource. May return null if the\nresource is not associated with any file" ]