query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
private void readTasks(Project gpProject) { Tasks tasks = gpProject.getTasks(); readTaskCustomPropertyDefinitions(tasks); for (net.sf.mpxj.ganttproject.schema.Task task : tasks.getTask()) { readTask(m_projectFile, task); } }
[ "Read the top level tasks from GanttProject.\n\n@param gpProject GanttProject project" ]
[ "Returns the string in the buffer minus an leading or trailing whitespace or quotes", "Given a partition ID, determine which replica of this partition is hosted by the\ncurrent node, if any.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param partitionId for which we want to know the replica type\n@return the requested partition's replica type (which ranges from 0 to replication\nfactor -1) if the partition is hosted on the current node, or -1 if the\nrequested partition is not hosted on this node.", "If this node represents a bean property this method returns all annotations of its getter.\n\n@return A set of annotations of this nodes property getter or an empty set.", "Use this API to delete appfwjsoncontenttype resources of given names.", "Use this API to fetch all the vpnsessionaction resources that are configured on netscaler.", "Recurses the given folder and creates the FileModels vertices for the child files to the graph.", "Check if number is valid\n\n@return boolean", "Find a toBuilder method, if the user has provided one.", "Loads the columns for this table into the alChildren list." ]
private static String guessDumpDate(String fileName) { Pattern p = Pattern.compile("([0-9]{8})"); Matcher m = p.matcher(fileName); if (m.find()) { return m.group(1); } else { logger.info("Could not guess date of the dump file \"" + fileName + "\". Defaulting to YYYYMMDD."); return "YYYYMMDD"; } }
[ "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" ]
[ "Creates an element that represents an image drawn at the specified coordinates in the page.\n@param x the X coordinate of the image\n@param y the Y coordinate of the image\n@param width the width coordinate of the image\n@param height the height coordinate of the image\n@param type the image type: <code>\"png\"</code> or <code>\"jpeg\"</code>\n@param resource the image data depending on the specified type\n@return", "Starts the one and only job instance in a separate Thread. Should be called exactly one time before\nthe operation is stopped.\n\n@param arguments {@inheritDoc}", "Sets the maxConnectionAge. Any connections older than this setting will be closed\noff whether it is idle or not. Connections currently in use will not be affected until they\nare returned to the pool.\n\n@param maxConnectionAge the maxConnectionAge to set.\n@param timeUnit the unit of the maxConnectionAge argument.", "Use this API to add dnsaaaarec resources.", "Adds an item to the list box, specifying an initial value for the item.\n\n@param value the item's value, to be submitted if it is part of a\n{@link FormPanel}; cannot be <code>null</code>\n@param text the text of the item to be added\n@param reload perform a 'material select' reload to update the DOM.", "Creates a Sink Processor\n\n@param dataSink the data sink itself\n@param parallelism the parallelism of this processor\n@param description the description for this processor\n@param taskConf the configuration for this processor\n@param system actor system\n@return the new created sink processor", "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix.", "Update all the links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Sends a normal HTTP response containing the serialization information in\na XML format" ]
public boolean detectNintendo() { if ((userAgent.indexOf(deviceNintendo) != -1) || (userAgent.indexOf(deviceWii) != -1) || (userAgent.indexOf(deviceNintendoDs) != -1)) { return true; } return false; }
[ "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo" ]
[ "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Whether this section is consistent with an EUI64 section,\nwhich means it came from an extended 8 byte address,\nand the corresponding segments in the middle match 0xff and 0xfe\n\n@param partial whether missing segments are considered a match\n@return", "Retrieves all file version retentions matching given filters as an Iterable.\n@param api the API connection to be used by the resource.\n@param filter filters for the query stored in QueryFilter object.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions matching given filter.", "Starts given docker machine.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n@param machineName\nto be started.", "Returns the start position of the indicator.\n\n@return The start position of the indicator.", "Set the current playback position. This method can only be used in situations where the component is\ntied to a single player, and therefore always has a single playback position.\n\nWill cause part of the component to be redrawn if the position has\nchanged. This will be quickly overruled if a player is being monitored, but\ncan be used in other contexts.\n\n@param milliseconds how far into the track has been played\n\n@see #setPlaybackState", "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", "Formats a date or a time according to the local conventions.\n\nSince ReadablePartials don't support all fields, we fill in any blanks\nneeded for formatting by using the epoch (1970-01-01T00:00:00Z).\n\nSee {@link android.text.format.DateUtils#formatDateTime} for full docs.\n\n@param context the context is required only if the time is shown\n@param time a point in time\n@param flags a bit mask of formatting options\n@return a string containing the formatted date/time." ]
private LocatorSelectionStrategy getLocatorSelectionStrategy(String locatorSelectionStrategy) { if (null == locatorSelectionStrategy) { return locatorSelectionStrategyMap.get(DEFAULT_STRATEGY).getInstance(); } if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Strategy " + locatorSelectionStrategy + " was set for LocatorClientRegistrar."); } if (locatorSelectionStrategyMap.containsKey(locatorSelectionStrategy)) { return locatorSelectionStrategyMap.get(locatorSelectionStrategy).getInstance(); } else { if (LOG.isLoggable(Level.WARNING)) { LOG.log(Level.WARNING, "LocatorSelectionStrategy " + locatorSelectionStrategy + " not registered at LocatorClientEnabler."); } return locatorSelectionStrategyMap.get(DEFAULT_STRATEGY).getInstance(); } }
[ "If the String argument locatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the\ncorresponding strategy is selected, else it remains unchanged.\n@param locatorSelectionStrategy" ]
[ "Reads the header data from a block.\n\n@param buffer block data\n@param offset current offset into block data\n@param postHeaderSkipBytes bytes to skip after reading the header\n@return current BlockHeader instance", "Use this API to add tmtrafficaction.", "Gets a design document using the id and revision from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Create a new DirectByteBuffer from a given address and size.\nThe returned DirectByteBuffer does not release the memory by itself.\n\n@param addr\n@param size\n@param att object holding the underlying memory to attach to the buffer.\nThis will prevent the garbage collection of the memory area that's\nassociated with the new <code>DirectByteBuffer</code>\n@return", "Checks if there's exactly one option that exists among all opts.\n\n@param options OptionSet to checked\n@param opts List of options to be checked\n@throws VoldemortException", "Returns a resource description resolver that uses common descriptions for some attributes.\n\n@param keyPrefix the prefix to be appended to the {@link LoggingExtension#SUBSYSTEM_NAME}\n\n@return the resolver", "Use this API to fetch all the snmpoption resources that are configured on netscaler.", "Called when remote end send a message to this connection\n@param receivedMessage the message received\n@return this context", "Writes the specified double to the stream, formatted according to the format specified in the constructor.\n\n@param d the double to write to the stream\n@return this writer\n@throws IOException if an I/O error occurs" ]
@Beta public MSICredentials withObjectId(String objectId) { this.objectId = objectId; this.clientId = null; this.identityId = null; return this; }
[ "Specifies the object id associated with a user assigned managed service identity\nresource that should be used to retrieve the access token.\n\n@param objectId Object ID of the identity to use when authenticating to Azure AD.\n@return MSICredentials" ]
[ "Return the class of one of the properties of another class from which the Hibernate metadata is given.\n\n@param meta\nThe parent class to search a property in.\n@param propertyName\nThe name of the property in the parent class (provided by meta)\n@return Returns the class of the property in question.\n@throws HibernateLayerException\nThrows an exception if the property name could not be retrieved.", "Handles a key change.\n\n@param event the key change event.\n@param allLanguages <code>true</code> for changing the key for all languages, <code>false</code> if the key should be changed only for the current language.\n@return result, indicating if the key change was successful.", "convert Event bean to EventType manually.\n\n@param event the event\n@return the event type", "Retrieve the \"complete through\" date.\n\n@return complete through date", "Apply aliases to task and resource fields.\n\n@param aliases map of aliases", "Clean up the environment object for the given storage engine", "If there is an unprocessed change event for a particular document ID, fetch it from the\nappropriate namespace change stream listener, and remove it. By reading the event here, we are\nassuming it will be processed by the consumer.\n\n@return the latest unprocessed change event for the given document ID and namespace, or null\nif none exists.", "Retrieve a single value property.\n\n@param method method definition\n@param object target object\n@param map parameter values", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters" ]
public static base_responses update(nitro_service client, ntpserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { ntpserver updateresources[] = new ntpserver[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new ntpserver(); updateresources[i].serverip = resources[i].serverip; updateresources[i].servername = resources[i].servername; updateresources[i].minpoll = resources[i].minpoll; updateresources[i].maxpoll = resources[i].maxpoll; updateresources[i].preferredntpserver = resources[i].preferredntpserver; updateresources[i].autokey = resources[i].autokey; updateresources[i].key = resources[i].key; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update ntpserver resources." ]
[ "Methods returns InetAddress for localhost\n\n@return InetAddress of the localhost\n@throws UnknownHostException if localhost could not be resolved", "Parses server section of Zookeeper connection string", "Use this API to add snmpmanager.", "Get MultiJoined ClassDescriptors\n@param cld", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "Add an index on the given collection and field\n\n@param collection the collection to use for the index\n@param field the field to use for the index\n@param asc the sorting direction. <code>true</code> to sort ascending; <code>false</code> to sort descending\n@param background iff <code>true</code> the index is created in the background", "The sniffing Loggers are some special Loggers, whose level will be set to TRACE forcedly.\n@param logger", "This implementation does not support the 'offset' and 'maxResultSize' parameters.", "Use this API to convert sslpkcs12." ]
public static LBuffer loadFrom(File file) throws IOException { FileChannel fin = new FileInputStream(file).getChannel(); long fileSize = fin.size(); if (fileSize > Integer.MAX_VALUE) throw new IllegalArgumentException("Cannot load from file more than 2GB: " + file); LBuffer b = new LBuffer((int) fileSize); long pos = 0L; WritableChannelWrap ch = new WritableChannelWrap(b); while (pos < fileSize) { pos += fin.transferTo(0, fileSize, ch); } return b; }
[ "Create an LBuffer from a given file.\n@param file\n@return\n@throws IOException" ]
[ "Start the host controller services.\n\n@throws Exception", "Sets the current collection definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the collection as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\ncollection on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe collection\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\ncollection\"\[email protected] name=\"collection-class\" optional=\"true\" description=\"The type of the collection if not a\njava.util type or an array\"\[email protected] name=\"database-foreignkey\" optional=\"true\" description=\"Whether a database foreignkey shall be created\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the collection\"\[email protected] name=\"element-class-ref\" optional=\"true\" description=\"The fully qualified name of\nthe element type\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The name of the\nforeign keys (columns when an indirection table is given)\"\[email protected] name=\"foreignkey-documentation\" optional=\"true\" description=\"Documentation\non the foreign keys as a comma-separated list if using an indirection table\"\[email protected] name=\"indirection-table\" optional=\"true\" description=\"The name of the indirection\ntable for m:n associations\"\[email protected] name=\"indirection-table-documentation\" optional=\"true\" description=\"Documentation\non the indirection table\"\[email protected] name=\"indirection-table-primarykeys\" optional=\"true\" description=\"Whether the\nfields referencing the collection and element classes, should also be primarykeys\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the collection is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the collection\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"query-customizer\" optional=\"true\" description=\"The query customizer for this collection\"\[email protected] name=\"query-customizer-attributes\" optional=\"true\" description=\"Attributes for the query customizer\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\ncollection\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The name of the\nforeign key columns pointing to the elements if using an indirection table\"\[email protected] name=\"remote-foreignkey-documentation\" optional=\"true\" description=\"Documentation\non the remote foreign keys as a comma-separated list if using an indirection table\"", "convolution data type", "Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.\nGets the capabilities for a specific endpoint.\n@param the number of the endpoint to get the\n@return the serial message.", "Pump events from event stream.", "Do the set-up that's needed to access Amazon S3.", "Send a waveform detail update announcement to all registered listeners.\n\n@param player the player whose waveform detail has changed\n@param detail the new waveform detail, if any", "Gets a color formatted as an integer with ARGB ordering.\n\n@param json {@link JSONObject} to get the color from\n@param elementName Name of the color element\n@return An ARGB formatted integer\n@throws JSONException", "Use this API to delete route6 resources of given names." ]
private int getLiteralId(String literal) throws PersistenceBrokerException { ////logger.debug("lookup: " + literal); try { return tags.getIdByTag(literal); } catch (NullPointerException t) { throw new MetadataException("unknown literal: '" + literal + "'",t); } }
[ "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" ]
[ "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "Keep track of this handle tied to which thread so that if the thread is terminated\nwe can reclaim our connection handle. We also\n@param c connection handle to track.", "Write a duration field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Infer app name from scan package\n\n@param packageName\nthe package name\n@return\napp name inferred from the package name", "Prints text to output stream, replacing parameter start and end\nplaceholders\n\n@param text the String to print", "Use this API to fetch nsrpcnode resource of given name .", "Creates dependency on management executor.\n\n@param builder the builder\n@param injector the injector\n@param <T> the parameter type\n@return service builder instance\n@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future.", "Creates the given directory. Fails if it already exists.", "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" ]
@Override public View getView(int position, View convertView, ViewGroup parent) { return (wrapped.getView(position, convertView, parent)); }
[ "Get a View that displays the data at the specified\nposition in the data set.\n\n@param position Position of the item whose data we want\n@param convertView View to recycle, if not null\n@param parent ViewGroup containing the returned View" ]
[ "Sets the RegExp pattern for the TextBox\n@param pattern\n@param invalidCharactersInNameErrorMessage", "Process the given key and value. First validate the value and check if there's no different value for the same key in the same source - invalid and\ndifferent values are treated as a deployment problem.\n\n@param properties\n@param key\n@param value", "If directory doesn't exists try to create it.\n\n@param directory given directory to check\n@throws ReportGenerationException if can't create specified directory", "Add a new script\n\n@param model\n@param name\n@param script\n@return\n@throws Exception", "FIXME Remove this method", "Add data for a column to this table.\n\n@param column column data", "Generate attachment extension from mime type\n\n@param type valid mime-type\n@return extension if it's known for specified mime-type, or empty string\notherwise", "Read a two byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Returns true if the provided matrix is has a value of 1 along the diagonal\nelements and zero along all the other elements.\n\n@param a Matrix being inspected.\n@param tol How close to zero or one each element needs to be.\n@return If it is within tolerance to an identity matrix." ]
public GVRAnimationChannel findChannel(String boneName) { int boneId = mSkeleton.getBoneIndex(boneName); if (boneId >= 0) { return mBoneChannels[boneId]; } return null; }
[ "Find the channel in the animation that animates the named bone.\n@param boneName name of bone to animate." ]
[ "Modifier method to set the unique ID of this calendar.\n\n@param uniqueID unique identifier", "Return the number of arguments associated with the specified option.\nThe return value includes the actual option.\nWill return 0 if the option is not supported.", "Sets a listener to inform when the user closes the SearchView.\n\n@param listener the listener to call when the user closes the SearchView.", "Write the summary file, if requested.", "Print an extended attribute date value.\n\n@param value date value\n@return string representation", "Validate the configuration.\n\n@param validationErrors where to put the errors.", "Scans the given file looking for a complete zip file format end of central directory record.\n\n@param file the file\n\n@return true if a complete end of central directory record could be found\n\n@throws IOException", "Tells you if the expression is true, which can be true or Boolean.TRUE.\n@param expression\nexpression\n@return\nas described", "Read resource assignment data from a PEP file." ]
public static boolean isAvailable() throws Exception { try { Registry myRegistry = LocateRegistry.getRegistry("127.0.0.1", port); com.groupon.odo.proxylib.hostsedit.rmi.Message impl = (com.groupon.odo.proxylib.hostsedit.rmi.Message) myRegistry.lookup(SERVICE_NAME); return true; } catch (Exception e) { return false; } }
[ "Returns whether or not the host editor service is available\n\n@return\n@throws Exception" ]
[ "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException", "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none.", "Retrieves a constant value.\n\n@param type field type\n@param block criteria data block\n@return constant value", "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none.", "Computes the longest common contiguous substring of s and t.\nThe LCCS is the longest run of characters that appear consecutively in\nboth s and t. For instance, the LCCS of \"color\" and \"colour\" is 4, because\nof \"colo\".", "Get the ver\n\n@param id\n@return", "Handles the response of the getVersion request.\n@param incomingMessage the response message to process.", "Use this API to fetch all the sslpolicylabel resources that are configured on netscaler." ]
public ItemRequest<Team> removeUser(String team) { String path = String.format("/teams/%s/removeUser", team); return new ItemRequest<Team>(this, Team.class, path, "POST"); }
[ "The user to remove can be referenced by their globally unique user ID or their email address.\nRemoves the user from the specified team. Returns an empty data record.\n\n@param team Globally unique identifier for the team.\n@return Request object" ]
[ "Constraint that ensures that the field has a column property. If none is specified, then\nthe name of the field is used.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Might not fill all of dst.", "Method generates abbreviated exception message.\n\n@param message\nOriginal log message\n@param throwable\nThe attached throwable\n@return Abbreviated exception message", "Retrieve the FeatureSource object from the data store.\n\n@return An OpenGIS FeatureSource object;\n@throws LayerException\noops", "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.", "Validations specific to GET and GET ALL", "Function to perform backward softmax", "Divides the elements at the specified column by 'val'. Takes in account\nleading zeros and one.", "Gets a JsonObject containing any pending changes to this object that can be sent back to the Box API.\n@return a JsonObject containing the pending changes." ]
public V get(final K1 firstKey, final K2 secondKey) { // existence check on inner map final HashMap<K2, V> innerMap = map.get(firstKey); if( innerMap == null ) { return null; } return innerMap.get(secondKey); }
[ "Fetch a value from the Hashmap .\n\n@param firstKey\nfirst key\n@param secondKey\nsecond key\n@return the element or null." ]
[ "Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPutVals that were rejected as obsolete", "performs a SELECT operation against RDBMS.\n@param query the query string.\n@param cld ClassDescriptor providing JDBC information.", "Is alternative.\n\n@param annotated the annotated\n@param mergedStereotypes merged stereotypes\n@return true if alternative, false otherwise", "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node trees and expressions in templates can be of type IGeneratorNode.\n\n@return the given parent node", "Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions", "Serializes any char sequence and writes it into specified buffer.", "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "Use this API to fetch authenticationtacacspolicy_authenticationvserver_binding resources of given name .", "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" ]
public boolean removeHandlerFor(final GVRSceneObject sceneObject) { sceneObject.detachComponent(GVRCollider.getComponentType()); return null != touchHandlers.remove(sceneObject); }
[ "Makes the object unpickable and removes the touch handler for it\n@param sceneObject\n@return true if the handler has been successfully removed" ]
[ "Computes the tree edit distance between trees t1 and t2.\n\n@param t1\n@param t2\n@return tree edit distance between trees t1 and t2", "Obtain override ID\n\n@param overrideIdentifier can be the override ID or class name\n@return\n@throws Exception", "Provides a ready to use diff update for our adapter based on the implementation of the\nstandard equals method from Object.\n\n@param newList to refresh our content", "Handles an initial response from a PUT or PATCH operation response by polling the status of the operation\nasynchronously, once the operation finishes emits the final response.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param resourceType the java.lang.reflect.Type of the resource.\n@param <T> the return type of the caller.\n@return the observable of which a subscription will lead to a final response.", "Use this API to fetch all the cachecontentgroup resources that are configured on netscaler.", "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", "Start export and check in of the selected modules.\n@return The exit code of the check in procedure (like a script's exit code).", "Makes sure that there is a class definition for the given qualified name, and returns it.\n\n@param original The XDoclet class object\n@return The class definition", "Find the channel in the animation that animates the named bone.\n@param boneName name of bone to animate." ]
@SuppressWarnings({"unused", "WeakerAccess"}) public void pushInstallReferrer(Intent intent) { try { final Bundle extras = intent.getExtras(); // Preliminary checks if (extras == null || !extras.containsKey("referrer")) { return; } final String url; try { url = URLDecoder.decode(extras.getString("referrer"), "UTF-8"); getConfigLogger().verbose(getAccountId(), "Referrer received: " + url); } catch (Throwable e) { // Could not decode return; } if (url == null) { return; } int now = (int) (System.currentTimeMillis() / 1000); if (installReferrerMap.containsKey(url) && now - installReferrerMap.get(url) < 10) { getConfigLogger().verbose(getAccountId(),"Skipping install referrer due to duplicate within 10 seconds"); return; } installReferrerMap.put(url, now); Uri uri = Uri.parse("wzrk://track?install=true&" + url); pushDeepLink(uri, true); } catch (Throwable t) { // no-op } }
[ "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters" ]
[ "Initialize the various DAO configurations after the various setters have been called.", "Replies the elements of the left map without the pairs in the right map.\nIf the pair's values differ from\nthe value within the map, the map entry is not removed.\n\n<p>\nThe difference is an immutable\nsnapshot of the state of the maps at the time this method is called. It\nwill never change, even if the maps change at a later time.\n</p>\n\n<p>\nSince this method uses {@code HashMap} instances internally, the keys of\nthe supplied maps must be well-behaved with respect to\n{@link Object#equals} and {@link Object#hashCode}.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the map to update.\n@param right the pairs to remove.\n@return the map with the content of the left map except the pairs of the right map.\n@since 2.15", "Removes metadata related to rebalancing.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to clear metadata after rebalancing", "Extract where the destination is reshaped to match the extracted region\n@param src The original matrix which is to be copied. Not modified.\n@param srcX0 Start column.\n@param srcX1 Stop column+1.\n@param srcY0 Start row.\n@param srcY1 Stop row+1.\n@param dst Where the submatrix are stored. Modified.", "Add the declarationBinderRef to the ImportersManager, create the corresponding.\nBinderDescriptor.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder\n@throws InvalidFilterException", "gets the first non annotation line number of a node, taking into account annotations.", "Get the class name without the package\n\n@param c The class name with package\n@return the class name without the package", "Copied from original SeleniumProxyHandler\nChanged SslRelay to SslListener and getSslRelayOrCreateNew to getSslRelayOrCreateNewOdo\nNo other changes to the function\n\n@param pathInContext\n@param pathParams\n@param request\n@param response\n@throws HttpException\n@throws IOException", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository" ]
public Set<? extends Processor<?, ?>> getAllProcessors() { IdentityHashMap<Processor<?, ?>, Void> all = new IdentityHashMap<>(); all.put(this.getProcessor(), null); for (ProcessorGraphNode<?, ?> dependency: this.dependencies) { for (Processor<?, ?> p: dependency.getAllProcessors()) { all.put(p, null); } } return all.keySet(); }
[ "Create a set containing all the processor at the current node and the entire subgraph." ]
[ "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "Initial setup of the service worker registration.", "dispatch to gravity state", "Apply an XMLDSig onto the passed document.\n\n@param aPrivateKey\nThe private key used for signing. May not be <code>null</code>.\n@param aCertificate\nThe certificate to be used. May not be <code>null</code>.\n@param aDocument\nThe document to be signed. The signature will always be the first\nchild element of the document element. The document may not contains\nany disg:Signature element. This element is inserted manually.\n@throws Exception\nIn case something goes wrong\n@see #createXMLSignature(X509Certificate)", "If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The size of the painting area.\n@param bounds The map bounds.\n@param dpi the DPI.", "Convenience method for first removing all enum style constants and then adding the single one.\n\n@see #removeEnumStyleNames(UIObject, Class)\n@see #addEnumStyleName(UIObject, Style.HasCssName)", "Serialize an object with Json\n@param obj Object\n@return String\n@throws IOException", "Performs a similar transform on A-pI", "Iterates over the elements of an iterable collection of items and returns\nthe index values of the items that match the condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param closure the filter to perform a match on the collection\n@return a list of numbers corresponding to the index values of all matched objects\n@since 1.5.2" ]
protected String extractHeaderComment( File xmlFile ) throws MojoExecutionException { try { SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); SaxHeaderCommentHandler handler = new SaxHeaderCommentHandler(); parser.setProperty( "http://xml.org/sax/properties/lexical-handler", handler ); parser.parse( xmlFile, handler ); return handler.getHeaderComment(); } catch ( Exception e ) { throw new MojoExecutionException( "Failed to parse XML from " + xmlFile, e ); } }
[ "This method extracts the XML header comment if available.\n\n@param xmlFile is the XML {@link File} to parse.\n@return the XML comment between the XML header declaration and the root tag or <code>null</code> if NOT\navailable.\n@throws MojoExecutionException if anything goes wrong." ]
[ "Resolves the configuration.\n\n@param config The specified configuration.\n@return The resolved configuration.", "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Use this API to delete sslfipskey of given name.", "Ensures that the specified fields are present in the given class.\n\n@param classDef The class to copy the fields into\n@param fields The fields to copy\n@throws ConstraintException If there is a conflict between the new fields and fields in the class", "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "Returns the union of sets s1 and s2.", "Check if values in the column \"property\" are written to the bundle files.\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 files.", "Get a loader that lists the Files in the current path,\nand monitors changes.", "Read all task relationships from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file" ]
public boolean detectMobileQuick() { //Let's exclude tablets if (isTierTablet) { return false; } //Most mobile browsing is done on smartphones if (detectSmartphone()) { return true; } //Catch-all for many mobile devices if (userAgent.indexOf(mobile) != -1) { return true; } if (detectOperaMobile()) { return true; } //We also look for Kindle devices if (detectKindle() || detectAmazonSilk()) { return true; } if (detectWapWml() || detectMidpCapable() || detectBrewDevice()) { return true; } if ((userAgent.indexOf(engineNetfront) != -1) || (userAgent.indexOf(engineUpBrowser) != -1)) { return true; } return false; }
[ "Detects if the current device is a mobile device.\nThis method catches most of the popular modern devices.\nExcludes Apple iPads and other modern tablets.\n@return detection of any mobile device using the quicker method" ]
[ "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", "Removes the given key with its associated element from the receiver, if present.\n\n@param key the key to be removed from the receiver.\n@return <tt>true</tt> if the receiver contained the specified key, <tt>false</tt> otherwise.", "Last caller of this method will unregister the Mbean. All callers\ndecrement the counter.", "Returns a compact representation of all of the subtasks of a task.\n\n@param task The task to get the subtasks of.\n@return Request object", "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", "Read tasks representing the WBS.", "Retrieves the registar linked to the bus.\nCreates a new registar is not present.\n\n@param bus\n@return", "Return the list of actions on the tuple.\nInherently deduplicated operations\n\n@return the operations to execute on the Tuple", "capture screenshot of an eye" ]
public String getRandomHoliday(String earliest, String latest) { String dateString = ""; DateTimeFormatter parser = ISODateTimeFormat.date(); DateTime earlyDate = parser.parseDateTime(earliest); DateTime lateDate = parser.parseDateTime(latest); List<Holiday> holidays = new LinkedList<>(); int min = Integer.parseInt(earlyDate.toString().substring(0, 4)); int max = Integer.parseInt(lateDate.toString().substring(0, 4)); int range = max - min + 1; int randomYear = (int) (Math.random() * range) + min; for (Holiday s : EquivalenceClassTransformer.HOLIDAYS) { holidays.add(s); } Collections.shuffle(holidays); for (Holiday holiday : holidays) { dateString = convertToReadableDate(holiday.forYear(randomYear)); if (toDate(dateString).after(toDate(earliest)) && toDate(dateString).before(toDate(latest))) { break; } } return dateString; }
[ "Grab random holiday from the equivalence class that falls between the two dates\n\n@param earliest the earliest date parameter as defined in the model\n@param latest the latest date parameter as defined in the model\n@return a holiday that falls between the dates" ]
[ "Removes the row with the specified key from this association.\n\n@param key the key of the association row to remove", "Read an int from the byte array starting at the given offset\n\n@param bytes The byte array to read from\n@param offset The offset to start reading at\n@return The int read", "Per the navigation drawer design guidelines, updates the action bar to show the global app\n'context', rather than just what's in the current screen.", "Compress contiguous partitions into format \"e-i\" instead of\n\"e, f, g, h, i\". This helps illustrate contiguous partitions within a\nzone.\n\n@param cluster\n@param zoneId\n@return pretty string of partitions per zone", "Infer the type of and create a new output variable using the results from the right side of the equation.\nIf the type is already known just return that.", "IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery", "Converts a TimeUnit instance to an integer value suitable for\nwriting to an MPX file.\n\n@param recurrence RecurringTask instance\n@return integer value", "Transforms a list of Integer objects to an array of primitive int values.\n\n@param integers\n@return", "Use this API to fetch all the callhome resources that are configured on netscaler." ]
public int getXForBeat(int beat) { BeatGrid grid = beatGrid.get(); if (grid != null) { return millisecondsToX(grid.getTimeWithinTrack(beat)); } return 0; }
[ "Determine the X coordinate within the component at which the specified beat begins.\n\n@param beat the beat number whose position is desired\n@return the horizontal position within the component coordinate space where that beat begins\n@throws IllegalArgumentException if the beat number exceeds the number of beats in the track." ]
[ "Constructs a new FastEvent instance\n@param type the event type\n@param manager the bean manager\n@param notifier the notifier to be used for observer method resolution\n@param qualifiers the event qualifiers\n@return", "Use this API to disable nsfeature.", "Get the class name without the qualified package name.\n@param className the className to get the short name for\n@return the class name of the class without the package name\n@throws IllegalArgumentException if the className is empty", "Auto re-initialize external resourced\nif resources have been already released.", "Get the MonetaryAmount implementation class.\n\n@return the implementation class of the containing amount instance, never null.\n@see MonetaryAmount#getContext()", "Add an extension to the set of extensions.\n\n@param extension an extension", "Generates an artifact regarding the parameters.\n\n<P> <b>WARNING:</b> The parameters grId/arId/version should be filled!!! Only classifier and type are not mandatory.\n\n@param groupId String\n@param artifactId String\n@param version String\n@param classifier String\n@param type String\n@param extension String\n@return Artifact", "Add a partition to the node provided\n\n@param node The node to which we'll add the partition\n@param donatedPartition The partition to add\n@return The new node with the new partition", "For every String key, it registers the object as a parameter to make it available\nin the report.\n\n@param jd\n@param _parameters" ]
public List<ColumnProperty> getAllFields(){ ArrayList<ColumnProperty> l = new ArrayList<ColumnProperty>(); for (AbstractColumn abstractColumn : this.getColumns()) { if (abstractColumn instanceof SimpleColumn && !(abstractColumn instanceof ExpressionColumn)) { l.add(((SimpleColumn)abstractColumn).getColumnProperty()); } } l.addAll(this.getFields()); return l; }
[ "Collects all the fields from columns and also the fields not bounds to columns\n@return List<ColumnProperty>" ]
[ "Use this API to apply nspbr6.", "Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Creates a map of identifiers or page titles to documents retrieved via\nthe APIs.\n\n@param numOfEntities\nnumber of entities that should be retrieved\n@param properties\nWbGetEntitiesProperties object that includes all relevant\nparameters for the wbgetentities action\n@return map of document identifiers or titles to documents retrieved via\nthe API URL\n@throws MediaWikiApiErrorException\n@throws IOException", "Query a player to determine the port on which its database server is running.\n\n@param announcement the device announcement with which we detected a new player on the network.", "Starts the named animation.\n@see GVRAvatar#stop(String)\n@see GVRAnimationEngine#start(GVRAnimation)", "Create a BoxStoragePolicyAssignment for a BoxStoragePolicy.\n@param api the API connection to be used by the resource.\n@param policyID the policy ID of the BoxStoragePolicy.\n@param userID the user ID of the to assign the BoxStoragePolicy to.\n@return the information about the BoxStoragePolicyAssignment created.", "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", "Recurses the given folder and creates the FileModels vertices for the child files to the graph." ]
@SuppressWarnings("unchecked") private void setProxyRequestHeaders(HttpServletRequest httpServletRequest, HttpMethod httpMethodProxyRequest) throws Exception { RequestInformation requestInfo = requestInformation.get(); String hostName = HttpUtilities.getHostNameFromURL(httpServletRequest.getRequestURL().toString()); // Get an Enumeration of all of the header names sent by the client Boolean stripTransferEncoding = false; Enumeration<String> enumerationOfHeaderNames = httpServletRequest.getHeaderNames(); while (enumerationOfHeaderNames.hasMoreElements()) { String stringHeaderName = enumerationOfHeaderNames.nextElement(); if (stringHeaderName.equalsIgnoreCase(STRING_CONTENT_LENGTH_HEADER_NAME)) { // don't add this header continue; } // The forwarding proxy may supply a POST encoding hint in ODO-POST-TYPE if (stringHeaderName.equalsIgnoreCase("ODO-POST-TYPE") && httpServletRequest.getHeader("ODO-POST-TYPE").startsWith("content-length:")) { stripTransferEncoding = true; } logger.info("Current header: {}", stringHeaderName); // As per the Java Servlet API 2.5 documentation: // Some headers, such as Accept-Language can be sent by clients // as several headers each with a different value rather than // sending the header as a comma separated list. // Thus, we get an Enumeration of the header values sent by the // client Enumeration<String> enumerationOfHeaderValues = httpServletRequest.getHeaders(stringHeaderName); while (enumerationOfHeaderValues.hasMoreElements()) { String stringHeaderValue = enumerationOfHeaderValues.nextElement(); // In case the proxy host is running multiple virtual servers, // rewrite the Host header to ensure that we get content from // the correct virtual server if (stringHeaderName.equalsIgnoreCase(STRING_HOST_HEADER_NAME) && requestInfo.handle) { String hostValue = getHostHeaderForHost(hostName); if (hostValue != null) { stringHeaderValue = hostValue; } } Header header = new Header(stringHeaderName, stringHeaderValue); // Set the same header on the proxy request httpMethodProxyRequest.addRequestHeader(header); } } // this strips transfer encoding headers and adds in the appropriate content-length header // based on the hint provided in the ODO-POST-TYPE header(sent from BrowserMobProxyHandler) if (stripTransferEncoding) { httpMethodProxyRequest.removeRequestHeader("transfer-encoding"); // add content length back in based on the ODO information String contentLengthHint = httpServletRequest.getHeader("ODO-POST-TYPE"); String[] contentLengthParts = contentLengthHint.split(":"); httpMethodProxyRequest.addRequestHeader("content-length", contentLengthParts[1]); // remove the odo-post-type header httpMethodProxyRequest.removeRequestHeader("ODO-POST-TYPE"); } // bail if we aren't fully handling this request if (!requestInfo.handle) { return; } // deal with header overrides for the request processRequestHeaderOverrides(httpMethodProxyRequest); }
[ "Retrieves all of the headers from the servlet request and sets them on\nthe proxy request\n\n@param httpServletRequest The request object representing the client's request to the\nservlet engine\n@param httpMethodProxyRequest The request that we are about to send to the proxy host" ]
[ "another media scan way", "Creates a new resource.\n@param cmsObject The CmsObject of the current request context.\n@param newLink A string, specifying where which new content should be created.\n@param locale The locale for which the\n@param sitePath site path of the currently edited content.\n@param modelFileName not used.\n@param mode optional creation mode\n@param postCreateHandler optional class name of an {@link I_CmsCollectorPostCreateHandler} which is invoked after the content has been created.\nThe fully qualified class name can be followed by a \"|\" symbol and a handler specific configuration string.\n@return The site-path of the newly created resource.", "Constraint that ensures that the proxy-prefetching-limit has a valid value.\n\n@param def The descriptor (class, reference, collection)\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Convert the integer representation of a duration value and duration units\ninto an MPXJ Duration instance.\n\n@param properties project properties, used for duration units conversion\n@param durationValue integer duration value\n@param unitsValue integer units value\n@return Duration instance", "Creates a new immutable set that consists of given elements.\n\n@param elements the given elements\n@return a new immutable set that consists of given elements", "Add a BETWEEN clause so the column must be between the low and high parameters.", "Get an image as a stream. Callers must be sure to close the stream when they are done with it.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@param suffix\nThe suffix\n@return The InputStream\n@throws IOException", "Undeletes the selected files\n\n@return the ids of the modified resources\n\n@throws CmsException if something goes wrong", "Set the diffuse light intensity.\n\nThis designates the color of the diffuse reflection.\nIt is multiplied by the material diffuse color to derive\nthe hue of the diffuse reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code diffuse_intensity} to control the intensity of diffuse light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)" ]
public void process(SearchDistributor distributor) { List<PossibleState> bootStrap; try { bootStrap = bfs(bootStrapMin); } catch (ModelException e) { bootStrap = new LinkedList<>(); } List<Frontier> frontiers = new LinkedList<>(); for (PossibleState p : bootStrap) { SCXMLFrontier dge = new SCXMLFrontier(p, model, tagExtensionList); frontiers.add(dge); } distributor.distribute(frontiers); }
[ "Performs the BFS and gives the results to a distributor to distribute\n\n@param distributor the distributor" ]
[ "Read all of the fields information from the configuration file.", "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", "Returns a new instance of the class with the given qualified name using the constructor with\nthe specified parameter.\n\n@param className The qualified name of the class to instantiate\n@param type The types of the single parameter of the constructor\n@param arg The argument\n@return The instance", "Instantiate Service Locator client. After successful instantiation\nestablish a connection to the Service Locator server. This method will be\ncalled if property locatorClient is null. For this purpose was defined\nadditional properties to instantiate ServiceLocatorImpl.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Handles newlines by removing them and add new rows instead", "Convert a field value to something suitable to be stored in the database.", "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name", "Return the item view type used by the adapter to implement recycle mechanism.\n\n@param content to be rendered.\n@return an integer that represents the renderer inside the adapter.", "Opens the jar, wraps any IOException." ]
public RenderScript getRenderScript() { if (renderScript == null) { renderScript = RenderScript.create(context, renderScriptContextType); } return renderScript; }
[ "Syncronously creates a Renderscript context if none exists.\nCreating a Renderscript context takes about 20 ms in Nexus 5\n\n@return" ]
[ "Helper method to add a parameter without having to create it explicitely. The created parameter should be persisted afterwards.\n\n@param key\nname of the parameter to add\n@param value\nvalue of the parameter to create\n@return the newly created parameter", "Returns the next power of 2 after the input value x.\n\n@param x Input value x.\n@return Returns the next power of 2 after the input value x.", "Utility function that fetches quota types.", "Return the parent outline number, or an empty string if\nwe have a root task.\n\n@param outlineNumber child outline number\n@return parent outline number", "Sets the maxConnectionAge. Any connections older than this setting will be closed\noff whether it is idle or not. Connections currently in use will not be affected until they\nare returned to the pool.\n\n@param maxConnectionAge the maxConnectionAge to set.\n@param timeUnit the unit of the maxConnectionAge argument.", "Translate this rectangle over the specified following distances.\n\n@param rect rectangle to move\n@param dx delta x\n@param dy delta y", "Allocates a database connection.\n\n@throws SQLException", "Set the permission for who may view the geo data associated with a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe id of the photo to set permissions for.\n@param perms\nPermissions, who can see the geo data of this photo\n@throws FlickrException", "Determine which type of percent complete is used on on this task,\nand calculate the required value.\n\n@param row task data\n@return percent complete value" ]
public static void init() { reports.clear(); Reflections reflections = new Reflections(REPORTS_PACKAGE); final Set<Class<? extends Report>> reportClasses = reflections.getSubTypesOf(Report.class); for(Class<? extends Report> c : reportClasses) { LOG.info("Report class: " + c.getName()); try { reports.add(c.newInstance()); } catch (IllegalAccessException | InstantiationException e) { LOG.error("Error while loading report implementation classes", e); } } if(LOG.isInfoEnabled()) { LOG.info(String.format("Detected %s reports", reports.size())); } }
[ "Initializes the set of report implementation." ]
[ "Extract a slice [from, to) of this buffer. This methods creates a copy of the specified region.\n@param from\n@param to\n@return", "Closes the server socket.", "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", "characters callback.", "Get the last non-white X point\n@param img Image in memory\n@return the trimmed width", "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be shown.", "radi otsu da dobije spojena crna slova i ra\n\n@param input\n@return the processed image", "Ensure that the node is not null.\n\n@param node the node to ensure to be not null\n@param expression the expression was used to find the node\n@throws SpinXPathException if the node is null", "Calculates the LatLong position of the end point of a line the specified\ndistance from this LatLong, along the provided bearing, where North is 0,\nEast is 90 etc.\n\n@param bearing The bearing, in degrees, with North as 0, East as 90 etc.\n@param distance The distance in metres.\n@return A new LatLong indicating the end point." ]
private String formatTime(Date value) { return (value == null ? null : m_formats.getTimeFormat().format(value)); }
[ "This method is called to format a time value.\n\n@param value time value\n@return formatted time value" ]
[ "Returns the complete record for a single section.\n\n@param section The section to get.\n@return Request object", "Places a connection back in the originating partition.\n@param connectionHandle to place back\n@throws SQLException on error", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Returns the filename of the resource with extension.\n\n@return Filename of the GVRAndroidResource. May return null if the\nresource is not associated with any file", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "parse json text to specified class\n\n@param jsonRtn\n@param jsonRtnClazz\n@return", "Allow for the use of text shading and auto formatting.", "Check if all cluster objects in the list are congruent.\n\n@param clusterUrls of cluster objects\n@return" ]
public Collection<Tag> getListUser(String userId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST_USER); parameters.put("user_id", userId); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element whoElement = response.getPayload(); List<Tag> tags = new ArrayList<Tag>(); Element tagsElement = (Element) whoElement.getElementsByTagName("tags").item(0); NodeList tagElements = tagsElement.getElementsByTagName("tag"); for (int i = 0; i < tagElements.getLength(); i++) { Element tagElement = (Element) tagElements.item(i); Tag tag = new Tag(); tag.setValue(((Text) tagElement.getFirstChild()).getData()); tags.add(tag); } return tags; }
[ "Get a collection of tags used by the specified user.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param userId\nThe User ID\n@return The User object\n@throws FlickrException" ]
[ "Parses an adl source into a differential archetype.\n\n@param adl contents of an adl source file\n@return parsed archetype\n@throws org.openehr.adl.parser.AdlParserException if an error occurred while parsing", "Read the project data and return a ProjectFile instance.\n\n@return ProjectFile instance", "No need to expose. Client side work.", "Get a message bundle of the given type.\n\n@param type the bundle type class\n\n@return the bundle", "Return a list of contacts for a user who have recently uploaded photos along with the total count of photos uploaded.\n\n@param lastUpload\nLimits the resultset to contacts that have uploaded photos since this date. The date should be in the form of a Unix timestamp. The default,\nand maximum, offset is (1) hour. (Optional, can be null)\n@param filter\nLimit the result set to all contacts or only those who are friends or family.<br/>\nValid options are: <b>ff</b> -&gt; friends and family, <b>all</b> -&gt; all your contacts. (Optional, can be null)\n\n@return List of Contacts\n@throws FlickrException", "Returns the JMX connector address of a child process.\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return a {@link JMXServiceURL} to the process's MBean server", "Returns a list of metadata property paths.\n@return the list of metdata property paths.", "Does a query for the object's Id and copies in each of the field values from the database to refresh the data\nparameter.", "Handle click on \"Add\" button.\n@param e the click event." ]
public void close() { Closer.closeQuietly(acceptor); for (Processor processor : processors) { Closer.closeQuietly(processor); } }
[ "Shutdown the socket server" ]
[ "Convert from Hadoop Text to Bytes", "Straight conversion from an ObjectName to a PathAddress.\n\nThere may not necessarily be a Resource at this path address (if that correspond to a pattern) but it must\nmatch a model in the registry.\n\n@param domain the name of the caller's JMX domain\n@param registry the root resource for the management model\n@param name the ObjectName to convert\n\n@return the PathAddress, or {@code null} if no address matches the object name", "This function looks for files with the \"wrong\" replica type in their name, and\nif it finds any, renames them.\n\nThose files may have ended up on this server either because:\n- 1. We restored them from another server, where they were named according to\nanother replica type. Or,\n- 2. The {@link voldemort.store.readonly.mr.azkaban.VoldemortBuildAndPushJob}\nand the {@link voldemort.store.readonly.fetcher.HdfsFetcher} are\noperating in 'build.primary.replicas.only' mode, so they only ever built\nand fetched replica 0 of any given file.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param masterPartitionId partition ID of the \"primary replica\"\n@param correctReplicaType replica number which should be found on the current\nnode for the provided masterPartitionId.", "Called after creating the first connection. The adapter should create its caches and do all initialization it requires. Most\nimportantly, the SQL query cache should be created.\n\n@param cnx\nan open ready to use connection to the database.", "Creates the stats items.\n\n@param statsType\nthe stats type\n@return the sorted set\n@throws IOException\nSignals that an I/O exception has occurred.", "Use this API to fetch all the appfwlearningdata resources that are configured on netscaler.\nThis uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources.", "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container", "Find a column by its name\n\n@param columnName the name of the column\n@return the given Column, or <code>null</code> if not found", "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred." ]
public boolean matches(PathElement pe) { return pe.key.equals(key) && (isWildcard() || pe.value.equals(value)); }
[ "Determine whether the given element matches this element.\nAn element matches this element when keys are equal, values are equal\nor this element value is a wildcard.\n@param pe the element to check\n@return {@code true} if the element matches" ]
[ "Port forward missing module changes for each layer.\n\n@param patch the current patch\n@param context the patch context\n@throws PatchingException\n@throws IOException\n@throws XMLStreamException", "Split input text into sentences.\n\n@param text Input text.\n@return List of Sentence objects.", "Associate the specified value with the specified key in this map.\nIf the map previously contained a mapping for this key, the old\nvalue is replaced and returned.\n\n@param key the key with which the value is to be associated\n@param value the value to be associated with this key\n@return the value previously mapped to the key, or null", "Use this API to fetch all the gslbrunningconfig resources that are configured on netscaler.", "a small static helper class to get the color from the colorHolder\n\n@param colorHolder\n@param ctx\n@return", "Get the cached ETag for the given host and file\n@param host the host\n@param file the file\n@return the cached ETag or null if there is no ETag in the cache", "this class requires that the supplied enum is not fitting a\nCollection case for casting", "Accessor method used to retrieve an Duration object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Add a value to this activity code.\n\n@param uniqueID value unique ID\n@param name value name\n@param description value description\n@return ActivityCodeValue instance" ]
PollingState<T> withStatus(String status, int statusCode) throws IllegalArgumentException { if (status == null) { throw new IllegalArgumentException("Status is null."); } this.status = status; this.statusCode = statusCode; return this; }
[ "Sets the polling status.\n\n@param status the polling status.\n@param statusCode the HTTP status code\n@throws IllegalArgumentException thrown if status is null." ]
[ "Get the spatial object from the cache.\n\n@param key key to get object for\n@param type type of object which should be returned\n@return object for key or null if object does not exist or is a different type", "Return a list of place IDs for a query string.\n\nThe flickr.places.find method is not a geocoder. It will round \"up\" to the nearest place type to which place IDs apply. For example, if you pass it a\nstreet level address it will return the city that contains the address rather than the street, or building, itself.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param query\n@return PlacesList\n@throws FlickrException", "Makes object obj persistent in the underlying persistence system.\nE.G. by INSERT INTO ... or UPDATE ... in an RDBMS.\nThe ObjectModification parameter can be used to determine whether INSERT or update is to be used.\nThis functionality is typically called from transaction managers, that\ntrack which objects have to be stored. If the object is an unmaterialized\nproxy the method return immediately.", "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", "Perform the given work with a Jedis connection from the given pool.\nWraps any thrown checked exceptions in a RuntimeException.\n\n@param pool the resource pool\n@param work the work to perform\n@param <V> the result type\n@return the result of the given work", "Checks to see if the submatrix has its boundaries along inner blocks.\n\n@param blockLength Size of an inner block.\n@param A Submatrix.\n@return If it is block aligned or not.", "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.", "Set ViewPort visibility of the object.\n\n@see ViewPortVisibility\n@param viewportVisibility\nThe ViewPort visibility of the object.\n@return {@code true} if the ViewPort visibility was changed, {@code false} if it\nwasn't.", "Assigns this retention policy to a metadata template, optionally with certain field values.\n@param templateID the ID of the metadata template to apply to.\n@param fieldFilters optional field value filters.\n@return info about the created assignment." ]
protected ClassDescriptor getClassDescriptor() { ClassDescriptor cld = (ClassDescriptor) m_classDescriptor.get(); if(cld == null) { throw new OJBRuntimeException("Requested ClassDescriptor instance was already GC by JVM"); } return cld; }
[ "Returns the classDescriptor.\n\n@return ClassDescriptor" ]
[ "Use this API to update snmpoption.", "This method is called to format a units value.\n\n@param value numeric value\n@return currency value", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices", "Closes the connection to the Z-Wave controller.", "Parses coordinates into a Spatial4j point shape.", "Inserts a Serializable 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 Serializable object, or null\n@return this bundler instance to chain method calls", "This method returns the value of the product under the specified model and other information in a key-value map.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model A model used to evaluate the product.\n@return The values of the product.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side" ]
private int getPrototypeIndex(Renderer renderer) { int index = 0; for (Renderer prototype : prototypes) { if (prototype.getClass().equals(renderer.getClass())) { break; } index++; } return index; }
[ "Return the index associated to the Renderer.\n\n@param renderer used to search in the prototypes collection.\n@return the prototype index associated to the renderer passed as argument." ]
[ "Typically this is transparently handled by using the Protostream codecs but be aware of it when bypassing Protostream.", "Register the given callback as to be executed after request completion.\n\n@param name The name of the bean.\n@param callback The callback of the bean to be executed for destruction.", "Query for an object in the database which matches the id argument.", "Calculated the numeraire relative value of an underlying swap leg.\n\n@param model The Monte Carlo model.\n@param legSchedule The schedule of the leg.\n@param paysFloat If true a floating rate is payed.\n@param swaprate The swaprate. May be 0.0 for pure floating leg.\n@param notional The notional.\n@return The sum of the numeraire relative cash flows.\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "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", "Accessor method used to retrieve a Float object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix.", "Use this API to fetch linkset_interface_binding resources of given name .", "Set the name of the schema containing the Primavera tables.\n\n@param schema schema name." ]
public Object get(String name, ObjectFactory<?> factory) { ThreadScopeContext context = ThreadScopeContextHolder.getContext(); Object result = context.getBean(name); if (null == result) { result = factory.getObject(); context.setBean(name, result); } return result; }
[ "Get bean for given name in the \"thread\" scope.\n\n@param name name of bean\n@param factory factory for new instances\n@return bean for this scope" ]
[ "Ask the specified player for the waveform preview in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param trackReference uniquely identifies the desired waveform preview\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nwaveform updates will use available caches only\n\n@return the waveform preview found, if any", "Returns a set that contains all the unique entries of the given iterator in the order of their appearance.\nThe result set is a copy of the iterator with stable order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a set with the unique entries of the given iterator. Never <code>null</code>.", "Validates an operation against its description provider\n\n@param operation The operation to validate\n@throws IllegalArgumentException if the operation is not valid", "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise", "Returns a new iterable filtering any null references.\n\n@param unfiltered\nthe unfiltered iterable. May not be <code>null</code>.\n@return an unmodifiable iterable containing all elements of the original iterable without any <code>null</code> references. Never <code>null</code>.", "Returns the complete task record for a single task.\n\n@param task The task to get.\n@return Request object", "Returns the single abstract method of a class node, if it is a SAM type, or null otherwise.\n@param type a type for which to search for a single abstract method\n@return the method node if type is a SAM type, null otherwise", "Function to clear all the metadata related to the given store\ndefinitions. This is needed when a put on 'stores.xml' is called, thus\nreplacing the existing state.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will handle concurrency related issues.\n\n@param storeNamesToDelete", "Sets the path of the edited file in the corresponding display.\n@param editedFilePath path of the edited file to set." ]
public SerialMessage setValueMessage(int level) { logger.debug("Creating new message for application command BASIC_SET for node {}", this.getNode().getNodeId()); SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageClass.SendData, SerialMessageType.Request, SerialMessageClass.SendData, SerialMessagePriority.Set); byte[] newPayload = { (byte) this.getNode().getNodeId(), 3, (byte) getCommandClass().getKey(), (byte) BASIC_SET, (byte) level }; result.setMessagePayload(newPayload); return result; }
[ "Gets a SerialMessage with the BASIC SET command\n@param the level to set.\n@return the serial message" ]
[ "Checks that native primarykey fields have readonly access, and warns if not.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Converts any path into something that can be placed in an Android directory.\n\nTraverses any subdirectories and flattens it all into a single filename. Also\ngets rid of commonly seen illegal characters in tz identifiers, and lower cases\nthe entire thing.\n\n@param path the path to convert\n@return a flat path with no directories (and lower-cased)", "Template method responsible for file compression checks, file creation, and\ndelegation to specific strategy implementations.\n\n@param backupFile\nThe file to be compressed.\n@param properties\nThe appender's configuration.", "Transforms a length according to the current transformation matrix.", "Main method to run the bot.\n\n@param args\n@throws LoginFailedException\n@throws IOException\n@throws MediaWikiApiErrorException", "Add an individual class to the map file.\n\n@param loader jar file class loader\n@param jarEntry jar file entry\n@param writer XML stream writer\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException", "Write a string attribute.\n\n@param name attribute name\n@param value attribute value", "Stops the background stream thread.", "Generates a set of excluded method names.\n\n@param methodNames method names\n@return set of method names" ]
public CentralDogmaBuilder port(InetSocketAddress localAddress, SessionProtocol protocol) { return port(new ServerPort(localAddress, protocol)); }
[ "Adds a port that serves the HTTP requests. If unspecified, cleartext HTTP on port 36462 is used.\n\n@param localAddress the TCP/IP load address to bind\n@param protocol {@link SessionProtocol#HTTP} or {@link SessionProtocol#HTTPS}" ]
[ "Returns the designer version from the manifest.\n@param context\n@return version", "Sets name, status, start time and title to specified step\n\n@param step which will be changed", "get bearer token returned by IAM in JSON format", "Use this API to update aaaparameter.", "Get the Operation metadata for an MBean by name.\n@return the {@link Map} of {@link String} operation names to {@link MBeanOperationInfo} values.", "Ensures that every path starts and ends with a slash character.\n\n@param scriptPath the scriptPath that needs to be normalized\n@return a path with leading and trailing slash", "Checks all data sets in a given record for constraint violations.\n\n@param record\nIIM record (1,2,3, ...) to check\n\n@return list of constraint violations, empty set if IIM file is valid", "Use this API to update sslcertkey resources.", "Must be called with pathEntries lock taken" ]
private void populateConstraints(Row row, Task task) { Date endDateMax = row.getTimestamp("ZGIVENENDDATEMAX_"); Date endDateMin = row.getTimestamp("ZGIVENENDDATEMIN_"); Date startDateMax = row.getTimestamp("ZGIVENSTARTDATEMAX_"); Date startDateMin = row.getTimestamp("ZGIVENSTARTDATEMIN_"); ConstraintType constraintType = null; Date constraintDate = null; if (endDateMax != null) { constraintType = ConstraintType.FINISH_NO_LATER_THAN; constraintDate = endDateMax; } if (endDateMin != null) { constraintType = ConstraintType.FINISH_NO_EARLIER_THAN; constraintDate = endDateMin; } if (endDateMin != null && endDateMin == endDateMax) { constraintType = ConstraintType.MUST_FINISH_ON; constraintDate = endDateMin; } if (startDateMax != null) { constraintType = ConstraintType.START_NO_LATER_THAN; constraintDate = startDateMax; } if (startDateMin != null) { constraintType = ConstraintType.START_NO_EARLIER_THAN; constraintDate = startDateMin; } if (startDateMin != null && startDateMin == endDateMax) { constraintType = ConstraintType.MUST_START_ON; constraintDate = endDateMin; } task.setConstraintType(constraintType); task.setConstraintDate(constraintDate); }
[ "Populate the constraint type and constraint date.\nNote that Merlin allows both start and end constraints simultaneously.\nAs we can't have both, we'll prefer the start constraint.\n\n@param row task data from database\n@param task Task instance" ]
[ "Clears the handler hierarchy.", "Returns the currently scheduled job description identified by the given id.\n\n@param id the job id\n\n@return a job or <code>null</code> if not found", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Apply the remote read domain model result.\n\n@param result the domain model result\n@return whether it was applied successfully or not", "Mark a PersistenceBroker as preferred choice for current Thread\n\n@param key The PBKey the broker is associated to\n@param broker The PersistenceBroker to mark as current", "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Returns a unique file name\n@param baseFileName the requested base name for the file\n@param extension the requested extension for the file\n@param cleanBaseFileName specify if the <code>baseFileName</code> has to be cleaned before being used (i.e. 'jboss-web' should not be cleaned to avoid '-' to become '_')\n@param ancestorFolders specify the ancestor folders for the file (if there's no ancestor folder, just pass 'null' value)\n@return a String representing the unique file generated", "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record", "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characters in quotes" ]
public void end(String key) { if (key == null) { return; } TimingData data = executionInfo.get(key); if (data == null) { LOG.info("Called end with key: " + key + " without ever calling begin"); return; } data.end(); }
[ "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." ]
[ "SearchService is a service which shares the information about Persons with the PersonService.\nIt lets users search for individual people using simple or complex search expressions.\nThe interaction with this service also verifies that the JAX-RS server is capable of supporting multiple\nroot resource classes", "Assign FK value to target object by reading PK values of referenced object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.\n@param referencedObject referenced object or proxy\n@param insert Show if \"linking\" is done while insert or update.", "Use this API to fetch filtered set of dbdbprofile resources.\nset the filter parameter values in filtervalue object.", "Retrieve a child record by name.\n\n@param key child record name\n@return child record", "Sets the response context.\n\n@param responseContext\nthe response context\n@return the parallel task builder", "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.", "Test whether the operation has a defined criteria attribute.\n\n@param operation the operation\n@return", "Update the anchor based on arcore best knowledge of the world\n\n@param scale", "Get the error message with the dependencies appended\n\n@param dependencies - the list with dependencies to be attached to the message\n@param message - the custom error message to be displayed to the user\n@return String" ]
public base_response enable_modes(String[] modes) throws Exception { base_response result = null; nsmode resource = new nsmode(); resource.set_mode(modes); options option = new options(); option.set_action("enable"); result = resource.perform_operation(this, option); return result; }
[ "Use this API to enable the mode on Netscaler.\n@param mode mode to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception." ]
[ "Resolve a resource transformer for a given address.\n\n@param address the address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return the resource transformer", "You should use the server's time here. Otherwise you might get unexpected results.\n\nThe typical use case is:\n\n\n<pre>\nHTTPResponse response = ....\nHTTPRequest request = createRequest();\nrequest = request.conditionals(new Conditionals().ifModifiedSince(response.getLastModified());\n</pre>\n\n@param time the time to check.\n@return the conditionals with the If-Modified-Since date set.", "Take a string and make it an iterable ContentStream", "Convert Collection to Set\n@param collection Collection\n@return Set", "This method can be used by child classes to apply the configuration that is stored in config.", "splits a string into a list of strings. Trims the results and ignores empty strings", "Starts the transition", "Saves messages to a xmlvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails.", "do delete given object. Should be used by all intern classes to delete\nobjects." ]
@Nonnull private ReferencedEnvelope getFeatureBounds( final MfClientHttpRequestFactory clientHttpRequestFactory, final MapAttributeValues mapValues, final ExecutionContext context) { final MapfishMapContext mapContext = createMapContext(mapValues); String layerName = mapValues.zoomToFeatures.layer; ReferencedEnvelope bounds = new ReferencedEnvelope(); for (MapLayer layer: mapValues.getLayers()) { context.stopIfCanceled(); if ((!StringUtils.isEmpty(layerName) && layerName.equals(layer.getName())) || (StringUtils.isEmpty(layerName) && layer instanceof AbstractFeatureSourceLayer)) { AbstractFeatureSourceLayer featureLayer = (AbstractFeatureSourceLayer) layer; FeatureSource<?, ?> featureSource = featureLayer.getFeatureSource(clientHttpRequestFactory, mapContext); FeatureCollection<?, ?> features; try { features = featureSource.getFeatures(); } catch (IOException e) { throw ExceptionUtils.getRuntimeException(e); } if (!features.isEmpty()) { final ReferencedEnvelope curBounds = features.getBounds(); bounds.expandToInclude(curBounds); } } } return bounds; }
[ "Get the bounding-box containing all features of all layers." ]
[ "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}", "Cleans up a extension module's subsystems from the resource registration model.\n\n@param rootResource the model root resource\n@param moduleName the name of the extension's module. Cannot be {@code null}\n@throws IllegalStateException if the extension still has subsystems present in {@code rootResource} or its children", "Reads baseline values for the current resource.\n\n@param xmlResource MSPDI resource instance\n@param mpxjResource MPXJ resource instance", "Transform the given object into an array of bytes\n\n@param object The object to be serialized\n@return The bytes created from serializing the object", "Parse a string.\n\n@param value string representation\n@return String value", "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException", "Get a property as a string or throw an exception.\n\n@param key the property name", "Create a JavadocComment, by formatting the text of the Javadoc using the given indentation.", "Use this API to create sslfipskey resources." ]
public <V> V attach(final AttachmentKey<V> key, final V value) { assert key != null; return key.cast(contextAttachments.put(key, value)); }
[ "Attaches an arbitrary object to this context.\n\n@param key they attachment key used to ensure uniqueness and used for retrieval of the value.\n@param value the value to store.\n@param <V> the value type of the attachment.\n\n@return the previous value associated with the key or {@code null} if there was no previous value." ]
[ "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", "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.", "Set the draw mode for this mesh. Default is GL_TRIANGLES.\n\n@param drawMode", "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Has to be called when the scenario is finished in order to execute after methods.", "The Baseline Duration field shows the original span of time planned\nto complete a task.\n\n@return - duration string", "Apply a filter to the list of all tasks, and show the results.\n\n@param project project file\n@param filter filter", "Encrypt a string with HMAC-SHA1 using the specified key.\n\n@param message Input string.\n@param key Encryption key.\n@return Encrypted output.", "Send a master changed announcement to all registered master listeners.\n\n@param update the message announcing the new tempo master" ]
private void handleChange(Object propertyId) { if (!m_saveBtn.isEnabled()) { m_saveBtn.setEnabled(true); m_saveExitBtn.setEnabled(true); } m_model.handleChange(propertyId); }
[ "Handle a value change.\n@param propertyId the column in which the value has changed." ]
[ "Add a calendar node.\n\n@param parentNode parent node\n@param calendar calendar", "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", "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "Remove an addon from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAppAddons} for a list of addons that can be used.\n@return the request object", "checks whether the specified Object obj is write-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false", "cleanup tx and prepare for reuse", "set ViewPager scroller to change animation duration when sliding", "Close the store.", "Get the Attribute metadata for an MBean by name.\n@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values." ]
private void logMigration(DbMigration migration, boolean wasSuccessful) { BoundStatement boundStatement = logMigrationStatement.bind(wasSuccessful, migration.getVersion(), migration.getScriptName(), migration.getMigrationScript(), new Date()); session.execute(boundStatement); }
[ "Inserts the result of the migration into the migration table\n\n@param migration the migration that was executed\n@param wasSuccessful indicates if the migration was successful or not" ]
[ "Generates timephased actual costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost", "provides a safe toString", "Load and run the OnBrowserCreatedPlugins, this call has been made from the browser pool when a\nnew browser has been created and ready to be used by the Crawler. The PreCrawling plugins are\nexecuted before these plugins are executed except that the pre-crawling plugins are only\nexecuted on the first created browser.\n\n@param newBrowser the new created browser object", "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value", "Gets the Topsoe divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Topsoe divergence between p and q.", "Starts the animation with the given index.\n@param animIndex 0-based index of {@link GVRAnimator} to start;\n@see GVRAvatar#stop()\n@see #start(String)", "Gets all the enterprise events that occurred within a specified date range.\n@param api the API connection to use.\n@param after the lower bound on the timestamp of the events returned.\n@param before the upper bound on the timestamp of the events returned.\n@param types an optional list of event types to filter by.\n@return a log of all the events that met the given criteria.", "Return fallback if first string is null or empty", "Determines if the queue identified by the given key can be used as a delayed queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key already is a delayed queue or is not currently used, false otherwise" ]
public Duration getTotalSlack() { Duration totalSlack = (Duration) getCachedValue(TaskField.TOTAL_SLACK); if (totalSlack == null) { Duration duration = getDuration(); if (duration == null) { duration = Duration.getInstance(0, TimeUnit.DAYS); } TimeUnit units = duration.getUnits(); Duration startSlack = getStartSlack(); if (startSlack == null) { startSlack = Duration.getInstance(0, units); } else { if (startSlack.getUnits() != units) { startSlack = startSlack.convertUnits(units, getParentFile().getProjectProperties()); } } Duration finishSlack = getFinishSlack(); if (finishSlack == null) { finishSlack = Duration.getInstance(0, units); } else { if (finishSlack.getUnits() != units) { finishSlack = finishSlack.convertUnits(units, getParentFile().getProjectProperties()); } } double startSlackDuration = startSlack.getDuration(); double finishSlackDuration = finishSlack.getDuration(); if (startSlackDuration == 0 || finishSlackDuration == 0) { if (startSlackDuration != 0) { totalSlack = startSlack; } else { totalSlack = finishSlack; } } else { if (startSlackDuration < finishSlackDuration) { totalSlack = startSlack; } else { totalSlack = finishSlack; } } set(TaskField.TOTAL_SLACK, totalSlack); } return (totalSlack); }
[ "The Total Slack field contains the amount of time a task can be\ndelayed without delaying the project's finish date.\n\n@return string representing duration" ]
[ "Create a transactional protocol client.\n\n@param channelAssociation the channel handler\n@return the transactional protocol client", "Add classes to the map file.\n\n@param writer XML stream writer\n@param jarFile jar file\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException", "Describe the model as a list of resources with their address and model, which\nthe HC can directly apply to create the model. Although the format might appear\nsimilar as the operations generated at boot-time this description is only useful\nto create the resource tree and cannot be used to invoke any operation.\n\n@param rootAddress the address of the root resource being described\n@param resource the root resource\n@return the list of resources", "Creates an operations that targets this handler.\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "Get file size\n\n@return Long", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}", "Create a set containing all the processors in the graph.", "Iterate through dependencies", "Bessel function of the first kind, of order 0.\n\n@param x Value.\n@return I0 value." ]
public synchronized void abortTransaction() throws TransactionNotInProgressException { if(isInTransaction()) { fireBrokerEvent(BEFORE_ROLLBACK_EVENT); setInTransaction(false); clearRegistrationLists(); referencesBroker.removePrefetchingListeners(); /* arminw: check if we in local tx, before do local rollback Necessary, because ConnectionManager may do a rollback by itself or in managed environments the used connection is already be closed */ if(connectionManager.isInLocalTransaction()) this.connectionManager.localRollback(); fireBrokerEvent(AFTER_ROLLBACK_EVENT); } }
[ "Abort and close the transaction.\nCalling abort abandons all persistent object modifications and releases the\nassociated locks.\nIf transaction is not in progress a TransactionNotInProgressException is thrown" ]
[ "get the key name to use in log from the logging keys map", "This method returns the value of the product under the specified model and other information in a key-value map.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model A model used to evaluate the product.\n@return The values of the product.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Adds a new floating point variable. If one already has the same name it is written over.\n@param value Value of the number\n@param name Name in code", "Returns the Java command to use.\n\n@param javaHome the Java Home, if {@code null} an attempt to determine the command will be done\n\n@return the Java executable command", "Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle", "Start with specifying the groupId", "Parse a command line with the defined command as base of the rules.\nIf any options are found, but not defined in the command object an\nCommandLineParserException will be thrown.\nAlso, if a required option is not found or options specified with value,\nbut is not given any value an CommandLineParserException will be thrown.\n\n@param line input\n@param mode parser mode", "Returns the value of the primitive type from the given string value.\n\n@param value the value to parse\n@param cls the primitive type class\n@return the boxed type value or {@code null} if the given class is not a primitive type", "Re-maps a provided collection.\n\n@param <T_Result>\ntype of result\n@param <T_Source>\ntype of source\n@param source\nfor mapping\n@param mapper\nelement mapper\n@return mapped source" ]
public LatLong getLocation() { if (location == null) { location = new LatLong((JSObject) (getJSObject().getMember("location"))); } return location; }
[ "The location for this elevation.\n\n@return" ]
[ "Given a Task instance, this task determines if it should be written to the\nPM XML file as an activity or as a WBS item, and calls the appropriate\nmethod.\n\n@param task Task instance", "Starts the scenario with the given method and arguments.\nDerives the description from the method name.\n@param method the method that started the scenario\n@param arguments the test arguments with their parameter names", "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "Throws if the given file is null, is not a file or directory, or is an empty directory.", "Obtain newline-delimited headers from method\n\n@param method HttpMethod to scan\n@return newline-delimited headers", "Use this API to kill systemsession.", "Tokenize the the string as a package hierarchy\n\n@param str\n@return", "Create the index and associate it with all project models in the Application", "Get information about this database.\n\n@return DbInfo encapsulating the database info\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/database.html#getting-database-details\"\ntarget=\"_blank\">Databases - read</a>" ]
public static CmsSearchConfigurationSorting create( final String sortParam, final List<I_CmsSearchConfigurationSortOption> options, final I_CmsSearchConfigurationSortOption defaultOption) { return (null != sortParam) || ((null != options) && !options.isEmpty()) || (null != defaultOption) ? new CmsSearchConfigurationSorting(sortParam, options, defaultOption) : null; }
[ "Creates a sort configuration iff at least one of the parameters is not null and the options list is not empty.\n@param sortParam The request parameter used to send the currently chosen search option.\n@param options The available sort options.\n@param defaultOption The default sort option.\n@return the sort configuration or null, depending on the arguments." ]
[ "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", "Extract the parameters from a method using the Jmx annotation if present,\nor just the raw types otherwise\n\n@param m The method to extract parameters from\n@return An array of parameter infos", "Reads a color value represented by three bytes, for R, G, and B\ncomponents, plus a flag byte indicating if this is an automatic color.\nReturns null if the color type is \"Automatic\".\n\n@param data byte array of data\n@param offset offset into array\n@return new Color instance", "removes all timed out lock entries from the persistent storage.\nThe timeout value can be set in the OJB properties file.", "Pads the given String to the left with the given character to ensure that\nit's at least totalChars long.", "create a broker with given broker info\n\n@param id broker id\n@param brokerInfoString broker info format: <b>creatorId:host:port:autocreated</b>\n@return broker instance with connection config\n@see #getZKString()", "A map of the header key value pairs. Keys are strings and values are either list of strings or a\nstring.\n\n@param headers the header map", "Used to determine if multiple cost rates apply to this assignment.\n\n@return true if multiple cost rates apply to this assignment", "Add a calendar day node.\n\n@param parentNode parent node\n@param calendar ProjectCalendar instance\n@param day calendar day" ]
private JSONObject getConvertedResponseAsJson(SpellCheckResponse response) { if (null == response) { return null; } final JSONObject suggestions = new JSONObject(); final Map<String, Suggestion> solrSuggestions = response.getSuggestionMap(); // Add suggestions to the response for (final String key : solrSuggestions.keySet()) { // Indicator to ignore words that are erroneously marked as misspelled. boolean ignoreWord = false; // Suggestions that are in the form "Xxxx" -> "xxxx" should be ignored. if (Character.isUpperCase(key.codePointAt(0))) { final String lowercaseKey = key.toLowerCase(); // If the suggestion map doesn't contain the lowercased word, ignore this entry. if (!solrSuggestions.containsKey(lowercaseKey)) { ignoreWord = true; } } if (!ignoreWord) { try { // Get suggestions as List final List<String> l = solrSuggestions.get(key).getAlternatives(); suggestions.put(key, l); } catch (JSONException e) { LOG.debug("Exception while converting Solr spellcheckresponse to JSON. ", e); } } } return suggestions; }
[ "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." ]
[ "Returns true if the given method has a possibly matching instance method with the given name and arguments.\n\n@param name the name of the method of interest\n@param arguments the arguments to match against\n@return true if a matching method was found", "Wait for exclusive permit during a timeout in milliseconds.\n\n@return number of acquired permits if > 0", "Orders first by word, then by tag.\n\n@param wordTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)", "Checks if the name of the file follows the version-n format\n\n@param versionDir The directory\n@return Returns true if the name is correct, else false", "Set the TableAlias for ClassDescriptor", "Overridden to add transform.", "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry", "Calculate matrix exponential of a square matrix.\n\nA scaled Pade approximation algorithm is used.\nThe algorithm has been directly translated from Golub & Van Loan \"Matrix Computations\",\nalgorithm 11.3.1. Special Horner techniques from 11.2 are also used to minimize the number\nof matrix multiplications.\n\n@param A square matrix\n@return matrix exponential of A", "given the groupId, and 2 string arrays, adds the name-responses pair to the table_override\n\n@param groupId ID of group\n@param methodName name of method\n@param className name of class\n@throws Exception exception" ]
public void setUserInfo(String username, String infoName, String value) throws CmsException { CmsUser user = m_cms.readUser(username); user.setAdditionalInfo(infoName, value); m_cms.writeUser(user); }
[ "Sets a string-valued additional info entry on the user.\n\n@param username the name of the user\n@param infoName the additional info key\n@param value the additional info value\n\n@throws CmsException if something goes wrong" ]
[ "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", "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.", "return a prepared Select Statement for the given ClassDescriptor", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels.", "This method retrieves the data at the given offset and returns\nit as a String, assuming the underlying data is composed of\nsingle byte characters.\n\n@param offset offset of required data\n@return string containing required data", "Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if null, returns false.", "Start the rendering of the scalebar.", "Log a message with a throwable at the provided level.", "create a consumer\n\n@param zookeeperConfig connect config of zookeeper; ex: 127.0.0.1:2181/jafka\n@param topic the topic to be watched\n@param groupId grouping the consumer clients\n@param listener message listener\n@return the real consumer" ]
public InputStream getAvatar() { URL url = USER_AVATAR_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, "GET"); BoxAPIResponse response = request.send(); return response.getBody(); }
[ "Retrieves the avatar of a user as an InputStream.\n\n@return InputStream representing the user avater." ]
[ "Returns a new macro resolver that loads message keys from the workplace bundle in the user setting's language.\n@param cms the CmsObject.\n@return a new macro resolver with messages from the workplace bundle in the current users locale.", "Discards any tracks from the hot cache that were loaded from a now-unmounted media slot, because they are no\nlonger valid.", "Compares two annotated parameters and returns true if they are equal", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key", "Creates a favorite widget for a favorite entry.\n\n@param entry the favorite entry\n@return the favorite widget\n\n@throws CmsException if something goes wrong", "Helper function to find the beat grid section in a rekordbox track analysis file.\n\n@param anlzFile the file that was downloaded from the player\n\n@return the section containing the beat grid", "Creates a new Box Developer Edition connection with enterprise token leveraging an access token cache.\n@param enterpriseId the enterprise ID to use for requesting access token.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "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", "refresh all deliveries dependencies for a particular product" ]
synchronized void setServerProcessStopping() { this.requiredState = InternalState.STOPPED; internalSetState(null, InternalState.STOPPED, InternalState.PROCESS_STOPPING); }
[ "On host controller reload, remove a not running server registered in the process controller declared as stopping." ]
[ "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "Remove paths with no active overrides\n\n@throws Exception", "Convert a Identification to a By used in WebDriver Drivers.\n\n@return the correct By specification of the current Identification.", "A safe wrapper to destroy the given resource request.", "The metadata cache can become huge over time. This simply flushes it periodically.", "Use this API to fetch appfwsignatures resource of given name .", "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", "Set the amount of padding between child objects.\n@param axis {@link Axis}\n@param padding", "Saves the messages for all languages that were opened in the editor.\n\n@throws CmsException thrown if saving fails." ]
private File getWorkDir() throws IOException { if (_workDir == null) { File dummy = File.createTempFile("dummy", ".log"); String workDir = dummy.getPath().substring(0, dummy.getPath().lastIndexOf(File.separatorChar)); if ((workDir == null) || (workDir.length() == 0)) { workDir = "."; } dummy.delete(); _workDir = new File(workDir); } return _workDir; }
[ "Returns the temporary directory used by java.\n\n@return The temporary directory\n@throws IOException If an io error occurred" ]
[ "Creates a Bytes object by copying the value of the given String", "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Returns the full record for a single story.\n\n@param story Globally unique identifier for the story.\n@return Request object", "Display a Notification message\n@param event", "Determines the field via reflection look-up.\n\n@param clazz The java class to search in\n@param fieldName The field's name\n@return The field object or <code>null</code> if no matching field was found", "Use this API to add nsip6 resources.", "Returns the complete task record for a single task.\n\n@param task The task to get.\n@return Request object", "Send a device lost announcement to all registered listeners.\n\n@param announcement the last message received from the vanished device", "Returns an ArrayList of String URLs of the Carousel Images\n@return ArrayList of Strings" ]
public static <T> int createTable(ConnectionSource connectionSource, DatabaseTableConfig<T> tableConfig) throws SQLException { Dao<T, ?> dao = DaoManager.createDao(connectionSource, tableConfig); return doCreateTable(dao, false); }
[ "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." ]
[ "Resolves the package type from the maven project.\n\n@param project the maven project\n\n@return the package type", "Creates a new CRFDatum from the preprocessed allData format, given the\ndocument number, position number, and a List of Object labels.\n\n@return A new CRFDatum", "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;() { });", "Alternative entry point allowing an MPP file to be read from\na user-supplied POI file stream.\n\n@param fs POI file stream\n@return ProjectFile instance\n@throws MPXJException", "Returns true if super class of the parameter exists and is abstract and package private. In such case we want to omit such method.\n\nSee WELD-2507 and Oracle issue - https://bugs.java.com/view_bug.do?bug_id=6342411\n\n@return true if the super class exists and is abstract and package private", "Returns the log conditional likelihood of the given dataset.\n\n@return The log conditional likelihood of the given dataset.", "Log a trace message with a throwable.", "Use this API to clear bridgetable.", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead" ]
public static BoxCollaborationWhitelist.Info create(final BoxAPIConnection api, String domain, WhitelistDirection direction) { URL url = COLLABORATION_WHITELIST_ENTRIES_URL_TEMPLATE.build(api.getBaseURL()); BoxJSONRequest request = new BoxJSONRequest(api, url, HttpMethod.POST); JsonObject requestJSON = new JsonObject() .add("domain", domain) .add("direction", direction.toString()); request.setBody(requestJSON.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); BoxCollaborationWhitelist domainWhitelist = new BoxCollaborationWhitelist(api, responseJSON.get("id").asString()); return domainWhitelist.new Info(responseJSON); }
[ "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." ]
[ "Gets the property and casts to the appropriate type\n\n@param <T>\n@param key The property name\n@param type The property type\n@return The value of the property", "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object.", "Answer the search class.\nThis is the class of the example object or\nthe class represented by Identity.\n@return Class", "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "Method used to update fields with values received from API.\n@param jsonObject JSON-encoded info about File Version object.", "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment", "Shows the Loader component", "Clean wait task queue.", "Check that the parameter string is not null or empty\n\n@param value\nString value to be checked.\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@throws IllegalArgumentException\nIf the key is null or empty." ]
private void processRequestHeaderOverrides(HttpMethod httpMethodProxyRequest) throws Exception { RequestInformation requestInfo = requestInformation.get(); for (EndpointOverride selectedPath : requestInfo.selectedRequestPaths) { List<EnabledEndpoint> points = selectedPath.getEnabledEndpoints(); for (EnabledEndpoint endpoint : points) { if (endpoint.getOverrideId() == Constants.PLUGIN_REQUEST_HEADER_OVERRIDE_ADD) { httpMethodProxyRequest.addRequestHeader(endpoint.getArguments()[0].toString(), endpoint.getArguments()[1].toString()); requestInfo.modified = true; } else if (endpoint.getOverrideId() == Constants.PLUGIN_REQUEST_HEADER_OVERRIDE_REMOVE) { httpMethodProxyRequest.removeRequestHeader(endpoint.getArguments()[0].toString()); requestInfo.modified = true; } } } }
[ "Apply any applicable header overrides to request\n\n@param httpMethodProxyRequest\n@throws Exception" ]
[ "Calculate the layout container size along the axis\n@param axis {@link Axis}\n@return size", "Sets the fieldConversion.\n@param fieldConversionClassName The fieldConversion to set", "Decode the password from the given data. Will decode the data block as well.\n\n@param data encrypted data block\n@param encryptionCode encryption code\n\n@return password", "Checks that all the qualifiers in the set requiredQualifiers are in the set of qualifiers. Qualifier equality rules for\nannotation members are followed.\n\n@param requiredQualifiers The required qualifiers\n@param qualifiers The set of qualifiers to check\n@return True if all matches, false otherwise", "Use this API to update lbsipparameters.", "Log long string using verbose tag\n\n@param TAG The tag.\n@param longString The long string.", "Scans a path on the filesystem for resources inside the given classpath location.\n\n@param location The system-independent location on the classpath.\n@param locationUri The system-specific physical location URI.\n@return a sorted set containing all the resources inside the given location\n@throws IOException if an error accessing the filesystem happens", "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)", "Invalidate layout setup." ]
public static base_response update(nitro_service client, csparameter resource) throws Exception { csparameter updateresource = new csparameter(); updateresource.stateupdate = resource.stateupdate; return updateresource.update_resource(client); }
[ "Use this API to update csparameter." ]
[ "get specific property value of job.\n\n@param id the id\n@param property the property name/path\n@return the property value", "joins a collection of objects together as a String using a separator", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value", "Use this API to update sslparameter.", "Process StepFinishedEvent. Change last added to stepStorage step\nand add it as child of previous step.\n\n@param event to process", "Throws if the given file is null, is not a file or directory, or is an empty directory.", "Ensures that the primary keys required by the given collection with indirection table are present in\nthe element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the fitting collection (if any) or the primary keys", "Set the query parameter values overriding all existing query values for\nthe same parameter. If no values are given, the query parameter is removed.\n@param name the query parameter name\n@param values the query parameter values\n@return this UriComponentsBuilder", "Parses a record containing hours and add them to a container.\n\n@param ranges hours container\n@param hoursRecord hours record" ]
public static base_response delete(nitro_service client, String acl6name) throws Exception { nsacl6 deleteresource = new nsacl6(); deleteresource.acl6name = acl6name; return deleteresource.delete_resource(client); }
[ "Use this API to delete nsacl6 of given name." ]
[ "Process a calendar exception.\n\n@param calendar parent calendar\n@param row calendar exception data", "Use this API to fetch sslfipskey resources of given names .", "Creates a ServiceFuture from an Completable object and a callback.\n\n@param completable the completable to create from\n@param callback the callback to call when event happen\n@return the created ServiceFuture", "This method creates the flattened POM what is the main task of this plugin.\n\n@param pomFile is the name of the original POM file to read and transform.\n@return the {@link Model} of the flattened POM.\n@throws MojoExecutionException if anything goes wrong (e.g. POM can not be processed).\n@throws MojoFailureException if anything goes wrong (logical error).", "Triggers a new search with the given text.\n\n@param query the text to search for.", "Detect bad xml 1.0 characters\n\n@param c to detect\n@return true if specified character valid, false otherwise", "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred", "This method determines whether the given date falls in the range of\ndates covered by this exception. Note that this method assumes that both\nthe start and end date of this exception have been set.\n\n@param date Date to be tested\n@return Boolean value", "Gets the property by key converted to lowercase if requested\n@param key property key\n@param lowerCase convert property to lowercase if it is true, keep the original one if it is\nfalse\n@return node property" ]
private void populateMetaData() throws SQLException { m_meta.clear(); ResultSetMetaData meta = m_rs.getMetaData(); int columnCount = meta.getColumnCount() + 1; for (int loop = 1; loop < columnCount; loop++) { String name = meta.getColumnName(loop); Integer type = Integer.valueOf(meta.getColumnType(loop)); m_meta.put(name, type); } }
[ "Retrieves basic meta data from the result set.\n\n@throws SQLException" ]
[ "Returns the classpath for executable jar.", "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", "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance", "Plots the MSD curve for trajectory t.\n@param t List of trajectories\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", "We need to distinguish the case where we're newly available and the case\nwhere we're already available. So we check the node status before we\nupdate it and return it to the caller.\n\n@param isAvailable True to set to available, false to make unavailable\n\n@return Previous value of isAvailable", "Returns a long between interval\n@param min Minimum value\n@param max Maximum value\n@return long number", "Read the role definitions from a GanttProject project.\n\n@param gpProject GanttProject project", "Builds a string that serializes a list of objects separated by the pipe\ncharacter. The toString methods are used to turn objects into strings.\nThis operation is commonly used to build parameter lists for API\nrequests.\n\n@param objects\nthe objects to implode\n@return string of imploded objects", "Call the Coverage Task." ]
public final ProcessorDependencyGraph getProcessorGraph() { if (this.processorGraph == null) { synchronized (this) { if (this.processorGraph == null) { final Map<String, Class<?>> attcls = new HashMap<>(); for (Map.Entry<String, Attribute> attribute: this.attributes.entrySet()) { attcls.put(attribute.getKey(), attribute.getValue().getValueType()); } this.processorGraph = this.processorGraphFactory.build(this.processors, attcls); } } } return this.processorGraph; }
[ "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph." ]
[ "Use this API to add nssimpleacl.", "Add a 'IS NULL' clause so the column must be null. '=' NULL does not work.", "Check if a position is within a circle\n\n@param x x position\n@param y y position\n@param centerX center x of circle\n@param centerY center y of circle\n@return true if within circle, false otherwise", "use parseJsonResponse instead", "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_", "Prepare a batch api request using list of individual reuests.\n@param requests list of api requests that has to be executed in batch.", "Sets the body filter for this ID\n\n@param pathId ID of path\n@param bodyFilter Body filter to set", "Return the list of actions on the tuple.\nInherently deduplicated operations\n\n@return the operations to execute on the Tuple", "Apply filter to an image.\n\n@param source FastBitmap" ]
private int combineSubsetBlocks(Mode[] mode_type, int[] mode_length, int index_point) { /* bring together same type blocks */ if (index_point > 1) { for (int i = 1; i < index_point; i++) { if (mode_type[i - 1] == mode_type[i]) { /* bring together */ mode_length[i - 1] = mode_length[i - 1] + mode_length[i]; /* decrease the list */ for (int j = i + 1; j < index_point; j++) { mode_length[j - 1] = mode_length[j]; mode_type[j - 1] = mode_type[j]; } index_point--; i--; } } } return index_point; }
[ "Modifies the specified mode and length arrays to combine adjacent modes of the same type, returning the updated index point." ]
[ "Merge this ExecutionStatistics with all the statistics created within the child threads. All the child threads had to be created using Windup-specific\nThreadFactory in order to contain a reference to the parent thread.", "Opens file for editing.\n\n@param currentChangeListId The current change list id to open the file for editing at\n@param filePath The filePath which contains the file we need to edit\n@throws IOException Thrown in case of perforce communication errors\n@throws InterruptedException", "Discard the changes.", "The way calendars are stored in an MPP8 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", "Helper xml end tag writer\n\n@param value the output stream to use in writing", "Use this API to fetch all the vpnsessionaction resources that are configured on netscaler.", "Download a specified URL to a file\n\n@param stringUrl URL to use\n@param parameters HTTP Headers\n@param fileToSave File to save content\n@throws IOException I/O error happened", "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list", "Initializes a type\n\n@param name The name of the class\n@return The instance of the class. Returns a dummy if the class was not\nfound." ]
public static base_responses update(nitro_service client, nsip6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip6 updateresources[] = new nsip6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nsip6(); updateresources[i].ipv6address = resources[i].ipv6address; updateresources[i].td = resources[i].td; updateresources[i].nd = resources[i].nd; updateresources[i].icmp = resources[i].icmp; updateresources[i].vserver = resources[i].vserver; updateresources[i].telnet = resources[i].telnet; updateresources[i].ftp = resources[i].ftp; updateresources[i].gui = resources[i].gui; updateresources[i].ssh = resources[i].ssh; updateresources[i].snmp = resources[i].snmp; updateresources[i].mgmtaccess = resources[i].mgmtaccess; updateresources[i].restrictaccess = resources[i].restrictaccess; updateresources[i].state = resources[i].state; updateresources[i].map = resources[i].map; updateresources[i].dynamicrouting = resources[i].dynamicrouting; updateresources[i].hostroute = resources[i].hostroute; updateresources[i].ip6hostrtgw = resources[i].ip6hostrtgw; updateresources[i].metric = resources[i].metric; updateresources[i].vserverrhilevel = resources[i].vserverrhilevel; updateresources[i].ospf6lsatype = resources[i].ospf6lsatype; updateresources[i].ospfarea = resources[i].ospfarea; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update nsip6 resources." ]
[ "Finds the most recent dump of the given type that is actually available.\n\n@param dumpContentType\nthe type of the dump to look for\n@return most recent main dump or null if no such dump exists", "Removes all commas from the token list", "Unloads the sound file for this source, if any.", "Checks whether every property except 'preferred' is satisfied\n\n@return", "Concat a List into a CSV String.\n@param list list to concat\n@return csv string", "Set the String of request body data to be sent to the server.\n\n@param input String of request body data to be sent to the server\n@return an {@link HttpConnection} for method chaining", "A simple helper method that creates a pool of connections to Redis using\nthe supplied configurations.\n\n@param jesqueConfig the config used to create the pooled Jedis connections\n@param poolConfig the config used to create the pool\n@return a configured Pool of Jedis connections", "Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if null, returns false.", "Formats a connection string for CLI to use as it's controller connection.\n\n@return the controller string to connect CLI" ]
private TaskField getTaskField(int field) { TaskField result = MPPTaskField14.getInstance(field); if (result != null) { switch (result) { case START_TEXT: { result = TaskField.START; break; } case FINISH_TEXT: { result = TaskField.FINISH; break; } case DURATION_TEXT: { result = TaskField.DURATION; break; } default: { break; } } } return result; }
[ "Maps an integer field ID to a field type.\n\n@param field field ID\n@return field type" ]
[ "Use this API to fetch cmppolicylabel_cmppolicy_binding resources of given name .", "Return a new instance of the BufferedImage\n\n@return BufferedImage", "Internal method which performs the authenticated request by preparing the auth request with\nthe provided auth info and request.", "Get HttpResourceModel which matches the HttpMethod of the request.\n\n@param routableDestinations List of ResourceModels.\n@param targetHttpMethod HttpMethod.\n@param requestUri request URI.\n@return RoutableDestination that matches httpMethod that needs to be handled. null if there are no matches.", "Cancel all task with this tag and returns the canceled task count\n\n@param tagToCancel\n@return", "Write exceptions into the format used by MSPDI files from\nProject 2007 onwards.\n\n@param calendar parent calendar\n@param exceptions list of exceptions", "Given the lambda value perform an implicit QR step on the matrix.\n\nB^T*B-lambda*I\n\n@param lambda Stepping factor.", "Add properties to 'properties' map on transaction start\n@param type - of transaction", "Send Identify Node message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response." ]
@Override public boolean shouldRetry(int retryCount, Response response) { int code = response.code(); //CHECKSTYLE IGNORE MagicNumber FOR NEXT 2 LINES return retryCount < this.retryCount && (code == 408 || (code >= 500 && code != 501 && code != 505)); }
[ "Returns if a request should be retried based on the retry count, current response,\nand the current strategy.\n\n@param retryCount The current retry attempt count.\n@param response The exception that caused the retry conditions to occur.\n@return true if the request should be retried; false otherwise." ]
[ "Information about a specific release.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param releaseName Release name. See {@link #listReleases} for a list of the app's releases.\n@return the release object", "Return given duration in a human-friendly format. For example, \"4\nminutes\" or \"1 second\". Returns only largest meaningful unit of time,\nfrom seconds up to hours.\n\nThe longest duration it supports is hours.\n\nThis method assumes that there are 60 minutes in an hour,\n60 seconds in a minute and 1000 milliseconds in a second.\nAll currently supplied chronologies use this definition.", "Inserts the currently contained data objects into the database.\n\n@param platform The (connected) database platform for inserting data\n@param model The database model\n@param batchSize The batch size; use 1 for not using batch mode", "Delete a photo from flickr.\n\nThis method requires authentication with 'delete' permission.\n\n@param photoId\n@throws FlickrException", "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Send a failed operation response.\n\n@param context the request context\n@param errorCode the error code\n@param message the operation message\n@throws IOException for any error", "Creates the operation to add a resource.\n\n@param address the address of the operation to add.\n@param properties the properties to set for the resource.\n\n@return the operation.", "Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present", "Called after creating the first connection. The adapter should create its caches and do all initialization it requires. Most\nimportantly, the SQL query cache should be created.\n\n@param cnx\nan open ready to use connection to the database." ]
private String storageOverhead(Map<Integer, Integer> finalNodeToOverhead) { double maxOverhead = Double.MIN_VALUE; PartitionBalance pb = new PartitionBalance(currentCluster, currentStoreDefs); StringBuilder sb = new StringBuilder(); sb.append("Per-node store-overhead:").append(Utils.NEWLINE); DecimalFormat doubleDf = new DecimalFormat("####.##"); for(int nodeId: finalCluster.getNodeIds()) { Node node = finalCluster.getNodeById(nodeId); String nodeTag = "Node " + String.format("%4d", nodeId) + " (" + node.getHost() + ")"; int initialLoad = 0; if(currentCluster.getNodeIds().contains(nodeId)) { initialLoad = pb.getNaryPartitionCount(nodeId); } int toLoad = 0; if(finalNodeToOverhead.containsKey(nodeId)) { toLoad = finalNodeToOverhead.get(nodeId); } double overhead = (initialLoad + toLoad) / (double) initialLoad; if(initialLoad > 0 && maxOverhead < overhead) { maxOverhead = overhead; } String loadTag = String.format("%6d", initialLoad) + " + " + String.format("%6d", toLoad) + " -> " + String.format("%6d", initialLoad + toLoad) + " (" + doubleDf.format(overhead) + " X)"; sb.append(nodeTag + " : " + loadTag).append(Utils.NEWLINE); } sb.append(Utils.NEWLINE) .append("**** Max per-node storage overhead: " + doubleDf.format(maxOverhead) + " X.") .append(Utils.NEWLINE); return (sb.toString()); }
[ "Determines storage overhead and returns pretty printed summary.\n\n@param finalNodeToOverhead Map of node IDs from final cluster to number\nof partition-stores to be moved to the node.\n@return pretty printed string summary of storage overhead." ]
[ "Similar to masking, checks that the range resulting from the bitwise or is contiguous.\n\n@param maskValue\n@param segmentPrefixLength\n@return\n@throws PrefixLenException", "Checks whether the given class maps to a different table but also has the given collection.\n\n@param origCollDef The original collection to search for\n@param origTableDef The original table\n@param classDef The class descriptor to test\n@return <code>true</code> if the class maps to a different table and has the collection", "Use this API to add gslbsite.", "Gen job id.\n\n@return the string", "Sets the publish queue shutdown time.\n\n@param publishQueueShutdowntime the shutdown time to set, parsed as <code>int</code>", "Sends the JSON-formatted spellchecking results to the client.\n\n@param res The HttpServletResponse object.\n@param request The spellchecking request object.\n\n@throws IOException in case writing the response fails", "Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return", "A specific, existing tag can be deleted by making a DELETE request\non the URL for that tag.\n\nReturns an empty data record.\n\n@param tag The tag to delete.\n@return Request object", "Create a new server group for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
private SearchableItem buildSearchableItem(Message menuItem) { return new SearchableItem((int) ((NumberField) menuItem.arguments.get(1)).getValue(), ((StringField) menuItem.arguments.get(3)).getValue()); }
[ "Creates a searchable item that represents a metadata field found for a track.\n\n@param menuItem the rendered menu item containing the searchable metadata field\n@return the searchable metadata field" ]
[ "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Gets a static resource from a plugin\n\n@param pluginName - Name of the plugin(defined in the plugin manifest)\n@param fileName - Filename to fetch\n@return byte array of the resource\n@throws Exception exception", "Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser", "Fired whenever a browser event is received.\n@param event Event to process", "default visibility for unit test", "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.", "Factory method, validates the given triplet year, month and dayOfMonth.\n\n@param prolepticYear the International fixed proleptic-year\n@param month the International fixed month, from 1 to 13\n@param dayOfMonth the International fixed day-of-month, from 1 to 28 (29 for Leap Day or Year Day)\n@return the International fixed date\n@throws DateTimeException if the date is invalid", "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node trees and expressions in templates can be of type IGeneratorNode.\n\n@return the given parent node", "Decorates a node with the affected operator, if any.\n\n@param context\n@param tree\n@param operations\n@return" ]
@Api public void setFeatureModel(FeatureModel featureModel) throws LayerException { this.featureModel = featureModel; if (null != getLayerInfo()) { featureModel.setLayerInfo(getLayerInfo()); } filterService.registerFeatureModel(featureModel); }
[ "Set the featureModel.\n\n@param featureModel\nfeature model\n@throws LayerException\nproblem setting the feature model\n@since 1.8.0" ]
[ "Sets the invalid values for the TextBox\n@param invalidValues\n@param isCaseSensitive\n@param invalidValueErrorMessage", "This filter permit to return an image sized exactly as requested wherever is its ratio by\nfilling with chosen color the missing parts. Usually used with \"fit-in\" or \"adaptive-fit-in\"\n\n@param color integer representation of color.", "persist decorator and than continue to children without touching the model", "Returns the log message id used by this checker. This is used to group it so that all attributes failing a type of rejction\nend up in the same error message. This default implementation uses the formatted log message with an empty attribute map as the id.\n\n@return the log message id", "Decodes stream data based on content encoding\n@param contentEncoding\n@param bytes\n@return String representing the stream data", "Callback when each frame in the indicator animation should be drawn.", "Register a new SingleServiceWrapperInterceptor for the bean being\nwrapped, associate it with the PerformanceMonitor and tell it which methods\nto intercept.\n\n@param source An Attribute node from the spring configuration\n@param beanName The name of the bean that this performance monitor is wrapped around\n@param registry The registry where all the spring beans are registered", "Adds each required length, ensuring it isn't negative.\n\n@param requiredLengths\none or more required lengths\n@throws IllegalArgumentException\nif a supplied length is negative", "Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories." ]
private JsonObject getPendingJSONObject() { for (Map.Entry<String, BoxJSONObject> entry : this.children.entrySet()) { BoxJSONObject child = entry.getValue(); JsonObject jsonObject = child.getPendingJSONObject(); if (jsonObject != null) { if (this.pendingChanges == null) { this.pendingChanges = new JsonObject(); } this.pendingChanges.set(entry.getKey(), jsonObject); } } return this.pendingChanges; }
[ "Gets a JsonObject containing any pending changes to this object that can be sent back to the Box API.\n@return a JsonObject containing the pending changes." ]
[ "Sets a configuration option to the specified value.", "Set text parameters from properties\n@param context Valid Android {@link Context}\n@param properties JSON text properties", "Checks that index is valid an throw an exception if not.\n\n@param type the type\n@param index the index to check", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set", "Binds a script bundle to a scene.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param scene\nThe scene to bind to.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if script processing error occurs.", "Creates an object instance from the Groovy resource\n\n@param resource the Groovy resource to parse\n@return An Object instance", "Get a list of layer digests from docker manifest.\n\n@param manifestContent\n@return\n@throws IOException", "Remove a key for all language versions. If a descriptor is present, the key is only removed in the descriptor.\n\n@param key the key to remove.\n@return <code>true</code> if removing was successful, <code>false</code> otherwise.", "Register this broker in ZK for the first time." ]
private Style getRowTotalStyle(DJCrosstabRow crosstabRow) { return crosstabRow.getTotalStyle() == null ? this.djcross.getRowTotalStyle(): crosstabRow.getTotalStyle(); }
[ "MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentFields()\";\nString parametersMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentParams()\";\nString variablesMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentVariables()\";\n\nString evalMethodParams = fieldsMap +\", \" + variablesMap + \", \" + parametersMap + \", \" + columExpression;\n\nString text = \"((\"+ConditionStyleExpression.class.getName()+\")$P{\" + JRParameter.REPORT_PARAMETERS_MAP + \"}.get(\\\"\"+condition.getName()+\"\\\")).\"+CustomExpression.EVAL_METHOD_NAME+\"(\"+evalMethodParams+\")\";\nJRDesignExpression expression = new JRDesignExpression();\nexpression.setValueClass(Boolean.class);\nexpression.setText(text);\nreturn expression;\n}" ]
[ "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\".", "Unicast addresses allocated for private use\n\n@see java.net.InetAddress#isSiteLocalAddress()", "Creates new legal hold policy assignment.\n@param api the API connection to be used by the resource.\n@param policyID ID of policy to create assignment for.\n@param resourceType type of target resource. Can be 'file_version', 'file', 'folder', or 'user'.\n@param resourceID ID of the target resource.\n@return info about created legal hold policy assignment.", "Create a handful of default currencies to keep Primavera happy.", "Get ComponentsMultiThread of current instance\n@return componentsMultiThread", "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", "Use this API to fetch all the systemcore resources that are configured on netscaler.\nThis uses systemcore_args which is a way to provide additional arguments while fetching the resources.", "adds a value to the list\n\n@param value the value", "Deletes the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template" ]
public void weeksChange(String week, Boolean value) { final WeekOfMonth changedWeek = WeekOfMonth.valueOf(week); boolean newValue = (null != value) && value.booleanValue(); boolean currentValue = m_model.getWeeksOfMonth().contains(changedWeek); if (newValue != currentValue) { if (newValue) { setPatternScheme(true, false); m_model.addWeekOfMonth(changedWeek); onValueChange(); } else { removeExceptionsOnChange(new Command() { public void execute() { m_model.removeWeekOfMonth(changedWeek); onValueChange(); } }); } } }
[ "Handle a change in the weeks of month.\n@param week the changed weeks checkbox's internal value.\n@param value the new value of the changed checkbox." ]
[ "Log unexpected column structure.", "Process a file.\n\n@param file the file to be processed\n@param mode the patching mode\n@throws IOException", "Returns a diagonal matrix with the specified diagonal elements.\n@param values values of diagonal elements\n@return A diagonal matrix", "Use this API to restart dbsmonitors.", "Returns a compact representation of all of the subtasks of a task.\n\n@param task The task to get the subtasks of.\n@return Request object", "Performs case-sensitive depth-first search for a child object and then\nremoves it if found.\n\n@param name name of scene object to be removed.\n\n@return true if child was found (and removed), else false", "Add a range to this LOD group. Specify the scene object that should be displayed in this\nrange. Add the LOG group as a component to the parent scene object. The scene objects\nassociated with each range will automatically be added as children to the parent.\n@param range show the scene object if the camera distance is greater than this value\n@param sceneObject scene object that should be rendered when in this range\n@throws IllegalArgumentException if range is negative or sceneObject null", "Converts this update description to its document representation as it would appear in a\nMongoDB Change Event.\n\n@return the update description document as it would appear in a change event", "Throws an IllegalArgumentException when the given value is not false.\n@param value the value to assert if false\n@param message the message to display if the value is false\n@return the value" ]
static File getTargetFile(final File root, final MiscContentItem item) { return PatchContentLoader.getMiscPath(root, item); }
[ "Get a misc file.\n\n@param root the root\n@param item the misc content item\n@return the misc file" ]
[ "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception", "Stop the drag action.", "Sign in a group of connections to the registry by key\n\n@param key\nthe key\n@param connections\na collection of websocket connections", "Adds OPT_U | OPT_URL option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Read relationship data from a PEP file.", "Adds another condition for an element within this annotation.", "Checks if two parameterized types are exactly equal, under the variable\nreplacement described in the typeVarMap.", "Filter everything until we found the first NL character.", "Retrieve the date range at the specified index.\nThe index is zero based, and this method will return\nnull if the requested date range does not exist.\n\n@param index range index\n@return date range instance" ]
public static int removeDuplicateNodeList(List<String> list) { int originCount = list.size(); // add elements to all, including duplicates HashSet<String> hs = new LinkedHashSet<String>(); hs.addAll(list); list.clear(); list.addAll(hs); return originCount - list.size(); }
[ "Removes the duplicate node list.\n\n@param list\nthe list\n@return the int" ]
[ "Map the given region of the given file descriptor into memory.\nReturns a Pointer to the newly mapped memory throws an\nIOException on error.", "Ask the specified player for a Folder menu for exploring its raw filesystem.\nThis is a request for unanalyzed items, so we do a typed menu request.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n@param folderId identifies the folder whose contents should be listed, use -1 to get the root folder\n\n@return the entries in the folder menu\n\n@throws Exception if there is a problem obtaining the menu", "Creates a new RDF serializer based on the current configuration of this\nobject.\n\n@return the newly created RDF serializer\n@throws IOException\nif there were problems opening the output files", "Assign an ID value to this field.", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory", "Rehashes the contents of the receiver into a new table\nwith a smaller or larger capacity.\nThis method is called automatically when the\nnumber of keys in the receiver exceeds the high water mark or falls below the low water mark.", "Set the start time.\n@param date the start time to set.", "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "Start the timer." ]
public void setDates(SortedSet<Date> dates) { if (!m_model.getIndividualDates().equals(dates)) { m_model.setIndividualDates(dates); onValueChange(); } }
[ "Set the individual dates.\n@param dates the dates to set." ]
[ "Write a set of fields from a field container to a JSON file.\n@param objectName name of the object, or null if no name required\n@param container field container\n@param fields fields to write", "Toggle between single events and series.\n@param isSeries flag, indicating if we want a series of events.", "Recursively update parent task dates.\n\n@param parentTask parent task", "Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas.", "Returns the resource bundle for current Locale, i.e. locale set in the PageComponent.\nAlways create a new instance, this avoids getting the incorrect locale information.\n\n@return resourcebundle for internationalized messages", "Append the given item to the end of the list\n@param segment segment to append", "Obtains a local date in Symmetry010 calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date", "Gets the project name for a favorite entry.\n\n@param cms the CMS context\n@param entry the favorite entry\n@return the project name for the favorite entry\n@throws CmsException if something goes wrong", "Set a proxy for REST-requests.\n\n@param proxyHost\n@param proxyPort" ]
public static boolean deleteDatabase(final StitchAppClientInfo appInfo, final String serviceName, final EmbeddedMongoClientFactory clientFactory, final String userId) { final String dataDir = appInfo.getDataDirectory(); if (dataDir == null) { throw new IllegalArgumentException("StitchAppClient not configured with a data directory"); } final String instanceKey = String.format( "%s-%s_sync_%s_%s", appInfo.getClientAppId(), dataDir, serviceName, userId); final String dbPath = String.format( "%s/%s/sync_mongodb_%s/%s/0/", dataDir, appInfo.getClientAppId(), serviceName, userId); final MongoClient client = clientFactory.getClient(instanceKey, dbPath, appInfo.getCodecRegistry()); for (final String listDatabaseName : client.listDatabaseNames()) { try { client.getDatabase(listDatabaseName).drop(); } catch (Exception e) { // do nothing } } client.close(); clientFactory.removeClient(instanceKey); return new File(dbPath).delete(); }
[ "Delete a database for a given path and userId.\n@param appInfo the info for this application\n@param serviceName the name of the associated service\n@param clientFactory the associated factory that creates clients\n@param userId the id of the user's to delete\n@return true if successfully deleted, false if not" ]
[ "Checks if the object with the given identity has been deleted\nwithin the transaction.\n@param id The identity\n@return true if the object has been deleted\n@throws PersistenceBrokerException", "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", "Launches the client with the specified parameters.\n\n@param args\ncommand line parameters\n@throws ParseException\n@throws IOException", "Set the list of supported resolutions. Each resolution is specified in map units per pixel.\n\n@param resolutions\nresolutions\n@deprecated use {@link #setZoomLevels()}", "This method writes resource data to a PM XML file.", "Writes assignment data to a PM XML file.", "Writes resource baseline data.\n\n@param xmlResource MSPDI resource\n@param mpxjResource MPXJ resource", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width", "This method extracts project properties from a Planner file.\n\n@param project Root node of the Planner file" ]
public static Collection<Field> getAllAttributes(final Class<?> classToInspect) { Set<Field> allFields = new HashSet<>(); getAllAttributes(classToInspect, allFields, Function.identity(), field -> true); return allFields; }
[ "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." ]
[ "Write a set of fields from a field container to a JSON file.\n@param objectName name of the object, or null if no name required\n@param container field container\n@param fields fields to write", "Notifies that an existing content item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Get the PropertyDescriptor for aClass and aPropertyName", "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Set a Java classname path to ignore when printing stack traces\n@param classToIgnoreInTraces The class name (with packages, etc) to ignore.\n@return this", "Setter for blob handle value.\n\n@param txn enclosing transaction\n@param localId entity local id.\n@param blobId blob id\n@param value property value.", "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler.", "Calculate the layout container size along the axis\n@param axis {@link Axis}\n@return size", "Fetch JSON from RAW resource\n\n@param context Context\n@param resource Resource int of the RAW file\n@return JSON" ]
public <T> T get(URI uri, Class<T> classType) { HttpConnection connection = Http.GET(uri); InputStream response = executeToInputStream(connection); try { return getResponse(response, classType, getGson()); } finally { close(response); } }
[ "Performs a HTTP GET request.\n\n@return Class type of object T (i.e. {@link Response}" ]
[ "format with lazy-eval", "returns an Array with an Objects CURRENT locking VALUES , BRJ\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Check if number is valid\n\n@return boolean", "Use this API to fetch snmpalarm resource of given name .", "This function computes which reduce task to shuffle a record to.", "Display a Notification message\n@param event", "Roll back to the previous configuration.\n\n@throws GeomajasException\nindicates an unlikely problem with the rollback (see cause)", "Inserts a String array 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 String array object, or null\n@return this bundler instance to chain method calls", "Returns a RowColumn following the current one\n\n@return RowColumn following this one" ]
public static List<? extends Expression> getMethodArguments(ASTNode methodCall) { if (methodCall instanceof ConstructorCallExpression) { return extractExpressions(((ConstructorCallExpression) methodCall).getArguments()); } else if (methodCall instanceof MethodCallExpression) { return extractExpressions(((MethodCallExpression) methodCall).getArguments()); } else if (methodCall instanceof StaticMethodCallExpression) { return extractExpressions(((StaticMethodCallExpression) methodCall).getArguments()); } else if (respondsTo(methodCall, "getArguments")) { throw new RuntimeException(); // TODO: remove, should never happen } return new ArrayList<Expression>(); }
[ "Return the List of Arguments for the specified MethodCallExpression or a ConstructorCallExpression.\nThe returned List contains either ConstantExpression or MapEntryExpression objects.\n@param methodCall - the AST MethodCallExpression or ConstructorCalLExpression\n@return the List of argument objects" ]
[ "Stops download dispatchers.", "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return", "Checks the foreignkeys of all references in the model.\n\n@param modelDef The model\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for foreignkey is invalid", "Save a SVG graphic to the given path.\n\n@param graphics2d The SVG graphic to save.\n@param path The file.", "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", "Get range around median containing specified percentage of values.\n@param values Values.\n@param percent Values percentage around median.\n@return Returns the range which containes specifies percentage of values.", "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", "Returns an array with the width of the longest word per column calculated from the given table.\nDefault padding will be added per column.\nPadding for individual columns will be added if defined.\n@param rows the table rows for calculations\n@param colNumbers number of columns in the table\n@return array with width of longest word for each column, null if input table was null", "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" or \"managed\".\n@param text the text field of terms of service containing terms of service agreement info.\n@return information about the Terms of Service created." ]
public static String lookupIfEmpty( final String value, final Map<String, String> props, final String key ) { return value != null ? value : props.get(key); }
[ "Extracts value from map if given value is null.\n@param value current value\n@param props properties to extract value from\n@param key property name to extract\n@return initial value or value extracted from map" ]
[ "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful", "Finish the initialization.\n\n@param container\n@param isShutdownHookEnabled", "Transits a float property from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Set the pattern scheme.\n@param isWeekDayBased flag, indicating if the week day based scheme should be set.", "This adds database table configurations to the internal cache which can be used to speed up DAO construction.\nThis is especially true of Android and other mobile platforms.", "Returns the distance between the two points in meters.", "check max size of each message\n@param maxMessageSize the max size for each message", "Start the drag operation of a scene object with a rigid body.\n\n@param sceneObject Scene object with a rigid body attached to it.\n@param hitX rel position in x-axis.\n@param hitY rel position in y-axis.\n@param hitZ rel position in z-axis.\n@return true if success, otherwise returns false.", "Return the first header value for the given header name, if any.\n@param headerName the header name\n@return the first header value, or {@code null} if none" ]
public static void awaitRoute(URL routeUrl, int timeout, TimeUnit timeoutUnit, int repetitions, int... statusCodes) { AtomicInteger successfulAwaitsInARow = new AtomicInteger(0); await().atMost(timeout, timeoutUnit).until(() -> { if (tryConnect(routeUrl, statusCodes)) { successfulAwaitsInARow.incrementAndGet(); } else { successfulAwaitsInARow.set(0); } return successfulAwaitsInARow.get() >= repetitions; }); }
[ "Waits for the timeout duration until the url responds with correct status code\n\n@param routeUrl URL to check (usually a route one)\n@param timeout Max timeout value to await for route readiness.\nIf not set, default timeout value is set to 5.\n@param timeoutUnit TimeUnit used for timeout duration.\nIf not set, Minutes is used as default TimeUnit.\n@param repetitions How many times in a row the route must respond successfully to be considered available.\n@param statusCodes list of status code that might return that service is up and running.\nIt is used as OR, so if one returns true, then the route is considered valid.\nIf not set, then only 200 status code is used." ]
[ "Tells you if the date part of a datetime is in a certain time range.", "Tests correctness.", "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text", "Processes an index descriptor tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the index\"\[email protected] name=\"fields\" optional=\"false\" description=\"The fields making up the index separated by commas\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the index descriptor\"\[email protected] name=\"unique\" optional=\"true\" description=\"Whether the index descriptor is unique\" values=\"true,false\"", "Sets the HTML entity 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 htmlElementTranslator translator\n@return this to allow chaining", "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>.", "Used to determine if the current method should be ignored.\n\n@param name method name\n@return true if the method should be ignored", "Returns an java object read from the specified ResultSet column.", "generate a prepared DELETE-Statement for the Class\ndescribed by cld.\n@param cld the ClassDescriptor" ]
private J2EETransactionImpl newInternTransaction() { if (log.isDebugEnabled()) log.debug("obtain new intern odmg-transaction"); J2EETransactionImpl tx = new J2EETransactionImpl(this); try { getConfigurator().configure(tx); } catch (ConfigurationException e) { throw new OJBRuntimeException("Cannot create new intern odmg transaction", e); } return tx; }
[ "Returns a new intern odmg-transaction for the current database." ]
[ "Gets the metrics as a map whose keys are the metric name and whose values are the metric values.\n\n@return map", "Get list of replies\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@return A reply object\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getList.html\">API Documentation</a>", "Method which performs strength checks on password. It returns outcome which can be used by CLI.\n\n@param isAdminitrative - administrative checks are less restrictive. This means that weak password or one which violates restrictions is not indicated as failure.\nAdministrative checks are usually performed by admin changing/setting default password for user.\n@param userName - the name of user for which password is set.\n@param password - password.\n@return", "This method is used to configure the format pattern.\n\n@param patterns new format patterns", "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", "The metadata cache can become huge over time. This simply flushes it periodically.", "Decompiles the given .class file and creates the specified output source file.\n\n@param classFilePath the .class file to be decompiled.\n@param outputDir The directory where decompiled .java files will be placed.", "Use this API to reset appfwlearningdata resources.", "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context" ]
protected BufferedImage fetchImage( @Nonnull final ClientHttpRequest request, @Nonnull final MapfishMapContext transformer) throws IOException { final String baseMetricName = getClass().getName() + ".read." + StatsUtils.quotePart(request.getURI().getHost()); final Timer.Context timerDownload = this.registry.timer(baseMetricName).time(); try (ClientHttpResponse httpResponse = request.execute()) { if (httpResponse.getStatusCode() != HttpStatus.OK) { final String message = String.format( "Invalid status code for %s (%d!=%d). The response was: '%s'", request.getURI(), httpResponse.getStatusCode().value(), HttpStatus.OK.value(), httpResponse.getStatusText()); this.registry.counter(baseMetricName + ".error").inc(); if (getFailOnError()) { throw new RuntimeException(message); } else { LOGGER.info(message); return createErrorImage(transformer.getPaintArea()); } } final List<String> contentType = httpResponse.getHeaders().get("Content-Type"); if (contentType == null || contentType.size() != 1) { LOGGER.debug("The image {} didn't return a valid content type header.", request.getURI()); } else if (!contentType.get(0).startsWith("image/")) { final byte[] data; try (InputStream body = httpResponse.getBody()) { data = IOUtils.toByteArray(body); } LOGGER.debug("We get a wrong image for {}, content type: {}\nresult:\n{}", request.getURI(), contentType.get(0), new String(data, StandardCharsets.UTF_8)); this.registry.counter(baseMetricName + ".error").inc(); return createErrorImage(transformer.getPaintArea()); } final BufferedImage image = ImageIO.read(httpResponse.getBody()); if (image == null) { LOGGER.warn("Cannot read image from %a", request.getURI()); this.registry.counter(baseMetricName + ".error").inc(); if (getFailOnError()) { throw new RuntimeException("Cannot read image from " + request.getURI()); } else { return createErrorImage(transformer.getPaintArea()); } } timerDownload.stop(); return image; } catch (Throwable e) { this.registry.counter(baseMetricName + ".error").inc(); throw e; } }
[ "Fetch the given image from the web.\n\n@param request The request\n@param transformer The transformer\n@return The image" ]
[ "Returns all model classes registered on this datasource\n\n@return model classes talk to this datasource", "Get the element at the index as a float.\n\n@param i the index of the element to access", "Configure high fps settings in the camera for VR mode\n\n@param fpsMode integer indicating the desired fps: 0 means 30 fps, 1 means 60\nfps, and 2 means 120 fps. Any other value is invalid.\n@return A boolean indicating the status of the method call. It may be false due\nto multiple reasons including: 1) supplying invalid fpsMode as the input\nparameter, 2) VR mode not supported.", "Send a request to another handler internal to the server, getting back the response body and response code.\n\n@param request request to send to another handler.\n@return {@link InternalHttpResponse} containing the response code and body.", "Use this API to update tmtrafficaction.", "This method is provided to allow an absolute period of time\nrepresented by start and end dates into a duration in working\ndays based on this calendar instance. This method takes account\nof any exceptions defined for this calendar.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object", "Creates multiple aliases at once.", "Creates a Span that covers an exact row. String parameters will be encoded as UTF-8", "Add a polygon symbolizer definition to the rule.\n\n@param styleJson The old style." ]
public static ComplexNumber Multiply(ComplexNumber z1, ComplexNumber z2) { double z1R = z1.real, z1I = z1.imaginary; double z2R = z2.real, z2I = z2.imaginary; return new ComplexNumber(z1R * z2R - z1I * z2I, z1R * z2I + z1I * z2R); }
[ "Multiply two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the multiply of specified complex numbers." ]
[ "Get the first controller of a specified type\n@param type controller type to search for\n@return controller found or null if no controllers of the given type", "Use this API to add ntpserver resources.", "Move the animation frame counter forward.\n\n@return boolean specifying if animation should continue or if loopCount has been fulfilled.", "Return input mapper from processor.", "Initializes the Stitch SDK so that app clients can be created.\n\n@param context An Android context value.", "Removes the supplied marker from the map.\n\n@param marker", "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", "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", "Reads a single record from the table.\n\n@param buffer record data\n@param table parent table" ]
public Counter<K1> sumInnerCounter() { Counter<K1> summed = new ClassicCounter<K1>(); for (K1 key : this.firstKeySet()) { summed.incrementCount(key, this.getCounter(key).totalCount()); } return summed; }
[ "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1" ]
[ "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", "Reads a string of single 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.\nReading begins at the supplied offset into the array.\n\n@param data byte array of data\n@param offset offset into the array\n@return string value", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}", "exposed only for tests", "Returns an iterator of all direct and indirect extents of this class.\n\n@return The extents iterator", "Used to populate Map with given annotations\n\n@param annotations initial value for annotations", "Verify JUnit presence and version.", "defines the KEY in the parent report parameters map where to get the subreport parameters map.\n@param path where to get the parameter map for the subrerpot.\n@return", "A simple helper method that creates a pool of connections to Redis using\nthe supplied configurations.\n\n@param jesqueConfig the config used to create the pooled Jedis connections\n@param poolConfig the config used to create the pool\n@return a configured Pool of Jedis connections" ]
protected void internalClose() throws SQLException { try { clearStatementCaches(true); if (this.connection != null){ // safety! this.connection.close(); if (!this.connectionTrackingDisabled && this.finalizableRefs != null){ this.finalizableRefs.remove(this.connection); } } this.logicallyClosed.set(true); } catch (SQLException e) { throw markPossiblyBroken(e); } }
[ "Close off the connection.\n\n@throws SQLException" ]
[ "Add a task to the project.\n\n@return new task instance", "end AnchorImplementation class", "add an Extent class to the current descriptor\n@param newExtentClassName name of the class to add", "Tells you if the date part of a datetime is in a certain time range.", "Processes a runtime procedure argument tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"field-ref\" optional=\"true\" description=\"Identifies the field that provides the value\nif a runtime argument; if not set, then null is used\"\[email protected] name=\"name\" optional=\"false\" description=\"The identifier of the argument tag\"\[email protected] name=\"return\" optional=\"true\" description=\"Whether this is a return value (if a runtime argument)\"\nvalues=\"true,false\"\[email protected] name=\"value\" optional=\"false\" description=\"The value if a constant argument\"", "Writes image files for all data that was collected and the statistics\nfile for all sites.", "Adds the specified list of objects at the end of the array.\n\n@param collection The objects to add at the end of the array.", "This method writes calendar data to a Planner file.\n\n@throws JAXBException on xml creation errors", "Applies this patch to a JSON value.\n\n@param node the value to apply the patch to\n@return the patched JSON value\n@throws JsonPatchException failed to apply patch\n@throws NullPointerException input is null" ]
private TrackMetadata requestMetadataInternal(final DataReference track, final CdjStatus.TrackType trackType, final boolean failIfPassive) { // First check if we are using cached data for this request. MetadataCache cache = getMetadataCache(SlotReference.getSlotReference(track)); if (cache != null && trackType == CdjStatus.TrackType.REKORDBOX) { return cache.getTrackMetadata(null, track); } // Then see if any registered metadata providers can offer it for us. final MediaDetails sourceDetails = getMediaDetailsFor(track.getSlotReference()); if (sourceDetails != null) { final TrackMetadata provided = allMetadataProviders.getTrackMetadata(sourceDetails, track); if (provided != null) { return provided; } } // At this point, unless we are allowed to actively request the data, we are done. We can always actively // request tracks from rekordbox. if (passive.get() && failIfPassive && track.slot != CdjStatus.TrackSourceSlot.COLLECTION) { return null; } // Use the dbserver protocol implementation to request the metadata. ConnectionManager.ClientTask<TrackMetadata> task = new ConnectionManager.ClientTask<TrackMetadata>() { @Override public TrackMetadata useClient(Client client) throws Exception { return queryMetadata(track, trackType, client); } }; try { return ConnectionManager.getInstance().invokeWithClientSession(track.player, task, "requesting metadata"); } catch (Exception e) { logger.error("Problem requesting metadata, returning null", e); } return null; }
[ "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nmetadata updates will use available caches only\n\n@return the metadata found, if any" ]
[ "Updates all inverse associations managed by a given entity.", "Obtain newline-delimited headers from request\n\n@param request HttpServletRequest to scan\n@return newline-delimited headers", "Queues a Runnable to be run on the main thread on the next iteration of\nthe messaging loop. This is handy when code running on the main thread\nneeds to run something else on the main thread, but only after the\ncurrent code has finished executing.\n\n@param r\nThe {@link Runnable} to run on the main thread.\n@return Returns {@code true} if the Runnable was successfully placed in\nthe Looper's message queue.", "Use this API to fetch authenticationvserver_authenticationlocalpolicy_binding resources of given name .", "Use this API to update systemuser.", "Get the spin scripting environment\n\n@param language the language name\n@return the environment script as string or null if the language is\nnot in the set of languages supported by spin.", "This method prints plan information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return plans the IPlan[] with all the information, so the tester can\nlook for information", "Parse currency.\n\n@param value currency value\n@return currency value", "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." ]
private synchronized void setInitializationMethod(Method newMethod) { if (newMethod != null) { // make sure it's a no argument method if (newMethod.getParameterTypes().length > 0) { throw new MetadataException( "Initialization methods must be zero argument methods: " + newMethod.getClass().getName() + "." + newMethod.getName()); } // make it accessible if it's not already if (!newMethod.isAccessible()) { newMethod.setAccessible(true); } } this.initializationMethod = newMethod; }
[ "sets the initialization method for this descriptor" ]
[ "Returns the directory of the URL.\n\n@param urlString URL of the file.\n@return The directory string.\n@throws IllegalArgumentException if URL is malformed", "Gets the date time str concise.\n\n@param d\nthe d\n@return the date time str concise", "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", "Main executable method of Crawljax CLI.\n\n@param args\nthe arguments.", "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", "Return the number of arguments associated with the specified option.\nThe return value includes the actual option.\nWill return 0 if the option is not supported.", "Updates value of entity in the table.", "This method retrieves the calendar hours for the specified day.\nNote that if this is a derived calendar, then this method\nwill refer to the base calendar where no hours are specified\nin the derived calendar.\n\n@param day Day instance\n@return calendar hours", "Create a new server group for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
private void revisitGateways(Definitions def) { List<RootElement> rootElements = def.getRootElements(); for (RootElement root : rootElements) { if (root instanceof Process) { setGatewayInfo((Process) root); } } }
[ "Updates the gatewayDirection attributes of all gateways.\n@param def" ]
[ "simple echo implementation", "Calculates the legend positions and which legend title should be displayed or not.\n\nImportant: the LegendBounds in the _Models should be set and correctly calculated before this\nfunction is called!\n@param _Models The graph data which should have the BaseModel class as parent class.\n@param _StartX Left starting point on the screen. Should be the absolute pixel value!\n@param _Paint The correctly set Paint which will be used for the text painting in the later process", "Utility function that copies a string array and add another string to\nfirst\n\n@param arr Original array of strings\n@param add\n@return Copied array of strings", "We have obtained waveform detail for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform detail\n@param detail the waveform detail which we retrieved", "Obtains a Symmetry010 local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered.\n\n@param timeout number of milliseconds after which the callback should be called if it hasn't already been", "Set the url for the shape file.\n\n@param url shape file url\n@throws LayerException file cannot be accessed\n@since 1.7.1", "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to this panel\n@return the modified index", "Read exceptions for a calendar.\n\n@param table calendar exception data\n@param calendar calendar\n@param exceptionID first exception ID" ]
public static void updatePathTable(String columnName, Object newData, int path_id) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_PATH + " SET " + columnName + " = ?" + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setObject(1, newData); statement.setInt(2, path_id); statement.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Updates a path table value for column columnName\n\n@param columnName name of the column to update\n@param newData new content to set\n@param path_id ID of the path to update" ]
[ "Calculates a column title using camel humps to separate words.\n@param _property the property descriptor.\n@return the column title for the given property.", "Use this API to fetch all the gslbrunningconfig resources that are configured on netscaler.", "Calculates Tangent value of the complex number.\n\n@param z1 A ComplexNumber instance.\n@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number.", "Find the index of the specified name in field name array.", "Format a date that is parseable from JavaScript, according to ISO-8601.\n\n@param date the date to format to a JSON string\n@return a formatted date in the form of a string", "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful", "Returns a flag indicating if also unreleased resources should be found.\n@return A flag indicating if also unreleased resources should be found.", "Returns true if all pixels in the array have the same color", "Use this API to add sslocspresponder resources." ]
public static base_responses clear(nitro_service client, bridgetable resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { bridgetable clearresources[] = new bridgetable[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new bridgetable(); clearresources[i].vlan = resources[i].vlan; clearresources[i].ifnum = resources[i].ifnum; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
[ "Use this API to clear bridgetable resources." ]
[ "Creates a clone using java serialization\n\n@param from Object to be cloned\n@param <T> type of the cloned object\n@return Clone of the object", "Use this API to fetch the statistics of all rnatip_stats resources that are configured on netscaler.", "Normalizes the matrix such that the Frobenius norm is equal to one.\n\n@param A The matrix that is to be normalized.", "Retrieves an existing resource assignment if one is present,\nto prevent duplicate resource assignments being added.\n\n@param resource resource to test for\n@return existing resource assignment", "Pad or trim so as to produce a string of exactly a certain length.\n\n@param str The String to be padded or truncated\n@param num The desired length", "Generate debug dump of the tree from the scene object.\nIt should include a newline character at the end.\n\n@param sb the {@code StringBuffer} to dump the object.\n@param indent indentation level as number of spaces.", "Use this API to add dnsview resources.", "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body", "Adds the index input to list.\n\n@param name the name\n@param in the in\n@param postingsFormatName the postings format name\n@return the string\n@throws IOException Signals that an I/O exception has occurred." ]
public static <InnerT> Observable<InnerT> convertPageToInnerAsync(Observable<Page<InnerT>> innerPage) { return innerPage.flatMap(new Func1<Page<InnerT>, Observable<InnerT>>() { @Override public Observable<InnerT> call(Page<InnerT> pageInner) { return Observable.from(pageInner.items()); } }); }
[ "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner." ]
[ "Accessor method used to retrieve a Boolean object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document.", "Creates a simple deployment description.\n\n@param name the name for the deployment\n@param serverGroups the server groups\n\n@return the deployment description", "Send a beat grid update announcement to all registered listeners.\n\n@param player the player whose beat grid information has changed\n@param beatGrid the new beat grid associated with that player, if any", "Get the current attribute type.\n@param key the entry's key, not null\n@return the current attribute type, or null, if no such attribute exists.", "Print a a basic type t", "Populates currency settings.\n\n@param record MPX record\n@param properties project properties", "This is private. It is a helper function for the utils.", "Use this API to fetch all the nsconfig resources that are configured on netscaler." ]
public static Provider getCurrentProvider(boolean useSwingEventQueue) { Provider provider; if (Platform.isX11()) { provider = new X11Provider(); } else if (Platform.isWindows()) { provider = new WindowsProvider(); } else if (Platform.isMac()) { provider = new CarbonProvider(); } else { LOGGER.warn("No suitable provider for " + System.getProperty("os.name")); return null; } provider.setUseSwingEventQueue(useSwingEventQueue); provider.init(); return provider; }
[ "Get global hotkey provider for current platform\n\n@param useSwingEventQueue whether the provider should be using Swing Event queue or a regular thread\n@return new instance of Provider, or null if platform is not supported\n@see X11Provider\n@see WindowsProvider\n@see CarbonProvider" ]
[ "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException", "GENERIC!!! HELPER FUNCION FOR REPLACEMENT\n\nupdate the var: DYNAMIC REPLACEMENT of VAR.\n\nEvery task must have matching command data and task result\n\n@param task\nthe task\n@param replaceVarKey\nthe replace var key\n@param replaceVarValue\nthe replace var value", "Attempt to send the specified field to the dbserver.\nThis low-level function is available only to the package itself for use in setting up the connection. It was\npreviously also used for sending parts of larger-scale messages, but because that sometimes led to them being\nfragmented into multiple network packets, and Windows rekordbox cannot handle that, full message sending no\nlonger uses this method.\n\n@param field the field to be sent\n\n@throws IOException if the field cannot be sent", "Checks if the given argument is null and throws an exception with a\nmessage containing the argument name if that it true.\n\n@param argument the argument to check for null\n@param argumentName the name of the argument to check.\nThis is used in the exception message.\n@param <T> the type of the argument\n@return the argument itself\n@throws IllegalArgumentException in case argument is null", "Use this API to enable the feature on Netscaler.\n@param feature feature to be enabled.\n@return status of the operation performed.\n@throws Exception Nitro exception.", "Retrieve an enterprise field value.\n\n@param index field index\n@return field value", "Processes changes on aliases, updating the planned state of the item.\n\n@param addAliases\naliases that should be added to the document\n@param deleteAliases\naliases that should be removed from the document", "These exact lines are shared between three different tools, so\nthey have been moved here to reduce code duplication.\n@return The parsed command-line, with options removed.", "Returns true if the specified name is NOT allowed. It isn't allowed if it matches a built in operator\nor if it contains a restricted character." ]
public CollectionRequest<Task> subtasks(String task) { String path = String.format("/tasks/%s/subtasks", task); return new CollectionRequest<Task>(this, Task.class, path, "GET"); }
[ "Returns a compact representation of all of the subtasks of a task.\n\n@param task The task to get the subtasks of.\n@return Request object" ]
[ "Update a note.\n\n@param note\nThe Note to update\n@throws FlickrException", "Returns the base path for a given configuration file.\n\nE.g. the result for the input '/sites/default/.container-config' will be '/sites/default'.<p>\n\n@param rootPath the root path of the configuration file\n\n@return the base path for the configuration file", "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\"", "Was this beat sent by the current tempo master?\n\n@return {@code true} if the device that sent this beat is the master\n@throws IllegalStateException if the {@link VirtualCdj} is not running", "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)", "Append the bounding volume particle positions, times and velocities to the existing mesh\nbefore creating a new scene object with this mesh attached to it.\nAlso, append every created scene object and its creation time to corresponding array lists.\n\n@param particlePositions\n@param particleVelocities\n@param particleTimeStamps", "Delete a path recursively, not throwing Exception if it fails or if the path is null.\n@param path a Path pointing to a file or a directory that may not exists anymore.", "Runs intermediate check on the Assembly status until it is finished executing,\nthen returns it as a response.\n\n@return {@link AssemblyResponse}\n@throws LocalOperationException if something goes wrong while running non-http operations.\n@throws RequestException if request to Transloadit server fails.", "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info." ]
public List<Profile> findAllProfiles() throws Exception { ArrayList<Profile> allProfiles = new ArrayList<>(); PreparedStatement statement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement("SELECT * FROM " + Constants.DB_TABLE_PROFILE); results = statement.executeQuery(); while (results.next()) { allProfiles.add(this.getProfileFromResultSet(results)); } } catch (Exception e) { throw e; } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (statement != null) { statement.close(); } } catch (Exception e) { } } return allProfiles; }
[ "Returns a collection of all profiles\n\n@return Collection of all Profiles\n@throws Exception exception" ]
[ "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side", "Given a particular id, return the correct contextual. For contextuals\nwhich aren't passivation capable, the contextual can't be found in another\ncontainer, and null will be returned.\n\n@param id An identifier for the contextual\n@return the contextual", "Read a list of fixed sized blocks from the input stream.\n\n@return List of MapRow instances representing the fixed size blocks", "Puts a single byte if the buffer is not yet full.\n\n@return true if the byte was put, or false if the buffer is full", "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.", "Adds the class descriptor to this model.\n\n@param classDef The class descriptor\n@return The class descriptor or <code>null</code> if there is no such class in this model", "Set up the services to create a channel listener and operation handler service.\n@param serviceTarget the service target to install the services into\n@param endpointName the endpoint name to install the services into\n@param channelName the name of the channel\n@param executorServiceName service name of the executor service to use in the operation handler service\n@param scheduledExecutorServiceName service name of the scheduled executor service to use in the operation handler service", "Resolves current full path with .yml and .yaml extensions\n\n@param fullpath\nwithout extension.\n\n@return Path of existing definition or null", "The cell String is the string representation of the object.\nIf padLeft is greater than 0, it is padded. Ditto right" ]
private InputStream connect(String url) throws IOException { URLConnection conn = new URL(URL_BASE + url).openConnection(); conn.setConnectTimeout(CONNECT_TIMEOUT); conn.setReadTimeout(READ_TIMEOUT); conn.setRequestProperty("User-Agent", USER_AGENT); return conn.getInputStream(); }
[ "Open the connection to the server.\n\n@param url the url to connect to\n@return returns the input stream for the connection\n@throws IOException cannot get result" ]
[ "Calculate the starting content offset based on the layout orientation and Gravity\n@param totalSize total size occupied by the content", "get target hosts from line by line.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the list\n@throws TargetHostsLoadException\nthe target hosts load exception", "Returns the value of a property of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"", "Hardcode a copy method as being valid. This should be used to tell Mutability Detector about\na method which copies a collection, and when the copy can be wrapped in an immutable wrapper\nwe can consider the assignment immutable. Useful for allowing Mutability Detector to correctly\nwork with other collections frameworks such as Google Guava. Reflection is used to obtain the\nmethod's descriptor and to verify the method's existence.\n\n@param fieldType - the type of the field to which the result of the copy is assigned\n@param fullyQualifiedMethodName - the fully qualified method name\n@param argType - the type of the argument passed to the copy method\n\n@throws MutabilityAnalysisException - if the specified class or method does not exist\n@throws IllegalArgumentException - if any of the arguments are null", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Used to create a new retention policy with optional parameters.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param type the type of the retention policy. Can be \"finite\" or \"indefinite\".\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@param optionalParams the optional parameters.\n@return the created retention policy's info.", "This method prints goal information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return goals the IGoal[] with all the information, so the tester can\nlook for information", "This method performs a series of permissions checks given a directory and properties file path.\n\n1 - Check whether the parent directory dirPath has proper execute and read permissions\n2 - Check whether properties file path is readable and writable\n\nIf either of the permissions checks fail, update validFilePermissions and filePermissionsProblemPath\nappropriately.", "Awaits at most 5 minutes until all pods meets the given predicate.\n\n@param filter used to wait to detect that a pod is up and running." ]
public void removeCorporateGroupId(final String organizationId, final String corporateGroupId) { final DbOrganization dbOrganization = getOrganization(organizationId); if(dbOrganization.getCorporateGroupIdPrefixes().contains(corporateGroupId)){ dbOrganization.getCorporateGroupIdPrefixes().remove(corporateGroupId); repositoryHandler.store(dbOrganization); } repositoryHandler.removeModulesOrganization(corporateGroupId, dbOrganization); }
[ "Removes a corporate groupId from an Organisation\n\n@param organizationId String\n@param corporateGroupId String" ]
[ "Convert an ObjectBank to arrays of data features and labels.\n\n@return A Pair, where the first element is an int[][][][] representing the\ndata and the second element is an int[][] representing the labels.", "Gets the appropriate cache dir\n\n@param ctx\n@return", "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", "Use this API to update responderpolicy.", "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance", "Get Rule\nGet a rule using the Rule ID\n@param ruleId Rule ID. (required)\n@return RuleEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side", "Ensures that the given collection descriptor has the collection-class property if necessary.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If collection-class is given for an array or if no collection-class is given but required", "Given an array of variable names, returns a JsonObject\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@return a json object of values" ]
public LayerType toDto(Class<? extends com.vividsolutions.jts.geom.Geometry> geometryClass) { if (geometryClass == LineString.class) { return LayerType.LINESTRING; } else if (geometryClass == MultiLineString.class) { return LayerType.MULTILINESTRING; } else if (geometryClass == Point.class) { return LayerType.POINT; } else if (geometryClass == MultiPoint.class) { return LayerType.MULTIPOINT; } else if (geometryClass == Polygon.class) { return LayerType.POLYGON; } else if (geometryClass == MultiPolygon.class) { return LayerType.MULTIPOLYGON; } else { return LayerType.GEOMETRY; } }
[ "Convert a geometry class to a layer type.\n\n@param geometryClass\nJTS geometry class\n@return Geomajas layer type" ]
[ "Extracts the service name from a Server.\n@param server\n@return", "Get the cached entry or null if no valid cached entry is found.", "Moves the request line reader to end of the line, checking that no non-space\ncharacter are found.\n\n@throws ProtocolException If more non-space tokens are found in this line,\nor the end-of-file is reached.", "Use this API to add locationfile.", "Append field with quotes and escape characters added, if required.\n\n@return this", "returns a unique long value for class clazz and field fieldName.\nthe returned number is unique accross all tables in the extent of clazz.", "This only gets half of the EnabledEndpoint from a JDBC ResultSet\nGetting the method for the override id requires an additional SQL query and needs to be called after\nthe SQL connection is released\n\n@param result result to scan for endpoint\n@return EnabledEndpoint\n@throws Exception exception", "Gets a SerialMessage with the MULTI CHANNEL CAPABILITY GET command.\nGets the capabilities for a specific endpoint.\n@param the number of the endpoint to get the\n@return the serial message.", "OJB can handle only classes that declare at least one primary key attribute,\nthis method checks this condition.\n\n@param realObject The real object to check\n@throws ClassNotPersistenceCapableException thrown if no primary key is specified for the objects class" ]
static void writeCertificates(final ModelNode result, final Certificate[] certificates) throws CertificateEncodingException, NoSuchAlgorithmException { if (certificates != null) { for (Certificate current : certificates) { ModelNode certificate = new ModelNode(); writeCertificate(certificate, current); result.add(certificate); } } }
[ "Populate the supplied response with the model representation of the certificates.\n\n@param result the response to populate.\n@param certificates the certificates to add to the response.\n@throws CertificateEncodingException\n@throws NoSuchAlgorithmException" ]
[ "Try to extract a numeric version from a collection of strings.\n\n@param versionStrings Collection of string properties.\n@return The version string if exists in the collection.", "Adds an EJB descriptor to the maps\n\n@param ejbDescriptor The EJB descriptor to add", "Bind a prepared statment that represents a call to a procedure or\nuser-defined function.\n\n@param stmt the statement to bind.\n@param cld the class descriptor of the object that triggered the\ninvocation of the procedure or user-defined function.\n@param obj the object that triggered the invocation of the procedure\nor user-defined function.\n@param proc the procedure descriptor that provides information about\nthe arguments that shoudl be passed to the procedure or\nuser-defined function", "Get the relative path of an application\n\n@param root the root to relativize against\n@param path the path to relativize\n@return the relative path", "Returns a string that represents a valid Solr query range.\n\n@param from Lower bound of the query range.\n@param to Upper bound of the query range.\n@return String that represents a Solr query range.", "Converts the given dislect to a human-readable datasource type.", "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", "Method signature without \"public void\" prefix\n\n@return The method signature in String format", "Create and get actor system.\n\n@return the actor system" ]
public static <T> Set<T> asImmutable(Set<? extends T> self) { return Collections.unmodifiableSet(self); }
[ "A convenience method for creating an immutable list.\n\n@param self a Set\n@return an immutable Set\n@see java.util.Collections#unmodifiableSet(java.util.Set)\n@since 1.0" ]
[ "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.", "Add a variable to the scripting context.\n\n@param varName The variable name.\n@param value The variable value.", "Reads GIF image from byte array.\n\n@param data containing GIF file.\n@return read status code (0 = no errors).", "Retrieves or if necessary, creates a user alias to be used\nby a child criteria\n@param attribute The alias to set", "Convenience method which locates the first P3 database in a directory\nand opens it.\n\n@param directory directory containing a P3 database\n@return ProjectFile instance", "Adds a redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@param srcUrl\n@param destUrl\n@param hostHeader\n@return\n@throws Exception", "Samples a batch of indices in the range [0, numExamples) without replacement.", "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\"", "Returns the user records for all users in the specified workspace or\norganization.\n\n@param workspace The workspace in which to get users.\n@return Request object" ]
protected int[] getPatternAsCodewords(int size) { if (size >= 10) { throw new IllegalArgumentException("Pattern groups of 10 or more digits are likely to be too large to parse as integers."); } if (pattern == null || pattern.length == 0) { return new int[0]; } else { int count = (int) Math.ceil(pattern[0].length() / (double) size); int[] codewords = new int[pattern.length * count]; for (int i = 0; i < pattern.length; i++) { String row = pattern[i]; for (int j = 0; j < count; j++) { int substringStart = j * size; int substringEnd = Math.min((j + 1) * size, row.length()); codewords[(i * count) + j] = Integer.parseInt(row.substring(substringStart, substringEnd)); } } return codewords; } }
[ "Returns this bar code's pattern, converted into a set of corresponding codewords.\nUseful for bar codes that encode their content as a pattern.\n\n@param size the number of digits in each codeword\n@return this bar code's pattern, converted into a set of corresponding codewords" ]
[ "Reads the next \"word from the request, comprising all characters up to the next SPACE.\nCharacters are tested by the supplied CharacterValidator, and an exception is thrown\nif invalid characters are encountered.", "Delete a photo from flickr.\n\nThis method requires authentication with 'delete' permission.\n\n@param photoId\n@throws FlickrException", "Checks if maintenance mode is enabled for the given app\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@return true if maintenance mode is enabled", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}", "Create a host target.\n\n@param hostName the host name\n@param client the connected controller client to the master host.\n@return the remote target", "Use this API to unset the properties of systemuser resource.\nProperties that need to be unset are specified in args array.", "Creates a curator built using the given zookeeper connection string and timeout", "Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of sentinels\n@return this ConfigBuilder", "Get the element at the index as a string.\n\n@param i the index of the element to access" ]
public static String readTextFile(Context context, int resourceId) { InputStream inputStream = context.getResources().openRawResource( resourceId); return readTextFile(inputStream); }
[ "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error." ]
[ "Read all resource assignments from a GanttProject project.\n\n@param gpProject GanttProject project", "Populates the bean by mapping the processed columns to the fields of the bean.\n\n@param resultBean\nthe bean to populate\n@param nameMapping\nthe name mappings\n@return the populated bean\n@throws SuperCsvReflectionException\nif there was a reflection exception while populating the bean", "File URLs whose protocol are in these list will be processed as jars\ncontaining classes\n\n@param fileProtocols\nComma separated list of file protocols that will be considered\nas jar files and scanned", "Convenience wrapper for message parameters\n@param params\n@return", "This takes into account scrolling and will be in absolute\ncoordinates where the top left corner of the page is 0,0 but\nthe viewport may be scrolled to something else.", "Get the upload parameters.\n@return", "Initializes the alarm sensor command class. Requests the supported alarm types.", "Revisit message to set their item ref to a item definition\n@param def Definitions", "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" ]
public void setBackgroundColor(int colorRes) { if (getBackground() instanceof ShapeDrawable) { final Resources res = getResources(); ((ShapeDrawable) getBackground()).getPaint().setColor(res.getColor(colorRes)); } }
[ "Update the background color of the mBgCircle image view." ]
[ "Use this API to delete sslfipskey resources of given names.", "Makes sure that there is a class definition for the given qualified name, and returns it.\n\n@param original The XDoclet class object\n@return The class definition", "Publish the changes to main registry", "Use this API to add cmppolicylabel.", "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read.", "Convert an ObjectBank to corresponding collection of data features and\nlabels.\n\n@return A List of pairs, one for each document, where the first element is\nan int[][][] representing the data and the second element is an\nint[] representing the labels.", "Gets the value of the ppvItem 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 ppvItem property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetPPVItem().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link PPVItemsType.PPVItem }", "Sets the right padding for all cells in the row.\n@param paddingRight new padding, ignored if smaller than 0\n@return this to allow chaining", "Create a host target.\n\n@param hostName the host name\n@param client the connected controller client to the master host.\n@return the remote target" ]
public ArtifactName build() { String groupId = this.groupId; String artifactId = this.artifactId; String classifier = this.classifier; String packaging = this.packaging; String version = this.version; if (artifact != null && !artifact.isEmpty()) { final String[] artifactSegments = artifact.split(":"); // groupId:artifactId:version[:packaging][:classifier]. String value; switch (artifactSegments.length) { case 5: value = artifactSegments[4].trim(); if (!value.isEmpty()) { classifier = value; } case 4: value = artifactSegments[3].trim(); if (!value.isEmpty()) { packaging = value; } case 3: value = artifactSegments[2].trim(); if (!value.isEmpty()) { version = value; } case 2: value = artifactSegments[1].trim(); if (!value.isEmpty()) { artifactId = value; } case 1: value = artifactSegments[0].trim(); if (!value.isEmpty()) { groupId = value; } } } return new ArtifactNameImpl(groupId, artifactId, classifier, packaging, version); }
[ "Creates the final artifact name.\n\n@return the artifact name" ]
[ "Resend the confirmation for a user to the given email.\n\n@param email the email of the user.\n@return A {@link Task} that completes when the resend request completes/fails.", "We have obtained waveform detail for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform detail\n@param detail the waveform detail which we retrieved", "Removes statement ids from a collection of statement groups.\n@param statementIds\n@param claims\n@return", "This method returns the value it is passed, or null if the value\nmatches the nullValue argument.\n\n@param value value under test\n@param nullValue return null if value under test matches this value\n@return value or null", "Resolves the POM for the specified parent.\n\n@param parent the parent coordinates to resolve, must not be {@code null}\n@return The source of the requested POM, never {@code null}\n@since Apache-Maven-3.2.2 (MNG-5639)", "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Append environment variables and system properties from othre PipelineEvn object", "Set the default host running the Odo instance to configure. Allows default profile methods and PathValueClient to\noperate on remote hosts\n\n@param hostName name of host", "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." ]