query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
@SuppressWarnings("unused") public String getDevicePushToken(final PushType type) { switch (type) { case GCM: return getCachedGCMToken(); case FCM: return getCachedFCMToken(); default: return null; } }
[ "Returns the device push token or null\n\n@param type com.clevertap.android.sdk.PushType (FCM or GCM)\n@return String device token or null\nNOTE: on initial install calling getDevicePushToken may return null, as the device token is\nnot yet available\nImplement CleverTapAPI.DevicePushTokenRefreshListener to get a callback once the token is\navailable" ]
[ "Add network interceptor to httpClient to track download progress for\nasync requests.", "Calculate the actual bit length of the proposed binary string.", "Save the current file as the given type.\n\n@param file target file\n@param type file type", "Parse a duration value.\n\n@param value duration value\n@return Duration instance", "Scans all Forge addons for files accepted by given filter.", "Poll for the next N waiting jobs in line.\n\n@param size maximum amount of jobs to poll for\n@return up to \"size\" jobs", "Use this API to diff nsconfig.", "Adds OPT_FORMAT option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Return true if the processor of the node has previously been executed.\n\n@param processorGraphNode the node to test." ]
public void printAnswers(List<CoreLabel> doc, PrintWriter out) { // boolean tagsMerged = flags.mergeTags; // boolean useHead = flags.splitOnHead; if ( ! "iob1".equalsIgnoreCase(flags.entitySubclassification)) { deEndify(doc); } for (CoreLabel fl : doc) { String word = fl.word(); if (word == BOUNDARY) { // Using == is okay, because it is set to constant out.println(); } else { String gold = fl.get(OriginalAnswerAnnotation.class); if(gold == null) gold = ""; String guess = fl.get(AnswerAnnotation.class); // System.err.println(fl.word() + "\t" + fl.get(AnswerAnnotation.class) + "\t" + fl.get(AnswerAnnotation.class)); String pos = fl.tag(); String chunk = (fl.get(ChunkAnnotation.class) == null ? "" : fl.get(ChunkAnnotation.class)); out.println(fl.word() + '\t' + pos + '\t' + chunk + '\t' + gold + '\t' + guess); } } }
[ "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" ]
[ "Rethrows platform specific OperationCanceledExceptions and unwraps OperationCanceledErrors. Does nothing for any other type of Throwable.", "Sends the JSON-formatted spellchecking results to the client.\n\n@param res The HttpServletResponse object.\n@param request The spellchecking request object.\n\n@throws IOException in case writing the response fails", "Remove any protocol-level headers from the clients request that\ndo not apply to the new request we are sending to the remote server.\n\n@param request\n@param destination", "Computes the ratio of the smallest value to the largest. Does not assume\nthe array is sorted first\n@param sv array\n@return smallest / largest", "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)", "List all the environment variables for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return map of config vars", "Checks if the categoryfolder setting needs to be updated.\n\n@return true if the categoryfolder setting needs to be updated", "Updates the file metadata.\n\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Return the discount factor within a given model context for a given maturity.\n@param model The model used as a context (not required for this class).\n@param maturity The maturity in terms of ACT/365 daycount form this curve reference date. Note that this parameter might get rescaled to a different time parameter.\n@see net.finmath.marketdata.model.curves.DiscountCurveInterface#getDiscountFactor(net.finmath.marketdata.model.AnalyticModelInterface, double)" ]
protected boolean cannotInstantiate(Class<?> actionClass) { return actionClass.isAnnotation() || actionClass.isInterface() || actionClass.isEnum() || (actionClass.getModifiers() & Modifier.ABSTRACT) != 0 || actionClass.isAnonymousClass(); }
[ "Interfaces, enums, annotations, and abstract classes cannot be\ninstantiated.\n\n@param actionClass\nclass to check\n@return returns true if the class cannot be instantiated or should be\nignored" ]
[ "Add a '=' clause so the column must be equal to the value.", "Updates the image information.", "Calculate the value of a swaption assuming the Black'76 model.\n\n@param forwardSwaprate The forward (spot)\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity.\n@param optionStrike The option strike.\n@param swapAnnuity The swap annuity corresponding to the underlying swap.\n@return Returns the value of a Swaption under the Black'76 model", "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", "Returns the name from the inverse side if the given property de-notes a one-to-one association.", "Parses an RgbaColor from an rgb value.\n\n@return the parsed color", "Check given class modifiers. Plugin with resources plugin should not be private or abstract\nor interface.", "Returns the name from the inverse side if the given property de-notes a one-to-one association.", "get the result speech recognize and find match in strings file.\n\n@param speechResult" ]
private String getOrdinal(Integer value) { String result; int index = value.intValue(); if (index >= ORDINAL.length) { result = "every " + index + "th"; } else { result = ORDINAL[index]; } return result; }
[ "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text" ]
[ "Indicates whether or not an event ID is a duplicate.\n\n<p>This method can be overridden by a subclass in order to provide custom de-duping logic.</p>\n\n@param eventID the event ID.\n@return true if the event is a duplicate; otherwise false.", "Set a colspan in a group of columns. First add the cols to the report\n\n@param colNumber the index of the col\n@param colQuantity the number of cols how i will take\n@param colspanTitle colspan title\n@return a Dynamic Report Builder\n@throws ColumnBuilderException When the index of the cols is out of\nbounds.", "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Use this API to fetch all the systemcollectionparam resources that are configured on netscaler.", "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", "Gets the explorer file entry options.\n\n@return the explorer file entry options", "Sends out the SQL as defined in the config upon first init of the connection.\n@param connection\n@param initSQL\n@throws SQLException", "Log a warning for the given operation at the provided address for the given attributes, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param operation where which problem occurred\n@param message custom error message to append\n@param attributes attributes we that have problems about", "Use this API to update sslcertkey resources." ]
public static base_response update(nitro_service client, systemcollectionparam resource) throws Exception { systemcollectionparam updateresource = new systemcollectionparam(); updateresource.communityname = resource.communityname; updateresource.loglevel = resource.loglevel; updateresource.datapath = resource.datapath; return updateresource.update_resource(client); }
[ "Use this API to update systemcollectionparam." ]
[ "Retrieves the table structure for an Asta PP file. Subclasses determine the exact contents of the structure\nfor a specific version of the Asta PP file.\n\n@return PP file table structure", "Returns the zip entry for a file in the archive.\n@param filename the file name\n@return the zip entry for the file with the provided name\n@throws ZipException thrown if the file is not in the zip archive", "Create an `AppDescriptor` with appName and entry class specified.\n\nIf `appName` is `null` or blank, it will try the following\napproach to get app name:\n\n1. check the {@link Version#getArtifactId() artifact id} and use it unless\n2. if artifact id is null or empty, then infer app name using {@link AppNameInferer}\n\n@param appName\nthe app name\n@param entryClass\nthe entry class\n@return\nan `AppDescriptor` instance", "Returns an English label for a given datatype.\n\n@param datatype\nthe datatype to label\n@return the label", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Moves our current playback position to the specified beat; this will be reflected in any status and beat packets\nthat we are sending. An incoming value less than one will jump us to the first beat.\n\n@param beat the beat that we should pretend to be playing", "Matches the styles and adjusts the size. This needs to be\ncalled after the input is added to the DOM, so we do it in\nonLoad.", "This method merges together assignment data for the same cost.\n\n@param list assignment data", "To sql pattern.\n\n@param attribute the attribute\n@return the string" ]
private void addCalendars(MpxjTreeNode parentNode, ProjectFile file) { for (ProjectCalendar calendar : file.getCalendars()) { addCalendar(parentNode, calendar); } }
[ "Add calendars to the tree.\n\n@param parentNode parent tree node\n@param file calendar container" ]
[ "Start transaction on the underlying connection.", "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host section.\nA CIDR host mask is an address with all 0s in the network section and then all 1s in the host section.\nThe prefix length is the length of the network section.\n\nAlso, keep in mind that the prefix length returned by this method is not equivalent to the prefix length used to construct this object.\nThe prefix length used to construct indicates the network and host section of this address.\nThe prefix length returned here indicates the whether the value of this address can be used as a mask for the network and host\nsection of any other address. Therefore the two values can be different values, or one can be null while the other is not.\n\nThis method applies only to the lower value of the range if this section represents multiple values.\n\n@param network whether to check for a network mask or a host mask\n@return the prefix length corresponding to this mask, or null if there is no such prefix length", "Only match if the TypeReference is at the specified location within the file.", "Use this API to fetch filterpolicy_binding resource of given name .", "Computes the tree edit distance between trees t1 and t2.\n\n@param t1\n@param t2\n@return tree edit distance between trees t1 and t2", "Obtain the profile name associated with a profile ID\n\n@param id ID of profile\n@return Name of corresponding profile", "2-D Gaussian function.\n\n@param x value.\n@param y value.\n@return Function's value at point (x,y).", "Execute the physical query and initialize the various entities and collections\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when {@code true}, get an existing proxy for each collection element (if there is one)\n@return the result of the query", "Checks if the date is a holiday\n\n@param dateString the date\n@return true if it is a holiday, false otherwise" ]
protected boolean isItemAccepted(byte[] key) { boolean entryAccepted = false; if (!fetchOrphaned) { if (isKeyNeeded(key)) { entryAccepted = true; } } else { if (!StoreRoutingPlan.checkKeyBelongsToNode(key, nodeId, initialCluster, storeDef)) { entryAccepted = true; } } return entryAccepted; }
[ "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." ]
[ "Send a DEBUG log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param pattern The message pattern\n@return", "Populate a Command instance with the values parsed from a command line\nIf any parser errors are detected it will throw an exception\n@param processedCommand command line\n@param mode do validation or not\n@throws CommandLineParserException any incorrectness in the parser will abort the populate", "Returns a valid DisplayMetrics object\n\n@param context valid context\n@return DisplayMetrics object", "Use this API to add dnstxtrec resources.", "Given a Task instance, this task determines if it should be written to the\nPM XML file as an activity or as a WBS item, and calls the appropriate\nmethod.\n\n@param task Task instance", "Use this API to fetch all the nsconfig resources that are configured on netscaler.", "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Finds out which dump files of the given type are available for download.\nThe result is a list of objects that describe the available dump files,\nin descending order by their date. Not all of the dumps included might be\nactually available.\n\n@return list of objects that provide information on available full dumps", "Use this API to fetch all the sslcertkey resources that are configured on netscaler." ]
private void exportModules() { // avoid to export modules if unnecessary if (((null != m_copyAndUnzip) && !m_copyAndUnzip.booleanValue()) || ((null == m_copyAndUnzip) && !m_currentConfiguration.getDefaultCopyAndUnzip())) { m_logStream.println(); m_logStream.println("NOT EXPORTING MODULES - you disabled copy and unzip."); m_logStream.println(); return; } CmsModuleManager moduleManager = OpenCms.getModuleManager(); Collection<String> modulesToExport = ((m_modulesToExport == null) || m_modulesToExport.isEmpty()) ? m_currentConfiguration.getConfiguredModules() : m_modulesToExport; for (String moduleName : modulesToExport) { CmsModule module = moduleManager.getModule(moduleName); if (module != null) { CmsModuleImportExportHandler handler = CmsModuleImportExportHandler.getExportHandler( getCmsObject(), module, "Git export handler"); try { handler.exportData( getCmsObject(), new CmsPrintStreamReport( m_logStream, OpenCms.getWorkplaceManager().getWorkplaceLocale(getCmsObject()), false)); } catch (CmsRoleViolationException | CmsConfigurationException | CmsImportExportException e) { e.printStackTrace(m_logStream); } } } }
[ "Export the modules that should be checked in into git." ]
[ "called per frame of animation to update the camera position", "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)", "Set the DPI value for GeoServer if there are already FORMAT_OPTIONS.", "Parses and removes embedded gallery configuration strings.\n\n@param configuration the configuration string to parse\n\n@return a map containing both the string resulting from removing the embedded configurations, and the embedded configurations as a a map", "Create a collection object of the given collection type. If none has been given,\nOJB uses RemovalAwareList, RemovalAwareSet, or RemovalAwareCollection depending\non the field type.\n\n@param desc The collection descriptor\n@param collectionClass The collection class specified in the collection-descriptor\n@return The collection object", "Adds a class entry to this JAR.\n\n@param clazz the class to add to the JAR.\n@return {@code this}", "Print a day.\n\n@param day Day instance\n@return day value", "Returns the temporary directory used by java.\n\n@return The temporary directory\n@throws IOException If an io error occurred", "Returns all factory instances that match the query.\n\n@param query the factory query, not null.\n@return the instances found, never null." ]
private void postTraversalProcessing() { int nc1 = treeSize; info[KR] = new int[leafCount]; info[RKR] = new int[leafCount]; int lc = leafCount; int i = 0; // compute left-most leaf descendants // go along the left-most path, remember each node and assign to it the path's // leaf // compute right-most leaf descendants (in reversed postorder) for (i = 0; i < treeSize; i++) { if (paths[LEFT][i] == -1) { info[POST2_LLD][i] = i; } else { info[POST2_LLD][i] = info[POST2_LLD][paths[LEFT][i]]; } if (paths[RIGHT][i] == -1) { info[RPOST2_RLD][treeSize - 1 - info[POST2_PRE][i]] = (treeSize - 1 - info[POST2_PRE][i]); } else { info[RPOST2_RLD][treeSize - 1 - info[POST2_PRE][i]] = info[RPOST2_RLD][treeSize - 1 - info[POST2_PRE][paths[RIGHT][i]]]; } } // compute key root nodes // compute reversed key root nodes (in revrsed postorder) boolean[] visited = new boolean[nc1]; boolean[] visitedR = new boolean[nc1]; Arrays.fill(visited, false); int k = lc - 1; int kR = lc - 1; for (i = nc1 - 1; i >= 0; i--) { if (!visited[info[POST2_LLD][i]]) { info[KR][k] = i; visited[info[POST2_LLD][i]] = true; k--; } if (!visitedR[info[RPOST2_RLD][i]]) { info[RKR][kR] = i; visitedR[info[RPOST2_RLD][i]] = true; kR--; } } // compute minimal key roots for every subtree // compute minimal reversed key roots for every subtree (in reversed postorder) int parent = -1; int parentR = -1; for (i = 0; i < leafCount; i++) { parent = info[KR][i]; while (parent > -1 && info[POST2_MIN_KR][parent] == -1) { info[POST2_MIN_KR][parent] = i; parent = info[POST2_PARENT][parent]; } parentR = info[RKR][i]; while (parentR > -1 && info[RPOST2_MIN_RKR][parentR] == -1) { info[RPOST2_MIN_RKR][parentR] = i; parentR = info[POST2_PARENT][info[RPOST2_POST][parentR]]; // get parent's postorder if (parentR > -1) { parentR = treeSize - 1 - info[POST2_PRE][parentR]; // if parent exists get its // rev. postorder } } } }
[ "Gathers information, that couldn't be collected while tree traversal." ]
[ "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", "Checks if the duration option is valid.\n\nNOTE: This does NOT check, if too many events are specified.\n\n@return a flag, indicating if the duration option is valid.", "Serializes the given object in JSON and returns the resulting string. In\ncase of errors, null is returned. In particular, this happens if the\nobject is not based on a Jackson-annotated class. An error is logged in\nthis case.\n\n@param object\nobject to serialize\n@return JSON serialization or null", "Retrieve the request History based on the specified filters.\nIf no filter is specified, return the default size history.\n\n@param filters filters to be applied\n@return array of History items\n@throws Exception exception", "Performs a null edit on an entity. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param currentDocument\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Use this context as prototype for a new mutable builder. The new builder is\npre-populated with the current settings of this context instance.", "Generates a download id for the request and adds the download request to the download request queue for the dispatchers pool to act on immediately.\n\n@param request\n@return downloadId", "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name", "Is the transport secured by a policy" ]
private static void listTaskNotes(ProjectFile file) { for (Task task : file.getTasks()) { String notes = task.getNotes(); if (notes.length() != 0) { System.out.println("Notes for " + task.getName() + ": " + notes); } } System.out.println(); }
[ "This method lists any notes attached to tasks.\n\n@param file MPX file" ]
[ "Transits a float property from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "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", "Invert by solving for against an identity matrix.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Returns the connection that has been saved or null if none.", "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map", "Searches the variables layers, top to bottom, for given name, and returns if found; null otherwise.\n\nIf maxDepth is set to {@link Variables#SEARCH_ALL_LAYERS}, then search all layers.", "Use this API to update cmpparameter.", "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object", "Add key value pair to extra info\n\n@param key Key of new item\n@param value New value to add" ]
public static Method findGetter(final Object object, final String fieldName) { if( object == null ) { throw new NullPointerException("object should not be null"); } else if( fieldName == null ) { throw new NullPointerException("fieldName should not be null"); } final Class<?> clazz = object.getClass(); // find a standard getter final String standardGetterName = getMethodNameForField(GET_PREFIX, fieldName); Method getter = findGetterWithCompatibleReturnType(standardGetterName, clazz, false); // if that fails, try for an isX() style boolean getter if( getter == null ) { final String booleanGetterName = getMethodNameForField(IS_PREFIX, fieldName); getter = findGetterWithCompatibleReturnType(booleanGetterName, clazz, true); } if( getter == null ) { throw new SuperCsvReflectionException( String .format( "unable to find getter for field %s in class %s - check that the corresponding nameMapping element matches the field name in the bean", fieldName, clazz.getName())); } return getter; }
[ "Returns the getter method associated with the object's field.\n\n@param object\nthe object\n@param fieldName\nthe name of the field\n@return the getter method\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible" ]
[ "Compare the controlDOM and testDOM and save and return the differences in a list.\n\n@return list with differences", "Use this API to count sslcertkey_crldistribution_binding resources configued on NetScaler.", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add.", "Checks whether a property can be added to a Properties.\n\n@param typeManager\n@param properties the properties object\n@param typeId the type id\n@param filter the property filter\n@param id the property id\n\n@return true if the property should be added", "Calculate power of a complex number.\n\n@param z1 Complex Number.\n@param n Power.\n@return Returns a new complex number containing the power of a specified number.", "Calculate standart deviation.\n@param values Values.\n@param mean Mean.\n@return Standart deviation.", "Add a console pipeline to the Redwood handler tree,\nprinting to stdout.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this", "Write a calendar.\n\n@param record calendar instance\n@throws IOException", "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 cacheobject[] get(nitro_service service, cacheobject_args args) throws Exception{ cacheobject obj = new cacheobject(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); cacheobject[] response = (cacheobject[])obj.get_resources(service, option); return response; }
[ "Use this API to fetch all the cacheobject resources that are configured on netscaler.\nThis uses cacheobject_args which is a way to provide additional arguments while fetching the resources." ]
[ "Appends the indentation string at the current position of the parent and adds a new composite node, indicating the same indentation for\nsubsequent lines.\n\n@return an indentation node, using the given indentString, appended as a child on the given parent", "Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements", "Executes a method on the server asynchronously", "Sets ID field value.\n\n@param val value", "Always returns the original proxy object that was serialized.\n\n@return the proxy object\n@throws java.io.ObjectStreamException", "Use this API to fetch appflowpolicylabel resource of given name .", "Determines total number of partition-stores moved across zones.\n\n@return number of cross zone partition-store moves", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "This method is used to initiate a release staging process using the Artifactory Release Staging API." ]
public static MarvinImage binaryToRgb(MarvinImage img) { MarvinImage resultImage = new MarvinImage(img.getWidth(), img.getHeight(), MarvinImage.COLOR_MODEL_RGB); for (int y = 0; y < img.getHeight(); y++) { for (int x = 0; x < img.getWidth(); x++) { if (img.getBinaryColor(x, y)) { resultImage.setIntColor(x, y, 0, 0, 0); } else { resultImage.setIntColor(x, y, 255, 255, 255); } } } return resultImage; }
[ "Converts an image in BINARY mode to RGB mode\n\n@param img image\n@return new MarvinImage instance in RGB mode" ]
[ "Use this API to fetch nd6ravariables resources of given names .", "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name .", "Sets the path to the script file to load and loads the script.\n\n@param filePath path to script file\n@throws IOException if the script cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "Replace error msg.\n\n@param origMsg\nthe orig msg\n@return the string", "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.", "Constructs a camera rig with cameras attached. An owner scene object is automatically\ncreated for the camera rig.\n\nDo not try to change the owner object of the camera rig - not supported currently and will\nlead to native crashes.", "Creates a new ServerDetails object for deployer, this will take URL and name from the oldDeployer ServerDetails", "Output the SQL type for the default value for the type.", "Try to provide an escaped, ready-to-use shell line to repeat a given command line." ]
@Override public boolean visit(VariableDeclarationStatement node) { for (int i = 0; i < node.fragments().size(); ++i) { String nodeType = node.getType().toString(); VariableDeclarationFragment frag = (VariableDeclarationFragment) node.fragments().get(i); state.getNames().add(frag.getName().getIdentifier()); state.getNameInstance().put(frag.getName().toString(), nodeType.toString()); } processType(node.getType(), TypeReferenceLocation.VARIABLE_DECLARATION, compilationUnit.getLineNumber(node.getStartPosition()), compilationUnit.getColumnNumber(node.getStartPosition()), node.getLength(), node.toString()); return super.visit(node); }
[ "Declaration of the variable within a block" ]
[ "Generates the context diagram for a single class", "This is an assertion method that can be used by a thread to confirm that\nthe thread isn't already holding lock for an object, before acquiring a\nlock\n\n@param object\nobject to test for lock\n@param name\ntag associated with the lock", "Convert an object to a list of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return list", "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited", "Use this API to fetch all the bridgetable resources that are configured on netscaler.", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value", "Parses a String email address to an IMAP address string.", "generate a message for loglevel WARN\n\n@param pObject the message Object", "Get FieldDescriptor from Reference" ]
public String setClassification(String classificationType) { Metadata metadata = new Metadata().add(Metadata.CLASSIFICATION_KEY, classificationType); Metadata classification = null; try { classification = this.createMetadata(Metadata.CLASSIFICATION_TEMPLATE_KEY, "enterprise", metadata); } catch (BoxAPIException e) { if (e.getResponseCode() == 409) { metadata = new Metadata("enterprise", Metadata.CLASSIFICATION_TEMPLATE_KEY); metadata.replace(Metadata.CLASSIFICATION_KEY, classificationType); classification = this.updateMetadata(metadata); } else { throw e; } } return classification.getString(Metadata.CLASSIFICATION_KEY); }
[ "Attempts to add classification to a file. If classification already exists then do update.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type on the file." ]
[ "Returns the list of nodes which match the expression xpathExpr in the String domStr.\n\n@return the list of nodes which match the query\n@throws XPathExpressionException\n@throws IOException", "Removes all documents from the collection that match the given query filter. If no documents\nmatch, the collection is not modified.\n\n@param filter the query filter to apply the the delete operation\n@return the result of the remove many operation", "Return the name of the current conf set\n@return the conf set name", "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_", "This method is used to launch mock agents. First it creates them, with\nthe generic df_service_name \\\"mock_agent\\\", and then the method sends to\nthe agent a message with the new df_service_name and its behaviour.\n\n@param agent_name\nThe name of the mock agent\n@param agent_path\nThe path of the agent, described in\nmocks/jadex/common/Definitions file\n@param configuration\nWhere the new df_service_name and the agents behaviour is\nsaved\n@param scenario\nThe Scenario of the Test", "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", "Reads baseline values for the current resource.\n\n@param xmlResource MSPDI resource instance\n@param mpxjResource MPXJ resource instance", "Set the specific device class of the node.\n@param specificDeviceClass the specificDeviceClass to set\n@exception IllegalArgumentException thrown when the specific device class does not match\nthe generic device class.", "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" ]
public static int getBytesToken(ParsingContext ctx) { String input = ctx.getInput().substring(ctx.getLocation()); int tokenOffset = 0; int i = 0; char[] inputChars = input.toCharArray(); for (; i < input.length(); i += 1) { char c = inputChars[i]; if (c == ' ') { continue; } if (c != BYTES_TOKEN_CHARS[tokenOffset]) { return -1; } else { tokenOffset += 1; if (tokenOffset == BYTES_TOKEN_CHARS.length) { // Found the token. return i; } } } return -1; }
[ "handle white spaces." ]
[ "Executes the API action \"wbsetclaim\" for the given parameters.\n\n@param statement\nthe JSON serialization of claim to add or delete.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "compares two AST nodes", "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param filterTerm The filter term to lookup users by (login for external, login or name for managed)\n@param userType The type of users we want to search with this request.\nValid values are 'managed' (enterprise users), 'external' or 'all'\n@param externalAppUserId the external app user id that has been set for an app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return An iterator over the selected users.", "Determine whether the calling thread is the GL thread.\n\n@return {@code True} if called from the GL thread, {@code false} if\ncalled from another thread.", "Sets a quota for a users.\n\n@param user the user.\n@param quota the quota.", "Create a deep copy.\n\n@param bindAddress overwrites bind address when creating deep copy.\n@return a copy of the server setup configuration.", "Use this API to fetch vpnsessionaction resource of given name .", "given is at the begining, of is at the end", "Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if null, returns false." ]
public String checkIn(byte[] data) { String id = UUID.randomUUID().toString(); dataMap.put(id, data); return id; }
[ "Store the given data and return a uuid for later retrieval of the data\n\n@param data\n@return unique id for the stored data" ]
[ "Executes the API action \"wbsearchentity\" for the given parameters.\nSearches for entities using labels and aliases. Returns a label and\ndescription for the entity in the user language if possible. Returns\ndetails of the matched term. The matched term text is also present in the\naliases key if different from the display label.\n\n<p>\nSee the <a href=\n\"https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentity\"\n>online API documentation</a> for further information.\n<p>\n\n@param search\n(required) search for this text\n@param language\n(required) search in this language\n@param strictLanguage\n(optional) whether to disable language fallback\n@param type\n(optional) search for this type of entity\nOne of the following values: item, property\nDefault: item\n@param limit\n(optional) maximal number of results\nno more than 50 (500 for bots) allowed\nDefault: 7\n@param offset\n(optional) offset where to continue a search\nDefault: 0\nthis parameter is called \"continue\" in the API (which is a Java keyword)\n\n@return list of matching entities retrieved via the API URL\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IllegalArgumentException\nif the given combination of parameters does not make sense", "Returns all accessible projects of the given organizational unit.\n\nThat is all projects which are owned by the current user or which are\naccessible for the group of the user.<p>\n\n@param cms the opencms context\n@param ouFqn the fully qualified name of the organizational unit to get projects for\n@param includeSubOus if all projects of sub-organizational units should be retrieved too\n\n@return all <code>{@link org.opencms.file.CmsProject}</code> objects in the organizational unit\n\n@throws CmsException if operation was not successful", "Register a loader with the 'sniffer'.\n\n'Factory loaders' are pre-registered. To load a format we don't support,\ncreate a {@link GVRCompressedTextureLoader} descendant. Then, before\ntrying to load any files in that format, create an instance and call\n{@link #register()}:\n\n<pre>\n\nnew MyCompressedFormat().register();\n</pre>", "Mbeans for FETCH_KEYS", "The only difference between version 1.5 and 1.6 of the schema were to make is possible to define discovery options, this\nresulted in the host and port attributes becoming optional -this method also indicates if discovery options are required\nwhere the host and port were not supplied.\n\n@param allowDiscoveryOptions i.e. are host and port potentially optional?\n@return true if discovery options are required, i.e. no host and port set and the admin policy requires a config.", "Use this API to fetch statistics of scpolicy_stats resource of given name .", "Recursively write tasks.\n\n@param tasks list of tasks\n@throws IOException", "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "Check if the print has not been asked to stop taking new jobs.\n\n@return true if it's OK to take new jobs." ]
public boolean detectBlackBerryTouch() { if (detectBlackBerry() && ((userAgent.indexOf(deviceBBStorm) != -1) || (userAgent.indexOf(deviceBBTorch) != -1) || (userAgent.indexOf(deviceBBBoldTouch) != -1) || (userAgent.indexOf(deviceBBCurveTouch) != -1))) { return true; } return false; }
[ "Detects if the current browser is a BlackBerry Touch\ndevice, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.\n@return detection of a Blackberry touchscreen device" ]
[ "parse when there are two date-times", "This method lists any notes attached to tasks.\n\n@param file MPX file", "Deploys application reading resources from specified InputStream.\n\n@param inputStream where resources are read\n@throws IOException", "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object.", "Set text parameters from properties\n@param context Valid Android {@link Context}\n@param properties JSON text properties", "Reverse how the transition is applied, such that the transition previously performed when progress=start of range is only performed when progress=end of range\n\n@return", "checks whether the specified Object obj is read-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false", "Use this API to fetch clusterinstance_binding resource of given name .", "This handler will be triggered when there's no search result" ]
public Jar setJarPrefix(String value) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Really executable cannot be set after entries are added."); if (value != null && jarPrefixFile != null) throw new IllegalStateException("A prefix has already been set (" + jarPrefixFile + ")"); this.jarPrefixStr = value; return this; }
[ "Sets a string that will be prepended to the JAR file's data.\n\n@param value the prefix, or {@code null} for none.\n@return {@code this}" ]
[ "Use this API to update nsacl6 resources.", "Set the maximum date limit.", "Use this API to add dnsaaaarec.", "Converts a vector from eigen space into sample space.\n\n@param eigenData Eigen space data.\n@return Sample space projection.", "Merge a subtree.\n\n@param targetRegistry the target registry\n@param subTree the subtree", "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 hazard curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this hazard curve.\n@param times Array of times as doubles.\n@param givenSurvivalProbabilities Array of corresponding survival probabilities.\n@return A new discount factor object.", "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "Checks if the query should be executed using the debug mode where the security restrictions do not apply.\n@param cms the current context.\n@param query the query to execute.\n@return a flag, indicating, if the query should be performed in debug mode." ]
@Override public void write(final char[] cbuf, final int off, final int len) throws IOException { int offset = off; int length = len; while (suppressLineCount > 0 && length > 0) { length = -1; for (int i = 0; i < len && suppressLineCount > 0; i++) { if (cbuf[off + i] == '\n') { offset = off + i + 1; length = len - i - 1; suppressLineCount--; } } if (length <= 0) return; } delegate.write(cbuf, offset, length); }
[ "Filter everything until we found the first NL character." ]
[ "Set the value of switch component.", "Sets the value associated with the given key; if the the key is one\nof the hashable keys, throws an exception.\n\n@throws HashableCoreMapException Attempting to set the value for an\nimmutable, hashable key.", "Execute pull docker image on agent\n\n@param launcher\n@param imageTag\n@param username\n@param password\n@param host\n@return\n@throws IOException\n@throws InterruptedException", "This static method calculated the rho of a call option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The rho of the option", "Get a property as a double or throw an exception.\n\n@param key the property name", "Access an attribute.\n\n@param type the attribute's type, not {@code null}\n@param key the attribute's key, not {@code null}\n@return the attribute value, or {@code null}.", "MPP14 files seem to exhibit some occasional weirdness\nwith duplicate ID values which leads to the task structure\nbeing reported incorrectly. The following method attempts to correct this.\nThe method uses ordering data embedded in the file to reconstruct\nthe correct ID order of the tasks.", "Helper method that encapsulates the minimum logic for publishing a job to\na channel.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param channel\nthe channel name\n@param jobJson\nthe job serialized as JSON", "Transform the root bone of the pose by the given matrix.\n@param trans matrix to transform the pose by." ]
private static Iterable<BoxUser.Info> getUsersInfoForType(final BoxAPIConnection api, final String filterTerm, final String userType, final String externalAppUserId, final String... fields) { return new Iterable<BoxUser.Info>() { public Iterator<BoxUser.Info> iterator() { QueryStringBuilder builder = new QueryStringBuilder(); if (filterTerm != null) { builder.appendParam("filter_term", filterTerm); } if (userType != null) { builder.appendParam("user_type", userType); } if (externalAppUserId != null) { builder.appendParam("external_app_user_id", externalAppUserId); } if (fields.length > 0) { builder.appendParam("fields", fields); } URL url = USERS_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), builder.toString()); return new BoxUserIterator(api, url); } }; }
[ "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param filterTerm The filter term to lookup users by (login for external, login or name for managed)\n@param userType The type of users we want to search with this request.\nValid values are 'managed' (enterprise users), 'external' or 'all'\n@param externalAppUserId the external app user id that has been set for an app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return An iterator over the selected users." ]
[ "Adds a resource collection with execution hints.", "Sets the left and right frame margin.\n@param frameLeft margin\n@param frameRight margin\n@return this to allow chaining", "Diagnostic method used to dump known field map data.\n\n@param props props block containing field map data", "Helper method to convert seed bytes into the long value required by the\nsuper class.", "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}", "Add data for a column to this table.\n\n@param column column data", "Generates a change event for a local replacement of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@param document the replacement document.\n@return a change event for a local replacement of a document in the given namespace referring\nto the given document _id.", "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", "Lookup Seam integration resource loader.\n@return the Seam integration resource loader\n@throws DeploymentUnitProcessingException for any error" ]
public ILog getLog(String topic, int partition) { TopicNameValidator.validate(topic); Pool<Integer, Log> p = getLogPool(topic, partition); return p == null ? null : p.get(partition); }
[ "Get the log if exists or return null\n\n@param topic topic name\n@param partition partition index\n@return a log for the topic or null if not exist" ]
[ "Process a currency definition.\n\n@param row record from XER file", "Implements the AAD Algorithm\n@return HashMap where the key is the internal index of the random variable with respect to which the partial derivative was computed. This key then gives access to the actual derivative.", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Seeks to the given day within the current month\n@param dayOfMonth the day of the month to seek to, represented as an integer\nfrom 1 to 31. Must be guaranteed to parse as an Integer. If this day is\nbeyond the last day of the current month, the actual last day of the month\nwill be used.", "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", "Parses whole value as list attribute\n@deprecated in favour of using {@link AttributeParser attribute parser}\n@param value String with \",\" separated string elements\n@param operation operation to with this list elements are added\n@param reader xml reader from where reading is be done\n@throws XMLStreamException if {@code value} is not valid", "Converts a string representation of an integer into an Integer object.\nSilently ignores any parse exceptions and returns null.\n\n@param value String representation of an integer\n@return Integer instance", "Converts an image in BINARY mode to RGB mode\n\n@param img image\n@return new MarvinImage instance in RGB mode", "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods" ]
public static double fastNormP2( DMatrixRMaj A ) { if( MatrixFeatures_DDRM.isVector(A)) { return fastNormF(A); } else { return inducedP2(A); } }
[ "Computes the p=2 norm. If A is a matrix then the induced norm is computed. This\nimplementation is faster, but more prone to buffer overflow or underflow problems.\n\n@param A Matrix or vector.\n@return The norm." ]
[ "Validates a String to be a valid name to be used in MongoDB for a field name.\n\n@param fieldName", "Implements the instanceof operator.\n\n@param instance The value that appeared on the LHS of the instanceof\noperator\n@return true if \"this\" appears in value's prototype chain", "Print a a basic type t", "Use this API to fetch statistics of cmppolicylabel_stats resource of given name .", "Use this API to fetch sslaction resource of given name .", "Sets the alias. Empty String is regarded as null.\n@param alias The alias to set", "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", "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task.", "Accessor method used to retrieve a char representing the\ncontents of an individual field. If the field does not exist in the\nrecord, the default character is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
protected int countedSize() throws PersistenceBrokerException { Query countQuery = getBroker().serviceBrokerHelper().getCountQuery(getQueryObject().getQuery()); ResultSetAndStatement rsStmt; ClassDescriptor cld = getQueryObject().getClassDescriptor(); int count = 0; // BRJ: do not use broker.getCount() because it's extent-aware // the count we need here must not include extents ! if (countQuery instanceof QueryBySQL) { String countSql = ((QueryBySQL) countQuery).getSql(); rsStmt = getBroker().serviceJdbcAccess().executeSQL(countSql, cld, Query.NOT_SCROLLABLE); } else { rsStmt = getBroker().serviceJdbcAccess().executeQuery(countQuery, cld); } try { if (rsStmt.m_rs.next()) { count = rsStmt.m_rs.getInt(1); } } catch (SQLException e) { throw new PersistenceBrokerException(e); } finally { rsStmt.close(); } return count; }
[ "Answer the counted size\n\n@return int" ]
[ "Reconstructs a number that is represented by more than one byte in a network packet in little-endian order, for\nthe very few protocol values that are sent in this quirky way.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "This method extracts candidate elements from the current DOM tree in the browser, based on\nthe crawl tags defined by the user.\n\n@param currentState the state in which this extract method is requested.\n@return a list of candidate elements that are not excluded.\n@throws CrawljaxException if the method fails.", "Gets the list of failed invocations that has been collected by this collector.\n\n@return The failed invocations.", "Queries taking longer than this limit to execute are logged.\n@param queryExecuteTimeLimit the limit to set in milliseconds.\n@param timeUnit", "Scans given directory for files passing given filter, adds the results into given list.", "Clear all beans and call the destruction callback.", "Process an MPP file to make it anonymous.\n\n@param input input file name\n@param output output file name\n@throws Exception", "Get the seconds difference", "Computes execution time\n@param extra" ]
private void allClustersEqual(final List<String> clusterUrls) { Validate.notEmpty(clusterUrls, "clusterUrls cannot be null"); // If only one clusterUrl return immediately if (clusterUrls.size() == 1) return; AdminClient adminClientLhs = adminClientPerCluster.get(clusterUrls.get(0)); Cluster clusterLhs = adminClientLhs.getAdminClientCluster(); for (int index = 1; index < clusterUrls.size(); index++) { AdminClient adminClientRhs = adminClientPerCluster.get(clusterUrls.get(index)); Cluster clusterRhs = adminClientRhs.getAdminClientCluster(); if (!areTwoClustersEqual(clusterLhs, clusterRhs)) throw new VoldemortException("Cluster " + clusterLhs.getName() + " is not the same as " + clusterRhs.getName()); } }
[ "Check if all cluster objects in the list are congruent.\n\n@param clusterUrls of cluster objects\n@return" ]
[ "Determines whether a project has the specified publisher type, wrapped by the \"Flexible Publish\" publisher.\n@param project The project\n@param type The type of the publisher\n@return true if the project contains a publisher of the specified type wrapped by the \"Flexible Publish\" publisher.", "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception", "Detects Opera Mobile or Opera Mini.\n@return detection of an Opera browser for a mobile device", "Put features in a tile. This will assure all features are only added in one tile. When a feature's unique tile\nis different from this one a link is added in the tile.\n\n@param tile\ntile to put features in\n@param maxTileExtent\nthe maximum tile extent\n@throws GeomajasException oops", "Get all parameter keys.\n@return a set of parameter keys", "Get the configuration for a TMS layer by retrieving and parsing it's XML description file. The parsing is done\nusing JaxB.\n@param layer the tms layer to get capabilities for.\n@return Returns the description as a Java configuration object.\n@throws TmsLayerException\nIn case something went wrong trying to find or parse the XML description file.", "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag", "Read custom fields for a GanttProject resource.\n\n@param gpResource GanttProject resource\n@param mpxjResource MPXJ Resource instance" ]
@Override @SuppressWarnings("unchecked") public ChronoZonedDateTime<Symmetry454Date> zonedDateTime(TemporalAccessor temporal) { return (ChronoZonedDateTime<Symmetry454Date>) super.zonedDateTime(temporal); }
[ "Obtains a Symmetry454 zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry454 zoned date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
[ "Creates a new InternetPrintWriter for given charset encoding.\n\n@param outputStream the wrapped output stream.\n@param charset the charset.\n@return a new InternetPrintWriter.", "Gets the current instance of plugin manager\n\n@return PluginManager", "Returns all the persistent id generators which potentially require the creation of an object in the schema.", "Merges this with the list of sections to produce the smallest array of sequential block subnets, going from smallest to largest\n\n@param sections the sections to merge with this\n@return", "Iterates over all tags of current member and evaluates the template for each one.\n\n@param template The template to be evaluated\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" optional=\"true\" description=\"The parameter name.\"", "Check real offset.\n\n@return the boolean", "Extract Primavera project data and export in another format.\n\n@param driverClass JDBC driver class name\n@param connectionString JDBC connection string\n@param projectID project ID\n@param outputFile output file\n@throws Exception", "end class CoNLLIterator", "Calculates the distance between two points\n\n@return distance between two points" ]
public static void startTimer(final String type) { TransactionLogger instance = getInstance(); if (instance == null) { return; } instance.components.putIfAbsent(type, new Component(type)); instance.components.get(type).startTimer(); }
[ "Start component timer for current instance\n@param type - of component" ]
[ "Removes 'original' and places 'target' at the same location", "Build the context name.\n\n@param objs the objects\n@return the global context name", "Called when a payload thread has ended. This also notifies the poller to poll once again.", "Package-protected method used to initiate operation execution.\n@return the result action", "Sets the category of the notification for iOS8 notification\nactions. See 13 minutes into \"What's new in iOS Notifications\"\n\nPassing {@code null} removes the category.\n\n@param category the name of the category supplied to the app\nwhen receiving the notification\n@return this", "Close the connection atomically.\n\n@return true if state changed to closed; false if nothing changed.", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "Fetches the current online data for the given item, and adds numerical\nlabels if necessary.\n\n@param itemIdValue\nthe id of the document to inspect", "Initialization method.\n\n@param t1\n@param t2" ]
public static void applyHyperLinkToElement(DynamicJasperDesign design, DJHyperLink djlink, JRDesignChart chart, String name) { JRDesignExpression hlpe = ExpressionUtils.createAndRegisterExpression(design, name, djlink.getExpression()); chart.setHyperlinkReferenceExpression(hlpe); chart.setHyperlinkType( HyperlinkTypeEnum.REFERENCE ); //FIXME Should this be a parameter in the future? if (djlink.getTooltip() != null){ JRDesignExpression tooltipExp = ExpressionUtils.createAndRegisterExpression(design, "tooltip_" + name, djlink.getTooltip()); chart.setHyperlinkTooltipExpression(tooltipExp); } }
[ "Creates necessary objects to make a chart an hyperlink\n\n@param design\n@param djlink\n@param chart\n@param name" ]
[ "performs a SQL SELECT statement against RDBMS.\n@param sql the query string.\n@param cld ClassDescriptor providing meta-information.", "Use this API to export appfwlearningdata.", "Creates a list of all permutations for a set with N elements.\n\n@param N Number of elements in the list being permuted.\n@return A list containing all the permutations.", "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent.", "The CommandContext can be retrieved thatnks to the ExecutableBuilder.", "Record the checkout queue length\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param queueLength The number of entries in the \"synchronous\" checkout\nqueue.", "Add all the items from an iterable to a collection.\n\n@param <T>\nThe type of items in the iterable and the collection\n@param collection\nThe collection to which the items should be added.\n@param items\nThe items to add to the collection.", "Add the list with given bundles to the \"Import-Package\" main attribute.\n\n@param importedPackages The list of all packages to add.", "Use this API to add sslcipher." ]
private static void attachToContent(Activity activity, MenuDrawer menuDrawer) { /** * Do not call mActivity#setContentView. * E.g. if using with a ListActivity, Activity#setContentView is overridden and dispatched to * MenuDrawer#setContentView, which then again would call Activity#setContentView. */ ViewGroup content = (ViewGroup) activity.findViewById(android.R.id.content); content.removeAllViews(); content.addView(menuDrawer, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); }
[ "Attaches the menu drawer to the content view." ]
[ "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "Sets the Base Calendar field indicates which calendar is the base calendar\nfor a resource calendar. The list includes the three built-in calendars,\nas well as any new base calendars you have created in the Change Working\nTime dialog box.\n\n@param val calendar name", "Use this API to fetch dnsnsecrec resources of given names .", "Create the index file that sets up the frameset.\n@param outputDirectory The target directory for the generated file(s).", "Convenience method for retrieving a char resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory", "Prints a report about the statistics stored in the given data object.\n\n@param usageStatistics\nthe statistics object to print\n@param entityLabel\nthe label to use to refer to this kind of entities (\"items\" or\n\"properties\")", "Append environment variables and system properties from othre PipelineEvn object", "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array." ]
private void setViewPagerScroller() { try { Field scrollerField = ViewPager.class.getDeclaredField("mScroller"); scrollerField.setAccessible(true); Field interpolatorField = ViewPager.class.getDeclaredField("sInterpolator"); interpolatorField.setAccessible(true); scroller = new CustomDurationScroller(getContext(), (Interpolator)interpolatorField.get(null)); scrollerField.set(this, scroller); } catch (Exception e) { e.printStackTrace(); } }
[ "set ViewPager scroller to change animation duration when sliding" ]
[ "Get a lower-scoped token restricted to a resource for the list of scopes that are passed.\n@param scopes the list of scopes to which the new token should be restricted for\n@param resource the resource for which the new token has to be obtained\n@return scopedToken which has access token and other details", "Use this API to fetch auditnslogpolicy_systemglobal_binding resources of given name .", "Processes the template for the comma-separated value pairs in an attribute of the current object on the specified level.\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=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"true\" description=\"The name of the attribute containg attributes (defaults to 'attributes')\"\[email protected] name=\"default-right\" optional=\"true\" description=\"The default right value if none is given (defaults to empty value)\"", "Convert a Java date into a Planner time.\n\n0800\n\n@param value Java Date instance\n@return Planner time value", "Attempts to create a human-readable String representation of the provided rule.", "Gets the node meta data.\n\n@param key - the meta data key\n@return the node meta data value for this key", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "This only gets half of the EnabledEndpoint from a JDBC ResultSet\nGetting the method for the override id requires an additional SQL query and needs to be called after\nthe SQL connection is released\n\n@param result result to scan for endpoint\n@return EnabledEndpoint\n@throws Exception exception", "Split string content into list, ignoring matches of the pattern\n@param content String content\n@param ignorePattern Pattern to ignore\n@return list" ]
public void store(Object obj, ObjectModification mod) throws PersistenceBrokerException { obj = extractObjectToStore(obj); // null for unmaterialized Proxy if (obj == null) { return; } ClassDescriptor cld = getClassDescriptor(obj.getClass()); // this call ensures that all autoincremented primary key attributes are filled Identity oid = serviceIdentity().buildIdentity(cld, obj); // select flag for insert / update selection by checking the ObjectModification if (mod.needsInsert()) { store(obj, oid, cld, true); } else if (mod.needsUpdate()) { store(obj, oid, cld, false); } /* arminw TODO: Why we need this behaviour? What about 1:1 relations? */ else { // just store 1:n and m:n associations storeCollections(obj, cld, mod.needsInsert()); } }
[ "Makes object obj persistent in the underlying persistence system.\nE.G. by INSERT INTO ... or UPDATE ... in an RDBMS.\nThe ObjectModification parameter can be used to determine whether INSERT or update is to be used.\nThis functionality is typically called from transaction managers, that\ntrack which objects have to be stored. If the object is an unmaterialized\nproxy the method return immediately." ]
[ "Use this API to fetch appqoepolicy resource of given name .", "Remember execution time for all executed suites.", "Parses command-line and gets metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build information", "Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.\nThis uses dnsnsecrec_args which is a way to provide additional arguments while fetching the resources.", "FOR internal use. This method was called after the external transaction was completed.\n\n@see javax.transaction.Synchronization", "Checks the status of one or more asynchronous photo upload tickets. This method does not require authentication.\n\n@param tickets\na set of ticket ids (Strings) or {@link Ticket} objects containing ids\n@return a list of {@link Ticket} objects.\n@throws FlickrException", "Set the value for a floating point vector of length 4.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@param w new W value\n@see #getVec4\n@see #getFloatVec(String)", "Gets the Kullback Leibler divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kullback Leibler divergence between u and v." ]
public T removeFile(final String name, final List<String> path, final byte[] existingHash, final boolean isDirectory) { return removeFile(name, path, existingHash, isDirectory, null); }
[ "Remove a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param isDirectory whether the file is a directory or not\n@return the builder" ]
[ "Publish the changes to main registry", "Use this API to fetch service_dospolicy_binding resources of given name .", "Convert a SSE to a Stitch SSE\n@param event SSE to convert\n@param decoder decoder for decoding data\n@param <T> type to decode data to\n@return a Stitch server-sent event", "Before cluster management operations, i.e. remember and disable quota\nenforcement settings", "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.", "Check if underlying connection was alive.", "Installs the given set of URIs as the source level URIs. Does not copy the given\nset but uses it directly.", "Decode a code from the stream s using huffman table h. Return the symbol or\na negative value if there is an error. If all of the lengths are zero, i.e.\nan empty code, or if the code is incomplete and an invalid code is received,\nthen -9 is returned after reading MAXBITS bits.\n\nFormat notes:\n\n- The codes as stored in the compressed data are bit-reversed relative to\na simple integer ordering of codes of the same lengths. Hence below the\nbits are pulled from the compressed data one at a time and used to\nbuild the code value reversed from what is in the stream in order to\npermit simple integer comparisons for decoding.\n\n- The first code for the shortest length is all ones. Subsequent codes of\nthe same length are simply integer decrements of the previous code. When\nmoving up a length, a one bit is appended to the code. For a complete\ncode, the last code of the longest length will be all zeros. To support\nthis ordering, the bits pulled during decoding are inverted to apply the\nmore \"natural\" ordering starting with all zeros and incrementing.\n\n@param h Huffman table\n@return status code", "get TypeSignature given the signature\n\n@param typeSignature\n@param useInternalFormFullyQualifiedName\nif true, fqn in parameterizedTypeSignature must be in the form\n'java/lang/Thread'. If false fqn must be of the form\n'java.lang.Thread'\n@return" ]
public void removeMapping(K key, V value) { if (treatCollectionsAsImmutable) { Collection<V> c = map.get(key); if (c != null) { Collection<V> newC = cf.newCollection(); newC.addAll(c); newC.remove(value); map.put(key, newC); } } else { Collection<V> c = get(key); c.remove(value); } }
[ "Removes the value from the Collection mapped to by this key, leaving the\nrest of the collection intact.\n\n@param key\nthe key to the Collection to remove the value from\n@param value\nthe value to remove" ]
[ "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Add a partition to the node provided\n\n@param node The node to which we'll add the partition\n@param donatedPartition The partition to add\n@return The new node with the new partition", "For a given set of calendar data, this method sets the working\nday status for each day, and if present, sets the hours for that\nday.\n\nNOTE: MPP14 defines the concept of working weeks. MPXJ does not\ncurrently support this, and thus we only read the working hours\nfor the default working week.\n\n@param data calendar data block\n@param defaultCalendar calendar to use for default values\n@param cal calendar instance\n@param isBaseCalendar true if this is a base calendar", "Ask the specified player for the beat grid of the track in the specified slot with the specified rekordbox ID,\nfirst checking if we have a cache we can use instead.\n\n@param track uniquely identifies the track whose beat grid is desired\n\n@return the beat grid, if any", "Use this API to enable the feature on Netscaler.\n@param feature feature to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "performs a DELETE operation against RDBMS.\n@param cld ClassDescriptor providing mapping information.\n@param obj The object to be deleted.", "Parses the given XML doc to extract the properties and return them into a java.util.Properties.\n@param doc to parse\n@param sectionName which section to extract\n@return Properties map", "Determines the accessor method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Log a string.\n\n@param label label text\n@param data string data" ]
public static AbstractReportGenerator generateHtml5Report() { AbstractReportGenerator report; try { Class<?> aClass = new ReportGenerator().getClass().getClassLoader() .loadClass( "com.tngtech.jgiven.report.html5.Html5ReportGenerator" ); report = (AbstractReportGenerator) aClass.newInstance(); } catch( ClassNotFoundException e ) { throw new JGivenInstallationException( "The JGiven HTML5 Report Generator seems not to be on the classpath.\n" + "Ensure that you have a dependency to jgiven-html5-report." ); } catch( Exception e ) { throw new JGivenInternalDefectException( "The HTML5 Report Generator could not be instantiated.", e ); } return report; }
[ "Searches the Html5ReportGenerator in Java path and instantiates the report" ]
[ "Use this API to fetch all the nslimitselector resources that are configured on netscaler.", "Clears all checked widgets in the group", "Set the current playback position. This method can only be used in situations where the component is\ntied to a single player, and therefore always has a single playback position.\n\nWill cause part of the component to be redrawn if the position has\nchanged. This will be quickly overruled if a player is being monitored, but\ncan be used in other contexts.\n\n@param milliseconds how far into the track has been played\n\n@see #setPlaybackState", "Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name .", "Tokenizes the input file and extracts the required data.\n\n@param is input stream\n@throws MPXJException", "This method extracts byte arrays from the embedded object data\nand converts them into RTFEmbeddedObject instances, which\nit then adds to the supplied list.\n\n@param offset offset into the RTF document\n@param text RTF document\n@param objects destination for RTFEmbeddedObject instances\n@return new offset into the RTF document", "A variant of the gamma function.\n@param a the number to apply gain to\n@param b the gain parameter. 0.5 means no change, smaller values reduce gain, larger values increase gain.\n@return the output value", "Clear any current allowed job types and use the given set.\n@param jobTypes the job types to allow", "DISPATCHING - COMMANDS" ]
public final void notifyContentItemRangeRemoved(int positionStart, int itemCount) { if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > contentItemCount) { throw new IndexOutOfBoundsException("The given range [" + positionStart + " - " + (positionStart + itemCount - 1) + "] is not within the position bounds for content items [0 - " + (contentItemCount - 1) + "]."); } notifyItemRangeRemoved(positionStart + headerItemCount, itemCount); }
[ "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "Update a feature object in the Hibernate session.\n\n@param feature feature object\n@throws LayerException oops", "Returns a String summarizing overall accuracy that will print nicely.", "Invert by solving for against an identity matrix.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "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}", "Finish a state transition from a notification.\n\n@param current\n@param next", "Executes the rebalance plan. Does so batch-by-batch. Between each batch,\nstatus is dumped to logger.info.\n\n@param rebalancePlan", "Gets the uuid from response.\n\n@param myResponse\nthe my response\n@return the uuid from response", "Use this API to fetch dnsnsecrec resource of given name ." ]
public static AppDescriptor deserializeFrom(byte[] bytes) { try { ByteArrayInputStream bais = new ByteArrayInputStream(bytes); ObjectInputStream ois = new ObjectInputStream(bais); return (AppDescriptor) ois.readObject(); } catch (IOException e) { throw E.ioException(e); } catch (ClassNotFoundException e) { throw E.unexpected(e); } }
[ "Deserialize an `AppDescriptor` from byte array\n\n@param bytes\nthe byte array\n@return\nan `AppDescriptor` instance" ]
[ "Merges a list of local and online dumps. For dumps available both online\nand locally, only the local version is included. The list is order with\nmost recent dump date first.\n\n@return a merged list of dump files", "Triggers a replication request, blocks while the replication is in progress.\n@return ReplicationResult encapsulating the result", "Checks constraints on this model.\n\n@param checkLevel The amount of checks to perform\n@throws ConstraintException If a constraint has been violated", "Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of sentinels\n@return this ConfigBuilder", "Sends the events to monitoring service client.\n\n@param events the events", "Use this API to add responderpolicy.", "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.", "Return true if the expression is a constructor call on any of the named classes, with any number of parameters.\n@param expression - the expression\n@param classNames - the possible List of class names\n@return as described", "If you register a CustomExpression with the name \"customExpName\", then this will create the text needed\nto invoke it in a JRDesignExpression\n\n@param customExpName\n@param usePreviousFieldValues\n@return" ]
public static void addActionsTo( SourceBuilder code, Set<MergeAction> mergeActions, boolean forBuilder) { SetMultimap<String, String> nounsByVerb = TreeMultimap.create(); mergeActions.forEach(mergeAction -> { if (forBuilder || !mergeAction.builderOnly) { nounsByVerb.put(mergeAction.verb, mergeAction.noun); } }); List<String> verbs = ImmutableList.copyOf(nounsByVerb.keySet()); String lastVerb = getLast(verbs, null); for (String verb : nounsByVerb.keySet()) { code.add(", %s%s", (verbs.size() > 1 && verb.equals(lastVerb)) ? "and " : "", verb); List<String> nouns = ImmutableList.copyOf(nounsByVerb.get(verb)); for (int i = 0; i < nouns.size(); ++i) { String separator = (i == 0) ? "" : (i == nouns.size() - 1) ? " and" : ","; code.add("%s %s", separator, nouns.get(i)); } } }
[ "Emits a sentence fragment combining all the merge actions." ]
[ "Checks if template mapper is configured in modules.\n\n@return true if the template mapper is configured in modules", "Use to generate a file based on generator node.", "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", "Minimize the function starting at the given initial point.", "Extract a list of work pattern assignments.\n\n@param workPatterns string representation of work pattern assignments\n@return list of work pattern assignment rows", "Obtain the name of the caller, most likely a user but could also be a remote process.\n\n@return The name of the caller.", "Gets the positions.\n\n@return the positions", "Finds binding for a type in the given injector and, if not found,\nrecurses to its parent\n\n@param injector\nthe current Injector\n@param type\nthe Class representing the type\n@return A boolean flag, <code>true</code> if binding found", "If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The size of the painting area.\n@param bounds The map bounds.\n@param dpi the DPI." ]
public static base_response enable(nitro_service client, String id) throws Exception { Interface enableresource = new Interface(); enableresource.id = id; return enableresource.perform_operation(client,"enable"); }
[ "Use this API to enable Interface of given name." ]
[ "Set the value for a floating point vector of length 4.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@param w new W value\n@see #getVec4\n@see #getFloatVec(String)", "Adds title and subtitle to the TitleBand when it applies.\nIf title is not present then subtitle will be ignored", "Main method, handles all the setup tasks for DataGenerator a user would normally do themselves\n\n@param args command line arguments", "Get the auth URL, this is step two of authorization.\n\n@param oAuthRequestToken\nthe token from a {@link AuthInterface#getRequestToken} call.", "Use this API to delete snmpmanager.", "Iterate RMI Targets Map and remove entries loaded by protected ClassLoader", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "Prints text to output stream, replacing parameter start and end\nplaceholders\n\n@param text the String to print", "Executes a given SPARQL query and returns a stream with the result in\nJSON format.\n\n@param query\n@return\n@throws IOException" ]
private Component createAddKeyButton() { // the "+" button Button addKeyButton = new Button(); addKeyButton.addStyleName("icon-only"); addKeyButton.addStyleName("borderless-colored"); addKeyButton.setDescription(m_messages.key(Messages.GUI_ADD_KEY_0)); addKeyButton.setIcon(FontOpenCms.CIRCLE_PLUS, m_messages.key(Messages.GUI_ADD_KEY_0)); addKeyButton.addClickListener(new ClickListener() { private static final long serialVersionUID = 1L; public void buttonClick(ClickEvent event) { handleAddKey(); } }); return addKeyButton; }
[ "Creates the \"Add key\" button.\n@return the \"Add key\" button." ]
[ "Converts a tab delimited string into an object with given fields\nRequires the object has setXxx functions for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterRegex delimiter regular expression\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator", "To populate the dropdown list from the jelly", "Restores a trashed file back to its original location.\n@param fileID the ID of the trashed file.\n@return info about the restored file.", "Should use as destroy method. Disconnects from a Service Locator server.\nAll endpoints that were registered before are removed from the server.\nSet property locatorClient to null.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Register the entity as batch loadable, if enabled\n\nCopied from {@link org.hibernate.type.ManyToOneType#scheduleBatchLoadIfNeeded}", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Set the model used by the left table.\n\n@param model table model", "Generate a sql where-clause for the array of fields\n\n@param fields array containing all columns used in WHERE clause" ]
public static int rank(DMatrixRMaj A , double threshold ) { SingularValueDecomposition_F64<DMatrixRMaj> svd = DecompositionFactory_DDRM.svd(A.numRows,A.numCols,false,false,true); if( svd.inputModified() ) A = A.copy(); if( !svd.decompose(A) ) throw new RuntimeException("Decomposition failed"); return SingularOps_DDRM.rank(svd, threshold); }
[ "Computes the rank of a matrix using the specified tolerance.\n\n@param A Matrix whose rank is to be calculated. Not modified.\n@param threshold The numerical threshold used to determine a singular value.\n@return The matrix's rank." ]
[ "Gets the final transform of the bone.\n\n@return the 4x4 matrix representing the final transform of the\nbone during animation, which comprises bind pose and skeletal\ntransform at the current time of the animation.", "Clears the proxy. A cleared proxy is defined as loaded\n\n@see Collection#clear()", "Method used to create missing timephased data.\n\n@param file project file\n@param assignment resource assignment\n@param timephasedPlanned planned timephased data\n@param timephasedComplete complete timephased data", "Write an double field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Tells you if the expression is a null safe dereference.\n@param expression\nexpression\n@return\ntrue if is null safe dereference.", "Use this API to fetch dnspolicy_dnspolicylabel_binding resources of given name .", "Stop finding signatures for all active players.", "Only match if the TypeReference is at the specified location within the file.", "Add a new download. The download will start automatically once the download manager is\nready to execute it and connectivity is available.\n\n@param request the parameters specifying this download\n@return an ID for the download, unique across the application. This ID is used to make future\ncalls related to this download.\n@throws IllegalArgumentException" ]
private Component createMainComponent() throws IOException, CmsException { VerticalLayout mainComponent = new VerticalLayout(); mainComponent.setSizeFull(); mainComponent.addStyleName("o-message-bundle-editor"); m_table = createTable(); Panel navigator = new Panel(); navigator.setSizeFull(); navigator.setContent(m_table); navigator.addActionHandler(new CmsMessageBundleEditorTypes.TableKeyboardHandler(m_table)); navigator.addStyleName("v-panel-borderless"); mainComponent.addComponent(m_options.getOptionsComponent()); mainComponent.addComponent(navigator); mainComponent.setExpandRatio(navigator, 1f); m_options.updateShownOptions(m_model.hasMasterMode(), m_model.canAddKeys()); return mainComponent; }
[ "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." ]
[ "Returns the result of a stored procedure executed on the backend.\n\n@param embeddedCacheManager embedded cache manager\n@param storedProcedureName name of stored procedure\n@param queryParameters parameters passed for this query\n@param classLoaderService the class loader service\n\n@return a {@link ClosableIterator} with the result of the query", "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "get bearer token returned by IAM in JSON format", "Computes the p=1 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm.", "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return", "The user making this call must be a member of the team in order to add others.\nThe user to add must exist in the same organization as the team in order to be added.\nThe user to add can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the added user.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Returns the ReportModel with given name.", "Un-serialize a Json into Organization\n@param organization String\n@return Organization\n@throws IOException", "this method will be invoked after methodToBeInvoked is invoked" ]
public void addNotification(@Observes final DesignerNotificationEvent event) { if (user.getIdentifier().equals(event.getUserId())) { if (event.getNotification() != null && !event.getNotification().equals("openinxmleditor")) { final NotificationPopupView view = new NotificationPopupView(); activeNotifications.add(view); view.setPopupPosition(getMargin(), activeNotifications.size() * SPACING); view.setNotification(event.getNotification()); view.setType(event.getType()); view.setNotificationWidth(getWidth() + "px"); view.show(new Command() { @Override public void execute() { //The notification has been shown and can now be removed deactiveNotifications.add(view); remove(); } }); } } }
[ "Display a Notification message\n@param event" ]
[ "Processes an object cache tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the object-cache as name-value pairs 'name=value',\[email protected] name=\"class\" optional=\"false\" description=\"The object cache implementation\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the object cache\"", "Gets the date time str standard.\n\n@param d\nthe d\n@return the date time str standard", "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded", "Retrieve and validate the timestamp value from the REST request.\n\"X_VOLD_REQUEST_ORIGIN_TIME_MS\" is timestamp header\n\nTODO REST-Server 1. Change Time stamp header to a better name.\n\n@return true if present, false if missing", "In this method perform the actual override in runtime.\n\n@see org.apache.log4j.spi.HierarchyEventListener#addAppenderEvent(org.apache.log4j.Category, org.apache.log4j.Appender)", "Updates the exceptions panel.", "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array.", "Get file size\n\n@return Long", "Sets a header per-request\n\n@param key Header key\n@param value Header value\n@return The request itself" ]
okhttp3.Response delete(String url, Map<String, Object> params) throws RequestException, LocalOperationException { okhttp3.Request request = new okhttp3.Request.Builder() .url(getFullUrl(url)) .delete(getBody(toPayload(params), null)) .addHeader("Transloadit-Client", version) .build(); try { return httpClient.newCall(request).execute(); } catch (IOException e) { throw new RequestException(e); } }
[ "Makes http DELETE request\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException" ]
[ "Internal method used to retrieve a integer from an\nembedded data block.\n\n@param blocks list of data blocks\n@return int value", "Trim the trailing spaces.\n\n@param line", "Returns all the persistent id generators which potentially require the creation of an object in the schema.", "Take a string and make it an iterable ContentStream", "Returns the list of user defined attribute names.\n\n@return the list of user defined attribute names, if there are none it returns an empty set.", "Splits the given string.", "Gets the list of failed invocations that has been collected by this collector.\n\n@return The failed invocations.", "Get the Operation metadata for an MBean by name.\n@return the {@link Map} of {@link String} operation names to {@link MBeanOperationInfo} values.", "Finish initializing service.\n\n@throws IOException oop" ]
private static OkHttpClient getUnsafeOkHttpClient() { try { // Create a trust manager that does not validate certificate chains final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { @Override public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { } @Override public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { } @Override public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } } }; // Install the all-trusting trust manager final SSLContext sslContext = SSLContext.getInstance("SSL"); sslContext.init(null, trustAllCerts, new java.security.SecureRandom()); // Create an ssl socket factory with our all-trusting manager final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory(); OkHttpClient okHttpClient = new OkHttpClient(); okHttpClient.setSslSocketFactory(sslSocketFactory); okHttpClient.setHostnameVerifier(new HostnameVerifier() { @Override public boolean verify(String hostname, SSLSession session) { return true; } }); return okHttpClient; } catch (Exception e) { throw new RuntimeException(e); } }
[ "Returns a OkHttpClient that ignores SSL cert errors\n@return" ]
[ "Convert an Object to a Date.", "Plots the MSD curve for trajectory t\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param msdeval Evaluates the mean squared displacment", "Provide array of String results from inputOutput MFString field named url.\n@array saved in valueDestination", "returns array with all allowed values\n@return allowed values", "One of facade methods for operating the Shell.\n\nRun the obtained Shell with commandLoop().\n\n@see org.gearvrf.debug.cli.Shell#Shell(org.gearvrf.debug.cli.Shell.Settings, org.gearvrf.debug.cli.CommandTable, java.util.List)\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param handlers Command handlers\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Normalize the list of selected categories to fit for the ids of the tree items.", "Check that the parameter array has exactly the right number of elements.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@param actualLength\nThe actual array length\n@param expectedLength\nThe expected array length", "Gets Widget bounds height\n@return height", "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited." ]
public FieldType getFieldTypeFromVarDataKey(Integer key) { FieldType result = null; for (Entry<FieldType, FieldMap.FieldItem> entry : m_map.entrySet()) { if (entry.getValue().getFieldLocation() == FieldLocation.VAR_DATA && entry.getValue().getVarDataKey().equals(key)) { result = entry.getKey(); break; } } return result; }
[ "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type" ]
[ "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", "We need to distinguish the case where we're newly available and the case\nwhere we're already available. So we check the node status before we\nupdate it and return it to the caller.\n\n@param isAvailable True to set to available, false to make unavailable\n\n@return Previous value of isAvailable", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Process the hours and exceptions for an individual calendar.\n\n@param calendar project calendar\n@param calendarData hours and exception rows for this calendar", "get bearer token returned by IAM in JSON format", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "Updates the information about this collaboration with any info fields that have been modified locally.\n\n@param info the updated info.", "Copy new data to an existing float-point texture.\n\nCreating a new {@link GVRFloatImage} is pretty cheap, but it's still\nnot a totally trivial operation: it does involve some memory management\nand some GL hardware handshaking. Reusing the texture reduces this\noverhead (primarily by delaying garbage collection). Do be aware that\nupdating a texture will affect any and all {@linkplain GVRMaterial\nmaterials} (and/or post effects that use the texture!\n\n@param width\nTexture width, in pixels\n@param height\nTexture height, in pixels\n@param data\nA linear array of float pairs.\n@return {@code true} if the updateGPU succeeded, and {@code false} if it\nfailed. Updating a texture requires that the new data parameter\nhas the exact same {@code width} and {@code height} and pixel\nformat as the original data.\n@throws IllegalArgumentException\nIf {@code width} or {@code height} is {@literal <= 0,} or if\n{@code data} is {@code null}, or if\n{@code data.length < height * width * 2}", "Use this API to fetch sslfipskey resource of given name ." ]
public static <T> T getBundle(final Class<T> type) { return doPrivileged(new PrivilegedAction<T>() { public T run() { final Locale locale = Locale.getDefault(); final String lang = locale.getLanguage(); final String country = locale.getCountry(); final String variant = locale.getVariant(); Class<? extends T> bundleClass = null; if (variant != null && !variant.isEmpty()) try { bundleClass = Class.forName(join(type.getName(), "$bundle", lang, country, variant), true, type.getClassLoader()).asSubclass(type); } catch (ClassNotFoundException e) { // ignore } if (bundleClass == null && country != null && !country.isEmpty()) try { bundleClass = Class.forName(join(type.getName(), "$bundle", lang, country, null), true, type.getClassLoader()).asSubclass(type); } catch (ClassNotFoundException e) { // ignore } if (bundleClass == null && lang != null && !lang.isEmpty()) try { bundleClass = Class.forName(join(type.getName(), "$bundle", lang, null, null), true, type.getClassLoader()).asSubclass(type); } catch (ClassNotFoundException e) { // ignore } if (bundleClass == null) try { bundleClass = Class.forName(join(type.getName(), "$bundle", null, null, null), true, type.getClassLoader()).asSubclass(type); } catch (ClassNotFoundException e) { throw new IllegalArgumentException("Invalid bundle " + type + " (implementation not found)"); } final Field field; try { field = bundleClass.getField("INSTANCE"); } catch (NoSuchFieldException e) { throw new IllegalArgumentException("Bundle implementation " + bundleClass + " has no instance field"); } try { return type.cast(field.get(null)); } catch (IllegalAccessException e) { throw new IllegalArgumentException("Bundle implementation " + bundleClass + " could not be instantiated", e); } } }); }
[ "Get a message bundle of the given type.\n\n@param type the bundle type class\n\n@return the bundle" ]
[ "Remove duplicate Strings from the given array. Also sorts the array, as\nit uses a TreeSet.\n\n@param array the String array\n@return an array without duplicates, in natural sort order", "Set the name of the schema containing the Primavera tables.\n\n@param schema schema name.", "will trigger workers to cancel then wait for it to report back.", "Function to delete the specified store from Metadata store. This involves\n\n1. Remove entry from the ConfigurationStorageEngine for STORES.\n\n2. Update the metadata cache.\n\n3. Re-create the 'stores.xml' key\n\n@param storeName specifies name of the store to be deleted.", "Use this API to fetch wisite_binding resources of given names .", "Map originator type.\n\n@param originatorType the originator type\n@return the originator", "Emit an event object with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the event object\nclass given the listeners has the matching argument list.\n\nIf there is no parameter passed in, i.e. `args.length == 0`, then it will\nalso invoke all the {@link ActEventListener} bound to the event class.\n\nFor example, suppose we have the following Event defined:\n\n```java\npublic class UserActivityEvent extends ActEvent<User> {\npublic UserActivityEvent(User user) {super(user);}\n}\n```\n\nAnd we have the following event handler defined:\n\n```java\n{@literal @}OnEvent\npublic void logUserLogin(UserActivityEvent event, long timestamp) {...}\n\n{@literal @}OnEvent\npublic void checkDuplicateLoginAttempts(UserActivityEvent, Object... args) {...}\n\n{@literal @}OnEvent\npublic void foo(UserActivityEvent event) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(new UserActivityEvent(user), System.currentTimeMills());\n```\n\nThe `foo(UserActivityEvent)` will not invoked because:\n\n* The parameter list `(UserActivityEvent, long)` does not match the declared\nargument list `(UserActivityEvent)`. Here the `String` in the parameter\nlist is taken out because it is used to indicate the event, instead of being\npassing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(UserActivityEvent, Object ...)` will\nbe invoked because it declares a varargs typed arguments, meaning it matches\nany parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener", "Get a string property, or, if no such property is defined, return\nthe given default value\n\n@param props the properties\n@param name the key in the properties\n@param defaultValue the default value if the key not exists\n@return value in the props or defaultValue while name not exist", "Loads a classifier from the file specified. If the file's name ends in .gz,\nuses a GZIPInputStream, else uses a regular FileInputStream. This method\ncloses the File when done.\n\n@param file\nLoads a classifier from this file.\n@param props\nProperties in this object will be used to overwrite those\nspecified in the serialized classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data" ]
private String escapeString(String value) { m_buffer.setLength(0); m_buffer.append('"'); for (int index = 0; index < value.length(); index++) { char c = value.charAt(index); switch (c) { case '"': { m_buffer.append("\\\""); break; } case '\\': { m_buffer.append("\\\\"); break; } case '/': { m_buffer.append("\\/"); break; } case '\b': { m_buffer.append("\\b"); break; } case '\f': { m_buffer.append("\\f"); break; } case '\n': { m_buffer.append("\\n"); break; } case '\r': { m_buffer.append("\\r"); break; } case '\t': { m_buffer.append("\\t"); break; } default: { // Append if it's not a control character (0x00 to 0x1f) if (c > 0x1f) { m_buffer.append(c); } break; } } } m_buffer.append('"'); return m_buffer.toString(); }
[ "Escape text to ensure valid JSON.\n\n@param value value\n@return escaped value" ]
[ "Helper to read an optional String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML, or <code>null</code> if the value could not be read.", "Writes triples to determine the statements with the highest rank.", "Injects bound fields\n\n@param instance The instance to inject into", "Convert Collection to Set\n@param collection Collection\n@return Set", "Returns a client model from a ResultSet\n\n@param result resultset containing client information\n@return Client or null\n@throws Exception exception", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails", "Use this API to expire cacheobject resources.", "Deletes the metadata on this folder associated with a specified scope and template.\n\n@param templateName the metadata template type name.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").", "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary" ]
public Axis getOrientationAxis() { final Axis axis; switch(getOrientation()) { case HORIZONTAL: axis = Axis.X; break; case VERTICAL: axis = Axis.Y; break; case STACK: axis = Axis.Z; break; default: Log.w(TAG, "Unsupported orientation %s", mOrientation); axis = Axis.X; break; } return axis; }
[ "Get the axis along the orientation\n@return" ]
[ "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", "Extracts the zip file to the output folder\n\n@param zipFile ZIP File to extract\n@param outputFolder Output Folder\n@return A Collection with the extracted files\n@throws IOException I/O Error", "Generate a unique ID across the cluster\n@return generated ID", "Pseudo-Inverse of a matrix calculated in the least square sense.\n\n@param matrix The given matrix A.\n@return pseudoInverse The pseudo-inverse matrix P, such that A*P*A = A and P*A*P = P", "Throws an exception if the current thread is not a GL thread.\n\n@since 1.6.5", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance", "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Get a View that displays the data at the specified\nposition in the data set.\n\n@param position Position of the item whose data we want\n@param convertView View to recycle, if not null\n@param parent ViewGroup containing the returned View", "Issue the database statements to create the table associated with a class.\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be created.\n@return The number of statements executed to do so." ]
public void loadModel(GVRAndroidResource avatarResource, String attachBone) { EnumSet<GVRImportSettings> settings = GVRImportSettings.getRecommendedSettingsWith(EnumSet.of(GVRImportSettings.OPTIMIZE_GRAPH, GVRImportSettings.NO_ANIMATION)); GVRContext ctx = mAvatarRoot.getGVRContext(); GVRResourceVolume volume = new GVRResourceVolume(ctx, avatarResource); GVRSceneObject modelRoot = new GVRSceneObject(ctx); GVRSceneObject boneObject; int boneIndex; if (mSkeleton == null) { throw new IllegalArgumentException("Cannot attach model to avatar - there is no skeleton"); } boneIndex = mSkeleton.getBoneIndex(attachBone); if (boneIndex < 0) { throw new IllegalArgumentException(attachBone + " is not a bone in the avatar skeleton"); } boneObject = mSkeleton.getBone(boneIndex); if (boneObject == null) { throw new IllegalArgumentException(attachBone + " does not have a bone object in the avatar skeleton"); } boneObject.addChildObject(modelRoot); ctx.getAssetLoader().loadModel(volume, modelRoot, settings, false, mLoadModelHandler); }
[ "Load a model to attach to the avatar\n@param avatarResource resource with avatar model\n@param attachBone name of bone to attach model to" ]
[ "Log a message at the provided level.", "Register the given mbean with the platform mbean server\n\n@param mbean The mbean to register\n@param name The name to register under", "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type", "Remove a management request handler factory from this context.\n\n@param instance the request handler factory\n@return {@code true} if the instance was removed, {@code false} otherwise", "Returns a new AWT BufferedImage from this image.\n\n@param type the type of buffered image to create, if not specified then defaults to the current image type\n@return a new, non-shared, BufferedImage with the same data as this Image.", "Append the text at the end of the Path.\n\n@param self a Path\n@param text the text to append at the end of the Path\n@throws java.io.IOException if an IOException occurs.\n@since 2.3.0", "Removes the given row.\n\n@param row the row to remove", "callers of doLogin should be serialized before calling in.", "Called when app's singleton registry has been initialized" ]
private Integer highlanderMode(JobDef jd, DbConn cnx) { if (!jd.isHighlander()) { return null; } try { Integer existing = cnx.runSelectSingle("ji_select_existing_highlander", Integer.class, jd.getId()); return existing; } catch (NoResultException ex) { // Just continue, this means no existing waiting JI in queue. } // Now we need to actually synchronize through the database to avoid double posting // TODO: use a dedicated table, not the JobDef one. Will avoid locking the configuration. ResultSet rs = cnx.runSelect(true, "jd_select_by_id", jd.getId()); // Now we have a lock, just retry - some other client may have created a job instance recently. try { Integer existing = cnx.runSelectSingle("ji_select_existing_highlander", Integer.class, jd.getId()); rs.close(); cnx.commit(); // Do not keep the lock! return existing; } catch (NoResultException ex) { // Just continue, this means no existing waiting JI in queue. We keep the lock! } catch (SQLException e) { // Who cares. jqmlogger.warn("Issue when closing a ResultSet. Transaction or session leak is possible.", e); } jqmlogger.trace("Highlander mode analysis is done: nor existing JO, must create a new one. Lock is hold."); return null; }
[ "Helper. Current transaction is committed in some cases." ]
[ "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", "Use this API to fetch all the nsacl6 resources that are configured on netscaler.", "See page 385 of Fundamentals of Matrix Computations 2nd", "Send a request that expects a single message as its response, then read and return that response.\n\n@param requestType identifies what kind of request to send\n@param responseType identifies the type of response we expect, or {@code null} if we’ll accept anything\n@param arguments The argument fields to send in the request\n\n@return the response from the player\n\n@throws IOException if there is a communication problem, or if the response does not have the same transaction\nID as the request.", "Stops all servers.\n\n{@inheritDoc}", "This method is called to ensure that after a project file has been\nread, the cached unique ID values used to generate new unique IDs\nstart after the end of the existing set of unique IDs.", "Use this API to fetch all the systemsession resources that are configured on netscaler.", "Constructs a Google APIs HTTP client with the associated credentials.", "Retrieve a specific row by index number, creating a blank row if this row does not exist.\n\n@param index index number\n@return MapRow instance" ]
private String getSignature(String sharedSecret, Map<String, String> params) { StringBuffer buffer = new StringBuffer(); buffer.append(sharedSecret); for (Map.Entry<String, String> entry : params.entrySet()) { buffer.append(entry.getKey()); buffer.append(entry.getValue()); } try { MessageDigest md = MessageDigest.getInstance("MD5"); return ByteUtilities.toHexString(md.digest(buffer.toString().getBytes("UTF-8"))); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } catch (UnsupportedEncodingException u) { throw new RuntimeException(u); } }
[ "Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String" ]
[ "Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)", "For creating expression columns\n@return", "Walk project references recursively, adding thrift files to the provided list.", "Byte run automaton map.\n\n@param automatonMap the automaton map\n@return the map", "The normalized string returned by this method is consistent with java.net.Inet6address.\nIPs are not compressed nor mixed in this representation.", "Returns a new color with a new value of the specified HSL\ncomponent.", "Polls the next ParsedWord from the stack.\n\n@return next ParsedWord", "Check that all nodes in the new cluster have a corresponding entry in\nstoreRepository and innerStores. add a NodeStore if not present, is\nneeded as with rebalancing we can add new nodes on the fly.", "Deletes this collaboration whitelist." ]
public static cmppolicylabel_stats[] get(nitro_service service) throws Exception{ cmppolicylabel_stats obj = new cmppolicylabel_stats(); cmppolicylabel_stats[] response = (cmppolicylabel_stats[])obj.stat_resources(service); return response; }
[ "Use this API to fetch the statistics of all cmppolicylabel_stats resources that are configured on netscaler." ]
[ "Return the factor loading for a given time and a given component.\n\nThe factor loading is the vector <i>f<sub>i</sub></i> such that the scalar product <br>\n<i>f<sub>j</sub>f<sub>k</sub> = f<sub>j,1</sub>f<sub>k,1</sub> + ... + f<sub>j,m</sub>f<sub>k,m</sub></i> <br>\nis the instantaneous covariance of the component <i>j</i> and <i>k</i>.\n\nWith respect to simulation time <i>t</i>, this method uses a piece wise constant interpolation, i.e.,\nit calculates <i>t_<sub>i</sub></i> such that <i>t_<sub>i</sub></i> is the largest point in <code>getTimeDiscretization</code>\nsuch that <i>t_<sub>i</sub> &le; t </i>.\n\nThe component here, it given via a double <i>T</i> which may be associated with the LIBOR fixing date.\nWith respect to component time <i>T</i>, this method uses a piece wise constant interpolation, i.e.,\nit calculates <i>T_<sub>j</sub></i> such that <i>T_<sub>j</sub></i> is the largest point in <code>getTimeDiscretization</code>\nsuch that <i>T_<sub>j</sub> &le; T </i>.\n\n@param time The time <i>t</i> at which factor loading is requested.\n@param component The component time (as a double associated with the fixing of the forward rate) <i>T<sub>i</sub></i>.\n@param realizationAtTimeIndex The realization of the stochastic process (may be used to implement local volatility/covariance/correlation models).\n@return The factor loading <i>f<sub>i</sub>(t)</i>.", "At the moment we only support the case where one entity type is returned", "Get the vector of regression coefficients.\n\n@param value The random variable to regress.\n@return The vector of regression coefficients.", "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "Checks that the targetClass is widening the argument class\n\n@param argumentClass\n@param targetClass\n@return", "Takes an object and converts it to a string.\n\n@param mapper the object mapper\n@param object the object to convert\n@return json string", "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registration completes/fails.", "See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range or false if not", "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." ]
public ConnectionInfo getConnection(String name) { final URI uri = uriWithPath("./connections/" + encodePathSegment(name)); return this.rt.getForObject(uri, ConnectionInfo.class); }
[ "Retrieves state and metrics information for individual client connection.\n\n@param name connection name\n@return connection information" ]
[ "Checks if the specified max levels is correct.\n\n@param userMaxLevels the maximum number of levels in the tree\n@param defaultMaxLevels the default max number of levels\n@return the validated max levels", "Adds a module to the modules that should be exported.\nIf called at least once, the explicitly added modules will be exported\ninstead of the default modules.\n\n@param moduleName the name of the module to export.", "Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy", "Starts recursive delete on all delete objects object graph", "Sets the value for the API's \"languages\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Generate and return the list of statements to drop a database table.", "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", "Sets the baseline start text value.\n\n@param baselineNumber baseline number\n@param value baseline start text value", "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." ]
public Boolean invoke(File pomFile, VirtualChannel channel) throws IOException, InterruptedException { org.jfrog.build.extractor.maven.reader.ModuleName current = new org.jfrog.build.extractor.maven.reader.ModuleName( currentModule.groupId, currentModule.artifactId); Map<org.jfrog.build.extractor.maven.reader.ModuleName, String> modules = Maps.newLinkedHashMap(); for (Map.Entry<ModuleName, String> entry : versionsByModule.entrySet()) { modules.put(new org.jfrog.build.extractor.maven.reader.ModuleName( entry.getKey().groupId, entry.getKey().artifactId), entry.getValue()); } org.jfrog.build.extractor.maven.transformer.PomTransformer transformer = new org.jfrog.build.extractor.maven.transformer.PomTransformer(current, modules, scmUrl, failOnSnapshot); return transformer.transform(pomFile); }
[ "Performs the transformation.\n\n@return True if the file was modified." ]
[ "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs", "the applications main loop.", "Process any StepEvent. You can change last added to stepStorage\nstep using this method.\n\n@param event to process", "Specifies the object id associated with a user assigned managed service identity\nresource that should be used to retrieve the access token.\n\n@param objectId Object ID of the identity to use when authenticating to Azure AD.\n@return MSICredentials", "Send get request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws URISyntaxException the uri syntax exception\n@throws IOException the io exception", "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name", "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo", "Use this API to delete dnsaaaarec resources of given names.", "Log a warning for the given operation at the provided address for the given attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param operation where which problem occurred\n@param message custom error message to append\n@param attribute attribute we that has problem" ]
public ItemRequest<Task> dependents(String task) { String path = String.format("/tasks/%s/dependents", task); return new ItemRequest<Task>(this, Task.class, path, "GET"); }
[ "Returns the compact representations of all of the dependents of a task.\n\n@param task The task to get dependents on.\n@return Request object" ]
[ "Read the given number of bytes into a long\n\n@param bytes The byte array to read from\n@param offset The offset at which to begin reading\n@param numBytes The number of bytes to read\n@return The long value read", "Retrieve a single field value.\n\n@param id parent entity ID\n@param type field type\n@param fixedData fixed data block\n@param varData var data block\n@return field value", "add a foreign key field ID", "Adds a redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@param srcUrl\n@param destUrl\n@param hostHeader\n@return\n@throws Exception", "Parses the result and returns the failure description. If the result was successful, an empty string is\nreturned.\n\n@param result the result of executing an operation\n\n@return the failure message or an empty string", "Add an addon to the 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 #listAllAddons} to get a list of addons that can be used.\n@return The request object", "Reads the text files in the given directory and puts their content\nin the given map after compressing it. Note that this method does not\ntraverse recursivly into sub-directories.\n\n@param dir The directory to process\n@param results Map that will receive the contents (indexed by the relative filenames)\n@throws IOException If an error ocurred", "Returns an MBeanServer with the specified name\n\n@param name\n@return", "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" ]
public final void reset() { for (int i = 0; i < permutationIndices.length; i++) { permutationIndices[i] = i; } remainingPermutations = totalPermutations; }
[ "Resets the generator state." ]
[ "Adds all fields declared in the object's class and its superclasses to the output.\n@return this", "Returns a UTMDetail object which consists of UTM parameters like source, medium & campaign\n@return The {@link UTMDetail} object", "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.", "Read an exception day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT exception day", "prefix the this class fk columns with the indirection table", "Test to determine if this is a split task.\n\n@param calendar current calendar\n@param list timephased resource assignment list\n@return boolean flag", "Returns the adapter position of the Child associated with this ChildViewHolder\n\n@return The adapter position of the Child if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled.", "Formats event output by key, usually equal to the method name.\n\n@param key the event key\n@param defaultPattern the default pattern to return if a custom pattern\nis not found\n@param args the args used to format output\n@return A formatted event output", "Sets the the time of day\n\n@param hours the hours to set. Must be guaranteed to parse as an\ninteger between 0 and 23\n\n@param minutes the minutes to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param seconds the optional seconds to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param amPm the meridian indicator to use. Must be either 'am' or 'pm'\n\n@param zoneString the time zone to use in one of two formats:\n- zoneinfo format (America/New_York, America/Los_Angeles, etc)\n- GMT offset (+05:00, -0500, +5, etc)" ]
public Duration getWork(FastTrackField type) { Double value = (Double) getObject(type); return value == null ? null : Duration.getInstance(value.doubleValue(), m_table.getWorkTimeUnit()); }
[ "Retrieve a work field.\n\n@param type field type\n@return Duration instance" ]
[ "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Returns the name of the current member which is the name in the case of a field, or the property name for an\naccessor method.\n\n@return The member name\n@exception XDocletException if an error occurs", "Returns the index of the median of the three indexed chars.", "Wrap getOperationStatus to avoid throwing exception over JMX", "Finish configuration.", "If a policy already exists on a folder, this will apply that policy to all existing files and sub folders within\nthe target folder.\n\n@param conflictResolution the desired behavior for conflict-resolution. Set to either none or overwrite.", "Prepare a parallel HTTP PUT 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", "Returns a list ordered from the highest priority to the lowest.", "Get the current stack trace element, skipping anything from known logging classes.\n@return The current stack trace for this thread" ]
public boolean mapsCell(String cell) { return mappedCells.stream().anyMatch(x -> x.equals(cell)); }
[ "Returns if this maps the specified cell.\n\n@param cell the cell name\n@return {@code true} if this maps the column, {@code false} otherwise" ]
[ "If status is in failed state then throw CloudException.", "Check if number is valid\n\n@return boolean", "Gets the boxed type of a class\n\n@param type The type\n@return The boxed type", "Handle value change event on the individual dates list.\n@param event the change event.", "Handles incoming Application Update Request.\n@param incomingMessage the request message to process.", "Creates an upload session to create a new version of a file in chunks.\nThis will first verify that the version can be created and then open a session for uploading pieces of the file.\n@param fileSize the size of the file that will be uploaded.\n@return the created upload session instance.", "Use this API to export appfwlearningdata.", "Invoke an HTTP GET request on a remote host. You must close the InputStream after you are done with.\n\n@param path The request path\n@param parameters The parameters (collection of Parameter objects)\n@return The Response", "Finds and returns the date for the given event summary and year within the given ics file,\nor null if not present." ]
public static Trajectory resample(Trajectory t, int n){ Trajectory t1 = new Trajectory(2); for(int i = 0; i < t.size(); i=i+n){ t1.add(t.get(i)); } return t1; }
[ "Resamples a trajectory\n@param t Trajectory to resample\n@param n Resample rate\n@return Returns a resampled trajectory which contains every n'th position of t" ]
[ "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement the packet which reported the device’s disappearance", "Get the column name from the indirection table.\n@param mnAlias\n@param path", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "The entity instance is already in the session cache\n\nCopied from Loader#instanceAlreadyLoaded", "Removes CRs but returns LFs", "Create a host target.\n\n@param hostName the host name\n@param client the connected controller client to the master host.\n@return the remote target", "Adds the value to the Collection mapped to by the key.", "Retrieve the state object associated with the specified interceptor instance and property\nname on this request context.\n\n@param interceptor the interceptor instance\n@param stateName the name key that the state object was stored under\n@param stateType class of the type the stored state should be returned as\n@param <T> the type the stored state should be returned as\n@return the stored state object\n@see #setState(HttpConnectionInterceptor, String, Object)\n@since 2.6.0", "This method writes resource data to a JSON file." ]
public double[] getMaturities(double moneyness) { int[] maturitiesInMonths = getMaturities(convertMoneyness(moneyness)); double[] maturities = new double[maturitiesInMonths.length]; for(int index = 0; index < maturities.length; index++) { maturities[index] = convertMaturity(maturitiesInMonths[index]); } return maturities; }
[ "Return all valid maturities for a given moneyness.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@return The maturities as year fraction from reference date." ]
[ "Multiplies all positions with a factor v\n@param v Multiplication factor", "Gets the Kumar-Johnson divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kumar-Johnson divergence between p and q.", "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited", "Convert an Object to a DateTime, without an Exception", "Log a warning for the resource at the provided address and a single attribute. The detail message is a default\n'Attributes are not understood in the target model version and this resource will need to be ignored on the target host.'\n\n@param address where warning occurred\n@param attribute attribute we are warning about", "Use this API to fetch all the responderparam resources that are configured on netscaler.", "Use this API to fetch all the nslimitselector resources that are configured on netscaler.", "Get the names of the paths that would apply to the request\n\n@param requestUrl URL of the request\n@param requestType Type of the request: GET, POST, PUT, or DELETE as integer\n@return JSONArray of path names\n@throws Exception", "Hide multiple channels. All other channels will be unaffected.\n@param channels The channels to hide" ]
public <T> InternalEjbDescriptor<T> get(String beanName) { return cast(ejbByName.get(beanName)); }
[ "Gets an iterator to the EJB descriptors for an EJB implementation class\n\n@param beanClass The EJB class\n@return An iterator" ]
[ "Calculate the child size along the axis and measure the offset inside the\nlayout container\n@param dataIndex of child in Container\n@return true item fits the container, false - otherwise", "return the squared area of the triangle defined by the half edge hedge0\nand the point at the head of hedge1.\n\n@param hedge0\n@param hedge1\n@return", "For creating expression columns\n@return", "Gets a SerialMessage with the SENSOR_ALARM_GET command\n@return the serial message", "Adds JAXB WSDL extensions to allow work with custom\nWSDL elements such as \\\"partner-link\\\"\n\n@param bus CXF bus", "Removes a watermark from the item.\nIf the item did not have a watermark applied to it, a 404 Not Found will be returned by API.\n@param itemUrl url template for the item.", "Get http response", "returns controller if a new device is found", "Loads all localizations not already loaded.\n@throws CmsException thrown if locking a file fails.\n@throws UnsupportedEncodingException thrown if reading a file fails.\n@throws IOException thrown if reading a file fails." ]
public long indexOf(final String element) { return doWithJedis(new JedisCallable<Long>() { @Override public Long call(Jedis jedis) { return doIndexOf(jedis, element); } }); }
[ "Find the index of the first matching element in the list\n@param element the element value to find\n@return the index of the first matching element, or <code>-1</code> if none found" ]
[ "Creates an empty block style definition.\n@return", "Read a nested table whose contents we don't understand.\n\n@param rowSize fixed row size\n@param rowMagicNumber row magic number\n@return table rows", "Only meant to be called once\n\n@throws Exception exception", "Calls all initializers of the bean\n\n@param instance The bean instance", "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", "Str map to str.\n\n@param map\nthe map\n@return the string", "Sets the alias. By default the entire attribute path participates in the alias\n@param alias The name of the alias to set", "This function returns the first external IP address encountered\n\n@return IP address or null\n@throws Exception", "Write the text to the File, using the specified encoding.\n\n@param file a File\n@param text the text to write to the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0" ]
public void addExportedPackages(String... exportedPackages) { String oldBundles = mainAttributes.get(EXPORT_PACKAGE); if (oldBundles == null) oldBundles = ""; BundleList oldResultList = BundleList.fromInput(oldBundles, newline); BundleList resultList = BundleList.fromInput(oldBundles, newline); for (String bundle : exportedPackages) resultList.mergeInto(Bundle.fromInput(bundle)); String result = resultList.toString(); boolean changed = !oldResultList.toString().equals(result); modified |= changed; if (changed) mainAttributes.put(EXPORT_PACKAGE, result); }
[ "Add the list with given bundles to the \"Export-Package\" main attribute.\n\n@param exportedPackages The list of all packages to add." ]
[ "Translates the Fluo row, column, and value set into the persistent format that is stored in\nAccumulo.\n\n<p>\nThe objects returned by this method are reused each time its called. So each time this is\ncalled it invalidates what was returned by previous calls to this method.\n\n@return A an array of Accumulo key values in correct sorted order.", "Use this API to fetch servicegroup_lbmonitor_binding resources of given name .", "Update the default time unit for durations based on data read from the file.\n\n@param column column data", "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails.", "Extract day type definitions.\n\n@param types Synchro day type rows\n@return Map of day types by UUID", "Checks the orderby attribute.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for orderby is invalid (unknown field or ordering)", "Cancel all currently active operations.\n\n@return a list of cancelled operations", "Returns the organization of a given module\n\n@return Organization", "2-D Forward Discrete Hartley Transform.\n\n@param data Data." ]
public static double ratioSmallestOverLargest( double []sv ) { if( sv.length == 0 ) return Double.NaN; double min = sv[0]; double max = min; for (int i = 1; i < sv.length; i++) { double v = sv[i]; if( v > max ) max = v; else if( v < min ) min = v; } return min/max; }
[ "Computes the ratio of the smallest value to the largest. Does not assume\nthe array is sorted first\n@param sv array\n@return smallest / largest" ]
[ "Sets the whole day flag.\n@param isWholeDay flag, indicating if the event lasts whole days.", "Use this API to Reboot reboot.", "Use this API to fetch a rewriteglobal_binding resource .", "Get a property as a int or null.\n\n@param key the property name", "Get a list of destinations and the values matching templated parameter for the given path.\nReturns an empty list when there are no destinations that are matched.\n\n@param path path to be routed.\n@return List of Destinations matching the given route.", "Encodes the given URI fragment with the given encoding.\n@param fragment the fragment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded fragment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Constructs a string representing this address according to the given parameters\n\n@param keepMixed if this address was constructed from a string with mixed representation (a:b:c:d:e:f:1.2.3.4), whether to keep it that way (ignored if makeMixed is true in the params argument)\n@param params the parameters for the address string", "Check that an array only contains null elements.\n@param values, can't be null\n@return", "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}." ]
@PostConstruct protected void postConstruct() { if (null == authenticationServices) { authenticationServices = new ArrayList<AuthenticationService>(); } if (!excludeDefault) { authenticationServices.add(staticAuthenticationService); } }
[ "Finish initialization of the configuration." ]
[ "Given the byte buffer containing album art, build an actual image from it for easy rendering.\n\n@return the newly-created image, ready to be drawn", "Return the \"common\" configuration set name. By default it is \"common\"\n@return the \"common\" conf set name", "Add server redirect to a profile\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@param groupId group ID\n@return ID of added ServerRedirect\n@throws Exception exception", "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "Set the name to be used in announcing our presence on the network. The name can be no longer than twenty\nbytes, and should be normal ASCII, no Unicode.\n\n@param name the device name to report in our presence announcement packets.", "Access all of the elements of the collection that evaluate to true for the\nprovided query predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tAn iterator used to iterate over the elements that evaluated true for the predicate.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Convert a given date to a floating point date using a given reference date.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param date The given date to be associated with the return value \\( T \\).\n@return The value T measuring the distance of reference date and date by ACT/365 with SECONDS_PER_DAY seconds used as the smallest time unit and SECONDS_PER_DAY is a constant 365*24*60*60.", "Generate a placeholder for an unknown type.\n\n@param type expected type\n@param fieldID field ID\n@return placeholder", "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." ]
private String parseEnvelope() { List<String> response = new ArrayList<>(); //1. Date --------------- response.add(LB + Q + sentDateEnvelopeString + Q + SP); //2. Subject --------------- if (subject != null && (subject.length() != 0)) { response.add(Q + escapeHeader(subject) + Q + SP); } else { response.add(NIL + SP); } //3. From --------------- addAddressToEnvelopeIfAvailable(from, response); response.add(SP); //4. Sender --------------- addAddressToEnvelopeIfAvailableWithNetscapeFeature(sender, response); response.add(SP); addAddressToEnvelopeIfAvailableWithNetscapeFeature(replyTo, response); response.add(SP); addAddressToEnvelopeIfAvailable(to, response); response.add(SP); addAddressToEnvelopeIfAvailable(cc, response); response.add(SP); addAddressToEnvelopeIfAvailable(bcc, response); response.add(SP); if (inReplyTo != null && inReplyTo.length > 0) { response.add(inReplyTo[0]); } else { response.add(NIL); } response.add(SP); if (messageID != null && messageID.length > 0) { messageID[0] = escapeHeader(messageID[0]); response.add(Q + messageID[0] + Q); } else { response.add(NIL); } response.add(RB); StringBuilder buf = new StringBuilder(16 * response.size()); for (String aResponse : response) { buf.append(aResponse); } return buf.toString(); }
[ "Builds IMAP envelope String from pre-parsed data." ]
[ "Use this API to fetch statistics of scpolicy_stats resource of given name .", "Determines the offset code of a forward contract from a schedule. Rounds the average period length to full months.\n\n@param schedule The schedule.\n@return The offset code as String", "gets the first non annotation line number of a node, taking into account annotations.", "Find a node in the tree. The node must be \"visible\" to be found.\n@param address The full address of the node matching ManagementModelNode.addressPath()\n@return The node, or null if not found.", "The handling method.", "Check whether we have diverged from what we would predict from the last update that was sent to a particular\ntrack position listener.\n\n@param lastUpdate the last update that was sent to the listener\n@param currentUpdate the latest update available for the same player\n\n@return {@code true }if the listener will have diverged by more than our permitted amount of slack, and so\nshould be updated", "Encodes the given URI fragment with the given encoding.\n@param fragment the fragment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded fragment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Performs a standard bidiagonal decomposition just on the outer blocks of the provided matrix\n\n@param blockLength\n@param A\n@param gammasU", "Opens file for editing.\n\n@param currentChangeListId The current change list id to open the file for editing at\n@param filePath The filePath which contains the file we need to edit\n@throws IOException Thrown in case of perforce communication errors\n@throws InterruptedException" ]
private void remove(String directoryName) { if ((directoryName == null) || (conn == null)) return; String key = S3Util.sanitize(directoryName) + "/" + S3Util.sanitize(DC_FILE_NAME); try { Map headers = new TreeMap(); headers.put("Content-Type", Arrays.asList("text/plain")); if (usingPreSignedUrls()) { conn.delete(pre_signed_delete_url).connection.getResponseMessage(); } else { conn.delete(location, key, headers).connection.getResponseMessage(); } } catch(Exception e) { ROOT_LOGGER.cannotRemoveS3File(e); } }
[ "Remove the S3 file that contains the domain controller data.\n\n@param directoryName the name of the directory that contains the S3 file" ]
[ "This method extracts calendar data from a Phoenix file.\n\n@param phoenixProject Root node of the Phoenix file", "Stops all servers linked with the current camel context\n\n@param camelContext", "Returns the smallest prefix length possible such that this address division grouping includes the block of addresses for that prefix.\n\n@return the prefix length", "Parses a record containing hours and add them to a container.\n\n@param ranges hours container\n@param hoursRecord hours record", "Returns an array of all declared fields in the given class and all\nsuper-classes.", "Use this API to fetch auditsyslogpolicy_vpnglobal_binding resources of given name .", "Sets the number of views for this Photo. For un-authenticated calls this value is not available and will be set to -1.\n\n@param views\n@deprecated attribute no longer available", "Get all the names of inputs that are required to be in the Values object when this graph is executed.", "Helper method to find Strings of form \"all digits\" and \"digits-comma-digits\"" ]
public SwaptionDataLattice append(SwaptionDataLattice other, AnalyticModel model) { SwaptionDataLattice combined = new SwaptionDataLattice(referenceDate, quotingConvention, displacement, forwardCurveName, discountCurveName, floatMetaSchedule, fixMetaSchedule); combined.entryMap.putAll(entryMap); if(quotingConvention == other.quotingConvention && displacement == other.displacement) { combined.entryMap.putAll(other.entryMap); } else { SwaptionDataLattice converted = other.convertLattice(quotingConvention, displacement, model); combined.entryMap.putAll(converted.entryMap); } return combined; }
[ "Append the data of another lattice to this lattice. If the other lattice follows a different quoting convention, it is automatically converted.\nHowever, this method does not check, whether the two lattices are aligned in terms of reference date, curve names and meta schedules.\nIf the two lattices have shared data points, the data from this lattice will be overwritten.\n\n@param other The lattice containing the data to be appended.\n@param model The model to use for context, in case the other lattice follows a different convention.\n\n@return The lattice with the combined swaption entries." ]
[ "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait.", "Gets the bytes for the highest address in the range represented by this address.\n\n@return", "Utility function that fetches system store definitions\n\n@return The map container that maps store names to store definitions", "Deletes the first element from the receiver that matches the specified element.\nDoes nothing, if no such matching element is contained.\n\nTests elements for equality or identity as specified by <tt>testForEquality</tt>.\nWhen testing for equality, two elements <tt>e1</tt> and\n<tt>e2</tt> are <i>equal</i> if <tt>(e1==null ? e2==null :\ne1.equals(e2))</tt>.)\n\n@param testForEquality if true -> tests for equality, otherwise for identity.\n@param element the element to be deleted.", "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", "Read a nested table whose contents we don't understand.\n\n@param rowSize fixed row size\n@param rowMagicNumber row magic number\n@return table rows", "Adds an additional interface that the proxy should implement. The default\nimplementation will be to forward invocations to the bean instance.\n\n@param newInterface an interface", "Returns all migrations starting from and excluding the given version. Usually you want to provide the version of\nthe database here to get all migrations that need to be executed. In case there is no script with a newer\nversion than the one given, an empty list is returned.\n\n@param version the version that is currently in the database\n@return all versions since the given version or an empty list if no newer script is available. Never null.\nDoes not include the given version.", "Replaces current Collection mapped to key with the specified Collection.\nUse carefully!" ]
public void unload() { if (mAudioListener != null) { Log.d("SOUND", "unloading audio source %d %s", getSourceId(), getSoundFile()); mAudioListener.getAudioEngine().unloadSoundFile(getSoundFile()); } mSoundFile = null; mSourceId = GvrAudioEngine.INVALID_ID; }
[ "Unloads the sound file for this source, if any." ]
[ "Get a collection of all of the user's groups.\n\n@return A Collection of Group objects\n@throws FlickrException", "Clean up the environment object for the given storage engine", "Use this API to add sslcertkey resources.", "Adds the absolute path to command.\n\n@param command the command to add the arguments to.\n@param typeName the type of directory.\n@param propertyName the name of the property.\n@param properties the properties where the path may already be defined.\n@param directoryGrouping the directory group type.\n@param typeDir the domain level directory for the given directory type; to be used for by-type grouping\n@param serverDir the root directory for the server, to be used for 'by-server' grouping\n@return the absolute path that was added.", "Returns an java object read from the specified ResultSet column.", "Normalizes elements in 'u' by dividing by max and computes the norm2 of the normalized\narray u. Adjust the sign of the returned value depending on the size of the first\nelement in 'u'. Normalization is done to avoid overflow.\n\n<pre>\nfor i=j:numRows\nu[i] = u[i] / max\ntau = tau + u[i]*u[i]\nend\ntau = sqrt(tau)\nif( u[j] &lt; 0 )\ntau = -tau;\n</pre>\n\n@param j Element in 'u' that it starts at.\n@param numRows Element in 'u' that it stops at.\n@param u Array\n@param max Max value in 'u' that is used to normalize it.\n@return norm2 of 'u'", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Start with specifying the groupId", "Closes the HTTP client and recycles the resources associated. The threads will\nbe recycled after 60 seconds of inactivity." ]
public static Cluster balanceContiguousPartitionsPerZone(final Cluster nextCandidateCluster, final int maxContiguousPartitionsPerZone) { System.out.println("Balance number of contiguous partitions within a zone."); System.out.println("numPartitionsPerZone"); for(int zoneId: nextCandidateCluster.getZoneIds()) { System.out.println(zoneId + " : " + nextCandidateCluster.getNumberOfPartitionsInZone(zoneId)); } System.out.println("numNodesPerZone"); for(int zoneId: nextCandidateCluster.getZoneIds()) { System.out.println(zoneId + " : " + nextCandidateCluster.getNumberOfNodesInZone(zoneId)); } // Break up contiguous partitions within each zone HashMap<Integer, List<Integer>> partitionsToRemoveFromZone = Maps.newHashMap(); System.out.println("Contiguous partitions"); for(Integer zoneId: nextCandidateCluster.getZoneIds()) { System.out.println("\tZone: " + zoneId); Map<Integer, Integer> partitionToRunLength = PartitionBalanceUtils.getMapOfContiguousPartitions(nextCandidateCluster, zoneId); List<Integer> partitionsToRemoveFromThisZone = new ArrayList<Integer>(); for(Map.Entry<Integer, Integer> entry: partitionToRunLength.entrySet()) { if(entry.getValue() > maxContiguousPartitionsPerZone) { List<Integer> contiguousPartitions = new ArrayList<Integer>(entry.getValue()); for(int partitionId = entry.getKey(); partitionId < entry.getKey() + entry.getValue(); partitionId++) { contiguousPartitions.add(partitionId % nextCandidateCluster.getNumberOfPartitions()); } System.out.println("Contiguous partitions: " + contiguousPartitions); partitionsToRemoveFromThisZone.addAll(Utils.removeItemsToSplitListEvenly(contiguousPartitions, maxContiguousPartitionsPerZone)); } } partitionsToRemoveFromZone.put(zoneId, partitionsToRemoveFromThisZone); System.out.println("\t\tPartitions to remove: " + partitionsToRemoveFromThisZone); } Cluster returnCluster = Cluster.cloneCluster(nextCandidateCluster); Random r = new Random(); for(int zoneId: returnCluster.getZoneIds()) { for(int partitionId: partitionsToRemoveFromZone.get(zoneId)) { // Pick a random other zone Id List<Integer> otherZoneIds = new ArrayList<Integer>(); for(int otherZoneId: returnCluster.getZoneIds()) { if(otherZoneId != zoneId) { otherZoneIds.add(otherZoneId); } } int whichOtherZoneId = otherZoneIds.get(r.nextInt(otherZoneIds.size())); // Pick a random node from other zone ID int whichNodeOffset = r.nextInt(returnCluster.getNumberOfNodesInZone(whichOtherZoneId)); int whichNodeId = new ArrayList<Integer>(returnCluster.getNodeIdsInZone(whichOtherZoneId)).get(whichNodeOffset); // Steal partition from one zone to another! returnCluster = UpdateClusterUtils.createUpdatedCluster(returnCluster, whichNodeId, Lists.newArrayList(partitionId)); } } return returnCluster; }
[ "Ensures that no more than maxContiguousPartitionsPerZone partitions are\ncontiguous within a single zone.\n\nMoves the necessary partitions to break up contiguous runs from each zone\nto some other random zone/node. There is some chance that such random\nmoves could result in contiguous partitions in other zones.\n\n@param nextCandidateCluster cluster metadata\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return Return updated cluster metadata." ]
[ "Returns the orthogonal V matrix.\n\n@param V If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix.", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels.", "Reflection API to find the method corresponding to the default implementation of a trait, given a bridge method.\n@param someMethod a method node\n@return null if it is not a method implemented in a trait. If it is, returns the method from the trait class.", "Reads any exceptions present in the file. This is only used in MSPDI\nfile versions saved by Project 2007 and later.\n\n@param calendar XML calendar\n@param bc MPXJ calendar", "Populates currency settings.\n\n@param record MPX record\n@param properties project properties", "Use this API to update nslimitselector resources.", "Parses server section of Zookeeper connection string", "Create a smaller array from an existing one.\n\n@param strings an array containing element of type {@link String}\n@param begin the starting position of the sub-array\n@param length the number of element to consider\n@return a new array continaining only the selected elements", "Guess the date of the dump from the given dump file name.\n\n@param fileName\n@return 8-digit date stamp or YYYYMMDD if none was found" ]
private void populateTask(Row row, Task task) { task.setUniqueID(row.getInteger("Z_PK")); task.setName(row.getString("ZTITLE")); task.setPriority(Priority.getInstance(row.getInt("ZPRIORITY"))); task.setMilestone(row.getBoolean("ZISMILESTONE")); task.setActualFinish(row.getTimestamp("ZGIVENACTUALENDDATE_")); task.setActualStart(row.getTimestamp("ZGIVENACTUALSTARTDATE_")); task.setNotes(row.getString("ZOBJECTDESCRIPTION")); task.setDuration(row.getDuration("ZGIVENDURATION_")); task.setOvertimeWork(row.getWork("ZGIVENWORKOVERTIME_")); task.setWork(row.getWork("ZGIVENWORK_")); task.setLevelingDelay(row.getDuration("ZLEVELINGDELAY_")); task.setActualOvertimeWork(row.getWork("ZGIVENACTUALWORKOVERTIME_")); task.setActualWork(row.getWork("ZGIVENACTUALWORK_")); task.setRemainingWork(row.getWork("ZGIVENACTUALWORK_")); task.setGUID(row.getUUID("ZUNIQUEID")); Integer calendarID = row.getInteger("ZGIVENCALENDAR"); if (calendarID != null) { ProjectCalendar calendar = m_project.getCalendarByUniqueID(calendarID); if (calendar != null) { task.setCalendar(calendar); } } populateConstraints(row, task); // Percent complete is calculated bottom up from assignments and actual work vs. planned work m_eventManager.fireTaskReadEvent(task); }
[ "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance" ]
[ "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)", "Use this API to add ntpserver.", "Creates a sorted list that contains the items of the given iterable. The resulting list is in ascending order,\naccording to the natural ordering of the elements in the iterable.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List)\n@see #sort(Iterable, Comparator)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List)", "Installs the given set of URIs as the source level URIs. Does not copy the given\nset but uses it directly.", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Deletes this collaboration.", "Returns whether this is a valid address string format.\n\nThe accepted IP address formats are:\nan IPv4 address, an IPv6 address, a network prefix alone, the address representing all addresses of all types, or an empty string.\nIf this method returns false, and you want more details, call validate() and examine the thrown exception.\n\n@return whether this is a valid address string format", "Send a tempo changed announcement to all registered master listeners.\n\n@param tempo the new master tempo", "Return true only if the node has the named annotation\n@param node - the AST Node to check\n@param name - the name of the annotation\n@return true only if the node has the named annotation" ]
public static GVRSceneObject loadModel(final GVRContext gvrContext, final String modelFile) throws IOException { return loadModel(gvrContext, modelFile, new HashMap<String, Integer>()); }
[ "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails" ]
[ "generate a prepared DELETE-Statement according to query\n@param query the Query\n@param cld the ClassDescriptor", "Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.\n\n@param s a Penn TreeBank POS tag.", "Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\nmust be called first.", "Add the string representation of the given object to this sequence at the given index. The given indentation will\nbe prepended to each line except the first one if the object has a multi-line string representation.\n\n@param object\nthe to-be-appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.\n@param index\nthe index in the list of segments.", "Writes this IIMFile to writer.\n\n@param writer\nwriter to write to\n@throws IOException\nif file can't be written to", "Issue the database statements to drop the table associated with a dao.\n\n@param dao\nAssociated dao.\n@return The number of statements executed to do so.", "Internal initialization.\n@throws ParserConfigurationException", "Create a FreeMarkerOperation with the provided furnace instance template path, and varNames.\n\nThe variables in varNames will be provided to the template, and a new ReportModel will be created with these variables attached.", "Sets a request header with the given name and value. If a header with the\nspecified name has already been set then the new value overwrites the\ncurrent value.\n\n@param header the name of the header\n@param value the value of the header\n\n@throws NullPointerException if header or value are null\n@throws IllegalArgumentException if header or value are the empty string" ]
public static base_response update(nitro_service client, nsip6 resource) throws Exception { nsip6 updateresource = new nsip6(); updateresource.ipv6address = resource.ipv6address; updateresource.td = resource.td; updateresource.nd = resource.nd; updateresource.icmp = resource.icmp; updateresource.vserver = resource.vserver; updateresource.telnet = resource.telnet; updateresource.ftp = resource.ftp; updateresource.gui = resource.gui; updateresource.ssh = resource.ssh; updateresource.snmp = resource.snmp; updateresource.mgmtaccess = resource.mgmtaccess; updateresource.restrictaccess = resource.restrictaccess; updateresource.state = resource.state; updateresource.map = resource.map; updateresource.dynamicrouting = resource.dynamicrouting; updateresource.hostroute = resource.hostroute; updateresource.ip6hostrtgw = resource.ip6hostrtgw; updateresource.metric = resource.metric; updateresource.vserverrhilevel = resource.vserverrhilevel; updateresource.ospf6lsatype = resource.ospf6lsatype; updateresource.ospfarea = resource.ospfarea; return updateresource.update_resource(client); }
[ "Use this API to update nsip6." ]
[ "Parse duration time units.\n\nNote that we don't differentiate between confirmed and unconfirmed\ndurations. Unrecognised duration types are default the supplied default value.\n\n@param value BigInteger value\n@param defaultValue if value is null, use this value as the result\n@return Duration units", "Converts an object into a tab delimited string with given fields\nRequires the object has public access for the specified fields\n\n@param object Object to convert\n@param delimiter delimiter\n@param fieldNames fieldnames\n@return String representing object", "Read all task relationships from a GanttProject.\n\n@param gpProject GanttProject project", "Perform a module dependency graph of the target and return the graph as a JSON\n\n@param moduleName\n@param moduleVersion\n@param uriInfo\n@return Response", "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted.", "Get the element at the index as a json object.\n\n@param i the index of the object to access", "Find the current layout and extract the activity code order and visibility.\n\n@param phoenixProject phoenix project data", "Use this API to flush nssimpleacl.", "Close all JDBC objects related to this connection." ]
@Api public void setUrl(String url) throws LayerException { try { this.url = url; Map<String, Object> params = new HashMap<String, Object>(); params.put("url", url); DataStore store = DataStoreFactory.create(params); setDataStore(store); } catch (IOException ioe) { throw new LayerException(ioe, ExceptionCode.INVALID_SHAPE_FILE_URL, url); } }
[ "Set the url for the shape file.\n\n@param url shape file url\n@throws LayerException file cannot be accessed\n@since 1.7.1" ]
[ "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map", "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\nAdditionally, the methods also removes the returned images from the cache.\n@param buildInfoId\n@return", "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", "Log block data.\n\n@param blockIndex current block index\n@param startIndex start index\n@param blockLength length", "Releases a database connection, and cleans up any resources\nassociated with that connection.", "Closing will only skip to the end of this fixed length input stream and\nnot call the parent's close method.\n@throws IOException if an I/O error occurs while closing stream", "Obtain the class of a given className\n\n@param className\n@return\n@throws Exception", "Sets a default style for every element that doesn't have one\n\n@throws JRException", "Disconnects from the serial interface and stops\nsend and receive threads." ]
public static clusterinstance get(nitro_service service, Long clid) throws Exception{ clusterinstance obj = new clusterinstance(); obj.set_clid(clid); clusterinstance response = (clusterinstance) obj.get_resource(service); return response; }
[ "Use this API to fetch clusterinstance resource of given name ." ]
[ "Replaces sequences of whitespaces with tabs within a line.\n\n@param self A line to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Invoke an HTTP GET request on a remote host. You must close the InputStream after you are done with.\n\n@param path The request path\n@param parameters The parameters (collection of Parameter objects)\n@return The Response", "Reads a quoted string value from the request.", "Returns the primary message codewords for mode 3.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "Cause the container to be cleaned up, including all registered bean\nmanagers, and all deployment services", "Updates the indices in the index buffer from a Java IntBuffer.\nAll of the entries of the input int buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if int buffer is wrong size", "Put a spatial object in the cache and index it.\n\n@param key key for object\n@param object object itself\n@param envelope envelope for object", "Use this API to fetch all the spilloverpolicy resources that are configured on netscaler.", "Read exactly buffer.length bytes from the stream into the buffer\n\n@param stream The stream to read from\n@param buffer The buffer to read into" ]
public static void closeThrowSqlException(Closeable closeable, String label) throws SQLException { if (closeable != null) { try { closeable.close(); } catch (IOException e) { throw SqlExceptionUtil.create("could not close " + label, e); } } }
[ "Close it and ignore any exceptions." ]
[ "Create a new linear interpolated time discrete process by\nusing the time discretization of this process and the sum of this process and the given one\nas its values.\n\n@param process A given process.\n@return A new process representing the of this and the given process.\n@throws CalculationException Thrown if the given process fails to evaluate at a certain time point.", "Creates the stats type.\n\n@param statsItems\nthe stats items\n@param sortType\nthe sort type\n@param functionParser\nthe function parser\n@return the string", "Formats the supplied value using the specified DateTimeFormat.\n\n@return \"\" if the value is null", "Returns s if it's at most maxWidth chars, otherwise chops right side to fit.", "Use this API to delete systemuser of given name.", "Sets the number of views for this Photo. For un-authenticated calls this value is not available and will be set to -1.\n\n@param views\n@deprecated attribute no longer available", "Export the odo overrides setup and odo configuration\n\n@param oldExport Whether this is a backup from scratch or backing up because user will upload after (matches API)\n@return The odo configuration and overrides in JSON format, can be written to a file after", "Converts Observable of list to Observable of Inner.\n@param innerList list to be converted.\n@param <InnerT> type of inner.\n@return Observable for list of inner.", "So we will follow rfc 1035 and in addition allow the underscore." ]
public static onlinkipv6prefix[] get(nitro_service service) throws Exception{ onlinkipv6prefix obj = new onlinkipv6prefix(); onlinkipv6prefix[] response = (onlinkipv6prefix[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the onlinkipv6prefix resources that are configured on netscaler." ]
[ "Create a new instance of a single input function from an operator character\n@param op Which operation\n@param input Input variable\n@return Resulting operation", "Checks if maintenance mode is enabled for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@return true if maintenance mode is enabled", "Serialize a map of objects to a JSON String.\n\n@param map The map of objects to serialize.\n@param jsonObjectClass The @JsonObject class of the list elements", "Returns the address for the operation.\n\n@param op the operation\n\n@return the operation address or a new undefined model node", "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", "Adds position noise to the trajectories\n@param t\n@param sd\n@return trajectory with position noise", "Marks the start of a query identified by the provided correlationId\n\n@param query - Query data\n@param correlationId - Identifier\n@return Start event to pass to the Events systems EventBus", "Converts B and X into block matrices and calls the block matrix solve routine.\n\n@param B A matrix &real; <sup>m &times; p</sup>. Not modified.\n@param X A matrix &real; <sup>n &times; p</sup>, where the solution is written to. Modified.", "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value" ]
private String toSQLPattern(String attribute) { String pattern = attribute.replace("*", "%"); if (!pattern.startsWith("%")) { pattern = "%" + pattern; } if (!pattern.endsWith("%")) { pattern = pattern.concat("%"); } return pattern; }
[ "To sql pattern.\n\n@param attribute the attribute\n@return the string" ]
[ "Use this API to add sslcertkey.", "Computes the householder vector used in QR decomposition.\n\nu = x / max(x)\nu(0) = u(0) + |u|\nu = u / u(0)\n\n@param x Input vector. Unmodified.\n@return The found householder reflector vector", "Modifies the specified mode and length arrays to combine adjacent modes of the same type, returning the updated index point.", "A static method that provides an easy way to create a list of a\ncertain parametric type.\nThis static constructor works better with generics.\n\n@param list The list to pad\n@param padding The padding element (may be null)\n@return The padded list", "Use this API to fetch all the nsdiameter resources that are configured on netscaler.", "This method is called to alert project listeners to the fact that\na resource assignment has been read from a project file.\n\n@param resourceAssignment resourceAssignment instance", "Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data", "Returns details of a previously-requested Organization export.\n\n@param organizationExport Globally unique identifier for the Organization export.\n@return Request object", "Return overall per token accuracy" ]
public static base_responses add(nitro_service client, appfwjsoncontenttype resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwjsoncontenttype addresources[] = new appfwjsoncontenttype[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new appfwjsoncontenttype(); addresources[i].jsoncontenttypevalue = resources[i].jsoncontenttypevalue; addresources[i].isregex = resources[i].isregex; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add appfwjsoncontenttype resources." ]
[ "Loads the asset referenced by the file name\nunder the owner of this component.\nIf this component was constructed to replace the scene with\nthe asset, the scene will contain only the owner of this\ncomponent upon return. Otherwise, the loaded asset is a\nchild of this component's owner.\n\nLoading the asset is performed in a separate thread.\nThis function returns before the asset has finished loading.\nIAssetEvents are emitted to the event listener on the context.\n\n@param scene scene to add the model to, null is permissible\n@return always true", "Use this API to Import application.", "The indices space is ignored for reduce ops other than min or max.", "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value", "This essentially ensures that we only store a single Vertex for each unique \"Set\" of tags.", "Return the list of module dependencies\n\n@param moduleName\n@param moduleVersion\n@param fullRecursive\n@param corporate\n@param thirdParty\n@return List<Dependency>\n@throws GrapesCommunicationException", "Creates a remove operation.\n\n@param address the address for the operation\n@param recursive {@code true} if the remove should be recursive, otherwise {@code false}\n\n@return the operation", "Calculate the child size along the axis\n@param dataIndex data index\n@param axis {@link Axis}\n@return child size", "Returns the coupon payment of the period with the given index. The analytic model is needed in case of floating bonds.\n\n@param periodIndex The index of the period of interest.\n@param model The model under which the product is valued.\n@return The value of the coupon payment in the given period." ]
public static DMatrixRMaj extractColumn(DMatrixRMaj a , int column , DMatrixRMaj out ) { if( out == null) out = new DMatrixRMaj(a.numRows,1); else if( !MatrixFeatures_DDRM.isVector(out) || out.getNumElements() != a.numRows ) throw new MatrixDimensionException("Output must be a vector of length "+a.numRows); int index = column; for (int i = 0; i < a.numRows; i++, index += a.numCols ) { out.data[i] = a.data[index]; } return out; }
[ "Extracts the column from a matrix.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column." ]
[ "Send a request that expects a single message as its response, then read and return that response.\n\n@param requestType identifies what kind of request to send\n@param responseType identifies the type of response we expect, or {@code null} if we’ll accept anything\n@param arguments The argument fields to send in the request\n\n@return the response from the player\n\n@throws IOException if there is a communication problem, or if the response does not have the same transaction\nID as the request.", "Decode '%HH'.", "Copy the settings from another calendar to this calendar.\n\n@param cal calendar data source", "Use this API to fetch autoscaleprofile resource of given name .", "Tests that the area is valid geojson, the style ref is valid or null and the display is non-null.", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "Creates the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node", "Discard the changes.", "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception" ]
public static Date setTime(Date date, Date canonicalTime) { Date result; if (canonicalTime == null) { result = date; } else { // // The original naive implementation of this method generated // the "start of day" date (midnight) for the required day // then added the milliseconds from the canonical time // to move the time forward to the required point. Unfortunately // if the date we'e trying to do this for is the entry or // exit from DST, the result is wrong, hence I've switched to // the approach below. // Calendar cal = popCalendar(canonicalTime); int dayOffset = cal.get(Calendar.DAY_OF_YEAR) - 1; int hourOfDay = cal.get(Calendar.HOUR_OF_DAY); int minute = cal.get(Calendar.MINUTE); int second = cal.get(Calendar.SECOND); int millisecond = cal.get(Calendar.MILLISECOND); cal.setTime(date); if (dayOffset != 0) { // The canonical time can be +1 day. // It's to do with the way we've historically // managed time ranges and midnight. cal.add(Calendar.DAY_OF_YEAR, dayOffset); } cal.set(Calendar.MILLISECOND, millisecond); cal.set(Calendar.SECOND, second); cal.set(Calendar.MINUTE, minute); cal.set(Calendar.HOUR_OF_DAY, hourOfDay); result = cal.getTime(); pushCalendar(cal); } return result; }
[ "Given a date represented by a Date instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param date Date instance representing the date\n@param canonicalTime Date instance representing the time of day\n@return new Date instance with the required time set" ]
[ "Set work connection.\n\n@param db the db setup bean", "Gets the visibility cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value from the property value {@value #VISIBILITY_CACHE_WEIGHT}\nif it is set, else the value of the default value\n{@value #VISIBILITY_CACHE_WEIGHT_DEFAULT}", "Fetch JSON from RAW resource\n\n@param context Context\n@param resource Resource int of the RAW file\n@return JSON", "todo remove, here only for binary compatibility of elytron subsystem, drop once it is in.", "Adds a data source to the configuration. If in deduplication mode\ngroupno == 0, otherwise it gives the number of the group to which\nthe data source belongs.", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Gets the bytes for the highest address in the range represented by this address.\n\n@return", "This constructs and returns the request object for the producer pool\n\n@param topic the topic to which the data should be published\n@param bidPid the broker id and partition id\n@param data the data to be published\n@return producer data of builder", "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" ]
private void flush(final boolean propagate) throws IOException { final int avail = baseNCodec.available(context); if (avail > 0) { final byte[] buf = new byte[avail]; final int c = baseNCodec.readResults(buf, 0, avail, context); if (c > 0) { out.write(buf, 0, c); } } if (propagate) { out.flush(); } }
[ "Flushes this output stream and forces any buffered output bytes to be written out to the stream. If propagate is\ntrue, the wrapped stream will also be flushed.\n\n@param propagate\nboolean flag to indicate whether the wrapped OutputStream should also be flushed.\n@throws IOException\nif an I/O error occurs." ]
[ "Creates an empty block style definition.\n@return", "radi otsu da dobije spojena crna slova i ra\n\n@param input\n@return the processed image", "Stores the output from a Frontier into the queue, pausing and waiting if the given queue is too large\n\n@param resultsMap map of String and String representing the output of a Frontier's DFS", "Removes the token from the list\n@param token Token which is to be removed", "Returns the 'Up' - vector of the camera coordinate system.\n\nThe returned vector is relative to the coordinate space defined by the\ncorresponding node.<p>\n\nThe 'right' vector of the camera coordinate system is the cross product\nof the up and lookAt vectors. The default value is 0|1|0. The vector\nmay be normalized, but it needn't.<p>\n\nThis method is part of the wrapped API (see {@link AiWrapperProvider}\nfor details on wrappers).<p>\n\nThe built-in behavior is to return a {@link AiVector}.\n\n@param wrapperProvider the wrapper provider (used for type inference)\n@return the 'Up' vector", "Get an extent aware Iterator based on the ReportQuery\n\n@param query\n@param cld\n@return OJBIterator", "Obtains a local date in Discordian 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 Discordian local date, not null\n@throws DateTimeException if unable to create the date", "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself.", "Prepare the document before rendering.\n\n@param outputStream output stream to render to, null if only for layout\n@param format format\n@throws DocumentException oops\n@throws IOException oops\n@throws PrintingException oops" ]
public int executeUpdateSQL( String sqlStatement, ClassDescriptor cld, ValueContainer[] values1, ValueContainer[] values2) throws PersistenceBrokerException { if (logger.isDebugEnabled()) logger.debug("executeUpdateSQL: " + sqlStatement); int result; int index; PreparedStatement stmt = null; final StatementManagerIF sm = broker.serviceStatementManager(); try { stmt = sm.getPreparedStatement(cld, sqlStatement, Query.NOT_SCROLLABLE, StatementManagerIF.FETCH_SIZE_NOT_APPLICABLE, isStoredProcedure(sqlStatement)); index = sm.bindValues(stmt, values1, 1); sm.bindValues(stmt, values2, index); result = stmt.executeUpdate(); } catch (PersistenceBrokerException e) { logger.error("PersistenceBrokerException during the execution of the Update SQL query: " + e.getMessage(), e); throw e; } catch (SQLException e) { ValueContainer[] tmp = addValues(values1, values2); throw ExceptionHelper.generateException(e, sqlStatement, cld, tmp, logger, null); } finally { sm.closeResources(stmt, null); } return result; }
[ "performs a SQL UPDTE, INSERT or DELETE statement against RDBMS.\n@param sqlStatement the query string.\n@param cld ClassDescriptor providing meta-information.\n@return int returncode" ]
[ "Log modified request\n\n@param httpMethodProxyRequest\n@param httpServletResponse\n@param history", "Clear history for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client", "Adds folders to perform the search in.\n@param folders Folders to search in.", "This handler will be triggered when search is finish", "Shutdown the server\n\n@throws Exception exception", "Creates a map between a calendar ID and a list of\nwork pattern assignment rows.\n\n@param rows work pattern assignment rows\n@return work pattern assignment map", "Sets a default style for every element that doesn't have one\n\n@throws JRException", "Use this API to fetch all the nsip6 resources that are configured on netscaler.", "absolute for basicJDBCSupport\n@param row" ]
public List<DbMigration> getMigrationsSinceVersion(int version) { List<DbMigration> dbMigrations = new ArrayList<>(); migrationScripts.stream().filter(script -> script.getVersion() > version).forEach(script -> { String content = loadScriptContent(script); dbMigrations.add(new DbMigration(script.getScriptName(), script.getVersion(), content)); }); return dbMigrations; }
[ "Returns all migrations starting from and excluding the given version. Usually you want to provide the version of\nthe database here to get all migrations that need to be executed. In case there is no script with a newer\nversion than the one given, an empty list is returned.\n\n@param version the version that is currently in the database\n@return all versions since the given version or an empty list if no newer script is available. Never null.\nDoes not include the given version." ]
[ "Use this API to enable nsacl6 resources of given names.", "Removes all pending broadcasts\n\n@param sessionIds to remove broadcast for (or null for all sessions)", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag", "Create dummy groups for each concatenated report, and in the footer of\neach group adds the subreport.", "Get replication document state for a given replication document ID.\n\n@param docId The replication document ID\n@return Replication document for {@code docId}", "Returns the cost rate table index for this assignment.\n\n@return cost rate table index", "Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser", "Creates a new row with content with given cell context and a normal row style.\n@param content the content for the row, each member of the array represents the content for a cell in the row, must not be null but can contain null members\n@return a new row with content\n@throws {@link NullPointerException} if content was null", "Writes a DTD that can be used for data XML files matching the current model to the given writer.\n\n@param output The writer to write the DTD to" ]
public static void registerOgmExternalizers(SerializationConfigurationBuilder cfg) { for ( AdvancedExternalizer<?> advancedExternalizer : ogmExternalizers.values() ) { cfg.addAdvancedExternalizer( advancedExternalizer ); } }
[ "Registers all custom Externalizer implementations that Hibernate OGM needs into an Infinispan CacheManager\nconfiguration.\n\n@see ExternalizerIds\n@param cfg the Serialization section of a GlobalConfiguration builder" ]
[ "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error", "Determines whether the given documentation part contains the specified tag with the given parameter having the\ngiven value.\n\n@param doc The documentation part\n@param tagName The tag to be searched for\n@param paramName The parameter that the tag is required to have\n@param paramValue The value of the parameter\n@return boolean Whether the documentation part has the tag and parameter", "This is the original, naive implementation, using the Wagner &\nFischer algorithm from 1974. It uses a flattened matrix for\nspeed, but still computes the entire matrix.", "Publish finish events for each of the specified query types\n\n<pre>\n{@code\nRequestEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Identifier\n@param bus EventBus to post events to\n@param types Query types to post to event bus", "Obtain all groups\n\n@return All Groups", "Get the domain controller data from the given byte buffer.\n\n@param buffer the byte buffer\n@return the domain controller data\n@throws Exception", "Creates a Bytes object by copying the data of the given ByteBuffer.\n\n@param bb Data will be read from this ByteBuffer in such a way that its position is not\nchanged.", "Parse a string representation of a Boolean value.\nXER files sometimes have \"N\" and \"Y\" to indicate boolean\n\n@param value string representation\n@return Boolean value", "Method used to create missing timephased data.\n\n@param file project file\n@param assignment resource assignment\n@param timephasedPlanned planned timephased data\n@param timephasedComplete complete timephased data" ]
@Override public final synchronized void stopService(long millis) { running = false; try { if (keepRunning) { keepRunning = false; interrupt(); quit(); if (0L == millis) { join(); } else { join(millis); } } } catch (InterruptedException e) { //its possible that the thread exits between the lines keepRunning=false and interrupt above log.warn("Got interrupted while stopping {}", this, e); Thread.currentThread().interrupt(); } }
[ "Stops the service. If a timeout is given and the service has still not\ngracefully been stopped after timeout ms the service is stopped by force.\n\n@param millis value in ms" ]
[ "Update the BinderDescriptor of the declarationBinderRef.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Converts the given string to a clob object\n\n@param stringName string name to clob\n@param sqlConnection Connection object\n@return Clob object or NULL", "Generates a change event for a local update of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@param update the update specifier.\n@return a change event for a local update of a document in the given namespace referring\nto the given document _id.", "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 fetch nslimitselector resource of given name .", "Use this API to add gslbsite resources.", "For the given service name return list of endpoint references currently\nregistered at the service locator server endpoints.\n\n@param serviceName\nthe name of the service for which to get the endpoints, must\nnot be <code>null</code>\n@return EndpointReferenceListType encapsulate list of endpoint references\nor <code>null</code>", "Seeks to the given day within the current year\n@param dayOfYear the day of the year to seek to, represented as an integer\nfrom 1 to 366. Must be guaranteed to parse as an Integer. If this day is\nbeyond the last day of the current year, the actual last day of the year\nwill be used.", "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance" ]
@AfterThrowing(pointcut = "execution(* org.apache.cassandra.thrift.CassandraServer.doInsert(..))", throwing = "throwable") public void logErrorFromThrownException(final JoinPoint joinPoint, final Throwable throwable) { final String className = joinPoint.getTarget().getClass().getName(); final String methodName = joinPoint.getSignature().getName(); logger.error("Could not write to cassandra! Method: " + className + "."+ methodName + "()", throwable); }
[ "Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation" ]
[ "Makes sure that the operation name and the address have been set and returns a ModelNode\nrepresenting the operation request.", "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\nelements are the second ones. For example, if the list of\nvalue-pair is [\"cluster.xml=file1\", \"stores.xml=file2\"], and the\npair delimiter is '=', we will then have the list of values in\nreturn: [\"cluster.xml\", \"file1\", \"stores.xml\", \"file2\"].", "Restores a trashed folder to a new location with a new name.\n@param folderID the ID of the trashed folder.\n@param newName an optional new name to give the folder. This can be null to use the folder's original name.\n@param newParentID an optional new parent ID for the folder. This can be null to use the folder's original\nparent.\n@return info about the restored folder.", "Start the chain of execution running.\n\n@throws IllegalStateException\nif the chain of execution has already been started.", "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", "Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Delete a record.\n\n@param referenceId the reference ID.", "Adds a child to this node and sets this node as its parent node.\n\n@param node The node to add.", "Use this API to fetch sslfipskey resource of given name ." ]
protected final void addPathTo(final StringBuilder result) { if (this.parent != null) { this.parent.addPathTo(result); if (!(this.parent instanceof PJsonArray)) { result.append("."); } } result.append(getPathElement(this.contextName)); }
[ "Append the path to the StringBuilder.\n\n@param result the string builder to add the path to." ]
[ "Returns an array of all endpoints\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param filters filters to apply to endpoints\n@return Collection of endpoints\n@throws Exception exception", "Callback from the worker when it terminates", "Returns the start of this resource assignment.\n\n@return start date", "Extract the outline level from a task's WBS attribute.\n\n@param task Task instance\n@return outline level", "FastJSON does not provide the API so we have to create our own", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"", "Add UDFType objects to a PM XML file.\n\n@author kmahan\n@date 2014-09-24\n@author lsong\n@date 2015-7-24", "Flips the output buffer, and lets the Selector know we're ready to write.\n\n@param selectionKey", "Set the duration option.\n@param value the duration option to set ({@link EndType} as string)." ]
public GVRAnimation setDuration(float start, float end) { if(start>end || start<0 || end>mDuration){ throw new IllegalArgumentException("start and end values are wrong"); } animationOffset = start; mDuration = end-start; return this; }
[ "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" ]
[ "Send an event to other applications\n\n@param context context in which to send the broadcast\n@param event event to send", "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", "Returns the simplified name of the type of the specified object.", "determine the what state a transaction is in by inspecting the primary column", "Number of failed actions in scheduler", "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}).", "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception", "Retrieves child nodes from a directory entry.\n\n@param parent parent directory entry\n@return list of child nodes", "Returns the overtime cost of this resource assignment.\n\n@return cost" ]
private boolean applyRemoteDomainModel(final List<ModelNode> bootOperations, final HostInfo hostInfo) { try { HostControllerLogger.ROOT_LOGGER.debug("Applying domain level boot operations provided by master"); SyncModelParameters parameters = new SyncModelParameters(domainController, ignoredDomainResourceRegistry, hostControllerEnvironment, extensionRegistry, operationExecutor, true, serverProxies, remoteFileRepository, contentRepository); final SyncDomainModelOperationHandler handler = new SyncDomainModelOperationHandler(hostInfo, parameters); final ModelNode operation = APPLY_DOMAIN_MODEL.clone(); operation.get(DOMAIN_MODEL).set(bootOperations); final ModelNode result = operationExecutor.execute(OperationBuilder.create(operation).build(), OperationMessageHandler.DISCARD, ModelController.OperationTransactionControl.COMMIT, handler); final String outcome = result.get(OUTCOME).asString(); final boolean success = SUCCESS.equals(outcome); // check if anything we synced triggered reload-required or restart-required. // if they did we log a warning on the synced slave. if (result.has(RESPONSE_HEADERS)) { final ModelNode headers = result.get(RESPONSE_HEADERS); if (headers.hasDefined(OPERATION_REQUIRES_RELOAD) && headers.get(OPERATION_REQUIRES_RELOAD).asBoolean()) { HostControllerLogger.ROOT_LOGGER.domainModelAppliedButReloadIsRequired(); } if (headers.hasDefined(OPERATION_REQUIRES_RESTART) && headers.get(OPERATION_REQUIRES_RESTART).asBoolean()) { HostControllerLogger.ROOT_LOGGER.domainModelAppliedButRestartIsRequired(); } } if (!success) { ModelNode failureDesc = result.hasDefined(FAILURE_DESCRIPTION) ? result.get(FAILURE_DESCRIPTION) : new ModelNode(); HostControllerLogger.ROOT_LOGGER.failedToApplyDomainConfig(outcome, failureDesc); return false; } else { return true; } } catch (Exception e) { HostControllerLogger.ROOT_LOGGER.failedToApplyDomainConfig(e); return false; } }
[ "Apply the remote domain model to the local host controller.\n\n@param bootOperations the result of the remote read-domain-model op\n@return {@code true} if the model was applied successfully, {@code false} otherwise" ]
[ "Sets the target hosts from json path.\n\n@param jsonPath\nthe json path\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the parallel task builder\n@throws TargetHostsLoadException\nthe target hosts load exception", "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.", "Finds the most recent dump of the given type that is actually available.\n\n@param dumpContentType\nthe type of the dump to look for\n@return most recent main dump or null if no such dump exists", "This will check to see if certain configuration values exist from the ConfigurationService\nIf not then it redirects to the configuration screen", "Attach all project models within the application to the index. This will make it easy to navigate from the\nprojectModel to the application index.", "Check if this type is assignable from the given Type.", "Returns a long between interval\n@param min Minimum value\n@param max Maximum value\n@return long number", "Creates a color item that represents a color field found for a track based on a dbserver message.\n\n@param menuItem the rendered menu item containing the color metadata field\n\n@return the color metadata field", "Updates the style of the field label according to the field value if the\nfield value is empty - null or \"\" - removes the label 'active' style else\nwill add the 'active' style to the field label." ]
public boolean isMaterialized(Object object) { IndirectionHandler handler = getIndirectionHandler(object); return handler == null || handler.alreadyMaterialized(); }
[ "Determines whether the object is a materialized object, i.e. no proxy or a\nproxy that has already been loaded from the database.\n\n@param object The object to test\n@return <code>true</code> if the object is materialized" ]
[ "Adds an index to the table for the given index descriptor.\n\n@param indexDescDef The index descriptor\n@param tableDef The table", "Process a relationship between two tasks.\n\n@param row relationship data", "This method allows a resource calendar to be added to a resource.\n\n@return ResourceCalendar\n@throws MPXJException if more than one calendar is added", "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix.", "Uploads a new file to this folder with custom upload parameters.\n\n@param uploadParams the custom upload parameters.\n@return the uploaded file's info.", "returns a sorted array of methods", "Try to set specified property to given marshaller\n\n@param marshaller specified marshaller\n@param name name of property to set\n@param value value of property to set", "Creates a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param length Width and height of the matrix.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.\n@return A symmetric matrix.", "Gets a design document from the database.\n\n@param id the design document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}" ]
public static tmsessionparameter get(nitro_service service) throws Exception{ tmsessionparameter obj = new tmsessionparameter(); tmsessionparameter[] response = (tmsessionparameter[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the tmsessionparameter resources that are configured on netscaler." ]
[ "Use this API to fetch lbvserver_servicegroupmember_binding resources of given name .", "Find and validate manifest.json file in Artifactory for the current image.\nSince provided imageTag differs between reverse-proxy and proxy-less configuration, try to build the correct manifest path.\n@param server\n@param dependenciesClient\n@param listener\n@return\n@throws IOException", "Process a compilation unit already parsed and build.", "Detect numbers using comma as a decimal separator and replace with period.\n\n@param value original numeric value\n@return corrected numeric value", "This method retrieves a String of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return string containing required data", "Accessor method used to retrieve a Float 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", "Starts the one and only job instance in a separate Thread. Should be called exactly one time before\nthe operation is stopped.\n\n@param arguments {@inheritDoc}", "Returns if this has any mapping for the specified cell.\n\n@param cell the cell name\n@return {@code true} if there is any mapping for the cell, {@code false} otherwise", "Get an SQL condition to match this address section representation\n\n@param builder\n@param columnName\n@return the condition" ]
static void endInitialization(WeldContainer container, boolean isShutdownHookEnabled) { container.complete(); // If needed, register one shutdown hook for all containers if (shutdownHook == null && isShutdownHookEnabled) { synchronized (LOCK) { if (shutdownHook == null) { shutdownHook = new ShutdownHook(); SecurityActions.addShutdownHook(shutdownHook); } } } container.fireContainerInitializedEvent(); }
[ "Finish the initialization.\n\n@param container\n@param isShutdownHookEnabled" ]
[ "Checks whether the specified event name is restricted. If it is,\nthen create a pending error, and abort.\n\n@param name The event name\n@return Boolean indication whether the event name is restricted", "Adds a perspective camera constructed from the designated\nperspective camera to describe the shadow projection.\nThis type of camera is used for shadows generated by spot lights.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@param coneAngle spot light cone angle\n@return Perspective camera to use for shadow casting\n@see GVRSpotLight", "Ensure that the given connection is established.\n\n@param jedis\na connection to Redis\n@return true if the supplied connection was already connected", "Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build information", "Update the background color of the mBgCircle image view.", "Attaches the menu drawer to the content view.", "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", "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value.", "Verifies that the connection is still alive. Returns true if it\nis, false if it is not. If the connection is broken we try\nclosing everything, too, so that the caller need only open a new\nconnection." ]
@Override public void accept(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction) { if (this.options.verbose) { this.out.println( Messages.bind(Messages.compilation_loadBinary, new String(binaryType.getName()))); // new Exception("TRACE BINARY").printStackTrace(System.out); // System.out.println(); } LookupEnvironment env = packageBinding.environment; env.createBinaryTypeFrom(binaryType, packageBinding, accessRestriction); }
[ "Add an additional binary type" ]
[ "Read in the configuration properties.", "This method is called to alert project listeners to the fact that\na relation has been read from a project file.\n\n@param relation relation instance", "Boyer Moore scan that proceeds backwards from the end of the file looking for ENDSIG\n@throws NonScannableZipException", "Get the value of the fist child element with the given name.\n\n@param element\nThe parent element\n@param name\nThe child element name\n@return The child element value or null", "Load a system library from a stream. Copies the library to a temp file\nand loads from there.\n\n@param libname name of the library (just used in constructing the library name)\n@param is InputStream pointing to the library", "Execute pull docker image on agent\n\n@param launcher\n@param imageTag\n@param username\n@param password\n@param host\n@return\n@throws IOException\n@throws InterruptedException", "This method processes a single deferred relationship list.\n\n@param dr deferred relationship list data\n@throws MPXJException", "Return the class's name, possibly by stripping the leading path", "20130512 Converts the sdsm string generated above to Date format.\n\n@param str\nthe str\n@return the date from concise str" ]
public void transformConfig() throws Exception { List<TransformEntry> entries = readTransformEntries(new File(m_xsltDir, "transforms.xml")); for (TransformEntry entry : entries) { transform(entry.getConfigFile(), entry.getXslt()); } m_isDone = true; }
[ "Transforms the configuration.\n\n@throws Exception if something goes wrong" ]
[ "Tells you if the expression is a predefined constant like TRUE or FALSE.\n@param expression\nany expression\n@return\nas described", "Used for unit tests only.\n\nFIXME: Refactor test code with dependency injection or scope restrictions so this function is not public.\n\n@deprecated Do not use for production code, use {@link #fetch(String, String, voldemort.server.protocol.admin.AsyncOperationStatus, String, long, voldemort.store.metadata.MetadataStore, Long diskQuotaSizeInKB)} instead.", "persist decorator and than continue to children without touching the model", "Retrieves a vertex attribute as an integer buffer.\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 #setIntArray(String, int[])\n@see #getIntVec(String)", "Use this API to add linkset.", "Return a replica of this instance with the quality value of the given MediaType.\n@return the same instance if the given MediaType doesn't have a quality value, or a new one otherwise", "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.", "A specific, existing workspace can be updated by making a PUT request on\nthe URL for that workspace. Only the fields provided in the data block\nwill be updated; any unspecified fields will remain unchanged.\n\nCurrently the only field that can be modified for a workspace is its `name`.\n\nReturns the complete, updated workspace record.\n\n@param workspace The workspace to update.\n@return Request object", "Retrieves the work variance.\n\n@return work variance" ]
@SuppressWarnings("WeakerAccess") public String getProperty(Enum<?> key, boolean lowerCase) { final String keyName; if (lowerCase) { keyName = key.name().toLowerCase(Locale.ENGLISH); } else { keyName = key.name(); } return getProperty(keyName); }
[ "Gets the property by key converted to lowercase if requested\n@param key property key\n@param lowerCase convert property to lowercase if it is true, keep the original one if it is\nfalse\n@return node property" ]
[ "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object.", "The parameter must never be null\n\n@param queryParameters", "Use this API to fetch all the locationfile resources that are configured on netscaler.", "This must be called with the write lock held.\n@param requirement the requirement", "Sets no of currency digits.\n\n@param currDigs Available values, 0,1,2", "Notifies that multiple footer items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name", "Finds the most recent dump of the given type that is actually available.\n\n@param dumpContentType\nthe type of the dump to look for\n@return most recent main dump or null if no such dump exists" ]
private void writeTask(Task task) { if (!task.getNull()) { if (extractAndConvertTaskType(task) == null || task.getSummary()) { writeWBS(task); } else { writeActivity(task); } } }
[ "Given a Task instance, this task determines if it should be written to the\nPM XML file as an activity or as a WBS item, and calls the appropriate\nmethod.\n\n@param task Task instance" ]
[ "Returns the resolution of resolving the conflict between a local and remote event using\nthe given conflict resolver.\n\n@param conflictResolver the conflict resolver to use.\n@param documentId the document id related to the conflicted events.\n@param localEvent the conflicted local event.\n@param remoteEvent the conflicted remote event.\n@return the resolution to the conflict.", "calculate distance of two points\n\n@param a\n@param b\n@return", "Request a database sends a list of UUIDs.\n\n@param count The count of UUIDs.", "Use this API to create ssldhparam.", "Gets next node in the DAG which has no dependency or all of it's dependencies are resolved and\nready to be consumed.\n\n@return next node or null if all the nodes have been explored or no node is available at this moment.", "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.", "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one.", "Saves meta tree, writes database root and flushes the log.\n\n@param metaTree mutable meta tree\n@param env enclosing environment\n@param expired expired loggables (database root to be added)\n@return database root loggable which is read again from the log.", "Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in the prototypes collection.\n@return the prototype index associated to the prototypeClass." ]
public static int getSystemPort(String portIdentifier) { int defaultPort = 0; if (portIdentifier.compareTo(Constants.SYS_API_PORT) == 0) { defaultPort = Constants.DEFAULT_API_PORT; } else if (portIdentifier.compareTo(Constants.SYS_DB_PORT) == 0) { defaultPort = Constants.DEFAULT_DB_PORT; } else if (portIdentifier.compareTo(Constants.SYS_FWD_PORT) == 0) { defaultPort = Constants.DEFAULT_FWD_PORT; } else if (portIdentifier.compareTo(Constants.SYS_HTTP_PORT) == 0) { defaultPort = Constants.DEFAULT_HTTP_PORT; } else if (portIdentifier.compareTo(Constants.SYS_HTTPS_PORT) == 0) { defaultPort = Constants.DEFAULT_HTTPS_PORT; } else { return defaultPort; } String portStr = System.getenv(portIdentifier); return (portStr == null || portStr.isEmpty()) ? defaultPort : Integer.valueOf(portStr); }
[ "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" ]
[ "Print a timestamp value.\n\n@param value time value\n@return time value", "Handles adding a key. Calls the registered listener and wraps it's method in some GUI adjustments.", "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "Inserts a child task prior to a given sibling task.\n\n@param child new child task\n@param previousSibling sibling task", "Use this API to fetch all the appfwlearningsettings resources that are configured on netscaler.", "Loads the asset referenced by the file name\nunder the owner of this component.\nIf this component was constructed to replace the scene with\nthe asset, the main scene of the current context\nwill contain only the owner of this\ncomponent upon return. Otherwise, the loaded asset is a\nchild of this component's owner.\n\nLoading the asset is performed in a separate thread.\nThis function returns before the asset has finished loading.\nIAssetEvents are emitted to the input event handler and\nto any event listener on the context.\n\n@param handler\nIAssetEvents handler to process asset loading events", "Use this API to fetch vlan_nsip6_binding resources of given name .", "Find the earliest task start date. We treat this as the\nstart date for the project.\n\n@return start date", "Initializes the model" ]
public static String encodeScheme(String scheme, String encoding) throws UnsupportedEncodingException { return HierarchicalUriComponents.encodeUriComponent(scheme, encoding, HierarchicalUriComponents.Type.SCHEME); }
[ "Encodes the given URI scheme with the given encoding.\n@param scheme the scheme to be encoded\n@param encoding the character encoding to encode to\n@return the encoded scheme\n@throws UnsupportedEncodingException when the given encoding parameter is not supported" ]
[ "Retrieves the content of the filename. Also reads from JAR Searches for the resource in the\nroot folder in the jar\n\n@param fileName Filename.\n@return The contents of the file.\n@throws IOException On error.", "Closes the connection to the dbserver. This instance can no longer be used after this action.", "Reads the cost rate tables from the file.\n\n@param resource parent resource\n@param rates XML cot rate tables", "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.", "Helper for parsing properties\n@param p The properties object\n@param key The key to retrieve\n@param defaultValue The default value if the key does not exist\n@param used The set of keys we have seen\n@return The value of the property at the key", "Set a Java class to ignore when printing stack traces\n@param classToIgnoreInTraces The class to ignore.\n@return this", "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.", "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", "Sets the current field definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"access\" optional=\"true\" description=\"The accessibility of the column\" values=\"readonly,readwrite\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"none,ojb,database\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[email protected] name=\"column-documentation\" optional=\"true\" description=\"Documentation on the column\"\[email protected] name=\"conversion\" optional=\"true\" description=\"The fully qualified name of the\nconversion for the field\"\[email protected] name=\"default-fetch\" optional=\"true\" description=\"The default-fetch setting\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the field\"\[email protected] name=\"id\" optional=\"true\" description=\"The position of the field in the class\ndescriptor\"\[email protected] name=\"indexed\" optional=\"true\" description=\"Whether the field is indexed\"\nvalues=\"true,false\"\[email protected] name=\"jdbc-type\" optional=\"true\" description=\"The jdbc type of the column\"\[email protected] name=\"length\" optional=\"true\" description=\"The length of the column\"\[email protected] name=\"locking\" optional=\"true\" description=\"Whether the field supports locking\"\nvalues=\"true,false\"\[email protected] name=\"nullable\" optional=\"true\" description=\"Whether the field is nullable\"\nvalues=\"true,false\"\[email protected] name=\"precision\" optional=\"true\" description=\"The precision of the column\"\[email protected] name=\"primarykey\" optional=\"true\" description=\"Whether the field is a primarykey\"\nvalues=\"true,false\"\[email protected] name=\"scale\" optional=\"true\" description=\"The scale of the column\"\[email protected] name=\"sequence-name\" optional=\"true\" description=\"The name of the sequence for\nincrementing the field\"\[email protected] name=\"table\" optional=\"true\" description=\"The table of the field (not implemented\nyet)\"\[email protected] name=\"update-lock\" optional=\"true\" description=\"Can be set to false if the persistent attribute is\nused for optimistic locking AND the dbms should update the lock column itself (default is true). Can only be set for\nTIMESTAMP and INTEGER columns\" values=\"true,false\"" ]
private boolean setAvailable(NodeStatus nodeStatus, boolean isAvailable) { synchronized(nodeStatus) { boolean previous = nodeStatus.isAvailable(); nodeStatus.setAvailable(isAvailable); nodeStatus.setLastChecked(getConfig().getTime().getMilliseconds()); return previous; } }
[ "We need to distinguish the case where we're newly available and the case\nwhere we're already available. So we check the node status before we\nupdate it and return it to the caller.\n\n@param isAvailable True to set to available, false to make unavailable\n\n@return Previous value of isAvailable" ]
[ "Use this API to expire cacheobject resources.", "Use this API to fetch nd6ravariables resource of given name .", "Use this API to Reboot reboot.", "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)", "A specific, existing section can be deleted by making a DELETE request\non the URL for that section.\n\nNote that sections must be empty to be deleted.\n\nThe last remaining section in a board view cannot be deleted.\n\nReturns an empty data block.\n\n@param section The section to delete.\n@return Request object", "Inserts 'token' after 'where'. if where is null then it is inserted to the beginning of the list.\n@param where Where 'token' should be inserted after. if null the put at it at the beginning\n@param token The token that is to be inserted", "Returns the primary message codewords for mode 2.\n\n@param postcode the postal code\n@param country the country code\n@param service the service code\n@return the primary message, as codewords", "used for upload progress", "Utility method used to round a double to the given precision.\n\n@param value value to truncate\n@param precision Number of decimals to round to.\n@return double value" ]