query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void waitForAsyncFlush() { long numAdded = asyncBatchesAdded.get(); synchronized (this) { while (numAdded > asyncBatchesProcessed) { try { wait(); } catch (InterruptedException e) { throw new RuntimeException(e); } } } }
[ "waits for all async mutations that were added before this was called to be flushed. Does not\nwait for async mutations added after call." ]
[ "Obtain newline-delimited headers from method\n\n@param method HttpMethod to scan\n@return newline-delimited headers", "Processes the template for all indices of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"unique\" optional=\"true\" description=\"Whether to process the unique indices or not\"\nvalues=\"true,false\"", "Returns the current version info for a provided remote document.\n@param remoteDocument the remote BSON document from which to extract version info\n@return a DocumentVersionInfo", "Sets the character translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator", "Read an element which contains only a single list attribute of a given\ntype.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@param type the value type class\n@param <T> the value type\n@return the value list\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.", "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining", "Checks to see if the submatrix has its boundaries along inner blocks.\n\n@param blockLength Size of an inner block.\n@param A Submatrix.\n@return If it is block aligned or not.", "Returns the compact records for all teams in the organization visible to\nthe authorized user.\n\n@param organization Globally unique identifier for the workspace or organization.\n@return Request object", "Create a new remote proxy controller.\n\n@param client the transactional protocol client\n@param pathAddress the path address\n@param addressTranslator the address translator\n@param targetKernelVersion the {@link ModelVersion} of the kernel management API exposed by the proxied process\n@return the proxy controller" ]
public ClientConfig setIdleConnectionTimeout(long idleConnectionTimeout, TimeUnit unit) { if (idleConnectionTimeout <= 0) { this.idleConnectionTimeoutMs = -1; } else { if(unit.toMinutes(idleConnectionTimeout) < 10) { throw new IllegalArgumentException("idleConnectionTimeout should be minimum of 10 minutes"); } this.idleConnectionTimeoutMs = unit.toMillis(idleConnectionTimeout); } return this; }
[ "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 a list of destinations and the values matching templated parameter for the given path.\nReturns an empty list when there are no destinations that are matched.\n\n@param path path to be routed.\n@return List of Destinations matching the given route.", "Request a scoped transactional token.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@return a BoxAPIConnection which can be used to perform transactional requests.", "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code null}", "Determine the height of the preview given an index into it.\n\n@param segment the index of the waveform preview segment to examine\n@param front if {@code true} the height of the front (brighter) segment of a color waveform preview is returned,\notherwise the height of the back (dimmer) segment is returned. Has no effect for blue previews.\n\n@return a value from 0 to 31 representing the height of the waveform at that segment, which may be an average\nof a number of values starting there, determined by the scale", "All tests completed.", "Sets the value for the API's \"languages\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Appends a line separator node that will only be effective if the current line contains non-whitespace text.\n\n@return the given parent node", "Should this request URI be compressed?\n\n@param requestUri request URI\n@return true when should be compressed", "Use this API to fetch all the nsfeature resources that are configured on netscaler." ]
private static String getBundle(String friendlyName, String className, int truncate) { try { cl.loadClass(className); int start = className.length(); for (int i = 0; i < truncate; ++i) start = className.lastIndexOf('.', start - 1); final String bundle = className.substring(0, start); return "+ " + friendlyName + align(friendlyName) + "- " + bundle; } catch (final ClassNotFoundException e) {} catch (final NoClassDefFoundError e) {} return "- " + friendlyName + align(friendlyName) + "- not available"; }
[ "to check availability, then class name is truncated to bundle id" ]
[ "Default settings set type loader to ClasspathTypeLoader if not set before.", "Remove a list of stores from the session\n\nFirst commit all entries for these stores and then cleanup resources\n\n@param storeNameToRemove List of stores to be removed from the current\nstreaming session", "Do the set-up that's needed to access Amazon S3.", "Use this API to fetch lbvserver_appflowpolicy_binding resources of given name .", "Sets axis dimension\n@param val dimension\n@param axis Axis. It might be either {@link Layout.Axis#X X} or\n{@link Layout.Axis#Y Y} or {@link Layout.Axis#Z Z}", "A smoothed pulse function. A cubic function is used to smooth the step between two thresholds.\n@param a1 the lower threshold position for the start of the pulse\n@param a2 the upper threshold position for the start of the pulse\n@param b1 the lower threshold position for the end of the pulse\n@param b2 the upper threshold position for the end of the pulse\n@param x the input parameter\n@return the output value", "We have received notification that a device is no longer on the network, so clear out its artwork.\n\n@param announcement the packet which reported the device’s disappearance", "Retrieves list of inbox messages based on given userId\n@param userId String userid\n@return ArrayList of {@link CTMessageDAO}", "Print classes that were parts of relationships, but not parsed by javadoc" ]
public byte[] getByteArray(Integer offset) { byte[] result = null; if (offset != null) { result = m_map.get(offset); } return (result); }
[ "This method retrieves a byte array containing the data at the\ngiven offset in the block. If no data is found at the given offset\nthis method returns null.\n\n@param offset offset of required data\n@return byte array containing required data" ]
[ "Writes a resource assignment to a PM XML file.\n\n@param mpxj MPXJ ResourceAssignment instance", "Use this API to update vlan.", "Finish a state transition from a notification.\n\n@param current\n@param next", "Creates the given directory. Fails if it already exists.", "Gets Widget layout dimension\n@param axis The {@linkplain Layout.Axis axis} to obtain layout size for\n@return dimension", "Parse an extended attribute currency value.\n\n@param value string representation\n@return currency value", "Return a vector of values corresponding to a given vector of times.\n@param times A given vector of times.\n@return A vector of values corresponding to the given vector of times.", "Converts an image in RGB mode to BINARY mode\n\n@param img image\n@param threshold grays cale threshold\n@return new MarvinImage instance in BINARY mode", "For internal use! This method creates real new PB instances" ]
public void removePathnameFromProfile(int path_id, int profileId) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_ENABLED_OVERRIDE + " WHERE " + Constants.ENABLED_OVERRIDES_PATH_ID + " = ?" ); statement.setInt(1, path_id); statement.executeUpdate(); statement.close(); statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_PATH + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setInt(1, path_id); statement.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from" ]
[ "In case we cannot delete a directory create a marker to recheck whether we can garbage collect some not\nreferenced directories and files.\n\n@param file the directory", "Returns the input to parse including the whitespace left to the cursor position since\nit may be relevant to the list of proposals for whitespace sensitive languages.", "Returns the size of the shadow element", "This method extracts project properties from a GanttProject file.\n\n@param ganttProject GanttProject file", "Closes the server socket. No new clients are accepted afterwards.", "Build a Count-Query based on aQuery\n@param aQuery\n@return The count query", "Iterates through the given CharSequence line by line, splitting each line using\nthe given regex delimiter. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see #splitEachLine(CharSequence, java.util.regex.Pattern, groovy.lang.Closure)\n@since 1.8.2", "Computes the eigenvalues of a 2 by 2 matrix using a faster but more prone to errors method. This\nis the typical method.", "Called when a previously created loader has finished its load.\n\n@param loader The Loader that has finished.\n@param data The data generated by the Loader." ]
public static linkset_interface_binding[] get(nitro_service service, String id) throws Exception{ linkset_interface_binding obj = new linkset_interface_binding(); obj.set_id(id); linkset_interface_binding response[] = (linkset_interface_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch linkset_interface_binding resources of given name ." ]
[ "Sets an Integer attribute.\n\n@param key the key, non null.\n@param value the value\n@return the Builder, for chaining.", "Get a list of referrers from a given domain to a photoset.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photosetId\n(Optional) The id of the photoset to get stats for. If not provided, stats for all sets will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotosetReferrers.html\"", "Returns the set of synchronized documents in a namespace.\n\n@param namespace the namespace to get synchronized documents for.\n@return the set of synchronized documents in a namespace.", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "Resolves the base directory. If the system property is set that value will be used. Otherwise the path is\nresolved from the home directory.\n\n@param name the system property name\n@param dirName the directory name relative to the base directory\n\n@return the resolved base directory", "Cleans up the subsystem children for the deployment and each sub-deployment resource.\n\n@param resource the subsystem resource to clean up", "Adds a new gender item and an initial name.\n\n@param entityIdValue\nthe item representing the gender\n@param name\nthe label to use for representing the gender", "Creates the \"Add key\" button.\n@return the \"Add key\" button.", "Logs to Info if the debug level is greater than or equal to 1." ]
public boolean uploadConfigurationAndProfile(String fileName, String odoImport) { File file = new File(fileName); MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create(); FileBody fileBody = new FileBody(file, ContentType.MULTIPART_FORM_DATA); multipartEntityBuilder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); multipartEntityBuilder.addPart("fileData", fileBody); multipartEntityBuilder.addTextBody("odoImport", odoImport); try { JSONObject response = new JSONObject(doMultipartPost(BASE_BACKUP_PROFILE + "/" + uriEncode(this._profileName) + "/" + this._clientId, multipartEntityBuilder)); if (response.length() == 0) { return true; } else { return false; } } catch (Exception e) { return false; } }
[ "Upload file and set odo overrides and configuration of odo\n\n@param fileName File containing configuration\n@param odoImport Import odo configuration in addition to overrides\n@return If upload was successful" ]
[ "Returns a copy of this year-quarter with the new year and quarter, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newQuarter the quarter-of-year to represent, validated not null\n@return the year-quarter, not null", "Get a loader that lists the files in the current path,\nand monitors changes.", "Creates a quad consisting of two triangles, with the specified width and\nheight.\n\n@param gvrContext current {@link GVRContext}\n\n@param width\nthe quad's width\n@param height\nthe quad's height\n@return A 2D, rectangular mesh with four vertices and two triangles", "Returns the Class object of the Event implementation.", "Sets the left padding for all cells in the table.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Convert a field value to something suitable to be stored in the database.", "Serialize the Document object.\n\n@param dom the document to serialize\n@return the serialized dom String", "Use this API to expire cacheobject.", "Detect and apply waves, now or when the widget is attached.\n\n@param widget target widget to ensure is attached first" ]
public ParallelTask execute(ParallecResponseHandler handler) { ParallelTask task = new ParallelTask(); try { targetHostMeta = new TargetHostMeta(targetHosts); final ParallelTask taskReal = new ParallelTask(requestProtocol, concurrency, httpMeta, targetHostMeta, sshMeta, tcpMeta, udpMeta, pingMeta, handler, responseContext, replacementVarMapNodeSpecific, replacementVarMap, requestReplacementType, config); task = taskReal; logger.info("***********START_PARALLEL_HTTP_TASK_" + task.getTaskId() + "***********"); // throws ParallelTaskInvalidException task.validateWithFillDefault(); task.setSubmitTime(System.currentTimeMillis()); if (task.getConfig().isEnableCapacityAwareTaskScheduler()) { //late initialize the task scheduler ParallelTaskManager.getInstance().initTaskSchedulerIfNot(); // add task to the wait queue ParallelTaskManager.getInstance().getWaitQ().add(task); logger.info("Enabled CapacityAwareTaskScheduler. Submitted task to waitQ in builder.. " + task.getTaskId()); } else { logger.info( "Disabled CapacityAwareTaskScheduler. Immediately execute task {} ", task.getTaskId()); Runnable director = new Runnable() { public void run() { ParallelTaskManager.getInstance() .generateUpdateExecuteTask(taskReal); } }; new Thread(director).start(); } if (this.getMode() == TaskRunMode.SYNC) { logger.info("Executing task {} in SYNC mode... ", task.getTaskId()); while (task != null && !task.isCompleted()) { try { Thread.sleep(500L); } catch (InterruptedException e) { logger.error("InterruptedException " + e); } } } } catch (ParallelTaskInvalidException ex) { logger.info("Request is invalid with missing parts. Details: " + ex.getMessage() + " Cannot execute at this time. " + " Please review your request and try again.\nCommand:" + httpMeta.toString()); task.setState(ParallelTaskState.COMPLETED_WITH_ERROR); task.getTaskErrorMetas().add( new TaskErrorMeta(TaskErrorType.VALIDATION_ERROR, "validation eror")); } catch (Exception t) { logger.error("fail task builder. Unknown error: " + t, t); task.setState(ParallelTaskState.COMPLETED_WITH_ERROR); task.getTaskErrorMetas().add( new TaskErrorMeta(TaskErrorType.UNKNOWN, "unknown eror", t)); } logger.info("***********FINISH_PARALLEL_HTTP_TASK_" + task.getTaskId() + "***********"); return task; }
[ "key function. first validate if the ACM has adequate data; then execute\nit after the validation. the new ParallelTask task guareetee to have the\ntargethost meta and command meta not null\n\n@param handler\nthe handler\n@return the parallel task" ]
[ "Adds a column to this table definition.\n\n@param columnDef The new column", "This method allows us to peek into the OLE compound document to extract the file format.\nThis allows the UniversalProjectReader to determine if this is an MPP file, or if\nit is another type of OLE compound document.\n\n@param fs POIFSFileSystem instance\n@return file format name\n@throws IOException", "append human message to JsonRtn class\n\n@param jsonRtn\n@return", "Creates a Set out of the given keys\n\n@param <K> the key type\n@param keys\nthe keys\n@return a Set containing the given keys", "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "Moves the drawer to the position passed.\n\n@param position The position the content is moved to.\n@param velocity Optional velocity if called by releasing a drag event.\n@param animate Whether the move is animated.", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the lowest to the highest score.\nLexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements", "process all messages in this batch, provided there is plenty of output space.", "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id" ]
private boolean checkTagAndParam(XDoc doc, String tagName, String paramName, String paramValue) { if (tagName == null) { return true; } if (!doc.hasTag(tagName)) { return false; } if (paramName == null) { return true; } if (!doc.getTag(tagName).getAttributeNames().contains(paramName)) { return false; } return (paramValue == null) || paramValue.equals(doc.getTagAttributeValue(tagName, paramName)); }
[ "Determines whether the given documentation part contains the specified tag with the given parameter having the\ngiven value.\n\n@param doc The documentation part\n@param tagName The tag to be searched for\n@param paramName The parameter that the tag is required to have\n@param paramValue The value of the parameter\n@return boolean Whether the documentation part has the tag and parameter" ]
[ "Remove an active operation.\n\n@param id the operation id\n@return the removed active operation, {@code null} if there was no registered operation", "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.", "Get the raw bytes of the beat grid as it was read over the network. This can be used to analyze fields\nthat have not yet been reliably understood, and is also used for storing the beat grid in a cache file.\nThis is not available when the beat grid was loaded by Crate Digger.\n\n@return the bytes that make up the beat grid", "Iterates over the elements of an iterable collection of items, starting\nfrom a specified startIndex, and returns the index of the last item that\nmatches the condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param startIndex start matching from this index\n@param closure the filter to perform a match on the collection\n@return an integer that is the index of the last matched object or -1 if no match was found\n@since 1.5.2", "Alias accessor provided for JSON serialization only", "Start timing an operation with the given identifier.", "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "Validate that the Unique IDs for the entities in this container are valid for MS Project.\nIf they are not valid, i.e one or more of them are too large, renumber them.", "Figure out the starting waveform segment that corresponds to the specified coordinate in the window.\n\n@param x the column being drawn\n\n@return the offset into the waveform at the current scale and playback time that should be drawn there" ]
public void refresh(String[] configLocations) throws GeomajasException { try { setConfigLocations(configLocations); refresh(); } catch (Exception e) { throw new GeomajasException(e, ExceptionCode.REFRESH_CONFIGURATION_FAILED); } }
[ "Refresh this context with the specified configuration locations.\n\n@param configLocations\nlist of configuration resources (see implementation for specifics)\n@throws GeomajasException\nindicates a problem with the new location files (see cause)" ]
[ "callers of doLogin should be serialized before calling in.", "Resolves line alpha based on distance comparing to max distance.\nWhere alpha is close to 0 for maxDistance, and close to 1 to 0 distance.\n\n@param distance line length\n@param maxDistance max line length\n@return line alpha", "Given the current cluster and a zone id that needs to be dropped, this\nmethod will remove all partitions from the zone that is being dropped and\nmove it to the existing zones. The partitions are moved intelligently so\nas not to avoid any data movement in the existing zones.\n\nThis is achieved by moving the partitions to nodes in the surviving zones\nthat is zone-nry to that partition in the surviving zone.\n\n@param currentCluster Current cluster metadata\n@return Returns an interim cluster with empty partition lists on the\nnodes from the zone being dropped", "Return all valid tenors for a given moneyness and maturity.\nUses the payment times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@param maturity The maturities as year fraction from the reference date.\n@return The tenors as year fraction from reference date.", "Convenience routine to move to the next iterator if needed.\n@return true if the iterator is changed, false if no changes.", "DISPATCHING - COMMANDS", "Retrieves information for a collaboration whitelist for a given whitelist ID.\n\n@return information about this {@link BoxCollaborationWhitelistExemptTarget}.", "Set the minimum date limit.", "Get the active operation.\n\n@param id the active operation id\n@return the active operation, {@code null} if if there is no registered operation" ]
protected boolean closeAtomically() { if (isClosed.compareAndSet(false, true)) { Closeable.closeQuietly(networkStatsListener); return true; } else { //was already closed. return false; } }
[ "Close the connection atomically.\n\n@return true if state changed to closed; false if nothing changed." ]
[ "Deletes an email alias from this user's account.\n\n<p>The IDs of the user's email aliases can be found by calling {@link #getEmailAliases}.</p>\n\n@param emailAliasID the ID of the email alias to delete.", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements.", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name .", "Adds to this set all of the elements in the specified map of members and their score.\n@param scoredMember the members to add together with their scores\n@return the number of members actually added", "Write a long attribute.\n\n@param name attribute name\n@param value attribute value", "Set the name of the schema containing the schedule tables.\n\n@param schema schema name.", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException" ]
private void generateWrappingPart(WrappingHint.Builder builder) { builder.setWrappingMethodOwnerName(configuration.UNMODIFIABLE_METHOD_OWNER) .setWrappingMethodName(configuration.FIELD_TYPE_TO_UNMODIFIABLE_METHOD.get(typeAssignedToField)); }
[ "Pick arbitrary wrapping method. No generics should be set.\n@param builder" ]
[ "Use this API to rename a nsacl6 resource.", "Returns an array of all declared fields in the given class and all\nsuper-classes.", "Ensures that the given collection descriptor has the collection-class property if necessary.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If collection-class is given for an array or if no collection-class is given but required", "Decides what the Map Web provider should be used and generates a builder for it.\n\n@return The AirMapViewBuilder for the selected Map Web provider.", "Lift a Java Func4 to a Scala Function4\n\n@param f the function to lift\n\n@returns the Scala function", "Populates the project header.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Layout children inside the layout container", "Implements getAll by delegating to get.", "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container" ]
public double[] getZeroRates(double[] maturities) { double[] values = new double[maturities.length]; for(int i=0; i<maturities.length; i++) { values[i] = getZeroRate(maturities[i]); } return values; }
[ "Returns the zero rates for a given vector maturities.\n\n@param maturities The given maturities.\n@return The zero rates." ]
[ "Returns an array of all the singular values", "A comment.\n\n@param args the parameters", "return null if the operation has no params to validate", "Save a weak reference to the resource", "Parses the configuration node and provides a pipeline configuration without any extensions marked for loading.\nThe configuration node is supposed to conform to the pipeline configuration JSON schema.\n\n<p>The caller is supposed to use the methods from the builder to add/find extension classes that will be used in\nthe analysis.\n\n<p>Note that the returned pipeline configuration might not contain all the extensions available in\nthe classloader depending on the include/exclude filters in the configuration.\n\n@param json the configuration node\n@return a pipeline configuration parsed from the configuration\n@see Builder#build()", "Expands the cluster to include density-reachable items.\n\n@param cluster Cluster to expand\n@param point Point to add to cluster\n@param neighbors List of neighbors\n@param points the data set\n@param visited the set of already visited points\n@return the expanded cluster", "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", "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition", "Set the repeat count of an override at ordinal index\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param repeatCount new repeat count to set\n@return true if success, false otherwise" ]
public <X> Set<DisposalMethod<X, ?>> resolveDisposalBeans(Set<Type> types, Set<Annotation> qualifiers, AbstractClassBean<X> declaringBean) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals Set<DisposalMethod<X, ?>> beans = cast(disposalMethodResolver.resolve(new ResolvableBuilder(manager).addTypes(types).addQualifiers(qualifiers).setDeclaringBean(declaringBean).create(), true)); resolvedDisposalBeans.addAll(beans); return Collections.unmodifiableSet(beans); }
[ "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods" ]
[ "invoked from the jelly file\n\n@throws Exception Any exception", "The specified interface must not contain methods, that changes the state of this object itself.\n\n@param code\nsource code of an interface which describes how to generate the <i>immutable</i>\n@param settings\nsettings to generate code\n@return generated source code as string in a result wrapper", "Use this API to fetch all the autoscaleprofile resources that are configured on netscaler.", "Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The index descriptor definition or <code>null</code> if there is no such index", "Returns the map from resourcetype names to default timestamp modes.\n@return the map from resourcetype names to default timestamp modes.", "Add filters to the tree.\n\n@param parentNode parent tree node\n@param filters list of filters", "Gets the Kullback Leibler divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kullback Leibler divergence between u and v.", "Populates a resource availability table.\n\n@param table resource availability table\n@param data file data", "Use this API to fetch authorizationpolicylabel_binding resource of given name ." ]
public static snmpuser[] get(nitro_service service, options option) throws Exception{ snmpuser obj = new snmpuser(); snmpuser[] response = (snmpuser[])obj.get_resources(service,option); return response; }
[ "Use this API to fetch all the snmpuser resources that are configured on netscaler." ]
[ "Returns the property value read from the given JavaBean.\n\n@param bean the JavaBean to read the property from\n@param property the property to read\n\n@return the property value read from the given JavaBean", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Populates a Map instance representing the IDs and names of\nprojects available in the current file.\n\n@param is input stream used to read XER file\n@return Map instance containing ID and name pairs\n@throws MPXJException", "Returns the Map value of the field.\n\n@return the Map value of the field. It returns a reference of the value both for <code>MAP</code> and\n<code>LIST_MAP</code>.\n@throws IllegalArgumentException if the value cannot be converted to Map.", "Sets the SCXML model with an InputStream\n\n@param inputFileStream the model input stream", "Use this API to fetch all the sslcertlink resources that are configured on netscaler.", "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException", "Read the top level tasks from GanttProject.\n\n@param gpProject GanttProject project", "Sets the current class definition derived from the current class, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"accept-locks\" optional=\"true\" description=\"The accept locks setting\" values=\"true,false\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the class as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"determine-extents\" optional=\"true\" description=\"Whether to determine\npersistent direct sub types automatically\" values=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a no-argument factory method that is\nused to create instances (not yet implemented !)\"\[email protected] name=\"factory-class\" optional=\"true\" description=\"Specifies a factory class to be used for creating\nobjects of this class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a static no-argument method in the factory class\"\[email protected] name=\"generate-repository-info\" optional=\"true\" description=\"Whether repository data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"generate-table-info\" optional=\"true\" description=\"Whether table data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"include-inherited\" optional=\"true\" description=\"Whether to include\nfields/references/collections of supertypes\" values=\"true,false\"\[email protected] name=\"initialization-method\" optional=\"true\" description=\"Specifies a no-argument instance method that is\ncalled right after an instance has been read from the database\"\[email protected] name=\"isolation-level\" optional=\"true\" description=\"The isolation level setting\"\[email protected] name=\"proxy\" optional=\"true\" description=\"The proxy setting for this class\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects of\nobjects of this class to prefetch in collections\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Can be set to force OJB to refresh instances when\nloaded from the cache\" values=\"true,false\"\[email protected] name=\"row-reader\" optional=\"true\" description=\"The row reader for the class\"\[email protected] name=\"schema\" optional=\"true\" description=\"The schema for the type\"\[email protected] name=\"table\" optional=\"true\" description=\"The table for the class\"\[email protected] name=\"table-documentation\" optional=\"true\" description=\"Documentation on the table\"" ]
private void markDateInvocation() { _updatePreviousDates = !_dateGivenInGroup; _dateGivenInGroup = true; _dateGroup.setDateInferred(false); if(_firstDateInvocationInGroup) { // if a time has been given within the current date group, // we capture the current time before resetting the calendar if(_timeGivenInGroup) { int hours = _calendar.get(Calendar.HOUR_OF_DAY); int minutes = _calendar.get(Calendar.MINUTE); int seconds = _calendar.get(Calendar.SECOND); resetCalendar(); _calendar.set(Calendar.HOUR_OF_DAY, hours); _calendar.set(Calendar.MINUTE, minutes); _calendar.set(Calendar.SECOND, seconds); } else { resetCalendar(); } _firstDateInvocationInGroup = false; } }
[ "ensures that the first invocation of a date seeking\nrule is captured" ]
[ "Use this API to update cmpparameter.", "Update the underlying buffer using the short\n\n@param number number to be stored in checksum buffer", "Validates a String to be a valid name to be used in MongoDB for a field name.\n\n@param fieldName", "Convert the value to requested quoting convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param value The value to convert.\n@param key The key of the value.\n@param toConvention The convention to convert to.\n@param toDisplacement The displacement to be used, if converting to log normal implied volatility.\n@param fromConvention The current convention of the value.\n@param fromDisplacement The current displacement.\n@param model The model for context.\n\n@return The converted value.", "List the slack values for each task.\n\n@param file ProjectFile instance", "Creates the JSON serialized form of the accessory for use over the Homekit Accessory Protocol.\n\n@param instanceId the static id of the accessory.\n@return a future that will complete with the JSON builder for the object.", "Click handler for bottom drawer items.", "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "Use this API to fetch filterpolicy_binding resource of given name ." ]
public int executeUpdate(String query) throws Exception { int returnVal = 0; Statement queryStatement = null; try (Connection sqlConnection = getConnection()) { queryStatement = sqlConnection.createStatement(); returnVal = queryStatement.executeUpdate(query); } catch (Exception e) { } finally { try { if (queryStatement != null) { queryStatement.close(); } } catch (Exception e) { } } return returnVal; }
[ "Wrapped version of standard jdbc executeUpdate Pays attention to DB\nlocked exception and waits up to 1s\n\n@param query SQL query to execute\n@throws Exception - will throw an exception if we can never get a lock" ]
[ "Resolve the given string using any plugin and the DMR resolve method", "Set virtual host so the server can direct the request. Value is the host header if it is set, otherwise\nuse the hostname from the original request.\n\n@param httpMethodProxyRequest\n@param httpServletRequest", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Initialize the ui elements for the management part.", "Ensures that the foreign keys required by the given collection are present in the element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the foreign keys", "interceptors, decorators and observers go first", "Set the individual dates where the event should take place.\n@param dates the dates to set.", "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)", "Returns a projection object for specifying the fields to retrieve during a specific find operation." ]
public void load(String soundFile) { if (mSoundFile != null) { unload(); } mSoundFile = soundFile; if (mAudioListener != null) { mAudioListener.getAudioEngine().preloadSoundFile(soundFile); Log.d("SOUND", "loaded audio file %s", getSoundFile()); } }
[ "Preloads a sound file.\n\n@param soundFile path/name of the file to be played." ]
[ "Pops the top of the stack of active elements if the current position in the call stack corresponds to the one\nthat pushed the active elements.\n\n<p>This method does not do any type checks, so take care to retrieve the elements with the same types used to push\nto them onto the stack.\n\n@param <T> the type of the elements\n\n@return the active elements or null if the current call stack did not push any active elements onto the stack", "Returns the value of an optional property, if the property is\nset. If it is not set defval is returned.", "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from", "Extract a list of exception assignments.\n\n@param exceptionData string representation of exception assignments\n@return list of exception assignment rows", "Adds the provided map of key-value pairs as a new row in the table represented by this DataSet.\n\n@param map the key (column-name), value pairs to add as a new row\n@throws SQLException if a database error occurs", "Add fields to the text index configuration.\n\n@param fields the {@link TextIndex.Field} configurations to add\n@return the builder for chaining", "Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked", "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "Use this API to fetch the statistics of all nslimitidentifier_stats resources that are configured on netscaler." ]
public void setDateOnly(boolean dateOnly) { if (m_dateOnly != dateOnly) { m_dateOnly = dateOnly; if (m_dateOnly) { m_time.removeFromParent(); m_am.removeFromParent(); m_pm.removeFromParent(); } else { m_timeField.add(m_time); m_timeField.add(m_am); m_timeField.add(m_pm); } } }
[ "Sets the value if the date only should be shown.\n@param dateOnly if the date only should be shown" ]
[ "Write an attribute name.\n\n@param name attribute name", "Convert a request type string to value\n\n@param requestType String value of request type GET/POST/PUT/DELETE\n@return Matching REQUEST_TYPE. Defaults to ALL", "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", "Return the list of licenses attached to an artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbLicense>", "Use this API to fetch statistics of nspbr6_stats resource of given name .", "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Use this API to Reboot reboot.", "If an error is thrown while loading zone data, the exception is logged\nto system error and null is returned for this and all future requests.\n\n@param id the id to load\n@return the loaded zone", "Convert an Object of type Class to an Object." ]
protected Renderer build() { validateAttributes(); Renderer renderer; if (isRecyclable(convertView, content)) { renderer = recycle(convertView, content); } else { renderer = createRenderer(content, parent); } return renderer; }
[ "Main method of this class related to ListView widget. This method is the responsible of\nrecycle or create a new Renderer instance with all the needed information to implement the\nrendering. This method will validate all the attributes passed in the builder constructor and\nwill check if can recycle or has to create a new Renderer instance.\n\nThis method is used with ListView because the view recycling mechanism is implemented in this\nclass. RecyclerView widget will use buildRendererViewHolder method.\n\n@return ready to use Renderer instance." ]
[ "Set the \"everyWorkingDay\" flag.\n@param isEveryWorkingDay flag, indicating if the event should take place every working day.", "Replaces sequences of whitespaces with tabs.\n\n@param self A CharSequence to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Creates the string mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param position\nthe position\n@throws IOException\nSignals that an I/O exception has occurred.", "Get a message bundle of the given type.\n\n@param type the bundle type class\n\n@return the bundle", "Use this API to fetch all the aaaparameter resources that are configured on netscaler.", "Obtain collection of profiles\n\n@param model\n@return\n@throws Exception", "Load a JSON file from the application's \"asset\" directory.\n\n@param context Valid {@link Context}\n@param asset Name of the JSON file\n@return New instance of {@link JSONObject}", "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", "just as facade but we keep the qualifiers so that we can recognize Bean from @Intercepted Bean." ]
public static gslbsite[] get(nitro_service service, String sitename[]) throws Exception{ if (sitename !=null && sitename.length>0) { gslbsite response[] = new gslbsite[sitename.length]; gslbsite obj[] = new gslbsite[sitename.length]; for (int i=0;i<sitename.length;i++) { obj[i] = new gslbsite(); obj[i].set_sitename(sitename[i]); response[i] = (gslbsite) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch gslbsite resources of given names ." ]
[ "Inserts a new instance but references via the outIdentifier, which is returned as part of the ExecutionResults\n\n@param object\n@param outIdentifier\n@return", "Adds search fields from elements on a container page to a container page's document.\n@param document The document for the container page\n@param cms The current CmsObject\n@param resource The resource of the container page\n@param systemFields The list of field names for fields where mappings to should be discarded, since these fields are used system internally.\n@return the manipulated document", "Gets Widget bounds depth\n@return depth", "Allocates a new next buffer and pending fetch.", "Returns if a MongoDB document is a todo item.", "Get the configuration for a TMS layer by retrieving and parsing it's XML description file. The parsing is done\nusing JaxB.\n@param layer the tms layer to get capabilities for.\n@return Returns the description as a Java configuration object.\n@throws TmsLayerException\nIn case something went wrong trying to find or parse the XML description file.", "Gets all data set values.\n\n@param dataSet\nIIM record and dataset code (See constants in {@link IIM})\n@return data set value\n@throws SerializationException\nif value can't be deserialized from binary representation", "Gets a property from system, environment or an external map.\nThe lookup order is system > env > map > defaultValue.\n\n@param name\nThe name of the property.\n@param map\nThe external map.\n@param defaultValue\nThe value that should be used if property is not found.", "The way calendars are stored in an MPP14 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects" ]
public static <T> T columnStringToObject(Class<?> objClass, String str, Pattern delimiterPattern, String[] fieldNames) throws InstantiationException, IllegalAccessException, NoSuchMethodException, NoSuchFieldException, InvocationTargetException { String[] fields = delimiterPattern.split(str); T item = ErasureUtils.<T>uncheckedCast(objClass.newInstance()); for (int i = 0; i < fields.length; i++) { try { Field field = objClass.getDeclaredField(fieldNames[i]); field.set(item, fields[i]); } catch (IllegalAccessException ex) { Method method = objClass.getDeclaredMethod("set" + StringUtils.capitalize(fieldNames[i]), String.class); method.invoke(item, fields[i]); } } return item; }
[ "Converts a tab delimited string into an object with given fields\nRequires the object has public access for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterPattern delimiter\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string" ]
[ "Scales a process type\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param processType type of process to maintain\n@param quantity number of processes to maintain", "Returns the URL of a classpath resource.\n\n@param resourceName\nThe name of the resource.\n\n@return The URL.", "Sanity checks the input or declares a new matrix. Return matrix is an identity matrix.", "Use this API to fetch all the pqbinding resources that are configured on netscaler.\nThis uses pqbinding_args which is a way to provide additional arguments while fetching the resources.", "Calculate the layout offset", "Performs a query to retrieve all the design documents defined in the database.\n\n@return a list of the design documents from the database\n@throws IOException if there was an error communicating with the server\n@since 2.5.0", "Return a public static method of a class.\n@param methodName the static method name\n@param clazz the class which defines the method\n@param args the parameter types to the method\n@return the static method, or {@code null} if no static method was found\n@throws IllegalArgumentException if the method name is blank or the clazz is null", "Do some magic to turn request parameters into a context object", "Set the main attribute \"Bundle-Activator\" to the given value.\n\n@param bundleActivator The new value" ]
private ChildTaskContainer getParentTask(String wbs) { ChildTaskContainer result; String parentWbs = getParentWBS(wbs); if (parentWbs == null) { result = m_projectFile; } else { result = m_taskMap.get(parentWbs); } return result; }
[ "Retrieve the parent task based on its WBS.\n\n@param wbs parent WBS\n@return parent task" ]
[ "Reads the configuration of a field facet.\n@param pathPrefix The XML Path that leads to the field facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured.", "Returns a non-validating XML parser. The parser ignores both DTDs and XSDs.\n\n@return An XML parser in the form of a DocumentBuilder", "Private helper function that performs some assignability checks for the\nprovided GenericArrayType.", "Given a particular key, first converts its to the storage format and then\ndetermines which chunk it belongs to\n\n@param key Byte array of keys\n@return Chunk id\n@throws IllegalStateException if unable to find the chunk id for the given key", "Validates the deployment.\n\n@param isDomain {@code true} if this is a domain server, otherwise {@code false}\n\n@throws MojoDeploymentException if the deployment is invalid", "Use this API to unset the properties of snmpalarm resources.\nProperties that need to be unset are specified in args array.", "Propagate onTouchStart events to listeners\n@param hit collision object", "make a copy of the criteria\n@param includeGroupBy if true\n@param includeOrderBy if ture\n@param includePrefetchedRelationships if true\n@return a copy of the criteria", "Return the parent outline number, or an empty string if\nwe have a root task.\n\n@param outlineNumber child outline number\n@return parent outline number" ]
public AccrueType getAccrueType(int field) { AccrueType result; if ((field < m_fields.length) && (m_fields[field].length() != 0)) { result = AccrueTypeUtility.getInstance(m_fields[field], m_locale); } else { result = null; } return (result); }
[ "Accessor method to retrieve an accrue type instance.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
[ "Validations specific to GET and GET ALL", "Helper method to split a string by a given character, with empty parts omitted.", "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens", "Propagates the names of all facets to each single facet.", "Write a Byte Order Mark at the beginning of the file\n\n@param stream the FileOutputStream to write the BOM to\n@param bigEndian true if UTF 16 Big Endian or false if Low Endian\n@throws IOException if an IOException occurs.\n@since 1.0", "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId", "Return a stream of resources from a response\n\n@param response the response\n@param <R> the resource type\n@param <U> the response type\n@return a stream of resources from the response", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Use this API to fetch lbmonitor_binding resources of given names ." ]
private ServerBootstrap createBootstrap(final ChannelGroup channelGroup) throws Exception { EventLoopGroup bossGroup = new NioEventLoopGroup(bossThreadPoolSize, createDaemonThreadFactory(serviceName + "-boss-thread-%d")); EventLoopGroup workerGroup = new NioEventLoopGroup(workerThreadPoolSize, createDaemonThreadFactory(serviceName + "-worker-thread-%d")); ServerBootstrap bootstrap = new ServerBootstrap(); bootstrap .group(bossGroup, workerGroup) .channel(NioServerSocketChannel.class) .childHandler(new ChannelInitializer<SocketChannel>() { @Override protected void initChannel(SocketChannel ch) throws Exception { channelGroup.add(ch); ChannelPipeline pipeline = ch.pipeline(); if (sslHandlerFactory != null) { // Add SSLHandler if SSL is enabled pipeline.addLast("ssl", sslHandlerFactory.create(ch.alloc())); } pipeline.addLast("codec", new HttpServerCodec()); pipeline.addLast("compressor", new HttpContentCompressor()); pipeline.addLast("chunkedWriter", new ChunkedWriteHandler()); pipeline.addLast("keepAlive", new HttpServerKeepAliveHandler()); pipeline.addLast("router", new RequestRouter(resourceHandler, httpChunkLimit, sslHandlerFactory != null)); if (eventExecutorGroup == null) { pipeline.addLast("dispatcher", new HttpDispatcher()); } else { pipeline.addLast(eventExecutorGroup, "dispatcher", new HttpDispatcher()); } if (pipelineModifier != null) { pipelineModifier.modify(pipeline); } } }); for (Map.Entry<ChannelOption, Object> entry : channelConfigs.entrySet()) { bootstrap.option(entry.getKey(), entry.getValue()); } for (Map.Entry<ChannelOption, Object> entry : childChannelConfigs.entrySet()) { bootstrap.childOption(entry.getKey(), entry.getValue()); } return bootstrap; }
[ "Creates the server bootstrap." ]
[ "Get the element as a boolean.\n\n@param i the index of the element to access", "Add server redirect to a profile, using current active ServerGroup\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@return ID of added ServerRedirect\n@throws Exception exception", "multi-field string", "Use this API to fetch vpnvserver_cachepolicy_binding resources of given name .", "Sets a file whose contents will be prepended to the JAR file's data.\n\n@param file the prefix file, or {@code null} for none.\n@return {@code this}", "Processes a procedure tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"arguments\" optional=\"true\" description=\"The arguments of the procedure as a comma-separated\nlist of names of procedure attribute tags\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"include-all-fields\" optional=\"true\" description=\"For insert/update: whether all fields of the current\nclass shall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"include-pk-only\" optional=\"true\" description=\"For delete: whether all primary key fields\nshall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the procedure\"\[email protected] name=\"return-field-ref\" optional=\"true\" description=\"Identifies the field that receives the return value\"\[email protected] name=\"type\" optional=\"false\" description=\"The type of the procedure\" values=\"delete,insert,update\"", "Notify the widget that refresh state has changed. Do not call this when\nrefresh is triggered by a swipe gesture.\n\n@param refreshing Whether or not the view should show refresh progress.", "Presents the Cursor Settings to the User. Only works if scene is set.", "Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data" ]
public Headers getAllHeaders() { Headers requestHeaders = getHeaders(); requestHeaders = hasPayload() ? requestHeaders.withContentType(getPayload().get().getMimeType()) : requestHeaders; //We don't want to add headers more than once. return requestHeaders; }
[ "Returns all headers with the headers from the Payload\n\n@return All the headers" ]
[ "Check whether the URL end with one of the given suffixes.\n\n@param uri URI\n@param patterns possible suffixes\n@return true when URL ends with one of the suffixes", "Create new multipart with a text part and an attachment\n\n@param msg Message text\n@param attachment Attachment data\n@param contentType MIME content type of body\n@param filename File name of the attachment\n@param description Description of the attachment\n@return New multipart", "Specify the address of the SOCKS proxy the connection should\nuse.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n<p>Be aware that this method only handles SOCKS proxies, not\nHTTPS proxies. Use {@link #withProxy(Proxy)} instead.\n\n@param host the hostname of the SOCKS proxy\n@param port the port of the SOCKS proxy server\n@return this", "Deals with the case where we have had to map a task ID to a new value.\n\n@param id task ID from database\n@return mapped task ID", "Set a range of the colormap, interpolating between two colors.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color1 the first color\n@param color2 the second color", "Process StepFinishedEvent. Change last added to stepStorage step\nand add it as child of previous step.\n\n@param event to process", "Use this API to fetch all the dnssuffix resources that are configured on netscaler.", "Produces a new ConditionalCounter.\n\n@return a new ConditionalCounter, where order of indices is reversed", "Use this API to export application." ]
private void addForward(AnalyticModel model, double fixingTime, RandomVariable forward, boolean isParameter) { double interpolationEntitiyTime; RandomVariable interpolationEntityForwardValue; switch(interpolationEntityForward) { case FORWARD: default: interpolationEntitiyTime = fixingTime; interpolationEntityForwardValue = forward; break; case FORWARD_TIMES_DISCOUNTFACTOR: interpolationEntitiyTime = fixingTime; interpolationEntityForwardValue = forward.mult(model.getDiscountCurve(getDiscountCurveName()).getValue(model, fixingTime+getPaymentOffset(fixingTime))); break; case ZERO: { double paymentOffset = getPaymentOffset(fixingTime); interpolationEntitiyTime = fixingTime+paymentOffset; interpolationEntityForwardValue = forward.mult(paymentOffset).add(1.0).log().div(paymentOffset); break; } case DISCOUNTFACTOR: { double paymentOffset = getPaymentOffset(fixingTime); interpolationEntitiyTime = fixingTime+paymentOffset; interpolationEntityForwardValue = getValue(fixingTime).div(forward.mult(paymentOffset).add(1.0)); break; } } super.addPoint(interpolationEntitiyTime, interpolationEntityForwardValue, isParameter); }
[ "Add a forward to this curve.\n\n@param model An analytic model providing a context. The discount curve (if needed) is obtained from this model.\n@param fixingTime The given fixing time.\n@param forward The given forward.\n@param isParameter If true, then this point is server via {@link #getParameter()} and changed via {@link #setParameter(RandomVariable[])} and {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated." ]
[ "Get DPI suggestions.\n\n@return DPI suggestions", "Wrap connection with a proxy.\n@param target connection handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a connection.", "Set the attributes for this template.\n\n@param attributes the attribute map", "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType the target collection element type\n@return collection", "Returns the list of store defs as a map\n\n@param storeDefs\n@return", "Defers an event for processing in a later phase of the current\ntransaction.\n\n@param metadata The event object", "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an integer (rounding might occur)", "Creates a jrxml file\n\n@param dr\n@param layoutManager\n@param _parameters\n@param xmlEncoding (default is UTF-8 )\n@param outputStream\n@throws JRException", "Called internally to actually process the Iteration." ]
public static String getURL(String sourceURI) { String retval = sourceURI; int qPos = sourceURI.indexOf("?"); if (qPos != -1) { retval = retval.substring(0, qPos); } return retval; }
[ "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters" ]
[ "Use this API to add ipset.", "Checks the constraints on this class.\n\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Creates the given connection pool with the given configuration. Extracted here to make unit mocking easier.\n@param config configuration object.\n@return BoneCP connection pool handle.", "Passes the Socket's InputStream and OutputStream to the closure. The\nstreams will be closed after the closure returns, even if an exception\nis thrown.\n\n@param socket a Socket\n@param closure a Closure\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 1.5.2", "Get public photos from the user's contacts.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param userId\nThe user ID\n@param count\nThe number of photos to return\n@param justFriends\nTrue to include friends\n@param singlePhoto\nTrue to get a single photo\n@param includeSelf\nTrue to include self\n@return A collection of Photo objects\n@throws FlickrException", "Use this API to fetch statistics of appfwprofile_stats resource of given name .", "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix.", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Use this API to fetch cachepolicy_cacheglobal_binding resources of given name ." ]
public static sslcipher get(nitro_service service, String ciphergroupname) throws Exception{ sslcipher obj = new sslcipher(); obj.set_ciphergroupname(ciphergroupname); sslcipher response = (sslcipher) obj.get_resource(service); return response; }
[ "Use this API to fetch sslcipher resource of given name ." ]
[ "returns the values of the orientation tag", "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", "Prints a suggestion to stderr for the argument based on the levenshtein distance metric\n\n@param arg the argument which could not be assigned to a flag\n@param co the {@link ConfigOption} List where every flag is stored", "Function to clear all the metadata related to the given store\ndefinitions. This is needed when a put on 'stores.xml' is called, thus\nreplacing the existing state.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will handle concurrency related issues.\n\n@param storeNamesToDelete", "This method writes task data to a Planner file.\n\n@throws JAXBException on xml creation errors", "Stops all transitions.", "Transmits the SerialMessage to a single Z-Wave Node.\nSets the transmission options as well.\n@param serialMessage the Serial message to send.", "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", "Use this API to change sslcertkey resources." ]
private <T> Observable<PollingState<T>> updateStateFromLocationHeaderOnPutAsync(final PollingState<T> pollingState) { return pollAsync(pollingState.locationHeaderLink(), pollingState.loggingContext()) .flatMap(new Func1<Response<ResponseBody>, Observable<PollingState<T>>>() { @Override public Observable<PollingState<T>> call(Response<ResponseBody> response) { int statusCode = response.code(); if (statusCode == 202) { pollingState.withResponse(response); pollingState.withStatus(AzureAsyncOperation.IN_PROGRESS_STATUS, statusCode); } else if (statusCode == 200 || statusCode == 201) { try { pollingState.updateFromResponseOnPutPatch(response); } catch (CloudException | IOException e) { return Observable.error(e); } } return Observable.just(pollingState); } }); }
[ "Polls from the location header and updates the polling state with the\npolling response for a PUT operation.\n\n@param pollingState the polling state for the current operation.\n@param <T> the return type of the caller." ]
[ "Retrieves all file version retentions matching given filters as an Iterable.\n@param api the API connection to be used by the resource.\n@param filter filters for the query stored in QueryFilter object.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions matching given filter.", "Creates a status instance from the given serviceReferences.\nThe given list is copied to a new set made immutable.\n\n@param serviceReferencesBound the set of ServiceReference which are bound to the declaration.\n@param serviceReferencesHandled the set of ServiceReference which are handling the declaration.\n@return the new instance of status", "Throws an exception if the request can for security reasons not be performed.\nSecurity restrictions can be set via parameters of the index.\n\n@param cms the current context.\n@param query the query.\n@param isSpell flag, indicating if the spellcheck handler is requested.\n@throws CmsSearchException thrown if the query cannot be executed due to security reasons.", "Use this API to fetch sslservicegroup_sslcertkey_binding resources of given name .", "Generates a unique signature for an annotated type. Members without\nannotations are omitted to reduce the length of the signature\n\n@param <X>\n@param annotatedType\n@return hash of a signature for a concrete annotated type", "Writes no-value restriction.\n\n@param rdfWriter\nthe writer to write the restrictions to\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param subject\nnode representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "Indicate whether the given URI matches this template.\n@param uri the URI to match to\n@return {@code true} if it matches; {@code false} otherwise", "Saves the project file displayed in this panel.\n\n@param file target file\n@param type file type", "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object." ]
public static base_response unset(nitro_service client, sslcertkey resource, String[] args) throws Exception{ sslcertkey unsetresource = new sslcertkey(); unsetresource.certkey = resource.certkey; return unsetresource.unset_resource(client,args); }
[ "Use this API to unset the properties of sslcertkey resource.\nProperties that need to be unset are specified in args array." ]
[ "Returns a unique file name\n@param baseFileName the requested base name for the file\n@param extension the requested extension for the file\n@param cleanBaseFileName specify if the <code>baseFileName</code> has to be cleaned before being used (i.e. 'jboss-web' should not be cleaned to avoid '-' to become '_')\n@param ancestorFolders specify the ancestor folders for the file (if there's no ancestor folder, just pass 'null' value)\n@return a String representing the unique file generated", "Get container for principal.\n\n@param cms cmsobject\n@param list of principals\n@param captionID caption id\n@param descID description id\n@param iconID icon id\n@param ouID ou id\n@param icon icon\n@param iconList iconlist\n@return indexedcontainer", "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", "Get the VCS revision from the Jenkins build environment. The search will one of \"SVN_REVISION\", \"GIT_COMMIT\",\n\"P4_CHANGELIST\" in the environment.\n\n@param env Th Jenkins build environment.\n@return The vcs revision for supported VCS", "Write a double attribute.\n\n@param name attribute name\n@param value attribute value", "Use this API to fetch statistics of rnatip_stats resource of given name .", "Extracts the service name from a Server.\n@param server\n@return", "Prepares transformation interceptors for a client.\n\n@param clientConfig the client configuration\n@param newClient indicates if it is a new/updated client", "Updates the font table by adding new fonts used at the current page." ]
public static String getDays(RecurringTask task) { StringBuilder sb = new StringBuilder(); for (Day day : Day.values()) { sb.append(task.getWeeklyDay(day) ? "1" : "0"); } return sb.toString(); }
[ "Convert weekly recurrence days into a bit field.\n\n@param task recurring task\n@return bit field as a string" ]
[ "Get the collection of untagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\n@param page\n@return A Collection of Photos\n@throws FlickrException", "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be shown.", "A simple helper method that creates a pool of connections to Redis using\nthe supplied configurations.\n\n@param jesqueConfig the config used to create the pooled Jedis connections\n@param poolConfig the config used to create the pool\n@return a configured Pool of Jedis connections", "Calculates the bearing, in degrees, of the end LatLong point from this\nLatLong point.\n\n@param end The point that the bearing is calculated for.\n@return The bearing, in degrees, of the supplied point from this point.", "Bounds are calculated locally, can use any filter, but slower than native.\n\n@param filter\nfilter which needs to be applied\n@return the bounds of the specified features\n@throws LayerException\noops", "Converts the real matrix into a complex matrix.\n\n@param input Real matrix. Not modified.\n@param output Complex matrix. Modified.", "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar", "Post boolean flag \"DO_NOT_USE\" to an artifact\n\n@param gavc\n@param doNotUse\n@param user\n@param password\n@throws GrapesCommunicationException", "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" ]
public static String readTextFile(InputStream inputStream) { InputStreamReader streamReader = new InputStreamReader(inputStream); return readTextFile(streamReader); }
[ "Read a text stream into a single string.\n\n@param inputStream\nStream containing text. Will be closed on exit.\n@return The contents, or null on error." ]
[ "Print the visibility adornment of element e prefixed by\nany stereotypes", "Returns true if this Bytes object equals another. This method checks it's arguments.\n\n@since 1.2.0", "Initialize the local plugins registry\n@param context the servlet context necessary to grab\nthe files inside the servlet.\n@return the set of local plugins organized by name", "Takes a matrix and splits it into a set of row or column vectors.\n\n@param A original matrix.\n@param column If true then column vectors will be created.\n@return Set of vectors.", "Find the collision against a specific collider in a list of collisions.\n@param pickList collision list\n@param findme collider to find\n@return collision with the specified collider, null if not found", "Returns iban's country code and check digit.\n\n@param iban String\n@return countryCodeAndCheckDigit String", "Gets whether this registration has an alternative wildcard registration", "Checks to see if either the diagonal element or off diagonal element is zero. If one is\nthen it performs a split or pushes it off the matrix.\n\n@return True if there was a zero.", "Implement the persistence handler for storing the group properties." ]
public void rotateToFront() { GVRTransform transform = mSceneRootObject.getTransform(); transform.setRotation(1, 0, 0, 0); transform.rotateByAxisWithPivot(-frontFacingRotation + 180, 0, 1, 0, 0, 0, 0); }
[ "Rotate root widget to make it facing to the front of the scene" ]
[ "Fetch the outermost Hashmap as a TwoDHashMap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Load a system library from a stream. Copies the library to a temp file\nand loads from there.\n\n@param libname name of the library (just used in constructing the library name)\n@param is InputStream pointing to the library", "Converts a time in milliseconds to the appropriate x coordinate for drawing something at that time.\n\n@param milliseconds the time at which something should be drawn\n\n@return the component x coordinate at which it should be drawn", "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", "Main method to start reading the plain text given by the client\n\n@param args\n, where arg[0] is Beast configuration file (beast.properties)\nand arg[1] is Logger configuration file (logger.properties)\n@throws Exception", "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "Use this API to fetch aaapreauthenticationpolicy_binding resource of given name .", "Use this API to delete route6 resources of given names.", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it is not a valid package or class name\n\n@param s\nthe string to be checked\n@return\n`true` if `s` is a valid java package or class name" ]
public static base_responses unset(nitro_service client, String certkey[], String args[]) throws Exception { base_responses result = null; if (certkey != null && certkey.length > 0) { sslcertkey unsetresources[] = new sslcertkey[certkey.length]; for (int i=0;i<certkey.length;i++){ unsetresources[i] = new sslcertkey(); unsetresources[i].certkey = certkey[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
[ "Use this API to unset the properties of sslcertkey resources.\nProperties that need to be unset are specified in args array." ]
[ "Notifies that a header item is changed.\n\n@param position the position.", "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}", "Generates the context diagram for a single class", "we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize objects and they will enter the registered for\nlock map.", "Get the default provider used.\n\n@return the default provider, never {@code null}.", "Process a relationship between two tasks.\n\n@param row relationship data", "Skip to the next matching short value.\n\n@param buffer input data array\n@param offset start offset into the input array\n@param value value to match\n@return offset of matching pattern", "Remove multiple fields from the map\n@param fields the fields to remove\n@return the number of fields removed", "Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A line to expand\n@param tabStop The number of spaces a tab represents\n@return The expanded toString() of this CharSequence\n@see #expandLine(String, int)\n@since 1.8.2" ]
public static base_response update(nitro_service client, autoscaleaction resource) throws Exception { autoscaleaction updateresource = new autoscaleaction(); updateresource.name = resource.name; updateresource.profilename = resource.profilename; updateresource.parameters = resource.parameters; updateresource.vmdestroygraceperiod = resource.vmdestroygraceperiod; updateresource.quiettime = resource.quiettime; updateresource.vserver = resource.vserver; return updateresource.update_resource(client); }
[ "Use this API to update autoscaleaction." ]
[ "Returns the mode in the Collection. If the Collection has multiple modes, this method picks one\narbitrarily.", "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish", "Remove paths with no active overrides\n\n@throws Exception", "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Locate the no arg constructor for the class.", "Process a single criteria block.\n\n@param list parent criteria list\n@param block current block", "Comparator against other element.\n\n@param otherElement The other element.\n@param logging Whether to do logging.\n@return Whether the elements are equal." ]
private String[] getFksToThisClass() { String indTable = getCollectionDescriptor().getIndirectionTable(); String[] fks = getCollectionDescriptor().getFksToThisClass(); String[] result = new String[fks.length]; for (int i = 0; i < result.length; i++) { result[i] = indTable + "." + fks[i]; } return result; }
[ "prefix the this class fk columns with the indirection table" ]
[ "Use this API to fetch appfwpolicylabel_binding resource of given name .", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException", "Returns the full record for a single team.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Log original incoming request\n\n@param requestType\n@param request\n@param history", "Returns the compact project status update records for all updates on the project.\n\n@param project The project to find status updates for.\n@return Request object", "Writes no-value restriction.\n\n@param rdfWriter\nthe writer to write the restrictions to\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param subject\nnode representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "Executes the API action \"wbsetaliases\" for the given parameters.\n\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param add\nthe values of the aliases to add. They will be merged with the\nexisting aliases. This parameter cannot be used in conjunction\nwith \"set\".\n@param remove\nthe values of the aliases to remove. Other aliases will be retained.\nThis parameter cannot be used in conjunction with \"set\".\n@param set\nthe values of the aliases to set. This will erase any existing\naliases in this language and replace them by the given list.\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", "Use this API to unset the properties of systemuser resource.\nProperties that need to be unset are specified in args array.", "Runs the example program.\n\n@param args\n@throws IOException\nif there was a problem in writing the output file" ]
private void setFileNotWorldReadablePermissions(File file) { file.setReadable(false, false); file.setWritable(false, false); file.setExecutable(false, false); file.setReadable(true, true); file.setWritable(true, true); }
[ "This procedure sets permissions to the given file to not allow everybody to read it.\n\nOnly when underlying OS allows the change.\n\n@param file File to set permissions" ]
[ "Sends the events to monitoring service client.\n\n@param events the events", "Discard the changes.", "Get http response", "Will make the thread ready to run once again after it has stopped.", "Retrieve the Charset used to read the file.\n\n@return Charset instance", "Use this API to add autoscaleaction.", "returns array with length 3 and optional entries version, encoding, standalone", "This method must be called on the start of the component. Initialize and start the directory monitor.\n\n@param monitoredDirectory\n@param pollingTime", "We need to make sure the terms are of the right type, otherwise they will not be serialized correctly." ]
private void remove() { if (removing) { return; } if (deactiveNotifications.size() == 0) { return; } removing = true; final NotificationPopupView view = deactiveNotifications.get(0); final LinearFadeOutAnimation fadeOutAnimation = new LinearFadeOutAnimation(view) { @Override public void onUpdate(double progress) { super.onUpdate(progress); for (int i = 0; i < activeNotifications.size(); i++) { NotificationPopupView v = activeNotifications.get(i); final int left = v.getPopupLeft(); final int top = (int) (((i + 1) * SPACING) - (progress * SPACING)); v.setPopupPosition(left, top); } } @Override public void onComplete() { super.onComplete(); view.hide(); deactiveNotifications.remove(view); activeNotifications.remove(view); removing = false; remove(); } }; fadeOutAnimation.run(500); }
[ "Remove a notification message. Recursive until all pending removals have been completed." ]
[ "Calculate the adjusted forward swaprate corresponding to a change of payoff unit from the given swapAnnuity to the given payoffUnit\nusing the Black-Scholes model for the swap rate together with the 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@return Convexity adjusted forward rate", "Add a channel to the animation to animate the named bone.\n@param boneName name of bone to animate.\n@param channel The animation channel.", "Set the name of the schema containing the Primavera tables.\n\n@param schema schema name.", "Creates the \"Add key\" button.\n@return the \"Add key\" button.", "Returns the header with the specified name from the supplied map. The\nheader lookup is case-insensitive.\n\n@param headers A <code>Map</code> containing the HTTP request headers.\n@param name The name of the header to return.\n@return The value of specified header, or a comma-separated list if there\nwere multiple headers of that name.", "touch event without ripple support", "Determine the length of a nul terminated UTF16LE string in bytes.\n\n@param data string data\n@param offset offset into string data\n@return length in bytes", "Adds a String timestamp representing uninstall flag to the DB.", "Walk project references recursively, adding thrift files to the provided list." ]
public Date getEnd() { if (null != m_explicitEnd) { return isWholeDay() ? adjustForWholeDay(m_explicitEnd, true) : m_explicitEnd; } if ((null == m_end) && (m_series.getInstanceDuration() != null)) { m_end = new Date(m_start.getTime() + m_series.getInstanceDuration().longValue()); } return isWholeDay() && !m_series.isWholeDay() ? adjustForWholeDay(m_end, true) : m_end; }
[ "Returns the end time of the event.\n@return the end time of the event." ]
[ "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", "Extracts a set of interceptor bindings from a collection of annotations.\n@param beanManager\n@param annotations\n@return", "Returns angle in degrees between two points\n\n@param ax x of the point 1\n@param ay y of the point 1\n@param bx x of the point 2\n@param by y of the point 2\n@return angle in degrees between two points", "Gets the last element in the address.\n\n@return the element, or {@code null} if {@link #size()} is zero.", "Creates a CostRateTable instance from a block of data.\n\n@param resource parent resource\n@param index cost rate table index\n@param data data block", "This implementation does not support the 'offset' and 'maxResultSize' parameters.", "only TOP or Bottom", "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.", "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" ]
public static int isValid( DMatrixRMaj cov ) { if( !MatrixFeatures_DDRM.isDiagonalPositive(cov) ) return 1; if( !MatrixFeatures_DDRM.isSymmetric(cov,TOL) ) return 2; if( !MatrixFeatures_DDRM.isPositiveSemidefinite(cov) ) return 3; return 0; }
[ "Performs a variety of tests to see if the provided matrix is a valid\ncovariance matrix.\n\n@return 0 = is valid 1 = failed positive diagonal, 2 = failed on symmetry, 2 = failed on positive definite" ]
[ "Convert an Object to a Timestamp, without an Exception", "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", "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record", "Static factory method to build a JSON Patch out of a JSON representation.\n\n@param node the JSON representation of the generated JSON Patch\n@return a JSON Patch\n@throws IOException input is not a valid JSON patch\n@throws NullPointerException input is null", "Get CorrelationId from message.\n\n@param message the message\n@return correlationId or null if not set", "Used to get PB, when no tx is running.", "The method determines if the type can be resolved and if not, will try to guess the qualified name using the information from the imports.", "Return the value from the field in the object that is defined by this FieldType.", "Provides a reverse view on the given list which is especially useful to traverse a list backwards in a for-each\nloop. The list itself is not modified by calling this method.\n\n@param list\nthe list whose elements should be traversed in reverse. May not be <code>null</code>.\n@return a list with the same elements as the given list, in reverse" ]
public static String buildDynamicCapabilityName(String baseName, String ... dynamicNameElement) { assert baseName != null; assert dynamicNameElement != null; assert dynamicNameElement.length > 0; StringBuilder sb = new StringBuilder(baseName); for (String part:dynamicNameElement){ sb.append(".").append(part); } return sb.toString(); }
[ "Constructs a full capability name from a static base name and a dynamic element.\n\n@param baseName the base name. Cannot be {@code null}\n@param dynamicNameElement the dynamic portion of the name. Cannot be {@code null}\n@return the full capability name. Will not return {@code null}" ]
[ "This method reads an eight byte integer from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Use this API to delete clusterinstance resources.", "Deletes a user from an enterprise account.\n@param notifyUser whether or not to send an email notification to the user that their account has been deleted.\n@param force whether or not this user should be deleted even if they still own files.", "Little helper function that recursivly deletes a directory.\n\n@param dir The directory", "all objects in list1 that are not in list2\n\n@param <T>\n@param list1\nFirst collection\n@param list2\nSecond collection\n@return The collection difference list1 - list2", "Adds new connections to the partition.\n@param connectionsToCreate number of connections to create\n@throws InterruptedException", "Use this API to fetch appfwprofile_xmlvalidationurl_binding resources of given name .", "Create a list of operations required to a boot a managed server.\n\n@param serverName the server name\n@param domainModel the complete domain model\n@param hostModel the local host model\n@param domainController the domain controller\n@return the list of boot operations", "Returns the number of rows within this association.\n\n@return the number of rows within this association" ]
@Override public void validate() throws HostNameException { if(parsedHost != null) { return; } if(validationException != null) { throw validationException; } synchronized(this) { if(parsedHost != null) { return; } if(validationException != null) { throw validationException; } try { parsedHost = getValidator().validateHost(this); } catch(HostNameException e) { validationException = e; throw e; } } }
[ "Validates that this string is a valid host name or IP address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws HostNameException" ]
[ "Retrieves the class object for the given qualified class name.\n\n@param className The qualified name of the class\n@param initialize Whether the class shall be initialized\n@return The class object", "Create a classname from a given path\n\n@param path\n@return", "Format a cue countdown indicator in the same way as the CDJ would at this point in the track.\n\n@return the value that the CDJ would display to indicate the distance to the next cue\n@see #getCueCountdown()", "Return the List of Arguments for the specified MethodCallExpression or a ConstructorCallExpression.\nThe returned List contains either ConstantExpression or MapEntryExpression objects.\n@param methodCall - the AST MethodCallExpression or ConstructorCalLExpression\n@return the List of argument objects", "Checks the given field descriptor.\n\n@param fieldDef The field descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date", "Note that the index can only be built once.\n\n@param beans The set of beans the index should be built from, only instances of {@link CommonBean} and implementations of {@link PassivationCapable} are\nincluded\n@throws IllegalStateException If the index is built already", "Set a knot type.\n@param n the knot index\n@param type the type\n@see #getKnotType", "Retrieve a finish date time in the form required by Phoenix.\n\n@param value Date instance\n@return formatted date time" ]
List getOrderby() { List result = _getOrderby(); Iterator iter = getCriteria().iterator(); Object crit; while (iter.hasNext()) { crit = iter.next(); if (crit instanceof Criteria) { result.addAll(((Criteria) crit).getOrderby()); } } return result; }
[ "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List" ]
[ "Tests correctness.", "If this represents an ip address, returns that address.\nIf this represents a host, returns the resolved ip address of that host.\nOtherwise, returns null, but only for strings that are considered valid address strings but cannot be converted to address objects.\n\nThis method will throw exceptions for invalid formats and failures to resolve the address. The equivalent method {@link #getAddress()} will simply return null rather than throw those exceptions.\n\nIf you wish to get the represented address and avoid DNS resolution, use {@link #asAddress()} or {@link #asAddressString()}\n\n@return", "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)", "Roll the java.util.Date forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "Sets the body filter for this ID\n\n@param pathId ID of path\n@param bodyFilter Body filter to set", "Merges individual days together into time spans where the\nsame work is undertaken each day.\n\n@param list assignment data", "Sets the necessary height for all bands in the report, to hold their children", "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be shown.", "Retrieve a map of custom document properties.\n\n@return the Document Summary Information Map" ]
@PreDestroy public final void shutdown() { this.timer.shutdownNow(); this.executor.shutdownNow(); if (this.cleanUpTimer != null) { this.cleanUpTimer.shutdownNow(); } }
[ "Called by spring when application context is being destroyed." ]
[ "Create a set out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a set.\n@return A set consisting of the items from the Iterable.", "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", "Returns a fine-grained word shape classifier, that equivalence classes\nlower and upper case and digits, and collapses sequences of the\nsame type, but keeps all punctuation. This adds an extra recognizer\nfor a greek letter embedded in the String, which is useful for bio.", "Loads the configuration XML from the given string.\n@since 1.3", "Use this API to add authenticationradiusaction.", "Return the value from the field in the object that is defined by this FieldType. If the field is a foreign object\nthen the ID of the field is returned instead.", "Use this API to kill systemsession resources.", "Starts processor thread.", "Draw a rectangle's interior with this color.\n\n@param rect rectangle\n@param color colour" ]
private void readTasks(Document cdp) { // // Sort the projects into the correct order // List<Project> projects = new ArrayList<Project>(cdp.getProjects().getProject()); final AlphanumComparator comparator = new AlphanumComparator(); Collections.sort(projects, new Comparator<Project>() { @Override public int compare(Project o1, Project o2) { return comparator.compare(o1.getOutlineNumber(), o2.getOutlineNumber()); } }); for (Project project : cdp.getProjects().getProject()) { readProject(project); } }
[ "Read the projects from a ConceptDraw PROJECT file as top level tasks.\n\n@param cdp ConceptDraw PROJECT file" ]
[ "Write the given long value as a 4 byte unsigned integer. Overflow is\nignored.\n\n@param buffer The buffer to write to\n@param index The position in the buffer at which to begin writing\n@param value The value to write", "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner.", "test, how many times the group was present in the list of groups.", "Returns the value of found in the model.\n\n@param model the model that contains the key and value.\n@param expressionResolver the expression resolver to use to resolve expressions\n\n@return the directory grouping found in the model.\n\n@throws IllegalArgumentException if the {@link org.jboss.as.controller.descriptions.ModelDescriptionConstants#DIRECTORY_GROUPING directory grouping}\nwas not found in the model.", "If a policy already exists on a folder, this will apply that policy to all existing files and sub folders within\nthe target folder.\n\n@param conflictResolution the desired behavior for conflict-resolution. Set to either none or overwrite.", "Checks the preconditions for creating a new RequireSubStr processor with a List of Strings.\n\n@param requiredSubStrings\nthe required substrings\n@throws NullPointerException\nif requiredSubStrings or one of its elements is null\n@throws IllegalArgumentException\nif requiredSubStrings is empty", "Mojos perform different dependency resolution, so we add dependencies for each mojo.", "Utility function that copies a string array except for the first element\n\n@param arr Original array of strings\n@return Copied array of strings", "flushes log queue, this actually writes combined log message into system log" ]
private boolean isSingleMultiDay() { long duration = getEnd().getTime() - getStart().getTime(); if (duration > I_CmsSerialDateValue.DAY_IN_MILLIS) { return true; } if (isWholeDay() && (duration <= I_CmsSerialDateValue.DAY_IN_MILLIS)) { return false; } Calendar start = new GregorianCalendar(); start.setTime(getStart()); Calendar end = new GregorianCalendar(); end.setTime(getEnd()); if (start.get(Calendar.DAY_OF_MONTH) == end.get(Calendar.DAY_OF_MONTH)) { return false; } return true; }
[ "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." ]
[ "Search for the attribute \"id\" and return the value.\n\n@return the id of this element or null when not found", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Sets the node meta data but allows overwriting values.\n\n@param key - the meta data key\n@param value - the meta data value\n@return the old node meta data value for this key\n@throws GroovyBugError if key is null", "return the squared area of the triangle defined by the half edge hedge0\nand the point at the head of hedge1.\n\n@param hedge0\n@param hedge1\n@return", "Registers your facet filters, adding them to this InstantSearch's widgets.\n\n@param filters a List of facet filters.", "Called every frame if the picker is enabled\nto generate pick events.\n@param frameTime starting time of the current frame", "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors", "Use this API to enable clusterinstance of given name.", "Add sub-deployment units to the container\n\n@param bdaMapping" ]
public static boolean isRowsLinearIndependent( DMatrixRMaj A ) { // LU decomposition LUDecomposition<DMatrixRMaj> lu = DecompositionFactory_DDRM.lu(A.numRows,A.numCols); if( lu.inputModified() ) A = A.copy(); if( !lu.decompose(A)) throw new RuntimeException("Decompositon failed?"); // if they are linearly independent it should not be singular return !lu.isSingular(); }
[ "Checks to see if the rows of the provided matrix are linearly independent.\n\n@param A Matrix whose rows are being tested for linear independence.\n@return true if linearly independent and false otherwise." ]
[ "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.", "Returns an array with the width of the longest word per column calculated from the given table.\nDefault padding will be added per column.\nPadding for individual columns will be added if defined.\n@param rows the table rows for calculations\n@param colNumbers number of columns in the table\n@return array with width of longest word for each column, null if input table was null", "Convert gallery name to title key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"", "Notification that boot has completed successfully and the configuration history should be updated", "Overridden to ensure that our timestamp handling is as expected", "Parses a PDF document and serializes the resulting DOM tree to an output. This requires\na DOM Level 3 capable implementation to be available.", "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "Checks if two claims are equivalent in the sense that they have the same\nmain snak and the same qualifiers, but possibly in a different order.\n\n@param claim1\n@param claim2\n@return true if claims are equivalent" ]
public void onAttach(GVRSceneObject sceneObj) { super.onAttach(sceneObj); GVRComponent comp = getComponent(GVRRenderData.getComponentType()); if (comp == null) { throw new IllegalStateException("Cannot attach a morph to a scene object without a base mesh"); } GVRMesh mesh = ((GVRRenderData) comp).getMesh(); if (mesh == null) { throw new IllegalStateException("Cannot attach a morph to a scene object without a base mesh"); } GVRShaderData mtl = getMaterial(); if ((mtl == null) || !mtl.getTextureDescriptor().contains("blendshapeTexture")) { throw new IllegalStateException("Scene object shader does not support morphing"); } copyBaseShape(mesh.getVertexBuffer()); mtl.setInt("u_numblendshapes", mNumBlendShapes); mtl.setFloatArray("u_blendweights", mWeights); }
[ "Attaches a morph to scene object with a base mesh\n@param sceneObj is the base mesh.\n@throws IllegalStateException if component is null\n@throws IllegalStateException if mesh is null\n@throws IllegalStateException if material is null" ]
[ "Trim the trailing spaces.\n\n@param line", "Cleans up the subsystem children for the deployment and each sub-deployment resource.\n\n@param resource the subsystem resource to clean up", "Returns the duration of the measured tasks in ms", "Sets the RDF serialization tasks based on the given string value.\n\n@param tasks\na space-free, comma-separated list of task names", "Method to service public recording APIs\n\n@param op Operation being tracked\n@param timeNS Duration of operation\n@param numEmptyResponses Number of empty responses being sent back,\ni.e.: requested keys for which there were no values (GET and GET_ALL only)\n@param valueSize Size in bytes of the value\n@param keySize Size in bytes of the key\n@param getAllAggregateRequests Total of amount of keys requested in the operation (GET_ALL only)", "Tests that the area is valid geojson, the style ref is valid or null and the display is non-null.", "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", "Use this API to enable nsacl6 resources of given names.", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object." ]
@Override public final long optLong(final String key, final long defaultValue) { Long result = optLong(key); return result == null ? defaultValue : result; }
[ "Get a property as an long or default value.\n\n@param key the property name\n@param defaultValue the default value" ]
[ "This method returns the value random variable of the product within the specified model,\nevaluated at a given evalutationTime.\nCash-flows prior evaluationTime are not considered.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model The model used to price the product.\n@return The random variable representing the value of the product discounted to evaluation time.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Parses coordinates into a Spatial4j point shape.", "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors", "Sets an Integer attribute.\n\n@param key the key, non null.\n@param value the value\n@return the Builder, for chaining.", "Mark content as obsolete. If content was already marked for obsolescenceTimeout ms then it is removed.\n\n@param ref the content refrence to be marked as obsolete.\n\n@return true if the content refrence is removed, fale otherwise.", "Add a Opacity bar to the color wheel.\n\n@param bar The instance of the Opacity bar.", "Check that a list allowing null and empty item contains at least one element that is\nnot blank.\n@param list can't be null\n@return" ]
public static String parseServers(String zookeepers) { int slashIndex = zookeepers.indexOf("/"); if (slashIndex != -1) { return zookeepers.substring(0, slashIndex); } return zookeepers; }
[ "Parses server section of Zookeeper connection string" ]
[ "Returns a new instance of the class with the given qualified name using the constructor with\nthe specified signature.\n\n@param className The qualified name of the class to instantiate\n@param types The parameter types\n@param args The arguments\n@return The instance", "Use this API to enable the feature on Netscaler.\n@param feature feature to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "Adds a value to the list if does not already exists.\n\n@param list the list\n@param value value to add if not exists in the list", "Delete any log segments matching the given predicate function\n\n@throws IOException", "Check that each emitted notification is properly described by its source.", "Helper method that encapsulates the minimum logic for adding a high\npriority job to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJson\nthe job serialized as JSON", "Shutdown the container.\n\n@see Weld#initialize()", "Called by spring on initialization.", "Use this API to fetch lbvserver_rewritepolicy_binding resources of given name ." ]
public boolean endsWith(Bytes suffix) { Objects.requireNonNull(suffix, "endsWith(Bytes suffix) cannot have null parameter"); int startOffset = this.length - suffix.length; if (startOffset < 0) { return false; } else { int end = startOffset + this.offset + suffix.length; for (int i = startOffset + this.offset, j = suffix.offset; i < end; i++, j++) { if (this.data[i] != suffix.data[j]) { return false; } } } return true; }
[ "Checks if this has the passed suffix\n\n@param suffix is a Bytes object to compare to this\n@return true or false\n@since 1.1.0" ]
[ "return a prepared Select Statement for the given ClassDescriptor", "Configures a worker pool for the converter.\n\n@param corePoolSize The core pool size of the worker pool.\n@param maximumPoolSize The maximum pool size of the worker pool.\n@param keepAliveTime The keep alive time of the worker pool.\n@param unit The time unit of the specified keep alive time.\n@return This builder instance.", "called per frame of animation to update the camera position", "Returns the configured page sizes, or the default page size if no core is configured.\n@return The configured page sizes, or the default page size if no core is configured.", "Translate the each ByteArray in an iterable into a hexadecimal string\n\n@param arrays The array of bytes to translate\n@return An iterable of converted strings", "Reads the bundle descriptor, sets m_desc and m_descContent.\n@throws CmsXmlException thrown when unmarshalling fails.\n@throws CmsException thrown when reading the resource fails or several bundle descriptors for the bundle exist.", "Adds new connections to the partition.\n@param connectionsToCreate number of connections to create\n@throws InterruptedException", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "This method is very similar to addMainHandler, except ShellFactory\nwill pass all handlers registered with this method to all this shell's subshells.\n\n@see org.gearvrf.debug.cli.Shell#addMainHandler(java.lang.Object, java.lang.String)\n\n@param handler Object which should be registered as handler.\n@param prefix Prefix that should be prepended to all handler's command names." ]
public Where<T, ID> not(Where<T, ID> comparison) { addClause(new Not(pop("NOT"))); return this; }
[ "Used to NOT the argument clause specified." ]
[ "Only call with monitor for 'this' held", "Retrieve list of task extended attributes.\n\n@return list of extended attributes", "Creates a sort configuration iff at least one of the parameters is not null and the options list is not empty.\n@param sortParam The request parameter used to send the currently chosen search option.\n@param options The available sort options.\n@param defaultOption The default sort option.\n@return the sort configuration or null, depending on the arguments.", "Creates a map between a work pattern ID and a list of time entry rows.\n\n@param rows time entry rows\n@return time entry map", "Checks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already checked; {@code false} otherwise.", "Determines whether the given documentation part contains the specified tag with the given parameter having the\ngiven value.\n\n@param doc The documentation part\n@param tagName The tag to be searched for\n@param paramName The parameter that the tag is required to have\n@param paramValue The value of the parameter\n@return boolean Whether the documentation part has the tag and parameter", "Build list of style filters from style definitions.\n\n@param styleDefinitions\nlist of style definitions\n@return list of style filters\n@throws GeomajasException", "Creates a project shared with the given team.\n\nReturns the full record of the newly created project.\n\n@param team The team to create the project in.\n@return Request object", "Convert an Integer value into a String.\n\n@param value Integer value\n@return String value" ]
public byte[] serialize() throws PersistenceBrokerException { // Identity is serialized and written to an ObjectOutputStream // This ObjectOutputstream is compressed by a GZIPOutputStream // and finally written to a ByteArrayOutputStream. // the resulting byte[] is returned try { final ByteArrayOutputStream bao = new ByteArrayOutputStream(); final GZIPOutputStream gos = new GZIPOutputStream(bao); final ObjectOutputStream oos = new ObjectOutputStream(gos); oos.writeObject(this); oos.close(); gos.close(); bao.close(); return bao.toByteArray(); } catch (Exception ignored) { throw new PersistenceBrokerException(ignored); } }
[ "Return the serialized form of this Identity.\n\n@return The serialized representation\n@see #fromByteArray\n@deprecated" ]
[ "Invalidate the item in layout\n@param dataIndex data index", "This method is called to alert project listeners to the fact that\na relation has been read from a project file.\n\n@param relation relation instance", "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception", "return the list of FormInputs that match this element\n\n@param element\n@return", "Prepares all files added for tus uploads.\n\n@param assemblyUrl the assembly url affiliated with the tus upload.\n@throws IOException when there's a failure with file retrieval.\n@throws ProtocolException when there's a failure with tus upload.", "Returns the list of atlas information necessary to map\nthe texture atlas to each scene object.\n\n@return List of atlas information.", "Get transformer to use.\n\n@return transformation to apply", "Sends a dummy statement to the server to keep the connection alive\n@param connection Connection handle to perform activity on\n@return true if test query worked, false otherwise", "Converts a Fluo Span to Accumulo Range\n\n@param span Span\n@return Range" ]
private void populateRecurringException(ProjectCalendarException mpxjException, Exceptions.Exception xmlException) { RecurringData data = mpxjException.getRecurring(); xmlException.setEnteredByOccurrences(Boolean.TRUE); xmlException.setOccurrences(NumberHelper.getBigInteger(data.getOccurrences())); switch (data.getRecurrenceType()) { case DAILY: { xmlException.setType(BigInteger.valueOf(7)); xmlException.setPeriod(NumberHelper.getBigInteger(data.getFrequency())); break; } case WEEKLY: { xmlException.setType(BigInteger.valueOf(6)); xmlException.setPeriod(NumberHelper.getBigInteger(data.getFrequency())); xmlException.setDaysOfWeek(getDaysOfTheWeek(data)); break; } case MONTHLY: { xmlException.setPeriod(NumberHelper.getBigInteger(data.getFrequency())); if (data.getRelative()) { xmlException.setType(BigInteger.valueOf(5)); xmlException.setMonthItem(BigInteger.valueOf(data.getDayOfWeek().getValue() + 2)); xmlException.setMonthPosition(BigInteger.valueOf(NumberHelper.getInt(data.getDayNumber()) - 1)); } else { xmlException.setType(BigInteger.valueOf(4)); xmlException.setMonthDay(NumberHelper.getBigInteger(data.getDayNumber())); } break; } case YEARLY: { xmlException.setMonth(BigInteger.valueOf(NumberHelper.getInt(data.getMonthNumber()) - 1)); if (data.getRelative()) { xmlException.setType(BigInteger.valueOf(3)); xmlException.setMonthItem(BigInteger.valueOf(data.getDayOfWeek().getValue() + 2)); xmlException.setMonthPosition(BigInteger.valueOf(NumberHelper.getInt(data.getDayNumber()) - 1)); } else { xmlException.setType(BigInteger.valueOf(2)); xmlException.setMonthDay(NumberHelper.getBigInteger(data.getDayNumber())); } } } }
[ "Writes the details of a recurring exception.\n\n@param mpxjException source MPXJ calendar exception\n@param xmlException target MSPDI exception" ]
[ "Parses the provided file, using the given libraryPaths and sourcePaths as context. The libraries may be either\njar files or references to directories containing class files.\n\nThe sourcePaths must be a reference to the top level directory for sources (eg, for a file\nsrc/main/java/org/example/Foo.java, the source path would be src/main/java).\n\nThe wildcard resolver provides a fallback for processing wildcard imports that the underlying parser was unable\nto resolve.", "Build a stack trace for this path. This can be used in generating more meaningful exceptions\nwhile using Crawljax in conjunction with JUnit for example.\n\n@return a array of StackTraceElements denoting the steps taken by this path. The first\nelement [0] denotes the last {@link Eventable} on this path while the last item\ndenotes the first {@link Eventable} executed.", "Print a time value.\n\n@param value time value\n@return time value", "Returns whether the division grouping range matches the block of values for its prefix length.\nIn other words, returns true if and only if it has a prefix length and it has just a single prefix.", "The nullity of the decomposed matrix.\n\n@see SingularOps_DDRM#nullity(SingularValueDecomposition_F64, double)\n\n@return The matrix's nullity", "Set the view frustum to pick against from the field of view, aspect\nratio and near, far clip planes. The viewpoint of the frustum\nis the center of the scene object the picker is attached to.\nThe view direction is the forward direction of that scene object.\nThe frustum will pick what a camera attached to the scene object\nwith that view frustum would see. If the frustum is not attached\nto a scene object, it defaults to the view frustum of the main camera of the scene.\n\n@param fovy vertical field of view in degrees\n@param aspect aspect ratio (width / height)", "Use this API to add route6.", "Builder method for specifying the stack an app should be created on.\n@param stack Stack to create the app on.\n@return A copy of the {@link App}", "Commits the writes to the remote collection." ]
public ConnectionlessBootstrap bootStrapUdpClient() throws HttpRequestCreateException { ConnectionlessBootstrap udpClient = null; try { // Configure the client. udpClient = new ConnectionlessBootstrap(udpMeta.getChannelFactory()); udpClient.setPipeline(new UdpPipelineFactory( TcpUdpSshPingResourceStore.getInstance().getTimer(), this) .getPipeline()); } catch (Exception t) { throw new TcpUdpRequestCreateException( "Error in creating request in udp worker. " + " If udpClient is null. Then fail to create.", t); } return udpClient; }
[ "Creates the udpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception" ]
[ "region Override Methods", "Registers all custom Externalizer implementations that Hibernate OGM needs into a running\nInfinispan CacheManager configuration.\nThis is only safe to do when Caches from this CacheManager haven't been started yet,\nor the ones already started do not contain any data needing these.\n\n@see ExternalizerIds\n@param globalCfg the Serialization section of a GlobalConfiguration builder", "Use this API to fetch all the callhome resources that are configured on netscaler.", "Returns the optional query modifier.\n@return the optional query modifier.", "Returns the vertex with given ID framed into given interface.", "Retrieve the default mapping between MPXJ resource fields and Primavera resource field names.\n\n@return mapping", "Decomposes the provided matrix and stores the result in the same matrix.\n\n@param A Matrix that is to be decomposed. Modified.\n@return If it succeeded or not.", "Start with specifying the groupId", "Builds a configuration object based on given properties.\n\n@param properties the properties.\n@return a configuration and never null." ]
public static Connection connectSync(final ProtocolConnectionConfiguration configuration) throws IOException { long timeoutMillis = configuration.getConnectionTimeout(); CallbackHandler handler = configuration.getCallbackHandler(); final CallbackHandler actualHandler; ProtocolTimeoutHandler timeoutHandler = configuration.getTimeoutHandler(); // Note: If a client supplies a ProtocolTimeoutHandler it is taking on full responsibility for timeout management. if (timeoutHandler == null) { GeneralTimeoutHandler defaultTimeoutHandler = new GeneralTimeoutHandler(); // No point wrapping our AnonymousCallbackHandler. actualHandler = handler != null ? new WrapperCallbackHandler(defaultTimeoutHandler, handler) : null; timeoutHandler = defaultTimeoutHandler; } else { actualHandler = handler; } final IoFuture<Connection> future = connect(actualHandler, configuration); IoFuture.Status status = timeoutHandler.await(future, timeoutMillis); if (status == IoFuture.Status.DONE) { return future.get(); } if (status == IoFuture.Status.FAILED) { throw ProtocolLogger.ROOT_LOGGER.failedToConnect(configuration.getUri(), future.getException()); } throw ProtocolLogger.ROOT_LOGGER.couldNotConnect(configuration.getUri()); }
[ "Connect sync.\n\n@param configuration the protocol configuration\n@return the connection\n@throws IOException" ]
[ "Submits the configured template to Transloadit.\n\n@return {@link Response}\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Unlock all edited resources.", "convenience factory method for the most usual case.", "Extracts the rank of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The rank of the decomposed matrix.", "Sets the currency code, or the regular expression to select codes.\n\n@param codes the currency codes or code expressions, not null.\n@return the query for chaining.", "Geta the specified metadata template by its ID.\n@param api the API connection to be used.\n@param templateID the ID of the template to get.\n@return the metadata template object.", "Excludes Vertices that are of the provided type.", "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer", "This method skips the end-of-line markers in the RTF document.\nIt also indicates if the end of the embedded object has been reached.\n\n@param text RTF document test\n@param offset offset into the RTF document\n@return new offset" ]
public static DMatrixRMaj symmetric(int length, double min, double max, Random rand) { DMatrixRMaj A = new DMatrixRMaj(length,length); symmetric(A,min,max,rand); return A; }
[ "Creates a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix." ]
[ "Randomly generates matrix with the specified number of non-zero elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix", "Attempts to create a human-readable String representation of the provided rule.", "Select the specific vertex and fragment shader to use with this material.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the material properties only.\nIt will ignore the mesh attributes and all lights.\n\n@param context\nGVRContext\n@param material\nmaterial to use with the shader\n@return ID of vertex/fragment shader set", "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by the FlexiblePublisher.\nNull is returned if the FlexiblePublisher does not wrap a publisher of the specified type.\n@throws IllegalArgumentException In case publisher is not of type\n{@link org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher}", "Use this API to rename a gslbservice resource.", "Only call async", "Given a resource field number, this method returns the resource field name.\n\n@param key resource field number\n@return resource field name", "Read the relationships for an individual GanttProject task.\n\n@param gpTask GanttProject task", "Merges this with the list of sections to produce the smallest array of sequential block subnets, going from smallest to largest\n\n@param sections the sections to merge with this\n@return" ]
protected static JRDesignExpression getExpressionFromVariable(JRDesignVariable var){ JRDesignExpression exp = new JRDesignExpression(); exp.setText("$V{" + var.getName() + "}"); exp.setValueClass(var.getValueClass()); return exp; }
[ "Generates an expression from a variable\n@param var The variable from which to generate the expression\n@return A expression that represents the given variable" ]
[ "Returns a module\n\n@param moduleId String\n@return DbModule", "Returns the approximate size of slop to help in throttling\n\n@param slopVersioned The versioned slop whose size we want\n@return Size in bytes", "Get a property as a double or defaultValue.\n\n@param key the property name\n@param defaultValue the default value", "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "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", "Read task baseline values.\n\n@param row result set row", "This adds database table configurations to the internal cache which can be used to speed up DAO construction.\nThis is especially true of Android and other mobile platforms.", "Returns the parsed story from the given path\n\n@param configuration the Configuration used to run story\n@param storyPath the story path\n@return The parsed Story", "Resumes a given entry point type;\n\n@param entryPoint The entry point" ]
private boolean activityIsStartMilestone(Activity activity) { String type = activity.getType(); return type != null && type.indexOf("StartMilestone") != -1; }
[ "Returns true if the activity is a start milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone" ]
[ "Use this API to fetch vlan_nsip_binding resources of given name .", "Validates the binding types", "Shuts down a standalone server.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "This method displays the resource assignments for each resource. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a resource-by-resource basis.\n\n@param file MPX file", "Notifies that an existing footer item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference", "Return true if the processor of the node is currently being executed.\n\n@param processorGraphNode the node to test.", "Write throwable as attachment.\n\n@param throwable to write\n@param title title of attachment\n@return Created {@link ru.yandex.qatools.allure.model.Attachment}" ]
private ArrayList<String> getRemoveHeaders() throws Exception { ArrayList<String> headersToRemove = new ArrayList<String>(); for (EndpointOverride selectedPath : requestInformation.get().selectedResponsePaths) { // check to see if there is custom override data or if we have headers to remove List<EnabledEndpoint> points = selectedPath.getEnabledEndpoints(); for (EnabledEndpoint endpoint : points) { // skip if repeat count is 0 if (endpoint.getRepeatNumber() == 0) { continue; } if (endpoint.getOverrideId() == Constants.PLUGIN_RESPONSE_HEADER_OVERRIDE_REMOVE) { // add to remove headers array headersToRemove.add(endpoint.getArguments()[0].toString()); endpoint.decrementRepeatNumber(); } } } return headersToRemove; }
[ "Obtain collection of headers to remove\n\n@return\n@throws Exception" ]
[ "Deletes the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template", "Gets the event type from message.\n\n@param message the message\n@return the event type", "Simple context menu handler for multi-select tables.\n\n@param table the table\n@param menu the table's context menu\n@param event the click event\n@param entries the context menu entries", "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]\".", "Returns status help message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String", "Creates updateable version of capability registry that on publish pushes all changes to main registry\nthis is used to create context local registry that only on completion commits changes to main registry\n\n@return writable registry", "Creates an internal project and repositories such as a token storage.", "Detach a scope from its parent, this will trigger the garbage collection of this scope and it's\nsub-scopes\nif they are not referenced outside of Toothpick.\n\n@param name the name of the scope to close.", "Returns all the elements in the sorted set with a score in the given range.\nIn contrary to the default ordering of sorted sets, for this command the elements are considered to be ordered\nfrom high to low scores.\nThe elements having the same score are returned in reverse lexicographical order.\n@param scoreRange\n@return elements in the specified score range" ]
protected Map<String, String> getGalleryOpenParams( CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param, String resource, long hashId) { Map<String, String> result = new HashMap<String, String>(); result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_MODE, A_CmsAjaxGallery.MODE_WIDGET); result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_STORAGE_PREFIX, getGalleryStoragePrefix()); result.put(I_CmsGalleryProviderConstants.CONFIG_RESOURCE_TYPES, getGalleryTypes()); if (param.getId() != null) { result.put(I_CmsGalleryProviderConstants.KEY_FIELD_ID, param.getId()); // use javascript to read the current field value result.put( I_CmsGalleryProviderConstants.CONFIG_CURRENT_ELEMENT, "'+document.getElementById('" + param.getId() + "').getAttribute('value')+'"); } result.put(I_CmsGalleryProviderConstants.KEY_HASH_ID, "" + hashId); // the edited resource if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(resource)) { result.put(I_CmsGalleryProviderConstants.CONFIG_REFERENCE_PATH, resource); } // the start up gallery path CmsGalleryWidgetConfiguration configuration = getWidgetConfiguration(cms, messages, param); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(configuration.getStartup())) { result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_PATH, configuration.getStartup()); } // set gallery types if available if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(configuration.getGalleryTypes())) { result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_TYPES, configuration.getGalleryTypes()); } result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_NAME, getGalleryName()); return result; }
[ "Returns the required gallery open parameters.\n\n@param cms an initialized instance of a CmsObject\n@param messages the dialog messages\n@param param the widget parameter to generate the widget for\n@param resource the resource being edited\n@param hashId the field id hash\n\n@return the gallery open parameters" ]
[ "Creates the database.\n\n@throws PlatformException If some error occurred", ">>>>>> measureUntilFull helper methods", "Returns the item at the specified position.\n\n@param position index of the item to return\n@return the item at the specified position or {@code null} when not found", "Sets the occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception", "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Get an interpolated value for a given argument x.\n\n@param x The abscissa at which the interpolation should be performed.\n@return The interpolated value (ordinate).", "Checks to make sure that pseudo scoped beans (i.e. @Dependent scoped beans) have no circular dependencies.", "There is a race condition that is not handled properly by the DialogFragment class.\nIf we don't check that this onDismiss callback isn't for the old progress dialog from before\nthe device orientation change, then this will cause the newly created dialog after the\norientation change to be dismissed immediately.", "Gathers information, that couldn't be collected while tree traversal." ]
public static List<Number> findIndexValues(Object self, Number startIndex, Closure closure) { List<Number> result = new ArrayList<Number>(); long count = 0; long startCount = startIndex.longValue(); BooleanClosureWrapper bcw = new BooleanClosureWrapper(closure); for (Iterator iter = InvokerHelper.asIterator(self); iter.hasNext(); count++) { Object value = iter.next(); if (count < startCount) { continue; } if (bcw.call(value)) { result.add(count); } } return result; }
[ "Iterates over the elements of an iterable collection of items, starting from\na specified startIndex, and returns the index values of the items that match\nthe condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param startIndex start matching from this index\n@param closure the filter to perform a match on the collection\n@return a list of numbers corresponding to the index values of all matched objects\n@since 1.5.2" ]
[ "OR operation which takes 2 arguments and OR's them together.\n\n<p>\n<b>NOTE:</b> There is no guarantee of the order of the clauses that are generated in the final query.\n</p>\n<p>\n<b>NOTE:</b> I can't remove the generics code warning that can be associated with this method. You can instead\nuse the {@link #or(int)} method.\n</p>", "Returns the real key object.", "adds the qualified names to the require-bundle attribute, if not already\npresent.\n\n@param bundles - passing parameterized bundled (e.g. versions, etc.) is\nnot supported", "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", "Tests whether a Row name occurs more than once in the list of rows\n@param name\n@return", "Convert a collection of objects to a JSON array with the string representations of that objects.\n@param collection the collection of objects.\n@return the JSON array with the string representations.", "Get the configured hive.execution.engine. If not set it will default to the default value of HiveConf", "Set a knot type.\n@param n the knot index\n@param type the type\n@see #getKnotType", "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this" ]
private void addCustomFields(MpxjTreeNode parentNode, ProjectFile file) { for (CustomField field : file.getCustomFields()) { final CustomField c = field; MpxjTreeNode childNode = new MpxjTreeNode(field) { @Override public String toString() { FieldType type = c.getFieldType(); return type == null ? "(unknown)" : type.getFieldTypeClass() + "." + type.toString(); } }; parentNode.add(childNode); } }
[ "Add custom fields to the tree.\n\n@param parentNode parent tree node\n@param file custom fields container" ]
[ "Removes the given entity from the inverse associations it manages.", "Set a Java class to ignore when printing stack traces\n@param classToIgnoreInTraces The class to ignore.\n@return this", "Returns the plugins classpath elements.", "Verify that all OGM custom externalizers are present.\nN.B. even if some Externalizer is only needed in specific configuration,\nit is not safe to start a CacheManager without one as the same CacheManager\nmight be used, or have been used in the past, to store data using a different\nconfiguration.\n\n@see ExternalizerIds\n@see AdvancedExternalizer\n@param externalCacheManager the provided CacheManager to validate", "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "Arrange to become the tempo master. Starts a sequence of interactions with the other players that should end\nup with us in charge of the group tempo and beat alignment.\n\n@throws IllegalStateException if we are not sending status updates\n@throws IOException if there is a problem sending the master yield request", "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.", "Add a dependency task group for this model.\n\n@param dependency the dependency.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependency task group", "Returns the filename of the resource with extension.\n\n@return Filename of the GVRAndroidResource. May return null if the\nresource is not associated with any file" ]
public String getNotes() { String notes = (String) getCachedValue(ResourceField.NOTES); return (notes == null ? "" : notes); }
[ "Retrieves the notes text for this resource.\n\n@return notes text" ]
[ "Use this API to update responderpolicy.", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Skips variable length blocks up to and including next zero length block.", "Copy the contents of this buffer to the destination LBuffer\n@param srcOffset\n@param dest\n@param destOffset\n@param size", "If the Authtoken was already created in a separate program but not saved to file.\n\n@param authToken\n@param tokenSecret\n@param username\n@return\n@throws IOException", "Reads a color value represented by three bytes, for R, G, and B\ncomponents, plus a flag byte indicating if this is an automatic color.\nReturns null if the color type is \"Automatic\".\n\n@param data byte array of data\n@param offset offset into array\n@return new Color instance", "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started.", "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance", "Puts a new document in the service. The generate key is globally unique.\n\n@param document document\n@return key unique key to reference the document" ]
public void print() { Iterator<String> iter = getKeys(); while (iter.hasNext()) { String key = iter.next(); log.info(key + " = " + getRawString(key)); } }
[ "Logs all properties" ]
[ "Gets information about all of the group memberships for this user as iterable with paging support.\n@param fields the fields to retrieve.\n@return an iterable with information about the group memberships for this user.", "Adds the given reference to the list of references that should still be\nserialized, and returns the RDF resource that will be used as a subject.\n\n@param reference\nthe reference to be serialized\n@return RDF resource that represents this reference", "Converts the transpose of a row major matrix into a row major block matrix.\n\n@param src Original DMatrixRMaj. Not modified.\n@param dst Equivalent DMatrixRBlock. Modified.", "Utility function to set the current value in a ListBox.\n\n@return returns true if the option corresponding to the value\nwas successfully selected in the ListBox", "get the ClassTypeSignature corresponding to given parameterized type\n\n@param parameterizedType\n@return", "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", "Adds an additional description to the constructed document.\n\n@param text\nthe text of the description\n@param languageCode\nthe language code of the description\n@return builder object to continue construction", "Returns the address for the operation.\n\n@param op the operation\n\n@return the operation address or a new undefined model node", "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message" ]
@JsonProperty("labels") @JsonInclude(Include.NON_EMPTY) public Map<String, TermImpl> getLabelUpdates() { return getMonolingualUpdatedValues(newLabels); }
[ "Label accessor provided for JSON serialization only." ]
[ "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited.", "Changes the image data associated with a GVRTexture.\nThis can be a simple bitmap, a compressed bitmap,\na cubemap or a compressed cubemap.\n@param imageData data for the texture as a GVRImate", "Creates a collaboration whitelist for a Box User with a given ID.\n@param api the API connection to be used by the collaboration whitelist.\n@param userID the ID of the Box User to add to the collaboration whitelist.\n@return information about the collaboration whitelist created for user.", "Reads a markdown link ID.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link ID.", "Use this API to convert sslpkcs8.", "Gets an exception reporting an unexpected XML attribute.\n\n@param reader a reference to the stream reader.\n@param index the attribute index.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Ensures that every path starts and ends with a slash character.\n\n@param scriptPath the scriptPath that needs to be normalized\n@return a path with leading and trailing slash", "Support the subscript operator for CharSequence.\n\n@param text a CharSequence\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Starts or stops capturing.\n\n@param capture If true, capturing is started. If false, it is stopped.\n@param fps Capturing FPS (frames per second)." ]
private void toNextDate(Calendar date, int interval) { long previousDate = date.getTimeInMillis(); if (!m_weekOfMonthIterator.hasNext()) { date.add(Calendar.MONTH, interval); m_weekOfMonthIterator = m_weeksOfMonth.iterator(); } toCorrectDateWithDay(date, m_weekOfMonthIterator.next()); if (previousDate == date.getTimeInMillis()) { // this can happen if the fourth and the last week are checked. toNextDate(date); } }
[ "Calculates the next date, starting from the provided date.\n\n@param date the current date.\n@param interval the number of month to add when moving to the next month." ]
[ "build the Join-Information if a super reference exists\n\n@param left\n@param cld\n@param name", "Returns the WDTK datatype IRI for the property datatype as represented by\nthe given JSON datatype string.\n\n@param jsonDatatype\nthe JSON datatype string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known", "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", "Copies file from a resource to a local temp file\n\n@param sourceResource\n@return Absolute filename of the temp file\n@throws Exception", "Set the scrollbar used for vertical scrolling.\n\n@param scrollbar the scrollbar, or null to clear it\n@param width the width of the scrollbar in pixels", "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured.", "Retrieves state and metrics information for all client connections across the cluster.\n\n@return list of connections across the cluster", "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "SuppressWarnings I really want to return HazeltaskTasks instead of Runnable" ]
private static synchronized FileOutputWriter createFileWriter(final TypeDefinition type, final DecompilerSettings settings) throws IOException { final String outputDirectory = settings.getOutputDirectory(); final String fileName = type.getName() + settings.getLanguage().getFileExtension(); final String packageName = type.getPackageName(); // foo.Bar -> foo/Bar.java final String subDir = StringUtils.defaultIfEmpty(packageName, "").replace('.', File.separatorChar); final String outputPath = PathHelper.combine(outputDirectory, subDir, fileName); final File outputFile = new File(outputPath); final File parentDir = outputFile.getParentFile(); if (parentDir != null && !parentDir.exists() && !parentDir.mkdirs()) { throw new IllegalStateException("Could not create directory:" + parentDir); } if (!outputFile.exists() && !outputFile.createNewFile()) { throw new IllegalStateException("Could not create output file: " + outputPath); } return new FileOutputWriter(outputFile, settings); }
[ "Constructs the path from FQCN, validates writability, and creates a writer." ]
[ "Adds a tag to a task. Returns an empty data block.\n\n@param task The task to add a tag to.\n@return Request object", "Performs an inline lower Cholesky decomposition on an inner row-major matrix. Only\nthe lower triangular portion of the matrix is read or written to.\n\n@param T Array containing an inner row-major matrix. Modified.\n@param indexT First index of the inner row-major matrix.\n@param n Number of rows and columns of the matrix.\n@return If the decomposition succeeded.", "Filters a dot at the end of the passed package name if present.\n\n@param pkgName\na package name\n@return a filtered package name", "Read task data from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Returns the parsed story from the given path\n\n@param configuration the Configuration used to run story\n@param storyPath the story path\n@return The parsed Story", "Recursively update parent task dates.\n\n@param parentTask parent task", "Create an object of the given type using a constructor that matches the\nsupplied arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception", "Gets the list of failed invocations that has been collected by this collector.\n\n@return The failed invocations.", "Sets the node meta data.\n\n@param key - the meta data key\n@param value - the meta data value\n@throws GroovyBugError if key is null or there is already meta\ndata under that key" ]
public void setValue(Vector3f scale) { mX = scale.x; mY = scale.y; mZ = scale.z; }
[ "Sets the scale vector of the keyframe." ]
[ "make it public for CLI interaction to reuse JobContext", "Get prototype name.\n\n@return prototype name", "Parse a macro defintion.\n\n\"macro NAME( var0 , var1 ) = 5+var0+var1'", "Retrieve the value from the REST request body.\n\nTODO: REST-Server value cannot be null ( null/empty string ?)", "Dumps the partition IDs per node in terms of zone n-ary type.\n\n@param cluster\n@param storeRoutingPlan\n@return pretty printed string of detailed zone n-ary type.", "Set a custom response for this path\n\n@param pathName name of path\n@param customResponse value of custom response\n@return true if success, false otherwise\n@throws Exception exception", "Set the classpath for loading the driver.\n\n@param classpath the classpath", "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0", "Use this API to Import appfwsignatures." ]
public void createEnterpriseCustomFieldMap(Props props, Class<?> c) { byte[] fieldMapData = null; for (Integer key : ENTERPRISE_CUSTOM_KEYS) { fieldMapData = props.getByteArray(key); if (fieldMapData != null) { break; } } if (fieldMapData != null) { int index = 4; while (index < fieldMapData.length) { //Looks like the custom fields have varying types, it may be that the last byte of the four represents the type? //System.out.println(ByteArrayHelper.hexdump(fieldMapData, index, 4, false)); int typeValue = MPPUtility.getInt(fieldMapData, index); FieldType type = getFieldType(typeValue); if (type != null && type.getClass() == c && type.toString().startsWith("Enterprise Custom Field")) { int varDataKey = (typeValue & 0xFFFF); FieldItem item = new FieldItem(type, FieldLocation.VAR_DATA, 0, 0, varDataKey, 0, 0); m_map.put(type, item); //System.out.println(item); } //System.out.println((type == null ? "?" : type.getClass().getSimpleName() + "." + type) + " " + Integer.toHexString(typeValue)); index += 4; } } }
[ "Create a field map for enterprise custom fields.\n\n@param props props data\n@param c target class" ]
[ "Unzip a file to a target directory.\n@param zip the path to the zip file.\n@param target the path to the target directory into which the zip file will be unzipped.\n@throws IOException", "Checks the query-customizer setting of the given collection descriptor.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Returns the configured mappings of the current field.\n\n@return the configured mappings of the current field", "Remove any overrides for an endpoint on the default profile, client\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise", "Use this API to add cachepolicylabel resources.", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n\n@return the metadata, if any", "Sets the body filter for this ID\n\n@param pathId ID of path\n@param bodyFilter Body filter to set", "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none." ]
public Map<DeckReference, TrackMetadata> getLoadedTracks() { ensureRunning(); // Make a copy so callers get an immutable snapshot of the current state. return Collections.unmodifiableMap(new HashMap<DeckReference, TrackMetadata>(hotCache)); }
[ "Get the metadata of all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the track information reported by all current players, including any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the MetadataFinder is not running" ]
[ "Use this API to fetch a responderglobal_responderpolicy_binding resources.", "Check if the current version match the last release or the last snapshot one\n\n@param artifact\n@return boolean", "Disassociate a name with an object\n@param name The name of an object.\n@exception ObjectNameNotFoundException No object exists in the database with that name.", "add some validation to see if this miss anything.\n\n@return true, if successful\n@throws ParallelTaskInvalidException\nthe parallel task invalid exception", "Converts a JSON patch path to a JSON property name.\nCurrently the metadata API only supports flat maps.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the JSON property name.", "Use this API to fetch systemsession resources of given names .", "Creates the database.\n\n@throws PlatformException If some error occurred", "Find the length of the block starting from 'start'.", "Used by TracedParallelBatch where its used to wrap a TraceContext and puts it in the\nregistry for the forked execution. This is marked deprecated as we prefer not to\nexpose details of the RatpackCurrentTraceContext implementation.\n\n@param traceContext a trace context.\n@return a holder for the trace context, which can be put into the registry." ]
private boolean detectWSAddressingFeature(InterceptorProvider provider, Bus bus) { //detect on the bus level if (bus.getFeatures() != null) { Iterator<Feature> busFeatures = bus.getFeatures().iterator(); while (busFeatures.hasNext()) { Feature busFeature = busFeatures.next(); if (busFeature instanceof WSAddressingFeature) { return true; } } } //detect on the endpoint/client level Iterator<Interceptor<? extends Message>> interceptors = provider.getInInterceptors().iterator(); while (interceptors.hasNext()) { Interceptor<? extends Message> ic = interceptors.next(); if (ic instanceof MAPAggregator) { return true; } } return false; }
[ "detect if WS Addressing feature already enabled.\n\n@param provider the interceptor provider\n@param bus the bus\n@return true, if successful" ]
[ "Retrieves a ProjectWriter instance which can write a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectWriter instance", "Handles an incoming request message.\nAn incoming request message is a message initiated by a node or the controller.\n@param incomingMessage the incoming message to process.", "Build a request URL using a given scheme.\n\n@param scheme the scheme, either {@code http} or {@code https}\n@param host\nThe host\n@param port\nThe port\n@param path\nThe path\n@param parameters\nThe parameters\n@return The URL\n@throws MalformedURLException", "Utility to list indexes of a given type.\n\n@param type the type of index to list, null means all types\n@param modelType the class to deserialize the index into\n@param <T> the type of the index\n@return the list of indexes of the specified type", "Plots the rotated trajectory, spline and support points.", "Obtains a local date in Ethiopic 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 Ethiopic local date, not null\n@throws DateTimeException if unable to create the date", "Generic method used to create a field map from a block of data.\n\n@param data field map data", "Get the element at the index as a json array.\n\n@param i the index of the element to access", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors." ]
public static <T> PollingState<T> create(Response<ResponseBody> response, LongRunningOperationOptions lroOptions, int defaultRetryTimeout, Type resourceType, SerializerAdapter<?> serializerAdapter) throws IOException { PollingState<T> pollingState = new PollingState<>(); pollingState.initialHttpMethod = response.raw().request().method(); pollingState.defaultRetryTimeout = defaultRetryTimeout; pollingState.withResponse(response); pollingState.resourceType = resourceType; pollingState.serializerAdapter = serializerAdapter; pollingState.loggingContext = response.raw().request().header(LOGGING_HEADER); pollingState.finalStateVia = lroOptions.finalStateVia(); String responseContent = null; PollingResource resource = null; if (response.body() != null) { responseContent = response.body().string(); response.body().close(); } if (responseContent != null && !responseContent.isEmpty()) { pollingState.resource = serializerAdapter.deserialize(responseContent, resourceType); resource = serializerAdapter.deserialize(responseContent, PollingResource.class); } final int statusCode = pollingState.response.code(); if (resource != null && resource.properties != null && resource.properties.provisioningState != null) { pollingState.withStatus(resource.properties.provisioningState, statusCode); } else { switch (statusCode) { case 202: pollingState.withStatus(AzureAsyncOperation.IN_PROGRESS_STATUS, statusCode); break; case 204: case 201: case 200: pollingState.withStatus(AzureAsyncOperation.SUCCESS_STATUS, statusCode); break; default: pollingState.withStatus(AzureAsyncOperation.FAILED_STATUS, statusCode); } } return pollingState; }
[ "Creates a polling state.\n\n@param response the response from Retrofit REST call that initiate the long running operation.\n@param lroOptions long running operation options.\n@param defaultRetryTimeout the long running operation retry timeout.\n@param resourceType the type of the resource the long running operation returns\n@param serializerAdapter the adapter for the Jackson object mapper\n@param <T> the result type\n@return the polling state\n@throws IOException thrown by deserialization" ]
[ "Gets the Hamming distance between two strings.\n\n@param first First string.\n@param second Second string.\n@return The Hamming distance between p and q.", "Utility function that copies a string array and add another string to\nfirst\n\n@param arr Original array of strings\n@param add\n@return Copied array of strings", "Apply a filter to the list of all tasks, and show the results.\n\n@param project project file\n@param filter filter", "Extract calendar data.", "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character Character.MIN_VALUE.\n\n@param self a CharSequence\n@return a value obtained by incrementing the toString() of the CharSequence\n@since 1.8.2", "Use this API to rename a cmppolicylabel resource.", "List the photos with the most views, comments or favorites.\n\n@param date\n(Optional) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day. If no date is provided, all time view counts will be returned.\n@param sort\n(Optional) The order in which to sort returned photos. Defaults to views. The possible values are views, comments and favorites. Other sort\noptions are available through flickr.photos.search.\n@param perPage\n(Optional) Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html\"", "Create a forward curve from forwards given by a LIBORMonteCarloModel.\n\n@param name name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a forward curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Use this API to fetch the statistics of all servicegroup_stats resources that are configured on netscaler." ]
protected final void sendObjectToSocket(Object objectToSend, WriteCallback cb) { Session sess = this.getSession(); if (sess != null) { String json; try { json = this.mapper.writeValueAsString(objectToSend); } catch (JsonProcessingException e) { throw new RuntimeException("Failed to serialize object", e); } sess.getRemote().sendString(json, cb); } }
[ "send object to client and serialize it using JSON\n\n@param objectToSend the object to send\n@param cb the callback after sending the message" ]
[ "Delete the given file in a separate thread\n\n@param file The file to delete", "Accessor method to retrieve an accrue type instance.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set\nas selector in the conduitSelectorHolder.\n\n@param conduitSelectorHolder\n@param matcher\n@param selectionStrategy", "Runs the shell script for committing and optionally pushing the changes in the module.\n@return exit code of the script.", "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context", "Use this API to fetch authenticationtacacspolicy_systemglobal_binding resources of given name .", "Returns the count of all inbox messages for the user\n@return int - count of all inbox messages", "Send an error to the client with a message.\n\n@param httpServletResponse the response to send the error to.\n@param message the message to send\n@param code the error code", "Parser for forecast\n\n@param feed\n@return" ]
@SuppressWarnings("unchecked") public HttpMethodInfo handle(HttpRequest request, HttpResponder responder, Map<String, String> groupValues) throws Exception { //TODO: Refactor group values. try { if (httpMethods.contains(request.method())) { //Setup args for reflection call Object [] args = new Object[paramsInfo.size()]; int idx = 0; for (Map<Class<? extends Annotation>, ParameterInfo<?>> info : paramsInfo) { if (info.containsKey(PathParam.class)) { args[idx] = getPathParamValue(info, groupValues); } if (info.containsKey(QueryParam.class)) { args[idx] = getQueryParamValue(info, request.uri()); } if (info.containsKey(HeaderParam.class)) { args[idx] = getHeaderParamValue(info, request); } idx++; } return new HttpMethodInfo(method, handler, responder, args, exceptionHandler); } else { //Found a matching resource but could not find the right HttpMethod so return 405 throw new HandlerException(HttpResponseStatus.METHOD_NOT_ALLOWED, String.format ("Problem accessing: %s. Reason: Method Not Allowed", request.uri())); } } catch (Throwable e) { throw new HandlerException(HttpResponseStatus.INTERNAL_SERVER_ERROR, String.format("Error in executing request: %s %s", request.method(), request.uri()), e); } }
[ "Handle http Request.\n\n@param request HttpRequest to be handled.\n@param responder HttpResponder to write the response.\n@param groupValues Values needed for the invocation." ]
[ "Gets all rows.\n\n@return the list of all rows", "Detects if the current browser is a BlackBerry Touch\ndevice, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.\n@return detection of a Blackberry touchscreen device", "Use this API to fetch the statistics of all cmppolicy_stats resources that are configured on netscaler.", "This will check to see if certain configuration values exist from the ConfigurationService\nIf not then it redirects to the configuration screen", "Checks if the required option exists.\n\n@param options OptionSet to checked\n@param opt Required option to check\n@throws VoldemortException", "Creates a 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]", "Adds a redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@param srcUrl\n@param destUrl\n@param hostHeader\n@return\n@throws Exception", "Register child resources associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Returns true if \"file\" is a subfile or subdirectory of \"dir\".\n\nFor example with the directory /path/to/a, the following return values would occur:\n\n/path/to/a/foo.txt - true /path/to/a/bar/zoo/boo/team.txt - true /path/to/b/foo.txt - false" ]
private int getBeliefCount() { Integer count = (Integer)introspector.getBeliefBase(ListenerMockAgent.this).get(Definitions.RECEIVED_MESSAGE_COUNT); if (count == null) count = 0; // Just in case, not really sure if this is necessary. return count; }
[ "Returns the \"msgCount\" belief\n\n@return int - the count" ]
[ "Returns the orthogonal V matrix.\n\n@param V If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix.", "add a foreign key field", "Use this API to fetch all the sslparameter resources that are configured on netscaler.", "Creates a new instance from the given configuration file.\n\n@throws IOException if failed to load the configuration from the specified file", "Specify the proxy and the authentication parameters to be used\nto establish the connections to Apple Servers.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n@param proxy the proxy object to be used to create connections\n@param proxyUsername a String object representing the username of the proxy server\n@param proxyPassword a String object representing the password of the proxy server\n@return this", "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 fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object.", "Converts milliseconds into a calendar object.\n\n@param millis a time given in milliseconds after epoch\n@return the calendar object for the given time", "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 BoxFileUploadSessionPart uploadPart(byte[] data, long offset, int partSize, long totalSizeOfFile) { URL uploadPartURL = this.sessionInfo.getSessionEndpoints().getUploadPartEndpoint(); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), uploadPartURL, HttpMethod.PUT); request.addHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_OCTET_STREAM); MessageDigest digestInstance = null; try { digestInstance = MessageDigest.getInstance(DIGEST_ALGORITHM_SHA1); } catch (NoSuchAlgorithmException ae) { throw new BoxAPIException("Digest algorithm not found", ae); } //Creates the digest using SHA1 algorithm. Then encodes the bytes using Base64. byte[] digestBytes = digestInstance.digest(data); String digest = Base64.encode(digestBytes); request.addHeader(HttpHeaders.DIGEST, DIGEST_HEADER_PREFIX_SHA + digest); //Content-Range: bytes offset-part/totalSize request.addHeader(HttpHeaders.CONTENT_RANGE, "bytes " + offset + "-" + (offset + partSize - 1) + "/" + totalSizeOfFile); //Creates the body request.setBody(new ByteArrayInputStream(data)); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); BoxFileUploadSessionPart part = new BoxFileUploadSessionPart((JsonObject) jsonObject.get("part")); return part; }
[ "Uploads bytes to an open upload session.\n@param data data\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size." ]
[ "Multiply two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the multiply of specified complex numbers.", "Retrieve the start slack.\n\n@return start slack", "Generates a vector clock with the provided values\n\n@param serverIds servers in the clock\n@param clockValue value of the clock for each server entry\n@param timestamp ts value to be set for the clock\n@return", "Use this API to fetch statistics of service_stats resource of given name .", "Returns all model classes registered on this datasource\n\n@return model classes talk to this datasource", "Checks the extents specifications and removes unnecessary entries.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Returns the value of the element with the minimum value\n@param A (Input) Matrix. Not modified.\n@return scalar", "Gets an exception reporting an unexpected XML attribute.\n\n@param reader a reference to the stream reader.\n@param index the attribute index.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "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." ]
public static <X> String createTypeId(AnnotatedType<X> annotatedType) { String id = createTypeId(annotatedType.getJavaClass(), annotatedType.getAnnotations(), annotatedType.getMethods(), annotatedType.getFields(), annotatedType.getConstructors()); String hash = hash(id); MetadataLogger.LOG.tracef("Generated AnnotatedType id hash for %s: %s", id, hash); return hash; }
[ "Generates a unique signature for an annotated type. Members without\nannotations are omitted to reduce the length of the signature\n\n@param <X>\n@param annotatedType\n@return hash of a signature for a concrete annotated type" ]
[ "Set child components.\n\n@param children\nchildren", "Convert a field value to something suitable to be stored in the database.", "Return the map bounds rotated with the set rotation. The bounds are adapted to rounding changes of the\nsize of the set paint area.\n\n@return Rotated bounds.", "This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true if the relation is found and removed", "Use this API to fetch statistics of service_stats resource of given name .", "Prints a suggestion to stderr for the argument based on the levenshtein distance metric\n\n@param arg the argument which could not be assigned to a flag\n@param co the {@link ConfigOption} List where every flag is stored", "Bessel function of order 0.\n\n@param x Value.\n@return J0 value.", "Convert a date to the String representation we use in the JSON.\n@param d the date to convert\n@return the String representation we use in the JSON.", "Use this API to fetch all the rsskeytype resources that are configured on netscaler." ]
private String mountPath(CdjStatus.TrackSourceSlot slot) { switch (slot) { case SD_SLOT: return "/B/"; case USB_SLOT: return "/C/"; } throw new IllegalArgumentException("Don't know how to NFS mount filesystem for slot " + slot); }
[ "Return the filesystem path needed to mount the NFS filesystem associated with a particular media slot.\n\n@param slot the slot whose filesystem is desired\n\n@return the path to use in the NFS mount request to access the files mounted in that slot\n\n@throws IllegalArgumentException if it is a slot that we don't know how to handle" ]
[ "Position the child inside the layout based on the offset and axis-s factors\n@param dataIndex data index", "Normalizes the name so it can be used as Maven artifactId or groupId.", "Tells you if the expression is the false expression, either literal or constant.\n@param expression\nexpression\n@return\nas described", "The Baseline Duration field shows the original span of time planned\nto complete a task.\n\n@return - duration string", "Returns a factory that vends DelimitRegExIterators that reads the contents of the\ngiven Reader, splits on the specified delimiter, applies op, then returns the result.", "Prints the error message as log message.\n\n@param level the log level", "Creates a slice for directly a raw memory address. This is\ninherently unsafe as it may be used to access arbitrary memory.\n\n@param address the raw memory address base\n@param size the size of the slice\n@return the unsafe slice", "Get a loader that lists the files in the current path,\nand monitors changes.", "Determine the generic value type of the given Map field.\n@param mapField the map field to introspect\n@param nestingLevel the nesting level of the target type\n(typically 1; e.g. in case of a List of Lists, 1 would indicate the\nnested List, whereas 2 would indicate the element of the nested List)\n@return the generic type, or {@code null} if none" ]
private void processPredecessor(Task task, MapRow row) { Task predecessor = m_taskMap.get(row.getUUID("PREDECESSOR_UUID")); if (predecessor != null) { task.addPredecessor(predecessor, row.getRelationType("RELATION_TYPE"), row.getDuration("LAG")); } }
[ "Extract data for a single predecessor.\n\n@param task parent task\n@param row Synchro predecessor data" ]
[ "Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception.", "Get the group URL for the specified group ID\n\n@param groupId\nThe group ID\n@return The group URL\n@throws FlickrException", "Create a standalone target.\n\n@param controllerClient the connected controller client to a standalone instance.\n@return the remote target", "Defines how messages should be logged. This method can be modified to\nrestrict the logging messages that are shown on the console or to change\ntheir formatting. See the documentation of Log4J for details on how to do\nthis.", "Read all task relationships from a GanttProject.\n\n@param gpProject GanttProject project", "Convenience wrapper for message parameters\n@param params\n@return", "Use this API to unset the properties of sslcertkey resources.\nProperties that need to be unset are specified in args array.", "Return all methods for a list of groupIds\n\n@param groupIds array of group IDs\n@param filters array of filters to apply to method selection\n@return collection of Methods found\n@throws Exception exception", "Creates a Blob holding a single-sheet spreadsheet with a pivot of the domain objects. The sheet name is derived from the\nclass name.\n\n<p>\nMinimal requirements for the domain object are:\n</p>\n<ul>\n<li>\nOne property has annotation {@link PivotRow} and will be used as row identifier in left column of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotColumn}. Its values will be used in columns of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotValue}. Its values will be distributed in the pivot.\n</li>\n</ul>" ]
public void cleanup() { List<String> keys = new ArrayList<>(created.keySet()); keys.sort(String::compareTo); for (String key : keys) { created.remove(key) .stream() .sorted(Comparator.comparing(HasMetadata::getKind)) .forEach(metadata -> { log.info(String.format("Deleting %s : %s", key, metadata.getKind())); deleteWithRetries(metadata); }); } }
[ "Removes all resources deployed using this class." ]
[ "Log the values for the provided template.\n\n@param templateName the name of the template the values came from\n@param template the template object\n@param values the resultant values", "Send a channels on-air update to all registered listeners.\n\n@param audibleChannels holds the device numbers of all channels that can currently be heard in the mixer output", "Sets a custom response on an endpoint using default profile and client\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@param customData custom response data\n@return true if success, false otherwise", "Function to filter files based on defined rules.", "Use this API to add snmpmanager resources.", "This method processes any extended attributes associated with a\nresource assignment.\n\n@param xml MSPDI resource assignment instance\n@param mpx MPX task instance", "Returns the count of total number of unread inbox messages for the user\n@return int - count of all unread messages", "Read the values from the output object and write them to the values object.\n\n@param output the output object from a processor\n@param processor the processor the output if from\n@param values the object for sharing values between processors", "Extract data for a single task.\n\n@param parent task parent\n@param row Synchro task data" ]
@Override public void removeCapabilityRequirement(RuntimeRequirementRegistration requirementRegistration) { // We don't know if this got registered as an runtime-only requirement or a hard one // so clean it from both maps writeLock.lock(); try { removeRequirement(requirementRegistration, false); removeRequirement(requirementRegistration, true); } finally { writeLock.unlock(); } }
[ "Remove a previously registered requirement for a capability.\n\n@param requirementRegistration the requirement. Cannot be {@code null}\n@see #registerAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)" ]
[ "Compares the two comma-separated lists.\n\n@param list1 The first list\n@param list2 The second list\n@return <code>true</code> if the lists are equal", "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", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "Checks to see if a WORD matches the name of a macro. if it does it applies the macro at that location", "Inserts the currently contained data objects into the database.\n\n@param platform The (connected) database platform for inserting data\n@param model The database model\n@param batchSize The batch size; use 1 for not using batch mode", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "Helper function that drops all local databases for every client.", "Get the configured hive.execution.engine. If not set it will default to the default value of HiveConf", "Adds the absolute path to command.\n\n@param command the command to add the arguments to.\n@param typeName the type of directory.\n@param propertyName the name of the property.\n@param properties the properties where the path may already be defined.\n@param directoryGrouping the directory group type.\n@param typeDir the domain level directory for the given directory type; to be used for by-type grouping\n@param serverDir the root directory for the server, to be used for 'by-server' grouping\n@return the absolute path that was added." ]
public static sslparameter get(nitro_service service) throws Exception{ sslparameter obj = new sslparameter(); sslparameter[] response = (sslparameter[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the sslparameter resources that are configured on netscaler." ]
[ "Wrap an operation's parameters in a simple encapsulating object\n@param operation the operation\n@param messageHandler the message handler\n@param attachments the attachments\n@return the encapsulating object", "Label accessor provided for JSON serialization only.", "Check that all nodes in the new cluster have a corresponding entry in\nstoreRepository and innerStores. add a NodeStore if not present, is\nneeded as with rebalancing we can add new nodes on the fly.", "If this node represents a bean property this method returns all annotations of its getter.\n\n@return A set of annotations of this nodes property getter or an empty set.", "URLDecode a string\n@param s\n@return", "Send the message with the given attributes and the given body using the specified SMTP settings\n\n@param to Destination address(es)\n@param from Sender address\n@param subject Message subject\n@param body Message content. May either be a MimeMultipart or another body that java mail recognizes\n@param contentType MIME content type of body\n@param serverSetup Server settings to use for connecting to the SMTP server", "Finds the missing value. Seems to lose a degree of freedom, but it\ndoesn't. That degree of freedom is already lost by the sensor.", "used by Error template", "Print channels to the left of log messages\n@param width The width (in characters) to print the channels\n@return this" ]
public int getLeadingBitCount(boolean network) { int count = getDivisionCount(); if(count == 0) { return 0; } long front = network ? getDivision(0).getMaxValue() : 0; int prefixLen = 0; for(int i = 0; i < count; i++) { IPAddressDivision seg = getDivision(i); long value = seg.getDivisionValue(); if(value != front) { return prefixLen + seg.getLeadingBitCount(network); } prefixLen += seg.getBitCount(); } return prefixLen; }
[ "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" ]
[ "Builds IMAP envelope String from pre-parsed data.", "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle", "Send JSON representation of given data object to all connections tagged with\ngiven label\n@param data the data object\n@param label the tag label", "Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data", "add a single Object to the Collection. This method is used during reading Collection elements\nfrom the database. Thus it is is save to cast anObject to the underlying element type of the\ncollection.", "Convert this object to a json object.", "Retrieves and validates the content length from the REST request.\n\n@return true if has content length", "Interim and final clusters ought to have same partition counts, same\nzones, and same node state. Partitions per node may of course differ.\n\n@param interimCluster\n@param finalCluster", "Finds a child resource with the given key.\n\n@param key the child resource key\n@return null if no child resource exists with the given name else the child resource" ]
public <T> T getNodeMetaData(Object key) { if (metaDataMap == null) { return (T) null; } return (T) metaDataMap.get(key); }
[ "Gets the node meta data.\n\n@param key - the meta data key\n@return the node meta data value for this key" ]
[ "Adds the given value to the list of values that should still be\nserialized. The given RDF resource will be used as a subject.\n\n@param value\nthe value to be serialized\n@param resource\nthe RDF resource that is used as a subject for serialization", "Remove the report directory.", "Aggregates a list of templates specified by @Template", "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "Inspects the object and all superclasses for public, non-final, accessible methods and returns a\ncollection containing all the attributes found.\n\n@param classToInspect the class under inspection.", "Finds to a given point p the point on the spline with minimum distance.\n@param p Point where the nearest distance is searched for\n@param nPointsPerSegment Number of interpolation points between two support points\n@return Point spline which has the minimum distance to p", "Create a new collaboration object.\n@param api the API connection used to make the request.\n@param accessibleBy the JSON object describing who should be collaborated.\n@param item the JSON object describing which item to collaborate.\n@param role the role to give the collaborators.\n@param notify the user/group should receive email notification of the collaboration or not.\n@param canViewPath the view path collaboration feature is enabled or not.\n@return info about the new collaboration.", "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField instance", "Set the default host running the Odo instance to configure. Allows default profile methods and PathValueClient to\noperate on remote hosts\n\n@param hostName name of host" ]
private String escapeAndJoin(String[] commandline) { // TODO: we should try to escape special characters here, depending on the OS. StringBuilder b = new StringBuilder(); Pattern specials = Pattern.compile("[\\ ]"); for (String arg : commandline) { if (b.length() > 0) { b.append(" "); } if (specials.matcher(arg).find()) { b.append('"').append(arg).append('"'); } else { b.append(arg); } } return b.toString(); }
[ "Try to provide an escaped, ready-to-use shell line to repeat a given command line." ]
[ "Sets ID field value.\n\n@param val value", "Use this API to add authenticationradiusaction resources.", "Initialize VIDEO_INFO data.", "Use this API to fetch appfwprofile_denyurl_binding resources of given name .", "Main method to start reading the plain text given by the client\n\n@param args\n, where arg[0] is Beast configuration file (beast.properties)\nand arg[1] is Logger configuration file (logger.properties)\n@throws Exception", "Allows to access the names of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used.\n@return the set of custom rounding ids, never {@code null}.", "Set the week day.\n@param weekDayStr the week day to set.", "Return a html view that contains the targeted license\n\n@param name String\n@return DbLicense", "Parses the configuration node and provides a pipeline configuration without any extensions marked for loading.\nThe configuration node is supposed to conform to the pipeline configuration JSON schema.\n\n<p>The caller is supposed to use the methods from the builder to add/find extension classes that will be used in\nthe analysis.\n\n<p>Note that the returned pipeline configuration might not contain all the extensions available in\nthe classloader depending on the include/exclude filters in the configuration.\n\n@param json the configuration node\n@return a pipeline configuration parsed from the configuration\n@see Builder#build()" ]
private void calculateSCL(double[] x) { //System.out.println("Checking at: "+x[0]+" "+x[1]+" "+x[2]); value = 0.0; Arrays.fill(derivative, 0.0); double[] sums = new double[numClasses]; double[] probs = new double[numClasses]; double[] counts = new double[numClasses]; Arrays.fill(counts, 0.0); for (int d = 0; d < data.length; d++) { // if (d == testMin) { // d = testMax - 1; // continue; // } int[] features = data[d]; // activation Arrays.fill(sums, 0.0); for (int c = 0; c < numClasses; c++) { for (int f = 0; f < features.length; f++) { int i = indexOf(features[f], c); sums[c] += x[i]; } } // expectation (slower routine replaced by fast way) // double total = Double.NEGATIVE_INFINITY; // for (int c=0; c<numClasses; c++) { // total = SloppyMath.logAdd(total, sums[c]); // } double total = ArrayMath.logSum(sums); int ld = labels[d]; for (int c = 0; c < numClasses; c++) { probs[c] = Math.exp(sums[c] - total); for (int f = 0; f < features.length; f++) { int i = indexOf(features[f], c); derivative[i] += probs[ld] * probs[c]; } } // observed for (int f = 0; f < features.length; f++) { int i = indexOf(features[f], labels[d]); derivative[i] -= probs[ld]; } value -= probs[ld]; } // priors if (true) { for (int i = 0; i < x.length; i++) { double k = 1.0; double w = x[i]; value += k * w * w / 2.0; derivative[i] += k * w; } } }
[ "Calculate the summed conditional likelihood of this data by summing\nconditional estimates." ]
[ "Use this API to fetch authenticationradiuspolicy_vpnvserver_binding resources of given name .", "Builds a string that serializes a list of objects separated by the pipe\ncharacter. The toString methods are used to turn objects into strings.\nThis operation is commonly used to build parameter lists for API\nrequests.\n\n@param objects\nthe objects to implode\n@return string of imploded objects", "Use this API to fetch sslciphersuite resource of given name .", "Initialize the random generator with a seed.", "Set source url for a server\n\n@param newUrl new URL\n@param id Server ID", "Read task data from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "Extract calendar data from the file.\n\n@throws SQLException", "Adds the specified list of users as members of the project. Returns the updated project record.\n\n@param project The project to add members to.\n@return Request object" ]
public String convertToReadableDate(Holiday holiday) { DateTimeFormatter parser = ISODateTimeFormat.date(); if (holiday.isInDateForm()) { String month = Integer.toString(holiday.getMonth()).length() < 2 ? "0" + holiday.getMonth() : Integer.toString(holiday.getMonth()); String day = Integer.toString(holiday.getDayOfMonth()).length() < 2 ? "0" + holiday.getDayOfMonth() : Integer.toString(holiday.getDayOfMonth()); return holiday.getYear() + "-" + month + "-" + day; } else { /* * 5 denotes the final occurrence of the day in the month. Need to find actual * number of occurrences */ if (holiday.getOccurrence() == 5) { holiday.setOccurrence(numOccurrences(holiday.getYear(), holiday.getMonth(), holiday.getDayOfWeek())); } DateTime date = parser.parseDateTime(holiday.getYear() + "-" + holiday.getMonth() + "-" + "01"); Calendar calendar = Calendar.getInstance(); calendar.setTime(date.toDate()); int count = 0; while (count < holiday.getOccurrence()) { if (calendar.get(Calendar.DAY_OF_WEEK) == holiday.getDayOfWeek()) { count++; if (count == holiday.getOccurrence()) { break; } } date = date.plusDays(1); calendar.setTime(date.toDate()); } return date.toString().substring(0, 10); } }
[ "Convert the holiday format from EquivalenceClassTransformer into a date format\n\n@param holiday the date\n@return a date String in the format yyyy-MM-dd" ]
[ "Prints the data for a single class to the given stream. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param classRecord\nthe class record to write\n@param entityIdValue\nthe item id that this class record belongs to", "Converts a byte array to a hexadecimal string representation\n@param bb the byte array to convert\n@return string the string representation", "Gets an exception reporting an unexpected XML element.\n\n@param reader a reference to the stream reader.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Register a new DropPasteWorkerInterface.\n@param worker The new worker", "Locks a file.\n\n@param expiresAt expiration date of the lock.\n@param isDownloadPrevented is downloading of file prevented when locked.\n@return the lock returned from the server.", "Get the scale at the given index.\n\n@param index the index of the zoom level to access.\n@param unit the unit.", "Populate the model with the object's properties.\n\n@param object object whose properties we're displaying\n@param excludedMethods method names to exclude", "Process a SQLite database PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance", "Add parameter to testCase\n\n@param context which can be changed" ]
public ValueContainer[] getCurrentLockingValues(Object o) throws PersistenceBrokerException { FieldDescriptor[] fields = getLockingFields(); ValueContainer[] result = new ValueContainer[fields.length]; for (int i = 0; i < result.length; i++) { result[i] = new ValueContainer(fields[i].getPersistentField().get(o), fields[i].getJdbcType()); } return result; }
[ "returns an Array with an Objects CURRENT locking VALUES , BRJ\n@throws PersistenceBrokerException if there is an erros accessing o field values" ]
[ "Uses data from a bar to populate a task.\n\n@param row bar data\n@param task task to populate", "Returns the compact project status update records for all updates on the project.\n\n@param project The project to find status updates for.\n@return Request object", "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@param offset the optional time offset for this alias", "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited.", "Sets the bean store\n\n@param beanStore The bean store", "Use this API to add dnsview.", "Set the dither matrix.\n@param matrix the dither matrix\n@see #getMatrix", "See if a range for assignment is specified. If so return the range, otherwise return null\n\nExample of assign range:\na(0:3,4:5) = blah\na((0+2):3,4:5) = blah", "This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true if the relation is found and removed" ]
public void processStencilSet() throws IOException { StringBuilder stencilSetFileContents = new StringBuilder(); Scanner scanner = null; try { scanner = new Scanner(new File(ssInFile), "UTF-8"); String currentLine = ""; String prevLine = ""; while (scanner.hasNextLine()) { prevLine = currentLine; currentLine = scanner.nextLine(); String trimmedPrevLine = prevLine.trim(); String trimmedCurrentLine = currentLine.trim(); // First time processing - replace view="<file>.svg" with _view_file="<file>.svg" + view="<svg_xml>" if (trimmedCurrentLine.matches(VIEW_PROPERTY_NAME_PATTERN) && trimmedCurrentLine.endsWith(VIEW_PROPERTY_VALUE_SUFFIX)) { String newLines = processViewPropertySvgReference(currentLine); stencilSetFileContents.append(newLines); } // Second time processing - replace view="<svg_xml>" with refreshed contents of file referenced by previous line else if (trimmedPrevLine.matches(VIEW_FILE_PROPERTY_NAME_PATTERN) && trimmedPrevLine.endsWith(VIEW_PROPERTY_VALUE_SUFFIX) && trimmedCurrentLine.matches(VIEW_PROPERTY_NAME_PATTERN)) { String newLines = processViewFilePropertySvgReference(prevLine, currentLine); stencilSetFileContents.append(newLines); } else { stencilSetFileContents.append(currentLine + LINE_SEPARATOR); } } } finally { if (scanner != null) { scanner.close(); } } Writer out = null; try { out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(ssOutFile), "UTF-8")); out.write(stencilSetFileContents.toString()); } catch (FileNotFoundException e) { } catch (UnsupportedEncodingException e) { } catch (IOException e) { } finally { if (out != null) { try { out.close(); } catch (IOException e) { } } } System.out.println("SVG files referenced more than once:"); for (Map.Entry<String, Integer> stringIntegerEntry : mapSVGCounts.entrySet()) { if (stringIntegerEntry.getValue() > 1) { System.out.println("\t" + stringIntegerEntry.getKey() + "\t = " + stringIntegerEntry.getValue()); } } }
[ "Processes a stencilset template file\n@throws IOException" ]
[ "Gen job id.\n\n@return the string", "This method extracts calendar data from a Planner file.\n\n@param project Root node of the Planner file", "Start ssh session and obtain session.\n\n@return the session", "Create a RemoteWebDriver backed EmbeddedBrowser.\n\n@param hubUrl Url of the server.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser.", "Make log segment file name from offset bytes. All this does is pad out the offset number\nwith zeros so that ls sorts the files numerically\n@param offset offset value (padding with zero)\n@return filename with offset", "Sets the replace var map to single target.\n\n@param replacementVarMapList\nthe replacement var map list\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "returns an Array with an Objects PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "binds the Identities Primary key values to the statement", "Plots the trajectory\n@param title Title of the plot\n@param t Trajectory to be plotted" ]
private void tryToSetParsedValue(String value) throws Exception { JSONObject json = JSONParser.parseStrict(value).isObject(); JSONValue val = json.get(JsonKey.START); setStart(readOptionalDate(val)); val = json.get(JsonKey.END); setEnd(readOptionalDate(val)); setWholeDay(readOptionalBoolean(json.get(JsonKey.WHOLE_DAY))); JSONObject patternJson = json.get(JsonKey.PATTERN).isObject(); readPattern(patternJson); setExceptions(readDates(json.get(JsonKey.EXCEPTIONS))); setSeriesEndDate(readOptionalDate(json.get(JsonKey.SERIES_ENDDATE))); setOccurrences(readOptionalInt(json.get(JsonKey.SERIES_OCCURRENCES))); setDerivedEndType(); setCurrentTillEnd(readOptionalBoolean(json.get(JsonKey.CURRENT_TILL_END))); setParentSeriesId(readOptionalUUID(json.get(JsonKey.PARENT_SERIES))); }
[ "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails." ]
[ "Moves the given row up.\n\n@param row the row to move", "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments.", "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", "Computes the likelihood of the random draw\n\n@return The likelihood.", "A convenience method for creating an immutable sorted map.\n\n@param self a SortedMap\n@return an immutable SortedMap\n@see java.util.Collections#unmodifiableSortedMap(java.util.SortedMap)\n@since 1.0", "Process an individual work week day.\n\n@param data calendar data\n@param offset current offset into data\n@param week parent week\n@param day current day", "Run a task once, after a delay.\n\n@param task\nTask to run.\n@param delay\nUnit is seconds.\n@return An interface that lets you query the status; cancel; or\nreschedule the event.", "Sets the distance from the origin to the near clipping plane for the\nwhole camera rig.\n\n@param near\nDistance to the near clipping plane.", "Sets the node meta data but allows overwriting values.\n\n@param key - the meta data key\n@param value - the meta data value\n@return the old node meta data value for this key\n@throws GroovyBugError if key is null" ]
public String calculateCacheKey(String sql, int[] columnIndexes) { StringBuilder tmp = new StringBuilder(sql.length()+4); tmp.append(sql); for (int i=0; i < columnIndexes.length; i++){ tmp.append(columnIndexes[i]); tmp.append("CI,"); } return tmp.toString(); }
[ "Calculate a cache key.\n@param sql to use\n@param columnIndexes to use\n@return cache key to use." ]
[ "Gets the groupby for ReportQueries of all Criteria and Sub Criteria\nthe elements are of class FieldHelper\n@return List of FieldHelper", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Reads a string from input stream saved as a sequence of UTF chunks.\n\n@param stream stream to read from.\n@return output string\n@throws IOException if something went wrong", "create a path structure representing the object graph", "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", "Retrieves the value of the given accessible field of the given receiver.\n\n@param receiver the container of the field, not <code>null</code>\n@param fieldName the field's name, not <code>null</code>\n@return the value of the field\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#get(Object)}\n@throws IllegalArgumentException see {@link Field#get(Object)}", "Sort by time bucket, then backup count, and by compression state.", "Returns the map from resourcetype names to default timestamp modes.\n@return the map from resourcetype names to default timestamp modes." ]
public BoneCP getPool() { FinalWrapper<BoneCP> wrapper = this.pool; return wrapper == null ? null : wrapper.value; }
[ "Returns a handle to the pool. Useful to obtain a handle to the\nstatistics for example.\n@return pool" ]
[ "Utility method to register a proxy has a Service in OSGi.", "Calculates how much of a time range is before or after a\ntarget intersection point.\n\n@param start time range start\n@param end time range end\n@param target target intersection point\n@param after true if time after target required, false for time before\n@return length of time in milliseconds", "Sets reference to the graph owning this node.\n\n@param ownerGraph the owning graph", "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "Get image ID from imageTag on the current agent.\n\n@param imageTag\n@return", "Get the value of a Annotation in a class declaration.\n@param classType\n@param annotationType\n@param attributeName\n@return the value of the annotation as String or null if something goes wrong", "Scan a network interface to find if it has an address space which matches the device we are trying to reach.\nIf so, return the address specification.\n\n@param aDevice the DJ Link device we are trying to communicate with\n@param networkInterface the network interface we are testing\n@return the address which can be used to communicate with the device on the interface, or null", "Sets the value for the API's \"props\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Deletes the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template" ]
public static void isManagementResourceRemoveable(OperationContext context, PathAddress otherManagementEndpoint) throws OperationFailedException { ModelNode remotingConnector; try { remotingConnector = context.readResourceFromRoot( PathAddress.pathAddress(PathElement.pathElement(SUBSYSTEM, "jmx"), PathElement.pathElement("remoting-connector", "jmx")), false).getModel(); } catch (Resource.NoSuchResourceException ex) { return; } if (!remotingConnector.hasDefined(USE_MGMT_ENDPOINT) || (remotingConnector.hasDefined(USE_MGMT_ENDPOINT) && context.resolveExpressions(remotingConnector.get(USE_MGMT_ENDPOINT)).asBoolean(true))) { try { context.readResourceFromRoot(otherManagementEndpoint, false); } catch (NoSuchElementException ex) { throw RemotingLogger.ROOT_LOGGER.couldNotRemoveResource(context.getCurrentAddress()); } } }
[ "Manual check because introducing a capability can't be done without a full refactoring.\nThis has to go as soon as the management interfaces are redesigned.\n@param context the OperationContext\n@param otherManagementEndpoint : the address to check that may provide an exposed jboss-remoting endpoint.\n@throws OperationFailedException in case we can't remove the management resource." ]
[ "Plots the MSD curve with the trajectory t and adds the fitted model for directed motion 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 diffusionCoefficient Diffusion coefficient\n@param velocity velocity of the active transport", "Overrides the superclass implementation to allow the value type's AttributeDefinition to in turn\nresolve each element.\n\n{@inheritDoc}", "Instantiates an instance of input Java shader class,\nwhich must be derived from GVRShader or GVRShaderTemplate.\n@param id Java class which implements shaders of this type.\n@param ctx GVRContext shader belongs to\n@return GVRShader subclass which implements this shader type", "Gets the current page\n@return", "moves to the next row of the underlying ResultSet and returns the\ncorresponding Object materialized from this row.", "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)", "Returns all the URL that should be inside the classpath. This includes the jar itself if any.\n\n@throws JqmPayloadException", "Recursively descend through the hierarchy creating tasks.\n\n@param parent parent task\n@param parentName parent name\n@param rows rows to add as tasks to this parent", "Register custom filter types especially for serializer of specification json file" ]
public static Object instantiate(Class clazz) throws InstantiationException { Object result = null; try { result = ClassHelper.newInstance(clazz); } catch(IllegalAccessException e) { try { result = ClassHelper.newInstance(clazz, true); } catch(Exception e1) { throw new ClassNotPersistenceCapableException("Can't instantiate class '" + (clazz != null ? clazz.getName() : "null") + "', message was: " + e1.getMessage() + ")", e1); } } return result; }
[ "create a new instance of class clazz.\nfirst use the public default constructor.\nIf this fails also try to use protected an private constructors.\n@param clazz the class to instantiate\n@return the fresh instance of class clazz\n@throws InstantiationException" ]
[ "Send a device lost announcement to all registered listeners.\n\n@param announcement the last message received from the vanished device", "Returns the bounding box of the vertices.\n@param corners destination array to get corners of bounding box.\nThe first three entries are the minimum X,Y,Z values\nand the next three are the maximum X,Y,Z.\n@return true if bounds are not empty, false if empty (no vertices)", "Sets the character translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator", "Creates a new connection from the data source that the connection descriptor\nrepresents. If the connection descriptor does not directly contain the data source\nthen a JNDI lookup is performed to retrieve the data source.\n\n@param jcd The connection descriptor\n@return A connection instance\n@throws LookupException if we can't get a connection from the datasource either due to a\nnaming exception, a failed sanity check, or a SQLException.", "Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.\n\n@param inv Where the value of the inverse will be stored. Modified.", "get an AdminClient from the cache if exists, if not create new one\nand return it. This method is non-blocking.\n\nAll AdminClient returned from checkout, once after the completion of\nusage must be returned to the pool by calling checkin. If not,\nthere will be leak of AdminClients (connections, threads and file handles).\n\n@return AdminClient", "Computes eigenvalues only\n\n@return", "Print a constraint type.\n\n@param value ConstraintType instance\n@return constraint type value", "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" ]
public void initSize(Rectangle rectangle) { template = writer.getDirectContent().createTemplate(rectangle.getWidth(), rectangle.getHeight()); }
[ "Initializes context size.\n\n@param rectangle rectangle" ]
[ "Checks if the given AnnotatedType is sensible, otherwise provides warnings.", "Receive an expected number of bytes from the player, logging a warning if we get a different number of them.\n\n@param is the input stream associated with the player metadata socket.\n@param size the number of bytes we expect to receive.\n@param description the type of response being processed, for use in the warning message.\n@return the bytes read.\n\n@throws IOException if there is a problem reading the response.", "Call the named method\n\n@param obj The object to call the method on\n@param c The class of the object\n@param name The name of the method\n@param args The method arguments\n@return The result of the method", "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld", "Ends the transition", "Method generates abbreviated exception message.\n\n@param message\nOriginal log message\n@param throwable\nThe attached throwable\n@return Abbreviated exception message", "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs", "Copy one Gradient into another.\n@param g the Gradient to copy into", "Read an individual GanttProject resource assignment.\n\n@param gpAllocation GanttProject resource assignment." ]
private void compile(ICompilationUnit[] sourceUnits, boolean lastRound) { this.stats.startTime = System.currentTimeMillis(); try { // build and record parsed units reportProgress(Messages.compilation_beginningToCompile); if (this.options.complianceLevel >= ClassFileConstants.JDK9) { // in Java 9 the compiler must never ask the oracle for a module that is contained in the input units: sortModuleDeclarationsFirst(sourceUnits); } if (this.annotationProcessorManager == null) { beginToCompile(sourceUnits); } else { ICompilationUnit[] originalUnits = sourceUnits.clone(); // remember source units in case a source type collision occurs try { beginToCompile(sourceUnits); if (!lastRound) { processAnnotations(); } if (!this.options.generateClassFiles) { // -proc:only was set on the command line return; } } catch (SourceTypeCollisionException e) { backupAptProblems(); reset(); // a generated type was referenced before it was created // the compiler either created a MissingType or found a BinaryType for it // so add the processor's generated files & start over, // but remember to only pass the generated files to the annotation processor int originalLength = originalUnits.length; int newProcessedLength = e.newAnnotationProcessorUnits.length; ICompilationUnit[] combinedUnits = new ICompilationUnit[originalLength + newProcessedLength]; System.arraycopy(originalUnits, 0, combinedUnits, 0, originalLength); System.arraycopy(e.newAnnotationProcessorUnits, 0, combinedUnits, originalLength, newProcessedLength); this.annotationProcessorStartIndex = originalLength; compile(combinedUnits, e.isLastRound); return; } } // Restore the problems before the results are processed and cleaned up. restoreAptProblems(); processCompiledUnits(0, lastRound); } catch (AbortCompilation e) { this.handleInternalException(e, null); } if (this.options.verbose) { if (this.totalUnits > 1) { this.out.println( Messages.bind(Messages.compilation_units, String.valueOf(this.totalUnits))); } else { this.out.println( Messages.bind(Messages.compilation_unit, String.valueOf(this.totalUnits))); } } }
[ "General API\n-> compile each of supplied files\n-> recompile any required types for which we have an incomplete principle structure" ]
[ "Gets a list of AssignmentRows based on the current Assignments\n@return", "Returns the compact project status update records for all updates on the project.\n\n@param project The project to find status updates for.\n@return Request object", "All the attributes needed either by the processors for each datasource row or by the jasper template.\n\n@param attributes the attributes.", "Checks if provided class package is on the exclude list\n\n@param classPackageName\nname of class package\n@return false if class package is on the {@link #excludePackages} list", "Specialized version of readValue just for reading map keys, because the StdDeserializer methods like\n_parseIntPrimitive blow up when the current JsonToken is FIELD_NAME", "Convert a string value into the appropriate Java field value.", "Returns all visble sets and pools the photo belongs to.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo to return information for.\n@return a list of {@link PhotoContext} objects\n@throws FlickrException", "Reads entries from transforms.xml.\n\n@param file the XML file\n@return the transform entries read from the file\n\n@throws Exception if something goes wrong", "Generates the cache key for Online links.\n@param cms the current CmsObject\n@param targetSiteRoot the target site root\n@param detailPagePart the detail page part\n@param absoluteLink the absolute (site-relative) link to the resource\n@return the cache key" ]
public Set<Method> findAnnotatedMethods(String scanBase, Class<? extends Annotation> annotationClass) { Set<BeanDefinition> filteredComponents = findCandidateBeans(scanBase, annotationClass); return extractAnnotatedMethods(filteredComponents, annotationClass); }
[ "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" ]
[ "Use this API to unset the properties of snmpmanager resource.\nProperties that need to be unset are specified in args array.", "generate a select-Statement according to query\n\n@param query the Query\n@param cld the ClassDescriptor", "Attempts to return the token from cache. If this is not possible because it is expired or was\nnever assigned, a new token is requested and parallel requests will block on retrieving a new\ntoken. As such no guarantee of maximum latency is provided.\n\nTo avoid blocking the token is refreshed before it's expiration, while parallel requests\ncontinue to use the old token.", "Validate some of the properties of this layer.", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "Print priority.\n\n@param priority Priority instance\n@return priority value", "Use this API to fetch dnstxtrec resource of given name .", "Sets the name of the designated bone.\n\n@param boneindex zero based index of bone to rotate.\n@param bonename string with name of bone.\n. * @see #getBoneName", "Resolve all files from a given path and simplify its definition." ]
public static base_responses add(nitro_service client, dnsaaaarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaaaarec addresources[] = new dnsaaaarec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsaaaarec(); addresources[i].hostname = resources[i].hostname; addresources[i].ipv6address = resources[i].ipv6address; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add dnsaaaarec resources." ]
[ "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map", "Add a BETWEEN clause so the column must be between the low and high parameters.", "Add a partition to the node provided\n\n@param node The node to which we'll add the partition\n@param donatedPartition The partition to add\n@return The new node with the new partition", "Returns the text color for the JSONObject of Link provided\n@param jsonObject of Link\n@return String", "Looks for sequences of integer lists and combine them into one big sequence", "Stores a public key mapping.\n@param original\n@param substitute", "This method is called to alert project listeners to the fact that\na calendar has been read from a project file.\n\n@param calendar calendar instance", "Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array.", "Checks to see if a WORD matches the name of a macro. if it does it applies the macro at that location" ]