query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
private void handleFailedSendDataRequest(SerialMessage originalMessage) { ZWaveNode node = this.getNode(originalMessage.getMessageNode()); if (node.getNodeStage() == NodeStage.NODEBUILDINFO_DEAD) return; if (!node.isListening() && originalMessage.getPriority() != SerialMessage.SerialMessagePriority.Low) { ZWaveWakeUpCommandClass wakeUpCommandClass = (ZWaveWakeUpCommandClass)node.getCommandClass(ZWaveCommandClass.CommandClass.WAKE_UP); if (wakeUpCommandClass != null) { wakeUpCommandClass.setAwake(false); wakeUpCommandClass.putInWakeUpQueue(originalMessage); //it's a battery operated device, place in wake-up queue. return; } } else if (!node.isListening() && originalMessage.getPriority() == SerialMessage.SerialMessagePriority.Low) return; node.incrementResendCount(); logger.error("Got an error while sending data to node {}. Resending message.", node.getNodeId()); this.sendData(originalMessage); }
[ "Handles a failed SendData request. This can either be because of the stick actively reporting it\nor because of a time-out of the transaction in the send thread.\n@param originalMessage the original message that was sent" ]
[ "Use this API to update nd6ravariables resources.", "Roll back to the previous configuration.\n\n@throws GeomajasException\nindicates an unlikely problem with the rollback (see cause)", "Sets the promotion state.\n\n<P>INFO: This method updates automatically all the contained artifacts.\n\n@param promoted boolean", "Returns the finish date for this resource assignment.\n\n@return finish date", "Get the list of supported resolutions for the layer. Each resolution is specified in map units per pixel.\n\n@return list of supported resolutions\n@deprecated use {@link #getZoomLevels()}", "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", "Sets the left padding character for all cells in the table.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "Sets the yearly absolute date.\n\n@param date yearly absolute date", "Support the range subscript operator for CharSequence with IntRange\n\n@param text a CharSequence\n@param range an IntRange\n@return the subsequence CharSequence\n@since 1.0" ]
public void updateEmbeddedColumn(GraphDatabaseService executionEngine, Object[] keyValues, String embeddedColumn, Object value) { String query = getUpdateEmbeddedColumnQuery( keyValues, embeddedColumn ); Map<String, Object> params = params( ArrayHelper.concat( keyValues, value, value ) ); executionEngine.execute( query, params ); }
[ "Update the value of an embedded node property.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param keyValues the columns representing the identifier in the entity owning the embedded\n@param embeddedColumn the column on the embedded node (dot-separated properties)\n@param value the new value for the property" ]
[ "Returns all the pixels for the image\n\n@return an array of pixels for this image", "Use this API to fetch appflowpolicy_binding resource of given name .", "Returns the filename of the resource with extension.\n\n@return Filename of the GVRAndroidResource. May return null if the\nresource is not associated with any file", "Returns all base types.\n\n@return An iterator of the base types", "Calls a function script associated with this component.\nThe function is called even if the component\nis not enabled and not attached to a scene object.\n@param funcName name of script function to call.\n@param args function parameters as an array of objects.\n@return true if function was called, false if no such function\n@see org.gearvrf.script.GVRScriptFile#invokeFunction(String, Object[]) invokeFunction", "add a foreign key field", "This method writes assignment data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Use this API to fetch auditnslogpolicy_authenticationvserver_binding resources of given name .", "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" ]
public int updateRaw(DatabaseConnection connection, String statement, String[] arguments) throws SQLException { logger.debug("running raw update statement: {}", statement); if (arguments.length > 0) { // need to do the (Object) cast to force args to be a single object logger.trace("update arguments: {}", (Object) arguments); } CompiledStatement compiledStatement = connection.compileStatement(statement, StatementType.UPDATE, noFieldTypes, DatabaseConnection.DEFAULT_RESULT_FLAGS, false); try { assignStatementArguments(compiledStatement, arguments); return compiledStatement.runUpdate(); } finally { IOUtils.closeThrowSqlException(compiledStatement, "compiled statement"); } }
[ "Return the number of rows affected." ]
[ "Moves to the next step.", "Byte run automaton map.\n\n@param automatonMap the automaton map\n@return the map", "Propagates the names of all facets to each single facet.", "Sets the duration for the animation to be played.\n\n@param start the animation will start playing from the specified time\n@param end the animation will stop playing at the specified time\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code start} is either negative value, greater than\n{@code end} value or {@code end} is greater than duration", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "Check whether the URL contains one of the patterns.\n\n@param uri URI\n@param patterns possible patterns\n@return true when URL contains one of the patterns", "Use this API to add clusternodegroup.", "Returns the overtime cost of this resource assignment.\n\n@return cost", "Method is called by spring and verifies that there is only one plugin per URI scheme." ]
public static base_responses add(nitro_service client, onlinkipv6prefix resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { onlinkipv6prefix addresources[] = new onlinkipv6prefix[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new onlinkipv6prefix(); addresources[i].ipv6prefix = resources[i].ipv6prefix; addresources[i].onlinkprefix = resources[i].onlinkprefix; addresources[i].autonomusprefix = resources[i].autonomusprefix; addresources[i].depricateprefix = resources[i].depricateprefix; addresources[i].decrementprefixlifetimes = resources[i].decrementprefixlifetimes; addresources[i].prefixvalidelifetime = resources[i].prefixvalidelifetime; addresources[i].prefixpreferredlifetime = resources[i].prefixpreferredlifetime; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add onlinkipv6prefix resources." ]
[ "Create a HashSet with the given initial values.\n\n@param values The values\n@param <T> The type.", "Checks String to see if the parameter is null.\n@param paramValue Object that will be checked if null.\n@return this.true if the parameter that is being checked is not null", "Writes task predecessor links to a PM XML file.\n\n@param task MPXJ Task instance", "Get an Iterator based on the ReportQuery\n\n@param query\n@return Iterator", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "Function to perform backward pooling", "Returns the classpath for executable jar.", "a helper method to enable the keyboardUtil for a specific activity\nor disable it. note this will cause some frame drops because of the\nlistener.\n\n@param activity\n@param enable", "except for the ones that make the content appear under the system bars." ]
public final PJsonObject optJSONObject(final String key) { final JSONObject val = this.obj.optJSONObject(key); return val != null ? new PJsonObject(this, val, key) : null; }
[ "Get a property as a json object or null.\n\n@param key the property name" ]
[ "end class SAXErrorHandler", "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", "Returns a color for a given absolute number that is to be shown on the\nmap.\n\n@param value\n@return", "Log modified request\n\n@param httpMethodProxyRequest\n@param httpServletResponse\n@param history", "Checks if a given number is in the range of a float.\n\n@param number\na number which should be in the range of a float (positive or negative)\n\n@see java.lang.Float#MIN_VALUE\n@see java.lang.Float#MAX_VALUE\n\n@return number as a float", "Gets the index of a ExpandableWrapper within the helper item list based on\nthe index of the ExpandableWrapper.\n\n@param parentPosition The index of the parent in the list of parents\n@return The index of the parent in the merged list of children and parents", "Enqueues a message for sending on the send thread.\n@param serialMessage the serial message to enqueue.", "Helper method to check that we got the right size packet.\n\n@param packet a packet that has been received\n@param expectedLength the number of bytes we expect it to contain\n@param name the description of the packet in case we need to report issues with the length\n\n@return {@code true} if enough bytes were received to process the packet", "Find the path to use .\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved path of '/' as a fallback." ]
public static List<CompiledAutomaton> createAutomata(String prefix, String regexp, Map<String, Automaton> automatonMap) throws IOException { List<CompiledAutomaton> list = new ArrayList<>(); Automaton automatonRegexp = null; if (regexp != null) { RegExp re = new RegExp(prefix + MtasToken.DELIMITER + regexp + "\u0000*"); automatonRegexp = re.toAutomaton(); } int step = 500; List<String> keyList = new ArrayList<>(automatonMap.keySet()); for (int i = 0; i < keyList.size(); i += step) { int localStep = step; boolean success = false; CompiledAutomaton compiledAutomaton = null; while (!success) { success = true; int next = Math.min(keyList.size(), i + localStep); List<Automaton> listAutomaton = new ArrayList<>(); for (int j = i; j < next; j++) { listAutomaton.add(automatonMap.get(keyList.get(j))); } Automaton automatonList = Operations.union(listAutomaton); Automaton automaton; if (automatonRegexp != null) { automaton = Operations.intersection(automatonList, automatonRegexp); } else { automaton = automatonList; } try { compiledAutomaton = new CompiledAutomaton(automaton); } catch (TooComplexToDeterminizeException e) { log.debug(e); success = false; if (localStep > 1) { localStep /= 2; } else { throw new IOException("TooComplexToDeterminizeException"); } } } list.add(compiledAutomaton); } return list; }
[ "Creates the automata.\n\n@param prefix the prefix\n@param regexp the regexp\n@param automatonMap the automaton map\n@return the list\n@throws IOException Signals that an I/O exception has occurred." ]
[ "Handle http worker response.\n\n@param respOnSingleReq\nthe my response\n@throws Exception\nthe exception", "compute Sinh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Get the number of views, comments and favorites on a photostream for a given date.\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@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"", "Update properties for a specific client id\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@param active - true false depending on if the client should be active\n@param reset - true to reset the state of a client(clears settings for all paths and disables the client)\n@return\n@throws Exception", "Gets the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.\n@return the metadata returned from the server.", "Parse the URI and get all the parameters in map form. Query name -&gt; List of Query values.\n\n@param rawQuery query portion of the uri to analyze.", "Serialize the Document object.\n\n@param dom the document to serialize\n@return the serialized dom String", "Ordinary noise function.\n\n@param x X Value.\n@param y Y Value.\n@return" ]
public static spilloverpolicy get(nitro_service service, String name) throws Exception{ spilloverpolicy obj = new spilloverpolicy(); obj.set_name(name); spilloverpolicy response = (spilloverpolicy) obj.get_resource(service); return response; }
[ "Use this API to fetch spilloverpolicy resource of given name ." ]
[ "Parse JSON parameters from this request.\n\n@param jsonRequest The request in the JSON format.\n@return CmsSpellcheckingRequest object that contains parsed parameters or null, if JSON input is not well\ndefined.", "Returns the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.\n\n@param namespace the namespace referring to the undo collection.\n@return the undo collection representing the given namespace for recording documents that\nmay need to be reverted after a system failure.", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "Converts the http entity to string. If entity is null, returns empty string.\n@param entity\n@return\n@throws IOException", "Adds a class to the unit.", "Retrieves a ProjectReader instance which can read a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectReader instance", "In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.\n\n@param f the file containing the external vault configuration as generated by the vault tool\n@return the vault config", "Reads a single resource from a ConceptDraw PROJECT file.\n\n@param resource ConceptDraw PROJECT resource", "Byte run automaton map.\n\n@param automatonMap the automaton map\n@return the map" ]
public final File getJasperCompilation(final Configuration configuration) { File jasperCompilation = new File(getWorking(configuration), "jasper-bin"); createIfMissing(jasperCompilation, "Jasper Compilation"); return jasperCompilation; }
[ "Get the directory where the compiled jasper reports should be put.\n\n@param configuration the configuration for the current app." ]
[ "Return all valid maturities for a given moneyness.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@return The maturities as year fraction from reference date.", "dispatch to gravity state", "Throw fault.\n\n@param code the fault code\n@param message the message\n@param t the throwable type\n@throws PutEventsFault", "Returns the context the view is running in, through which it can\naccess the current theme, resources, etc.\n\n@return The view's Context.", "Obtain the path ID for a profile\n\n@param identifier Can be the path ID, or friendly name\n@param profileId\n@return\n@throws Exception", "Deletes an object from the database.\nIt must be executed in the context of an open transaction.\nIf the object is not persistent, then ObjectNotPersistent is thrown.\nIf the transaction in which this method is executed commits,\nthen the object is removed from the database.\nIf the transaction aborts,\nthen the deletePersistent operation is considered not to have been executed,\nand the target object is again in the database.\n@param\tobject\tThe object to delete.", "Creates the stats items.\n\n@param statsType\nthe stats type\n@return the sorted set\n@throws IOException\nSignals that an I/O exception has occurred.", "Appends the given string to the given StringBuilder, replacing '&amp;',\n'&lt;' and '&gt;' by their respective HTML entities.\n\n@param out\nThe StringBuilder to append to.\n@param value\nThe string to append.\n@param offset\nThe character offset into value from where to start", "Returns the site path for the edited bundle file.\n\n@return the site path for the edited bundle file." ]
private boolean matchesFingerprint(byte[] buffer, Pattern fingerprint) { return fingerprint.matcher(m_charset == null ? new String(buffer) : new String(buffer, m_charset)).matches(); }
[ "Determine if the buffer, when expressed as text, matches a fingerprint regular expression.\n\n@param buffer bytes from file\n@param fingerprint fingerprint regular expression\n@return true if the file matches the fingerprint" ]
[ "Remove a management request handler factory from this context.\n\n@param instance the request handler factory\n@return {@code true} if the instance was removed, {@code false} otherwise", "Use this API to add nsip6 resources.", "Process a calendar exception.\n\n@param calendar parent calendar\n@param row calendar exception data", "Get list of asynchronous operations on this node. By default, only the\npending operations are returned.\n\n@param showCompleted Show completed operations\n@return A list of operation ids.", "Read a FastTrack file.\n\n@param file FastTrack file", "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.", "Random string from string array\n\n@param s Array\n@return String", "If the given result is not cudnnStatus.CUDNN_STATUS_SUCCESS\nand exceptions have been enabled, this method will throw a\nCudaException with an error message that corresponds to the\ngiven result code. Otherwise, the given result is simply\nreturned.\n\n@param result The result to check\n@return The result that was given as the parameter\n@throws CudaException If exceptions have been enabled and\nthe given result code is not cudnnStatus.CUDNN_STATUS_SUCCESS", "For internal use! This method creates real new PB instances" ]
private void addGroup(List<Token> group, List<List<Token>> groups) { if(group.isEmpty()) return; // remove trailing tokens that should be ignored while(!group.isEmpty() && IGNORED_TRAILING_TOKENS.contains( group.get(group.size() - 1).getType())) { group.remove(group.size() - 1); } // if the group still has some tokens left, we'll add it to our list of groups if(!group.isEmpty()) { groups.add(group); } }
[ "Cleans up the given group and adds it to the list of groups if still valid\n@param group\n@param groups" ]
[ "Extract predecessor data.", "Returns a File object whose path is the expected user directory.\nDoes not create or check for existence.\n@param prefix\n@param suffix\n@param parent\n@return", "Converts a duration to duration time units.\n\n@param value duration value\n@return duration time units", "Use this API to flush nssimpleacl.", "Checks to see if every value in the matrix is the specified value.\n\n@param mat The matrix being tested. Not modified.\n@param val Checks to see if every element in the matrix has this value.\n@param tol True if all the elements are within this tolerance.\n@return true if the test passes.", "Use this API to delete nssimpleacl.", "Determine if a job name and job type are valid.\n@param jobName the name of the job\n@param jobType the class of the job\n@throws IllegalArgumentException if the name or type are invalid", "Create a new remote proxy controller.\n\n@param client the transactional protocol client\n@param pathAddress the path address\n@param addressTranslator the address translator\n@param targetKernelVersion the {@link ModelVersion} of the kernel management API exposed by the proxied process\n@return the proxy controller", "This method extracts byte arrays from the embedded object data\nand converts them into RTFEmbeddedObject instances, which\nit then adds to the supplied list.\n\n@param offset offset into the RTF document\n@param text RTF document\n@param objects destination for RTFEmbeddedObject instances\n@return new offset into the RTF document" ]
public GVRSceneObject startDrag(GVRSceneObject dragMe, float relX, float relY, float relZ) { synchronized (mLock) { if (mCursorController == null) { Log.w(TAG, "Physics drag failed: Cursor controller not found!"); return null; } if (mDragMe != null) { Log.w(TAG, "Physics drag failed: Previous drag wasn't finished!"); return null; } if (mPivotObject == null) { mPivotObject = onCreatePivotObject(mContext); } mDragMe = dragMe; GVRTransform t = dragMe.getTransform(); /* It is not possible to drag a rigid body directly, we need a pivot object. We are using the pivot object's position as pivot of the dragging's physics constraint. */ mPivotObject.getTransform().setPosition(t.getPositionX() + relX, t.getPositionY() + relY, t.getPositionZ() + relZ); mCursorController.startDrag(mPivotObject); } return mPivotObject; }
[ "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." ]
[ "Use this API to fetch the statistics of all authenticationvserver_stats resources that are configured on netscaler.", "Get the multicast socket address.\n\n@return the multicast address", "Extract data for a single task.\n\n@param parent task parent\n@param row Synchro task data", "Read a single resource assignment.\n\n@param resource MPXJ resource\n@param assignment Phoenix assignment", "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", "Returns a correlation matrix which has rank &lt; n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.", "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes", "Adds folders to perform the search in.\n@param folders Folders to search in.", "Validates that we only have allowable filters.\n\n<p>Note that equality and ancestor filters are allowed, however they may result in\ninefficient sharding." ]
public static BoxRetentionPolicyAssignment.Info createAssignmentToEnterprise(BoxAPIConnection api, String policyID) { return createAssignment(api, policyID, new JsonObject().add("type", TYPE_ENTERPRISE), null); }
[ "Assigns retention policy with givenID to the enterprise.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@return info about created assignment." ]
[ "Use this API to update snmpuser resources.", "Returns the instance.\n@return InterceptorFactory", "The max possible width can be calculated doing the sum of of the inner cells and its totals\n@param crosstabColumn\n@return", "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record", "Use this API to unset the properties of filterhtmlinjectionparameter resource.\nProperties that need to be unset are specified in args array.", "Reset the combination generator.", "returns a sorted array of nested classes and interfaces", "The transaction will be executed with caching enabled. However, all newly cached values will be discarded as soon\nas the transaction is over.\n@since 2.1", "Unlink the specified reference from this object.\nMore info see OJB doc.\n\n@param obj Object with reference\n@param ord the ObjectReferenceDescriptor of the reference\n@param insert flag signals insert operation" ]
public static RgbaColor fromHex(String hex) { if (hex.length() == 0 || hex.charAt(0) != '#') return getDefaultColor(); // #rgb if (hex.length() == 4) { return new RgbaColor(parseHex(hex, 1, 2), parseHex(hex, 2, 3), parseHex(hex, 3, 4)); } // #rrggbb else if (hex.length() == 7) { return new RgbaColor(parseHex(hex, 1, 3), parseHex(hex, 3, 5), parseHex(hex, 5, 7)); } else { return getDefaultColor(); } }
[ "Parses an RgbaColor from a hexadecimal value.\n\n@return returns the parsed color" ]
[ "Guess whether given file is binary. Just checks for anything under 0x09.", "Prepare a parallel HTTP GET 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", "Adds a collection of listeners to the current project.\n\n@param listeners collection of listeners", "Constructs a full capability name from a static base name and a dynamic element.\n\n@param baseName the base name. Cannot be {@code null}\n@param dynamicNameElement the dynamic portion of the name. Cannot be {@code null}\n@return the full capability name. Will not return {@code null}", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return", "Use this API to delete sslcertkey resources of given names.", "Get the next available ordinal for a method ID\n\n@param methodId ID of method\n@return value of next ordinal\n@throws Exception exception", "Cleans the object key.\n\n@param name Name of the object key\n@return The {@link ValidationResult} object containing the object,\nand the error code(if any)", "Read in the configuration properties." ]
public static Timer getNamedTimer(String timerName, int todoFlags) { return getNamedTimer(timerName, todoFlags, Thread.currentThread() .getId()); }
[ "Get a timer of the given string name and todos for the current thread. If\nno such timer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return timer" ]
[ "waits for all async mutations that were added before this was called to be flushed. Does not\nwait for async mutations added after call.", "Modify a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder", "Returns the logger name that should be used in the log manager.\n\n@param name the name of the logger from the resource\n\n@return the name of the logger", "Returns an encrypted token combined with answer.", "returns the XmlCapable id associated with the literal.\nOJB maintains a RepositoryTags table that provides\na mapping from xml-tags to XmlCapable ids.\n\n@param literal the literal to lookup\n@return the int value representing the XmlCapable\n\n@throws MetadataException if no literal was found in tags mapping", "Sets top and bottom padding for all cells in the row.\n@param padding new padding for top and bottom, ignored if smaller than 0\n@return this to allow chaining", "Gets the first group of a regex\n@param pattern Pattern\n@param str String to find\n@return the matching group", "Extract note text.\n\n@param row task data\n@return note text", "Decodes a signed request, returning the payload of the signed request as a specified type.\n@param signedRequest the value of the signed_request parameter sent by Facebook.\n@param type the type to bind the signed_request to.\n@param <T> the Java type to bind the signed_request to.\n@return the payload of the signed request as an object\n@throws SignedRequestException if there is an error decoding the signed request" ]
private Query.Builder createScatterQuery(Query query, int numSplits) { // TODO(pcostello): We can potentially support better splits with equality filters in our query // if there exists a composite index on property, __scatter__, __key__. Until an API for // metadata exists, this isn't possible. Note that ancestor and inequality queries fall into // the same category. Query.Builder scatterPointQuery = Query.newBuilder(); scatterPointQuery.addAllKind(query.getKindList()); scatterPointQuery.addOrder(DatastoreHelper.makeOrder( DatastoreHelper.SCATTER_PROPERTY_NAME, Direction.ASCENDING)); // There is a split containing entities before and after each scatter entity: // ||---*------*------*------*------*------*------*---|| = scatter entity // If we represent each split as a region before a scatter entity, there is an extra region // following the last scatter point. Thus, we do not need the scatter entities for the last // region. scatterPointQuery.getLimitBuilder().setValue((numSplits - 1) * KEYS_PER_SPLIT); scatterPointQuery.addProjection(Projection.newBuilder().setProperty( PropertyReference.newBuilder().setName("__key__"))); return scatterPointQuery; }
[ "Creates a scatter query from the given user query\n\n@param query the user's query.\n@param numSplits the number of splits to create." ]
[ "Log unexpected column structure.", "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids", "We have received an update that invalidates the beat grid for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no beat grid for the associated player", "Send an empty request using a standard HTTP connection.", "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", "Complete both operations and commands.", "Creates a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix.", "Returns the primary message codewords for mode 3.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "Set whether the WMS tiles should be cached for later use. This implies that the WMS tiles will be proxied.\n\n@param useCache true when request needs to be cached\n@since 1.9.0" ]
@Override public synchronized void stop(final StopContext context) { final boolean shutdownServers = runningModeControl.getRestartMode() == RestartMode.SERVERS; if (shutdownServers) { Runnable task = new Runnable() { @Override public void run() { try { serverInventory.shutdown(true, -1, true); // TODO graceful shutdown serverInventory = null; // client.getValue().setServerInventory(null); } finally { serverCallback.getValue().setCallbackHandler(null); context.complete(); } } }; try { executorService.getValue().execute(task); } catch (RejectedExecutionException e) { task.run(); } finally { context.asynchronous(); } } else { // We have to set the shutdown flag in any case serverInventory.shutdown(false, -1, true); serverInventory = null; } }
[ "Stops all servers.\n\n{@inheritDoc}" ]
[ "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", "Apply the remote read domain model result.\n\n@param result the domain model result\n@return whether it was applied successfully or not", "Process a text-based PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance", "Use this API to fetch all the dbdbprofile resources that are configured on netscaler.", "A specific, existing custom field can be deleted by making a DELETE request on the URL for that custom field.\n\nReturns an empty data record.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Checks to see if matrix 'a' is the same as this matrix within the specified\ntolerance.\n\n@param a The matrix it is being compared against.\n@param tol How similar they must be to be equals.\n@return If they are equal within tolerance of each other.", "Use this API to fetch appfwprofile_safeobject_binding resources of given name .", "This method determines whether the given date falls in the range of\ndates covered by this exception. Note that this method assumes that both\nthe start and end date of this exception have been set.\n\n@param date Date to be tested\n@return Boolean value", "Use this API to fetch all the gslbservice resources that are configured on netscaler." ]
public boolean computeDirect( DMatrixRMaj A ) { initPower(A); boolean converged = false; for( int i = 0; i < maxIterations && !converged; i++ ) { // q0.print(); CommonOps_DDRM.mult(A,q0,q1); double s = NormOps_DDRM.normPInf(q1); CommonOps_DDRM.divide(q1,s,q2); converged = checkConverged(A); } return converged; }
[ "This method computes the eigen vector with the largest eigen value by using the\ndirect power method. This technique is the easiest to implement, but the slowest to converge.\nWorks only if all the eigenvalues are real.\n\n@param A The matrix. Not modified.\n@return If it converged or not." ]
[ "Use this API to fetch all the ipv6 resources that are configured on netscaler.", "Use this API to fetch auditnslogpolicy_authenticationvserver_binding resources of given name .", "Retrieve a timestamp field.\n\n@param dateName field containing the date component\n@param timeName field containing the time component\n@return Date instance", "Method to service public recording APIs\n\n@param op Operation being tracked\n@param timeNS Duration of operation\n@param numEmptyResponses Number of empty responses being sent back,\ni.e.: requested keys for which there were no values (GET and GET_ALL only)\n@param valueSize Size in bytes of the value\n@param keySize Size in bytes of the key\n@param getAllAggregateRequests Total of amount of keys requested in the operation (GET_ALL only)", "Returns a JSONObject keyed with the lastId retrieved and a value of a JSONArray of the retrieved JSONObject events\n\n@param table the table to read from\n@return JSONObject containing the max row ID and a JSONArray of the JSONObject events or null", "Stops listening. Safe to call when already stopped. Ignored on devices\nwithout appropriate hardware.", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Read an element which contains only a single list attribute of a given\ntype, returning it as an array.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@param type the value type class\n@param <T> the value type\n@return the value list as an array\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements.", "Call commit on the underlying connection." ]
public Task<Void> sendResetPasswordEmail(@NonNull final String email) { return dispatcher.dispatchTask( new Callable<Void>() { @Override public Void call() { sendResetPasswordEmailInternal(email); return null; } }); }
[ "Sends a user a password reset email for the given email.\n\n@param email the email of the user.\n@return A {@link Task} that completes when the reqest request completes/fails." ]
[ "set custom response for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise", "Given a list of store definitions return a set of store names\n\n@param storeDefList The list of store definitions\n@return Returns a set of store names", "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance", "Wait until a scan of the table completes without seeing notifications AND without the Oracle\nissuing any timestamps during the scan.", "Replace a single value at the appropriate location in the existing value array.\n@param index - location in the array list\n@param newValue - the new String", "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", "Overridden to skip some symbolizers.", "Binding view holder with payloads is used to handle partial changes in item.", "Extracts value from map if given value is null.\n@param value current value\n@param props properties to extract value from\n@param key property name to extract\n@return initial value or value extracted from map" ]
public <G extends T> RendererBuilder<T> bind(Class<G> clazz, Renderer<? extends G> prototype) { if (clazz == null || prototype == null) { throw new IllegalArgumentException( "The binding RecyclerView binding can't be configured using null instances"); } prototypes.add(prototype); binding.put(clazz, prototype.getClass()); return this; }
[ "Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance." ]
[ "Convert a name into initials.\n\n@param name source name\n@return initials", "Delete a path recursively, not throwing Exception if it fails or if the path is null.\n@param path a Path pointing to a file or a directory that may not exists anymore.", "Check to see whether a packet starts with the standard header bytes, followed by a known byte identifying it.\nIf so, return the kind of packet that has been recognized.\n\n@param packet a packet that has just been received\n@param port the port on which the packet has been received\n\n@return the type of packet that was recognized, or {@code null} if the packet was not recognized", "Get a property as a array or throw exception.\n\n@param key the property name", "Fetches a list of available photo licenses for Flickr.\n\nThis method does not require authentication.\n\n@return A collection of License objects\n@throws FlickrException", "Returns an iterator that iterates over all elements greater or equal to key in ascending order\n\n@param key key\n@return iterator", "Serialize an object with Json\n@param obj Object\n@return String\n@throws IOException", "Returns a new intern odmg-transaction for the current database.", "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task" ]
private void deliverDatabaseUpdate(SlotReference slot, Database database, boolean available) { for (final DatabaseListener listener : getDatabaseListeners()) { try { if (available) { listener.databaseMounted(slot, database); } else { listener.databaseUnmounted(slot, database); } } catch (Throwable t) { logger.warn("Problem delivering rekordbox database availability update to listener", t); } } }
[ "Send a database announcement to all registered listeners.\n\n@param slot the media slot whose database availability has changed\n@param database the database whose relevance has changed\n@param available if {@code} true, the database is newly available, otherwise it is no longer relevant" ]
[ "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.", "Performs a HTTP PUT request, saves an attachment.\n\n@return {@link Response}", "use the design parameters to compute the constraint equation to get the value", "Retrieve from the parent pom the path to the modules of the project", "Get prototype name.\n\n@return prototype name", "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map", "Retrieve an activity status.\n\n@param mpxj MPXJ Task instance\n@return activity status", "returns an array containing values for all the Objects attribute\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Finds all variables in the context with the given names, and also attaches all WindupFreeMarkerMethods from all addons into the map.\n\nThis allows external addons to extend the capabilities in the freemarker reporting system." ]
public synchronized int getPartitionStoreMoves() { int count = 0; for (List<Integer> entry : storeToPartitionIds.values()) count += entry.size(); return count; }
[ "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task." ]
[ "convolution data type", "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.", "Checks the component type of the given array against the expected component type.\n\n@param array\nthe array to be checked. May not be <code>null</code>.\n@param expectedComponentType\nthe expected component type of the array. May not be <code>null</code>.\n@return the unchanged array.\n@throws ArrayStoreException\nif the expected runtime {@code componentType} does not match the actual runtime component type.", "Get the photos for the specified group pool, optionally filtering by taf.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param groupId\nThe group ID\n@param userId\nThe user ID (may be null)\n@param tags\nThe optional tags (may be null)\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page (0 to ignore)\n@param page\nThe page offset (0 to ignore)\n@return A Collection of Photo objects\n@throws FlickrException", "Extracts the row from a matrix.\n@param a Input matrix\n@param row Which row is to be extracted\n@param out output. Storage for the extracted row. If null then a new vector will be returned.\n@return The extracted row.", "Adds a property to report design, this properties are mostly used by\nexporters to know if any specific configuration is needed\n\n@param name\n@param value\n@return A Dynamic Report Builder", "This method is used to initiate a release staging process using the Artifactory Release Staging API.", "Notifies that multiple content items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Creates a curator built using the given zookeeper connection string and timeout" ]
private static void attachToDecor(Activity activity, MenuDrawer menuDrawer) { ViewGroup decorView = (ViewGroup) activity.getWindow().getDecorView(); ViewGroup decorChild = (ViewGroup) decorView.getChildAt(0); decorView.removeAllViews(); decorView.addView(menuDrawer, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); menuDrawer.mContentContainer.addView(decorChild, decorChild.getLayoutParams()); }
[ "Attaches the menu drawer to the window." ]
[ "Configure if you want this collapsible container to\naccordion its child elements or use expandable.", "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.", "Reset the crawler to its initial state.", "Consumes a produced result. Calls every transformer in sequence, then\ncalls every dataWriter in sequence.\n\n@param initialVars a map containing the initial variables assignments\n@return the number of lines written", "Assign float value to inputOutput SFFloat field named speed.\nNote that our implementation with ExoPlayer that pitch and speed will be set to the same value.\n@param newValue", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "Returns an array of all endpoints\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param filters filters to apply to endpoints\n@return Collection of endpoints\n@throws Exception exception", "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>", "Calculate the file to compile a jasper report template to.\n\n@param configuration the configuration for the current app.\n@param jasperFileXml the jasper report template in xml format.\n@param extension the extension of the compiled report template.\n@param logger the logger to log errors to if an occur." ]
synchronized int storeObject(JSONObject obj, Table table) { if (!this.belowMemThreshold()) { Logger.v("There is not enough space left on the device to store data, data discarded"); return DB_OUT_OF_MEMORY_ERROR; } final String tableName = table.getName(); Cursor cursor = null; int count = DB_UPDATE_ERROR; //noinspection TryFinallyCanBeTryWithResources try { final SQLiteDatabase db = dbHelper.getWritableDatabase(); final ContentValues cv = new ContentValues(); cv.put(KEY_DATA, obj.toString()); cv.put(KEY_CREATED_AT, System.currentTimeMillis()); db.insert(tableName, null, cv); cursor = db.rawQuery("SELECT COUNT(*) FROM " + tableName, null); cursor.moveToFirst(); count = cursor.getInt(0); } catch (final SQLiteException e) { getConfigLogger().verbose("Error adding data to table " + tableName + " Recreating DB"); if (cursor != null) { cursor.close(); cursor = null; } dbHelper.deleteDatabase(); } finally { if (cursor != null) { cursor.close(); } dbHelper.close(); } return count; }
[ "Adds a JSON string to the DB.\n\n@param obj the JSON to record\n@param table the table to insert into\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR" ]
[ "Check if the current node is part of routing request based on cluster.xml\nor throw an exception.\n\n@param key The key we are checking\n@param routingStrategy The routing strategy\n@param currentNode Current node", "Adds the contents of a Java package to this JAR.\n\n@param clazz a class whose package we wish to add to the JAR.\n@param filter a filter to select particular classes\n@return {@code this}", "Should the URI be cached?\n\n@param requestUri request URI\n@return true when caching is needed", "Formats a date or a time according to the local conventions.\n\nSince ReadablePartials don't support all fields, we fill in any blanks\nneeded for formatting by using the epoch (1970-01-01T00:00:00Z).\n\nSee {@link android.text.format.DateUtils#formatDateTime} for full docs.\n\n@param context the context is required only if the time is shown\n@param time a point in time\n@param flags a bit mask of formatting options\n@return a string containing the formatted date/time.", "Use this API to delete appfwlearningdata.", "Use this API to fetch vpnvserver_auditnslogpolicy_binding resources of given name .", "Clears the handler hierarchy.", "Use this API to update gslbservice.", "called per frame of animation to update the camera position" ]
public void writeLine(String pattern, Object... parameters) { String line = (parameters == null || parameters.length == 0) ? pattern : String.format(pattern, parameters); lines.add(0, line); // we'll write bottom to top, then purge unwritten // lines from end updateHUD(); }
[ "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern" ]
[ "Provides a ready to use diff update for our adapter based on the implementation of the\nstandard equals method from Object.\n\n@param newList to refresh our content", "Set whether we should obtain color versions of waveforms and previews when they are available. This will only\naffect waveforms loaded after the setting has been changed. If this changes the setting, and we were running,\nstop and restart in order to flush and reload the correct waveform versions.\n\n@param preferColor if {@code true}, the full-color versions of waveforms will be requested, if {@code false}\nonly the older blue versions will be retrieved", "Arbitrarily resolve the inconsistency by choosing the first object if\nthere is one.\n\n@param values The list of objects\n@return A single value, if one exists, taken from the input list.", "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener", "Validate the header signature.\n\n@param input The input to read the signature from\n@throws IOException If any read problems occur", "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed as Integer or null if failOnException", "Use this API to fetch nsacl6 resource of given name .", "Requests the waveform detail for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform detail is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Store the char in the internal buffer" ]
@Override public T getById(Object id) { return context.getFramed().getFramedVertex(this.type, id); }
[ "Returns the vertex with given ID framed into given interface." ]
[ "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "static expansion helpers", "Given a date represented by a Date instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param date Date instance representing the date\n@param canonicalTime Date instance representing the time of day\n@return new Date instance with the required time set", "Given an array of variable names, returns an Xml String\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@param dataMap\n@return values in Xml format", "Wrap a simple attribute def as list.\n\n@param def the attribute definition\n@return the list attribute def", "Creates updateable version of capability registry that on publish pushes all changes to main registry\nthis is used to create context local registry that only on completion commits changes to main registry\n\n@return writable registry", "Use this API to fetch filtered set of gslbservice resources.\nset the filter parameter values in filtervalue object.", "checks if the triangle is not re-entrant", "Retrieve a work week which applies to this date.\n\n@param date target date\n@return work week, or null if none match this date" ]
public int getCount(Class target) { PersistenceBroker broker = ((HasBroker) odmg.currentTransaction()).getBroker(); int result = broker.getCount(new QueryByCriteria(target)); return result; }
[ "Return the count of all objects found\nfor given class, using the PB-api within\nODMG - this may change in further versions." ]
[ "Read an individual remark type from a Gantt Designer file.\n\n@param remark remark type", "Try to reconnect to a started server.", "Logs all properties", "Read an optional JSON array.\n@param json the JSON Object that has the array as element\n@param key the key for the array in the provided JSON object\n@return the array or null if reading the array fails.", "Calculate the first argument raised to the power of the second.\nThis method only supports non-negative powers.\n@param value The number to be raised.\n@param power The exponent (must be positive).\n@return {@code value} raised to {@code power}.", "A static method that provides an easy way to create a list of a\ncertain parametric type.\nThis static constructor works better with generics.\n\n@param list The list to pad\n@param padding The padding element (may be null)\n@return The padded list", "Use this API to export appfwlearningdata resources.", "Computes the cross product of v1 and v2 and places the result in this\nvector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "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" ]
synchronized boolean doReConnect() throws IOException { // In case we are still connected, test the connection and see if we can reuse it if(connectionManager.isConnected()) { try { final Future<Long> result = channelHandler.executeRequest(ManagementPingRequest.INSTANCE, null).getResult(); result.get(15, TimeUnit.SECONDS); // Hmm, perhaps 15 is already too much return true; } catch (Exception e) { ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to ping the host-controller, going to reconnect"); } // Disconnect - the HC might have closed the connection without us noticing and is asking for a reconnect final Connection connection = connectionManager.getConnection(); StreamUtils.safeClose(connection); if(connection != null) { try { // Wait for the connection to be closed connection.awaitClosed(); } catch (InterruptedException e) { throw new InterruptedIOException(); } } } boolean ok = false; final Connection connection = connectionManager.connect(); try { // Reconnect to the host-controller final ActiveOperation<Boolean, Void> result = channelHandler.executeRequest(new ServerReconnectRequest(), null); try { boolean inSync = result.getResult().get(); ok = true; reconnectRunner = null; return inSync; } catch (ExecutionException e) { throw new IOException(e); } catch (InterruptedException e) { throw new InterruptedIOException(); } } finally { if(!ok) { StreamUtils.safeClose(connection); } } }
[ "Reconnect to the HC.\n\n@return whether the server is still in sync\n@throws IOException" ]
[ "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform preview, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Create a new thread\n\n@param name The name of the thread\n@param runnable The work for the thread to do\n@param daemon Should the thread block JVM shutdown?\n@return The unstarted thread", "Use this API to fetch all the dnssuffix resources that are configured on netscaler.", "Goes through all the RO Stores in the plan and swaps it\n\n@param swappedStoreNames Names of stores already swapped\n@param useSwappedStoreNames Swap only the previously swapped stores (\nHappens during error )", "Performs a matrix inversion operations that takes advantage of the special\nproperties of a covariance matrix.\n\n@param cov A covariance matrix. Not modified.\n@param cov_inv The inverse of cov. Modified.\n@return true if it could invert the matrix false if it could not.", "Returns the start of this resource assignment.\n\n@return start date", "Serialize this `AppDescriptor` and output byte array\n\n@return\nserialize this `AppDescriptor` into byte array", "Writes the specified double to the stream, formatted according to the format specified in the constructor.\n\n@param d the double to write to the stream\n@return this writer\n@throws IOException if an I/O error occurs" ]
private int cleanupSegmentsToMaintainSize(final Log log) throws IOException { if (logRetentionSize < 0 || log.size() < logRetentionSize) return 0; List<LogSegment> toBeDeleted = log.markDeletedWhile(new LogSegmentFilter() { long diff = log.size() - logRetentionSize; public boolean filter(LogSegment segment) { diff -= segment.size(); return diff >= 0; } }); return deleteSegments(log, toBeDeleted); }
[ "Runs through the log removing segments until the size of the log is at least\nlogRetentionSize bytes in size\n\n@throws IOException" ]
[ "Adds a file to your assembly but automatically genarates the name of the file.\n\n@param inputStream {@link InputStream} the file to be uploaded.", "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object", "This method lists all resource assignments defined in the file.\n\n@param file MPX file", "Set the week day the event should take place.\n@param dayString the day as string.", "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance", "Move the SQL value to the next one for version processing.", "This method removes all RTF formatting from a given piece of text.\n\n@param text Text from which the RTF formatting is to be removed.\n@return Plain text", "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of base calendars", "If the `invokerClass` specified is singleton, or without field or all fields are\nstateless, then return an instance of the invoker class. Otherwise, return null\n@param invokerClass the invoker class\n@param app the app\n@return an instance of the invokerClass or `null` if invoker class is stateful class" ]
public static final String printFinishDateTime(Date value) { if (value != null) { value = DateHelper.addDays(value, 1); } return (value == null ? null : DATE_FORMAT.get().format(value)); }
[ "Retrieve a finish date time in the form required by Phoenix.\n\n@param value Date instance\n@return formatted date time" ]
[ "Derives the OJB platform to use for a database that is connected via a url using the specified\nsubprotocol, and where the specified jdbc driver is used.\n\n@param jdbcSubProtocol The JDBC subprotocol used to connect to the database\n@param jdbcDriver The JDBC driver used to connect to the database\n@return The platform identifier or <code>null</code> if no platform could be found", "Gets whether the given server can be updated.\n\n@param server the id of the server. Cannot be <code>null</code>\n\n@return <code>true</code> if the server can be updated; <code>false</code>\nif the update should be cancelled\n\n@throws IllegalStateException if this policy is not expecting a request\nto update the given server", "Creates a real valued diagonal matrix of the specified type", "Get object by identity. First lookup among objects registered in the\ntransaction, then in persistent storage.\n@param id The identity\n@return The object\n@throws PersistenceBrokerException", "Sets left and right padding for all cells in the table.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining", "This method is provided to allow an absolute period of time\nrepresented by start and end dates into a duration in working\ndays based on this calendar instance. This method takes account\nof any exceptions defined for this calendar.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return", "Returns all categories that are direct children of the current main category.\n\n@return all categories that are direct children of the current main category.", "returns a Logger.\n\n@param loggerName the name of the Logger\n@return Logger the returned Logger" ]
public CRFDatum<List<String>, CRFLabel> makeDatum(List<IN> info, int loc, edu.stanford.nlp.sequences.FeatureFactory<IN> featureFactory) { pad.set(AnswerAnnotation.class, flags.backgroundSymbol); PaddedList<IN> pInfo = new PaddedList<IN>(info, pad); ArrayList<List<String>> features = new ArrayList<List<String>>(); // for (int i = 0; i < windowSize; i++) { // List featuresC = new ArrayList(); // for (int j = 0; j < FeatureFactory.win[i].length; j++) { // featuresC.addAll(featureFactory.features(info, loc, // FeatureFactory.win[i][j])); // } // features.add(featuresC); // } Collection<Clique> done = new HashSet<Clique>(); for (int i = 0; i < windowSize; i++) { List<String> featuresC = new ArrayList<String>(); List<Clique> windowCliques = FeatureFactory.getCliques(i, 0); windowCliques.removeAll(done); done.addAll(windowCliques); for (Clique c : windowCliques) { featuresC.addAll(featureFactory.getCliqueFeatures(pInfo, loc, c)); //todo useless copy because of typing reasons } features.add(featuresC); } int[] labels = new int[windowSize]; for (int i = 0; i < windowSize; i++) { String answer = pInfo.get(loc + i - windowSize + 1).get(AnswerAnnotation.class); labels[i] = classIndex.indexOf(answer); } printFeatureLists(pInfo.get(loc), features); CRFDatum<List<String>, CRFLabel> d = new CRFDatum<List<String>, CRFLabel>(features, new CRFLabel(labels)); // System.err.println(d); return d; }
[ "Makes a CRFDatum by producing features and a label from input data at a\nspecific position, using the provided factory.\n\n@param info\nThe input data\n@param loc\nThe position to build a datum at\n@param featureFactory\nThe FeatureFactory to use to extract features\n@return The constructed CRFDatum" ]
[ "Return overall per token accuracy", "Returns the Set of entities recognized by this Classifier.\n\n@return The Set of entities recognized by this Classifier.", "Get the original image URL.\n\n@return The original image URL", "Internal method for recursivly searching for a class descriptor that avoids\nclass loading when we already have a class object.\n\n@param clazz The class whose descriptor we need to find\n@return ClassDescriptor for <code>clazz</code> or <code>null</code>\nif no ClassDescriptor could be located.", "Get the default provider used.\n\n@return the default provider, never {@code null}.", "Adds a new Matrix variable. If one already has the same name it is written over.\n\nWhile more verbose for multiple variables, this function doesn't require new memory be declared\neach time it's called.\n\n@param variable Matrix which is to be assigned to name\n@param name The name of the variable", "Add a IN clause so the column must be equal-to one of the objects passed in.", "Add a creatable \"post-run\" dependent for this task item.\n\n@param creatable the creatable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve created \"post-run\" dependent", "Record a prepare operation timeout.\n\n@param failedOperation the prepared operation" ]
public static nssimpleacl[] get(nitro_service service, String aclname[]) throws Exception{ if (aclname !=null && aclname.length>0) { nssimpleacl response[] = new nssimpleacl[aclname.length]; nssimpleacl obj[] = new nssimpleacl[aclname.length]; for (int i=0;i<aclname.length;i++) { obj[i] = new nssimpleacl(); obj[i].set_aclname(aclname[i]); response[i] = (nssimpleacl) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch nssimpleacl resources of given names ." ]
[ "Processes the most recent dump of the sites table to extract information\nabout registered sites.\n\n@return a Sites objects that contains the extracted information, or null\nif no sites dump was available (typically in offline mode without\nhaving any previously downloaded sites dumps)\n@throws IOException\nif there was a problem accessing the sites table dump or the\ndump download directory", "Find Flickr Places information by Place ID.\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link #getInfo(String, String)} instead.\n@param placeId\n@return A Location\n@throws FlickrException", "Use this API to fetch all the appfwsignatures resources that are configured on netscaler.", "Write the provided chunk at the offset specified in the token. If finalChunk is set, the file\nwill be closed.", "Scales a process type\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param processType type of process to maintain\n@param quantity number of processes to maintain", "Get a message bundle of the given type.\n\n@param type the bundle type class\n\n@return the bundle", "Update the context session to mark a user logged in\n\n@param userIdentifier\nthe user identifier, could be either userId or username", "A specific, existing project can be deleted by making a DELETE request\non the URL for that project.\n\nReturns an empty data record.\n\n@param project The project to delete.\n@return Request object", "Add the option specifying if the categories should be displayed collapsed\nwhen the dialog opens.\n\n@see org.opencms.ui.actions.I_CmsADEAction#getParams()" ]
private void setup(DMatrixRBlock orig) { blockLength = orig.blockLength; dataW.blockLength = blockLength; dataWTA.blockLength = blockLength; this.dataA = orig; A.original = dataA; int l = Math.min(blockLength,orig.numCols); dataW.reshape(orig.numRows,l,false); dataWTA.reshape(l,orig.numRows,false); Y.original = orig; Y.row1 = W.row1 = orig.numRows; if( temp.length < blockLength ) temp = new double[blockLength]; if( gammas.length < orig.numCols ) gammas = new double[ orig.numCols ]; if( saveW ) { dataW.reshape(orig.numRows,orig.numCols,false); } }
[ "Adjust submatrices and helper data structures for the input matrix. Must be called\nbefore the decomposition can be computed.\n\n@param orig" ]
[ "Moves to the step with the given number.\n\n<p>The step number is only updated if no exceptions are thrown when instantiating/displaying the given step\n\n@param stepNo the step number to move to", "Sets the yearly absolute date.\n\n@param date yearly absolute date", "Emit a string event with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the specified\nstring value given the listeners has the matching argument list.\n\nFor example, suppose we have the following simple event listener methods:\n\n```java\n{@literal @}On(\"USER-LOGIN\")\npublic void logUserLogin(User user, long timestamp) {...}\n\n{@literal @}On(\"USER-LOGIN\")\npublic void checkDuplicateLoginAttempts(User user, Object... args) {...}\n\n{@literal @}On(\"USER-LOGIN\")\npublic void foo(User user) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(\"USER-LOGIN\", user, System.currentTimeMills());\n```\n\nThe `foo(User)` will not invoked because:\n\n* The parameter list `(User, long)` does not match the declared argument list `(User)`.\nHere the `String` in the parameter list is taken out because it is used to indicate\nthe event, instead of being passing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(User, Object ...)` will be invoked because\nit declares a varargs typed arguments, meaning it matches any parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "Get the last non-white Y point\n@param img Image in memory\n@return The trimmed height", "Returns a new AWT BufferedImage from this image.\n\n@param type the type of buffered image to create, if not specified then defaults to the current image type\n@return a new, non-shared, BufferedImage with the same data as this Image.", "returns an Enumeration of PrimaryKey Objects for objects of class DataClass.\nThe Elements returned come from a SELECT ... WHERE Statement\nthat is defined by the fields and their coresponding values of listFields\nand listValues.\nUseful for EJB Finder Methods...\n@param primaryKeyClass the pk class for the searched objects\n@param query the query", "Use this API to unset the properties of nsrpcnode resource.\nProperties that need to be unset are specified in args array.", "Utility function that fetches all stores on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@return List of all store names", "find all accessibility object and set active false for enable talk back." ]
public CliCommandBuilder setController(final String protocol, final String hostname, final int port) { setController(formatAddress(protocol, hostname, port)); return this; }
[ "Sets the protocol, hostname and port to connect to.\n\n@param protocol the protocol to use\n@param hostname the host name\n@param port the port\n\n@return the builder" ]
[ "This method populates the task model from data read from an MPX file.\n\n@param record data read from an MPX file\n@param isText flag indicating whether the textual or numeric data is being supplied", "Add a row to the table. We have a limited understanding of the way\nBtrieve handles outdated rows, so we use what we think is a version number\nto try to ensure that we only have the latest rows.\n\n@param primaryKeyColumnName primary key column name\n@param map Map containing row data", "Returns the logger name that should be used in the log manager.\n\n@param name the name of the logger from the resource\n\n@return the name of the logger", "Use this API to fetch all the transformpolicy resources that are configured on netscaler.", "This method extracts predecessor data from a Planner file.\n\n@param plannerTask Task data", "Use this API to unset the properties of sslocspresponder 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.", "Examines the list of variables for any unknown variables and throws an exception if one is found", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful" ]
@RequestMapping(value = "api/edit/disable", method = RequestMethod.POST) public @ResponseBody String disableResponses(Model model, int path_id, @RequestParam(defaultValue = Constants.PROFILE_CLIENT_DEFAULT_ID) String clientUUID) throws Exception { OverrideService.getInstance().disableAllOverrides(path_id, clientUUID); //TODO also need to disable custom override if there is one of those editService.removeCustomOverride(path_id, clientUUID); return null; }
[ "disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@param clientUUID\n@return\n@throws Exception" ]
[ "Convert a Throwable into a list containing all of its causes.\n@param t The throwable for which the causes are to be returned.\n@return A (possibly empty) list of {@link Throwable}s.", "Use this API to fetch autoscalepolicy_binding resource of given name .", "Returns a flag, indicating if the current event is a multi-day event.\nThe method is only called if the single event has an explicitely set end date\nor an explicitely changed whole day option.\n\n@return a flag, indicating if the current event takes lasts over more than one day.", "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate", "Read the parameters on initialization.\n\n@see org.apache.solr.update.processor.UpdateRequestProcessorFactory#init(org.apache.solr.common.util.NamedList)", "Builds a instance of the class for a map containing the values, without specifying the handler for differences\n\n@param clazz The class to build instance\n@param values The values map\n@return The instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "Determine the length of a nul terminated UTF16LE string in bytes.\n\n@param data string data\n@param offset offset into string data\n@return length in bytes", "For a particular stealer node find all the primary partitions tuples it\nwill steal.\n\n@param currentCluster The cluster definition of the existing cluster\n@param finalCluster The final cluster definition\n@param stealNodeId Node id of the stealer node\n@return Returns a list of primary partitions which this stealer node will\nget", "Adds a parameter to the MIMEType.\n\n@param name name of parameter\n@param value value of parameter\n@return returns a new instance with the parameter set" ]
public void performImplicitSingleStep(double scale , double lambda , boolean byAngle) { createBulge(x1,lambda,scale,byAngle); for( int i = x1; i < x2-1 && bulge != 0.0; i++ ) { removeBulgeLeft(i,true); if( bulge == 0 ) break; removeBulgeRight(i); } if( bulge != 0 ) removeBulgeLeft(x2-1,false); incrementSteps(); }
[ "Given the lambda value perform an implicit QR step on the matrix.\n\nB^T*B-lambda*I\n\n@param lambda Stepping factor." ]
[ "Set the values of a set of knots.\n@param x the knot positions\n@param y the knot colors\n@param types the knot types\n@param offset the first knot to set\n@param count the number of knots", "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "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]", "Places a new value at the end of the existing value array, increasing the field length accordingly.\n@param newValue - the 2 floats making the new SFVec2f appended to the MFVec2f array list", "Uses data from a bar to populate a task.\n\n@param row bar data\n@param task task to populate", "Classify stdin by documents seperated by 3 blank line\n@param readerWriter\n@return boolean reached end of IO\n@throws IOException", "Update artifact provider\n\n@param gavc String\n@param provider String", "Update a note.\n\n@param note\nThe Note to update\n@throws FlickrException", "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." ]
private static LogPriorType intToType(int intPrior) { LogPriorType[] values = LogPriorType.values(); for (LogPriorType val : values) { if (val.ordinal() == intPrior) { return val; } } throw new IllegalArgumentException(intPrior + " is not a legal LogPrior."); }
[ "why isn't this functionality in enum?" ]
[ "Read phases and activities from the Phoenix file to create the task hierarchy.\n\n@param phoenixProject all project data\n@param storepoint storepoint containing current project data", "Returns true if the information in this link should take\nprecedence over the information in the other link.", "Creates the udpClient with proper handler.\n\n@return the bound request builder\n@throws HttpRequestCreateException\nthe http request create exception", "Use this API to delete dnstxtrec.", "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none.", "Use this API to delete clusterinstance of given name.", "See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range or false if not", "Creates a player wrapper for the Android MediaPlayer.", "Use this API to fetch appfwjsoncontenttype resources of given names ." ]
private List<Row> createWorkPatternAssignmentRowList(String workPatterns) throws ParseException { List<Row> list = new ArrayList<Row>(); String[] patterns = workPatterns.split(",|:"); int index = 1; while (index < patterns.length) { Integer workPattern = Integer.valueOf(patterns[index + 1]); Date startDate = DatatypeConverter.parseBasicTimestamp(patterns[index + 3]); Date endDate = DatatypeConverter.parseBasicTimestamp(patterns[index + 4]); Map<String, Object> map = new HashMap<String, Object>(); map.put("WORK_PATTERN", workPattern); map.put("START_DATE", startDate); map.put("END_DATE", endDate); list.add(new MapRow(map)); index += 5; } return list; }
[ "Extract a list of work pattern assignments.\n\n@param workPatterns string representation of work pattern assignments\n@return list of work pattern assignment rows" ]
[ "Add a new Corporate GroupId to an organization.\n\n@param credential DbCredential\n@param organizationId String Organization name\n@param corporateGroupId String\n@return Response", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag", "Use this API to fetch the statistics of all systemmemory_stats resources that are configured on netscaler.", "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", "Returns the target locales.\n\n@return the target locales, never null.", "Manually set the breaker to be reset and ready for use. This\nis only useful after a manual trip otherwise the breaker will\ntrip automatically again if the service is still unavailable.\nJust like a real breaker. WOOT!!!", "Read the table headers. This allows us to break the file into chunks\nrepresenting the individual tables.\n\n@param is input stream\n@return list of tables in the file", "Remove all children that have been added to the owner object of this camera rig; except the\ncamera objects.", "Returns the y-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the y coordinate" ]
public AbstractGraph getModuleGraph(final String moduleId) { final ModuleHandler moduleHandler = new ModuleHandler(repoHandler); final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); final AbstractGraph graph = new ModuleGraph(); addModuleToGraph(module, graph, 0); return graph; }
[ "Generate a module graph regarding the filters\n\n@param moduleId String\n@return AbstractGraph" ]
[ "Will start the HiveServer.\n\n@param testConfig Specific test case properties. Will be merged with the HiveConf of the context\n@param hiveVars HiveVars to pass on to the HiveServer for this session", "Load the given configuration file.", "Fills the week panel with checkboxes.", "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.", "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name", "Possibly coalesces the newest change event to match the user's original intent. For example,\nan unsynchronized insert and update is still an insert.\n\n@param lastUncommittedChangeEvent the last change event known about for a document.\n@param newestChangeEvent the newest change event known about for a document.\n@return the possibly coalesced change event.", "Loads a CRF classifier from a filepath, and returns it.\n\n@param file\nFile to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Release transaction that was acquired in a thread with specified permits.", "Trim and append a file separator to the string" ]
public void rollback() throws GitAPIException { try (Git git = getGit()) { git.reset().setMode(ResetCommand.ResetType.HARD).setRef(HEAD).call(); } }
[ "Reset hard on HEAD.\n\n@throws GitAPIException" ]
[ "Check that each group is satisfied by one and only one field.\n\n@param currentPath the json path to the element being checked", "Reads a single resource from a ConceptDraw PROJECT file.\n\n@param resource ConceptDraw PROJECT resource", "Sets the current class definition derived from the current class, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"accept-locks\" optional=\"true\" description=\"The accept locks setting\" values=\"true,false\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the class as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"determine-extents\" optional=\"true\" description=\"Whether to determine\npersistent direct sub types automatically\" values=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a no-argument factory method that is\nused to create instances (not yet implemented !)\"\[email protected] name=\"factory-class\" optional=\"true\" description=\"Specifies a factory class to be used for creating\nobjects of this class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a static no-argument method in the factory class\"\[email protected] name=\"generate-repository-info\" optional=\"true\" description=\"Whether repository data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"generate-table-info\" optional=\"true\" description=\"Whether table data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"include-inherited\" optional=\"true\" description=\"Whether to include\nfields/references/collections of supertypes\" values=\"true,false\"\[email protected] name=\"initialization-method\" optional=\"true\" description=\"Specifies a no-argument instance method that is\ncalled right after an instance has been read from the database\"\[email protected] name=\"isolation-level\" optional=\"true\" description=\"The isolation level setting\"\[email protected] name=\"proxy\" optional=\"true\" description=\"The proxy setting for this class\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects of\nobjects of this class to prefetch in collections\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Can be set to force OJB to refresh instances when\nloaded from the cache\" values=\"true,false\"\[email protected] name=\"row-reader\" optional=\"true\" description=\"The row reader for the class\"\[email protected] name=\"schema\" optional=\"true\" description=\"The schema for the type\"\[email protected] name=\"table\" optional=\"true\" description=\"The table for the class\"\[email protected] name=\"table-documentation\" optional=\"true\" description=\"Documentation on the table\"", "Utility method to convert a String to an Integer, and\nhandles null values.\n\n@param value string representation of an integer\n@return int value", "Get a writer implementation to push data into Canvas while being able to control the behavior of blank values.\nIf the serializeNulls parameter is set to true, this writer will serialize null fields in the JSON being\nsent to Canvas. This is required if you want to explicitly blank out a value that is currently set to something.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param serializeNulls Whether or not to include null fields in the serialized JSON. Defaults to false if null\n@param <T> A writer implementation\n@return An instantiated instance of the requested writer type", "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "Get a View that displays the data at the specified\nposition in the data set.\n\n@param position Position of the item whose data we want\n@param convertView View to recycle, if not null\n@param parent ViewGroup containing the returned View", "Get the node that has been selected by the user, or null if\nnothing is selected.\n@return The node or <code>null</code>", "Checks whether an XPath expression starts with an XPath eventable condition.\n\n@param dom The DOM String.\n@param eventableCondition The eventable condition.\n@param xpath The XPath.\n@return boolean whether xpath starts with xpath location of eventable condition xpath\ncondition\n@throws XPathExpressionException\n@throws CrawljaxException when eventableCondition is null or its inXPath has not been set" ]
public static final BigInteger printDay(Day day) { return (day == null ? null : BigInteger.valueOf(day.getValue() - 1)); }
[ "Print a day.\n\n@param day Day instance\n@return day value" ]
[ "Use this API to fetch dnsnsecrec resources of given names .", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name .", "Counts additional occurrences of a property as the main property of\nstatements.\n\n@param usageStatistics\nstatistics object where count is stored\n@param property\nthe property to count\n@param count\nthe number of times to count the property", "Sets the elements of this vector to uniformly distributed random values\nin a specified range, using a supplied random number generator.\n\n@param lower\nlower random value (inclusive)\n@param upper\nupper random value (exclusive)\n@param generator\nrandom number generator", "Remove control from the control bar. Size of control bar is updated based on new number of\ncontrols.\n@param name name of the control to remove", "Setter for \"addContentInfo\", indicating if content information should be added.\n@param doAddInfo The value of the \"addContentInfo\" attribute of the tag", "Initialize the pattern controllers.", "Gets the last element in the address.\n\n@return the element, or {@code null} if {@link #size()} is zero." ]
public static appfwlearningsettings[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); options option = new options(); option.set_filter(filter); appfwlearningsettings[] response = (appfwlearningsettings[]) obj.getfiltered(service, option); return response; }
[ "Use this API to fetch filtered set of appfwlearningsettings resources.\nset the filter parameter values in filtervalue object." ]
[ "Update the current position with specified length.\nThe input will append to the current position of the iterator.\n\n@param length update length", "Set the buttons size.", "Return the text box for the specified text and font.\n\n@param text text\n@param font font\n@return text box", "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Check if a module can be promoted in the Grapes server\n\n@param name\n@param version\n@return a boolean which is true only if the module can be promoted\n@throws GrapesCommunicationException", "Called when remote end send a message to this connection\n@param receivedMessage the message received\n@return this context", "Sets the top padding for all cells in the row.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Write the criteria elements, extracting the information of the sub-model.\n\n@param writer the xml stream writer\n@param subModel the interface model\n@param nested whether it the criteria elements are nested as part of <not /> or <any />\n@throws XMLStreamException", "Return tabular data\n@param labels Labels array\n@param data Data bidimensional array\n@param padding Total space between fields\n@return String" ]
public static <E> Set<E> diff(Set<E> s1, Set<E> s2) { Set<E> s = new HashSet<E>(); for (E o : s1) { if (!s2.contains(o)) { s.add(o); } } return s; }
[ "Returns the difference of sets s1 and s2." ]
[ "Pretty prints a task list of rebalancing tasks.\n\n@param infos list of rebalancing tasks (RebalancePartitionsInfo)\n@return pretty-printed string", "Ask the specified player for the specified waveform preview from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform preview\n\n@return the preview, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of sentinels\n@return this ConfigBuilder", "Return the parent outline number, or an empty string if\nwe have a root task.\n\n@param outlineNumber child outline number\n@return parent outline number", "Pause the current entry point, and invoke the provided listener when all current requests have finished.\n\nIf individual control point tracking is not enabled then the listener will be invoked straight away\n\n@param requestCountListener The listener to invoke", "Writes task predecessor links to a PM XML file.\n\n@param task MPXJ Task instance", "Helper to read an optional String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML, or <code>null</code> if the value could not be read.", "Removes the value connected to the given key\nfrom all levels of the cache. Will not throw an\nexception on fail.\n\n@param cacheKey", "Gets the actual key - will create a new row with the max key of table if it\ndoes not exist.\n@param field\n@return\n@throws SequenceManagerException" ]
@SuppressWarnings("unchecked") public final List<MapRow> getRows(String name) { return (List<MapRow>) getObject(name); }
[ "Retrieve row from a nested table.\n\n@param name column name\n@return nested table rows" ]
[ "Perform a module dependency graph of the target and return the graph as a JSON\n\n@param moduleName\n@param moduleVersion\n@param uriInfo\n@return Response", "Get the TagsInterface for working with Flickr Tags.\n\n@return The TagsInterface", "Use this API to update nsrpcnode.", "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value", "Generates the routing Java source code", "Check the variable name and if not set, set it with the singleton variable name being on the top of the stack.", "Returns the encoding of the file.\nEncoding is read from the content-encoding property and defaults to the systems default encoding.\nSince properties can change without rewriting content, the actual encoding can differ.\n\n@param cms {@link CmsObject} used to read properties of the given file.\n@param file the file for which the encoding is requested\n@return the file's encoding according to the content-encoding property, or the system's default encoding as default.", "Resolves a conflict between a synchronized document's local and remote state. The resolution\nwill result in either the document being desynchronized or being replaced with some resolved\nstate based on the conflict resolver specified for the document. Uses the last uncommitted\nlocal event as the local state.\n\n@param nsConfig the namespace synchronization config of the namespace where the document\nlives.\n@param docConfig the configuration of the document that describes the resolver and current\nstate.\n@param remoteEvent the remote change event that is conflicting.", "Finds the maximum abs in each column of A and stores it into values\n@param A (Input) Matrix\n@param values (Output) storage for column max abs" ]
public void setColorRange(int firstIndex, int lastIndex, int color) { for (int i = firstIndex; i <= lastIndex; i++) map[i] = color; }
[ "Set a range of the colormap to a single color.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color the color" ]
[ "Read an element which contains only a single list attribute of a given\ntype.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@param type the value type class\n@param <T> the value type\n@return the value list\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements.", "Returns the deployment names with the specified runtime names at the specified deploymentRootAddress.\n\n@param deploymentRootResource\n@param runtimeNames\n@return the deployment names with the specified runtime names at the specified deploymentRootAddress.", "Get the contents from the request URL.\n\n@param url URL to get the response from\n@param layer the raster layer\n@return {@link InputStream} with the content\n@throws IOException cannot get content", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Reads a \"message set\" argument, and parses into an IdSet.\nCurrently only supports a single range of values.", "Open the event stream\n\n@return true if successfully opened, false if not", "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", "Check that each emitted notification is properly described by its source.", "Read a Synchro string from an input stream.\n\n@param is input stream\n@return String instance" ]
private void removeAllBroadcasts(Set<String> sessionIds) { if (sessionIds == null) { for (CmsSessionInfo info : OpenCms.getSessionManager().getSessionInfos()) { OpenCms.getSessionManager().getBroadcastQueue(info.getSessionId().getStringValue()).clear(); } return; } for (String sessionId : sessionIds) { OpenCms.getSessionManager().getBroadcastQueue(sessionId).clear(); } }
[ "Removes all pending broadcasts\n\n@param sessionIds to remove broadcast for (or null for all sessions)" ]
[ "Create an MD5 hash of a string.\n\n@param input Input string.\n@return Hash of input.\n@throws IllegalArgumentException if {@code input} is blank.", "Returns the compact project membership records for the project.\n\n@param project The project for which to fetch memberships.\n@return Request object", "Returns an iterable containing the items in this folder sorted by name and direction.\n@param sort the field to sort by, can be set as `name`, `id`, and `date`.\n@param direction the direction to display the item results.\n@param fields the fields to retrieve.\n@return an iterable containing the items in this folder.", "Computes the null space using QR decomposition. This is much faster than using SVD\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space", "Get the schema for the Avro Record from the object container file", "Assemble and send a packet that performs sync control, turning a device's sync mode on or off, or telling it\nto become the tempo master.\n\n@param target an update from the device whose sync state is to be set\n@param command the byte identifying the specific sync command to be sent\n\n@throws IOException if there is a problem sending the command to the device", "This produces a string with no compressed segments and all segments of full length,\nwhich is 4 characters for IPv6 segments and 3 characters for IPv4 segments.", "Retrieves the real subject from the underlying RDBMS. Override this\nmethod if the object is to be materialized in a specific way.\n\n@return The real subject of the proxy", "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder" ]
private void performDynamicStep() { // initially look for singular values of zero if( findingZeros ) { if( steps > 6 ) { findingZeros = false; } else { double scale = computeBulgeScale(); performImplicitSingleStep(scale,0,false); } } else { // For very large and very small numbers the only way to prevent overflow/underflow // is to have a common scale between the wilkinson shift and the implicit single step // What happens if you don't is that when the wilkinson shift returns the value it // computed it multiplies it by the scale twice, which will cause an overflow double scale = computeBulgeScale(); // use the wilkinson shift to perform a step double lambda = selectWilkinsonShift(scale); performImplicitSingleStep(scale,lambda,false); } }
[ "Here the lambda in the implicit step is determined dynamically. At first\nit selects zeros to quickly reveal singular values that are zero or close to zero.\nThen it computes it using a Wilkinson shift." ]
[ "Shut down actor system force.", "Add a management request handler factory to this context.\n\n@param factory the request handler to add", "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.", "Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas.", "This method takes the textual version of an accrue type name\nand populates the class instance appropriately. Note that unrecognised\nvalues are treated as \"Prorated\".\n\n@param type text version of the accrue type\n@param locale target locale\n@return AccrueType class instance", "Gets the current Stack. If the stack is not set, a new empty instance is created and set.\n@return", "Checks if the method being invoked should be wrapped by a service.\nIt looks the method name up in the methodList. If its in the list, then\nthe method should be wrapped. If the list is null, then all methods\nare wrapped.\n\n@param methodName The method being called\n\n@return boolean", "Write a priority field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Returns a vector from the PCA's basis.\n\n@param which Which component's vector is to be returned.\n@return Vector from the PCA basis." ]
private void checkRowReader(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (!CHECKLEVEL_STRICT.equals(checkLevel)) { return; } String rowReaderName = classDef.getProperty(PropertyHelper.OJB_PROPERTY_ROW_READER); if (rowReaderName == null) { return; } try { InheritanceHelper helper = new InheritanceHelper(); if (!helper.isSameOrSubTypeOf(rowReaderName, ROW_READER_INTERFACE)) { throw new ConstraintException("The class "+rowReaderName+" specified as row-reader of class "+classDef.getName()+" does not implement the interface "+ROW_READER_INTERFACE); } } catch (ClassNotFoundException ex) { throw new ConstraintException("Could not find the class "+ex.getMessage()+" on the classpath while checking the row-reader class "+rowReaderName+" of class "+classDef.getName()); } }
[ "Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated" ]
[ "Removes a design document from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}", "Processes a stencilset template file\n@throws IOException", "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode", "Checks all data sets in IIM records 1, 2 and 3 for constraint violations.\n\n@return list of constraint violations, empty set if IIM file is valid", "Returns an array with the width of the longest word per column calculated from the given table.\nDefault padding will be added per column.\nPadding for individual columns will be added if defined.\n@param rows the table rows for calculations\n@param colNumbers number of columns in the table\n@return array with width of longest word for each column, null if input table was null", "Convert a method name into a property name.\n\n@param method target method\n@return property name", "Convert this lattice to store data in the given convention.\nConversion involving receiver premium assumes zero wide collar.\n\n@param targetConvention The convention to store the data in.\n@param displacement The displacement to use, if applicable.\n@param model The model for context.\n\n@return The converted lattice.", "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", "This method writes assignment data to a JSON file." ]
public void setSlideDrawable(Drawable drawable) { mSlideDrawable = new SlideDrawable(drawable); mSlideDrawable.setIsRtl(ViewHelper.getLayoutDirection(this) == LAYOUT_DIRECTION_RTL); if (mActionBarHelper != null) { mActionBarHelper.setDisplayShowHomeAsUpEnabled(true); if (mDrawerIndicatorEnabled) { mActionBarHelper.setActionBarUpIndicator(mSlideDrawable, isMenuVisible() ? mDrawerOpenContentDesc : mDrawerClosedContentDesc); } } }
[ "Sets the drawable used as the drawer indicator.\n\n@param drawable The drawable used as the drawer indicator." ]
[ "Returns the value for a given key from the database properties.\n\n@param key the property key\n\n@return the string value for a given key", "Shutdown the container.\n\n@see Weld#initialize()", "This method writes resource data to a JSON file.", "Perform a module dependency graph of the target and return the graph as a JSON\n\n@param moduleName\n@param moduleVersion\n@param uriInfo\n@return Response", "Invoked periodically.", "Expands the directories from the given list and and returns a list of subfiles.\nFiles from the original list are kept as is.", "Returns the configured fields of the current field configuration.\n\n@return the configured fields of the current field configuration", "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List", "Builds the DynamicReport object. Cannot be used twice since this produced\nundesired results on the generated DynamicReport object\n\n@return" ]
void processSiteRow(String siteRow) { String[] row = getSiteRowFields(siteRow); String filePath = ""; String pagePath = ""; String dataArray = row[8].substring(row[8].indexOf('{'), row[8].length() - 2); // Explanation for the regular expression below: // "'{' or ';'" followed by either // "NOT: ';', '{', or '}'" repeated one or more times; or // "a single '}'" // The first case matches ";s:5:\"paths\"" // but also ";a:2:" in "{s:5:\"paths\";a:2:{s:9:\ ...". // The second case matches ";}" which terminates (sub)arrays. Matcher matcher = Pattern.compile("[{;](([^;}{][^;}{]*)|[}])").matcher( dataArray); String prevString = ""; String curString = ""; String path = ""; boolean valuePosition = false; while (matcher.find()) { String match = matcher.group().substring(1); if (match.length() == 0) { valuePosition = false; continue; } if (match.charAt(0) == 's') { valuePosition = !valuePosition && !"".equals(prevString); curString = match.substring(match.indexOf('"') + 1, match.length() - 2); } else if (match.charAt(0) == 'a') { valuePosition = false; path = path + "/" + prevString; } else if ("}".equals(match)) { valuePosition = false; path = path.substring(0, path.lastIndexOf('/')); } if (valuePosition && "file_path".equals(prevString) && "/paths".equals(path)) { filePath = curString; } else if (valuePosition && "page_path".equals(prevString) && "/paths".equals(path)) { pagePath = curString; } prevString = curString; curString = ""; } MwSitesDumpFileProcessor.logger.debug("Found site data \"" + row[1] + "\" (group \"" + row[3] + "\", language \"" + row[5] + "\", type \"" + row[2] + "\")"); this.sites.setSiteInformation(row[1], row[3], row[5], row[2], filePath, pagePath); }
[ "Processes a row of the sites table and stores the site information found\ntherein.\n\n@param siteRow\nstring serialisation of a sites table row as found in the SQL\ndump" ]
[ "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@param offset the optional time offset for this alias", "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Checks if there's exactly one option that exists among all possible opts.\n\n@param options OptionSet to checked\n@param opt1 Possible required option to check\n@param opt2 Possible required option to check\n@throws VoldemortException", "Cut the message content to the configured length.\n\n@param event the event", "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri", "Helper method to copy the contents of a stream to a file.\n@param outputDirectory The directory in which the new file is created.\n@param stream The stream to copy.\n@param targetFileName The file to write the stream contents to.\n@throws IOException If the stream cannot be copied.", "Checks that the modified features exist.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Try to set specified property to given marshaller\n\n@param marshaller specified marshaller\n@param name name of property to set\n@param value value of property to set" ]
public Date getNextWorkStart(Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); updateToNextWorkStart(cal); return cal.getTime(); }
[ "Utility method to retrieve the next working date start time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of next work start" ]
[ "Use this API to fetch authenticationvserver_authenticationlocalpolicy_binding resources of given name .", "Translate the string to bytes using the given encoding\n\n@param string The string to translate\n@param encoding The encoding to use\n@return The bytes that make up the string", "Retrieve an instance of the TaskField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return TaskField instance", "Passes the Socket's InputStream and OutputStream to the closure. The\nstreams will be closed after the closure returns, even if an exception\nis thrown.\n\n@param socket a Socket\n@param closure a Closure\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 1.5.2", "Get a property as a string or throw an exception.\n\n@param key the property name", "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", "Resolve the given class if it is a primitive class,\nreturning the corresponding primitive wrapper type instead.\n@param clazz the class to check\n@return the original class, or a primitive wrapper for the original primitive type", "Create a ModelNode representing the JVM the instance is running on.\n\n@return a ModelNode representing the JVM the instance is running on.\n@throws OperationFailedException", "Copy the contents of the given byte array to the given OutputStream.\nLeaves the stream open when done.\n@param in the byte array to copy from\n@param out the OutputStream to copy to\n@throws IOException in case of I/O errors" ]
@Override public void removeNamespace(final MongoNamespace namespace) { this.instanceLock.writeLock().lock(); try { if (!this.nsStreamers.containsKey(namespace)) { return; } final NamespaceChangeStreamListener streamer = this.nsStreamers.get(namespace); streamer.stop(); this.nsStreamers.remove(namespace); } finally { this.instanceLock.writeLock().unlock(); } }
[ "Requests that the given namespace stopped being listened to for change events.\n\n@param namespace the namespace to stop listening for change events on." ]
[ "Read the header data for a single file.\n\n@param header header data\n@return SynchroTable instance", "Read a long int from a byte array.\n\n@param data byte array\n@param offset start offset\n@return long value", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Count the number of non-zero elements in V", "Runs through the log removing segments older than a certain age\n\n@throws IOException", "Use this API to fetch all the policydataset resources that are configured on netscaler.", "Obtains a Julian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Read data for a single column.\n\n@param startIndex block start\n@param length block length", "Handle interval change.\n@param event the change event." ]
public static int compare(Integer n1, Integer n2) { int result; if (n1 == null || n2 == null) { result = (n1 == null && n2 == null ? 0 : (n1 == null ? 1 : -1)); } else { result = n1.compareTo(n2); } return (result); }
[ "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result" ]
[ "Sets the currently edited locale.\n@param locale the locale to set.", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions", "Insert a value into the right bucket of the histogram. If the value is\nlarger than any bound, insert into the last bucket. If the value is less\nthan zero, then ignore it.\n\n@param data The value to insert into the histogram", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "Set the position of the pick ray.\nThis function is used internally to update the\npick ray with the new controller position.\n@param x the x value of the position.\n@param y the y value of the position.\n@param z the z value of the position.", "Warning emitter. Uses whatever alternative non-event communication channel is.", "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map", "Returns a correlation matrix which has rank &lt; n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.", "Retrieves the project start date. If an explicit start date has not been\nset, this method calculates the start date by looking for\nthe earliest task start date.\n\n@return project start date" ]
public RelatedTagsList getRelated(String tag) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_RELATED); parameters.put("tag", tag); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element tagsElement = response.getPayload(); RelatedTagsList tags = new RelatedTagsList(); tags.setSource(tagsElement.getAttribute("source")); NodeList tagElements = tagsElement.getElementsByTagName("tag"); for (int i = 0; i < tagElements.getLength(); i++) { Element tagElement = (Element) tagElements.item(i); Tag t = new Tag(); t.setValue(XMLUtilities.getValue(tagElement)); tags.add(t); } return tags; }
[ "Get the related tags.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\nThe source tag\n@return A RelatedTagsList object\n@throws FlickrException" ]
[ "Returns the artifact available versions\n\n@param gavc String\n@return List<String>", "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id.", "Checks to see if matrix 'a' is the same as this matrix within the specified\ntolerance.\n\n@param a The matrix it is being compared against.\n@param tol How similar they must be to be equals.\n@return If they are equal within tolerance of each other.", "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "This is private. It is a helper function for the utils.", "Copies all elements from input into output which are &gt; tol.\n@param input (Input) input matrix. Not modified.\n@param output (Output) Output matrix. Modified and shaped to match input.\n@param tol Tolerance for defining zero", "Gets information about this collaboration.\n\n@return info about this collaboration.", "Create a random permutation of the numbers 0, ..., size - 1.\n\nsee Algorithm P, D.E. Knuth: The Art of Computer Programming, Vol. 2, p. 145", "Get a misc file.\n\n@param root the root\n@param item the misc content item\n@return the misc file" ]
PollingState<T> withResponse(Response<ResponseBody> response) { this.response = response; withPollingUrlFromResponse(response); withPollingRetryTimeoutFromResponse(response); return this; }
[ "Sets the last operation response.\n\n@param response the last operation response." ]
[ "Internal used method which start the real store work.", "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.", "OR operation which takes the previous clause and the next clause and OR's them together.", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag", "Gets an overrideID for a class name, method name\n\n@param className name of class\n@param methodName name of method\n@return override ID of method", "Converts the given dislect to a human-readable datasource type.", "Send message to socket's output stream.\n\n@param messageToSend message to send.\n\n@return {@code true} if message was sent successfully, {@code false} otherwise.", "read all objects of this iterator. objects will be placed in cache", "Remove a collaborator from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param collaborator See {@link #listCollaborators} for collaborators that can be removed from the app." ]
public PartialCollection<BoxItem.Info> searchRange(long offset, long limit, final BoxSearchParameters bsp) { QueryStringBuilder builder = bsp.getQueryParameters() .appendParam("limit", limit) .appendParam("offset", offset); URL url = SEARCH_URL_TEMPLATE.buildWithQuery(this.getAPI().getBaseURL(), builder.toString()); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); String totalCountString = responseJSON.get("total_count").toString(); long fullSize = Double.valueOf(totalCountString).longValue(); PartialCollection<BoxItem.Info> results = new PartialCollection<BoxItem.Info>(offset, limit, fullSize); JsonArray jsonArray = responseJSON.get("entries").asArray(); for (JsonValue value : jsonArray) { JsonObject jsonObject = value.asObject(); BoxItem.Info parsedItemInfo = (BoxItem.Info) BoxResource.parseInfo(this.getAPI(), jsonObject); if (parsedItemInfo != null) { results.add(parsedItemInfo); } } return results; }
[ "Searches all descendant folders using a given query and query parameters.\n@param offset is the starting position.\n@param limit the maximum number of items to return. The default is 30 and the maximum is 200.\n@param bsp containing query and advanced search capabilities.\n@return a PartialCollection containing the search results." ]
[ "Gets the publisher of the specified type, if it is wrapped by the \"Flexible Publish\" publisher in a project.\nNull is returned if no such publisher is found.\n@param project The project\n@param type The type of the publisher", "Given an AVRO serializer definition, validates if all the avro schemas\nare valid i.e parseable.\n\n@param avroSerDef", "Get the server redirects belonging to a server group\n\n@param profileId ID of profile\n@param serverGroupId ID of server group\n@return Collection of ServerRedirect for a server group", "Returns the getter method associated with the object's field.\n\n@param object\nthe object\n@param fieldName\nthe name of the field\n@return the getter method\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible", "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data", "Finds the magnitude of the largest element in the row\n@param A Complex matrix\n@param row Row in A\n@param col0 First column in A to be copied\n@param col1 Last column in A + 1 to be copied\n@return magnitude of largest element", "Log original incoming request\n\n@param requestType\n@param request\n@param history", "Detects if the current browser is a BlackBerry device AND\nhas a more capable recent browser. Excludes the Playbook.\nExamples, Storm, Bold, Tour, Curve2\nExcludes the new BlackBerry OS 6 and 7 browser!!\n@return detection of a Blackberry device with a better browser", "Writes OWL declarations for all basic vocabulary elements used in the\ndump.\n\n@throws RDFHandlerException" ]
synchronized void reconnectServerProcess(final ManagedServerBootCmdFactory factory) { if(this.requiredState != InternalState.SERVER_STARTED) { this.bootConfiguration = factory; this.requiredState = InternalState.SERVER_STARTED; ROOT_LOGGER.reconnectingServer(serverName); internalSetState(new ReconnectTask(), InternalState.STOPPED, InternalState.SEND_STDIN); } }
[ "Try to reconnect to a started server." ]
[ "Add a content modification.\n\n@param modification the content modification", "Prepare a parallel HTTP HEAD Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Set an enterprise duration value.\n\n@param index duration index (1-30)\n@param value duration value", "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "Counts the coordinates stored in a single statement for the relevant\nproperty, if they are actually given and valid.\n\n@param statement\n@param itemDocument", "Converts milliseconds into a calendar object.\n\n@param millis a time given in milliseconds after epoch\n@return the calendar object for the given time", "Save the values to the bundle descriptor.\n@throws CmsException thrown if saving fails.", "Use this API to add autoscaleaction.", "Sets the text alignment for all cells in the row.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null" ]
public static double extractColumnAndMax( ZMatrixRMaj A , int row0 , int row1 , int col , double u[], int offsetU) { int indexU = (offsetU+row0)*2; // find the largest value in this column // this is used to normalize the column and mitigate overflow/underflow double max = 0; int indexA = A.getIndex(row0,col); double h[] = A.data; for( int i = row0; i < row1; i++, indexA += A.numCols*2 ) { // copy the householder vector to an array to reduce cache misses // big improvement on larger matrices and a relatively small performance hit on small matrices. double realVal = u[indexU++] = h[indexA]; double imagVal = u[indexU++] = h[indexA+1]; double magVal = realVal*realVal + imagVal*imagVal; if( max < magVal ) { max = magVal; } } return Math.sqrt(max); }
[ "Extracts the column of A and copies it into u while computing the magnitude of the\nlargest element and returning it.\n\n<pre>\nu[ (offsetU+row0+i)*2 ] = A.getReal(row0+i,col)\nu[ (offsetU+row0+i)*2 + 1] = A.getImag(row0+i,col)\n</pre>\n\n@param A Complex matrix\n@param row0 First row in A to be copied\n@param row1 Last row in A + 1 to be copied\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U\n@return magnitude of largest element" ]
[ "Sets the replace var map to single target single var.\n\n@param variable\nthe variable\n@param replaceList\n: the list of strings that will replace the variable\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "get specific property value of job.\n\n@param id the id\n@param property the property name/path\n@return the property value", "Sets up Log4J to write log messages to the console. Low-priority messages\nare logged to stdout while high-priority messages go to stderr.", "Returns the y-coordinate of a vertex tangent.\n\n@param vertex the vertex index\n@return the y coordinate", "Use this API to clear route6.", "Unlink the specified reference from this object.\nMore info see OJB doc.\n\n@param obj Object with reference\n@param ord the ObjectReferenceDescriptor of the reference\n@param insert flag signals insert operation", "Calculates the Black-Scholes option value of an atm call option.\n\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param forward The forward, i.e., the expectation of the index under the measure associated with payoff unit.\n@param payoffUnit The payoff unit, i.e., the discount factor or the anuity associated with the payoff.\n@return Returns the value of a European at-the-money call option under the Black-Scholes model", "Calculate where within the beat grid array the information for the specified beat can be found.\nYes, this is a super simple calculation; the main point of the method is to provide a nice exception\nwhen the beat is out of bounds.\n\n@param beatNumber the beat desired\n\n@return the offset of the start of our cache arrays for information about that beat", "Gets an iterator to the EJB descriptors for an EJB implementation class\n\n@param beanClass The EJB class\n@return An iterator" ]
public void execute() { State currentState = state.getAndSet(State.RUNNING); if (currentState == State.RUNNING) { throw new IllegalStateException( "ExecutionChain is already running!"); } executeRunnable = new ExecuteRunnable(); }
[ "Start the chain of execution running.\n\n@throws IllegalStateException\nif the chain of execution has already been started." ]
[ "Use this API to fetch appfwpolicy_csvserver_binding resources of given name .", "Record a Screen View event\n@param screenName String, the name of the screen", "Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler.", "For recovery from the latest consistent snapshot, we should clean up the\nold files from the previous backup set, else we will fill the disk with\nuseless log files\n\n@param backupDir", "adds a CmsJspImageBean as hi-DPI variant to this image\n@param factor the variant multiplier, e.g. \"2x\" (the common retina multiplier)\n@param image the image to be used for this variant", "Embeds the given SVG element into a new SVG element scaling the graphic to the given dimension and\napplying the given rotation.", "Creates the container for a bundle without descriptor.\n@return the container for a bundle without descriptor.\n@throws IOException thrown if reading the bundle fails.\n@throws CmsException thrown if reading the bundle fails.", "Set the \"everyWorkingDay\" flag.\n@param isEveryWorkingDay flag, indicating if the event should take place every working day.", "Try to get the line number associated with the given member.\n\nThe reflection API does not expose such an info and so we need to analyse the bytecode. Unfortunately, it seems there is no way to get this kind of\ninformation for fields. Moreover, the <code>LineNumberTable</code> attribute is just optional, i.e. the compiler is not required to store this\ninformation at all. See also <a href=\"http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.1\">Java Virtual Machine Specification</a>\n\nImplementation note: it wouldn't be appropriate to add a bytecode scanning dependency just for this functionality, therefore Apache BCEL included in\nOracle JDK 1.5+ and OpenJDK 1.6+ is used. Other JVMs should not crash as we only use it if it's on the classpath and by means of reflection calls.\n\n@param member\n@param resourceLoader\n@return the line number or 0 if it's not possible to find it" ]
static void merge(Map<ConfigurationKey, Object> original, Map<ConfigurationKey, Object> toMerge, String mergedSourceDescription) { for (Entry<ConfigurationKey, Object> entry : toMerge.entrySet()) { Object existing = original.get(entry.getKey()); if (existing != null) { ConfigurationLogger.LOG.configurationKeyAlreadySet(entry.getKey().get(), existing, entry.getValue(), mergedSourceDescription); } else { original.put(entry.getKey(), entry.getValue()); } } }
[ "Merge two maps of configuration properties. If the original contains a mapping for the same key, the new mapping is ignored.\n\n@param original\n@param toMerge" ]
[ "Convolve with a 2D kernel.\n@param kernel the kernel\n@param inPixels the input pixels\n@param outPixels the output pixels\n@param width the width\n@param height the height\n@param alpha include alpha channel\n@param edgeAction what to do at the edges", "Use this API to create ssldhparam.", "Make all elements of a String array upper case.\n@param strings string array, may contain null item but can't be null\n@return array containing all provided elements upper case", "Takes a matrix and splits it into a set of row or column vectors.\n\n@param A original matrix.\n@param column If true then column vectors will be created.\n@return Set of vectors.", "Installs a path service.\n\n@param name the name to use for the service\n@param path the relative portion of the path\n@param possiblyAbsolute {@code true} if {@code path} may be an {@link #isAbsoluteUnixOrWindowsPath(String) absolute path}\nand should be {@link AbsolutePathService installed as such} if it is, with any\n{@code relativeTo} parameter ignored\n@param relativeTo the name of the path that {@code path} may be relative to\n@param serviceTarget the {@link ServiceTarget} to use to install the service\n@return the ServiceController for the path service", "Repeat a CharSequence a certain number of times.\n\n@param self a CharSequence to be repeated\n@param factor the number of times the CharSequence should be repeated\n@return a String composed of a repetition\n@throws IllegalArgumentException if the number of repetitions is &lt; 0\n@since 1.8.2", "Return a list of 'Files' of downloaded or uploaded files. Filters build files without local and remote paths.\n\n@param buildFilesStream - Stream of build Artifacts or Dependencies.\n@return - List of build files.", "Register a new SingleServiceWrapperInterceptor for the bean being\nwrapped, associate it with the PerformanceMonitor and tell it which methods\nto intercept.\n\n@param source An Attribute node from the spring configuration\n@param beanName The name of the bean that this performance monitor is wrapped around\n@param registry The registry where all the spring beans are registered", "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" ]
private boolean operations(Options opt, ConstructorDoc m[]) { boolean printed = false; for (ConstructorDoc cd : m) { if (hidden(cd)) continue; stereotype(opt, cd, Align.LEFT); String cs = visibility(opt, cd) + cd.name() // + (opt.showType ? "(" + parameter(opt, cd.parameters()) + ")" : "()"); tableLine(Align.LEFT, cs); tagvalue(opt, cd); printed = true; } return printed; }
[ "Print the class's constructors m" ]
[ "Convert a list of objects to a JSON array with the string representations of that objects.\n@param list the list of objects.\n@return the JSON array with the string representations.", "Write notes.\n\n@param recordNumber record number\n@param text note text\n@throws IOException", "Checks if a given number is in the range of a long.\n\n@param number\na number which should be in the range of a long (positive or negative)\n\n@see java.lang.Long#MIN_VALUE\n@see java.lang.Long#MAX_VALUE\n\n@return number as a long (rounding might occur)", "Add a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param newHash the new hash of the added content\n@return the builder", "get the ClassTypeSignature corresponding to given parameterized type\n\n@param parameterizedType\n@return", "Check whether the patch can be applied to a given target.\n\n@param condition the conditions\n@param target the target\n@throws PatchingException", "Returns a valid DisplayMetrics object\n\n@param context valid context\n@return DisplayMetrics object", "Read a single duration field extended attribute.\n\n@param row field data", "Overridden to skip some symbolizers." ]
public void setDateMax(Date dateMax) { this.dateMax = dateMax; if (isAttached() && dateMax != null) { getPicker().set("max", JsDate.create((double) dateMax.getTime())); } }
[ "Set the maximum date limit." ]
[ "Validates the input parameters.", "Return true if c has a @hidden tag associated with it", "The cell String is the string representation of the object.\nIf padLeft is greater than 0, it is padded. Ditto right", "Creates a simple deployment description.\n\n@param name the name for the deployment\n@param serverGroups the server groups\n\n@return the deployment description", "This function returns the first external IP address encountered\n\n@return IP address or null\n@throws Exception", "Use this API to fetch all the dnssuffix resources that are configured on netscaler.", "Set the position of the pick ray.\nThis function is used internally to update the\npick ray with the new controller position.\n@param x the x value of the position.\n@param y the y value of the position.\n@param z the z value of the position.", "Use this API to fetch gslbsite resources of given names .", "This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation instance" ]
public <T> Map<String, List<T>> queryGroups(String query, Class<T> classOfT) { InputStream instream = null; try { Reader reader = new InputStreamReader(instream = queryForStream(query), "UTF-8"); JsonObject json = new JsonParser().parse(reader).getAsJsonObject(); Map<String, List<T>> result = new LinkedHashMap<String, List<T>>(); if (json.has("groups")) { for (JsonElement e : json.getAsJsonArray("groups")) { String groupName = e.getAsJsonObject().get("by").getAsString(); List<T> orows = new ArrayList<T>(); if (!includeDocs) { log.warning("includeDocs set to false and attempting to retrieve doc. " + "null object will be returned"); } for (JsonElement rows : e.getAsJsonObject().getAsJsonArray("rows")) { orows.add(jsonToObject(client.getGson(), rows, "doc", classOfT)); } result.put(groupName, orows); }// end for(groups) }// end hasgroups else { log.warning("No grouped results available. Use query() if non grouped query"); } return result; } catch (UnsupportedEncodingException e1) { // This should never happen as every implementation of the java platform is required // to support UTF-8. throw new RuntimeException(e1); } finally { close(instream); } }
[ "Queries a Search Index and returns grouped results in a map where key\nof the map is the groupName. In case the query didnt use grouping,\nan empty map is returned\n\n@param <T> Object type T\n@param query the Lucene query to be passed to the Search index\n@param classOfT The class of type T\n@return The result of the grouped search query as a ordered {@code Map<String,T> }" ]
[ "Add a property.", "Get a project according to its full name.\n\n@param fullName The full name of the project.\n@return The project which answers the full name.", "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "Set the names of six images in the zip file. The default names of the six\nimages are \"posx.png\", \"negx.png\", \"posy.png\", \"negx.png\", \"posz.png\",\nand \"negz.png\". If the names of the six images in the zip file are\ndifferent to the default ones, this function must be called before load\nthe zip file.\n\n@param nameArray\nAn array containing six strings which are names of images\ncorresponding to +x, -x, +y, -y, +z, and -z faces of the cube\nmap texture respectively.", "Sends all events to the web service. Events will be transformed with mapper before sending.\n\n@param events the events", "Parse request parameters and files.\n@param request\n@param response", "Use this API to export sslfipskey resources.", "Reads a command \"tag\" from the request.", "Store a comment based on comment text, gavc and user information\n\n@param gavc - entity id\n@param commentText - comment text\n@param credential - user credentials\n@param entityType - type of the entity" ]
public Profile findProfile(int profileId) throws Exception { Profile profile = null; PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "SELECT * FROM " + Constants.DB_TABLE_PROFILE + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setInt(1, profileId); results = statement.executeQuery(); if (results.next()) { profile = this.getProfileFromResultSet(results); } } catch (Exception e) { throw e; } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } return profile; }
[ "Returns a specific profile\n\n@param profileId ID of profile\n@return Selected profile if found, null if not found\n@throws Exception exception" ]
[ "Retrieves a specific range of child items in this folder.\n\n@param offset the index of the first child item to retrieve.\n@param limit the maximum number of children to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of child items.", "Selects a specific vertex and fragment shader to use for rendering.\n\nIf a shader template has been specified, it is used to generate\na vertex and fragment shader based on mesh attributes, bound textures\nand light sources. If the textures bound to the material are changed\nor a new light source is added, this function must be called again\nto select the appropriate shaders. This function may cause recompilation\nof shaders which is quite slow.\n\n@param scene scene being rendered\n@see GVRShaderTemplate GVRMaterialShader.getShaderType", "Release the broker instance.", "Cuts the string at the end if it's longer than maxLength and appends the given end string to it. The length of\nthe resulting string is always less or equal to the given maxLength. It's valid to pass a null text; in this\ncase null is returned.", "This configuration requires that all your tasks you submit to the system implement\nthe Groupable interface. By default, it will round robin tasks from each group\n\nTasks will be tracked internally in the system by randomly generated UUIDs\n\n@return", "Initializes the counters for a property to zero if not done yet.\n\n@param usageStatistics\nstatistics object to initialize\n@param property\nthe property to count", "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", "A specific, existing tag can be deleted by making a DELETE request\non the URL for that tag.\n\nReturns an empty data record.\n\n@param tag The tag to delete.\n@return Request object", "Get the nearest scale.\n\n@param zoomLevels the list of Zoom Levels.\n@param tolerance the tolerance to use when considering if two values are equal. For example if\n12.0 == 12.001. The tolerance is a percentage.\n@param zoomLevelSnapStrategy the strategy to use for snapping to the nearest zoom level.\n@param geodetic snap to geodetic scales.\n@param paintArea the paint area of the map.\n@param dpi the DPI." ]
public boolean merge(AbstractTransition another) { if (!isCompatible(another)) { return false; } if (another.mId != null) { if (mId == null) { mId = another.mId; } else { StringBuilder sb = new StringBuilder(mId.length() + another.mId.length()); sb.append(mId); sb.append("_MERGED_"); sb.append(another.mId); mId = sb.toString(); } } mUpdateStateAfterUpdateProgress |= another.mUpdateStateAfterUpdateProgress; mSetupList.addAll(another.mSetupList); Collections.sort(mSetupList, new Comparator<S>() { @Override public int compare(S lhs, S rhs) { if (lhs instanceof AbstractTransitionBuilder && rhs instanceof AbstractTransitionBuilder) { AbstractTransitionBuilder left = (AbstractTransitionBuilder) lhs; AbstractTransitionBuilder right = (AbstractTransitionBuilder) rhs; float startLeft = left.mReverse ? left.mEnd : left.mStart; float startRight = right.mReverse ? right.mEnd : right.mStart; return (int) ((startRight - startLeft) * 1000); } return 0; } }); return true; }
[ "Merge another AbstractTransition's states into this object, such that the other AbstractTransition\ncan be discarded.\n\n@param another\n@return true if the merge is successful." ]
[ "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", "Returns first enum constant found..\n\n@param styleName Space-separated list of styles\n@param enumClass Type of enum\n@param defaultValue Default value of no match was found\n@return First enum constant found or default value", "Check the given JWT\n\n@param jwtString the JSON Web Token\n@return the parsed and verified token or null if token is invalid\n@throws ParseException if the token cannot be parsed", "Print a resource UID.\n\n@param value resource UID value\n@return resource UID string", "Creates a copy with verbose mode enabled.\n\n@param serverSetups the server setups.\n@return copies of server setups with verbose mode enabled.", "Utility function to zip the content of an entire folder, but not the folder itself.\n@param folder\n@param fileName optional\n@return success or not", "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri", "Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a question mark or a token in the style\nof {@link ParameterizedPreparedStatementCreator}, e.g. \":foo\".", "Gets the top of thread-local shell stack, or null if it is empty.\n\n@return the top of the shell stack" ]
public void addNotBetween(Object attribute, Object value1, Object value2) { // PAW // addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getAlias())); addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getUserAlias(attribute))); }
[ "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary" ]
[ "Set OAuth 1 authentication credentials for the replication target\n\n@param consumerSecret client secret\n@param consumerKey client identifier\n@param tokenSecret OAuth server token secret\n@param token OAuth server issued token\n@return this Replication instance to set more options or trigger the replication", "Performs the filtering of the expired entries based on retention time.\nOptionally, deletes them also\n\n@param key the key whose value is to be deleted if needed\n@param vals set of values to be filtered out\n@return filtered list of values which are currently valid", "1-D Gaussian function.\n\n@param x value.\n@return Function's value at point x.", "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Use this API to fetch Interface resource of given name .", "Reduce the given value to the nearest smaller 1 significant digit number starting with 1, 2 or 5.\n\n@param value the value to find a nice number for.\n@param scaleUnit the unit of the value.\n@param lockUnits if set, the values are not scaled to a \"nicer\" unit.", "Get a list of referring domains for a photo.\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 photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoDomains.html\"", "Sets the provided square matrix to be a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.", "Updates event definitions for all throwing events.\n@param def Definitions" ]
protected void merge(Set<Annotation> stereotypeAnnotations) { final MetaAnnotationStore store = manager.getServices().get(MetaAnnotationStore.class); for (Annotation stereotypeAnnotation : stereotypeAnnotations) { // Retrieve and merge all metadata from stereotypes StereotypeModel<?> stereotype = store.getStereotype(stereotypeAnnotation.annotationType()); if (stereotype == null) { throw MetadataLogger.LOG.stereotypeNotRegistered(stereotypeAnnotation); } if (stereotype.isAlternative()) { alternative = true; } if (stereotype.getDefaultScopeType() != null) { possibleScopeTypes.add(stereotype.getDefaultScopeType()); } if (stereotype.isBeanNameDefaulted()) { beanNameDefaulted = true; } this.stereotypes.add(stereotypeAnnotation.annotationType()); // Merge in inherited stereotypes merge(stereotype.getInheritedStereotypes()); } }
[ "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotations" ]
[ "Unmarshal test suite from given file.", "Given the lambda value perform an implicit QR step on the matrix.\n\nB^T*B-lambda*I\n\n@param lambda Stepping factor.", "Checks if class package match provided list of action packages\n\n@param classPackageName\nname of class package\n@return true if class package is on the {@link #actionPackages} list", "Publish finish events for each of the specified query types\n\n<pre>\n{@code\nRequestEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Identifier\n@param bus EventBus to post events to\n@param types Query types to post to event bus", "Returns the URL of a classpath resource.\n\n@param resourceName\nThe name of the resource.\n\n@return The URL.", "Parses command-line and synchronizes metadata versions across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Join the Collection of Strings using the specified delimiter.\n\n@param s\nThe String collection\n@param delimiter\nThe delimiter String\n@return The joined String", "don't run on main thread", "Use this API to fetch wisite_accessmethod_binding resources of given name ." ]
public MediaType copyQualityValue(MediaType mediaType) { if (!mediaType.parameters.containsKey(PARAM_QUALITY_FACTOR)) { return this; } Map<String, String> params = new LinkedHashMap<String, String>(this.parameters); params.put(PARAM_QUALITY_FACTOR, mediaType.parameters.get(PARAM_QUALITY_FACTOR)); return new MediaType(this, params); }
[ "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" ]
[ "Adds the allowed values. Override for attributes who should not use the allowed values.\n\n@param result the node to add the allowed values to\n@param validator the validator to get the allowed values from", "Sets the proxy class to be used.\n@param newProxyClass java.lang.Class", "Adds an index to the table for the given index descriptor.\n\n@param indexDescDef The index descriptor\n@param tableDef The table", "Returns real unquoted value for a DisplayValue\n@param key\n@return", "Use this API to fetch inat resource of given name .", "Updates the information about this collaboration with any info fields that have been modified locally.\n\n@param info the updated info.", "Maps a field index to a ResourceField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return ResourceField instance", "Changes the image data associated with a GVRTexture.\nThis can be a simple bitmap, a compressed bitmap,\na cubemap or a compressed cubemap.\n@param imageData data for the texture as a GVRImate", "Call when you are done with the client\n\n@throws Exception" ]
public static List<Integer> asList(int[] a) { List<Integer> result = new ArrayList<Integer>(a.length); for (int i = 0; i < a.length; i++) { result.add(Integer.valueOf(a[i])); } return result; }
[ "Utils for making collections out of arrays of primitive types." ]
[ "Replaces an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object.", "Print a percent complete value.\n\n@param value Double instance\n@return percent complete value", "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", "This method is called to format a date. It will return the null text\nif a null value is supplied.\n\n@param value date value\n@return formatted date value", "Clears the proxy. A cleared proxy is defined as loaded\n\n@see Collection#clear()", "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from", "Uploads bytes to an open upload session.\n@param data data\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size.", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Synthesize and forward a KeyEvent to the library.\n\nThis call is made from the native layer.\n\n@param code id of the button\n@param action integer representing the action taken on the button" ]
private void deEndify(List<CoreLabel> tokens) { if (flags.retainEntitySubclassification) { return; } tokens = new PaddedList<CoreLabel>(tokens, new CoreLabel()); int k = tokens.size(); String[] newAnswers = new String[k]; for (int i = 0; i < k; i++) { CoreLabel c = tokens.get(i); CoreLabel p = tokens.get(i - 1); if (c.get(AnswerAnnotation.class).length() > 1 && c.get(AnswerAnnotation.class).charAt(1) == '-') { String base = c.get(AnswerAnnotation.class).substring(2); String pBase = (p.get(AnswerAnnotation.class).length() <= 2 ? p.get(AnswerAnnotation.class) : p.get(AnswerAnnotation.class).substring(2)); boolean isSecond = (base.equals(pBase)); boolean isStart = (c.get(AnswerAnnotation.class).charAt(0) == 'B' || c.get(AnswerAnnotation.class).charAt(0) == 'S'); if (isSecond && isStart) { newAnswers[i] = intern("B-" + base); } else { newAnswers[i] = intern("I-" + base); } } else { newAnswers[i] = c.get(AnswerAnnotation.class); } } for (int i = 0; i < k; i++) { CoreLabel c = tokens.get(i); c.set(AnswerAnnotation.class, newAnswers[i]); } }
[ "Return the coding scheme to IOB1 coding, regardless of what was used\ninternally. This is useful for scoring against CoNLL test output.\n\n@param tokens List of tokens in some NER encoding" ]
[ "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", "Calls the specified Stitch function.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.", "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", "Return the serialized form of this Identity.\n\n@return The serialized representation\n@see #fromByteArray\n@deprecated", "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.", "Use this API to fetch filtered set of vpnglobal_auditnslogpolicy_binding resources.\nset the filter parameter values in filtervalue object.", "Support the range subscript operator for String\n\n@param text a String\n@param range a Range\n@return a substring corresponding to the Range\n@since 1.0", "Clears all checked widgets in the group", "Log block data.\n\n@param blockIndex current block index\n@param startIndex start index\n@param blockLength length" ]
public static boolean isMessageContentToBeLogged(final Message message, final boolean logMessageContent, boolean logMessageContentOverride) { /* * If controlling of logging behavior is not allowed externally * then log according to global property value */ if (!logMessageContentOverride) { return logMessageContent; } Object logMessageContentExtObj = message.getContextualProperty(EXTERNAL_PROPERTY_NAME); if (null == logMessageContentExtObj) { return logMessageContent; } else if (logMessageContentExtObj instanceof Boolean) { return ((Boolean) logMessageContentExtObj).booleanValue(); } else if (logMessageContentExtObj instanceof String) { String logMessageContentExtVal = (String) logMessageContentExtObj; if (logMessageContentExtVal.equalsIgnoreCase("true")) { return true; } else if (logMessageContentExtVal.equalsIgnoreCase("false")) { return false; } else { return logMessageContent; } } else { return logMessageContent; } }
[ "If the \"org.talend.esb.sam.agent.log.messageContent\" property value is \"true\" then log the message content\nIf it is \"false\" then skip the message content logging\nElse fall back to global property \"log.messageContent\"\n\n@param message\n@param logMessageContent\n@param logMessageContentOverride\n@return" ]
[ "Evaluates the body if the current class has at least one member with at least one tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"error\" description=\"Show this error message if no tag found.\"", "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "Exports a single queue to an XML file.", "Adds the download button.\n\n@param view layout which displays the log file", "Binding view holder with payloads is used to handle partial changes in item.", "Updates the cluster and store metadata atomically\n\nThis is required during rebalance and expansion into a new zone since we\nhave to update the store def along with the cluster def.\n\n@param cluster The cluster metadata information\n@param storeDefs The stores metadata information", "returns a sorted array of properties", "Returns a PreparedStatementCreator that returns a page of the underlying\nresult set.\n\n@param dialect\nDatabase dialect to use.\n@param limit\nMaximum number of rows to return.\n@param offset\nIndex of the first row to return.", "Log a byte array as a hex dump.\n\n@param data byte array" ]
private void normalizeSelectedCategories() { Collection<String> normalizedCategories = new ArrayList<String>(m_selectedCategories.size()); for (CmsTreeItem item : m_categories.values()) { if (item.getCheckBox().isChecked()) { normalizedCategories.add(item.getId()); } } m_selectedCategories = normalizedCategories; }
[ "Normalize the list of selected categories to fit for the ids of the tree items." ]
[ "Create a polygon that represents in world space the exact area that will be visible on the printed\nmap.\n\n@param context map context", "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object", "Returns iterable with all non-deleted file version legal holds for this legal hold policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing file version legal holds info.", "Build and return the complete URI containing values\nsuch as the document ID, attachment ID, and query syntax.", "Returns the portion of the field name after the last dot, as field names\nmay actually be paths.", "Create an import declaration and delegates its registration for an upper class.", "Write a project file in SDEF format to an output stream.\n\n@param projectFile ProjectFile instance\n@param out output stream", "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler.", "Attempts to create a human-readable String representation of the provided rule." ]
public static double KullbackLeiblerDivergence(double[] p, double[] q) { boolean intersection = false; double k = 0; for (int i = 0; i < p.length; i++) { if (p[i] != 0 && q[i] != 0) { intersection = true; k += p[i] * Math.log(p[i] / q[i]); } } if (intersection) return k; else return Double.POSITIVE_INFINITY; }
[ "Gets the Kullback Leibler divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kullback Leibler divergence between u and v." ]
[ "Process the standard working hours for a given day.\n\n@param mpxjCalendar MPXJ Calendar instance\n@param uniqueID unique ID sequence generation\n@param day Day instance\n@param typeList Planner list of days", "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name .", "Returns the value stored for the given key at the point of call.\n@param key a non null key\n@return the value stored in the map for the given key", "Returns the steps instances associated to CandidateSteps\n\n@param candidateSteps\nthe List of CandidateSteps\n@return The List of steps instances", "Set HTTP client\n\n@param httpClient\nAn instance of OkHttpClient\n@return Api Client", "Send a beat announcement to all registered master listeners.\n\n@param beat the beat sent by the tempo master", "Takes a string of the form \"x1=y1,x2=y2,...\" and returns Map\n@param map A string of the form \"x1=y1,x2=y2,...\"\n@return A Map m is returned such that m.get(xn) = yn", "Returns a licenses regarding its Id and a fake on if no license exist with such an Id\n\n@param licenseId String\n@return License", "In this method perform the actual override in runtime.\n\n@see org.apache.log4j.spi.HierarchyEventListener#addAppenderEvent(org.apache.log4j.Category, org.apache.log4j.Appender)" ]
@Override public final int getInt(final int i) { int val = this.array.optInt(i, Integer.MIN_VALUE); if (val == Integer.MIN_VALUE) { throw new ObjectMissingException(this, "[" + i + "]"); } return val; }
[ "Get the element at the index as an integer.\n\n@param i the index of the element to access" ]
[ "Instantiates the templates specified by @Template within @Templates", "Invokes a JavaScript function that takes no arguments.\n\n@param <T>\n@param function The function to invoke\n@param returnType The type of object to return\n@return The result of the function.", "Pops the top of the stack of active elements if the current position in the call stack corresponds to the one\nthat pushed the active elements.\n\n<p>This method does not do any type checks, so take care to retrieve the elements with the same types used to push\nto them onto the stack.\n\n@param <T> the type of the elements\n\n@return the active elements or null if the current call stack did not push any active elements onto the stack", "Removes an element from the observation matrix.\n\n@param index which element is to be removed", "Puts a message in the wake-up queue of this node to send the message on wake-up.\n@param serialMessage the message to put in the wake-up queue.", "Add join info to the query. This can be called multiple times to join with more than one table.", "Rotate root widget to make it facing to the front of the scene", "Reads a markdown link ID.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link ID.", "Checks if this has the passed prefix\n\n@param prefix is a Bytes object to compare to this\n@return true or false\n@since 1.1.0" ]
public void merge(GVRSkeleton newSkel) { int numBones = getNumBones(); List<Integer> parentBoneIds = new ArrayList<Integer>(numBones + newSkel.getNumBones()); List<String> newBoneNames = new ArrayList<String>(newSkel.getNumBones()); List<Matrix4f> newMatrices = new ArrayList<Matrix4f>(newSkel.getNumBones()); GVRPose oldBindPose = getBindPose(); GVRPose curPose = getPose(); for (int i = 0; i < numBones; ++i) { parentBoneIds.add(mParentBones[i]); } for (int j = 0; j < newSkel.getNumBones(); ++j) { String boneName = newSkel.getBoneName(j); int boneId = getBoneIndex(boneName); if (boneId < 0) { int parentId = newSkel.getParentBoneIndex(j); Matrix4f m = new Matrix4f(); newSkel.getBindPose().getLocalMatrix(j, m); newMatrices.add(m); newBoneNames.add(boneName); if (parentId >= 0) { boneName = newSkel.getBoneName(parentId); parentId = getBoneIndex(boneName); } parentBoneIds.add(parentId); } } if (parentBoneIds.size() == numBones) { return; } int n = numBones + parentBoneIds.size(); int[] parentIds = Arrays.copyOf(mParentBones, n); int[] boneOptions = Arrays.copyOf(mBoneOptions, n); String[] boneNames = Arrays.copyOf(mBoneNames, n); mBones = Arrays.copyOf(mBones, n); mPoseMatrices = new float[n * 16]; for (int i = 0; i < parentBoneIds.size(); ++i) { n = numBones + i; parentIds[n] = parentBoneIds.get(i); boneNames[n] = newBoneNames.get(i); boneOptions[n] = BONE_ANIMATE; } mBoneOptions = boneOptions; mBoneNames = boneNames; mParentBones = parentIds; mPose = new GVRPose(this); mBindPose = new GVRPose(this); mBindPose.copy(oldBindPose); mPose.copy(curPose); mBindPose.sync(); for (int j = 0; j < newSkel.getNumBones(); ++j) { mBindPose.setLocalMatrix(numBones + j, newMatrices.get(j)); mPose.setLocalMatrix(numBones + j, newMatrices.get(j)); } setBindPose(mBindPose); mPose.sync(); updateBonePose(); }
[ "Merge the source skeleton with this one.\nThe result will be that this skeleton has all of its\noriginal bones and all the bones in the new skeleton.\n\n@param newSkel skeleton to merge with this one" ]
[ "Runs the given xpath and returns a boolean result.", "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", "Set possible tile URLs.\n\n@param tileUrls tile URLs", "Load the given class using the default constructor\n\n@param className The name of the class\n@return The class object", "Enable clipping for the Widget. Widget content including its children will be clipped by a\nrectangular View Port. By default clipping is disabled.", "Add information about host and thread to specified test case started event\n\n@param event given event to update\n@return updated event", "Add the steal information to the rebalancer state\n\n@param stealInfo The steal information to add", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Add an entry to the cache.\n@param key key to use.\n@param value access token information to store." ]
public static base_responses update(nitro_service client, sslcertkey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslcertkey updateresources[] = new sslcertkey[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new sslcertkey(); updateresources[i].certkey = resources[i].certkey; updateresources[i].expirymonitor = resources[i].expirymonitor; updateresources[i].notificationperiod = resources[i].notificationperiod; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update sslcertkey resources." ]
[ "Returns s if it's at most maxWidth chars, otherwise chops right side to fit.", "Adds each required length, ensuring it isn't negative.\n\n@param requiredLengths\none or more required lengths\n@throws IllegalArgumentException\nif a supplied length is negative", "get the TypeArgSignature corresponding to given type\n\n@param type\n@return", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "Throws an IllegalArgumentException when the given value is not false.\n@param value the value to assert if false\n@param message the message to display if the value is false\n@return the value", "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix.", "Add fields to the text index configuration.\n\n@param fields the {@link TextIndex.Field} configurations to add\n@return the builder for chaining", "This method is currently in use only by the SvnCoordinator", "return a prepared Insert Statement fitting for the given ClassDescriptor" ]
public VALUE get(KEY key) { CacheEntry<VALUE> entry; synchronized (this) { entry = values.get(key); } VALUE value; if (entry != null) { if (isExpiring) { long age = System.currentTimeMillis() - entry.timeCreated; if (age < expirationMillis) { value = getValue(key, entry); } else { countExpired++; synchronized (this) { values.remove(key); } value = null; } } else { value = getValue(key, entry); } } else { value = null; } if (value != null) { countHit++; } else { countMiss++; } return value; }
[ "Get the cached entry or null if no valid cached entry is found." ]
[ "Reports a given exception as a RuntimeException, since the interface does\nnot allow us to throw checked exceptions directly.\n\n@param e\nthe exception to report\n@throws RuntimeException\nin all cases", "Read calendar hours and exception data.\n\n@param calendar parent calendar\n@param row calendar hours and exception data", "Retrieves a long value from the extended data.\n\n@param type Type identifier\n@return long value", "Runs calls in a background thread so that the results will actually be asynchronous.\n\n@see com.google.appengine.tools.cloudstorage.RawGcsService#continueObjectCreationAsync(\ncom.google.appengine.tools.cloudstorage.RawGcsService.RawGcsCreationToken,\njava.nio.ByteBuffer, long)", "read messages beginning from offset\n\n@param offset next message offset\n@param length the max package size\n@return a MessageSet object with length data or empty\n@see MessageSet#Empty\n@throws IOException any exception", "Scans a set of classes for both ReaderListeners and Swagger annotations. All found listeners will\nbe instantiated before any of the classes are scanned for Swagger annotations - so they can be invoked\naccordingly.\n\n@param classes a set of classes to scan\n@return the generated Swagger definition", "Search for interesting photos using the Flickr Interestingness algorithm.\n\n@param params\nAny search parameters\n@param perPage\nNumber of items per page\n@param page\nThe page to start on\n@return A PhotoList\n@throws FlickrException", "URL-encodes a given string using ISO-8859-1, which may work better with web pages and umlauts compared to UTF-8.\nNo UnsupportedEncodingException to handle as it is dealt with in this method.", "Resets all member fields that hold information about the revision that is\ncurrently being processed." ]
public ClassNode parent(String name) { this.parent = infoBase.node(name); this.parent.addChild(this); for (ClassNode intf : parent.interfaces.values()) { addInterface(intf); } return this; }
[ "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance" ]
[ "Send a kill signal to all running instances and return as soon as the signal is sent.", "Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the field alias.\nIf the field does not have an alias we won't write an\nentry.\n\n@param field custom field to write\n@throws IOException", "Sets the alias using a userAlias object.\n@param userAlias The alias to set", "Obtains a local date in International Fixed calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the International Fixed local date, not null\n@throws DateTimeException if unable to create the date", "Add working days and working time to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "This method extracts project extended attribute data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Locks the bundle file that contains the translation for the provided locale.\n@param l the locale for which the bundle file should be locked.\n@throws CmsException thrown if locking fails.", "1-D Backward Discrete Cosine Transform.\n\n@param data Data.", "Append a Handler to every parent of the given class\n@param parent The class of the parents to add the child to\n@param child The Handler to add." ]
public ProteusApplication addDefaultRoutes(RoutingHandler router) { if (config.hasPath("health.statusPath")) { try { final String statusPath = config.getString("health.statusPath"); router.add(Methods.GET, statusPath, (final HttpServerExchange exchange) -> { exchange.getResponseHeaders().add(Headers.CONTENT_TYPE, MediaType.TEXT_PLAIN); exchange.getResponseSender().send("OK"); }); this.registeredEndpoints.add(EndpointInfo.builder().withConsumes("*/*").withProduces("text/plain").withPathTemplate(statusPath).withControllerName("Internal").withMethod(Methods.GET).build()); } catch (Exception e) { log.error("Error adding health status route.", e.getMessage()); } } if (config.hasPath("application.favicon")) { try { final ByteBuffer faviconImageBuffer; final File faviconFile = new File(config.getString("application.favicon")); if (!faviconFile.exists()) { try (final InputStream stream = this.getClass().getResourceAsStream(config.getString("application.favicon"))) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[4096]; int read = 0; while (read != -1) { read = stream.read(buffer); if (read > 0) { baos.write(buffer, 0, read); } } faviconImageBuffer = ByteBuffer.wrap(baos.toByteArray()); } } else { try (final InputStream stream = Files.newInputStream(Paths.get(config.getString("application.favicon")))) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[4096]; int read = 0; while (read != -1) { read = stream.read(buffer); if (read > 0) { baos.write(buffer, 0, read); } } faviconImageBuffer = ByteBuffer.wrap(baos.toByteArray()); } } router.add(Methods.GET, "favicon.ico", (final HttpServerExchange exchange) -> { exchange.getResponseHeaders().add(Headers.CONTENT_TYPE, io.sinistral.proteus.server.MediaType.IMAGE_X_ICON.toString()); exchange.getResponseSender().send(faviconImageBuffer); }); } catch (Exception e) { log.error("Error adding favicon route.", e.getMessage()); } } return this; }
[ "Add utility routes the router\n\n@param router" ]
[ "Given a rebalance-task info, convert it into the protobuf equivalent\n\n@param stealInfo Rebalance task info\n@return Protobuf equivalent of the same", "Obtains a local date in Symmetry454 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry454 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry454 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Convert any number class to array of integer.\n\n@param <T> Type.\n@param array Array.\n@return Integer array.", "Get the max extent as a envelop object.", "This is the profiles page. this is the 'regular' page when the url is typed in", "Creates a temporary folder using the given prefix to generate its name.\n@param prefix the prefix string to be used in generating the directory's name; may be <i>null</i>\n@return the <code>File</code> to the newly created folder\n@throws IOException", "Attaches the menu drawer to the window.", "Use this API to update systemuser resources.", "Update the value of an embedded node property.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param keyValues the columns representing the identifier in the entity owning the embedded\n@param embeddedColumn the column on the embedded node (dot-separated properties)\n@param value the new value for the property" ]
public static int timezoneOffset(H.Session session) { String s = null != session ? session.get(SESSION_KEY) : null; return S.notBlank(s) ? Integer.parseInt(s) : serverTimezoneOffset(); }
[ "Returns timezone offset from a session instance. The offset is\nin minutes to UTC time\n\n@param session\nthe session instance\n@return the offset to UTC time in minutes" ]
[ "performs a primary key lookup operation against RDBMS and materializes\nan object from the resulting row. Only skalar attributes are filled from\nthe row, references are not resolved.\n@param oid contains the primary key info.\n@param cld ClassDescriptor providing mapping information.\n@return the materialized object, null if no matching row was found or if\nany error occured.", "Writes the entire remaining contents of the buffer to the channel. May complete in one operation, but the\ndocumentation is vague, so this keeps going until we are sure.\n\n@param buffer the data to be written\n@param channel the channel to which we want to write data\n\n@throws IOException if there is a problem writing to the channel", "Wrapper functions with no bounds checking are used to access matrix internals", "Execute a redirected request\n\n@param stringStatusCode\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@throws Exception", "Set the on-finish callback.\n\nThe basic {@link GVROnFinish} callback will notify you when the animation\nruns to completion. This is a good time to do things like removing\nnow-invisible objects from the scene graph.\n\n<p>\nThe extended {@link GVROnRepeat} callback will be called after every\niteration of an indefinite (repeat count less than 0) animation, giving\nyou a way to stop the animation when it's not longer appropriate.\n\n@param callback\nA {@link GVROnFinish} or {@link GVROnRepeat} implementation.\n<p>\n<em>Note</em>: Supplying a {@link GVROnRepeat} callback will\n{@linkplain #setRepeatCount(int) set the repeat count} to a\nnegative number. Calling {@link #setRepeatCount(int)} with a\nnon-negative value after setting a {@link GVROnRepeat}\ncallback will effectively convert the callback to a\n{@link GVROnFinish}.\n@return {@code this}, so you can chain setProperty() calls.", "Recursively add files to a ZipOutputStream\n\n@param parent Parent file\n@param zout ZipOutputStream to append\n@param fileSource The file source\n@throws IOException I/O Error", "Serializes Number value and writes it into specified buffer.", "Gets Widget layout dimension\n@param axis The {@linkplain Layout.Axis axis} to obtain layout size for\n@return dimension", "Reads the categories assigned to a resource.\n\n@return map from the resource path (root path) to the assigned categories" ]
public static int getCount(Matcher matcher) { int counter = 0; matcher.reset(); while (matcher.find()) { counter++; } return counter; }
[ "Find the number of Strings matched to the given Matcher.\n\n@param matcher a Matcher\n@return int the number of Strings matched to the given matcher.\n@since 1.0" ]
[ "Creates a descriptor for the currently edited message bundle.\n@return <code>true</code> if the descriptor could be created, <code>false</code> otherwise.", "Get the SuggestionsInterface.\n\n@return The SuggestionsInterface", "Get the Upper triangular factor.\n\n@return U.", "Identifies the canonical type of an object heuristically.\n\n@return the canonical type identifier of the object's class\naccording to Jackson's type format (see {@link TypeFactory#constructFromCanonical(String)})", "Creates a new Product in Grapes database\n\n@param dbProduct DbProduct", "Generates a full list of all parents and their children, in order.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@return A list of all parents and their children, expanded", "Append a Handler to a portion of the handler tree\n@param parent The parent to add the child to\n@param child The Handler to add.", "Returns the link for the given workplace resource.\n\nThis should only be used for resources under /system or /shared.<p<\n\n@param cms the current OpenCms user context\n@param resourceName the resource to generate the online link for\n@param forceSecure forces the secure server prefix\n\n@return the link for the given resource", "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes" ]
public MIMEType addParameter(String name, String value) { Map<String, String> copy = new LinkedHashMap<>(this.parameters); copy.put(name, value); return new MIMEType(type, subType, copy); }
[ "Adds a parameter to the MIMEType.\n\n@param name name of parameter\n@param value value of parameter\n@return returns a new instance with the parameter set" ]
[ "Remove a part of a CharSequence by replacing the first occurrence\nof target within self with '' and returns the result.\n\n@param self a CharSequence\n@param target an object representing the part to remove\n@return a String containing the original minus the part to be removed\n@see #minus(String, Object)\n@since 1.8.2", "Returns an ArrayList of String URLs of the Carousel Images\n@return ArrayList of Strings", "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", "Set the Log4j appender.\n\n@param appender the log4j appender", "Return a licenses view of the targeted module\n\n@param moduleId String\n@return List<DbLicense>", "Returns a signed string representation of the given number.\n\n@param number\n@return String for BigDecimal value", "Provides lookup of elements by non-namespaced name.\n\n@param name the name or shortcut key for nodes of interest\n@return the nodes of interest which match name", "Validates an operation against its description provider\n\n@param operation The operation to validate\n@throws IllegalArgumentException if the operation is not valid", "Main entry point to read criteria data.\n\n@param properties project properties\n@param data criteria data block\n@param dataOffset offset of the data start within the larger data block\n@param entryOffset offset of start node for walking the tree\n@param prompts optional list to hold prompts\n@param fields optional list of hold fields\n@param criteriaType optional array representing criteria types\n@return first node of the criteria" ]
public synchronized static SQLiteDatabase getConnection(Context context) { if (database == null) { // Construct the single helper and open the unique(!) db connection for the app database = new CupboardDbHelper(context.getApplicationContext()).getWritableDatabase(); } return database; }
[ "Returns a raw handle to the SQLite database connection. Do not close!\n@param context A context, which is used to (when needed) set up a connection to the database\n@return The single, unique connection to the database, as is (also) used by our Cupboard instance" ]
[ "Overridden to skip some symbolizers.", "This method extracts resource data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param calendarMap Map of calendar UIDs to names", "Get a TokenizerFactory that does Penn Treebank tokenization.\nThis is now the recommended factory method to use.\n\n@param factory A TokenFactory that determines what form of token is returned by the Tokenizer\n@param options A String specifying options (see the class javadoc for details)\n@param <T> The type of the tokens built by the LexedTokenFactory\n@return A TokenizerFactory that does Penn Treebank tokenization", "Creates an option to deploy existing content to the runtime for each deployment\n\n@param deployments a set of deployments to deploy\n\n@return the deploy operation", "Checks whether a built of the indices is necessary.\n@param cms The appropriate CmsObject instance.\n@return true, if the spellcheck indices have to be rebuilt, otherwise false", "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value", "Creates a field map for tasks.\n\n@param props props data", "Use this API to add dnsaaaarec resources.", "Set child components.\n\n@param children\nchildren" ]
protected final void setDefaultValue() { m_start = null; m_end = null; m_patterntype = PatternType.NONE; m_dayOfMonth = 0; m_exceptions.clear(); m_individualDates.clear(); m_interval = 0; m_isEveryWorkingDay = false; m_isWholeDay = false; m_month = Month.JANUARY; m_seriesEndDate = null; m_seriesOccurrences = 0; m_weekDays.clear(); m_weeksOfMonth.clear(); m_endType = EndType.SINGLE; m_parentSeriesId = null; }
[ "Sets the value to a default." ]
[ "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", "Checks to see if the specified off diagonal element is zero using a relative metric.", "Finds out which dump files of the given type are available for download.\nThe result is a list of objects that describe the available dump files,\nin descending order by their date. Not all of the dumps included might be\nactually available.\n\n@return list of objects that provide information on available full dumps", "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException", "Write flow id.\n\n@param message the message\n@param flowId the flow id", "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Provisions a new app user in an enterprise using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@return the created user's info.", "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", "Creates a Bytes object by copying the value of the given String" ]
private Map<String, String> getContentsByContainerName( CmsContainerElementBean element, Collection<CmsContainer> containers) { CmsFormatterConfiguration configs = getFormatterConfiguration(element.getResource()); Map<String, String> result = new HashMap<String, String>(); for (CmsContainer container : containers) { String content = getContentByContainer(element, container, configs); if (content != null) { content = removeScriptTags(content); } result.put(container.getName(), content); } return result; }
[ "Returns the rendered element content for all the given containers.\n\n@param element the element to render\n@param containers the containers the element appears in\n\n@return a map from container names to rendered page contents" ]
[ "Set an enterprise number value.\n\n@param index number index (1-40)\n@param value number value", "Reads a \"flags\" argument from the request.", "Adds is Null criteria,\ncustomer_id is Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Creates an immutable list that consists of the elements in the given array. A copy of the given array is used which means\nthat any modifications to the given array will not affect the immutable list.\n\n@param elements the given array of elements\n@return an immutable list", "This method is called to format a constraint type.\n\n@param type constraint type\n@return formatted constraint type", "Given a json node, find a nested node using given composed key.\n\n@param jsonNode the parent json node\n@param composedKey a key combines multiple keys using flattening dots.\nFlattening dots are dot character '.' those are not preceded by slash '\\'\nEach flattening dot represents a level with following key as field key in that level\n@return nested json node located using given composed key", "Request the artwork with a particular artwork ID, given a connection to a player that has already been set up.\n\n@param artworkId identifies the album art to retrieve\n@param slot the slot identifier from which the associated track was loaded\n@param trackType the kind of track that owns the artwork\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the track's artwork, or null if none is available\n\n@throws IOException if there is a problem communicating with the player", "rollback the transaction", "Sets the whole day flag.\n@param isWholeDay flag, indicating if the event lasts whole days." ]
public static void setCurrentPersistenceBroker(PBKey key, PersistenceBrokerInternal broker) throws PBFactoryException { HashMap map = (HashMap) currentBrokerMap.get(); WeakHashMap set = null; if(map == null) { map = new HashMap(); currentBrokerMap.set(map); synchronized(lock) { loadedHMs.add(map); } } else { set = (WeakHashMap) map.get(key); } if(set == null) { // We emulate weak HashSet using WeakHashMap set = new WeakHashMap(); map.put(key, set); } set.put(broker, null); }
[ "Mark a PersistenceBroker as preferred choice for current Thread\n\n@param key The PBKey the broker is associated to\n@param broker The PersistenceBroker to mark as current" ]
[ "Look for the specified album art in both the hot cache of loaded tracks and the longer-lived LRU cache.\n\n@param artReference uniquely identifies the desired album art\n\n@return the art, if it was found in one of our caches, or {@code null}", "Performs a get all operation with the specified composite request object\n\n@param requestWrapper Composite request object containing a reference to\nthe Iterable keys\n\n@return Map of the keys to the corresponding versioned values", "Manual check because introducing a capability can't be done without a full refactoring.\nThis has to go as soon as the management interfaces are redesigned.\n@param context the OperationContext\n@param otherManagementEndpoint : the address to check that may provide an exposed jboss-remoting endpoint.\n@throws OperationFailedException in case we can't remove the management resource.", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width", "Use this API to update tmtrafficaction.", "This is generally only useful for extensions that delegate some of their functionality to other \"internal\"\nextensions of their own that they need to configure.\n\n@param configuration the configuration to be supplied with the returned analysis context.\n@return an analysis context that is a clone of this instance but its configuration is replaced with the provided\none.", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read.", "Initialize elements of the panel displayed for the deactivated widget." ]
public boolean isResourceExcluded(final PathAddress address) { if (!localHostControllerInfo.isMasterDomainController() && address.size() > 0) { IgnoredDomainResourceRoot root = this.rootResource; PathElement firstElement = address.getElement(0); IgnoreDomainResourceTypeResource typeResource = root == null ? null : root.getChildInternal(firstElement.getKey()); if (typeResource != null) { if (typeResource.hasName(firstElement.getValue())) { return true; } } } return false; }
[ "Returns whether this host should ignore operations from the master domain controller that target\nthe given address.\n\n@param address the resource address. Cannot be {@code null}\n\n@return {@code true} if the operation should be ignored; {@code false} otherwise" ]
[ "If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Context#getResources()}\n@return Point where x = width and y = height", "Performs an implicit double step given the set of two imaginary eigenvalues provided.\nSince one eigenvalue is the complex conjugate of the other only one set of real and imaginary\nnumbers is needed.\n\n@param x1 upper index of submatrix.\n@param x2 lower index of submatrix.\n@param real Real component of each of the eigenvalues.\n@param img Imaginary component of one of the eigenvalues.", "Copy the contents of the given byte array to the given OutputStream.\nLeaves the stream open when done.\n@param in the byte array to copy from\n@param out the OutputStream to copy to\n@throws IOException in case of I/O errors", "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "Use this API to fetch all the systemuser resources that are configured on netscaler.", "Use this API to update snmpuser resources.", "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException", "Begin a \"track;\" that is, begin logging at one level deeper.\nChannels other than the FORCE channel are ignored.\n@param args The title of the track to begin, with an optional FORCE flag.", "Generates a file of random data in a format suitable for the DIEHARD test.\nDIEHARD requires 3 million 32-bit integers.\n@param rng The random number generator to use to generate the data.\n@param outputFile The file that the random data is written to.\n@throws IOException If there is a problem writing to the file." ]
public Set<ConstraintViolation> validate(DataSetInfo info) { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); try { if (info.isMandatory() && get(info.getDataSetNumber()) == null) { errors.add(new ConstraintViolation(info, ConstraintViolation.MANDATORY_MISSING)); } if (!info.isRepeatable() && getAll(info.getDataSetNumber()).size() > 1) { errors.add(new ConstraintViolation(info, ConstraintViolation.REPEATABLE_REPEATED)); } } catch (SerializationException e) { errors.add(new ConstraintViolation(info, ConstraintViolation.INVALID_VALUE)); } return errors; }
[ "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid" ]
[ "Facade method facilitating the creation of subshell.\nSubshell is created and run inside Command method and shares the same IO and naming strtategy.\n\nRun the obtained Shell with commandLoop().\n\n@param pathElement sub-prompt\n@param parent Shell to be subshell'd\n@param appName The app name string\n@param mainHandler Command handler\n@return subshell", "Return a set of all the Declaration matching the DeclarationFilter of the.\nLinker.\n\n@return a set of all the Declaration matching the DeclarationFilter of the\nLinker.", "Serialize specified object to directory with specified name. Given output stream will be closed.\n\n@param obj object to serialize\n@return number of bytes written to directory", "Converts a date to an instance date bean.\n@return the instance date bean.", "Check if this request is part of the specified request. This is the case if both requests have equal properties\nand the specified request is asking for the same or more paint operations than this one.\n\n@param request another request\n@return true if the current request is contained in the specified request\n@since 1.10.0", "Log a warning for the given operation at the provided address for the given attributes, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param operation where which problem occurred\n@param message custom error message to append\n@param attributes attributes we that have problems about", "Method to know if already exists one file with the same name in the same\nfolder\n\n@param scenario_name\n@param path\n@param dest_dir\n@return true when the file does not exist", "Creates a new random symmetric matrix that will have the specified real eigenvalues.\n\n@param num Dimension of the resulting matrix.\n@param rand Random number generator.\n@param eigenvalues Set of real eigenvalues that the matrix will have.\n@return A random matrix with the specified eigenvalues.", "Creates a Blob holding a single-sheet spreadsheet with a pivot of the domain objects. The sheet name is derived from the\nclass name.\n\n<p>\nMinimal requirements for the domain object are:\n</p>\n<ul>\n<li>\nOne property has annotation {@link PivotRow} and will be used as row identifier in left column of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotColumn}. Its values will be used in columns of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotValue}. Its values will be distributed in the pivot.\n</li>\n</ul>" ]
public void checkVersion(ZWaveCommandClass commandClass) { ZWaveVersionCommandClass versionCommandClass = (ZWaveVersionCommandClass)this.getNode().getCommandClass(CommandClass.VERSION); if (versionCommandClass == null) { logger.error(String.format("Version command class not supported on node %d," + "reverting to version 1 for command class %s (0x%02x)", this.getNode().getNodeId(), commandClass.getCommandClass().getLabel(), commandClass.getCommandClass().getKey())); return; } this.getController().sendData(versionCommandClass.getCommandClassVersionMessage(commandClass.getCommandClass())); }
[ "Check the version of a command class by sending a VERSION_COMMAND_CLASS_GET message to the node.\n@param commandClass the command class to check the version for." ]
[ "Use this API to update spilloverpolicy.", "Function to filter files based on defined rules.", "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance", "Fetch the next event from a given stream\n@return the next event\n@throws IOException any io exception that could occur", "Make superclasses method protected??", "Get path ID for a given profileId and pathName\n\n@param pathName Name of path\n@param profileId ID of profile\n@return ID of path", "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.", "Plots the MSD curve with the trajectory t and adds the fitted model for confined diffusion above.\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Parameter alpha\n@param b Shape parameter 1\n@param c Shape parameter 2\n@param d Diffusion coefficient", "Returns the current version info for a provided remote document.\n@param remoteDocument the remote BSON document from which to extract version info\n@return a DocumentVersionInfo" ]
public static lbvserver get(nitro_service service, String name) throws Exception{ lbvserver obj = new lbvserver(); obj.set_name(name); lbvserver response = (lbvserver) obj.get_resource(service); return response; }
[ "Use this API to fetch lbvserver resource of given name ." ]
[ "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.", "Use this API to update vpnclientlessaccesspolicy.", "Demonstrates how to add an override to an existing path", "Use this API to delete route6.", "Add the specified files in reverse order.", "Returns an attribute's map value from this JAR's manifest's main section.\nThe attributes string value will be split on whitespace into map entries, and each entry will be split on '=' to get the key-value pair.\nThe returned map may be safely modified.\n\n@param name the attribute's name", "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read.", "Validates an operation against its description provider\n\n@param operation The operation to validate\n@throws IllegalArgumentException if the operation is not valid", "Get the server redirects belonging to a server group\n\n@param profileId ID of profile\n@param serverGroupId ID of server group\n@return Collection of ServerRedirect for a server group" ]
public static synchronized FormInputValueHelper getInstance( InputSpecification inputSpecification, FormFillMode formFillMode) { if (instance == null) instance = new FormInputValueHelper(inputSpecification, formFillMode); return instance; }
[ "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance." ]
[ "Add a list of enums to the options map\n@param key The key for the options map (ex: \"include[]\")\n@param list A list of enums", "Allocate a timestamp", "Ignore some element from the AST\n\n@param element\n@return", "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", "replace the counter for K1-index o by new counter c", "Allow for the use of text shading and auto formatting.", "Map content.\n\n@param dh the data handler\n@return the string", "Returns the total count of partitions across all stores.\n\n@return returns the total count of partitions across all stores.", "Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.\n\n@param map\nthe map\n@param nameMapping\nthe keys of the Map values to add to the List\n@return a List of all of the values in the Map whose key matches an entry in the nameMapping array\n@throws NullPointerException\nif map or nameMapping is null" ]
public static base_response delete(nitro_service client, String Dnssuffix) throws Exception { dnssuffix deleteresource = new dnssuffix(); deleteresource.Dnssuffix = Dnssuffix; return deleteresource.delete_resource(client); }
[ "Use this API to delete dnssuffix of given name." ]
[ "Get the time zone for a specific exchange suffix\n\n@param suffix suffix for the exchange in YahooFinance\n@return time zone of the exchange", "Refresh the layout element.", "Handles the response of the SendData request.\n@param incomingMessage the response message to process.", "Returns true if the specified class node is a trait.\n@param cNode a class node to test\n@return true if the classnode represents a trait", "Write the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar instance\n@param mpxjCalendar MPXJ calendar instance", "Returns timezone offset from a session instance. The offset is\nin minutes to UTC time\n\n@param session\nthe session instance\n@return the offset to UTC time in minutes", "replaces the old with the new item. The new item will not be added when the old one is not\nfound.\n\n@param oldObject will be removed\n@param newObject is added only when hte old item is removed", "Converts the Conditionals into real headers.\n@return real headers.", "An extension point so we can control how the query gets executed.\nThis exists for testing purposes, not because we believe it will\nactually be used for real." ]
protected NodeData createBlockStyle() { NodeData ret = CSSFactory.createNodeData(); TermFactory tf = CSSFactory.getTermFactory(); ret.push(createDeclaration("display", tf.createIdent("block"))); return ret; }
[ "Creates an empty block style definition.\n@return" ]
[ "create a consumer\n\n@param zookeeperConfig connect config of zookeeper; ex: 127.0.0.1:2181/jafka\n@param topic the topic to be watched\n@param groupId grouping the consumer clients\n@param listener message listener\n@return the real consumer", "List the indexes in the database. The returned object allows for listing indexes by type.\n\n@return indexes object with methods for getting indexes of a particular type", "Set the host.\n\n@param host the host", "create a new instance of the class represented by the no-argument constructor provided\n@param constructor the zero argument constructor for the class\n@return a new instance of the class\n@throws InstantiationException\n@throws ClassNotPersistenceCapableException if the constructor is null or there is an\nexception while trying to create a new instance", "Requests that the given namespace be started listening to for change events.\n\n@param namespace the namespace to listen for change events on.", "Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform preview, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Retrieve the default number of minutes per year.\n\n@return minutes per year", "from IsoFields in ThreeTen-Backport", "Generate a set of datetime patterns to accommodate variations in MPX files.\n\n@param datePattern date pattern element\n@param timePatterns time patterns\n@return datetime patterns" ]
private void processProjectID() { if (m_projectID == null) { List<Row> rows = getRows("project", null, null); if (!rows.isEmpty()) { Row row = rows.get(0); m_projectID = row.getInteger("proj_id"); } } }
[ "If the user has not specified a project ID, this method\nretrieves the ID of the first project in the file." ]
[ "Checks that given directory if readable & writable and prints a warning if the check fails. Warning is only\nprinted once and is not repeated until the condition is fixed and broken again.\n\n@param directory deployment directory\n@return does given directory exist and is readable and writable?", "Substitute the variables in the given expression with the\nvalues from the resolver\n\n@param pResolver\n@param pExpression", "Signal that all threads have run to completion, and the multithreaded\nenvironment is over.\n@param check The name of the thread group passed to startThreads()", "Formats a double value.\n\n@param number numeric value\n@return Double instance", "The timeout which we block for when a resource is not available\n\n@param timeout The timeout\n@param unit The units of the timeout", "Updates all inverse associations managed by a given entity.", "Calculate start dates for a weekly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "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.", "Encrypt a string with HMAC-SHA1 using the specified key.\n\n@param message Input string.\n@param key Encryption key.\n@return Encrypted output." ]
private boolean checkConverged(DMatrixRMaj A) { double worst = 0; double worst2 = 0; for( int j = 0; j < A.numRows; j++ ) { double val = Math.abs(q2.data[j] - q0.data[j]); if( val > worst ) worst = val; val = Math.abs(q2.data[j] + q0.data[j]); if( val > worst2 ) worst2 = val; } // swap vectors DMatrixRMaj temp = q0; q0 = q2; q2 = temp; if( worst < tol ) return true; else if( worst2 < tol ) return true; else return false; }
[ "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue..." ]
[ "Add assertions to tests execution.", "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "Performs a put operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key and\nvalue\n@return Version of the value for the successful put", "Get Rule\nGet a rule using the Rule ID\n@param ruleId Rule ID. (required)\n@return RuleEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "This method is used to initiate a release staging process using the Artifactory Release Staging API.", "List details of all calendars in the file.\n\n@param file ProjectFile instance", "Process a single criteria block.\n\n@param list parent criteria list\n@param block current block", "This method works as the one above, adding some properties to the message\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param properties\nto be added to the message\n@param connector\nThe connector to get the external access", "1-D Forward Discrete Hartley Transform.\n\n@param data Data." ]
String checkVersion(String pluginName, String dependency, String requestedVersion, String availableVersion) { if (null == availableVersion) { return "Dependency " + dependency + " not found for " + pluginName + ", version " + requestedVersion + " or higher needed.\n"; } if (requestedVersion.startsWith(EXPR_START) || availableVersion.startsWith(EXPR_START)) { return ""; } Version requested = new Version(requestedVersion); Version available = new Version(availableVersion); if (requested.getMajor() != available.getMajor()) { return "Dependency " + dependency + " is provided in a incompatible API version for plug-in " + pluginName + ", which requests version " + requestedVersion + ", but version " + availableVersion + " supplied.\n"; } if (requested.after(available)) { return "Dependency " + dependency + " too old for " + pluginName + ", version " + requestedVersion + " or higher needed, but version " + availableVersion + " supplied.\n"; } return ""; }
[ "Check the version to assure it is allowed.\n\n@param pluginName plugin name which needs the dependency\n@param dependency dependency which needs to be verified\n@param requestedVersion requested/minimum version\n@param availableVersion available version\n@return version check problem or empty string when all is fine" ]
[ "Sets the hostname and port to connect to.\n\n@param hostname the host name\n@param port the port\n\n@return the builder", "Called every frame if the picker is enabled\nto generate pick events.\n@param frameTime starting time of the current frame", "Generate an opaque pagination token from the supplied PageMetadata.\n\n@param pageMetadata page metadata of the page for which the token should be generated\n@return opaque pagination token", "Attempts to insert a colon so that a value without a colon can\nbe parsed.", "Retrieves the avatar of a user as an InputStream.\n\n@return InputStream representing the user avater.", "Add information about host and thread to specified test case started event\n\n@param event given event to update\n@return updated event", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "Gets an iterable of all the groups in the enterprise that are starting with the given name string.\n@param api the API connection to be used when retrieving the groups.\n@param name the name prefix of the groups. If the groups need to searched by full name that has spaces,\nthen the parameter string should have been wrapped with \"\".\n@return an iterable containing info about all the groups.", "Reset autoCommit state." ]
public void setValue(float value) { mBarPointerPosition = Math.round((mSVToPosFactor * (1 - value)) + mBarPointerHaloRadius + (mBarLength / 2)); calculateColor(mBarPointerPosition); mBarPointerPaint.setColor(mColor); // Check whether the Saturation/Value bar is added to the ColorPicker // wheel if (mPicker != null) { mPicker.setNewCenterColor(mColor); mPicker.changeOpacityBarColor(mColor); } invalidate(); }
[ "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1" ]
[ "Obtain a dbserver client session that can be used to perform some task, call that task with the client,\nthen release the client.\n\n@param targetPlayer the player number whose dbserver we wish to communicate with\n@param task the activity that will be performed with exclusive access to a dbserver connection\n@param description a short description of the task being performed for error reporting if it fails,\nshould be a verb phrase like \"requesting track metadata\"\n@param <T> the type that will be returned by the task to be performed\n\n@return the value returned by the completed task\n\n@throws IOException if there is a problem communicating\n@throws Exception from the underlying {@code task}, if any", "Handles an initial response from a PUT or PATCH operation response by polling the status of the operation\nasynchronously, once the operation finishes emits the final response.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param resourceType the java.lang.reflect.Type of the resource.\n@param <T> the return type of the caller.\n@return the observable of which a subscription will lead to a final response.", "The default field facets.\n\n@param categoryConjunction flag, indicating if category selections in the facet should be \"AND\" combined.\n@return the default field facets.", "This method is called to format a relation.\n\n@param relation relation instance\n@return formatted relation instance", "Read leaf tasks attached to the WBS.\n\n@param id initial WBS ID", "Return a long value which is the number of rows in the table.", "Call the Coverage Task.", "Update counters and call hooks.\n@param handle connection handle.", "Add new control at the end of control bar with specified touch listener, control label and resource.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param resId the control face\n@param label the control label\n@param listener touch listener" ]
public FullTypeSignature getTypeErasureSignature() { if (typeErasureSignature == null) { typeErasureSignature = new ClassTypeSignature(binaryName, new TypeArgSignature[0], ownerTypeSignature == null ? null : (ClassTypeSignature) ownerTypeSignature .getTypeErasureSignature()); } return typeErasureSignature; }
[ "get the type erasure signature" ]
[ "Convenience method to convert a CSV string list to a set. Note that this\nwill suppress duplicates.\n\n@param str the input String\n@return a Set of String entries in the list", "Returns the first number available, starting at portNumberStartingPoint that's not already in the reservedPorts\nlist.\n\n@param portNumberStartingPoint first port number to start from.\n@param reservedPorts the ports already reserved.\n@return first number available not in the given list, starting at the given parameter.", "Creates a random vector that is inside the specified span.\n\n@param span The span the random vector belongs in.\n@param rand RNG\n@return A random vector within the specified span.", "Runs a queued task, if the queue is not already empty.\n\nNote that this will decrement the request count if there are no queued tasks to be run\n\n@param hasPermit If the caller has already called {@link #beginRequest(boolean force)}", "Removes the given entity from the inverse associations it manages.", "find all accessibility object and set active false for enable talk back.", "Returns an array of normalized strings for this host name instance.\n\nIf this represents an IP address, the address segments are separated into the returned array.\nIf this represents a host name string, the domain name segments are separated into the returned array,\nwith the top-level domain name (right-most segment) as the last array element.\n\nThe individual segment strings are normalized in the same way as {@link #toNormalizedString()}\n\nPorts, service name strings, prefix lengths, and masks are all omitted from the returned array.\n\n@return", "Assign FK values and store entries in indirection table\nfor all objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation", "Return the IP address as text such as \"192.168.1.15\"." ]
@Override @SuppressWarnings("unchecked") public ChronoZonedDateTime<Symmetry010Date> zonedDateTime(TemporalAccessor temporal) { return (ChronoZonedDateTime<Symmetry010Date>) super.zonedDateTime(temporal); }
[ "Obtains a Symmetry010 zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 zoned date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
[ "Initializes the default scope type", "Returns the size of the shadow element", "lookup current maximum value for a single field in\ntable the given class descriptor was associated.", "Use this API to update nspbr6 resources.", "Checks if a given number is in the range of a short.\n\n@param number\na number which should be in the range of a short (positive or negative)\n\n@see java.lang.Short#MIN_VALUE\n@see java.lang.Short#MAX_VALUE\n\n@return number as a short (rounding might occur)", "Perform construction with custom thread pool size.", "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "Add a line symbolizer definition to the rule.\n\n@param styleJson The old style.", "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance" ]
protected void appendWhereClause(ClassDescriptor cld, boolean useLocking, StringBuffer stmt) { FieldDescriptor[] pkFields = cld.getPkFields(); FieldDescriptor[] fields; fields = pkFields; if(useLocking) { FieldDescriptor[] lockingFields = cld.getLockingFields(); if(lockingFields.length > 0) { fields = new FieldDescriptor[pkFields.length + lockingFields.length]; System.arraycopy(pkFields, 0, fields, 0, pkFields.length); System.arraycopy(lockingFields, 0, fields, pkFields.length, lockingFields.length); } } appendWhereClause(fields, stmt); }
[ "Generate a where clause for a prepared Statement.\nOnly primary key and locking fields are used in this where clause\n\n@param cld the ClassDescriptor\n@param useLocking true if locking fields should be included\n@param stmt the StatementBuffer" ]
[ "Function to filter files based on defined rules.", "Trim and append a file separator to the string", "Set the TableAlias for aPath\n@param aPath\n@param hintClasses\n@param TableAlias", "Calculates the maximum text height which is possible based on the used Paint and its settings.\n\n@param _Paint Paint object which will be used to display a text.\n@param _Text The text which should be measured. If null, a default text is chosen, which\nhas a maximum possible height\n@return Maximum text height in px.", "Crop the image between two points.\n\n@param top Top bound.\n@param left Left bound.\n@param bottom Bottom bound.\n@param right Right bound.\n@throws IllegalArgumentException if {@code top} or {@code left} are less than zero or {@code\nbottom} or {@code right} are less than one or less than {@code top} or {@code left},\nrespectively.", "Removes the task from wait q.\n\n@param taskTobeRemoved\nthe task tobe removed\n@return true, if successful", "Validates the wrapped value and returns a localized error message in case of invalid values.\n@return <code>null</code> if the value is valid, a suitable localized error message otherwise.", "Store the data of a print job in the registry.\n\n@param printJobStatus the print job status", "Converts this update description to its document representation as it would appear in a\nMongoDB Change Event.\n\n@return the update description document as it would appear in a change event" ]
public GVRTexture getSplashTexture(GVRContext gvrContext) { Bitmap bitmap = BitmapFactory.decodeResource( // gvrContext.getContext().getResources(), // R.drawable.__default_splash_screen__); GVRTexture tex = new GVRTexture(gvrContext); tex.setImage(new GVRBitmapImage(gvrContext, bitmap)); return tex; }
[ "Override this method to supply a custom splash screen image.\n\n@param gvrContext\nThe new {@link GVRContext}\n@return Texture to display\n\n@since 1.6.4" ]
[ "Read phases and activities from the Phoenix file to create the task hierarchy.\n\n@param phoenixProject all project data\n@param storepoint storepoint containing current project data", "Answer the SQL-Clause for a LikeCriteria\n\n@param c\n@param buf", "This method changes package_path into folder's path\n\n@param path\n, as es.upm.gsi\n@return the new path, es/upm/gsi", "alias of setColorUnpressed", "Creates and populates a new task relationship.\n\n@param field which task field source of data\n@param sourceTask relationship source task\n@param relationship relationship string\n@throws MPXJException", "Gets the message payload.\n\n@param message the message\n@return the payload", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong", "Read in lines and execute them.\n\n@param reader the reader from which to get the groovy source to exec\n@param out the outputstream to use\n@throws java.io.IOException if something goes wrong", "Adds a port that serves the HTTP requests. If unspecified, cleartext HTTP on port 36462 is used.\n\n@param localAddress the TCP/IP load address to bind\n@param protocol {@link SessionProtocol#HTTP} or {@link SessionProtocol#HTTPS}" ]