query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public Node insertEntity(GraphDatabaseService executionEngine, Object[] columnValues) { Map<String, Object> params = params( columnValues ); Result result = executionEngine.execute( getCreateEntityQuery(), params ); return singleResult( result ); }
[ "Creates the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node" ]
[ "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Remove an existing Corporate GroupId from an organization.\n\n@return Response", "Get the underlying channel. This may block until the channel is set.\n\n@return the channel\n@throws IOException for any error", "Add an additional compilation unit into the loop\n-> build compilation unit declarations, their bindings and record their results.", "Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver\nretrieved using the default server integration classloader.\n\n@return this class instance", "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "Get a list of referrers from a given domain to a user's photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\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.getPhotostreamReferrers.html\"", "Performs DBSCAN cluster analysis.\n\n@param points the points to cluster\n@return the list of clusters\n@throws NullArgumentException if the data points are null" ]
private static ClosableIterator<Tuple> doDistinct(final MongoDBQueryDescriptor queryDescriptor, final MongoCollection<Document> collection) { DistinctIterable<?> distinctFieldValues = collection.distinct( queryDescriptor.getDistinctFieldName(), queryDescriptor.getCriteria(), String.class ); Collation collation = getCollation( queryDescriptor.getOptions() ); distinctFieldValues = collation != null ? distinctFieldValues.collation( collation ) : distinctFieldValues; MongoCursor<?> cursor = distinctFieldValues.iterator(); List<Object> documents = new ArrayList<>(); while ( cursor.hasNext() ) { documents.add( cursor.next() ); } MapTupleSnapshot snapshot = new MapTupleSnapshot( Collections.<String, Object>singletonMap( "n", documents ) ); return CollectionHelper.newClosableIterator( Collections.singletonList( new Tuple( snapshot, SnapshotType.UNKNOWN ) ) ); }
[ "do 'Distinct' operation\n\n@param queryDescriptor descriptor of MongoDB query\n@param collection collection for execute the operation\n@return result iterator\n@see <a href =\"https://docs.mongodb.com/manual/reference/method/db.collection.distinct/\">distinct</a>" ]
[ "this method will be invoked after methodToBeInvoked is invoked", "Get the names of the paths that would apply to the request\n\n@param requestUrl URL of the request\n@param requestType Type of the request: GET, POST, PUT, or DELETE as integer\n@return JSONArray of path names\n@throws Exception", "Reads a single byte from the input stream.", "Loads all localizations not already loaded.\n@throws CmsException thrown if locking a file fails.\n@throws UnsupportedEncodingException thrown if reading a file fails.\n@throws IOException thrown if reading a file fails.", "Generates a HashMap used to store expanded state for items in the list\non configuration change or whenever onResume is called.\n\n@return A HashMap containing the expanded state of all parents", "Calculate the value of a swaption assuming the Black'76 model.\n\n@param forwardSwaprate The forward (spot)\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity.\n@param optionStrike The option strike.\n@param swapAnnuity The swap annuity corresponding to the underlying swap.\n@return Returns the value of a Swaption under the Black'76 model", "Replaces sequences of whitespaces with tabs within a line.\n\n@param self A line to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "Creates a date from the equivalent long value. This conversion\ntakes account of the time zone.\n\n@param date date expressed as a long integer\n@return new Date instance" ]
public static void cacheParseFailure(XmlFileModel key) { map.put(getKey(key), new CacheDocument(true, null)); }
[ "Cache a parse failure for this document." ]
[ "Performs a HTTP DELETE request.\n\n@return {@link Response}", "Remove contents from the deployment and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Increase the priority of an overrideId\n\n@param overrideId ID of override\n@param pathId ID of path containing override\n@param clientUUID UUID of client", "View that redirects the top level window to the URL defined in postDeclineUrl property after user declines to authorize application.\nMay be overridden for custom views, particularly in the case where the post-decline view should be rendered in-canvas.\n@return a view to display after a user declines authoriation. Defaults as a redirect to postDeclineUrl", "Resets the resend counter and possibly resets the\nnode stage to DONE when previous initialization was\ncomplete.", "Get the type created by selecting only a subset of properties from this\ntype. The type must be a map for this to work\n\n@param properties The properties to select\n@return The new type definition", "Deletes a specific, existing project status update.\n\nReturns an empty data record.\n\n@param projectStatus The project status update to delete.\n@return Request object", "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Undo a prior removal using the supplied undo key.\n\n@param removalKey - The key returned from the call to removeRoleMapping.\n@return true if the undo was successful, false otherwise." ]
public static String readFileContentToString(String filePath) throws IOException { String content = ""; content = Files.toString(new File(filePath), Charsets.UTF_8); return content; }
[ "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred." ]
[ "removes all data for an annotation class. This should be called after an\nannotation has been modified through the SPI", "Returns the integer value o the given belief", "Read the role definitions from a GanttProject project.\n\n@param gpProject GanttProject project", "Instantiate Service Locator client. After successful instantiation\nestablish a connection to the Service Locator server. This method will be\ncalled if property locatorClient is null. For this purpose was defined\nadditional properties to instantiate ServiceLocatorImpl.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Remove any protocol-level headers from the clients request that\ndo not apply to the new request we are sending to the remote server.\n\n@param request\n@param destination", "Get the response headers for URL\n\n@param stringUrl URL to use\n@return headers HTTP Headers\n@throws IOException I/O error happened", "Indicates if this file represents a file on the underlying file system.\n\n@param filePath\n@return", "Converters the diffusion coefficient to hydrodynamic diameter and vice versa\n@param value Diffusion coefficient in [m^2 s^-1] or hydrodynamic diameter in [m]\n@param temperatur Temperatur in [Kelvin]\n@param viscosity Viscosity in [kg m^-1 s^-1]\n@return Hydrodynmaic diameter [m] / diffusion coefficient [m^2 s^-1]" ]
public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }
[ "Shutdown the container.\n\n@see Weld#initialize()" ]
[ "Ask the specified player for the album art in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any", "URLDecode a string\n@param s\n@return", "Read relationship data from a PEP file.", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be XML.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')", "Generated the report.", "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", "A comment.\n\n@param args the parameters", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "Adds a collection of listeners to the current project.\n\n@param listeners collection of listeners" ]
public static base_responses delete(nitro_service client, String ipv6address[]) throws Exception { base_responses result = null; if (ipv6address != null && ipv6address.length > 0) { nsip6 deleteresources[] = new nsip6[ipv6address.length]; for (int i=0;i<ipv6address.length;i++){ deleteresources[i] = new nsip6(); deleteresources[i].ipv6address = ipv6address[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete nsip6 resources of given names." ]
[ "Adds vector v1 to v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Creates a setter method with the given body.\n\n@param declaringClass the class to which we will add the setter\n@param propertyNode the field to back the setter\n@param setterName the name of the setter\n@param setterBlock the statement representing the setter block", "The service name to be removed. Can be overridden for unusual service naming patterns\n@param name The name of the resource being removed\n@return The service name to remove. May return {@code null} if only removal based on {@code unavailableCapabilities}\npassed to the constructor are to be performed", "Extract a list of exception assignments.\n\n@param exceptionData string representation of exception assignments\n@return list of exception assignment rows", "Quits server by closing server socket and closing client socket handlers.", "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source", "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Adds a clause that checks whether ANY set bits in a bitmask are present\nin a numeric expression.\n\n@param expr\nSQL numeric expression to check.\n@param bits\nInteger containing the bits for which to check.", "Returns the version document of the given document, if any; returns null otherwise.\n@param document the document to get the version from.\n@return the version of the given document, if any; returns null otherwise." ]
public int getOpacity() { int opacity = Math .round((mPosToOpacFactor * (mBarPointerPosition - mBarPointerHaloRadius))); if (opacity < 5) { return 0x00; } else if (opacity > 250) { return 0xFF; } else { return opacity; } }
[ "Get the currently selected opacity.\n\n@return The int value of the currently selected opacity." ]
[ "Gets the positions.\n\n@return the positions", "Rollback to the specified push version\n\n@param rollbackToDir The version directory to rollback to", "Set the model used by the left table.\n\n@param model table model", "Creates an InputObjectStream and an OutputObjectStream from a Socket, and\npasses them to the closure. The streams will be closed after the closure\nreturns, even if an exception is thrown.\n\n@param socket this Socket\n@param closure a Closure\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 1.5.0", "Initializes the external child resource collection.", "Commit an upload session after all parts have been uploaded, creating the new file or the version.\n@param digest the base64-encoded SHA-1 hash of the file being uploaded.\n@param parts the list of uploaded parts to be committed.\n@param attributes the key value pairs of attributes from the file instance.\n@param ifMatch ensures that your app only alters files/folders on Box if you have the current version.\n@param ifNoneMatch ensure that it retrieve unnecessary data if the most current version of file is on-hand.\n@return the created file instance.", "Extract the outline level from a task's WBS attribute.\n\n@param task Task instance\n@return outline level", "Given a list of keys and a number of splits find the keys to split on.\n\n@param keys the list of keys.\n@param numSplits the number of splits.", "mark a node as blacklisted\n\n@param nodeId Integer node id of the node to be blacklisted" ]
public boolean handleKeyDeletion(final String key) { if (m_keyset.getKeySet().contains(key)) { if (removeKeyForAllLanguages(key)) { m_keyset.removeKey(key); return true; } else { return false; } } return true; }
[ "Handles the deletion of a key.\n@param key the deleted key.\n@return <code>true</code> if the deletion was successful, <code>false</code> otherwise." ]
[ "Log a message at the provided level.", "Notifies that multiple content items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Create a request for elevations for samples along a path.\n\n@param req\n@param callback", "Use this API to fetch appfwpolicy_csvserver_binding resources of given name .", "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read.", "Set the TimeSensor's cycleInterval property\nCurrently, this does not change the duration of the animation.\n@param newCycleInterval", "Ensures that the specified fields are present in the given class.\n\n@param classDef The class to copy the fields into\n@param fields The fields to copy\n@throws ConstraintException If there is a conflict between the new fields and fields in the class", "Populates data in this Options from the character stream.\n@param in The Reader\n@throws IOException If there is a problem reading data", "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}" ]
public static <T> T invokeSetters(final T instance, final Map<String,Object> vars) throws ReflectiveOperationException { if (instance != null && vars != null) { final Class<?> clazz = instance.getClass(); final Method[] methods = clazz.getMethods(); for (final Entry<String,Object> entry : vars.entrySet()) { final String methodName = "set" + entry.getKey().substring(0, 1).toUpperCase(Locale.US) + entry.getKey().substring(1); boolean found = false; for (final Method method : methods) { if (methodName.equals(method.getName()) && method.getParameterTypes().length == 1) { method.invoke(instance, entry.getValue()); found = true; break; } } if (!found) { throw new NoSuchMethodException("Expected setter named '" + methodName + "' for var '" + entry.getKey() + "'"); } } } return instance; }
[ "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method" ]
[ "Use this API to update vserver.", "a useless object at the top level of the response JSON for no reason at all.", "Update the list of buildpacks installed on an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildpacks the new list of buildpack names or URLs.", "Return a String with linefeeds and carriage returns normalized to linefeeds.\n\n@param self a CharSequence object\n@return the normalized toString() for the CharSequence\n@see #normalize(String)\n@since 1.8.2", "Runs a method call with retries.\n@param pjp a {@link ProceedingJoinPoint} representing an annotated\nmethod call.\n@param retryableAnnotation the {@link org.fishwife.jrugged.aspects.Retryable}\nannotation that wrapped the method.\n@throws Throwable if the method invocation itself throws one during execution.\n@return The return value from the method call.", "Add the steal information to the rebalancer state\n\n@param stealInfo The steal information to add", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Merge all reports in reportOverall.\n@param reportOverall destination file of merge.\n@param reports files to be merged.", "Moves the request line reader to end of the line, checking that no non-space\ncharacter are found.\n\n@throws ProtocolException If more non-space tokens are found in this line,\nor the end-of-file is reached." ]
public static boolean setCustomResponseForDefaultProfile(String pathName, String customData) { try { return setCustomForDefaultProfile(pathName, true, customData); } catch (Exception e) { e.printStackTrace(); } return false; }
[ "set custom response for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise" ]
[ "Sets the right padding for all cells in the table.\n@param paddingRight new padding, ignored if smaller than 0\n@return this to allow chaining", "Return whether or not the data object has a default value passed for this field of this type.", "Updates the indices in the index buffer from a Java CharBuffer.\nAll of the entries of the input buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data CharBuffer containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Returns true if all pixels in the array have the same color", "Helper method to set a value in the internal header list.\n\n@param headers the headers to set the value in\n@param name the name to set\n@param value the value to set", "Determine if a key version is invalid by comparing the version's\nexistence and required writes configuration\n\n@param keyVersionNodeSetMap A map that contains keys mapping to a map\nthat maps versions to set of PrefixNodes\n@param requiredWrite Required Write configuration", "Set a colspan in a group of columns. First add the cols to the report\n\n@param colNumber the index of the col\n@param colQuantity the number of cols how i will take\n@param colspanTitle colspan title\n@return a Dynamic Report Builder\n@throws ColumnBuilderException When the index of the cols is out of\nbounds.", "Ask the specified player for the album art in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any", "Match the Origin header with the allowed origins.\nIf it doesn't match then a 403 response code is set on the response and it returns null.\n@param exchange the current HttpExchange.\n@param allowedOrigins list of sanitized allowed origins.\n@return the first matching origin, null otherwise.\n@throws Exception" ]
public ItemRequest<Team> addUser(String team) { String path = String.format("/teams/%s/addUser", team); return new ItemRequest<Team>(this, Team.class, path, "POST"); }
[ "The user making this call must be a member of the team in order to add others.\nThe user to add must exist in the same organization as the team in order to be added.\nThe user to add can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the added user.\n\n@param team Globally unique identifier for the team.\n@return Request object" ]
[ "This method reads a two byte integer from the input stream.\n\n@param is the input stream\n@return integer value\n@throws IOException on file read error or EOF", "Use this API to fetch all the rnatparam resources that are configured on netscaler.", "generate a prepared DELETE-Statement according to query\n@param query the Query\n@param cld the ClassDescriptor", "Use this API to fetch netbridge_vlan_binding resources of given name .", "Adjust the date according to the whole day options.\n\n@param date the date to adjust.\n@param isEnd flag, indicating if the date is the end of the event (in contrast to the beginning)\n\n@return the adjusted date, which will be exactly the beginning or the end of the provide date's day.", "Return a String of length a minimum of totalChars characters by\npadding the input String str at the right end with spaces.\nIf str is already longer\nthan totalChars, it is returned unchanged.", "Get a property as a float or throw an exception.\n\n@param key the property name", "Converts a byte array to a hexadecimal string representation\n@param bb the byte array to convert\n@return string the string representation", "Split a module Id to get the module version\n@param moduleId\n@return String" ]
public void writeTo(IIMWriter writer) throws IOException { final boolean doLog = log != null; for (Iterator<DataSet> i = dataSets.iterator(); i.hasNext();) { DataSet ds = i.next(); writer.write(ds); if (doLog) { log.debug("Wrote data set " + ds); } } }
[ "Writes this IIMFile to writer.\n\n@param writer\nwriter to write to\n@throws IOException\nif file can't be written to" ]
[ "This method writes resource data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Initializes OJB for the purposes of this task.\n\n@return The metadata manager used by OJB", "Parse the XML for a collection as returned by getInfo call.\n\n@param collectionElement\n@return", "Get the last date to keep logs from, by a given current date.\n@param currentDate the date of today\n@return the last date to keep log files from.", "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error", "A convenient way of creating a map on the fly.\n\n@param <K> the key type\n@param <V> the value type\n@param entries\nMap.Entry objects to be added to the map\n@return a LinkedHashMap with the supplied entries", "Unregister the mbean with the given name from the platform mbean server\n\n@param name The name of the mbean to unregister", "Get a fallback handler.\n\n@param header the protocol header\n@return the fallback handler", "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" ]
private static void createList( int data[], int k , int level , List<int[]> ret ) { data[k] = level; if( level < data.length-1 ) { for( int i = 0; i < data.length; i++ ) { if( data[i] == -1 ) { createList(data,i,level+1,ret); } } } else { int []copy = new int[data.length]; System.arraycopy(data,0,copy,0,data.length); ret.add(copy); } data[k] = -1; }
[ "Internal function that uses recursion to create the list" ]
[ "Helper to get locale specific properties.\n\n@return the locale specific properties map.", "Add a dependency task item for this model.\n\n@param dependency the dependency task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result the task item", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the highest to the lowest score.\nDescending lexicographical 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", "Create all the links possible between the Declaration and all the ImporterService matching the.\nImporterServiceFilter of the Linker.\n\n@param declarationSRef the ServiceReference<Declaration> of the Declaration", "Command line method to walk the directories provided on the command line\nand print out their contents\n\n@param args Directory names", "Get the possible beans for the given element\n\n@param resolvable The resolving criteria\n@return An unmodifiable set of matching beans", "Gets the object whose index is the integer argument.\n\n@param i the integer index to be queried for the corresponding argument\n@return the object whose index is the integer argument.", "create a HTTP POST request.\n\n@return {@link HttpConnection}", "Return true if the connection being released is the one that has been saved." ]
public base_response clear_config(Boolean force, String level) throws Exception { base_response result = null; nsconfig resource = new nsconfig(); if (force) resource.set_force(force); resource.set_level(level); options option = new options(); option.set_action("clear"); result = resource.perform_operation(this, option); return result; }
[ "Use this API to clear configuration on netscaler.\n@param force clear confirmation without prompting.\n@param level clear config according to the level. eg: basic, extended, full\n@return status of the operation performed.\n@throws Exception Nitro exception is thrown." ]
[ "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>.", "Create a new instance for the specified host and encryption key.\n\n@see #create(String)", "Adds a patch operation.\n@param op the operation type. Must be add, replace, remove, or test.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value to be set.", "Release all memory addresses taken by this allocator.\nBe careful in using this method, since all of the memory addresses become invalid.", "Checks if the query should be executed using the debug mode where the security restrictions do not apply.\n@param cms the current context.\n@param query the query to execute.\n@return a flag, indicating, if the query should be performed in debug mode.", "Get the Query Paramaters to be used for search request.\n@return this.QueryStringBuilder.", "Triggers a replication request, blocks while the replication is in progress.\n@return ReplicationResult encapsulating the result", "Use this API to update nspbr6 resources.", "Retrieve the routing type value from the REST request.\n\"X_VOLD_ROUTING_TYPE_CODE\" is the routing type header.\n\nBy default, the routing code is set to NORMAL\n\nTODO REST-Server 1. Change the header name to a better name. 2. Assumes\nthat integer is passed in the header" ]
void awaitStabilityUninterruptibly(long timeout, TimeUnit timeUnit) throws TimeoutException { boolean interrupted = false; try { long toWait = timeUnit.toMillis(timeout); long msTimeout = System.currentTimeMillis() + toWait; while (true) { if (interrupted) { toWait = msTimeout - System.currentTimeMillis(); } try { if (toWait <= 0 || !monitor.awaitStability(toWait, TimeUnit.MILLISECONDS, failed, problems)) { throw new TimeoutException(); } break; } catch (InterruptedException e) { interrupted = true; } } } finally { if (interrupted) { Thread.currentThread().interrupt(); } } }
[ "Await service container stability ignoring thread interruption.\n\n@param timeout maximum period to wait for service container stability\n@param timeUnit unit in which {@code timeout} is expressed\n\n@throws java.util.concurrent.TimeoutException if service container stability is not reached before the specified timeout" ]
[ "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.", "Return the number of ignored or assumption-ignored tests.", "Sets the value for the API's \"sitefilter\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "With the QR algorithm it is possible for the found singular values to be negative. This\nmakes them all positive by multiplying it by a diagonal matrix that has", "flushes log queue, this actually writes combined log message into system log", "Sets Idle max age.\n\nThe time, for a connection to remain unused before it is closed off. Do not use aggressive values here!\n@param idleMaxAge time after which a connection is closed off\n@param timeUnit idleMaxAge time granularity.", "Use this API to add cachepolicylabel.", "checking availability of ClassInfo.setFlags method is just workaround for JANDEX-37", "Returns the key of the entity targeted by the represented association, retrieved from the given tuple.\n\n@param tuple the tuple from which to retrieve the referenced entity key\n@return the key of the entity targeted by the represented association" ]
public void setKey(int keyIndex, float time, final float[] values) { int index = keyIndex * mFloatsPerKey; Integer valSize = mFloatsPerKey-1; if (values.length != valSize) { throw new IllegalArgumentException("This key needs " + valSize.toString() + " float per value"); } mKeys[index] = time; System.arraycopy(values, 0, mKeys, index + 1, values.length); }
[ "Set the time and value of the key at the given index\n@param keyIndex 0 based index of key\n@param time key time in seconds\n@param values key values" ]
[ "Creates a new ServerDetails object for resolver, this will take URL and name from the deployer ServerDetails as a default behaviour", "Gets an array of of all registered ConstantMetaClassListener instances.", "This method returns the duplicated certificate mapped to the passed in cert, or\ncreates and returns one if no mapping has yet been performed. If a naked public\nkey has already been mapped that matches the key in the cert, the already mapped\nkeypair will be reused for the mapped cert.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws InvalidKeyException\n@throws CertificateException\n@throws CertificateNotYetValidException\n@throws NoSuchAlgorithmException\n@throws NoSuchProviderException\n@throws SignatureException\n@throws KeyStoreException\n@throws UnrecoverableKeyException", "Adds a step to the steps.\n\n@param name {@link String} name of the step\n@param robot {@link String} name of the robot used by the step.\n@param options {@link Map} extra options required for the step.", "Carry out any post-processing required to tidy up\nthe data read from the database.", "Write a Date attribute.\n\n@param name attribute name\n@param value attribute value", "Use this API to expire cacheobject.", "Overloads the left shift operator to provide an easy way to append multiple\nobjects as string representations to a String.\n\n@param self a String\n@param value an Object\n@return a StringBuffer built from this string\n@since 1.0", "Swap the current version folder for a new one\n\n@param newStoreDirectory The path to the new version directory" ]
@SuppressWarnings("WeakerAccess") public synchronized void stop() { if (isRunning()) { MetadataFinder.getInstance().removeTrackMetadataListener(metadataListener); running.set(false); pendingUpdates.clear(); queueHandler.interrupt(); queueHandler = null; // Report the loss of our previews, on the proper thread, and outside our lock. final Set<DeckReference> dyingCache = new HashSet<DeckReference>(hotCache.keySet()); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { for (DeckReference deck : dyingCache) { if (deck.hotCue == 0) { deliverBeatGridUpdate(deck.player, null); } } } }); hotCache.clear(); deliverLifecycleAnnouncement(logger, false); } }
[ "Stop finding beat grids for all active players." ]
[ "Used to create a new retention policy with optional parameters.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param type the type of the retention policy. Can be \"finite\" or \"indefinite\".\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@param optionalParams the optional parameters.\n@return the created retention policy's info.", "Create servlet deployment.\n\nCan be overridden with custom servlet deployment. e.g. exact resources listing in restricted env like GAE\n\n@param context the servlet context\n@param bootstrap the bootstrap\n@return new servlet deployment", "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path", "Sets the timeout used when connecting to the server.\n\n@param timeout the time out to use\n\n@return the builder", "Converts the passed list of inners to unmodifiable map of impls.\n@param innerList list of the inners.\n@return map of the impls", "Read a single field alias from an extended attribute.\n\n@param attribute extended attribute", "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int", "This method extracts resource data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Use this API to delete onlinkipv6prefix of given name." ]
protected void finishBox() { if (textLine.length() > 0) { String s; if (isReversed(Character.getDirectionality(textLine.charAt(0)))) s = textLine.reverse().toString(); else s = textLine.toString(); curstyle.setLeft(textMetrics.getX()); curstyle.setTop(textMetrics.getTop()); curstyle.setLineHeight(textMetrics.getHeight()); renderText(s, textMetrics); textLine = new StringBuilder(); textMetrics = null; } }
[ "Finishes the current box - empties the text line buffer and creates a DOM element from it." ]
[ "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "Takes a String and converts it to a Date\n\n@param dateString the date\n@return Date denoted by dateString", "Prepare a parallel HTTP OPTION Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Verifies a provided signature.\n\n@param key\nfor which signature key\n@param actualAlgorithm\ncurrent signature algorithm\n@param actualSignature\ncurrent signature\n@param webHookPayload\nfor signing\n@param deliveryTimestamp\nfor signing\n@return true if verification passed", "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool", "Converts the Conditionals into real headers.\n@return real headers.", "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set", "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful", "Adds all rows from the TSV file specified, using the provided delimiter and null value.\n\n@param file The file to read the data from.\n@param delimiter A column delimiter.\n@param nullValue Value to be treated as null in the source data.\n@return {@code this}" ]
public static autoscaleprofile get(nitro_service service, String name) throws Exception{ autoscaleprofile obj = new autoscaleprofile(); obj.set_name(name); autoscaleprofile response = (autoscaleprofile) obj.get_resource(service); return response; }
[ "Use this API to fetch autoscaleprofile resource of given name ." ]
[ "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.", "Use this API to fetch systemsession resource of given name .", "In managed environment do internal close the used connection", "Set the rate types.\n\n@param rateTypes the rate types, not null and not empty.\n@return this, for chaining.\n@throws IllegalArgumentException when not at least one {@link RateType} is provided.", "Returns the compact records for all teams to which user is assigned.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object", "Gets a document from the service.\n\n@param key\nunique key to reference the document\n@return the document or null if no such document", "Finds the beat in which the specified track position falls.\n\n@param milliseconds how long the track has been playing\n\n@return the beat number represented by that time, or -1 if the time is before the first beat", "Calculate the actual bit length of the proposed binary string.", "Retrieve configuration details for a given custom field.\n\n@param field required custom field\n@return configuration detail" ]
public static Iterable<Metadata> getAllMetadata(BoxItem item, String ... fields) { QueryStringBuilder builder = new QueryStringBuilder(); if (fields.length > 0) { builder.appendParam("fields", fields); } return new BoxResourceIterable<Metadata>( item.getAPI(), GET_ALL_METADATA_URL_TEMPLATE.buildWithQuery(item.getItemURL().toString(), builder.toString()), DEFAULT_LIMIT) { @Override protected Metadata factory(JsonObject jsonObject) { return new Metadata(jsonObject); } }; }
[ "Used to retrieve all metadata associated with the item.\n@param item item to get metadata for.\n@param fields the optional fields to retrieve.\n@return An iterable of metadata instances associated with the item." ]
[ "Record a prepare operation timeout.\n\n@param failedOperation the prepared operation", "Sets the database dialect.\n\n@param dialect\nthe database dialect", "Recycle all views in the list. The host views might be reused for other data to\nsave resources on creating new widgets.", "Replace bad xml charactes in given array by space\n\n@param cbuf buffer to replace in\n@param off Offset from which to start reading characters\n@param len Number of characters to be replaced", "Either gets an existing lock on the specified resource or creates one if none exists.\nThis methods guarantees to do this atomically.\n\n@param resourceId the resource to get or create the lock on\n@param isolationId the isolation level identity key. See {@link CommonsOJBLockManager}.\n@return the lock for the specified resource", "Provides the scrollableList implementation for page scrolling\n@return {@link LayoutScroller.ScrollableList} implementation, passed to {@link LayoutScroller}\nfor the processing the scrolling", "Returns the complete tag record for a single tag.\n\n@param tag The tag to get.\n@return Request object", "Returns an array of all the singular values in A sorted in ascending order\n\n@param A Matrix. Not modified.\n@return singular values", "Invalidating just the GVRView associated with the GVRViewSceneObject\nincorrectly set the clip rectangle to just that view. To fix this,\nwe have to create a full screen android View and invalidate this\nto restore the clip rectangle.\n@return full screen View object" ]
private void processScheduleOptions() { List<Row> rows = getRows("schedoptions", "proj_id", m_projectID); if (rows.isEmpty() == false) { Row row = rows.get(0); Map<String, Object> customProperties = new HashMap<String, Object>(); customProperties.put("LagCalendar", row.getString("sched_calendar_on_relationship_lag")); customProperties.put("RetainedLogic", Boolean.valueOf(row.getBoolean("sched_retained_logic"))); customProperties.put("ProgressOverride", Boolean.valueOf(row.getBoolean("sched_progress_override"))); customProperties.put("IgnoreOtherProjectRelationships", row.getString("sched_outer_depend_type")); customProperties.put("StartToStartLagCalculationType", Boolean.valueOf(row.getBoolean("sched_lag_early_start_flag"))); m_reader.getProject().getProjectProperties().setCustomProperties(customProperties); } }
[ "Process schedule options from SCHEDOPTIONS. This table only seems to exist\nin XER files, not P6 databases." ]
[ "Returns a configured transformer to write XML.\n\n@return the XML configured transformer\n@throws SpinXmlElementException if no new transformer can be created", "Detaches or removes the value from this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "In Gerrit < 2.12 the XSRF token was included in the start page HTML.", "Determines if the key replicates to the given node\n\n@param key\n@param nodeId\n@return true if the key belongs to the node as some replica", "Adds the given value to the set.\n\n@return true if the value was actually new", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Read hints from a file.", "Adds a class to the unit.", "as it is daemon thread\n\nTODO when release external resources should shutdown the scheduler." ]
public static base_responses update(nitro_service client, gslbservice resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { gslbservice updateresources[] = new gslbservice[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new gslbservice(); updateresources[i].servicename = resources[i].servicename; updateresources[i].ipaddress = resources[i].ipaddress; updateresources[i].publicip = resources[i].publicip; updateresources[i].publicport = resources[i].publicport; updateresources[i].cip = resources[i].cip; updateresources[i].cipheader = resources[i].cipheader; updateresources[i].sitepersistence = resources[i].sitepersistence; updateresources[i].siteprefix = resources[i].siteprefix; updateresources[i].maxclient = resources[i].maxclient; updateresources[i].healthmonitor = resources[i].healthmonitor; updateresources[i].maxbandwidth = resources[i].maxbandwidth; updateresources[i].downstateflush = resources[i].downstateflush; updateresources[i].maxaaausers = resources[i].maxaaausers; updateresources[i].viewname = resources[i].viewname; updateresources[i].viewip = resources[i].viewip; updateresources[i].monthreshold = resources[i].monthreshold; updateresources[i].weight = resources[i].weight; updateresources[i].monitor_name_svc = resources[i].monitor_name_svc; updateresources[i].hashid = resources[i].hashid; updateresources[i].comment = resources[i].comment; updateresources[i].appflowlog = resources[i].appflowlog; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update gslbservice resources." ]
[ "Ensures that a String argument is a number.\n\n@param condition\ncondition must be {@code true}^ so that the check will be performed\n@param value\nvalue which must be a number\n@throws IllegalNumberArgumentException\nif the given argument {@code value} is not a number", "DISPATCHING - COMMANDS", "List the slack values for each task.\n\n@param file ProjectFile instance", "Given a partition ID, determine which replica of this partition is hosted by the\ncurrent node, if any.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param partitionId for which we want to know the replica type\n@return the requested partition's replica type (which ranges from 0 to replication\nfactor -1) if the partition is hosted on the current node, or -1 if the\nrequested partition is not hosted on this node.", "Returns the value of the identified field as a String.\n@param fieldName the name of the field\n@return the value of the field as a String", "Collect the total times measured by all known named timers of the given\nname. This is useful to add up times that were collected across separate\nthreads.\n\n@param timerName\n@return timer", "Set the weeks of the month the events should occur.\n@param weeksOfMonth the weeks of month to set (first to fifth, where fifth means last).", "Fired whenever a browser event is received.\n@param event Event to process", "Finds the next valid line of words in the stream and extracts them.\n\n@return List of valid words on the line. null if the end of the file has been reached.\n@throws java.io.IOException" ]
static void produceInputStreamWithEntry( final DataConsumer consumer, final InputStream inputStream, final TarArchiveEntry entry ) throws IOException { try { consumer.onEachFile(inputStream, entry); } finally { IOUtils.closeQuietly(inputStream); } }
[ "Feeds input stream to data consumer using metadata from tar entry.\n@param consumer the consumer\n@param inputStream the stream to feed\n@param entry the entry to use for metadata\n@throws IOException on consume error" ]
[ "Generates a change event for a local update of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@param update the update specifier.\n@return a change event for a local update of a document in the given namespace referring\nto the given document _id.", "Counts the packages prefixes appearing in this project and if some of them make more than half of the total of existing packages, this prefix\nis returned. Otherwise, returns null.\n\nThis is just a helper, it isn't something really hard-setting the package. It's something to use if the user didn't specify using\n--mavenize.groupId, and the archive or project name is something insane, like few sencences paragraph (a description) or a number or such.", "Use this API to fetch lbmonitor_binding resource of given name .", "In the 3.0 xsd the vault configuration and its options are part of the vault xsd.\n\n@param reader the reader at the vault element\n@param expectedNs the namespace\n@return the vault configuration", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "Process the scheduling project property from PROJPROP. This table only seems to exist\nin P6 databases, not XER files.\n\n@throws SQLException", "Deletes all steps of scenario cases where a data table\nis generated to reduce the size of the data file.\nIn this case only the steps of the first scenario case are actually needed.", "build a complete set of local files, files from referenced projects, and dependencies.", "Updates an existing enum option. Enum custom fields require at least one enabled enum option.\n\nReturns the full record of the updated enum option.\n\n@param enumOption Globally unique identifier for the enum option.\n@return Request object" ]
public static boolean checkDuplicateElements(DMatrixSparseCSC A ) { A = A.copy(); // create a copy so that it doesn't modify A A.sortIndices(null); return !checkSortedFlag(A); }
[ "Checks for duplicate elements. A is sorted\n@param A Matrix to be tested.\n@return true if duplicates or false if false duplicates" ]
[ "Make this item active.", "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "Execute a CLI command. This can be any command that you might execute on\nthe CLI command line, including both server-side operations and local\ncommands such as 'cd' or 'cn'.\n\n@param cliCommand A CLI command.\n@return A result object that provides all information about the execution\nof the command.", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails", "Reads the next chunk for the intermediate work buffer.", "Use this API to fetch appfwprofile_safeobject_binding resources of given name .", "Returns an empty Promotion details in Json\n\n@return String\n@throws IOException", "Get a boolean value from the values or null.\n\n@param key the look up key of the value", "Sets a single element of this vector. Elements 0, 1, and 2 correspond to\nx, y, and z.\n\n@param i\nelement index\n@param value\nelement value\n@return element value throws ArrayIndexOutOfBoundsException if i is not\nin the range 0 to 2." ]
public void addRow(Component component) { Component actualComponent = component == null ? m_newComponentFactory.get() : component; I_CmsEditableGroupRow row = m_rowBuilder.buildRow(this, actualComponent); m_container.addComponent(row); updatePlaceholder(); updateButtonBars(); updateGroupValidation(); }
[ "Adds a row for the given component at the end of the group.\n\n@param component the component to wrap in the row to be added" ]
[ "invoked from the jelly file\n\n@throws Exception Any exception", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName 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 discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "calls _initMH on the method handler and then stores the result in the\nmethodHandler field as then new methodHandler", "Performs an efficient update of each columns' norm", "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id", "A specific, existing task can be updated by making a PUT request on the\nURL for that task. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated task record.\n\n@param task The task to update.\n@return Request object", "Fetches the HttpMethod from annotations and returns String representation of HttpMethod.\nReturn emptyString if not present.\n\n@param method Method handling the http request.\n@return String representation of HttpMethod from annotations or emptyString as a default.", "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client", "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width" ]
static int lastArgMatchesVarg(Parameter[] params, ClassNode... args) { if (!isVargs(params)) return -1; // case length ==0 handled already // we have now two cases, // the argument is wrapped in the vargs array or // the argument is an array that can be used for the vargs part directly // we test only the wrapping part, since the non wrapping is done already ClassNode lastParamType = params[params.length - 1].getType(); ClassNode ptype = lastParamType.getComponentType(); ClassNode arg = args[args.length - 1]; if (isNumberType(ptype) && isNumberType(arg) && !ptype.equals(arg)) return -1; return isAssignableTo(arg, ptype)?Math.min(getDistance(arg, lastParamType), getDistance(arg, ptype)):-1; }
[ "Checks if the last argument matches the vararg type.\n@param params\n@param args\n@return -1 if no match, 0 if the last argument is exactly the vararg type and 1 if of an assignable type" ]
[ "If needed, destroy the remaining conversation contexts after an HTTP session was invalidated within the current request.\n\n@param request", "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128,\nand 256x256 can be returned in the .png format and sizes of 32x32, 94x94, 160x160, and 320x320 can be returned\nin the .jpg format.\n\n@param fileType either PNG of JPG\n@param minWidth minimum width\n@param minHeight minimum height\n@param maxWidth maximum width\n@param maxHeight maximum height\n@return the byte array of the thumbnail image", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "Hide multiple channels. All other channels will be shown.\n@param channels The channels to hide", "Animate de-selection of visible views and clear\nselected set.", "Restores a BoxAPIConnection from a saved state.\n\n@see #save\n@param clientID the client ID to use with the connection.\n@param clientSecret the client secret to use with the connection.\n@param state the saved state that was created with {@link #save}.\n@return a restored API connection.", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Adds the task to the specified project, in the optional location\nspecified. If no location arguments are given, the task will be added to\nthe end of the project.\n\n`addProject` can also be used to reorder a task within a project or section that\nalready contains it.\n\nAt most one of `insert_before`, `insert_after`, or `section` should be\nspecified. Inserting into a section in an non-order-dependent way can be\ndone by specifying `section`, otherwise, to insert within a section in a\nparticular place, specify `insert_before` or `insert_after` and a task\nwithin the section to anchor the position of this task.\n\nReturns an empty data block.\n\n@param task The task to add to a project.\n@return Request object" ]
public static ResourceKey key(Enum<?> enumValue, String key) { return new ResourceKey(enumValue.getClass().getName(), enumValue.name()).child(key); }
[ "Creates a resource key defined as a child of key defined by enumeration value.\n@see #key(Enum)\n@see #child(String)\n@param enumValue the enumeration value defining the parent key\n@param key the child id\n@return the resource key" ]
[ "Returns a color for a given absolute number that is to be shown on the\nmap.\n\n@param value\n@return", "Create a smaller array from an existing one.\n\n@param strings an array containing element of type {@link String}\n@param begin the starting position of the sub-array\n@param length the number of element to consider\n@return a new array continaining only the selected elements", "Parses the query facet configurations.\n@param rangeFacetObject The JSON sub-node with the query facet configurations.\n@return The query facet configurations.", "This method returns the actual raw class associated with the specified\ntype.", "Gets the explorer file entry options.\n\n@return the explorer file entry options", "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return", "Create the index and associate it with all project models in the Application", "Request a database sends a list of UUIDs.\n\n@param count The count of UUIDs.", "Await service container stability ignoring thread interruption.\n\n@param timeout maximum period to wait for service container stability\n@param timeUnit unit in which {@code timeout} is expressed\n\n@throws java.util.concurrent.TimeoutException if service container stability is not reached before the specified timeout" ]
private String parsePropertyName(String orgPropertyName, Object userData) { // try to assure the correct separator is used String propertyName = orgPropertyName.replace(HibernateLayerUtil.XPATH_SEPARATOR, HibernateLayerUtil.SEPARATOR); // split the path (separator is defined in the HibernateLayerUtil) String[] props = propertyName.split(HibernateLayerUtil.SEPARATOR_REGEXP); String finalName; if (props.length > 1 && userData instanceof Criteria) { // the criteria API requires an alias for each join table !!! String prevAlias = null; for (int i = 0; i < props.length - 1; i++) { String alias = props[i] + "_alias"; if (!aliases.contains(alias)) { Criteria criteria = (Criteria) userData; if (i == 0) { criteria.createAlias(props[0], alias); } else { criteria.createAlias(prevAlias + "." + props[i], alias); } aliases.add(alias); } prevAlias = alias; } finalName = prevAlias + "." + props[props.length - 1]; } else { finalName = propertyName; } return finalName; }
[ "Go through the property name to see if it is a complex one. If it is, aliases must be declared.\n\n@param orgPropertyName\nThe propertyName. Can be complex.\n@param userData\nThe userData object that is passed in each method of the FilterVisitor. Should always be of the info\n\"Criteria\".\n@return property name" ]
[ "Writes the given configuration to the given file.", "Sets the position of the currency symbol.\n\n@param posn currency symbol position.", "I promise that this is always a collection of HazeltaskTasks", "This method maps the currency symbol position from the\nrepresentation used in the MPP file to the representation\nused by MPX.\n\n@param value MPP symbol position\n@return MPX symbol position", "Send a data to Incoming Webhook endpoint.", "See convertToSQL92.\n\n@return SQL like sub-expression\n@throws IllegalArgumentException oops", "Removes the specified type from the frame.", "This method is called to alert project listeners to the fact that\na resource assignment has been read from a project file.\n\n@param resourceAssignment resourceAssignment instance", "Convert a Java LinkedList to a Scala Iterable.\n@param linkedList Java LinkedList to convert\n@return Scala Iterable" ]
public static void setFlag(Activity activity, final int bits, boolean on) { Window win = activity.getWindow(); WindowManager.LayoutParams winParams = win.getAttributes(); if (on) { winParams.flags |= bits; } else { winParams.flags &= ~bits; } win.setAttributes(winParams); }
[ "helper method to activate or deactivate a specific flag\n\n@param bits\n@param on" ]
[ "Stop a timer of the given string name for the current thread. If no such\ntimer exists, -1 will be returned. Otherwise the return value is the CPU\ntime that was measured.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return CPU time if timer existed and was running, and -1 otherwise", "Main method of the class, which handles the process of creating the tests\n\n@param requirementsFolder\n, it is the folder where the plain text given by the client is\nstored\n@param platformName\n, to choose the MAS platform (JADE, JADEX, etc.)\n@param src_test_dir\n, the folder where our classes are created\n@param tests_package\n, the name of the package where the stories are created\n@param casemanager_package\n, the path where casemanager must be created\n@param loggingPropFile\n, properties file\n@throws Exception\n, if any error is found in the configuration", "Creates necessary objects to make a chart an hyperlink\n\n@param design\n@param djlink\n@param chart\n@param name", "Handle content length.\n\n@param event\nthe event", "Initialize; cached threadpool is safe as it is releasing resources automatically if idle", "Issue the database statements to drop the table associated with a table configuration.\n\n<p>\n<b>WARNING:</b> This is [obviously] very destructive and is unrecoverable.\n</p>\n\n@param connectionSource\nAssociated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@param ignoreErrors\nIf set to true then try each statement regardless of {@link SQLException} thrown previously.\n@return The number of statements executed to do so.", "This method lists all tasks defined in the file.\n\n@param file MPX file", "Stops the emulator. Multiple calls are allowed.\n\n@throws DatastoreEmulatorException if the emulator cannot be stopped", "Use this API to unset the properties of bridgetable resource.\nProperties that need to be unset are specified in args array." ]
public void setScriptText(String scriptText, String language) { GVRScriptFile newScript = new GVRJavascriptScriptFile(getGVRContext(), scriptText); mLanguage = GVRScriptManager.LANG_JAVASCRIPT; setScriptFile(newScript); }
[ "Loads the script from a text string.\n@param scriptText text string containing script to execute.\n@param language language (\"js\" or \"lua\")" ]
[ "Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.\n@param other\n@return", "Use this API to fetch statistics of rnatip_stats resource of given name .", "Gets the boxed type of a class\n\n@param type The type\n@return The boxed type", "Compute singular values and U and V at the same time", "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array.", "Converts a batch indexing into the sample, to a batch indexing into the\noriginal function.\n\n@param batch The batch indexing into the sample.\n@return A new batch indexing into the original function, containing only\nthe indices from the sample.", "Method to build Mail Channel Adapter for IMAP.\n@param urlName Mail source URL.\n@return Mail Channel for IMAP", "Removes all pending broadcasts\n\n@param sessionIds to remove broadcast for (or null for all sessions)", "Return a replica of this instance with the quality value of the given MediaType.\n@return the same instance if the given MediaType doesn't have a quality value, or a new one otherwise" ]
public synchronized void pauseDeployment(final String deployment, ServerActivityCallback listener) { final List<ControlPoint> eps = new ArrayList<ControlPoint>(); for (ControlPoint ep : entryPoints.values()) { if (ep.getDeployment().equals(deployment)) { if(!ep.isPaused()) { eps.add(ep); } } } CountingRequestCountCallback realListener = new CountingRequestCountCallback(eps.size(), listener); for (ControlPoint ep : eps) { ep.pause(realListener); } }
[ "Pauses a given deployment\n\n@param deployment The deployment to pause\n@param listener The listener that will be notified when the pause is complete" ]
[ "Displays text which shows the valid command line parameters, and then exits.", "Computes an MD4 hash for the password.\n\n@param password the password for which to compute the hash\n@throws NoSuchAlgorithmException\n@throws InvalidKeyException\n\n@return the password hash", "Returns a list of all templates under the user account\n\n@param options {@link Map} extra options to send along with the request.\n@return {@link ListResponse}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Unregister the mbean with the given name, if there is one registered\n\n@param name The mbean name to unregister\n@see #registerMBean(Object, String)", "The CommandContext can be retrieved thatnks to the ExecutableBuilder.", "Drop down item view\n\n@param position position of item\n@param convertView View of item\n@param parent parent view of item's view\n@return covertView", "Use this API to rename a nsacl6 resource.", "Register an active operation with a specific operation id.\n\n@param id the operation id\n@param attachment the shared attachment\n@param callback the completed callback\n@return the created active operation\n\n@throws java.lang.IllegalStateException if an operation with the same id is already registered", "Handles the response of the MemoryGetId request.\nThe MemoryGetId function gets the home and node id from the controller memory.\n@param incomingMessage the response message to process." ]
private void printImage(PrintStream out, ItemDocument itemDocument) { String imageFile = null; if (itemDocument != null) { for (StatementGroup sg : itemDocument.getStatementGroups()) { boolean isImage = "P18".equals(sg.getProperty().getId()); if (!isImage) { continue; } for (Statement s : sg) { if (s.getMainSnak() instanceof ValueSnak) { Value value = s.getMainSnak().getValue(); if (value instanceof StringValue) { imageFile = ((StringValue) value).getString(); break; } } } if (imageFile != null) { break; } } } if (imageFile == null) { out.print(",\"http://commons.wikimedia.org/w/thumb.php?f=MA_Route_blank.svg&w=50\""); } else { try { String imageFileEncoded; imageFileEncoded = URLEncoder.encode( imageFile.replace(" ", "_"), "utf-8"); // Keep special title symbols unescaped: imageFileEncoded = imageFileEncoded.replace("%3A", ":") .replace("%2F", "/"); out.print("," + csvStringEscape("http://commons.wikimedia.org/w/thumb.php?f=" + imageFileEncoded) + "&w=50"); } catch (UnsupportedEncodingException e) { throw new RuntimeException( "Your JRE does not support UTF-8 encoding. Srsly?!", e); } } }
[ "Prints the URL of a thumbnail for the given item document to the output,\nor a default image if no image is given for the item.\n\n@param out\nthe output to write to\n@param itemDocument\nthe document that may provide the image information" ]
[ "Generic method to extract Primavera fields and assign to MPXJ fields.\n\n@param map map of MPXJ field types and Primavera field names\n@param row Primavera data container\n@param container MPXJ data contain", "Check if the given class represents an array of primitive wrappers,\ni.e. Boolean, Byte, Character, Short, Integer, Long, Float, or Double.\n@param clazz the class to check\n@return whether the given class is a primitive wrapper array class", "Instantiates the templates specified by @Template within @Templates", "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int", "Use this API to update nspbr6 resources.", "Copies entries in the source map to target map.\n\n@param source source map\n@param target target map", "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself.", "Suite prologue.", "Gets information about all of the group memberships for this user.\nDoes not support paging.\n\n<p>Note: This method is only available to enterprise admins.</p>\n\n@return a collection of information about the group memberships for this user." ]
@Override public void setID(Integer val) { ProjectFile parent = getParentFile(); Integer previous = getID(); if (previous != null) { parent.getTasks().unmapID(previous); } parent.getTasks().mapID(val, this); set(TaskField.ID, val); }
[ "The ID field contains the identifier number that Microsoft Project\nautomatically assigns to each task as you add it to the project.\nThe ID indicates the position of a task with respect to the other tasks.\n\n@param val ID" ]
[ "Merges information from the resource root into this resource root\n\n@param additionalResourceRoot The root to merge", "Use this API to fetch lbvserver_servicegroup_binding resources of given name .", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region", "Send JSON representation of given data object to all connections\nconnected to given URL\n\n@param data the data object\n@param url the url", "Use this API to fetch sslpolicylabel resource of given name .", "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception", "Returns the steps instances associated to CandidateSteps\n\n@param candidateSteps\nthe List of CandidateSteps\n@return The List of steps instances", "Converts the given string to a clob object\n\n@param stringName string name to clob\n@param sqlConnection Connection object\n@return Clob object or NULL", "Gets the time warp.\n\n@return the time warp" ]
@Override public Integer getMasterPartition(byte[] key) { return abs(hash.hash(key)) % (Math.max(1, this.partitionToNode.length)); }
[ "Obtain the master partition for a given key\n\n@param key\n@return master partition id" ]
[ "Returns iban's country code and check digit.\n\n@param iban String\n@return countryCodeAndCheckDigit String", "This adds to the feature name the name of classes that are other than\nthe current class that are involved in the clique. In the CMM, these\nother classes become part of the conditioning feature, and only the\nclass of the current position is being predicted.\n\n@return A collection of features with extra class information put\ninto the feature name.", "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded", "Checks if the date is a holiday\n\n@param dateString the date\n@return true if it is a holiday, false otherwise", "Add another store destination to an existing streaming session\n\n\n@param store the name of the store to stream to", "Processes the template for the object cache of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "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", "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value" ]
private void bindProcedure(PreparedStatement stmt, ClassDescriptor cld, Object obj, ProcedureDescriptor proc) throws SQLException { int valueSub = 0; // Figure out if we are using a callable statement. If we are, then we // will need to register one or more output parameters. CallableStatement callable = null; try { callable = (CallableStatement) stmt; } catch(Exception e) { m_log.error("Error while bind values for class '" + (cld != null ? cld.getClassNameOfObject() : null) + "', using stored procedure: "+ proc, e); if(e instanceof SQLException) { throw (SQLException) e; } else { throw new PersistenceBrokerException("Unexpected error while bind values for class '" + (cld != null ? cld.getClassNameOfObject() : null) + "', using stored procedure: "+ proc); } } // If we have a return value, then register it. if ((proc.hasReturnValue()) && (callable != null)) { int jdbcType = proc.getReturnValueFieldRef().getJdbcType().getType(); m_platform.setNullForStatement(stmt, valueSub + 1, jdbcType); callable.registerOutParameter(valueSub + 1, jdbcType); valueSub++; } // Process all of the arguments. Iterator iterator = proc.getArguments().iterator(); while (iterator.hasNext()) { ArgumentDescriptor arg = (ArgumentDescriptor) iterator.next(); Object val = arg.getValue(obj); int jdbcType = arg.getJdbcType(); setObjectForStatement(stmt, valueSub + 1, val, jdbcType); if ((arg.getIsReturnedByProcedure()) && (callable != null)) { callable.registerOutParameter(valueSub + 1, jdbcType); } valueSub++; } }
[ "Bind a prepared statment that represents a call to a procedure or\nuser-defined function.\n\n@param stmt the statement to bind.\n@param cld the class descriptor of the object that triggered the\ninvocation of the procedure or user-defined function.\n@param obj the object that triggered the invocation of the procedure\nor user-defined function.\n@param proc the procedure descriptor that provides information about\nthe arguments that shoudl be passed to the procedure or\nuser-defined function" ]
[ "Use this API to unset the properties of nsacl6 resources.\nProperties that need to be unset are specified in args array.", "Save the changes.", "The transaction will be executed. While it is running, any semantic state change\nin the given resource will be ignored and the cache will not be cleared.", "Computes the eigenvalue of the 2 by 2 matrix.", "Return the area polygon as the only feature in the feature collection.\n\n@param mapAttributes the attributes that this aoi is part of.", "Returns the user records for all users in the specified workspace or\norganization.\n\n@param workspace The workspace in which to get users.\n@return Request object", "Loads the configuration file, using CmsVfsMemoryObjectCache for caching.\n\n@param cms the CMS context\n@return the template mapper configuration", "This method performs database modification at the very and of transaction.", "Given a filesystem and path to a node, gets all the files which belong to\na partition and replica type\n\nWorks only for {@link ReadOnlyStorageFormat.READONLY_V2}\n\n@param fs Underlying filesystem\n@param path The node directory path\n@param partitionId The partition id for which we get the files\n@param replicaType The replica type\n@return Returns list of files of this partition, replicaType\n@throws IOException" ]
public static Session getSession(final ServerSetup setup, Properties mailProps) { Properties props = setup.configureJavaMailSessionProperties(mailProps, false); log.debug("Mail session properties are {}", props); return Session.getInstance(props, null); }
[ "Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.\n\n@param setup the setup type, such as <code>ServerSetup.IMAP</code>\n@param mailProps additional mail properties.\n@return the JavaMail session." ]
[ "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", "Map the EventType.\n\n@param eventType the event type\n@return the event", "Retrieves the time at which work starts on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return start time, or null for non-working day", "Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.", "Set the background color of the progress spinner disc.\n\n@param colorRes Resource id of the color.", "Looks up and returns the value of the given key in the properties file of\nthe currently-selected theme.\n\n@param code Key to look up in the theme properties file.\n@return The value of the code in the current theme properties file, or an\nempty string if the code could not be resolved.", "Set the named arguments.\n\n@param vars\nthe new named arguments", "Gets the listener classes to which dispatching should be prevented while\nthis event is being dispatched.\n\n@return The listener classes marked to prevent.\n@see #preventCascade(Class)", "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" ]
public static final String decodePassword(byte[] data, byte encryptionCode) { String result; if (data.length < MINIMUM_PASSWORD_DATA_LENGTH) { result = null; } else { MPPUtility.decodeBuffer(data, encryptionCode); StringBuilder buffer = new StringBuilder(); char c; for (int i = 0; i < PASSWORD_MASK.length; i++) { int index = PASSWORD_MASK[i]; c = (char) data[index]; if (c == 0) { break; } buffer.append(c); } result = buffer.toString(); } return (result); }
[ "Decode the password from the given data. Will decode the data block as well.\n\n@param data encrypted data block\n@param encryptionCode encryption code\n\n@return password" ]
[ "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value", "Creates metadata on this file in the specified template type.\n\n@param typeName the metadata template type name.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Try to build an default PBKey for convenience PB create method.\n\n@return PBKey or <code>null</code> if default key was not declared in\nmetadata", "Ask the specified player for the specified waveform detail from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform detail\n\n@return the waveform detail, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Set the directory and test that the directory exists and is contained within the Configuration\ndirectory.\n\n@param directory the new directory", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance", "Binds a script bundle to a scene.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param scene\nThe scene to bind to.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if script processing error occurs.", "Use this API to add autoscaleaction.", "Determines whether a project has the specified publisher type, wrapped by the \"Flexible Publish\" publisher.\n@param project The project\n@param type The type of the publisher\n@return true if the project contains a publisher of the specified type wrapped by the \"Flexible Publish\" publisher." ]
public boolean getNumericBoolean(int field) { boolean result = false; if ((field < m_fields.length) && (m_fields[field].length() != 0)) { result = Integer.parseInt(m_fields[field]) == 1; } return (result); }
[ "Accessor method used to retrieve a Boolean object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
[ "Declares the internal data structures so that it can process matrices up to the specified size.\n\n@param maxRows\n@param maxCols", "Create a model mbean from an object using the description given in the\nJmx annotation if present. Only operations are supported so far, no\nattributes, constructors, or notifications\n\n@param o The object to create an MBean for\n@return The ModelMBean for the given object", "Use this API to fetch dospolicy resource of given name .", "Merges the immutable container types of this Configuration with the given\nConfiguration.\n\nThe resultant immutable container types results will be the union of the two sets of\nimmutable container types. Where the type is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeImmutableContainerTypesFrom(Configuration)} .\n\n@param otherConfiguration - Configuration to merge immutable container types with.", "moves to the next row of the underlying ResultSet and returns the\ncorresponding Object materialized from this row.", "Updates the backing render texture. This method should not\nbe called when capturing is in progress.\n\n@param width The width of the backing texture in pixels.\n@param height The height of the backing texture in pixels.\n@param sampleCount The MSAA sample count.", "Create a Vendor from a Callable", "Use this API to delete dnstxtrec resources.", "Add a file to notify the script that asked to stop the print that it is now done processing the remain\njobs." ]
@Override @SuppressWarnings("unchecked") public ChronoLocalDateTime<BritishCutoverDate> localDateTime(TemporalAccessor temporal) { return (ChronoLocalDateTime<BritishCutoverDate>) super.localDateTime(temporal); }
[ "Obtains a British Cutover local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the British Cutover local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
[ "Use this API to fetch rnat6_nsip6_binding resources of given name .", "Starts advertising on Hyperbahn at a fixed interval.\n\n@return a future that resolves to the response of the first advertise request", "Writes a resource assignment to a PM XML file.\n\n@param mpxj MPXJ ResourceAssignment instance", "Returns new boolean matrix with true or false values selected with equal probability.\n\n@param numRow Number of rows in the new matrix.\n@param numCol Number of columns in the new matrix.\n@param rand Random number generator used to fill the matrix.\n@return The randomly generated matrix.", "Retrieve the correct index for the supplied Table instance.\n\n@param table Table instance\n@return index", "If the String argument defaultLocatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the\ncorresponding strategy is selected and set as default strategy, else both the selected strategy and the default strategy remain\nunchanged.\n@param defaultLocatorSelectionStrategy", "Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance", "Replaces new line delimiters in the input stream with the Unix line feed.\n\n@param input" ]
private void checkLocking(FieldDescriptorDef fieldDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } String jdbcType = fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE); if (!"TIMESTAMP".equals(jdbcType) && !"INTEGER".equals(jdbcType)) { if (fieldDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_LOCKING, false)) { throw new ConstraintException("The field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+" has locking set to true though it is not of TIMESTAMP or INTEGER type"); } if (fieldDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_UPDATE_LOCK, false)) { throw new ConstraintException("The field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+" has update-lock set to true though it is not of TIMESTAMP or INTEGER type"); } } }
[ "Checks that locking and update-lock are only used for fields of TIMESTAMP or INTEGER type.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated" ]
[ "Start component timer for current instance\n@param type - of component", "Read a task from a ConceptDraw PROJECT file.\n\n@param projectIdentifier parent project identifier\n@param map outline number to task map\n@param task ConceptDraw PROJECT task", "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "Add all the items from an iterable to a collection.\n\n@param <T>\nThe type of items in the iterable and the collection\n@param collection\nThe collection to which the items should be added.\n@param items\nThe items to add to the collection.", "Return the path to the parent directory. Should return the root if\nfrom is root.\n\n@param from either a file or directory\n@return the parent directory", "Returns if a MongoDB document is a todo item.", "Returns the JRDesignGroup for the DJGroup passed\n@param jd\n@param layoutManager\n@param group\n@return", "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", "Returns the next power of 2 after the input value x.\n\n@param x Input value x.\n@return Returns the next power of 2 after the input value x." ]
protected void processOutlineCodeField(Integer entityID, Row row) { processField(row, "OC_FIELD_ID", entityID, row.getString("OC_NAME")); }
[ "Read a single outline code field extended attribute.\n\n@param entityID parent entity\n@param row field data" ]
[ "Gets a byte within this sequence of bytes\n\n@param i index into sequence\n@return byte\n@throws IllegalArgumentException if i is out of range", "Reads characters until any 'end' character is encountered, ignoring\nescape sequences.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "Read a field from the supplied stream, starting with the tag that identifies the type, and reading enough\nto collect the corresponding value.\n\n@param is the stream on which a type tag is expected to be the next byte, followed by the field value.\n\n@return the field that was found on the stream.\n\n@throws IOException if there is a problem reading the field.", "Modifies the belief referenced by bName parameter.\n\n@param bName\n- the name of the belief to update.\n@param value\n- the new value for the belief", "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance", "Gets the data handler from event.\n\n@param event the event\n@return the data handler", "Closes the connection to the Z-Wave controller.", "With the QR algorithm it is possible for the found singular values to be negative. This\nmakes them all positive by multiplying it by a diagonal matrix that has", "Initializes the metadataCache for MetadataStore" ]
public void setAlias(UserAlias userAlias) { m_alias = userAlias.getName(); // propagate to SelectionCriteria,not to Criteria for (int i = 0; i < m_criteria.size(); i++) { if (!(m_criteria.elementAt(i) instanceof Criteria)) { ((SelectionCriteria) m_criteria.elementAt(i)).setAlias(userAlias); } } }
[ "Sets the alias using a userAlias object.\n@param userAlias The alias to set" ]
[ "Sets the transformations to be applied to the shape before indexing it.\n\n@param transformations the sequence of transformations\n@return this with the specified sequence of transformations", "Record a prepared operation.\n\n@param identity the server identity\n@param prepared the prepared operation", "MPP14 files seem to exhibit some occasional weirdness\nwith duplicate ID values which leads to the task structure\nbeing reported incorrectly. The following method attempts to correct this.\nThe method uses ordering data embedded in the file to reconstruct\nthe correct ID order of the tasks.", "get the TypeArgSignature corresponding to given type\n\n@param type\n@return", "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.", "Adds a metadata classification to the specified file.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type added to the file.", "This method writes project property data to a JSON file.", "Use this API to enable Interface of given name.", "Output method that sends a subscription confirmation for the subscriber to avoid DoS attacks, or false subscription.\n\n@param sr\n@return True case the subscription was confirmed, or False otherwise\n@throws org.ow2.chameleon.fuchsia.push.base.hub.exception.SubscriptionOriginVerificationException" ]
public static InterceptionContext forConstructorInterception(InterceptionModel interceptionModel, CreationalContext<?> ctx, BeanManagerImpl manager, SlimAnnotatedType<?> type) { return of(interceptionModel, ctx, manager, null, type); }
[ "The context returned by this method may be later reused for other interception types.\n\n@param interceptionModel\n@param ctx\n@param manager\n@param type\n@return the interception context to be used for the AroundConstruct chain" ]
[ "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.", "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", "Create a new GP entry in the database. No commit performed.", "Create the index and associate it with all project models in the Application", "Parse request parameters and files.\n@param request\n@param response", "Get the Operation metadata for an MBean by name.\n@return the {@link Map} of {@link String} operation names to {@link MBeanOperationInfo} values.", "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", "Executes a batch plan.\n\n@param batchId Used as the ID of the batch plan. This allows related\ntasks on client- & server-side to pretty print messages in a\nmanner that debugging can track specific batch plans across the\ncluster.\n@param batchPlan The batch plan...", "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]" ]
@NonNull @SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher reset() { lastResponsePage = 0; lastRequestPage = 0; lastResponseId = 0; endReached = false; clearFacetRefinements(); cancelPendingRequests(); numericRefinements.clear(); return this; }
[ "Resets the helper's state.\n\n@return this {@link Searcher} for chaining." ]
[ "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "why isn't this functionality in enum?", "Combines adjacent blocks of the same type.", "decodes the uriFragment\n\n@param res the resource that contains the feature holder\n@param uriFragment the fragment that should be decoded\n@return the decoded information\n@see LazyURIEncoder#encode(EObject, EReference, INode)", "Parses a string that contains multiple fat client configs in avro format\n\n@param configAvro Input string of avro format, that contains config for\nmultiple stores\n@return Map of store names to store config properties", "Remove the set of partitions from the node provided\n\n@param node The node from which we're removing the partitions\n@param donatedPartitions The list of partitions to remove\n@return The new node without the partitions", "Serialize a parameterized object to a JSON String.\n\n@param object The object to serialize.\n@param parameterizedType The ParameterizedType describing the object. Ex: LoganSquare.serialize(object, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });", "Resolves the package type from the maven project.\n\n@param project the maven project\n\n@return the package type", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name ." ]
public static void openLogFile() throws IOException { if (LOG_FILE != null) { System.out.println("SynchroLogger Configured"); LOG = new PrintWriter(new FileWriter(LOG_FILE)); } }
[ "Open the log file for writing." ]
[ "Returns the position for a given number of occurrences or NOT_FOUND if\nthis value is not found.\n\n@param nOccurrence\nnumber of occurrences\n@return the position for a given number of occurrences or NOT_FOUND if\nthis value is not found", "Checks the preconditions for creating a new HashMapper processor.\n\n@param mapping\nthe Map\n@throws NullPointerException\nif mapping is null\n@throws IllegalArgumentException\nif mapping is empty", "This static method calculated the vega of a call option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The vega of the option", "Implementation of FNV-1a hash algorithm.\n@see <a href=\"https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function\">\nttps://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function</a>\n@param doc the document to hash\n@return", "Sets the default pattern values dependent on the provided start date.\n@param startDate the date, the default values are determined with.", "Await a state.\n\n@param expected the expected state\n@return {@code true} if the state was reached, {@code false} otherwise", "Creates a non-binary media type with the given type, subtype, and UTF-8 encoding\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Curries a procedure that takes two arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes one argument. Never <code>null</code>.", "Perform all Cursor cleanup here." ]
private boolean isCacheable(PipelineContext context) throws GeomajasException { VectorLayer layer = context.get(PipelineCode.LAYER_KEY, VectorLayer.class); return !(layer instanceof VectorLayerLazyFeatureConversionSupport && ((VectorLayerLazyFeatureConversionSupport) layer).useLazyFeatureConversion()); }
[ "Features are only cacheable when not converted lazily as lazy features are incomplete, it would put detached\nobjects in the cache.\n\n@return true when features are not converted lazily" ]
[ "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", "Sets the max.\n\n@param n the new max", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "Obtains a local date in Julian 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 Julian local date, not null\n@throws DateTimeException if unable to create the date", "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", "Creates the container for a bundle with descriptor.\n@return the container for a bundle with descriptor.\n@throws IOException thrown if reading the bundle fails.\n@throws CmsException thrown if reading the bundle fails.", "Store the given data and return a uuid for later retrieval of the data\n\n@param data\n@return unique id for the stored data", "Parse the string representation of a double.\n\n@param value string representation\n@return Java representation\n@throws ParseException", "Registers an image to be captured by the build-info proxy.\n\n@param imageTag\n@param host\n@param targetRepo\n@param buildInfoId\n@throws IOException\n@throws InterruptedException" ]
public String convertFromJavaString(String string, boolean useUnicode) { int firstEscapeSequence = string.indexOf('\\'); if (firstEscapeSequence == -1) { return string; } int length = string.length(); StringBuilder result = new StringBuilder(length); appendRegion(string, 0, firstEscapeSequence, result); return convertFromJavaString(string, useUnicode, firstEscapeSequence, result); }
[ "Resolve Java control character sequences to the actual character value.\nOptionally handle unicode escape sequences, too." ]
[ "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails.", "A final cluster ought to be a super set of current cluster. I.e.,\nexisting node IDs ought to map to same server, but partition layout can\nhave changed and there may exist new nodes.\n\n@param currentCluster\n@param finalCluster", "Helper to read an optional Integer value.\n@param path The XML path of the element to read.\n@return The Integer value stored in the XML, or <code>null</code> if the value could not be read.", "Process each regex group matched substring of the given CharSequence. If the closure\nparameter takes one argument, an array with all match groups is passed to it.\nIf the closure takes as many arguments as there are match groups, then each\nparameter will be one match group.\n\n@param self the source CharSequence\n@param regex a Regex CharSequence\n@param closure a closure with one parameter or as much parameters as groups\n@return the source CharSequence\n@see #eachMatch(String, String, groovy.lang.Closure)\n@since 1.8.2", "Removes a value from the list box. Nothing is done if the value isn't on\nthe list box.\n\n@param value the value to be removed from the list\n@param reload perform a 'material select' reload to update the DOM.", "Returns value as it appeared on the command line with escape sequences\nand system properties not resolved. The variables, though, are resolved\nduring the initial parsing of the command line.\n\n@param parsedLine parsed command line\n@param required whether the argument is required\n@return argument value as it appears on the command line\n@throws CommandFormatException in case the required argument is missing", "Checks if a parameter exists. If it exists, it is updated. If it doesn't, it is created. Only works for parameters which key is\nunique. Will create a transaction on the given entity manager.", "Adds error correction data to the specified binary string, which already contains the primary data", "Send a device update to all registered update listeners.\n\n@param update the device update that has just arrived" ]
private void createFrameset(File outputDirectory) throws Exception { VelocityContext context = createContext(); generateFile(new File(outputDirectory, INDEX_FILE), INDEX_FILE + TEMPLATE_EXTENSION, context); }
[ "Create the index file that sets up the frameset.\n@param outputDirectory The target directory for the generated file(s)." ]
[ "write CustomInfo list into table.\n\n@param event the event", "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "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", "Adds a listener to this collection.\n\n@param listener The listener to add", "a useless object at the top level of the response JSON for no reason at all.", "Called internally to actually process the Iteration.", "Record a new event.", "Parse the JSON string and return the object. The string is expected to be the JSON print data from the\nclient.\n\n@param spec the JSON formatted string.\n@return The encapsulated JSON object", "Create a Vendor from a Callable" ]
public void pause() { if (mAudioListener != null) { int sourceId = getSourceId(); if (sourceId != GvrAudioEngine.INVALID_ID) { mAudioListener.getAudioEngine().pauseSound(sourceId); } } }
[ "Pauses the playback of a sound." ]
[ "Generates a sub-trajectory", "For creating expression columns\n@return", "Pseudo-Inverse of a matrix calculated in the least square sense.\n\n@param matrix The given matrix A.\n@return pseudoInverse The pseudo-inverse matrix P, such that A*P*A = A and P*A*P = P", "Before cluster management operations, i.e. remember and disable quota\nenforcement settings", "Method is called by spring and verifies that there is only one plugin per URI scheme.", "Use this API to delete nsip6 resources.", "Stops the compressor.", "creates a scope using the passed function to compute the names and sets the passed scope as the parent scope", "Rebuild logging systems with updated mode\n@param newMode log mode" ]
protected boolean checkForAndHandleZeros() { // check for zeros along off diagonal for( int i = x2-1; i >= x1; i-- ) { if( isOffZero(i) ) { // System.out.println("steps at split = "+steps); resetSteps(); splits[numSplits++] = i; x1 = i+1; return true; } } // check for zeros along diagonal for( int i = x2-1; i >= x1; i-- ) { if( isDiagonalZero(i)) { // System.out.println("steps at split = "+steps); pushRight(i); resetSteps(); splits[numSplits++] = i; x1 = i+1; return true; } } return false; }
[ "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." ]
[ "Add a source and destination.\n\n@param source Source path to be routed. Routed path can have named wild-card pattern with braces \"{}\".\n@param destination Destination of the path.", "Returns a single sort option configuration as configured via the methods parameter, or null if the parameter does not specify a sort option.\n@param json The JSON sort option configuration.\n@return The sort option configuration, or null if the JSON could not be read.", "Modify a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@param isDirectory whether the file is a directory or not\n@return the builder", "Add the set of partitions to the node provided\n\n@param node The node to which we'll add the partitions\n@param donatedPartitions The list of partitions to add\n@return The new node with the new partitions", "Sends a message to the dbserver, first assembling it into a single byte buffer so that it can be sent as\na single packet.\n\n@param message the message to be sent\n\n@throws IOException if there is a problem sending it", "Get a lower-scoped token restricted to a resource for the list of scopes that are passed.\n@param scopes the list of scopes to which the new token should be restricted for\n@param resource the resource for which the new token has to be obtained\n@return scopedToken which has access token and other details", "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", "Write a duration field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Multiply scalar value to a complex number.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the multiply of specified complex number with the scalar value." ]
public static base_responses save(nitro_service client, cacheobject resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cacheobject saveresources[] = new cacheobject[resources.length]; for (int i=0;i<resources.length;i++){ saveresources[i] = new cacheobject(); saveresources[i].locator = resources[i].locator; } result = perform_operation_bulk_request(client, saveresources,"save"); } return result; }
[ "Use this API to save cacheobject resources." ]
[ "Paint a check pattern, used for a background to indicate image transparency.\n@param c the component to draw into\n@param g the Graphics objects\n@param x the x position\n@param y the y position\n@param width the width\n@param height the height", "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.", "Read custom fields for a GanttProject task.\n\n@param gpTask GanttProject task\n@param mpxjTask MPXJ Task instance", "Returns the name under which this dump file. This is the name used online\nand also locally when downloading the file.\n\n@param dumpContentType\nthe type of the dump\n@param projectName\nthe project name, e.g. \"wikidatawiki\"\n@param dateStamp\nthe date of the dump in format YYYYMMDD\n@return file name string", "Decode long from byte array at offset\n\n@param ba byte array\n@param offset Offset\n@return long value", "Hide multiple channels. All other channels will be unaffected.\n@param channels The channels to hide", "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception", "Reports that a node is resolved hence other nodes depends on it can consume it.\n\n@param completed the node ready to be consumed", "Populate the supplied response with the model representation of the certificates.\n\n@param result the response to populate.\n@param certificates the certificates to add to the response.\n@throws CertificateEncodingException\n@throws NoSuchAlgorithmException" ]
public String addExtent(Properties attributes) throws XDocletException { String name = attributes.getProperty(ATTRIBUTE_NAME); if (!_model.hasClass(name)) { throw new XDocletException(Translator.getString(XDocletModulesOjbMessages.class, XDocletModulesOjbMessages.COULD_NOT_FIND_TYPE, new String[]{name})); } _curClassDef.addExtentClass(_model.getClass(name)); return ""; }
[ "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"" ]
[ "Build call for getCharactersCharacterIdShip\n\n@param characterId\nAn EVE character ID (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param ifNoneMatch\nETag from a previous request. A 304 will be returned if this\nmatches the current ETag (optional)\n@param token\nAccess token to use if unable to set a header (optional)\n@param callback\nCallback for upload/download progress\n@return Call to execute\n@throws ApiException\nIf fail to serialize the request body object", "Add a dependency task item for this model.\n\n@param dependency the dependency task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result the task item", "refresh credentials if CredentialProvider set", "Compute the offset for the item in the layout cache\n@return true if the item fits the container, false otherwise", "Register the agent in the platform\n\n@param agent_name\nThe name of the agent to be registered\n@param agent\nThe agent to register.\n@throws FIPAException", "Searches for commas in the set of tokens. Used for inputs to functions.\n\nIgnore comma's which are inside a [ ] block\n\n@return List of output tokens between the commas", "Generate a weighted score based on position for matches of URI parts.\nThe matches are weighted in descending order from left to right.\nExact match is weighted higher than group match, and group match is weighted higher than wildcard match.\n\n@param requestUriParts the parts of request URI\n@param destUriParts the parts of destination URI\n@return weighted score", "Check position type.\n\n@param type the type\n@return the boolean", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success." ]
public void setFinalTransformMatrix(Matrix4f finalTransform) { float[] mat = new float[16]; finalTransform.get(mat); NativeBone.setFinalTransformMatrix(getNative(), mat); }
[ "Sets the final transform of the bone during animation.\n\n@param finalTransform The transform matrix representing\nthe bone's pose after computing the skeleton." ]
[ "Use this API to fetch statistics of cmppolicylabel_stats resource of given name .", "Returns with an iterable of URIs that points to all elements that are\nreferenced by the argument or vice-versa.\n\n@return an iterable of URIs that are referenced by the argument or the\nother way around.", "Returns the name of the bone.\n\n@return the name", "Start the initialization.\n\n@param id\n@param manager\n@param bootstrap\n@return the initialized Weld container", "Create an index of base font numbers and their associated base\nfont instances.\n@param data property data", "General API\n-> compile each of supplied files\n-> recompile any required types for which we have an incomplete principle structure", "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registration completes/fails.", "Seeks forward or backwards to a particular holiday based on the current date\n\n@param holidayString The holiday to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "other static handlers" ]
public static synchronized Class< ? > locate(final String serviceName) { if ( serviceName == null ) { throw new IllegalArgumentException( "serviceName cannot be null" ); } if ( factories != null ) { List<Callable<Class< ? >>> l = factories.get( serviceName ); if ( l != null && !l.isEmpty() ) { Callable<Class< ? >> c = l.get( l.size() - 1 ); try { return c.call(); } catch ( Exception e ) { } } } return null; }
[ "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>" ]
[ "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.", "Linear interpolation of ARGB values.\n@param t the interpolation parameter\n@param rgb1 the lower interpolation range\n@param rgb2 the upper interpolation range\n@return the interpolated value", "Retrieves the members of the given type.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param paramName The feature to be added to the Members attribute\n@param paramValue The feature to be added to the Members attribute\n@throws XDocletException If an error occurs", "This method takes the value of an agent's belief through its external\naccess\n\n@param agent_name\nThe name of the agent\n@param belief_name\nThe name of the belief inside agent's adf\n@param connector\nThe connector to get the external access\n@return belief_value The value of the requested belief", "Produces an IPv4 address section from any sequence of bytes in this IPv6 address section\n\n@param startIndex the byte index in this section to start from\n@param endIndex the byte index in this section to end at\n@throws IndexOutOfBoundsException\n@return\n\n@see #getEmbeddedIPv4AddressSection()\n@see #getMixedAddressSection()", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Evaluates the body if current member has no tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"error\" description=\"Show this error message if no tag found.\"", "Returns true if the context has access to any given permissions.", "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler." ]
@Deprecated public void setResolutions(List<Double> resolutions) { getZoomLevels().clear(); for (Double resolution : resolutions) { getZoomLevels().add(new ScaleInfo(1. / resolution)); } }
[ "Set the list of supported resolutions. Each resolution is specified in map units per pixel.\n\n@param resolutions\nresolutions\n@deprecated use {@link #setZoomLevels()}" ]
[ "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent", "Prints and stores final result of the processing. This should be called\nafter finishing the processing of a dump. It will print the statistics\ngathered during processing and it will write a CSV file with usage counts\nfor every property.", "Print a a basic type t", "Change the value that is returned by this generator.\n@param value The new value to return.", "Sets the right padding character for all cells in the row.\n@param paddingRightChar new padding character, ignored if null\n@return this to allow chaining", "Returns all values that can be selected in the widget.\n@param cms the current CMS object\n@param rootPath the root path to the currently edited xml file (sitemap config)\n@param allRemoved flag, indicating if all inheritedly available formatters should be disabled\n@return all values that can be selected in the widget.", "Do some magic to turn request parameters into a context object", "Adds an additional alias to the constructed document.\n\n@param text\nthe text of the alias\n@param languageCode\nthe language code of the alias\n@return builder object to continue construction", "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane" ]
public static Map<String, IDiagramPlugin> getLocalPluginsRegistry(ServletContext context) { if (LOCAL == null) { LOCAL = initializeLocalPlugins(context); } return LOCAL; }
[ "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" ]
[ "Authenticate with the target database using OAuth.\n\n@param consumerSecret consumer secret\n@param consumerKey consumer key\n@param tokenSecret token secret\n@param token token\n@return this Replication instance to set more options\n@deprecated OAuth 1.0 implementation has been <a href=\"http://docs.couchdb.org/en/stable/whatsnew/2.1.html?highlight=oauth#upgrade-notes\"\ntarget=\"_blank\">removed in CouchDB 2.1</a>", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific currency attributes to the default values\nfor the new locale.\n\n@param properties project properties\n@param locale new locale", "Reads the next \"word from the request, comprising all characters up to the next SPACE.\nCharacters are tested by the supplied CharacterValidator, and an exception is thrown\nif invalid characters are encountered.", "Use this API to fetch dnsview resources of given names .", "Close it and ignore any exceptions.", "Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key", "Updates the story and returns the full record for the updated story.\nOnly comment stories can have their text updated, and only comment stories and\nattachment stories can be pinned. Only one of `text` and `html_text` can be specified.\n\n@param story Globally unique identifier for the story.\n@return Request object", "Attempts to detect the provided pattern as an exact match.\n@param pattern the pattern to find in the reader stream\n@return the number of times the pattern is found,\nor an error code\n@throws MalformedPatternException if the pattern is invalid\n@throws Exception if a generic error is encountered", "Adds labels to the item\n\n@param labels\nthe labels to add" ]
public int addCollidable(GVRSceneObject sceneObj) { synchronized (mCollidables) { int index = mCollidables.indexOf(sceneObj); if (index >= 0) { return index; } mCollidables.add(sceneObj); return mCollidables.size() - 1; } }
[ "Adds another scene object to pick against.\nEach frame all the colliders in the scene will be compared\nagainst the bounding volumes of all the collidables associated\nwith this picker.\n@param sceneObj new collidable\n@return index of collidable added, this is the CursorID in the GVRPickedObject" ]
[ "Update an object in the database to change its id to the newId parameter.", "Method used to extract data from the block of properties and\ninsert the key value pair into a map.\n\n@param data block of property data\n@param previousItemOffset previous offset\n@param previousItemKey item key\n@param itemOffset current item offset", "Look for the closing parenthesis corresponding to the one at position\nrepresented by the opening index.\n\n@param text input expression\n@param opening opening parenthesis index\n@return closing parenthesis index", "Reads a \"flags\" argument from the request.", "Obtain an OTMConnection for the given persistence broker key", "Runs through the log removing segments until the size of the log is at least\nlogRetentionSize bytes in size\n\n@throws IOException", "Utility function that pauses and asks for confirmation on dangerous\noperations.\n\n@param confirm User has already confirmed in command-line input\n@param opDesc Description of the dangerous operation\n@throws IOException\n@return True if user confirms the operation in either command-line input\nor here.", "Provides a collection of all the nodes in the tree\nusing a depth first traversal.\n\n@return the list of (depth-first) ordered nodes", "Returns the base path for a given configuration file.\n\nE.g. the result for the input '/sites/default/.container-config' will be '/sites/default'.<p>\n\n@param rootPath the root path of the configuration file\n\n@return the base path for the configuration file" ]
public ConditionalExpectationEstimator getConditionalExpectationEstimator(double exerciseTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException { RandomVariable[] regressionBasisFunctions = regressionBasisFunctionProvider.getBasisFunctions(exerciseTime, model); return conditionalExpectationRegressionFactory.getConditionalExpectationEstimator(regressionBasisFunctions, regressionBasisFunctions); }
[ "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process." ]
[ "Adds error correction data to the specified binary string, which already contains the primary data", "The mediator registration config. If it contains default config and definitions,\nthen the dynamic config will be initialized with those values.\n\n@see org.openhim.mediator.engine.RegistrationConfig\n@see #getDynamicConfig()", "for bpm connector", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "Log column data.\n\n@param column column data", "Find the next match of the pattern on the tree\n\n@return whether there is a match somewhere in the tree", "Retrieves a field type from a location in a data block.\n\n@param data data block\n@param offset offset into data block\n@return field type", "Check whether vector addition works. This is pure Java code and should work.", "Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources." ]
public int compare(Object objA, Object objB) { String idAStr = ((FieldDescriptorDef)_fields.get(objA)).getProperty("id"); String idBStr = ((FieldDescriptorDef)_fields.get(objB)).getProperty("id"); int idA; int idB; try { idA = Integer.parseInt(idAStr); } catch (Exception ex) { return 1; } try { idB = Integer.parseInt(idBStr); } catch (Exception ex) { return -1; } return idA < idB ? -1 : (idA > idB ? 1 : 0); }
[ "Compares two fields given by their names.\n\n@param objA The name of the first field\n@param objB The name of the second field\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)" ]
[ "Use this API to fetch the statistics of all ipseccounters_stats resources that are configured on netscaler.", "Find documents using an index\n\n@param selectorJson String representation of a JSON object describing criteria used to\nselect documents. For example:\n{@code \"{ \\\"selector\\\": {<your data here>} }\"}.\n@param classOfT The class of Java objects to be returned\n@param <T> the type of the Java object to be returned\n@return List of classOfT objects\n@see #findByIndex(String, Class, FindByIndexOptions)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/cloudant_query.html#selector-syntax\"\ntarget=\"_blank\">selector syntax</a>\n@deprecated Use {@link #query(String, Class)} instead", "Inserts the provided document. If the document is missing an identifier, the client should\ngenerate one.\n\n@param document the document to insert\n@return a task containing the result of the insert one operation", "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", "Enables a custom response\n\n@param model\n@param custom\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "Resize the given mesh keeping its aspect ration.\n@param mesh Mesh to be resized.\n@param size Max size for the axis.", "Creates the default editor state for editing a bundle with descriptor.\n@return the default editor state for editing a bundle with descriptor.", "Removes old entries in the history table for the given profile and client UUID\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param limit Maximum number of history entries to remove\n@throws Exception exception", "Returns the value of the identified field as a Long.\n@param fieldName the name of the field\n@return the value of the field as a Long\n@throws FqlException if the field cannot be expressed as an Long" ]
@Pure public static <P1> Procedure0 curry(final Procedure1<? super P1> procedure, final P1 argument) { if (procedure == null) throw new NullPointerException("procedure"); return new Procedure0() { @Override public void apply() { procedure.apply(argument); } }; }
[ "Curries a procedure that takes one argument.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a procedure that takes no arguments. Never <code>null</code>." ]
[ "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.", "Puts a single byte if the buffer is not yet full.\n\n@return true if the byte was put, or false if the buffer is full", "Process a text-based PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance", "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "Write a calendar.\n\n@param record calendar instance\n@throws IOException", "Generates the body of a toString method that uses a StringBuilder.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, but if any of them will\nalways be present, we can actually do the hard work at compile time. Specifically, we can pick\nthe first such and output it without a comma; any property before it will have a comma\n<em>appended</em>, and any property after it will have a comma <em>prepended</em>. This gives\nus the right number of commas in the right places in all circumstances.\n\n<p>As well as keeping track of whether we are <b>prepending commas</b> yet (initially false),\nwe also keep track of whether we have just finished an if-then block for an optional property,\nor if we are in the <b>middle of an append chain</b>, and if so, whether we are in the\n<b>middle of a string literal</b>. This lets us output the fewest literals and statements,\nmuch as a mildly compulsive programmer would when writing the same code.", "Calculates the squared curvature of the LIBOR instantaneous variance.\n\n@param evaluationTime Time at which the product is evaluated.\n@param model A model implementing the LIBORModelMonteCarloSimulationModel\n@return The squared curvature of the LIBOR instantaneous variance (reduced a possible tolerance). The return value is &ge; 0.", "Get a loader that lists the files in the current path,\nand monitors changes.", "Create a document that parses the tile's labelFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@param labelStyleInfo\nlabel style info\n@return graphics document\n@throws RenderException\ncannot render" ]
private float[] calculatePointerPosition(float angle) { float x = (float) (mColorWheelRadius * Math.cos(angle)); float y = (float) (mColorWheelRadius * Math.sin(angle)); return new float[] { x, y }; }
[ "Calculate the pointer's coordinates on the color wheel using the supplied\nangle.\n\n@param angle The position of the pointer expressed as angle (in rad).\n\n@return The coordinates of the pointer's center in our internal\ncoordinate system." ]
[ "Use this API to fetch clusternodegroup resource of given name .", "Input method, called by a Subscriber indicating its intent into receive notification about a given topic.\n\n@param sr DTO containing the info given by the protocol", "Decorates a node with the affected operator, if any.\n\n@param context\n@param tree\n@param operations\n@return", "Create a document that parses the tile's labelFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@param labelStyleInfo\nlabel style info\n@return graphics document\n@throws RenderException\ncannot render", "Verifies that the connection is still alive. Returns true if it\nis, false if it is not. If the connection is broken we try\nclosing everything, too, so that the caller need only open a new\nconnection.", "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful", "Retrieve and validate store name from the REST request.\n\n@return true if valid, false otherwise", "Calculate the screen size of a tile. Normally the screen size is expressed in pixels and should therefore be\nintegers, but for the sake of accuracy we try to keep a double value as long as possible.\n\n@param worldSize\nThe width and height of a tile in the layer's world coordinate system.\n@param scale\nThe current client side scale.\n@return Returns an array of double values where the first value is the tile screen width and the second value is\nthe tile screen height.", "Return true if the processor of the node has previously been executed.\n\n@param processorGraphNode the node to test." ]
private synchronized void setFactoryMethod(Method newMethod) { if (newMethod != null) { // make sure it's a no argument method if (newMethod.getParameterTypes().length > 0) { throw new MetadataException( "Factory methods must be zero argument methods: " + newMethod.getClass().getName() + "." + newMethod.getName()); } // make it accessible if it's not already if (!newMethod.isAccessible()) { newMethod.setAccessible(true); } } this.factoryMethod = newMethod; }
[ "Specify the method to instantiate objects\nrepresented by this descriptor.\n@see #setFactoryClass" ]
[ "checks whether the specified Object obj is write-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false", "Get the maximum width and height of the labels.\n\n@param settings Parameters for rendering the scalebar.", "Infer app name from scan package\n\n@param packageName\nthe package name\n@return\napp name inferred from the package name", "Attaches the menu drawer to the window.", "Get the Operation metadata for a single operation on an MBean by name.\n@param operationName the Operation name (can be URL-encoded).\n@return the {@link MBeanOperationInfo} for the operation.\n@throws OperationNotFoundException Method was not found\n@throws UnsupportedEncodingException if the encoding is not supported.", "Add information about host and thread to specified test case started event\n\n@param event given event to update\n@return updated event", "Checks the id value.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Creates an element that represents a single positioned box with no content.\n@return the resulting DOM element" ]
public RedwoodConfiguration stderr(){ LogRecordHandler visibility = new VisibilityHandler(); LogRecordHandler console = Redwood.ConsoleHandler.err(); return this .rootHandler(visibility) .handler(visibility, console); }
[ "Add a console pipeline to the Redwood handler tree,\nprinting to stderr.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this" ]
[ "Gets the path used for the results of XSLT Transforms.", "Convert this buffer to a java array.\n@return", "Find a statement group by its property id, without checking for\nequality with the site IRI. More efficient implementation than\nthe default one.", "Analyzes a failure thrown connecting to the master for causes that indicate\nsome problem not likely to be resolved by immediately retrying. If found,\nthrows an exception highlighting the underlying cause. If the cause is not\none of the ones understood by this method, the method returns normally.\n\n@throws org.jboss.as.domain.controller.SlaveRegistrationException if the remote HC rejected the request\n@throws IllegalStateException for other failures understood by this method", "Creates an object instance from the Scala class name\n\n@param className the Scala class name\n@return An Object instance", "Gracefully stop the engine", "This returns a string from decimal digit smallestDigit to decimal digit\nbiggest digit. Smallest digit is labeled 1, and the limits are\ninclusive.", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "Set the week days the events should occur.\n@param weekDays the week days to set." ]
@Nonnull public BiMap<String, String> getInputMapper() { final BiMap<String, String> inputMapper = this.processor.getInputMapperBiMap(); if (inputMapper == null) { return HashBiMap.create(); } return inputMapper; }
[ "Return input mapper from processor." ]
[ "Use this API to delete ntpserver resources.", "Returns the naming context.", "Checks, if all values necessary for a specific pattern are valid.\n@return a flag, indicating if all values required for the pattern are valid.", "Initialize VIDEO_INFO data.", "Specify the class represented by this `ClassNode` is annotated\nby an annotation class specified by the name\n@param name the name of the annotation class\n@return this `ClassNode` instance", "Converts url path to the Transloadit full url.\nReturns the url passed if it is already full.\n\n@param url\n@return String", "Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}", "Constructs the convex hull of a set of points.\n\n@param points\ninput points\n@param nump\nnumber of input points\n@throws IllegalArgumentException\nthe number of input points is less than four or greater then\nthe length of <code>points</code>, or the points appear to be\ncoincident, colinear, or coplanar.", "Use this API to fetch rnat6_nsip6_binding resources of given name ." ]
public AsciiTable setTargetTranslator(TargetTranslator targetTranslator) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setTargetTranslator(targetTranslator); } } return this; }
[ "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining" ]
[ "Retrieve the default mapping between MPXJ assignment fields and Primavera assignment field names.\n\n@return mapping", "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return", "Get a handler based on its class\n@param clazz The class of the Handler to return.\nIf multiple Handlers exist, the first one is returned.\n@param <E> The class of the handler to return.\n@return The handler matching the class name.", "Convert gallery name to not found error key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"", "Show only the given channel.\n@param channels The channels to show", "Check that the parameter array has exactly the right number of elements.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@param actualLength\nThe actual array length\n@param expectedLength\nThe expected array length", "Function to compute the bias gradient for batch convolution", "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message", "associate the batched Children with their owner object loop over children" ]
private StitchUserT doLogin(final StitchCredential credential, final boolean asLinkRequest) { final Response response = doLoginRequest(credential, asLinkRequest); final StitchUserT previousUser = activeUser; final StitchUserT user = processLoginResponse(credential, response, asLinkRequest); if (asLinkRequest) { onUserLinked(user); } else { onUserLoggedIn(user); onActiveUserChanged(activeUser, previousUser); } return user; }
[ "callers of doLogin should be serialized before calling in." ]
[ "Runs the record linkage process.", "Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\nmust be called first.", "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", "Fetches the current online data for the given item, and fixes the\nprecision of integer quantities if necessary.\n\n@param itemIdValue\nthe id of the document to inspect\n@param propertyId\nid of the property to consider", "Get a property as a double or null.\n\n@param key the property name", "Converts a DTO attribute into a generic attribute object.\n\n@param attribute\nThe DTO attribute.\n@return The server side attribute representation. As we don't know at this point what kind of object the\nattribute is (that's a problem for the <code>FeatureModel</code>), we return an <code>Object</code>.", "Use this method to enable device network-related information tracking, including IP address.\nThis reporting is disabled by default. To re-disable tracking call this method with enabled set to false.\n\n@param value boolean Whether device network info reporting should be enabled/disabled.", "Sets all padding for all cells in the row to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining", "Term prefix.\n\n@param term\nthe term\n@return the string" ]
public void setVolume(float volume) { // Save this in case this audio source is not being played yet mVolume = volume; if (isPlaying() && (getSourceId() != GvrAudioEngine.INVALID_ID)) { // This will actually work only if the sound file is being played mAudioListener.getAudioEngine().setSoundVolume(getSourceId(), getVolume()); } }
[ "Changes the volume of an existing sound.\n@param volume volume value. Should range from 0 (mute) to 1 (max)" ]
[ "Split a span into two by adding a knot in the middle.\n@param n the span index", "By default uses InputStream as the type of the image\n@param title\n@param property\n@param width\n@param fixedWidth\n@param imageScaleMode\n@param style\n@return\n@throws ColumnBuilderException\n@throws ClassNotFoundException", "Convert one project file format to another.\n\n@param inputFile input file\n@param outputFile output file\n@throws Exception", "Get permissions for who may view geo data for a photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nreqired photo id, not null\n@return the permissions\n@throws FlickrException\nif photo id is invalid, if photo has no geodata or if any other error has been reported in the response.", "Stops all streams.", "Main method of the class, which handles the process of creating the tests\n\n@param requirementsFolder\n, it is the folder where the plain text given by the client is\nstored\n@param platformName\n, to choose the MAS platform (JADE, JADEX, etc.)\n@param src_test_dir\n, the folder where our classes are created\n@param tests_package\n, the name of the package where the stories are created\n@param casemanager_package\n, the path where casemanager must be created\n@param loggingPropFile\n, properties file\n@throws Exception\n, if any error is found in the configuration", "Determine the color to use to draw a cue list entry. Hot cues are green, ordinary memory points are red,\nand loops are orange.\n\n@param entry the entry being drawn\n\n@return the color with which it should be represented.", "Find all the values of the requested type.\n\n@param valueTypeToFind the type of the value to return.\n@param <T> the type of the value to find.\n@return the key, value pairs found.", "depth- first search for any module - just to check that the suggestion has any chance of delivering correct result" ]
public void update(StoreDefinition storeDef) { if(!useOneEnvPerStore) throw new VoldemortException("Memory foot print can be set only when using different environments per store"); String storeName = storeDef.getName(); Environment environment = environments.get(storeName); // change reservation amount of reserved store if(!unreservedStores.contains(environment) && storeDef.hasMemoryFootprint()) { EnvironmentMutableConfig mConfig = environment.getMutableConfig(); long currentCacheSize = mConfig.getCacheSize(); long newCacheSize = storeDef.getMemoryFootprintMB() * ByteUtils.BYTES_PER_MB; if(currentCacheSize != newCacheSize) { long newReservedCacheSize = this.reservedCacheSize - currentCacheSize + newCacheSize; // check that we leave a 'minimum' shared cache if((voldemortConfig.getBdbCacheSize() - newReservedCacheSize) < voldemortConfig.getBdbMinimumSharedCache()) { throw new StorageInitializationException("Reservation of " + storeDef.getMemoryFootprintMB() + " MB for store " + storeName + " violates minimum shared cache size of " + voldemortConfig.getBdbMinimumSharedCache()); } this.reservedCacheSize = newReservedCacheSize; adjustCacheSizes(); mConfig.setCacheSize(newCacheSize); environment.setMutableConfig(mConfig); logger.info("Setting private cache for store " + storeDef.getName() + " to " + newCacheSize); } } else { // we cannot support changing a reserved store to unreserved or vice // versa since the sharedCache param is not mutable throw new VoldemortException("Cannot switch between shared and private cache dynamically"); } }
[ "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition" ]
[ "Use this API to add dospolicy.", "Use this API to fetch all the dnssuffix resources that are configured on netscaler.", "Map the EventType.\n\n@param eventType the event type\n@return the event", "Get the known locations where the secure keyring can be located.\nLooks through known locations of the GNU PG secure keyring.\n\n@return The location of the PGP secure keyring if it was found,\nnull otherwise", "Create a MfClientHttpRequestFactory for adding the specified headers.\n\n@param requestFactory the basic request factory. It should be unmodified and just wrapped with\na proxy class.\n@param matchers The matchers.\n@param headers The headers.\n@return", "read CustomInfo list from table.\n\n@param eventId the event id\n@return the map", "Find the path to the first association in the property path.\n\n@param targetTypeName the entity with the property\n@param pathWithoutAlias the path to the property WITHOUT the alias\n@return the path to the first association or {@code null} if there isn't an association in the property path", "Provide Jersey client for the targeted Grapes server\n\n@return webResource", "Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument" ]
public List<MapRow> readTableConditional(Class<? extends TableReader> readerClass) throws IOException { List<MapRow> result; if (DatatypeConverter.getBoolean(m_stream)) { result = readTable(readerClass); } else { result = Collections.emptyList(); } return result; }
[ "Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present" ]
[ "Encodes the given URI query parameter with the given encoding.\n@param queryParam the query parameter to be encoded\n@param encoding the character encoding to encode to\n@return the encoded query parameter\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "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}", "Deletes the concrete representation of the specified object in the underlying\npersistence system. This method is intended for use in top-level api or\nby internal calls.\n\n@param obj The object to delete.\n@param ignoreReferences With this flag the automatic deletion/unlinking\nof references can be suppressed (independent of the used auto-delete setting in metadata),\nexcept {@link org.apache.ojb.broker.metadata.SuperReferenceDescriptor}\nthese kind of reference (descriptor) will always be performed. If <em>true</em>\nall \"normal\" referenced objects will be ignored, only the specified object is handled.\n@throws PersistenceBrokerException", "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance", "Abort and close the transaction. Calling abort abandons all persistent\nobject modifications and releases the associated locks. Aborting a\ntransaction does not restore the state of modified transient objects", "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "Check that the scope type is allowed by the stereotypes on the bean and\nthe bean type", "Processes the template for all index descriptors of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Create dummy groups for each concatenated report, and in the footer of\neach group adds the subreport." ]
public void notifySubscriberCallback(ContentNotification cn) { String content = fetchContentFromPublisher(cn); distributeContentToSubscribers(content, cn.getUrl()); }
[ "Output method responsible for sending the updated content to the Subscribers.\n\n@param cn" ]
[ "TestNG returns a compound thread ID that includes the thread name and its numeric ID,\nseparated by an 'at' sign. We only want to use the thread name as the ID is mostly\nunimportant and it takes up too much space in the generated report.\n@param threadId The compound thread ID.\n@return The thread name.", "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return", "This method writes predecessor data to an MSPDI file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param xml MSPDI task data\n@param mpx MPX task data", "Set an outline code value.\n\n@param index outline code index (1-10)\n@param value outline code value", "Gets all of the column names for a result meta data\n\n@param rsmd Resultset metadata\n@return Array of column names\n@throws Exception exception", "This loads plugin file information into a hash for lazy loading later on\n\n@param pluginDirectory path of plugin\n@throws Exception exception", "Move the SQL value to the next one for version processing.", "Add an executable \"post-run\" dependent for this model.\n\n@param executable the executable \"post-run\" dependent\n@return the key to be used as parameter to taskResult(string) method to retrieve result of executing\nthe executable \"post-run\" dependent", "Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the case where a hierarchical task\nstructure has been created programmatically in MPXJ." ]
public static void main(String[] args) { try { TreeFactory tf = new LabeledScoredTreeFactory(); Reader r = new BufferedReader(new InputStreamReader(new FileInputStream(args[0]), "UTF-8")); TreeReader tr = new PennTreeReader(r, tf); Tree t = tr.readTree(); while (t != null) { System.out.println(t); System.out.println(); t = tr.readTree(); } r.close(); } catch (IOException ioe) { ioe.printStackTrace(); } }
[ "Loads treebank data from first argument and prints it.\n\n@param args Array of command-line arguments: specifies a filename" ]
[ "Filter for public tweets on these languages.\n\n@param languages\nValid BCP 47 (http://tools.ietf.org/html/bcp47) language identifiers,\nand may represent any of the languages listed on Twitter's advanced search page\n(https://twitter.com/search-advanced), or \"und\" if no language could be detected.\nThese strings should NOT be url-encoded.\n@return this", "Backup the current version of the configuration to the versioned configuration history", "Add a number of days to the supplied date.\n\n@param date start date\n@param days number of days to add\n@return new date", "Notifies all listeners that the data is about to be loaded.", "This is a convenience method which allows all projects in an\nXER file to be read in a single pass.\n\n@param is input stream\n@param linkCrossProjectRelations add Relation links that cross ProjectFile boundaries\n@return list of ProjectFile instances\n@throws MPXJException", "Deletes all of the Directories in root that match the FileFilter\n\n@param root\n@param filter", "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs", "Retrieve timephased baseline cost. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present", "Extract where the destination is reshaped to match the extracted region\n@param src The original matrix which is to be copied. Not modified.\n@param srcX0 Start column.\n@param srcX1 Stop column+1.\n@param srcY0 Start row.\n@param srcY1 Stop row+1.\n@param dst Where the submatrix are stored. Modified." ]
public static base_responses add(nitro_service client, gslbsite resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { gslbsite addresources[] = new gslbsite[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new gslbsite(); addresources[i].sitename = resources[i].sitename; addresources[i].sitetype = resources[i].sitetype; addresources[i].siteipaddress = resources[i].siteipaddress; addresources[i].publicip = resources[i].publicip; addresources[i].metricexchange = resources[i].metricexchange; addresources[i].nwmetricexchange = resources[i].nwmetricexchange; addresources[i].sessionexchange = resources[i].sessionexchange; addresources[i].triggermonitor = resources[i].triggermonitor; addresources[i].parentsite = resources[i].parentsite; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add gslbsite resources." ]
[ "Select a List of characters from a CharSequence using a Collection\nto identify the indices to be selected.\n\n@param self a CharSequence\n@param indices a Collection of indices\n@return a String consisting of the characters at the given indices\n@since 1.0", "Split a module Id to get the module version\n@param moduleId\n@return String", "The range of velocities that a particle generated from this emitter can have.\n@param minV Minimum velocity that a particle can have\n@param maxV Maximum velocity that a particle can have", "Copy new grayscale data to the GPU texture. This one is also safe even\nin a non-GL thread. An updateGPU request on a non-GL thread will\nbe forwarded to the GL thread and be executed before main rendering happens.\n\nBe aware that updating a texture will affect any and all\n{@linkplain GVRMaterial materials} and/or post effects that use the texture!\n@param width width of grayscale image\n@param height height of grayscale image\n@param grayscaleData A byte array containing grayscale data\n\n@since 1.6.3", "Extract data for a single resource.\n\n@param row Synchro resource data", "Cleans up the subsystem children for the deployment and each sub-deployment resource.\n\n@param resource the subsystem resource to clean up", "Returns a compact representation of all of the tags the task has.\n\n@param task The task to get tags on.\n@return Request object", "Implement the persistence handler for storing the user properties.", "Use this API to fetch statistics of appfwpolicy_stats resource of given name ." ]
public float getNormalX(int vertex) { if (!hasNormals()) { throw new IllegalStateException("mesh has no normals"); } checkVertexIndexBounds(vertex); return m_normals.getFloat(vertex * 3 * SIZEOF_FLOAT); }
[ "Returns the x-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the x coordinate" ]
[ "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", "Marks the given list of statements for deletion. It is verified that the\ncurrent document actually contains the statements before doing so. This\ncheck is based on exact statement equality, including qualifier order and\nstatement id.\n\n@param currentDocument\nthe document with the current statements\n@param deleteStatements\nthe list of statements to be deleted", "Reads the categories assigned to a resource.\n\n@return map from the resource path (root path) to the assigned categories", "Sets the working directory.\n\n@param dir The directory\n@throws IOException If the directory does not exist or cannot be written/read", "Returns the compact task records for all tasks with the given tag.\nTasks can have more than one tag at a time.\n\n@param tag The tag to fetch tasks from.\n@return Request object", "Check whether vector addition works. This is pure Java code and should work.", "Initialize an instance of Widget Lib. It has to be done before any usage of library.\nThe application needs to hold onto the returned WidgetLib reference for as long as the\nlibrary is going to be used.\n@param gvrContext A valid {@link GVRContext} instance\n@param customPropertiesAsset An optional asset JSON file containing custom and overridden\nproperties for the application\n@return Instance of Widget library\n@throws InterruptedException\n@throws JSONException\n@throws NoSuchMethodException", "Returns current selenium version from JAR set in classpath.\n\n@return Version of Selenium.", "Fixed length fancy formatting for doubles. If possible decimal notation is used. If all the significant digits\ncan't be shown then it will switch to exponential notation. If not all the space is needed then it will\nbe filled in to ensure it has the specified length.\n\n@param value value being formatted\n@param format default format before exponential\n@param length Maximum number of characters it can take.\n@param significant Number of significant decimal digits to show at a minimum.\n@return formatted string" ]
private void logBlock(int blockIndex, int startIndex, int blockLength) { if (m_log != null) { m_log.println("Block Index: " + blockIndex); m_log.println("Length: " + blockLength + " (" + Integer.toHexString(blockLength) + ")"); m_log.println(); m_log.println(FastTrackUtility.hexdump(m_buffer, startIndex, blockLength, true, 16, "")); m_log.flush(); } }
[ "Log block data.\n\n@param blockIndex current block index\n@param startIndex start index\n@param blockLength length" ]
[ "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error.", "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names", "Set up arguments for each FieldDescriptor in an array.", "This is a generic function for retrieving any config value. The returned value\nis the one the server is operating with, no matter whether it comes from defaults\nor from the user-supplied configuration.\n\nThis function only provides access to configs which are deemed safe to share\npublicly (i.e.: not security-related configs). The list of configs which are\nconsidered off-limit can itself be configured via '{@value #RESTRICTED_CONFIGS}'.\n\n@param key config key for which to retrieve the value.\n@return the value for the requested config key, in String format.\nMay return null if the key exists and its value is explicitly set to null.\n@throws UndefinedPropertyException if the requested key does not exist in the config.\n@throws ConfigurationException if the requested key is not publicly available.", "Gets a property with a default value.\n@param key\nThe key string.\n@param defaultValue\nThe default value.\n@return The property string.", "Connects to the comm port and starts send and receive threads.\n@param serialPortName the port name to open\n@throws SerialInterfaceException when a connection error occurs.", "Very basic implementation of an inner join between two result sets.\n\n@param leftRows left result set\n@param leftColumn left foreign key column\n@param rightTable right table name\n@param rightRows right result set\n@param rightColumn right primary key column\n@return joined result set", "Use this API to fetch vpnclientlessaccesspolicy resource of given name .", "Helper method used to peel off spurious wrappings of DateTimeException\n\n@param e DateTimeException to peel\n\n@return DateTimeException that does not have another DateTimeException as its cause." ]
@PostConstruct public void init() { //init Bus and LifeCycle listeners if (bus != null && sendLifecycleEvent ) { ServerLifeCycleManager slcm = bus.getExtension(ServerLifeCycleManager.class); if (null != slcm) { ServiceListenerImpl svrListener = new ServiceListenerImpl(); svrListener.setSendLifecycleEvent(sendLifecycleEvent); svrListener.setQueue(queue); svrListener.setMonitoringServiceClient(monitoringServiceClient); slcm.registerListener(svrListener); } ClientLifeCycleManager clcm = bus.getExtension(ClientLifeCycleManager.class); if (null != clcm) { ClientListenerImpl cltListener = new ClientListenerImpl(); cltListener.setSendLifecycleEvent(sendLifecycleEvent); cltListener.setQueue(queue); cltListener.setMonitoringServiceClient(monitoringServiceClient); clcm.registerListener(cltListener); } } if(executorQueueSize == 0) { executor = Executors.newFixedThreadPool(this.executorPoolSize); }else{ executor = new ThreadPoolExecutor(executorPoolSize, executorPoolSize, 0, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(executorQueueSize), Executors.defaultThreadFactory(), new RejectedExecutionHandlerImpl()); } scheduler = new Timer(); scheduler.scheduleAtFixedRate(new TimerTask() { public void run() { sendEventsFromQueue(); } }, 0, getDefaultInterval()); }
[ "Instantiates a new event collector." ]
[ "Create a Date instance representing a specific time.\n\n@param hour hour 0-23\n@param minutes minutes 0-59\n@return new Date instance", "Sets the right padding for all cells in the table.\n@param paddingRight new padding, ignored if smaller than 0\n@return this to allow chaining", "Generates a set of excluded method names.\n\n@param methodNames method names\n@return set of method names", "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.", "Get a property as a float or throw an exception.\n\n@param key the property name", "Write a comma to the output stream if required.", "Stores a new certificate and its associated private key in the keystore.\n@param hostname\n@param cert\n@param privKey @throws KeyStoreException\n@throws CertificateException\n@throws NoSuchAlgorithmException", "loads a class using the name of the class", "Creates a window visually showing the matrix's state. Block means an element is zero.\nRed positive and blue negative. More intense the color larger the element's absolute value\nis.\n\n@param A A matrix.\n@param title Name of the window." ]
public boolean changeState(StateVertex nextState) { if (nextState == null) { LOGGER.info("nextState given is null"); return false; } LOGGER.debug("Trying to change to state: '{}' from: '{}'", nextState.getName(), currentState.getName()); if (stateFlowGraph.canGoTo(currentState, nextState)) { LOGGER.debug("Changed to state: '{}' from: '{}'", nextState.getName(), currentState.getName()); setCurrentState(nextState); return true; } else { LOGGER.info("Cannot go to state: '{}' from: '{}'", nextState.getName(), currentState.getName()); return false; } }
[ "Change the currentState to the nextState if possible. The next state should already be\npresent in the graph.\n\n@param nextState the next state.\n@return true if currentState is successfully changed." ]
[ "We have obtained waveform detail for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform detail\n@param detail the waveform detail which we retrieved", "Calculated the numeraire relative value of an underlying swap leg.\n\n@param model The Monte Carlo model.\n@param legSchedule The schedule of the leg.\n@param paysFloat If true a floating rate is payed.\n@param swaprate The swaprate. May be 0.0 for pure floating leg.\n@param notional The notional.\n@return The sum of the numeraire relative cash flows.\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Determines the partition ID that replicates the key on the given node.\n\n@param nodeId of the node\n@param key to look up.\n@return partitionId if found, otherwise null.", "sets the row reader class name for thie class descriptor", "Harvest any values that may have been returned during the execution\nof a procedure.\n\n@param proc the procedure descriptor that provides info about the procedure\nthat was invoked.\n@param obj the object that was persisted\n@param stmt the statement that was used to persist the object.\n\n@throws PersistenceBrokerSQLException if a problem occurs.", "Determines how many primary partitions each node within each zone should\nhave. The list of integers returned per zone is the same length as the\nnumber of nodes in that zone.\n\n@param nextCandidateCluster\n@param targetPartitionsPerZone\n@return A map of zoneId to list of target number of partitions per node\nwithin zone.", "Use this API to add sslcipher.", "This method recursively descends the directory structure, dumping\ndetails of any files it finds to the output file.\n\n@param pw Output PrintWriter\n@param dir DirectoryEntry to dump\n@param prefix prefix used to identify path to this object\n@param showData flag indicating if data is dumped, or just structure\n@param hex set to true if hex output is required\n@param indent indent used if displaying structure only\n@throws Exception Thrown on file read errors", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)" ]
public String getSearchJsonModel() throws IOException { DbSearch search = new DbSearch(); search.setArtifacts(new ArrayList<>()); search.setModules(new ArrayList<>()); return JsonUtils.serialize(search); }
[ "Returns an empty Search object in Json\n@return String\n@throws IOException" ]
[ "Set the depth of the cursor.\nThis is the length of the ray from the origin\nto the cursor.\n@param depth default cursor depth", "Extract data for a single predecessor.\n\n@param task parent task\n@param row Synchro predecessor data", "Try Oracle update batching and call sendBatch or revert to\nJDBC update batching.\n@param stmt the batched prepared statement about to be executed\n@return always <code>null</code> if Oracle update batching is used,\nsince it is impossible to dissolve total row count into distinct\nstatement counts. If JDBC update batching is used, an int array is\nreturned containing number of updated rows for each batched statement.\n@throws PlatformException upon JDBC failure", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Initializes the metadataCache for MetadataStore", "Retrieve the default mapping between MPXJ task fields and Primavera task field names.\n\n@return mapping", "Returns the text value of all of the elements in the collection.\n\n@return the text value of all the elements in the collection or null", "Merges a list of local and online dumps. For dumps available both online\nand locally, only the local version is included. The list is order with\nmost recent dump date first.\n\n@return a merged list of dump files", "capture center eye" ]
public String addClassification(String classificationType) { Metadata metadata = new Metadata().add(Metadata.CLASSIFICATION_KEY, classificationType); Metadata classification = this.createMetadata(Metadata.CLASSIFICATION_TEMPLATE_KEY, "enterprise", metadata); return classification.getString(Metadata.CLASSIFICATION_KEY); }
[ "Adds a metadata classification to the specified file.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type added to the file." ]
[ "Converts an update description BSON document from a MongoDB Change Event into an\nUpdateDescription object.\n\n@param document the\n@return the converted UpdateDescription", "Sets the name of the attribute group with which this attribute is associated.\n\n@param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null}\nif the attribute is not associated with a group.\n@return a builder that can be used to continue building the attribute definition", "Returns an iterable containing all the enterprise users that matches the filter and specifies which child fields\nto retrieve from the API.\n@param api the API connection to be used when retrieving the users.\n@param filterTerm used to filter the results to only users starting with this string in either the name or the\nlogin. Can be null to not filter the results.\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing all the enterprise users that matches the filter.", "Extract schema of the value field", "Shows the given step.\n\n@param step the step", "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>", "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result", "Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException", "Register custom filter types especially for serializer of specification json file" ]
public UriComponentsBuilder queryParams(MultiValueMap<String, String> params) { Assert.notNull(params, "'params' must not be null"); this.queryParams.putAll(params); return this; }
[ "Add the given query parameters.\n@param params the params\n@return this UriComponentsBuilder" ]
[ "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "Obtain collection of profiles\n\n@param model\n@return\n@throws Exception", "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)", "Parses int value and returns the provided default if the value can't be parsed.\n@param value the int to parse.\n@param defaultValue the default value.\n@return the parsed int, or the default value if parsing fails.", "Print currency.\n\n@param value currency value\n@return currency value", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "Create a Renderer getting a copy from the prototypes collection.\n\n@param content to render.\n@param parent used to inflate the view.\n@return a new renderer.", "Gets the host-ignore data for a slave host running the given version.\n\n@param major the kernel management API major version\n@param minor the kernel management API minor version\n@param micro the kernel management API micro version\n\n@return the host-ignore data, or {@code null} if there is no matching registration", "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs" ]
public static long count(nitro_service service, Long id) throws Exception{ bridgegroup_vlan_binding obj = new bridgegroup_vlan_binding(); obj.set_id(id); options option = new options(); option.set_count(true); bridgegroup_vlan_binding response[] = (bridgegroup_vlan_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
[ "Use this API to count bridgegroup_vlan_binding resources configued on NetScaler." ]
[ "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar. The\ncalendar used is the \"Standard\" calendar. If this calendar does not exist,\nand exception will be thrown.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Extract data for a single resource.\n\n@param row Synchro resource data", "Read data from the table. Return a reference to the current\ninstance to allow method chaining.\n\n@return reader instance", "Load the properties from the resource file if one is specified", "Transits a float property from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Create the metadata which gets send to the DC when registering.\n\n\n@param hostInfo the local host info\n@param productConfig the product config\n@param ignoredResourceRegistry registry of ignored resources\n@return the host info", "Notifies that a content item is inserted.\n\n@param position the position of the content item.", "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", "Check that the scope type is allowed by the stereotypes on the bean and\nthe bean type" ]
public static sslciphersuite[] get(nitro_service service, String ciphername[]) throws Exception{ if (ciphername !=null && ciphername.length>0) { sslciphersuite response[] = new sslciphersuite[ciphername.length]; sslciphersuite obj[] = new sslciphersuite[ciphername.length]; for (int i=0;i<ciphername.length;i++) { obj[i] = new sslciphersuite(); obj[i].set_ciphername(ciphername[i]); response[i] = (sslciphersuite) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch sslciphersuite resources of given names ." ]
[ "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type", "Adds a new task to this file. The task can have an optional message to include, and a due date.\n\n@param action the action the task assignee will be prompted to do.\n@param message an optional message to include with the task.\n@param dueAt the day at which this task is due.\n@return information about the newly added task.", "It is required that T be Serializable", "Cache key calculation.\n@param sql\n@param resultSetType\n@param resultSetConcurrency\n@return cache key", "Returns the 'Up' - vector of the camera coordinate system.\n\nThe returned vector is relative to the coordinate space defined by the\ncorresponding node.<p>\n\nThe 'right' vector of the camera coordinate system is the cross product\nof the up and lookAt vectors. The default value is 0|1|0. The vector\nmay be normalized, but it needn't.<p>\n\nThis method is part of the wrapped API (see {@link AiWrapperProvider}\nfor details on wrappers).<p>\n\nThe built-in behavior is to return a {@link AiVector}.\n\n@param wrapperProvider the wrapper provider (used for type inference)\n@return the 'Up' vector", "Returns the screen height in pixels\n\n@param context is the context to get the resources\n@return the screen height in pixels", "Returns true if the activity is a start milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone", "return either the first space or the first nbsp", "Validates the type" ]
public void deleteFile(String fileID) { URL url = FILE_INFO_URL_TEMPLATE.build(this.api.getBaseURL(), fileID); BoxAPIRequest request = new BoxAPIRequest(this.api, url, "DELETE"); BoxAPIResponse response = request.send(); response.disconnect(); }
[ "Permanently deletes a trashed file.\n@param fileID the ID of the trashed folder to permanently delete." ]
[ "Returns the total number of elements which are true.\n@return number of elements which are set to true", "Acquire a permit for a particular node id so as to allow rebalancing\n\n@param nodeId The id of the node for which we are acquiring a permit\n@return Returns true if permit acquired, false if the permit is already\nheld by someone", "Calculates a md5 hash for an url\n\nIf a passed in url is absent then this method will return absent as well\n\n@param url - an url to a soy template file\n@return - md5 checksum of a template file\n@throws IOException - in a case there is an IO error calculating md5 checksum", "Unchecks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already unchecked; {@code false} otherwise.", "Retrieves a byte value from the property data.\n\n@param type Type identifier\n@return byte value", "Returns true if the input is a vector\n@param a A matrix or vector\n@return true if it's a vector. Column or row.", "Use this API to update ntpserver resources.", "Use this API to fetch lbvserver_servicegroupmember_binding resources of given name .", "Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDigest the digest used to hash.\n@param path the file/directory we want to hash.\n@return the resulting hash.\n@throws IOException" ]
protected Element createImageElement(float x, float y, float width, float height, ImageResource resource) throws IOException { StringBuilder pstyle = new StringBuilder("position:absolute;"); pstyle.append("left:").append(x).append(UNIT).append(';'); pstyle.append("top:").append(y).append(UNIT).append(';'); pstyle.append("width:").append(width).append(UNIT).append(';'); pstyle.append("height:").append(height).append(UNIT).append(';'); //pstyle.append("border:1px solid red;"); Element el = doc.createElement("img"); el.setAttribute("style", pstyle.toString()); String imgSrc = config.getImageHandler().handleResource(resource); if (!disableImageData && !imgSrc.isEmpty()) el.setAttribute("src", imgSrc); else el.setAttribute("src", ""); return el; }
[ "Creates an element that represents an image drawn at the specified coordinates in the page.\n@param x the X coordinate of the image\n@param y the Y coordinate of the image\n@param width the width coordinate of the image\n@param height the height coordinate of the image\n@param type the image type: <code>\"png\"</code> or <code>\"jpeg\"</code>\n@param resource the image data depending on the specified type\n@return" ]
[ "Creates a non-binary media type with the given type, subtype, and UTF-8 encoding\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Authenticates the API connection by obtaining access and refresh tokens using the auth code that was obtained\nfrom the first half of OAuth.\n@param authCode the auth code obtained from the first half of the OAuth process.", "Optimized version of the Wagner & Fischer algorithm that only\nkeeps a single column in the matrix in memory at a time. It\nimplements the simple cutoff, but otherwise computes the entire\nmatrix. It is roughly twice as fast as the original function.", "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.", "Creates a directory at the given path if it does not exist yet and if the\ndirectory manager was not configured for read-only access.\n\n@param path\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Creates the actual path to the xml file of the module.", "Reads a \"date-time\" argument from the request.", "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd, while reporting the\nprogress to a ProgressListener.\n\n@param output the stream to where the file will be written.\n@param rangeStart the byte offset at which to start the download.\n@param rangeEnd the byte offset at which to stop the download.\n@param listener a listener for monitoring the download's progress." ]
public BeatGrid requestBeatGridFrom(final DataReference track) { for (BeatGrid cached : hotCache.values()) { if (cached.dataReference.equals(track)) { // Found a hot cue hit, use it. return cached; } } return requestBeatGridInternal(track, false); }
[ "Ask the specified player for the beat grid of the track in the specified slot with the specified rekordbox ID,\nfirst checking if we have a cache we can use instead.\n\n@param track uniquely identifies the track whose beat grid is desired\n\n@return the beat grid, if any" ]
[ "Adds a metadata classification to the specified file.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type added to the file.", "Returns an iterator equivalent to this iterator with all duplicated items removed\nby using the default comparator. The original iterator will become\nexhausted of elements after determining the unique values. A new iterator\nfor the unique values will be returned.\n\n@param self an Iterator\n@return the modified Iterator\n@since 1.5.5", "Retrieve the next available field.\n\n@return FieldType instance for the next available field", "Call with pathEntries lock taken", "Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException", "Returns formatted version of Iban.\n\n@return A string representing formatted Iban for printing.", "Writes this address as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.", "Use this API to add clusternodegroup.", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements." ]
public static base_responses add(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 addresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nspbr6(); addresources[i].name = resources[i].name; addresources[i].td = resources[i].td; addresources[i].action = resources[i].action; addresources[i].srcipv6 = resources[i].srcipv6; addresources[i].srcipop = resources[i].srcipop; addresources[i].srcipv6val = resources[i].srcipv6val; addresources[i].srcport = resources[i].srcport; addresources[i].srcportop = resources[i].srcportop; addresources[i].srcportval = resources[i].srcportval; addresources[i].destipv6 = resources[i].destipv6; addresources[i].destipop = resources[i].destipop; addresources[i].destipv6val = resources[i].destipv6val; addresources[i].destport = resources[i].destport; addresources[i].destportop = resources[i].destportop; addresources[i].destportval = resources[i].destportval; addresources[i].srcmac = resources[i].srcmac; addresources[i].protocol = resources[i].protocol; addresources[i].protocolnumber = resources[i].protocolnumber; addresources[i].vlan = resources[i].vlan; addresources[i].Interface = resources[i].Interface; addresources[i].priority = resources[i].priority; addresources[i].state = resources[i].state; addresources[i].msr = resources[i].msr; addresources[i].monitor = resources[i].monitor; addresources[i].nexthop = resources[i].nexthop; addresources[i].nexthopval = resources[i].nexthopval; addresources[i].nexthopvlan = resources[i].nexthopvlan; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add nspbr6 resources." ]
[ "Adds a table to this model.\n\n@param table The table", "Provides a collection of all the nodes in the tree\nusing a depth first traversal.\n\n@return the list of (depth-first) ordered nodes", "Joins with another IPv4 segment to produce a IPv6 segment.\n\n@param creator\n@param low\n@return", "Log error information", "Created a fresh CancelIndicator", "state chain management ops below", "get the result speech recognize and find match in strings file.\n\n@param speechResult", "Use this API to fetch Interface resource of given name .", "Set value for given object field.\n\n@param object object to be updated\n@param field field name\n@param value field value\n\n@throws NoSuchMethodException if property writer is not available\n@throws InvocationTargetException if property writer throws an exception\n@throws IllegalAccessException if property writer is inaccessible" ]
@Override public final String optString(final String key, final String defaultValue) { String result = optString(key); return result == null ? defaultValue : result; }
[ "Get a property as a string or defaultValue.\n\n@param key the property name\n@param defaultValue the default value" ]
[ "Returns any events for the given resource ID since the last sync token\n\n@param resource Globally unique identifier for the resource.\n@param sync Sync token provided by a previous call to the events API\n@return Request object", "Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.\n\n@param self an Object with an iterator returning its values\n@param defaultResult an Object that should be returned if all closure results are null\n@param closure a closure that returns a non-null value when processing should stop\n@return the first non-null result of the closure, otherwise the default value\n@since 1.7.5", "Creates a Bytes object by copying the value of the given String with a given charset", "Use this API to fetch appfwprofile_denyurl_binding resources of given name .", "Creates a producer method Web Bean\n\n@param method The underlying method abstraction\n@param declaringBean The declaring bean abstraction\n@param beanManager the current manager\n@return A producer Web Bean", "This method writes assignment data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Cleanup function to remove all allocated listeners", "Initializes a type\n\n@param name The name of the class\n@return The instance of the class. Returns a dummy if the class was not\nfound.", "Sets the underlying read timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#readTimeout(long, TimeUnit)" ]
public float DistanceTo(IntPoint anotherPoint) { float dx = this.x - anotherPoint.x; float dy = this.y - anotherPoint.y; return (float) Math.sqrt(dx * dx + dy * dy); }
[ "Calculate Euclidean distance between two points.\n\n@param anotherPoint Point to calculate distance to.\n@return Euclidean distance between this point and anotherPoint points." ]
[ "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Seeks forward or backwards to a particular holiday based on the current date\n\n@param holidayString The holiday to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0", "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text", "returns true if the primary key fields are valid for delete, else false.\nPK fields are valid if each of them contains a valid non-null value\n@param cld the ClassDescriptor\n@param obj the object\n@return boolean", "Guesses the best set to use at the specified index by looking at the surrounding sets. In general, characters in\nlower-numbered sets are more common, so we choose them if we can. If no good surrounding sets can be found, the default\nvalue returned is the first value from the valid set.\n\n@param index the current index\n@param length the maximum length to look at\n@param valid the valid sets for this index\n@return the best set to use at the specified index", "Read metadata by populating an instance of the target class\nusing SAXParser.", "Takes the specified object and converts the argument to a String.\n\n@param arg The object to convert\n@return A String representation of the argument.", "Returns all information related to a single texture.\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture information" ]
public static Bounds getSymmetricBounds(int dim, double l, double u) { double [] L = new double[dim]; double [] U = new double[dim]; for(int i=0; i<dim; i++) { L[i] = l; U[i] = u; } return new Bounds(L, U); }
[ "Gets bounds which are identical for all dimensions.\n\n@param dim The number of dimensions.\n@param l The value of all lower bounds.\n@param u The value of all upper bounds.\n@return The new bounds." ]
[ "Remove a key from the given map.\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param key the key to remove.\n@return the removed value, or <code>null</code> if the key was not\npresent in the map.\n@since 2.15", "Set the numeric code. Setting it to -1 search for currencies that have no numeric code.\n\n@param codes the numeric codes.\n@return the query for chaining.", "Stop finding waveforms for all active players.", "Put the core auto-code algorithm here so an external class can call it", "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.", "Creates new row in table\n@param broker\n@param field\n@param sequenceName\n@param maxKey\n@throws Exception", "Use this API to add dnstxtrec.", "Checks if a newly created action wants to write output to stdout, and\nlogs a warning if other actions are doing the same.\n\n@param newAction\nthe new action to be checked", "Determine if a CharSequence can be parsed as a BigDecimal.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigDecimal(String)\n@since 1.8.2" ]
private <T> T getBeanOrNull(String name, Class<T> requiredType) { if (name == null || !applicationContext.containsBean(name)) { return null; } else { try { return applicationContext.getBean(name, requiredType); } catch (BeansException be) { log.error("Error during getBeanOrNull, not rethrown, " + be.getMessage(), be); return null; } } }
[ "Get a bean from the application context. Returns null if the bean does not exist.\n@param name name of bean\n@param requiredType type of bean\n@return the bean or null" ]
[ "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix.", "Load the properties from the resource file if one is specified", "Get the last date to keep logs from, by a given current date.\n@param currentDate the date of today\n@return the last date to keep log files from.", "Gets the registration point that been associated with the registration for the longest period.\n\n@return the initial registration point, or {@code null} if there are no longer any registration points", "So we will follow rfc 1035 and in addition allow the underscore.", "Find the style filter that must be applied to this feature.\n\n@param feature\nfeature to find the style for\n@param styles\nstyle filters to select from\n@return a style filter", "Load all string recognize.", "Helper method to create a Dao object without having to define a class. Dao classes are supposed to be convenient\nbut if you have a lot of classes, they can seem to be a pain.\n\n<p>\n<b>NOTE:</b> You should use {@link DaoManager#createDao(ConnectionSource, DatabaseTableConfig)} instead of this\nmethod so you won't have to create the DAO multiple times.\n</p>", "Checks if the DPI value is already set for GeoServer." ]
public synchronized void submitOperation(int requestId, AsyncOperation operation) { if(this.operations.containsKey(requestId)) throw new VoldemortException("Request " + requestId + " already submitted to the system"); this.operations.put(requestId, operation); scheduler.scheduleNow(operation); logger.debug("Handling async operation " + requestId); }
[ "Submit a operations. Throw a run time exception if the operations is\nalready submitted\n\n@param operation The asynchronous operations to submit\n@param requestId Id of the request" ]
[ "flushes log queue, this actually writes combined log message into system log", "Provides a type-specific Meta class for the given TinyType.\n\n@param <T> the TinyType class type\n@param candidate the TinyType class to obtain a Meta for\n@return a Meta implementation suitable for the candidate\n@throws IllegalArgumentException for null or a non-TinyType", "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails.", "Parse a boolean.\n\n@param value boolean\n@return Boolean value", "Deletes this collaboration whitelist.", "Add a greeting to the specified guestbook.", "Normalize the list of selected categories to fit for the ids of the tree items.", "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", "trim \"act.\" from conf keys" ]
Map<UUID, UUID> getActivityCodes(Activity activity) { Map<UUID, UUID> map = m_activityCodeCache.get(activity); if (map == null) { map = new HashMap<UUID, UUID>(); m_activityCodeCache.put(activity, map); for (CodeAssignment ca : activity.getCodeAssignment()) { UUID code = getUUID(ca.getCodeUuid(), ca.getCode()); UUID value = getUUID(ca.getValueUuid(), ca.getValue()); map.put(code, value); } } return map; }
[ "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs" ]
[ "Set the classpath for loading the driver.\n\n@param classpath the classpath", "Invert by solving for against an identity matrix.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Calculate start dates for a monthly relative recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Process schedule options from SCHEDOPTIONS. This table only seems to exist\nin XER files, not P6 databases.", "Removes the specified object in index from the array.\n\n@param index The index to remove.", "Refresh the layout element.", "Gets the event type from message.\n\n@param message the message\n@return the event type", "This method is used to push install referrer via UTM source, medium & campaign parameters\n@param source The UTM source parameter\n@param medium The UTM medium parameter\n@param campaign The UTM campaign parameter", "Returns the master mode's editor state for editing a bundle with descriptor.\n@return the master mode's editor state for editing a bundle with descriptor." ]
public static boolean decomposeSafe(DecompositionInterface<ZMatrixRMaj> decomposition, ZMatrixRMaj a) { if( decomposition.inputModified() ) { a = a.copy(); } return decomposition.decompose(a); }
[ "Decomposes the input matrix 'a' and makes sure it isn't modified." ]
[ "Converts a vector into a quaternion.\nUsed for the direction of spot and directional lights\nCalled upon initialization and updates to those vectors\n\n@param d", "Removes the specified type from the frame.", "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return", "Prints out the interceptor chain in a format that is easy to read. It\nalso filters out instances of the DemoInterceptor so you can see what the\nchain would look like in a normal invokation.\n\n@param chain", "Account for key being fetched.\n\n@param key", "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'Store' object corresponding to the store name specified in\nthe REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Message Event used to write the response / exception", "A loop driver for applying operations to all primary ClassNodes in\nour AST. Automatically skips units that have already been processed\nthrough the current phase.", "Checks that index is valid an throw an exception if not.\n\n@param type the type\n@param index the index to check", "This functions reads SAM flowId and sets it\nas message property for subsequent store in CallContext\n@param message" ]
public Object moveToNextValue(Object val) throws SQLException { if (dataPersister == null) { return null; } else { return dataPersister.moveToNextValue(val); } }
[ "Move the SQL value to the next one for version processing." ]
[ "Sets the size of a UIObject", "Adds a Statement.\n\n@param rank\nrank of the statement\n@param subject\nrdf resource that refers to the statement", "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder.", "Returns a source excerpt of a JavaDoc link to a method on this type.", "Internal method that adds a metadata provider to the set associated with a particular hash key, creating the\nset if needed.\n\n@param key the hashKey identifying the media for which this provider can offer metadata (or the empty string if\nit can offer metadata for all media)\n@param provider the metadata provider to be added to the active set", "replace the counter for K1-index o by new counter c", "Save Job Record.\n\n@param entry the entry", "Creates a curator built using the given zookeeper connection string and timeout", "Merges a list of local and online dumps. For dumps available both online\nand locally, only the local version is included. The list is order with\nmost recent dump date first.\n\n@return a merged list of dump files" ]
private RawGcsCreationToken put(final GcsRestCreationToken token, ByteBuffer chunk, final boolean isFinalChunk, long timeoutMillis) throws IOException { final int length = chunk.remaining(); HTTPRequest req = createPutRequest(token, chunk, isFinalChunk, timeoutMillis, length); HTTPRequestInfo info = new HTTPRequestInfo(req); HTTPResponse response; try { response = urlfetch.fetch(req); } catch (IOException e) { throw createIOException(info, e); } return handlePutResponse(token, isFinalChunk, length, info, response); }
[ "Write the provided chunk at the offset specified in the token. If finalChunk is set, the file\nwill be closed." ]
[ "Used to add exceptions to the calendar. The MPX standard defines\na limit of 250 exceptions per calendar.\n\n@param fromDate exception start date\n@param toDate exception end date\n@return ProjectCalendarException instance", "Gets the element at the given index.\n\n@param index the index\n@return the element\n\n@throws IndexOutOfBoundsException if the index is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>)", "Returns an array of non null elements from the source array.\n\n@param tArray the source array\n@return the array", "returns a sorted array of enum constants", "Returns if a request should be retried based on the retry count, current response,\nand the current strategy.\n\n@param retryCount The current retry attempt count.\n@param response The exception that caused the retry conditions to occur.\n@return true if the request should be retried; false otherwise.", "Wait until a scan of the table completes without seeing notifications AND without the Oracle\nissuing any timestamps during the scan.", "Similar to masking, checks that the range resulting from the bitwise or is contiguous.\n\n@param maskValue\n@param segmentPrefixLength\n@return\n@throws PrefixLenException", "Gets the health memory.\n\n@return the health memory", "remove drag support from the given Component.\n@param c the Component to remove" ]
@Deprecated public ClientConfig setThreadIdleTime(long threadIdleTime, TimeUnit unit) { this.threadIdleMs = unit.toMillis(threadIdleTime); return this; }
[ "The amount of time to keep an idle client thread alive\n\n@param threadIdleTime" ]
[ "Returns the integer value o the given belief", "checkpoint the transaction", "Generates a column for the given field and adds it to the table.\n\n@param fieldDef The field\n@param tableDef The table\n@return The column def", "Upload a file and attach it to a task\n\n@param task Globally unique identifier for the task.\n@param fileContent Content of the file to be uploaded\n@param fileName Name of the file to be uploaded\n@param fileType MIME type of the file to be uploaded\n@return Request object", "Groups the current element according to the value\n\n@param answer the map containing the results\n@param element the element to be placed\n@param value the value according to which the element will be placed\n@since 1.5.0", "Use this API to fetch appfwprofile_xmlvalidationurl_binding resources of given name .", "Use this API to unset the properties of lbsipparameters resource.\nProperties that need to be unset are specified in args array.", "Triggers collapse of the parent.", "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder" ]
public static UndeployDescription of(final DeploymentDescription deploymentDescription) { Assert.checkNotNullParam("deploymentDescription", deploymentDescription); return of(deploymentDescription.getName()).addServerGroups(deploymentDescription.getServerGroups()); }
[ "Creates a new undeploy description.\n\n@param deploymentDescription the deployment description to copy\n\n@return the description" ]
[ "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix", "Retrieve a boolean value.\n\n@param name column name\n@return boolean value", "Use this API to fetch servicegroupbindings resource of given name .", "Reads resource data from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Finds all the resource names contained in this file system folder.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param scanRootLocation The root location of the scan on the classpath, without leading or trailing slashes.\n@param folder The folder to look for resources under on disk.\n@return The resource names;", "Sets an element in at the specified index.", "Helper method that searches an object array for the occurence of a\nspecific object based on reference equality\n@param searchFor the object to search for\n@param searchIn the array to search in\n@return true if the object is found, otherwise false", "Use this API to fetch authenticationradiuspolicy_vpnvserver_binding resources of given name .", "Read an optional Date value form a JSON value.\n@param val the JSON value that should represent the Date as long value in a string.\n@return the Date from the JSON or null if reading the date fails." ]
public CollectionRequest<Project> findByTeam(String team) { String path = String.format("/teams/%s/projects", team); return new CollectionRequest<Project>(this, Project.class, path, "GET"); }
[ "Returns the compact project records for all projects in the team.\n\n@param team The team to find projects in.\n@return Request object" ]
[ "performs a DELETE operation against RDBMS.\n@param cld ClassDescriptor providing mapping information.\n@param obj The object to be deleted.", "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null", "Trade the request token for an access token, this is step three of authorization.\n@param oAuthRequestToken\nthis is the token returned by the {@link AuthInterface#getRequestToken} call.\n@param verifier", "Multiple of gradient windwos per masc relation of x y\n\n@return int[]", "Enter information into the hidden input field.\n\n@param input The input to enter into the hidden field.", "Updates the given integer belief\nadding the given integer\nnewBelief = previousBelief + givenValue\n\n@param String - the belief name\n@param the value to add", "Use this API to reset Interface.", "DISPATCHING - COMMANDS", "Return true if the expression is a constructor call on any of the named classes, with any number of parameters.\n@param expression - the expression\n@param classNames - the possible List of class names\n@return as described" ]
public static String replaceAnyOf(String value, String chars, char replacement) { char[] tmp = new char[value.length()]; int pos = 0; for (int ix = 0; ix < tmp.length; ix++) { char ch = value.charAt(ix); if (chars.indexOf(ch) != -1) tmp[pos++] = replacement; else tmp[pos++] = ch; } return new String(tmp, 0, tmp.length); }
[ "Replaces all characters in the second parameter found in the first\nparameter with the final character.\n@param value the string to replace characters in\n@param chars the characters to replace\n@param replacement the character to insert as replacement" ]
[ "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "Print a class's relations", "Try to link the declaration with the importerService referenced by the ServiceReference,.\nreturn true if they have been link together, false otherwise.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<S> of S\n@return true if they have been link together, false otherwise.", "Get unique values form the array.\n\n@param values Array of values.\n@return Unique values.", "Validates a String to be a valid name to be used in MongoDB for a collection name.\n\n@param collectionName", "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", "Reads and sets the next feed in the stream.", "Indicates if a set of types are all proxyable\n\n@param types The types to test\n@return True if proxyable, false otherwise", "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write" ]
public TimephasedWorkContainer getBaselineWork(ResourceAssignment assignment, ProjectCalendar calendar, TimephasedWorkNormaliser normaliser, byte[] data, boolean raw) { TimephasedWorkContainer result = null; if (data != null && data.length > 0) { LinkedList<TimephasedWork> list = null; //System.out.println(ByteArrayHelper.hexdump(data, false)); int index = 8; // 8 byte header int blockSize = 40; double previousCumulativeWorkPerformedInMinutes = 0; Date blockStartDate = MPPUtility.getTimestampFromTenths(data, index + 36); index += blockSize; TimephasedWork work = null; while (index + blockSize <= data.length) { double cumulativeWorkInMinutes = (double) ((long) MPPUtility.getDouble(data, index + 20)) / 1000; if (!Duration.durationValueEquals(cumulativeWorkInMinutes, previousCumulativeWorkPerformedInMinutes)) { //double unknownWorkThisPeriodInMinutes = ((long) MPPUtility.getDouble(data, index + 0)) / 1000; double normalActualWorkThisPeriodInMinutes = ((double) MPPUtility.getInt(data, index + 8)) / 10; double normalRemainingWorkThisPeriodInMinutes = ((double) MPPUtility.getInt(data, index + 28)) / 10; double workThisPeriodInMinutes = cumulativeWorkInMinutes - previousCumulativeWorkPerformedInMinutes; double overtimeWorkThisPeriodInMinutes = workThisPeriodInMinutes - (normalActualWorkThisPeriodInMinutes + normalRemainingWorkThisPeriodInMinutes); double overtimeFactor = overtimeWorkThisPeriodInMinutes / (normalActualWorkThisPeriodInMinutes + normalRemainingWorkThisPeriodInMinutes); double normalWorkPerDayInMinutes = 480; double overtimeWorkPerDayInMinutes = normalWorkPerDayInMinutes * overtimeFactor; work = new TimephasedWork(); work.setFinish(MPPUtility.getTimestampFromTenths(data, index + 16)); work.setStart(blockStartDate); work.setTotalAmount(Duration.getInstance(workThisPeriodInMinutes, TimeUnit.MINUTES)); work.setAmountPerDay(Duration.getInstance(normalWorkPerDayInMinutes + overtimeWorkPerDayInMinutes, TimeUnit.MINUTES)); previousCumulativeWorkPerformedInMinutes = cumulativeWorkInMinutes; if (list == null) { list = new LinkedList<TimephasedWork>(); } list.add(work); //System.out.println(work); } blockStartDate = MPPUtility.getTimestampFromTenths(data, index + 36); index += blockSize; } if (list != null) { if (work != null) { work.setFinish(assignment.getFinish()); } result = new DefaultTimephasedWorkContainer(calendar, normaliser, list, raw); } } return result; }
[ "Extracts baseline work from the MPP file for a specific baseline.\nReturns null if no baseline work is present, otherwise returns\na list of timephased work items.\n\n@param assignment parent assignment\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephased baseline work data block\n@param raw flag indicating if this data is to be treated as raw\n@return timephased work" ]
[ "Helper to read an optional String value list.\n@param path The XML path of the element to read.\n@return The String list stored in the XML, or <code>null</code> if the value could not be read.", "Check that the scope type is allowed by the stereotypes on the bean and\nthe bean type", "Orders first by word, then by lemma, then by tag.\n\n@param wordLemmaTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)", "Deletes this collaboration.", "You should use the server's time here. Otherwise you might get unexpected results.\n\nThe typical use case is:\n\n\n<pre>\nHTTPResponse response = ....\nHTTPRequest request = createRequest();\nrequest = request.conditionals(new Conditionals().ifModifiedSince(response.getLastModified());\n</pre>\n\n@param time the time to check.\n@return the conditionals with the If-Modified-Since date set.", "Start the drag of the pivot object.\n\n@param dragMe Scene object with a rigid body.\n@param relX rel position in x-axis.\n@param relY rel position in y-axis.\n@param relZ rel position in z-axis.\n\n@return Pivot instance if success, otherwise returns null.", "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", "Blocking function which completes the migration of one store\n\n@param storeName The name of the store\n@param adminClient Admin client used to initiate the copying of data\n@param stealInfo The steal information\n@param isReadOnlyStore Boolean indicating that this is a read-only store", "Exception handler if we are unable to parse a json value into a java representation\n\n@param expectedType Name of the expected Type\n@param type Type of the json node\n@return SpinJsonDataFormatException" ]
public static LuaCondition isNull(LuaValue value) { LuaAstExpression expression; if (value instanceof LuaLocal) { expression = new LuaAstLocal(((LuaLocal) value).getName()); } else { throw new IllegalArgumentException("Unexpected value type: " + value.getClass().getName()); } return new LuaCondition(new LuaAstNot(expression)); }
[ "IS NULL predicate\n@param value the value for which to check\n@return a {@link LuaCondition} instance" ]
[ "Notifies that multiple header items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Extracts the column from a matrix.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Returns an text table containing the matrix of Strings passed in.\nThe first dimension of the matrix should represent the rows, and the\nsecond dimension the columns.", "Prints the data of one property to the given output. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param propertyRecord\nthe data to write\n@param propertyIdValue\nthe property that the data refers to", "Retrieve a specific row by index number, creating a blank row if this row does not exist.\n\n@param index index number\n@return MapRow instance", "Use this API to reset Interface.", "Assign FK value of main object with PK values of the reference object.\n\n@param obj real object with reference (proxy) object (or real object with set FK values on insert)\n@param cld {@link ClassDescriptor} of the real object\n@param rds An {@link ObjectReferenceDescriptor} of real object.\n@param insert Show if \"linking\" is done while insert or update.", "Ensure the current throughput levels for the tracked operation does not\nexceed set quota limits. Throws an exception if exceeded quota.\n\n@param quotaKey\n@param trackedOp", "Recursively scan the provided path and return a list of all Java packages contained therein." ]