query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static base_responses add(nitro_service client, systemuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemuser addresources[] = new systemuser[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new systemuser(); addresources[i].username = resources[i].username; addresources[i].password = resources[i].password; addresources[i].externalauth = resources[i].externalauth; addresources[i].promptstring = resources[i].promptstring; addresources[i].timeout = resources[i].timeout; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add systemuser resources." ]
[ "Retrieve a boolean value.\n\n@param name column name\n@return boolean value", "Classify the tokens in a String. Each sentence becomes a separate document.\n\n@param str\nA String with tokens in one or more sentences of text to be\nclassified.\n@return {@link List} of classified sentences (each a List of something that\nextends {@link CoreMap}).", "If the variable is a local temporary variable it will be resized so that the operation can complete. If not\ntemporary then it will not be reshaped\n@param mat Variable containing the matrix\n@param numRows Desired number of rows\n@param numCols Desired number of columns", "Load the related repositories, plugins and a promotion config associated to the buildId.\nCalled from the UI.\n\n@param buildId - The unique build id.\n@return LoadBuildsResponse e.g. list of repositories, plugins and a promotion config.", "Populate data for analytics.", "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs", "Check if values in the column \"property\" are written to the bundle descriptor.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle descriptor.", "Use this API to add autoscaleaction.", "Use this API to fetch filtered set of appqoepolicy resources.\nset the filter parameter values in filtervalue object." ]
private void processCalendars() throws SQLException { for (ResultSetRow row : getRows("SELECT * FROM MSP_CALENDARS WHERE PROJ_ID=?", m_projectID)) { processCalendar(row); } updateBaseCalendarNames(); processCalendarData(m_project.getCalendars()); }
[ "Select calendar data from the database.\n\n@throws SQLException" ]
[ "Retrieves the column title for the given locale.\n\n@param locale required locale for the default column title\n@return column title", "Builds the table for the database results.\n\n@param results the database results\n@return the table", "Attempts to detect the provided pattern as an exact match.\n@param pattern the pattern to find in the reader stream\n@return the number of times the pattern is found,\nor an error code\n@throws MalformedPatternException if the pattern is invalid\n@throws Exception if a generic error is encountered", "Flat the map of list of string to map of strings, with theoriginal values, seperated by comma", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15", "Parse the string representation of a timestamp.\n\n@param value string representation\n@return Java representation", "This method evaluates a if a graphical indicator should\nbe displayed, given a set of Task or Resource data. The\nmethod will return -1 if no indicator should be displayed.\n\n@param container Task or Resource instance\n@return indicator index", "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to", "Processes the template for all index columns for the current index descriptor.\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\"" ]
public static String getTemplateAsString(String fileName) throws IOException { // in .jar file String fNameJar = getFileNameInPath(fileName); InputStream inStream = DomUtils.class.getResourceAsStream("/" + fNameJar); if (inStream == null) { // try to find file normally File f = new File(fileName); if (f.exists()) { inStream = new FileInputStream(f); } else { throw new IOException("Cannot find " + fileName + " or " + fNameJar); } } BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inStream)); String line; StringBuilder stringBuilder = new StringBuilder(); while ((line = bufferedReader.readLine()) != null) { stringBuilder.append(line).append("\n"); } bufferedReader.close(); return stringBuilder.toString(); }
[ "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." ]
[ "Creates a non-binary media type with the given type, subtype, and charSet\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Initializes the type and validates it", "Get the collection of configured blogs for the calling user.\n\n@return The Collection of configured blogs", "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Get container for principal.\n\n@param cms cmsobject\n@param list of principals\n@param captionID caption id\n@param descID description id\n@param iconID icon id\n@param ouID ou id\n@param icon icon\n@param iconList iconlist\n@return indexedcontainer", "Extracts baseline work from the MPP file for a specific baseline.\nReturns null if no baseline work is present, otherwise returns\na list of timephased work items.\n\n@param assignment parent assignment\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephased baseline work data block\n@param raw flag indicating if this data is to be treated as raw\n@return timephased work", "Removes a design document using DesignDocument object from the database.\n\n@param designDocument the design document object to be removed\n@return {@link DesignDocument}", "Returns a list ordered from the highest priority to the lowest.", "Calculate a shift value that can be used to create a power-of-two value between\nthe specified maximum and minimum values.\n@param minimumValue the minimum value\n@param maximumValue the maximum value\n@return the calculated shift (use {@code 1 << shift} to obtain a value)" ]
protected void parseIntegerLists(TokenList tokens) { TokenList.Token t = tokens.getFirst(); if( t == null || t.next == null ) return; int state = 0; TokenList.Token start = null; TokenList.Token prev = t; boolean last = false; while( true ) { if( state == 0 ) { if( isVariableInteger(t) ) { start = t; state = 1; } } else if( state == 1 ) { // var ? if( isVariableInteger(t)) { // see if its explicit number sequence state = 2; } else { // just scalar integer, skip state = 0; } } else if ( state == 2 ) { // var var .... if( !isVariableInteger(t) ) { // create explicit list sequence IntegerSequence sequence = new IntegerSequence.Explicit(start,prev); VariableIntegerSequence varSequence = functions.getManagerTemp().createIntegerSequence(sequence); replaceSequence(tokens, varSequence, start, prev); state = 0; } } if( last ) { break; } else if( t.next == null ) { // handle the case where it is the last token in the sequence last = true; } prev = t; t = t.next; } }
[ "Searches for a sequence of integers\n\nexample:\n1 2 3 4 6 7 -3" ]
[ "Called on mouse up in the caption area, ends dragging by ending event\ncapture.\n\n@param event the mouse up event that ended dragging\n\n@see DOM#releaseCapture\n@see #beginDragging\n@see #endDragging", "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance", "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.", "The way calendars are stored in an MSPDI file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects", "Override for customizing XmlMapper and ObjectMapper", "Processes the template for all table definitions in the torque model.\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\"", "Takes an HTML file, looks for the first instance of the specified insertion point, and\ninserts the diagram image reference and a client side map in that point.", "This method uses the configured git credentials and repo, to test its validity.\nIn addition, in case the user requested creation of a new tag, it checks that\nanother tag with the same name doesn't exist", "A convenient way of creating a map on the fly.\n\n@param <K> the key type\n@param <V> the value type\n@param entries\nMap.Entry objects to be added to the map\n@return a LinkedHashMap with the supplied entries" ]
public <Result, Param extends Resource> Result execWithoutCacheClear(Param resource, IUnitOfWork<Result, Param> transaction) throws WrappedException { CacheAdapter cacheAdapter = getOrCreate(resource); try { cacheAdapter.ignoreNotifications(); return transaction.exec(resource); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new WrappedException(e); } finally { cacheAdapter.listenToNotifications(); } }
[ "The transaction will be executed. While it is running, any semantic state change\nin the given resource will be ignored and the cache will not be cleared." ]
[ "Add a '&lt;' clause so the column must be less-than the value.", "Are these two numbers effectively equal?\n\nThe same logic is applied for each of the 3 vector dimensions: see {@link #equal}\n@param v1\n@param v2", "Gets all pending collaboration invites for the current user.\n\n@param api the API connection to use.\n@return a collection of pending collaboration infos.", "Return the AnnotationNode for the named annotation, or else null.\nSupports Groovy 1.5 and Groovy 1.6.\n@param node - the AnnotatedNode\n@param name - the name of the annotation\n@return the AnnotationNode or else null", "Called when the pattern has changed.", "This function is responsible for starting the actual async rebalance\noperation. This is run if this node is the stealer node\n\n<br>\n\nWe also assume that the check that this server is in rebalancing state\nhas been done at a higher level\n\n@param stealInfo Partition info to steal\n@return Returns a id identifying the async operation", "Calls the provided metric getter on all the tracked environments and\nobtains their values\n\n@param metricGetterName\n@return", "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", "Patches the product module names\n\n@param name String\n@param moduleNames List<String>" ]
private ChildTaskContainer getParentTask(Activity activity) { // // Make a map of activity codes and their values for this activity // Map<UUID, UUID> map = getActivityCodes(activity); // // Work through the activity codes in sequence // ChildTaskContainer parent = m_projectFile; StringBuilder uniqueIdentifier = new StringBuilder(); for (UUID activityCode : m_codeSequence) { UUID activityCodeValue = map.get(activityCode); String activityCodeText = m_activityCodeValues.get(activityCodeValue); if (activityCodeText != null) { if (uniqueIdentifier.length() != 0) { uniqueIdentifier.append('>'); } uniqueIdentifier.append(activityCodeValue.toString()); UUID uuid = UUID.nameUUIDFromBytes(uniqueIdentifier.toString().getBytes()); Task newParent = findChildTaskByUUID(parent, uuid); if (newParent == null) { newParent = parent.addTask(); newParent.setGUID(uuid); newParent.setName(activityCodeText); } parent = newParent; } } return parent; }
[ "Retrieves the parent task for a Phoenix activity.\n\n@param activity Phoenix activity\n@return parent task" ]
[ "Returns information for a specific client\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return\n@throws Exception", "Calculates how much of a time range is before or after a\ntarget intersection point.\n\n@param start time range start\n@param end time range end\n@param target target intersection point\n@param after true if time after target required, false for time before\n@return length of time in milliseconds", "Convert maturity given as offset in months to year fraction.\n\n@param maturityInMonths The maturity as offset in months.\n@return The maturity as year fraction.", "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write", "Support the subscript operator for String.\n\n@param text a String\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The index descriptor definition or <code>null</code> if there is no such index", "Checks to see if the two matrices have the same shape and same pattern of non-zero elements\n\n@param a Matrix\n@param b Matrix\n@return true if the structure is the same", "Scales the brightness of a pixel.", "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}" ]
public static final Bytes of(byte[] data, int offset, int length) { Objects.requireNonNull(data); if (length == 0) { return EMPTY; } byte[] copy = new byte[length]; System.arraycopy(data, offset, copy, 0, length); return new Bytes(copy); }
[ "Creates a Bytes object by copying the data of a subsequence of the given byte array\n\n@param data Byte data\n@param offset Starting offset in byte array (inclusive)\n@param length Number of bytes to include" ]
[ "Method used to update fields with values received from API.\n@param jsonObject JSON-encoded info about File Version object.", "Opens a new FileOutputStream for a file of the given name in the given\nresult directory. Any file of this name that exists already will be\nreplaced. The caller is responsible for eventually closing the stream.\n\n@param resultDirectory\nthe path to the result directory\n@param filename\nthe name of the file to write to\n@return FileOutputStream for the file\n@throws IOException\nif the file or example output directory could not be created", "Use this API to add systemuser.", "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)", "Creates an immutable map. A copy of the given map is used. As a result, it is safe to modify the source map afterwards.\n\n@param map the given map\n@return an immutable map", "Verify that the given queues are all valid.\n\n@param queues the given queues", "Get a property as an long or default value.\n\n@param key the property name\n@param defaultValue the default value", "Fetch the outermost Hashmap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task." ]
public String code(final String code) { if (this.theme == null) { throw new TemplateProcessingException("Theme cannot be resolved because RequestContext was not found. " + "Are you using a Context object without a RequestContext variable?"); } return this.theme.getMessageSource().getMessage(code, null, "", this.locale); }
[ "Looks up and returns the value of the given key in the properties file of\nthe currently-selected theme.\n\n@param code Key to look up in the theme properties file.\n@return The value of the code in the current theme properties file, or an\nempty string if the code could not be resolved." ]
[ "Tells you if the given ASTNode is a VariableExpression with the given name.\n@param expression\nany AST Node\n@param pattern\na string pattern to match\n@return\ntrue if the node is a variable with the specified name", "Abort an upload session, discarding any chunks that were uploaded to it.", "We have reason to believe we might have enough information to calculate a signature for the track loaded on a\nplayer. Verify that, and if so, perform the computation and record and report the new signature.", "Returns a prefix length for which the range of this segment grouping matches the the block of addresses for that prefix.\n\nIf no such prefix exists, returns null\n\nIf this segment grouping represents a single value, returns the bit length\n\n@return the prefix length or null", "Initialization necessary for editing a property bundle.\n\n@throws CmsLoaderException thrown if loading a bundle file fails.\n@throws CmsException thrown if loading a bundle file fails.\n@throws IOException thrown if loading a bundle file fails.", "Gets the bytes for the highest address in the range represented by this address.\n\n@return", "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Extract schema of the key field", "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." ]
public int setPageCount(final int num) { int diff = num - getCheckableCount(); if (diff > 0) { addIndicatorChildren(diff); } else if (diff < 0) { removeIndicatorChildren(-diff); } if (mCurrentPage >=num ) { mCurrentPage = 0; } setCurrentPage(mCurrentPage); return diff; }
[ "Sets number of pages. If the index of currently selected page is bigger than the total number\nof pages, first page will be selected instead.\n@return difference between the previous number of pages and new one. Negative value is\nreturned if new number of pages is less then it was before." ]
[ "This method opens the named project, applies the named filter\nand displays the filtered list of tasks or resources. If an\ninvalid filter name is supplied, a list of valid filter names\nis shown.\n\n@param filename input file name\n@param filtername input filter name", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove", "Escapes args' string values according to format\n\n@param format the Format used by the PrintStream\n@param args the array of args to escape\n@return The cloned and escaped array of args", "Get the metadata cache files that are currently configured to be automatically attached when matching media is\nmounted in a player on the network.\n\n@return the current auto-attache cache files, sorted by name", "Checks if ranges contain the uid\n\n@param idRanges the id ranges\n@param uid the uid\n@return true, if ranges contain given uid", "Assign target number of partitions per node to specific node IDs. Then,\nseparates Nodes into donorNodes and stealerNodes based on whether the\nnode needs to donate or steal primary partitions.\n\n@param nextCandidateCluster\n@param numPartitionsPerNodePerZone\n@return a Pair. First element is donorNodes, second element is\nstealerNodes. Each element in the pair is a HashMap of Node to\nInteger where the integer value is the number of partitions to\nstore.", "splits a string into a list of strings. Trims the results and ignores empty strings", "Get the Upper triangular factor.\n\n@return U." ]
@Override public final long getLong(final String key) { Long result = optLong(key); if (result == null) { throw new ObjectMissingException(this, key); } return result; }
[ "Get a property as an long or throw an exception.\n\n@param key the property name" ]
[ "Log a trace message.", "Returns the texture magnification filter\n\nIf missing, defaults to {@link GL_LINEAR }\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture magnification filter", "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>.", "this class requires that the supplied enum is not fitting a\nCollection case for casting", "Generate a placeholder for an unknown type.\n\n@param type expected type\n@param fieldID field ID\n@return placeholder", "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", "Fetch the outermost Hashmap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Apply the layout to the each page in the list\n@param itemLayout item layout in the page\n@return true if the new layout is applied successfully, otherwise - false", "Pick arbitrary wrapping method. No generics should be set.\n@param builder" ]
@Override public void add(String headerName, String headerValue) { List<String> headerValues = headers.get(headerName); if (headerValues == null) { headerValues = new LinkedList<String>(); this.headers.put(headerName, headerValues); } headerValues.add(headerValue); }
[ "Add the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #set(String, String)" ]
[ "Set the repeat count of an override at ordinal index\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param repeatCount new repeat count to set\n@return true if success, false otherwise", "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X.", "Stop Redwood, closing all tracks and prohibiting future log messages.", "Given a filesystem and path to a node, gets all the files which belong to\na partition and replica type\n\nWorks only for {@link ReadOnlyStorageFormat.READONLY_V2}\n\n@param fs Underlying filesystem\n@param path The node directory path\n@param partitionId The partition id for which we get the files\n@param replicaType The replica type\n@return Returns list of files of this partition, replicaType\n@throws IOException", "Returns a handle to the pool. Useful to obtain a handle to the\nstatistics for example.\n@return pool", "2-D Gaussian function.\n\n@param x value.\n@param y value.\n@return Function's value at point (x,y).", "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "Calculates the text height for the indicator value and sets its x-coordinate.", "Static factory method to build a JSON Patch out of a JSON representation.\n\n@param node the JSON representation of the generated JSON Patch\n@return a JSON Patch\n@throws IOException input is not a valid JSON patch\n@throws NullPointerException input is null" ]
@SafeVarargs public static <K> Set<K> set(final K... keys) { return new LinkedHashSet<K>(Arrays.asList(keys)); }
[ "Creates a Set out of the given keys\n\n@param <K> the key type\n@param keys\nthe keys\n@return a Set containing the given keys" ]
[ "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "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", "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object", "Use this API to fetch all the nsspparams resources that are configured on netscaler.", "Record a prepare operation.\n\n@param preparedOperation the prepared operation", "Updates the statements of the item document identified by the given item\nid. The updates are computed with respect to the current data found\nonline, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged.\n\n@param itemIdValue\nid of the document to be updated\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are IO problems, such as missing network connection", "Use this API to fetch the statistics of all vpath_stats resources that are configured on netscaler.", "Parses an RgbaColor from a hexadecimal, rgb, rgba, hsl, or hsla\nvalue.\n\n@return returns the parsed color" ]
public EventBus emit(String event, Object... args) { return _emitWithOnceBus(eventContext(event, args)); }
[ "Emit a string event with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the specified\nstring value given the listeners has the matching argument list.\n\nFor example, suppose we have the following simple event listener methods:\n\n```java\n{@literal @}On(\"USER-LOGIN\")\npublic void logUserLogin(User user, long timestamp) {...}\n\n{@literal @}On(\"USER-LOGIN\")\npublic void checkDuplicateLoginAttempts(User user, Object... args) {...}\n\n{@literal @}On(\"USER-LOGIN\")\npublic void foo(User user) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(\"USER-LOGIN\", user, System.currentTimeMills());\n```\n\nThe `foo(User)` will not invoked because:\n\n* The parameter list `(User, long)` does not match the declared argument list `(User)`.\nHere the `String` in the parameter list is taken out because it is used to indicate\nthe event, instead of being passing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(User, Object ...)` will be invoked because\nit declares a varargs typed arguments, meaning it matches any parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener" ]
[ "Parses an RgbaColor from an rgba value.\n\n@return the parsed color", "Returns the value of the identified field as an Integer.\n@param fieldName the name of the field\n@return the value of the field as an Integer\n@throws FqlException if the field cannot be expressed as an Integer", "Helper method to create a Dao object without having to define a class. Dao classes are supposed to be convenient\nbut if you have a lot of classes, they can seem to be a pain.\n\n<p>\n<b>NOTE:</b> You should use {@link DaoManager#createDao(ConnectionSource, DatabaseTableConfig)} instead of this\nmethod so you won't have to create the DAO multiple times.\n</p>", "Write the summary file, if requested.", "Closes the outbound socket binding connection.\n\n@throws IOException", "From three tagNames, if one is under sectorTag and one under rowTag, returns the remaining one, which is supposedly the a box label. Otherwise,\nreturns null.", "Set the value of a field using its alias.\n\n@param alias field alias\n@param value field value", "Sets the HTML entity translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator", "The main method, which is essentially the same as in CRFClassifier. See the class documentation." ]
public static DeploymentReflectionIndex create() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(ServerPermission.CREATE_DEPLOYMENT_REFLECTION_INDEX); } return new DeploymentReflectionIndex(); }
[ "Construct a new instance.\n\n@return the new instance" ]
[ "Translate the operation address.\n\n@param op the operation\n@return the new operation", "Creates updateable version of capability registry that on publish pushes all changes to main registry\nthis is used to create context local registry that only on completion commits changes to main registry\n\n@return writable registry", "Handles adding a key. Calls the registered listener and wraps it's method in some GUI adjustments.", "Compute the location of the generated file from the given trace file.", "Get the SPIProviderResolver instance using the provided classloader for lookup\n\n@param cl classloader to use for lookup\n@return instance of this class", "Return list of all files in the directory.\n\n@param directory target directory on file system\n@return list of files in the directory or empty list if directory is empty.", "Looks up and returns the value of the given key in the properties file of\nthe currently-selected theme.\n\n@param code Key to look up in the theme properties file.\n@return The value of the code in the current theme properties file, or an\nempty string if the code could not be resolved.", "Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error", "Creates a new Collaboration Whitelist for a domain.\n@param api the API connection to be used by the resource.\n@param domain the domain to be added to a collaboration whitelist for a Box Enterprise.\n@param direction an enum representing the direction of the collaboration whitelist. Can be set to\ninbound, outbound, or both.\n@return information about the collaboration whitelist created." ]
public static <E> E parse(InputStream is, ParameterizedType<E> jsonObjectType) throws IOException { return mapperFor(jsonObjectType).parse(is); }
[ "Parse a parameterized object from an InputStream.\n\n@param is The InputStream, most likely from your networking library.\n@param jsonObjectType The ParameterizedType describing the object. Ex: LoganSquare.parse(is, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });" ]
[ "This method extracts project properties from a Planner file.\n\n@param project Root node of the Planner file", "Sets a property on this Javascript object for which the value is a\nJavascriptEnum\n\nThe value is set to what is returned by the getEnumValue() method on the JavascriptEnum\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "Polls from the location header and updates the polling state with the\npolling response for a PUT operation.\n\n@param pollingState the polling state for the current operation.\n@param <T> the return type of the caller.", "Utility function to find the first index of a value in a\nListBox.", "returns a collection of Reader LockEntries for object obj.\nIf no LockEntries could be found an empty Vector is returned.", "The type descriptor for a method node is a string containing the name of the method, its return type,\nand its parameter types in a canonical form. For simplicity, I'm using the format of a Java declaration\nwithout parameter names.\n\n@return the type descriptor", "Log a fatal message.", "Cause the container to be cleaned up, including all registered bean\nmanagers, and all deployment services", "Checks whether two internet addresses are on the same subnet.\n\n@param prefixLength the number of bits within an address that identify the network\n@param address1 the first address to be compared\n@param address2 the second address to be compared\n\n@return true if both addresses share the same network bits" ]
public double[] eigenToSampleSpace( double[] eigenData ) { if( eigenData.length != numComponents ) throw new IllegalArgumentException("Unexpected sample length"); DMatrixRMaj s = new DMatrixRMaj(A.getNumCols(),1); DMatrixRMaj r = DMatrixRMaj.wrap(numComponents,1,eigenData); CommonOps_DDRM.multTransA(V_t,r,s); DMatrixRMaj mean = DMatrixRMaj.wrap(A.getNumCols(),1,this.mean); CommonOps_DDRM.add(s,mean,s); return s.data; }
[ "Converts a vector from eigen space into sample space.\n\n@param eigenData Eigen space data.\n@return Sample space projection." ]
[ "add a foreign key field", "Return the build string of this instance of finmath-lib.\nCurrently this is the Git commit hash.\n\n@return The build string of this instance of finmath-lib.", "Determines if the queue identified by the given key is used.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key is used, false otherwise", "Consumes a produced result. Calls every transformer in sequence, then\ncalls every dataWriter in sequence.\n\n@param initialVars a map containing the initial variables assignments\n@return the number of lines written", "Returns a new client id for the profileIdentifier\n\n@param model\n@param profileIdentifier\n@return json with a new client_id\n@throws Exception", "Use this API to add dnspolicylabel.", "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "Save the current file as the given type.\n\n@param file target file\n@param type file type", "used for encoding url path segment" ]
private void populateBar(Row row, Task task) { Integer calendarID = row.getInteger("CALENDAU"); ProjectCalendar calendar = m_project.getCalendarByUniqueID(calendarID); //PROJID task.setUniqueID(row.getInteger("BARID")); task.setStart(row.getDate("STARV")); task.setFinish(row.getDate("ENF")); //NATURAL_ORDER //SPARI_INTEGER task.setName(row.getString("NAMH")); //EXPANDED_TASK //PRIORITY //UNSCHEDULABLE //MARK_FOR_HIDING //TASKS_MAY_OVERLAP //SUBPROJECT_ID //ALT_ID //LAST_EDITED_DATE //LAST_EDITED_BY //Proc_Approve //Proc_Design_info //Proc_Proc_Dur //Proc_Procurement //Proc_SC_design //Proc_Select_SC //Proc_Tender //QA Checked //Related_Documents task.setCalendar(calendar); }
[ "Uses data from a bar to populate a task.\n\n@param row bar data\n@param task task to populate" ]
[ "Clears the Parameters before performing a new search.\n@return this.true;", "Reconnect the sequence flows and the flow nodes.\nDone after the initial pass so that we have all the target information.", "Add some of the release build properties to a map.", "Set a proxy for REST-requests.\n\n@param proxyHost\n@param proxyPort", "Add utility routes the router\n\n@param router", "Get the Operation metadata for an MBean by name.\n@return the {@link Map} of {@link String} operation names to {@link MBeanOperationInfo} values.", "Returns the dot product of this vector and v1.\n\n@param v1\nright-hand vector\n@return dot product", "Search for photos which match the given search parameters.\n\n@param params\nThe search parameters\n@param perPage\nThe number of photos to show per page\n@param page\nThe page offset\n@return A PhotoList\n@throws FlickrException", "generate a message for loglevel INFO\n\n@param pObject the message Object" ]
private static synchronized StreamHandler getStreamHandler() { if (methodHandler == null) { methodHandler = new ConsoleHandler(); methodHandler.setFormatter(new Formatter() { @Override public String format(LogRecord record) { return record.getMessage() + "\n"; } }); methodHandler.setLevel(Level.FINE); } return methodHandler; }
[ "running in App Engine" ]
[ "Checks whether a character sequence matches against a specified pattern or not.\n\n@param pattern\npattern, that the {@code chars} must correspond to\n@param chars\na readable sequence of {@code char} values which should match the given pattern\n@return {@code true} when {@code chars} matches against the passed {@code pattern}, otherwise {@code false}", "Gets the current instance of plugin manager\n\n@return PluginManager", "Use this API to add cacheselector resources.", "Write project properties.\n\n@param record project properties\n@throws IOException", "generate a message for loglevel FATAL\n\n@param pObject the message Object", "This method allows a pre-existing resource calendar to be attached to a\nresource.\n\n@param calendar resource calendar", "Mark root of this DAG depends on given DAG's root.\n\n@param dependencyGraph the dependency DAG", "A specific, existing project can be updated by making a PUT request on the\nURL for that project. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated project record.\n\n@param project The project to update.\n@return Request object", "Zeros an inner rectangle inside the matrix.\n\n@param A Matrix that is to be modified.\n@param row0 Start row.\n@param row1 Stop row+1.\n@param col0 Start column.\n@param col1 Stop column+1." ]
private static void parseOutgoings(ArrayList<Shape> shapes, JSONObject modelJSON, Shape current) throws JSONException { if (modelJSON.has("outgoing")) { ArrayList<Shape> outgoings = new ArrayList<Shape>(); JSONArray outgoingObject = modelJSON.getJSONArray("outgoing"); for (int i = 0; i < outgoingObject.length(); i++) { Shape out = getShapeWithId(outgoingObject.getJSONObject(i).getString("resourceId"), shapes); outgoings.add(out); out.addIncoming(current); } if (outgoings.size() > 0) { current.setOutgoings(outgoings); } } }
[ "parse the outgoings form an json object and add all shape references to\nthe current shapes, add new shapes to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
[ "Creates the next permutation in the sequence.\n\n@return An array containing the permutation. The returned array is modified each time this function is called.", "Returns true if the ASTNode is a declaration of a closure, either as a declaration\nor a field.\n@param expression\nthe target expression\n@return\nas described", "Returns the compact records for all teams to which user is assigned.\n\n@param user An identifier for the user. Can be one of an email address,\nthe globally unique identifier for the user, or the keyword `me`\nto indicate the current user making the request.\n@return Request object", "Get random geographical location\n@return 2-Tuple of ints (latitude, longitude)", "Gets the value of the resourceRequestCriterion property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the resourceRequestCriterion property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetResourceRequestCriterion().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link ResourceRequestType.ResourceRequestCriterion }", "Gets an iterable of all the assignments of this task.\n@param fields the fields to retrieve.\n@return an iterable containing info about all the assignments.", "This method retrieves an integer 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 required integer data", "Set the background color.\n\nIf you don't set the background color, the default is an opaque black:\n{@link Color#BLACK}, 0xff000000.\n\n@param color\nAn Android 32-bit (ARGB) {@link Color}, such as you get from\n{@link Resources#getColor(int)}", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException" ]
public T removeBundle(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createBundleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
[ "Remove a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder" ]
[ "Pushes the Notification Viewed event to CleverTap.\n\n@param extras The {@link Bundle} object that contains the\nnotification details", "Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "This looks at the servlet attributes to get the list of response headers to remove while the response object gets created by the servlet", "Creates an Executor that is based on daemon threads.\nThis allows the program to quit without explicitly\ncalling shutdown on the pool\n\n@return the newly created single-threaded Executor", "Use this API to fetch all the configstatus resources that are configured on netscaler.", "Converts an Accumulo Range to a Fluo Span\n\n@param range Range\n@return Span", "Load the given configuration file.", "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern", "Verify JUnit presence and version." ]
private long getTime(Date start, Date end) { long total = 0; if (start != null && end != null) { Date startTime = DateHelper.getCanonicalTime(start); Date endTime = DateHelper.getCanonicalTime(end); Date startDay = DateHelper.getDayStartDate(start); Date finishDay = DateHelper.getDayStartDate(end); // // Handle the case where the end of the range is at midnight - // this will show up as the start and end days not matching // if (startDay.getTime() != finishDay.getTime()) { endTime = DateHelper.addDays(endTime, 1); } total = (endTime.getTime() - startTime.getTime()); } return (total); }
[ "Retrieves the amount of time between two date time values. Note that\nthese values are converted into canonical values to remove the\ndate component.\n\n@param start start time\n@param end end time\n@return length of time" ]
[ "Add sub-deployment units to the container\n\n@param bdaMapping", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Returns true if required properties for FluoClient are set", "Appends a line separator node that will only be effective if the current line contains non-whitespace text.\n\n@return the given parent node", "Read an unsigned integer from the given byte array\n\n@param bytes The bytes to read from\n@param offset The offset to begin reading at\n@return The integer as a long", "Generate the global CSS style for the whole document.\n@return the CSS code used in the generated document header", "Set the view frustum to pick against from the given projection matrix.\n\nIf the projection matrix is null, the picker will revert to picking\nobjects that are visible from the viewpoint of the scene's current camera.\nIf a matrix is given, the picker will pick objects that are visible\nfrom the viewpoint of it's owner the given projection matrix.\n\n@param projMatrix 4x4 projection matrix or null\n@see GVRScene#setPickVisible(boolean)", "Returns the expected name of a workspace for a given suffix\n@param suffix\n@return", "Initializes the type and validates it" ]
private void updateArt(TrackMetadataUpdate update, AlbumArt art) { hotCache.put(DeckReference.getDeckReference(update.player, 0), art); // Main deck if (update.metadata.getCueList() != null) { // Update the cache with any hot cues in this track as well for (CueList.Entry entry : update.metadata.getCueList().entries) { if (entry.hotCueNumber != 0) { hotCache.put(DeckReference.getDeckReference(update.player, entry.hotCueNumber), art); } } } deliverAlbumArtUpdate(update.player, art); }
[ "We have obtained album art for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this art\n@param art the album art which we retrieved" ]
[ "List the photos with the most views, comments or favorites.\n\n@param date\n(Optional) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day. If no date is provided, all time view counts will be returned.\n@param sort\n(Optional) The order in which to sort returned photos. Defaults to views. The possible values are views, comments and favorites. Other sort\noptions are available through flickr.photos.search.\n@param perPage\n(Optional) Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html\"", "converts the file URIs with an absent authority to one with an empty", "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "If there is a SubReport on a Group, we do the layout here\n@param columnsGroup\n@param jgroup", "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", "Set work connection.\n\n@param db the db setup bean", "This method writes calendar data to a Planner file.\n\n@throws JAXBException on xml creation errors", "This method extracts project extended attribute data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Logs all the canidate elements so that the plugin knows which elements were the candidate\nelements." ]
public double estimateExcludedVolumeFraction(){ //Calculate volume/area of the of the scene without obstacles if(recalculateVolumeFraction){ CentralRandomNumberGenerator r = CentralRandomNumberGenerator.getInstance(); boolean firstRandomDraw = false; if(randomNumbers==null){ randomNumbers = new double[nRandPoints*dimension]; firstRandomDraw = true; } int countCollision = 0; for(int i = 0; i< nRandPoints; i++){ double[] pos = new double[dimension]; for(int j = 0; j < dimension; j++){ if(firstRandomDraw){ randomNumbers[i*dimension + j] = r.nextDouble(); } pos[j] = randomNumbers[i*dimension + j]*size[j]; } if(checkCollision(pos)){ countCollision++; } } fraction = countCollision*1.0/nRandPoints; recalculateVolumeFraction = false; } return fraction; }
[ "Estimate excluded volume fraction by monte carlo method\n@return excluded volume fraction" ]
[ "Tells you if the given ASTNode is a VariableExpression with the given name.\n@param expression\nany AST Node\n@param pattern\na string pattern to match\n@return\ntrue if the node is a variable with the specified name", "Use this API to fetch ipset_nsip6_binding resources of given name .", "Handle bind service event.\n@param service Service instance\n@param props Service reference properties", "returns the total count of objects in the GeneralizedCounter.", "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", "Places a new value at the end of the existing value array, increasing the field length accordingly.\n@param newValue - the 2 floats making the new SFVec2f appended to the MFVec2f array list", "Read string from url generic.\n\n@param url\nthe url\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Create a new Date. To the last day.", "Adds listeners and reads from a file.\n\n@param reader reader for file type\n@param file schedule data\n@return ProjectFile instance" ]
public T find(AbstractProject<?, ?> project, Class<T> type) { // First check that the Flexible Publish plugin is installed: if (Jenkins.getInstance().getPlugin(FLEXIBLE_PUBLISH_PLUGIN) != null) { // Iterate all the project's publishers and find the flexible publisher: for (Publisher publisher : project.getPublishersList()) { // Found the flexible publisher: if (publisher instanceof FlexiblePublisher) { // See if it wraps a publisher of the specified type and if it does, return it: T pub = getWrappedPublisher(publisher, type); if (pub != null) { return pub; } } } } return null; }
[ "Gets the publisher of the specified type, if it is wrapped by the \"Flexible Publish\" publisher in a project.\nNull is returned if no such publisher is found.\n@param project The project\n@param type The type of the publisher" ]
[ "Use this API to add gslbsite.", "Determines if a mouse event is inside a box.", "Methods returns InetAddress for localhost\n\n@return InetAddress of the localhost\n@throws UnknownHostException if localhost could not be resolved", "Converters the diffusion coefficient to hydrodynamic diameter and vice versa\n@param value Diffusion coefficient in [m^2 s^-1] or hydrodynamic diameter in [m]\n@param temperatur Temperatur in [Kelvin]\n@param viscosity Viscosity in [kg m^-1 s^-1]\n@return Hydrodynmaic diameter [m] / diffusion coefficient [m^2 s^-1]", "region Override Methods", "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", "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString", "this method is called from the event methods", "Get a list of referring domains for a photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamDomains.html\"" ]
private List<CmsGitConfiguration> readConfigFiles() { List<CmsGitConfiguration> configurations = new LinkedList<CmsGitConfiguration>(); // Default configuration file for backwards compatibility addConfigurationIfValid(configurations, new File(DEFAULT_CONFIG_FILE)); // All files in the config folder File configFolder = new File(DEFAULT_CONFIG_FOLDER); if (configFolder.isDirectory()) { for (File configFile : configFolder.listFiles()) { addConfigurationIfValid(configurations, configFile); } } return configurations; }
[ "Read all configuration files.\n@return the list with all available configurations" ]
[ "Exit reporting up to distributor, using information gained from status reports to the LineCountManager\n\n@return a boolean of whether this consumer should immediately exit", "Converts days of the week into a bit field.\n\n@param data recurring data\n@return bit field", "Retrieves or if necessary, creates a user alias to be used\nby a child criteria\n@param attribute The alias to set", "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name", "Request to join a group.\n\nNote: if a group has rules, the client must display the rules to the user and the user must accept them (which is indicated by passing a true value to\nacceptRules) prior to making the join request.\n\n@param groupId\n- groupId parameter\n@param message\n- (required) message to group administrator\n@param acceptRules\n- (required) parameter indicating user has accepted groups rules", "Replace a single value at the appropriate location in the existing value array.\n@param index - location in the array list\n@param newValue - the new String", "Get the Query Paramaters to be used for search request.\n@return this.QueryStringBuilder.", "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", "Creates an immutable singleton instance.\n\n@param key\n@param value\n@return" ]
private void onConnectionClose(final Connection closed) { synchronized (this) { if(connection == closed) { connection = null; if(shutdown) { connectTask = DISCONNECTED; return; } final ConnectTask previous = connectTask; connectTask = previous.connectionClosed(); } } }
[ "Notification that a connection was closed.\n\n@param closed the closed connection" ]
[ "Return true if the Declaration can be linked to the ImporterService.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<ImporterService> of the ImporterService\n@return true if the Declaration can be linked to the ImporterService", "Parses chroot section of Zookeeper connection string\n\n@param zookeepers Zookeeper connection string\n@return Returns root path or \"/\" if none found", "Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Set the host running the Odo instance to configure\n\n@param hostName name of host", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000.", "Reads a \"message set\" argument, and parses into an IdSet.\nCurrently only supports a single range of values.", "Displays a localized warning.\n@param caption the caption of the warning.\n@param description the description of the warning.", "Join the Collection of Strings using the specified delimter and optionally quoting each\n\n@param s\nThe String collection\n@param delimiter\nthe delimiter String\n@param doQuote\nwhether or not to quote the Strings\n@return The joined String", "Extracts the column of A and copies it into u while computing the magnitude of the\nlargest element and returning it.\n\n<pre>\nu[ (offsetU+row0+i)*2 ] = A.getReal(row0+i,col)\nu[ (offsetU+row0+i)*2 + 1] = A.getImag(row0+i,col)\n</pre>\n\n@param A Complex matrix\n@param row0 First row in A to be copied\n@param row1 Last row in A + 1 to be copied\n@param col Column in A\n@param u Output array storage\n@param offsetU first index in U\n@return magnitude of largest element" ]
public boolean getHidden() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_HIDDEN); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element personElement = response.getPayload(); return personElement.getAttribute("hidden").equals("1") ? true : false; }
[ "Returns the default hidden preference for the user.\n\n@return boolean hidden or not\n@throws FlickrException" ]
[ "Gets the path used for the results of XSLT Transforms.", "Return total number of connections created in all partitions.\n\n@return number of created connections", "Use this API to fetch all the appfwprofile resources that are configured on netscaler.", "appends a WHERE-clause to the Statement\n@param where\n@param crit\n@param stmt", "Start pushing the element off to the right.", "Load a properties file from a file path\n\n@param gradlePropertiesFilePath The file path where the gradle.properties is located.\n@return The loaded properties.\n@throws IOException In case an error occurs while reading the properties file, this exception is thrown.", "Gets the favorite entries corresponding to the currently displayed favorite widgets.\n\n@return the list of favorite entries", "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", "Checks if a property's type is valid to be included in the report.\n@param _property the property.\n@return true if the property is is of a valid type." ]
public void createProductDelivery(final String productLogicalName, final Delivery delivery, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.getProductDelivery(productLogicalName)); final ClientResponse response = resource.type(MediaType.APPLICATION_JSON).post(ClientResponse.class, delivery); client.destroy(); if(ClientResponse.Status.CREATED.getStatusCode() != response.getStatus()){ final String message = "Failed to create a delivery"; if(LOG.isErrorEnabled()) { LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, message, response.getStatus())); } throw new GrapesCommunicationException(message, response.getStatus()); } }
[ "Create an Product delivery\n\n@throws AuthenticationException, GrapesCommunicationException, IOException" ]
[ "Issue the database statements to create the table associated with a table configuration.\n\n@param connectionSource\nconnectionSource Associated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@return The number of statements executed to do so.", "Get the deferred flag. Exchange rates can be deferred or real.time.\n\n@return the deferred flag, or {code null}.", "Attach all project models within the application to the index. This will make it easy to navigate from the\nprojectModel to the application index.", "Create an import declaration and delegates its registration for an upper class.", "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given yield curve.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param rate The yield which is used for discounted the coupon payments.\n@param model The model under which the product is valued.\n@return The value of the bond for the given yield.", "generate a message for loglevel FATAL\n\n@param pObject the message Object", "Checks that the data starting at startLocRecord looks like a local file record header.\n\n@param channel the channel\n@param startLocRecord offset into channel of the start of the local record\n@param compressedSize expected compressed size of the file, or -1 to indicate this isn't known", "Attach a component to this scene object.\n\nEach scene object has a list of components that may\nbe attached to it. Only one component of a particular type\ncan be attached. Components are retrieved based on their type.\n\n@return true if component is attached, false if a component of that class is already attached.\n@param component component to attach.\n@see GVRSceneObject#detachComponent(long)\n@see GVRSceneObject#getComponent(long)" ]
public static String getOjbClassName(ResultSet rs) { try { return rs.getString(OJB_CLASS_COLUMN); } catch (SQLException e) { return null; } }
[ "Returns the name of the class to be instantiated.\n@param rs the Resultset\n@return null if the column is not available" ]
[ "Request a scoped transactional token for a particular resource.\n@param accessToken application access token.\n@param scope scope of transactional token.\n@param resource resource transactional token has access to.\n@return a BoxAPIConnection which can be used to perform transactional requests.", "Calculates the static drift. Static means, that the drift does not change direction or intensity over time.\n\n@param tracks Tracks which seems to exhibit a local drift\n@return The static drift over all trajectories", "Wrapper to avoid throwing an exception over JMX", "Apply all attributes on the given context, hereby existing entries are preserved.\n\n@param context the context to be applied, not null.\n@return this Builder, for chaining\n@see #importContext(AbstractContext, boolean)", "Creates a new instance from the given configuration file.\n\n@throws IOException if failed to load the configuration from the specified file", "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", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.\nThis uses nspbr6_args which is a way to provide additional arguments while fetching the resources.", "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.", "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 processBlock(List<GenericCriteria> list, byte[] block) { if (block != null) { if (MPPUtility.getShort(block, 0) > 0x3E6) { addCriteria(list, block); } else { switch (block[0]) { case (byte) 0x0B: { processBlock(list, getChildBlock(block)); break; } case (byte) 0x06: { processBlock(list, getListNextBlock(block)); break; } case (byte) 0xED: // EQUALS { addCriteria(list, block); break; } case (byte) 0x19: // AND case (byte) 0x1B: { addBlock(list, block, TestOperator.AND); break; } case (byte) 0x1A: // OR case (byte) 0x1C: { addBlock(list, block, TestOperator.OR); break; } } } } }
[ "Process a single criteria block.\n\n@param list parent criteria list\n@param block current block" ]
[ "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", "Use this API to reset Interface resources.", "Converts this IPv6 address segment into smaller segments,\ncopying them into the given array starting at the given index.\n\nIf a segment does not fit into the array because the segment index in the array is out of bounds of the array,\nthen it is not copied.\n\n@param segs\n@param index", "Allows testsuites to shorten the domain timeout adder", "Returns the raw class of the given type.", "Use this API to delete sslcertkey.", "Queries the running container and attempts to lookup the information from the running container.\n\n@param client the client used to execute the management operation\n\n@return the container description\n\n@throws IOException if an error occurs while executing the management operation\n@throws OperationExecutionException if the operation used to query the container fails", "Processes the template for all table definitions in the torque model.\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\"", "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" ]
public void removeScript(int id) throws Exception { PreparedStatement statement = null; try (Connection sqlConnection = SQLService.getInstance().getConnection()) { statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_SCRIPT + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setInt(1, id); statement.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Remove script for a given ID\n\n@param id ID of script\n@throws Exception exception" ]
[ "Returns true if the class node represents a the class node for the Class class\nand if the parametrized type is a neither a placeholder or a wildcard. For example,\nthe class node Class&lt;Foo&gt; where Foo is a class would return true, but the class\nnode for Class&lt;?&gt; would return false.\n@param classNode a class node to be tested\n@return true if it is the class node for Class and its generic type is a real class", "Start and configure GreenMail using given properties.\n\n@param properties the properties such as System.getProperties()", "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "Add an object into cache by key with expiration time specified\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached\n@param expiration\nthe seconds after which the object will be evicted from the cache", "Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG", "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@param dateRollConvention Adjustment to be applied to the all dates.\n@param businessdayCalendar Businessday calendar (holiday calendar) to be used for date roll adjustment.\n@param fixingOffsetDays Number of business days to be added to period start to get the fixing date.\n@param paymentOffsetDays Number of business days to be added to period end to get the payment date.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3", "Add exceptions to the calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param gpCalendar GanttProject calendar", "Handle content length.\n\n@param event\nthe event", "Initializes the fields on the changes file with the values of the specified\nbinary package control file.\n\n@param packageControlFile" ]
private Query getReportQueryByCriteriaCount(ReportQueryByCriteria aQuery) { ReportQueryByCriteria countQuery = (ReportQueryByCriteria) getQueryByCriteriaCount(aQuery); // BRJ: keep the original columns to build the Join countQuery.setJoinAttributes(aQuery.getAttributes()); // BRJ: we have to preserve groupby information Iterator iter = aQuery.getGroupBy().iterator(); while(iter.hasNext()) { countQuery.addGroupBy((FieldHelper) iter.next()); } return countQuery; }
[ "Create a Count-Query for ReportQueryByCriteria" ]
[ "Use this API to Import sslfipskey resources.", "Before closing the PersistenceBroker ensure that the session\ncache is cleared", "Helper function that drops all local databases for every client.", "Returns the full record for a single story.\n\n@param story Globally unique identifier for the story.\n@return Request object", "returns the XmlCapable id associated with the literal.\nOJB maintains a RepositoryTags table that provides\na mapping from xml-tags to XmlCapable ids.\n\n@param literal the literal to lookup\n@return the int value representing the XmlCapable\n\n@throws MetadataException if no literal was found in tags mapping", "Non-blocking call\n\n@param key\n@param value\n@return", "Use this API to fetch lbmonitor_binding resources of given names .", "Provides a message which describes the expected format and arguments\nfor this command. This is used to provide user feedback when a command\nrequest is malformed.\n\n@return A message describing the command protocol format.", "Get the Exif data for the photo.\n\nThe calling user must have permission to view the photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@param secret\nThe secret\n@return A collection of Exif objects\n@throws FlickrException" ]
public ConfigurableMessages getConfigurableMessages(CmsMessages defaultMessages, Locale locale) { return new ConfigurableMessages(defaultMessages, locale, m_configuredBundle); }
[ "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bundle\n@param locale the preferred locale\n@return the configured bundle or, if not found, the default bundle." ]
[ "Returns the formula for the percentage\n@param group\n@param type\n@return", "Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument", "Get path ID for a given profileId and pathName\n\n@param pathName Name of path\n@param profileId ID of profile\n@return ID of path", "Sets a quota for a users.\n\n@param user the user.\n@param quota the quota.", "Use this API to delete dnsaaaarec.", "The document field must not exist in the list provided\n@param rhs The argument - one or more values\n@return PredicateExpression: $nin rhs", "Add a custom Log Record Handler to the root of the tree\n@param handler The handler to add\n@return this", "Set the correct day for the date with year and month already fixed.\n@param date the date, where year and month are already correct.", "Returns a count of in-window events.\n\n@return the the count of in-window events." ]
public static final String getUnicodeString(byte[] data, int offset) { int length = getUnicodeStringLengthInBytes(data, offset); return length == 0 ? "" : new String(data, offset, length, CharsetHelper.UTF16LE); }
[ "Reads a string of two byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nThe value starts at the position specified by the offset\nparameter.\n\n@param data byte array of data\n@param offset start point of unicode string\n@return string value" ]
[ "caching is not supported for this method", "Parse a macro defintion.\n\n\"macro NAME( var0 , var1 ) = 5+var0+var1'", "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set\nas selector in the conduitSelectorHolder.\n\n@param conduitSelectorHolder\n@param matcher\n@param selectionStrategy", "The Cost Variance field shows the difference between the baseline cost\nand total cost for a task. The total cost is the current estimate of costs\nbased on actual costs and remaining costs.\n\n@return amount", "Starts the compressor.", "common utility method for adding a statement to a record", "Lift a Java Func3 to a Scala Function3\n\n@param f the function to lift\n\n@returns the Scala function", "remove a converted object from the pool\n\n@param converter\n@param sourceObject\n@param destinationType", "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." ]
protected void calculateBarPositions(int _DataSize) { int dataSize = mScrollEnabled ? mVisibleBars : _DataSize; float barWidth = mBarWidth; float margin = mBarMargin; if (!mFixedBarWidth) { // calculate the bar width if the bars should be dynamically displayed barWidth = (mAvailableScreenSize / _DataSize) - margin; } else { if(_DataSize < mVisibleBars) { dataSize = _DataSize; } // calculate margin between bars if the bars have a fixed width float cumulatedBarWidths = barWidth * dataSize; float remainingScreenSize = mAvailableScreenSize - cumulatedBarWidths; margin = remainingScreenSize / dataSize; } boolean isVertical = this instanceof VerticalBarChart; int calculatedSize = (int) ((barWidth * _DataSize) + (margin * _DataSize)); int contentWidth = isVertical ? mGraphWidth : calculatedSize; int contentHeight = isVertical ? calculatedSize : mGraphHeight; mContentRect = new Rect(0, 0, contentWidth, contentHeight); mCurrentViewport = new RectF(0, 0, mGraphWidth, mGraphHeight); calculateBounds(barWidth, margin); mLegend.invalidate(); mGraph.invalidate(); }
[ "Calculates the bar width and bar margin based on the _DataSize and settings and starts the boundary\ncalculation in child classes.\n@param _DataSize Amount of data sets" ]
[ "Use this API to fetch vpath resource of given name .", "Converts a number of bytes to a human-readable string\n@param bytes the bytes\n@return the human-readable string", "Assign float value within allowed range of [0,infinity) to initializeOnly SFFloat field named spacing.\n@param newValue", "Create a plan. The plan consists of batches. Each batch involves the\nmovement of no more than batchSize primary partitions. The movement of a\nsingle primary partition may require migration of other n-ary replicas,\nand potentially deletions. Migrating a primary or n-ary partition\nrequires migrating one partition-store for every store hosted at that\npartition.", "Clear JobContext of current thread", "Creates a pattern choice radio button and adds it where necessary.\n@param pattern the pattern that should be chosen by the button.\n@param messageKey the message key for the button's label.", "Get new vector clock based on this clock but incremented on index nodeId\n\n@param nodeId The id of the node to increment\n@return A vector clock equal on each element execept that indexed by\nnodeId", "Reads primary key information from current RS row and generates a\n\ncorresponding Identity, and returns a proxy from the Identity.\n\n@throws PersistenceBrokerException\nif there was an error creating the proxy class", "Close the connection atomically.\n\n@return true if state changed to closed; false if nothing changed." ]
public static final Boolean parseBoolean(String value) { return (value == null || value.charAt(0) != '1' ? Boolean.FALSE : Boolean.TRUE); }
[ "Parse a boolean.\n\n@param value boolean\n@return Boolean value" ]
[ "Processes the template for all procedures of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Print a date time value.\n\n@param value date time value\n@return string representation", "Executes a API query action to get a new token.\nThe method only executes the action, without doing any\nchecks first. If errors occur, they are logged and null is returned.\n\n@param tokenType The kind of token to retrieve like \"csrf\" or \"login\"\n@return newly retrieved token or null if no token was retrieved", "Default implementation returns unmodified original Query\n\n@see org.apache.ojb.broker.accesslayer.QueryCustomizer#customizeQuery", "Update server mapping's host header\n\n@param serverMappingId ID of server mapping\n@param hostHeader value of host header\n@return updated ServerRedirect", "Adds labels to the item\n\n@param labels\nthe labels to add", "Sends a text message using given server setup for SMTP.\n\n@param to the to address.\n@param from the from address.\n@param subject the subject.\n@param msg the test message.\n@param setup the SMTP setup.", "Clones the given collection.\n\n@param collDef The collection descriptor\n@param prefix A prefix for the name\n@return The cloned collection", "Adds a patch operation.\n@param op the operation type. Must be add, replace, remove, or test.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value to be set." ]
private void initUpperLeftComponent() { m_upperLeftComponent = new HorizontalLayout(); m_upperLeftComponent.setHeight("100%"); m_upperLeftComponent.setSpacing(true); m_upperLeftComponent.setDefaultComponentAlignment(Alignment.MIDDLE_RIGHT); m_upperLeftComponent.addComponent(m_languageSwitch); m_upperLeftComponent.addComponent(m_filePathLabel); }
[ "Initializes the upper left component. Does not show the mode switch." ]
[ "Checks the given class descriptor for correct procedure settings.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Remove a tag from a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param tagId\nThe tag ID\n@throws FlickrException", "Checks the given reference descriptor.\n\n@param refDef The reference descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Mutate the gradient.\n@param amount the amount in the range zero to one", "Sends a text message using given server setup for SMTP.\n\n@param to the to address.\n@param from the from address.\n@param subject the subject.\n@param msg the test message.\n@param setup the SMTP setup.", "This method is a sync parse to the JSON stream of atlas information.\n\n@return List of atlas information.", "Hide multiple channels. All other channels will be unaffected.\n@param channels The channels to hide", "Retrieves a timestamp from the property data.\n\n@param type Type identifier\n@return timestamp", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException" ]
public Set<RGBColor> colours() { return stream().map(Pixel::toColor).collect(Collectors.toSet()); }
[ "Returns a set of the distinct colours used in this image.\n\n@return the set of distinct Colors" ]
[ "Use this API to fetch nsacl6 resource of given name .", "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Set a knot type.\n@param n the knot index\n@param type the type\n@see #getKnotType", "We have a non-null date, try each format in turn to see if it can be parsed.\n\n@param str date to parse\n@param pos position at which to start parsing\n@return Date instance", "Obtain collection of Parameters from request\n\n@param dataArray request parameters\n@return Map of parameters\n@throws Exception exception", "Parses chroot section of Zookeeper connection string\n\n@param zookeepers Zookeeper connection string\n@return Returns root path or \"/\" if none found", "Overridden 'consume' method. Corresponding parent method will be called necessary number of times\n\n@param initialVars - a map containing the initial variables assignments\n@return the number of lines written", "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return", "Use this API to update autoscaleprofile." ]
public List<Ticket> checkTickets(Set<String> tickets) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_CHECK_TICKETS); StringBuffer sb = new StringBuffer(); Iterator<String> it = tickets.iterator(); while (it.hasNext()) { if (sb.length() > 0) { sb.append(","); } Object obj = it.next(); if (obj instanceof Ticket) { sb.append(((Ticket) obj).getTicketId()); } else { sb.append(obj); } } parameters.put("tickets", sb.toString()); Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } // <uploader> // <ticket id="128" complete="1" photoid="2995" /> // <ticket id="129" complete="0" /> // <ticket id="130" complete="2" /> // <ticket id="131" invalid="1" /> // </uploader> List<Ticket> list = new ArrayList<Ticket>(); Element uploaderElement = response.getPayload(); NodeList ticketNodes = uploaderElement.getElementsByTagName("ticket"); int n = ticketNodes.getLength(); for (int i = 0; i < n; i++) { Element ticketElement = (Element) ticketNodes.item(i); String id = ticketElement.getAttribute("id"); String complete = ticketElement.getAttribute("complete"); boolean invalid = "1".equals(ticketElement.getAttribute("invalid")); String photoId = ticketElement.getAttribute("photoid"); Ticket info = new Ticket(); info.setTicketId(id); info.setInvalid(invalid); info.setStatus(Integer.parseInt(complete)); info.setPhotoId(photoId); list.add(info); } return list; }
[ "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" ]
[ "Returns the instance.\n@return InterceptorFactory", "Do synchronization of the given J2EE ODMG Transaction", "Provides a message which describes the expected format and arguments\nfor this command. This is used to provide user feedback when a command\nrequest is malformed.\n\n@return A message describing the command protocol format.", "Within a single zone, swaps one random partition on one random node with\nanother random partition on different random node.\n\n@param nextCandidateCluster\n@param zoneId Zone ID within which to shuffle partitions\n@return updated cluster", "Use this API to add appfwjsoncontenttype.", "Generate a PageMetadata object for the page represented by the specified pagination token.\n\n@param paginationToken opaque pagination token\n@param initialParameters the initial view query parameters (i.e. for the page 1 request).\n@param <K> the view key type\n@param <V> the view value type\n@return PageMetadata object for the given page", "A regular embedded is an element that it is embedded but it is not a key or a collection.\n\n@param keyColumnNames the column names representing the identifier of the entity\n@param column the column we want to check\n@return {@code true} if the column represent an attribute of a regular embedded element, {@code false} otherwise", "Scales the weights of this crfclassifier by the specified weight\n\n@param scale", "Convert an Integer value into a String.\n\n@param value Integer value\n@return String value" ]
private void deliverLostAnnouncement(final DeviceAnnouncement announcement) { for (final DeviceAnnouncementListener listener : getDeviceAnnouncementListeners()) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { try { listener.deviceLost(announcement); } catch (Throwable t) { logger.warn("Problem delivering device lost announcement to listener", t); } } }); } }
[ "Send a device lost announcement to all registered listeners.\n\n@param announcement the last message received from the vanished device" ]
[ "Add join info to the query. This can be called multiple times to join with more than one table.", "Determines a histogram of contiguous runs of partitions within a zone.\nI.e., for each run length of contiguous partitions, how many such runs\nare there.\n\nDoes not correctly address \"wrap around\" of partition IDs (i.e., the fact\nthat partition ID 0 is \"next\" to partition ID 'max')\n\n@param cluster\n@param zoneId\n@return map of length of contiguous run of partitions to count of number\nof such runs.", "Post the specified photo to a blog.\n\n@param photo\nThe photo metadata\n@param blogId\nThe blog ID\n@throws FlickrException", "Given a symmetric matrix which is represented by a lower triangular matrix convert it back into\na full symmetric matrix.\n\n@param A (Input) Lower triangular matrix (Output) symmetric matrix", "those could be incorporated with above, but that would blurry everything.", "Returns the default table name for this class which is the unqualified class name.\n\n@return The default table name", "Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDigest the digest used to hash.\n@param path the file/directory we want to hash.\n@return the resulting hash.\n@throws IOException", "Converts a vector from eigen space into sample space.\n\n@param eigenData Eigen space data.\n@return Sample space projection.", "Changes the index buffer associated with this mesh.\n@param ibuf new index buffer to use\n@see #setIndices(int[])\n@see #getIndexBuffer()\n@see #getIntIndices()" ]
public static base_response update(nitro_service client, vserver resource) throws Exception { vserver updateresource = new vserver(); updateresource.name = resource.name; updateresource.backupvserver = resource.backupvserver; updateresource.redirecturl = resource.redirecturl; updateresource.cacheable = resource.cacheable; updateresource.clttimeout = resource.clttimeout; updateresource.somethod = resource.somethod; updateresource.sopersistence = resource.sopersistence; updateresource.sopersistencetimeout = resource.sopersistencetimeout; updateresource.sothreshold = resource.sothreshold; updateresource.pushvserver = resource.pushvserver; return updateresource.update_resource(client); }
[ "Use this API to update vserver." ]
[ "This method retrieves the UID for a calendar associated with a task.\n\n@param mpx MPX Task instance\n@return calendar UID", "returns a collection of Reader LockEntries for object obj.\nIf no LockEntries could be found an empty Vector is returned.", "Emit information about a single suite and all of its tests.", "Option check, forwards options to the standard doclet, if that one refuses them,\nthey are sent to UmlGraph", "Log a byte array.\n\n@param label label text\n@param data byte array", "Returns a single parent of the given tag. If there are multiple parents, throws a WindupException.", "Attempts shared acquisition with a max wait time.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the time value to wait for acquiring the lock\n@param unit - See {@code TimeUnit} for valid values\n@return {@code boolean} true on success.", "Extracts a numeric id from a string, which can be either a Wikidata\nentity URI or a short entity or property id.\n\n@param idString\n@param isUri\n@return numeric id, or 0 if there was an error", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add." ]
protected void addFreeConnection(ConnectionHandle connectionHandle) throws SQLException{ connectionHandle.setOriginatingPartition(this); // assume success to avoid racing where we insert an item in a queue and having that item immediately // taken and closed off thus decrementing the created connection count. updateCreatedConnections(1); if (!this.disableTracking){ trackConnectionFinalizer(connectionHandle); } // the instant the following line is executed, consumers can start making use of this // connection. if (!this.freeConnections.offer(connectionHandle)){ // we failed. rollback. updateCreatedConnections(-1); // compensate our createdConnection count. if (!this.disableTracking){ this.pool.getFinalizableRefs().remove(connectionHandle.getInternalConnection()); } // terminate the internal handle. connectionHandle.internalClose(); } }
[ "Adds a free connection.\n\n@param connectionHandle\n@throws SQLException on error" ]
[ "Convenience method dispatches the specified event to the source appender,\nwhich will result in the custom event data being appended to the new file.\n\n@param customLoggingEvent\nThe custom Log4J event to be appended.", "Returns the deployment names with the specified runtime names at the specified deploymentRootAddress.\n\n@param deploymentRootResource\n@param runtimeNames\n@return the deployment names with the specified runtime names at the specified deploymentRootAddress.", "Parses a type annotation table to find the labels, and to visit the try\ncatch block annotations.\n\n@param u\nthe start offset of a type annotation table.\n@param mv\nthe method visitor to be used to visit the try catch block\nannotations.\n@param context\ninformation about the class being parsed.\n@param visible\nif the type annotation table to parse contains runtime visible\nannotations.\n@return the start offset of each type annotation in the parsed table.", "Finish the oauth flow after the user was redirected back.\n\n@param code\nCode returned by the Eve Online SSO\n@param state\nThis should be some secret to prevent XRSF see\ngetAuthorizationUri\n@throws net.troja.eve.esi.ApiException", "Obtain the realm used for authentication.\n\nThis realm name applies to both the user and the groups.\n\n@return The name of the realm used for authentication.", "Extracts the row from a matrix.\n@param a Input matrix\n@param row Which row is to be extracted\n@param out output. Storage for the extracted row. If null then a new vector will be returned.\n@return The extracted row.", "This method extracts project properties from a GanttProject file.\n\n@param ganttProject GanttProject file", "Write a duration field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Commits the writes to the remote collection." ]
private void configureConfigurationSelector() { if (m_checkinBean.getConfigurations().size() < 2) { // Do not show the configuration selection at all. removeComponent(m_configurationSelectionPanel); } else { for (CmsGitConfiguration configuration : m_checkinBean.getConfigurations()) { m_configurationSelector.addItem(configuration); m_configurationSelector.setItemCaption(configuration, configuration.getName()); } m_configurationSelector.setNullSelectionAllowed(false); m_configurationSelector.setNewItemsAllowed(false); m_configurationSelector.setWidth("350px"); m_configurationSelector.select(m_checkinBean.getCurrentConfiguration()); // There is really a choice between configurations m_configurationSelector.addValueChangeListener(new ValueChangeListener() { private static final long serialVersionUID = 1L; @SuppressWarnings("synthetic-access") public void valueChange(ValueChangeEvent event) { updateForNewConfiguration((CmsGitConfiguration)event.getProperty().getValue()); restoreFieldsFromUserInfo(); } }); } }
[ "Configures the configuration selector." ]
[ "Check whether the delegate type implements or extends all decorated types.\n\n@param decorator\n@throws DefinitionException If the delegate type doesn't implement or extend all decorated types", "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Use this API to fetch statistics of appfwpolicy_stats resource of given name .", "Find and return the appropriate getter method for field.\n\n@return Get method or null (or throws IllegalArgumentException) if none found.", "Use this API to fetch spilloverpolicy resource of given name .", "Use this API to fetch all the responderpolicy resources that are configured on netscaler.", "Parses a record containing hours and add them to a container.\n\n@param ranges hours container\n@param hoursRecord hours record", "Add a dependency task group for this model.\n\n@param dependency the dependency.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependency task group", "in truth we probably only need the types as injected by the metadata binder" ]
public static CmsGalleryTabConfiguration resolve(String configStr) { CmsGalleryTabConfiguration tabConfig; if (CmsStringUtil.isEmptyOrWhitespaceOnly(configStr)) { configStr = "*sitemap,types,galleries,categories,vfstree,search,results"; } if (DEFAULT_CONFIGURATIONS != null) { tabConfig = DEFAULT_CONFIGURATIONS.get(configStr); if (tabConfig != null) { return tabConfig; } } return parse(configStr); }
[ "Given a string which is either the name of a predefined tab configuration or a configuration string, returns\nthe corresponding tab configuration.\n\n@param configStr a configuration string or predefined configuration name\n\n@return the gallery tab configuration" ]
[ "Remove the given pair into the map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to remove from the map.\n@return {@code true} if the pair was removed.\n@since 2.15", "splits a string into a list of strings, ignoring the empty string", "If a custom CSS file has been specified, returns the path. Otherwise\nreturns null.\n@return A {@link File} pointing to the stylesheet, or null if no stylesheet\nis specified.", "Processes an anonymous reference definition.\n\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 reference as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\nreferenced object on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe referenced object\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\nreferenced object\"\[email protected] name=\"class-ref\" optional=\"false\" description=\"The fully qualified name of the class\nowning the referenced field\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the reference\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The fields in the current type used for\nimplementing the reference\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the reference is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the reference\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\nreference\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The fields in the referenced type\ncorresponding to the local fields (is only used for the table definition)\"", "Fire an event and notify observers that belong to this module.\n@param eventType\n@param event\n@param qualifiers", "Start the timer.", "Use this API to fetch authenticationldappolicy_vpnglobal_binding resources of given name .", "For running queries embebed in the report design\n\n@param dr\n@param layoutManager\n@param con\n@param _parameters\n@return\n@throws JRException", "Sets the bottom padding character for all cells in the row.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining" ]
private void removeMount(SlotReference slot) { mediaDetails.remove(slot); if (mediaMounts.remove(slot)) { deliverMountUpdate(slot, false); } }
[ "Records that there is no media mounted in a particular media player slot, updating listeners if this is a change,\nand clearing any affected items from our in-memory caches.\n\n@param slot the slot in which no media is mounted" ]
[ "Add the given headers to the given HTTP request.\n@param httpRequest the request to add the headers to\n@param headers the headers to add", "Get the MVT type mapping for the provided JTS Geometry.\n\n@param geometry JTS Geometry to get MVT type for\n@return MVT type for the given JTS Geometry, may return\n{@link com.wdtinc.mapbox_vector_tile.VectorTile.Tile.GeomType#UNKNOWN}", "Print an extended attribute value.\n\n@param writer parent MSPDIWriter instance\n@param value attribute value\n@param type type of the value being passed\n@return string representation", "Gets the currency codes, or the regular expression to select codes.\n\n@return the query for chaining.", "Counts the number of lines.\n\n@param str the input string\n@return Returns the number of lines terminated by '\\n' in string", "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions", "Returns the texture magnification filter\n\nIf missing, defaults to {@link GL_LINEAR }\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture magnification filter", "Register opened database via the PBKey.", "Run the OnInvariantViolation plugins when an Invariant is violated. Invariant are checked\nwhen the state machine is updated that is when the dom is changed after a click on a\nclickable. When a invariant fails this kind of plugins are executed. Warning the session is\nnot a clone, changing the session can cause strange behaviour of Crawljax.\n\n@param invariant the failed invariants\n@param context the current {@link CrawlerContext} for this crawler." ]
public static final BigInteger printTimeUnit(TimeUnit value) { return (BigInteger.valueOf(value == null ? TimeUnit.DAYS.getValue() + 1 : value.getValue() + 1)); }
[ "Print time unit.\n\n@param value TimeUnit instance\n@return time unit value" ]
[ "A smoothed step function. A cubic function is used to smooth the step between two thresholds.\n@param a the lower threshold position\n@param b the upper threshold position\n@param x the input parameter\n@return the output value", "Find the logging profile attached to any resource.\n\n@param resourceRoot the root resource\n\n@return the logging profile name or {@code null} if one was not found", "When it is time to actually close a client, do so, and clean up the related data structures.\n\n@param client the client which has been idle for long enough to be closed", "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object", "Processes the template for the object cache of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "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.", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Convert this update description to an update document.\n\n@return an update document with the appropriate $set and $unset documents." ]
public List<MaterialSection> getSectionList() { List<MaterialSection> list = new LinkedList<>(); for(MaterialSection section : sectionList) list.add(section); for(MaterialSection section : bottomSectionList) list.add(section); return list; }
[ "Get the section list\n\nN.B. The section list contains the bottom sections\n@return the list of sections setted" ]
[ "Prepare the options by adding additional information to them.\n@see <a href=\"https://docs.mongodb.com/manual/core/index-ttl/\">TTL Indexes</a>", "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes", "Issue the database statements to drop the table associated with a table configuration.\n\n<p>\n<b>WARNING:</b> This is [obviously] very destructive and is unrecoverable.\n</p>\n\n@param connectionSource\nAssociated connection source.\n@param tableConfig\nHand or spring wired table configuration. If null then the class must have {@link DatabaseField}\nannotations.\n@param ignoreErrors\nIf set to true then try each statement regardless of {@link SQLException} thrown previously.\n@return The number of statements executed to do so.", "Add image in the document.\n\n@param context\nPDF context\n@param imageResult\nimage\n@throws BadElementException\nPDF construction problem\n@throws IOException\nPDF construction problem", "Gets the invalid message.\n\n@param key the key\n@return the invalid message", "Function to filter files based on defined rules.", "Gets the publisher wrapped by the specofoed FlexiblePublisher.\n@param publisher The FlexiblePublisher wrapping the publisher.\n@param type The type of the publisher wrapped by the FlexiblePublisher.\n@return The publisher object wrapped by the FlexiblePublisher.\nNull is returned if the FlexiblePublisher does not wrap a publisher of the specified type.\n@throws IllegalArgumentException In case publisher is not of type\n{@link org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher}", "makes object obj persistent to the Objectcache under the key oid.", "Return the area polygon as the only feature in the feature collection.\n\n@param mapAttributes the attributes that this aoi is part of." ]
public static base_responses update(nitro_service client, clusterinstance resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { clusterinstance updateresources[] = new clusterinstance[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new clusterinstance(); updateresources[i].clid = resources[i].clid; updateresources[i].deadinterval = resources[i].deadinterval; updateresources[i].hellointerval = resources[i].hellointerval; updateresources[i].preemption = resources[i].preemption; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update clusterinstance resources." ]
[ "Closes off all connections in all partitions.", "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container", "of the unbound provider (", "Gets the persistence broker used by this indirection handler.\nIf no PBKey is available a runtime exception will be thrown.\n\n@return a PersistenceBroker", "Emit an enum event with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(Enum, Object...)", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "Use this API to add vpath.", "Create servlet deployment.\n\nCan be overridden with custom servlet deployment. e.g. exact resources listing in restricted env like GAE\n\n@param context the servlet context\n@param bootstrap the bootstrap\n@return new servlet deployment", "Utility method used to convert an integer time representation into a\nDuration instance.\n\n@param totalTime integer time representation\n@param format required time format\n@return new Duration instance" ]
private String getApiKey(CmsObject cms, String sitePath) throws CmsException { String res = cms.readPropertyObject( sitePath, CmsPropertyDefinition.PROPERTY_GOOGLE_API_KEY_WORKPLACE, true).getValue(); if (CmsStringUtil.isEmptyOrWhitespaceOnly(res)) { res = cms.readPropertyObject(sitePath, CmsPropertyDefinition.PROPERTY_GOOGLE_API_KEY, true).getValue(); } return res; }
[ "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception" ]
[ "Create the navigation frame.\n@param outputDirectory The target directory for the generated file(s).", "Add an additional SSExtension\n@param ssExt the ssextension to set", "Retrieves the amount of time represented by a calendar exception\nbefore or after an intersection point.\n\n@param exception calendar exception\n@param date intersection time\n@param after true to report time after intersection, false to report time before\n@return length of time in milliseconds", "For running queries embebed in the report design\n\n@param dr\n@param layoutManager\n@param con\n@param _parameters\n@return\n@throws JRException", "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded", "Checks attributes for rejection\n\n@param rejectedAttributes gathers information about failed attributes\n@param attributeValue the attribute value", "Use this API to fetch all the nsip6 resources that are configured on netscaler.", "The metadata cache can become huge over time. This simply flushes it periodically.", "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." ]
private RandomVariable getShortRate(int timeIndex) throws CalculationException { double time = getProcess().getTime(timeIndex); double timePrev = timeIndex > 0 ? getProcess().getTime(timeIndex-1) : time; double timeNext = getProcess().getTime(timeIndex+1); RandomVariable zeroRate = getZeroRateFromForwardCurve(time); //getDiscountFactorFromForwardCurve(time).div(getDiscountFactorFromForwardCurve(timeNext)).log().div(timeNext-time); RandomVariable alpha = getDV(0, time); RandomVariable value = getProcess().getProcessValue(timeIndex, 0); value = value.add(alpha); // value = value.sub(Math.log(value.exp().getAverage())); value = value.add(zeroRate); return value; }
[ "Returns the \"short rate\" from timeIndex to timeIndex+1.\n\n@param timeIndex The time index (corresponding to {@link getTime()).\n@return The \"short rate\" from timeIndex to timeIndex+1.\n@throws CalculationException Thrown if simulation failed." ]
[ "Register the DAO with the cache. This will allow folks to build a DAO externally and then register so it can be\nused internally as necessary.\n\n<p>\n<b>NOTE:</b> By default this registers the DAO to be associated with the class that it uses. If you need to\nregister multiple dao's that use different {@link DatabaseTableConfig}s then you should use\n{@link #registerDaoWithTableConfig(ConnectionSource, Dao)}.\n</p>\n\n<p>\n<b>NOTE:</b> You should maybe use the {@link DatabaseTable#daoClass()} and have the DaoManager construct the DAO\nif possible.\n</p>", "Creates a ClassNode containing the wrapper of a ClassNode\nof primitive type. Any ClassNode representing a primitive\ntype should be created using the predefined types used in\nclass. The method will check the parameter for known\nreferences of ClassNode representing a primitive type. If\nReference is found, then a ClassNode will be contained that\nrepresents the wrapper class. For example for boolean, the\nwrapper class is java.lang.Boolean.\n\nIf the parameter is no primitive type, the redirected\nClassNode will be returned\n\n@see #make(Class)\n@see #make(String)\n@param cn the ClassNode containing a possible primitive type", "Load the given metadata profile for the current thread.", "Return the profileId for a path\n\n@param path_id ID of path\n@return ID of profile\n@throws Exception exception", "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception", "Inserts a Parcelable value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Parcelable object, or null\n@return this bundler instance to chain method calls", "Sets the left padding character for all cells in the row.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "Process TestCaseStartedEvent. New testCase will be created and added\nto suite as child.\n\n@param event to process", "Constructs a Google APIs HTTP client with the associated credentials." ]
public static base_responses update(nitro_service client, snmpuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpuser updateresources[] = new snmpuser[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new snmpuser(); updateresources[i].name = resources[i].name; updateresources[i].group = resources[i].group; updateresources[i].authtype = resources[i].authtype; updateresources[i].authpasswd = resources[i].authpasswd; updateresources[i].privtype = resources[i].privtype; updateresources[i].privpasswd = resources[i].privpasswd; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update snmpuser resources." ]
[ "Specify the class represented by this `ClassNode` implements\nan interface specified by the given name\n\n@param name the name of the interface class\n@return this `ClassNode` instance", "Returns the type of the current member which is the type in the case of a field, the return type for a getter\nmethod, or the type of the parameter for a setter method.\n\n@return The member type\n@exception XDocletException if an error occurs", "Set child components.\n\n@param children\nchildren", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.", "Sets the character translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator\n@return this to allow chaining", "Gets the proper modulus operation.\n\n@param x Integer.\n@param m Modulo.\n@return Modulus.", "Get the value for a single attribute on an MBean by name.\n@param attributeName the attribute name (can be URL-encoded).\n@return the value as a String.\n@throws JMException Java Management Exception\n@throws UnsupportedEncodingException if the encoding is not supported.", "Allows to access the names of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used.\n@return the set of custom rounding ids, never {@code null}.", "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters" ]
public ClassDescriptor getDescriptorFor(String strClassName) throws ClassNotPersistenceCapableException { ClassDescriptor result = discoverDescriptor(strClassName); if (result == null) { throw new ClassNotPersistenceCapableException(strClassName + " not found in OJB Repository"); } else { return result; } }
[ "lookup a ClassDescriptor in the internal Hashtable\n@param strClassName a fully qualified class name as it is returned by Class.getName()." ]
[ "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array.", "Set OAuth 1 authentication credentials for the replication target\n\n@param consumerSecret client secret\n@param consumerKey client identifier\n@param tokenSecret OAuth server token secret\n@param token OAuth server issued token\n@return this Replication instance to set more options or trigger the replication", "Converts the bytes that make up an internet address into the corresponding integer value to make\nit easier to perform bit-masking operations on them.\n\n@param address an address whose integer equivalent is desired\n\n@return the integer corresponding to that address", "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment.", "Initialize; cached threadpool is safe as it is releasing resources automatically if idle", "Initialize the class if this is being called with Spring.", "Recycles the Renderer getting it from the tag associated to the renderer root view. This view\nis not used with RecyclerView widget.\n\n@param convertView that contains the tag.\n@param content to be updated in the recycled renderer.\n@return a recycled renderer.", "Set the specular intensity of the light.\n\nThis designates the color of the specular reflection.\nIt is multiplied by the material specular color to derive\nthe hue of the specular reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code specular_intensity} to control the specular intensity.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Parse an extended attribute currency value.\n\n@param value string representation\n@return currency value" ]
public TileMap getCapabilities(TmsLayer layer) throws TmsLayerException { try { // Create a JaxB unmarshaller: JAXBContext context = JAXBContext.newInstance(TileMap.class); Unmarshaller um = context.createUnmarshaller(); // Find out where to retrieve the capabilities and unmarshall: if (layer.getBaseTmsUrl().startsWith(CLASSPATH)) { String location = layer.getBaseTmsUrl().substring(CLASSPATH.length()); if (location.length() > 0 && location.charAt(0) == '/') { // classpath resources should not start with a slash, but they often do location = location.substring(1); } ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (null == cl) { cl = getClass().getClassLoader(); // NOSONAR fallback from proper behaviour for some environments } InputStream is = cl.getResourceAsStream(location); if (null != is) { try { return (TileMap) um.unmarshal(is); } finally { try { is.close(); } catch (IOException ioe) { // ignore, just closing the stream } } } throw new TmsLayerException(TmsLayerException.COULD_NOT_FIND_FILE, layer.getBaseTmsUrl()); } // Normal case, find the URL and unmarshal: return (TileMap) um.unmarshal(httpService.getStream(layer.getBaseTmsUrl(), layer)); } catch (JAXBException e) { throw new TmsLayerException(e, TmsLayerException.COULD_NOT_READ_FILE, layer.getBaseTmsUrl()); } catch (IOException e) { throw new TmsLayerException(e, TmsLayerException.COULD_NOT_READ_FILE, layer.getBaseTmsUrl()); } }
[ "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." ]
[ "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself.", "Creates a rectangular matrix which is zero except along the diagonals.\n\n@param numRows Number of rows in the matrix.\n@param numCols NUmber of columns in the matrix.\n@return A matrix with diagonal elements equal to one.", "Updates this BoxJSONObject using the information in a JSON object.\n@param jsonObject the JSON object containing updated information.", "To be called at node startup - it purges all job instances associated to this node.\n\n@param cnx\n@param node", "Append the text at the end of the File, using a specified encoding.\n\n@param file a File\n@param text the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Returns the current revision.", "Adds a string reference, a class reference, a method type, a module\nor a package to the constant pool of the class being build.\nDoes nothing if the constant pool already contains a similar item.\n\n@param type\na type among STR, CLASS, MTYPE, MODULE or PACKAGE\n@param value\nstring value of the reference.\n@return a new or already existing reference item.", "Returns the text content to any HTML.\n\n@param html the HTML\n\n@return the text content", "Returns a Span that covers all rows beginning with a prefix String parameters will be encoded\nas UTF-8" ]
public static final List<String> listProjectNames(File directory) { List<String> result = new ArrayList<String>(); File[] files = directory.listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toUpperCase().endsWith("STR.P3"); } }); if (files != null) { for (File file : files) { String fileName = file.getName(); String prefix = fileName.substring(0, fileName.length() - 6); result.add(prefix); } } Collections.sort(result); return result; }
[ "Retrieve a list of the available P3 project names from a directory.\n\n@param directory directory containing P3 files\n@return list of project names" ]
[ "Scroll to the next page. To process the scrolling by pages LayoutScroller must be constructed\nwith a pageSize greater than zero.\n@return the new current item after the scrolling processed.", "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation terminates.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param <T> the return type of the caller\n@param resourceType the java.lang.reflect.Type of the resource.\n@return the terminal response for the operation.\n@throws CloudException REST exception\n@throws InterruptedException interrupted exception\n@throws IOException thrown by deserialization", "Adds an orthographic camera constructed from the designated\nperspective camera to describe the shadow projection.\nThe field of view and aspect ration of the perspective\ncamera are used to obtain the view volume of the\northographic camera. This type of camera is used\nfor shadows generated by direct lights at infinite distance.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@return Orthographic camera to use for shadow casting\n@see GVRDirectLight", "Converts a Map to an array of objects, adding only those entries whose key is in the nameMapping array.\n\n@param values\nthe Map of values to convert\n@param nameMapping\nthe keys to extract from the Map (elements in the target array will be added in this order)\n@return the array of Objects\n@throws NullPointerException\nif values or nameMapping is null", "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", "Reads a line from the input stream, where a line is terminated by \\r, \\n, or \\r\\n\n@param trim whether to trim trailing \\r and \\ns", "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", "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 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}" ]
protected boolean isPrefixBlock(long divisionValue, long upperValue, int divisionPrefixLen) { if(divisionPrefixLen == 0) { return divisionValue == 0 && upperValue == getMaxValue(); } long ones = ~0L; long divisionBitMask = ~(ones << getBitCount()); long divisionPrefixMask = ones << (getBitCount() - divisionPrefixLen); long divisionNonPrefixMask = ~divisionPrefixMask; return testRange(divisionValue, upperValue, upperValue, divisionPrefixMask & divisionBitMask, divisionNonPrefixMask); }
[ "Returns whether the division range includes the block of values for its prefix length" ]
[ "Checks whether an uploaded file can be created in the VFS, and throws an exception otherwise.\n\n@param cms the current CMS context\n@param config the form configuration\n@param name the file name of the uploaded file\n@param size the size of the uploaded file\n\n@throws CmsUgcException if something goes wrong", "Add the operation to add the local host definition.", "Sets the Red, Green, and Blue color variables. This will automatically populate the Hue, Saturation and Brightness and Hexadecimal fields, too.\n\nThe RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue.\n@param red strength - valid range is 0-255\n@param green strength - valid range is 0-255\n@param blue strength - valid range is 0-255\n@throws java.lang.Exception Exception if the Red, Green or Blue variables are out of range.", "Returns true if\n- includeTags is not empty and tag is in includeTags\n- includeTags is empty and tag is not in excludeTags\n@param tags Hint tags\n@param includeTags Include tags\n@param excludeTags Exclude tags\n@return has tag match", "Little helper function that recursivly deletes a directory.\n\n@param dir The directory", "get the type signature corresponding to given class\n\n@param clazz\n@return", "Factory method to do the setup and transformation of inputs\n\n@param matrix a {@link TestMatrixArtifact} loaded by ProctorLoader\n@param loadResult a {@link ProctorLoadResult} which contains result of validation of test definition\n@param functionMapper a given el {@link FunctionMapper}\n@return constructed Proctor object", "Removes a node meta data entry.\n\n@param key - the meta data key\n@throws GroovyBugError if the key is null", "Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.\n\n@param s a Penn TreeBank POS tag." ]
public static Command newQuery(String identifier, String name, Object[] arguments) { return getCommandFactoryProvider().newQuery( identifier, name, arguments ); }
[ "Executes a query using the given parameters. The query results will be added to the\nExecutionResults using the given identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@param arguments\nThe arguments to be used for the query parameters\n@return" ]
[ "Obtains a Accounting local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Loads a CRF classifier from a filepath, and returns it.\n\n@param file\nFile to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Generates a change event for a local insert of the given document in the given namespace.\n\n@param namespace the namespace where the document was inserted.\n@param document the document that was inserted.\n@return a change event for a local insert of the given document in the given namespace.", "Not exposed directly - the Query object passed as parameter actually contains results...", "Use this API to fetch all the appflowpolicylabel resources that are configured on netscaler.", "Create a unique signature for this shader.\nThe signature for simple shaders is just the class name.\nFor the more complex shaders generated by GVRShaderTemplate\nthe signature includes information about the vertex attributes,\nuniforms, textures and lights used by the shader variant.\n\n@param defined\nnames to be defined for this shader\n@return string signature for shader\n@see GVRShaderTemplate", "Logs to Info if the debug level is greater than or equal to 1.", "Use this API to fetch systemsession resources of given names .", "Counts the amount of 'ch' at the start of this line optionally ignoring\nspaces.\n\n@param ch\nThe char to count.\n@param allowSpaces\nWhether to allow spaces or not\n@return Number of characters found.\n@since 0.12" ]
public SimplifySpanBuild appendMultiClickable(SpecialClickableUnit specialClickableUnit, Object... specialUnitOrStrings) { processMultiClickableSpecialUnit(false, specialClickableUnit, specialUnitOrStrings); return this; }
[ "append multi clickable SpecialUnit or String\n\n@param specialClickableUnit SpecialClickableUnit\n@param specialUnitOrStrings Unit Or String\n@return" ]
[ "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.", "Determines the median value of the data set.\n@return If the number of elements is odd, returns the middle element.\nIf the number of elements is even, returns the midpoint of the two\nmiddle elements.\n@since 1.0.1", "Get the multicast socket address.\n\n@return the multicast address", "Naive implementation of the difference in days between two dates", "alert, prompt, and confirm behave as if the OK button is always clicked.", "Generate random velocities for every particle. The direction is obtained by assuming\nthe position of a particle as a vector. This normalised vector is scaled by\nthe speed range.\n\n@return", "submit the adminClient after usage is completed.\nBehavior is undefined, if checkin is called with objects not retrieved\nfrom checkout.\n\n@param client AdminClient retrieved from checkout", "Sets the transformations to be applied to the shape before indexing it.\n\n@param transformations the sequence of transformations\n@return this with the specified sequence of transformations", "Select this tab item." ]
public static protocoludp_stats get(nitro_service service) throws Exception{ protocoludp_stats obj = new protocoludp_stats(); protocoludp_stats[] response = (protocoludp_stats[])obj.stat_resources(service); return response[0]; }
[ "Use this API to fetch the statistics of all protocoludp_stats resources that are configured on netscaler." ]
[ "Starts data synchronization in a background thread.", "Returns a flag indicating if also unreleased resources should be found.\n@return A flag indicating if also unreleased resources should be found.", "Reports a given exception as a RuntimeException, since the interface does\nnot allow us to throw checked exceptions directly.\n\n@param e\nthe exception to report\n@throws RuntimeException\nin all cases", "Read calendar hours and exception data.\n\n@param calendar parent calendar\n@param row calendar hours and exception data", "Overloads the left shift operator to provide syntactic sugar for appending to a StringBuilder.\n\n@param self a StringBuilder\n@param value an Object\n@return the original StringBuilder\n@since 1.8.2", "Mark for creation all newly introduced dependent references.\nMark for deletion all nullified dependent references.\n@return the list of created objects", "Used to load a classifier stored as a resource inside a jar file. THIS\nFUNCTION WILL ONLY WORK IF THE CODE WAS LOADED FROM A JAR FILE WHICH HAS A\nSERIALIZED CLASSIFIER STORED INSIDE IT.\n\n@param resourceName\nName of clasifier resource inside the jar file.\n@return A CRFClassifier stored in the jar file", "Process each regex group matched substring of the given CharSequence. If the closure\nparameter takes one argument, an array with all match groups is passed to it.\nIf the closure takes as many arguments as there are match groups, then each\nparameter will be one match group.\n\n@param self the source CharSequence\n@param regex a Regex CharSequence\n@param closure a closure with one parameter or as much parameters as groups\n@return the source CharSequence\n@see #eachMatch(String, String, groovy.lang.Closure)\n@since 1.8.2", "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@param target\nthe class\n@return\ntrue if the class node 'is a' target" ]
public Stats getPhotostreamStats(Date date) throws FlickrException { return getStats(METHOD_GET_PHOTOSTREAM_STATS, null, null, date); }
[ "Get the number of views, comments and favorites on a photostream for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"" ]
[ "Get a new token.\n\n@return 14 character String", "Convenience extension, to generate traced code.", "2-D Complex Gabor function.\n\n@param x X axis coordinate.\n@param y Y axis coordinate.\n@param wavelength Wavelength.\n@param orientation Orientation.\n@param phaseOffset Phase offset.\n@param gaussVariance Gaussian variance.\n@param aspectRatio Aspect ratio.\n@return Gabor response.", "Returns the first product found in the vector of calibration products\nwhich matches the given symbol, where symbol is the String set in\nthe calibrationSpecs.\n\n@param symbol A given symbol string.\n@return The product associated with that symbol.", "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", "Format event to string buffer.\n\n@param sbuf\nstring buffer to receive formatted event, may not be null.\n@param event\nevent to format, may not be null.", "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation of column data\n@throws MPXJException", "set the specified object at index\n\n@param object The object to add at the end of the array.", "Creates a Document that can be passed to the MongoDB batch insert function" ]
public String getValueForDisplayValue(final String key) { if (mapDisplayValuesToValues.containsKey(key)) { return mapDisplayValuesToValues.get(key); } return key; }
[ "Returns real unquoted value for a DisplayValue\n@param key\n@return" ]
[ "Check that the parameter array has at least as many elements as it\nshould.\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 minimumLength\nThe minimum array length", "Returns the perma link for the current page based on the URI and detail content id stored in the CmsObject passed as a parameter.<p<\n\n@param cms the CMS context to use to generate the permalink\n\n@return the permalink", "Create the voldemort key and value from the input Avro record by\nextracting the key and value and map it out for each of the responsible\nvoldemort nodes\n\n\nThe output value is the node_id & partition_id of the responsible node\nfollowed by serialized value", "Provides the results of a QR decomposition. These will be modified by adding or removing\nrows from the original 'A' matrix.\n\n@param Q The Q matrix which is to be modified. Is modified later and reference saved.\n@param R The R matrix which is to be modified. Is modified later and reference saved.", "Post-configure retreival of server engine.", "Magnitude of complex number.\n\n@param z Complex number.\n@return Magnitude of complex number.", "Registers the resource to the parent deployment resource. The model returned is that of the resource parameter.\n\n@param subsystemName the subsystem name\n@param resource the resource to be used for the subsystem on the deployment\n\n@return the model\n\n@throws java.lang.IllegalStateException if the subsystem resource already exists", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "Uses data from a bar to populate a task.\n\n@param row bar data\n@param task task to populate" ]
private boolean tryCustomErrorPage(CmsObject cms, HttpServletRequest req, HttpServletResponse res, int errorCode) { String siteRoot = OpenCms.getSiteManager().matchRequest(req).getSiteRoot(); CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(siteRoot); if (site != null) { // store current site root and URI String currentSiteRoot = cms.getRequestContext().getSiteRoot(); String currentUri = cms.getRequestContext().getUri(); try { if (site.getErrorPage() != null) { String rootPath = site.getErrorPage(); if (loadCustomErrorPage(cms, req, res, rootPath)) { return true; } } String rootPath = CmsStringUtil.joinPaths(siteRoot, "/.errorpages/handle" + errorCode + ".html"); if (loadCustomErrorPage(cms, req, res, rootPath)) { return true; } } finally { cms.getRequestContext().setSiteRoot(currentSiteRoot); cms.getRequestContext().setUri(currentUri); } } return false; }
[ "Tries to load a site specific error page. If\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param errorCode the error code to display\n@return a flag, indicating if the custom error page could be loaded." ]
[ "Checks if the method being invoked should be wrapped by a service.\nIt looks the method name up in the methodList. If its in the list, then\nthe method should be wrapped. If the list is null, then all methods\nare wrapped.\n\n@param methodName The method being called\n\n@return boolean", "Sets the left and right frame margin.\n@param frameLeft margin\n@param frameRight margin\n@return this to allow chaining", "Obtains the collection of server groups defined for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "Sends the error to responder.", "Closes off all connections in all partitions.", "Get a collection of recent photos.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param extras\nSet of extra-fields\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return A collection of Photo objects\n@throws FlickrException", "This deals with the CoNLL files for different languages which have\nbetween 2 and 5 columns on non-blank lines.\n\n@param line A line of CoNLL input\n@return The constructed token", "This method only overrides properties that are specific from Cube like await strategy or before stop events.\n\n@param overrideDockerCompositions\nthat contains information to override.", "a simple contains helper method, checks if array contains a numToCheck\n\n@param array array of ints\n@param numToCheck value to find\n@return True if found, false otherwise" ]
private boolean isWorkingDate(Date date, Day day) { ProjectCalendarDateRanges ranges = getRanges(date, null, day); return ranges.getRangeCount() != 0; }
[ "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag" ]
[ "Enables lifecycle callbacks for Android devices\n@param application App's Application object", "Transforms an input String into HTML using the given Configuration.\n\n@param input\nThe String to process.\n@param configuration\nThe Configuration.\n@return The processed String.\n@since 0.7\n@see Configuration", "read message from file\n\n@param readOffset offset in this channel(file);not the message offset\n@param size max data size\n@return messages sharding data with file log\n@throws IOException reading file failed", "Generates a HashMap used to store expanded state for items in the list\non configuration change or whenever onResume is called.\n\n@return A HashMap containing the expanded state of all parents", "Deletes a vertex from this list.", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Returns the dimension of the type of the current member.\n\n@return The member dimension\n@exception XDocletException if an error occurs\n@see OjbMemberTagsHandler#getMemberType()", "Creates a Blob holding a single-sheet spreadsheet with a pivot of the domain objects. The sheet name is derived from the\nclass name.\n\n<p>\nMinimal requirements for the domain object are:\n</p>\n<ul>\n<li>\nOne property has annotation {@link PivotRow} and will be used as row identifier in left column of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotColumn}. Its values will be used in columns of pivot.\nEmpty values are supported.\n</li>\n<li>\nAt least one property has annotation {@link PivotValue}. Its values will be distributed in the pivot.\n</li>\n</ul>", "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" ]
public ParsedWord pollParsedWord() { if(hasNextWord()) { //set correct next char if(parsedLine.words().size() > (word+1)) character = parsedLine.words().get(word+1).lineIndex(); else character = -1; return parsedLine.words().get(word++); } else return new ParsedWord(null, -1); }
[ "Polls the next ParsedWord from the stack.\n\n@return next ParsedWord" ]
[ "Performs a matrix multiplication between inner block matrices.\n\n(m , o) += (m , n) * (n , o)", "a small static helper to set the color to a GradientDrawable null save\n\n@param colorHolder\n@param ctx\n@param gradientDrawable", "Adds the value to the Collection mapped to by the key.", "Insert an entity into the datastore.\n\nThe entity must have no ids.\n\n@return The key for the inserted entity.\n@throws DatastoreException on error", "Use this API to fetch a appflowglobal_binding resource .", "Finds for the given project.\n\n@param name project name\n@return given project or an empty {@code Optional} if project does not exist\n@throws IllegalArgumentException", "Removes the specified list of users from following the project, this will not affect project membership status.\nReturns the updated project record.\n\n@param project The project to remove followers from.\n@return Request object", "Fling the content\n\n@param velocityX The initial velocity in the X direction. Positive numbers mean that the\nfinger/cursor is moving to the left on the screen, which means we want to\nscroll towards the beginning.\n@param velocityY The initial velocity in the Y direction. Positive numbers mean that the\nfinger/cursor is moving down the screen, which means we want to scroll\ntowards the top.\n@param velocityZ TODO: Z-scrolling is currently not supported\n@return", "Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction" ]
public ReferrerList getPhotoReferrers(Date date, String domain, String photoId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTO_REFERRERS, domain, "photo_id", photoId, date, perPage, page); }
[ "Get a list of referrers from a given domain to a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html\"" ]
[ "Register the given object under the package name of the object's class\nwith the given type name.\n\nthis method using the platform mbean server as returned by\nManagementFactory.getPlatformMBeanServer()\n\n@param typeName The name of the type to register\n@param obj The object to register as an mbean", "Initializes communication with the Z-Wave controller stick.", "Get the context for the specified photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@return The PhotoContext\n@throws FlickrException", "This method maps the task unique identifiers to their index number\nwithin the FixedData block.\n\n@param fieldMap field map\n@param taskFixedMeta Fixed meta data for this task\n@param taskFixedData Fixed data for this task\n@param taskVarData Variable task data\n@return Mapping between task identifiers and block position", "Calculate the units percent complete.\n\n@param row task data\n@return percent complete", "A convenience method for creating an immutable map.\n\n@param self a Map\n@return an immutable Map\n@see java.util.Collections#unmodifiableMap(java.util.Map)\n@since 1.0", "Set default values for the TimeAndSizeRollingAppender appender\n\n@param appender", "Get a property as a double or defaultValue.\n\n@param key the property name\n@param defaultValue the default value", "Adds a foreignkey to this table.\n\n@param relationName The name of the relation represented by the foreignkey\n@param remoteTable The referenced table\n@param localColumns The local columns\n@param remoteColumns The remote columns" ]
public String addPostRunDependent(FunctionalTaskItem dependent) { Objects.requireNonNull(dependent); return this.taskGroup().addPostRunDependent(dependent); }
[ "Add a \"post-run\" dependent task item for this task item.\n\n@param dependent the \"post-run\" dependent task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group" ]
[ "Returns the master mode's editor state for editing a bundle with descriptor.\n@return the master mode's editor state for editing a bundle with descriptor.", "Remove any device announcements that are so old that the device seems to have gone away.", "Use this API to fetch statistics of appfwprofile_stats resource of given name .", "Determines if still WRITING or COMPLETE.\n\n@param itemTag mad libs style string to insert into progress message.\n@return state of stream request handler", "Identifies the canonical type of an object heuristically.\n\n@return the canonical type identifier of the object's class\naccording to Jackson's type format (see {@link TypeFactory#constructFromCanonical(String)})", "A modified version of abs that always returns a non-negative value.\nMath.abs returns Integer.MIN_VALUE if a == Integer.MIN_VALUE and this\nmethod returns Integer.MAX_VALUE in that case.", "Returns the ARGB components for the pixel at the given coordinates\n\n@param x the x coordinate of the pixel component to grab\n@param y the y coordinate of the pixel component to grab\n@return an array containing ARGB components in that order.", "Method generates abbreviated exception message.\n\n@param message\nOriginal log message\n@param throwable\nThe attached throwable\n@return Abbreviated exception message", "Send a packet to the target device telling it to load the specified track from the specified source player.\n\n@param target an update from the player that you want to have load a track\n@param rekordboxId the identifier of a track within the source player's rekordbox database\n@param sourcePlayer the device number of the player from which the track should be loaded\n@param sourceSlot the media slot from which the track should be loaded\n@param sourceType the type of track to be loaded\n\n@throws IOException if there is a problem sending the command\n@throws IllegalStateException if the {@code VirtualCdj} is not active" ]
public static final String printDuration(Duration duration) { String result = null; if (duration != null) { result = duration.getDuration() + " " + printTimeUnits(duration.getUnits()); } return result; }
[ "Retrieve a duration in the form required by Phoenix.\n\n@param duration Duration instance\n@return formatted duration" ]
[ "Get the Upper triangular factor.\n\n@return U.", "Resolve a path from the rootPath checking that it doesn't go out of the rootPath.\n@param rootPath the starting point for resolution.\n@param path the path we want to resolve.\n@return the resolved path.\n@throws IllegalArgumentException if the resolved path is out of the rootPath or if the resolution failed.", "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.", "disables the current active id, enables the new one selected\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@param active true to make client active, false to make client inactive\n@throws Exception exception", "Gets the i-th half-edge associated with the face.\n\n@param i\nthe half-edge index, in the range 0-2.\n@return the half-edge", "Support the subscript operator for CharSequence.\n\n@param text a CharSequence\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Check the version to assure it is allowed.\n\n@param pluginName plugin name which needs the dependency\n@param dependency dependency which needs to be verified\n@param requestedVersion requested/minimum version\n@param availableVersion available version\n@return version check problem or empty string when all is fine", "Turn this profile on or off\n\n@param enabled true or false\n@return true on success, false otherwise", "Use this API to fetch appflowpolicylabel resource of given name ." ]
@Override public void run() { try { startBarrier.await(); int idleCount = 0; while (!isRunning.compareAndSet(idleCount > lingerIterations && pidToProcessMap.isEmpty(), false)) { idleCount = (!shutdown && process()) ? 0 : (idleCount + 1); } } catch (Exception e) { // TODO: how to handle this error? isRunning.set(false); } }
[ "The primary run loop of the event processor." ]
[ "Parse a duration in minutes form a number of hours.\n\n@param value String representation\n@return Integer instance", "Creates and returns a matrix which is idential to this one.\n\n@return A new identical matrix.", "Parse the JSON string and return the object. The string is expected to be the JSON print data from the\nclient.\n\n@param spec the JSON formatted string.\n@return The encapsulated JSON object", "This method writes extended attribute data for an assignment.\n\n@param xml MSPDI assignment\n@param mpx MPXJ assignment", "Set the gamma levels.\n@param rGamma the gamma level for the red channel\n@param gGamma the gamma level for the blue channel\n@param bGamma the gamma level for the green channel\n@see #getGamma", "the 1st request from the manager.", "Unregister the mbean with the given name from the platform mbean server\n\n@param name The name of the mbean to unregister", "Validate the Combination filter field in Multi configuration jobs", "We have received an update that invalidates the waveform detail for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no waveform preview for the associated player" ]
protected boolean hasKey() { boolean result = false; String requestURI = this.request.getUri(); parseKeys(requestURI); if(this.parsedKeys != null) { result = true; } else { logger.error("Error when validating request. No key specified."); RestErrorHandler.writeErrorResponse(this.messageEvent, HttpResponseStatus.BAD_REQUEST, "Error: No key specified !"); } return result; }
[ "Retrieve and validate the key from the REST request.\n\n@return true if present, false if missing" ]
[ "Set the color at \"index\" to \"color\". Entries are interpolated linearly from\nthe existing entries at \"firstIndex\" and \"lastIndex\" to the new entry.\nfirstIndex < index < lastIndex must hold.\n@param index the position to set\n@param firstIndex the position of the first color from which to interpolate\n@param lastIndex the position of the second color from which to interpolate\n@param color the color to set", "Map a single ResultSet row to a T instance.\n\n@throws SQLException", "Get the bean if it exists in the contexts.\n\n@return An instance of the bean\n@throws ContextNotActiveException if the context is not active\n@see javax.enterprise.context.spi.Context#get(BaseBean, boolean)", "Sets the left padding character for all cells in the row.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "Entry point for the example.\n\n@param args Command-line arguments for the example. To use samplemachine.xml from resources, send\nno arguments. To use other file, send a filename without xml extension).", "Create a document that parses the tile's labelFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@param labelStyleInfo\nlabel style info\n@return graphics document\n@throws RenderException\ncannot render", "The length of the region left to the completion offset that is part of the\nreplace region.", "Use this API to update autoscaleprofile resources.", "Checks if the date is a holiday\n\n@param dateString the date\n@return true if it is a holiday, false otherwise" ]
public void fatal(Throwable throwable, String msg, Object[] argArray) { logIfEnabled(Level.FATAL, throwable, msg, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, argArray); }
[ "Log a fatal message with a throwable." ]
[ "Initializes custom prefix for all junit4 properties. This must be consistent\nacross all junit4 invocations if done from the same classpath. Use only when REALLY needed.", "EAP 7.0", "Add a resource assignment which has been populated elsewhere.\n\n@param assignment resource assignment", "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference", "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "This method is called to format a task type.\n\n@param value task type value\n@return formatted task type", "Returns the zero rates for a given vector maturities.\n\n@param maturities The given maturities.\n@return The zero rates.", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.", "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON object or null if something goes wrong." ]
@SuppressWarnings("WeakerAccess") public int segmentHeight(final int segment, final boolean front) { final ByteBuffer bytes = getData(); if (isColor) { final int base = segment * 6; final int frontHeight = Util.unsign(bytes.get(base + 5)); if (front) { return frontHeight; } else { return Math.max(frontHeight, Math.max(Util.unsign(bytes.get(base + 3)), Util.unsign(bytes.get(base + 4)))); } } else { return getData().get(segment * 2) & 0x1f; } }
[ "Determine the height of the preview given an index into it.\n\n@param segment the index of the waveform preview segment to examine\n@param front if {@code true} the height of the front (brighter) segment of a color waveform preview is returned,\notherwise the height of the back (dimmer) segment is returned. Has no effect for blue previews.\n\n@return a value from 0 to 31 representing the height of the waveform at that segment, which may be an average\nof a number of values starting there, determined by the scale" ]
[ "Creates a scenario with 3 different steps classes.\n\nTo share state between the different steps instances use the\n{@link com.tngtech.jgiven.annotation.ScenarioState} annotation\n\n@param givenClass the Given steps class\n@param whenClass the When steps class\n@param thenClass the Then steps class\n@return the new scenario", "Get the status of the upload session. It contains the number of parts that are processed so far,\nthe total number of parts required for the commit and expiration date and time of the upload session.\n@return the status.", "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@param target\nthe class\n@return\ntrue if the class node 'is a' target", "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance", "Retrieves and validates the content length from the REST request.\n\n@return true if has content length", "Create constant name.\n@param state STATE_UNCHANGED, STATE_CHANGED, STATE_NEW or STATE_DELETED.\n@return cconstanname as String", "1-D Gabor function.\n\n@param x Value.\n@param mean Mean.\n@param amplitude Amplitude.\n@param position Position.\n@param width Width.\n@param phase Phase.\n@param frequency Frequency.\n@return Gabor response.", "Returns the version document of the given document, if any; returns null otherwise.\n@param document the document to get the version from.\n@return the version of the given document, if any; returns null otherwise.", "Update the installed identity using the modified state from the modification.\n\n@param name the identity name\n@param modification the modification\n@param state the installation state\n@return the installed identity" ]
public static csvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_copolicy_binding obj = new csvserver_copolicy_binding(); obj.set_name(name); csvserver_copolicy_binding response[] = (csvserver_copolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch csvserver_copolicy_binding resources of given name ." ]
[ "Create a deep copy.\n\n@param bindAddress overwrites bind address when creating deep copy.\n@return a copy of the server setup configuration.", "Gets the first value for the key.\n\n@param key the key to check for the value\n\n@return the value or {@code null} if the key is not found or the value was {@code null}", "Specifies the base URI of this conversion server.\n\n@param baseUri The URI under which this remote conversion server is reachable.\n@return This builder instance.", "Use this API to kill systemsession.", "Writes all data that was collected about classes to a json file.", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Enable a custom response\n\n@param custom custom response\n@param path_id path ID of the response\n@param client_uuid client UUID\n@throws Exception exception", "Get a collection of methods declared on this object by method name.\n\n@param name the name of the method\n@return the (possibly empty) collection of methods with the given name", "Get PhoneNumber object\n\n@return PhonenUmber | null on error" ]
public void setRefreshing(boolean refreshing) { if (refreshing && mRefreshing != refreshing) { // scale and show mRefreshing = refreshing; int endTarget = 0; if (!mUsingCustomStart) { switch (mDirection) { case BOTTOM: endTarget = getMeasuredHeight() - (int) (mSpinnerFinalOffset); break; case TOP: default: endTarget = (int) (mSpinnerFinalOffset - Math.abs(mOriginalOffsetTop)); break; } } else { endTarget = (int) mSpinnerFinalOffset; } setTargetOffsetTopAndBottom(endTarget - mCurrentTargetOffsetTop, true /* requires update */); mNotify = false; startScaleUpAnimation(mRefreshListener); } else { setRefreshing(refreshing, false /* notify */); } }
[ "Notify the widget that refresh state has changed. Do not call this when\nrefresh is triggered by a swipe gesture.\n\n@param refreshing Whether or not the view should show refresh progress." ]
[ "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", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "Removes columns from the matrix.\n\n@param A Matrix. Modified\n@param col0 First column\n@param col1 Last column, inclusive.", "Use this API to add gslbsite resources.", "Converts to a link-local Ipv6 address. Any MAC prefix length is ignored. Other elements of this address section are incorporated into the conversion.\nThis will provide the latter 4 segments of an IPv6 address, to be paired with the link-local IPv6 prefix of 4 segments.\n\n@return", "Un-serialize a Json into Module\n@param module String\n@return Module\n@throws IOException", "Inflate the main layout used to render videos in the list view.\n\n@param inflater LayoutInflater service to inflate.\n@param parent ViewGroup used to inflate xml.\n@return view inflated.", "Suite prologue." ]
public static void serialize(final File folder, final String content, final String fileName) throws IOException { if (!folder.exists()) { folder.mkdirs(); } final File output = new File(folder, fileName); try ( final FileWriter writer = new FileWriter(output); ) { writer.write(content); writer.flush(); } catch (Exception e) { throw new IOException("Failed to serialize the notification in folder " + folder.getPath(), e); } }
[ "Serialize a content into a targeted file, checking that the parent directory exists.\n\n@param folder File\n@param content String\n@param fileName String" ]
[ "Create a WebMBeanAdaptor for a specified MBean name.\n@param mBeanName the MBean name (can be URL-encoded).\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the created WebMBeanAdaptor.\n@throws JMException Java Management Exception\n@throws UnsupportedEncodingException if the encoding is not supported.", "Try to get a system property for obsolete keys. The value is automatically converted - a runtime exception may be thrown during conversion.\n\n@return all the properties whose system property keys were different in previous versions", "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle", "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted.", "Helper method to send message on outputStream and account for network\ntime stats.\n\n@param outputStream\n@param message\n@throws IOException", "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bundle\n@param locale the preferred locale\n@return the configured bundle or, if not found, the default bundle.", "A specific, existing task can be deleted by making a DELETE request on the\nURL for that task. Deleted tasks go into the \"trash\" of the user making\nthe delete request. Tasks can be recovered from the trash within a period\nof 30 days; afterward they are completely removed from the system.\n\nReturns an empty data record.\n\n@param task The task to delete.\n@return Request object", "Gets the proper modulus operation.\n\n@param x Integer.\n@param m Modulo.\n@return Modulus.", "Use this API to fetch all the dbdbprofile resources that are configured on netscaler." ]
public PBKey getPBKey() { if (pbKey == null) { this.pbKey = new PBKey(this.getJcdAlias(), this.getUserName(), this.getPassWord()); } return pbKey; }
[ "Return a key to identify the connection descriptor." ]
[ "Requests Change notifications of feed type normal.\n\n@return {@link ChangesResult} encapsulating the normal feed changes", "Use this API to fetch the statistics of all nspbr6_stats resources that are configured on netscaler.", "Verify that the given channels are all valid.\n\n@param channels\nthe given channels", "Adds parameters contained in the annotation into the annotation type reference\n\n@param typeRef\n@param node", "We will always try to gather as many results as possible and never throw an exception.\n\nTODO: Make MemberResponse hold an exception that we can populate if something bad happens so we always\nget to return something for a member in order to indicate a failure. Getting the result when there\nis an error should throw an exception.\n\n@param execSvc\n@param members\n@param callable\n@param maxWaitTime - a value of 0 indicates forever\n@param unit\n@return", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Add statistics about a created map.\n\n@param mapContext the\n@param mapValues the", "Checks if is file exist.\n\n@param filePath\nthe file path\n@return true, if is file exist", "Returns an URI which represents the statement rank in a triple.\n\n@param rank\n@return" ]
public static boolean validate(Statement stmt) { try { Connection conn = stmt.getConnection(); if (conn == null) return false; if (!conn.isClosed() && conn.isValid(10)) return true; stmt.close(); conn.close(); } catch (SQLException e) { // this may well fail. that doesn't matter. we're just making an // attempt to clean up, and if we can't, that's just too bad. } return false; }
[ "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." ]
[ "This methods enhances the objects loaded by a broker query\nwith a JDO StateManager an brings them under JDO control.\n@param pojos the OJB pojos as obtained by the broker\n@return the collection of JDO PersistenceCapable instances", "This loads plugin file information into a hash for lazy loading later on\n\n@param pluginDirectory path of plugin\n@throws Exception exception", "Puts as many of the given bytes as possible into this buffer.\n\n@return number of bytes actually put into this buffer (0 if the buffer is full)", "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed.", "FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to close the connection in this method, because the TxManager does prepare for commit\nafter this method and all used DataSource-connections have to be closed before.\n\n@see javax.transaction.Synchronization", "Compares two columns given by their names.\n\n@param objA The name of the first column\n@param objB The name of the second column\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "Deletes a chain of vertices from this list.", "Lock the given region. Does not report failures." ]
public Range<App> listApps(String range) { return connection.execute(new AppList(range), apiKey); }
[ "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps" ]
[ "Deletes all of the Directories in root that match the FileFilter\n\n@param root\n@param filter", "Complete timing the operation with the given identifier. If you had not previously started a timing operation with this identifier, then this\nwill effectively be a noop.", "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", "Return the BundleCapability of a bundle exporting the package packageName.\n\n@param context The BundleContext\n@param packageName The package name\n@return the BundleCapability of a bundle exporting the package packageName", "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>.", "Creates a \"delta clone\" of this Map, where only the differences are\nrepresented.", "Creates metadata on this folder using a specified template.\n\n@param templateName the name of the metadata template.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Output method that sends a subscription confirmation for the subscriber to avoid DoS attacks, or false subscription.\n\n@param sr\n@return True case the subscription was confirmed, or False otherwise\n@throws org.ow2.chameleon.fuchsia.push.base.hub.exception.SubscriptionOriginVerificationException", "Creates a code location URL from a class\n\n@param codeLocationClass the class\n@return A URL created from Class\n@throws InvalidCodeLocation if URL creation fails" ]
public static Method findGetMethod(Field field, DatabaseType databaseType, boolean throwExceptions) throws IllegalArgumentException { Method fieldGetMethod = findMethodFromNames(field, true, throwExceptions, methodFromField(field, "get", databaseType, true), methodFromField(field, "get", databaseType, false), methodFromField(field, "is", databaseType, true), methodFromField(field, "is", databaseType, false)); if (fieldGetMethod == null) { return null; } if (fieldGetMethod.getReturnType() != field.getType()) { if (throwExceptions) { throw new IllegalArgumentException("Return type of get method " + fieldGetMethod.getName() + " does not return " + field.getType()); } else { return null; } } return fieldGetMethod; }
[ "Find and return the appropriate getter method for field.\n\n@return Get method or null (or throws IllegalArgumentException) if none found." ]
[ "Return a copy of the new fragment and set the variable above.", "when divisionPrefixLen is null, isAutoSubnets has no effect", "Resolve the targeted license thanks to the license ID\nReturn null if no license is matching the licenseId\n\n@param licenseId\n@return DbLicense", "Deletes this collaboration.", "This main method provides an easy command line tool to compare two\nschemas.", "Use this API to add clusterinstance 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>", "Use this API to flush cachecontentgroup resources.", "Find the latest task finish date. We treat this as the\nfinish date for the project.\n\n@return finish date" ]
private String getInitials(String name) { String result = null; if (name != null && name.length() != 0) { StringBuilder sb = new StringBuilder(); sb.append(name.charAt(0)); int index = 1; while (true) { index = name.indexOf(' ', index); if (index == -1) { break; } ++index; if (index < name.length() && name.charAt(index) != ' ') { sb.append(name.charAt(index)); } ++index; } result = sb.toString(); } return result; }
[ "Convert a name into initials.\n\n@param name source name\n@return initials" ]
[ "Return a list of 'Files' of downloaded or uploaded files. Filters build files without local and remote paths.\n\n@param buildFilesStream - Stream of build Artifacts or Dependencies.\n@return - List of build files.", "Retrieves a field type from a location in a data block.\n\n@param data data block\n@param offset offset into data block\n@return field type", "Use this API to fetch sslpolicy_lbvserver_binding resources of given name .", "Read the given source byte array, then overwrite this buffer's contents\n\n@param src source byte array\n@param srcOffset offset in source byte array to read from\n@param destOffset offset in this buffer to read to\n@param length max number of bytes to read\n@return the number of bytes read", "Converts an image to a RGBA direct color model using a workaround via buffered image directly calling the\nColorConvert operation fails for unknown reasons ?!\n\n@param img image to convert\n@return converted image", "Apply a filter to the list of all tasks, and show the results.\n\n@param project project file\n@param filter filter", "Set the gamma levels.\n@param rGamma the gamma level for the red channel\n@param gGamma the gamma level for the blue channel\n@param bGamma the gamma level for the green channel\n@see #getGamma", "Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions", "Set the order in which sets are returned for the user.\n\nThis method requires authentication with 'write' permission.\n\n@param photosetIds\nAn array of Ids\n@throws FlickrException" ]
public URL buildWithQuery(String base, String queryString, Object... values) { String urlString = String.format(base + this.template, values) + queryString; URL url = null; try { url = new URL(urlString); } catch (MalformedURLException e) { assert false : "An invalid URL template indicates a bug in the SDK."; } return url; }
[ "Build a URL with Query String and URL Parameters.\n@param base base URL\n@param queryString query string\n@param values URL Parameters\n@return URL" ]
[ "Use this API to fetch all the vpath resources that are configured on netscaler.", "Use this API to fetch tmsessionpolicy_binding resource of given name .", "Add an URL to the given classloader\n\n@param loader ClassLoader\n@param url URL to add\n@throws IOException I/O Error\n@throws InvocationTargetException Invocation Error\n@throws IllegalArgumentException Illegal Argument\n@throws IllegalAccessException Illegal Access\n@throws SecurityException Security Constraint\n@throws NoSuchMethodException Method not found", "Attaches the menu drawer to the content view.", "Set up arguments for each FieldDescriptor in an array.", "Read relation data.", "Pause component timer for current instance\n@param type - of component", "Set a knot type.\n@param n the knot index\n@param type the type\n@see #getKnotType", "Set the method arguments for an enabled method override\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param arguments Array of arguments to set(specify all arguments)\n@return true if success, false otherwise" ]
@Override public List<Revision> getMatrixHistory(final int start, final int limit) throws StoreException { return delegate.getMatrixHistory(start, limit); }
[ "caching is not supported for this method" ]
[ "Use this API to fetch gslbsite resources of given names .", "Use this API to reset Interface.", "Use this API to add vpath.", "Write an int attribute.\n\n@param name attribute name\n@param value attribute value", "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write", "Use this API to fetch authenticationradiuspolicy_vpnvserver_binding resources of given name .", "Returns the index of each elem in a List.\n@param elems The list of items\n@return An array of indices", "This method reads a byte array from the input stream.\n\n@param is the input stream\n@param size number of bytes to read\n@return byte array\n@throws IOException on file read error or EOF", "Log long string using verbose tag\n\n@param TAG The tag.\n@param longString The long string." ]
public static String[] removeDuplicateStrings(String[] array) { if (isEmpty(array)) { return array; } Set<String> set = new TreeSet<String>(); Collections.addAll(set, array); return toStringArray(set); }
[ "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" ]
[ "Gets a document from the service.\n\n@param key\nunique key to reference the document\n@return the document or null if no such document", "Escape a value to be HTML friendly.\n@param value the Object value.\n@return the HTML-escaped String, or <null> if the value is null.", "Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value corresponding to the key", "Returns the default shared instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object", "Get a collection of recent photos.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param extras\nSet of extra-fields\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return A collection of Photo objects\n@throws FlickrException", "If the Authtoken was already created in a separate program but not saved to file.\n\n@param authToken\n@param tokenSecret\n@param username\n@return\n@throws IOException", "Write notes.\n\n@param recordNumber record number\n@param text note text\n@throws IOException", "Set the DPI value for GeoServer if there are already FORMAT_OPTIONS.", "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if char array is wrong size" ]
public SparqlResult runQuery(String endpoint, String query) { return SparqlClient.execute(endpoint, query, username, password); }
[ "An extension point so we can control how the query gets executed.\nThis exists for testing purposes, not because we believe it will\nactually be used for real." ]
[ "Prints a few aspects of the TreebankLanguagePack, just for debugging.", "Recovers the state of synchronization for a namespace in case a system failure happened.\nThe goal is to revert the namespace to a known, good state. This method itself is resilient\nto failures, since it doesn't delete any documents from the undo collection until the\ncollection is in the desired state with respect to those documents.", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "Print the lead string followed by centered formatted string. The whole\nlength of the line is 80 chars.\n\nExample:\n\n```java\nprintCenterWithLead(\" *\", \"Hello %s\", \"World\");\n```\n\nwill print something like\n\n```\n* Hello World\n```\n\nNote the above is just a demo, the exact number of whitespace might not be correct.\n\n\n@param lead\nthe lead string\n@param format\nThe string format pattern\n@param args\nThe string format arguments", "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Given a status update from a CDJ, find the metadata for the track that it has loaded, if any. If there is\nan appropriate metadata cache, will use that, otherwise makes a query to the players dbserver.\n\n@param status the CDJ status update that will be used to determine the loaded track and ask the appropriate\nplayer for metadata about it\n\n@return the metadata that was obtained, if any", "Sets the protocol, hostname and port to connect to.\n\n@param protocol the protocol to use\n@param hostname the host name\n@param port the port\n\n@return the builder", "Inspects the object and all superclasses for public, non-final, accessible methods and returns a\ncollection containing all the attributes found.\n\n@param classToInspect the class under inspection.", "Set the time and value of the key at the given index\n@param keyIndex 0 based index of key\n@param time key time in seconds\n@param values key values" ]
public boolean validation() throws ParallelTaskInvalidException { ParallelTask task = new ParallelTask(); targetHostMeta = new TargetHostMeta(targetHosts); task = new ParallelTask(requestProtocol, concurrency, httpMeta, targetHostMeta, sshMeta, tcpMeta, udpMeta, pingMeta, null, responseContext, replacementVarMapNodeSpecific, replacementVarMap, requestReplacementType, config); boolean valid = false; try { valid = task.validateWithFillDefault(); } catch (ParallelTaskInvalidException e) { logger.info("task is invalid " + e); } return valid; }
[ "add some validation to see if this miss anything.\n\n@return true, if successful\n@throws ParallelTaskInvalidException\nthe parallel task invalid exception" ]
[ "Get the values for a particular configuration property\n\n@param name - name of the property\n@return All values encountered or null", "Converts the given list of a type to paged list of a different type.\n\n@param list the list to convert to paged list\n@param mapper the mapper to map type in input list to output list\n@param <OutT> the type of items in output paged list\n@param <InT> the type of items in input paged list\n@return the paged list", "Use this API to fetch dnsnsecrec resources of given names .", "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress.\n@throws BoxAPIException if an error occurs while writing to the connection.", "Adds the parent package to the java.protocol.handler.pkgs system property.", "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Set a callback to handle any exceptions in the chain of execution.\n\n@param callback\nInstance of {@link ErrorCallback}.\n@return Reference to the {@code ExecutionChain}\n@throws IllegalStateException\nif the chain of execution has already been {@link #execute()\nstarted}.", "The ARP is additional request parameters, which must be sent once\nreceived after any HTTP call. This is sort of a proxy for cookies.\n\n@return A JSON object containing the ARP key/values. Can be null.", "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value" ]
public void cleanup() { synchronized (_sslMap) { for (SslRelayOdo relay : _sslMap.values()) { if (relay.getHttpServer() != null && relay.isStarted()) { relay.getHttpServer().removeListener(relay); } } sslRelays.clear(); } }
[ "Cleanup function to remove all allocated listeners" ]
[ "Save map to file\n@param map Map to save\n@param file File to save\n@throws IOException I/O error", "Set the groups assigned to a path\n\n@param groups group IDs to set\n@param pathId ID of path", "Returns a list of resource wrappers created from the input list of resources.\n\n@param cms the current OpenCms user context\n@param list the list to create the resource wrapper list from\n\n@return the list of wrapped resources.", "Create and return a new Violation for this rule and the specified import\n@param sourceCode - the SourceCode\n@param importNode - the ImportNode for the import triggering the violation\n@return a new Violation object", "Update the list of buildpacks installed on an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildpacks the new list of buildpack names or URLs.", "Create a new path address by appending more elements to the end of this address.\n\n@param additionalElements the elements to append\n@return the new path address", "Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.\nThe created connection will be closed if required.\n\n@param url a database url of the form\n<code>jdbc:<em>subprotocol</em>:<em>subname</em></code>\n@param c the Closure to call\n@see #newInstance(String)\n@throws SQLException if a database access error occurs", "Stores a public key mapping.\n@param original\n@param substitute", "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write" ]
private static void generateContextDiagrams(RootDoc root, Options opt, String outputFolder) throws IOException { Set<ClassDoc> classDocs = new TreeSet<ClassDoc>(new Comparator<ClassDoc>() { public int compare(ClassDoc cd1, ClassDoc cd2) { return cd1.name().compareTo(cd2.name()); } }); for (ClassDoc classDoc : root.classes()) classDocs.add(classDoc); ContextView view = null; for (ClassDoc classDoc : classDocs) { try { if(view == null) view = new ContextView(outputFolder, classDoc, root, opt); else view.setContextCenter(classDoc); UmlGraph.buildGraph(root, view, classDoc); runGraphviz(opt.dotExecutable, outputFolder, classDoc.containingPackage().name(), classDoc.name(), root); alterHtmlDocs(opt, outputFolder, classDoc.containingPackage().name(), classDoc.name(), classDoc.name() + ".html", Pattern.compile(".*(Class|Interface|Enum) " + classDoc.name() + ".*") , root); } catch (Exception e) { throw new RuntimeException("Error generating " + classDoc.name(), e); } } }
[ "Generates the context diagram for a single class" ]
[ "Get the TagsInterface for working with Flickr Tags.\n\n@return The TagsInterface", "Pushes a class type onto the stack from the string representation This can\nalso handle primitives\n\n@param b the bytecode\n@param classType the type descriptor for the class or primitive to push.\nThis will accept both the java.lang.Object form and the\nLjava/lang/Object; form", "With the QR algorithm it is possible for the found singular values to be negative. This\nmakes them all positive by multiplying it by a diagonal matrix that has", "Clear the selection of all items.\n@param requestLayout request layout after clear selection if the flag is true, no layout\nrequested otherwise\n@return {@code true} if at least one item was deselected,\n{@code false} otherwise.", "Take a stab at fixing validation problems ?\n\n@param object", "Saves the list of currently displayed favorites.", "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.", "Used to ensure that the general footer label will be at the same Y position as the variables in the band.\n@param band\n@return", "This method extracts project properties from a Phoenix file.\n\n@param phoenixSettings Phoenix settings\n@param storepoint Current storepoint" ]
private String visibility(Options opt, ProgramElementDoc e) { return opt.showVisibility ? Visibility.get(e).symbol : " "; }
[ "Print the visibility adornment of element e prefixed by\nany stereotypes" ]
[ "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0", "Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction", "Installs the given set of URIs as the source level URIs. Does not copy the given\nset but uses it directly.", "Writes the content of an input stream to an output stream\n\n@throws IOException", "Use this method to enable device network-related information tracking, including IP address.\nThis reporting is disabled by default. To re-disable tracking call this method with enabled set to false.\n\n@param value boolean Whether device network info reporting should be enabled/disabled.", "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", "Returns the JSON String representation of the payload\naccording to Apple APNS specification\n\n@return the String representation as expected by Apple", "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.", "Get the exception message using the requested locale.\n\n@param locale locale for message\n@return exception message" ]
public void createNewFile() throws SmbException { if( getUncPath0().length() == 1 ) { throw new SmbException( "Invalid operation for workgroups, servers, or shares" ); } close( open0( O_RDWR | O_CREAT | O_EXCL, 0, ATTR_NORMAL, 0 ), 0L ); }
[ "Create a new file but fail if it already exists. The check for\nexistance of the file and it's creation are an atomic operation with\nrespect to other filesystem activities." ]
[ "Display mode for output streams.", "Get the refresh frequency of this scene object.\n\n@return The refresh frequency of this TextViewSceneObject.", "Set a callback to handle any exceptions in the chain of execution.\n\n@param callback\nInstance of {@link ErrorCallback}.\n@return Reference to the {@code ExecutionChain}\n@throws IllegalStateException\nif the chain of execution has already been {@link #execute()\nstarted}.", "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.", "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "Add the collection of elements to this collection. This will also them to the associated database table.\n\n@return Returns true if any of the items did not already exist in the collection otherwise false.", "Removes the given row.\n\n@param row the row to remove", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "set custom request for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise" ]
public static void writeFlowId(Message message, String flowId) { Map<String, List<String>> headers = getOrCreateProtocolHeader(message); headers.put(FLOWID_HTTP_HEADER_NAME, Collections.singletonList(flowId)); if (LOG.isLoggable(Level.FINE)) { LOG.fine("HTTP header '" + FLOWID_HTTP_HEADER_NAME + "' set to: " + flowId); } }
[ "Write flow id.\n\n@param message the message\n@param flowId the flow id" ]
[ "Load the view port execution.\n\n@param then callback when the view port is detected.\n@param fallback fallback when no view port detected or failure to detect the given\n{@link Boundary} (using {@link #propagateFallback(boolean)})", "Get a property as a double or null.\n\n@param key the property name", "Receive some bytes from the player we are requesting metadata from.\n\n@param is the input stream associated with the player metadata socket.\n@return the bytes read.\n\n@throws IOException if there is a problem reading the response", "Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "ChromeCast does not allow you to jump levels too quickly to avoid blowing speakers.\nSetting by increment allows us to easily get the level we want\n\n@param level volume level from 0 to 1 to set\n@throws IOException\n@see <a href=\"https://developers.google.com/cast/docs/design_checklist/sender#sender-control-volume\">sender</a>", "Provides a RunAs client login context", "Scale all widgets in Main Scene hierarchy\n@param scale", "This is a convenience method provided to allow a day to be set\nas working or non-working, by using the day number to\nidentify the required day.\n\n@param day required day\n@param working flag indicating if the day is a working day", "compute Cosh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result." ]
public List<DbLicense> getArtifactLicenses(final String gavc, final FiltersHolder filters) { final DbArtifact artifact = getArtifact(gavc); final List<DbLicense> licenses = new ArrayList<>(); for(final String name: artifact.getLicenses()){ final Set<DbLicense> matchingLicenses = licenseMatcher.getMatchingLicenses(name); // Here is a license to identify if(matchingLicenses.isEmpty()){ final DbLicense notIdentifiedLicense = new DbLicense(); notIdentifiedLicense.setName(name); licenses.add(notIdentifiedLicense); } else { matchingLicenses.stream() .filter(filters::shouldBeInReport) .forEach(licenses::add); } } return licenses; }
[ "Return the list of licenses attached to an artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbLicense>" ]
[ "Adds a user defined field value to a task.\n\n@param fieldType field type\n@param container FieldContainer instance\n@param row UDF data", "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump", "Add tables to the tree.\n\n@param parentNode parent tree node\n@param file tables container", "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException", "Creates a directory at the given path if it does not exist yet and if the\ndirectory manager was not configured for read-only access.\n\n@param path\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Read relationship data from a PEP file.", "Add a IN clause so the column must be equal-to one of the objects from the list passed in.", "Finish service initialization.\n\n@throws GeomajasException oops", "Function to update store definitions. Unlike the put method, this\nfunction does not delete any existing state. It only updates the state of\nthe stores specified in the given stores.xml\n\n@param valueBytes specifies the bytes of the stores.xml containing\nupdates for the specified stores" ]
protected Channel awaitChannel() throws IOException { Channel channel = this.channel; if(channel != null) { return channel; } synchronized (lock) { for(;;) { if(state == State.CLOSED) { throw ProtocolLogger.ROOT_LOGGER.channelClosed(); } channel = this.channel; if(channel != null) { return channel; } if(state == State.CLOSING) { throw ProtocolLogger.ROOT_LOGGER.channelClosed(); } try { lock.wait(); } catch (InterruptedException e) { throw new IOException(e); } } } }
[ "Get the underlying channel. This may block until the channel is set.\n\n@return the channel\n@throws IOException for any error" ]
[ "Provides a message which describes the expected format and arguments\nfor this command. This is used to provide user feedback when a command\nrequest is malformed.\n\n@return A message describing the command protocol format.", "Initializes the type and validates it", "Stops download dispatchers.", "Gets the Symmetric Chi-square divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Symmetric chi-square divergence between p and q.", "Calls afterMaterialization on all registered listeners in the reverse\norder of registration.", "Returns the probability that the records v1 and v2 came from\nrepresent the same entity, based on high and low probability\nsettings etc.", "This method writes resource data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "End building the script, adding a return value statement\n@param config the configuration for the script to build\n@param value the value to return\n@return the new {@link LuaScript} instance", "private HttpServletResponse headers;" ]
void resolveBootUpdates(final ModelController controller, final ActiveOperation.CompletedCallback<ModelNode> callback) throws Exception { connection.openConnection(controller, callback); // Keep a reference to the the controller this.controller = controller; }
[ "Resolve the boot updates and register at the local HC.\n\n@param controller the model controller\n@param callback the completed callback\n@throws Exception for any error" ]
[ "Computes eigenvalues only\n\n@return", "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", "Internal method used to retrieve a integer from an\nembedded data block.\n\n@param blocks list of data blocks\n@return int value", "Deletes all steps of scenario cases where a data table\nis generated to reduce the size of the data file.\nIn this case only the steps of the first scenario case are actually needed.", "Look up the database server port reported by a given player. You should not use this port directly; instead\nask this class for a session to use while you communicate with the database.\n\n@param player the player number of interest\n\n@return the port number on which its database server is running, or -1 if unknown\n\n@throws IllegalStateException if not running", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient", "Say whether this character is an annotation introducing\ncharacter.\n\n@param ch The character to check\n@return Whether it is an annotation introducing character", "Reads a \"flags\" argument from the request.", "Scans given directory for files passing given filter, adds the results into given list." ]
public void join(String groupId, Boolean acceptRules) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_JOIN); parameters.put("group_id", groupId); if (acceptRules != null) { parameters.put("accept_rules", acceptRules); } Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } }
[ "Join a group as a public member.\n\nNote: if a group has rules - the client must display the rules to the user and the user must accept them prior to joining the group. The acceptRules\nparameter indicates that the user has accepted those rules.\n\n@param groupId\n- the id of the group to join\n@param acceptRules\n- if a group has rules, true indicates the user has accepted the rules\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.join.html\">flickr.groups.join</a>" ]
[ "Read data for an individual task from the tables in a PEP file.\n\n@param parent parent task\n@param id task ID\n@return task instance", "Print a class's relations", "Are these two numbers effectively equal?\n\nThe same logic is applied for each of the 3 vector dimensions: see {@link #equal}\n@param v1\n@param v2", "Update the plane based on arcore best knowledge of the world\n\n@param scale", "Determine the color to use to draw a cue list entry. Hot cues are green, ordinary memory points are red,\nand loops are orange.\n\n@param entry the entry being drawn\n\n@return the color with which it should be represented.", "Plots the MSD curve with the trajectory t and adds the fitted model for confined diffusion above.\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Parameter alpha\n@param b Shape parameter 1\n@param c Shape parameter 2\n@param d Diffusion coefficient", "Appends the accumulated words to the resulting words. Trailing whitespace is removed because of the\npostprocessing that inserts custom whitespace\n\n@param currentWords is the {@link StringBuilder} of the accumulated words\n@param formattedWords is the list that is being appended to", "Returns the key of the entity targeted by the represented association, retrieved from the given tuple.\n\n@param tuple the tuple from which to retrieve the referenced entity key\n@return the key of the entity targeted by the represented association", "Produces a string identifying this half-edge by the point index values of\nits tail and head vertices.\n\n@return identifying string" ]
@Override public void attachScriptFile(IScriptable target, IScriptFile scriptFile) { mScriptMap.put(target, scriptFile); scriptFile.invokeFunction("onAttach", new Object[] { target }); }
[ "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object." ]
[ "Append the given path segments to the existing path of this builder.\nEach given path segment may contain URI template variables.\n@param pathSegments the URI path segments\n@return this UriComponentsBuilder", "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "Creates a Bytes object by copying the value of the given String with a given charset", "Exchanges the initial fully-formed messages which establishes the transaction context for queries to\nthe dbserver.\n\n@throws IOException if there is a problem during the exchange", "Get a property as an int or throw an exception.\n\n@param key the property name", "Either a single file extension or a comma-separated list of extensions for which the language\nshall be registered.", "Iterate and insert each of the elements of the Collection.\n\n@param objects\nThe objects to insert\n@param outIdentifier\nIdentifier to lookup the returned objects\n@param returnObject\nboolean to specify whether the inserted Collection is part of the ExecutionResults\n@param entryPoint\nOptional EntryPoint for the insertions\n@return", "Use this API to fetch all the ipset resources that are configured on netscaler.", "characters callback." ]
public static snmpuser get(nitro_service service, String name) throws Exception{ snmpuser obj = new snmpuser(); obj.set_name(name); snmpuser response = (snmpuser) obj.get_resource(service); return response; }
[ "Use this API to fetch snmpuser resource of given name ." ]
[ "Pretty print a progress update after each batch complete.\n\n@param batchCount current batch\n@param numBatches total number of batches\n@param partitionStoreCount partition stores migrated\n@param numPartitionStores total number of partition stores to migrate\n@param totalTimeMs total time, in milliseconds, of execution thus far.", "Return the project name or the default project name.", "Adds a variable to the end of the token list\n@param variable Variable which is to be added\n@return The new Token created around variable", "Checks if the path leads to an embedded property or association.\n\n@param targetTypeName the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is an embedded, {@code false} otherwise.", "Use this API to add appfwjsoncontenttype.", "Handle bind service event.\n@param service Service instance\n@param props Service reference properties", "Create a new server group\n\n@param groupName name of server group\n@return Created ServerGroup", "Get a property as a json array or throw exception.\n\n@param key the property name", "This method is used to process an MPP8 file. This is the file format\nused by Project 98.\n\n@param reader parent file reader\n@param file Parent MPX file\n@param root Root of the POI file system.\n@throws MPXJException\n@throws IOException" ]
private SynchroTable readTableHeader(byte[] header) { SynchroTable result = null; String tableName = DatatypeConverter.getSimpleString(header, 0); if (!tableName.isEmpty()) { int offset = DatatypeConverter.getInt(header, 40); result = new SynchroTable(tableName, offset); } return result; }
[ "Read the header data for a single file.\n\n@param header header data\n@return SynchroTable instance" ]
[ "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "Get random geographical location\n@return 2-Tuple of ints (latitude, longitude)", "Creates a new indirection handler instance.\n\n@param brokerKey The associated {@link PBKey}.\n@param id The subject's ids\n@return The new instance", "Gets an item that was shared with a password-protected shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@param password the password for the shared link.\n@return info about the shared item.", "Used for initialization of the underlying map provider.\n\n@param fragmentManager required for initialization", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the list of values set in the field.", "Creates the .story file necessary for every Beast Test Case.\n\n@param scenarioName\n- The name of the scenario, with spaces\n@param srcTestRootFolder\n- The test root folder\n@param packagePath\n- The package of the BeastTestCase\n@param scenarioDescription\n- the scenario name\n@param givenDescription\n- The given description\n@param whenDescription\n- The when description\n@param thenDescription\n- The then description\n@throws BeastException", "Convert an object to a collection.\n\n@param mapper the object mapper\n@param source the source object\n@param targetCollectionType the target collection type\n@param targetElementType the target collection element type\n@return collection" ]
private void writePredecessors(Task mpxjTask, net.sf.mpxj.planner.schema.Task plannerTask) { Predecessors plannerPredecessors = m_factory.createPredecessors(); plannerTask.setPredecessors(plannerPredecessors); List<Predecessor> predecessorList = plannerPredecessors.getPredecessor(); int id = 0; List<Relation> predecessors = mpxjTask.getPredecessors(); for (Relation rel : predecessors) { Integer taskUniqueID = rel.getTargetTask().getUniqueID(); Predecessor plannerPredecessor = m_factory.createPredecessor(); plannerPredecessor.setId(getIntegerString(++id)); plannerPredecessor.setPredecessorId(getIntegerString(taskUniqueID)); plannerPredecessor.setLag(getDurationString(rel.getLag())); plannerPredecessor.setType(RELATIONSHIP_TYPES.get(rel.getType())); predecessorList.add(plannerPredecessor); m_eventManager.fireRelationWrittenEvent(rel); } }
[ "This method writes predecessor data to a Planner file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param mpxjTask MPXJ task instance\n@param plannerTask planner task instance" ]
[ "Calls the provided closure for a \"page\" of rows from the table represented by this DataSet.\nA page is defined as starting at a 1-based offset, and containing a maximum number of rows.\n\n@param offset the 1-based offset for the first row to be processed\n@param maxRows the maximum number of rows to be processed\n@param closure called for each row with a GroovyResultSet\n@throws SQLException if a database access error occurs\n@see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure)", "Updates the position and direction of this light from the transform of\nscene object that owns it.", "Retrieve the field location for a specific field.\n\n@param type field type\n@return field location", "Roll the java.util.Time forward or backward.\n\n@param startDate - The start date\n@param period Calendar.YEAR etc\n@param amount - Negative to rollbackwards.", "get the last segment at the moment\n\n@return the last segment", "Uses the iterator to run through the dao and retain only the items that are in the passed in collection. This\nwill remove the items from the associated database table as well.\n\n@return Returns true of the collection was changed at all otherwise false.", "Specifies the base URI of this conversion server.\n\n@param baseUri The URI under which this remote conversion server is reachable.\n@return This builder instance.", "Creates the next permutation in the sequence.\n\n@return An array containing the permutation. The returned array is modified each time this function is called.", "Return a list of the top 100 unique places clustered by a given placetype for a user.\n\n@param placeType\nUse Type-constants at {@link Place}\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null.\n@param placeId\nA Flickr Places ID. Optional, can be null.\n@param threshold\nThe minimum number of photos that a place type must have to be included. If the number of photos is lowered then the parent place type for\nthat place will be used. Optional, can be null.\n@param minUploadDate\nOptional, can be null.\n@param maxUploadDate\nOptional, can be null.\n@param minTakenDate\nOptional, can be null.\n@param maxTakenDate\nOptional, can be null.\n@return A PlacesList\n@throws FlickrException" ]
public void scale(double v){ for(int i = 0; i < this.size(); i++){ this.get(i).scale(v);; } }
[ "Multiplies all positions with a factor v\n@param v Multiplication factor" ]
[ "Calculate UserInfo strings.", "Use this API to fetch vpnsessionaction resource of given name .", "Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value corresponding to the key", "Returns all known Java installations\n\n@return a map from the version strings to their respective paths of the Java installations.", "Use this API to expire cacheobject.", "Set the values using the specified Properties object.\n\n@param properties Properties object containing specific property values\nfor the RESTClient config\n\nNote: We're using the same property names as that in ClientConfig\nfor backwards compatibility.", "Update the Target Filter of the ImporterService.\nApply the induce modifications on the links of the ImporterService\n\n@param serviceReference", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Determines whether there is an element of the collection that evaluates to true\nfor the predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tTrue if there is an element of the collection that evaluates to true\nfor the predicate, otherwise false.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid." ]
public final Template getTemplate(final String name) { final Template template = this.templates.get(name); if (template != null) { this.accessAssertion.assertAccess("Configuration", this); template.assertAccessible(name); } else { throw new IllegalArgumentException(String.format("Template '%s' does not exist. Options are: " + "%s", name, this.templates.keySet())); } return template; }
[ "Retrieve the configuration of the named template.\n\n@param name the template name;" ]
[ "Populates a resource.\n\n@param resource resource instance\n@param record MPX record\n@throws MPXJException", "Use this API to fetch all the snmpalarm resources that are configured on netscaler.", "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString", ">>>>>> measureUntilFull helper methods", "Sets the highlight strength for the InnerPaddingOutline.\n\n@param _highlightStrength The highlighting value for the outline.", "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "Specifies the timeout for a network request.\n\n@param timeout The timeout for a network request.\n@param unit The time unit of the specified timeout.\n@return This builder instance.", "Get the collection of contacts for the calling user.\n\n@return The Collection of Contact objects", "See convertToSQL92.\n\n@return SQL like sub-expression\n@throws IllegalArgumentException oops" ]
public static DMatrixSparseCSC convert(DMatrixSparseTriplet src , DMatrixSparseCSC dst , int hist[] ) { if( dst == null ) dst = new DMatrixSparseCSC(src.numRows, src.numCols , src.nz_length); else dst.reshape(src.numRows, src.numCols, src.nz_length); if( hist == null ) hist = new int[ src.numCols ]; else if( hist.length >= src.numCols ) Arrays.fill(hist,0,src.numCols, 0); else throw new IllegalArgumentException("Length of hist must be at least numCols"); // compute the number of elements in each columns for (int i = 0; i < src.nz_length; i++) { hist[src.nz_rowcol.data[i*2+1]]++; } // define col_idx dst.histogramToStructure(hist); System.arraycopy(dst.col_idx,0,hist,0,dst.numCols); // now write the row indexes and the values for (int i = 0; i < src.nz_length; i++) { int row = src.nz_rowcol.data[i*2]; int col = src.nz_rowcol.data[i*2+1]; double value = src.nz_value.data[i]; int index = hist[col]++; dst.nz_rows[index] = row; dst.nz_values[index] = value; } dst.indicesSorted = false; return dst; }
[ "Converts SMatrixTriplet_64 into a SMatrixCC_64.\n\n@param src Original matrix which is to be copied. Not modified.\n@param dst Destination. Will be a copy. Modified.\n@param hist Workspace. Should be at least as long as the number of columns. Can be null." ]
[ "Read, validate, and discard a single message, returning the next valid offset, and the\nmessage being validated\n\n@throws IOException any exception", "Links the two field names into a single left.right field name.\nIf the left field is empty, right is returned\n\n@param left one field name\n@param right the other field name\n\n@return left.right or right if left is an empty string", "Generates required number of placeholders as string.\n\nExample: {@code numberOfPlaceholders == 1, result == \"?\"},\n{@code numberOfPlaceholders == 2, result == \"?,?\"}.\n\n@param numberOfPlaceholders required amount of placeholders, should be {@code > 0}.\n@return string with placeholders.", "Use this API to fetch all the auditmessages resources that are configured on netscaler.", "Adjust submatrices and helper data structures for the input matrix. Must be called\nbefore the decomposition can be computed.\n\n@param orig", "Returns the RPC service for serial dates.\n@return the RPC service for serial dates.", "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "Makes the object unpickable and removes the touch handler for it\n@param sceneObject\n@return true if the handler has been successfully removed", "Parse representations from a file object response.\n@param jsonObject representations json object in get response for /files/file-id?fields=representations\n@return list of representations" ]
public static void redeployLinksAndTransformOperation(OperationContext context, ModelNode removeOperation, PathAddress deploymentsRootAddress, Set<String> runtimeNames) throws OperationFailedException { Set<String> deploymentNames = listDeployments(context.readResourceFromRoot(deploymentsRootAddress), runtimeNames); Operations.CompositeOperationBuilder opBuilder = Operations.CompositeOperationBuilder.create(); if (deploymentNames.isEmpty()) { for (String s : runtimeNames) { ServerLogger.ROOT_LOGGER.debugf("We haven't found any deployment for %s in server-group %s", s, deploymentsRootAddress.getLastElement().getValue()); } } if(removeOperation != null) { opBuilder.addStep(removeOperation); } for (String deploymentName : deploymentNames) { opBuilder.addStep(addRedeployStep(deploymentsRootAddress.append(DEPLOYMENT, deploymentName))); } List<DomainOperationTransmuter> transformers = context.getAttachment(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS); if (transformers == null) { context.attach(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS, transformers = new ArrayList<>()); } final ModelNode slave = opBuilder.build().getOperation(); transformers.add(new OverlayOperationTransmuter(slave, context.getCurrentAddress())); }
[ "It will look for all the deployments under the deploymentsRootAddress with a runtimeName in the specified list of\nruntime names and then transform the operation so that every server having those deployments will redeploy the\naffected deployments.\n\n@see #transformOperation\n@param removeOperation\n@param context\n@param deploymentsRootAddress\n@param runtimeNames\n@throws OperationFailedException" ]
[ "Returns the comma separated list of available scopes\n\n@return String", "Sends a server command continuation request '+' back to the client,\nrequesting more data to be sent.", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific date attributes to the default values\nfor the new locale.\n\n@param locale new locale", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "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", "Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance.", "package scope in order to test the method", "Set the map attribute.\n\n@param name the attribute name\n@param attribute the attribute", "1-D Integer array to float array.\n\n@param array Integer array.\n@return Float array." ]