query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void addDefaultCalendarHours(Day day) { ProjectCalendarHours hours = addCalendarHours(day); if (day != Day.SATURDAY && day != Day.SUNDAY) { hours.addRange(DEFAULT_WORKING_MORNING); hours.addRange(DEFAULT_WORKING_AFTERNOON); } }
[ "This is a convenience method used to add a default set of calendar\nhours to a calendar.\n\n@param day Day for which to add default hours for" ]
[ "With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way.", "Sets the specified short attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Returns the nested object definition with the specified name.\n\n@param name The name of the attribute of the nested object\n@return The nested object definition or <code>null</code> if there is no such nested object", "Generate an IKVM map file.\n\n@param mapFileName map file name\n@param jarFile jar file containing code to be mapped\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws XMLStreamException\n@throws ClassNotFoundException\n@throws IntrospectionException", "Constructs and sets the layout parameters to have some gravity.\n\n@param gravity the gravity of the Crouton\n@return <code>this</code>, for chaining.\n@see android.view.Gravity", "This will set the last nestingLevel elements in the dotPositions to the values present in the dollarPositions.\nThe rest will be set to -1.\n\n<p>In another words the dotPositions array will contain the rightmost dollar positions.\n\n@param dollarPositions the positions of the $ in the binary class name\n@param dotPositions the positions of the dots to initialize from the dollarPositions\n@param nestingLevel the number of dots (i.e. how deep is the nesting of the classes)", "This method retrieves the calendar hours for the specified day.\nNote that if this is a derived calendar, then this method\nwill refer to the base calendar where no hours are specified\nin the derived calendar.\n\n@param day Day instance\n@return calendar hours", "Function to filter files based on defined rules.", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not." ]
public static base_response Force(nitro_service client, clustersync resource) throws Exception { clustersync Forceresource = new clustersync(); return Forceresource.perform_operation(client,"Force"); }
[ "Use this API to Force clustersync." ]
[ "Remove the nodes representing the entity and the embedded elements attached to it.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values of the key identifying the entity to remove", "Returns a client model from a ResultSet\n\n@param result resultset containing client information\n@return Client or null\n@throws Exception exception", "Converts the given dislect to a human-readable datasource type.", "Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.\n\n@param self an Object with an iterator returning its values\n@param defaultResult an Object that should be returned if all closure results are null\n@param closure a closure that returns a non-null value when processing should stop\n@return the first non-null result of the closure, otherwise the default value\n@since 1.7.5", "Add a property.", "Format a date that is parseable from JavaScript, according to ISO-8601.\n\n@param date the date to format to a JSON string\n@return a formatted date in the form of a string", "Adds an access constraint to the set used with the attribute\n@param accessConstraint the constraint\n@return a builder that can be used to continue building the attribute definition", "Parse duration represented in thousandths of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@return Duration instance", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be XML.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')" ]
public static base_responses update(nitro_service client, Interface resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { Interface updateresources[] = new Interface[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new Interface(); updateresources[i].id = resources[i].id; updateresources[i].speed = resources[i].speed; updateresources[i].duplex = resources[i].duplex; updateresources[i].flowctl = resources[i].flowctl; updateresources[i].autoneg = resources[i].autoneg; updateresources[i].hamonitor = resources[i].hamonitor; updateresources[i].tagall = resources[i].tagall; updateresources[i].trunk = resources[i].trunk; updateresources[i].lacpmode = resources[i].lacpmode; updateresources[i].lacpkey = resources[i].lacpkey; updateresources[i].lagtype = resources[i].lagtype; updateresources[i].lacppriority = resources[i].lacppriority; updateresources[i].lacptimeout = resources[i].lacptimeout; updateresources[i].ifalias = resources[i].ifalias; updateresources[i].throughput = resources[i].throughput; updateresources[i].bandwidthhigh = resources[i].bandwidthhigh; updateresources[i].bandwidthnormal = resources[i].bandwidthnormal; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update Interface resources." ]
[ "Returns a UTMDetail object which consists of UTM parameters like source, medium & campaign\n@return The {@link UTMDetail} object", "Use this API to fetch lbvserver_cachepolicy_binding resources of given name .", "Increase the priority of an overrideId\n\n@param overrideId ID of override\n@param pathId ID of path containing override\n@param clientUUID UUID of client", "Calculate the value of a digital caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\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@param optionMaturity The option maturity\n@param optionStrike The option strike.\n@return Returns the price of a digital caplet under the Black'76 model", "Apply the necessary rotation to the transform so that it is in front of\nthe camera. The actual rotation is performed not using the yaw angle but\nusing equivalent quaternion values for better accuracy. But the yaw angle\nis still returned for backward compatibility.\n\n@param widget The transform to modify.\n@return The camera's yaw in degrees.", "Merge two ExecutionStatistics into one. This method is private in order not to be synchronized (merging.\n@param otherStatistics", "Port forward missing module changes for each layer.\n\n@param patch the current patch\n@param context the patch context\n@throws PatchingException\n@throws IOException\n@throws XMLStreamException", "Returns a converter instance for the given annotation.\n\n@param annotation the annotation\n@return a converter instance or {@code null} if the given annotation is no option annotation", "Saves the state of this connection to a string so that it can be persisted and restored at a later time.\n\n<p>Note that proxy settings aren't automatically saved or restored. This is mainly due to security concerns\naround persisting proxy authentication details to the state string. If your connection uses a proxy, you will\nhave to manually configure it again after restoring the connection.</p>\n\n@see #restore\n@return the state of this connection." ]
public synchronized void setDeviceName(String name) { if (name.getBytes().length > DEVICE_NAME_LENGTH) { throw new IllegalArgumentException("name cannot be more than " + DEVICE_NAME_LENGTH + " bytes long"); } Arrays.fill(announcementBytes, DEVICE_NAME_OFFSET, DEVICE_NAME_LENGTH, (byte)0); System.arraycopy(name.getBytes(), 0, announcementBytes, DEVICE_NAME_OFFSET, name.getBytes().length); }
[ "Set the name to be used in announcing our presence on the network. The name can be no longer than twenty\nbytes, and should be normal ASCII, no Unicode.\n\n@param name the device name to report in our presence announcement packets." ]
[ "Whether this section is consistent with an EUI64 section,\nwhich means it came from an extended 8 byte address,\nand the corresponding segments in the middle match 0xff and 0xfe\n\n@param partial whether missing segments are considered a match\n@return", "get the property source method corresponding to given destination\nproperty\n\n@param sourceObject\n@param destinationObject\n@param destinationProperty\n@return", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "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", "Update the Target Filter of the ImporterService.\nApply the induce modifications on the links of the ImporterService\n\n@param serviceReference", "Use this API to fetch spilloverpolicy resource of given name .", "This method is called to alert project listeners to the fact that\na task has been read from a project file.\n\n@param task task instance", "Converts this file into a resource name on the classpath by cutting of the file path\nto the classpath root.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param file The file.\n@return The resource name on the classpath.", "Try to build an default PBKey for convenience PB create method.\n\n@return PBKey or <code>null</code> if default key was not declared in\nmetadata" ]
public IPv4AddressSection getEmbeddedIPv4AddressSection(int startIndex, int endIndex) { if(startIndex == ((IPv6Address.MIXED_ORIGINAL_SEGMENT_COUNT - this.addressSegmentIndex) << 1) && endIndex == (getSegmentCount() << 1)) { return getEmbeddedIPv4AddressSection(); } IPv4AddressCreator creator = getIPv4Network().getAddressCreator(); IPv4AddressSegment[] segments = creator.createSegmentArray((endIndex - startIndex) >> 1); int i = startIndex, j = 0; if(i % IPv6Address.BYTES_PER_SEGMENT == 1) { IPv6AddressSegment ipv6Segment = getSegment(i >> 1); i++; ipv6Segment.getSplitSegments(segments, j - 1, creator); j++; } for(; i < endIndex; i <<= 1, j <<= 1) { IPv6AddressSegment ipv6Segment = getSegment(i >> 1); ipv6Segment.getSplitSegments(segments, j, creator); } return createEmbeddedSection(creator, segments, this); }
[ "Produces an IPv4 address section from any sequence of bytes in this IPv6 address section\n\n@param startIndex the byte index in this section to start from\n@param endIndex the byte index in this section to end at\n@throws IndexOutOfBoundsException\n@return\n\n@see #getEmbeddedIPv4AddressSection()\n@see #getMixedAddressSection()" ]
[ "Internal method used to test for the existence of a relationship\nwith a task.\n\n@param task target task\n@param list list of relationships\n@return boolean flag", "Converts the given list of a type to paged list of a different type.\n\n@param list the list to convert to paged list\n@param mapper the mapper to map type in input list to output list\n@param <OutT> the type of items in output paged list\n@param <InT> the type of items in input paged list\n@return the paged list", "return a prepared Update Statement fitting to the given ClassDescriptor", "Convert subQuery to SQL\n@param subQuery the subQuery value of SelectionCriteria", "Creates a converter function that converts value into primitive type.\n\n@return A converter function or {@code null} if the given type is not primitive type or boxed type", "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name", "Determine whether the given element matches this element.\nAn element matches this element when keys are equal, values are equal\nor this element value is a wildcard.\n@param pe the element to check\n@return {@code true} if the element matches", "Gets the first group of a regex\n@param pattern Pattern\n@param str String to find\n@return the matching group", "Helper xml end tag writer\n\n@param value the output stream to use in writing" ]
public CmsResource buildResource() { return new CmsResource( m_structureId, m_resourceId, m_rootPath, m_type, m_flags, m_projectLastModified, m_state, m_dateCreated, m_userCreated, m_dateLastModified, m_userLastModified, m_dateReleased, m_dateExpired, m_length, m_flags, m_dateContent, m_version); }
[ "Builds the resource.\n\n@return the cms resource" ]
[ "Adds OPT_Z | OPT_ZONE option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Adds a data source to the configuration. If in deduplication mode\ngroupno == 0, otherwise it gives the number of the group to which\nthe data source belongs.", "Await a state.\n\n@param expected the expected state\n@return {@code true} if the state was reached, {@code false} otherwise", "Get the script for a given ID\n\n@param id ID of script\n@return Script if found, otherwise null", "Map the EventType.\n\n@param eventType the event type\n@return the event", "Use this API to add sslcipher resources.", "Returns the number of vertex indices for a single face.\n\n@param face the face\n@return the number of indices", "Makes an ancestor filter.", "Deletes the disabled marker file in the directory of the specified version.\n\n@param version to enable\n@throws PersistenceFailureException if the marker file could not be deleted (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible)." ]
private boolean isDescriptorProperty(Object property) { return (getBundleType().equals(BundleType.DESCRIPTOR) || (hasDescriptor() && (property.equals(TableProperty.KEY) || property.equals(TableProperty.DEFAULT) || property.equals(TableProperty.DESCRIPTION)))); }
[ "Check if values in the column \"property\" are written to the bundle descriptor.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle descriptor." ]
[ "Creates an Odata filter string that can be used for filtering list results by tags.\n\n@param tagName the name of the tag. If not provided, all resources will be returned.\n@param tagValue the value of the tag. If not provided, only tag name will be filtered.\n@return the Odata filter to pass into list methods", "Dump an array of bytes in hexadecimal.\n\n@param displayOffset the display offset (left column)\n@param data the byte array of data\n@param offset the offset to start dumping in the byte array\n@param len the length of data to dump\n@return the dump string", "Return the list of actions on the tuple.\nInherently deduplicated operations\n\n@return the operations to execute on the Tuple", "resolves a Field or Property node generics by using the current class and\nthe declaring class to extract the right meaning of the generics symbols\n@param an a FieldNode or PropertyNode\n@param type the origin type\n@return the new ClassNode with corrected generics", "Get the ver\n\n@param id\n@return", "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "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", "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", "Read the set of property files. Keys and Values are automatically validated and converted.\n\n@param resourceLoader\n@return all the properties from the weld.properties file" ]
protected DateTimeException _peelDTE(DateTimeException e) { while (true) { Throwable t = e.getCause(); if (t != null && t instanceof DateTimeException) { e = (DateTimeException) t; continue; } break; } return e; }
[ "Helper method used to peel off spurious wrappings of DateTimeException\n\n@param e DateTimeException to peel\n\n@return DateTimeException that does not have another DateTimeException as its cause." ]
[ "Adds a listener to this collection.\n\n@param listener The listener to add", "required for rest assured base URI configuration.", "Convert custom info.\n\n@param customInfo the custom info map\n@return the custom info type", "Set the String of request body data to be sent to the server.\n\n@param input String of request body data to be sent to the server\n@return an {@link HttpConnection} for method chaining", "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "Use this API to update systemuser.", "Last caller of this method will unregister the Mbean. All callers\ndecrement the counter.", "Tests if this enumeration contains more elements.\n@return <code>true</code> if and only if this enumeration object\ncontains at least one more element to provide;\n<code>false</code> otherwise.", "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." ]
private void writeProjectProperties() { ProjectProperties properties = m_projectFile.getProjectProperties(); m_plannerProject.setCompany(properties.getCompany()); m_plannerProject.setManager(properties.getManager()); m_plannerProject.setName(getString(properties.getName())); m_plannerProject.setProjectStart(getDateTime(properties.getStartDate())); m_plannerProject.setCalendar(getIntegerString(m_projectFile.getDefaultCalendar().getUniqueID())); m_plannerProject.setMrprojectVersion("2"); }
[ "This method writes project properties to a Planner file." ]
[ "Generates a Map of query parameters for Module regarding the filters\n\n@return Map<String, Object>", "Checks if a parameter exists. If it exists, it is left untouched. If it doesn't, it is created. Only works for parameters which key\nis unique. Must be called from within an open transaction.", "Returns the next index of the argument by decrementing 1 from the possibly parsed number\n\n@param description this String will be searched from the start for a number\n@param defaultIndex this will be returned if the match does not succeed\n@return the parsed index or the defaultIndex", "Add a newline to this sequence according to the configured lineDelimiter if the last line contains\nsomething besides whitespace.", "read all objects of this iterator. objects will be placed in cache", "Gets the element view.\n\n@return the element view", "Creates a color item that represents a color field found for a track based on a dbserver message.\n\n@param menuItem the rendered menu item containing the color metadata field\n\n@return the color metadata field", "Use this API to update clusterinstance.", "Adds the position range.\n\n@param start the start\n@param end the end" ]
public static List<String> getArgumentNames(MethodCallExpression methodCall) { ArrayList<String> result = new ArrayList<String>(); Expression arguments = methodCall.getArguments(); List<Expression> argExpressions = null; if (arguments instanceof ArrayExpression) { argExpressions = ((ArrayExpression) arguments).getExpressions(); } else if (arguments instanceof ListExpression) { argExpressions = ((ListExpression) arguments).getExpressions(); } else if (arguments instanceof TupleExpression) { argExpressions = ((TupleExpression) arguments).getExpressions(); } else { LOG.warn("getArgumentNames arguments is not an expected type"); } if (argExpressions != null) { for (Expression exp : argExpressions) { if (exp instanceof VariableExpression) { result.add(((VariableExpression) exp).getName()); } } } return result; }
[ "Gets the argument names of a method call. If the arguments are not VariableExpressions then a null\nwill be returned.\n@param methodCall\nthe method call to search\n@return\na list of strings, never null, but some elements may be null" ]
[ "Gets the date time str standard.\n\n@param d\nthe d\n@return the date time str standard", "Throw IllegalArgumentException if the value is null.\n\n@param name the parameter name.\n@param value the value that should not be null.\n@param <T> the value type.\n@throws IllegalArgumentException if value is null.", "Use this API to fetch appfwpolicy_csvserver_binding resources of given name .", "Build call for getCharactersCharacterIdShip\n\n@param characterId\nAn EVE character ID (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param ifNoneMatch\nETag from a previous request. A 304 will be returned if this\nmatches the current ETag (optional)\n@param token\nAccess token to use if unable to set a header (optional)\n@param callback\nCallback for upload/download progress\n@return Call to execute\n@throws ApiException\nIf fail to serialize the request body object", "Sends a message to the dbserver, first assembling it into a single byte buffer so that it can be sent as\na single packet.\n\n@param message the message to be sent\n\n@throws IOException if there is a problem sending it", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Remove the sequence for given sequence name.\n\n@param sequenceName Name of the sequence to remove.", "Copies all available data from in to out without closing any stream.\n\n@return number of bytes copied", "Diagnostic method used to dump known field map data.\n\n@param props props block containing field map data" ]
Item newStringishItem(final int type, final String value) { key2.set(type, value, null, null); Item result = get(key2); if (result == null) { pool.put12(type, newUTF8(value)); result = new Item(index++, key2); put(result); } return result; }
[ "Adds a string reference, a class reference, a method type, a module\nor a package to the constant pool of the class being build.\nDoes nothing if the constant pool already contains a similar item.\n\n@param type\na type among STR, CLASS, MTYPE, MODULE or PACKAGE\n@param value\nstring value of the reference.\n@return a new or already existing reference item." ]
[ "This method lists any notes attached to tasks.\n\n@param file MPX file", "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", "Add fields to the text index configuration.\n\n@param fields the {@link TextIndex.Field} configurations to add\n@return the builder for chaining", "Iterate through a set of bit field flags and set the value for each one\nin the supplied container.\n\n@param flags bit field flags\n@param container field container\n@param data source data", "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "Create a SVG graphic with the give dimensions.\n\n@param size The size of the SVG graphic.", "A henson navigator is a class that helps a consumer to consume the navigation api that it\ndeclares in its dependencies. The henson navigator will wrap the intent builders. Thus, a\nhenson navigator, is driven by consumption of intent builders, whereas the henson classes are\ndriven by the production of an intent builder.\n\n<p>This task is created per android variant:\n\n<ul>\n<li>we scan the variant compile configuration for navigation api dependencies\n<li>we generate a henson navigator class for this variant that wraps the intent builders\n</ul>\n\n@param variant the variant for which to create a builder.\n@param hensonNavigatorPackageName the package name in which we create the class.", "Transfer the ownership of an application to another user.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param to Username of the person to transfer the app to. This is usually in the form of \"[email protected]\".", "Sets the quaternion of the keyframe." ]
public static <E> Set<E> union(Set<E> s1, Set<E> s2) { Set<E> s = new HashSet<E>(); s.addAll(s1); s.addAll(s2); return s; }
[ "Returns the union of sets s1 and s2." ]
[ "add a foreign key field", "Generates an organization regarding the parameters.\n\n@param name String\n@return Organization", "Starts recursive delete on all delete objects object graph", "Closes a Closeable and swallows any exceptions that might occur in the\nprocess.\n\n@param closeable", "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd.\n\n@param output the stream to where the file will be written.\n@param rangeStart the byte offset at which to start the download.\n@param rangeEnd the byte offset at which to stop the download.", "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\"", "Append the Parameter\nAdd the place holder ? or the SubQuery\n@param value the value of the criteria", "Checks the foreignkeys of all collections in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid", "Assign to the data object the val corresponding to the fieldType." ]
void backup() throws ConfigurationPersistenceException { if (!doneBootup.get()) { return; } try { if (!interactionPolicy.isReadOnly()) { //Move the main file to the versioned history moveFile(mainFile, getVersionedFile(mainFile)); } else { //Copy the Last file to the versioned history moveFile(lastFile, getVersionedFile(mainFile)); } int seq = sequence.get(); // delete unwanted backup files int currentHistoryLength = getInteger(CURRENT_HISTORY_LENGTH_PROPERTY, CURRENT_HISTORY_LENGTH, 0); if (seq > currentHistoryLength) { for (int k = seq - currentHistoryLength; k > 0; k--) { File delete = getVersionedFile(mainFile, k); if (! delete.exists()) { break; } delete.delete(); } } } catch (IOException e) { throw ControllerLogger.ROOT_LOGGER.failedToBackup(e, mainFile); } }
[ "Backup the current version of the configuration to the versioned configuration history" ]
[ "Concats two arrays.\n\n@param first the first array\n@param second the second array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first one", "Abort an active extern transaction associated with the given PB.", "Retrieve any resource field aliases defined in the MPP file.\n\n@param map index to field map\n@param data resource field name alias data", "Get a property as a double or defaultValue.\n\n@param key the property name\n@param defaultValue the default value", "Removes all items from the list box.", "Safe write error response.\n\n@param channel the channel\n@param header the request header\n@param error the exception", "Remove a custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Gets a document from the service.\n\n@param key\nunique key to reference the document\n@return the document or null if no such document", "Uploads a new file to this folder with custom upload parameters.\n\n@param uploadParams the custom upload parameters.\n@return the uploaded file's info." ]
private static AbstractIndex constructLiborIndex(String forwardCurveName, Schedule schedule) { if(forwardCurveName != null) { //determine average fixing offset and period length double fixingOffset = 0; double periodLength = 0; for(int i = 0; i < schedule.getNumberOfPeriods(); i++) { fixingOffset *= ((double) i) / (i+1); fixingOffset += (schedule.getPeriodStart(i) - schedule.getFixing(i)) / (i+1); periodLength *= ((double) i) / (i+1); periodLength += schedule.getPeriodLength(i) / (i+1); } return new LIBORIndex(forwardCurveName, fixingOffset, periodLength); } else { return null; } }
[ "Construct a Libor index for a given curve and schedule.\n\n@param forwardCurveName\n@param schedule\n@return The Libor index or null, if forwardCurveName is null." ]
[ "Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args", "Establish connection to the ChromeCast device", "Create a buffered image with the correct image bands etc... for the tiles being loaded.\n\n@param imageWidth width of the image to create\n@param imageHeight height of the image to create.", "Old REST client uses new REST service", "Wait for exclusive permit during a timeout in milliseconds.\n\n@return number of acquired permits if > 0", "Set the pickers selection type.", "Indicates if a bean is proxyable\n\n@param bean The bean to test\n@return True if proxyable, false otherwise", "Converts SMatrixTriplet_64 into a SMatrixCC_64.\n\n@param src Original matrix which is to be copied. Not modified.\n@param dst Destination. Will be a copy. Modified.\n@param hist Workspace. Should be at least as long as the number of columns. Can be null.", "Returns the nested object definition with the specified name.\n\n@param name The name of the attribute of the nested object\n@return The nested object definition or <code>null</code> if there is no such nested object" ]
protected void processResourceBaseline(Row row) { Integer id = row.getInteger("RES_UID"); Resource resource = m_project.getResourceByUniqueID(id); if (resource != null) { int index = row.getInt("RB_BASE_NUM"); resource.setBaselineWork(index, row.getDuration("RB_BASE_WORK")); resource.setBaselineCost(index, row.getCurrency("RB_BASE_COST")); } }
[ "Read resource baseline values.\n\n@param row result set row" ]
[ "Utility method to retrieve the previous working date finish time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of previous work finish", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException", "Converts an update description BSON document from a MongoDB Change Event into an\nUpdateDescription object.\n\n@param document the\n@return the converted UpdateDescription", "Adds all fields declared in the object's class and its superclasses to the output.\n@return this", "Helper method to find Strings of form \"all digits\" and \"digits-comma-digits\"", "Count the statements and property uses of an item or property document.\n\n@param usageStatistics\nstatistics object to store counters in\n@param statementDocument\ndocument to count the statements of", "Increase the priority of an overrideId\n\n@param overrideId ID of override\n@param pathId ID of path containing override\n@param clientUUID UUID of client", "Write the provided chunk at the offset specified in the token. If finalChunk is set, the file\nwill be closed." ]
public static StringBuilder leftShift(StringBuilder self, Object value) { self.append(value); return self; }
[ "Overloads the left shift operator to provide syntactic sugar for appending to a StringBuilder.\n\n@param self a StringBuilder\n@param value an Object\n@return the original StringBuilder\n@since 1.8.2" ]
[ "Return all option names that not already have a value\nand is enabled", "Consumer is required to do any privilege checks before getting here\n\n@param request a {@link HttpServletRequest} which may contain forced groups parameters from URL, Header or Cookie.\n@return a map of test names to bucket values specified by the request. Returns an empty {@link Map} if nothing was specified", "Tests an observer method to see if it is transactional.\n\n@param observer The observer method\n@return true if the observer method is annotated as transactional", "Format the label text.\n\n@param scaleUnit The unit used for the scalebar.\n@param value The scale value.\n@param intervalUnit The scaled unit for the intervals.", "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return", "Synchronize the geotools transaction with the platform transaction, if such a transaction is active.\n\n@param featureStore\n@param dataSource", "Construct a Access Token from a Flickr Response.\n\n@param response", "Use this API to fetch aaagroup_vpnsessionpolicy_binding resources of given name .", "Get a date range that correctly handles the case where the end time\nis midnight. In this instance the end time should be the start of the\nnext day.\n\n@param hours calendar hours\n@param start start date\n@param end end date" ]
public ByteBuffer[] toDirectByteBuffers(long offset, long size) { long pos = offset; long blockSize = Integer.MAX_VALUE; long limit = offset + size; int numBuffers = (int) ((size + (blockSize - 1)) / blockSize); ByteBuffer[] result = new ByteBuffer[numBuffers]; int index = 0; while (pos < limit) { long blockLength = Math.min(limit - pos, blockSize); result[index++] = UnsafeUtil.newDirectByteBuffer(address() + pos, (int) blockLength, this) .order(ByteOrder.nativeOrder()); pos += blockLength; } return result; }
[ "Gives an sequence of ByteBuffers of a specified range. Writing to these ByteBuffers modifies the contents of this LBuffer.\n@param offset\n@param size\n@return" ]
[ "Queues a Runnable to be run on the main thread on the next iteration of\nthe messaging loop. This is handy when code running on the main thread\nneeds to run something else on the main thread, but only after the\ncurrent code has finished executing.\n\n@param r\nThe {@link Runnable} to run on the main thread.\n@return Returns {@code true} if the Runnable was successfully placed in\nthe Looper's message queue.", "Use this API to count linkset_interface_binding resources configued on NetScaler.", "Retrieve a boolean field.\n\n@param type field type\n@return field data", "Read data for an individual task from the tables in a PEP file.\n\n@param parent parent task\n@param id task ID\n@return task instance", "Set a bean in the context.\n\n@param name bean name\n@param object bean value", "Random string from string array\n\n@param s Array\n@return String", "Initializes the bean name defaulted", "Compute \"sent\" date\n\n@param msg Message to take sent date from. May be null to use default\n@param defaultVal Default if sent date is not present\n@return Sent date or now if no date could be found", "Search for groups. 18+ groups will only be returned for authenticated calls where the authenticated user is over 18. This method does not require\nauthentication.\n\n@param text\nThe text to search for.\n@param perPage\nNumber of groups to return per page. If this argument is 0, it defaults to 100. The maximum allowed value is 500.\n@param page\nThe page of results to return. If this argument is 0, it defaults to 1.\n@return A GroupList Object. Only the fields <em>id</em>, <em>name</em> and <em>eighteenplus</em> in the Groups will be set.\n@throws FlickrException" ]
private void saveToXmlVfsBundle() throws CmsException { if (m_lockedBundleFiles.get(null) != null) { // If the file was not locked, no changes were made, i.e., storing is not necessary. for (Locale l : m_locales) { SortedProperties props = m_localizations.get(l); if (null != props) { if (m_xmlBundle.hasLocale(l)) { m_xmlBundle.removeLocale(l); } m_xmlBundle.addLocale(m_cms, l); int i = 0; List<Object> keys = new ArrayList<Object>(props.keySet()); Collections.sort(keys, CmsCaseInsensitiveStringComparator.getInstance()); for (Object key : keys) { if ((null != key) && !key.toString().isEmpty()) { String value = props.getProperty(key.toString()); if (!value.isEmpty()) { m_xmlBundle.addValue(m_cms, "Message", l, i); i++; m_xmlBundle.getValue("Message[" + i + "]/Key", l).setStringValue(m_cms, key.toString()); m_xmlBundle.getValue("Message[" + i + "]/Value", l).setStringValue(m_cms, value); } } } } CmsFile bundleFile = m_lockedBundleFiles.get(null).getFile(); bundleFile.setContents(m_xmlBundle.marshal()); m_cms.writeFile(bundleFile); } } }
[ "Saves messages to a xmlvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails." ]
[ "Use this API to unset the properties of nsacl6 resource.\nProperties that need to be unset are specified in args array.", "Method that takes an inputstream, read it preserving the end lines, and subtitute using commons-lang-3 calls\nthe variables, first searching as system properties vars and then in environment var list.\nIn case of missing the property is replaced by white space.\n@param stream\n@return", "Sets the columns width by reading some report options like the\nprintableArea and useFullPageWidth.\ncolumns with fixedWidth property set in TRUE will not be modified", "Get info for a given topic reply\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@param replyId\nUnique identifier of a reply for a given topic {@link Reply}.\n@return A group topic\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getInfo.html\">API Documentation</a>", "Filter that's either negated or normal as specified.", "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Send a get module request\n\n@param name\n@param version\n@return the targeted module\n@throws GrapesCommunicationException", "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.\nThis uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources.", "Use this API to restore appfwprofile." ]
private void setRequestProps(WbGetEntitiesActionData properties) { StringBuilder builder = new StringBuilder(); builder.append("info|datatype"); if (!this.filter.excludeAllLanguages()) { builder.append("|labels|aliases|descriptions"); } if (!this.filter.excludeAllProperties()) { builder.append("|claims"); } if (!this.filter.excludeAllSiteLinks()) { builder.append("|sitelinks"); } properties.props = builder.toString(); }
[ "Sets the value for the API's \"props\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters" ]
[ "get the real data without message header\n@return message data(without header)", "Ask the specified player for the specified waveform preview from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform preview\n\n@return the preview, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Adds each forbidden substring, checking that it's not null.\n\n@param forbiddenSubStrings\nthe forbidden substrings\n@throws NullPointerException\nif a forbidden substring is null", "Given the comma separated list of properties as a string, splits it\nmultiple strings\n\n@param paramValue Concatenated string\n@param type Type of parameter ( to throw exception )\n@return List of string properties", "Returns a OkHttpClient that ignores SSL cert errors\n@return", "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 authenticationvserver_auditnslogpolicy_binding resources of given name .", "Record the resource request queue length\n\n@param dest Destination of the socket for which resource request is\nenqueued. Will actually record if null. Otherwise will call this\non self and corresponding child with this param null.\n@param queueLength The number of entries in the \"asynchronous\" resource\nrequest queue.", "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler." ]
public static ResourceDescriptionResolver getResourceDescriptionResolver(final String... keyPrefix) { StringBuilder prefix = new StringBuilder(SUBSYSTEM_NAME); for (String kp : keyPrefix) { prefix.append('.').append(kp); } return new StandardResourceDescriptionResolver(prefix.toString(), RESOURCE_NAME, LoggingExtension.class.getClassLoader(), true, false) { @Override public String getOperationParameterDescription(final String operationName, final String paramName, final Locale locale, final ResourceBundle bundle) { if (DELEGATE_DESC_OPTS.contains(operationName)) { return getResourceAttributeDescription(paramName, locale, bundle); } return super.getOperationParameterDescription(operationName, paramName, locale, bundle); } @Override public String getOperationParameterValueTypeDescription(final String operationName, final String paramName, final Locale locale, final ResourceBundle bundle, final String... suffixes) { if (DELEGATE_DESC_OPTS.contains(operationName)) { return getResourceAttributeDescription(paramName, locale, bundle); } return super.getOperationParameterValueTypeDescription(operationName, paramName, locale, bundle, suffixes); } @Override public String getOperationParameterDeprecatedDescription(final String operationName, final String paramName, final Locale locale, final ResourceBundle bundle) { if (DELEGATE_DESC_OPTS.contains(operationName)) { return getResourceAttributeDeprecatedDescription(paramName, locale, bundle); } return super.getOperationParameterDeprecatedDescription(operationName, paramName, locale, bundle); } }; }
[ "Returns a resource description resolver that uses common descriptions for some attributes.\n\n@param keyPrefix the prefix to be appended to the {@link LoggingExtension#SUBSYSTEM_NAME}\n\n@return the resolver" ]
[ "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.", "Convenience extension, to generate traced code.", "Utility method used to convert an integer time representation into a\nDuration instance.\n\n@param totalTime integer time representation\n@param format required time format\n@return new Duration instance", "sets the row reader class name for thie class descriptor", "Returns the command line options to be used for scalaxb, excluding the\ninput file names.", "Add hours to a parent object.\n\n@param parentNode parent node\n@param hours list of ranges", "Decode a content Type header line into types and parameters pairs", "Use this API to update nsrpcnode.", "Retrieve the result produced by a task with the given id in the group.\n\nThis method can be used to retrieve the result of invocation of both dependency\nand \"post-run\" dependent tasks. If task with the given id does not exists then\nIllegalArgumentException exception will be thrown.\n\n@param taskId the task item id\n@return the task result, null will be returned if task has not yet been invoked" ]
public Weld addBeanDefiningAnnotations(Class<? extends Annotation>... annotations) { for (Class<? extends Annotation> annotation : annotations) { this.extendedBeanDefiningAnnotations.add(annotation); } return this; }
[ "Registers annotations which will be considered as bean defining annotations.\n\nNOTE - If used along with {@code <trim/>} bean archives and/or with Weld configuration key\n{@code org.jboss.weld.bootstrap.vetoTypesWithoutBeanDefiningAnnotation}, these annotations will be ignored.\n\n@param annotations annotations which will be considered as Bean Defining Annotations.\n@return self" ]
[ "Use this API to fetch all the nslimitselector resources that are configured on netscaler.", "Returns a list of all the eigenvalues", "This method formats a time unit.\n\n@param timeUnit time unit instance\n@return formatted time unit instance", "Returns the first product found in the vector of calibration products\nwhich matches the given symbol, where symbol is the String set in\nthe calibrationSpecs.\n\n@param symbol A given symbol string.\n@return The product associated with that symbol.", "cancels a running assembly.\n\n@param url full url of the Assembly.\n@return {@link AssemblyResponse}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Gets the URL of the service with the given name that has been created during the current session.\n\n@param name to return its URL\n@return URL of the service.", "Set the value of one or more fields based on the contents of a database row.\n\n@param map column to field map\n@param row database row\n@param container field container", "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)", "Gets a JSON string containing any pending changes to this object that can be sent back to the Box API.\n@return a JSON string containing the pending changes." ]
public void storeIfNew(final DbArtifact fromClient) { final DbArtifact existing = repositoryHandler.getArtifact(fromClient.getGavc()); if(existing != null){ existing.setLicenses(fromClient.getLicenses()); store(existing); } if(existing == null){ store(fromClient); } }
[ "If the Artifact does not exist, it will add it to the database. Nothing if it already exit.\n\n@param fromClient DbArtifact" ]
[ "Tells you if the expression is a spread operator call\n@param expression\nexpression\n@return\ntrue if is spread expression", "caching is not supported for this method", "Determines storage overhead and returns pretty printed summary.\n\n@param finalNodeToOverhead Map of node IDs from final cluster to number\nof partition-stores to be moved to the node.\n@return pretty printed string summary of storage overhead.", "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.", "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement the packet which reported the device’s disappearance", "Get a property as a boolean or throw exception.\n\n@param key the property name", "a helper method to enable the keyboardUtil for a specific activity\nor disable it. note this will cause some frame drops because of the\nlistener.\n\n@param activity\n@param enable", "Moves the given row down.\n\n@param row the row to move", "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" ]
private NodeList getNodeList(String document, XPathExpression expression) throws Exception { Document doc = m_documentBuilder.parse(new InputSource(new StringReader(document))); return (NodeList) expression.evaluate(doc, XPathConstants.NODESET); }
[ "Retrieve a node list based on an XPath expression.\n\n@param document XML document to process\n@param expression compiled XPath expression\n@return node list" ]
[ "Set possible tile URLs.\n\n@param tileUrls tile URLs", "Validates a favorite entry.\n\n<p>If the favorite entry references a resource or project that can't be read, this will return false.\n\n@param entry the favorite entry\n@return the", "Answer the SQL-Clause for a BetweenCriteria\n\n@param alias\n@param pathInfo\n@param c BetweenCriteria\n@param buf", "Creates an element that represents a single page.\n@return the resulting DOM element", "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value", "Updates the value in HashMap and writeBack as Atomic step", "Get upload status for the currently authenticated user.\n\nRequires authentication with 'read' permission using the new authentication API.\n\n@return A User object with upload status data fields filled\n@throws FlickrException", "Set to array.\n@param injectionProviders\nset of providers\n@return array of providers", "Retrieves a timestamp from the property data.\n\n@param type Type identifier\n@return timestamp" ]
public <T extends StatementDocument> void nullEdit(PropertyIdValue propertyId) throws IOException, MediaWikiApiErrorException { PropertyDocument currentDocument = (PropertyDocument) this.wikibaseDataFetcher .getEntityDocument(propertyId.getId()); nullEdit(currentDocument); }
[ "Performs a null edit on a property. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param propertyId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection" ]
[ "Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas.", "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null.", "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).", "Clones the cluster by constructing a new one with same name, partition\nlayout, and nodes.\n\n@param cluster\n@return clone of Cluster cluster.", "Retrieves the timephased breakdown of actual cost.\n\n@return timephased actual cost", "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched.", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "Writes back hints file.", "Cache a parse failure for this document." ]
public static final String printTime(Date value) { return (value == null ? null : TIME_FORMAT.get().format(value)); }
[ "Print a time value.\n\n@param value time value\n@return time value" ]
[ "Takes an object and converts it to a string.\n\n@param mapper the object mapper\n@param object the object to convert\n@return json string", "Adds parameters contained in the annotation into the annotation type reference\n\n@param typeRef\n@param node", "Retrieves the index of a cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry index", "Maps a field index to a ResourceField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return ResourceField instance", "Returns true if super class of the parameter exists and is abstract and package private. In such case we want to omit such method.\n\nSee WELD-2507 and Oracle issue - https://bugs.java.com/view_bug.do?bug_id=6342411\n\n@return true if the super class exists and is abstract and package private", "Initialize the random generator with a seed.", "Processes the template for the object cache of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Send message to all connections of a certain user\n\n@param message the message to be sent\n@param username the username\n@return this context", "Adds the position range.\n\n@param start the start\n@param end the end" ]
public void start() { if (TransitionConfig.isDebug()) { getTransitionStateHolder().start(); } mLastProgress = Float.MIN_VALUE; TransitionController transitionController; for (int i = 0, size = mTransitionControls.size(); i < size; i++) { transitionController = mTransitionControls.get(i); if (mInterpolator != null) { transitionController.setInterpolator(mInterpolator); } //required for ViewPager transitions to work if (mTarget != null) { transitionController.setTarget(mTarget); } transitionController.setUpdateStateAfterUpdateProgress(mUpdateStateAfterUpdateProgress); transitionController.start(); } }
[ "Starts the transition" ]
[ "Initialize; cached threadpool is safe as it is releasing resources automatically if idle", "Maps a single prefix, uri pair as namespace.\n\n@param prefix the prefix to use\n@param namespaceURI the URI to use\n@throws IllegalArgumentException if prefix or namespaceURI is null", "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri", "Triggers a replication request, blocks while the replication is in progress.\n@return ReplicationResult encapsulating the result", "Does not mutate the TestMatrix.\nVerifies that the test matrix contains all the required tests and that\neach required test is valid.\n\n@param testMatrix the {@link TestMatrixArtifact} to be verified.\n@param matrixSource a {@link String} of the source of proctor artifact. For example a path of proctor artifact file.\n@param requiredTests a {@link Map} of required test. The {@link TestSpecification} would be verified\n@param functionMapper a given el {@link FunctionMapper}\n@param providedContext a {@link Map} containing variables describing the context in which the request is executing. These will be supplied to verifying all rules.\n@param dynamicTests a {@link Set} of dynamic tests determined by filters.\n@return a {@link ProctorLoadResult} to describe the result of verification. It contains errors of verification and a list of missing test.", "Use this API to apply nspbr6 resources.", "Use this API to fetch transformpolicy resource of given name .", "Associate an input stream with the operation. Closing the input stream\nis the responsibility of the caller.\n\n@param in the input stream. Cannot be {@code null}\n@return a builder than can be used to continue building the operation", "Calculate the child size along the axis\n@param dataIndex data index\n@param axis {@link Axis}\n@return child size" ]
private FieldType getActivityIDField(Map<FieldType, String> map) { FieldType result = null; for (Map.Entry<FieldType, String> entry : map.entrySet()) { if (entry.getValue().equals("task_code")) { result = entry.getKey(); break; } } return result; }
[ "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field" ]
[ "Given a filesystem, path and buffer-size, read the file contents and\npresents it as a string\n\n@param fs Underlying filesystem\n@param path The file to read\n@param bufferSize The buffer size to use for reading\n@return The contents of the file as a string\n@throws IOException", "Calculate the value of a CMS option using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@param optionStrike The option strike\n@return Value of the CMS option", "Executes the API action \"wbsetclaim\" for the given parameters.\n\n@param statement\nthe JSON serialization of claim to add or delete.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Gets information about this collaboration.\n\n@return info about this collaboration.", "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception", "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.", "Answer the counted size\n\n@return int", "returns an Array with an Objects PK VALUES, with any java-to-sql\nFieldConversion applied. If the Object is a Proxy or a VirtualProxy NO\nconversion is necessary.\n\n@param objectOrProxy\n@return Object[]\n@throws PersistenceBrokerException", "Use this API to add cachepolicylabel resources." ]
public void stop() { if (accelerometer != null) { queue.clear(); sensorManager.unregisterListener(this, accelerometer); sensorManager = null; accelerometer = null; } }
[ "Stops listening. Safe to call when already stopped. Ignored on devices\nwithout appropriate hardware." ]
[ "Turn json string into map\n\n@param json\n@return", "Map originator type.\n\n@param originatorType the originator type\n@return the originator", "Perform the module promotion\n\n@param moduleId String", "Use this API to expire cachecontentgroup.", "Print a date time value.\n\n@param value date time value\n@return string representation", "checking availability of ClassInfo.setFlags method is just workaround for JANDEX-37", "Resets all member fields that hold information about the revision that is\ncurrently being processed.", "Call the no-arg constructor for the given class\n\n@param <T> The type of the thing to construct\n@param klass The class\n@return The constructed thing", "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code" ]
public void setPattern(String patternType) { final PatternType type = PatternType.valueOf(patternType); if (type != m_model.getPatternType()) { removeExceptionsOnChange(new Command() { public void execute() { EndType oldEndType = m_model.getEndType(); m_model.setPatternType(type); m_model.setIndividualDates(null); m_model.setInterval(getPatternDefaultValues().getInterval()); m_model.setEveryWorkingDay(Boolean.FALSE); m_model.clearWeekDays(); m_model.clearIndividualDates(); m_model.clearWeeksOfMonth(); m_model.clearExceptions(); if (type.equals(PatternType.NONE) || type.equals(PatternType.INDIVIDUAL)) { m_model.setEndType(EndType.SINGLE); } else if (oldEndType.equals(EndType.SINGLE)) { m_model.setEndType(EndType.TIMES); m_model.setOccurrences(10); m_model.setSeriesEndDate(null); } m_model.setDayOfMonth(getPatternDefaultValues().getDayOfMonth()); m_model.setMonth(getPatternDefaultValues().getMonth()); if (type.equals(PatternType.WEEKLY)) { m_model.setWeekDay(getPatternDefaultValues().getWeekDay()); } valueChanged(); } }); } }
[ "Set the serial pattern type.\n@param patternType the pattern type to set." ]
[ "Parse the given projection.\n\n@param projection The projection string.\n@param longitudeFirst longitudeFirst", "This method extracts project properties from a Phoenix file.\n\n@param phoenixSettings Phoenix settings\n@param storepoint Current storepoint", "Inserts a String array value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String array object, or null\n@return this bundler instance to chain method calls", "A comment.\n\n@param args the parameters", "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", "Queries taking longer than this limit to execute are logged.\n@param queryExecuteTimeLimit the limit to set in milliseconds.\n@param timeUnit", "Refresh children using read-resource operation.", "Use this API to fetch all the systemcore resources that are configured on netscaler.\nThis uses systemcore_args which is a way to provide additional arguments while fetching the resources.", "Pretty prints the output of getMapOfContiguousPartitionRunLengths\n\n@param cluster\n@param zoneId\n@return pretty string of contiguous run lengths" ]
@SuppressWarnings("unchecked") public static TimeUnit getInstance(String units, Locale locale) throws MPXJException { Map<String, Integer> map = LocaleData.getMap(locale, LocaleData.TIME_UNITS_MAP); Integer result = map.get(units.toLowerCase()); if (result == null) { throw new MPXJException(MPXJException.INVALID_TIME_UNIT + " " + units); } return (TimeUnit.getInstance(result.intValue())); }
[ "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails" ]
[ "Sets the ssh password.\n\n@param password\nthe password\n@return the parallel task builder", "Delete a server group by id\n\n@param id server group ID", "End building the prepared script, adding a return value statement\n@param value the value to return\n@param config the configuration for the script to build\n@return the new {@link LuaPreparedScript} instance", "Returns a client object for a clientId\n\n@param clientId ID of client to return\n@return Client or null\n@throws Exception exception", "Use this API to add gslbsite resources.", "Parse request parameters and files.\n@param request\n@param response", "The type descriptor for a method node is a string containing the name of the method, its return type,\nand its parameter types in a canonical form. For simplicity, I'm using the format of a Java declaration\nwithout parameter names.\n\n@return the type descriptor", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions" ]
private void processCalendarHours(ProjectCalendar calendar, Record dayRecord) { // ... for each day of the week Day day = Day.getInstance(Integer.parseInt(dayRecord.getField())); // Get hours List<Record> recHours = dayRecord.getChildren(); if (recHours.size() == 0) { // No data -> not working calendar.setWorkingDay(day, false); } else { calendar.setWorkingDay(day, true); // Read hours ProjectCalendarHours hours = calendar.addCalendarHours(day); for (Record recWorkingHours : recHours) { addHours(hours, recWorkingHours); } } }
[ "Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data" ]
[ "Caches the results of radix to the given power.\n\n@param radix\n@param power\n@return", "Join to internal threads and wait millis time per thread or until all\nthreads are finished if millis is 0.\n\n@param millis the time to wait in milliseconds for the threads to join; a timeout of 0 means to wait forever.\n@throws InterruptedException if any thread has interrupted the current thread.\nThe interrupted status of the current thread is cleared when this exception is thrown.", "Check if zone count policy is satisfied\n\n@return whether zone is satisfied", "This method calculates the total amount of working time in a single\nday, which intersects with the supplied time range.\n\n@param hours collection of working hours in a day\n@param startDate time range start\n@param endDate time range end\n@return length of time in milliseconds", "Update the default time unit for durations based on data read from the file.\n\n@param column column data", "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri", "Merges a specialized archetype with its parent. Merge will be done in-place on the specialized parameter.\n\n@param flatParent Flat parent archetype\n@param specialized Specialized archetype", "Lock a file lazily, if a value that should be written to the file has changed.\n@param propertyId the table column in which the value has changed (e.g., KEY, TRANSLATION, ...)\n@throws CmsException thrown if locking fails.", "Retrieves the pro-rata work carried out on a given day.\n\n@param calendar current calendar\n@param assignment current assignment.\n@return assignment work duration" ]
public static String plus(CharSequence left, Object value) { return left + DefaultGroovyMethods.toString(value); }
[ "Appends the String representation of the given operand to this CharSequence.\n\n@param left a CharSequence\n@param value any Object\n@return the original toString() of the CharSequence with the object appended\n@since 1.8.2" ]
[ "Try to get an attribute value from two elements.\n\n@param firstElement\n@param secondElement\n@return attribute value", "apply the base fields to other views if configured to do so.", "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", "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", "Logs all properties", "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>.", "Returns next and previous favorites for a photo in a user's favorites\n\n@param photoId\nThe photo id\n@param userId\nThe user's ID\n@see <a href=\"http://www.flickr.com/services/api/flickr.favorites.getContext.html\">flickr.favorites.getContext</a>", "Converts a string from ISO-8559-1 encoding to UTF-8.\n@param value ISO-8559-1 value\n@return UTF-8 value", "Update the list of buildpacks installed on an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildpacks the new list of buildpack names or URLs." ]
public boolean getBit(int index) { assertValidIndex(index); int word = index / WORD_LENGTH; int offset = index % WORD_LENGTH; return (data[word] & (1 << offset)) != 0; }
[ "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." ]
[ "Obtains a Julian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Execute our refresh query statement and then update all of the fields in data with the fields from the result.\n\n@return 1 if we found the object in the table by id or 0 if not.", "Wrapper functions with no bounds checking are used to access matrix internals", "Use this API to fetch appflowpolicylabel resource of given name .", "Use this API to add clusternodegroup resources.", "Render the scalebar.\n\n@param mapContext The context of the map for which the scalebar is created.\n@param scalebarParams The scalebar parameters.\n@param tempFolder The directory in which the graphic file is created.\n@param template The template that containts the scalebar processor", "Detects if the current browser is a Sony Mylo device.\n@return detection of a Sony Mylo device", "When the JRField needs properties, use this method.\n@param propertyName\n@param value\n@return", "This intro hides the system bars." ]
@Deprecated public ClientConfig setNodeBannagePeriod(int nodeBannagePeriod, TimeUnit unit) { this.failureDetectorBannagePeriod = unit.toMillis(nodeBannagePeriod); return this; }
[ "The period of time to ban a node that gives an error on an operation.\n\n@param nodeBannagePeriod The period of time to ban the node\n@param unit The time unit of the given value\n\n@deprecated Use {@link #setFailureDetectorBannagePeriod(long)} instead" ]
[ "Use this API to unset the properties of gslbservice resources.\nProperties that need to be unset are specified in args array.", "Computes the inverse permutation vector\n\n@param original Original permutation vector\n@param inverse It's inverse", "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", "This method tokenizes a string by space characters,\nbut ignores spaces in quoted parts,that are parts in\n'' or \"\". The method does allows the usage of \"\" in ''\nand '' in \"\". The space character between tokens is not\nreturned.\n\n@param s the string to tokenize\n@return the tokens", "Parses an item id\n\n@param id\nthe identifier of the entity, such as \"Q42\"\n@param siteIri\nthe siteIRI that this value refers to\n@throws IllegalArgumentException\nif the id is invalid", "Determines if we need to calculate more dates.\nIf we do not have a finish date, this method falls back on using the\noccurrences attribute. If we have a finish date, we'll use that instead.\nWe're assuming that the recurring data has one or other of those values.\n\n@param calendar current date\n@param dates dates generated so far\n@return true if we should calculate another date", "Validate an injection point\n\n@param ij the injection point to validate\n@param beanManager the bean manager", "Returns the number of consecutive leading one or zero bits.\nIf network is true, returns the number of consecutive leading one bits.\nOtherwise, returns the number of consecutive leading zero bits.\n\n@param network\n@return", "Retrieve from the parent pom the path to the modules of the project" ]
public void linkOneToMany(Object obj, CollectionDescriptor cod, boolean insert) { Object referencedObjects = cod.getPersistentField().get(obj); storeAndLinkOneToMany(true, obj, cod,referencedObjects, insert); }
[ "Assign FK value to all n-side objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation" ]
[ "Use this API to fetch dnsview resources of given names .", "Sets the baseline duration text value.\n\n@param baselineNumber baseline number\n@param value baseline duration text value", "Set a bean in the context.\n\n@param name bean name\n@param object bean value", "Makes a DocumentReaderAndWriter based on the flags the CRFClassifier\nwas constructed with. Will create the flags.readerAndWriter and\ninitialize it with the CRFClassifier's flags.", "Use this API to delete cacheselector of given name.", "Close and remove expired streams. Package protected to allow unit tests to invoke it.", "Updates the cluster and store metadata atomically\n\nThis is required during rebalance and expansion into a new zone since we\nhave to update the store def along with the cluster def.\n\n@param cluster The cluster metadata information\n@param storeDefs The stores metadata information", "Concats an element and an array.\n\n@param firstElement the first element\n@param array the array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first element", "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task" ]
public static void registerAgent(Agent agent, String serviceName, String serviceType) throws FIPAException{ DFAgentDescription dfd = new DFAgentDescription(); ServiceDescription sd = new ServiceDescription(); sd.setType(serviceType); sd.setName(serviceName); //NOTE El serviceType es un string que define el tipo de servicio publicado en el DF por el Agente X. // He escogido crear nombres en clave en jade.common.Definitions para este campo. //NOTE El serviceName es el nombre efectivo del servicio. // Esto es lo que el usuario va a definir en MockConfiguration.DFNameService y no el tipo como estaba puesto. // sd.setType(agentType); // sd.setName(agent.getLocalName()); //Add services?? // Sets the agent description dfd.setName(agent.getAID()); dfd.addServices(sd); // Register the agent DFService.register(agent, dfd); }
[ "Register the agent in the platform\n\n@param agent_name\nThe name of the agent to be registered\n@param agent\nThe agent to register.\n@throws FIPAException" ]
[ "Sets no of currency digits.\n\n@param currDigs Available values, 0,1,2", "Extract resource data.", "This filter adds a blur effect to the image using the specified radius and sigma.\n@param radius Radius used in the gaussian function to generate a matrix, maximum value is 150.\nThe bigger the radius more blurred will be the image.\n@param sigma Sigma used in the gaussian function.", "Set the payload to the fileModel of the given instance even though the variable is not directly of it's type. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Insert an entity into the datastore.\n\nThe entity must have no ids.\n\n@return The key for the inserted entity.\n@throws DatastoreException on error", "Removes the given object from the cache\n\n@param oid oid of the object to remove", "Gets an element of the matrix.\n\n@param row\nthe row\n@param col\nthe column\n@return the element at the given position", "Set the value for a custom request\n\n@param pathId ID of path\n@param customRequest value of custom request\n@param clientUUID UUID of client", "Validate ipv4 address with regular expression\n\n@param ip\naddress for validation\n\n@return true valid ip address, false invalid ip address" ]
public String genId() { S.Buffer sb = S.newBuffer(); sb.a(longEncoder.longToStr(nodeIdProvider.nodeId())) .a(longEncoder.longToStr(startIdProvider.startId())) .a(longEncoder.longToStr(sequenceProvider.seqId())); return sb.toString(); }
[ "Generate a unique ID across the cluster\n@return generated ID" ]
[ "Collect the total times measured by all known named timers of the given\nname. This is useful to add up times that were collected across separate\nthreads.\n\n@param timerName\n@return timer", "Add an extension to the set of extensions.\n\n@param extension an extension", "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "Instantiates a new event collector.", "Builds a batch-fetch capable loader based on the given persister, lock-mode, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockMode The lock mode\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Serialize an object with Json\n@param obj Object\n@return String\n@throws IOException", "Closes the outbound socket binding connection.\n\n@throws IOException", "Method generates abbreviated exception message.\n\n@param message\nOriginal log message\n@param throwable\nThe attached throwable\n@return Abbreviated exception message", "Get the bounding box for a certain tile.\n\n@param code\nThe unique tile code. Determines what tile we're talking about.\n@param maxExtent\nThe maximum extent of the grid to which this tile belongs.\n@param scale\nThe current client side scale.\n@return Returns the bounding box for the tile, expressed in the layer's coordinate system." ]
public Object doGetObjectByIdentity(Identity id) throws PersistenceBrokerException { if (logger.isDebugEnabled()) logger.debug("getObjectByIdentity " + id); // check if object is present in ObjectCache: Object obj = objectCache.lookup(id); // only perform a db lookup if necessary (object not cached yet) if (obj == null) { obj = getDBObject(id); } else { ClassDescriptor cld = getClassDescriptor(obj.getClass()); // if specified in the ClassDescriptor the instance must be refreshed if (cld.isAlwaysRefresh()) { refreshInstance(obj, id, cld); } // now refresh all references checkRefreshRelationships(obj, id, cld); } // Invoke events on PersistenceBrokerAware instances and listeners AFTER_LOOKUP_EVENT.setTarget(obj); fireBrokerEvent(AFTER_LOOKUP_EVENT); AFTER_LOOKUP_EVENT.setTarget(null); //logger.info("RETRIEVING object " + obj); return obj; }
[ "Internal used method to retrieve object based on Identity.\n\n@param id\n@return\n@throws PersistenceBrokerException" ]
[ "Finds the null space of A\n@param A (Input) Matrix. Modified\n@param numSingularValues Number of singular values\n@param nullspace Storage for null-space\n@return true if successful or false if it failed", "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference", "Set a bean in the context.\n\n@param name bean name\n@param object bean value", "Use this API to fetch vpnvserver_authenticationradiuspolicy_binding resources of given name .", "Get a PropertyResourceBundle able to read an UTF-8 properties file.\n@param baseName\n@param locale\n@return new ResourceBundle or null if no bundle can be found.\n@throws UnsupportedEncodingException\n@throws IOException", "Create a Task instance from a Phoenix activity.\n\n@param activity Phoenix activity data", "Update max min.\n\n@param n the n\n@param c the c", "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", "Examins the structure of A for QR decomposition\n@param A matrix which is to be decomposed\n@return true if the solution is valid or false if the decomposition can't be performed (i.e. requires column pivots)" ]
public static base_response add(nitro_service client, snmpmanager resource) throws Exception { snmpmanager addresource = new snmpmanager(); addresource.ipaddress = resource.ipaddress; addresource.netmask = resource.netmask; addresource.domainresolveretry = resource.domainresolveretry; return addresource.add_resource(client); }
[ "Use this API to add snmpmanager." ]
[ "Creates a list of placeholders for use in a PreparedStatement\n\n@param length number of placeholders\n@return String of placeholders, seperated by comma", "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "Finds binding for a type in the given injector and, if not found,\nrecurses to its parent\n\n@param injector\nthe current Injector\n@param type\nthe Class representing the type\n@return A boolean flag, <code>true</code> if binding found", "Add a '=' clause so the column must be equal to the value.", "We are adding a redeploy operation step for each specified deployment runtime name.\n\n@param context\n@param deploymentsRootAddress\n@param deploymentNames\n@throws OperationFailedException", "Creates AzureAsyncOperation from the given HTTP response.\n\n@param serializerAdapter the adapter to use for deserialization\n@param response the response\n@return the async operation object\n@throws CloudException if the deserialization fails or response contains invalid body", "Main method, handles all the setup tasks for DataGenerator a user would normally do themselves\n\n@param args command line arguments", "Sets the currently edited locale.\n@param locale the locale to set.", "Returns all tags that designate this tag. E.g., for \"tesla-model3\", this would return \"car\", \"vehicle\", \"vendor-tesla\" etc." ]
public void setModificationState(ModificationState newModificationState) { if(newModificationState != modificationState) { if(log.isDebugEnabled()) { log.debug("object state transition for object " + this.oid + " (" + modificationState + " --> " + newModificationState + ")"); // try{throw new Exception();}catch(Exception e) // { // e.printStackTrace(); // } } modificationState = newModificationState; } }
[ "set the Modification state to a new value. Used during state transitions.\n@param newModificationState org.apache.ojb.server.states.ModificationState" ]
[ "Convert an array of bytes into an array of ints. 4 bytes from the\ninput data map to a single int in the output data.\n@param bytes The data to read from.\n@return An array of 32-bit integers constructed from the data.\n@since 1.1", "Helper function that drops all local databases for every client.", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong", "Attempts to create a human-readable String representation of the provided rule.", "Print the given values after displaying the provided message.", "Initialize the fat client for the given store.\n\n1. Updates the coordinatorMetadata 2.Gets the new store configs from the\nconfig file 3.Creates a new @SocketStoreClientFactory 4. Subsequently\ncaches the @StoreClient obtained from the factory.\n\n\nThis is synchronized because if Coordinator Admin is already doing some\nchange we want the AsyncMetadataVersionManager to wait.\n\n@param storeName", "Given a Task instance, this task determines if it should be written to the\nPM XML file as an activity or as a WBS item, and calls the appropriate\nmethod.\n\n@param task Task instance", "Reads a command \"tag\" from the request.", "Set up server for report directory." ]
private ModelNode createJVMNode() throws OperationFailedException { ModelNode jvm = new ModelNode().setEmptyObject(); jvm.get(NAME).set(getProperty("java.vm.name")); jvm.get(JAVA_VERSION).set(getProperty("java.vm.specification.version")); jvm.get(JVM_VERSION).set(getProperty("java.version")); jvm.get(JVM_VENDOR).set(getProperty("java.vm.vendor")); jvm.get(JVM_HOME).set(getProperty("java.home")); return jvm; }
[ "Create a ModelNode representing the JVM the instance is running on.\n\n@return a ModelNode representing the JVM the instance is running on.\n@throws OperationFailedException" ]
[ "Start the drag operation of a scene object with a rigid body.\n\n@param sceneObject Scene object with a rigid body attached to it.\n@param hitX rel position in x-axis.\n@param hitY rel position in y-axis.\n@param hitZ rel position in z-axis.\n@return true if success, otherwise returns false.", "Adds the position.\n\n@param position the position", "Write a set of fields from a field container to a JSON file.\n@param objectName name of the object, or null if no name required\n@param container field container\n@param fields fields to write", "Synchronize the required files to a slave HC from the master DC if this is required.\n@param fileRepository the HostFileRepository of the HC.\n@param contentRepository the ContentRepository of the HC.\n@param backup inidcates if this is a DC backup HC.\n@param oldHash the hash of the deployment to be replaced.\n@return true if the content should be pulled by the slave HC - false otherwise.", "Use this API to fetch all the nsconfig resources that are configured on netscaler.", "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", "Return true if the two connections seem to one one connection under the covers.", "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted" ]
public static String getShortName(String className) { Assert.hasLength(className, "Class name must not be empty"); int lastDotIndex = className.lastIndexOf(PACKAGE_SEPARATOR); int nameEndIndex = className.indexOf(CGLIB_CLASS_SEPARATOR); if (nameEndIndex == -1) { nameEndIndex = className.length(); } String shortName = className.substring(lastDotIndex + 1, nameEndIndex); shortName = shortName.replace(INNER_CLASS_SEPARATOR, PACKAGE_SEPARATOR); return shortName; }
[ "Get the class name without the qualified package name.\n@param className the className to get the short name for\n@return the class name of the class without the package name\n@throws IllegalArgumentException if the className is empty" ]
[ "Formats a connection string for CLI to use as it's controller connection.\n\n@return the controller string to connect CLI", "Use this API to fetch all the authenticationradiusaction resources that are configured on netscaler.", "Returns the list of the configured sort options, or the empty list if no sort options are configured.\n@return The list of the configured sort options, or the empty list if no sort options are configured.", "Sets the time to wait when close connection watch threads are enabled. 0 = wait forever.\n@param closeConnectionWatchTimeout the watchTimeout to set\n@param timeUnit Time granularity", "Override this method to supply a custom splash screen image.\n\n@param gvrContext\nThe new {@link GVRContext}\n@return Texture to display\n\n@since 1.6.4", "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool", "Converts a vector from sample space into eigen space.\n\n@param sampleData Sample space data.\n@return Eigen space projection.", "Use this API to fetch appfwprofile_cookieconsistency_binding resources of given name .", "Clones the given collection.\n\n@param collDef The collection descriptor\n@param prefix A prefix for the name\n@return The cloned collection" ]
private void writeDayTypes(Calendars calendars) { DayTypes dayTypes = m_factory.createDayTypes(); calendars.setDayTypes(dayTypes); List<DayType> typeList = dayTypes.getDayType(); DayType dayType = m_factory.createDayType(); typeList.add(dayType); dayType.setId("0"); dayType.setName("Working"); dayType.setDescription("A default working day"); dayType = m_factory.createDayType(); typeList.add(dayType); dayType.setId("1"); dayType.setName("Nonworking"); dayType.setDescription("A default non working day"); dayType = m_factory.createDayType(); typeList.add(dayType); dayType.setId("2"); dayType.setName("Use base"); dayType.setDescription("Use day from base calendar"); }
[ "Write the standard set of day types.\n\n@param calendars parent collection of calendars" ]
[ "Returns all methods for a specific group\n\n@param groupId group ID to remove methods from\n@param filters array of method types to filter by, null means no filter\n@return Collection of methods found\n@throws Exception exception", "Create a new custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Sets a single element of this vector. Elements 0, 1, and 2 correspond to\nx, y, and z.\n\n@param i\nelement index\n@param value\nelement value\n@return element value throws ArrayIndexOutOfBoundsException if i is not\nin the range 0 to 2.", "Helper method fro providers to fire hotkey event in a separate thread\n\n@param hotKey hotkey to fire", "If supported by the WMS server, a parameter \"angle\" can be set on \"customParams\" or \"mergeableParams\".\nIn this case the rotation will be done natively by the WMS.", "Use this API to add appfwjsoncontenttype.", "Create an element that represents a horizntal or vertical line.\n@param x1\n@param y1\n@param x2\n@param y2\n@return the created DOM element", "format with lazy-eval", "Append the text at the end of the File.\n\n@param file a File\n@param text the text to append at the end of the File\n@throws IOException if an IOException occurs.\n@since 1.0" ]
private TableAlias createTableAlias(String aTable, String aPath, String aUserAlias) { if (aUserAlias == null) { return createTableAlias(aTable, aPath); } else { return createTableAlias(aTable, aUserAlias + ALIAS_SEPARATOR + aPath); } }
[ "Create a TableAlias for path or userAlias\n@param aTable\n@param aPath\n@param aUserAlias\n@return TableAlias" ]
[ "Adds the given entity to the inverse associations it manages.", "Starts closing the keyboard when the hits are scrolled.", "Iterates through the given CharSequence line by line, splitting each line using\nthe given separator Pattern. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param pattern the regular expression Pattern for the delimiter\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@since 1.8.2", "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)", "Returns the position of the specified value in the specified array.\n\n@param value the value to search for\n@param array the array to search in\n@return the position of the specified value in the specified array", "Create a new queued pool with key type K, request type R, and value type\nV.\n\n@param factory The factory that creates objects\n@param config The pool config\n@return The created pool", "Apply filter to an image.\n\n@param source FastBitmap", "Obtains a local date in Accounting calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date", "This looks at the servlet attributes to get the list of response headers to remove while the response object gets created by the servlet" ]
protected static PatchElement createPatchElement(final PatchEntry entry, String patchId, final List<ContentModification> modifications) { final PatchElement patchElement = entry.element; final PatchElementImpl element = new PatchElementImpl(patchId); element.setProvider(patchElement.getProvider()); // Add all the rollback actions element.getModifications().addAll(modifications); element.setDescription(patchElement.getDescription()); return element; }
[ "Copy a patch element\n\n@param entry the patch entry\n@param patchId the patch id for the element\n@param modifications the element modifications\n@return the new patch element" ]
[ "Creates an temporary directory. The created directory will be deleted when\ncommand will ended.", "Check if the node matches the column values\n\n@param nodeProperties the properties on the node\n@param keyColumnNames the name of the columns to check\n@param keyColumnValues the value of the columns to check\n@return true if the properties of the node match the column names and values", "Returns a usage String based on the defined command and options.\nUseful when printing \"help\" info etc.", "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop", "Write a size prefixed string where the size is stored as a 2 byte\nshort\n\n@param buffer The buffer to write to\n@param s The string to write", "Creates a new instance with the given key and value.\nMay be used instead of the constructor for convenience reasons.\n\n@param k\nthe key. May be <code>null</code>.\n@param v\nthe value. May be <code>null</code>.\n@return a newly created pair. Never <code>null</code>.\n@since 2.3", "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Add a creatable \"post-run\" dependent for this task item.\n\n@param creatable the creatable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve created \"post-run\" dependent", "Read a list of sub projects.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset" ]
public static base_response add(nitro_service client, vpnsessionaction resource) throws Exception { vpnsessionaction addresource = new vpnsessionaction(); addresource.name = resource.name; addresource.httpport = resource.httpport; addresource.winsip = resource.winsip; addresource.dnsvservername = resource.dnsvservername; addresource.splitdns = resource.splitdns; addresource.sesstimeout = resource.sesstimeout; addresource.clientsecurity = resource.clientsecurity; addresource.clientsecuritygroup = resource.clientsecuritygroup; addresource.clientsecuritymessage = resource.clientsecuritymessage; addresource.clientsecuritylog = resource.clientsecuritylog; addresource.splittunnel = resource.splittunnel; addresource.locallanaccess = resource.locallanaccess; addresource.rfc1918 = resource.rfc1918; addresource.spoofiip = resource.spoofiip; addresource.killconnections = resource.killconnections; addresource.transparentinterception = resource.transparentinterception; addresource.windowsclienttype = resource.windowsclienttype; addresource.defaultauthorizationaction = resource.defaultauthorizationaction; addresource.authorizationgroup = resource.authorizationgroup; addresource.clientidletimeout = resource.clientidletimeout; addresource.proxy = resource.proxy; addresource.allprotocolproxy = resource.allprotocolproxy; addresource.httpproxy = resource.httpproxy; addresource.ftpproxy = resource.ftpproxy; addresource.socksproxy = resource.socksproxy; addresource.gopherproxy = resource.gopherproxy; addresource.sslproxy = resource.sslproxy; addresource.proxyexception = resource.proxyexception; addresource.proxylocalbypass = resource.proxylocalbypass; addresource.clientcleanupprompt = resource.clientcleanupprompt; addresource.forcecleanup = resource.forcecleanup; addresource.clientoptions = resource.clientoptions; addresource.clientconfiguration = resource.clientconfiguration; addresource.sso = resource.sso; addresource.ssocredential = resource.ssocredential; addresource.windowsautologon = resource.windowsautologon; addresource.usemip = resource.usemip; addresource.useiip = resource.useiip; addresource.clientdebug = resource.clientdebug; addresource.loginscript = resource.loginscript; addresource.logoutscript = resource.logoutscript; addresource.homepage = resource.homepage; addresource.icaproxy = resource.icaproxy; addresource.wihome = resource.wihome; addresource.citrixreceiverhome = resource.citrixreceiverhome; addresource.wiportalmode = resource.wiportalmode; addresource.clientchoices = resource.clientchoices; addresource.epaclienttype = resource.epaclienttype; addresource.iipdnssuffix = resource.iipdnssuffix; addresource.forcedtimeout = resource.forcedtimeout; addresource.forcedtimeoutwarning = resource.forcedtimeoutwarning; addresource.ntdomain = resource.ntdomain; addresource.clientlessvpnmode = resource.clientlessvpnmode; addresource.emailhome = resource.emailhome; addresource.clientlessmodeurlencoding = resource.clientlessmodeurlencoding; addresource.clientlesspersistentcookie = resource.clientlesspersistentcookie; addresource.allowedlogingroups = resource.allowedlogingroups; addresource.securebrowse = resource.securebrowse; addresource.storefronturl = resource.storefronturl; addresource.kcdaccount = resource.kcdaccount; return addresource.add_resource(client); }
[ "Use this API to add vpnsessionaction." ]
[ "Normalizes this vector in place.", "Throws an IllegalStateException when the given value is not false.", "Notification that the server process finished.", "Retrieve the dir pointed to by 'latest' symbolic-link or the current\nversion dir\n\n@return Current version directory, else null", "Write a date field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Use this API to fetch nslimitselector resource of given name .", "Get a property as a double or null.\n\n@param key the property name", "Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1", "Use this API to fetch wisite_accessmethod_binding resources of given name ." ]
public void animate(GVRHybridObject object, float animationTime) { GVRMeshMorph morph = (GVRMeshMorph) mTarget; mKeyInterpolator.animate(animationTime * mDuration, mCurrentValues); morph.setWeights(mCurrentValues); }
[ "Computes the blend weights for the given time and\nupdates them in the target." ]
[ "The parameter 'project' is not used at the moment, but will be used once schema and plugin support lands.", "Add the given headers to the given HTTP request.\n@param httpRequest the request to add the headers to\n@param headers the headers to add", "read the file as a list of text lines", "Returns the complete property list of a class\n@param c the class\n@return the property list of the class", "Creates a db handling object.\n\n@return The db handling object\n@throws BuildException If the handling is invalid", "Read the header from the Phoenix file.\n\n@param stream input stream\n@return raw header data", "Retrieve the correct index for the supplied Table instance.\n\n@param table Table instance\n@return index", "Get the axis along the orientation\n@return", "Translate the operation address.\n\n@param op the operation\n@return the new operation" ]
public int[] argb(int x, int y) { Pixel p = pixel(x, y); return new int[]{p.alpha(), p.red(), p.green(), p.blue()}; }
[ "Returns the ARGB components for the pixel at the given coordinates\n\n@param x the x coordinate of the pixel component to grab\n@param y the y coordinate of the pixel component to grab\n@return an array containing ARGB components in that order." ]
[ "This method extracts project properties from a Phoenix file.\n\n@param phoenixSettings Phoenix settings\n@param storepoint Current storepoint", "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", "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception", "Convert a floating point date to a LocalDate.\n\nNote: This method currently performs a rounding to the next day.\nIn a future extension intra-day time offsets may be considered.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@return The date resulting from adding Math.round(fixingTime*365.0) days to referenceDate.", "Trim and append a file separator to the string", "Polls from the provided URL and updates the polling state with the\npolling response.\n\n@param pollingState the polling state for the current operation.\n@param url the url to poll from\n@param <T> the return type of the caller.", "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "Request a database sends a list of UUIDs.\n\n@param count The count of UUIDs.", "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to this panel\n@return the modified index" ]
private static void updateJar(final File file, final byte[] searchPattern, final int[] badSkipBytes, final int newSig, final int endSig) throws IOException { final RandomAccessFile raf = new RandomAccessFile(file, "rw"); try { final FileChannel channel = raf.getChannel(); try { long pos = channel.size() - ENDLEN; final ScanContext context; if (newSig == CRIPPLED_ENDSIG) { context = new ScanContext(GOOD_ENDSIG_PATTERN, CRIPPLED_ENDSIG_PATTERN); } else if (newSig == GOOD_ENDSIG) { context = new ScanContext(CRIPPLED_ENDSIG_PATTERN, GOOD_ENDSIG_PATTERN); } else { context = null; } if (!validateEndRecord(file, channel, pos, endSig)) { pos = scanForEndSig(file, channel, context); } if (pos == -1) { if (context.state == State.NOT_FOUND) { // Don't fail patching if we cannot validate a valid zip PatchLogger.ROOT_LOGGER.cannotInvalidateZip(file.getAbsolutePath()); } return; } // Update the central directory record channel.position(pos); final ByteBuffer buffer = ByteBuffer.allocate(4); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putInt(newSig); buffer.flip(); while (buffer.hasRemaining()) { channel.write(buffer); } } finally { safeClose(channel); } } finally { safeClose(raf); } }
[ "Update the central directory signature of a .jar.\n\n@param file the file to process\n@param searchPattern the search patter to use\n@param badSkipBytes the bad bytes skip table\n@param newSig the new signature\n@param endSig the expected signature\n@throws IOException" ]
[ "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded", "All tests completed.", "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape.", "Tries to guess the packaging of the archive - whether it's an EAR, WAR, JAR.\nMaybe not needed as we can rely on the suffix?", "Use this API to fetch all the cacheselector resources that are configured on netscaler.", "Register operations associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Builds a batch-fetch capable loader based on the given persister, lock-options, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockOptions The lock options\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Attach a metadata cache file to a particular player media slot, so the cache will be used instead of querying\nthe player for metadata. This supports operation with metadata during shows where DJs are using all four player\nnumbers and heavily cross-linking between them.\n\nIf the media is ejected from that player slot, the cache will be detached.\n\n@param slot the media slot to which a meta data cache is to be attached\n@param file the metadata cache to be attached\n\n@throws IOException if there is a problem reading the cache file\n@throws IllegalArgumentException if an invalid player number or slot is supplied\n@throws IllegalStateException if the metadata finder is not running", "Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{@link Type#getInternalName() getInternalName}).\n@param name\nthe method's name.\n@param desc\nthe method's descriptor (see {@link Type Type}).\n@param itf\nif the method's owner class is an interface." ]
public Date getPreviousWorkFinish(Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); updateToPreviousWorkFinish(cal); return cal.getTime(); }
[ "Utility method to retrieve the previous working date finish time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of previous work finish" ]
[ "Cancel all currently active operations.\n\n@return a list of cancelled operations", "This is pretty ugly. We end up mimicking the request logic here, so this\nneeds to stay in sync with handleRequest.", "Returns the value of the identified field as an Integer.\n@param fieldName the name of the field\n@return the value of the field as an Integer\n@throws FqlException if the field cannot be expressed as an Integer", "Returns the y-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the y coordinate", "Prepare a parallel HTTP HEAD Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Use this API to fetch dnstxtrec resource of given name .", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add.", "Creates SLD rules for each old style.", "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args" ]
public static RgbaColor fromHsl(float H, float S, float L) { // convert to [0-1] H /= 360f; S /= 100f; L /= 100f; float R, G, B; if (S == 0) { // grey R = G = B = L; } else { float m2 = L <= 0.5 ? L * (S + 1f) : L + S - L * S; float m1 = 2f * L - m2; R = hue2rgb(m1, m2, H + 1 / 3f); G = hue2rgb(m1, m2, H); B = hue2rgb(m1, m2, H - 1 / 3f); } // convert [0-1] to [0-255] int r = Math.round(R * 255f); int g = Math.round(G * 255f); int b = Math.round(B * 255f); return new RgbaColor(r, g, b, 1); }
[ "Creates a new RgbaColor from the specified HSL components.\n\n<p>\n<i>Implementation based on <a\nhref=\"http://en.wikipedia.org/wiki/HSL_and_HSV\">wikipedia</a>\nand <a\nhref=\"http://www.w3.org/TR/css3-color/#hsl-color\">w3c</a></i>\n\n@param H\nHue [0,360)\n@param S\nSaturation [0,100]\n@param L\nLightness [0,100]" ]
[ "Creates dependency on management executor.\n\n@param builder the builder\n@param injector the injector\n@param <T> the parameter type\n@return service builder instance\n@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future.", "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "A specific, existing tag can be deleted by making a DELETE request\non the URL for that tag.\n\nReturns an empty data record.\n\n@param tag The tag to delete.\n@return Request object", "Receives a PropertyColumn and returns a JRDesignField", "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "a useless object at the top level of the response JSON for no reason at all.", "Checks to see if a standalone server is running.\n\n@param client the client used to communicate with the server\n\n@return {@code true} if the server is running, otherwise {@code false}", "Print currency.\n\n@param value currency value\n@return currency value", "Notification that a connection was closed.\n\n@param closed the closed connection" ]
public ReplyObject getReplyList(String topicId, int perPage, int page) throws FlickrException { ReplyList<Reply> reply = new ReplyList<Reply>(); TopicList<Topic> topic = new TopicList<Topic>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_REPLIES_GET_LIST); parameters.put("topic_id", topicId); if (perPage > 0) { parameters.put("per_page", "" + perPage); } if (page > 0) { parameters.put("page", "" + page); } Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element replyElements = response.getPayload(); ReplyObject ro = new ReplyObject(); NodeList replyNodes = replyElements.getElementsByTagName("reply"); for (int i = 0; i < replyNodes.getLength(); i++) { Element replyNodeElement = (Element) replyNodes.item(i); // Element replyElement = XMLUtilities.getChild(replyNodeElement, "reply"); reply.add(parseReply(replyNodeElement)); ro.setReplyList(reply); } NodeList topicNodes = replyElements.getElementsByTagName("topic"); for (int i = 0; i < topicNodes.getLength(); i++) { Element replyNodeElement = (Element) replyNodes.item(i); // Element topicElement = XMLUtilities.getChild(replyNodeElement, "topic"); topic.add(parseTopic(replyNodeElement)); ro.setTopicList(topic); } return ro; }
[ "Get list of replies\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@return A reply object\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getList.html\">API Documentation</a>" ]
[ "Use this API to fetch the statistics of all spilloverpolicy_stats resources that are configured on netscaler.", "Specify the output format of the image.\n\n@see ImageFormat", "Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in the prototypes collection.\n@return the prototype index associated to the prototypeClass.", "compute Sin using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Remove a child view of Android hierarchy view .\n\n@param view View to be removed.", "Adds mappings for each declared field in the mapped class. Any fields\nalready mapped by addColumn are skipped.", "Calculate start dates for a yearly recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Test the list of TimephasedWork instances to see\nif any of them have been modified.\n\n@param list list of TimephasedWork instances\n@return boolean flag", "Checks to see if a handler is disabled\n\n@param handlerName the name of the handler to enable." ]
public void updateLinks(ServiceReference<S> serviceReference) { for (D declaration : linkerManagement.getMatchedDeclaration()) { boolean isAlreadyLinked = declaration.getStatus().getServiceReferencesBounded().contains(serviceReference); boolean canBeLinked = linkerManagement.canBeLinked(declaration, serviceReference); if (isAlreadyLinked && !canBeLinked) { linkerManagement.unlink(declaration, serviceReference); } else if (!isAlreadyLinked && canBeLinked) { linkerManagement.link(declaration, serviceReference); } } }
[ "Update all the links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder" ]
[ "Use this API to unset the properties of rnatparam resource.\nProperties that need to be unset are specified in args array.", "Creates a new row with content with given cell context and a normal row style.\n@param content the content for the row, each member of the array represents the content for a cell in the row, must not be null but can contain null members\n@return a new row with content\n@throws {@link NullPointerException} if content was null", "Format event to string buffer.\n\n@param sbuf\nstring buffer to receive formatted event, may not be null.\n@param event\nevent to format, may not be null.", "Creates a resource ID from information of a generic resource.\n\n@param subscriptionId the subscription UUID\n@param resourceGroupName the resource group name\n@param resourceProviderNamespace the resource provider namespace\n@param resourceType the type of the resource or nested resource\n@param resourceName name of the resource or nested resource\n@param parentResourcePath parent resource's relative path to the provider,\nif the resource is a generic resource\n@return the resource ID string", "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "Reads the entity hosting the association from the datastore and applies any property changes from the server\nside.", "Retrieve row from a nested table.\n\n@param name column name\n@return nested table rows", "Check config.\n\n@param context the context\n@return true, if successful\n@throws Exception the exception", "Enable a custom response\n\n@param custom custom response\n@param path_id path ID of the response\n@param client_uuid client UUID\n@throws Exception exception" ]
public void useXopAttachmentServiceWithProxy() throws Exception { final String serviceURI = "http://localhost:" + port + "/services/attachments"; XopAttachmentService proxy = JAXRSClientFactory.create(serviceURI, XopAttachmentService.class); XopBean xop = createXopBean(); System.out.println(); System.out.println("Posting a XOP attachment with a proxy"); XopBean xopResponse = proxy.echoXopAttachment(xop); verifyXopResponse(xop, xopResponse); }
[ "Writes and reads the XOP attachment using a CXF JAX-RS Proxy\nThe proxy automatically sets the \"mtom-enabled\" property by checking\nthe CXF EndpointProperty set on the XopAttachment interface.\n\n@throws Exception" ]
[ "Random string from string array\n\n@param s Array\n@return String", "orientation state factory method", "Add the extra parameters which are passed as report parameters. The type of the parameter is \"guessed\" from the\nfirst letter of the parameter name.\n\n@param model view model\n@param request servlet request", "very big duct tape", "flush all messages to disk\n\n@param force flush anyway(ignore flush interval)", "Initializes the counters for a property to zero if not done yet.\n\n@param usageStatistics\nstatistics object to initialize\n@param property\nthe property to count", "performs an UPDATE operation against RDBMS.\n@param obj The Object to be updated in the underlying table.\n@param cld ClassDescriptor providing mapping information.", "Performs a null edit on a property. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param propertyId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Resets the state of the scope.\nUseful for automation testing when we want to reset the scope used to install test modules." ]
public UriComponentsBuilder pathSegment(String... pathSegments) throws IllegalArgumentException { Assert.notNull(pathSegments, "'segments' must not be null"); this.pathBuilder.addPathSegments(pathSegments); resetSchemeSpecificPart(); return this; }
[ "Append the given path segments to the existing path of this builder.\nEach given path segment may contain URI template variables.\n@param pathSegments the URI path segments\n@return this UriComponentsBuilder" ]
[ "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", "Used to locate the first timephased resource assignment block which\nintersects with the target date range.\n\n@param <T> payload type\n@param range target date range\n@param assignments timephased resource assignments\n@param startIndex index at which to start the search\n@return index of timephased resource assignment which intersects with the target date range", "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance", "Convert the continuous values into discrete values by chopping up\nthe distribution into several equally-sized intervals.", "Add a \"post-run\" dependent for this model.\n\n@param dependent the \"post-run\" dependent.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group", "Returns the context the view is running in, through which it can\naccess the current theme, resources, etc.\n\n@return The view's Context.", "Determine the target type for the generic return type of the given method,\nwhere formal type variables are declared on the given class.\n@param method the method to introspect\n@param clazz the class to resolve type variables against\n@return the corresponding generic parameter or return type\n@see #resolveReturnTypeForGenericMethod", "Visit an open package of the current module.\n\n@param packaze the qualified name of the opened package.\n@param access the access flag of the opened package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can use deep\nreflection to the classes of the open package or\n<tt>null</tt>.", "See page 385 of Fundamentals of Matrix Computations 2nd" ]
public void setDerivatives(double[] parameters, double[][] derivatives) throws SolverException { // Calculate new derivatives. Note that this method is called only with // parameters = parameterCurrent, so we may use valueCurrent. Vector<Future<double[]>> valueFutures = new Vector<Future<double[]>>(parameterCurrent.length); for (int parameterIndex = 0; parameterIndex < parameterCurrent.length; parameterIndex++) { final double[] parametersNew = parameters.clone(); final double[] derivative = derivatives[parameterIndex]; final int workerParameterIndex = parameterIndex; Callable<double[]> worker = new Callable<double[]>() { public double[] call() { double parameterFiniteDifference; if(parameterSteps != null) { parameterFiniteDifference = parameterSteps[workerParameterIndex]; } else { /* * Try to adaptively set a parameter shift. Note that in some * applications it may be important to set parameterSteps. * appropriately. */ parameterFiniteDifference = (Math.abs(parametersNew[workerParameterIndex]) + 1) * 1E-8; } // Shift parameter value parametersNew[workerParameterIndex] += parameterFiniteDifference; // Calculate derivative as (valueUpShift - valueCurrent) / parameterFiniteDifference try { setValues(parametersNew, derivative); } catch (Exception e) { // We signal an exception to calculate the derivative as NaN Arrays.fill(derivative, Double.NaN); } for (int valueIndex = 0; valueIndex < valueCurrent.length; valueIndex++) { derivative[valueIndex] -= valueCurrent[valueIndex]; derivative[valueIndex] /= parameterFiniteDifference; if(Double.isNaN(derivative[valueIndex])) { derivative[valueIndex] = 0.0; } } return derivative; } }; if(executor != null) { Future<double[]> valueFuture = executor.submit(worker); valueFutures.add(parameterIndex, valueFuture); } else { FutureTask<double[]> valueFutureTask = new FutureTask<double[]>(worker); valueFutureTask.run(); valueFutures.add(parameterIndex, valueFutureTask); } } for (int parameterIndex = 0; parameterIndex < parameterCurrent.length; parameterIndex++) { try { derivatives[parameterIndex] = valueFutures.get(parameterIndex).get(); } catch (InterruptedException e) { throw new SolverException(e); } catch (ExecutionException e) { throw new SolverException(e); } } }
[ "The derivative of the objective function. You may override this method\nif you like to implement your own derivative.\n\n@param parameters Input value. The parameter vector.\n@param derivatives Output value, where derivatives[i][j] is d(value(j)) / d(parameters(i)\n@throws SolverException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method." ]
[ "This method writes project extended attribute data into an MSPDI file.\n\n@param project Root node of the MSPDI file", "Use this API to fetch sslvserver_sslcertkey_binding resources of given name .", "Returns a flag, indicating if the current event is a multi-day event.\nThe method is only called if the single event has an explicitely set end date\nor an explicitely changed whole day option.\n\n@return a flag, indicating if the current event takes lasts over more than one day.", "Creates PollingState from the json string.\n\n@param serializedPollingState polling state as json string\n@param <ResultT> the result that the poll operation produces\n@return the polling state", "Utility method to retrieve the next working date start time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of next work start", "Get the photos for the specified group pool, optionally filtering by taf.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param groupId\nThe group ID\n@param userId\nThe user ID (may be null)\n@param tags\nThe optional tags (may be null)\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page (0 to ignore)\n@param page\nThe page offset (0 to ignore)\n@return A Collection of Photo objects\n@throws FlickrException", "Write the text to the Path, using the specified encoding.\n\n@param self a Path\n@param text the text to write to the Path\n@param charset the charset used\n@throws java.io.IOException if an IOException occurs.\n@since 2.3.0", "Get the last modified time for a set of files.", "Find any standard methods the user has 'underridden' in their type." ]
public long countByLex(final LexRange lexRange) { return doWithJedis(new JedisCallable<Long>() { @Override public Long call(Jedis jedis) { return jedis.zlexcount(getKey(), lexRange.from(), lexRange.to()); } }); }
[ "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns the number of elements in the sorted set with a value in the given range.\n@param lexRange\n@return the number of elements in the specified range." ]
[ "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "legacy helper for setting background", "Constructs a relative path between this path and a given path.\n\n<p> Relativization is the inverse of {@link #getAbsolutePath(Path) resolution}.\nThis method attempts to construct a {@link #isAbsolute relative} path\nthat when {@link #getAbsolutePath(Path) resolved} against this path, yields a\npath that locates the same file as the given path. For example, on UNIX,\nif this path is {@code \"/a/b\"} and the given path is {@code \"/a/b/c/d\"}\nthen the resulting relative path would be {@code \"c/d\"}.\nBoth paths must be absolute and and either this path or the given path must be a\n{@link #startsWith(Path) prefix} of the other.\n\n@param other\nthe path to relativize against this path\n\n@return the resulting relative path or null if neither of the given paths is a prefix of the other\n\n@throws IllegalArgumentException\nif this path and {@code other} are not both absolute or relative", "Populates currency settings.\n\n@param record MPX record\n@param properties project properties", "Starts off a new thread to monitor this connection attempt.\n@param connectionHandle to monitor", "Writes the results of the processing to a CSV file.", "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.", "Declares a shovel.\n\n@param vhost virtual host where to declare the shovel\n@param info Shovel info." ]
public void clear() { List<Widget> children = getChildren(); Log.d(TAG, "clear(%s): removing %d children", getName(), children.size()); for (Widget child : children) { removeChild(child, true); } requestLayout(); }
[ "Removes all children" ]
[ "Read all top level tasks.", "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", "Converts an integer into a time format.\n\n@param format integer format value\n@return TimeUnit instance", "A GString variant of the equivalent GString method.\n\n@param self the original GString\n@param condition the closure that must evaluate to true to continue taking elements\n@return a prefix of elements in the GString where each\nelement passed to the given closure evaluates to true\n@since 2.3.7", "Return all scripts of a given type\n\n@param type integer value of type\n@return Array of scripts of the given type", "Delivers the correct JSON Object for the Bounds\n\n@param bounds\n@throws org.json.JSONException", "Tests correctness. Try\nfrom=1000, to=10000\nfrom=200, to=1000\nfrom=16, to=1000\nfrom=1000, to=Integer.MAX_VALUE", "Sets the appropriate OpenCms context.\n@param cms The OpenCms instance object.", "Gets a string attribute from a json object given a path to traverse.\n\n@param record a JSONObject to traverse.\n@param path the json path to follow.\n@return the attribute as a {@link String}, or null if it was not found." ]
@Override public <K, V> StoreClient<K, V> getStoreClient(final String storeName, final InconsistencyResolver<Versioned<V>> resolver) { // wrap it in LazyStoreClient here so any direct calls to this method // returns a lazy client return new LazyStoreClient<K, V>(new Callable<StoreClient<K, V>>() { @Override public StoreClient<K, V> call() throws Exception { Store<K, V, Object> clientStore = getRawStore(storeName, resolver); return new RESTClient<K, V>(storeName, clientStore); } }, true); }
[ "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return" ]
[ "Read task data from a PEP file.", "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed.", "This method log given exception in specified listener", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Return the inverse cumulative distribution function at x.\n\n@param x Argument\n@return Inverse cumulative distribution function at x.", "Create a style from a list of rules.\n\n@param styleRules the rules", "Remove multiple fields from the map\n@param fields the fields to remove\n@return the number of fields removed", "Try Oracle update batching and call executeUpdate or revert to\nJDBC update batching.\n@param stmt the statement beeing added to the batch\n@throws PlatformException upon JDBC failure", "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException" ]
public static void main(String[] args) throws IOException, ClassNotFoundException { CoNLLDocumentReaderAndWriter f = new CoNLLDocumentReaderAndWriter(); f.init(new SeqClassifierFlags()); int numDocs = 0; int numTokens = 0; int numEntities = 0; String lastAnsBase = ""; for (Iterator<List<CoreLabel>> it = f.getIterator(new FileReader(args[0])); it.hasNext(); ) { List<CoreLabel> doc = it.next(); numDocs++; for (CoreLabel fl : doc) { // System.out.println("FL " + (++i) + " was " + fl); if (fl.word().equals(BOUNDARY)) { continue; } String ans = fl.get(AnswerAnnotation.class); String ansBase; String ansPrefix; String[] bits = ans.split("-"); if (bits.length == 1) { ansBase = bits[0]; ansPrefix = ""; } else { ansBase = bits[1]; ansPrefix = bits[0]; } numTokens++; if (ansBase.equals("O")) { } else if (ansBase.equals(lastAnsBase)) { if (ansPrefix.equals("B")) { numEntities++; } } else { numEntities++; } } } System.out.println("File " + args[0] + " has " + numDocs + " documents, " + numTokens + " (non-blank line) tokens and " + numEntities + " entities."); }
[ "Count some stats on what occurs in a file." ]
[ "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "If the layer transformer has not been prepared yet, do it.\n\n@param transformer the transformer", "Returns the list of module dependencies regarding the provided filters\n\n@param moduleId String\n@param filters FiltersHolder\n@return List<Dependency>", "performs a SELECT operation against RDBMS.\n@param query the query string.\n@param cld ClassDescriptor providing JDBC information.", "Plots the MSD curve with the trajectory t and adds the fitted model for anomalous diffusion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Exponent alpha of power law function\n@param D Diffusion coeffcient", "Resize the mesh to given size for each axis.\n\n@param mesh Mesh to be resized.\n@param xsize Size for x-axis.\n@param ysize Size for y-axis.\n@param zsize Size fof z-axis.", "Processes one of the menu responses that jointly constitute the track metadata, updating our\nfields accordingly.\n\n@param item the menu response to be considered", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "Write a priority field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public void unbind(T service, Map<String, Object> props) { synchronized (serviceMap) { serviceMap.remove(ServiceUtil.getComparableForServiceRanking(props)); updateSortedServices(); } }
[ "Handle unbind service event.\n@param service Service instance\n@param props Service reference properties" ]
[ "Check the version of a command class by sending a VERSION_COMMAND_CLASS_GET message to the node.\n@param commandClass the command class to check the version for.", "Print a timestamp value.\n\n@param value time value\n@return time value", "This method maps the encoded height of a Gantt bar to\nthe height in pixels.\n\n@param height encoded height\n@return height in pixels", "Register a new TypeConverter for parsing and serialization.\n\n@param cls The class for which the TypeConverter should be used.\n@param converter The TypeConverter", "Retrieves a string value from the property data.\n\n@param type Type identifier\n@return string value", "This method will return a list of installed identities for which\nthe corresponding .conf file exists under .installation directory.\nThe list will also include the default identity even if the .conf\nfile has not been created for it.", "Creates custom Http Client connection pool to be used by Http Client\n\n@return {@link PoolingHttpClientConnectionManager}", "Reconstructs a number that is represented by more than one byte in a network packet in big-endian order.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "Use this API to fetch clusterinstance resources of given names ." ]
private void setHint() { if (mPhoneEdit != null && mSelectedCountry != null && mSelectedCountry.getIso() != null) { Phonenumber.PhoneNumber phoneNumber = mPhoneUtil.getExampleNumberForType(mSelectedCountry.getIso(), PhoneNumberUtil.PhoneNumberType.MOBILE); if (phoneNumber != null) { mPhoneEdit.setHint(mPhoneUtil.format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.NATIONAL)); } } }
[ "Set hint number for country" ]
[ "Use this API to unset the properties of nsrpcnode resource.\nProperties that need to be unset are specified in args array.", "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.", "Do some magic to turn request parameters into a context object", "Creates image stream request and returns it in JSON formatted string.\n\n@param name Name of the image stream\n@param insecure If the registry where the image is stored is insecure\n@param image Image name, includes registry information and tag\n@param version Image stream version.\n@return JSON formatted string", "Render json.\n\n@param o\nthe o\n@return the string", "Set the enum representing the type of this column.\n\n@param tableType type of table to which this column belongs", "Obtain the destination hostname for a source host\n\n@param hostName\n@return", "Use this API to add inat resources.", "Replaces the model used to depict the controller in the scene.\n\n@param controllerModel root of hierarchy to use for controller model\n@see #getControllerModel()\n@see #showControllerModel(boolean)" ]
private void logState(final FileRollEvent fileRollEvent) { // if (ApplicationState.isApplicationStateEnabled()) { synchronized (this) { final Collection<ApplicationState.ApplicationStateMessage> entries = ApplicationState.getAppStateEntries(); for (ApplicationState.ApplicationStateMessage entry : entries) { Level level = ApplicationState.getLog4jLevel(entry.getLevel()); if(level.isGreaterOrEqual(ApplicationState.LOGGER.getEffectiveLevel())) { final org.apache.log4j.spi.LoggingEvent loggingEvent = new org.apache.log4j.spi.LoggingEvent(ApplicationState.FQCN, ApplicationState.LOGGER, level, entry.getMessage(), null); //Save the current layout before changing it to the original (relevant for marker cases when the layout was changed) Layout current=fileRollEvent.getSource().getLayout(); //fileRollEvent.getSource().activeOriginalLayout(); String flowContext = (String) MDC.get("flowCtxt"); MDC.remove("flowCtxt"); //Write applicationState: if(fileRollEvent.getSource().isAddApplicationState() && fileRollEvent.getSource().getFile().endsWith("log")){ fileRollEvent.dispatchToAppender(loggingEvent); } //Set current again. fileRollEvent.getSource().setLayout(current); if (flowContext != null) { MDC.put("flowCtxt", flowContext); } } } } // } }
[ "Write all state items to the log file.\n\n@param fileRollEvent the event to log" ]
[ "Set default interval for sending events to monitoring service. DefaultInterval will be used by\nscheduler.\n\n@param defaultInterval the new default interval", "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list", "Creates a XopBean. The image on the disk is included as a byte array,\na DataHandler and java.awt.Image\n@return the bean\n@throws Exception", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value", "Sets the first occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception", "Retrieves the real subject from the underlying RDBMS. Override this\nmethod if the object is to be materialized in a specific way.\n\n@return The real subject of the proxy", "Initializes context size.\n\n@param rectangle rectangle", "Adds a port that serves the HTTP requests. If unspecified, cleartext HTTP on port 36462 is used.\n\n@param localAddress the TCP/IP load address to bind\n@param protocol {@link SessionProtocol#HTTP} or {@link SessionProtocol#HTTPS}", "Configure the mapping between a database column and a field.\n\n@param container column to field map\n@param name column name\n@param type field type" ]
public List<ServerRedirect> tableServers(int clientId) { List<ServerRedirect> servers = new ArrayList<>(); try { Client client = ClientService.getInstance().getClient(clientId); servers = tableServers(client.getProfile().getId(), client.getActiveServerGroup()); } catch (SQLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return servers; }
[ "Get the server redirects for a given clientId from the database\n\n@param clientId client ID\n@return collection of ServerRedirects" ]
[ "Add a '&gt;=' clause so the column must be greater-than or equals-to the value.", "Runs the server.", "This method allows a predecessor relationship to be added to this\ntask instance.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return relationship", "Generate a report about the targeted module dependencies\n\n@param moduleId String\n@param filters FiltersHolder\n@return DependencyReport", "Re-reads the given entity, refreshing any properties updated on the server-side during insert or update.", "This method is called to format a priority.\n\n@param value priority instance\n@return formatted priority value", "Old REST client uses old REST service", "Meant to execute assertions in tests only\n@return a read-only view of the map containing the relations between entities", "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image" ]
public void putEvents(List<Event> events) { List<Event> filteredEvents = filterEvents(events); executeHandlers(filteredEvents); for (Event event : filteredEvents) { persistenceHandler.writeEvent(event); } }
[ "Executes all event manipulating handler and writes the event with persist\nhandler.\n\n@param events the events" ]
[ "Retrieve list of assignment extended attributes.\n\n@return list of extended attributes", "legacy helper for setting background", "Sets the bottom padding character for all cells in the row.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining", "Call the Coverage Task.", "Use this API to clear gslbldnsentries resources.", "Adds a table to this model.\n\n@param table The table", "Decompiles the given .class file and creates the specified output source file.\n\n@param classFilePath the .class file to be decompiled.\n@param outputDir The directory where decompiled .java files will be placed.", "This method extracts task data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Close off the connection.\n\n@throws SQLException" ]
public static base_responses clear(nitro_service client, Interface resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { Interface clearresources[] = new Interface[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new Interface(); clearresources[i].id = resources[i].id; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
[ "Use this API to clear Interface resources." ]
[ "When creating barcode columns\n@return", "Should this request URI be compressed?\n\n@param requestUri request URI\n@return true when should be compressed", "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.", "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid", "Sets the max min.\n\n@param n the new max min", "Returns the invocation handler object of the given proxy object.\n\n@param obj The object\n@return The invocation handler if the object is an OJB proxy, or <code>null</code>\notherwise", "Retrieve the state object associated with the specified interceptor instance and property\nname on this request context.\n\n@param interceptor the interceptor instance\n@param stateName the name key that the state object was stored under\n@param stateType class of the type the stored state should be returned as\n@param <T> the type the stored state should be returned as\n@return the stored state object\n@see #setState(HttpConnectionInterceptor, String, Object)\n@since 2.6.0", "Use this API to save cachecontentgroup resources.", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key" ]
public static base_responses update(nitro_service client, bridgetable resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { bridgetable updateresources[] = new bridgetable[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new bridgetable(); updateresources[i].bridgeage = resources[i].bridgeage; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update bridgetable resources." ]
[ "Returns the x-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the x coordinate", "Runs through the log removing segments older than a certain age\n\n@throws IOException", "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "Produces all tuples of size n chosen from a list of variable names\n\n@param variables the list of variable names to make tuples of\n@param nWise the size of the desired tuples\n@return all tuples of size nWise", "Create an image of the proper size to hold a new waveform preview image and draw it.", "EAP 7.1", "package scope in order to test the method", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise" ]
static PlexusConfiguration convert(ModelNode configuration, ModelNode jsonSchema, String extensionId, String id) { ConversionContext ctx = new ConversionContext(); ctx.currentSchema = jsonSchema; ctx.rootSchema = jsonSchema; ctx.pushTag(extensionId); ctx.id = id; return convert(configuration, ctx); }
[ "visibility increased for testing" ]
[ "Calculate the actual bit length of the proposed binary string.", "Prepare the document before rendering.\n\n@param outputStream output stream to render to, null if only for layout\n@param format format\n@throws DocumentException oops\n@throws IOException oops\n@throws PrintingException oops", "Checks anonymous fields.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.", "We have identified that we have a SQLite file. This could be a Primavera Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Output method responsible for sending the updated content to the Subscribers.\n\n@param cn", "Returns a list of files in given addon passing given filter.", "Checks the existence of the directory. If it does not exist, the method creates it.\n\n@param dir the directory to check.\n@throws IOException if fails.", "Adds the word.\n\n@param w the w\n@throws ParseException the parse exception" ]
public WebSocketContext sendJsonToUser(Object data, String username) { return sendToTagged(JSON.toJSONString(data), username); }
[ "Send JSON representation of a data object to all connections of a certain user\n\n@param data the data to be sent\n@param username the username\n@return this context" ]
[ "A GString variant of the equivalent GString method.\n\n@param self the original GString\n@param condition the closure that must evaluate to true to continue taking elements\n@return a prefix of elements in the GString where each\nelement passed to the given closure evaluates to true\n@since 2.3.7", "Use this API to update snmpoption.", "Animate de-selection of visible views and clear\nselected set.", "Get the authentication method to use.\n\n@return authentication method", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "convert filename to clean filename", "Is invoked on the leaf deletion only.\n\n@param left left page.\n@param right right page.\n@return true if the left page ought to be merged with the right one.", "Returns the Class object of the class specified in the OJB.properties\nfile for the \"PersistentFieldClass\" property.\n\n@return Class The Class object of the \"PersistentFieldClass\" class\nspecified in the OJB.properties file.", "Computes the null space using QR decomposition. This is much faster than using SVD\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space" ]
public static Artifact withVersion(Version v) { Artifact artifact = new Artifact(); artifact.version = v; return artifact; }
[ "Start with specifying the artifact version" ]
[ "Extracts assignment baseline data.\n\n@param assignment xml assignment\n@param mpx mpxj assignment", "Retrieve the default number of minutes per year.\n\n@return minutes per year", "Join with another query builder. This will add into the SQL something close to \" INNER JOIN other-table ...\".\nEither the object associated with the current QueryBuilder or the argument QueryBuilder must have a foreign field\nof the other one. An exception will be thrown otherwise.\n\n<p>\n<b>NOTE:</b> This will do combine the WHERE statement of the two query builders with a SQL \"AND\". See\n{@link #joinOr(QueryBuilder)}.\n</p>", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance", "Sets the character translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator\n@return this to allow chaining", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Links the two field names into a single left.right field name.\nIf the left field is empty, right is returned\n\n@param left one field name\n@param right the other field name\n\n@return left.right or right if left is an empty string", "Compares two avro strings which contains multiple store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content" ]
public void writeFinalResults() { printStatus(); try (PrintStream out = new PrintStream( ExampleHelpers .openExampleFileOuputStream("life-expectancies.csv"))) { for (int i = 0; i < lifeSpans.length; i++) { if (peopleCount[i] != 0) { out.println(i + "," + (double) lifeSpans[i] / peopleCount[i] + "," + peopleCount[i]); } } } catch (IOException e) { e.printStackTrace(); } }
[ "Writes the results of the processing to a file." ]
[ "Computes the p=2 norm. If A is a matrix then the induced norm is computed. This\nimplementation is faster, but more prone to buffer overflow or underflow problems.\n\n@param A Matrix or vector.\n@return The norm.", "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", "Get all the handlers at a specific address.\n\n@param address the address\n@param inherited true to include the inherited operations\n@return the handlers", "Creates a Resque backtrace from a Throwable's stack trace. Includes\ncauses.\n\n@param t\nthe Exception to use\n@return a list of strings that represent how the exception's stacktrace\nappears.", "Returns a flag, indicating if search should be performed using a wildcard if the empty query is given.\n@return A flag, indicating if search should be performed using a wildcard if the empty query is given.", "Use this API to fetch a vpnglobal_authenticationsamlpolicy_binding resources.", "Shows error dialog, manually supplying details instead of getting them from an exception stack trace.\n\n@param message the error message\n@param details the details", "Installs a path service.\n\n@param name the name to use for the service\n@param path the relative portion of the path\n@param possiblyAbsolute {@code true} if {@code path} may be an {@link #isAbsoluteUnixOrWindowsPath(String) absolute path}\nand should be {@link AbsolutePathService installed as such} if it is, with any\n{@code relativeTo} parameter ignored\n@param relativeTo the name of the path that {@code path} may be relative to\n@param serviceTarget the {@link ServiceTarget} to use to install the service\n@return the ServiceController for the path service", "Un-serialize a Json into Module\n@param module String\n@return Module\n@throws IOException" ]
public boolean getOverAllocated() { Boolean overallocated = (Boolean) getCachedValue(ResourceField.OVERALLOCATED); if (overallocated == null) { Number peakUnits = getPeakUnits(); Number maxUnits = getMaxUnits(); overallocated = Boolean.valueOf(NumberHelper.getDouble(peakUnits) > NumberHelper.getDouble(maxUnits)); set(ResourceField.OVERALLOCATED, overallocated); } return (overallocated.booleanValue()); }
[ "Retrieves the overallocated flag.\n\n@return overallocated flag" ]
[ "sets the class object described by this descriptor.\n@param c the class to describe", "Create a Build retention object out of the build\n\n@param build The build to create the build retention out of\n@param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded.\n@return a new Build retention", "Detaches or removes the value from this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Define the set of extensions.\n\n@param extensions\n@return self", "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to have a comma prepended. We could do this with a boolean,\nmaybe called \"separatorNeeded\", or \"firstValueOutput\", but then we need either a ternary\noperator or an extra nested if block. More readable is to use an initially-empty \"separator\"\nstring, which has a comma placed in it once the first value is written.\n\n<p>For extra tidiness, we note that the first if block need not try writing the separator\n(it is always empty), and the last one need not update it (it will not be used again).", "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient", "Returns the configured body or the default value." ]
public static List<String> getCommaSeparatedStringValues(String paramValue, String type) { List<String> commaSeparatedProps = Lists.newArrayList(); for(String url: Utils.COMMA_SEP.split(paramValue.trim())) if(url.trim().length() > 0) commaSeparatedProps.add(url); if(commaSeparatedProps.size() == 0) { throw new RuntimeException("Number of " + type + " should be greater than zero"); } return commaSeparatedProps; }
[ "Given the comma separated list of properties as a string, splits it\nmultiple strings\n\n@param paramValue Concatenated string\n@param type Type of parameter ( to throw exception )\n@return List of string properties" ]
[ "Given a list of store definitions, filters the list depending on the\nboolean\n\n@param storeDefs Complete list of store definitions\n@param isReadOnly Boolean indicating whether filter on read-only or not?\n@return List of filtered store definition", "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class", "returns a sorted array of properties", "Use this API to Import sslfipskey.", "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read.", "Calculate a cache key.\n@param sql to use\n@param columnIndexes to use\n@return cache key to use.", "Returns an unmodifiable view of the specified multi-value map.\n\n@param map the map for which an unmodifiable view is to be returned.\n@return an unmodifiable view of the specified multi-value map.", "Cleanup function to remove all allocated listeners", "Stops the playback of a sound and destroys the corresponding Sound Object or Soundfield." ]
public static int getNumberOfDependentLayers(String imageContent) throws IOException { JsonNode history = Utils.mapper().readTree(imageContent).get("history"); if (history == null) { throw new IllegalStateException("Could not find 'history' tag"); } int layersNum = history.size(); boolean newImageLayers = true; for (int i = history.size() - 1; i >= 0; i--) { if (newImageLayers) { layersNum--; } JsonNode layer = history.get(i); JsonNode emptyLayer = layer.get("empty_layer"); if (!newImageLayers && emptyLayer != null) { layersNum--; } if (layer.get("created_by") == null) { continue; } String createdBy = layer.get("created_by").textValue(); if (createdBy.contains("ENTRYPOINT") || createdBy.contains("MAINTAINER")) { newImageLayers = false; } } return layersNum; }
[ "Returns number of dependencies layers in the image.\n\n@param imageContent\n@return\n@throws IOException" ]
[ "Set the order in which sets are returned for the user.\n\nThis method requires authentication with 'write' permission.\n\n@param photosetIds\nAn array of Ids\n@throws FlickrException", "Gets the Searcher for a given variant.\n\n@param variant an identifier to differentiate this Searcher from eventual others.\n@return the corresponding Searcher instance.\n@throws IllegalStateException if no searcher was {@link #create(Searchable) created} before for this {@code variant}.", "Set the main attribute \"Bundle-RequiredExecutionEnvironment\" to the given\nvalue.\n\n@param bree The new value", "Get the values of the fields for an obj\nAutoincrement values are automatically set.\n@param fields\n@param obj\n@throws PersistenceBrokerException", "Remove an write lock.", "Handle a value change.\n@param propertyId the column in which the value has changed.", "m is more generic than a", "Gets the value of a global editor configuration parameter.\n\n@param cms the CMS context\n@param editor the editor name\n@param param the name of the parameter\n\n@return the editor parameter value", "Retrieve the next page and store the continuation token, the new data, and any IOException that may occur.\n\nNote that it is safe to pass null values to {@link CollectionRequest#query(String, Object)}. Method\n{@link com.asana.Client#request(com.asana.requests.Request)} will not include such options." ]
public void read(byte[] holder) throws ProtocolException { int readTotal = 0; try { while (readTotal < holder.length) { int count = input.read(holder, readTotal, holder.length - readTotal); if (count == -1) { throw new ProtocolException("Unexpected end of stream."); } readTotal += count; } // Unset the next char. nextSeen = false; nextChar = 0; } catch (IOException e) { throw new ProtocolException("Error reading from stream.", e); } }
[ "Reads and consumes a number of characters from the underlying reader,\nfilling the byte array provided.\n\n@param holder A byte array which will be filled with bytes read from the underlying reader.\n@throws ProtocolException If a char can't be read into each array element." ]
[ "Send an album art update announcement to all registered listeners.", "Get the diff between any two valid revisions.\n\n@param from revision from\n@param to revision to\n@param pathPattern target path pattern\n@return the map of changes mapped by path\n@throws StorageException if {@code from} or {@code to} does not exist.", "Returns a byte array containing a copy of the bytes", "Returns the command to run by the shell to normally run the checkin script.\n@return the command to run by the shell to normally run the checkin script.", "Print an earned value method.\n\n@param value EarnedValueMethod instance\n@return earned value method value", "Compress contiguous partitions into format \"e-i\" instead of\n\"e, f, g, h, i\". This helps illustrate contiguous partitions within a\nzone.\n\n@param cluster\n@param zoneId\n@return pretty string of partitions per zone", "Use this API to fetch sslpolicylabel resource of given name .", "Append the html-code to finish a html mail message to the given buffer.\n\n@param buffer The StringBuffer to add the html code to.", "Gets bounds which are identical for all dimensions.\n\n@param dim The number of dimensions.\n@param l The value of all lower bounds.\n@param u The value of all upper bounds.\n@return The new bounds." ]
protected List<Integer> cancelAllActiveOperations() { final List<Integer> operations = new ArrayList<Integer>(); for(final ActiveOperationImpl<?, ?> activeOperation : activeRequests.values()) { activeOperation.asyncCancel(false); operations.add(activeOperation.getOperationId()); } return operations; }
[ "Cancel all currently active operations.\n\n@return a list of cancelled operations" ]
[ "This method extracts data for a normal working day from an MSPDI file.\n\n@param calendar Calendar data\n@param weekDay Day data", "Shut down the input manager.\n\nAfter this call, GearVRf will not be able to access IO devices.", "Stop the service and end the program", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name", "Retrieve the number of minutes per year for this calendar.\n\n@return minutes per year", "Determines if a point is inside a box.", "Set the timeout for idle connections. Voldemort client caches all\nconnections to the Voldemort server. This setting allows the a connection\nto be dropped, if it is idle for more than this time.\n\nThis could be useful in the following cases 1) Voldemort client is not\ndirectly connected to the server and is connected via a proxy or\nfirewall. The Proxy or firewall could drop the connection silently. If\nthe connection is dropped, then client will see operations fail with a\ntimeout. Setting this property enables the Voldemort client to tear down\nthe connection before a firewall could drop it. 2) Voldemort server\ncaches the connection and each connection has an associated memory cost.\nSetting this property on all clients, enable the clients to prune the\nconnections and there by freeing up the server connections.\n\nthrows IllegalArgumentException if the timeout is less than 10 minutes.\n\nCurrently it can't be set below 10 minutes to avoid the racing risk of\ncontention between connection checkout and selector trying to close it.\nThis is intended for low throughput scenarios.\n\n@param idleConnectionTimeout\nzero or negative number to disable the feature ( default -1)\ntimeout\n@param unit {@link TimeUnit}\n@return ClientConfig object for chained set\n\nthrows {@link IllegalArgumentException} if the timeout is greater\nthan 0, but less than 10 minutes.", "Get the JSON string representation of the selector configured for this index.\n\n@return selector JSON as string", "Use this API to flush cachecontentgroup." ]
public static boolean checkVersionDirName(File versionDir) { return (versionDir.isDirectory() && versionDir.getName().contains("version-") && !versionDir.getName() .endsWith(".bak")); }
[ "Checks if the name of the file follows the version-n format\n\n@param versionDir The directory\n@return Returns true if the name is correct, else false" ]
[ "Return true only if the MethodCallExpression represents a method call for the specified method name\n@param methodCall - the AST MethodCallExpression\n@param methodNamePattern - the expected name of the method being called\n@param numArguments - The number of expected arguments\n@return true only if the method call name matches", "Enables or disables auto closing when selecting a date.", "Sets the top and bottom frame margin.\n@param frameTop margin\n@param frameBottom margin\n@return this to allow chaining", "Writes the results of the processing to a CSV file.", "Retrieves the amount of time represented by a calendar exception\nbefore or after an intersection point.\n\n@param exception calendar exception\n@param date intersection time\n@param after true to report time after intersection, false to report time before\n@return length of time in milliseconds", "Returns the service id with the propertype.\n\n@param serviceReference\n@return long value for the service id", "A convenience method for creating an immutable list.\n\n@param self a Set\n@return an immutable Set\n@see java.util.Collections#unmodifiableSet(java.util.Set)\n@since 1.0", "Compute the offset for the item in the layout based on the offsets of neighbors\nin the layout. The other offsets are not patched. If neighbors offsets have not\nbeen computed the offset of the item will not be set.\n@return true if the item fits the container, false otherwise", "Use this API to rename a gslbservice resource." ]
public void setBorderWidth(int borderWidth) { this.borderWidth = borderWidth; if(paintBorder != null) paintBorder.setStrokeWidth(borderWidth); requestLayout(); invalidate(); }
[ "Sets the CircularImageView's border width in pixels.\n@param borderWidth Width in pixels for the border." ]
[ "Determine the X coordinate within the component at which the specified beat begins.\n\n@param beat the beat number whose position is desired\n@return the horizontal position within the component coordinate space where that beat begins\n@throws IllegalArgumentException if the beat number exceeds the number of beats in the track.", "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", "Checks the foreignkeys of all collections in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid", "Sets a request header with the given name and value. If a header with the\nspecified name has already been set then the new value overwrites the\ncurrent value.\n\n@param header the name of the header\n@param value the value of the header\n\n@throws NullPointerException if header or value are null\n@throws IllegalArgumentException if header or value are the empty string", "refresh credentials if CredentialProvider set", "A static method that provides an easy way to create a list of a\ncertain parametric type.\nThis static constructor works better with generics.\n\n@param list The list to pad\n@param padding The padding element (may be null)\n@return The padded list", "Initializes class data structures and parameters", "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list.", "The MapReduce framework should operate sequentially, so thread safety shouldn't be a problem." ]
@SafeVarargs public static <K, V> Map<K, V> map(final Entry<? extends K, ? extends V>... entries) { final Map<K, V> map = new LinkedHashMap<K, V>(entries.length); for (final Entry<? extends K, ? extends V> entry : entries) { map.put(entry.getKey(), entry.getValue()); } return map; }
[ "A convenient way of creating a map on the fly.\n\n@param <K> the key type\n@param <V> the value type\n@param entries\nMap.Entry objects to be added to the map\n@return a LinkedHashMap with the supplied entries" ]
[ "Assign float value to inputOutput SFFloat field named speed.\nNote that our implementation with ExoPlayer that pitch and speed will be set to the same value.\n@param newValue", "Returns a single item from the Iterator.\nIf there's none, returns null.\nIf there are more, throws an IllegalStateException.\n\n@throws IllegalStateException", "Create a HashSet with the given initial values.\n\n@param values The values\n@param <T> The type.", "state chain management ops below", "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", "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler.", "Use this API to add dospolicy.", "Populate the UDF values for this entity.\n\n@param tableName parent table name\n@param type entity type\n@param container entity\n@param uniqueID entity Unique ID", "This implementation does not support the 'offset' and 'maxResultSize' parameters." ]
private void recordRollbackLoader(final String patchId, PatchableTarget.TargetInfo target) { // setup the content loader paths final DirectoryStructure structure = target.getDirectoryStructure(); final InstalledImage image = structure.getInstalledImage(); final File historyDir = image.getPatchHistoryDir(patchId); final File miscRoot = new File(historyDir, PatchContentLoader.MISC); final File modulesRoot = structure.getModulePatchDirectory(patchId); final File bundlesRoot = structure.getBundlesPatchDirectory(patchId); final PatchContentLoader loader = PatchContentLoader.create(miscRoot, bundlesRoot, modulesRoot); // recordContentLoader(patchId, loader); }
[ "Add a rollback loader for a give patch.\n\n@param patchId the patch id.\n@param target the patchable target\n@throws XMLStreamException\n@throws IOException" ]
[ "Add a plugin path\n\n@param model\n@param add\n@return\n@throws Exception", "Use this API to fetch vrid6 resource of given name .", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\nIf the elements in the sorted set have different scores, the returned elements are unspecified.\n@param lexRange\n@return the range of elements", "Read an array of bytes of a specified size.\n\n@param size number of bytes to read\n@return ByteArray instance", "Parses a single query item for the query facet.\n@param item JSON object of the query item.\n@return the parsed query item, or <code>null</code> if parsing failed.", "Lookup Seam integration resource loader.\n@return the Seam integration resource loader\n@throws DeploymentUnitProcessingException for any error", "Get bean manager from portlet context.\n\n@param ctx the portlet context\n@return bean manager if found", "Remove an existing Corporate GroupId from an organization.\n\n@return Response", "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function" ]
public static void permutationVector( DMatrixSparseCSC P , int[] vector) { if( P.numCols != P.numRows ) { throw new MatrixDimensionException("Expected a square matrix"); } else if( P.nz_length != P.numCols ) { throw new IllegalArgumentException("Expected N non-zero elements in permutation matrix"); } else if( vector.length < P.numCols ) { throw new IllegalArgumentException("vector is too short"); } int M = P.numCols; for (int i = 0; i < M; i++) { if( P.col_idx[i+1] != i+1 ) throw new IllegalArgumentException("Unexpected number of elements in a column"); vector[P.nz_rows[i]] = i; } }
[ "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector" ]
[ "Writes OWL declarations for all basic vocabulary elements used in the\ndump.\n\n@throws RDFHandlerException", "Makes this pose the inverse of the input pose.\n@param src pose to invert.", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister", "Populate the UDF values for this entity.\n\n@param tableName parent table name\n@param type entity type\n@param container entity\n@param uniqueID entity Unique ID", "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Add some of the release build properties to a map.", "Called by spring on initialization.", "Update the name of a script\n\n@param id ID of script\n@param name new name\n@return updated script\n@throws Exception exception", "Remove a named object" ]
public boolean needsRefresh() { boolean needsRefresh; this.refreshLock.readLock().lock(); long now = System.currentTimeMillis(); long tokenDuration = (now - this.lastRefresh); needsRefresh = (tokenDuration >= this.expires - REFRESH_EPSILON); this.refreshLock.readLock().unlock(); return needsRefresh; }
[ "Determines if this connection's access token has expired and needs to be refreshed.\n@return true if the access token needs to be refreshed; otherwise false." ]
[ "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 an Object array of all FK field values of the specified object.\nIf the specified object is an unmaterialized Proxy, it will be materialized\nto read the FK values.\n\n@throws MetadataException if an error occours while accessing ForeingKey values on obj", "Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Get the element at the index as a json array.\n\n@param i the index of the element to access", "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance", "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails.", "Converts a list of dates to a Json array with the long representation of the dates as strings.\n@param individualDates the list to convert.\n@return Json array with long values of dates as string", "Verify that cluster is congruent to store def wrt zones." ]
private static File getUserDirectory(final String prefix, final String suffix, final File parent) { final String dirname = formatDirName(prefix, suffix); return new File(parent, dirname); }
[ "Returns a File object whose path is the expected user directory.\nDoes not create or check for existence.\n@param prefix\n@param suffix\n@param parent\n@return" ]
[ "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", "Read an optional string value form a JSON value.\n@param val the JSON value that should represent the string.\n@return the string from the JSON or null if reading the string fails.", "Use this API to add dnsaaaarec resources.", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder", "This method allows a resource assignment workgroup fields record\nto be added to the current resource assignment. A maximum of\none of these records can be added to a resource assignment record.\n\n@return ResourceAssignmentWorkgroupFields object\n@throws MPXJException if MSP defined limit of 1 is exceeded", "Generate the next combination and return an array containing\nthe appropriate elements.\n@see #nextCombinationAsArray(Object[])\n@see #nextCombinationAsList()\n@return An array containing the elements that make up the next combination.", "Process the requestJsonAttributes using the attributes and the MapfishParser and add all resulting\nvalues to this values object.\n\n@param template the template of the current request.\n@param attributes the attributes that will be used to add values to this values object\n@param requestJsonAttributes the json data for populating the attribute values", "Add a '&lt;=' clause so the column must be less-than or equals-to the value." ]
@Override public void writeText(PDDocument doc, Writer outputStream) throws IOException { try { DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance(); DOMImplementationLS impl = (DOMImplementationLS)registry.getDOMImplementation("LS"); LSSerializer writer = impl.createLSSerializer(); LSOutput output = impl.createLSOutput(); writer.getDomConfig().setParameter("format-pretty-print", true); output.setCharacterStream(outputStream); createDOM(doc); writer.write(getDocument(), output); } catch (ClassCastException e) { throw new IOException("Error: cannot initialize the DOM serializer", e); } catch (ClassNotFoundException e) { throw new IOException("Error: cannot initialize the DOM serializer", e); } catch (InstantiationException e) { throw new IOException("Error: cannot initialize the DOM serializer", e); } catch (IllegalAccessException e) { throw new IOException("Error: cannot initialize the DOM serializer", e); } }
[ "Parses a PDF document and serializes the resulting DOM tree to an output. This requires\na DOM Level 3 capable implementation to be available." ]
[ "Gets the attributes provided by the processor.\n\n@return the attributes", "Forceful cleanup the logs", "only TOP or Bottom", "Calculate the determinant.\n\n@return Determinant.", "Declares additional internal data structures.", "Build all combinations of graph structures for generic event stubs of a maximum length\n@param length Maximum number of nodes in each to generate\n@return All graph combinations of specified length or less", "Sets the RegExp pattern for the TextBox\n@param pattern\n@param invalidCharactersInNameErrorMessage", "Write an unsigned short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Add the currentSceneObject to an active Level-of-Detail" ]
private ColorItem buildColorItem(Message menuItem) { final int colorId = (int) ((NumberField) menuItem.arguments.get(1)).getValue(); final String label = ((StringField) menuItem.arguments.get(3)).getValue(); return buildColorItem(colorId, label); }
[ "Creates a color item that represents a color field found for a track based on a dbserver message.\n\n@param menuItem the rendered menu item containing the color metadata field\n\n@return the color metadata field" ]
[ "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", "Use this API to add nsip6.", "Creates a Bytes object by copying the data of the given ByteBuffer.\n\n@param bb Data will be read from this ByteBuffer in such a way that its position is not\nchanged.", "Called when a drawer has settled in a completely open state.", "Use this API to delete dnsview of given name.", "Create a request for elevations for samples along a path.\n\n@param req\n@param callback", "Determine which daughter of the current parse tree is the head.\n\n@param t The parse tree to examine the daughters of.\nIf this is a leaf, <code>null</code> is returned\n@param parent The parent of t\n@return The daughter parse tree that is the head of <code>t</code>.\nReturns null for leaf nodes.\n@see Tree#percolateHeads(HeadFinder)\nfor a routine to call this and spread heads throughout a tree", "Checks to see within the flags if a reload, i.e. not a full restart, is required.\n\n@param flags the flags to check\n\n@return {@code true} if a reload is required, otherwise {@code false}", "This method is used to change the credentials of CleverTap account Id, token and region programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token\n@param region Clever Tap Account Region" ]
public void enableUniformSize(final boolean enable) { if (mUniformSize != enable) { mUniformSize = enable; if (mContainer != null) { mContainer.onLayoutChanged(this); } } }
[ "When set to true, all items in layout will be considered having the size of the largest child. If false, all items are\nmeasured normally. Disabled by default.\n@param enable true to measure children using the size of the largest child, false - otherwise." ]
[ "Gets a SerialMessage with the SENSOR_ALARM_GET command\n@return the serial message", "Join a group as a public member.\n\nNote: if a group has rules - the client must display the rules to the user and the user must accept them prior to joining the group. The acceptRules\nparameter indicates that the user has accepted those rules.\n\n@param groupId\n- the id of the group to join\n@param acceptRules\n- if a group has rules, true indicates the user has accepted the rules\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.join.html\">flickr.groups.join</a>", "Read an element which contains only a single boolean attribute.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@return the boolean value\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements.", "Remove all non replica clock entries from the list of versioned values\nprovided\n\n@param vals list of versioned values to prune replicas from\n@param keyReplicas list of current replicas for the given key\n@param didPrune flag to mark if we did actually prune something\n@return pruned list", "Does the bitwise conjunction with this address. Useful when subnetting.\n\n@param mask\n@param retainPrefix whether to drop the prefix\n@return\n@throws IncompatibleAddressException", "Convert raw value as read from the MPP file into a Java type.\n\n@param type MPP value type\n@param value raw value data\n@return Java object", "New SOAP client uses new SOAP service.", "Returns a query filter for the given document _id and version. The version is allowed to be\nnull. The query will match only if there is either no version on the document in the database\nin question if we have no reference of the version or if the version matches the database's\nversion.\n\n@param documentId the _id of the document.\n@param version the expected version of the document, if any.\n@return a query filter for the given document _id and version for a remote operation.", "read message from file\n\n@param readOffset offset in this channel(file);not the message offset\n@param size max data size\n@return messages sharding data with file log\n@throws IOException reading file failed" ]
public static int Minimum(ImageSource fastBitmap, int startX, int startY, int width, int height) { int min = 255; if (fastBitmap.isGrayscale()) { for (int i = startX; i < height; i++) { for (int j = startY; j < width; j++) { int gray = fastBitmap.getRGB(j, i); if (gray < min) { min = gray; } } } } else { for (int i = startX; i < height; i++) { for (int j = startY; j < width; j++) { int gray = fastBitmap.getG(j, i); if (gray < min) { min = gray; } } } } return min; }
[ "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." ]
[ "Returns all keys in no particular order.", "read data from channel to buffer\n\n@param channel readable channel\n@param buffer bytebuffer\n@return read size\n@throws IOException any io exception", "Given a partition ID, determine which replica of this partition is hosted by the\ncurrent node, if any.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param partitionId for which we want to know the replica type\n@return the requested partition's replica type (which ranges from 0 to replication\nfactor -1) if the partition is hosted on the current node, or -1 if the\nrequested partition is not hosted on this node.", "End a \"track;\" that is, return to logging at one level shallower.\n@param title A title that should match the beginning of this track.", "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception", "Returns the meta-data for the inverse side of the association represented by the given property on the given\npersister in case it represents the main side of a bi-directional one-to-many or many-to-many association.\n\n@param mainSidePersister persister of the entity hosting the property of interest\n@param propertyIndex index of the property of interest\n@return the meta-data of the inverse side of the specified association or {@code null} if no such meta-data\nexists", "Set the refresh frequency of this scene object.\nUse NONE for improved performance when the text is set initially and never\nchanged.\n\n@param frequency\nThe refresh frequency of this TextViewSceneObject.", "1-D Gaussian kernel.\n\n@param size Kernel size (should be odd), [3, 101].\n@return Returns 1-D Gaussian kernel of the specified size." ]
public Feature toDto(InternalFeature feature, int featureIncludes) throws GeomajasException { if (feature == null) { return null; } Feature dto = new Feature(feature.getId()); if ((featureIncludes & VectorLayerService.FEATURE_INCLUDE_ATTRIBUTES) != 0 && null != feature.getAttributes()) { // need to assure lazy attributes are converted to non-lazy attributes Map<String, Attribute> attributes = new HashMap<String, Attribute>(); for (Map.Entry<String, Attribute> entry : feature.getAttributes().entrySet()) { Attribute value = entry.getValue(); if (value instanceof LazyAttribute) { value = ((LazyAttribute) value).instantiate(); } attributes.put(entry.getKey(), value); } dto.setAttributes(attributes); } if ((featureIncludes & VectorLayerService.FEATURE_INCLUDE_LABEL) != 0) { dto.setLabel(feature.getLabel()); } if ((featureIncludes & VectorLayerService.FEATURE_INCLUDE_GEOMETRY) != 0) { dto.setGeometry(toDto(feature.getGeometry())); } if ((featureIncludes & VectorLayerService.FEATURE_INCLUDE_STYLE) != 0 && null != feature.getStyleInfo()) { dto.setStyleId(feature.getStyleInfo().getStyleId()); } InternalFeatureImpl vFeature = (InternalFeatureImpl) feature; dto.setClipped(vFeature.isClipped()); dto.setUpdatable(feature.isEditable()); dto.setDeletable(feature.isDeletable()); return dto; }
[ "Convert the server side feature to a DTO feature that can be sent to the client.\n\n@param feature\nThe server-side feature representation.\n@param featureIncludes\nIndicate which aspects of the should be included see {@link VectorLayerService}\n@return Returns the DTO feature." ]
[ "This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation instance", "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Provides an object that can build SQL clauses to match this string representation.\n\nThis method can be overridden for other IP address types to match in their own ways.\n\n@param isEntireAddress\n@param translator\n@return", "Retrieves state and metrics information for all client connections across the cluster.\n\n@return list of connections across the cluster", "Write a short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0", "Use this API to link sslcertkey resources.", "Given a status update from a CDJ, find the metadata for the track that it has loaded, if any. If there is\nan appropriate metadata cache, will use that, otherwise makes a query to the players dbserver.\n\n@param status the CDJ status update that will be used to determine the loaded track and ask the appropriate\nplayer for metadata about it\n\n@return the metadata that was obtained, if any", "Calculates ATM Bachelier implied volatilities.\n\n@see net.finmath.functions.AnalyticFormulas#bachelierOptionImpliedVolatility(double, double, double, double, double)\n\n@param optionValue RandomVarable representing the value of the option\n@param optionMaturity Time to maturity.\n@param swapAnnuity The swap annuity as seen on valuation time.\n@return The Bachelier implied volatility." ]
public static base_responses unset(nitro_service client, gslbservice resources[], String[] args) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { gslbservice unsetresources[] = new gslbservice[resources.length]; for (int i=0;i<resources.length;i++){ unsetresources[i] = new gslbservice(); unsetresources[i].servicename = resources[i].servicename; } result = unset_bulk_request(client, unsetresources,args); } return result; }
[ "Use this API to unset the properties of gslbservice resources.\nProperties that need to be unset are specified in args array." ]
[ "Use this API to fetch all the ci resources that are configured on netscaler.", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Retrieve a duration field.\n\n@param type field type\n@return Duration instance", "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", "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", "Entry point for recursive resolution of an expression and all of its\nnested expressions.\n\n@todo Ensure unresolvable expressions don't trigger infinite recursion.", "This is pretty ugly. We end up mimicking the request logic here, so this\nneeds to stay in sync with handleRequest.", "Returns the configured extra parameters that should be given to Solr, or the empty string if no parameters are configured.\n@return The configured extra parameters that should be given to Solr, or the empty string if no parameters are configured.", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid" ]
public PromotionEvaluationReport getModulePromotionReport(final String name, final String version) throws GrapesCommunicationException { return getModulePromotionReportRaw(name, version, false, PromotionEvaluationReport.class); }
[ "Check if a module can be promoted in the Grapes server\n\n@param name\n@param version\n@return a boolean which is true only if the module can be promoted\n@throws GrapesCommunicationException" ]
[ "Draw the specified geometry.\n\n@param geometry geometry to draw\n@param symbol symbol for geometry\n@param fillColor fill colour\n@param strokeColor stroke colour\n@param lineWidth line width\n@param clipRect clipping rectangle", "GetJob helper - String predicates are all created the same way, so this factors some code.", "Copies all elements from input into output which are &gt; tol.\n@param input (Input) input matrix. Not modified.\n@param output (Output) Output matrix. Modified and shaped to match input.\n@param tol Tolerance for defining zero", "Want to make arbitrary probability queries? Then this is the method for\nyou. Given the filename, it reads it in and breaks it into documents, and\nthen makes a CRFCliqueTree for each document. you can then ask the clique\ntree for marginals and conditional probabilities of almost anything you\nwant.", "Returns the value of the identified field as a String.\n@param fieldName the name of the field\n@return the value of the field as a String", "Removes a parameter from this configuration.\n\n@param key the parameter to remove", "Very basic implementation of an inner join between two result sets.\n\n@param leftRows left result set\n@param leftColumn left foreign key column\n@param rightTable right table name\n@param rightRows right result set\n@param rightColumn right primary key column\n@return joined result set", "Add a calendar node.\n\n@param parentNode parent node\n@param calendar calendar", "capture center eye" ]
public DesignDocument get(String id) { assertNotEmpty(id, "id"); return db.find(DesignDocument.class, ensureDesignPrefix(id)); }
[ "Gets a design document from the database.\n\n@param id the design document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}" ]
[ "Create a canonical represenation of the data type value. Defaults to the value converter.\n\n@since 2.9", "Use this API to unset the properties of nsspparams resource.\nProperties that need to be unset are specified in args array.", "Remove a path\n\n@param pathId ID of path", "Retrieve from the parent pom the path to the modules of the project", "Returns the accrued interest of the bond for a given time.\n\n@param time The time of interest as double.\n@param model The model under which the product is valued.\n@return The accrued interest.", "Writes this JAR to an output stream, and closes the stream.", "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)", "Determine if a CharSequence can be parsed as a BigInteger.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigInteger(String)\n@since 1.8.2", "Feeds input stream to data consumer using metadata from tar entry.\n@param consumer the consumer\n@param inputStream the stream to feed\n@param entry the entry to use for metadata\n@throws IOException on consume error" ]
private void writeAssignmentTimephasedData(BigInteger assignmentID, List<TimephasedDataType> list, List<TimephasedWork> data, int type) { for (TimephasedWork mpx : data) { TimephasedDataType xml = m_factory.createTimephasedDataType(); list.add(xml); xml.setStart(mpx.getStart()); xml.setFinish(mpx.getFinish()); xml.setType(BigInteger.valueOf(type)); xml.setUID(assignmentID); xml.setUnit(DatatypeConverter.printDurationTimeUnits(mpx.getTotalAmount(), false)); xml.setValue(DatatypeConverter.printDuration(this, mpx.getTotalAmount())); } }
[ "Writes a list of timephased data to the MSPDI file.\n\n@param assignmentID current assignment ID\n@param list output list of timephased data items\n@param data input list of timephased data\n@param type list type (planned or completed)" ]
[ "Finish initializing service.\n\n@throws IOException oop", "cancels a running assembly.\n\n@param url full url of the Assembly.\n@return {@link AssemblyResponse}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Adds the given value to the set.\n\n@return true if the value was actually new", "Sets the day of the month.\n@param day the day to set.", "Retrieves the time at which work finishes on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return finish time, or null for non-working day", "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", "Creates a random matrix where all elements are zero but diagonal elements. Diagonal elements\nrandomly drawn from a uniform distribution from min to max, inclusive.\n\n@param numRows Number of rows in the returned matrix..\n@param numCols Number of columns in the returned matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "Return all option names that not already have a value\nand is enabled", "Given a block of data representing completed work, this method will\nretrieve a set of TimephasedWork instances which represent\nthe day by day work carried out for a specific resource assignment.\n\n@param calendar calendar on which date calculations are based\n@param resourceAssignment resource assignment\n@param data completed work data block\n@return list of TimephasedWork instances" ]
public Map<String, Object> getValues(double evaluationTime, MonteCarloSimulationInterface model) throws CalculationException { RandomVariableInterface values = getValue(evaluationTime, model); if(values == null) { return null; } // Sum up values on path double value = values.getAverage(); double error = values.getStandardError(); Map<String, Object> results = new HashMap<String, Object>(); results.put("value", value); results.put("error", error); return 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." ]
[ "If you want to stop recorded events from being sent to the server, use this method to set the SDK instance to offline.\nOnce offline, events will be recorded and queued locally but will not be sent to the server until offline is disabled.\nCalling this method again with offline set to false will allow events to be sent to server and the SDK instance will immediately attempt to send events that have been queued while offline.\n\n@param value boolean, true sets the sdk offline, false sets the sdk back online", "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration", "Reloads the synchronization config. This wipes all in-memory synchronization settings.", "Use this API to delete cacheselector resources of given names.", "Use this API to fetch nstimer_binding resource of given name .", "Count the number of non-zero elements in V", "All tests completed.", "Use this API to update route6 resources.", "Find all methods on classes under scanBase that are annotated with annotationClass.\n\n@param scanBase Package to scan recursively, in dot notation (ie: org.jrugged...)\n@param annotationClass Class of the annotation to search for\n@return Set&lt;Method&gt; The set of all @{java.lang.reflect.Method}s having the annotation" ]
public static dnsaaaarec[] get(nitro_service service, dnsaaaarec_args args) throws Exception{ dnsaaaarec obj = new dnsaaaarec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsaaaarec[] response = (dnsaaaarec[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.\nThis uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources." ]
[ "Generate the global CSS style for the whole document.\n@return the CSS code used in the generated document header", "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", "Launch Application Setting to grant permission.", "Should only called on a column that is being set to null.\n\nReturns the most outer embeddable containing {@code column} that is entirely null.\nReturn null otherwise i.e. not embeddable.\n\nThe implementation lazily compute the embeddable state and caches it.\nThe idea behind the lazy computation is that only some columns will be set to null\nand only in some situations.\nThe idea behind caching is that an embeddable contains several columns, no need to recompute its state.", "Use this API to update sslparameter.", "Use this API to fetch nslimitidentifier_binding resource of given name .", "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer.", "Helper method to Close all open socket connections and checkin back to\nthe pool\n\n@param storeNamesToCleanUp List of stores to be cleanedup from the current\nstreaming session", "Function to perform backward activation" ]
public static boolean xpathExists(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { Boolean result = (Boolean) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.BOOLEAN); return result != null && result; }
[ "Runs the given xpath and returns a boolean result." ]
[ "Runs the print.\n\n@param args the cli arguments\n@throws Exception", "Compute costs.", "Copy a single named file to the output directory.\n@param outputDirectory The destination directory for the copied resource.\n@param sourceFile The path of the file to copy.\n@param targetFileName The name of the file created in {@literal outputDirectory}.\n@throws IOException If the file cannot be copied.", "Sets the indirection handler class.\n\n@param indirectionHandlerClass The class for indirection handlers", "Construct a pretty string documenting progress for this batch plan thus\nfar.\n\n@return pretty string documenting progress", "Get the authentication method to use.\n\n@return authentication method", "Counts additional occurrences of a property as the main property of\nstatements.\n\n@param usageStatistics\nstatistics object where count is stored\n@param property\nthe property to count\n@param count\nthe number of times to count the property", "Sends the events to monitoring service client.\n\n@param events the events", "Undeletes the selected files\n\n@return the ids of the modified resources\n\n@throws CmsException if something goes wrong" ]
public static ServiceController<DeploymentScanner> addService(final OperationContext context, final PathAddress resourceAddress, final String relativeTo, final String path, final int scanInterval, TimeUnit unit, final boolean autoDeployZip, final boolean autoDeployExploded, final boolean autoDeployXml, final boolean scanEnabled, final long deploymentTimeout, boolean rollbackOnRuntimeFailure, final FileSystemDeploymentService bootTimeService, final ScheduledExecutorService scheduledExecutorService) { final DeploymentScannerService service = new DeploymentScannerService(resourceAddress, relativeTo, path, scanInterval, unit, autoDeployZip, autoDeployExploded, autoDeployXml, scanEnabled, deploymentTimeout, rollbackOnRuntimeFailure, bootTimeService); final ServiceName serviceName = getServiceName(resourceAddress.getLastElement().getValue()); service.scheduledExecutorValue.inject(scheduledExecutorService); final ServiceBuilder<DeploymentScanner> sb = context.getServiceTarget().addService(serviceName, service); sb.addDependency(context.getCapabilityServiceName(PATH_MANAGER_CAPABILITY, PathManager.class), PathManager.class, service.pathManagerValue); sb.addDependency(context.getCapabilityServiceName("org.wildfly.management.notification-handler-registry", null), NotificationHandlerRegistry.class, service.notificationRegistryValue); sb.addDependency(context.getCapabilityServiceName("org.wildfly.management.model-controller-client-factory", null), ModelControllerClientFactory.class, service.clientFactoryValue); sb.requires(org.jboss.as.server.deployment.Services.JBOSS_DEPLOYMENT_CHAINS); sb.addDependency(ControlledProcessStateService.SERVICE_NAME, ControlledProcessStateService.class, service.controlledProcessStateServiceValue); return sb.install(); }
[ "Add the deployment scanner service to a batch.\n\n@param context context for the operation that is adding this service\n@param resourceAddress the address of the resource that manages the service\n@param relativeTo the relative to\n@param path the path\n@param scanInterval the scan interval\n@param unit the unit of {@code scanInterval}\n@param autoDeployZip whether zipped content should be auto-deployed\n@param autoDeployExploded whether exploded content should be auto-deployed\n@param autoDeployXml whether xml content should be auto-deployed\n@param scanEnabled scan enabled\n@param deploymentTimeout the deployment timeout\n@param rollbackOnRuntimeFailure rollback on runtime failures\n@param bootTimeService the deployment scanner used in the boot time scan\n@param scheduledExecutorService executor to use for asynchronous tasks\n@return the controller for the deployment scanner service" ]
[ "helper extracts the cursor data from the db object", "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Distributed process finish.\n\n@param rb the rb\n@param mtasFields the mtas fields\n@throws IOException Signals that an I/O exception has occurred.", "Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "Add additional source types", "Loads the data from the database. Override this method if the objects\nshall be loaded in a specific way.\n\n@return The loaded data", "Obtain override ID\n\n@param overrideIdentifier can be the override ID or class name\n@return\n@throws Exception", "Used for DI frameworks to inject values into stages.", "Add the declarationBinderRef to the ImportersManager, create the corresponding.\nBinderDescriptor.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder\n@throws InvalidFilterException" ]
@Override public String upload(byte[] data, UploadMetaData metaData) throws FlickrException { Payload payload = new Payload(data); return sendUploadRequest(metaData, payload); }
[ "Upload a photo from a byte-array.\n\n@param data\nThe photo data as a byte array\n@param metaData\nThe meta data\n@return photoId or ticketId\n@throws FlickrException" ]
[ "EAP 7.1", "Use this API to clear bridgetable.", "Update the list of buildpacks installed on an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildpacks the new list of buildpack names or URLs.", "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "Processes changes on aliases, updating the planned state of the item.\n\n@param addAliases\naliases that should be added to the document\n@param deleteAliases\naliases that should be removed from the document", "Build the tree of joins for the given criteria", "Allocate a timestamp", "Read filename from spec.", "Create a mapping from entity names to entity ID values." ]
public String text() { String previousText = null; StringBuilder buffer = null; for (Object child : this) { String text = null; if (child instanceof String) { text = (String) child; } else if (child instanceof Node) { text = ((Node) child).text(); } if (text != null) { if (previousText == null) { previousText = text; } else { if (buffer == null) { buffer = new StringBuilder(); buffer.append(previousText); } buffer.append(text); } } } if (buffer != null) { return buffer.toString(); } if (previousText != null) { return previousText; } return ""; }
[ "Returns the text value of all of the elements in the collection.\n\n@return the text value of all the elements in the collection or null" ]
[ "Check if the property is part of the identifier of the entity.\n\n@param persister the {@link OgmEntityPersister} of the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is part of the id, {@code false} otherwise.", "get current total used capacity.\n\n@return the total used capacity", "Use this API to unset the properties of nslimitselector resources.\nProperties that need to be unset are specified in args array.", "Write a double attribute.\n\n@param name attribute name\n@param value attribute value", "Only return tools with a name matching this partial string\n@param searchTerm Tool name to search for\n@return This object to allow adding more options", "Remove a module.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder", "simple echo implementation", "Return the class's name, possibly by stripping the leading path", "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array." ]
public Set<String> getKeys(Class<?> type) { return data.entrySet().stream().filter(val -> type.isAssignableFrom(val.getValue() .getClass())).map(Map.Entry::getKey).collect(Collectors .toSet()); }
[ "Get the present keys of all entries with a given type, checking hereby if assignable.\n\n@param type The attribute type, not null.\n@return all present keys of attributes being assignable to the type, never null." ]
[ "Enables or disabled shadow casting for a spot light.\nEnabling shadows attaches a GVRShadowMap component to the\nGVRSceneObject which owns the light and provides the\ncomponent with an perspective camera for shadow casting.\n@param enableFlag true to enable shadow casting, false to disable", "Removes columns from the matrix.\n\n@param A Matrix. Modified\n@param col0 First column\n@param col1 Last column, inclusive.", "Get the best guess we have for the current track position on the specified player.\n\n@param player the player number whose position is desired\n\n@return the milliseconds into the track that we believe playback has reached, or -1 if we don't know\n\n@throws IllegalStateException if the TimeFinder is not running", "Copies all elements from input into output which are &gt; tol.\n@param input (Input) input matrix. Not modified.\n@param output (Output) Output matrix. Modified and shaped to match input.\n@param tol Tolerance for defining zero", "Helper xml end tag writer\n\n@param value the output stream to use in writing", "Edit the co-ordinates that the user shows in\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrException", "If you have priorities based on enums, this is the recommended prioritizer to use as it will prevent\nstarvation of low priority items\n\n@param groupClass\n@return", "Safe write error response.\n\n@param channel the channel\n@param header the request header\n@param error the exception", "Maps all views that don't start with \"android\" namespace.\n\n@param names All shared element names.\n@return The obsolete shared element names." ]
public static final boolean isInside(int x, int y, Rect box) { return (box.x < x && x < box.x + box.w && box.y < y && y < box.y + box.h); }
[ "Determines if a point is inside a box." ]
[ "Acquire the exclusive lock allowing the acquisition to be interrupted.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@throws InterruptedException - if the acquiring thread is interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Retrieve an instance of the TaskField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return TaskField instance", "Serialize this `AppDescriptor` and output byte array\n\n@return\nserialize this `AppDescriptor` into byte array", "Creates a namespace if needed.", "Orders first by word, then by tag.\n\n@param wordTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)", "Gets the estimated time remaining in milliseconds based upon the total number of work units, the start time, and how many units have been done\nso far.\n\nThis should not be called before any work units have been done.", "Static main.\n\n@param args\nProgram arguments.\n@throws IOException\nIf an IO error occurred.", "Reads the XER file table and row structure ready for processing.\n\n@param is input stream\n@throws MPXJException", "Internal utility to help JNI add hit objects to the pick list. Specifically for MeshColliders with picking\nfor UV, Barycentric, and normal coordinates enabled" ]