query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public static List<Expression> getVariableExpressions(DeclarationExpression declarationExpression) { Expression leftExpression = declarationExpression.getLeftExpression(); // !important: performance enhancement if (leftExpression instanceof ArrayExpression) { List<Expression> expressions = ((ArrayExpression) leftExpression).getExpressions(); return expressions.isEmpty() ? Arrays.asList(leftExpression) : expressions; } else if (leftExpression instanceof ListExpression) { List<Expression> expressions = ((ListExpression) leftExpression).getExpressions(); return expressions.isEmpty() ? Arrays.asList(leftExpression) : expressions; } else if (leftExpression instanceof TupleExpression) { List<Expression> expressions = ((TupleExpression) leftExpression).getExpressions(); return expressions.isEmpty() ? Arrays.asList(leftExpression) : expressions; } else if (leftExpression instanceof VariableExpression) { return Arrays.asList(leftExpression); } // todo: write warning return Collections.emptyList(); }
[ "Return the List of VariableExpression objects referenced by the specified DeclarationExpression.\n@param declarationExpression - the DeclarationExpression\n@return the List of VariableExpression objects" ]
[ "Save page to log\n\n@return address of this page after save", "Whether this section is consistent with an EUI64 section,\nwhich means it came from an extended 8 byte address,\nand the corresponding segments in the middle match 0xff and 0xfe\n\n@param partial whether missing segments are considered a match\n@return", "Creates a new immutable set that consists of given elements.\n\n@param elements the given elements\n@return a new immutable set that consists of given elements", "Specify the method to instantiate objects\nrepresented by this descriptor.\n@see #setFactoryClass", "a specialized version of solve that avoid additional checks that are not needed.", "Make sure that we have some reasonable defaults available. These would typically be provided by the rulesets\nin the real world.", "Return true only if the node has any of the named annotations\n@param node - the AST Node to check\n@param names - the names of the annotations\n@return true only if the node has any of the named annotations", "Creates an attachment from a binary input stream.\nThe content of the stream will be transformed into a Base64 encoded string\n@throws IOException if an I/O error occurs\n@throws java.lang.IllegalArgumentException if mediaType is not binary", "Parses command-line and gets read-only metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
private boolean isPacketLongEnough(DatagramPacket packet, int expectedLength, String name) { final int length = packet.getLength(); if (length < expectedLength) { logger.warn("Ignoring too-short " + name + " packet; expecting " + expectedLength + " bytes and got " + length + "."); return false; } if (length > expectedLength) { logger.warn("Processing too-long " + name + " packet; expecting " + expectedLength + " bytes and got " + length + "."); } return true; }
[ "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" ]
[ "Replaces sequences of whitespaces with tabs.\n\n@param self A CharSequence to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "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", "Non-zero counts of Householder vectors and computes a permutation\nmatrix that ensures diagonal entires are all structurally nonzero.\n\n@param parent elimination tree\n@param ll linked list for each row that specifies elements that are not zero", "Used to retrieve all metadata associated with the item.\n@param item item to get metadata for.\n@param fields the optional fields to retrieve.\n@return An iterable of metadata instances associated with the item.", "Samples without replacement from a collection.\n\n@param c\nThe collection to be sampled from\n@param n\nThe number of samples to take\n@return a new collection with the sample", "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.", "Get the column name from the indirection table.\n@param mnAlias\n@param path", "Return the score of the specified element of the sorted set at key.\n@param member\n@return The score value or <code>null</code> if the element does not exist in the set.", "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred." ]
@GET @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON}) @Path("/{name}" + ServerAPI.GET_CORPORATE_GROUPIDS) public Response getCorporateGroupIdPrefix(@PathParam("name") final String organizationId){ LOG.info("Got a get corporate groupId prefix request for organization " + organizationId +"."); final ListView view = new ListView("Organization " + organizationId, "Corporate GroupId Prefix"); final List<String> corporateGroupIds = getOrganizationHandler().getCorporateGroupIds(organizationId); view.addAll(corporateGroupIds); return Response.ok(view).build(); }
[ "Return the list of corporate GroupId prefix configured for an organization.\n\n@param organizationId String Organization name\n@return Response A list of corporate groupId prefix in HTML or JSON" ]
[ "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 )", "Acquire the exclusive lock allowing the acquisition to be interrupted.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@throws InterruptedException - if the acquiring thread is interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Sets the value if the date only should be shown.\n@param dateOnly if the date only should be shown", "Links the two field names into a single left.right field name.\nIf the left field is empty, right is returned\n\n@param left one field name\n@param right the other field name\n\n@return left.right or right if left is an empty string", "Create a Count-Query for QueryBySQL\n\n@param aQuery\n@return The count query", "Copy a patch element\n\n@param entry the patch entry\n@param patchId the patch id for the element\n@param modifications the element modifications\n@return the new patch element", "Deletes and publishes resources with ID conflicts.\n\n@param cms the CMS context to use\n@param module the module\n@param conflictingIds the conflicting ids\n@throws CmsException if something goes wrong\n@throws Exception if something goes wrong", "Update the state of the picker. If it has an owner, the picker\nwill use that object to derive its position and orientation.\nThe \"active\" state of this controller is used to indicate touch.\nThe cursor position is updated after picking.", "Set the given column name to the given value.\n\n@param name The column name to set.\n@param value the value to set.\n@return {@code this}\n@throws IllegalArgumentException if a column name does not exist in the table." ]
public static ModelMBeanOperationInfo[] extractOperationInfo(Object object) { ArrayList<ModelMBeanOperationInfo> infos = new ArrayList<ModelMBeanOperationInfo>(); for(Method m: object.getClass().getMethods()) { JmxOperation jmxOperation = m.getAnnotation(JmxOperation.class); JmxGetter jmxGetter = m.getAnnotation(JmxGetter.class); JmxSetter jmxSetter = m.getAnnotation(JmxSetter.class); if(jmxOperation != null || jmxGetter != null || jmxSetter != null) { String description = ""; int visibility = 1; int impact = MBeanOperationInfo.UNKNOWN; if(jmxOperation != null) { description = jmxOperation.description(); impact = jmxOperation.impact(); } else if(jmxGetter != null) { description = jmxGetter.description(); impact = MBeanOperationInfo.INFO; visibility = 4; } else if(jmxSetter != null) { description = jmxSetter.description(); impact = MBeanOperationInfo.ACTION; visibility = 4; } ModelMBeanOperationInfo info = new ModelMBeanOperationInfo(m.getName(), description, extractParameterInfo(m), m.getReturnType() .getName(), impact); info.getDescriptor().setField("visibility", Integer.toString(visibility)); infos.add(info); } } return infos.toArray(new ModelMBeanOperationInfo[infos.size()]); }
[ "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object" ]
[ "Creates a resource key with given id for bundle specified by given class.\n@param clazz the class owning the bundle.\n@param id value identifier\n@return the resource key", "Set the header names to forward from the request. Should not be defined if all is set to true\n\n@param names the header names.", "Write a Byte Order Mark at the beginning of the file\n\n@param stream the FileOutputStream to write the BOM to\n@param bigEndian true if UTF 16 Big Endian or false if Low Endian\n@throws IOException if an IOException occurs.\n@since 1.0", "Set the classpath for loading the driver.\n\n@param classpath the classpath", "Returns the JSON datatype for the property datatype as represented by\nthe given WDTK datatype IRI string.\n\n@param datatypeIri\nthe WDTK datatype IRI string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known", "Build call for postUiAutopilotWaypoint\n\n@param addToBeginning\nWhether this solar system should be added to the beginning of\nall waypoints (required)\n@param clearOtherWaypoints\nWhether clean other waypoints beforing adding this one\n(required)\n@param destinationId\nThe destination to travel to, can be solar system, station or\nstructure&#39;s id (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param token\nAccess token to use if unable to set a header (optional)\n@param callback\nCallback for upload/download progress\n@return Call to execute\n@throws ApiException\nIf fail to serialize the request body object", "Use this API to add dbdbprofile.", "Calculate the arc length by angle and radius\n@param angle\n@return arc length", "Use this API to clear nsconfig." ]
protected Tree determineNonTrivialHead(Tree t, Tree parent) { Tree theHead = null; String motherCat = tlp.basicCategory(t.label().value()); if (DEBUG) { System.err.println("Looking for head of " + t.label() + "; value is |" + t.label().value() + "|, " + " baseCat is |" + motherCat + '|'); } // We know we have nonterminals underneath // (a bit of a Penn Treebank assumption, but). // Look at label. // a total special case.... // first look for POS tag at end // this appears to be redundant in the Collins case since the rule already would do that // Tree lastDtr = t.lastChild(); // if (tlp.basicCategory(lastDtr.label().value()).equals("POS")) { // theHead = lastDtr; // } else { String[][] how = nonTerminalInfo.get(motherCat); if (how == null) { if (DEBUG) { System.err.println("Warning: No rule found for " + motherCat + " (first char: " + motherCat.charAt(0) + ')'); System.err.println("Known nonterms are: " + nonTerminalInfo.keySet()); } if (defaultRule != null) { if (DEBUG) { System.err.println(" Using defaultRule"); } return traverseLocate(t.children(), defaultRule, true); } else { return null; } } for (int i = 0; i < how.length; i++) { boolean lastResort = (i == how.length - 1); theHead = traverseLocate(t.children(), how[i], lastResort); if (theHead != null) { break; } } if (DEBUG) { System.err.println(" Chose " + theHead.label()); } return theHead; }
[ "Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories." ]
[ "Specify the output format of the image.\n\n@see ImageFormat", "Record operation for sync ops time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param opTimeUs The number of us for the op to finish", "Replace default values will null, allowing them to be ignored.\n\n@param value value to test\n@return filtered value", "Obtains a Coptic zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Coptic zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Calculate the name of the input value.\n\n@param inputPrefix a nullable prefix to prepend to the name if non-null and non-empty\n@param inputMapper the name mapper\n@param field the field containing the value", "Obtains a local date in Coptic 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 Coptic local date, not null\n@throws DateTimeException if unable to create the date", "Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.\n\n@param beanClass\n@return the additional bean deployment archive", "Validate arguments.", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression" ]
private void readTask(ChildTaskContainer mpxjParent, net.sf.mpxj.ganttproject.schema.Task gpTask) { Task mpxjTask = mpxjParent.addTask(); mpxjTask.setUniqueID(Integer.valueOf(NumberHelper.getInt(gpTask.getId()) + 1)); mpxjTask.setName(gpTask.getName()); mpxjTask.setPercentageComplete(gpTask.getComplete()); mpxjTask.setPriority(getPriority(gpTask.getPriority())); mpxjTask.setHyperlink(gpTask.getWebLink()); Duration duration = Duration.getInstance(NumberHelper.getDouble(gpTask.getDuration()), TimeUnit.DAYS); mpxjTask.setDuration(duration); if (duration.getDuration() == 0) { mpxjTask.setMilestone(true); } else { mpxjTask.setStart(gpTask.getStart()); mpxjTask.setFinish(m_mpxjCalendar.getDate(gpTask.getStart(), mpxjTask.getDuration(), false)); } mpxjTask.setConstraintDate(gpTask.getThirdDate()); if (mpxjTask.getConstraintDate() != null) { // TODO: you don't appear to be able to change this setting in GanttProject // task.getThirdDateConstraint() mpxjTask.setConstraintType(ConstraintType.START_NO_EARLIER_THAN); } readTaskCustomFields(gpTask, mpxjTask); m_eventManager.fireTaskReadEvent(mpxjTask); // TODO: read custom values // // Process child tasks // for (net.sf.mpxj.ganttproject.schema.Task childTask : gpTask.getTask()) { readTask(mpxjTask, childTask); } }
[ "Recursively read a task, and any sub tasks.\n\n@param mpxjParent Parent for the MPXJ tasks\n@param gpTask GanttProject task" ]
[ "Adds format information to eval.", "Gets the URL of the service with the given name that has been created during the current session.\n\n@param name to return its URL\n@return URL of the service.", "Remove the corresponding object from session AND application cache.", "Checks the preconditions for creating a new StrRegExReplace processor.\n\n@param regex\nthe supplied regular expression\n@param replacement\nthe supplied replacement text\n@throws IllegalArgumentException\nif regex is empty\n@throws NullPointerException\nif regex or replacement is null", "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object.", "The handling method.", "Get the unique set of declared methods on the leaf class and all superclasses. Leaf\nclass methods are included first and while traversing the superclass hierarchy any methods found\nwith signatures matching a method already included are filtered out.", "Returns a flag indicating if also unreleased resources should be found.\n@return A flag indicating if also unreleased resources should be found.", "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container" ]
@Override public List<ConfigIssue> init(Service.Context context) { this.context = context; return init(); }
[ "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none." ]
[ "Perform the work of processing the various OperationContext.Stage queues, and then the DONE stage.", "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.", "Invokes the exit logger if and only if no ExitLogger was previously invoked.\n@param logger the logger. Cannot be {@code null}", "Return collection of path Ids in priority order\n\n@param profileId ID of profile\n@return collection of path Ids in priority order", "Retrieve an instance of the ResourceField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ResourceField instance", "Checks if template mapper is configured in modules.\n\n@return true if the template mapper is configured in modules", "Print a constraint type.\n\n@param value ConstraintType instance\n@return constraint type value", "Use this API to unset the properties of gslbservice resources.\nProperties that need to be unset are specified in args array.", "Publish finish events for each of the specified query labels\n\n<pre>\n{@code\nLabelledEvents.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 labels Query types to post to event bus" ]
public static <T> Class<T> loadClass(String className, ResourceLoader resourceLoader) { try { return cast(resourceLoader.classForName(className)); } catch (ResourceLoadingException e) { return null; } catch (SecurityException e) { return null; } }
[ "Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.\n@param className\n@param resourceLoader\n@return the loaded class or null if the given class cannot be loaded" ]
[ "Retrieves a vertex attribute as an integer array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntVec(String, IntBuffer)\n@see #getIntArray(String)", "Adds an additional statement to the constructed document.\n\n@param statement\nthe additional statement\n@return builder object to continue construction", "Perform the entire sort operation", "width of input section", "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.", "Appends a line separator node that will only be effective if the current line contains non-whitespace text.\n\n@return the given parent node", "Creates a new Logger instance for the specified name.", "Sets the lower limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis lower rotation limit (in radians)\n@param limitY the Y axis lower rotation limit (in radians)\n@param limitZ the Z axis lower rotation limit (in radians)", "Check the document field's type\nand object\n@param lhs The field to check\n@param rhs The type\n@return Expression: lhs $type rhs" ]
public static gslbservice[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ gslbservice obj = new gslbservice(); options option = new options(); option.set_filter(filter); gslbservice[] response = (gslbservice[]) obj.getfiltered(service, option); return response; }
[ "Use this API to fetch filtered set of gslbservice resources.\nset the filter parameter values in filtervalue object." ]
[ "Finds or creates a ResourceStorageLoadable for the given resource.\nClients should first call shouldLoadFromStorage to check whether there exists a storage version\nof the given resource.\n\n@return an IResourceStorageLoadable", "IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery", "Write resource assignment.\n\n@param record resource assignment instance\n@throws IOException", "Send a device update to all registered update listeners.\n\n@param update the device update that has just arrived", "Accessor method used to retrieve a String object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Use this API to fetch cachecontentgroup resource of given name .", "Given a filesystem, path and buffer-size, read the file contents and\npresents it as a string\n\n@param fs Underlying filesystem\n@param path The file to read\n@param bufferSize The buffer size to use for reading\n@return The contents of the file as a string\n@throws IOException", "Use this API to fetch nsacl6 resource of given name .", "Returns the current definition on the indicated level.\n\n@param level The level\n@return The definition" ]
protected synchronized void doWriteObjects(boolean isFlush) throws TransactionAbortedException, LockNotGrantedException { /* arminw: if broker isn't in PB-tx, start tx */ if (!getBroker().isInTransaction()) { if (log.isDebugEnabled()) log.debug("call beginTransaction() on PB instance"); broker.beginTransaction(); } // Notify objects of impending commits. performTransactionAwareBeforeCommit(); // Now perfom the real work objectEnvelopeTable.writeObjects(isFlush); // now we have to perform the named objects namedRootsMap.performDeletion(); namedRootsMap.performInsert(); namedRootsMap.afterWriteCleanup(); }
[ "Write objects to data store, but don't release the locks.\nI don't know what we should do if we are in a checkpoint and\nwe need to abort." ]
[ "convenience method for setting working or non-working days.\n\n@param day required day\n@param working flag indicating if the day is a working day", "Check if the node matches the column values\n\n@param nodeProperties the properties on the node\n@param keyColumnNames the name of the columns to check\n@param keyColumnValues the value of the columns to check\n@return true if the properties of the node match the column names and values", "Execute a request\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history\n@throws Exception", "Use this API to delete clusterinstance resources.", "Map a single ResultSet row to a T instance.\n\n@throws SQLException", "Sets the target translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Use this API to save nsconfig.", "Writes all data that was collected about classes to a json file.", "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally." ]
public final void notifyHeaderItemRangeChanged(int positionStart, int itemCount) { if (positionStart < 0 || itemCount < 0 || positionStart + itemCount >= headerItemCount) { throw new IndexOutOfBoundsException("The given range [" + positionStart + " - " + (positionStart + itemCount - 1) + "] is not within the position bounds for header items [0 - " + (headerItemCount - 1) + "]."); } notifyItemRangeChanged(positionStart, itemCount); }
[ "Notifies that multiple header items are changed.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "Waits for a job V3 to complete\n\n@param cloudFoundryClient the client to use to request job status\n@param completionTimeout the amount of time to wait for the job to complete.\n@param jobId the id of the job\n@return {@code onComplete} once job has completed", "Makes sure that the operation name and the address have been set and returns a ModelNode\nrepresenting the operation request.", "Fires the event and waits for a specified time.\n\n@param webElement the element to fire event on.\n@param eventable The HTML event type (onclick, onmouseover, ...).\n@return true if firing event is successful.\n@throws InterruptedException when interrupted during the wait.", "Retrieves the class object for the class with the given name.\n\n@param name The class name\n@return The class object\n@throws ClassNotFoundException If the class is not on the classpath (the exception message contains the class name)", "Request the list of all tracks in the specified slot, given a dbserver connection to a player that has already\nbeen set up.\n\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 track list entry items\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations", "Creates the main component of the editor with all sub-components.\n@return the completely filled main component of the editor.\n@throws IOException thrown if setting the table's content data source fails.\n@throws CmsException thrown if setting the table's content data source fails.", "Adds an additional statement to the constructed document.\n\n@param statement\nthe additional statement\n@return builder object to continue construction", "Compute the location of the generated file from the given trace file.", "Finds the missing value. Seems to lose a degree of freedom, but it\ndoesn't. That degree of freedom is already lost by the sensor." ]
public static base_response update(nitro_service client, nsrpcnode resource) throws Exception { nsrpcnode updateresource = new nsrpcnode(); updateresource.ipaddress = resource.ipaddress; updateresource.password = resource.password; updateresource.srcip = resource.srcip; updateresource.secure = resource.secure; return updateresource.update_resource(client); }
[ "Use this API to update nsrpcnode." ]
[ "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file", "Extract schema of the key field", "Prepare a parallel HTTP DELETE 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", "Convert a floating point date to a LocalDateTime.\n\nNote: This method currently performs a rounding to the next second.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@return The date resulting from adding Math.round(fixingTime*SECONDS_PER_DAY) seconds to referenceDate, where one day has SECONDS_PER_DAY seconds and SECONDS_PER_DAY is a constant 365*24*60*60", "Use this API to update csparameter.", "Opens the jar, wraps any IOException.", "Loads the script from a text string.\n@param scriptText text string containing script to execute.\n@param language language (\"js\" or \"lua\")", "below is testing code", "Get a collection of methods declared on this object by method name and parameter count.\n\n@param name the name of the method\n@param paramCount the number of parameters\n@return the (possibly empty) collection of methods with the given name and parameter count" ]
public void reportError(NodeT faulted, Throwable throwable) { faulted.setPreparer(true); String dependency = faulted.key(); for (String dependentKey : nodeTable.get(dependency).dependentKeys()) { DAGNode<DataT, NodeT> dependent = nodeTable.get(dependentKey); dependent.lock().lock(); try { dependent.onFaultedResolution(dependency, throwable); if (dependent.hasAllResolved()) { queue.add(dependent.key()); } } finally { dependent.lock().unlock(); } } }
[ "Reports that a node is faulted.\n\n@param faulted the node faulted\n@param throwable the reason for fault" ]
[ "Use this API to add cachepolicylabel.", "Computes the eigenvalues of a 2 by 2 matrix using a faster but more prone to errors method. This\nis the typical method.", "Return a String of length a minimum of totalChars characters by\npadding the input String str at the right end with spaces.\nIf str is already longer\nthan totalChars, it is returned unchanged.", "Confirms that both clusters have the same number of nodes by comparing\nset of node Ids between clusters.\n\n@param lhs\n@param rhs", "Stop finding beat grids for all active players.", "Update the underlying buffer using the integer\n\n@param number number to be stored in checksum buffer", "Gets the current page\n@return", "Return overall per token accuracy", "Convert an Object to a Timestamp." ]
public void notifyEventListeners(ZWaveEvent event) { logger.debug("Notifying event listeners"); for (ZWaveEventListener listener : this.zwaveEventListeners) { logger.trace("Notifying {}", listener.toString()); listener.ZWaveIncomingEvent(event); } }
[ "Notify our own event listeners of a Z-Wave event.\n@param event the event to send." ]
[ "Convert an Object to a Date, without an Exception", "Removes the given entity from the inverse associations it manages.", "Put the core auto-code algorithm here so an external class can call it", "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list of segments. Is never <code>null</code>.", "Parses and adds dictionaries to the Solr index.\n\n@param cms the OpenCms object.\n\n@throws CmsRoleViolationException in case the user does not have the required role ROOT_ADMIN", "Use this API to delete cacheselector of given name.", "Set dates where the event should not take place, even if they are part of the series.\n@param dates dates to set.", "Stop finding beat grids for all active players.", "Use this API to fetch vpnvserver_responderpolicy_binding resources of given name ." ]
public static void copyThenClose(InputStream input, OutputStream output) throws IOException { copy(input, output); input.close(); output.close(); }
[ "Copies information between specified streams and then closes\nboth of the streams.\n@throws java.io.IOException" ]
[ "Handle content length.\n\n@param event\nthe event", "Configures the log context.\n\n@param configFile the configuration file\n@param classLoader the class loader to use for the configuration\n@param logContext the log context to configure\n\n@return {@code true} if the log context was successfully configured, otherwise {@code false}\n\n@throws DeploymentUnitProcessingException if the configuration fails", "Creates the graphic element to be shown when the datasource is empty", "Get a property as a boolean or null.\n\n@param key the property name", "The smallest granularity of rebalancing where-in we move partitions for a\nsub-set of stores. Finally at the end of the movement, the node is\nremoved out of rebalance state\n\n<br>\n\nAlso any errors + rollback procedures are performed at this level itself.\n\n<pre>\n| Case | hasRO | hasRW | finishedRO | Action |\n| 0 | t | t | t | rollback cluster change + swap |\n| 1 | t | t | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 2 | t | f | t | won't be triggered since hasRW is false |\n| 3 | t | f | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 4 | f | t | t | rollback cluster change |\n| 5 | f | t | f | won't be triggered |\n| 6 | f | f | t | won't be triggered |\n| 7 | f | f | f | won't be triggered |\n</pre>\n\n@param batchId Rebalance batch id\n@param batchRollbackCluster Cluster to rollback to if we have a problem\n@param rebalanceTaskPlanList The list of rebalance partition plans\n@param hasReadOnlyStores Are we rebalancing any read-only stores?\n@param hasReadWriteStores Are we rebalancing any read-write stores?\n@param finishedReadOnlyStores Have we finished rebalancing of read-only\nstores?", "refresh the most recent history entries\n\n@param limit number of entries to populate\n@param offset number of most recent entries to skip\n@return populated history entries\n@throws Exception exception", "Runs the record linkage process.", "Blocking function which completes the migration of one store\n\n@param storeName The name of the store\n@param adminClient Admin client used to initiate the copying of data\n@param stealInfo The steal information\n@param isReadOnlyStore Boolean indicating that this is a read-only store", "Return a list of unique namespace and predicate pairs, optionally limited by predicate or namespace, in alphabetical order.\n\nThis method does not require authentication.\n\n@param namespace\noptional, can be null\n@param predicate\noptional, can be null\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return NamespacesList containing Pair-objects\n@throws FlickrException" ]
public Excerpt typeParameters() { if (getTypeParameters().isEmpty()) { return Excerpts.EMPTY; } else { return Excerpts.add("<%s>", Excerpts.join(", ", getTypeParameters())); } }
[ "Returns a source excerpt of the type parameters of this type, including angle brackets.\nAlways an empty string if the type class is not generic.\n\n<p>e.g. {@code <N, C>}" ]
[ "This method is used to push install referrer via UTM source, medium & campaign parameters\n@param source The UTM source parameter\n@param medium The UTM medium parameter\n@param campaign The UTM campaign parameter", "We have a non-null date, try each format in turn to see if it can be parsed.\n\n@param str date to parse\n@param pos position at which to start parsing\n@return Date instance", "Bind a prepared statment that represents a call to a procedure or\nuser-defined function.\n\n@param stmt the statement to bind.\n@param cld the class descriptor of the object that triggered the\ninvocation of the procedure or user-defined function.\n@param obj the object that triggered the invocation of the procedure\nor user-defined function.\n@param proc the procedure descriptor that provides information about\nthe arguments that shoudl be passed to the procedure or\nuser-defined function", "Reads a single schema file.\n\n@param reader The schema reader\n@param schemaFile The schema file\n@return The model", "See if there is an auto-attach cache file that seems to match the media in the specified slot, and if so,\nattach it.\n\n@param slot the player slot that is under consideration for automatic cache attachment", "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", "Remove a variable in the top variables layer.", "Creates a ServiceCall from an observable object and a callback.\n\n@param observable the observable to create from\n@param callback the callback to call when events happen\n@param <T> the type of the response\n@return the created ServiceCall", "Use this API to update ntpserver." ]
public static ByteBuffer newDirectByteBuffer(long addr, int size, Object att) { dbbCC.setAccessible(true); Object b = null; try { b = dbbCC.newInstance(new Long(addr), new Integer(size), att); return ByteBuffer.class.cast(b); } catch(Exception e) { throw new IllegalStateException(String.format("Failed to create DirectByteBuffer: %s", e.getMessage())); } }
[ "Create a new DirectByteBuffer from a given address and size.\nThe returned DirectByteBuffer does not release the memory by itself.\n\n@param addr\n@param size\n@param att object holding the underlying memory to attach to the buffer.\nThis will prevent the garbage collection of the memory area that's\nassociated with the new <code>DirectByteBuffer</code>\n@return" ]
[ "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise", "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "Remove all references to a groupId\n\n@param groupIdToRemove ID of group", "Overridden 'consume' method. Corresponding parent method will be called necessary number of times\n\n@param initialVars - a map containing the initial variables assignments\n@return the number of lines written", "Helper method used to peel off spurious wrappings of DateTimeException\n\n@param e DateTimeException to peel\n\n@return DateTimeException that does not have another DateTimeException as its cause.", "Sets the ProjectCalendar instance from which this calendar is derived.\n\n@param calendar base calendar instance", "Init the bundle type member variable.\n@return the bundle type of the opened resource.", "Write a relation list field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Write an attribute name.\n\n@param name attribute name" ]
@Override public Future<GcsFileMetadata> readObjectAsync(final ByteBuffer dst, final GcsFilename filename, long startOffsetBytes, long timeoutMillis) { Preconditions.checkArgument(startOffsetBytes >= 0, "%s: offset must be non-negative: %s", this, startOffsetBytes); final int n = dst.remaining(); Preconditions.checkArgument(n > 0, "%s: dst full: %s", this, dst); final int want = Math.min(READ_LIMIT_BYTES, n); final HTTPRequest req = makeRequest(filename, null, GET, timeoutMillis); req.setHeader( new HTTPHeader(RANGE, "bytes=" + startOffsetBytes + "-" + (startOffsetBytes + want - 1))); final HTTPRequestInfo info = new HTTPRequestInfo(req); return new FutureWrapper<HTTPResponse, GcsFileMetadata>(urlfetch.fetchAsync(req)) { @Override protected GcsFileMetadata wrap(HTTPResponse resp) throws IOException { long totalLength; switch (resp.getResponseCode()) { case 200: totalLength = getLengthFromHeader(resp, X_GOOG_CONTENT_LENGTH); break; case 206: totalLength = getLengthFromContentRange(resp); break; case 404: throw new FileNotFoundException("Could not find: " + filename); case 416: throw new BadRangeException("Requested Range not satisfiable; perhaps read past EOF? " + URLFetchUtils.describeRequestAndResponse(info, resp)); default: throw HttpErrorHandler.error(info, resp); } byte[] content = resp.getContent(); Preconditions.checkState(content.length <= want, "%s: got %s > wanted %s", this, content.length, want); dst.put(content); return getMetadataFromResponse(filename, resp, totalLength); } @Override protected Throwable convertException(Throwable e) { return OauthRawGcsService.convertException(info, e); } }; }
[ "Might not fill all of dst." ]
[ "Complete the current operation and persist the current state to the disk. This will also trigger the invalidation\nof outdated modules.\n\n@param modification the current modification\n@param callback the completion callback", "checkpoint the transaction", "Create a JavadocComment, by formatting the text of the Javadoc using the given indentation.", "Retrieve the integer value used to represent a task field in an\nMPX file.\n\n@param value MPXJ task field value\n@return MPX field value", "Obtains the collection of server groups defined for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "This is a generic function for retrieving any config value. The returned value\nis the one the server is operating with, no matter whether it comes from defaults\nor from the user-supplied configuration.\n\nThis function only provides access to configs which are deemed safe to share\npublicly (i.e.: not security-related configs). The list of configs which are\nconsidered off-limit can itself be configured via '{@value #RESTRICTED_CONFIGS}'.\n\n@param key config key for which to retrieve the value.\n@return the value for the requested config key, in String format.\nMay return null if the key exists and its value is explicitly set to null.\n@throws UndefinedPropertyException if the requested key does not exist in the config.\n@throws ConfigurationException if the requested key is not publicly available.", "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 auditsyslogpolicy_lbvserver_binding resources of given name .", "Tries to return the single table to which all classes in the hierarchy with the given\nclass as the root map.\n\n@param classDef The root class of the hierarchy\n@return The table name or <code>null</code> if the classes map to more than one table\nor no class in the hierarchy maps to a table" ]
public String getPermalink(CmsObject cms, String resourceName, CmsUUID detailContentId) { String permalink = ""; try { permalink = substituteLink(cms, CmsPermalinkResourceHandler.PERMALINK_HANDLER); String id = cms.readResource(resourceName, CmsResourceFilter.ALL).getStructureId().toString(); permalink += id; if (detailContentId != null) { permalink += ":" + detailContentId; } String ext = CmsFileUtil.getExtension(resourceName); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(ext)) { permalink += ext; } CmsSite currentSite = OpenCms.getSiteManager().getCurrentSite(cms); String serverPrefix = null; if (currentSite == OpenCms.getSiteManager().getDefaultSite()) { Optional<CmsSite> siteForDefaultUri = OpenCms.getSiteManager().getSiteForDefaultUri(); if (siteForDefaultUri.isPresent()) { serverPrefix = siteForDefaultUri.get().getServerPrefix(cms, resourceName); } else { serverPrefix = OpenCms.getSiteManager().getWorkplaceServer(); } } else { serverPrefix = currentSite.getServerPrefix(cms, resourceName); } if (!permalink.startsWith(serverPrefix)) { permalink = serverPrefix + permalink; } } catch (CmsException e) { // if something wrong permalink = e.getLocalizedMessage(); if (LOG.isErrorEnabled()) { LOG.error(e.getLocalizedMessage(), e); } } return permalink; }
[ "Returns the perma link for the given resource and optional detail content.<p<\n\n@param cms the CMS context to use\n@param resourceName the page to generate the perma link for\n@param detailContentId the structure id of the detail content (may be null)\n\n@return the perma link" ]
[ "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", "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "Use this API to unset the properties of clusterinstance resources.\nProperties that need to be unset are specified in args array.", "Add a post-effect to this camera's render chain.\n\nPost-effects are GL shaders, applied to the texture (hardware bitmap)\ncontaining the rendered scene graph. Each post-effect combines a shader\nselector with a set of parameters: This lets you pass different\nparameters to the shaders for each eye.\n\n@param postEffectData\nPost-effect to append to this camera's render chain", "Converts the given list of a type to paged list of a different type.\n\n@param list the list to convert to paged list\n@param mapper the mapper to map type in input list to output list\n@param <OutT> the type of items in output paged list\n@param <InT> the type of items in input paged list\n@return the paged list", "Wrapper to avoid throwing an exception over JMX", "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", "Adds OPT_J | OPT_JSON option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Use this context as prototype for a new mutable builder. The new builder is\npre-populated with the current settings of this context instance." ]
public <T extends Widget & Checkable> void clearChecks() { List<T> children = getCheckableChildren(); for (T c : children) { c.setChecked(false); } }
[ "Clears all checked widgets in the group" ]
[ "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "Runs the given xpath and returns a boolean result.", "Process an MPP file to make it anonymous.\n\n@param input input file name\n@param output output file name\n@throws Exception", "Create and return a SelectIterator for the class using the default mapped query for all statement.", "Use this API to delete appfwjsoncontenttype of given name.", "get the key name to use in log from the logging keys map", "Adds OPT_X | OPT_HEX option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Handle exceptions thrown by the storage. Exceptions specific to DELETE go\nhere. Pass other exceptions to the parent class.\n\nTODO REST-Server Add a new exception for this condition - server busy\nwith pending requests. queue is full", "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" ]
public static base_responses update(nitro_service client, dbdbprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dbdbprofile updateresources[] = new dbdbprofile[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dbdbprofile(); updateresources[i].name = resources[i].name; updateresources[i].interpretquery = resources[i].interpretquery; updateresources[i].stickiness = resources[i].stickiness; updateresources[i].kcdaccount = resources[i].kcdaccount; updateresources[i].conmultiplex = resources[i].conmultiplex; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update dbdbprofile resources." ]
[ "Returns the connection count by key specified in this registry\n\nNote it might count connections that are closed but not removed from registry yet\n\n@param key\nthe key\n@return connection count by key", "Apply all attributes on the given context, hereby existing entries are preserved.\n\n@param context the context to be applied, not null.\n@return this Builder, for chaining\n@see #importContext(AbstractContext, boolean)", "Convert subQuery to SQL\n@param subQuery the subQuery value of SelectionCriteria", "Reads the table data from an input stream and breaks\nit down into rows.\n\n@param is input stream", "Use this API to update nspbr6.", "Remove an active operation.\n\n@param id the operation id\n@return the removed active operation, {@code null} if there was no registered operation", "This filter adds rounded corners to the image using the specified color as the background.\n\n@param radiusInner amount of pixels to use as radius.\n@param radiusOuter specifies the second value for the ellipse used for the radius. Use 0 for\nno value.\n@param color fill color for clipped region.", "Adds the given service provider factory to the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Helper method that encapsulates the minimum logic for adding a high\npriority job to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJson\nthe job serialized as JSON" ]
public static DoubleMatrix[] fullSVD(DoubleMatrix A) { int m = A.rows; int n = A.columns; DoubleMatrix U = new DoubleMatrix(m, m); DoubleMatrix S = new DoubleMatrix(min(m, n)); DoubleMatrix V = new DoubleMatrix(n, n); int info = NativeBlas.dgesvd('A', 'A', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, n); if (info > 0) { throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge."); } return new DoubleMatrix[]{U, S, V.transpose()}; }
[ "Compute a singular-value decomposition of A.\n\n@return A DoubleMatrix[3] array of U, S, V such that A = U * diag(S) * V'" ]
[ "Adds a constructor for the proxy for each constructor declared by the base\nbean type.\n\n@param proxyClassType the Javassist class for the proxy\n@param initialValueBytecode", "This main method provides an easy command line tool to compare two\nschemas.", "Checks to see if the matrix is symmetric to within tolerance.\n\n@param A Matrix being tested. Not modified.\n@param tol Tolerance that defines how similar two values must be to be considered identical\n@return true if symmetric or false if not", "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list of segments. Is never <code>null</code>.", "Take a stab at fixing validation problems ?\n\n@param object", "Return a replica of this instance with its quality value removed.\n@return the same instance if the media type doesn't contain a quality value, or a new one otherwise", "Returns the port as configured by the system variables, fallback is the default port value\n\n@param portIdentifier - SYS_*_PORT defined in Constants\n@return", "Use this API to fetch a rewriteglobal_binding resource .", "Replaces all characters in the second parameter found in the first\nparameter with the final character.\n@param value the string to replace characters in\n@param chars the characters to replace\n@param replacement the character to insert as replacement" ]
public void useNewSOAPService(boolean direct) throws Exception { URL wsdlURL = getClass().getResource("/CustomerServiceNew.wsdl"); org.customer.service.CustomerServiceService service = new org.customer.service.CustomerServiceService(wsdlURL); org.customer.service.CustomerService customerService = direct ? service.getCustomerServicePort() : service.getCustomerServiceNewPort(); System.out.println("Using new SOAP CustomerService with new client"); customer.v2.Customer customer = createNewCustomer("Barry New SOAP"); customerService.updateCustomer(customer); customer = customerService.getCustomerByName("Barry New SOAP"); printNewCustomerDetails(customer); }
[ "New SOAP client uses new SOAP service." ]
[ "Creates a new access control entry and stores it for later write out.\n\n@param res the resource\n@param id the id of the principal\n@param allowed the allowed permissions\n@param denied the denied permissions\n@param flags the flags\n\n@return the created ACE", "Process this deployment for annotations. This will use an annotation indexer to create an index of all annotations\nfound in this deployment and attach it to the deployment unit context.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Create a Count-Query for QueryByCriteria", "Returns an entry with the given proposal and prefix, or null if the proposal is not valid.\nIf it is valid, the initializer function is applied to it.", "Deserialize a javascript design document file to a DesignDocument object.\n\n@param file the design document javascript file (UTF-8 encoded)\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read", "Use this API to fetch all the inat resources that are configured on netscaler.", "compute Sinh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Gets all tags that are \"prime\" tags.", "Creates the code mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param realOffsetStart\nthe real offset start\n@param realOffsetEnd\nthe real offset end\n@param codePositions\nthe code positions\n@throws IOException\nSignals that an I/O exception has occurred." ]
public static String replaceFullRequestContent( String requestContentTemplate, String replacementString) { return (requestContentTemplate.replace( PcConstants.COMMAND_VAR_DEFAULT_REQUEST_CONTENT, replacementString)); }
[ "Replace full request content.\n\n@param requestContentTemplate\nthe request content template\n@param replacementString\nthe replacement string\n@return the string" ]
[ "Use this API to reset appfwlearningdata resources.", "Use this API to expire cachecontentgroup resources.", "Plots the MSD curve with the trajectory t and adds the fitted model for free diffusion.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param intercept", "With the QR algorithm it is possible for the found singular values to be negative. This\nmakes them all positive by multiplying it by a diagonal matrix that has", "Processes the template for all reference definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Use this API to fetch appfwsignatures resource of given name .", "Searches the Html5ReportGenerator in Java path and instantiates the report", "Use this API to delete dnspolicylabel of given name.", "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" ]
public static void Forward(double[] data) { double[] result = new double[data.length]; for (int k = 0; k < result.length; k++) { double sum = 0; for (int n = 0; n < data.length; n++) { double theta = ((2.0 * Math.PI) / data.length) * k * n; sum += data[n] * cas(theta); } result[k] = (1.0 / Math.sqrt(data.length)) * sum; } for (int i = 0; i < result.length; i++) { data[i] = result[i]; } }
[ "1-D Forward Discrete Hartley Transform.\n\n@param data Data." ]
[ "Creates a solver for symmetric positive definite matrices.\n\n@return A new solver for symmetric positive definite matrices.", "Use this API to fetch systemsession resources of given names .", "Log the data for a single column.\n\n@param startIndex offset into buffer\n@param length length", "Helper function that drops all local databases for every client.", "Add a Renderer instance as prototype.\n\n@param renderer to use as prototype.\n@return the current RendererBuilder instance.", "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.", "Returns the next index of the argument by decrementing 1 from the possibly parsed number\n\n@param description this String will be searched from the start for a number\n@param defaultIndex this will be returned if the match does not succeed\n@return the parsed index or the defaultIndex", "Get the waveform previews available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the previews associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the WaveformFinder is not running" ]
private void processPredecessors(Gantt gantt) { for (Gantt.Tasks.Task ganttTask : gantt.getTasks().getTask()) { String predecessors = ganttTask.getP(); if (predecessors != null && !predecessors.isEmpty()) { String wbs = ganttTask.getID(); Task task = m_taskMap.get(wbs); for (String predecessor : predecessors.split(";")) { Task predecessorTask = m_projectFile.getTaskByID(Integer.valueOf(predecessor)); task.addPredecessor(predecessorTask, RelationType.FINISH_START, ganttTask.getL()); } } } }
[ "Read predecessors from a Gantt Designer file.\n\n@param gantt Gantt Designer file" ]
[ "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop", "Visit the implicit first frame of this method.", "Replace HTML entities\n@param content Content\n@param map Map\n@return Replaced content", "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Verify the given job types are all valid.\n\n@param jobTypes the given job types\n@throws IllegalArgumentException if any of the job types are invalid\n@see #checkJobType(String, Class)", "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block", "Check that the ranges and sizes add up, otherwise we have lost some data somewhere", "Compress contiguous partitions into format \"e-i\" instead of\n\"e, f, g, h, i\". This helps illustrate contiguous partitions within a\nzone.\n\n@param cluster\n@param zoneId\n@return pretty string of partitions per zone", "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" or \"managed\".\n@param text the text field of terms of service containing terms of service agreement info.\n@return information about the Terms of Service created." ]
public float getBoundsHeight(){ if (mSceneObject != null) { GVRSceneObject.BoundingVolume v = mSceneObject.getBoundingVolume(); return v.maxCorner.y - v.minCorner.y; } return 0f; }
[ "Gets Widget bounds height\n@return height" ]
[ "Executes the API action \"wbsetaliases\" for the given parameters.\n\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param add\nthe values of the aliases to add. They will be merged with the\nexisting aliases. This parameter cannot be used in conjunction\nwith \"set\".\n@param remove\nthe values of the aliases to remove. Other aliases will be retained.\nThis parameter cannot be used in conjunction with \"set\".\n@param set\nthe values of the aliases to set. This will erase any existing\naliases in this language and replace them by the given list.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Use this API to fetch appfwsignatures resource of given name .", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Ask the specified player for an Artist menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the artist menu\n\n@throws Exception if there is a problem obtaining the menu", "Waits until all pending operations are complete and closes this repository.\n\n@param failureCauseSupplier the {@link Supplier} that creates a new {@link CentralDogmaException}\nwhich will be used to fail the operations issued after this method is called", "Returns an attribute's value from a non-main section of this JAR's manifest.\n\n@param section the manifest's section\n@param name the attribute's name", "Sets the set of property filters based on the given string.\n\n@param filters\ncomma-separates list of property ids, or \"-\" to filter all\nstatements", "Mark content as obsolete. If content was already marked for obsolescenceTimeout ms then it is removed.\n\n@param ref the content refrence to be marked as obsolete.\n\n@return true if the content refrence is removed, fale otherwise.", "Initial random seed used for shuffling test suites and other sources\nof pseudo-randomness. If not set, any random value is set.\n\n<p>The seed's format is compatible with {@link RandomizedRunner} so that\nseed can be fixed for suites and methods alike." ]
public static String packageNameOf(Class<?> clazz) { String name = clazz.getName(); int pos = name.lastIndexOf('.'); E.unexpectedIf(pos < 0, "Class does not have package: " + name); return name.substring(0, pos); }
[ "Returns package name of a class\n\n@param clazz\nthe class\n@return\nthe package name of the class" ]
[ "Validations specific to PUT", "Use this API to convert sslpkcs8.", "Calculates the bar width and bar margin based on the _DataSize and settings and starts the boundary\ncalculation in child classes.\n@param _DataSize Amount of data sets", "Set a callback to handle any exceptions in the chain of execution.\n\n@param callback\nInstance of {@link ErrorCallback}.\n@return Reference to the {@code ExecutionChain}\n@throws IllegalStateException\nif the chain of execution has already been {@link #execute()\nstarted}.", "Visit an open package of the current module.\n\n@param packaze the qualified name of the opened package.\n@param access the access flag of the opened package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can use deep\nreflection to the classes of the open package or\n<tt>null</tt>.", "Get the active operation.\n\n@param id the active operation id\n@return the active operation, {@code null} if if there is no registered operation", "Print the class's constructors m", "Checks to see if the specified off diagonal element is zero using a relative metric.", "Remove colProxy from list of pending collections and\nregister its contents with the transaction." ]
public List<Addon> listAppAddons(String appName) { return connection.execute(new AppAddonsList(appName), apiKey); }
[ "List the addons already added to an app.\n@param appName new of the app\n@return a list of add-ons" ]
[ "Retrieve the document with the specified ID from the database and deserialize to an\ninstance of the POJO of type T.\n\n@param <T> object type\n@param classType the class of type T\n@param id the document id\n@return an object of type T\n@throws NoDocumentException if the document is not found in the database\n@see #find(Class, String, String)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/document.html#read\"\ntarget=\"_blank\">Documents - read</a>", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Returns list of files matches specified regex in specified directories\n\n@param regex to match file names\n@param directories to find\n@return list of files matches specified regex in specified directories", "Decrease the indent level.", "Determine the enum value corresponding to the track type found in the packet.\n\n@return the proper value", "Trim and append a file separator to the string", "Stops all transitions.", "Returns true if\n- includeTags is not empty and tag is in includeTags\n- includeTags is empty and tag is not in excludeTags\n@param tags Hint tags\n@param includeTags Include tags\n@param excludeTags Exclude tags\n@return has tag match", "Transits a float property from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self" ]
public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) { Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices); Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance); }
[ "Initialize the container for the current application deployment\n\n@param deploymentManager\n@param deploymentServices" ]
[ "This method is called recursively to write a task and its child tasks\nto the JSON file.\n\n@param task task to write", "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop", "Gets a tokenizer from a reader.", "Refresh children using read-resource operation.", "Use this API to fetch vpnvserver_vpnnexthopserver_binding resources of given name .", "Use this API to fetch all the dnspolicylabel resources that are configured on netscaler.", "Comparator against other element.\n\n@param otherElement The other element.\n@param logging Whether to do logging.\n@return Whether the elements are equal.", "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text", "Obtains a local date in Ethiopic calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date" ]
public ContentAssistEntry createSnippet(final String proposal, final String label, final ContentAssistContext context) { final Procedure1<ContentAssistEntry> _function = (ContentAssistEntry it) -> { it.setLabel(label); }; return this.createProposal(proposal, context.getPrefix(), context, ContentAssistEntry.KIND_SNIPPET, _function); }
[ "Returns an entry of kind snippet with the given proposal and label and the prefix from the context, or null if the proposal is not valid.\n@since 2.16" ]
[ "Get the collection of untagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\n@param page\n@return A Collection of Photos\n@throws FlickrException", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Deletes all outgoing links of specified entity.\n\n@param entity the entity.", "Active inverter colors", "Perform a post-boot scan to remove any deployments added during boot that failed to deploy properly.\nThis method isn't private solely to allow a unit test in the same package to call it.", "Delete any log segments matching the given predicate function\n\n@throws IOException", "Closes all the producers in the pool", "Return the number of days between startDate and endDate given the\nspecific daycount convention.\n\n@param startDate The start date given as a {@link org.threeten.bp.LocalDate}.\n@param endDate The end date given as a {@link org.threeten.bp.LocalDate}.\n@param convention A convention string.\n@return The number of days within the given period.", "Utility function that fetches quota types." ]
public boolean removePredecessor(Task targetTask, RelationType type, Duration lag) { boolean matchFound = false; // // Retrieve the list of predecessors // List<Relation> predecessorList = getPredecessors(); if (!predecessorList.isEmpty()) { // // Ensure that we have a valid lag duration // if (lag == null) { lag = Duration.getInstance(0, TimeUnit.DAYS); } // // Ensure that there is a predecessor relationship between // these two tasks, and remove it. // matchFound = removeRelation(predecessorList, targetTask, type, lag); // // If we have removed a predecessor, then we must remove the // corresponding successor entry from the target task list // if (matchFound) { // // Retrieve the list of successors // List<Relation> successorList = targetTask.getSuccessors(); if (!successorList.isEmpty()) { // // Ensure that there is a successor relationship between // these two tasks, and remove it. // removeRelation(successorList, this, type, lag); } } } return matchFound; }
[ "This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true if the relation is found and removed" ]
[ "Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations.", "Generate random time stamps from the current time upto the next one second.\nPassed as texture coordinates to the vertex shader, an unused field is present\nwith every pair passed.\n\n@param totalTime\n@return", "Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL.\n\n@param cms the CmsObject to initialize for jumping to the favorite\n@return the link for the favorite location\n\n@throws CmsException if something goes wrong", "Set the value of a field using its alias.\n\n@param alias field alias\n@param value field value", "Creates the box tree for the PDF file.\n@param dim", "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent", "Use this API to update transformpolicy.", "Creates a Sink Processor\n\n@param dataSink the data sink itself\n@param parallelism the parallelism of this processor\n@param description the description for this processor\n@param taskConf the configuration for this processor\n@param system actor system\n@return the new created sink processor", "Creates a MetaMatcher based on the filter content.\n\n@param filterAsString the String representation of the filter\n@param metaMatchers the Map of custom MetaMatchers\n@return A MetaMatcher used to match the filter content" ]
public void addDependencyTaskGroup(TaskGroup dependencyTaskGroup) { if (dependencyTaskGroup.proxyTaskGroupWrapper.isActive()) { dependencyTaskGroup.proxyTaskGroupWrapper.addDependentTaskGroup(this); } else { DAGraph<TaskItem, TaskGroupEntry<TaskItem>> dependencyGraph = dependencyTaskGroup; super.addDependencyGraph(dependencyGraph); } }
[ "Mark root of this task task group depends on the given task group's root.\nThis ensure this task group's root get picked for execution only after the completion\nof all tasks in the given group.\n\n@param dependencyTaskGroup the task group that this task group depends on" ]
[ "Removes all candidates from this collection which are not\nassociated with an initialising method.\n\n@return a {@code Collection} containing the removed\nunassociated candidates. This list is empty if none\nwere removed, i. e. the result is never {@code null}.", "Shows the provided list of dates as current dates.\n@param dates the current dates to show, accompanied with the information if they are exceptions or not.", "Log an audit record of this operation.", "Convert an MPXJ Duration instance into an integer duration in minutes\nready to be written to an MPX file.\n\n@param properties project properties, used for duration units conversion\n@param duration Duration instance\n@return integer duration in minutes", "Unregister the mgmt channel.\n\n@param old the proxy controller to unregister\n@param shuttingDown whether the server inventory is shutting down\n@return whether the registration can be removed from the domain-controller", "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value", "Checks that native primarykey fields have readonly access, and warns if not.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Parses operations where the input comes from variables to its left only. Hard coded to only look\nfor transpose for now\n\n@param tokens List of all the tokens\n@param sequence List of operation sequence", "Returns iterable containing assignments for this single legal hold policy.\n@param fields the fields to retrieve.\n@return an iterable containing assignments for this single legal hold policy." ]
public static void main(String[] args) { //Adding custom equivalence class generation transformer - NOTE this will get applied during graph traversal--> //MODEL USAGE EXAMPLE: <assign name="var_out_V1_2" expr="%ssn"/> <dg:transform name="EQ"/> Map<String, DataTransformer> transformers = new HashMap<String, DataTransformer>(); transformers.put("EQ", new EquivalenceClassTransformer()); Vector<CustomTagExtension> cte = new Vector<CustomTagExtension>(); cte.add(new InLineTransformerExtension(transformers)); Engine engine = new SCXMLEngine(cte); //will default to samplemachine, but you could specify a different file if you choose to InputStream is = CmdLine.class.getResourceAsStream("/" + (args.length == 0 ? "samplemachine" : args[0]) + ".xml"); engine.setModelByInputFileStream(is); // Usually, this should be more than the number of threads you intend to run engine.setBootstrapMin(1); //Prepare the consumer with the proper writer and transformer DataConsumer consumer = new DataConsumer(); consumer.addDataTransformer(new SampleMachineTransformer()); //Adding custom equivalence class generation transformer - NOTE this will get applied post data generation. //MODEL USAGE EXAMPLE: <dg:assign name="var_out_V2" set="%regex([0-9]{3}[A-Z0-9]{5})"/> consumer.addDataTransformer(new EquivalenceClassTransformer()); consumer.addDataWriter(new DefaultWriter(System.out, new String[]{"var_1_1", "var_1_2", "var_1_3", "var_1_4", "var_1_5", "var_1_6", "var_1_7", "var_2_1", "var_2_2", "var_2_3", "var_2_4", "var_2_5", "var_2_6", "var_2_7", "var_2_8"})); //Prepare the distributor DefaultDistributor defaultDistributor = new DefaultDistributor(); defaultDistributor.setThreadCount(1); defaultDistributor.setDataConsumer(consumer); Logger.getLogger("org.apache").setLevel(Level.WARN); engine.process(defaultDistributor); }
[ "Entry point for the example.\n\n@param args Command-line arguments for the example. To use samplemachine.xml from resources, send\nno arguments. To use other file, send a filename without xml extension)." ]
[ "Determines if entry is accepted. For normal usage, this means confirming that the key is\nneeded. For orphan usage, this simply means confirming the key belongs to the node.\n\n@param key\n@return true iff entry is accepted.", "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Add a property.", "Use this API to delete nsip6 of given name.", "Do some magic to turn request parameters into a context object", "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise", "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", "Typically this is transparently handled by using the Protostream codecs but be aware of it when bypassing Protostream.", "Returns an MBeanServer with the specified name\n\n@param name\n@return" ]
public static final Date getFinishDate(byte[] data, int offset) { Date result; long days = getShort(data, offset); if (days == 0x8000) { result = null; } else { result = DateHelper.getDateFromLong(EPOCH + ((days - 1) * DateHelper.MS_PER_DAY)); } return (result); }
[ "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date" ]
[ "Sets the position vector of the keyframe.", "cleanup tx and prepare for reuse", "Use this API to Force hafailover.", "Copy a single named resource from the classpath to the output directory.\n@param outputDirectory The destination directory for the copied resource.\n@param resourceName The filename of the resource.\n@param targetFileName The name of the file created in {@literal outputDirectory}.\n@throws IOException If the resource cannot be copied.", "Use this API to fetch cachepolicylabel_binding resource of given name .", "Extract a Class from the given Type.", "Retrieve the result produced by a task with the given id in the group.\n\nThis method can be used to retrieve the result of invocation of both dependency\nand \"post-run\" dependent tasks. If task with the given id does not exists then\nIllegalArgumentException exception will be thrown.\n\n@param taskId the task item id\n@return the task result, null will be returned if task has not yet been invoked", "Used to load a classifier stored as a resource inside a jar file. THIS\nFUNCTION WILL ONLY WORK IF THE CODE WAS LOADED FROM A JAR FILE WHICH HAS A\nSERIALIZED CLASSIFIER STORED INSIDE IT.\n\n@param resourceName\nName of clasifier resource inside the jar file.\n@return A CRFClassifier stored in the jar file", "Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name ." ]
public void eol() throws ProtocolException { char next = nextChar(); // Ignore trailing spaces. while (next == ' ') { consume(); next = nextChar(); } // handle DOS and unix end-of-lines if (next == '\r') { consume(); next = nextChar(); } // Check if we found extra characters. if (next != '\n') { throw new ProtocolException("Expected end-of-line, found more character(s): "+next); } dumpLine(); }
[ "Moves the request line reader to end of the line, checking that no non-space\ncharacter are found.\n\n@throws ProtocolException If more non-space tokens are found in this line,\nor the end-of-file is reached." ]
[ "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", "Parses an RgbaColor from a hexadecimal value.\n\n@return returns the parsed color", "Convert the server side feature to a DTO feature that can be sent to the client.\n\n@param feature\nThe server-side feature representation.\n@param featureIncludes\nIndicate which aspects of the should be included see {@link VectorLayerService}\n@return Returns the DTO feature.", "Gets the Correlation distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Correlation distance between x and y.", "Use this API to unset the properties of cmpparameter resource.\nProperties that need to be unset are specified in args array.", "Retrieves or if necessary, creates a user alias to be used\nby a child criteria\n@param attribute The alias to set", "Returns a flag represented as a String, indicating if\nthe supplied day is a working day.\n\n@param mpxjCalendar MPXJ ProjectCalendar instance\n@param day Day instance\n@return boolean flag as a string", "Return configuration tweaks in a format appropriate for ness-jdbc DatabaseModule.", "Copy one Gradient into another.\n@param g the Gradient to copy into" ]
public static void registerConverters(Set<?> converters, ConverterRegistry registry) { if (converters != null) { for (Object converter : converters) { if (converter instanceof GenericConverter) { registry.addConverter((GenericConverter) converter); } else if (converter instanceof Converter<?, ?>) { registry.addConverter((Converter<?, ?>) converter); } else if (converter instanceof ConverterFactory<?, ?>) { registry.addConverterFactory((ConverterFactory<?, ?>) converter); } else { throw new IllegalArgumentException("Each converter object must implement one of the " + "Converter, ConverterFactory, or GenericConverter interfaces"); } } } }
[ "Register the given Converter objects with the given target ConverterRegistry.\n@param converters the converter objects: implementing {@link Converter},\n{@link ConverterFactory}, or {@link GenericConverter}\n@param registry the target registry" ]
[ "Converts the string representation of the days bit field into an integer.\n\n@param days string bit field\n@return integer bit field", "Send message to all connections of a certain user\n\n@param message the message to be sent\n@param username the username\n@return this context", "Retrieves the time at which work finishes on the given date, or returns\nnull if this is a non-working day.\n\n@param date Date instance\n@return finish time, or null for non-working day", "Add an accessory to be handled and advertised by this root. Any existing Homekit connections\nwill be terminated to allow the clients to reconnect and see the updated accessory list. When\nusing this for a bridge, the ID of the accessory must be greater than 1, as that ID is reserved\nfor the Bridge itself.\n\n@param accessory to advertise and handle.", "Get the node that has been selected by the user, or null if\nnothing is selected.\n@return The node or <code>null</code>", "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node trees and expressions in templates can be of type IGeneratorNode.\n\n@return the given parent node", "Use this API to fetch statistics of appfwprofile_stats resource of given name .", "Converts an image to a RGBA direct color model using a workaround via buffered image directly calling the\nColorConvert operation fails for unknown reasons ?!\n\n@param img image to convert\n@return converted image", "Use this API to fetch all the sslservice resources that are configured on netscaler." ]
private static long asciidump(InputStream is, PrintWriter pw) throws Exception { byte[] buffer = new byte[BUFFER_SIZE]; long byteCount = 0; char c; int loop; int count; StringBuilder sb = new StringBuilder(); while (true) { count = is.read(buffer); if (count == -1) { break; } byteCount += count; sb.setLength(0); for (loop = 0; loop < count; loop++) { c = (char) buffer[loop]; if (c > 200 || c < 27) { c = ' '; } sb.append(c); } pw.print(sb.toString()); } return (byteCount); }
[ "This method dumps the entire contents of a file to an output\nprint writer as ascii data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors" ]
[ "Obtain the realm used for authentication.\n\nThis realm name applies to both the user and the groups.\n\n@return The name of the realm used for authentication.", "Get the bounding-box containing all features of all layers.", "This method is used by non-blocking code to determine if the give buffer\nrepresents a complete request. Because the non-blocking code can by\ndefinition not just block waiting for more data, it's possible to get\npartial reads, and this identifies that case.\n\n@param buffer Buffer to check; the buffer is reset to position 0 before\ncalling this method and the caller must reset it after the call\nreturns\n@return True if the buffer holds a complete request, false otherwise", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression", "Convert a wavelength to an RGB value.\n@param wavelength wavelength in nanometres\n@return the RGB value", "Disallow the job type from being executed.\n@param jobType the job type to disallow", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "Returns the ReportModel with given name.", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes" ]
public Collection<Contact> getListRecentlyUploaded(Date lastUpload, String filter) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST_RECENTLY_UPLOADED); if (lastUpload != null) { parameters.put("date_lastupload", String.valueOf(lastUpload.getTime() / 1000L)); } if (filter != null) { parameters.put("filter", filter); } Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element contactsElement = response.getPayload(); NodeList contactNodes = contactsElement.getElementsByTagName("contact"); for (int i = 0; i < contactNodes.getLength(); i++) { Element contactElement = (Element) contactNodes.item(i); Contact contact = new Contact(); contact.setId(contactElement.getAttribute("nsid")); contact.setUsername(contactElement.getAttribute("username")); contact.setRealName(contactElement.getAttribute("realname")); contact.setFriend("1".equals(contactElement.getAttribute("friend"))); contact.setFamily("1".equals(contactElement.getAttribute("family"))); contact.setIgnored("1".equals(contactElement.getAttribute("ignored"))); contact.setOnline(OnlineStatus.fromType(contactElement.getAttribute("online"))); contact.setIconFarm(contactElement.getAttribute("iconfarm")); contact.setIconServer(contactElement.getAttribute("iconserver")); if (contact.getOnline() == OnlineStatus.AWAY) { contactElement.normalize(); contact.setAwayMessage(XMLUtilities.getValue(contactElement)); } contacts.add(contact); } return contacts; }
[ "Return a list of contacts for a user who have recently uploaded photos along with the total count of photos uploaded.\n\n@param lastUpload\nLimits the resultset to contacts that have uploaded photos since this date. The date should be in the form of a Unix timestamp. The default,\nand maximum, offset is (1) hour. (Optional, can be null)\n@param filter\nLimit the result set to all contacts or only those who are friends or family.<br/>\nValid options are: <b>ff</b> -&gt; friends and family, <b>all</b> -&gt; all your contacts. (Optional, can be null)\n\n@return List of Contacts\n@throws FlickrException" ]
[ "Renders a time period in human readable form\n\n@param time the time in milliseconds\n@return the time in human readable form", "Standard doclet entry point\n@param root\n@return", "Puts a new document in the service. The generate key is globally unique.\n\n@param document document\n@return key unique key to reference the document", "Calculate the determinant.\n\n@return Determinant.", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will not block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests", "Extract definition records from the table and divide into groups.", "Build a Dataset from some data.\n\n@param oldData This {@link Dataset} represents data for which we which to\nsome features, specifically those features not in the {@link edu.stanford.nlp.util.Index}\ngoodFeatures.\n@param goodFeatures An {@link edu.stanford.nlp.util.Index} of features we wish to retain.\n@return A new {@link Dataset} wheres each datapoint contains only features\nwhich were in goodFeatures.", "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown", "fetch correct array index if index is less than 0\n\nArrayNode will convert all negative integers into 0...\n\n@param index wanted index\n@return {@link Integer} new index" ]
public static Map<String, Object> findFreeMarkerContextVariables(Variables variables, String... varNames) { Map<String, Object> results = new HashMap<>(); for (String varName : varNames) { WindupVertexFrame payload = null; try { payload = Iteration.getCurrentPayload(variables, null, varName); } catch (IllegalStateException | IllegalArgumentException e) { // oh well } if (payload != null) { results.put(varName, payload); } else { Iterable<? extends WindupVertexFrame> var = variables.findVariable(varName); if (var != null) { results.put(varName, var); } } } return results; }
[ "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." ]
[ "add trace information for received frame", "Init the bundle type member variable.\n@return the bundle type of the opened resource.", "Returns an empty Search object in Json\n@return String\n@throws IOException", "Sets the bean store\n\n@param beanStore The bean store", "Retrieves the class object for the given qualified class name.\n\n@param className The qualified name of the class\n@param initialize Whether the class shall be initialized\n@return The class object", "Converts a vector from sample space into eigen space.\n\n@param sampleData Sample space data.\n@return Eigen space projection.", "Load entries from the storage.\nOverriding methods should first delegate to super before adding their own entries.", "Write throwable as attachment.\n\n@param throwable to write\n@param title title of attachment\n@return Created {@link ru.yandex.qatools.allure.model.Attachment}", "Check if the node matches the column values\n\n@param nodeProperties the properties on the node\n@param keyColumnNames the name of the columns to check\n@param keyColumnValues the value of the columns to check\n@return true if the properties of the node match the column names and values" ]
public static final String printDateTime(Date value) { return (value == null ? null : DATE_FORMAT.get().format(value)); }
[ "Print a date time value.\n\n@param value date time value\n@return string representation" ]
[ "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise", "Decode the String from Base64 into a byte array.\n\n@param value the string to be decoded\n@return the decoded bytes as an array\n@since 1.0", "In Gerrit < 2.12 the XSRF token was included in the start page HTML.", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Pushes the Notification Viewed event to CleverTap.\n\n@param extras The {@link Bundle} object that contains the\nnotification details", "to check availability, then class name is truncated to bundle id", "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", "Heat Equation Boundary Conditions", "Set the meta data for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param title\nThe new title\n@param description\nThe new description\n@throws FlickrException" ]
public void readFrom(DataInput instream) throws Exception { host = S3Util.readString(instream); port = instream.readInt(); protocol = S3Util.readString(instream); }
[ "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception" ]
[ "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", "Create a buffered image with the correct image bands etc... for the tiles being loaded.\n\n@param imageWidth width of the image to create\n@param imageHeight height of the image to create.", "Adds each of the specified followers to the task, if they are not already\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to add followers to.\n@return Request object", "Write calendar hours.\n\n@param parentCalendar parent calendar instance\n@param record calendar hours instance\n@throws IOException", "Sets the currently edited locale.\n@param locale the locale to set.", "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException", "Get the waveform details available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the details associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the WaveformFinder is not running or requesting waveform details", "Start the host controller services.\n\n@throws Exception", "Use this API to rename a nsacl6 resource." ]
public void prepareForEnumeration() { if (isPreparer()) { for (NodeT node : nodeTable.values()) { // Prepare each node for traversal node.initialize(); if (!this.isRootNode(node)) { // Mark other sub-DAGs as non-preparer node.setPreparer(false); } } initializeDependentKeys(); initializeQueue(); } }
[ "Prepares this DAG for node enumeration using getNext method, each call to getNext returns next node\nin the DAG with no dependencies." ]
[ "Adds the specified class to the internal class graph along with its\nrelations and dependencies, eventually inferring them, according to the\nOptions specified for this matcher\n@param cd", "Detect if the given object has a PK field represents a 'null' value.", "Make superclasses method protected??", "Handles the response of the SendData request.\n@param incomingMessage the response message to process.", "Acquires a read lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait.", "Builds the DynamicReport object. Cannot be used twice since this produced\nundesired results on the generated DynamicReport object\n\n@return", "Returns a set of the distinct colours used in this image.\n\n@return the set of distinct Colors", "This method retrieves the calendar hours for the specified day.\nNote that if this is a derived calendar, then this method\nwill refer to the base calendar where no hours are specified\nin the derived calendar.\n\n@param day Day instance\n@return calendar hours", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return" ]
void addValue(V value, Resource resource) { this.valueQueue.add(value); this.valueSubjectQueue.add(resource); }
[ "Adds the given value to the list of values that should still be\nserialized. The given RDF resource will be used as a subject.\n\n@param value\nthe value to be serialized\n@param resource\nthe RDF resource that is used as a subject for serialization" ]
[ "Checks if a property's type is valid to be included in the report.\n@param _property the property.\n@return true if the property is is of a valid type.", "Mark the given child resource as the post run dependent of the parent of this collection.\n\n@param childResource the child resource", "process all messages in this batch, provided there is plenty of output space.", "Splits data into blocks, adds error correction and then interleaves the blocks and error correction data.", "Finish the oauth flow after the user was redirected back.\n\n@param code\nCode returned by the Eve Online SSO\n@param state\nThis should be some secret to prevent XRSF see\ngetAuthorizationUri\n@throws net.troja.eve.esi.ApiException", "Creates a solver for symmetric positive definite matrices.\n\n@return A new solver for symmetric positive definite matrices.", "Returns the value of this product under the given model.\n\n@param evaluationTime Evaluation time.\n@param model The model.\n@return Value of this product und the given model.", "See also JLS8, 4.12.5 Initial Values of Variables.\n\n@param type\n@return the default value for the given type as defined by JLS", "Read custom property definitions for resources.\n\n@param gpResources GanttProject resources" ]
public static cacheselector[] get(nitro_service service, String selectorname[]) throws Exception{ if (selectorname !=null && selectorname.length>0) { cacheselector response[] = new cacheselector[selectorname.length]; cacheselector obj[] = new cacheselector[selectorname.length]; for (int i=0;i<selectorname.length;i++) { obj[i] = new cacheselector(); obj[i].set_selectorname(selectorname[i]); response[i] = (cacheselector) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch cacheselector resources of given names ." ]
[ "Generates a change event for a local deletion of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@return a change event for a local deletion of a document in the given namespace referring\nto the given document _id.", "Check whether error handling works. If it works, you should see an\nok, otherwise, you might see the actual error message and then\nthe program exits.", "Returns information for a specific client\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return\n@throws Exception", "Returns a resource description resolver that uses common descriptions for some attributes.\n\n@param keyPrefix the prefix to be appended to the {@link LoggingExtension#SUBSYSTEM_NAME}\n\n@return the resolver", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "Get an extent aware Iterator based on the Query\n\n@param query\n@param cld the ClassDescriptor\n@return OJBIterator", "Will create a JNDI Context and register it as the initial context factory builder\n\n@return the context\n@throws NamingException\non any issue during initial context factory builder registration", "Str map to str.\n\n@param map\nthe map\n@return the string", "Should be called after all columns have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return" ]
protected void onLegendDataChanged() { int legendCount = mLegendList.size(); float margin = (mGraphWidth / legendCount); float currentOffset = 0; for (LegendModel model : mLegendList) { model.setLegendBounds(new RectF(currentOffset, 0, currentOffset + margin, mLegendHeight)); currentOffset += margin; } Utils.calculateLegendInformation(mLegendList, 0, mGraphWidth, mLegendPaint); invalidateGlobal(); }
[ "Calculates the legend bounds for a custom list of legends." ]
[ "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Writes a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.", "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Creates a resource key defined as a child of key defined by enumeration value.\n@see #key(Enum)\n@see #child(String)\n@param enumValue the enumeration value defining the parent key\n@param key the child id\n@return the resource key", "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred", "This method writes a resource's availability table.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Handle http Request.\n\n@param request HttpRequest to be handled.\n@param responder HttpResponder to write the response.\n@param groupValues Values needed for the invocation.", "Resumes a given entry point type;\n\n@param entryPoint The entry point", "Assign arguments to the statement.\n\n@return The statement passed in or null if it had to be closed on error." ]
public static boolean isAscii(Slice utf8) { int length = utf8.length(); int offset = 0; // Length rounded to 8 bytes int length8 = length & 0x7FFF_FFF8; for (; offset < length8; offset += 8) { if ((utf8.getLongUnchecked(offset) & TOP_MASK64) != 0) { return false; } } // Enough bytes left for 32 bits? if (offset + 4 < length) { if ((utf8.getIntUnchecked(offset) & TOP_MASK32) != 0) { return false; } offset += 4; } // Do the rest one by one for (; offset < length; offset++) { if ((utf8.getByteUnchecked(offset) & 0x80) != 0) { return false; } } return true; }
[ "Does the slice contain only 7-bit ASCII characters." ]
[ "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", "get the TypeSignature corresponding to given class with given type\narguments\n\n@param clazz\n@param typeArgs\n@return", "Get the MonetaryAmount implementation class.\n\n@return the implementation class of the containing amount instance, never null.\n@see MonetaryAmount#getContext()", "Returns the compact records for all teams in the organization visible to\nthe authorized user.\n\n@param organization Globally unique identifier for the workspace or organization.\n@return Request object", "Use this API to fetch all the appfwjsoncontenttype resources that are configured on netscaler.", "Read data for an individual task from the tables in a PEP file.\n\n@param parent parent task\n@param id task ID\n@return task instance", "Use this API to fetch all the sslcertlink resources that are configured on netscaler.", "Add a '&gt;' clause so the column must be greater-than the value.", "return a new managed connection. This connection is wrapped around the real connection and delegates to it\nto get work done.\n@param subject\n@param info\n@return" ]
public static void initialize(final Context context) { if (!initialized.compareAndSet(false, true)) { return; } applicationContext = context.getApplicationContext(); final String packageName = applicationContext.getPackageName(); localAppName = packageName; final PackageManager manager = applicationContext.getPackageManager(); try { final PackageInfo pkgInfo = manager.getPackageInfo(packageName, 0); localAppVersion = pkgInfo.versionName; } catch (final NameNotFoundException e) { Log.d(TAG, "Failed to get version of application, will not send in device info."); } Log.d(TAG, "Initialized android SDK"); }
[ "Initializes the Stitch SDK so that app clients can be created.\n\n@param context An Android context value." ]
[ "trim \"act.\" from conf keys", "Convert a GanttProject task relationship type into an MPXJ RelationType instance.\n\n@param gpType GanttProject task relation type\n@return RelationType instance", "Synchronize the required files to a slave HC from the master DC if this is required.\n@param fileRepository the HostFileRepository of the HC.\n@param contentRepository the ContentRepository of the HC.\n@param backup inidcates if this is a DC backup HC.\n@param oldHash the hash of the deployment to be replaced.\n@return true if the content should be pulled by the slave HC - false otherwise.", "Validate the consistency of patches to the point we rollback.\n\n@param patchID the patch id which gets rolled back\n@param identity the installed identity\n@throws PatchingException", "Fetch the next event from a given stream\n@return the next event\n@throws IOException any io exception that could occur", "Use this API to update vridparam.", "Instantiates a new event collector.", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "Add a shutdown listener, which gets called when all requests completed on shutdown.\n\n@param listener the shutdown listener" ]
public static <K> Map<K, Integer> rankMapOnIntegerValue(Map<K, Integer> inputMap) { Map<K, Integer> newMap = new TreeMap<K, Integer>(new IntegerValueComparator(inputMap)); newMap.putAll(inputMap); Map<K, Integer> linkedMap = new LinkedHashMap<K, Integer>(newMap); return linkedMap; }
[ "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map" ]
[ "Return list of all files in the directory.\n\n@param directory target directory on file system\n@return list of files in the directory or empty list if directory is empty.", "Returns a module\n\n@param moduleId String\n@return DbModule", "Creates the box tree for the PDF file.\n@param dim", "Provides a nicely formatted string of the method definition. For simplicity, generic types on some of the elements\nare not displayed.\n@return\nstring form of node with some generic elements suppressed", "Return the list of licenses attached to an artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbLicense>", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region", "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server identity\n@param operation the operation\n@param transformer the operation result transformer\n@return whether the operation was executed", "Use this API to fetch tmsessionpolicy_binding resource of given name .", "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none." ]
public void setHostName(String hostName) { if (hostName == null || hostName.contains(":")) { return; } ODO_HOST = hostName; BASE_URL = "http://" + ODO_HOST + ":" + API_PORT + "/" + API_BASE + "/"; }
[ "Set the host running the Odo instance to configure\n\n@param hostName name of host" ]
[ "Utility function to set the current value in a ListBox.\n\n@return returns true if the option corresponding to the value\nwas successfully selected in the ListBox", "Write a standard CoNLL format output file.\n\n@param doc The document: A List of CoreLabel\n@param out Where to send the answers to", "Updates the statements of the item document identified by the given item\nid. The updates are computed with respect to the current data found\nonline, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged.\n\n@param itemIdValue\nid of the document to be updated\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are IO problems, such as missing network connection", "This is a temporary measure until we have a type-safe solution for\nretrieving serializers from a SerializerFactory. It avoids warnings all\nover the codebase while making it easy to verify who calls it.", "Caches the given object using the given Identity as key\n\n@param oid The Identity key\n@param obj The object o cache", "Sets the access token to use when authenticating a client.", "trim \"act.\" from conf keys", "Use this API to fetch lbvserver_rewritepolicy_binding resources of given name .", "note that for read from file, this will just load all to memory. not fit\nif need to read a very large file. However for getting the host name.\nnormally it is fine.\n\nfor reading large file, should use iostream.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the content from path\n@throws IOException\nSignals that an I/O exception has occurred." ]
public Path relativize(Path other) { if (other.isAbsolute() != isAbsolute()) throw new IllegalArgumentException("This path and the given path are not both absolute or both relative: " + toString() + " | " + other.toString()); if (startsWith(other)) { return internalRelativize(this, other); } else if (other.startsWith(this)) { return internalRelativize(other, this); } return null; }
[ "Constructs a relative path between this path and a given path.\n\n<p> Relativization is the inverse of {@link #getAbsolutePath(Path) resolution}.\nThis method attempts to construct a {@link #isAbsolute relative} path\nthat when {@link #getAbsolutePath(Path) resolved} against this path, yields a\npath that locates the same file as the given path. For example, on UNIX,\nif this path is {@code \"/a/b\"} and the given path is {@code \"/a/b/c/d\"}\nthen the resulting relative path would be {@code \"c/d\"}.\nBoth paths must be absolute and and either this path or the given path must be a\n{@link #startsWith(Path) prefix} of the other.\n\n@param other\nthe path to relativize against this path\n\n@return the resulting relative path or null if neither of the given paths is a prefix of the other\n\n@throws IllegalArgumentException\nif this path and {@code other} are not both absolute or relative" ]
[ "Deletes a user from an enterprise account.\n@param notifyUser whether or not to send an email notification to the user that their account has been deleted.\n@param force whether or not this user should be deleted even if they still own files.", "Parse a string representation of an Integer value.\n\n@param value string representation\n@return Integer value", "Prints a suggestion to stderr for the argument based on the levenshtein distance metric\n\n@param arg the argument which could not be assigned to a flag\n@param co the {@link ConfigOption} List where every flag is stored", "Remove all the existing links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Retrieve all addresses of a host by it's address. NetBIOS hosts can\nhave many names for a given IP address. The name and IP address make the\nNetBIOS address. This provides a way to retrieve the other names for a\nhost with the same IP address.\n\n@param addr the address to query\n@throws UnknownHostException if address cannot be resolved", "Checks if the artifact is dependency of an dependent idl artifact\n@returns true if the artifact was a dependency of idl artifact", "Get the metadata of all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the track information reported by all current players, including any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the MetadataFinder is not running", "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane", "Read JdbcConnectionDescriptors from this InputStream.\n\n@see #mergeConnectionRepository" ]
protected void parseBracketCreateMatrix(TokenList tokens, Sequence sequence) { List<TokenList.Token> left = new ArrayList<TokenList.Token>(); TokenList.Token t = tokens.getFirst(); while( t != null ) { TokenList.Token next = t.next; if( t.getSymbol() == Symbol.BRACKET_LEFT ) { left.add(t); } else if( t.getSymbol() == Symbol.BRACKET_RIGHT ) { if( left.isEmpty() ) throw new RuntimeException("No matching left bracket for right"); TokenList.Token start = left.remove(left.size() - 1); // Compute everything inside the [ ], this will leave a // series of variables and semi-colons hopefully TokenList bracketLet = tokens.extractSubList(start.next,t.previous); parseBlockNoParentheses(bracketLet, sequence, true); MatrixConstructor constructor = constructMatrix(bracketLet); // define the matrix op and inject into token list Operation.Info info = Operation.matrixConstructor(constructor); sequence.addOperation(info.op); tokens.insert(start.previous, new TokenList.Token(info.output)); // remove the brackets tokens.remove(start); tokens.remove(t); } t = next; } if( !left.isEmpty() ) throw new RuntimeException("Dangling ["); }
[ "Searches for brackets which are only used to construct new matrices by concatenating\n1 or more matrices together" ]
[ "Use this API to add nslimitselector.", "Returns all known Java installations\n\n@return a map from the version strings to their respective paths of the Java installations.", "Update counters and call hooks.\n@param handle connection handle.", "moves to the next row of the underlying ResultSet and returns the\ncorresponding Object materialized from this row.", "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Sets the left and right frame margin.\n@param frameLeft margin\n@param frameRight margin\n@return this to allow chaining", "Method to close the file caseManager. It is called just one time, by the\nMASReader, once every test and stroy have been added.\n\n@param caseManager", "Set a proxy with authentication for REST-requests.\n\n@param proxyHost\n@param proxyPort\n@param username\n@param password", "Use this API to fetch all the responderpolicy resources that are configured on netscaler." ]
public static base_response update(nitro_service client, spilloverpolicy resource) throws Exception { spilloverpolicy updateresource = new spilloverpolicy(); updateresource.name = resource.name; updateresource.rule = resource.rule; updateresource.action = resource.action; updateresource.comment = resource.comment; return updateresource.update_resource(client); }
[ "Use this API to update spilloverpolicy." ]
[ "Matrix inverse for symmetric positive definite matrices. For small matrices an unrolled\ncholesky is used. Otherwise a standard decomposition.\n\n@see UnrolledCholesky_DDRM\n@see LinearSolverFactory_DDRM#chol(int)\n\n@param mat (Input) SPD matrix\n@param result (Output) Inverted matrix.\n@return true if it could invert the matrix false if it could not.", "Convert an Object to a Timestamp, without an Exception", "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}", "When the descriptor was added while editing, but the change was not saved, it has to be removed\nwhen the editor is closed.\n@throws CmsException thrown when deleting the descriptor resource fails", "Use this API to fetch authenticationvserver_authenticationnegotiatepolicy_binding resources of given name .", "Get a list of referring domains for a photoset.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param photosetId\n(Optional) The id of the photoset 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.getPhotosetDomains.html\"", "Called on mouse up in the caption area, ends dragging by ending event\ncapture.\n\n@param event the mouse up event that ended dragging\n\n@see DOM#releaseCapture\n@see #beginDragging\n@see #endDragging", "Returns the vertex with given ID framed into given interface.", "handle white spaces." ]
@PostConstruct protected void postConstruct() { if (null == authenticationServices) { authenticationServices = new ArrayList<AuthenticationService>(); } if (!excludeDefault) { authenticationServices.add(staticAuthenticationService); } }
[ "Finish initialization of the configuration." ]
[ "Write the given long value as a 4 byte unsigned integer. Overflow is\nignored.\n\n@param buffer The buffer to write to\n@param index The position in the buffer at which to begin writing\n@param value The value to write", "Read a long int from an input stream.\n\n@param is input stream\n@return long value", "Sends this request while monitoring its progress and returns a BoxAPIResponse containing the server's response.\n\n<p>A ProgressListener is generally only useful when the size of the request is known beforehand. If the size is\nunknown, then the ProgressListener will be updated for each byte sent, but the total number of bytes will be\nreported as 0.</p>\n\n<p> See {@link #send} for more information on sending requests.</p>\n\n@param listener a listener for monitoring the progress of the request.\n@throws BoxAPIException if the server returns an error code or if a network error occurs.\n@return a {@link BoxAPIResponse} containing the server's response.", "Write back to hints file.", "Returns the full user record for the single user with the provided ID.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object", "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments.", "This method should be called after all column have been added to the report.\n@param numgroups\n@return", "Use this API to unset the properties of bridgetable resource.\nProperties that need to be unset are specified in args array.", "Updates the image information." ]
public Iterable<BoxFileVersionLegalHold.Info> getFileVersionHolds(int limit, String ... fields) { QueryStringBuilder queryString = new QueryStringBuilder().appendParam("policy_id", this.getID()); if (fields.length > 0) { queryString.appendParam("fields", fields); } URL url = LIST_OF_FILE_VERSION_HOLDS_URL_TEMPLATE.buildWithQuery(getAPI().getBaseURL(), queryString.toString()); return new BoxResourceIterable<BoxFileVersionLegalHold.Info>(getAPI(), url, limit) { @Override protected BoxFileVersionLegalHold.Info factory(JsonObject jsonObject) { BoxFileVersionLegalHold assignment = new BoxFileVersionLegalHold(getAPI(), jsonObject.get("id").asString()); return assignment.new Info(jsonObject); } }; }
[ "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." ]
[ "Deploys application reading resources from specified classpath location\n\n@param applicationName to configure in cluster\n@param classpathLocations where resources are read\n@throws IOException", "Get the Exif data for the photo.\n\nThe calling user must have permission to view the photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@param secret\nThe secret\n@return A collection of Exif objects\n@throws FlickrException", "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler.", "find all accessibility object and set active true for enable talk back.", "Adds a clause that checks whether ANY set bits in a bitmask are present\nin a numeric expression.\n\n@param expr\nSQL numeric expression to check.\n@param bits\nInteger containing the bits for which to check.", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "to do with XmlId value being strictly of type 'String'", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException", "Load a cubemap texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource.TextureCallback, GVRAndroidResource, int)}\n- it will usually be more convenient (and more efficient) to call that\ndirectly.\n\n@param context\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param callback\nAsynchronous notifications\n@param resource\nBasically, a stream containing a compressed texture. Taking a\n{@link GVRAndroidResource} parameter eliminates six overloads.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}" ]
public ConverterServerBuilder baseUri(String baseUri) { checkNotNull(baseUri); this.baseUri = URI.create(baseUri); return this; }
[ "Specifies the base URI of this conversion server.\n\n@param baseUri The URI under which this remote conversion server is reachable.\n@return This builder instance." ]
[ "Function to perform forward pooling", "Evaluates the animation with the given index at the specified time.\n@param animIndex 0-based index of {@link GVRAnimator} to start\n@param timeInSec time to evaluate the animation at\n@see GVRAvatar#stop()\n@see #start(String)", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.", "Function to go through all the store definitions contained in the STORES\ndirectory and\n\n1. Update metadata cache.\n\n2. Update STORES_KEY by stitching together all these keys.\n\n3. Update 'storeNames' list.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will correctly handle concurrency issues. Currently this is not an\nissue since its invoked by init, put, add and delete store all of which\nuse locks to deal with any concurrency related issues.", "Returns the list view of corporate groupIds of an organization\n\n@param organizationId String\n@return ListView", "Calculates directory size as total size of all its files, recursively.\n\n@param self a file object\n@return directory size (length)\n@since 2.1\n\n@throws IOException if File object specified does not exist\n@throws IllegalArgumentException if the provided File object does not represent a directory", "Requests the beat grid for a specific track ID, given a connection to a player that has already been set up.\n\n@param rekordboxId the track of interest\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 beat grid, or {@code null} if there was none available\n\n@throws IOException if there is a communication problem", "Use this API to update nslimitselector resources.", "Obtain override ID\n\n@param overrideIdentifier can be the override ID or class name\n@return\n@throws Exception" ]
public static List<String> toList(CharSequence self) { String s = self.toString(); int size = s.length(); List<String> answer = new ArrayList<String>(size); for (int i = 0; i < size; i++) { answer.add(s.substring(i, i + 1)); } return answer; }
[ "Converts the given CharSequence into a List of Strings of one character.\n\n@param self a CharSequence\n@return a List of characters (a 1-character String)\n@see #toSet(String)\n@since 1.8.2" ]
[ "Finish service initialization.\n\n@throws GeomajasException oops", "Emit a event object with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(EventObject, Object...)", "The click handler for the add button.", "Returns an empty map with expected size matching the iterable size if\nit's of type Collection. Otherwise, an empty map with the default size is\nreturned.", "Return the Payload attached to the current active bucket for |test|.\nAlways returns a payload so the client doesn't crash on a malformed\ntest definition.\n\n@param testName test name\n@return pay load attached to the current active bucket\n@deprecated Use {@link #getPayload(String, Bucket)} instead", "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", "Merge all reports in reportOverall.\n@param reportOverall destination file of merge.\n@param reports files to be merged.", "Method indicating whether a day is a working or non-working day.\n\n@param day required day\n@return true if this is a working day", "Checks whether the folder exists for fileName, and creates it if necessary.\n\n@param fileName folder name.\n@throws IOException an IO exception." ]
public <C extends Contextual<I>, I> C getContextual(String id) { return this.<C, I>getContextual(new StringBeanIdentifier(id)); }
[ "Given a particular id, return the correct contextual. For contextuals\nwhich aren't passivation capable, the contextual can't be found in another\ncontainer, and null will be returned.\n\n@param id An identifier for the contextual\n@return the contextual" ]
[ "Process field aliases.", "Use this API to fetch appfwprofile_safeobject_binding resources of given name .", "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", "Use this API to unset the properties of lbsipparameters resource.\nProperties that need to be unset are specified in args array.", "Check the given URI to see if it matches.\n\n@param matchInfo the matchInfo to validate.\n@return True if it matches.", "This method is used to process an MPP8 file. This is the file format\nused by Project 98.\n\n@param reader parent file reader\n@param file Parent MPX file\n@param root Root of the POI file system.\n@throws MPXJException\n@throws IOException", "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Given a status update from a CDJ, find the metadata for the track that it has loaded, if any. If there is\nan appropriate metadata cache, will use that, otherwise makes a query to the players dbserver.\n\n@param status the CDJ status update that will be used to determine the loaded track and ask the appropriate\nplayer for metadata about it\n\n@return the metadata that was obtained, if any", "Loads a PDF document and creates a DOM tree from it.\n@param doc the source document\n@return a DOM Document representing the DOM tree\n@throws IOException" ]
private void ensureNoTableInfoIfNoRepositoryInfo(ClassDescriptorDef classDef, String checkLevel) { if (!classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_REPOSITORY_INFO, true)) { classDef.setProperty(PropertyHelper.OJB_PROPERTY_GENERATE_TABLE_INFO, "false"); } }
[ "Ensures that generate-table-info is set to false if generate-repository-info is set to false.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)" ]
[ "Set the list of supported resolutions. Each resolution is specified in map units per pixel.\n\n@param resolutions\nresolutions\n@deprecated use {@link #setZoomLevels()}", "Get all parameter keys.\n@return a set of parameter keys", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Returns the title according to the given locale.\n@param locale the locale for which the title should be read.\n@return the title according to the given locale", "Reads timephased assignment data.\n\n@param calendar current calendar\n@param assignment assignment data\n@param type flag indicating if this is planned or complete work\n@return list of timephased resource assignment instances", "returns all methods not in the group\n\n@param groupId Id of group\n@return List of Methods for a group\n@throws Exception exception", "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "Use this API to fetch all the clusternodegroup resources that are configured on netscaler.", "Handles a complete record at a time, stores it in a form ready for\nfurther processing.\n\n@param record record to be processed\n@return flag indicating if this is the last record in the file to be processed\n@throws MPXJException" ]
public static boolean doAcquireLock(final Jedis jedis, final String namespace, final String lockName, final String lockHolder, final int timeout) { final String key = JesqueUtils.createKey(namespace, lockName); // If lock already exists, extend it String existingLockHolder = jedis.get(key); if ((existingLockHolder != null) && existingLockHolder.equals(lockHolder)) { if (jedis.expire(key, timeout) == 1) { existingLockHolder = jedis.get(key); if ((existingLockHolder != null) && existingLockHolder.equals(lockHolder)) { return true; } } } // Check to see if the key exists and is expired for cleanup purposes if (jedis.exists(key) && (jedis.ttl(key) < 0)) { // It is expired, but it may be in the process of being created, so // sleep and check again try { Thread.sleep(2000); } catch (InterruptedException ie) { } // Ignore interruptions if (jedis.ttl(key) < 0) { existingLockHolder = jedis.get(key); // If it is our lock mark the time to live if ((existingLockHolder != null) && existingLockHolder.equals(lockHolder)) { if (jedis.expire(key, timeout) == 1) { existingLockHolder = jedis.get(key); if ((existingLockHolder != null) && existingLockHolder.equals(lockHolder)) { return true; } } } else { // The key is expired, whack it! jedis.del(key); } } else { // Someone else locked it while we were sleeping return false; } } // Ignore the cleanup steps above, start with no assumptions test // creating the key if (jedis.setnx(key, lockHolder) == 1) { // Created the lock, now set the expiration if (jedis.expire(key, timeout) == 1) { // Set the timeout existingLockHolder = jedis.get(key); if ((existingLockHolder != null) && existingLockHolder.equals(lockHolder)) { return true; } } else { // Don't know why it failed, but for now just report failed // acquisition return false; } } // Failed to create the lock return false; }
[ "Helper method that encapsulates the logic to acquire a lock.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param lockName\nall calls to this method will contend for a unique lock with\nthe name of lockName\n@param timeout\nseconds until the lock will expire\n@param lockHolder\na unique string used to tell if you are the current holder of\na lock for both acquisition, and extension\n@return Whether or not the lock was acquired." ]
[ "package for testing purpose", "Creates necessary objects to make a chart an hyperlink\n\n@param design\n@param djlink\n@param chart\n@param name", "Gets information about the device pin.\n@param fields the fields to retrieve.\n@return info about the device pin.", "Creates a real valued diagonal matrix of the specified type", "Extracts the words from a string. Words are seperated by a space character.\n\n@param line The line that is being parsed.\n@return A list of words contained on the line.", "if |a11-a22| >> |a12+a21| there might be a better way. see pg371", "Turn a resultset into EndpointOverride\n\n@param results results containing relevant information\n@return EndpointOverride\n@throws Exception exception", "Perform the entire sort operation", "Returns the naming context." ]
public static CoordinateReferenceSystem parseProjection( final String projection, final Boolean longitudeFirst) { try { if (longitudeFirst == null) { return CRS.decode(projection); } else { return CRS.decode(projection, longitudeFirst); } } catch (NoSuchAuthorityCodeException e) { throw new RuntimeException(projection + " was not recognized as a crs code", e); } catch (FactoryException e) { throw new RuntimeException("Error occurred while parsing: " + projection, e); } }
[ "Parse the given projection.\n\n@param projection The projection string.\n@param longitudeFirst longitudeFirst" ]
[ "Create an LBuffer from a given file.\n@param file\n@return\n@throws IOException", "Get the property of the given object.\n\n@param object which to be got\n@return the property of the given object\n@throws RuntimeException if the property could not be evaluated", "Determine the X coordinate within the component at which the specified beat begins.\n\n@param beat the beat number whose position is desired\n@return the horizontal position within the component coordinate space where that beat begins\n@throws IllegalArgumentException if the beat number exceeds the number of beats in the track.", "Returns true if\n- includeTags is not empty and tag is in includeTags\n- includeTags is empty and tag is not in excludeTags\n@param tags Hint tags\n@param includeTags Include tags\n@param excludeTags Exclude tags\n@return has tag match", "Gets the estimated time remaining in milliseconds based upon the total number of work units, the start time, and how many units have been done\nso far.\n\nThis should not be called before any work units have been done.", "Closes this output stream and releases any system resources associated with the stream.\n\n@throws IOException\nif an I/O error occurs.", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar. The\ncalendar used is the \"Standard\" calendar. If this calendar does not exist,\nand exception will be thrown.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Convert an Object to a DateTime.", "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful" ]
public static boolean setCustomRequestForDefaultProfile(String pathName, String customData) { try { return setCustomForDefaultProfile(pathName, false, customData); } catch (Exception e) { e.printStackTrace(); } return false; }
[ "set custom request for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise" ]
[ "Returns the meta-data for the inverse side of the association represented by the given property on the given\npersister in case it represents the main side of a bi-directional one-to-many or many-to-many association.\n\n@param mainSidePersister persister of the entity hosting the property of interest\n@param propertyIndex index of the property of interest\n@return the meta-data of the inverse side of the specified association or {@code null} if no such meta-data\nexists", "Curries a function that takes one argument.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a function that takes no arguments. Never <code>null</code>.", "Returns the constructor of the indirection handler class.\n\n@return The constructor for indirection handlers", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "return currently-loaded Proctor instance, throwing IllegalStateException if not loaded", "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", "Assigns retention policy with givenID to the folder.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param folderID id of the folder to assign policy to.\n@return info about created assignment.", "Remove an addon from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAppAddons} for a list of addons that can be used.\n@return the request object", "Returns the path in the RFS where the Solr spellcheck files reside.\n@return String representation of Solrs spellcheck RFS path." ]
public void setRightTableModel(TableModel model) { TableModel old = m_rightTable.getModel(); m_rightTable.setModel(model); firePropertyChange("rightTableModel", old, model); }
[ "Set the model used by the right table.\n\n@param model table model" ]
[ "Sets the target translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator", "Gets information about this collaboration.\n\n@return info about this collaboration.", "Returns the header with the specified name from the supplied map. The\nheader lookup is case-insensitive.\n\n@param headers A <code>Map</code> containing the HTTP request headers.\n@param name The name of the header to return.\n@return The value of specified header, or a comma-separated list if there\nwere multiple headers of that name.", "Returns the local collection representing the given namespace for raw document operations.\n\n@param namespace the namespace referring to the local collection.\n@return the local collection representing the given namespace for raw document operations.", "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class.", "Transits a float propertyId from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "helper function to convert strings to bytes as needed.\n\n@param key\n@param value", "You should use the server's time here. Otherwise you might get unexpected results.\n\nThe typical use case is:\n\n\n<pre>\nHTTPResponse response = ....\nHTTPRequest request = createRequest();\nrequest = request.conditionals(new Conditionals().ifModifiedSince(response.getLastModified());\n</pre>\n\n@param time the time to check.\n@return the conditionals with the If-Modified-Since date set.", "Connect to the HC and retrieve the current model updates.\n\n@param controller the server controller\n@param callback the operation completed callback\n\n@throws IOException for any error" ]
@Pure public static <T> Iterator<T> filterNull(Iterator<T> unfiltered) { return Iterators.filter(unfiltered, Predicates.notNull()); }
[ "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>." ]
[ "Gets the current version of the database schema. This version is taken\nfrom the migration table and represent the latest successful entry.\n\n@return the current schema version", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions", "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.", "Use this API to fetch all the appflowpolicylabel resources that are configured on netscaler.", "This method performs a series of permissions checks given a directory and properties file path.\n\n1 - Check whether the parent directory dirPath has proper execute and read permissions\n2 - Check whether properties file path is readable and writable\n\nIf either of the permissions checks fail, update validFilePermissions and filePermissionsProblemPath\nappropriately.", "Find documents using an index\n\n@param selectorJson String representation of a JSON object describing criteria used to\nselect documents. For example:\n{@code \"{ \\\"selector\\\": {<your data here>} }\"}.\n@param classOfT The class of Java objects to be returned\n@param <T> the type of the Java object to be returned\n@return List of classOfT objects\n@see #findByIndex(String, Class, FindByIndexOptions)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/cloudant_query.html#selector-syntax\"\ntarget=\"_blank\">selector syntax</a>\n@deprecated Use {@link #query(String, Class)} instead", "If a and b are not null, returns a new duration of a + b.\nIf a is null and b is not null, returns b.\nIf a is not null and b is null, returns a.\nIf a and b are null, returns null.\nIf needed, b is converted to a's time unit using the project properties.\n\n@param a first duration\n@param b second duration\n@param defaults project properties containing default values\n@return a + b", "Inserts the LokenList immediately following the 'before' token", "Encodes the given source into an encoded String using the rules specified\nby the given component and with the given options.\n@param source the source string\n@param encoding the encoding of the source string\n@param type the URI component for the source\n@return the encoded URI\n@throws IllegalArgumentException when the given uri parameter is not a valid URI" ]
@Override public boolean isTempoMaster() { DeviceUpdate master = VirtualCdj.getInstance().getTempoMaster(); return (master != null) && master.getAddress().equals(address); }
[ "Was this beat sent by the current tempo master?\n\n@return {@code true} if the device that sent this beat is the master\n@throws IllegalStateException if the {@link VirtualCdj} is not running" ]
[ "Gets the Java subclass of GVRShader which implements\nthis shader type.\n@param ctx GVRContext shader is associated with\n@return GVRShader class implementing the shader type", "Use this API to unset the properties of snmpoption resource.\nProperties that need to be unset are specified in args array.", "Called by the engine to trigger the cleanup at the end of a payload thread.", "Converts an integer into a time format.\n\n@param format integer format value\n@return TimeUnit instance", "Responsible for executing file rolls as and when required, in addition to\ndelegating to the super class to perform the actual append operation.\nSynchronized for safety during enforced file roll.\n\n@see org.apache.log4j.WriterAppender#subAppend(org.apache.log4j.spi.LoggingEvent)", "Add a metadata profile.\n@see #loadProfile", "performs an UPDATE operation against RDBMS.\n@param obj The Object to be updated in the underlying table.\n@param cld ClassDescriptor providing mapping information.", "Creates a curator built using Fluo's zookeeper connection string. Root path will start at Fluo\nchroot.", "Set the diffuse light intensity.\n\nThis designates the color of the diffuse reflection.\nIt is multiplied by the material diffuse color to derive\nthe hue of the diffuse reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code diffuse_intensity} to control the intensity of diffuse light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)" ]
public static <T> T get(String key, Class<T> clz) { return (T)m().get(key); }
[ "Generic version of getting value by key from the JobContext of current thread\n@param key the key\n@param clz the val class\n@param <T> the val type\n@return the value" ]
[ "Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions", "Convert a wavelength to an RGB value.\n@param wavelength wavelength in nanometres\n@return the RGB value", "Switches from a sparse to dense matrix", "Resolves the package type from the maven project.\n\n@param project the maven project\n\n@return the package type", "Return the number of arguments associated with the specified option.\nThe return value includes the actual option.\nWill return 0 if the option is not supported.", "Get informations about a place.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param placeId\nA Flickr Places ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@return A Location\n@throws FlickrException", "Set the background color of the progress spinner disc.\n\n@param colorRes Resource id of the color.", "Print the method parameter p", "Invokes the given configurator, obtaining the correct global context type via the datastore configuration type of\nthe current datastore provider.\n\n@param configurator the configurator to invoke\n@return a context object containing the options set via the given configurator" ]
public static String createQuotedConstant(String str) { if (str == null || str.isEmpty()) { return str; } try { Double.parseDouble(str); } catch (NumberFormatException nfe) { return "\"" + str + "\""; } return str; }
[ "Puts strings inside quotes and numerics are left as they are.\n@param str\n@return" ]
[ "Use this API to fetch tunneltrafficpolicy resource of given name .", "Get the ver\n\n@param id\n@return", "Loops through all resource roots that have been made available transitively via Class-Path entries, and\nadds them to the list of roots to be processed.", "Adds the word.\n\n@param w the w\n@throws ParseException the parse exception", "Creates a Bytes object by copying the value of the given String", "Returns all known Java installations\n\n@return a map from the version strings to their respective paths of the Java installations.", "Use this API to add dnssuffix resources.", "Use this API to fetch all the Interface resources that are configured on netscaler.", "Adds a collection of listeners to the current project.\n\n@param listeners collection of listeners" ]
public void doLocalClear() { if(log.isDebugEnabled()) log.debug("Clear materialization cache"); invokeCounter = 0; enabledReadCache = false; objectBuffer.clear(); }
[ "Clears the internal used cache for object materialization." ]
[ "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text", "Extract a slice [from, to) of this buffer. This methods creates a copy of the specified region.\n@param from\n@param to\n@return", "Visit an open package of the current module.\n\n@param packaze the qualified name of the opened package.\n@param access the access flag of the opened package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can use deep\nreflection to the classes of the open package or\n<tt>null</tt>.", "Returns the decoded string, in case it contains non us-ascii characters.\nReturns the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.\n\n@param str string to be decoded\n@return the decoded string, in case it contains non us-ascii characters;\nor the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.", "Reads a string from input stream saved as a sequence of UTF chunks.\n\n@param stream stream to read from.\n@return output string\n@throws IOException if something went wrong", "appends a WHERE-clause to the Statement\n@param where\n@param crit\n@param stmt", "Put everything smaller than days at 0\n@param cal calendar to be cleaned", "Retrieve timephased baseline work. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present", "See page 385 of Fundamentals of Matrix Computations 2nd" ]
public void addArtifact(final Artifact artifact) { if (!artifacts.contains(artifact)) { if (promoted) { artifact.setPromoted(promoted); } artifacts.add(artifact); } }
[ "Adds an artifact to the module.\n\n<P>\nINFO: If the module is promoted, all added artifacts will be promoted.\n\n@param artifact Artifact" ]
[ "Returns true if this Bytes object equals another. This method doesn't check it's arguments.\n\n@since 1.2.0", "Extract information from a resource ID string with the resource type\nas the identifier.\n\n@param id the resource ID\n@param identifier the identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"\n@return the information extracted from the identifier", "read all objects of this iterator. objects will be placed in cache", "Writes a resource's cost rate tables.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Retrieves the configured message by property key\n@param key The key in the file\n@return The associated value in case the key is found in the message bundle file. If\nno such key is defined, the returned value would be the key itself.", "Get a collection of Photo objects for the specified Photoset.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@param photosetId\nThe photoset ID\n@param extras\nSet of extra-fields\n@param privacy_filter\nfilter value for authenticated calls\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return PhotoList The Collection of Photo objects\n@throws FlickrException", "Get all Groups\n\n@return\n@throws Exception", "mark a node as blacklisted\n\n@param nodeId Integer node id of the node to be blacklisted", "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" ]
private void writeWBS(Task mpxj) { if (mpxj.getUniqueID().intValue() != 0) { WBSType xml = m_factory.createWBSType(); m_project.getWBS().add(xml); String code = mpxj.getWBS(); code = code == null || code.length() == 0 ? DEFAULT_WBS_CODE : code; Task parentTask = mpxj.getParentTask(); Integer parentObjectID = parentTask == null ? null : parentTask.getUniqueID(); xml.setCode(code); xml.setGUID(DatatypeConverter.printUUID(mpxj.getGUID())); xml.setName(mpxj.getName()); xml.setObjectId(mpxj.getUniqueID()); xml.setParentObjectId(parentObjectID); xml.setProjectObjectId(PROJECT_OBJECT_ID); xml.setSequenceNumber(Integer.valueOf(m_wbsSequence++)); xml.setStatus("Active"); } writeChildTasks(mpxj); }
[ "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity" ]
[ "This method returns the duplicated certificate mapped to the passed in cert, or\ncreates and returns one if no mapping has yet been performed. If a naked public\nkey has already been mapped that matches the key in the cert, the already mapped\nkeypair will be reused for the mapped cert.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws InvalidKeyException\n@throws CertificateException\n@throws CertificateNotYetValidException\n@throws NoSuchAlgorithmException\n@throws NoSuchProviderException\n@throws SignatureException\n@throws KeyStoreException\n@throws UnrecoverableKeyException", "Takes a list of Strings and combines them into a single comma-separated\nString.\n@param strings The Strings to combine.\n@return The combined, comma-separated, String.", "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails.", "Use this API to fetch nssimpleacl resources of given names .", "Returns the full record for the given webhook.\n\n@param webhook The webhook to get.\n@return Request object", "Visits a parameter of this method.\n\n@param name\nparameter name or null if none is provided.\n@param access\nthe parameter's access flags, only <tt>ACC_FINAL</tt>,\n<tt>ACC_SYNTHETIC</tt> or/and <tt>ACC_MANDATED</tt> are\nallowed (see {@link Opcodes}).", "Sets maintenance mode for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param enable true to enable; false to disable", "Process a device update once it has been received. Track it as the most recent update from its address,\nand notify any registered listeners, including master listeners if it results in changes to tracked state,\nsuch as the current master player and tempo. Also handles the Baroque dance of handing off the tempo master\nrole from or to another device.", "Determines whether the given array only contains unbounded type variables or Object.class.\n\n@param types the given array of types\n@return true if and only if the given array only contains unbounded type variables or Object.class" ]
@Override public boolean supportsNativeRotation() { return this.params.useNativeAngle && (this.params.serverType == WmsLayerParam.ServerType.MAPSERVER || this.params.serverType == WmsLayerParam.ServerType.GEOSERVER); }
[ "If supported by the WMS server, a parameter \"angle\" can be set on \"customParams\" or \"mergeableParams\".\nIn this case the rotation will be done natively by the WMS." ]
[ "Returns the Class object of the Event implementation.", "Template method responsible for file compression checks, file creation, and\ndelegation to specific strategy implementations.\n\n@param backupFile\nThe file to be compressed.\n@param properties\nThe appender's configuration.", "Gets whether this registration has an alternative wildcard registration", "Obtain a connection asynchronously by queueing a request to obtain a connection in a separate thread.\n\nUse as follows:<p>\nFuture&lt;Connection&gt; result = pool.getAsyncConnection();<p>\n... do something else in your application here ...<p>\nConnection connection = result.get(); // get the connection<p>\n\n@return A Future task returning a connection.", "Determines the prefix of an accessor method based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulting prefix", "If there is an unprocessed change event for a particular document ID, fetch it from the\nchange stream listener, and remove it. By reading the event here, we are assuming it will be\nprocessed by the consumer.\n\n@return the latest unprocessed change event for the given document ID, or null if none exists.", "Ensures that the specified fields are present in the given class.\n\n@param classDef The class to copy the fields into\n@param fields The fields to copy\n@throws ConstraintException If there is a conflict between the new fields and fields in the class", "Set the html as value inside the tooltip.", "Adds main report query.\n\n@param text\n@param language use constants from {@link DJConstants}\n@return" ]
public static dnsnsecrec get(nitro_service service, String hostname) throws Exception{ dnsnsecrec obj = new dnsnsecrec(); obj.set_hostname(hostname); dnsnsecrec response = (dnsnsecrec) obj.get_resource(service); return response; }
[ "Use this API to fetch dnsnsecrec resource of given name ." ]
[ "key function. first validate if the ACM has adequate data; then execute\nit after the validation. the new ParallelTask task guareetee to have the\ntargethost meta and command meta not null\n\n@param handler\nthe handler\n@return the parallel task", "Creates a new undeploy description.\n\n@param deploymentDescription the deployment description to copy\n\n@return the description", "Serialize the Document object.\n\n@param dom the document to serialize\n@return the serialized dom String", "Propagates the names of all facets to each single facet.", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance", "Use this API to expire cachecontentgroup.", "Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name .", "Read data from the table. Return a reference to the current\ninstance to allow method chaining.\n\n@return reader instance", "Creates a sort configuration iff at least one of the parameters is not null and the options list is not empty.\n@param sortParam The request parameter used to send the currently chosen search option.\n@param options The available sort options.\n@param defaultOption The default sort option.\n@return the sort configuration or null, depending on the arguments." ]
public T withStatement(Statement statement) { PropertyIdValue pid = statement.getMainSnak() .getPropertyId(); ArrayList<Statement> pidStatements = this.statements.get(pid); if (pidStatements == null) { pidStatements = new ArrayList<Statement>(); this.statements.put(pid, pidStatements); } pidStatements.add(statement); return getThis(); }
[ "Adds an additional statement to the constructed document.\n\n@param statement\nthe additional statement\n@return builder object to continue construction" ]
[ "Use this API to update vpnsessionaction.", "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return", "Builds a batch-fetch capable loader based on the given persister, lock-mode, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockMode The lock mode\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Displays a localized warning.\n@param caption the caption of the warning.\n@param description the description of the warning.", "read the file as a list of text lines", "Converts a boolean array containing the pixel data in BINARY mode to an\ninteger array with the pixel data in RGB mode.\n\n@param binaryArray pixel binary data\n@return pixel integer data in RGB mode.", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Await service container stability ignoring thread interruption.\n\n@param timeout maximum period to wait for service container stability\n@param timeUnit unit in which {@code timeout} is expressed\n\n@throws java.util.concurrent.TimeoutException if service container stability is not reached before the specified timeout", "Use this API to fetch auditnslogpolicy_systemglobal_binding resources of given name ." ]
public Object moveToNextValue(Object val) throws SQLException { if (dataPersister == null) { return null; } else { return dataPersister.moveToNextValue(val); } }
[ "Move the SQL value to the next one for version processing." ]
[ "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "Commits the working copy.\n\n@param commitMessage@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure", "This handler will be triggered when there's no search result", "Walk through the object graph of the specified delete object. Was used for\nrecursive object graph walk.", "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "Finds the beat in which the specified track position falls.\n\n@param milliseconds how long the track has been playing\n\n@return the beat number represented by that time, or -1 if the time is before the first beat", "set proper expression text invoking the DJCRosstabMeasurePrecalculatedTotalProvider for the cell\n@param auxRows\n@param auxCols\n@param measureExp\n@param djmeasure\n@param crosstabColumn\n@param crosstabRow\n@param meausrePrefix", "Adds parameters contained in the annotation into the annotation type reference\n\n@param typeRef\n@param node", "Create users for the given array of addresses. The passwords will be set to the email addresses.\n\n@param greenMail Greenmail instance to create users for\n@param addresses Addresses" ]
public static final String printExtendedAttribute(MSPDIWriter writer, Object value, DataType type) { String result; if (type == DataType.DATE) { result = printExtendedAttributeDate((Date) value); } else { if (value instanceof Boolean) { result = printExtendedAttributeBoolean((Boolean) value); } else { if (value instanceof Duration) { result = printDuration(writer, (Duration) value); } else { if (type == DataType.CURRENCY) { result = printExtendedAttributeCurrency((Number) value); } else { if (value instanceof Number) { result = printExtendedAttributeNumber((Number) value); } else { result = value.toString(); } } } } } return (result); }
[ "Print an extended attribute value.\n\n@param writer parent MSPDIWriter instance\n@param value attribute value\n@param type type of the value being passed\n@return string representation" ]
[ "Fancy print without a space added to positive numbers", "Prepare a batch api request using list of individual reuests.\n@param requests list of api requests that has to be executed in batch.", "Checks if the provided duration information is valid.\n@return <code>null</code> if the information is valid, the key of the suitable error message otherwise.", "Use this API to unset the properties of gslbsite resources.\nProperties that need to be unset are specified in args array.", "Converts this file into a resource name on the classpath by cutting of the file path\nto the classpath root.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param file The file.\n@return The resource name on the classpath.", "On host controller reload, remove a not running server registered in the process controller declared as down.", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n\n@return the metadata, if any", "Throws if the given file is null, is not a file or directory, or is an empty directory.", "Init after constructor" ]
private ProjectFile read() throws Exception { m_project = new ProjectFile(); m_eventManager = m_project.getEventManager(); m_project.getProjectProperties().setFileApplication("Synchro"); m_project.getProjectProperties().setFileType("SP"); CustomFieldContainer fields = m_project.getCustomFields(); fields.getCustomField(TaskField.TEXT1).setAlias("Code"); m_eventManager.addProjectListeners(m_projectListeners); processCalendars(); processResources(); processTasks(); processPredecessors(); return m_project; }
[ "Reads data from the SP file.\n\n@return Project File instance" ]
[ "Use this API to add systemuser resources.", "Read arguments from a file. Newline delimited, UTF-8 encoded. No fanciness to\navoid dependencies.", "Creates a setter method with the given body.\n\n@param declaringClass the class to which we will add the setter\n@param propertyNode the field to back the setter\n@param setterName the name of the setter\n@param setterBlock the statement representing the setter block", "This is more expensive.\n\n@param key key whose presence in this map is to be tested.\n@return <tt>true</tt> if this map contains a mapping for the specified\nkey.", "Extracts a numeric id from a string, which can be either a Wikidata\nentity URI or a short entity or property id.\n\n@param idString\n@param isUri\n@return numeric id, or 0 if there was an error", "Decomposes and overwrites the input matrix.\n\n@param A Semi-Positive Definite (SPD) system matrix. Modified. Reference saved.\n@return If the matrix can be decomposed. Will always return false of not SPD.", "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", "Returns true if this Bytes object equals another. This method checks it's arguments.\n\n@since 1.2.0", "Mbeans for SLOP_UPDATE" ]
protected void addConstructors(ClassFile proxyClassType, List<DeferredBytecode> initialValueBytecode) { try { if (getBeanType().isInterface()) { ConstructorUtils.addDefaultConstructor(proxyClassType, initialValueBytecode, !useConstructedFlag()); } else { boolean constructorFound = false; for (Constructor<?> constructor : AccessController.doPrivileged(new GetDeclaredConstructorsAction(getBeanType()))) { if ((constructor.getModifiers() & Modifier.PRIVATE) == 0) { constructorFound = true; String[] exceptions = new String[constructor.getExceptionTypes().length]; for (int i = 0; i < exceptions.length; ++i) { exceptions[i] = constructor.getExceptionTypes()[i].getName(); } ConstructorUtils.addConstructor(BytecodeUtils.VOID_CLASS_DESCRIPTOR, DescriptorUtils.parameterDescriptors(constructor.getParameterTypes()), exceptions, proxyClassType, initialValueBytecode, !useConstructedFlag()); } } if (!constructorFound) { // the bean only has private constructors, we need to generate // two fake constructors that call each other addConstructorsForBeanWithPrivateConstructors(proxyClassType); } } } catch (Exception e) { throw new WeldException(e); } }
[ "Adds a constructor for the proxy for each constructor declared by the base\nbean type.\n\n@param proxyClassType the Javassist class for the proxy\n@param initialValueBytecode" ]
[ "Use this API to fetch the statistics of all nspbr6_stats resources that are configured on netscaler.", "Check if the object has a property with the key.\n\n@param key key to check for.", "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 default configuration for Freemarker within Windup.", "Returns the required gallery open parameters.\n\n@param cms an initialized instance of a CmsObject\n@param messages the dialog messages\n@param param the widget parameter to generate the widget for\n@param resource the resource being edited\n@param hashId the field id hash\n\n@return the gallery open parameters", "After cluster management operations, i.e. reset quota and recover quota\nenforcement settings", "Initializes the Stitch SDK so that app clients can be created.\n\n@param context An Android context value.", "Captures System.out and System.err and redirects them\nto Redwood logging.\n@param captureOut True is System.out should be captured\n@param captureErr True if System.err should be captured", "Gets all rows.\n\n@return the list of all rows" ]
public static void ensureNotSingular( DMatrixSparseCSC A , Random rand ) { // if( A.numRows < A.numCols ) { // throw new IllegalArgumentException("Fewer equations than variables"); // } int []s = UtilEjml.shuffled(A.numRows,rand); Arrays.sort(s); int N = Math.min(A.numCols,A.numRows); for (int col = 0; col < N; col++) { A.set(s[col],col,rand.nextDouble()+0.5); } }
[ "Modies the matrix to make sure that at least one element in each column has a value" ]
[ "This function uses a proxy which is capable of transforming typed invocations into proper HTTP calls\nwhich will be understood by RESTful services. This works for subresources as well. Interfaces and\nconcrete classes can be proxified, in the latter case a CGLIB runtime dependency is needed. CXF JAX-RS\nproxies can be configured the same way as HTTP-centric WebClients and response status and headers can\nalso be checked. HTTP response errors can be converted into typed exceptions.", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message.", "Returns an array of all declared fields in the given class and all\nsuper-classes.", "Given a list of store definitions, makes sure that rebalance supports all\nof them. If not it throws an error.\n\n@param storeDefList List of store definitions\n@return Filtered list of store definitions which rebalancing supports", "On key down we assume the key will go at the end. It's the most\ncommon case and not that distracting if that's not true.", "Extract calendar data from the file.\n\n@throws SQLException", "Use this API to enable clusterinstance resources of given names.", "Retrieves a vertex attribute as an integer array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntVec(String, IntBuffer)\n@see #getIntArray(String)", "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs" ]
@Override protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException { // Is the line an empty comment "#" ? if (line.startsWith(COMMENT_PREFIX) && line.length() == 1) { String nextLine = bufferedFileReader.readLine(); if (nextLine != null) { // Is the next line the realm name "#$REALM_NAME=" ? if (nextLine.startsWith(COMMENT_PREFIX) && nextLine.contains(REALM_COMMENT_PREFIX)) { // Realm name block detected! // The next line must be and empty comment "#" bufferedFileReader.readLine(); // Avoid adding the realm block } else { // It's a user comment... content.add(line); content.add(nextLine); } } else { super.addLineContent(bufferedFileReader, content, line); } } else { super.addLineContent(bufferedFileReader, content, line); } }
[ "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)" ]
[ "Return input mapper from processor.", "Use this API to add tmtrafficaction resources.", "Package-protected method used to initiate operation execution.\n@return the result action", "Write the config to the writer.", "Apply any applicable header overrides to request\n\n@param httpMethodProxyRequest\n@throws Exception", "Presents the Cursor Settings to the User. Only works if scene is set.", "Returns the distance between the two points in meters.", "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Take a stab at fixing validation problems ?\n\n@param object" ]
private void handleDmrString(final ModelNode node, final String name, final String value) { final String realValue = value.substring(2); node.get(name).set(ModelNode.fromString(realValue)); }
[ "Handles DMR strings in the configuration\n\n@param node the node to create.\n@param name the name for the node.\n@param value the value for the node." ]
[ "Get the pickers date.", "Call the Coverage Task.", "Shows the Loader component", "Creates the \"Add key\" button.\n@return the \"Add key\" button.", "Refresh's this connection's access token using its refresh token.\n@throws IllegalStateException if this connection's access token cannot be refreshed.", "The only indication that a task is a SubProject is the contents\nof the subproject file name field. We test these here then add a skeleton\nsubproject structure to match the way we do things with MPP files.", "Delete a license from the repository\n\n@param licName The name of the license to remove", "This method is used to configure the primary and alternative\nformat patterns.\n\n@param primaryPattern new format pattern\n@param alternativePatterns alternative format patterns\n@param decimalSeparator Locale specific decimal separator to replace placeholder\n@param groupingSeparator Locale specific grouping separator to replace placeholder", "Backup the current configuration as part of the patch history.\n\n@throws IOException for any error" ]
public static String encodeHost(String host, String encoding) throws UnsupportedEncodingException { return HierarchicalUriComponents.encodeUriComponent(host, encoding, HierarchicalUriComponents.Type.HOST_IPV4); }
[ "Encodes the given URI host with the given encoding.\n@param host the host to be encoded\n@param encoding the character encoding to encode to\n@return the encoded host\n@throws UnsupportedEncodingException when the given encoding parameter is not supported" ]
[ "This method writes assignment data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise", "Calls the httpHandler method.", "Log a byte array as a hex dump.\n\n@param data byte array", "Deletes a redirect by id\n\n@param id redirect ID", "Gets the Symmetric Kullback-Leibler distance.\nThis metric is valid only for real and positive P and Q.\n\n@param p P vector.\n@param q Q vector.\n@return The Symmetric Kullback Leibler distance between p and q.", "Returns a row matrix which contains all the elements in A which are flagged as true in 'marked'\n\n@param A Input matrix\n@param marked Input matrix marking elements in A\n@param output Storage for output row vector. Can be null. Will be reshaped.\n@return Row vector with marked elements", "Set the refresh frequency of this scene object.\nUse NONE for improved performance when the text is set initially and never\nchanged.\n\n@param frequency\nThe refresh frequency of this TextViewSceneObject.", "returns an Array with an Objects CURRENT locking VALUES , BRJ\n@throws PersistenceBrokerException if there is an erros accessing o field values" ]
private void attributes(Options opt, FieldDoc fd[]) { for (FieldDoc f : fd) { if (hidden(f)) continue; stereotype(opt, f, Align.LEFT); String att = visibility(opt, f) + f.name(); if (opt.showType) att += typeAnnotation(opt, f.type()); tableLine(Align.LEFT, att); tagvalue(opt, f); } }
[ "Print the class's attributes fd" ]
[ "Create a Count-Query for QueryBySQL\n\n@param aQuery\n@return The count query", "Modify the transform's current rotation in quaternion terms, around a\npivot other than the origin.\n\n@param quatW\n'W' component of the rotation quaternion.\n@param quatX\n'X' component of the rotation quaternion.\n@param quatY\n'Y' component of the rotation quaternion.\n@param quatZ\n'Z' component of the rotation quaternion.\n@param pivotX\n'X' component of the pivot's location.\n@param pivotY\n'Y' component of the pivot's location.\n@param pivotZ\n'Z' component of the pivot's location.", "Returns the number of history entries for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param searchFilter unused\n@return number of history entries", "Processes and computes column counts of A\n\n@param A (Input) Upper triangular matrix\n@param parent (Input) Elimination tree.\n@param post (Input) Post order permutation of elimination tree. See {@link TriangularSolver_DSCC#postorder}\n@param counts (Output) Storage for column counts.", "Whether the address is IPv4-compatible\n\n@see java.net.Inet6Address#isIPv4CompatibleAddress()", "Creates metadata on this file in the specified template type.\n\n@param typeName the metadata template type name.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Utility method used to convert a Number into a BigInteger.\n\n@param value Number instance\n@return BigInteger instance", "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.", "Compiles the allowable actions for a file or folder.\n\n@param cms the current CMS context\n@param file the resource for which we want the allowable actions\n\n@return the allowable actions for the given resource" ]
public Map<String, String> getSitePath() { if (m_sitePaths == null) { m_sitePaths = CmsCollectionsGenericWrapper.createLazyMap(new Transformer() { public Object transform(Object rootPath) { if (rootPath instanceof String) { return getRequestContext().removeSiteRoot((String)rootPath); } return null; } }); } return m_sitePaths; }
[ "Transforms root paths to site paths.\n\n@return lazy map from root paths to site paths.\n\n@see CmsRequestContext#removeSiteRoot(String)" ]
[ "What is something came in between when we last checked and when this method is called", "Returns the corporate dependencies of a module\n\n@param module Module\n@param corporateFilters List<String>\n@return List<Dependency>", "Returns the accrued interest of the bond for a given date.\n\n@param date The date of interest.\n@param model The model under which the product is valued.\n@return The accrued interest.", "Saves the loaded XML bundle as property bundle.\n@throws UnsupportedEncodingException thrown if localizations from the XML bundle could not be loaded correctly.\n@throws CmsException thrown if any of the interactions with the VFS fails.\n@throws IOException thrown if localizations from the XML bundle could not be loaded correctly.", "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException", "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes", "the applications main loop.", "Concatenate all the arrays in the list into a vector.\n\n@param arrays List of arrays.\n@return Vector.", "Init the headers of the table regarding the filters\n\n@return String[]" ]
protected void writeBody(HttpURLConnection connection, ProgressListener listener) { if (this.body == null) { return; } connection.setDoOutput(true); try { OutputStream output = connection.getOutputStream(); if (listener != null) { output = new ProgressOutputStream(output, listener, this.bodyLength); } int b = this.body.read(); while (b != -1) { output.write(b); b = this.body.read(); } output.close(); } catch (IOException e) { throw new BoxAPIException("Couldn't connect to the Box API due to a network error.", e); } }
[ "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress.\n@throws BoxAPIException if an error occurs while writing to the connection." ]
[ "File URLs whose protocol are in these list will be processed as jars\ncontaining classes\n\n@param fileProtocols\nComma separated list of file protocols that will be considered\nas jar files and scanned", "Check if the specified sql-string is a stored procedure\nor not.\n@param sql The sql query to check\n@return <em>True</em> if the query is a stored procedure, else <em>false</em> is returned.", "Lock the given region. Does not report failures.", "Whether the rows of the given association should be stored in a hash using the single row key column as key or\nnot.", "Reads a combined date and time value.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value", "Stops the emulator. Multiple calls are allowed.\n\n@throws DatastoreEmulatorException if the emulator cannot be stopped", "Get random geographical location\n@return 2-Tuple of ints (latitude, longitude)", "Return a list of Flickr supported blogging services.\n\nThis method does not require authentication.\n\n@return List of Services\n@throws FlickrException", "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
@Override public boolean postBuild(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException, IOException { build.executeAsync(new BuildCallable<Void, IOException>() { // record is transient, so needs to make a copy first private final Set<MavenDependency> d = dependencies; public Void call(MavenBuild build) throws IOException, InterruptedException { // add the action //TODO: [by yl] These actions are persisted into the build.xml of each build run - we need another //context to store these actions build.getActions().add(new MavenDependenciesRecord(build, d)); return null; } }); return true; }
[ "Sends the collected dependencies over to the master and record them." ]
[ "Use this API to fetch authenticationvserver_authenticationtacacspolicy_binding resources of given name .", "Writes the buffer contents to the given byte channel.\n\n@param channel\n@throws IOException", "Return the numeric distance value in degrees.\n\n@return the degrees", "Returns the names of parser rules that should be called in order to obtain the follow elements for the parser\ncall stack described by the given param.", "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1", "Delivers the correct JSON Object for properties\n\n@param properties\n@throws org.json.JSONException", "One of DEFAULT, or LARGE.", "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", "Use this API to fetch linkset resource of given name ." ]
public void setEnterpriseNumber(int index, Number value) { set(selectField(AssignmentFieldLists.ENTERPRISE_NUMBER, index), value); }
[ "Set an enterprise number value.\n\n@param index number index (1-40)\n@param value number value" ]
[ "Subtracts v1 from this vector and places the result in this vector.\n\n@param v1\nright-hand vector", "Adds all categories from one resource to another, skipping categories that are not available for the resource copied to.\n\nThe resource where categories are copied to has to be locked.\n\n@param cms the CmsObject used for reading and writing.\n@param fromResource the resource to copy the categories from.\n@param toResourceSitePath the full site path of the resource to copy the categories to.\n@throws CmsException thrown if copying the resources fails.", "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", "Determine whether the given property matches this element.\nA property matches this element when property name and this key are equal,\nvalues are equal or this element value is a wildcard.\n@param property the property to check\n@return {@code true} if the property matches", "Do not call this method outside of activity!!!", "Bind a prepared statment that represents a call to a procedure or\nuser-defined function.\n\n@param stmt the statement to bind.\n@param cld the class descriptor of the object that triggered the\ninvocation of the procedure or user-defined function.\n@param obj the object that triggered the invocation of the procedure\nor user-defined function.\n@param proc the procedure descriptor that provides information about\nthe arguments that shoudl be passed to the procedure or\nuser-defined function", "Before closing the PersistenceBroker ensure that the session\ncache is cleared", "Str map to str.\n\n@param map\nthe map\n@return the string", "Read the relationships for an individual GanttProject task.\n\n@param gpTask GanttProject task" ]
@Override @SuppressWarnings("unchecked") public ChronoZonedDateTime<AccountingDate> zonedDateTime(TemporalAccessor temporal) { return (ChronoZonedDateTime<AccountingDate>) super.zonedDateTime(temporal); }
[ "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
[ "This function looks for files with the \"wrong\" replica type in their name, and\nif it finds any, renames them.\n\nThose files may have ended up on this server either because:\n- 1. We restored them from another server, where they were named according to\nanother replica type. Or,\n- 2. The {@link voldemort.store.readonly.mr.azkaban.VoldemortBuildAndPushJob}\nand the {@link voldemort.store.readonly.fetcher.HdfsFetcher} are\noperating in 'build.primary.replicas.only' mode, so they only ever built\nand fetched replica 0 of any given file.\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 masterPartitionId partition ID of the \"primary replica\"\n@param correctReplicaType replica number which should be found on the current\nnode for the provided masterPartitionId.", "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}", "Starts the compressor.", "Return cached object by key. The key will be concatenated with\ncurrent session id when fetching the cached object\n\n@param key\n@param <T>\nthe object type\n@return the cached object", "Use this API to unset the properties of nslimitselector resources.\nProperties that need to be unset are specified in args array.", "Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module", "Resets the generator state.", "Parse an extended attribute value.\n\n@param file parent file\n@param mpx parent entity\n@param value string value\n@param mpxFieldID field ID\n@param durationFormat duration format associated with the extended attribute", "This method finds the start of the next working period.\n\n@param cal current Calendar instance" ]
public static IBlur getIBlurAlgorithm(EBlurAlgorithm algorithm, ContextWrapper contextWrapper) { RenderScript rs = contextWrapper.getRenderScript(); Context ctx = contextWrapper.getContext(); switch (algorithm) { case RS_GAUSS_FAST: return new RenderScriptGaussianBlur(rs); case RS_BOX_5x5: return new RenderScriptBox5x5Blur(rs); case RS_GAUSS_5x5: return new RenderScriptGaussian5x5Blur(rs); case RS_STACKBLUR: return new RenderScriptStackBlur(rs, ctx); case STACKBLUR: return new StackBlur(); case GAUSS_FAST: return new GaussianFastBlur(); case BOX_BLUR: return new BoxBlur(); default: return new IgnoreBlur(); } }
[ "Creates an IBlur instance for the given algorithm enum\n\n@param algorithm\n@param contextWrapper\n@return" ]
[ "Returns a new index creation statement using the session's keyspace.\n\n@param keyspace the keyspace name\n@param table the table name\n@param name the index name\n@return a new index creation statement", "Updates the store definition object and the retention time based on the\nupdated store definition", "returns &gt; 0 when o1 is more specific than o2,\n\nreturns == 0 when o1 and o2 are equal or unrelated,\n\nreturns &lt; 0 when o2 is more specific than o1,", "Chooses the ECI mode most suitable for the content of this symbol.", "Determines if entry is accepted. For normal usage, this means confirming that the key is\nneeded. For orphan usage, this simply means confirming the key belongs to the node.\n\n@param key\n@return true iff entry is accepted.", "Read a two byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "Read a short int from an input stream.\n\n@param is input stream\n@return int value", "Read the calendar data from a Gantt Designer file.\n\n@param gantt Gantt Designer file.", "Remove a part of a CharSequence. This replaces the first occurrence\nof the pattern within self with '' and returns the result.\n\n@param self a String\n@param pattern a Pattern representing the part to remove\n@return a String minus the part to be removed\n@since 2.2.0" ]
static Parameter createParameter(final String name, final String value) { if (value != null && isQuoted(value)) { return new QuotedParameter(name, value); } return new Parameter(name, value); }
[ "Creates a Parameter\n\n@param name the name\n@param value the value, or <code>null</code>\n@return a name-value pair representing the arguments" ]
[ "Determines the median value of the data set.\n@return If the number of elements is odd, returns the middle element.\nIf the number of elements is even, returns the midpoint of the two\nmiddle elements.\n@since 1.0.1", "Adds a new Token to the end of the linked list", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "Updates the font table by adding new fonts used at the current page.", "Retrieves state and metrics information for all client connections across the cluster.\n\n@return list of connections across the cluster", "Read custom property definitions for resources.\n\n@param gpResources GanttProject resources", "Convenience extension, to generate traced code.", "Use this API to fetch a aaaglobal_binding resource .", "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" ]
protected void buildSuperJoinTree(TableAlias left, ClassDescriptor cld, String name, boolean useOuterJoin) { ClassDescriptor superCld = cld.getSuperClassDescriptor(); if (superCld != null) { SuperReferenceDescriptor superRef = cld.getSuperReference(); FieldDescriptor[] leftFields = superRef.getForeignKeyFieldDescriptors(cld); TableAlias base_alias = getTableAliasForPath(name, null, null); String aliasName = String.valueOf(getAliasChar()) + m_aliasCount++; TableAlias right = new TableAlias(superCld, aliasName, useOuterJoin, null); Join join1to1 = new Join(left, leftFields, right, superCld.getPkFields(), useOuterJoin, "superClass"); base_alias.addJoin(join1to1); buildSuperJoinTree(right, superCld, name, useOuterJoin); } }
[ "build the Join-Information if a super reference exists\n\n@param left\n@param cld\n@param name" ]
[ "Checks if a parameter exists. If it exists, it is updated. If it doesn't, it is created. Only works for parameters which key is\nunique. Will create a transaction on the given entity manager.", "Use this API to update onlinkipv6prefix resources.", "Read JaCoCo report determining the format to be used.\n@param executionDataVisitor visitor to store execution data.\n@param sessionInfoStore visitor to store info session.\n@return true if binary format is the latest one.\n@throws IOException in case of error or binary format not supported.", "Examines the list of variables for any unknown variables and throws an exception if one is found", "this method looks up the appropriate JDOClass for a given persistent Class.\nIt uses the JDOModel to perfom this lookup.\n@param c the persistent Class\n@return the JDOCLass object", "Signal that this thread will not log any more messages in the multithreaded\nenvironment", "Loads the localization for the current locale from a bundle of type xmlvfsbundle.\nIt assumes, the content has already been unmarshalled before.\n@param locale the locale for which the localization should be loaded", "Attempts to insert a colon so that a value without a colon can\nbe parsed.", "Convert subQuery to SQL\n@param subQuery the subQuery value of SelectionCriteria" ]
public ManageableCollection createCollectionProxy(PBKey brokerKey, Query query, Class collectionClass) { Object args[] = {brokerKey, collectionClass, query}; try { return (ManageableCollection) getCollectionProxyConstructor(collectionClass).newInstance(args); } catch(InstantiationException ex) { throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex); } catch(InvocationTargetException ex) { throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex); } catch(IllegalAccessException ex) { throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex); } }
[ "Create a Collection Proxy for a given query.\n\n@param brokerKey The key of the persistence broker\n@param query The query\n@param collectionClass The class to build the proxy for\n@return The collection proxy" ]
[ "Boyer Moore scan that proceeds backwards from the end of the file looking for endsig\n\n@param file the file being checked\n@param channel the channel\n@param context the scan context\n@return\n@throws IOException", "Adds the dependencies typical for particular deployment types.\nThis is not accurate and doesn't cover the real needs of the project.\nBasically it's just to have \"something\" for the initial implementation.", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods. Date rolling is ignored.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3", "Sets the HTTP poller processor to handle Async API.\nWill auto enable the pollable mode with this call\n\n@param httpPollerProcessor\nthe http poller processor\n@return the parallel task builder", "Load a configuration in from a text file.\n\n@return A config if any of the fields were set otherwise null on EOF.", "Create and serialize a JobFailure.\n\n@param thrwbl the Throwable that occurred\n@param queue the queue the job came from\n@param job the Job that failed\n@return the JSON representation of a new JobFailure\n@throws IOException if there was an error serializing the JobFailure", "Writes the data collected about properties to a file.", "Returns a compact representation of all of the stories on the task.\n\n@param task The task containing the stories to get.\n@return Request object", "try to delegate the master to handle the response\n\n@param response\n@return true if the master accepted the response; false if the master\ndidn't accept" ]
List<CmsResource> getBundleResources() { List<CmsResource> resources = new ArrayList<>(m_bundleFiles.values()); if (m_desc != null) { resources.add(m_desc); } return resources; }
[ "Returns all resources that belong to the bundle\nThis includes the descriptor if one exists.\n\n@return List of the bundle resources, including the descriptor." ]
[ "Display mode for output streams.", "Calls beforeMaterialization on all registered listeners in the reverse\norder of registration.", "Creates a ProjectCalendar instance from the Asta data.\n\n@param calendarRow basic calendar data\n@param workPatternMap work pattern map\n@param workPatternAssignmentMap work pattern assignment map\n@param exceptionAssignmentMap exception assignment map\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map", "On key down we assume the key will go at the end. It's the most\ncommon case and not that distracting if that's not true.", "Get the label distance..\n\n@param settings Parameters for rendering the scalebar.", "Check if the given color string can be parsed.\n\n@param colorString The color to parse.", "Use this API to update onlinkipv6prefix.", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException" ]
public static double huntKennedyCMSOptionValue( double forwardSwaprate, double volatility, double swapAnnuity, double optionMaturity, double swapMaturity, double payoffUnit, double optionStrike) { double a = 1.0/swapMaturity; double b = (payoffUnit / swapAnnuity - a) / forwardSwaprate; double convexityAdjustment = Math.exp(volatility*volatility*optionMaturity); double valueUnadjusted = blackModelSwaptionValue(forwardSwaprate, volatility, optionMaturity, optionStrike, swapAnnuity); double valueAdjusted = blackModelSwaptionValue(forwardSwaprate * convexityAdjustment, volatility, optionMaturity, optionStrike, swapAnnuity); return a * valueUnadjusted + b * forwardSwaprate * valueAdjusted; }
[ "Calculate the value of a CMS option using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@param optionStrike The option strike\n@return Value of the CMS option" ]
[ "Write an int to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The int to write\n@param offset The offset to begin writing at", "Produces the Soundex key for the given string.", "Convenience wrapper for message parameters\n@param params\n@return", "Close the connection atomically.\n\n@return true if state changed to closed; false if nothing changed.", "Create the actual patchable target.\n\n@param name the layer name\n@param layer the layer path config\n@param metadata the metadata location for this target\n@param image the installed image\n@return the patchable target\n@throws IOException", "Used for initialization of the underlying map provider.\n\n@param fragmentManager required for initialization", "Creates PollingState from another polling state.\n\n@param other other polling state\n@param result the final result of the LRO\n@param <ResultT> the result that the poll operation produces\n@return the polling state", "Get the relative path.\n\n@return the relative path", "Helper method to add a parameter without having to create it explicitely. The created parameter should be persisted afterwards.\n\n@param key\nname of the parameter to add\n@param value\nvalue of the parameter to create\n@return the newly created parameter" ]
public void stop() { if (mAudioListener != null) { Log.d("SOUND", "stopping audio source %d %s", getSourceId(), getSoundFile()); mAudioListener.getAudioEngine().stopSound(getSourceId()); } }
[ "Stops the playback of a sound and destroys the corresponding Sound Object or Soundfield." ]
[ "Template method for verification of lazy initialisation.", "Updates the information about the user status for this terms of service with any info fields that have\nbeen modified locally.\n@param info the updated info.", "Adds the List of Lists of CRFDatums to the data and labels arrays, treating\neach datum as if it were its own document. Adds context labels in addition\nto the target label for each datum, meaning that for a particular document,\nthe number of labels will be windowSize-1 greater than the number of\ndatums.\n\n@param processedData\na List of Lists of CRFDatums", "Updates the indices in the index buffer from a Java int array.\nAll of the entries of the input int array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if int array is wrong size", "Writes triples to determine the statements with the highest rank.", "Read the file header data.\n\n@param is input stream", "Processes the template for all indices of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"unique\" optional=\"true\" description=\"Whether to process the unique indices or not\"\nvalues=\"true,false\"", "Returns a list of Elements form the DOM tree, matching the tag element.", "Calculate which pie slice is under the pointer, and set the current item\nfield accordingly." ]
private void checkMessageID(Message message) { if (!MessageUtils.isOutbound(message)) return; AddressingProperties maps = ContextUtils.retrieveMAPs(message, false, MessageUtils.isOutbound(message)); if (maps == null) { maps = new AddressingProperties(); } if (maps.getMessageID() == null) { String messageID = ContextUtils.generateUUID(); boolean isRequestor = ContextUtils.isRequestor(message); maps.setMessageID(ContextUtils.getAttributedURI(messageID)); ContextUtils.storeMAPs(maps, message, ContextUtils.isOutbound(message), isRequestor); } }
[ "check if MessageID exists in the message, if not, only generate new MessageID for outbound message.\n@param message" ]
[ "Helper method to set a value in the internal header list.\n\n@param headers the headers to set the value in\n@param name the name to set\n@param value the value to set", "Remove a key for all language versions. If a descriptor is present, the key is only removed in the descriptor.\n\n@param key the key to remove.\n@return <code>true</code> if removing was successful, <code>false</code> otherwise.", "Set new front facing rotation\n@param rotation", "Search for rectangles which have the same width and x position, and\nwhich join together vertically and merge them together to reduce the\nnumber of rectangles needed to describe a symbol.", "Notifies that an existing content item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Transforms user name and icon size into the rfs image path.\n\n@param name the user name\n@param size IconSize to get icon for\n\n@return the path", "Parses values out of the header text.\n\n@param header header text", "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", "Add exceptions to the calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar" ]
public static <T> T load(String resourcePath, BeanSpec spec) { return load(resourcePath, spec, false); }
[ "Load resource content from given path into variable with\ntype specified by `spec`.\n\n@param resourcePath the resource path\n@param spec {@link BeanSpec} specifies the return value type\n@return the resource content in a specified type or `null` if resource not found\n@throws UnexpectedException if return value type not supported" ]
[ "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "Create a Count-Query for ReportQueryByCriteria", "Create a Build retention object out of the build\n\n@param build The build to create the build retention out of\n@param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded.\n@return a new Build retention", "Joins with another IPv4 segment to produce a IPv6 segment.\n\n@param creator\n@param low\n@return", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Return all tenors for which data exists.\n\n@return The tenors in months.", "Use this API to enable nsacl6 of given name." ]
public void setEndType(final String value) { final EndType endType = EndType.valueOf(value); if (!endType.equals(m_model.getEndType())) { removeExceptionsOnChange(new Command() { public void execute() { switch (endType) { case SINGLE: m_model.setOccurrences(0); m_model.setSeriesEndDate(null); break; case TIMES: m_model.setOccurrences(10); m_model.setSeriesEndDate(null); break; case DATE: m_model.setOccurrences(0); m_model.setSeriesEndDate(m_model.getStart() == null ? new Date() : m_model.getStart()); break; default: break; } m_model.setEndType(endType); valueChanged(); } }); } }
[ "Set the duration option.\n@param value the duration option to set ({@link EndType} as string)." ]
[ "Get a property as a double or null.\n\n@param key the property name", "Sets all dates in the list.\n@param dates the dates to set\n@param checked flag, indicating if all should be checked or unchecked.", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException", "Shows error dialog, manually supplying details instead of getting them from an exception stack trace.\n\n@param message the error message\n@param details the details", "Generate a path select string\n\n@return Select query string", "converts a java.net.URI into a string representation with empty authority, if absent and has file scheme.", "Resize the mesh to given size for each axis.\n\n@param mesh Mesh to be resized.\n@param xsize Size for x-axis.\n@param ysize Size for y-axis.\n@param zsize Size fof z-axis.", "Initialize the domain registry.\n\n@param registry the domain registry", "Retrieves the value of the given accessible field of the given receiver.\n\n@param receiver the container of the field, not <code>null</code>\n@param fieldName the field's name, not <code>null</code>\n@return the value of the field\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#get(Object)}\n@throws IllegalArgumentException see {@link Field#get(Object)}" ]
private static JsonArray toJsonArray(Collection<String> values) { JsonArray array = new JsonArray(); for (String value : values) { array.add(value); } return array; }
[ "Helper function to create JsonArray from collection.\n\n@param values collection of values to convert to JsonArray\n@return JsonArray with collection values" ]
[ "Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the\ntimestampTest.\n\n@param dest Destination ColumnBuffer\n@param timestampTest Test to determine which timestamps get added to dest", "Do not call this method outside of activity!!!", "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", "Removes the given service provider factory from the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Closes the transactor node by removing its node in Zookeeper", "Use this API to add nsacl6.", "compares two AST nodes", "Starts data synchronization in a background thread.", "Require that the namespace of the current element matches the required namespace.\n\n@param reader the reader\n@param requiredNs the namespace required\n@throws XMLStreamException if the current namespace does not match the required namespace" ]
public void addExportedPackages(Set<String> exportedPackages) { addExportedPackages(exportedPackages.toArray(new String[exportedPackages.size()])); }
[ "Add the set with given bundles to the \"Export-Package\" main attribute.\n\n@param exportedPackages The set of all packages to add." ]
[ "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters", "We have received an update that invalidates any previous metadata for that player, so clear it out, 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 can have no metadata for the associated player", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "Send a channels on-air update to all registered listeners.\n\n@param audibleChannels holds the device numbers of all channels that can currently be heard in the mixer output", "Cleans up a extension module's subsystems from the resource registration model.\n\n@param rootResource the model root resource\n@param moduleName the name of the extension's module. Cannot be {@code null}\n@throws IllegalStateException if the extension still has subsystems present in {@code rootResource} or its children", "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value", "Exports a single queue to an XML file.", "Read all task relationships from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Mark for creation all objects that were included into dependent collections.\nMark for deletion all objects that were excluded from dependent collections." ]
@Override public CompletableFuture<Map<String, Change<?>>> diff(Revision from, Revision to, String pathPattern) { final ServiceRequestContext ctx = context(); return CompletableFuture.supplyAsync(() -> { requireNonNull(from, "from"); requireNonNull(to, "to"); requireNonNull(pathPattern, "pathPattern"); failFastIfTimedOut(this, logger, ctx, "diff", from, to, pathPattern); final RevisionRange range = normalizeNow(from, to).toAscending(); readLock(); try (RevWalk rw = new RevWalk(jGitRepository)) { final RevTree treeA = rw.parseTree(commitIdDatabase.get(range.from())); final RevTree treeB = rw.parseTree(commitIdDatabase.get(range.to())); // Compare the two Git trees. // Note that we do not cache here because CachingRepository caches the final result already. return toChangeMap(blockingCompareTreesUncached(treeA, treeB, pathPatternFilterOrTreeFilter(pathPattern))); } catch (StorageException e) { throw e; } catch (Exception e) { throw new StorageException("failed to parse two trees: range=" + range, e); } finally { readUnlock(); } }, repositoryWorker); }
[ "Get the diff between any two valid revisions.\n\n@param from revision from\n@param to revision to\n@param pathPattern target path pattern\n@return the map of changes mapped by path\n@throws StorageException if {@code from} or {@code to} does not exist." ]
[ "Sets the provided filters.\n@param filters a map \"column id -> filter\".", "Use this API to update csparameter.", "Add views to the tree.\n\n@param parentNode parent tree node\n@param file views container", "Token Info\nReturns the Token Information\n@return ApiResponse&lt;TokenInfoSuccessResponse&gt;\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Get the rate types set.\n\n@return the rate types set, or an empty array, but never null.", "Get all the handlers at a specific address.\n\n@param address the address\n@param inherited true to include the inherited operations\n@return the handlers", "Calculates the squared curvature of the LIBOR instantaneous variance.\n\n@param evaluationTime Time at which the product is evaluated.\n@param model A model implementing the LIBORModelMonteCarloSimulationModel\n@return The squared curvature of the LIBOR instantaneous variance (reduced a possible tolerance). The return value is &ge; 0.", "Undo a prior removal using the supplied undo key.\n\n@param removalKey - The key returned from the call to removeRoleMapping.\n@return true if the undo was successful, false otherwise.", "Use this API to update responderpolicy resources." ]