query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static String getPropertyUri(PropertyIdValue propertyIdValue, PropertyContext propertyContext) { switch (propertyContext) { case DIRECT: return PREFIX_PROPERTY_DIRECT + propertyIdValue.getId(); case STATEMENT: return PREFIX_PROPERTY + propertyIdValue.getId(); case VALUE_SIMPLE: return PREFIX_PROPERTY_STATEMENT + propertyIdValue.getId(); case VALUE: return PREFIX_PROPERTY_STATEMENT_VALUE + propertyIdValue.getId(); case QUALIFIER: return PREFIX_PROPERTY_QUALIFIER_VALUE + propertyIdValue.getId(); case QUALIFIER_SIMPLE: return PREFIX_PROPERTY_QUALIFIER + propertyIdValue.getId(); case REFERENCE: return PREFIX_PROPERTY_REFERENCE_VALUE + propertyIdValue.getId(); case REFERENCE_SIMPLE: return PREFIX_PROPERTY_REFERENCE + propertyIdValue.getId(); case NO_VALUE: return PREFIX_WIKIDATA_NO_VALUE + propertyIdValue.getId(); case NO_QUALIFIER_VALUE: return PREFIX_WIKIDATA_NO_QUALIFIER_VALUE + propertyIdValue.getId(); default: return null; } }
[ "Get the URI for the given property in the given context.\n\n@param propertyIdValue\nthe property id for which to create a URI\n@param propertyContext\nthe context for which the URI will be needed\n@return the URI" ]
[ "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.", "Start ssh session and obtain session.\n\n@return the session", "Creates a Bytes object by copying the value of the given String with a given charset", "Retrieves the timephased breakdown of cost.\n\n@return timephased cost", "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.", "Returns an interval representing the addition of the\ngiven interval with this one.\n@param other interval to add to this one\n@return interval sum", "Returns the complete tag record for a single tag.\n\n@param tag The tag to get.\n@return Request object", "Use this API to fetch all the gslbservice resources that are configured on netscaler.", "Validate the consistency of patches to the point we rollback.\n\n@param patchID the patch id which gets rolled back\n@param identity the installed identity\n@throws PatchingException" ]
public static Class<?> determineCommonAncestor(Class<?> clazz1, Class<?> clazz2) { if (clazz1 == null) { return clazz2; } if (clazz2 == null) { return clazz1; } if (clazz1.isAssignableFrom(clazz2)) { return clazz1; } if (clazz2.isAssignableFrom(clazz1)) { return clazz2; } Class<?> ancestor = clazz1; do { ancestor = ancestor.getSuperclass(); if (ancestor == null || Object.class.equals(ancestor)) { return null; } } while (!ancestor.isAssignableFrom(clazz2)); return ancestor; }
[ "Determine the common ancestor of the given classes, if any.\n@param clazz1 the class to introspect\n@param clazz2 the other class to introspect\n@return the common ancestor (i.e. common superclass, one interface\nextending the other), or {@code null} if none found. If any of the\ngiven classes is {@code null}, the other class will be returned.\n@since 2.0" ]
[ "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.", "Answer the primary key query to retrieve an Object\n\n@param oid the Identity of the Object to retrieve\n@return The resulting query", "Verify the given job types are all valid.\n\n@param jobTypes the given job types\n@throws IllegalArgumentException if any of the job types are invalid\n@see #checkJobType(String, Class)", "Read a list of fixed size blocks using an instance of the supplied reader class.\n\n@param readerClass reader class\n@return list of blocks", "Runs a query that returns a single int.", "Returns a new instance of the given class, using the constructor with the specified parameter types.\n\n@param target The class to instantiate\n@param types The parameter types\n@param args The arguments\n@return The instance", "Add some of the release build properties to a map.", "Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data", "Apply the necessary rotation to the transform so that it is in front of\nthe camera.\n\n@param transform The transform to modify." ]
public ParallelTaskBuilder setSshPassword(String password) { this.sshMeta.setPassword(password); this.sshMeta.setSshLoginType(SshLoginType.PASSWORD); return this; }
[ "Sets the ssh password.\n\n@param password\nthe password\n@return the parallel task builder" ]
[ "Returns true if the given dump file type contains page revisions and\nfalse if it does not. Dumps that do not contain pages are for auxiliary\ninformation such as linked sites.\n\n@param dumpContentType\nthe type of dump\n@return true if the dumpfile contains revisions\n@throws IllegalArgumentException\nif the given dump file type is not known", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Use this API to fetch systemsession resources of given names .", "Populates data in this Options from the character stream.\n@param in The Reader\n@throws IOException If there is a problem reading data", "Returns the Set of entities recognized by this Classifier.\n\n@return The Set of entities recognized by this Classifier.", "Determines whether this table has a foreignkey of the given name.\n\n@param name The name of the foreignkey\n@return <code>true</code> if there is a foreignkey of that name", "Sets the provided filters.\n@param filters a map \"column id -> filter\".", "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump", "Returns the expected name of a workspace for a given suffix\n@param suffix\n@return" ]
public static <T> String listToString(List<T> list, final boolean justValue) { return listToString(list, justValue, null); }
[ "Returns the sentence as a string with a space between words.\nDesigned to work robustly, even if the elements stored in the\n'Sentence' are not of type Label.\n\nThis one uses the default separators for any word type that uses\nseparators, such as TaggedWord.\n\n@param justValue If <code>true</code> and the elements are of type\n<code>Label</code>, return just the\n<code>value()</code> of the <code>Label</code> of each word;\notherwise,\ncall the <code>toString()</code> method on each item.\n@return The sentence in String form" ]
[ "Create a forward curve from forwards given by a LIBORMonteCarloModel.\n\n@param name name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a forward curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "returns an array containing values for all the Objects attribute\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Return the number of ignored or assumption-ignored tests.", "Write a calendar.\n\n@param record calendar instance\n@throws IOException", "A specific, existing workspace can be updated by making a PUT request on\nthe URL for that workspace. Only the fields provided in the data block\nwill be updated; any unspecified fields will remain unchanged.\n\nCurrently the only field that can be modified for a workspace is its `name`.\n\nReturns the complete, updated workspace record.\n\n@param workspace The workspace to update.\n@return Request object", "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.", "Read FTS file data from the configured source and return a populated ProjectFile instance.\n\n@return ProjectFile instance", "Throws an IllegalArgumentException when the given value is not false.\n@param value the value to assert if false\n@param message the message to display if the value is false\n@return the value", "Keep a cache of items files associated with classification in order to improve performance." ]
private void readUDFTypes(FieldContainer mpxj, List<UDFAssignmentType> udfs) { for (UDFAssignmentType udf : udfs) { FieldType fieldType = m_fieldTypeMap.get(Integer.valueOf(udf.getTypeObjectId())); if (fieldType != null) { mpxj.set(fieldType, getUdfValue(udf)); } } }
[ "Process UDFs for a specific object.\n\n@param mpxj field container\n@param udfs UDF values" ]
[ "Creates the project used to import module resources and sets it on the CmsObject.\n\n@param cms the CmsObject to set the project on\n@param module the module\n@return the created project\n@throws CmsException if something goes wrong", "Returns the total count of the specified event\n@param event The event for which you want to get the total count\n@return Total count in int", "Must be called before any other functions. Declares and sets up internal data structures.\n\n@param numSamples Number of samples that will be processed.\n@param sampleSize Number of elements in each sample.", "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", "Process the graphical indicator data.", "helper method to set the TranslucentStatusFlag\n\n@param on", "Transposes a block matrix.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified.", "Send the message with the given attributes and the given body using the specified SMTP settings\n\n@param to Destination address(es)\n@param from Sender address\n@param subject Message subject\n@param body Message content. May either be a MimeMultipart or another body that java mail recognizes\n@param contentType MIME content type of body\n@param serverSetup Server settings to use for connecting to the SMTP server", "Get User application properties\nGet application properties of a user\n@param userId User Id (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body" ]
public String getRelativePath() { final StringBuilder builder = new StringBuilder(); for(final String p : path) { builder.append(p).append("/"); } builder.append(getName()); return builder.toString(); }
[ "Get the relative path.\n\n@return the relative path" ]
[ "Use this API to fetch all the nd6ravariables resources that are configured on netscaler.", "This method is called to format a task type.\n\n@param value task type value\n@return formatted task type", "Processes the template for all table definitions in the torque model.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "This is a temporary measure until we have a type-safe solution for\nretrieving serializers from a SerializerFactory. It avoids warnings all\nover the codebase while making it easy to verify who calls it.", "Specifies the object id associated with a user assigned managed service identity\nresource that should be used to retrieve the access token.\n\n@param objectId Object ID of the identity to use when authenticating to Azure AD.\n@return MSICredentials", "Get the root build which triggered the current build. The build root is considered to be the one furthest one\naway from the current build which has the isPassIdentifiedDownstream active, if no parent build exists, check\nthat the current build needs an upstream identifier, if it does return it.\n\n@param currentBuild The current build.\n@return The root build with isPassIdentifiedDownstream active. Null if no upstream or non is found.", "Get the axis along the orientation\n@return", "Isn't there a method for this in GeoTools?\n\n@param crs\nCRS string in the form of 'EPSG:<srid>'.\n@return SRID as integer.", "Returns all known Java installations\n\n@return a map from the version strings to their respective paths of the Java installations." ]
protected View postDeclineView() { return new TopLevelWindowRedirect() { @Override protected String getRedirectUrl(Map<String, ?> model) { return postDeclineUrl; } }; }
[ "View that redirects the top level window to the URL defined in postDeclineUrl property after user declines to authorize application.\nMay be overridden for custom views, particularly in the case where the post-decline view should be rendered in-canvas.\n@return a view to display after a user declines authoriation. Defaults as a redirect to postDeclineUrl" ]
[ "Use this API to add clusternodegroup resources.", "Obtain instance of the SQL Service\n\n@return instance of SQLService\n@throws Exception exception", "Process a compilation unit already parsed and build.", "Delete the proxy history for the active profile\n\n@throws Exception exception", "Convert an array of column definitions into a map keyed by column name.\n\n@param columns array of column definitions\n@return map of column definitions", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Reads the CSS and JavaScript files from the JAR file and writes them to\nthe output directory.\n@param outputDirectory Where to put the resources.\n@throws IOException If the resources can't be read or written.", "Unlinks a set of dependencies from this task.\n\n@param task The task to remove dependencies from.\n@return Request object", "It should be called when the picker is hidden" ]
public static String constructUrl(final HttpServerExchange exchange, final String path) { final HeaderMap headers = exchange.getRequestHeaders(); String host = headers.getFirst(HOST); String protocol = exchange.getConnection().getSslSessionInfo() != null ? "https" : "http"; return protocol + "://" + host + path; }
[ "Based on the current request represented by the HttpExchange construct a complete URL for the supplied path.\n\n@param exchange - The current HttpExchange\n@param path - The path to include in the constructed URL\n@return The constructed URL" ]
[ "Removes a tag from the resource.\n@param key the key of the tag to remove\n@return the next stage of the definition/update", "Create a Css Selector Transform", "Print classes that were parts of relationships, but not parsed by javadoc", "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", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "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", "Sets the top padding character for all cells in the row.\n@param paddingTopChar new padding character, ignored if null\n@return this to allow chaining", "Print time unit.\n\n@param value TimeUnit instance\n@return time unit value", "Adds the basic sentence.\n\n@param s the s\n@throws ParseException the parse exception" ]
@Override public synchronized boolean fireEventAndWait(Eventable eventable) throws ElementNotVisibleException, NoSuchElementException, InterruptedException { try { boolean handleChanged = false; boolean result = false; if (eventable.getRelatedFrame() != null && !eventable.getRelatedFrame().equals("")) { LOGGER.debug("switching to frame: " + eventable.getRelatedFrame()); try { switchToFrame(eventable.getRelatedFrame()); } catch (NoSuchFrameException e) { LOGGER.debug("Frame not found, possibly while back-tracking..", e); // TODO Stefan, This exception is caught to prevent stopping // from working // This was the case on the Gmail case; find out if not switching // (catching) // Results in good performance... } handleChanged = true; } WebElement webElement = browser.findElement(eventable.getIdentification().getWebDriverBy()); if (webElement != null) { result = fireEventWait(webElement, eventable); } if (handleChanged) { browser.switchTo().defaultContent(); } return result; } catch (ElementNotVisibleException | NoSuchElementException e) { throw e; } catch (WebDriverException e) { throwIfConnectionException(e); return false; } }
[ "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait." ]
[ "Use this API to add sslcertkey resources.", "Adds a tag to a task. Returns an empty data block.\n\n@param task The task to add a tag to.\n@return Request object", "Used to create a new indefinite retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@return the created retention policy's info.", "Implement the persistence handler for storing the user properties.", "Make a sort order for use in a query.", "Get the FieldDescriptors of the extent based on the FieldDescriptors of the parent.", "If the layer transformer has not been prepared yet, do it.\n\n@param transformer the transformer", "Fluent API builder.\n\n@param cronExpression\n@return", "Get minimum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Minimum gray." ]
public void update() { ProjectProperties properties = m_projectFile.getProjectProperties(); char decimalSeparator = properties.getDecimalSeparator(); char thousandsSeparator = properties.getThousandsSeparator(); m_unitsDecimalFormat.applyPattern("#.##", null, decimalSeparator, thousandsSeparator); m_decimalFormat.applyPattern("0.00#", null, decimalSeparator, thousandsSeparator); m_durationDecimalFormat.applyPattern("#.##", null, decimalSeparator, thousandsSeparator); m_percentageDecimalFormat.applyPattern("##0.##", null, decimalSeparator, thousandsSeparator); updateCurrencyFormats(properties, decimalSeparator, thousandsSeparator); updateDateTimeFormats(properties); }
[ "Called to update the cached formats when something changes." ]
[ "Remove all the existing links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Obtains a Coptic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Coptic local date-time, not null\n@throws DateTimeException if unable to create the date-time", "get current total used capacity.\n\n@return the total used capacity", "Returns the map from resourcetype names to default timestamp modes.\n@return the map from resourcetype names to default timestamp modes.", "List the photos with the most views, comments or favorites.\n\n@param date\n(Optional) 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. If no date is provided, all time view counts will be returned.\n@param sort\n(Optional) The order in which to sort returned photos. Defaults to views. The possible values are views, comments and favorites. Other sort\noptions are available through flickr.photos.search.\n@param perPage\n(Optional) Number of referrers 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@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html\"", "If task completed success or failure from response.\n\n@param myResponse\nthe my response\n@return true, if successful", "Sum of all elements\n\n@param A (Input) Matrix. Not modified.\n@return scalar", "Format a cue countdown indicator in the same way as the CDJ would at this point in the track.\n\n@return the value that the CDJ would display to indicate the distance to the next cue\n@see #getCueCountdown()", "Use this API to fetch spilloverpolicy resource of given name ." ]
public static MetadataTemplate updateMetadataTemplate(BoxAPIConnection api, String scope, String template, List<FieldOperation> fieldOperations) { JsonArray array = new JsonArray(); for (FieldOperation fieldOperation : fieldOperations) { JsonObject jsonObject = getFieldOperationJsonObject(fieldOperation); array.add(jsonObject); } QueryStringBuilder builder = new QueryStringBuilder(); URL url = METADATA_TEMPLATE_URL_TEMPLATE.build(api.getBaseURL(), scope, template); BoxJSONRequest request = new BoxJSONRequest(api, url, "PUT"); request.setBody(array.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJson = JsonObject.readFrom(response.getJSON()); return new MetadataTemplate(responseJson); }
[ "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" ]
[ "Build data model for serialization.", "Checks to see if all the diagonal elements in the matrix are positive.\n\n@param a A matrix. Not modified.\n@return true if all the diagonal elements are positive, false otherwise.", "Parses btch api response to create a list of BoxAPIResponse objects.\n@param batchResponse response of a batch api request\n@return list of BoxAPIResponses", "Generate a results file for each test in each suite.\n@param outputDirectory The target directory for the generated file(s).", "Delete a module\n\n@param moduleId String", "Return the number of ignored or assumption-ignored tests.", "Change the currentState to the nextState if possible. The next state should already be\npresent in the graph.\n\n@param nextState the next state.\n@return true if currentState is successfully changed.", "Gets information about this user.\n@param fields the optional fields to retrieve.\n@return info about this user.", "Perform the given work with a Jedis connection from the given pool.\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\n@throws Exception if something went wrong" ]
public static base_response enable(nitro_service client, nsfeature resource) throws Exception { nsfeature enableresource = new nsfeature(); enableresource.feature = resource.feature; return enableresource.perform_operation(client,"enable"); }
[ "Use this API to enable nsfeature." ]
[ "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "Retrieve the start slack.\n\n@return start slack", "Provides a ready to use diff update for our adapter based on the implementation of the\nstandard equals method from Object.\n\n@param newList to refresh our content", "Notifies that an existing header item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "This implementation returns whether the underlying asset exists.", "List the indexes in the database. The returned object allows for listing indexes by type.\n\n@return indexes object with methods for getting indexes of a particular type", "Returns a string that should be used as a label for the given property.\n\n@param propertyIdValue\nthe property to label\n@return the label", "Populate the properties indicating the source of this schedule.\n\n@param properties project properties", "Count the number of non-zero elements in V" ]
public static java.util.Date toDateTime(Object value) throws ParseException { if (value == null) { return null; } if (value instanceof java.util.Date) { return (java.util.Date) value; } if (value instanceof String) { if ("".equals((String) value)) { return null; } return IN_DATETIME_FORMAT.parse((String) value); } return IN_DATETIME_FORMAT.parse(value.toString()); }
[ "Convert an Object to a DateTime." ]
[ "Read resource assignment data from a PEP file.", "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "Mark new or deleted reference elements\n@param broker", "Sets the bootstrap URLs used by the different Fat clients inside the\nCoordinator\n\n@param bootstrapUrls list of bootstrap URLs defining which cluster to\nconnect to\n@return modified CoordinatorConfig", "Deletes this collaboration.", "Returns the primarykey fields.\n\n@return The field descriptors of the primarykey fields", "Returns true if the query result has at least one row.", "Whether the address has the well-known prefix for IPv4 translatable addresses as in rfc 6052 and 6144\n@return", "Specify the method to instantiate objects\nrepresented by this descriptor.\n@see #setFactoryClass" ]
protected <T> T getDatamodelObjectFromResponse(JsonNode response, List<String> path, Class<T> targetClass) throws JsonProcessingException { if(response == null) { throw new JsonMappingException("The API response is null"); } JsonNode currentNode = response; for(String field : path) { if (!currentNode.has(field)) { throw new JsonMappingException("Field '"+field+"' not found in API response."); } currentNode = currentNode.path(field); } return mapper.treeToValue(currentNode, targetClass); }
[ "Extracts a particular data model instance from a JSON response\nreturned by MediaWiki. The location is described by a list of successive\nfields to use, from the root to the target object.\n\n@param response\nthe API response as returned by MediaWiki\n@param path\na list of fields from the root to the target object\n@return\nthe parsed POJO object\n@throws JsonProcessingException" ]
[ "Deletes a template.\n\n@param id id of the template to delete.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Prepare a parallel UDP Task.\n\n@param command\nthe command\n@return the parallel task builder", "Get all components of a specific class from this scene object and its descendants.\n@param type component type (as returned from getComponentType())\n@return ArrayList of components with the specified class.", "Load the entity activating the persistence context execution boundaries\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when {@code true}, get an existing proxy for each collection element (if there is one)\n@return the result of the query", "Evaluates the body if the current class has at least one member with at least one tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"error\" description=\"Show this error message if no tag found.\"", "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", "This method removes all RTF formatting from a given piece of text.\n\n@param text Text from which the RTF formatting is to be removed.\n@return Plain text", "Uses getResult to get the final Result and executes it\n\n@throws ConfigurationException\nIf not result can be found with the returned code", "Stop finding waveforms for all active players." ]
public static String determineMutatorName(@Nonnull final String fieldName) { Check.notEmpty(fieldName, "fieldName"); final Matcher m = PATTERN.matcher(fieldName); Check.stateIsTrue(m.find(), "passed field name '%s' is not applicable", fieldName); final String name = m.group(); return METHOD_SET_PREFIX + name.substring(0, 1).toUpperCase() + name.substring(1); }
[ "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name" ]
[ "Reload a managed server.\n\n@param permit the controller permit\n@return whether the state was changed successfully or not", "Performs a transpose across block sub-matrices. Reduces\nthe number of cache misses on larger matrices.\n\n*NOTE* If this is beneficial is highly dependent on the computer it is run on. e.g:\n- Q6600 Almost twice as fast as standard.\n- Pentium-M Same speed and some times a bit slower than standard.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified.\n@param blockLength Length of a block.", "Verify the given job types are all valid.\n\n@param jobTypes the given job types\n@throws IllegalArgumentException if any of the job types are invalid\n@see #checkJobType(String, Class)", "Helper xml end tag writer\n\n@param value the output stream to use in writing", "Helper method for formatting connection termination messages.\n\n@param connectionName\nThe name of the connection\n@param host\nThe remote host\n@param connectionReason\nThe reason for establishing the connection\n@param terminationReason\nThe reason for terminating the connection\n@return A formatted message in the format:\n\"[&lt;connectionName&gt;] remote host[&lt;host&gt;] &lt;connectionReason&gt; - &lt;terminationReason&gt;\"\n<br/>\ne.g. [con1] remote host[123.123.123.123] connection to ECMG -\nterminated by remote host.", "Adds an option to the Jvm options\n\n@param value the option to add", "Determines whether the object is a materialized object, i.e. no proxy or a\nproxy that has already been loaded from the database.\n\n@param object The object to test\n@return <code>true</code> if the object is materialized", "Retrieve and validate the key from the REST request.\n\n@return true if present, false if missing", "This method returns the value of the product using a Black-Scholes model for the swap rate\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve on which to value the swap.\n@param swaprateVolatility The Black volatility.\n@return Value of this product" ]
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." ]
[ "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.", "Converts the List to PagedList.\n@param list list to be converted in to paged list\n@param <InnerT> the wrapper inner type\n@return the Paged list for the inner type.", "Gets the current version of the database schema. This version is taken\nfrom the migration table and represent the latest successful entry.\n\n@return the current schema version", "Returns the index of the eigenvalue which has the largest magnitude.\n\n@return index of the largest magnitude eigen value.", "Sets the baseline start text value.\n\n@param baselineNumber baseline number\n@param value baseline start text value", "Handles the response of the SerialApiGetInitData request.\n@param incomingMlivessage the response message to process.", "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "Writes the details of a recurring exception.\n\n@param mpxjException source MPXJ calendar exception\n@param xmlException target MSPDI exception", "Build the Criteria using multiple ORs\n@param ids collection of identities\n@param fields\n@return Criteria" ]
protected static Map<String, List<Statement>> removeStatements(Set<String> statementIds, Map<String, List<Statement>> claims) { Map<String, List<Statement>> newClaims = new HashMap<>(claims.size()); for(Entry<String, List<Statement>> entry : claims.entrySet()) { List<Statement> filteredStatements = new ArrayList<>(); for(Statement s : entry.getValue()) { if(!statementIds.contains(s.getStatementId())) { filteredStatements.add(s); } } if(!filteredStatements.isEmpty()) { newClaims.put(entry.getKey(), filteredStatements); } } return newClaims; }
[ "Removes statement ids from a collection of statement groups.\n@param statementIds\n@param claims\n@return" ]
[ "Writes the content of an input stream to an output stream\n\n@throws IOException", "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException", "Extract day type definitions.\n\n@param types Synchro day type rows\n@return Map of day types by UUID", "Creates an operations that targets the valiadating handler.\n\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "remove a converted object from the pool\n\n@param converter\n@param sourceObject\n@param destinationType", "Re-Tag the websocket connection hold by this context with label specified.\nThis method will remove all previous tags on the websocket connection and then\ntag it with the new label.\n@param label the label.\n@return this websocket conext.", "Returns a fine-grained word shape classifier, that equivalence classes\nlower and upper case and digits, and collapses sequences of the\nsame type, but keeps all punctuation. This adds an extra recognizer\nfor a greek letter embedded in the String, which is useful for bio.", "Populate a resource assignment.\n\n@param record MPX record\n@param assignment resource assignment\n@throws MPXJException", "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" ]
protected void printCenter(String format, Object... args) { String text = S.fmt(format, args); info(S.center(text, 80)); }
[ "Print formatted string in the center of 80 chars line, left and right padded.\n\n@param format\nThe string format pattern\n@param args\nThe string format arguments" ]
[ "Exceptions specific to each operation is handled in the corresponding\nsubclass. At this point we don't know the reason behind this exception.\n\n@param exception", "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault", "This method changes the value of an agent's belief through its external\naccess\n\n@param agent_name\nThe name of the agent to change a belief\n@param belief_name\nThe name of the belief to change\n@param new_value\nThe new value of the belief to be changed\n@param connector\nThe connector to get the external access", "Populates a ProjectCalendarWeek instance from Asta work pattern data.\n\n@param week target ProjectCalendarWeek instance\n@param workPatternID target work pattern ID\n@param workPatternMap work pattern data\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map", "Unmark a PersistenceBroker as preferred choice for current Thread\n\n@param key The PBKey the broker is associated to\n@param broker The PersistenceBroker to unmark", "Get the first controller of a specified type\n@param type controller type to search for\n@return controller found or null if no controllers of the given type", "Determine whether the given property matches this element.\nA property matches this element when property name and this key are equal,\nvalues are equal or this element value is a wildcard.\n@param property the property to check\n@return {@code true} if the property matches", "Use this API to update nsacl6 resources.", "Check whether the URL end with one of the given suffixes.\n\n@param uri URI\n@param patterns possible suffixes\n@return true when URL ends with one of the suffixes" ]
protected boolean _load () { java.sql.ResultSet rs = null; try { // This synchronization is necessary for Oracle JDBC drivers 8.1.7, 9.0.1, 9.2.0.1 // The documentation says synchronization is done within the driver, but they // must have overlooked something. Without the lock we'd get mysterious error // messages. synchronized(getDbMeta()) { getDbMetaTreeModel().setStatusBarMessage("Reading columns for table " + getSchema().getCatalog().getCatalogName() + "." + getSchema().getSchemaName() + "." + getTableName()); rs = getDbMeta().getColumns(getSchema().getCatalog().getCatalogName(), getSchema().getSchemaName(), getTableName(), "%"); final java.util.ArrayList alNew = new java.util.ArrayList(); while (rs.next()) { alNew.add(new DBMetaColumnNode(getDbMeta(), getDbMetaTreeModel(), DBMetaTableNode.this, rs.getString("COLUMN_NAME"))); } alChildren = alNew; javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { getDbMetaTreeModel().nodeStructureChanged(DBMetaTableNode.this); } }); rs.close(); } } catch (java.sql.SQLException sqlEx) { this.getDbMetaTreeModel().reportSqlError("Error retrieving columns", sqlEx); try { if (rs != null) rs.close (); } catch (java.sql.SQLException sqlEx2) { this.getDbMetaTreeModel().reportSqlError("Error retrieving columns", sqlEx2); } return false; } return true; }
[ "Loads the columns for this table into the alChildren list." ]
[ "Plots a list of charts in matrix with 2 columns.\n@param charts", "Curries a function that takes four arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes three arguments. Never <code>null</code>.", "The ID field contains the identifier number that Microsoft Project\nautomatically assigns to each task as you add it to the project.\nThe ID indicates the position of a task with respect to the other tasks.\n\n@param val ID", "Check given class modifiers. Plugin with resources plugin should not be private or abstract\nor interface.", "Returns a fine-grained word shape classifier, that equivalence classes\nlower and upper case and digits, and collapses sequences of the\nsame type, but keeps all punctuation. This adds an extra recognizer\nfor a greek letter embedded in the String, which is useful for bio.", "Use this API to fetch all the snmpmanager resources that are configured on netscaler.", "Create an ephemeral node with the given path and data. Create parents if necessary.\n@param zkClient client of zookeeper\n@param path node path of zookeeper\n@param data node data", "Assigns a retention policy to all items with a given metadata template, optionally matching on fields.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param templateID the ID of the metadata template to assign the policy to.\n@param filter optional fields to match against in the metadata template.\n@return info about the created assignment.", "Find the fields in which the Activity ID and Activity Type are stored." ]
public static systemsession[] get(nitro_service service) throws Exception{ systemsession obj = new systemsession(); systemsession[] response = (systemsession[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the systemsession resources that are configured on netscaler." ]
[ "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", "Add parameter to testCase\n\n@param context which can be changed", "Reads a \"flags\" argument from the request.", "This will blur the view behind it and set it in\na imageview over the content with a alpha value\nthat corresponds to slideOffset.", "Determine how many forked JVMs to use.", "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.", "Moves the given row up.\n\n@param row the row to move", "Get the URI for the given property in the given context.\n\n@param propertyIdValue\nthe property id for which to create a URI\n@param propertyContext\nthe context for which the URI will be needed\n@return the URI", "Returns a string describing 'time' as a time relative to 'now'.\n\nSee {@link android.text.format.DateUtils#getRelativeTimeSpanString} for full docs.\n\n@param context the context\n@param time the time to describe\n@param flags a bit mask for formatting options, usually FORMAT_ABBREV_RELATIVE\n@return a string describing 'time' as a time relative to 'now'." ]
public static int skipToNextMatchingShort(byte[] buffer, int offset, int value) { int nextOffset = offset; while (getShort(buffer, nextOffset) != value) { ++nextOffset; } nextOffset += 2; return nextOffset; }
[ "Skip to the next matching short value.\n\n@param buffer input data array\n@param offset start offset into the input array\n@param value value to match\n@return offset of matching pattern" ]
[ "Reads all text of the XML tag and returns it as a String.\nAssumes that a '<' character has already been read.\n\n@param r The reader to read from\n@return The String representing the tag, or null if one couldn't be read\n(i.e., EOF). The returned item is a complete tag including angle\nbrackets, such as <code>&lt;TXT&gt;</code>", "Read resource assignment baseline values.\n\n@param row result set row", "Sets ID field value.\n\n@param val value", "get the converted object corresponding to sourceObject as converted to\ndestination type by converter\n\n@param converter\n@param sourceObject\n@param destinationType\n@return", "Returns all model classes registered on this datasource\n\n@return model classes talk to this datasource", "Add an exact path to the routing table.\n\n@throws RouteAlreadyMappedException", "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x.", "Checks if a given number is in the range of a long.\n\n@param number\na number which should be in the range of a long (positive or negative)\n\n@see java.lang.Long#MIN_VALUE\n@see java.lang.Long#MAX_VALUE\n\n@return number as a long (rounding might occur)", "MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentFields()\";\nString parametersMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentParams()\";\nString variablesMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentVariables()\";\n\nString evalMethodParams = fieldsMap +\", \" + variablesMap + \", \" + parametersMap + \", \" + columExpression;\n\nString text = \"((\"+ConditionStyleExpression.class.getName()+\")$P{\" + JRParameter.REPORT_PARAMETERS_MAP + \"}.get(\\\"\"+condition.getName()+\"\\\")).\"+CustomExpression.EVAL_METHOD_NAME+\"(\"+evalMethodParams+\")\";\nJRDesignExpression expression = new JRDesignExpression();\nexpression.setValueClass(Boolean.class);\nexpression.setText(text);\nreturn expression;\n}" ]
public ParallelTaskBuilder prepareTcp(String command) { reinitIfClosed(); ParallelTaskBuilder cb = new ParallelTaskBuilder(); cb.setProtocol(RequestProtocol.TCP); cb.getTcpMeta().setCommand(command); return cb; }
[ "Prepare a parallel TCP Task.\n\n@param command\nthe command\n@return the parallel task builder" ]
[ "Generate a map file from a jar file.\n\n@param jarFile jar file\n@param mapFileName map file name\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws XMLStreamException\n@throws IOException\n@throws ClassNotFoundException\n@throws IntrospectionException", "Random string from string array\n\n@param s Array\n@return String", "Handle a completed request producing an optional response", "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance", "Adopts an xml dom element to the owner document of this element if necessary.\n\n@param elementToAdopt the element to adopt", "This takes into account scrolling and will be in absolute\ncoordinates where the top left corner of the page is 0,0 but\nthe viewport may be scrolled to something else.", "Call the Yahoo! PlaceFinder service for a result.\n\n@param q\nsearch string\n@param maxRows\nmax number of rows in result, or 0 for all\n@param locale\nlocale for strings\n@return list of found results\n@throws Exception\noops\n@see <a\nhref=\"http://developer.yahoo.com/boss/geo/docs/free_YQL.html#table_pf\">Yahoo!\nBoss Geo PlaceFinder</a>", "Perform the module promotion\n\n@param moduleId String", "Returns the earlier of two dates, handling null values. A non-null Date\nis always considered to be earlier than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date earliest date" ]
public boolean matchesWithMask(IPAddressSection other, IPAddressSection mask) { checkMaskSectionCount(mask); checkSectionCount(other); int divCount = getSegmentCount(); for(int i = 0; i < divCount; i++) { IPAddressSegment div = getSegment(i); IPAddressSegment maskSegment = mask.getSegment(i); IPAddressSegment otherSegment = other.getSegment(i); if(!div.matchesWithMask( otherSegment.getSegmentValue(), otherSegment.getUpperSegmentValue(), maskSegment.getSegmentValue())) { return false; } } return true; }
[ "Applies the mask to this address section and then compares values with the given address section\n\n@param mask\n@param other\n@return" ]
[ "Writes a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.", "Set the mesh to be tested against.\n\n@param mesh\nThe {@link GVRMesh} that the picking ray will test against.", "Adds new connections to the partition.\n@param connectionsToCreate number of connections to create\n@throws InterruptedException", "This method is used to process an MPP14 file. This is the file format\nused by Project 14.\n\n@param reader parent file reader\n@param file parent MPP file\n@param root Root of the POI file system.", "Add a 'IS NOT NULL' clause so the column must not be null. '&lt;&gt;' NULL does not work.", "Frees the temporary LOBs when an exception is raised in the application\nor when the LOBs are no longer needed. If the LOBs are not freed, the\nspace used by these LOBs are not reclaimed.\n@param clob CLOB-wrapper to free or null\n@param blob BLOB-wrapper to free or null", "Remove a bean from the context, calling the destruction callback if any.\n\n@param name bean name\n@return previous value", "Log original response\n\n@param httpServletResponse\n@param history\n@throws URIException", "Starts the HTTP service.\n\n@throws Exception if the service failed to started" ]
public final static int readXMLUntil(final StringBuilder out, final String in, final int start, final char... end) { int pos = start; boolean inString = false; char stringChar = 0; while (pos < in.length()) { final char ch = in.charAt(pos); if (inString) { if (ch == '\\') { out.append(ch); pos++; if (pos < in.length()) { out.append(ch); pos++; } continue; } if (ch == stringChar) { inString = false; out.append(ch); pos++; continue; } } switch (ch) { case '"': case '\'': inString = true; stringChar = ch; break; } if (!inString) { boolean endReached = false; for (int n = 0; n < end.length; n++) { if (ch == end[n]) { endReached = true; break; } } if (endReached) { break; } } out.append(ch); pos++; } return (pos == in.length()) ? -1 : pos; }
[ "Reads characters until any 'end' character is encountered, ignoring\nescape sequences.\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." ]
[ "Configures the configuration selector.", "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens", "Returns new boolean matrix with true or false values selected with equal probability.\n\n@param numRow Number of rows in the new matrix.\n@param numCol Number of columns in the new matrix.\n@param rand Random number generator used to fill the matrix.\n@return The randomly generated matrix.", "Animate de-selection of visible views and clear\nselected set.", "Helper method that searches an object array for the occurence of a\nspecific object based on reference equality\n@param searchFor the object to search for\n@param searchIn the array to search in\n@return true if the object is found, otherwise false", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Adds BETWEEN criteria,\ncustomer_id between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary", "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs", "Retrieve and validate the timestamp value from the REST request.\n\"X_VOLD_REQUEST_ORIGIN_TIME_MS\" is timestamp header\n\nTODO REST-Server 1. Change Time stamp header to a better name.\n\n@return true if present, false if missing" ]
public static float noise1(float x) { int bx0, bx1; float rx0, rx1, sx, t, u, v; if (start) { start = false; init(); } t = x + N; bx0 = ((int)t) & BM; bx1 = (bx0+1) & BM; rx0 = t - (int)t; rx1 = rx0 - 1.0f; sx = sCurve(rx0); u = rx0 * g1[p[bx0]]; v = rx1 * g1[p[bx1]]; return 2.3f*lerp(sx, u, v); }
[ "Compute 1-dimensional Perlin noise.\n@param x the x value\n@return noise value at x in the range -1..1" ]
[ "Closes all the producers in the pool", "Gets the Correlation distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Correlation distance between x and y.", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "Extract site path, base name and locale from the resource opened with the editor.", "Obtains a Discordian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "try to delegate the master to handle the response\n\n@param response\n@return true if the master accepted the response; false if the master\ndidn't accept", "Register a data type with the manager.", "Switches from a sparse to dense matrix", "Calculate the pointer's coordinates on the color wheel using the supplied\nangle.\n\n@param angle The position of the pointer expressed as angle (in rad).\n\n@return The coordinates of the pointer's center in our internal\ncoordinate system." ]
protected void addProcessedData(List<List<CRFDatum<Collection<String>, String>>> processedData, int[][][][] data, int[][] labels, int offset) { for (int i = 0, pdSize = processedData.size(); i < pdSize; i++) { int dataIndex = i + offset; List<CRFDatum<Collection<String>, String>> document = processedData.get(i); int dsize = document.size(); labels[dataIndex] = new int[dsize]; data[dataIndex] = new int[dsize][][]; for (int j = 0; j < dsize; j++) { CRFDatum<Collection<String>, String> crfDatum = document.get(j); // add label, they are offset by extra context labels[dataIndex][j] = classIndex.indexOf(crfDatum.label()); // add features List<Collection<String>> cliques = crfDatum.asFeatures(); int csize = cliques.size(); data[dataIndex][j] = new int[csize][]; for (int k = 0; k < csize; k++) { Collection<String> features = cliques.get(k); // Debug only: Remove // if (j < windowSize) { // System.err.println("addProcessedData: Features Size: " + // features.size()); // } data[dataIndex][j][k] = new int[features.size()]; int m = 0; try { for (String feature : features) { // System.err.println("feature " + feature); // if (featureIndex.indexOf(feature)) ; if (featureIndex == null) { System.out.println("Feature is NULL!"); } data[dataIndex][j][k][m] = featureIndex.indexOf(feature); m++; } } catch (Exception e) { e.printStackTrace(); System.err.printf("[index=%d, j=%d, k=%d, m=%d]\n", dataIndex, j, k, m); System.err.println("data.length " + data.length); System.err.println("data[dataIndex].length " + data[dataIndex].length); System.err.println("data[dataIndex][j].length " + data[dataIndex][j].length); System.err.println("data[dataIndex][j][k].length " + data[dataIndex][j].length); System.err.println("data[dataIndex][j][k][m] " + data[dataIndex][j][k][m]); return; } } } } }
[ "Adds the List of Lists of CRFDatums to the data and labels arrays, treating\neach datum as if it were its own document. Adds context labels in addition\nto the target label for each datum, meaning that for a particular document,\nthe number of labels will be windowSize-1 greater than the number of\ndatums.\n\n@param processedData\na List of Lists of CRFDatums" ]
[ "Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException", "Require that the namespace of the current element matches the required namespace.\n\n@param reader the reader\n@param requiredNs the namespace required\n@throws XMLStreamException if the current namespace does not match the required namespace", "Returns the compact task records for all tasks with the given tag.\nTasks can have more than one tag at a time.\n\n@param tag The tag to fetch tasks from.\n@return Request object", "Configure the access permissions required to access this print job.\n\n@param template the containing print template which should have sufficient information to\nconfigure the access.\n@param context the application context", "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.", "Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build information", "don't run on main thread", "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call this method to re-prepare the query for execution.", "Gets an iterable of all the groups in the enterprise that are starting with the given name string.\n@param api the API connection to be used when retrieving the groups.\n@param name the name prefix of the groups. If the groups need to searched by full name that has spaces,\nthen the parameter string should have been wrapped with \"\".\n@return an iterable containing info about all the groups." ]
public String putProperty(String key, String value) { return this.getProperties().put(key, value); }
[ "changes an existing property with the same name, or adds a new one\n@param key property name with which the specified value is to be\nassociated\n@param value value to be associated with the specified property name\n@return the previous value associated with property name, or null if\nthere was no mapping for property name. (A null return can also\nindicate that the map previously associated null with key.)" ]
[ "Use this API to fetch clusternodegroup resource of given name .", "This method retrieves a double 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 double data", "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", "for testing purpose", "Sets orientation of loopbar\n\n@param orientation int value of orientation. Must be one of {@link Orientation}", "Remove the given pair from a given map for obtaining a new map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\n</p>\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 left the map to consider.\n@param right the entry (key, value) to remove from the map.\n@return an immutable map with the content of the map and with the given entry.\n@throws IllegalArgumentException - when the right operand key exists in the left operand.\n@since 2.15", "Constraint that ensures that the field has a conversion if the java type requires it. Also checks the conversion class.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If the conversion class is invalid", "Assigns a list of nodes in the cluster represented by this failure\ndetector configuration.\n\n@param nodes Collection of Node instances, usually determined from the\nCluster; must be non-null", "Enable clipping for the Widget. Widget content including its children will be clipped by a\nrectangular View Port. By default clipping is disabled." ]
private static Class<?> extractClass(Class<?> ownerClass, Type arg) { if (arg instanceof ParameterizedType) { return extractClass(ownerClass, ((ParameterizedType) arg).getRawType()); } else if (arg instanceof GenericArrayType) { GenericArrayType gat = (GenericArrayType) arg; Type gt = gat.getGenericComponentType(); Class<?> componentClass = extractClass(ownerClass, gt); return Array.newInstance(componentClass, 0).getClass(); } else if (arg instanceof TypeVariable) { TypeVariable tv = (TypeVariable) arg; arg = getTypeVariableMap(ownerClass).get(tv); if (arg == null) { arg = extractBoundForTypeVariable(tv); if (arg instanceof ParameterizedType) { return extractClass(ownerClass, ((ParameterizedType) arg).getRawType()); } } else { return extractClass(ownerClass, arg); } } return (arg instanceof Class ? (Class) arg : Object.class); }
[ "Extract a Class from the given Type." ]
[ "Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU", "Use this API to fetch ipset_nsip_binding resources of given name .", "Set the view frustum to pick against from the minimum and maximum corners.\nThe viewpoint of the frustum is the center of the scene object\nthe picker is attached to. The view direction is the forward\ndirection of that scene object. The frustum will pick what a camera\nattached to the scene object with that view frustum would see.\nIf the frustum is not attached to a scene object, it defaults to\nthe view frustum of the main camera of the scene.\n\n@param frustum array of 6 floats as follows:\nfrustum[0] = left corner of frustum\nfrustum[1] = bottom corner of frustum\nfrustum[2] = front corner of frustum (near plane)\nfrustum[3] = right corner of frustum\nfrustum[4] = top corner of frustum\nfrustum[5 = back corner of frustum (far plane)", "Set the values using the specified Properties object\n\n@param properties Properties object containing specific property values\nfor the Coordinator config", "Use this API to fetch nstimer_binding resource of given name .", "Use this API to update inat resources.", "Returns the list of user defined attribute names.\n\n@return the list of user defined attribute names, if there are none it returns an empty set.", "Log a info message with a throwable.", "Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>" ]
public void authenticate(String authCode) { URL url = null; try { url = new URL(this.tokenURL); } catch (MalformedURLException e) { assert false : "An invalid token URL indicates a bug in the SDK."; throw new RuntimeException("An invalid token URL indicates a bug in the SDK.", e); } String urlParameters = String.format("grant_type=authorization_code&code=%s&client_id=%s&client_secret=%s", authCode, this.clientID, this.clientSecret); BoxAPIRequest request = new BoxAPIRequest(this, url, "POST"); request.shouldAuthenticate(false); request.setBody(urlParameters); BoxJSONResponse response = (BoxJSONResponse) request.send(); String json = response.getJSON(); JsonObject jsonObject = JsonObject.readFrom(json); this.accessToken = jsonObject.get("access_token").asString(); this.refreshToken = jsonObject.get("refresh_token").asString(); this.lastRefresh = System.currentTimeMillis(); this.expires = jsonObject.get("expires_in").asLong() * 1000; }
[ "Authenticates the API connection by obtaining access and refresh tokens using the auth code that was obtained\nfrom the first half of OAuth.\n@param authCode the auth code obtained from the first half of the OAuth process." ]
[ "Return true if the processor of the node is currently being executed.\n\n@param processorGraphNode the node to test.", "Deselects all child items of the provided item.\n@param item the item for which all childs should be deselected.d", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "Set the buttons size.", "Go through all nodes and determine how many partition Ids each node\nhosts.\n\n@param cluster\n@return map of nodeId to number of primary partitions hosted on node.", "Returns the compact representations of all of the dependents of a task.\n\n@param task The task to get dependents on.\n@return Request object", "build a complete set of local files, files from referenced projects, and dependencies.", "Get a property as a json object or null.\n\n@param key the property name", "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\n@param buildInfoId\n@return" ]
public PayloadBuilder sound(final String sound) { if (sound != null) { aps.put("sound", sound); } else { aps.remove("sound"); } return this; }
[ "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" ]
[ "Links the form with an HTML element which can be clicked.\n\n@param form the collection of the input fields\n@return a FormAction\n@see Form", "Acquires a broker instance. If no PBKey is available a runtime exception will be thrown.\n\n@return A broker instance", "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance", "Copy a single named resource from the classpath to the output directory.\n@param outputDirectory The destination directory for the copied resource.\n@param resourceName The filename of the resource.\n@param targetFileName The name of the file created in {@literal outputDirectory}.\n@throws IOException If the resource cannot be copied.", "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining", "Use this API to update systemcollectionparam.", "Remove any mapping for this key, and return any previously\nmapped value.\n\n@param key the key whose mapping is to be removed\n@return the value removed, or null", "Constructs the path from FQCN, validates writability, and creates a writer.", "returns an Array with an Objects PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values" ]
private float[] generateParticleTimeStamps(float totalTime) { float timeStamps[] = new float[mEmitRate * 2]; if ( burstMode ) { for (int i = 0; i < mEmitRate * 2; i += 2) { timeStamps[i] = totalTime; timeStamps[i + 1] = 0; } } else { for (int i = 0; i < mEmitRate * 2; i += 2) { timeStamps[i] = totalTime + mRandom.nextFloat(); timeStamps[i + 1] = 0; } } return timeStamps; }
[ "Generate random time stamps from the current time upto the next one second.\nPassed as texture coordinates to the vertex shader; an unused field is present\nwith every pair passed.\n\n@param totalTime\n@return" ]
[ "Read string from url generic.\n\n@param url\nthe url\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Set the Log4j appender.\n\n@param appender the log4j appender", "Add nodes to the workers list\n\n@param nodeIds list of node ids.", "Turn this profile on or off\n\n@param enabled true or false\n@return true on success, false otherwise", "Creates an object instance according to clb, and fills its fileds width data provided by row.\n@param row A {@link Map} contain the Object/Row mapping for the object.\n@param targetClassDescriptor If the \"ojbConcreteClass\" feature was used, the target\n{@link org.apache.ojb.broker.metadata.ClassDescriptor} could differ from the descriptor\nthis class was associated - see {@link #selectClassDescriptor}.\n@param targetObject If 'null' a new object instance is build, else fields of object will\nbe refreshed.\n@throws PersistenceBrokerException if there ewas an error creating the new object", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise", "write CustomInfo list into table.\n\n@param event the event", "Color waveforms are represented by a series of sixteen bit integers into which color and height information are\npacked. This function returns the integer corresponding to a particular half-frame in the waveform.\n\n@param waveBytes the raw data making up the waveform\n@param segment the index of hte half-frame of interest\n\n@return the sixteen-bit number encoding the height and RGB values of that segment", "Verify that the given queues are all valid.\n\n@param queues the given queues" ]
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" ]
[ "Returns the duration of the measured tasks in ms", "Finish initializing service.\n\n@throws IOException oop", "With the Batik SVG library it is only possible to create new SVG graphics, but you can not modify an\nexisting graphic. So, we are loading the SVG file as plain XML and doing the modifications by hand.", "Fetch the next event from a given stream\n@return the next event\n@throws IOException any io exception that could occur", "parse when there are two date-times", "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly", "Add all headers in a header map.\n\n@param headers a map of headers.\n@return the interceptor instance itself.", "Log a warning for the resource at the provided address and a single attribute. 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 attribute attribute we are warning about", "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return" ]
public void setStructuredAppendMessageId(String messageId) { if (messageId != null && !messageId.matches("^[\\x21-\\x7F]+$")) { throw new IllegalArgumentException("Invalid Aztec Code structured append message ID: " + messageId); } this.structuredAppendMessageId = messageId; }
[ "If this Aztec Code symbol is part of a series of Aztec Code symbols appended in a structured format,\nthis method sets the unique message ID for the series. Values may not contain spaces and must contain\nonly printable ASCII characters. Message IDs are optional.\n\n@param messageId the unique message ID for the series that this symbol is part of" ]
[ "Performs a Bulk Documents insert request.\n\n@param objects The {@link List} of objects.\n@param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.\n@return {@code List<Response>} Containing the resulted entries.", "This method performs a series of permissions checks given a directory and properties file path.\n\n1 - Check whether the parent directory dirPath has proper execute and read permissions\n2 - Check whether properties file path is readable and writable\n\nIf either of the permissions checks fail, update validFilePermissions and filePermissionsProblemPath\nappropriately.", "Invalidating just the GVRView associated with the GVRViewSceneObject\nincorrectly set the clip rectangle to just that view. To fix this,\nwe have to create a full screen android View and invalidate this\nto restore the clip rectangle.\n@return full screen View object", "Look up a shaper by a short String name.\n\n@param name Shaper name. Known names have patterns along the lines of:\ndan[12](bio)?(UseLC)?, jenny1(useLC)?, chris[1234](useLC)?.\n@return An integer constant for the shaper", "Returns the number of rows within this association.\n\n@return the number of rows within this association", "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.", "Read resource assignment baseline values.\n\n@param row result set row", "Converts the provided object to a date, if possible.\n\n@param date the date.\n\n@return the date as {@link java.util.Date}", "I promise that this is always a collection of HazeltaskTasks" ]
public void resume() { this.paused = false; ServerActivityCallback listener = listenerUpdater.get(this); if (listener != null) { listenerUpdater.compareAndSet(this, listener, null); } }
[ "Cancel the pause operation" ]
[ "Stops the server. This method does nothing if the server is stopped already.", "Create an image of the proper size to hold a new waveform preview image and draw it.", "Replaces the proxy url with the correct url from the tileMap.\n\n@return correct url to TMS service", "Returns an array specifing the index of each hull vertex with respect to\nthe original input points.\n\n@return vertex indices with respect to the original points", "Private used static method for creation of a RemoteWebDriver. Taking care of the default\nCapabilities and using the HttpCommandExecutor.\n\n@param hubUrl the url of the hub to use.\n@return the RemoteWebDriver instance.", "Get the Upper triangular factor.\n\n@return U.", "Retrieve and validate store name from the REST request.\n\n@return true if valid, false otherwise", "Starts the HTTP service.\n\n@throws Exception if the service failed to started", "Configures a worker pool for the converter.\n\n@param corePoolSize The core pool size of the worker pool.\n@param maximumPoolSize The maximum pool size of the worker pool.\n@param keepAliveTime The keep alive time of the worker pool.\n@param unit The time unit of the specified keep alive time.\n@return This builder instance." ]
protected void checkProducerMethod(EnhancedAnnotatedMethod<T, ? super X> method) { if (method.getEnhancedParameters(Observes.class).size() > 0) { throw BeanLogger.LOG.inconsistentAnnotationsOnMethod(PRODUCER_ANNOTATION, "@Observes", this.method, Formats.formatAsStackTraceElement(method.getJavaMember())); } else if (method.getEnhancedParameters(ObservesAsync.class).size() > 0) { throw BeanLogger.LOG.inconsistentAnnotationsOnMethod(PRODUCER_ANNOTATION, "@ObservesAsync", this.method, Formats.formatAsStackTraceElement(method.getJavaMember())); } else if (method.getEnhancedParameters(Disposes.class).size() > 0) { throw BeanLogger.LOG.inconsistentAnnotationsOnMethod(PRODUCER_ANNOTATION, "@Disposes", this.method, Formats.formatAsStackTraceElement(method.getJavaMember())); } else if (getDeclaringBean() instanceof SessionBean<?> && !Modifier.isStatic(method.slim().getJavaMember().getModifiers())) { boolean methodDeclaredOnTypes = false; for (Type type : getDeclaringBean().getTypes()) { Class<?> clazz = Reflections.getRawType(type); try { AccessController.doPrivileged(new GetMethodAction(clazz, method.getName(), method.getParameterTypesAsArray())); methodDeclaredOnTypes = true; break; } catch (PrivilegedActionException ignored) { } } if (!methodDeclaredOnTypes) { throw BeanLogger.LOG.methodNotBusinessMethod("Producer", this, getDeclaringBean(), Formats.formatAsStackTraceElement(method.getJavaMember())); } } }
[ "Validates the producer method" ]
[ "Check config.\n\n@param context the context\n@return true, if successful\n@throws Exception the exception", "Determine the height of the preview given an index into it.\n\n@param segment the index of the waveform preview segment to examine\n@param front if {@code true} the height of the front (brighter) segment of a color waveform preview is returned,\notherwise the height of the back (dimmer) segment is returned. Has no effect for blue previews.\n\n@return a value from 0 to 31 representing the height of the waveform at that segment, which may be an average\nof a number of values starting there, determined by the scale", "Stop a timer of the given string name for the current thread. If no such\ntimer exists, -1 will be returned. Otherwise the return value is the CPU\ntime that was measured.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return CPU time if timer existed and was running, and -1 otherwise", "Remove attachments matches pattern from step and all step substeps\n\n@param context from which attachments will be removed", "Stores template parameters for OpenShiftAssistantTemplate.\n\n@param name template parameter name\n@param value template parameter value", "Get an integer property override value.\n@param name the {@link CircuitBreaker} name.\n@param key the property override key.\n@return the property override value, or null if it is not found.", "Update database schema\n\n@param migrationPath path to migrations", "Use this API to enable the feature on Netscaler.\n@param feature feature to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "Returns the total number of times the app has been launched\n@return Total number of app launches in int" ]
public void setHeader(String header) { headerLabel.getElement().setInnerSafeHtml(SafeHtmlUtils.fromString(header)); addStyleName(CssName.WITH_HEADER); ListItem item = new ListItem(headerLabel); UiHelper.addMousePressedHandlers(item); item.setStyleName(CssName.COLLECTION_HEADER); insert(item, 0); }
[ "Sets the header of the collection component." ]
[ "Returns a new List containing the given objects.", "Calculates all dates of the series.\n@return all dates of the series in milliseconds.", "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", "Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser", "Performs a 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 a {@link Response} to the request.", "Get the inactive history directories.\n\n@return the inactive history", "Set the value for a floating point 4x4 matrix.\n@param key name of uniform to set.\n@see #getFloatVec(String)", "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", "Makes a CRFDatum by producing features and a label from input data at a\nspecific position, using the provided factory.\n\n@param info\nThe input data\n@param loc\nThe position to build a datum at\n@param featureFactory\nThe FeatureFactory to use to extract features\n@return The constructed CRFDatum" ]
private static boolean isDpiSet(final Multimap<String, String> extraParams) { String searchKey = "FORMAT_OPTIONS"; for (String key: extraParams.keys()) { if (key.equalsIgnoreCase(searchKey)) { for (String value: extraParams.get(key)) { if (value.toLowerCase().contains("dpi:")) { return true; } } } } return false; }
[ "Checks if the DPI value is already set for GeoServer." ]
[ "Updates the polling state from a PUT or PATCH operation.\n\n@param response the response from Retrofit REST call\n@throws CloudException thrown if the response is invalid\n@throws IOException thrown by deserialization", "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1", "Reads a single day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT week day", "Encodes the given URI query parameter with the given encoding.\n@param queryParam the query parameter to be encoded\n@param encoding the character encoding to encode to\n@return the encoded query parameter\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Hardcode a copy method as being valid. This should be used to tell Mutability Detector about\na method which copies a collection, and when the copy can be wrapped in an immutable wrapper\nwe can consider the assignment immutable. Useful for allowing Mutability Detector to correctly\nwork with other collections frameworks such as Google Guava. Reflection is used to obtain the\nmethod's descriptor and to verify the method's existence.\n\n@param fieldType - the type of the field to which the result of the copy is assigned\n@param fullyQualifiedMethodName - the fully qualified method name\n@param argType - the type of the argument passed to the copy method\n\n@throws MutabilityAnalysisException - if the specified class or method does not exist\n@throws IllegalArgumentException - if any of the arguments are null", "Sets maintenance mode for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param enable true to enable; false to disable", "Validate that the configuration is valid.\n\n@return any validation errors.", "If there is an unprocessed change event for a particular document ID, fetch it from the\nchange stream listener, and remove it. By reading the event here, we are assuming it will be\nprocessed by the consumer.\n\n@return the latest unprocessed change event for the given document ID, or null if none exists.", "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context" ]
public void writeNameValuePair(String name, String value) throws IOException { internalWriteNameValuePair(name, escapeString(value)); }
[ "Write a string attribute.\n\n@param name attribute name\n@param value attribute value" ]
[ "Use this API to fetch statistics of appfwpolicylabel_stats resource of given name .", "Copy new data to an existing float-point texture.\n\nCreating a new {@link GVRFloatImage} is pretty cheap, but it's still\nnot a totally trivial operation: it does involve some memory management\nand some GL hardware handshaking. Reusing the texture reduces this\noverhead (primarily by delaying garbage collection). Do be aware that\nupdating a texture will affect any and all {@linkplain GVRMaterial\nmaterials} (and/or post effects that use the texture!\n\n@param width\nTexture width, in pixels\n@param height\nTexture height, in pixels\n@param data\nA linear array of float pairs.\n@return {@code true} if the updateGPU succeeded, and {@code false} if it\nfailed. Updating a texture requires that the new data parameter\nhas the exact same {@code width} and {@code height} and pixel\nformat as the original data.\n@throws IllegalArgumentException\nIf {@code width} or {@code height} is {@literal <= 0,} or if\n{@code data} is {@code null}, or if\n{@code data.length < height * width * 2}", "create a path structure representing the object graph", "Get the axis along the orientation\n@return", "This method allows us to peek into the OLE compound document to extract the file format.\nThis allows the UniversalProjectReader to determine if this is an MPP file, or if\nit is another type of OLE compound document.\n\n@param fs POIFSFileSystem instance\n@return file format name\n@throws IOException", "Post a license to the server\n\n@param license\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Assigns the element in the Matrix to the specified value. Performs a bounds check to make sure\nthe requested element is part of the matrix.\n\n@param row The row of the element.\n@param col The column of the element.\n@param value The element's new value.", "Add statistics about sent emails.\n\n@param recipients The list of recipients.\n@param storageUsed If a remote storage was used.", "Get the first non-white Y point\n@param img Image in memory\n@return the trimmed y start" ]
@Override public String toCompressedString() { String result; if(hasNoStringCache() || (result = getStringCache().compressedString) == null) { getStringCache().compressedString = result = toNormalizedString(MACStringCache.compressedParams); } return result; }
[ "This produces a shorter string for the address that uses the canonical representation but not using leading zeroes.\n\nEach address has a unique compressed string." ]
[ "Returns a valid DisplayMetrics object\n\n@param context valid context\n@return DisplayMetrics object", "Get the content-type, including the optional \";base64\".", "Use this API to fetch vrid6 resource of given name .", "Verifies a provided signature.\n\n@param key\nfor which signature key\n@param actualAlgorithm\ncurrent signature algorithm\n@param actualSignature\ncurrent signature\n@param webHookPayload\nfor signing\n@param deliveryTimestamp\nfor signing\n@return true if verification passed", "Transform the given bytes into an object.\n\n@param bytes The bytes to construct the object from\n@return The object constructed", "Get prototype name.\n\n@return prototype name", "Returns an array of the names of all atributes of this descriptor.\n\n@return The list of attribute names (will not be <code>null</code>)", "Fetch the latest versions for cluster metadata", "creates a scope using the passed function to compute the names and sets the passed scope as the parent scope" ]
protected void process(String text, Map params, Writer writer){ try{ Template t = new Template("temp", new StringReader(text), FreeMarkerTL.getEnvironment().getConfiguration()); t.process(params, writer); }catch(Exception e){ throw new ViewException(e); } }
[ "Processes text as a FreeMarker template. Usually used to process an inner body of a tag.\n\n@param text text of a template.\n@param params map with parameters for processing.\n@param writer writer to write output to." ]
[ "Changes to a new sub-view and stores a report to be displayed by that subview.<p<\n\n@param newState the new state\n@param thread the report thread which should be displayed in the sub view\n@param label the label to display for the report", "List all the environment variables for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return map of config vars", "If the `invokerClass` specified is singleton, or without field or all fields are\nstateless, then return an instance of the invoker class. Otherwise, return null\n@param invokerClass the invoker class\n@param app the app\n@return an instance of the invokerClass or `null` if invoker class is stateful class", "Sets the parent node.\n\n@param parentNode The parent of this node. May be null, if this is a root node.", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle", "Returns the x-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the x coordinate", "Converts the key to the format in which it is stored for searching\n\n@param key Byte array of the key\n@return The format stored in the index file", "First close the connection. Then reply.\n\n@param response\nthe response\n@param error\nthe error\n@param errorMessage\nthe error message\n@param stackTrace\nthe stack trace\n@param statusCode\nthe status code\n@param statusCodeInt\nthe status code int" ]
private long validateMessage(FileChannel channel, long start, long len, ByteBuffer buffer) throws IOException { buffer.rewind(); int read = channel.read(buffer, start); if (read < 4) return -1; // check that we have sufficient bytes left in the file int size = buffer.getInt(0); if (size < Message.MinHeaderSize) return -1; long next = start + 4 + size; if (next > len) return -1; // read the message ByteBuffer messageBuffer = ByteBuffer.allocate(size); long curr = start + 4; while (messageBuffer.hasRemaining()) { read = channel.read(messageBuffer, curr); if (read < 0) throw new IllegalStateException("File size changed during recovery!"); else curr += read; } messageBuffer.rewind(); Message message = new Message(messageBuffer); if (!message.isValid()) return -1; else return next; }
[ "Read, validate, and discard a single message, returning the next valid offset, and the\nmessage being validated\n\n@throws IOException any exception" ]
[ "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value", "Convenience method to set the underlying bean instance for a proxy.\n\n@param proxy the proxy instance\n@param beanInstance the instance of the bean", "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", "Create a Renderer getting a copy from the prototypes collection.\n\n@param content to render.\n@param parent used to inflate the view.\n@return a new renderer.", "Returns the DBCP DataSource for the specified connection descriptor,\nafter creating a new DataSource if needed.\n@param jcd the descriptor for which to return a DataSource\n@return a DataSource, after creating a new pool if needed.\nGuaranteed to never be null.\n@throws LookupException if pool is not in cache and cannot be created", "This is a convenience method used to add a calendar called\n\"Standard\" to the project, and populate it with a default working week\nand default working hours.\n\n@return a new default calendar", "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity", "Ordinary noise function.\n\n@param x X Value.\n@param y Y Value.\n@return", "Writes a list of UDF types.\n\n@author lsong\n@param type parent entity type\n@param mpxj parent entity\n@return list of UDFAssignmentType instances" ]
private static Data loadLeapSeconds() { Data bestData = null; URL url = null; try { // this is the new location of the file, working on Java 8, Java 9 class path and Java 9 module path Enumeration<URL> en = Thread.currentThread().getContextClassLoader().getResources("META-INF/" + LEAP_SECONDS_TXT); while (en.hasMoreElements()) { url = en.nextElement(); Data candidate = loadLeapSeconds(url); if (bestData == null || candidate.getNewestDate() > bestData.getNewestDate()) { bestData = candidate; } } // this location does not work on Java 9 module path because the resource is encapsulated en = Thread.currentThread().getContextClassLoader().getResources(LEAP_SECONDS_TXT); while (en.hasMoreElements()) { url = en.nextElement(); Data candidate = loadLeapSeconds(url); if (bestData == null || candidate.getNewestDate() > bestData.getNewestDate()) { bestData = candidate; } } // this location is the canonical one, and class-based loading works on Java 9 module path url = SystemUtcRules.class.getResource("/" + LEAP_SECONDS_TXT); if (url != null) { Data candidate = loadLeapSeconds(url); if (bestData == null || candidate.getNewestDate() > bestData.getNewestDate()) { bestData = candidate; } } } catch (Exception ex) { throw new RuntimeException("Unable to load time-zone rule data: " + url, ex); } if (bestData == null) { // no data on classpath, but we allow manual registration of leap seconds // setup basic known data - MJD 1972-01-01 is 41317L, where offset was 10 bestData = new Data(new long[] {41317L}, new int[] {10}, new long[] {tai(41317L, 10)}); } return bestData; }
[ "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs" ]
[ "Sets the fieldConversion.\n@param fieldConversionClassName The fieldConversion to set", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message.", "Update artifact provider\n\n@param gavc String\n@param provider String", "Returns the URL to the property file that contains CRS definitions.\n\n@return The URL to the epsg file containing custom EPSG codes", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"", "prefetch defined relationships requires JDBC level 2.0, does not work\nwith Arrays", "Adds a String timestamp representing uninstall flag to the DB.", "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler." ]
public boolean isMaskCompatibleWithRange(int maskValue, Integer segmentPrefixLength) throws PrefixLenException { if(!isMultiple()) { return true; } return super.isMaskCompatibleWithRange(maskValue, segmentPrefixLength, getNetwork().getPrefixConfiguration().allPrefixedAddressesAreSubnets()); }
[ "Check that the range resulting from the mask is contiguous, otherwise we cannot represent it.\n\nFor instance, for the range 0 to 3 (bits are 00 to 11), if we mask all 4 numbers from 0 to 3 with 2 (ie bits are 10),\nthen we are left with 1 and 3. 2 is not included. So we cannot represent 1 and 3 as a contiguous range.\n\nThe underlying rule is that mask bits that are 0 must be above the resulting range in each segment.\n\nAny bit in the mask that is 0 must not fall below any bit in the masked segment range that is different between low and high.\n\nAny network mask must eliminate the entire segment range. Any host mask is fine.\n\n@param maskValue\n@param segmentPrefixLength\n@return\n@throws PrefixLenException" ]
[ "read the file as a list of text lines", "Clear the mask for a new selection", "Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of sentinels\n@return this ConfigBuilder", "Helper to format term updates as expected by the Wikibase API\n@param updates\nplanned updates for the type of term\n@return map ready to be serialized as JSON by Jackson", "Apply an XMLDSig onto the passed document.\n\n@param aPrivateKey\nThe private key used for signing. May not be <code>null</code>.\n@param aCertificate\nThe certificate to be used. May not be <code>null</code>.\n@param aDocument\nThe document to be signed. The signature will always be the first\nchild element of the document element. The document may not contains\nany disg:Signature element. This element is inserted manually.\n@throws Exception\nIn case something goes wrong\n@see #createXMLSignature(X509Certificate)", "Set the group name\n\n@param name new name of server group\n@param id ID of group", "Use this API to update appfwlearningsettings resources.", "Sets the path name for this ID\n\n@param pathId ID of path\n@param pathName Name of path", "Converts a tab delimited string into an object with given fields\nRequires the object has setXxx functions for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterRegex delimiter regular expression\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string" ]
@SuppressWarnings("unchecked") private static synchronized Map<String, Boolean> getCache(GraphRewrite event) { Map<String, Boolean> result = (Map<String, Boolean>)event.getRewriteContext().get(ClassificationServiceCache.class); if (result == null) { result = Collections.synchronizedMap(new LRUMap(30000)); event.getRewriteContext().put(ClassificationServiceCache.class, result); } return result; }
[ "Keep a cache of items files associated with classification in order to improve performance." ]
[ "Import user from file.", "Unmarshal test suite from given file.", "The grammar elements that may occur at the given offset.", "Return all server groups for a profile\n\n@param profileId ID of profile\n@return collection of ServerGroups for a profile", "Read all child tasks for a given parent.\n\n@param parentTask parent task", "Record operation for sync ops 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 opTimeUs The number of us for the op to finish", "Emits a change event for the given document id.\n\n@param nsConfig the configuration for the namespace to which the\ndocument referred to by the change event belongs.\n@param event the change event.", "Used to determine if the current method should be ignored.\n\n@param name method name\n@return true if the method should be ignored", "Processes the template for all foreignkeys of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"" ]
protected String getQueryModifier() { String queryModifier = parseOptionalStringValue(m_configObject, JSON_KEY_QUERY_MODIFIER); return (null == queryModifier) && (null != m_baseConfig) ? m_baseConfig.getGeneralConfig().getQueryModifier() : queryModifier; }
[ "Returns the optional query modifier.\n@return the optional query modifier." ]
[ "Set the association in the entry state.\n\n@param collectionRole the role of the association\n@param association the association", "Report on the filtered data in DMR .", "Stop finding signatures for all active players.", "Sets a string that will be prepended to the JAR file's data.\n\n@param value the prefix, or {@code null} for none.\n@return {@code this}", "The local event will decide the next state of the document in question.\n\n@param <T> the type of class represented by the document in the change event.\n@return the local full document which may be null.", "Returns the next power of 2 after the input value x.\n\n@param x Input value x.\n@return Returns the next power of 2 after the input value x.", "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken", "Random string from string array\n\n@param s Array\n@return String", "Builds the task hierarchy.\n\nNote that there are two distinct levels of organisation going on here. The first is the\nAsta \"summary\" organisation, where the user organises bars into summary groups. We are using this\nto create our hierarchy of tasks.\n\nThe second level displayed within a summary group (or at the project level if the user has not\ncreated summary groups) is the WBS. At the moment we are not including the WBS in the hierarchy.\n\n@param bars bar data\n@param expandedTasks expanded task data\n@param tasks task data\n@param milestones milestone data\n@return list containing the top level tasks" ]
@SuppressWarnings("deprecation") public static boolean isTimeInRange(java.sql.Time start, java.sql.Time end, java.util.Date d) { d = new java.sql.Time(d.getHours(), d.getMinutes(), d.getSeconds()); if (start == null || end == null) { return false; } if (start.before(end) && (!(d.after(start) && d.before(end)))) { return false; } if (end.before(start) && (!(d.after(end) || d.before(start)))) { return false; } return true; }
[ "Tells you if the date part of a datetime is in a certain time range." ]
[ "Gets the index input list.\n\n@return the index input list", "Find documents using an index\n\n@param selectorJson String representation of a JSON object describing criteria used to\nselect documents. For example:\n{@code \"{ \\\"selector\\\": {<your data here>} }\"}.\n@param classOfT The class of Java objects to be returned\n@param <T> the type of the Java object to be returned\n@return List of classOfT objects\n@see #findByIndex(String, Class, FindByIndexOptions)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/cloudant_query.html#selector-syntax\"\ntarget=\"_blank\">selector syntax</a>\n@deprecated Use {@link #query(String, Class)} instead", "Formats the value provided with the specified DateTimeFormat", "Scales the weights of this crfclassifier by the specified weight\n\n@param scale", "Helper method to get a list of node ids.\n\n@param nodeList", "Set the replace of the uri and return the new URI.\n\n@param initialUri the starting URI, the URI to update\n@param path the path to set on the baeURI", "Computes the MD5 value of the input stream\n\n@param input\n@return\n@throws IOException\n@throws IllegalStateException", "The Baseline Start field shows the planned beginning date for a task at\nthe time you saved a baseline. Information in this field becomes available\nwhen you set a baseline.\n\n@return Date", "Remove all existing subscriptions" ]
public static long count(nitro_service service, String ciphergroupname) throws Exception{ sslcipher_individualcipher_binding obj = new sslcipher_individualcipher_binding(); obj.set_ciphergroupname(ciphergroupname); options option = new options(); option.set_count(true); sslcipher_individualcipher_binding response[] = (sslcipher_individualcipher_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
[ "Use this API to count sslcipher_individualcipher_binding resources configued on NetScaler." ]
[ "Set a custom response for this path\n\n@param pathName name of path\n@param customResponse value of custom response\n@return true if success, false otherwise\n@throws Exception exception", "Send a packet to the target device telling it to load the specified track from the specified source player.\n\n@param target an update from the player that you want to have load a track\n@param rekordboxId the identifier of a track within the source player's rekordbox database\n@param sourcePlayer the device number of the player from which the track should be loaded\n@param sourceSlot the media slot from which the track should be loaded\n@param sourceType the type of track to be loaded\n\n@throws IOException if there is a problem sending the command\n@throws IllegalStateException if the {@code VirtualCdj} is not active", "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)", "Return the value of field in the data argument if it is not the default value for the class. If it is the default\nthen null is returned.", "generate a message for loglevel WARN\n\n@param pObject the message Object", "Start the rendering of the scalebar.", "Sets all Fluo properties to their default in the given configuration. NOTE - some properties do\nnot have defaults and will not be set.", "Checks whether the given field definition is used as the primary key of a class referenced by\na reference.\n\n@param modelDef The model\n@param fieldDef The current field descriptor def\n@return The reference that uses the field or <code>null</code> if the field is not used in this way", "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" ]
private void readTasks(Integer id) { Integer currentID = id; Table table = getTable("WBSTAB"); while (currentID.intValue() != 0) { MapRow row = table.find(currentID); Task task = m_projectFile.getTaskByUniqueID(row.getInteger("TASK_ID")); readLeafTasks(task, row.getInteger("FIRST_CHILD_TASK_ID")); Integer childID = row.getInteger("CHILD_ID"); if (childID.intValue() != 0) { readTasks(childID); } currentID = row.getInteger("NEXT_ID"); } }
[ "Read leaf tasks attached to the WBS.\n\n@param id initial WBS ID" ]
[ "Sets the left padding character for all cells in the row.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "Returns the query string currently in the text field.\n\n@return the query string", "Write the domain controller's data to an output stream.\n\n@param outstream the output stream\n@throws Exception", "Look up the database server port reported by a given player. You should not use this port directly; instead\nask this class for a session to use while you communicate with the database.\n\n@param player the player number of interest\n\n@return the port number on which its database server is running, or -1 if unknown\n\n@throws IllegalStateException if not running", "Map the EventType.\n\n@param eventType the event type\n@return the event", "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return", "Check whether error handling works. If it works, you should see an\nok, otherwise, you might see the actual error message and then\nthe program exits.", "Retrieve the correct calendar for a resource.\n\n@param calendarID calendar ID\n@return calendar for resource", "Updates the value in HashMap and writeBack as Atomic step" ]
public Response remove(String id, String rev) { assertNotEmpty(id, "id"); assertNotEmpty(id, "rev"); return db.remove(ensureDesignPrefix(id), rev); }
[ "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}" ]
[ "Function to perform forward pooling", "Generates a torque schema for the model.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"", "Populate data for analytics.", "Utility method used to convert a Number into a BigInteger.\n\n@param value Number instance\n@return BigInteger instance", "The list of device types on which this application can run.", "Finds the first mesh in the given model.\n@param model root of a model loaded by the asset loader.\n@return GVRMesh found or null if model does not contain meshes\n@see #loadMesh(GVRAndroidResource.MeshCallback, GVRAndroidResource, int)", "Retrieve a work week which applies to this date.\n\n@param date target date\n@return work week, or null if none match this date", "Put everything smaller than days at 0\n@param cal calendar to be cleaned", "Returns the mode in the Collection. If the Collection has multiple modes, this method picks one\narbitrarily." ]
public String getLinkColor(JSONObject jsonObject){ if(jsonObject == null) return null; try { return jsonObject.has("color") ? jsonObject.getString("color") : ""; } catch (JSONException e) { Logger.v("Unable to get Link Text Color with JSON - "+e.getLocalizedMessage()); return null; } }
[ "Returns the text color for the JSONObject of Link provided\n@param jsonObject of Link\n@return String" ]
[ "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner.", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Reads color table as 256 RGB integer values.\n\n@param ncolors int number of colors to read.\n@return int array containing 256 colors (packed ARGB with full alpha).", "Creates a Source Processor\n\n@param source the data source itself\n@param parallelism the parallelism of this processor\n@param description the description of this processor\n@param taskConf the configuration of this processor\n@param system actor system\n@return the new created source processor", "Write project properties.\n\n@param record project properties\n@throws IOException", "Calculate the value of a caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity\n@param optionStrike The option strike.\n@param periodLength The period length of the underlying forward rate.\n@param discountFactor The discount factor corresponding to the payment date (option maturity + period length).\n@return Returns the value of a caplet under the Black'76 model", "Calculates the bar width and bar margin based on the _DataSize and settings and starts the boundary\ncalculation in child classes.\n@param _DataSize Amount of data sets", "Removes a tag from the task. Returns an empty data block.\n\n@param task The task to remove a tag from.\n@return Request object", "Creates a new ServerDetails object for deployer, this will take URL and name from the oldDeployer ServerDetails" ]
private void readResource(Document.Resources.Resource resource) { Resource mpxjResource = m_projectFile.addResource(); mpxjResource.setName(resource.getName()); mpxjResource.setResourceCalendar(m_calendarMap.get(resource.getCalendarID())); mpxjResource.setStandardRate(new Rate(resource.getCost(), resource.getCostTimeUnit())); mpxjResource.setEmailAddress(resource.getEMail()); mpxjResource.setGroup(resource.getGroup()); //resource.getHyperlinks() mpxjResource.setUniqueID(resource.getID()); //resource.getMarkerID() mpxjResource.setNotes(resource.getNote()); mpxjResource.setID(Integer.valueOf(resource.getOutlineNumber())); //resource.getStyleProject() mpxjResource.setType(resource.getSubType() == null ? resource.getType() : resource.getSubType()); }
[ "Reads a single resource from a ConceptDraw PROJECT file.\n\n@param resource ConceptDraw PROJECT resource" ]
[ "Initialize elements from the duration panel.", "Use this API to clear gslbldnsentries.", "Performs a transpose across block sub-matrices. Reduces\nthe number of cache misses on larger matrices.\n\n*NOTE* If this is beneficial is highly dependent on the computer it is run on. e.g:\n- Q6600 Almost twice as fast as standard.\n- Pentium-M Same speed and some times a bit slower than standard.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified.\n@param blockLength Length of a block.", "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", "Parse the string representation of a timestamp.\n\n@param value string representation\n@return Java representation", "Extract data for a single calendar.\n\n@param row calendar data", "Check that an array only contains elements that are not null.\n@param values, can't be null\n@return", "Tests correctness. Try\nfrom=1000, to=10000\nfrom=200, to=1000\nfrom=16, to=1000\nfrom=1000, to=Integer.MAX_VALUE", "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map" ]
public void writeTo(DataOutput outstream) throws Exception { S3Util.writeString(host, outstream); outstream.writeInt(port); S3Util.writeString(protocol, outstream); }
[ "Write the domain controller's data to an output stream.\n\n@param outstream the output stream\n@throws Exception" ]
[ "Determines the accessor method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Gets the node meta data.\n\n@param key - the meta data key\n@return the node meta data value for this key", "Reads a row of a CSV file and populates the bean, using the supplied name mapping to map column values to the\nappropriate fields. If processors are supplied then they are used, otherwise the raw String values will be used.\n\n@param bean\nthe bean to populate\n@param nameMapping\nthe name mapping array\n@param processors\nthe (optional) cell processors\n@return the populated bean, or null if EOF was reached\n@throws IllegalArgumentException\nif nameMapping.length != number of CSV columns read\n@throws IOException\nif an I/O error occurred\n@throws NullPointerException\nif bean or nameMapping are null\n@throws SuperCsvConstraintViolationException\nif a CellProcessor constraint failed\n@throws SuperCsvException\nif there was a general exception while reading/processing\n@throws SuperCsvReflectionException\nif there was an reflection exception while mapping the values to the bean", "Await the completion of all currently active operations.\n\n@param timeout the timeout\n@param unit the time unit\n@return {@code } false if the timeout was reached and there were still active operations\n@throws InterruptedException", "We want to get the best result possible as this value\nis used to determine what work needs to be recovered.\n\n@return", "Use this API to update cacheselector.", "Count the total number of queued resource requests for all queues. The\nresult is \"approximate\" in the face of concurrency since individual\nqueues can change size during the aggregate count.\n\n@return The (approximate) aggregate count of queued resource requests.", "Issue the database statements to drop the table associated with a class.\n\n<p>\n<b>WARNING:</b> This is [obviously] very destructive and is unrecoverable.\n</p>\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be dropped.\n@param ignoreErrors\nIf set to true then try each statement regardless of {@link SQLException} thrown previously.\n@return The number of statements executed to do so.", "Configures a worker pool for the converter.\n\n@param corePoolSize The core pool size of the worker pool.\n@param maximumPoolSize The maximum pool size of the worker pool.\n@param keepAliveTime The keep alive time of the worker pool.\n@param unit The time unit of the specified keep alive time.\n@return This builder instance." ]
private void renderThumbnail(Video video) { Picasso.with(getContext()).cancelRequest(thumbnail); Picasso.with(getContext()) .load(video.getThumbnail()) .placeholder(R.drawable.placeholder) .into(thumbnail); }
[ "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail." ]
[ "Copy one Gradient into another.\n@param g the Gradient to copy into", "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", "Put the core auto-code algorithm here so an external class can call it", "Gets information about this user.\n@param fields the optional fields to retrieve.\n@return info about this user.", "k\nReturns a list of artifact regarding the filters\n\n@return List<DbArtifact>", "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", "Counts the number of lines.\n\n@param str the input string\n@return Returns the number of lines terminated by '\\n' in string", "create a HTTP POST request.\n\n@return {@link HttpConnection}", "Close it and ignore any exceptions." ]
private void populateResourceAssignment(Record record, ResourceAssignment assignment) throws MPXJException { // // Handle malformed MPX files - ensure that we can locate the resource // using either the Unique ID attribute or the ID attribute. // Resource resource = m_projectFile.getResourceByUniqueID(record.getInteger(12)); if (resource == null) { resource = m_projectFile.getResourceByID(record.getInteger(0)); } assignment.setUnits(record.getUnits(1)); assignment.setWork(record.getDuration(2)); assignment.setBaselineWork(record.getDuration(3)); assignment.setActualWork(record.getDuration(4)); assignment.setOvertimeWork(record.getDuration(5)); assignment.setCost(record.getCurrency(6)); assignment.setBaselineCost(record.getCurrency(7)); assignment.setActualCost(record.getCurrency(8)); assignment.setStart(record.getDateTime(9)); assignment.setFinish(record.getDateTime(10)); assignment.setDelay(record.getDuration(11)); // // Calculate the remaining work // Duration work = assignment.getWork(); Duration actualWork = assignment.getActualWork(); if (work != null && actualWork != null) { if (work.getUnits() != actualWork.getUnits()) { actualWork = actualWork.convertUnits(work.getUnits(), m_projectFile.getProjectProperties()); } assignment.setRemainingWork(Duration.getInstance(work.getDuration() - actualWork.getDuration(), work.getUnits())); } if (resource != null) { assignment.setResourceUniqueID(resource.getUniqueID()); resource.addResourceAssignment(assignment); } m_eventManager.fireAssignmentReadEvent(assignment); }
[ "Populate a resource assignment.\n\n@param record MPX record\n@param assignment resource assignment\n@throws MPXJException" ]
[ "Standard doclet entry point\n@param root\n@return", "Un-serialize a Json into Module\n@param module String\n@return Module\n@throws IOException", "Process encoded payload.\n\n@throws IOException Signals that an I/O exception has occurred.", "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.", "Returns a SimpleConfiguration clientConfig with properties set from this configuration\n\n@return SimpleConfiguration", "Print a duration value.\n\n@param value Duration instance\n@return string representation of a duration", "The user to remove can be referenced by their globally unique user ID or their email address.\nRemoves the user from the specified team. Returns an empty data record.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Sets the delegate of the service, that gets notified of the\nstatus of message delivery.\n\nNote: This option has no effect when using non-blocking\nconnections." ]
private String getDateTimeString(Date value) { String result = null; if (value != null) { Calendar cal = DateHelper.popCalendar(value); StringBuilder sb = new StringBuilder(16); sb.append(m_fourDigitFormat.format(cal.get(Calendar.YEAR))); sb.append(m_twoDigitFormat.format(cal.get(Calendar.MONTH) + 1)); sb.append(m_twoDigitFormat.format(cal.get(Calendar.DAY_OF_MONTH))); sb.append('T'); sb.append(m_twoDigitFormat.format(cal.get(Calendar.HOUR_OF_DAY))); sb.append(m_twoDigitFormat.format(cal.get(Calendar.MINUTE))); sb.append(m_twoDigitFormat.format(cal.get(Calendar.SECOND))); sb.append('Z'); result = sb.toString(); DateHelper.pushCalendar(cal); } return result; }
[ "Convert a Java date into a Planner date-time string.\n\n20070222T080000Z\n\n@param value Java date\n@return Planner date-time string" ]
[ "Returns true if required properties for FluoClient are set", "Retrieve a field from a particular entity using its alias.\n\n@param typeClass the type of entity we are interested in\n@param alias the alias\n@return the field type referred to be the alias, or null if not found", "Updates the information about the user status for this terms of service with any info fields that have\nbeen modified locally.\n@param info the updated info.", "Generates a torque schema for the model.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"", "Merge a subtree.\n\n@param targetRegistry the target registry\n@param subTree the subtree", "Start the operation by instantiating the first job instance in a separate Thread.\n\n@param arguments {@inheritDoc}", "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", "Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The index descriptor definition or <code>null</code> if there is no such index", "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" ]
public static boolean queryHasResult(Statement stmt, String sql) { try { ResultSet rs = stmt.executeQuery(sql); try { return rs.next(); } finally { rs.close(); } } catch (SQLException e) { throw new DukeException(e); } }
[ "Returns true if the query result has at least one row." ]
[ "Starts recursive insert on all insert objects object graph", "Counts the number of lines.\n\n@param str the input string\n@return Returns the number of lines terminated by '\\n' in string", "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown", "Creates an InputObjectStream and an OutputObjectStream from a Socket, and\npasses them to the closure. The streams will be closed after the closure\nreturns, even if an exception is thrown.\n\n@param socket this Socket\n@param closure a Closure\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 1.5.0", "get the result speech recognize and find match in strings file.\n\n@param speechResult", "Checks that locking and update-lock are only used for fields of TIMESTAMP or INTEGER type.\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", "Adds a parameter that requires a string argument to the argument list.\nIf the given argument is null, then the argument list remains unchanged.", "Handle click on \"Add\" button.\n@param e the click event.", "Unlock all edited resources." ]
@SuppressWarnings({"unused", "WeakerAccess"}) public void recordScreen(String screenName){ if(screenName == null || (!currentScreenName.isEmpty() && currentScreenName.equals(screenName))) return; getConfigLogger().debug(getAccountId(), "Screen changed to " + screenName); currentScreenName = screenName; recordPageEventWithExtras(null); }
[ "Record a Screen View event\n@param screenName String, the name of the screen" ]
[ "Specifies the list of enrichers that will be used to enrich the container object.\n\n@param enrichers\nlist of enrichers that will be used to enrich the container object\n\n@return the current builder instance", "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix.", "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.", "Compute the location of the generated file from the given trace file.", "Compose src onto dst using the alpha of sel to interpolate between the two.\nI can't think of a way to do this using AlphaComposite.\n@param src the source raster\n@param dst the destination raster\n@param sel the mask raster", "Retrieve the Activity ID value for this task.\n@param task Task instance\n@return Activity ID value", "Lookup an object instance from JNDI context.\n\n@param jndiName JNDI lookup name\n@return Matching object or <em>null</em> if none found.", "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", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}" ]
public static sslaction get(nitro_service service, String name) throws Exception{ sslaction obj = new sslaction(); obj.set_name(name); sslaction response = (sslaction) obj.get_resource(service); return response; }
[ "Use this API to fetch sslaction resource of given name ." ]
[ "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)", "Parse the XML for a collection as returned by getTree call.\n\n@param collectionElement\n@return", "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", "Retrieve the effective calendar for this task. If the task does not have\na specific calendar associated with it, fall back to using the default calendar\nfor the project.\n\n@return ProjectCalendar instance", "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>.", "Split a module Id to get the module name\n@param moduleId\n@return String", "Has to be called when the scenario is finished in order to execute after methods.", "Sets the debug JPDA remote socket debugging argument.\n\n@param suspend {@code true} to suspend otherwise {@code false}\n@param port the port to listen on\n\n@return the builder" ]
public void setWeekDays(SortedSet<WeekDay> weekDays) { final SortedSet<WeekDay> newWeekDays = null == weekDays ? new TreeSet<WeekDay>() : weekDays; SortedSet<WeekDay> currentWeekDays = m_model.getWeekDays(); if (!currentWeekDays.equals(newWeekDays)) { conditionallyRemoveExceptionsOnChange(new Command() { public void execute() { m_model.setWeekDays(newWeekDays); onValueChange(); } }, !newWeekDays.containsAll(m_model.getWeekDays())); } }
[ "Set the weekdays at which the event should take place.\n@param weekDays the weekdays at which the event should take place." ]
[ "Sets the seed for random number generator", "Converts the search results from CmsSearchResource to CmsSearchResourceBean.\n@param searchResults The collection of search results to transform.", "Use this API to fetch appfwprofile resource of given name .", "change server state between OFFLINE_SERVER and NORMAL_SERVER\n\n@param setToOffline True if set to OFFLINE_SERVER", "Finish a state transition from a notification.\n\n@param current\n@param next", "Adds the complex number with a scalar value.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the add of specified complex number with scalar value.", "Get FieldDescriptor from joined superclass.", "Use this API to add sslcipher.", "Sets the SyncFrequency on this collection.\n\n@param syncFrequency the SyncFrequency that contains all the desired options\n\n@return A Task that completes when the SyncFrequency has been updated" ]
public void initialize() { this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessagePriority.High)); this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.MemoryGetId, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.MemoryGetId, SerialMessage.SerialMessagePriority.High)); this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.SerialApiGetCapabilities, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.SerialApiGetCapabilities, SerialMessage.SerialMessagePriority.High)); }
[ "Initializes communication with the Z-Wave controller stick." ]
[ "bootstrap method for method calls with \"this\" as receiver\n@deprecated since Groovy 2.1.0", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Read the version number.\n\n@param is input stream", "Use this API to fetch dnstxtrec resources of given names .", "Creates a region from a name and a label.\n\n@param name the uniquely identifiable name of the region\n@param label the label of the region\n@return the newly created region", "Starts recursive delete on all delete objects object graph", "Updates the template with the specified id.\n\n@param id id of the template to update\n@param options a Map of options to update/add.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Sets whether an individual list value is selected.\n\n@param value the value of the item to be selected or unselected\n@param selected <code>true</code> to select the item", "Build data model for serialization." ]
public String getUnicodeString(Integer type) { String result = null; byte[] item = m_map.get(type); if (item != null) { result = MPPUtility.getUnicodeString(item, 0); } return (result); }
[ "Retrieves a string value from the property data.\n\n@param type Type identifier\n@return string value" ]
[ "Adds one statement to the list of statements to be kept, possibly merging\nit with other statements to be kept if possible. When two existing\nstatements are merged, one of them will be updated and the other will be\nmarked for deletion.\n\n@param statement\nstatement to add\n@param isNew\nif true, the statement should be marked for writing; if false,\nthe statement already exists in the current data and is only\nadded to remove duplicates and avoid unnecessary writes", "Gets the Java subclass of GVRShader which implements\nthis shader type.\n@param ctx GVRContext shader is associated with\n@return GVRShader class implementing the shader type", "Get the root path where the build is located, the project may be checked out to\na sub-directory from the root workspace location.\n\n@param globalEnv EnvVars to take the workspace from, if workspace is not found\nthen it is take from project.getSomeWorkspace()\n@return The location of the root of the Gradle build.\n@throws IOException\n@throws InterruptedException", "Randomly generates matrix with the specified number of matrix elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum value\n@param max maximum value\n@param rand Random number generated\n@return Randomly generated matrix", "Adds an object to the Index. If it was already in the Index,\nthen nothing is done. If it is not in the Index, then it is\nadded iff the Index hasn't been locked.\n\n@return true if the item was added to the index and false if the\nitem was already in the index or if the index is locked", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance", "Validates the inputed color value.\n@param colorvalue the value of the color\n@return true if the inputed color value is valid", "Generate a unique ID across the cluster\n@return generated ID", "Returns an iterator that iterates over all elements greater or equal to key in ascending order\n\n@param key key\n@return iterator" ]
public <T> T callFunction( final String name, final List<?> args, final @Nullable Long requestTimeout, final Class<T> resultClass, final CodecRegistry codecRegistry ) { return this.functionService .withCodecRegistry(codecRegistry) .callFunction(name, args, requestTimeout, resultClass); }
[ "Calls the specified Stitch function, and decodes the response into an instance of the specified\ntype. The response will be decoded using the codec registry given.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.\n@param resultClass the class that the Stitch response should be decoded as.\n@param <T> the type into which the Stitch response will be decoded.\n@param codecRegistry the codec registry that will be used to encode/decode the function call.\n@return the decoded value." ]
[ "Output the SQL type for the default value for the type.", "Constraint that ensures that the field has a length if the jdbc type requires it.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Determines whether a project has the specified publisher type, wrapped by the \"Flexible Publish\" publisher.\n@param project The project\n@param type The type of the publisher\n@return true if the project contains a publisher of the specified type wrapped by the \"Flexible Publish\" publisher.", "Remove a key for all language versions. If a descriptor is present, the key is only removed in the descriptor.\n\n@param key the key to remove.\n@return <code>true</code> if removing was successful, <code>false</code> otherwise.", "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.", "Assigns this retention policy to a metadata template, optionally with certain field values.\n@param templateID the ID of the metadata template to apply to.\n@param fieldFilters optional field value filters.\n@return info about the created assignment.", "Inserts an array of Parcelable values into the mapping of the underlying Bundle, replacing any\nexisting value for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value an array of Parcelable objects, or null\n@return this bundler instance to chain method calls", "Lists the formation info for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.", "Calls a method from editService to update the repeat number for a path\n\n@param model\n@param newNum\n@param path_id\n@param clientUUID\n@return\n@throws Exception" ]
public List<Long> getOffsets(OffsetRequest offsetRequest) { ILog log = getLog(offsetRequest.topic, offsetRequest.partition); if (log != null) { return log.getOffsetsBefore(offsetRequest); } return ILog.EMPTY_OFFSETS; }
[ "read offsets before given time\n\n@param offsetRequest the offset request\n@return offsets before given time" ]
[ "Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "Given a RendererViewHolder passed as argument and a position renders the view using the\nRenderer previously stored into the RendererViewHolder.\n\n@param viewHolder with a Renderer class inside.\n@param position to render.", "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day", "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", "Returns first enum constant found..\n\n@param styleName Space-separated list of styles\n@param enumClass Type of enum\n@param defaultValue Default value of no match was found\n@return First enum constant found or default value", "Removes an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return this metadata object.", "To store an object in a quick & dirty way.", "return the ctc costs and gradients, given the probabilities and labels" ]
public final boolean getBoolean(String name) { boolean result = false; Boolean value = (Boolean) getObject(name); if (value != null) { result = BooleanHelper.getBoolean(value); } return result; }
[ "Retrieve a boolean value.\n\n@param name column name\n@return boolean value" ]
[ "Get the subsystem deployment model root.\n\n<p>\nIf the subsystem resource does not exist one will be created.\n</p>\n\n@param subsystemName the subsystem name.\n\n@return the model", "end AnchorImplementation class", "Add all elements in the iterator to the collection.\n\n@param target\n@param iterator\n@return true if the target was modified, false otherwise", "Makes object obj persistent in the underlying persistence system.\nE.G. by INSERT INTO ... or UPDATE ... in an RDBMS.\nThe ObjectModification parameter can be used to determine whether INSERT or update is to be used.\nThis functionality is typically called from transaction managers, that\ntrack which objects have to be stored. If the object is an unmaterialized\nproxy the method return immediately.", "The click handler for the add button.", "Add a clause where the ID is from an existing object.", "Instantiate Service Locator client. After successful instantiation\nestablish a connection to the Service Locator server. This method will be\ncalled if property locatorClient is null. For this purpose was defined\nadditional properties to instantiate ServiceLocatorImpl.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Convert JsonString to Object of Clazz\n\n@param json\n@param clazz\n@return Object of Clazz", "Report all Java ClassFile files available on the class path within\nthe specified packages and sub packages.\n\n@see #detect(File...)" ]
public static void unregisterMbean(ObjectName name) { try { ManagementFactory.getPlatformMBeanServer().unregisterMBean(name); } catch(Exception e) { logger.error("Error unregistering mbean", e); } }
[ "Unregister the mbean with the given name from the platform mbean server\n\n@param name The name of the mbean to unregister" ]
[ "Use this API to fetch statistics of rnatip_stats resource of given name .", "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.", "Sets a client option per-request\n\n@param key Option name\n@param value Option value\n@return The request itself", "Part of the endOfRun process that needs the database. May be deferred if the database is not available.", "Creates a directory at the given path if it does not exist yet and if the\ndirectory manager was not configured for read-only access.\n\n@param path\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Creates a CSS rgb specification from a PDF color\n@param pdcolor\n@return the rgb() string", "Exports a single queue to an XML file.", "returns IsolationLevel literal as matching\nto the corresponding id\n@return the IsolationLevel literal", "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert." ]
@UiHandler("m_currentTillEndCheckBox") void onCurrentTillEndChange(ValueChangeEvent<Boolean> event) { if (handleChange()) { m_controller.setCurrentTillEnd(event.getValue()); } }
[ "Handle a \"current till end\" change event.\n@param event the change event." ]
[ "Invoke the operation.\n@param parameterMap the {@link Map} of parameter names to value arrays.\n@return the {@link Object} return value from the operation.\n@throws JMException Java Management Exception", "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map", "Sets the queue.\n\n@param queue the new queue", "Send a data to Incoming Webhook endpoint.", "Return fallback if first string is null or empty", "Print a work group.\n\n@param value WorkGroup instance\n@return work group value", "After cluster management operations, i.e. reset quota and recover quota\nenforcement settings", "Gets the list of failed invocations that has been collected by this collector.\n\n@return The failed invocations.", "Runs a Story with the given steps factory, applying the given meta\nfilter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param stepsFactory the InjectableStepsFactory used to created the\ncandidate steps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@param beforeStories the State before running any of the stories, if not\n<code>null</code>\n\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown." ]
private DBHandling createDBHandling() throws BuildException { if ((_handling == null) || (_handling.length() == 0)) { throw new BuildException("No handling specified"); } try { String className = "org.apache.ojb.broker.platforms."+ Character.toTitleCase(_handling.charAt(0))+_handling.substring(1)+ "DBHandling"; Class handlingClass = ClassHelper.getClass(className); return (DBHandling)handlingClass.newInstance(); } catch (Exception ex) { throw new BuildException("Invalid handling '"+_handling+"' specified"); } }
[ "Creates a db handling object.\n\n@return The db handling object\n@throws BuildException If the handling is invalid" ]
[ "Bessel function of the first kind, of order n.\n\n@param n Order.\n@param x Value.\n@return I value.", "Add a greeting to the specified guestbook.", "Applies the mask to this address and then compares values with the given address\n\n@param mask\n@param other\n@return", "Print a resource UID.\n\n@param value resource UID value\n@return resource UID string", "Returns the locale specified by the named scoped attribute or context\nconfiguration parameter.\n\n<p> The named scoped attribute is searched in the page, request,\nsession (if valid), and application scope(s) (in this order). If no such\nattribute exists in any of the scopes, the locale is taken from the\nnamed context configuration parameter.\n\n@param pageContext the page in which to search for the named scoped\nattribute or context configuration parameter\n@param name the name of the scoped attribute or context configuration\nparameter\n\n@return the locale specified by the named scoped attribute or context\nconfiguration parameter, or <tt>null</tt> if no scoped attribute or\nconfiguration parameter with the given name exists", "Get a property as a boolean or null.\n\n@param key the property name", "Processes an object cache tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the object-cache as name-value pairs 'name=value',\[email protected] name=\"class\" optional=\"false\" description=\"The object cache implementation\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the object cache\"", "Returns the string id of the entity that this document refers to. Only\nfor use by Jackson during serialization.\n\n@return string id", "Closes the output. Should be called after the JSON serialization was\nfinished.\n\n@throws IOException\nif there was a problem closing the output" ]
protected long getUniqueLong(FieldDescriptor field) throws SequenceManagerException { boolean needsCommit = false; long result = 0; /* arminw: use the associated broker instance, check if broker was in tx or we need to commit used connection. */ PersistenceBroker targetBroker = getBrokerForClass(); if(!targetBroker.isInTransaction()) { targetBroker.beginTransaction(); needsCommit = true; } try { // lookup sequence name String sequenceName = calculateSequenceName(field); try { result = buildNextSequence(targetBroker, field.getClassDescriptor(), sequenceName); /* if 0 was returned we assume that the stored procedure did not work properly. */ if (result == 0) { throw new SequenceManagerException("No incremented value retrieved"); } } catch (Exception e) { // maybe the sequence was not created log.info("Could not grab next key, message was " + e.getMessage() + " - try to write a new sequence entry to database"); try { // on create, make sure to get the max key for the table first long maxKey = SequenceManagerHelper.getMaxForExtent(targetBroker, field); createSequence(targetBroker, field, sequenceName, maxKey); } catch (Exception e1) { String eol = SystemUtils.LINE_SEPARATOR; throw new SequenceManagerException(eol + "Could not grab next id, failed with " + eol + e.getMessage() + eol + "Creation of new sequence failed with " + eol + e1.getMessage() + eol, e1); } try { result = buildNextSequence(targetBroker, field.getClassDescriptor(), sequenceName); } catch (Exception e1) { throw new SequenceManagerException("Could not grab next id although a sequence seems to exist", e); } } } finally { if(targetBroker != null && needsCommit) { targetBroker.commitTransaction(); } } return result; }
[ "Gets the actual key - will create a new row with the max key of table if it\ndoes not exist.\n@param field\n@return\n@throws SequenceManagerException" ]
[ "Increases the maximum number of columns in the matrix.\n@param desiredColumns Desired number of columns.\n@param preserveValue If the array needs to be expanded should it copy the previous values?", "Browse groups for the given category ID. If a null value is passed for the category then the root category is used.\n\n@param catId\nThe optional category id. Null value will be ignored.\n@return The Collection of Photo objects\n@throws FlickrException\n@deprecated Flickr returns just empty results", "This method returns the value of the product under the specified model and other information in a key-value map.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model A model used to evaluate the product.\n@return The values of the product.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Use this API to clear gslbldnsentries.", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"", "Retrieves the content of the filename. Also reads from JAR Searches for the resource in the\nroot folder in the jar\n\n@param fileName Filename.\n@return The contents of the file.\n@throws IOException On error.", "Transform the given object into an array of bytes\n\n@param object The object to be serialized\n@return The bytes created from serializing the object", "Returns this applications' context path.\n@return context path.", "Use this API to delete cacheselector of given name." ]
private static boolean isAssignableFrom(Type from, ParameterizedType to, Map<String, Type> typeVarMap) { if (from == null) { return false; } if (to.equals(from)) { return true; } // First figure out the class and any type information. Class<?> clazz = getRawType(from); ParameterizedType ptype = null; if (from instanceof ParameterizedType) { ptype = (ParameterizedType) from; } // Load up parameterized variable info if it was parameterized. if (ptype != null) { Type[] tArgs = ptype.getActualTypeArguments(); TypeVariable<?>[] tParams = clazz.getTypeParameters(); for (int i = 0; i < tArgs.length; i++) { Type arg = tArgs[i]; TypeVariable<?> var = tParams[i]; while (arg instanceof TypeVariable) { TypeVariable<?> v = (TypeVariable<?>) arg; arg = typeVarMap.get(v.getName()); } typeVarMap.put(var.getName(), arg); } // check if they are equivalent under our current mapping. if (typeEquals(ptype, to, typeVarMap)) { return true; } } for (Type itype : clazz.getGenericInterfaces()) { if (isAssignableFrom(itype, to, new HashMap<String, Type>( typeVarMap))) { return true; } } // Interfaces didn't work, try the superclass. Type sType = clazz.getGenericSuperclass(); if (isAssignableFrom(sType, to, new HashMap<String, Type>(typeVarMap))) { return true; } return false; }
[ "Private recursive helper function to actually do the type-safe checking\nof assignability." ]
[ "Adds the specified type to this frame, and returns a new object that implements this type.", "returns a sorted array of enum constants", "Reads input data from a JSON file in the output directory.", "Write flow id.\n\n@param message the message\n@param flowId the flow id", "Resolves the package type from the maven project.\n\n@param project the maven project\n\n@return the package type", "Used only for unit testing. Please do not use this method in other ways.\n\n@param key\n@return\n@throws Exception", "Complete the current operation and persist the current state to the disk. This will also trigger the invalidation\nof outdated modules.\n\n@param modification the current modification\n@param callback the completion callback", "Get the rate types set.\n\n@return the rate types set, or an empty array, but never null.", "Write a double attribute.\n\n@param name attribute name\n@param value attribute value" ]
@Override public String logFile() { if(logFile == null) { logFile = Config.getTmpDir()+Config.getPathSeparator()+"aesh.log"; } return logFile; }
[ "Get log file\n\n@return log file" ]
[ "Computes the householder vector used in QR decomposition.\n\nu = x / max(x)\nu(0) = u(0) + |u|\nu = u / u(0)\n\n@param x Input vector. Unmodified.\n@return The found householder reflector vector", "we have only one implementation on classpath.", "Create a forward curve from given times and discount factors.\n\nThe forward curve will have times.length-1 fixing times from times[0] to times[times.length-2]\n<code>\nforward[timeIndex] = (givenDiscountFactors[timeIndex]/givenDiscountFactors[timeIndex+1]-1.0) / (times[timeIndex+1] - times[timeIndex]);\n</code>\nNote: If time[0] &gt; 0, then the discount factor 1.0 will inserted at time 0.0\n\n@param name The name of this curve.\n@param times A vector of given time points.\n@param givenDiscountFactors A vector of given discount factors (corresponding to the given time points).\n@param paymentOffset The maturity of the underlying index modeled by this curve.\n@return A new ForwardCurve object.", "Create a HttpComponents HttpUriRequest object for the given HTTP method and URI specification.\n\n@param httpMethod the HTTP method\n@param uri the URI\n@return the HttpComponents HttpUriRequest object", "Removes all the given tags from the document.\n\n@param dom the document object.\n@param tagName the tag name, examples: script, style, meta\n@return the changed dom.", "Translates the Fluo row, column, and value set into the persistent format that is stored in\nAccumulo.\n\n<p>\nThe objects returned by this method are reused each time its called. So each time this is\ncalled it invalidates what was returned by previous calls to this method.\n\n@return A an array of Accumulo key values in correct sorted order.", "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Adds main report query.\n\n@param text\n@param language use constants from {@link DJConstants}\n@return" ]
public ChangesResult getChanges() { final URI uri = this.databaseHelper.changesUri("feed", "normal"); return client.get(uri, ChangesResult.class); }
[ "Requests Change notifications of feed type normal.\n\n@return {@link ChangesResult} encapsulating the normal feed changes" ]
[ "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to control the intensity of ambient light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Dumps the partition IDs per node in terms of zone n-ary type.\n\n@param cluster\n@param storeRoutingPlan\n@return pretty printed string of detailed zone n-ary type.", "Print time unit.\n\n@param value TimeUnit instance\n@return time unit value", "Execute all recorded tasks.\n\n@param context the patch context\n@param callback the finalization callback\n@throws Exception", "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given yield curve.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param rate The yield which is used for discounted the coupon payments.\n@param model The model under which the product is valued.\n@return The value of the bond for the given yield.", "Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance.", "Browse groups for the given category ID. If a null value is passed for the category then the root category is used.\n\n@param catId\nThe optional category id. Null value will be ignored.\n@return The Collection of Photo objects\n@throws FlickrException\n@deprecated Flickr returns just empty results", "Checks if a point is in the given rectangle.\n\n@param _Rect rectangle which is checked\n@param _X x-coordinate of the point\n@param _Y y-coordinate of the point\n@return True if the points intersects with the rectangle.", "Remove an write lock." ]
public Set<MetadataProvider> getMetadataProviders(MediaDetails sourceMedia) { String key = (sourceMedia == null)? "" : sourceMedia.hashKey(); Set<MetadataProvider> result = metadataProviders.get(key); if (result == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(new HashSet<MetadataProvider>(result)); }
[ "Get the set of metadata providers that can offer metadata for tracks loaded from the specified media.\n\n@param sourceMedia the media whose metadata providers are desired, or {@code null} to get the set of\nmetadata providers that can offer metadata for all media.\n\n@return any registered metadata providers that reported themselves as supporting tracks from that media" ]
[ "Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.\n\n@param map\nthe map\n@param nameMapping\nthe keys of the Map values to add to the List\n@return a List of all of the values in the Map whose key matches an entry in the nameMapping array\n@throws NullPointerException\nif map or nameMapping is null", "Writes the given configuration to the given file.", "Given a storedefinition, constructs the xml string to be sent out in\nresponse to a \"schemata\" fetch request\n\n@param storeDefinition\n@return serialized store definition", "Converts a sequence of unicode code points to a sequence of Java characters.\n\n@return the number of chars written to the destination buffer", "set the textColor of the ColorHolder to a view\n\n@param view", "Runs through the log removing segments until the size of the log is at least\nlogRetentionSize bytes in size\n\n@throws IOException", "Adjust submatrices and helper data structures for the input matrix. Must be called\nbefore the decomposition can be computed.\n\n@param orig", "The documentation for InputStream.skip indicates that it can bail out early, and not skip\nthe requested number of bytes. I've encountered this in practice, hence this helper method.\n\n@param stream InputStream instance\n@param skip number of bytes to skip", "Create a new builder for multiple unpaginated requests on the view.\n\n@param keyType {@link com.cloudant.client.api.views.Key.Type} of the key emitted by the\nview\n@param valueType class of the type of value emitted by the view\n@param <K> type of key emitted by the view\n@param <V> type of value emitted by the view\n@return a new {@link MultipleRequestBuilder} for the database view specified by this\nViewRequestBuilder" ]
public String getString(int field) { String result; if (field < m_fields.length) { result = m_fields[field]; if (result != null) { result = result.replace(MPXConstants.EOL_PLACEHOLDER, '\n'); } } else { result = null; } return (result); }
[ "Accessor method used to retrieve a String 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" ]
[ "Returns the path in the RFS where the Solr spellcheck files reside.\n@return String representation of Solrs spellcheck RFS path.", "Sets the right padding character for all cells in the row.\n@param paddingRightChar new padding character, ignored if null\n@return this to allow chaining", "Convert an Object to a Time.", "This method works as the one above, adding some properties to the message\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param properties\nto be added to the message\n@param connector\nThe connector to get the external access", "decides which icon to apply or hide this view\n\n@param imageHolder\n@param imageView\n@param iconColor\n@param tint", "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an integer (rounding might occur)", "for bpm connector", "Get CorrelationId from message.\n\n@param message the message\n@return correlationId or null if not set", "Pause between cluster change in metadata and starting server rebalancing\nwork." ]
public synchronized void addListener(CollectionProxyListener listener) { if (_listeners == null) { _listeners = new ArrayList(); } // to avoid multi-add of same listener, do check if(!_listeners.contains(listener)) { _listeners.add(listener); } }
[ "Adds a listener to this collection.\n\n@param listener The listener to add" ]
[ "Open the event stream\n\n@return true if successfully opened, false if not", "Convenience routine to move to the next iterator if needed.\n@return true if the iterator is changed, false if no changes.", "Add a EXISTS clause with a sub-query inside of parenthesis.\n\n<p>\n<b>NOTE:</b> The sub-query will be prepared at the same time that the outside query is.\n</p>", "Decides what are the preferred credentials to use for resolving the repo keys of the server\n\n@return Preferred credentials for repo resolving. Never null.", "Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL.\n\n@param cms the CmsObject to initialize for jumping to the favorite\n@return the link for the favorite location\n\n@throws CmsException if something goes wrong", "Helper for parsing properties\n@param p The properties object\n@param key The key to retrieve\n@param defaultValue The default value if the key does not exist\n@param used The set of keys we have seen\n@return The value of the property at the key", "Assign FK value to target object by reading PK values of referenced object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.\n@param referencedObject referenced object or proxy\n@param insert Show if \"linking\" is done while insert or update.", "Use this API to fetch all the cmpparameter resources that are configured on netscaler.", "Adds a materialization listener.\n\n@param listener\nThe listener to add" ]
public CmsJspInstanceDateBean getToInstanceDate() { if (m_instanceDate == null) { m_instanceDate = new CmsJspInstanceDateBean(getToDate(), m_cms.getRequestContext().getLocale()); } return m_instanceDate; }
[ "Converts a date to an instance date bean.\n@return the instance date bean." ]
[ "Sets a quota for a users.\n\n@param user the user.\n@param quota the quota.", "Creates a document for the resource without extracting the content. The aim is to get a content indexed,\neven if extraction runs into a timeout.\n\n@return the document for the resource generated if the content is discarded,\ni.e., only meta information are indexed.", "Use this API to fetch policydataset resource of given name .", "Set the value for a floating point 4x4 matrix.\n@param key name of uniform to set.\n@see #getFloatVec(String)", "Use this API to enable snmpalarm resources of given names.", "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists of RTFEmbeddedObject instances", "returns a dynamic Proxy that implements all interfaces of the\nclass described by this ClassDescriptor.\n\n@return Class the dynamically created proxy class", "Use this API to fetch all the systemuser resources that are configured on netscaler.", "Notifies that a content item is removed.\n\n@param position the position." ]
private static JsonNode findNestedNode(JsonNode jsonNode, String composedKey) { String[] jsonNodeKeys = splitKeyByFlatteningDots(composedKey); for (String jsonNodeKey : jsonNodeKeys) { jsonNode = jsonNode.get(unescapeEscapedDots(jsonNodeKey)); if (jsonNode == null) { return null; } } return jsonNode; }
[ "Given a json node, find a nested node using given composed key.\n\n@param jsonNode the parent json node\n@param composedKey a key combines multiple keys using flattening dots.\nFlattening dots are dot character '.' those are not preceded by slash '\\'\nEach flattening dot represents a level with following key as field key in that level\n@return nested json node located using given composed key" ]
[ "This method retrieves a string of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required string data", "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState", "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history", "Transforms a single configuration file using the given transformation source.\n\n@param file the configuration file\n@param transformSource the transform soruce\n\n@throws TransformerConfigurationException -\n@throws IOException -\n@throws SAXException -\n@throws TransformerException -\n@throws ParserConfigurationException -", "GetJob helper - String predicates are all created the same way, so this factors some code.", "Build the operation transformers.\n\n@param registry the shared resource registry\n@return the operation transformers", "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", "Attempt to resolve the given expression string, recursing if resolution of one string produces\nanother expression.\n\n@param expressionString the expression string from a node of {@link ModelType#EXPRESSION}\n@param ignoreDMRResolutionFailure {@code false} if {@link org.jboss.dmr.ModelNode#resolve() basic DMR resolution}\nfailures should be ignored, and {@code new ModelNode(expressionType.asString())} returned\n@param initial {@code true} if this call originated outside this method; {@code false} if it is a recursive call\n\n@return a node of {@link ModelType#STRING} where the encapsulated string is the resolved expression, or a node\nof {@link ModelType#EXPRESSION} if {@code ignoreDMRResolutionFailure} and {@code initial} are\n{@code true} and the string could not be resolved.\n\n@throws OperationFailedException if the expression cannot be resolved", "Patch provided by Avril Kotzen ([email protected])\nDB2 handles TINYINT (for mapping a byte)." ]
public static nd6ravariables[] get(nitro_service service, options option) throws Exception{ nd6ravariables obj = new nd6ravariables(); nd6ravariables[] response = (nd6ravariables[])obj.get_resources(service,option); return response; }
[ "Use this API to fetch all the nd6ravariables resources that are configured on netscaler." ]
[ "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "Create a JavadocComment, by formatting the text of the Javadoc using the given indentation.", "This method is provided to allow an absolute period of time\nrepresented by start and end dates into a duration in working\ndays based on this calendar instance. This method takes account\nof any exceptions defined for this calendar.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object", "Gets the or create protocol header.\n\n@param message the message\n@return the message headers map", "Get the collection of contacts for the calling user.\n\n@return The Collection of Contact objects", "Create a document that parses the tile's labelFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@param labelStyleInfo\nlabel style info\n@return graphics document\n@throws RenderException\ncannot render", "Package-protected method used to initiate operation execution.\n@return the result action", "File URLs whose protocol are in these list will be processed as jars\ncontaining classes\n\n@param fileProtocols\nComma separated list of file protocols that will be considered\nas jar files and scanned", "This method is used to retrieve the calendar associated\nwith a task. If no calendar is associated with a task, this method\nreturns null.\n\n@param task MSPDI task\n@return calendar instance" ]
public PhotoList<Photo> searchInterestingness(SearchParameters params, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INTERESTINGNESS); parameters.putAll(params.getAsParameters()); if (perPage > 0) { parameters.put("per_page", Integer.toString(perPage)); } if (page > 0) { parameters.put("page", Integer.toString(page)); } Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element photosElement = response.getPayload(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perpage")); photos.setTotal(photosElement.getAttribute("total")); NodeList photoNodes = photosElement.getElementsByTagName("photo"); for (int i = 0; i < photoNodes.getLength(); i++) { Element photoElement = (Element) photoNodes.item(i); Photo photo = new Photo(); photo.setId(photoElement.getAttribute("id")); User owner = new User(); owner.setId(photoElement.getAttribute("owner")); photo.setOwner(owner); photo.setSecret(photoElement.getAttribute("secret")); photo.setServer(photoElement.getAttribute("server")); photo.setFarm(photoElement.getAttribute("farm")); photo.setTitle(photoElement.getAttribute("title")); photo.setPublicFlag("1".equals(photoElement.getAttribute("ispublic"))); photo.setFriendFlag("1".equals(photoElement.getAttribute("isfriend"))); photo.setFamilyFlag("1".equals(photoElement.getAttribute("isfamily"))); photos.add(photo); } return photos; }
[ "Search for interesting photos using the Flickr Interestingness algorithm.\n\n@param params\nAny search parameters\n@param perPage\nNumber of items per page\n@param page\nThe page to start on\n@return A PhotoList\n@throws FlickrException" ]
[ "Convert an ObjectName to a PathAddress.\n\nPatterns are supported: there may not be a resource at the returned PathAddress but a resource model <strong>MUST</strong>\nmust be registered.", "Provides a consistent ordering over lists. First compares by the first\nelement. If that element is equal, the next element is considered, and so\non.", "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited.", "Restores the dropout descriptor to a previously saved-off state", "Sets test status.", "Makes an RPC call using the client. Logs how long it took and any exceptions.\n\nNOTE: The request could be an InputStream too, but the http client will need to\nfind its length, which will require buffering it anyways.\n\n@throws DatastoreException if the RPC fails.", "Handles Multi Instance Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\ninstance.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "Use this API to delete sslfipskey of given name." ]
public void setInitialSequence(int[] sequence) { if(models != null){ for(int i = 0; i < models.length; i++) models[i].setInitialSequence(sequence); return; } model1.setInitialSequence(sequence); model2.setInitialSequence(sequence); }
[ "Informs this sequence model that the value of the whole sequence is initialized to sequence" ]
[ "Convenience method which allows all projects in the database to\nbe read in a single operation.\n\n@return list of ProjectFile instances\n@throws MPXJException", "Sets top and bottom padding for all cells in the row.\n@param padding new padding for top and bottom, ignored if smaller than 0\n@return this to allow chaining", "Validate that the overlay exists. If it doesn't exist, throws an\nexception if not in batch mode or if failInBatch is true. In batch mode,\nwe could be in the case that the overlay doesn't exist yet.", "Creates a Set out of the given keys\n\n@param <K> the key type\n@param keys\nthe keys\n@return a Set containing the given keys", "Constraint that ensures that the field has precision and scale settings if the jdbc type requires it.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Get a collection of public groups for the user.\n\nThe groups will contain only the members nsid, name, admin and eighteenplus. If you want the whole group-information, you have to call\n{@link com.flickr4java.flickr.groups.GroupsInterface#getInfo(String)}.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The public groups\n@throws FlickrException", "Print an extended attribute currency value.\n\n@param value currency value\n@return string representation", "Generates timephased actual costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost", "Pauses the playback of a sound." ]
private void writeFileCreationRecord() throws IOException { ProjectProperties properties = m_projectFile.getProjectProperties(); m_buffer.setLength(0); m_buffer.append("MPX"); m_buffer.append(m_delimiter); m_buffer.append(properties.getMpxProgramName()); m_buffer.append(m_delimiter); m_buffer.append(properties.getMpxFileVersion()); m_buffer.append(m_delimiter); m_buffer.append(properties.getMpxCodePage()); m_buffer.append(MPXConstants.EOL); m_writer.write(m_buffer.toString()); }
[ "Write file creation record.\n\n@throws IOException" ]
[ "Invoke an HTTP GET request on a remote host. You must close the InputStream after you are done with.\n\n@param path The request path\n@param parameters The parameters (collection of Parameter objects)\n@return The Response", "If the String argument defaultLocatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the\ncorresponding strategy is selected and set as default strategy, else both the selected strategy and the default strategy remain\nunchanged.\n@param defaultLocatorSelectionStrategy", "Save the changes.", "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded", "Perform construction.\n\n@param callbackHandler", "Returns the sentence as a string with a space between words.\nDesigned to work robustly, even if the elements stored in the\n'Sentence' are not of type Label.\n\nThis one uses the default separators for any word type that uses\nseparators, such as TaggedWord.\n\n@param justValue If <code>true</code> and the elements are of type\n<code>Label</code>, return just the\n<code>value()</code> of the <code>Label</code> of each word;\notherwise,\ncall the <code>toString()</code> method on each item.\n@return The sentence in String form", "Adds a measure to the crosstab. A crosstab can have many measures. DJ will lay out one measure above\nthe other.\n\nA measure is what is shown on each intersection of a column and a row. A calculation is performed to\nall occurrences in the datasource where the column and row values matches (between elements)\n\nThe only difference between the prior methods is that this method sets \"visible\" to false\n\n@param property\n@param className\n@param title\n@return", "Returns a list of all templates under the user account\n\n@param options {@link Map} extra options to send along with the request.\n@return {@link ListResponse}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "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)" ]
public static base_response update(nitro_service client, vlan resource) throws Exception { vlan updateresource = new vlan(); updateresource.id = resource.id; updateresource.aliasname = resource.aliasname; updateresource.ipv6dynamicrouting = resource.ipv6dynamicrouting; return updateresource.update_resource(client); }
[ "Use this API to update vlan." ]
[ "This method log given exception in specified listener", "Exit the Application", "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", "moves to the next row of the underlying ResultSet and returns the\ncorresponding Object materialized from this row.", "Read correlation id.\n\n@param message the message\n@return correlation id from the message", "directive dynamic xxx,yy\n@param node\n@return", "Checks String to see if the parameter is null.\n@param paramValue Object that will be checked if null.\n@return this.true if the parameter that is being checked is not null", "Use this API to fetch all the tmsessionparameter resources that are configured on netscaler.", "Starts the scenario with the given method and arguments.\nDerives the description from the method name.\n@param method the method that started the scenario\n@param arguments the test arguments with their parameter names" ]
public static ModelControllerClient createAndAdd(final ManagementChannelHandler handler) { final ExistingChannelModelControllerClient client = new ExistingChannelModelControllerClient(handler); handler.addHandlerFactory(client); return client; }
[ "Create and add model controller handler to an existing management channel handler.\n\n@param handler the channel handler\n@return the created client" ]
[ "Gets the date time str concise.\n\n@param d\nthe d\n@return the date time str concise", "Factory method, validates the given triplet year, month and dayOfMonth.\n\n@param prolepticYear the International fixed proleptic-year\n@param month the International fixed month, from 1 to 13\n@param dayOfMonth the International fixed day-of-month, from 1 to 28 (29 for Leap Day or Year Day)\n@return the International fixed date\n@throws DateTimeException if the date is invalid", "Loads the given class, respecting the given classloader.\n@param clazz class to load\n@return Loaded class\n@throws ClassNotFoundException", "Return the class's name, possibly by stripping the leading path", "Adds the headers.\n\n@param builder\nthe builder\n@param headerMap\nthe header map", "Returns a Client object for a clientUUID and profileId\n\n@param clientUUID UUID or friendlyName of client\n@param profileId - can be null, safer if it is not null\n@return Client object or null\n@throws Exception exception", "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Use this API to fetch appfwprofile resource of given name .", "Updates the R matrix to take in account the removed row." ]
public void createAgent(String agent_name, String path) { IComponentIdentifier agent = cmsService.createComponent(agent_name, path, null, null).get(new ThreadSuspendable()); createdAgents.put(agent_name, agent); }
[ "Creates a real agent in the platform\n\n@param agent_name\nThe name that the agent is gonna have in the platform\n@param path\nThe path of the description (xml) of the agent" ]
[ "Download a specified URL to a file\n\n@param stringUrl URL to use\n@param parameters HTTP Headers\n@param fileToSave File to save content\n@throws IOException I/O error happened", "Initialize an instance of Widget Lib. It has to be done before any usage of library.\nThe application needs to hold onto the returned WidgetLib reference for as long as the\nlibrary is going to be used.\n@param gvrContext A valid {@link GVRContext} instance\n@param customPropertiesAsset An optional asset JSON file containing custom and overridden\nproperties for the application\n@return Instance of Widget library\n@throws InterruptedException\n@throws JSONException\n@throws NoSuchMethodException", "Generate the specified output file by merging the specified\nVelocity template with the supplied context.", "Gets a byte within this sequence of bytes\n\n@param i index into sequence\n@return byte\n@throws IllegalArgumentException if i is out of range", "Return a list of unique namespaces, optionally limited by a given predicate, in alphabetical order.\n\nThis method does not require authentication.\n\n@param predicate\n@param perPage\n@param page\n@return NamespacesList\n@throws FlickrException", "Create a JavadocComment, by formatting the text of the Javadoc using the given indentation.", "2-D Integer array to double array.\n\n@param array Integer array.\n@return Double array.", "Determine which type of percent complete is used on on this task,\nand calculate the required value.\n\n@param row task data\n@return percent complete value", "Internal function that uses recursion to create the list" ]
public void setFrustum(float[] frustum) { Matrix4f projMatrix = new Matrix4f(); projMatrix.setFrustum(frustum[0], frustum[3], frustum[1], frustum[4], frustum[2], frustum[5]); setFrustum(projMatrix); }
[ "Set the view frustum to pick against from the minimum and maximum corners.\nThe viewpoint of the frustum is the center of the scene object\nthe picker is attached to. The view direction is the forward\ndirection of that scene object. The frustum will pick what a camera\nattached to the scene object with that view frustum would see.\nIf the frustum is not attached to a scene object, it defaults to\nthe view frustum of the main camera of the scene.\n\n@param frustum array of 6 floats as follows:\nfrustum[0] = left corner of frustum\nfrustum[1] = bottom corner of frustum\nfrustum[2] = front corner of frustum (near plane)\nfrustum[3] = right corner of frustum\nfrustum[4] = top corner of frustum\nfrustum[5 = back corner of frustum (far plane)" ]
[ "Based on the current request represented by the HttpExchange construct a complete URL for the supplied path.\n\n@param exchange - The current HttpExchange\n@param path - The path to include in the constructed URL\n@return The constructed URL", "Use this API to fetch all the cacheobject resources that are configured on netscaler.\nThis uses cacheobject_args which is a way to provide additional arguments while fetching the resources.", "Walk project references recursively, adding thrift files to the provided list.", "Access an attribute.\n\n@param type the attribute's type, not {@code null}\n@param key the attribute's key, not {@code null}\n@return the attribute value, or {@code null}.", "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error", "Adds the given entity to the inverse associations it manages.", "Write a boolean field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Use this API to delete route6 resources.", "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted." ]
@Around("@annotation(retryableAnnotation)") public Object call(final ProceedingJoinPoint pjp, Retryable retryableAnnotation) throws Throwable { final int maxTries = retryableAnnotation.maxTries(); final int retryDelayMillies = retryableAnnotation.retryDelayMillis(); final Class<? extends Throwable>[] retryOn = retryableAnnotation.retryOn(); final boolean doubleDelay = retryableAnnotation.doubleDelay(); final boolean throwCauseException = retryableAnnotation.throwCauseException(); if (logger.isDebugEnabled()) { logger.debug("Have @Retryable method wrapping call on method {} of target object {}", new Object[] { pjp.getSignature().getName(), pjp.getTarget() }); } ServiceRetrier serviceRetrier = new ServiceRetrier(retryDelayMillies, maxTries, doubleDelay, throwCauseException, retryOn); return serviceRetrier.invoke( new Callable<Object>() { public Object call() throws Exception { try { return pjp.proceed(); } catch (Exception e) { throw e; } catch (Error e) { throw e; } catch (Throwable t) { throw new RuntimeException(t); } } } ); }
[ "Runs a method call with retries.\n@param pjp a {@link ProceedingJoinPoint} representing an annotated\nmethod call.\n@param retryableAnnotation the {@link org.fishwife.jrugged.aspects.Retryable}\nannotation that wrapped the method.\n@throws Throwable if the method invocation itself throws one during execution.\n@return The return value from the method call." ]
[ "Wrap connection with a proxy.\n@param target connection handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a connection.", "Use this API to enable Interface resources of given names.", "Use this API to fetch all the tunneltrafficpolicy resources that are configured on netscaler.", "Use this API to delete lbroute.", "When the descriptor was added while editing, but the change was not saved, it has to be removed\nwhen the editor is closed.\n@throws CmsException thrown when deleting the descriptor resource fails", "Use this API to fetch appqoepolicy resource of given name .", "Updates the position and direction of this light from the transform of\nscene object that owns it.", "Use this API to fetch a vpnglobal_appcontroller_binding resources.", "Use this API to fetch nsrpcnode resource of given name ." ]
public void signOff(String key, WebSocketConnection connection) { ConcurrentMap<WebSocketConnection, WebSocketConnection> connections = registry.get(key); if (null == connections) { return; } connections.remove(connection); }
[ "Detach a connection from a key.\n\n@param key\nthe key\n@param connection\nthe connection" ]
[ "Obtains a Ethiopic zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Ethiopic zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "called by timer thread", "Compute the offset for the item in the layout cache\n@return true if the item fits the container, false otherwise", "Curries a procedure that takes two arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes one argument. Never <code>null</code>.", "Choose from three numbers based on version.", "Returns true if the specified class node is a trait.\n@param cNode a class node to test\n@return true if the classnode represents a trait", "Instantiate Service Locator client. After successful instantiation\nestablish a connection to the Service Locator server. This method will be\ncalled if property locatorClient is null. For this purpose was defined\nadditional properties to instantiate ServiceLocatorImpl.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Returns true if a List literal that contains only entries that are constants.\n@param expression - any expression" ]
public void createResourceFieldMap(Props props) { byte[] fieldMapData = null; for (Integer key : RESOURCE_KEYS) { fieldMapData = props.getByteArray(key); if (fieldMapData != null) { break; } } if (fieldMapData == null) { populateDefaultData(getDefaultResourceData()); } else { createFieldMap(fieldMapData); } }
[ "Creates a field map for resources.\n\n@param props props data" ]
[ "Get a subset of the attributes of the provided class. An attribute is each public field in the class\nor super class.\n\n@param classToInspect the class to inspect\n@param filter a predicate that returns true when a attribute should be kept in resulting\ncollection.", "Store the versioned values\n\n@param values list of versioned bytes\n@return the list of versioned values rolled into an array of bytes", "Obtain the annotation associated with this type descriptor of the specified type.\n@param annotationType the annotation type\n@return the annotation, or {@code null} if no such annotation exists on this type descriptor", "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Serializes this RuleSet in an XML document.\n\n@param destination The writer to which the XML document shall be written.", "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", "Process a relationship between two tasks.\n\n@param row relationship data", "Parses a String email address to an IMAP address string.", "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id." ]
private void readResources(Project ganttProject) { Resources resources = ganttProject.getResources(); readResourceCustomPropertyDefinitions(resources); readRoleDefinitions(ganttProject); for (net.sf.mpxj.ganttproject.schema.Resource gpResource : resources.getResource()) { readResource(gpResource); } }
[ "This method extracts resource data from a GanttProject file.\n\n@param ganttProject parent node for resources" ]
[ "Remove a key from the given map.\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 removed value, or <code>null</code> if the key was not\npresent in the map.\n@since 2.15", "Only match if the TypeReference is at the specified location within the file.", "Counts the coordinates stored in a single statement for the relevant\nproperty, if they are actually given and valid.\n\n@param statement\n@param itemDocument", "Groups all of the metadata cache files that are candidates for auto-attachment to player slots into lists\nthat are keyed by the playlist ID used to create the cache file. Files that cache all tracks have a playlist\nID of 0.\n\n@return a map from playlist ID to the caches holding tracks from that playlist", "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Gets all rows.\n\n@return the list of all rows", "Get a File path list from configuration.\n\n@param name the name of the property\n@param props the set of configuration properties\n\n@return the CanonicalFile form for the given name.", "Parses a string that contains multiple fat client configs in avro format\n\n@param configAvro Input string of avro format, that contains config for\nmultiple stores\n@return Map of store names to store config properties", "Searches the type and its sub types for the nearest ojb-persistent type and returns its name.\n\n@param type The type to search\n@return The qualified name of the found type or <code>null</code> if no type has been found" ]
public static PJsonObject parseSpec(final String spec) { final JSONObject jsonSpec; try { jsonSpec = new JSONObject(spec); } catch (JSONException e) { throw new RuntimeException("Cannot parse the spec file: " + spec, e); } return new PJsonObject(jsonSpec, "spec"); }
[ "Parse the JSON string and return the object. The string is expected to be the JSON print data from the\nclient.\n\n@param spec the JSON formatted string.\n@return The encapsulated JSON object" ]
[ "Create a rollback patch based on the recorded actions.\n\n@param patchId the new patch id, depending on release or one-off\n@param patchType the current patch identity\n@return the rollback patch", "Read resource data from a PEP file.", "Use this API to fetch sslciphersuite resource of given name .", "Delete a photo from flickr.\n\nThis method requires authentication with 'delete' permission.\n\n@param photoId\n@throws FlickrException", "Convenience method dispatches this object to the source appender, which\nwill result in the custom message being appended to the new file.\n\n@param message\nThe custom logging message to be appended.", "Returns IMAP formatted String of MessageFlags for named user", "Wrap a simple attribute def as list.\n\n@param def the attribute definition\n@return the list attribute def", "Returns the position for a given number of occurrences or NOT_FOUND if\nthis value is not found.\n\n@param nOccurrence\nnumber of occurrences\n@return the position for a given number of occurrences or NOT_FOUND if\nthis value is not found", "Use this API to unlink sslcertkey." ]
@Override public int read(char[] cbuf, int off, int len) throws IOException { int numChars = super.read(cbuf, off, len); replaceBadXmlCharactersBySpace(cbuf, off, len); return numChars; }
[ "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" ]
[ "Return tabular data\n@param labels Labels array\n@param data Data bidimensional array\n@param padding Total space between fields\n@return String", "Convert the message to a FinishRequest", "Returns the sentence as a string with a space between words.\nDesigned to work robustly, even if the elements stored in the\n'Sentence' are not of type Label.\n\nThis one uses the default separators for any word type that uses\nseparators, such as TaggedWord.\n\n@param justValue If <code>true</code> and the elements are of type\n<code>Label</code>, return just the\n<code>value()</code> of the <code>Label</code> of each word;\notherwise,\ncall the <code>toString()</code> method on each item.\n@return The sentence in String form", "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", "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Convenience method dispatches the specified event to the source appender,\nwhich will result in the custom event data being appended to the new file.\n\n@param customLoggingEvent\nThe custom Log4J event to be appended.", "Detach the component of the specified type from this scene object.\n\nEach scene object has a list of components. Only one component\nof a particular type can be attached. Components are detached based on their type.\n\n@return GVRComponent detached or null if component not found\n@param type type of component to detach\n@see GVRSceneObject#attachComponent(GVRComponent)", "For every String key, it registers the object as a parameter to make it available\nin the report.\n\n@param jd\n@param _parameters", "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return" ]
public void process(File file) throws Exception { openLogFile(); int blockIndex = 0; int length = (int) file.length(); m_buffer = new byte[length]; FileInputStream is = new FileInputStream(file); try { int bytesRead = is.read(m_buffer); if (bytesRead != length) { throw new RuntimeException("Read count different"); } } finally { is.close(); } List<Integer> blocks = new ArrayList<Integer>(); for (int index = 64; index < m_buffer.length - 11; index++) { if (matchPattern(PARENT_BLOCK_PATTERNS, index)) { blocks.add(Integer.valueOf(index)); } } int startIndex = 0; for (int endIndex : blocks) { int blockLength = endIndex - startIndex; readBlock(blockIndex, startIndex, blockLength); startIndex = endIndex; ++blockIndex; } int blockLength = m_buffer.length - startIndex; readBlock(blockIndex, startIndex, blockLength); closeLogFile(); }
[ "Read a FastTrack file.\n\n@param file FastTrack file" ]
[ "Parse an extended attribute value.\n\n@param file parent file\n@param mpx parent entity\n@param value string value\n@param mpxFieldID field ID\n@param durationFormat duration format associated with the extended attribute", "Use this API to fetch authenticationnegotiatepolicy_binding resource of given name .", "Get the upload parameters.\n@return", "Use this API to fetch auditsyslogpolicy_aaauser_binding resources of given name .", "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object.", "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", "Adds an additional label to the constructed document.\n\n@param text\nthe text of the label\n@param languageCode\nthe language code of the label\n@return builder object to continue construction", "Get the service name of a top-level deployment unit.\n\n@param name the simple name of the deployment\n@param phase the deployment phase\n@return the service name", "Parameter validity check." ]
public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier) { if (!isDynamicModule(identifier)) { throw ServerLogger.ROOT_LOGGER.missingModulePrefix(identifier, MODULE_PREFIX); } return MODULE_SPEC_SERVICE_PREFIX.append(identifier.getName()).append(identifier.getSlot()); }
[ "Returns the corresponding ModuleSpec service name for the given module.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service" ]
[ "Gets Widget bounds depth\n@return depth", "Use this API to update tmtrafficaction.", "Gets next node in the DAG which has no dependency or all of it's dependencies are resolved and\nready to be consumed.\n\n@return next node or null if all the nodes have been explored or no node is available at this moment.", "Clear the selection of all items.\n@param requestLayout request layout after clear selection if the flag is true, no layout\nrequested otherwise\n@return {@code true} if at least one item was deselected,\n{@code false} otherwise.", "Get informations about a place.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param placeId\nA Flickr Places ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@return A Location\n@throws FlickrException", "If a text contains double quotes, escape them.\n\n@param text the text to escape\n@return Escaped text or {@code null} if the text is null", "Handles the cases in which we can use longs rather than BigInteger\n\n@param section\n@param increment\n@param addrCreator\n@param lowerProducer\n@param upperProducer\n@param prefixLength\n@return", "Main entry point when called to process constraint data.\n\n@param projectDir project directory\n@param file parent project file\n@param inputStreamFactory factory to create input stream", "This method creates the flattened POM what is the main task of this plugin.\n\n@param pomFile is the name of the original POM file to read and transform.\n@return the {@link Model} of the flattened POM.\n@throws MojoExecutionException if anything goes wrong (e.g. POM can not be processed).\n@throws MojoFailureException if anything goes wrong (logical error)." ]
private static Interval parseEndDateTime(Instant start, ZoneOffset offset, CharSequence endStr) { try { TemporalAccessor temporal = DateTimeFormatter.ISO_DATE_TIME.parseBest(endStr, OffsetDateTime::from, LocalDateTime::from); if (temporal instanceof OffsetDateTime) { OffsetDateTime odt = (OffsetDateTime) temporal; return Interval.of(start, odt.toInstant()); } else { // infer offset from start if not specified by end LocalDateTime ldt = (LocalDateTime) temporal; return Interval.of(start, ldt.toInstant(offset)); } } catch (DateTimeParseException ex) { Instant end = Instant.parse(endStr); return Interval.of(start, end); } }
[ "parse when there are two date-times" ]
[ "Append the bounding volume particle positions, times and velocities to the existing mesh\nbefore creating a new scene object with this mesh attached to it.\nAlso, append every created scene object and its creation time to corresponding array lists.\n\n@param particlePositions\n@param particleVelocities\n@param particleTimeStamps", "Gets a SerialMessage with the SENSOR_ALARM_GET command\n@return the serial message", "convenience method for setting working or non-working days.\n\n@param day required day\n@param working flag indicating if the day is a working day", "Returns true if all pixels in the array have the same color", "Get EditMode based on os and mode\n\n@return edit mode", "Add a dependency to this node.\n\n@param node the dependency to add.", "Returns IMAP formatted String of MessageFlags for named user", "Reads a single resource from a ConceptDraw PROJECT file.\n\n@param resource ConceptDraw PROJECT resource", "Extracts the postal code, country code and service code from the primary data and returns the corresponding primary message\ncodewords.\n\n@return the primary message codewords" ]
public CmsSolrQuery getQuery(CmsObject cms) { final CmsSolrQuery query = new CmsSolrQuery(); // set categories query.setCategories(m_categories); // set container types if (null != m_containerTypes) { query.addFilterQuery(CmsSearchField.FIELD_CONTAINER_TYPES, m_containerTypes, false, false); } // Set date created time filter query.addFilterQuery( CmsSearchUtil.getDateCreatedTimeRangeFilterQuery( CmsSearchField.FIELD_DATE_CREATED, getDateCreatedRange().m_startTime, getDateCreatedRange().m_endTime)); // Set date last modified time filter query.addFilterQuery( CmsSearchUtil.getDateCreatedTimeRangeFilterQuery( CmsSearchField.FIELD_DATE_LASTMODIFIED, getDateLastModifiedRange().m_startTime, getDateLastModifiedRange().m_endTime)); // set scope / folders to search in m_foldersToSearchIn = new ArrayList<String>(); addFoldersToSearchIn(m_folders); addFoldersToSearchIn(m_galleries); setSearchFolders(cms); query.addFilterQuery( CmsSearchField.FIELD_PARENT_FOLDERS, new ArrayList<String>(m_foldersToSearchIn), false, true); if (!m_ignoreSearchExclude) { // Reference for the values: CmsGallerySearchIndex.java, field EXCLUDE_PROPERTY_VALUES query.addFilterQuery( "-" + CmsSearchField.FIELD_SEARCH_EXCLUDE, Arrays.asList( new String[] { A_CmsSearchIndex.PROPERTY_SEARCH_EXCLUDE_VALUE_ALL, A_CmsSearchIndex.PROPERTY_SEARCH_EXCLUDE_VALUE_GALLERY}), false, true); } // set matches per page query.setRows(new Integer(m_matchesPerPage)); // set resource types if (null != m_resourceTypes) { List<String> resourceTypes = new ArrayList<>(m_resourceTypes); if (m_resourceTypes.contains(CmsResourceTypeFunctionConfig.TYPE_NAME) && !m_resourceTypes.contains(CmsXmlDynamicFunctionHandler.TYPE_FUNCTION)) { resourceTypes.add(CmsXmlDynamicFunctionHandler.TYPE_FUNCTION); } query.setResourceTypes(resourceTypes); } // set result page query.setStart(new Integer((m_resultPage - 1) * m_matchesPerPage)); // set search locale if (null != m_locale) { query.setLocales(CmsLocaleManager.getLocale(m_locale)); } // set search words if (null != m_words) { query.setQuery(m_words); } // set sort order query.setSort(getSort().getFirst(), getSort().getSecond()); // set result collapsing by id query.addFilterQuery("{!collapse field=id}"); query.setFields(CmsGallerySearchResult.getRequiredSolrFields()); if ((m_allowedFunctions != null) && !m_allowedFunctions.isEmpty()) { String functionFilter = "((-type:(" + CmsXmlDynamicFunctionHandler.TYPE_FUNCTION + " OR " + CmsResourceTypeFunctionConfig.TYPE_NAME + ")) OR (id:("; Iterator<CmsUUID> it = m_allowedFunctions.iterator(); while (it.hasNext()) { CmsUUID id = it.next(); functionFilter += id.toString(); if (it.hasNext()) { functionFilter += " OR "; } } functionFilter += ")))"; query.addFilterQuery(functionFilter); } return query; }
[ "Returns a CmsSolrQuery representation of this class.\n@param cms the openCms object.\n@return CmsSolrQuery representation of this class." ]
[ "Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key", "Generate the body of a toString method that uses plain concatenation.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\nalways present, this can be done with a long block of unconditional code. We could use a\nStringBuilder for this, but in fact the Java compiler will do this for us under the hood\nif we use simple string concatenation, so we use the more readable approach.", "Creates the request.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded", "Adds OPT_U | OPT_URL option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "1-D Gaussian function.\n\n@param x value.\n@return Function's value at point x.", "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", "Return as a string the tagged values associated with c\n@param opt the Options used to guess font names\n@param c the Doc entry to look for @tagvalue\n@param prevterm the termination string for the previous element\n@param term the termination character for each tagged value", "Allow the given job type to be executed.\n@param jobName the job name as seen\n@param jobType the job type to allow" ]
public void setBufferedImage(BufferedImage img) { image = img; width = img.getWidth(); height = img.getHeight(); updateColorArray(); }
[ "Sets a new image\n\n@param BufferedImage imagem" ]
[ "Gets all pending collaboration invites for the current user.\n\n@param api the API connection to use.\n@return a collection of pending collaboration infos.", "Adds an ORDER BY item with a direction indicator.\n\n@param name\nName of the column by which to sort.\n@param ascending\nIf true, specifies the direction \"asc\", otherwise, specifies\nthe direction \"desc\".", "Use this API to update nslimitselector resources.", "Set the value for a floating point vector of length 4.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@param w new W value\n@see #getVec4\n@see #getFloatVec(String)", "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", "Computes eigenvalues only\n\n@return", "Write resource assignment.\n\n@param record resource assignment instance\n@throws IOException", "Use this API to export sslfipskey.", "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array." ]
public synchronized void insert(long data) { resetIfNeeded(); long index = 0; if(data >= this.upperBound) { index = nBuckets - 1; } else if(data < 0) { logger.error(data + " can't be bucketed because it is negative!"); return; } else { index = data / step; } if(index < 0 || index >= nBuckets) { // This should be dead code. Defending against code changes in // future. logger.error(data + " can't be bucketed because index is not in range [0,nBuckets)."); return; } buckets[(int) index]++; sum += data; size++; }
[ "Insert a value into the right bucket of the histogram. If the value is\nlarger than any bound, insert into the last bucket. If the value is less\nthan zero, then ignore it.\n\n@param data The value to insert into the histogram" ]
[ "Modifies the specified mode and length arrays to combine adjacent modes of the same type, returning the updated index point.", "Retrieves list of inbox messages based on given userId\n@param userId String userid\n@return ArrayList of {@link CTMessageDAO}", "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Is the given resource type id free?\n@param id to be checked\n@return boolean", "Get the value of a Annotation in a class declaration.\n@param classType\n@param annotationType\n@param attributeName\n@return the value of the annotation as String or null if something goes wrong", "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.", "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", "The only indication that a task is a SubProject is the contents\nof the subproject file name field. We test these here then add a skeleton\nsubproject structure to match the way we do things with MPP files.", "Sorts the fields." ]
public boolean hasRequiredAdminProps() { boolean valid = true; valid &= hasRequiredClientProps(); valid &= verifyStringPropSet(ACCUMULO_TABLE_PROP, ADMIN_ACCUMULO_TABLE_PROP); return valid; }
[ "Returns true if required properties for FluoAdmin are set" ]
[ "Add a method to the enabled response overrides for a path\n\n@param pathName name of path\n@param methodName name of method\n@return true if success, false otherwise", "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken", "Use this API to fetch lbvserver_servicegroup_binding resources of given name .", "Returns a module\n\n@param moduleId String\n@return DbModule", "Set an unknown field.\n@param name the unknown property name\n@param value the unknown property value", "Classify the tokens in a String. Each sentence becomes a separate document.\nDoesn't override default readerAndWriter.\n\n@param str\nA String with tokens in one or more sentences of text to be\nclassified.\n@return {@link List} of classified sentences (each a List of something that\nextends {@link CoreMap}).", "Loads the favorite list.\n\n@return the list of favorites\n\n@throws CmsException if something goes wrong", "Abort an upload session, discarding any chunks that were uploaded to it.", "Called on mouse down in the caption area, begins the dragging loop by\nturning on event capture.\n\n@see DOM#setCapture\n@see #continueDragging\n@param event the mouse down event that triggered dragging" ]
public ServerRedirect getRedirect(int id) throws Exception { PreparedStatement queryStatement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { queryStatement = sqlConnection.prepareStatement( "SELECT * FROM " + Constants.DB_TABLE_SERVERS + " WHERE " + Constants.GENERIC_ID + " = ?" ); queryStatement.setInt(1, id); results = queryStatement.executeQuery(); if (results.next()) { ServerRedirect curServer = new ServerRedirect(results.getInt(Constants.GENERIC_ID), results.getString(Constants.SERVER_REDIRECT_REGION), results.getString(Constants.SERVER_REDIRECT_SRC_URL), results.getString(Constants.SERVER_REDIRECT_DEST_URL), results.getString(Constants.SERVER_REDIRECT_HOST_HEADER)); curServer.setProfileId(results.getInt(Constants.GENERIC_PROFILE_ID)); return curServer; } logger.info("Did not find the ID: {}", id); } catch (SQLException e) { throw e; } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (queryStatement != null) { queryStatement.close(); } } catch (Exception e) { } } return null; }
[ "Returns redirect information for the given ID\n\n@param id ID of redirect\n@return ServerRedirect\n@throws Exception exception" ]
[ "Allow for the use of text shading and auto formatting.", "remove files from directory. All-or-nothing operation - if any of the files fails to be removed, all deleted files are restored.\n\nThe operation is performed in two steps - first all the files are moved to a backup folder, and afterwards backup folder is removed.\nIf an error occurs in the first step of the operation, all files are restored and the operation ends with status {@code false}.\nIf an error occurs in the second step, the operation ends with status {@code false}, but the files are not rolled back.\n\n@throws IOException if an error occurred", "Calls the httpHandler method.", "create a HTTP POST request.\n\n@return {@link HttpConnection}", "Starts the named animation.\n@see GVRAvatar#stop(String)\n@see GVRAnimationEngine#start(GVRAnimation)", "Should the URI be cached?\n\n@param requestUri request URI\n@return true when caching is needed", "Generates a torque schema for the model.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"", "For test purposes only.", "Extract predecessor data." ]
public static boolean invert(final DMatrixRMaj cov , final DMatrixRMaj cov_inv ) { if( cov.numCols <= 4 ) { if( cov.numCols != cov.numRows ) { throw new IllegalArgumentException("Must be a square matrix."); } if( cov.numCols >= 2 ) UnrolledInverseFromMinor_DDRM.inv(cov,cov_inv); else cov_inv.data[0] = 1.0/cov.data[0]; } else { LinearSolverDense<DMatrixRMaj> solver = LinearSolverFactory_DDRM.symmPosDef(cov.numRows); // wrap it to make sure the covariance is not modified. solver = new LinearSolverSafe<DMatrixRMaj>(solver); if( !solver.setA(cov) ) return false; solver.invert(cov_inv); } return true; }
[ "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." ]
[ "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time.", "object -> xml\n\n@param object\n@param childClass", "Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array.", "Create a new instance of a two input function from an operator character\n@param op Which operation\n@param left Input variable on left\n@param right Input variable on right\n@return Resulting operation", "Lookup Seam integration resource loader.\n@return the Seam integration resource loader\n@throws DeploymentUnitProcessingException for any error", "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", "Copy the data from an InputStream to a temp file.\n\n@param inputStream data source\n@param tempFileSuffix suffix to use for temp file\n@return File instance", "Builds a string that serializes a list of objects separated by the pipe\ncharacter. The toString methods are used to turn objects into strings.\nThis operation is commonly used to build parameter lists for API\nrequests.\n\n@param objects\nthe objects to implode\n@return string of imploded objects", "Invoked by subclasses; performs actual file roll. Tests to see whether roll\nis necessary have already been performed, so just do it." ]
private void setFieldType(FastTrackTableType tableType) { switch (tableType) { case ACTBARS: { m_type = ActBarField.getInstance(m_header.getColumnType()); break; } case ACTIVITIES: { m_type = ActivityField.getInstance(m_header.getColumnType()); break; } case RESOURCES: { m_type = ResourceField.getInstance(m_header.getColumnType()); break; } } }
[ "Set the enum representing the type of this column.\n\n@param tableType type of table to which this column belongs" ]
[ "Returns true if the lattice contains an entry at the specified location.\n\n@param maturityInMonths The maturity in months to check.\n@param tenorInMonths The tenor in months to check.\n@param moneynessBP The moneyness in bp to check.\n@return True iff there is an entry at the specified location.", "Update the anchor based on arcore best knowledge of the world\n\n@param scale", "changes an existing property with the same name, or adds a new one\n@param key property name with which the specified value is to be\nassociated\n@param value value to be associated with the specified property name\n@return the previous value associated with property name, or null if\nthere was no mapping for property name. (A null return can also\nindicate that the map previously associated null with key.)", "Creates needed textfields for general label in footer groups.\n@param djgroup\n@param jgroup", "Creates the project used to import module resources and sets it on the CmsObject.\n\n@param cms the CmsObject to set the project on\n@param module the module\n@return the created project\n@throws CmsException if something goes wrong", "We need to make sure the terms are of the right type, otherwise they will not be serialized correctly.", "Retrieves the path using the endpoint value\n\n@param pathValue - path (endpoint) value\n@param requestType - \"GET\", \"POST\", etc\n@return Path or null\n@throws Exception exception", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Figure out, based on how much time has elapsed since we received an update, and the playback position,\nspeed, and direction at the time of that update, where the player will be now.\n\n@param update the most recent update received from a player\n@param currentTimestamp the nanosecond timestamp representing when we want to interpolate the track's position\n\n@return the playback position we believe that player has reached now" ]