query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static void shutDownActorSystemForce() { if (!actorSystem.isTerminated()) { logger.info("shutting down actor system..."); actorSystem.shutdown(); actorSystem.awaitTermination(timeOutDuration); logger.info("Actor system has been shut down."); } else { logger.info("Actor system has been terminated already. NO OP."); } }
[ "Shut down actor system force." ]
[ "Finds for the given project.\n\n@param name project name\n@return given project or an empty {@code Optional} if project does not exist\n@throws IllegalArgumentException", "Resumes a given entry point type;\n\n@param entryPoint The entry point", "Remove a bean from the context, calling the destruction callback if any.\n\n@param name bean name\n@return previous value", "Send an announcement packet so the other devices see us as being part of the DJ Link network and send us\nupdates.", "Use this API to Reboot reboot.", "Set the face to be culled\n\n@param cullFace\n{@code GVRCullFaceEnum.Back} Tells Graphics API to discard\nback faces, {@code GVRCullFaceEnum.Front} Tells Graphics API\nto discard front faces, {@code GVRCullFaceEnum.None} Tells\nGraphics API to not discard any face\n@param passIndex\nThe rendering pass to set cull face state", "Set the value for a custom request\n\n@param pathId ID of path\n@param customRequest value of custom request\n@param clientUUID UUID of client", "Read correlation id.\n\n@param message the message\n@return correlation id from the message", "Populates data in this Options from the character stream.\n@param in The Reader\n@throws IOException If there is a problem reading data" ]
public UpdateBuilder<T, ID> updateColumnExpression(String columnName, String expression) throws SQLException { FieldType fieldType = verifyColumnName(columnName); if (fieldType.isForeignCollection()) { throw new SQLException("Can't update foreign colletion field: " + columnName); } addUpdateColumnToList(columnName, new SetExpression(columnName, fieldType, expression)); return this; }
[ "Add a column to be set to a value for UPDATE statements. This will generate something like 'columnName =\nexpression' where the expression is built by the caller.\n\n<p>\nThe expression should have any strings escaped using the {@link #escapeValue(String)} or\n{@link #escapeValue(StringBuilder, String)} methods and should have any column names escaped using the\n{@link #escapeColumnName(String)} or {@link #escapeColumnName(StringBuilder, String)} methods.\n</p>" ]
[ "Returns the arguments as a list in their command line form.\n\n@return the arguments for the command line", "Filters a list of rows from the named table. If a column name and a value\nare supplied, then use this to filter the rows. If no column name is\nsupplied, then return all rows.\n\n@param tableName table name\n@param columnName filter column name\n@param id filter column value\n@return filtered list of rows", "Use this API to fetch appfwprofile_cookieconsistency_binding resources of given name .", "Get informations about a place.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param placeId\nA Flickr Places ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@return A Location\n@throws FlickrException", "A find query only given as criterion. Leave it to MongoDB's own parser to handle it.\n\n@return the {@link Rule} to identify a find query only", "Drops a driver from the DriverManager's list.", "Obtains a local date in Coptic calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Coptic era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Coptic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code CopticEra}", "This method is called to ensure that after a project file has been\nread, the cached unique ID values used to generate new unique IDs\nstart after the end of the existing set of unique IDs.", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK." ]
public static RemoteProxyController create(final TransactionalProtocolClient client, final PathAddress pathAddress, final ProxyOperationAddressTranslator addressTranslator, final ModelVersion targetKernelVersion) { return new RemoteProxyController(client, pathAddress, addressTranslator, targetKernelVersion); }
[ "Create a new remote proxy controller.\n\n@param client the transactional protocol client\n@param pathAddress the path address\n@param addressTranslator the address translator\n@param targetKernelVersion the {@link ModelVersion} of the kernel management API exposed by the proxied process\n@return the proxy controller" ]
[ "Set the color for each total for the column\n@param column the number of the column (starting from 1)\n@param color", "Creates an object from the given JSON data.\n\n@param data the JSON data\n@param clazz the class object for the content of the JSON data\n@param <T> the type of the class object extending {@link InterconnectObject}\n@return the object contained in the given JSON data\n@throws JsonParseException if a the JSON data could not be parsed\n@throws JsonMappingException if the mapping of the JSON data to the IVO failed\n@throws IOException if an I/O related problem occurred", "Gets a JSON string containing any pending changes to this object that can be sent back to the Box API.\n@return a JSON string containing the pending changes.", "Returns all the deployment runtime names associated with an overlay accross all server groups.\n\n@param context the current OperationContext.\n@param overlay the name of the overlay.\n@return all the deployment runtime names associated with an overlay accross all server groups.", "Run through the map and remove any references that have been null'd out by the GC.", "Build a Pk-Query base on the ClassDescriptor.\n\n@param cld\n@return a select by PK query", "This takes into account objects that breaks the JavaBean convention\nand have as getter for Boolean objects an \"isXXX\" method.\n@param dest\n@param orig", "Get a File path list from configuration.\n\n@param name the name of the property\n@param props the set of configuration properties\n\n@return the CanonicalFile form for the given name.", "Obtains a International Fixed local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
public synchronized void stop() { if (m_thread != null) { long timeBeforeShutdownWasCalled = System.currentTimeMillis(); JLANServer.shutdownServer(new String[] {}); while (m_thread.isAlive() && ((System.currentTimeMillis() - timeBeforeShutdownWasCalled) < MAX_SHUTDOWN_WAIT_MILLIS)) { try { Thread.sleep(500); } catch (InterruptedException e) { // ignore } } } }
[ "Tries to stop the JLAN server and return after it is stopped, but will also return if the thread hasn't stopped after MAX_SHUTDOWN_WAIT_MILLIS." ]
[ "Read the domain controller's data from an input stream.\n\n@param instream the input stream\n@throws Exception", "Sets top and bottom padding for all cells in the row.\n@param padding new padding for top and bottom, ignored if smaller than 0\n@return this to allow chaining", "Operates on one dimension at a time.", "Disply available use cases.", "Start the timer.", "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0", "Add a single exception to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param date calendar exception", "Add custom fields to the tree.\n\n@param parentNode parent tree node\n@param file custom fields container", "This method performs database modification at the very and of transaction." ]
public static <T> T notNull(T argument, String argumentName) { if (argument == null) { throw new IllegalArgumentException("Argument " + argumentName + " must not be null."); } return argument; }
[ "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" ]
[ "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>", "Populates a calendar hours instance.\n\n@param record MPX record\n@param hours calendar hours instance\n@throws MPXJException", "Creates a directory at the given path if it does not exist yet and if the\ndirectory manager was not configured for read-only access.\n\n@param path\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Utility function that constructs AdminClient.\n\n@param url URL pointing to the bootstrap node\n@return Newly constructed AdminClient", "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter.", "Creates a real agent in the platform\n\n@param agent_name\nThe name that the agent is gonna have in the platform\n@param path\nThe path of the description (xml) of the agent", "Use this API to update systemcollectionparam.", "Resizes the array that represents this bit vector.\n\n@param newArraySize\nnew array size", "Attempts to create a human-readable String representation of the provided rule." ]
public static Tuple2<Double, Double> getRandomGeographicalLocation() { return new Tuple2<>( (double) (RandomHelper.randWithConfiguredSeed().nextInt(999) + 1) / 100, (double) (RandomHelper.randWithConfiguredSeed().nextInt(999) + 1) / 100); }
[ "Get random geographical location\n@return 2-Tuple of ints (latitude, longitude)" ]
[ "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)}", "Validates a String to be a valid name to be used in MongoDB for a collection name.\n\n@param collectionName", "Find the path.\n\n@param start key of first node in the path\n@param end key of last node in the path\n@return string containing the nodes keys in the path separated by arrow symbol", "Issue the database statements to create the table associated with a class.\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be created.\n@return The number of statements executed to do so.", "Look up the playback state that has reached furthest in the track, but give playing players priority over stopped players.\nThis is used to choose the scroll center when auto-scrolling is active.\n\n@return the playback state, if any, with the highest playing {@link PlaybackState#position} value", "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", "Adds the default value of property if defined.\n\n@param props the Properties object\n@param propDef the property definition\n\n@return true if the property could be added", "Retrieve a byte array of containing the data starting at the supplied\noffset in the FixDeferFix file. Note that this method will return null\nif the requested data is not found for some reason.\n\n@param offset Offset into the file\n@return Byte array containing the requested data", "Use this API to fetch the statistics of all nsacl6_stats resources that are configured on netscaler." ]
private void processAnalytics() throws SQLException { allocateConnection(); try { DatabaseMetaData meta = m_connection.getMetaData(); String productName = meta.getDatabaseProductName(); if (productName == null || productName.isEmpty()) { productName = "DATABASE"; } else { productName = productName.toUpperCase(); } ProjectProperties properties = m_reader.getProject().getProjectProperties(); properties.setFileApplication("Primavera"); properties.setFileType(productName); } finally { releaseConnection(); } }
[ "Populate data for analytics." ]
[ "Heat Equation Boundary Conditions", "Creates a unique name, suitable for use with Resque.\n\n@return a unique name for this worker", "Get the sub registry for the servers.\n\n@param range the version range\n@return the sub registry", "Cretae a BufferedImage from an ImageProducer.\n@param producer the ImageProducer\n@return a new TYPE_INT_ARGB BufferedImage", "Write a boolean field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.\n@param className\n@param resourceLoader\n@return the loaded class or null if the given class cannot be loaded", "Closes the outbound socket binding connection.\n\n@throws IOException", "Handles Multi Instance Report message. Handles Report on\nthe number of instances for the command class.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "A package of the specified class will be scanned and found classes will be added to the set of bean classes for the synthetic bean archive.\n\n@param scanRecursively\n@param packageClass\n@return self" ]
private void writeToDelegate(byte[] data) { if (m_delegateStream != null) { try { m_delegateStream.write(data); } catch (IOException e) { throw new RuntimeException(e); } } }
[ "Writes data to delegate stream if it has been set.\n\n@param data the data to write" ]
[ "Ask the specified player for an Artist menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the artist menu\n\n@throws Exception if there is a problem obtaining the menu", "Update list of sorted services by copying it from the array and making it unmodifiable.", "Drop down selected view\n\n@param position position of selected item\n@param convertView View of selected item\n@param parent parent of selected view\n@return convertView", "Unregister all servlets registered by this exporter.", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "This method extracts assignment data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Fetches the HttpMethod from annotations and returns String representation of HttpMethod.\nReturn emptyString if not present.\n\n@param method Method handling the http request.\n@return String representation of HttpMethod from annotations or emptyString as a default.", "Determine if a CharSequence can be parsed as a BigDecimal.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigDecimal(String)\n@since 1.8.2", "Recursively write tasks.\n\n@param tasks list of tasks\n@throws IOException" ]
public List<Integer> getAsyncOperationList(boolean showCompleted) { /** * Create a copy using an immutable set to avoid a * {@link java.util.ConcurrentModificationException} */ Set<Integer> keySet = ImmutableSet.copyOf(operations.keySet()); if(showCompleted) return new ArrayList<Integer>(keySet); List<Integer> keyList = new ArrayList<Integer>(); for(int key: keySet) { AsyncOperation operation = operations.get(key); if(operation != null && !operation.getStatus().isComplete()) keyList.add(key); } return keyList; }
[ "Get list of asynchronous operations on this node. By default, only the\npending operations are returned.\n\n@param showCompleted Show completed operations\n@return A list of operation ids." ]
[ "Returns the default conversion for the given java type.\n\n@param javaType The qualified java type\n@return The default conversion or <code>null</code> if there is no default conversion for the type", "Extracts the java class name from the schema info\n\n@param schemaInfo the schema info, a string like: java=java.lang.String\n@return the name of the class extracted from the schema info", "Remove all non replica clock entries from the list of versioned values\nprovided\n\n@param vals list of versioned values to prune replicas from\n@param keyReplicas list of current replicas for the given key\n@param didPrune flag to mark if we did actually prune something\n@return pruned list", "Reload a managed server.\n\n@param permit the controller permit\n@return whether the state was changed successfully or not", "Gets a property from system, environment or an external map.\nThe lookup order is system > env > map > defaultValue.\n\n@param name\nThe name of the property.\n@param map\nThe external map.\n@param defaultValue\nThe value that should be used if property is not found.", "Adds OPT_Z | OPT_ZONE 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", "Ends interception context if it was previously stated. This is indicated by a local variable with index 0.", "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.", "Append Join for SQL92 Syntax" ]
@Override public IPAddress toAddress() throws UnknownHostException, HostNameException { IPAddress addr = resolvedAddress; if(addr == null && !resolvedIsNull) { //note that validation handles empty address resolution validate(); synchronized(this) { addr = resolvedAddress; if(addr == null && !resolvedIsNull) { if(parsedHost.isAddressString()) { addr = parsedHost.asAddress(); resolvedIsNull = (addr == null); //note there is no need to apply prefix or mask here, it would have been applied to the address already } else { String strHost = parsedHost.getHost(); if(strHost.length() == 0 && !validationOptions.emptyIsLoopback) { addr = null; resolvedIsNull = true; } else { //Note we do not set resolvedIsNull, so we will attempt to resolve again if the previous attempt threw an exception InetAddress inetAddress = InetAddress.getByName(strHost); byte bytes[] = inetAddress.getAddress(); Integer networkPrefixLength = parsedHost.getNetworkPrefixLength(); if(networkPrefixLength == null) { IPAddress mask = parsedHost.getMask(); if(mask != null) { byte maskBytes[] = mask.getBytes(); if(maskBytes.length != bytes.length) { throw new HostNameException(host, "ipaddress.error.ipMismatch"); } for(int i = 0; i < bytes.length; i++) { bytes[i] &= maskBytes[i]; } networkPrefixLength = mask.getBlockMaskPrefixLength(true); } } IPAddressStringParameters addressParams = validationOptions.addressOptions; if(bytes.length == IPv6Address.BYTE_COUNT) { IPv6AddressCreator creator = addressParams.getIPv6Parameters().getNetwork().getAddressCreator(); addr = creator.createAddressInternal(bytes, networkPrefixLength, null, this); /* address creation */ } else { IPv4AddressCreator creator = addressParams.getIPv4Parameters().getNetwork().getAddressCreator(); addr = creator.createAddressInternal(bytes, networkPrefixLength, this); /* address creation */ } } } resolvedAddress = addr; } } } return addr; }
[ "If this represents an ip address, returns that address.\nIf this represents a host, returns the resolved ip address of that host.\nOtherwise, returns null, but only for strings that are considered valid address strings but cannot be converted to address objects.\n\nThis method will throw exceptions for invalid formats and failures to resolve the address. The equivalent method {@link #getAddress()} will simply return null rather than throw those exceptions.\n\nIf you wish to get the represented address and avoid DNS resolution, use {@link #asAddress()} or {@link #asAddressString()}\n\n@return" ]
[ "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", "Method will be executed asynchronously.", "Retrieves a string value from the property data.\n\n@param type Type identifier\n@return string value", "Add a URL pattern to the routing table.\n\n@param urlPattern A regular expression\n@throws RouteAlreadyMappedException", "Given a filesystem and path to a node, gets all the files which belong to\na partition and replica type\n\nWorks only for {@link ReadOnlyStorageFormat.READONLY_V2}\n\n@param fs Underlying filesystem\n@param path The node directory path\n@param partitionId The partition id for which we get the files\n@param replicaType The replica type\n@return Returns list of files of this partition, replicaType\n@throws IOException", "Performs a HTTP PUT request, saves an attachment.\n\n@return {@link Response}", "Delete old jobs.\n\n@param checkTimeThreshold threshold for last check time\n@return the number of jobs deleted", "Create a temporary directory with the same attributes as its parent directory.\n@param dir\nthe path to directory in which to create the directory\n@param prefix\nthe prefix string to be used in generating the directory's name;\nmay be {@code null}\n@return the path to the newly created directory that did not exist before\nthis method was invoked\n@throws IOException", "Obtain the ID associated with a profile name\n\n@param profileName profile name\n@return ID of profile" ]
public static base_responses clear(nitro_service client, gslbldnsentries resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { gslbldnsentries clearresources[] = new gslbldnsentries[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new gslbldnsentries(); } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
[ "Use this API to clear gslbldnsentries resources." ]
[ "Adds columns for the specified properties.\n@param _properties the array of <code>PropertyDescriptor</code>s to be added.\n@throws ColumnBuilderException if an error occurs.\n@throws ClassNotFoundException if an error occurs.", "Specifies the base URI of this conversion server.\n\n@param baseUri The URI under which this remote conversion server is reachable.\n@return This builder instance.", "Gets bounds which are identical for all dimensions.\n\n@param dim The number of dimensions.\n@param l The value of all lower bounds.\n@param u The value of all upper bounds.\n@return The new bounds.", "Use this API to fetch Interface resource of given name .", "Accessor method used to retrieve a Number instance 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", "Used internally to find the solution to a single column vector.", "Print a work contour.\n\n@param value WorkContour instance\n@return work contour value", "This is generally only useful for extensions that delegate some of their functionality to other \"internal\"\nextensions of their own that they need to configure.\n\n@param configuration the configuration to be supplied with the returned analysis context.\n@return an analysis context that is a clone of this instance but its configuration is replaced with the provided\none.", "Generates the specified number of random resource names with the same prefix.\n@param prefix the prefix to be used if possible\n@param maxLen the maximum length for the random generated name\n@param count the number of names to generate\n@return random names" ]
public static sslcipher[] get(nitro_service service) throws Exception{ sslcipher obj = new sslcipher(); sslcipher[] response = (sslcipher[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the sslcipher resources that are configured on netscaler." ]
[ "Package-protected method used to initiate operation execution.\n@return the result action", "This method maps the currency symbol position from the\nrepresentation used in the MPP file to the representation\nused by MPX.\n\n@param value MPP symbol position\n@return MPX symbol position", "Returns true if required properties for FluoAdmin are set", "Build a standard-format UDP packet for sending to port 50001 or 50002 in the protocol.\n\n@param type the type of packet to create.\n@param deviceName the 0x14 (twenty) bytes of the device name to send in the packet.\n@param payload the remaining bytes which come after the device name.\n@return the packet to send.", "Extracts a house holder vector from the rows of A and stores it in u\n@param A Complex matrix with householder vectors stored in the upper right triangle\n@param row Row in A\n@param col0 first row in A (implicitly assumed to be r + i0)\n@param col1 last row +1 in A\n@param u Output array storage\n@param offsetU first index in U", "Used to create a new finite 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 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.", "Retrieves the content of the filename. Also reads from JAR Searches for the resource in the\nroot folder in the jar\n\n@param fileName Filename.\n@return The contents of the file.\n@throws IOException On error.", "Creates the container for a bundle without descriptor.\n@return the container for a bundle without descriptor.\n@throws IOException thrown if reading the bundle fails.\n@throws CmsException thrown if reading the bundle fails.", "We have obtained a waveform preview for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform preview\n@param preview the waveform preview which we retrieved" ]
public static List<String> getNodeListFromStringLineSeperateOrSpaceSeperate( String listStr, boolean removeDuplicate) { List<String> nodes = new ArrayList<String>(); for (String token : listStr.split("[\\r?\\n| +]+")) { // 20131025: fix if fqdn has space in the end. if (token != null && !token.trim().isEmpty()) { nodes.add(token.trim()); } } if (removeDuplicate) { removeDuplicateNodeList(nodes); } logger.info("Target hosts size : " + nodes.size()); return nodes; }
[ "Gets the node list from string line seperate or space seperate.\n\n@param listStr\nthe list str\n@param removeDuplicate\nthe remove duplicate\n@return the node list from string line seperate or space seperate" ]
[ "Retrieve a node list based on an XPath expression.\n\n@param document XML document to process\n@param expression compiled XPath expression\n@return node list", "page breaks should be near the bottom of the band, this method used while adding subreports\nwhich has the \"start on new page\" option.\n@param band", "Dump an array of bytes in hexadecimal.\n\n@param displayOffset the display offset (left column)\n@param data the byte array of data\n@param offset the offset to start dumping in the byte array\n@param len the length of data to dump\n@return the dump string", "Get the ActivityInterface.\n\n@return The ActivityInterface", "Get an image using the specified URL suffix.\n\n@deprecated\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException", "Returns all factory instances that match the query.\n\n@param query the factory query, not null.\n@return the instances found, never null.", "Detokenize the input list of words.\n\n@param tokens List of words.\n@return Detokenized string.", "Use this API to rename a responderpolicy resource.", "Provisions a new app user in an enterprise with additional user information using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info." ]
void endOfRunDb() { DbConn cnx = null; try { cnx = Helpers.getNewDbSession(); // Done: put inside history & remove instance from queue. History.create(cnx, this.ji, this.resultStatus, endDate); jqmlogger.trace("An History was just created for job instance " + this.ji.getId()); cnx.runUpdate("ji_delete_by_id", this.ji.getId()); cnx.commit(); } catch (RuntimeException e) { endBlockDbFailureAnalysis(e); } finally { Helpers.closeQuietly(cnx); } }
[ "Part of the endOfRun process that needs the database. May be deferred if the database is not available." ]
[ "Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String", "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", "Start a task. The id is needed to end the task\n\n@param id\n@param taskName", "Exchanges the initial fully-formed messages which establishes the transaction context for queries to\nthe dbserver.\n\n@throws IOException if there is a problem during the exchange", "Put the given value to the appropriate id in the stack, using the version\nof the current list node identified by that id.\n\n@param id\n@param element element to set\n@return element that was replaced by the new element\n@throws ObsoleteVersionException when an update fails", "Start with specifying the artifact version", "Toggle between single events and series.\n@param isSeries flag, indicating if we want a series of events.", "Tries to stop the JLAN server and return after it is stopped, but will also return if the thread hasn't stopped after MAX_SHUTDOWN_WAIT_MILLIS.", "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured." ]
public static base_response update(nitro_service client, systemuser resource) throws Exception { systemuser updateresource = new systemuser(); updateresource.username = resource.username; updateresource.password = resource.password; updateresource.externalauth = resource.externalauth; updateresource.promptstring = resource.promptstring; updateresource.timeout = resource.timeout; return updateresource.update_resource(client); }
[ "Use this API to update systemuser." ]
[ "Creates a Bytes object by copying the data of the given ByteBuffer.\n\n@param bb Data will be read from this ByteBuffer in such a way that its position is not\nchanged.", "The type descriptor for a method node is a string containing the name of the method, its return type,\nand its parameter types in a canonical form. For simplicity, I'm using the format of a Java declaration\nwithout parameter names.\n\n@return the type descriptor", "Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver\nretrieved using the default server integration classloader.\n\n@return this class instance", "This method is used to associate a child task with the current\ntask instance. It has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be updated once all of the task data has been read.\n\n@param child child task", "Creates the node mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param parentLevel\nthe parent level", "Installs a path service.\n\n@param name the name to use for the service\n@param path the relative portion of the path\n@param possiblyAbsolute {@code true} if {@code path} may be an {@link #isAbsoluteUnixOrWindowsPath(String) absolute path}\nand should be {@link AbsolutePathService installed as such} if it is, with any\n{@code relativeTo} parameter ignored\n@param relativeTo the name of the path that {@code path} may be relative to\n@param serviceTarget the {@link ServiceTarget} to use to install the service\n@return the ServiceController for the path service", "Minimize the function starting at the given initial point.", "Extract site path, base name and locale from the resource opened with the editor.", "Calculates a checksum for the specified buffer.\n@param buffer the buffer to calculate.\n@return the checksum value." ]
public <V> V attachIfAbsent(final AttachmentKey<V> key, final V value) { assert key != null; return key.cast(contextAttachments.putIfAbsent(key, value)); }
[ "Attaches an arbitrary object to this context only if the object was not already attached. If a value has already\nbeen attached with the key provided, the current value associated with the key is returned.\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." ]
[ "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "Use this API to change sslcertkey resources.", "Add server redirect to a profile\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@param groupId group ID\n@return ID of added ServerRedirect\n@throws Exception exception", "Helper method to lookup a DAO if it has already been associated with the table-config. Otherwise this returns\nnull.", "Convert raw value as read from the MPP file into a Java type.\n\n@param type MPP value type\n@param value raw value data\n@return Java object", "Get the response headers for URL, following redirects\n\n@param stringUrl URL to use\n@param followRedirects whether to follow redirects\n@return headers HTTP Headers\n@throws IOException I/O error happened", "Notification that the configuration has been written, and its current content should be stored to the .last file", "Disables all the overrides for a specific profile\n\n@param model\n@param profileID\n@param clientUUID\n@return", "Use this API to fetch a responderglobal_responderpolicy_binding resources." ]
public GroovyMethodDoc[] methods() { Collections.sort(methods); return methods.toArray(new GroovyMethodDoc[methods.size()]); }
[ "returns a sorted array of methods" ]
[ "Add a '&lt;&gt;' clause so the column must be not-equal-to the value.", "to avoid creation of unmaterializable proxies", "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias", "Check if the given class represents an array of primitives,\ni.e. boolean, byte, char, short, int, long, float, or double.\n@param clazz the class to check\n@return whether the given class is a primitive array class", "Retrieve a child record by name.\n\n@param key child record name\n@return child record", "Use this API to add locationfile.", "Output the SQL type for a Java String.", "package for testing purpose", "Returns the corporate dependencies of a module\n\n@param module Module\n@param corporateFilters List<String>\n@return List<Dependency>" ]
public static <T> DatabaseTableConfig<T> fromClass(DatabaseType databaseType, Class<T> clazz) throws SQLException { String tableName = extractTableName(databaseType, clazz); if (databaseType.isEntityNamesMustBeUpCase()) { tableName = databaseType.upCaseEntityName(tableName); } return new DatabaseTableConfig<T>(databaseType, clazz, tableName, extractFieldTypes(databaseType, clazz, tableName)); }
[ "Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. This is used\nby internal classes to configure a class." ]
[ "This method is called to alert project listeners to the fact that\na calendar has been written to a project file.\n\n@param calendar calendar instance", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "Use this API to kill systemsession resources.", "Compress a directory into a zip file\n\n@param dir Directory\n@param zipFile ZIP file to create\n@throws IOException I/O Error", "Get the rate types set.\n\n@return the rate types set, or an empty array, but never null.", "returns the zero argument constructor for the class represented by this class descriptor\nor null if a zero argument constructor does not exist. If the zero argument constructor\nfor this class is not public it is made accessible before being returned.", "Check if the provided date or any date after it are part of the series.\n@param nextDate the current date to check.\n@param previousOccurrences the number of events of the series that took place before the date to check.\n@return <code>true</code> if more dates (including the provided one) could be in the series, <code>false</code> otherwise.", "Generate and return the list of statements to create a database table and any associated features.", "Resumes a given entry point type;\n\n@param entryPoint The entry point" ]
public void scrollOnce() { PagerAdapter adapter = getAdapter(); int currentItem = getCurrentItem(); int totalCount; if (adapter == null || (totalCount = adapter.getCount()) <= 1) { return; } int nextItem = (direction == LEFT) ? --currentItem : ++currentItem; if (nextItem < 0) { if (isCycle) { setCurrentItem(totalCount - 1, isBorderAnimation); } } else if (nextItem == totalCount) { if (isCycle) { setCurrentItem(0, isBorderAnimation); } } else { setCurrentItem(nextItem, true); } }
[ "scroll only once" ]
[ "Creates a map between a calendar ID and a list of\nwork pattern assignment rows.\n\n@param rows work pattern assignment rows\n@return work pattern assignment map", "A specific, existing project can be updated by making a PUT request on the\nURL for that project. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated project record.\n\n@param project The project to update.\n@return Request object", "In this method perform the actual override in runtime.\n\n@see org.apache.log4j.spi.HierarchyEventListener#addAppenderEvent(org.apache.log4j.Category, org.apache.log4j.Appender)", "Create a function that will create the style on demand. This is called later in a separate thread so\nany blocking calls will not block the parsing of the layer attributes.\n\n@param template the template for this map\n@param styleString a string that identifies a style.", "Use this API to add responderpolicy.", "Edit which photos are in the photoset.\n\n@param photosetId\nThe photoset ID\n@param primaryPhotoId\nThe primary photo Id\n@param photoIds\nThe photo IDs for the photos in the set\n@throws FlickrException", "Given a filesystem and path to a node, gets all the files which belong to\na partition and replica type\n\nWorks only for {@link ReadOnlyStorageFormat.READONLY_V2}\n\n@param fs Underlying filesystem\n@param path The node directory path\n@param partitionId The partition id for which we get the files\n@param replicaType The replica type\n@return Returns list of files of this partition, replicaType\n@throws IOException", "Send a metadata cache update announcement to all registered listeners.\n\n@param slot the media slot whose cache status has changed\n@param cache the cache which has been attached, or, if {@code null}, the previous cache has been detached", "request token from FCM" ]
public final void fatal(Object pObject) { getLogger().log(FQCN, Level.FATAL, pObject, null); }
[ "generate a message for loglevel FATAL\n\n@param pObject the message Object" ]
[ "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "retrieve an Object by query\nI.e perform a SELECT ... FROM ... WHERE ... in an RDBMS", "Performs the transformation.\n\n@return True if the file was modified.", "Cancels all the pending & running requests and releases all the dispatchers.", "1-D Forward Discrete Hartley Transform.\n\n@param data Data.", "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException", "MPP14 files seem to exhibit some occasional weirdness\nwith duplicate ID values which leads to the task structure\nbeing reported incorrectly. The following method attempts to correct this.\nThe method uses ordering data embedded in the file to reconstruct\nthe correct ID order of the tasks.", "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "Use this API to fetch filtered set of vpnglobal_auditnslogpolicy_binding resources.\nset the filter parameter values in filtervalue object." ]
private void readTextsCompressed(File dir, HashMap results) throws IOException { if (dir.exists() && dir.isDirectory()) { File[] files = dir.listFiles(); for (int idx = 0; idx < files.length; idx++) { if (files[idx].isDirectory()) { continue; } results.put(files[idx].getName(), readTextCompressed(files[idx])); } } }
[ "Reads the text files in the given directory and puts their content\nin the given map after compressing it. Note that this method does not\ntraverse recursivly into sub-directories.\n\n@param dir The directory to process\n@param results Map that will receive the contents (indexed by the relative filenames)\n@throws IOException If an error ocurred" ]
[ "Create a mapping from entity names to entity ID values.", "Method to initialize the list.\n\n@param resList a given instance or null\n@return an instance", "Prints a stores xml to a file.\n\n@param outputDirName\n@param fileName\n@param list of storeDefs", "Take screenshot of the current window.\n\n@param target The target type/format of the Screenshot\n@return Screenshot of current window, in the requested format", "Returns a JSONObject keyed with the lastId retrieved and a value of a JSONArray of the retrieved JSONObject events\n\n@param table the table to read from\n@return JSONObject containing the max row ID and a JSONArray of the JSONObject events or null", "Check if a given string is a template path or template content\n\nIf the string contains anyone the following characters then we assume it\nis content, otherwise it is path:\n\n* space characters\n* non numeric-alphabetic characters except:\n** dot \".\"\n** dollar: \"$\"\n\n@param string\nthe string to be tested\n@return `true` if the string literal is template content or `false` otherwise", "Matches the styles and adjusts the size. This needs to be\ncalled after the input is added to the DOM, so we do it in\nonLoad.", "Disable certificate verification.\n\n@throws KeyManagementException\nthe key management exception\n@throws NoSuchAlgorithmException\nthe no such algorithm exception", "Post-configure retreival of server engine." ]
private static JSONObject parseTarget(Shape target) throws JSONException { JSONObject targetObject = new JSONObject(); targetObject.put("resourceId", target.getResourceId().toString()); return targetObject; }
[ "Delivers the correct JSON Object for the target\n\n@param target\n@throws org.json.JSONException" ]
[ "Creates PollingState from the json string.\n\n@param serializedPollingState polling state as json string\n@param <ResultT> the result that the poll operation produces\n@return the polling state", "Read JaCoCo report determining the format to be used.\n@param executionDataVisitor visitor to store execution data.\n@param sessionInfoStore visitor to store info session.\n@return true if binary format is the latest one.\n@throws IOException in case of error or binary format not supported.", "Combines adjacent blocks of the same type.", "Add the dependencies if the deployment contains a service activator loader entry.\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Returns the address for the operation.\n\n@param op the operation\n\n@return the operation address or a new undefined model node", "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster", "Gen job id.\n\n@return the string", "Performs a put operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key and\nvalue\n@return Version of the value for the successful put" ]
private static void freeTempLOB(ClobWrapper clob, BlobWrapper blob) { try { if (clob != null) { // If the CLOB is open, close it if (clob.isOpen()) { clob.close(); } // Free the memory used by this CLOB clob.freeTemporary(); } if (blob != null) { // If the BLOB is open, close it if (blob.isOpen()) { blob.close(); } // Free the memory used by this BLOB blob.freeTemporary(); } } catch (Exception e) { logger.error("Error during temporary LOB release", e); } }
[ "Frees the temporary LOBs when an exception is raised in the application\nor when the LOBs are no longer needed. If the LOBs are not freed, the\nspace used by these LOBs are not reclaimed.\n@param clob CLOB-wrapper to free or null\n@param blob BLOB-wrapper to free or null" ]
[ "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "Read a Synchro string from an input stream.\n\n@param is input stream\n@return String instance", "This method extracts resource data from a GanttProject file.\n\n@param ganttProject parent node for resources", "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate", "Find the scheme to use to connect to the service.\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved scheme of 'http' as a fallback.", "Adds a clause that checks whether ANY set bits in a bitmask are present\nin a numeric expression.\n\n@param expr\nSQL numeric expression to check.\n@param bits\nInteger containing the bits for which to check.", "Joins the given list into a single string.", "Tests whether the two field descriptors are equal, i.e. have same name, same column\nand same jdbc-type.\n\n@param first The first field\n@param second The second field\n@return <code>true</code> if they are equal", "remove files from directory. All-or-nothing operation - if any of the files fails to be removed, all deleted files are restored.\n\nThe operation is performed in two steps - first all the files are moved to a backup folder, and afterwards backup folder is removed.\nIf an error occurs in the first step of the operation, all files are restored and the operation ends with status {@code false}.\nIf an error occurs in the second step, the operation ends with status {@code false}, but the files are not rolled back.\n\n@throws IOException if an error occurred" ]
private void processDependencies() throws SQLException { List<Row> rows = getRows("select * from zdependency where zproject=?", m_projectID); for (Row row : rows) { Task nextTask = m_project.getTaskByUniqueID(row.getInteger("ZNEXTACTIVITY_")); Task prevTask = m_project.getTaskByUniqueID(row.getInteger("ZPREVIOUSACTIVITY_")); Duration lag = row.getDuration("ZLAG_"); RelationType type = row.getRelationType("ZTYPE"); Relation relation = nextTask.addPredecessor(prevTask, type, lag); relation.setUniqueID(row.getInteger("Z_PK")); } }
[ "Read relation data." ]
[ "Fetches the HttpMethod from annotations and returns String representation of HttpMethod.\nReturn emptyString if not present.\n\n@param method Method handling the http request.\n@return String representation of HttpMethod from annotations or emptyString as a default.", "Utility function to find the first index of a value in a\nListBox.", "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", "Join N sets.", "Sets page shift orientation. The pages might be shifted horizontally or vertically relative\nto each other to make the content of each page on the screen at least partially visible\n@param orientation", "Use this API to fetch vpnvserver_vpnnexthopserver_binding resources of given name .", "Add a shutdown listener, which gets called when all requests completed on shutdown.\n\n@param listener the shutdown listener", "Requests the waveform preview for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform preview is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform preview, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Merge a new subsystem from the global registration.\n\n@param registry the global registry\n@param subsystemName the subsystem name\n@param version the subsystem version" ]
private File buildDirPath(final String serverConfigUserDirPropertyName, final String suppliedConfigDir, final String serverConfigDirPropertyName, final String serverBaseDirPropertyName, final String defaultBaseDir) { String propertyDir = System.getProperty(serverConfigUserDirPropertyName); if (propertyDir != null) { return new File(propertyDir); } if (suppliedConfigDir != null) { return new File(suppliedConfigDir); } propertyDir = System.getProperty(serverConfigDirPropertyName); if (propertyDir != null) { return new File(propertyDir); } propertyDir = System.getProperty(serverBaseDirPropertyName); if (propertyDir != null) { return new File(propertyDir); } return new File(new File(stateValues.getOptions().getJBossHome(), defaultBaseDir), "configuration"); }
[ "This method attempts to locate a suitable directory by checking a number of different configuration sources.\n\n1 - serverConfigUserDirPropertyName - This value is used to check it a matching system property has been set. 2 -\nsuppliedConfigDir - If a path was specified on the command line it is expected to be passed in as this parameter. 3 -\nserverConfigDirPropertyName - This is a second system property to check.\n\nAnd finally if none of these match defaultBaseDir specifies the configuration being searched and is appended to the JBoss\nHome value discovered when the utility started." ]
[ "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator", "capture 3D screenshot", "Add a IN clause so the column must be equal-to one of the objects from the list passed in.", "Convert a Java date into a Planner date.\n\n20070222\n\n@param value Java Date instance\n@return Planner date", "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Get a list of comments made for a particular entity\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@return list of comments", "Use this API to disable snmpalarm resources of given names.", "Gets value of this function at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@return The value of the function at the point." ]
public long queryForCountStar(DatabaseConnection databaseConnection) throws SQLException { if (countStarQuery == null) { StringBuilder sb = new StringBuilder(64); sb.append("SELECT COUNT(*) FROM "); databaseType.appendEscapedEntityName(sb, tableInfo.getTableName()); countStarQuery = sb.toString(); } long count = databaseConnection.queryForLong(countStarQuery); logger.debug("query of '{}' returned {}", countStarQuery, count); return count; }
[ "Return a long value which is the number of rows in the table." ]
[ "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "Starts the ephemeral node and waits for it to be created\n\n@param node Node to start\n@param maxWaitSec Maximum time in seconds to wait", "Get the information for a specified photoset.\n\nThis method does not require authentication.\n\n@param photosetId\nThe photoset ID\n@return The Photoset\n@throws FlickrException", "Extract the outline level from a task's WBS attribute.\n\n@param task Task instance\n@return outline level", "object -> xml\n\n@param object\n@param childClass", "Sets the initial MoificationState of the wrapped object myObj. The initial state will be StateNewDirty if myObj\nis not persisten already. The state will be set to StateOldClean if the object is already persistent.", "Repeat a CharSequence a certain number of times.\n\n@param self a CharSequence to be repeated\n@param factor the number of times the CharSequence should be repeated\n@return a String composed of a repetition\n@throws IllegalArgumentException if the number of repetitions is &lt; 0\n@since 1.8.2", "Construct an InterestRateSwapLegProductDescriptor from a node in a FIPXML file.\n\n@param leg The node containing the leg.\n@param forwardCurveName Forward curve name form outside the node.\n@param discountCurveName Discount curve name form outside the node.\n@param daycountConvention Daycount convention from outside the node.\n@return Descriptor of the swap leg.", "Use this API to unset the properties of nsrpcnode resource.\nProperties that need to be unset are specified in args array." ]
public int readInt(int offset, byte[] data) { int result = 0; int i = offset + m_offset; for (int shiftBy = 0; shiftBy < 32; shiftBy += 8) { result |= ((data[i] & 0xff)) << shiftBy; ++i; } return result; }
[ "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value" ]
[ "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator", "Locate the no arg constructor for the class.", "Build a valid datastore URL.", "This method returns the length of overlapping time between two time\nranges.\n\n@param start1 start of first range\n@param end1 end of first range\n@param start2 start start of second range\n@param end2 end of second range\n@return overlapping time in milliseconds", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "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", "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context", "Return all option names that not already have a value\nand is enabled", "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." ]
String getStatus(CmsUser user, boolean disabled, boolean newUser) { if (disabled) { return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_USER_DISABLED_0); } if (newUser) { return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_USER_INACTIVE_0); } if (OpenCms.getLoginManager().isUserTempDisabled(user.getName())) { return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_UNLOCK_USER_STATUS_0); } if (isUserPasswordReset(user)) { return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_USER_PASSWORT_RESET_0); } return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_USER_ACTIVE_0); }
[ "Returns status message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String" ]
[ "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", "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception", "For creating regular columns\n@return", "Returns a flag indicating if also expired resources should be found.\n@return A flag indicating if also expired resources should be found.", "That is, of size 6, which become 8, since HashMaps are powers of 2. Still, it's half the size", "Writes assignment baseline data.\n\n@param xml MSPDI assignment\n@param mpxj MPXJ assignment", "Use this API to update nsrpcnode.", "Gets the host-ignore data for a slave host running the given version.\n\n@param major the kernel management API major version\n@param minor the kernel management API minor version\n@param micro the kernel management API micro version\n\n@return the host-ignore data, or {@code null} if there is no matching registration", "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" ]
protected void appendHavingClause(StringBuffer having, Criteria crit, StringBuffer stmt) { if (having.length() == 0) { having = null; } if (having != null || crit != null) { stmt.append(" HAVING "); appendClause(having, crit, stmt); } }
[ "appends a HAVING-clause to the Statement\n@param having\n@param crit\n@param stmt" ]
[ "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "Clear history for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client", "Use this API to fetch all the nsrpcnode resources that are configured on netscaler.", "Returns the count of all inbox messages for the user\n@return int - count of all inbox messages", "Creates a XopBean. The image on the disk is included as a byte array,\na DataHandler and java.awt.Image\n@return the bean\n@throws Exception", "Sets the value of a UDF.\n\n@param udf user defined field\n@param dataType MPXJ data type\n@param value field value", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity", "Handle a start time change.\n\n@param event the change event", "Updates a metadata classification on the specified file.\n\n@param classificationType the metadata classification type.\n@return the new metadata classification type updated on the file." ]
private Object getParameter(String name, String value) throws ParseException, NumberFormatException { Object result = null; if (name.length() > 0) { switch (name.charAt(0)) { case 'i': if (null == value || value.length() == 0) { value = "0"; } result = new Integer(value); break; case 'f': if (name.startsWith("form")) { result = value; } else { if (null == value || value.length() == 0) { value = "0.0"; } result = new Double(value); } break; case 'd': if (null == value || value.length() == 0) { result = null; } else { SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-MM-dd"); result = dateParser.parse(value); } break; case 't': if (null == value || value.length() == 0) { result = null; } else { SimpleDateFormat timeParser = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); result = timeParser.parse(value); } break; case 'b': result = "true".equalsIgnoreCase(value) ? Boolean.TRUE : Boolean.FALSE; break; default: result = value; } if (log.isDebugEnabled()) { if (result != null) { log.debug( "parameter " + name + " value " + result + " class " + result.getClass().getName()); } else { log.debug("parameter" + name + "is null"); } } } return result; }
[ "Convert a query parameter to the correct object type based on the first letter of the name.\n\n@param name parameter name\n@param value parameter value\n@return parameter object as\n@throws ParseException value could not be parsed\n@throws NumberFormatException value could not be parsed" ]
[ "Delivers the correct JSON Object for outgoings\n\n@param outgoings\n@throws org.json.JSONException", "Throw IllegalArgumentException if the value is null.\n\n@param name the parameter name.\n@param value the value that should not be null.\n@param <T> the value type.\n@throws IllegalArgumentException if value is null.", "Internal function that uses recursion to create the list", "Starts or stops capturing.\n\n@param capture If true, capturing is started. If false, it is stopped.\n@param fps Capturing FPS (frames per second).", "Enables support for large-payload messages.\n\n@param s3\nAmazon S3 client which is going to be used for storing\nlarge-payload messages.\n@param s3BucketName\nName of the bucket which is going to be used for storing\nlarge-payload messages. The bucket must be already created and\nconfigured in s3.", "Return the available format ids.", "Resets the resend counter and possibly resets the\nnode stage to DONE when previous initialization was\ncomplete.", "Creates the DAO if we have config information cached and caches the DAO.", "Declares additional internal data structures." ]
private void readHours(ProjectCalendar calendar, Day day, Integer hours) { int value = hours.intValue(); int startHour = 0; ProjectCalendarHours calendarHours = null; Calendar cal = DateHelper.popCalendar(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); calendar.setWorkingDay(day, false); while (value != 0) { // Move forward until we find a working hour while (startHour < 24 && (value & 0x1) == 0) { value = value >> 1; ++startHour; } // No more working hours, bail out if (startHour >= 24) { break; } // Move forward until we find the end of the working hours int endHour = startHour; while (endHour < 24 && (value & 0x1) != 0) { value = value >> 1; ++endHour; } cal.set(Calendar.HOUR_OF_DAY, startHour); Date startDate = cal.getTime(); cal.set(Calendar.HOUR_OF_DAY, endHour); Date endDate = cal.getTime(); if (calendarHours == null) { calendarHours = calendar.addCalendarHours(day); calendar.setWorkingDay(day, true); } calendarHours.addRange(new DateRange(startDate, endDate)); startHour = endHour; } DateHelper.pushCalendar(cal); }
[ "Reads the integer representation of calendar hours for a given\nday and populates the calendar.\n\n@param calendar parent calendar\n@param day target day\n@param hours working hours" ]
[ "If the resource has ordered child types, those child types will be stored in the attachment. If there are no\nordered child types, this method is a no-op.\n\n@param resourceAddress the address of the resource\n@param resource the resource which may or may not have ordered children.", "Resets the state of the scope.\nUseful for automation testing when we want to reset the scope used to install test modules.", "Start the drag of the pivot object.\n\n@param dragMe Scene object with a rigid body.\n@param relX rel position in x-axis.\n@param relY rel position in y-axis.\n@param relZ rel position in z-axis.\n\n@return Pivot instance if success, otherwise returns null.", "Writes a DTD that can be used for data XML files matching the current model to the given writer.\n\n@param output The writer to write the DTD to", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add.", "Load a cubemap texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource.TextureCallback, GVRAndroidResource, int)}\n- it will usually be more convenient (and more efficient) to call that\ndirectly.\n\n@param context\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param callback\nAsynchronous notifications\n@param resource\nBasically, a stream containing a compressed texture. Taking a\n{@link GVRAndroidResource} parameter eliminates six overloads.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}", "get the property source method corresponding to given destination\nproperty\n\n@param sourceObject\n@param destinationObject\n@param destinationProperty\n@return", "Binds a script bundle to scene graph rooted at a scene object.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param rootSceneObject\nThe root of the scene object tree to which the scripts are bound.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "Gathers information, that couldn't be collected while tree traversal." ]
private void writeAssignmentTimephasedData(ResourceAssignment mpx, Project.Assignments.Assignment xml) { if (m_writeTimphasedData && mpx.getHasTimephasedData()) { List<TimephasedDataType> list = xml.getTimephasedData(); ProjectCalendar calendar = mpx.getCalendar(); BigInteger assignmentID = xml.getUID(); List<TimephasedWork> complete = mpx.getTimephasedActualWork(); List<TimephasedWork> planned = mpx.getTimephasedWork(); if (m_splitTimephasedAsDays) { TimephasedWork lastComplete = null; if (complete != null && !complete.isEmpty()) { lastComplete = complete.get(complete.size() - 1); } TimephasedWork firstPlanned = null; if (planned != null && !planned.isEmpty()) { firstPlanned = planned.get(0); } if (planned != null) { planned = splitDays(calendar, mpx.getTimephasedWork(), null, lastComplete); } if (complete != null) { complete = splitDays(calendar, complete, firstPlanned, null); } } if (planned != null) { writeAssignmentTimephasedData(assignmentID, list, planned, 1); } if (complete != null) { writeAssignmentTimephasedData(assignmentID, list, complete, 2); } } }
[ "Writes the timephased data for a resource assignment.\n\n@param mpx MPXJ assignment\n@param xml MSDPI assignment" ]
[ "Determines the component type for a given array type.\n\n@param type the given array type\n@return the component type of a given array type", "Method used to write the name of the scenarios methods\n\n@param word\n@return the same word starting with lower case", "Returns the approximate size of slop to help in throttling\n\n@param slopVersioned The versioned slop whose size we want\n@return Size in bytes", "See if a range for assignment is specified. If so return the range, otherwise return null\n\nExample of assign range:\na(0:3,4:5) = blah\na((0+2):3,4:5) = blah", "Factory method that builds the appropriate matcher for @match tags", "This method writes predecessor data to a Planner file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param mpxjTask MPXJ task instance\n@param plannerTask planner task instance", "gets the profile_name associated with a specific id", "Use this API to fetch servicegroupbindings resource of given name .", "Write the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar instance\n@param mpxjCalendar MPXJ calendar instance" ]
public Launcher addEnvironmentVariable(final String key, final String value) { env.put(key, value); return this; }
[ "Adds an environment variable to the process being created.\n\n@param key they key for the variable\n@param value the value for the variable\n\n@return the launcher" ]
[ "Reads the categories for the given resource.\n\n@param cms the {@link CmsObject} used for reading the categories.\n@param resource the resource for which the categories should be read.\n@return the categories assigned to the given resource.", "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.", "Call with pathEntries lock taken", "Send an empty request using a standard HTTP connection.", "Update the project properties from the project summary task.\n\n@param task project summary task", "Returns s if it's at most maxWidth chars, otherwise chops right side to fit.", "Use this API to update autoscaleaction.", "get the TypeArgSignature corresponding to given type\n\n@param type\n@return", "Reads each token from a single record and adds it to a list.\n\n@param tk tokenizer\n@param record list of tokens\n@throws IOException" ]
public static void main(String[] args) { try { new StartMain(args).go(); } catch(Throwable t) { WeldSELogger.LOG.error("Application exited with an exception", t); System.exit(1); } }
[ "The main method called from the command line.\n\n@param args the command line arguments" ]
[ "Answer true if an Iterator for a Table is already available\n@param aTable\n@return", "Read a duration.\n\n@param units duration units\n@param duration duration value\n@return Duration instance", "Reads data from a single page of the database file.\n\n@param buffer page from the database file\n@param table Table instance", "Returns details of a previously-requested Organization export.\n\n@param organizationExport Globally unique identifier for the Organization export.\n@return Request object", "Add the elements that all values objects require from the provided values object.\n\n@param sourceValues the values object containing the required elements", "This method writes predecessor data to an MSPDI file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param xml MSPDI task data\n@param mpx MPX task data", "Searches for descriptions of integer sequences and array ranges that have a colon character in them\n\nExamples of integer sequences:\n1:6\n2:4:20\n:\n\nExamples of array range\n2:\n2:4:", "Adds an array of groupby fieldNames for ReportQueries.\n@param fieldNames The groupby to set\n@deprecated use QueryByCriteria#addGroupBy", "Make superclasses method protected??" ]
public GetAssignmentGroupOptions includes(List<Include> includes) { List<Include> assignmentDependents = Arrays.asList(Include.DISCUSSION_TOPIC, Include.ASSIGNMENT_VISIBILITY, Include.SUBMISSION); if(includes.stream().anyMatch(assignmentDependents::contains) && !includes.contains(Include.ASSIGNMENTS)) { throw new IllegalArgumentException("Including discussion topics, all dates, assignment visibility or submissions is only valid if you also include submissions"); } addEnumList("include[]", includes); return this; }
[ "Additional objects to include with the requested group.\nNote that all the optional includes depend on \"assignments\" also being included.\n@param includes List of included objects to return\n@return this object to continue building options" ]
[ "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", "Harvest any values that may have been returned during the execution\nof a procedure.\n\n@param proc the procedure descriptor that provides info about the procedure\nthat was invoked.\n@param obj the object that was persisted\n@param stmt the statement that was used to persist the object.\n\n@throws PersistenceBrokerSQLException if a problem occurs.", "Validate the JtsLayer.\n\n@param name mvt layer name\n@param geometries geometries in the tile\n@throws IllegalArgumentException when {@code name} or {@code geometries} are null", "Convert an array of bytes into an array of ints. 4 bytes from the\ninput data map to a single int in the output data.\n@param bytes The data to read from.\n@return An array of 32-bit integers constructed from the data.\n@since 1.1", "Gets an exception reporting an unexpected XML attribute.\n\n@param reader a reference to the stream reader.\n@param index the attribute index.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Utility function to validate if the given store name exists in the store\nname list managed by MetadataStore. This is used by the Admin service for\nvalidation before serving a get-metadata request.\n\n@param name Name of the store to validate\n@return True if the store name exists in the 'storeNames' list. False\notherwise.", "Use this API to update clusternodegroup.", "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "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." ]
protected List<File> getRecursiveThriftFiles(MavenProject project, String outputDirectory) throws IOException { return getRecursiveThriftFiles(project, outputDirectory, new ArrayList<File>()); }
[ "Walk project references recursively, building up a list of thrift files they provide, starting\nwith an empty file list." ]
[ "Factory method that builds the appropriate matcher for @match tags", "Requests the waveform detail for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform detail is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Add \"GROUP BY\" clause to the SQL query statement. This can be called multiple times to add additional \"GROUP BY\"\nclauses.\n\n<p>\nNOTE: Use of this means that the resulting objects may not have a valid ID column value so cannot be deleted or\nupdated.\n</p>", "Sets up internal data structures and creates a copy of the input matrix.\n\n@param A The input matrix. Not modified.", "Creates a region from a name and a label.\n\n@param name the uniquely identifiable name of the region\n@param label the label of the region\n@return the newly created region", "Scan a network interface to find if it has an address space which matches the device we are trying to reach.\nIf so, return the address specification.\n\n@param aDevice the DJ Link device we are trying to communicate with\n@param networkInterface the network interface we are testing\n@return the address which can be used to communicate with the device on the interface, or null", "selects either a synchronous or an asynchronous producer, for the\nspecified broker id and calls the send API on the selected producer\nto publish the data to the specified broker partition\n\n@param ppd the producer pool request object", "Reads a \"flags\" argument from the request.", "Set the style for the widgets in the panel according to the chosen style option.\n@param widget the widget that should be styled.\n@return the styled widget." ]
private List<Event> filterEvents(List<Event> events) { List<Event> filteredEvents = new ArrayList<Event>(); for (Event event : events) { if (!filter(event)) { filteredEvents.add(event); } } return filteredEvents; }
[ "Filter events.\n\n@param events the events\n@return the list of filtered events" ]
[ "Ensures that a String argument is a number.\n\n@param condition\ncondition must be {@code true}^ so that the check will be performed\n@param value\nvalue which must be a number\n@throws IllegalNumberArgumentException\nif the given argument {@code value} is not a number", "Handles reports by consumers\n\n@param name the name of the reporting consumer\n@param report the number of lines the consumer has written since last report\n@return \"exit\" if maxScenarios has been reached, \"ok\" otherwise", "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId", "Match the Origin header with the allowed origins.\nIf it doesn't match then a 403 response code is set on the response and it returns null.\n@param exchange the current HttpExchange.\n@param allowedOrigins list of sanitized allowed origins.\n@return the first matching origin, null otherwise.\n@throws Exception", "Starts a background thread which calls the controller every\ncheck_interval milliseconds. Returns immediately, leaving the\nbackground thread running.", "get the getter method corresponding to given property", "Add a console pipeline to the Redwood handler tree,\nprinting to stderr.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this", "Encodes the given URI fragment with the given encoding.\n@param fragment the fragment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded fragment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "calls _initMH on the method handler and then stores the result in the\nmethodHandler field as then new methodHandler" ]
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" ]
[ "A property tied to the map, updated when the idle state event is fired.\n\n@return", "Add a task to the project.\n\n@return new task instance", "Check if new license pattern is valid and doesn't match any existing one\n@param newComer License being added or edited\n@throws WebApplicationException if conflicts involving the newComer are detected", "Compares two columns given by their names.\n\n@param objA The name of the first column\n@param objB The name of the second column\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "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", "Promote a module in the Grapes server\n\n@param name\n@param version\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Use this API to fetch sslcipher resources of given names .", "Cleans a multi-value property key.\n\n@param name Name of the property key\n@return The {@link ValidationResult} object containing the key,\nand the error code(if any)\n<p/>\nFirst calls cleanObjectKey\nKnown property keys are reserved for multi-value properties, subsequent validation is done for those", "Controls whether we are currently staying in sync with the tempo master. Will only be meaningful if we are\nsending status packets.\n\n@param sync if {@code true}, our status packets will be tempo and beat aligned with the tempo master" ]
private boolean compareBytes(byte[] lhs, byte[] rhs, int rhsOffset) { boolean result = true; for (int loop = 0; loop < lhs.length; loop++) { if (lhs[loop] != rhs[rhsOffset + loop]) { result = false; break; } } return (result); }
[ "Compare an array of bytes with a subsection of a larger array of bytes.\n\n@param lhs small array of bytes\n@param rhs large array of bytes\n@param rhsOffset offset into larger array of bytes\n@return true if a match is found" ]
[ "key function. first validate if the ACM has adequate data; then execute\nit after the validation. the new ParallelTask task guareetee to have the\ntargethost meta and command meta not null\n\n@param handler\nthe handler\n@return the parallel task", "Access an attribute, hereby using the class name as key.\n\n@param type the type, not {@code null}\n@return the type attribute value, or {@code null}.", "Find out which field in the incoming message contains the payload that is.\ndelivered to the service method.", "Extract note text.\n\n@param row task data\n@return note text", "apply the base fields to other views if configured to do so.", "Revisit message to set their item ref to a item definition\n@param def Definitions", "remove the user profile with id from the db.", "Gets an app client by its client app id if it has been initialized; throws if none can be\nfound.\n\n@param clientAppId the client app id of the app client to get.\n@return the app client associated with the client app id.", "Specify the string and the int identifying which word shaper to\nuse and this returns the result of using that wordshaper on the String.\n\n@param inStr String to calculate word shape of\n@param wordShaper Constant for which shaping formula to use\n@param knownLCWords A Collection of known lowercase words, which some shapers use\nto decide the class of capitalized words.\n<i>Note: while this code works with any Collection, you should\nprovide a Set for decent performance.</i> If this parameter is\nnull or empty, then this option is not used (capitalized words\nare treated the same, regardless of whether the lowercased\nversion of the String has been seen).\n@return The wordshape String" ]
public static ModelControllerClient createReceiving(final Channel channel, final ExecutorService executorService) { final ManagementClientChannelStrategy strategy = ManagementClientChannelStrategy.create(channel); final ManagementChannelHandler handler = new ManagementChannelHandler(strategy, executorService); final ExistingChannelModelControllerClient client = new ExistingChannelModelControllerClient(handler); handler.addHandlerFactory(client); channel.addCloseHandler(new CloseHandler<Channel>() { @Override public void handleClose(Channel closed, IOException exception) { handler.shutdown(); try { handler.awaitCompletion(1, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } finally { handler.shutdownNow(); } } }); channel.receiveMessage(handler.getReceiver()); return client; }
[ "Create a model controller client which is exclusively receiving messages on an existing channel.\n\n@param channel the channel\n@param executorService an executor\n@return the created client" ]
[ "Hides the Loader component", "Prints a balance analysis to a file.\n\n@param outputDirName\n@param baseFileName suffix '.analysis' is appended to baseFileName.\n@param partitionBalance", "Given a BSON document, remove any forbidden fields and return the document. If no changes are\nmade, the original document reference is returned. If changes are made, a cloned copy of the\ndocument with the changes will be returned.\n\n@param document the document from which to remove forbidden fields\n\n@return a BsonDocument without any forbidden fields.", "Expensive. Creates the plan for the specific settings.", "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", "Provide Jersey client for the targeted Grapes server\n\n@return webResource", "Use this API to add sslcertkey resources.", "Sets the specified date attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Collapse repeated records, using exact string match on the record.\nThis is generally useful for making very verbose logs more readable.\n@return this" ]
public String generateSignature(HashMap<String, Integer> defined, GVRLight[] lightlist) { return getClass().getSimpleName(); }
[ "Create a unique signature for this shader.\nThe signature for simple shaders is just the class name.\nFor the more complex shaders generated by GVRShaderTemplate\nthe signature includes information about the vertex attributes,\nuniforms, textures and lights used by the shader variant.\n\n@param defined\nnames to be defined for this shader\n@return string signature for shader\n@see GVRShaderTemplate" ]
[ "Clear the selection of all items.\n@param requestLayout request layout after clear selection if the flag is true, no layout\nrequested otherwise\n@return {@code true} if at least one item was deselected,\n{@code false} otherwise.", "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode", "Transforms a list of Integer objects to an array of primitive int values.\n\n@param integers\n@return", "Start a server.\n\n@return the http server\n@throws Exception the exception", "Add an object into cache by key with expiration time specified\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached\n@param expiration\nthe seconds after which the object will be evicted from the cache", "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set", "Size of a queue.\n\n@param jedis\n@param queueName\n@return", "Replace default values will null, allowing them to be ignored.\n\n@param value value to test\n@return filtered value", "Shows the Loader component" ]
protected boolean isFirstVisit(Object expression) { if (visited.contains(expression)) { return false; } visited.add(expression); return true; }
[ "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited" ]
[ "Update counters and call hooks.\n@param handle connection handle.", "Gets container with alls groups of a certain user.\n\n@param cms cmsobject\n@param user to find groups for\n@param caption caption property\n@param iconProp property\n@param ou ou\n@param propStatus status property\n@param iconProvider the icon provider\n@return Indexed Container", "Parses formatter attributes.\n\n@param formatterLoc the node location\n@return the map of formatter attributes (unmodifiable)", "Use this API to add cmppolicylabel resources.", "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.", "Load a list of entities using the information in the context\n\n@param session The session\n@param lockOptions The locking details\n@param ogmContext The context with the information to load the entities\n@return the list of entities corresponding to the given context", "Implement the persistence handler for storing the group properties.", "Adds a tag to the resource.\n@param key the key for the tag\n@param value the value for the tag\n@return the next stage of the definition/update", "Scale the mesh at x, y and z axis.\n\n@param mesh Mesh to be scaled.\n@param x Scale to be applied on x-axis.\n@param y Scale to be applied on y-axis.\n@param z Scale to be applied on z-axis." ]
public static <X, Y> Pair<X, Y> makePair(X x, Y y) { return new Pair<X, Y>(x, y); }
[ "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names." ]
[ "Returns true if the information in this link should take\nprecedence over the information in the other link.", "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "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", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "Sets all elements in this matrix to their absolute values. Note\nthat this operation is in-place.\n@see MatrixFunctions#abs(DoubleMatrix)\n@return this matrix", "Use this API to add sslocspresponder resources.", "Sets the position vector of the keyframe.", "Provisions a new app user in an enterprise using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@return the created user's info.", "Retrieve from the parent pom the path to the modules of the project" ]
public AsciiTable setPaddingLeftChar(Character paddingLeftChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeftChar(paddingLeftChar); } } return this; }
[ "Sets the left padding character for all cells in the table.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining" ]
[ "Links the given widget to InstantSearch according to the interfaces it implements.\n\n@param widget a widget implementing ({@link AlgoliaResultsListener} || {@link AlgoliaErrorListener} || {@link AlgoliaSearcherListener}).", "Utility to list indexes of a given type.\n\n@param type the type of index to list, null means all types\n@param modelType the class to deserialize the index into\n@param <T> the type of the index\n@return the list of indexes of the specified type", "Shutdown task scheduler.", "Open the given url in default system browser.", "Manual check because introducing a capability can't be done without a full refactoring.\nThis has to go as soon as the management interfaces are redesigned.\n@param context the OperationContext\n@param otherManagementEndpoint : the address to check that may provide an exposed jboss-remoting endpoint.\n@throws OperationFailedException in case we can't remove the management resource.", "Build list of style filters from style definitions.\n\n@param styleDefinitions\nlist of style definitions\n@return list of style filters\n@throws GeomajasException", "Decides and returns the preferred deployment credentials to use from this builder settings and selected server\n\n@param deployerOverrider Deploy-overriding capable builder\n@param server Selected Artifactory server\n@return Preferred deployment credentials", "Read an int from an input stream.\n\n@param is input stream\n@return int value", "Creates a new Logger instance for the specified name." ]
public final int deleteOld(final long checkTimeThreshold) { final CriteriaBuilder builder = getSession().getCriteriaBuilder(); final CriteriaDelete<PrintJobStatusExtImpl> delete = builder.createCriteriaDelete(PrintJobStatusExtImpl.class); final Root<PrintJobStatusExtImpl> root = delete.from(PrintJobStatusExtImpl.class); delete.where(builder.and(builder.isNotNull(root.get("lastCheckTime")), builder.lessThan(root.get("lastCheckTime"), checkTimeThreshold))); return getSession().createQuery(delete).executeUpdate(); }
[ "Delete old jobs.\n\n@param checkTimeThreshold threshold for last check time\n@return the number of jobs deleted" ]
[ "Retrieve a calendar exception which applies to this date.\n\n@param date target date\n@return calendar exception, or null if none match this date", "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception", "Create a JavadocComment, by formatting the text of the Javadoc using the given indentation.", "Use this API to fetch hanode_routemonitor_binding resources of given name .", "Returns a new List containing the given objects.", "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.", "Creates the DAO if we have config information cached and caches the DAO.", "Unmark 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 unmark", "Checks if the specified max levels is correct.\n\n@param userMaxLevels the maximum number of levels in the tree\n@param defaultMaxLevels the default max number of levels\n@return the validated max levels" ]
private void waitForOutstandingRequest() throws IOException { if (outstandingRequest == null) { return; } try { RetryHelper.runWithRetries(new Callable<Void>() { @Override public Void call() throws IOException, InterruptedException { if (RetryHelper.getContext().getAttemptNumber() > 1) { outstandingRequest.retry(); } token = outstandingRequest.waitForNextToken(); outstandingRequest = null; return null; } }, retryParams, GcsServiceImpl.exceptionHandler); } catch (RetryInterruptedException ex) { token = null; throw new ClosedByInterruptException(); } catch (NonRetriableException e) { Throwables.propagateIfInstanceOf(e.getCause(), IOException.class); throw e; } }
[ "Waits for the current outstanding request retrying it with exponential backoff if it fails.\n\n@throws ClosedByInterruptException if request was interrupted\n@throws IOException In the event of FileNotFoundException, MalformedURLException\n@throws RetriesExhaustedException if exceeding the number of retries" ]
[ "This method inserts a name value pair into internal storage.\n\n@param field task field\n@param value attribute value", "Send ourselves \"updates\" about any tracks that were loaded before we started, or before we were requesting\ndetails, since we missed them.", "Access an attribute, hereby using the class name as key.\n\n@param type the type, not {@code null}\n@return the type attribute value, or {@code null}.", "Receives a PropertyColumn and returns a JRDesignField", "Returns the URL to the property file that contains CRS definitions.\n\n@return The URL to the epsg file containing custom EPSG codes", "Get the waveform previews available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the previews associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the WaveformFinder is not running", "Renders a time period in human readable form\n\n@param time the time in milliseconds\n@return the time in human readable form", "Copy a patch element\n\n@param entry the patch entry\n@param patchId the patch id for the element\n@param modifications the element modifications\n@return the new patch element", "Queries a Search Index and returns ungrouped results. In case the query\nused grouping, an empty list is returned\n\n@param <T> Object type T\n@param query the Lucene query to be passed to the Search index\n@param classOfT The class of type T\n@return The result of the search query as a {@code List<T> }" ]
public static appfwpolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{ appfwpolicylabel_policybinding_binding obj = new appfwpolicylabel_policybinding_binding(); obj.set_labelname(labelname); appfwpolicylabel_policybinding_binding response[] = (appfwpolicylabel_policybinding_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch appfwpolicylabel_policybinding_binding resources of given name ." ]
[ "Helper method for formatting connection termination messages.\n\n@param connectionName\nThe name of the connection\n@param host\nThe remote host\n@param connectionReason\nThe reason for establishing the connection\n@param terminationReason\nThe reason for terminating the connection\n@return A formatted message in the format:\n\"[&lt;connectionName&gt;] remote host[&lt;host&gt;] &lt;connectionReason&gt; - &lt;terminationReason&gt;\"\n<br/>\ne.g. [con1] remote host[123.123.123.123] connection to ECMG -\nterminated by remote host.", "Returns list of files matches specified regex in specified directories\n\n@param regex to match file names\n@param directories to find\n@return list of files matches specified regex in specified directories", "Generic version of getting value by key from the JobContext of current thread\n@param key the key\n@param clz the val class\n@param <T> the val type\n@return the value", "Retrieves the Material Shader ID associated with the\ngiven shader template class.\n\nA shader template is capable of generating multiple variants\nfrom a single shader source. The exact vertex and fragment\nshaders are generated by GearVRF based on the lights\nbeing used and the material attributes. you may subclass\nGVRShaderTemplate to create your own shader templates.\n\n@param shaderClass shader class to find (subclass of GVRShader)\n@return GVRShaderId associated with that shader template\n@see GVRShaderTemplate GVRShader", "Use this API to fetch aaauser_intranetip_binding resources of given name .", "Use this API to fetch the statistics of all dos_stats resources that are configured on netscaler.", "Return the discount factor within a given model context for a given maturity.\n@param model The model used as a context (not required for this class).\n@param maturity The maturity in terms of ACT/365 daycount form this curve reference date. Note that this parameter might get rescaled to a different time parameter.\n@see net.finmath.marketdata.model.curves.DiscountCurveInterface#getDiscountFactor(net.finmath.marketdata.model.AnalyticModelInterface, double)", "Adds a new task to this file. The task can have an optional message to include, and a due date.\n\n@param action the action the task assignee will be prompted to do.\n@param message an optional message to include with the task.\n@param dueAt the day at which this task is due.\n@return information about the newly added task.", "Get the list of store names from a list of store definitions\n\n@param list\n@param ignoreViews\n@return list of store names" ]
public static ProducerRequest readFrom(ByteBuffer buffer) { String topic = Utils.readShortString(buffer); int partition = buffer.getInt(); int messageSetSize = buffer.getInt(); ByteBuffer messageSetBuffer = buffer.slice(); messageSetBuffer.limit(messageSetSize); buffer.position(buffer.position() + messageSetSize); return new ProducerRequest(topic, partition, new ByteBufferMessageSet(messageSetBuffer)); }
[ "read a producer request from buffer\n\n@param buffer data buffer\n@return parsed producer request" ]
[ "Checks whether this notification is from CleverTap.\n\n@param extras The payload from the GCM intent\n@return See {@link NotificationInfo}", "Add a given factory to the list of factories at the BEGINNING.\n\n@param factory The factory to be added.\n@return Cascade with amended factory list.", "Stores a public key mapping.\n@param original\n@param substitute", "Invite a user to an enterprise.\n@param api the API connection to use for the request.\n@param userLogin the login of the user to invite.\n@param enterpriseID the ID of the enterprise to invite the user to.\n@return the invite info.", "The sniffing Loggers are some special Loggers, whose level will be set to TRACE forcedly.\n@param logger", "Use this API to update nsrpcnode resources.", "Get a property as an long or throw an exception.\n\n@param key the property name", "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream", "Reads the next chunk for the intermediate work buffer." ]
@RequestMapping(value = "/api/scripts", method = RequestMethod.POST) public @ResponseBody Script addScript(Model model, @RequestParam(required = true) String name, @RequestParam(required = true) String script) throws Exception { return ScriptService.getInstance().addScript(name, script); }
[ "Add a new script\n\n@param model\n@param name\n@param script\n@return\n@throws Exception" ]
[ "Tries to guess the packaging of the archive - whether it's an EAR, WAR, JAR.\nMaybe not needed as we can rely on the suffix?", "Create a directory at the given path if it does not exist yet.\n\n@param path\nthe path to the directory\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Clear all overrides, reset repeat counts for a response path\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@throws Exception exception", "Set the degrees of rotation. Value will be set to -1, if not available.\n\n@param rotation", "Filter for public tweets on these languages.\n\n@param languages\nValid BCP 47 (http://tools.ietf.org/html/bcp47) language identifiers,\nand may represent any of the languages listed on Twitter's advanced search page\n(https://twitter.com/search-advanced), or \"und\" if no language could be detected.\nThese strings should NOT be url-encoded.\n@return this", "Answer the counted size\n\n@return int", "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.", "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", "Upcasts a Builder instance to the generated superclass, to allow access to private fields.\n\n<p>Reuses an existing upcast instance if one was already declared in this scope.\n\n@param code the {@link SourceBuilder} to add the declaration to\n@param datatype metadata about the user type the builder is being generated for\n@param builder the Builder instance to upcast\n@returns a variable holding the upcasted instance" ]
private static MBeanServer setQueryExpServer(QueryExp query, MBeanServer toSet) { // We assume the QueryExp is a QueryEval subclass or uses the QueryEval thread local // mechanism to store any existing MBeanServer. If that's not the case we have no // way to access the old mbeanserver to let us restore it MBeanServer result = QueryEval.getMBeanServer(); query.setMBeanServer(toSet); return result; }
[ "Set the mbean server on the QueryExp and try and pass back any previously set one" ]
[ "Returns the deployment names with the specified runtime names at the specified deploymentRootAddress.\n\n@param deploymentRootResource\n@param runtimeNames\n@return the deployment names with the specified runtime names at the specified deploymentRootAddress.", "Ends the transition", "Searches the model for all variable assignments and makes a default map of those variables, setting them to \"\"\n\n@return the default variable assignment map", "Read the table headers. This allows us to break the file into chunks\nrepresenting the individual tables.\n\n@param is input stream\n@return list of tables in the file", "This is private. It is a helper function for the utils.", "Detects if the current browser is a BlackBerry device AND\nhas a more capable recent browser. Excludes the Playbook.\nExamples, Storm, Bold, Tour, Curve2\nExcludes the new BlackBerry OS 6 and 7 browser!!\n@return detection of a Blackberry device with a better browser", "Prepare a parallel PING Task.\n\n@return the parallel task builder", "Updates the styling and content of the internal text area based on the real value, the ghost value, and whether\nit has focus.", "Flush the in-memory data to the file" ]
@SuppressWarnings("unchecked") public HttpMethodInfo handle(HttpRequest request, HttpResponder responder, Map<String, String> groupValues) throws Exception { //TODO: Refactor group values. try { if (httpMethods.contains(request.method())) { //Setup args for reflection call Object [] args = new Object[paramsInfo.size()]; int idx = 0; for (Map<Class<? extends Annotation>, ParameterInfo<?>> info : paramsInfo) { if (info.containsKey(PathParam.class)) { args[idx] = getPathParamValue(info, groupValues); } if (info.containsKey(QueryParam.class)) { args[idx] = getQueryParamValue(info, request.uri()); } if (info.containsKey(HeaderParam.class)) { args[idx] = getHeaderParamValue(info, request); } idx++; } return new HttpMethodInfo(method, handler, responder, args, exceptionHandler); } else { //Found a matching resource but could not find the right HttpMethod so return 405 throw new HandlerException(HttpResponseStatus.METHOD_NOT_ALLOWED, String.format ("Problem accessing: %s. Reason: Method Not Allowed", request.uri())); } } catch (Throwable e) { throw new HandlerException(HttpResponseStatus.INTERNAL_SERVER_ERROR, String.format("Error in executing request: %s %s", request.method(), request.uri()), e); } }
[ "Handle http Request.\n\n@param request HttpRequest to be handled.\n@param responder HttpResponder to write the response.\n@param groupValues Values needed for the invocation." ]
[ "Send Request Node info 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.", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be JSON.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')", "Print the given values after displaying the provided message.", "returns array with all allowed values\n@return allowed values", "Get a scalar value for the DOM diversity using the Robust Tree Edit Distance\n\n@param dom1\n@param dom2\n@return", "Create dummy groups for each concatenated report, and in the footer of\neach group adds the subreport.", "Decide whether failure should trigger a rollback.\n\n@param cause\nthe cause of the failure, or {@code null} if failure is not\nthe result of catching a throwable\n@return the result action", "This function computes which reduce task to shuffle a record to.", "Build call for postUiAutopilotWaypoint\n\n@param addToBeginning\nWhether this solar system should be added to the beginning of\nall waypoints (required)\n@param clearOtherWaypoints\nWhether clean other waypoints beforing adding this one\n(required)\n@param destinationId\nThe destination to travel to, can be solar system, station or\nstructure&#39;s id (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param token\nAccess token to use if unable to set a header (optional)\n@param callback\nCallback for upload/download progress\n@return Call to execute\n@throws ApiException\nIf fail to serialize the request body object" ]
public static TestSuiteResult unmarshal(File testSuite) throws IOException { try (InputStream stream = new FileInputStream(testSuite)) { return unmarshal(stream); } }
[ "Unmarshal test suite from given file." ]
[ "Use this API to add responderpolicy.", "This constructs and returns the request object for the producer pool\n\n@param topic the topic to which the data should be published\n@param bidPid the broker id and partition id\n@param data the data to be published\n@return producer data of builder", "Get the last date to keep logs from, by a given current date.\n@param currentDate the date of today\n@return the last date to keep log files from.", "Performs a request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return a {@link Response} to the request.", "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", "Validate JUnit4 presence in a concrete version.", "Determine the target type for the generic return type of the given method,\nwhere formal type variables are declared on the given class.\n@param method the method to introspect\n@param clazz the class to resolve type variables against\n@return the corresponding generic parameter or return type\n@see #resolveReturnTypeForGenericMethod", "Creates an SslHandler\n\n@param bufferAllocator the buffer allocator\n@return instance of {@code SslHandler}", "Handles the change of a value in the current translation.\n@param propertyId the property id of the column where the value has changed." ]
public void detachMetadataCache(SlotReference slot) { MetadataCache oldCache = metadataCacheFiles.remove(slot); if (oldCache != null) { try { oldCache.close(); } catch (IOException e) { logger.error("Problem closing metadata cache", e); } deliverCacheUpdate(slot, null); } }
[ "Removes any metadata cache file that might have been assigned to a particular player media slot, so metadata\nwill be looked up from the player itself.\n\n@param slot the media slot to which a meta data cache is to be attached" ]
[ "Drops a driver from the DriverManager's list.", "Always returns the original proxy object that was serialized.\n\n@return the proxy object\n@throws java.io.ObjectStreamException", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed as Integer or null if failOnException", "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "Are these two numbers effectively equal?\n\nThe same logic is applied for each of the 3 vector dimensions: see {@link #equal}\n@param v1\n@param v2", "Obtains a local date in Ethiopic calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date", "Use this API to fetch snmpalarm resource of given name .", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it is not a valid package or class name\n\n@param s\nthe string to be checked\n@return\n`true` if `s` is a valid java package or class name" ]
private void populateContainer(FieldType field, byte[] values, byte[] descriptions) { CustomField config = m_container.getCustomField(field); CustomFieldLookupTable table = config.getLookupTable(); List<Object> descriptionList = convertType(DataType.STRING, descriptions); List<Object> valueList = convertType(field.getDataType(), values); for (int index = 0; index < descriptionList.size(); index++) { CustomFieldValueItem item = new CustomFieldValueItem(Integer.valueOf(0)); item.setDescription((String) descriptionList.get(index)); if (index < valueList.size()) { item.setValue(valueList.get(index)); } table.add(item); } }
[ "Populate the container, converting raw data into Java types.\n\n@param field custom field to which these values belong\n@param values raw value data\n@param descriptions raw description data" ]
[ "Gen error response.\n\n@param t\nthe t\n@return the response on single request", "Reads the bundle descriptor, sets m_desc and m_descContent.\n@throws CmsXmlException thrown when unmarshalling fails.\n@throws CmsException thrown when reading the resource fails or several bundle descriptors for the bundle exist.", "Internal used method which start the real store work.", "Constraint that ensures that the field has a length if the jdbc type requires it.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Read in lines and execute them.\n\n@param reader the reader from which to get the groovy source to exec\n@param out the outputstream to use\n@throws java.io.IOException if something goes wrong", "Tests if this enumeration contains more elements.\n@return <code>true</code> if and only if this enumeration object\ncontains at least one more element to provide;\n<code>false</code> otherwise.", "Use this API to add sslcertkey resources.", "Converts an object to an XML file.\n\n@param object The object to convert.\n@param fileName The filename where to save it to.\n@throws FileNotFoundException On error.", "Apply any applicable header overrides to request\n\n@param httpMethodProxyRequest\n@throws Exception" ]
private void appendJoin(StringBuffer where, StringBuffer buf, Join join) { buf.append(","); appendTableWithJoins(join.right, where, buf); if (where.length() > 0) { where.append(" AND "); } join.appendJoinEqualities(where); }
[ "Append Join for non SQL92 Syntax" ]
[ "Should be called each frame.", "Checks if is single position prefix.\n\n@param fieldInfo\nthe field info\n@param prefix\nthe prefix\n@return true, if is single position prefix\n@throws IOException\nSignals that an I/O exception has occurred.", "Use this API to fetch sslciphersuite resources of given names .", "For running queries embebed in the report design\n\n@param dr\n@param layoutManager\n@param con\n@param _parameters\n@return\n@throws JRException", "Click no children of the specified parent element.\n\n@param tagName The tag name of which no children should be clicked.\n@return The builder to append more options.", "Returns iban's country code and check digit.\n\n@param iban String\n@return countryCodeAndCheckDigit String", "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15", "Use this API to update dospolicy resources." ]
public static Field read(DataInputStream is) throws IOException { final byte tag = is.readByte(); final Field result; switch (tag) { case 0x0f: case 0x10: case 0x11: result = new NumberField(tag, is); break; case 0x14: result = new BinaryField(is); break; case 0x26: result = new StringField(is); break; default: throw new IOException("Unable to read a field with type tag " + tag); } logger.debug("..received> {}", result); return result; }
[ "Read a field from the supplied stream, starting with the tag that identifies the type, and reading enough\nto collect the corresponding value.\n\n@param is the stream on which a type tag is expected to be the next byte, followed by the field value.\n\n@return the field that was found on the stream.\n\n@throws IOException if there is a problem reading the field." ]
[ "Check if zone count policy is satisfied\n\n@return whether zone is satisfied", "Copy the contents of the given byte array to the given OutputStream.\nLeaves the stream open when done.\n@param in the byte array to copy from\n@param out the OutputStream to copy to\n@throws IOException in case of I/O errors", "Get a unique reference to the media slot on the network from which the specified data was loaded.\n\n@param dataReference the data whose media slot is of interest\n\n@return the instance that will always represent the slot associated with the specified data", "Returns an Organization that suits the Module or null if there is none\n\n@param dbModule DbModule\n@return DbOrganization", "Calculate Median value.\n@param values Values.\n@return Median.", "Copy the contents of the given byte array to the given OutputStream.\nLeaves the stream open when done.\n@param in the byte array to copy from\n@param out the OutputStream to copy to\n@throws IOException in case of I/O errors", "Create a collection object of the given collection type. If none has been given,\nOJB uses RemovalAwareList, RemovalAwareSet, or RemovalAwareCollection depending\non the field type.\n\n@param desc The collection descriptor\n@param collectionClass The collection class specified in the collection-descriptor\n@return The collection object", "Reads Phoenix resource assignments.\n\n@param mpxjResource MPXJ resource\n@param res Phoenix resource", "Sets the the time of day\n\n@param hours the hours to set. Must be guaranteed to parse as an\ninteger between 0 and 23\n\n@param minutes the minutes to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param seconds the optional seconds to set. Must be guaranteed to parse as\nan integer between 0 and 59\n\n@param amPm the meridian indicator to use. Must be either 'am' or 'pm'\n\n@param zoneString the time zone to use in one of two formats:\n- zoneinfo format (America/New_York, America/Los_Angeles, etc)\n- GMT offset (+05:00, -0500, +5, etc)" ]
public String getTexCoordAttr(String texName) { GVRTexture tex = textures.get(texName); if (tex != null) { return tex.getTexCoordAttr(); } return null; }
[ "Gets the name of the vertex attribute containing the texture\ncoordinates for the named texture.\n\n@param texName name of texture\n@return name of texture coordinate vertex attribute" ]
[ "Generate Allure report data from directories with allure report results.\n\n@param args a list of directory paths. First (args.length - 1) arguments -\nresults directories, last argument - the folder to generated data", "Use this API to fetch vpntrafficpolicy_vpnglobal_binding resources of given name .", "Finish initializing.\n\n@throws GeomajasException oops", "Post an artifact to the Grapes server\n\n@param artifact The artifact to post\n@param user The user posting the information\n@param password The user password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Calculate start dates for a daily recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Checks the given class descriptor.\n\n@param classDef The class descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "prevent too many refreshes happening one after the other.", "Returns current selenium version from JAR set in classpath.\n\n@return Version of Selenium.", "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()" ]
public Result cmd(String cliCommand) { try { // The intent here is to return a Response when this is doable. if (ctx.isWorkflowMode() || ctx.isBatchMode()) { ctx.handle(cliCommand); return new Result(cliCommand, ctx.getExitCode()); } handler.parse(ctx.getCurrentNodePath(), cliCommand, ctx); if (handler.getFormat() == OperationFormat.INSTANCE) { ModelNode request = ctx.buildRequest(cliCommand); ModelNode response = ctx.execute(request, cliCommand); return new Result(cliCommand, request, response); } else { ctx.handle(cliCommand); return new Result(cliCommand, ctx.getExitCode()); } } catch (CommandLineException cfe) { throw new IllegalArgumentException("Error handling command: " + cliCommand, cfe); } catch (IOException ioe) { throw new IllegalStateException("Unable to send command " + cliCommand + " to server.", ioe); } }
[ "Execute a CLI command. This can be any command that you might execute on\nthe CLI command line, including both server-side operations and local\ncommands such as 'cd' or 'cn'.\n\n@param cliCommand A CLI command.\n@return A result object that provides all information about the execution\nof the command." ]
[ "Method must be invoked upon completion of a rebalancing task. It is the\ntask's responsibility to do so.\n\n@param stealerId\n@param donorId", "Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data", "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\n@param namespace namespace for the document\n@param documentId the id of the document to resume syncing\n@return true if successfully resumed, false if the document\ncould not be found or there was an error resuming", "Check if the provided manifestPath is correct.\nSet the manifest and imagePath in case of the correct manifest.\n@param manifestPath\n@param candidateImagePath\n@param dependenciesClient\n@param listener\n@return true if found the correct manifest\n@throws IOException", "Removes a design document using the id and rev from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}", "Update the plane based on arcore best knowledge of the world\n\n@param scale", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "Gets the date time str standard.\n\n@param d\nthe d\n@return the date time str standard", "Sets the current class definition derived from the current class, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"accept-locks\" optional=\"true\" description=\"The accept locks setting\" values=\"true,false\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the class as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"determine-extents\" optional=\"true\" description=\"Whether to determine\npersistent direct sub types automatically\" values=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a no-argument factory method that is\nused to create instances (not yet implemented !)\"\[email protected] name=\"factory-class\" optional=\"true\" description=\"Specifies a factory class to be used for creating\nobjects of this class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a static no-argument method in the factory class\"\[email protected] name=\"generate-repository-info\" optional=\"true\" description=\"Whether repository data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"generate-table-info\" optional=\"true\" description=\"Whether table data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"include-inherited\" optional=\"true\" description=\"Whether to include\nfields/references/collections of supertypes\" values=\"true,false\"\[email protected] name=\"initialization-method\" optional=\"true\" description=\"Specifies a no-argument instance method that is\ncalled right after an instance has been read from the database\"\[email protected] name=\"isolation-level\" optional=\"true\" description=\"The isolation level setting\"\[email protected] name=\"proxy\" optional=\"true\" description=\"The proxy setting for this class\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects of\nobjects of this class to prefetch in collections\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Can be set to force OJB to refresh instances when\nloaded from the cache\" values=\"true,false\"\[email protected] name=\"row-reader\" optional=\"true\" description=\"The row reader for the class\"\[email protected] name=\"schema\" optional=\"true\" description=\"The schema for the type\"\[email protected] name=\"table\" optional=\"true\" description=\"The table for the class\"\[email protected] name=\"table-documentation\" optional=\"true\" description=\"Documentation on the table\"" ]
public double getValue(ForwardCurveInterface forwardCurve, double swaprateVolatility) { double swaprate = swaprates[0]; for (double swaprate1 : swaprates) { if (swaprate1 != swaprate) { throw new RuntimeException("Uneven swaprates not allows for analytical pricing."); } } double[] swapTenor = new double[fixingDates.length+1]; System.arraycopy(fixingDates, 0, swapTenor, 0, fixingDates.length); swapTenor[swapTenor.length-1] = paymentDates[paymentDates.length-1]; double forwardSwapRate = Swap.getForwardSwapRate(new TimeDiscretization(swapTenor), new TimeDiscretization(swapTenor), forwardCurve); double swapAnnuity = SwapAnnuity.getSwapAnnuity(new TimeDiscretization(swapTenor), forwardCurve); return AnalyticFormulas.blackModelSwaptionValue(forwardSwapRate, swaprateVolatility, exerciseDate, swaprate, swapAnnuity); }
[ "This method returns the value of the product using a Black-Scholes model for the swap rate\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve on which to value the swap.\n@param swaprateVolatility The Black volatility.\n@return Value of this product" ]
[ "get the bean property type\n\n@param clazz\n@param propertyName\n@param originalType\n@return", "Runs the given method with the specified arguments, substituting with proxies where necessary\n@param method\n@param target proxy target\n@param args\n@return Proxy-fied result for statements, actual call result otherwise\n@throws IllegalAccessException\n@throws InvocationTargetException", "Creates a REST client used to perform Voldemort operations against the\nCoordinator\n\n@param storeName Name of the store to perform the operations on\n@param resolver Custom resolver as specified by the application\n@return", "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Takes a matrix and splits it into a set of row or column vectors.\n\n@param A original matrix.\n@param column If true then column vectors will be created.\n@return Set of vectors.", "Obtain the profile name associated with a profile ID\n\n@param id ID of profile\n@return Name of corresponding profile", "Obtain collection of headers to remove\n\n@return\n@throws Exception", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister", "Enter information into the hidden input field.\n\n@param input The input to enter into the hidden field." ]
private void buildMultiJoinTree(TableAlias left, ClassDescriptor cld, String name, boolean useOuterJoin) { DescriptorRepository repository = cld.getRepository(); Class[] multiJoinedClasses = repository.getSubClassesMultipleJoinedTables(cld, false); for (int i = 0; i < multiJoinedClasses.length; i++) { ClassDescriptor subCld = repository.getDescriptorFor(multiJoinedClasses[i]); SuperReferenceDescriptor srd = subCld.getSuperReference(); if (srd != null) { FieldDescriptor[] leftFields = subCld.getPkFields(); FieldDescriptor[] rightFields = srd.getForeignKeyFieldDescriptors(subCld); TableAlias base_alias = getTableAliasForPath(name, null, null); String aliasName = String.valueOf(getAliasChar()) + m_aliasCount++; TableAlias right = new TableAlias(subCld, aliasName, false, null); Join join1to1 = new Join(left, leftFields, right, rightFields, useOuterJoin, "subClass"); base_alias.addJoin(join1to1); buildMultiJoinTree(right, subCld, name, useOuterJoin); } } }
[ "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name" ]
[ "Add a dependency to the graph\n\n@param dependency\n@param graph\n@param depth\n@param parentId", "Create a new Date. To the last day.", "Common method for creating styles.\n\n@param template the template that the map is part of\n@param styleRef the style ref identifying the style\n@param <T> the source type", "Reads a UUID from a JSON object.\n\nReturns null if the JSON value for the given key is not present or not a valid UUID\n\n@param obj the JSON object\n@param key the JSON key\n\n@return the UUID", "Create an ephemeral node with the given path and data. Create parents if necessary.\n@param zkClient client of zookeeper\n@param path node path of zookeeper\n@param data node data", "Compute the CRC32 of the segment of the byte array given by the\nspecificed size and offset\n\n@param bytes The bytes to checksum\n@param offset the offset at which to begin checksumming\n@param size the number of bytes to checksum\n@return The CRC32", "Returns the list of user defined attribute names.\n\n@return the list of user defined attribute names, if there are none it returns an empty set.", "Append Join for SQL92 Syntax", "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" ]
public static void append(File file, Object text, String charset) throws IOException { Writer writer = null; try { FileOutputStream out = new FileOutputStream(file, true); if (!file.exists()) { writeUTF16BomIfRequired(charset, out); } writer = new OutputStreamWriter(out, charset); InvokerHelper.write(writer, text); writer.flush(); Writer temp = writer; writer = null; temp.close(); } finally { closeWithWarning(writer); } }
[ "Append the text at the end of the File, using a specified encoding.\n\n@param file a File\n@param text the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0" ]
[ "Ensure that a tool object is valid for creation. The API requires certain fields to be filled out.\nThrows an IllegalArgumentException if the conditions are not met.\n@param tool The external tool object we are trying to create", "Checks if a given number is in the range of a float.\n\n@param number\na number which should be in the range of a float (positive or negative)\n\n@see java.lang.Float#MIN_VALUE\n@see java.lang.Float#MAX_VALUE\n\n@return number as a float", "Get the section list\n\nN.B. The section list contains the bottom sections\n@return the list of sections setted", "Get the object responsible for printing to the correct output format.\n\n@param specJson the request json from the client", "Gets the Hamming distance between two strings.\n\n@param first First string.\n@param second Second string.\n@return The Hamming distance between p and q.", "Set a range of the colormap to a single color.\n@param firstIndex the position of the first color\n@param lastIndex the position of the second color\n@param color the color", "Return true if the Declaration can be linked to the ImporterService.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference<ImporterService> of the ImporterService\n@return true if the Declaration can be linked to the ImporterService", "Edit which photos are in the photoset.\n\n@param photosetId\nThe photoset ID\n@param primaryPhotoId\nThe primary photo Id\n@param photoIds\nThe photo IDs for the photos in the set\n@throws FlickrException", "Wait until a range has no notifications.\n\n@return true if notifications were ever seen while waiting" ]
private void propagateFacetNames() { // collect all names and configurations Collection<String> facetNames = new ArrayList<String>(); Collection<I_CmsSearchConfigurationFacet> facetConfigs = new ArrayList<I_CmsSearchConfigurationFacet>(); facetNames.addAll(m_fieldFacets.keySet()); facetConfigs.addAll(m_fieldFacets.values()); facetNames.addAll(m_rangeFacets.keySet()); facetConfigs.addAll(m_rangeFacets.values()); if (null != m_queryFacet) { facetNames.add(m_queryFacet.getName()); facetConfigs.add(m_queryFacet); } // propagate all names for (I_CmsSearchConfigurationFacet facetConfig : facetConfigs) { facetConfig.propagateAllFacetNames(facetNames); } }
[ "Propagates the names of all facets to each single facet." ]
[ "Checks to see if all the provided matrices are the expected size for an SVD. If an error is encountered\nthen an exception is thrown. This automatically handles compact and non-compact formats", "Fires an event on an element using its identification.\n\n@param eventable The eventable.\n@return true if it is able to fire the event successfully on the element.\n@throws InterruptedException when interrupted during the wait.", "Determine how many forked JVMs to use.", "Creates a random matrix where all elements are zero but diagonal elements. Diagonal elements\nrandomly drawn from a uniform distribution from min to max, inclusive.\n\n@param numRows Number of rows in the returned matrix..\n@param numCols Number of columns in the returned matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field", "Create servlet deployment.\n\nCan be overridden with custom servlet deployment. e.g. exact resources listing in restricted env like GAE\n\n@param context the servlet context\n@param bootstrap the bootstrap\n@return new servlet deployment", "gets the first non annotation line number of a node, taking into account annotations.", "Alternate version of autoGeneratedKeys.\n@param sql\n@param autoGeneratedKeys\n@return cache key to use.", "Computes the square root of the complex number.\n\n@param input Input complex number.\n@param root Output. The square root of the input" ]
public List<ChannelInfo> getChannels(String connectionName) { final URI uri = uriWithPath("./connections/" + encodePathSegment(connectionName) + "/channels/"); return Arrays.asList(this.rt.getForObject(uri, ChannelInfo[].class)); }
[ "Retrieves state and metrics information for all channels on individual connection.\n@param connectionName the connection name to retrieve channels\n@return list of channels on the connection" ]
[ "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.", "Split input text into sentences.\n\n@param text Input text.\n@return List of Sentence objects.", "Creates the event type.\n\n@param type the EventEnumType\n@return the event type", "remove the user profile with id from the db.", "Default settings set type loader to ClasspathTypeLoader if not set before.", "Use this API to fetch autoscalepolicy_binding resource of given name .", "Calculate start dates for a monthly absolute recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Sets the path of the edited file in the corresponding display.\n@param editedFilePath path of the edited file to set.", "Sets the parent node.\n\n@param parentNode The parent of this node. May be null, if this is a root node." ]
public static vpntrafficpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{ vpntrafficpolicy_aaagroup_binding obj = new vpntrafficpolicy_aaagroup_binding(); obj.set_name(name); vpntrafficpolicy_aaagroup_binding response[] = (vpntrafficpolicy_aaagroup_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name ." ]
[ "Store the char in the internal buffer", "Returns the first number available, starting at portNumberStartingPoint that's not already in the reservedPorts\nlist.\n\n@param portNumberStartingPoint first port number to start from.\n@param reservedPorts the ports already reserved.\n@return first number available not in the given list, starting at the given parameter.", "Sets the value of the setting with the specified key.\n\n@param key name of the setting\n@param value the setting value\n@return this {@code EnvironmentConfig} instance", "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag", "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "Get a property as an long or default value.\n\n@param key the property name\n@param defaultValue the default value", "Process a graphical indicator definition for a known type.\n\n@param type field type", "Check if one Renderer is recyclable getting it from the convertView's tag and checking the\nclass used.\n\n@param convertView to get the renderer if is not null.\n@param content used to get the prototype class.\n@return true if the renderer is recyclable.", "Resets the text box by removing its content and resetting visual state." ]
public synchronized boolean undoRoleMappingRemove(final Object removalKey) { HashMap<String, RoleMappingImpl> newRoles = new HashMap<String, RoleMappingImpl>(roleMappings); RoleMappingImpl toRestore = removedRoles.remove(removalKey); if (toRestore != null && newRoles.containsKey(toRestore.getName()) == false) { newRoles.put(toRestore.getName(), toRestore); roleMappings = Collections.unmodifiableMap(newRoles); return true; } return false; }
[ "Undo a prior removal using the supplied undo key.\n\n@param removalKey - The key returned from the call to removeRoleMapping.\n@return true if the undo was successful, false otherwise." ]
[ "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException", "Modify the meta-data for a photoset.\n\n@param photosetId\nThe photoset ID\n@param title\nA new title\n@param description\nA new description (can be null)\n@throws FlickrException", "Leave a group.\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.leave.html\">lickr.groups.leave</a> for a description of the various behaviors possible\nwhen a user leaves a group.\n\n@param groupId\n- the id of the group to leave\n@param deletePhotos\n- delete photos by this user from group", "Moves everything up so that the specified shift or latch character can be inserted.\n\n@param position the position beyond which everything needs to be shifted\n@param c the latch or shift character to insert at the specified position, after everything has been shifted", "Declares additional internal data structures.", "Get MultiJoined ClassDescriptors\n@param cld", "Initializes custom prefix for all junit4 properties. This must be consistent\nacross all junit4 invocations if done from the same classpath. Use only when REALLY needed.", "Retrieve the correct index for the supplied Table instance.\n\n@param table Table instance\n@return index", "Analyses the command-line arguments which are relevant for the\nserialization process in general. It fills out the class arguments with\nthis data.\n\n@param cmd\n{@link CommandLine} objects; contains the command line\narguments parsed by a {@link CommandLineParser}" ]
public void recordGetAllTime(long timeNS, int requested, int returned, long totalValueBytes, long totalKeyBytes) { recordTime(Tracked.GET_ALL, timeNS, requested - returned, totalValueBytes, totalKeyBytes, requested); }
[ "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." ]
[ "note that for read from file, this will just load all to memory. not fit\nif need to read a very large file. However for getting the host name.\nnormally it is fine.\n\nfor reading large file, should use iostream.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the content from path\n@throws IOException\nSignals that an I/O exception has occurred.", "Convert Collection to Set\n@param collection Collection\n@return Set", "Only return tools with a name matching this partial string\n@param searchTerm Tool name to search for\n@return This object to allow adding more options", "Execute the physical query and initialize the various entities and collections\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when {@code true}, get an existing proxy for each collection element (if there is one)\n@return the result of the query", "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix.", "Main method of VPRendererAdapter. This method has the responsibility of update the\nRendererBuilder values and create or recycle a new Renderer. Once the renderer has been\nobtained the RendereBuilder will call the render method in the renderer and will return the\nRenderer root view to the ViewPager.\n\nIf RendererBuilder returns a null Renderer this method will throw a\nNullRendererBuiltException.\n\n@param parent The containing View in which the page will be shown.\n@param position to render.\n@return view rendered.", "Gets the Taneja divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Taneja divergence between p and q.", "Register operations associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Option check, forwards options to the standard doclet, if that one refuses them,\nthey are sent to UmlGraph" ]
public Search groupField(String fieldName, boolean isNumber) { assertNotEmpty(fieldName, "fieldName"); if (isNumber) { databaseHelper.query("group_field", fieldName + "<number>"); } else { databaseHelper.query("group_field", fieldName); } return this; }
[ "Group results by the specified field.\n\n@param fieldName by which to group results\n@param isNumber whether field isNumeric.\n@return this for additional parameter setting or to query" ]
[ "Add the dependencies if the deployment contains a service activator loader entry.\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Creates multiple aliases at once.", "Gets the favorite entries corresponding to the currently displayed favorite widgets.\n\n@return the list of favorite entries", "Creates the HikariCP configuration based on the configuration of a pool defined in opencms.properties.\n\n@param config the configuration object with the properties\n@param key the pool name (without the opencms prefix)\n\n@return the HikariCP configuration for the pool", "Parses the comma delimited address into model nodes.\n\n@param profileName the profile name for the domain or {@code null} if not a domain\n@param inputAddress the address.\n\n@return a collection of the address nodes.", "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.", "Put the core auto-code algorithm here so an external class can call it", "Provisions a new user in an enterprise with additional user information.\n@param api the API connection to be used by the created user.\n@param login the email address the user will use to login.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info.", "Get the Operation metadata for a single operation on an MBean by name.\n@param operationName the Operation name (can be URL-encoded).\n@return the {@link MBeanOperationInfo} for the operation.\n@throws OperationNotFoundException Method was not found\n@throws UnsupportedEncodingException if the encoding is not supported." ]
public static base_responses export(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey exportresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ exportresources[i] = new sslfipskey(); exportresources[i].fipskeyname = resources[i].fipskeyname; exportresources[i].key = resources[i].key; } result = perform_operation_bulk_request(client, exportresources,"export"); } return result; }
[ "Use this API to export sslfipskey resources." ]
[ "This method takes the textual version of a constraint name\nand returns an appropriate class instance. Note that unrecognised\nvalues are treated as \"As Soon As Possible\" constraints.\n\n@param locale target locale\n@param type text version of the constraint type\n@return ConstraintType instance", "This is a service method that takes care of putting al the target values in a single array.\n@return", "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.", "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args", "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert.", "Create users for the given array of addresses. The passwords will be set to the email addresses.\n\n@param greenMail Greenmail instance to create users for\n@param addresses Addresses", "Use this API to fetch all the appfwjsoncontenttype resources that are configured on netscaler.", "Use this API to fetch the statistics of all rnat_stats resources that are configured on netscaler.", "Gets the progress.\n\n@return the progress" ]
protected void accountForFetchedKey(byte[] key) { fetched++; if (streamStats != null) { streamStats.reportStreamingFetch(operation); } if (recordsPerPartition <= 0) { return; } Integer keyPartitionId = getKeyPartitionId(key); Long partitionFetch = partitionFetches.get(keyPartitionId); Utils.notNull(partitionFetch); partitionFetch++; partitionFetches.put(keyPartitionId, partitionFetch); if (partitionFetch == recordsPerPartition) { if (partitionsToFetch.contains(keyPartitionId)) { partitionsToFetch.remove(keyPartitionId); } else { logger.warn("Partitions to fetch did not contain expected partition ID: " + keyPartitionId); } } else if (partitionFetch > recordsPerPartition) { logger.warn("Partition fetch count larger than expected for partition ID " + keyPartitionId + " : " + partitionFetch); } }
[ "Account for key being fetched.\n\n@param key" ]
[ "helper method to activate or deactivate a specific flag\n\n@param bits\n@param on", "Write objects to data store, but don't release the locks.\nI don't know what we should do if we are in a checkpoint and\nwe need to abort.", "Returns the real value object.", "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler.", "Returns true if a pixel with the given color exists\n\n@param color the pixel colour to look for.\n@return true if there exists at least one pixel that has the given pixels color", "Returns the default shared instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "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", "Returns an iban with replaced check digit.\n\n@param iban The iban\n@return The iban without the check digit" ]
public com.groupon.odo.proxylib.models.Method getMethodForOverrideId(int overrideId) { com.groupon.odo.proxylib.models.Method method = null; // special case for IDs < 0 if (overrideId < 0) { method = new com.groupon.odo.proxylib.models.Method(); method.setId(overrideId); if (method.getId() == Constants.PLUGIN_RESPONSE_OVERRIDE_CUSTOM || method.getId() == Constants.PLUGIN_RESPONSE_HEADER_OVERRIDE_ADD || method.getId() == Constants.PLUGIN_RESPONSE_HEADER_OVERRIDE_REMOVE) { method.setMethodType(Constants.PLUGIN_TYPE_RESPONSE_OVERRIDE); } else { method.setMethodType(Constants.PLUGIN_TYPE_REQUEST_OVERRIDE); } } else { // get method information from the database PreparedStatement queryStatement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { queryStatement = sqlConnection.prepareStatement( "SELECT * FROM " + Constants.DB_TABLE_OVERRIDE + " WHERE " + Constants.GENERIC_ID + " = ?" ); queryStatement.setInt(1, overrideId); results = queryStatement.executeQuery(); if (results.next()) { method = new com.groupon.odo.proxylib.models.Method(); method.setClassName(results.getString(Constants.OVERRIDE_CLASS_NAME)); method.setMethodName(results.getString(Constants.OVERRIDE_METHOD_NAME)); } } catch (SQLException e) { e.printStackTrace(); return null; } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (queryStatement != null) { queryStatement.close(); } } catch (Exception e) { } } // if method is still null then just return if (method == null) { return method; } // now get the rest of the data from the plugin manager // this gets all of the actual method data try { method = PluginManager.getInstance().getMethod(method.getClassName(), method.getMethodName()); method.setId(overrideId); } catch (Exception e) { // there was some problem.. return null return null; } } return method; }
[ "Gets a method based on data in the override_db table\n\n@param overrideId ID of override\n@return Method found" ]
[ "IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery", "Asynchronously put the work into the pending map so we can work on submitting it to the worker\nif we wanted. Could possibly cause duplicate work if we execute the work, then add to the map.\n@param task\n@return", "Write throwable as attachment.\n\n@param throwable to write\n@param title title of attachment\n@return Created {@link ru.yandex.qatools.allure.model.Attachment}", "resumed a given deployment\n\n@param deployment The deployment to resume", "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", "Stop a managed server.", "Prints and stores final result of the processing. This should be called\nafter finishing the processing of a dump. It will print the statistics\ngathered during processing and it will write a CSV file with usage counts\nfor every property.", "Checks if the given project exists or not.\n\n@param name project name\n@return true/false\n@throws IllegalArgumentException", "Cancel request and worker on host.\n\n@param targetHosts\nthe target hosts" ]
@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" ]
[ "sets the row reader class name for thie class descriptor", "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started.", "Starts the compressor.", "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "Gets the JVM memory usage.\n\n@return the JVM memory usage", "Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key", "Creates AzureAsyncOperation from the given HTTP response.\n\n@param serializerAdapter the adapter to use for deserialization\n@param response the response\n@return the async operation object\n@throws CloudException if the deserialization fails or response contains invalid body", "StartMain passes in the command line args here.\n\n@param args The command line arguments. If null is given then an empty\narray will be used instead.", "StartMain passes in the command line args here.\n\n@param args The command line arguments. If null is given then an empty\narray will be used instead." ]
private void initPatternControllers() { m_patternControllers.put(PatternType.NONE, new CmsPatternPanelNoneController()); m_patternControllers.put(PatternType.DAILY, new CmsPatternPanelDailyController(m_model, this)); m_patternControllers.put(PatternType.WEEKLY, new CmsPatternPanelWeeklyController(m_model, this)); m_patternControllers.put(PatternType.MONTHLY, new CmsPatternPanelMonthlyController(m_model, this)); m_patternControllers.put(PatternType.YEARLY, new CmsPatternPanelYearlyController(m_model, this)); // m_patternControllers.put(PatternType.INDIVIDUAL, new CmsPatternPanelIndividualController(m_model, this)); }
[ "Initialize the pattern controllers." ]
[ "Set the serial pattern type.\n@param patternType the pattern type to set.", "Set virtual host so the server can direct the request. Value is the host header if it is set, otherwise\nuse the hostname from the original request.\n\n@param httpMethodProxyRequest\n@param httpServletRequest", "Get the element at the index as a json array.\n\n@param i the index of the element to access", "Expands all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start expanding parents\n@param parentCount The number of parents to expand", "Set an outline code value.\n\n@param index outline code index (1-10)\n@param value outline code value", "Method to service public recording APIs\n\n@param op Operation being tracked\n@param timeNS Duration of operation\n@param numEmptyResponses Number of empty responses being sent back,\ni.e.: requested keys for which there were no values (GET and GET_ALL only)\n@param valueSize Size in bytes of the value\n@param keySize Size in bytes of the key\n@param getAllAggregateRequests Total of amount of keys requested in the operation (GET_ALL only)", "This method returns the mapped certificate for a hostname, or generates a \"standard\"\nSSL server certificate issued by the CA to the supplied subject if no mapping has been\ncreated. This is not a true duplication, just a shortcut method\nthat is adequate for web browsers.\n\n@param hostname\n@return\n@throws CertificateParsingException\n@throws InvalidKeyException\n@throws CertificateExpiredException\n@throws CertificateNotYetValidException\n@throws SignatureException\n@throws CertificateException\n@throws NoSuchAlgorithmException\n@throws NoSuchProviderException\n@throws KeyStoreException\n@throws UnrecoverableKeyException", "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", "Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plaintext password.\n@param hashed scrypt hashed password.\n\n@return true if passwd matches hashed value." ]
public static vpnclientlessaccesspolicy[] get(nitro_service service) throws Exception{ vpnclientlessaccesspolicy obj = new vpnclientlessaccesspolicy(); vpnclientlessaccesspolicy[] response = (vpnclientlessaccesspolicy[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the vpnclientlessaccesspolicy resources that are configured on netscaler." ]
[ "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\n@param lexRange\n@return the range of elements", "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful", "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "This must be called with the write lock held.\n@param requirement the requirement", "Parses the result and returns the failure description. If the result was successful, an empty string is\nreturned.\n\n@param result the result of executing an operation\n\n@return the failure message or an empty string", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "Returns whether this is a valid address string format.\n\nThe accepted IP address formats are:\nan IPv4 address, an IPv6 address, a network prefix alone, the address representing all addresses of all types, or an empty string.\nIf this method returns false, and you want more details, call validate() and examine the thrown exception.\n\n@return whether this is a valid address string format", "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1", "Use this API to diff nsconfig." ]
private static MonetaryFormatsSingletonSpi loadMonetaryFormatsSingletonSpi() { try { return Optional.ofNullable(Bootstrap.getService(MonetaryFormatsSingletonSpi.class)) .orElseGet(DefaultMonetaryFormatsSingletonSpi::new); } catch (Exception e) { Logger.getLogger(MonetaryFormats.class.getName()) .log(Level.WARNING, "Failed to load MonetaryFormatsSingletonSpi, using default.", e); return new DefaultMonetaryFormatsSingletonSpi(); } }
[ "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton." ]
[ "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", "Merges a specialized archetype with its parent. Merge will be done in-place on the specialized parameter.\n\n@param flatParent Flat parent archetype\n@param specialized Specialized archetype", "Create a string from bytes using the given encoding\n\n@param bytes The bytes to create a string from\n@param encoding The encoding of the string\n@return The created string", "Look up a shaper by a short String name.\n\n@param name Shaper name. Known names have patterns along the lines of:\ndan[12](bio)?(UseLC)?, jenny1(useLC)?, chris[1234](useLC)?.\n@return An integer constant for the shaper", "Extract definition records from the table and divide into groups.", "Compare the controlDOM and testDOM and save and return the differences in a list.\n\n@return list with differences", "Enables or disables auto closing when selecting a date.", "Writes the content of an input stream to an output stream\n\n@throws IOException", "Use this API to fetch all the dnspolicylabel resources that are configured on netscaler." ]
public double[] getMaturities(double moneyness) { int[] maturitiesInMonths = getMaturities(convertMoneyness(moneyness)); double[] maturities = new double[maturitiesInMonths.length]; for(int index = 0; index < maturities.length; index++) { maturities[index] = convertMaturity(maturitiesInMonths[index]); } return maturities; }
[ "Return all valid maturities for a given moneyness.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@return The maturities as year fraction from reference date." ]
[ "Returns the object pointed by the result-type parameter \"parameters\"\n@param _invocation\n@return", "Prints to a file. If the file does not exist, rewrites the file;\ndoes not append.", "For a particular stealer node find all the primary partitions tuples it\nwill steal.\n\n@param currentCluster The cluster definition of the existing cluster\n@param finalCluster The final cluster definition\n@param stealNodeId Node id of the stealer node\n@return Returns a list of primary partitions which this stealer node will\nget", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "Initializes data structures", "Load the properties from the resource file if one is specified", "Returns a count of in-window events.\n\n@return the the count of in-window events.", "Read an int from an input stream.\n\n@param is input stream\n@return int value", "Merge all reports in reportOverall.\n@param reportOverall destination file of merge.\n@param reports files to be merged." ]
private void readCalendar(Project.Calendars.Calendar calendar, HashMap<BigInteger, ProjectCalendar> map, List<Pair<ProjectCalendar, BigInteger>> baseCalendars) { ProjectCalendar bc = m_projectFile.addCalendar(); bc.setUniqueID(NumberHelper.getInteger(calendar.getUID())); bc.setName(calendar.getName()); BigInteger baseCalendarID = calendar.getBaseCalendarUID(); if (baseCalendarID != null) { baseCalendars.add(new Pair<ProjectCalendar, BigInteger>(bc, baseCalendarID)); } readExceptions(calendar, bc); boolean readExceptionsFromDays = bc.getCalendarExceptions().isEmpty(); Project.Calendars.Calendar.WeekDays days = calendar.getWeekDays(); if (days != null) { for (Project.Calendars.Calendar.WeekDays.WeekDay weekDay : days.getWeekDay()) { readDay(bc, weekDay, readExceptionsFromDays); } } else { bc.setWorkingDay(Day.SUNDAY, DayType.DEFAULT); bc.setWorkingDay(Day.MONDAY, DayType.DEFAULT); bc.setWorkingDay(Day.TUESDAY, DayType.DEFAULT); bc.setWorkingDay(Day.WEDNESDAY, DayType.DEFAULT); bc.setWorkingDay(Day.THURSDAY, DayType.DEFAULT); bc.setWorkingDay(Day.FRIDAY, DayType.DEFAULT); bc.setWorkingDay(Day.SATURDAY, DayType.DEFAULT); } readWorkWeeks(calendar, bc); map.put(calendar.getUID(), bc); m_eventManager.fireCalendarReadEvent(bc); }
[ "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of base calendars" ]
[ "Rename with retry.\n\n@param from\n@param to\n@return <tt>true</tt> if the file was successfully renamed.", "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions or the original input in case\nthe input didn't contain any expressions or at least one of the\nexpressions could not be resolved", "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file", "Return the serialized form of this Identity.\n\n@return The serialized representation\n@see #fromByteArray\n@deprecated", "End building the script\n@param config the configuration for the script to build\n@return the new {@link LuaScript} instance", "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Add roles for given role parent item.\n\n@param ouItem group parent item", "Initializes the set of report implementation.", "Create a patch element for the rollback patch.\n\n@param entry the entry\n@return the new patch element" ]
private List<String> getRotatedList(List<String> strings) { int index = RANDOM.nextInt(strings.size()); List<String> rotated = new ArrayList<String>(); for (int i = 0; i < strings.size(); i++) { rotated.add(strings.get(index)); index = (index + 1) % strings.size(); } return rotated; }
[ "Rotate list of String. Used for randomize selection of received endpoints\n\n@param strings\nlist of Strings\n@return the same list in random order" ]
[ "The document field must not exist in the list provided\n@param rhs The argument - one or more values\n@return PredicateExpression: $nin rhs", "Reads a string from input stream saved as a sequence of UTF chunks.\n\n@param stream stream to read from.\n@return output string\n@throws IOException if something went wrong", "Control whether the Virtual CDJ sends status packets to the other players. Most uses of Beat Link will not\nrequire this level of activity. However, if you want to be able to take over the tempo master role, and control\nthe tempo and beat alignment of other players, you will need to turn on this feature, which also requires that\nyou are using one of the standard player numbers, 1-4.\n\n@param send if {@code true} we will send status packets, and can participate in (and control) tempo and beat sync\n\n@throws IllegalStateException if the virtual CDJ is not running, or if it is not using a device number in the\nrange 1 through 4\n@throws IOException if there is a problem starting the {@link BeatFinder}", "Use this API to delete cacheselector of given name.", "Use this API to fetch all the dbdbprofile resources that are configured on netscaler.", "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Merges the item from the resultLocaleValues into the corresponding item of the localeValues.\n@param item the item to merge\n@param localeValues the values where the item gets merged into\n@param resultLocaleValues the values where the item to merge is read from\n@return the modified localeValues with the merged item", "try to find the first none null table name for the given class-descriptor.\nIf cld has extent classes, all of these cld's searched for the first none null\ntable name.", "Removes the observation that fits the model the worst and recomputes the coefficients.\nThis is done efficiently by using an adjustable solver. Often times the elements with\nthe largest errors are outliers and not part of the system being modeled. By removing them\na more accurate set of coefficients can be computed." ]
public void setProductModules(final String name, final List<String> moduleNames) { final DbProduct dbProduct = getProduct(name); dbProduct.setModules(moduleNames); repositoryHandler.store(dbProduct); }
[ "Patches the product module names\n\n@param name String\n@param moduleNames List<String>" ]
[ "Roll the years forward or backward.\n\n@param startDate - The start date\n@param years - Negative to rollbackwards.", "get current total used capacity.\n\n@return the total used capacity", "Update max.\n\n@param n the n\n@param c the c", "Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8.", "Get upload status for the currently authenticated user.\n\nRequires authentication with 'read' permission using the new authentication API.\n\n@return A User object with upload status data fields filled\n@throws FlickrException", "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "Use this API to fetch statistics of rnatip_stats resource of given name .", "Use this API to fetch a vpnglobal_appcontroller_binding resources.", "Commits the writes to the remote collection." ]
public void revisitThrowEvents(Definitions def) { List<RootElement> rootElements = def.getRootElements(); List<Signal> toAddSignals = new ArrayList<Signal>(); Set<Error> toAddErrors = new HashSet<Error>(); Set<Escalation> toAddEscalations = new HashSet<Escalation>(); Set<Message> toAddMessages = new HashSet<Message>(); Set<ItemDefinition> toAddItemDefinitions = new HashSet<ItemDefinition>(); for (RootElement root : rootElements) { if (root instanceof Process) { setThrowEventsInfo((Process) root, def, rootElements, toAddSignals, toAddErrors, toAddEscalations, toAddMessages, toAddItemDefinitions); } } for (Lane lane : _lanes) { setThrowEventsInfoForLanes(lane, def, rootElements, toAddSignals, toAddErrors, toAddEscalations, toAddMessages, toAddItemDefinitions); } for (Signal s : toAddSignals) { def.getRootElements().add(s); } for (Error er : toAddErrors) { def.getRootElements().add(er); } for (Escalation es : toAddEscalations) { def.getRootElements().add(es); } for (ItemDefinition idef : toAddItemDefinitions) { def.getRootElements().add(idef); } for (Message msg : toAddMessages) { def.getRootElements().add(msg); } }
[ "Updates event definitions for all throwing events.\n@param def Definitions" ]
[ "Retrieve a work field.\n\n@param type field type\n@return Duration instance", "Read an optional month value form a JSON value.\n@param val the JSON value that should represent the month.\n@return the month from the JSON or null if reading the month fails.", "This method is called by the client to load the most recent list of resources.\nThis method should only be called by the service client.\n\n@param result the most recent list of resources.", "Converts the string of given content to an input stream.\n\n@param content the string content.\n@param charset the charset for conversion.\n@return the stream (should be closed by invoker).", "returns a Logger.\n\n@param loggerName the name of the Logger\n@return Logger the returned Logger", "1.5 and on, 2.0 and on, 3.0 and on.", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific currency attributes to the default values\nfor the new locale.\n\n@param properties project properties\n@param locale new locale", "Creates an instance of a NewSimpleBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewSimpleBean instance", "Gets the Chi Square distance between two normalized histograms.\n\n@param histogram1 Histogram.\n@param histogram2 Histogram.\n@return The Chi Square distance between x and y." ]
public static String getDateCreatedTimeRangeFilterQuery(String searchField, long startTime, long endTime) { String sStartTime = null; String sEndTime = null; // Convert startTime to ISO 8601 format if ((startTime > Long.MIN_VALUE) && (startTime < Long.MAX_VALUE)) { sStartTime = CmsSearchUtil.getDateAsIso8601(new Date(startTime)); } // Convert endTime to ISO 8601 format if ((endTime > Long.MIN_VALUE) && (endTime < Long.MAX_VALUE)) { sEndTime = CmsSearchUtil.getDateAsIso8601(new Date(endTime)); } // Build Solr range string final String rangeString = CmsSearchUtil.getSolrRangeString(sStartTime, sEndTime); // Build Solr filter string return String.format("%s:%s", searchField, rangeString); }
[ "Returns a time interval as Solr compatible query string.\n@param searchField the field to search for.\n@param startTime the lower limit of the interval.\n@param endTime the upper limit of the interval.\n@return Solr compatible query string." ]
[ "Initialize the random generator with a seed.", "slave=true", "Read a long int from a byte array.\n\n@param data byte array\n@param offset start offset\n@return long value", "Determine the enum value corresponding to the third play state found in the packet.\n\n@return the proper value", "compares two java files", "Creates custom Http Client connection pool to be used by Http Client\n\n@return {@link PoolingHttpClientConnectionManager}", "Add an addon to the app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAllAddons} to get a list of addons that can be used.\n@return The request object", "Get or create the log context based on the logging profile.\n\n@param loggingProfile the logging profile to get or create the log context for\n\n@return the log context that was found or a new log context", "Finds and sets up the Listeners in the given rootView.\n\n@param rootView a View to traverse looking for listeners.\n@return the list of refinement attributes found on listeners." ]
private long validateMessage(FileChannel channel, long start, long len, ByteBuffer buffer) throws IOException { buffer.rewind(); int read = channel.read(buffer, start); if (read < 4) return -1; // check that we have sufficient bytes left in the file int size = buffer.getInt(0); if (size < Message.MinHeaderSize) return -1; long next = start + 4 + size; if (next > len) return -1; // read the message ByteBuffer messageBuffer = ByteBuffer.allocate(size); long curr = start + 4; while (messageBuffer.hasRemaining()) { read = channel.read(messageBuffer, curr); if (read < 0) throw new IllegalStateException("File size changed during recovery!"); else curr += read; } messageBuffer.rewind(); Message message = new Message(messageBuffer); if (!message.isValid()) return -1; else return next; }
[ "Read, validate, and discard a single message, returning the next valid offset, and the\nmessage being validated\n\n@throws IOException any exception" ]
[ "Sets a new value for a given key. an older value is overwritten.\n@param key a non null key\n@param value the new value", "Use this API to fetch lbmonbindings_servicegroup_binding resources of given name .", "Gets a collection.\n\n@param collectionName the name of the collection to return\n@return the collection", "Lookup the data-type associated with the class.\n\n@return The associated data-type interface or null if none found.", "Internal utility to help JNI add hit objects to the pick list. Specifically for MeshColliders with picking\nfor UV, Barycentric, and normal coordinates enabled", "Use this API to disable Interface resources of given names.", "Converts url path to the Transloadit full url.\nReturns the url passed if it is already full.\n\n@param url\n@return String", "Returns the bounding box of the vertices.\n@param corners destination array to get corners of bounding box.\nThe first three entries are the minimum X,Y,Z values\nand the next three are the maximum X,Y,Z.\n@return true if bounds are not empty, false if empty (no vertices)", "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" ]
@Override public ModelNode resolveValue(ExpressionResolver resolver, ModelNode value) throws OperationFailedException { // Pass non-OBJECT values through the superclass so it can reject weird values and, in the odd chance // that's how this object is set up, turn undefined into a default list value. ModelNode superResult = value.getType() == ModelType.OBJECT ? value : super.resolveValue(resolver, value); // If it's not an OBJECT (almost certainly UNDEFINED), then nothing more we can do if (superResult.getType() != ModelType.OBJECT) { return superResult; } // Resolve each field. // Don't mess with the original value ModelNode clone = superResult == value ? value.clone() : superResult; ModelNode result = new ModelNode(); for (AttributeDefinition field : valueTypes) { String fieldName = field.getName(); if (clone.has(fieldName)) { result.get(fieldName).set(field.resolveValue(resolver, clone.get(fieldName))); } else { // Input doesn't have a child for this field. // Don't create one in the output unless the AD produces a default value. // TBH this doesn't make a ton of sense, since any object should have // all of its fields, just some may be undefined. But doing it this // way may avoid breaking some code that is incorrectly checking node.has("xxx") // instead of node.hasDefined("xxx") ModelNode val = field.resolveValue(resolver, new ModelNode()); if (val.isDefined()) { result.get(fieldName).set(val); } } } // Validate the entire object getValidator().validateParameter(getName(), result); return result; }
[ "Overrides the superclass implementation to allow the AttributeDefinition for each field in the\nobject to in turn resolve that field.\n\n{@inheritDoc}" ]
[ "Check that each emitted notification is properly described by its source.", "Use this API to fetch all the dnstxtrec resources that are configured on netscaler.\nThis uses dnstxtrec_args which is a way to provide additional arguments while fetching the resources.", "Adds a data set with date-time value to IIM file.\n\n@param ds\ndata set id (see constants in IIM class)\n@param date\ndate to set. Null values are silently ignored.\n@throws SerializationException\nif value can't be serialized by data set's serializer\n@throws InvalidDataSetException\nif data set isn't defined", "Set the value for a floating point vector of length 4.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@param w new W value\n@see #getVec4\n@see #getFloatVec(String)", "Unlock all edited resources.", "Enable a host\n\n@param hostName\n@throws Exception", "Set the position of the pick ray.\nThis function is used internally to update the\npick ray with the new controller position.\n@param x the x value of the position.\n@param y the y value of the position.\n@param z the z value of the position.", "Reads primary key information from current RS row and generates a\n\ncorresponding Identity, and returns a proxy from the Identity.\n\n@throws PersistenceBrokerException\nif there was an error creating the proxy class", "Adds a boolean refinement for the next queries.\n\n@param attribute the attribute to refine on.\n@param value the value to refine with.\n@return this {@link Searcher} for chaining." ]
public Set<Class<?>> getPrevented() { if (this.prevent == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(this.prevent); }
[ "Gets the listener classes to which dispatching should be prevented while\nthis event is being dispatched.\n\n@return The listener classes marked to prevent.\n@see #preventCascade(Class)" ]
[ "Use this API to fetch the statistics of all ipseccounters_stats resources that are configured on netscaler.", "Get a state handler for a given patching artifact.\n\n@param artifact the patching artifact\n@param <P>\n@param <S>\n@return the state handler, {@code null} if there is no handler registered for the given artifact", "Returns the text color for the JSONObject of Link provided\n@param jsonObject of Link\n@return String", "Refresh's this connection's access token using Box Developer Edition.\n@throws IllegalStateException if this connection's access token cannot be refreshed.", "Use this API to fetch the statistics of all systemmemory_stats resources that are configured on netscaler.", "Use this API to fetch linkset resource of given name .", "Concatenate all the arrays in the list into a vector.\n\n@param arrays List of arrays.\n@return Vector.", "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", "Start the first inner table of a class." ]
public static Integer convertProfileIdentifier(String profileIdentifier) throws Exception { Integer profileId = -1; if (profileIdentifier == null) { throw new Exception("A profileIdentifier must be specified"); } else { try { profileId = Integer.parseInt(profileIdentifier); } catch (NumberFormatException ne) { // this is OK.. just means it's not a # // try to get it by name instead profileId = ProfileService.getInstance().getIdFromName(profileIdentifier); } } logger.info("Profile id is {}", profileId); return profileId; }
[ "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception" ]
[ "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to get events for.\n@return the latest change events for a given namespace.", "Get the response headers for URL, following redirects\n\n@param stringUrl URL to use\n@param followRedirects whether to follow redirects\n@return headers HTTP Headers\n@throws IOException I/O error happened", "Get the service name of a top-level deployment unit.\n\n@param name the simple name of the deployment\n@param phase the deployment phase\n@return the service name", "Validates that we only have allowable filters.\n\n<p>Note that equality and ancestor filters are allowed, however they may result in\ninefficient sharding.", "Unregister the mbean with the given name, if there is one registered\n\n@param name The mbean name to unregister\n@see #registerMBean(Object, String)", "2-D Integer array to float array.\n\n@param array Integer array.\n@return Float array.", "Print a booking type.\n\n@param value BookingType instance\n@return booking type value", "Use this API to unset the properties of systemuser resource.\nProperties that need to be unset are specified in args array.", "Sends the collected dependencies over to the master and record them." ]
@Override public boolean accept(File file) { //All directories are added in the least that can be read by the Application if (file.isDirectory()&&file.canRead()) { return true; } else if(properties.selection_type==DialogConfigs.DIR_SELECT) { /* True for files, If the selection type is Directory type, ie. * Only directory has to be selected from the list, then all files are * ignored. */ return false; } else { /* Check whether name of the file ends with the extension. Added if it * does. */ String name = file.getName().toLowerCase(Locale.getDefault()); for (String ext : validExtensions) { if (name.endsWith(ext)) { return true; } } } return false; }
[ "Function to filter files based on defined rules." ]
[ "Get a state handler for a given patching artifact.\n\n@param artifact the patching artifact\n@param <P>\n@param <S>\n@return the state handler, {@code null} if there is no handler registered for the given artifact", "Called when a ParentViewHolder has triggered a collapse for it's parent\n\n@param flatParentPosition the position of the parent that is calling to be collapsed", "Append the text at the end of the Path.\n\n@param self a Path\n@param text the text to append at the end of the Path\n@throws java.io.IOException if an IOException occurs.\n@since 2.3.0", "Convert this buffer to a java array.\n@return", "Add a console pipeline to the Redwood handler tree,\nprinting to stderr.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this", "Gets currently visible user.\n\n@return List of user", "Looks for sequences of integer lists and combine them into one big sequence", "Update the default time unit for work based on data read from the file.\n\n@param column column data", "Removes a parameter from this configuration.\n\n@param key the parameter to remove" ]
public void setLocale(String locale) { try { m_locale = LocaleUtils.toLocale(locale); } catch (IllegalArgumentException e) { LOG.error(Messages.get().getBundle().key(Messages.ERR_TAG_INVALID_LOCALE_1, "cms:navigation"), e); m_locale = null; } }
[ "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read." ]
[ "Use this API to fetch autoscalepolicy_binding resource of given name .", "checking availability of ClassInfo.setFlags method is just workaround for JANDEX-37", "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the list of values set in the field.", "Use this API to fetch statistics of cmppolicylabel_stats resource of given name .", "Return a list of websocket connection by key\n\n@param key\nthe key to find the websocket connection list\n@return a list of websocket connection or an empty list if no websocket connection found by key", "Use this API to rename a cmppolicylabel resource.", "Check if the given class represents an array of primitives,\ni.e. boolean, byte, char, short, int, long, float, or double.\n@param clazz the class to check\n@return whether the given class is a primitive array class", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid", "Deletes all steps of scenario cases where a data table\nis generated to reduce the size of the data file.\nIn this case only the steps of the first scenario case are actually needed." ]
public static aaagroup_vpnsessionpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_vpnsessionpolicy_binding obj = new aaagroup_vpnsessionpolicy_binding(); obj.set_groupname(groupname); aaagroup_vpnsessionpolicy_binding response[] = (aaagroup_vpnsessionpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaagroup_vpnsessionpolicy_binding resources of given name ." ]
[ "List the slack values for each task.\n\n@param file ProjectFile instance", "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "Attach all project models within the application to the index. This will make it easy to navigate from the\nprojectModel to the application index.", "Use this API to fetch vrid_nsip6_binding resources of given name .", "Places a new value at the end of the existing value array, increasing the field length accordingly.\n@param newValue - the 2 floats making the new SFVec2f appended to the MFVec2f array list", "Retrieves the content of the filename. Also reads from JAR Searches for the resource in the\nroot folder in the jar\n\n@param fileName Filename.\n@return The contents of the file.\n@throws IOException On error.", "Add join info to the query. This can be called multiple times to join with more than one table.", "Sets the Calendar used. 'Standard' if no value is set.\n\n@param calendarName Calendar name", "Find the path.\n\n@param start key of first node in the path\n@param end key of last node in the path\n@return string containing the nodes keys in the path separated by arrow symbol" ]
public final void setConfigurationFiles(final Map<String, String> configurationFiles) throws URISyntaxException { this.configurationFiles.clear(); this.configurationFileLastModifiedTimes.clear(); for (Map.Entry<String, String> entry: configurationFiles.entrySet()) { if (!entry.getValue().contains(":/")) { // assume is a file this.configurationFiles.put(entry.getKey(), new File(entry.getValue()).toURI()); } else { this.configurationFiles.put(entry.getKey(), new URI(entry.getValue())); } } if (this.configFileLoader != null) { this.validateConfigurationFiles(); } }
[ "The setter for setting configuration file. It will convert the value to a URI.\n\n@param configurationFiles the configuration file map." ]
[ "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded", "Creates a simple, annotation defined Enterprise Web Bean using the annotations specified on type\n\n@param <T> The type\n@param beanManager the current manager\n@param type the AnnotatedType to use\n@return An Enterprise Web Bean", "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", "Store the char in the internal buffer", "Use this API to fetch bridgegroup_vlan_binding resources of given name .", "Add a calendar day node.\n\n@param parentNode parent node\n@param calendar ProjectCalendar instance\n@param day calendar day", "Create a ModelNode representing the CPU the instance is running on.\n\n@return a ModelNode representing the CPU the instance is running on.\n@throws OperationFailedException", "Use this API to save cachecontentgroup resources.", "TestNG returns a compound thread ID that includes the thread name and its numeric ID,\nseparated by an 'at' sign. We only want to use the thread name as the ID is mostly\nunimportant and it takes up too much space in the generated report.\n@param threadId The compound thread ID.\n@return The thread name." ]
public static String get(String url, Map<String, String> customHeaders, Map<String, String> params) throws URISyntaxException, IOException, HTTPException { LOGGER.log(Level.INFO, "Sending GET request to the url {0}", url); URIBuilder uriBuilder = new URIBuilder(url); if (params != null && params.size() > 0) { for (Map.Entry<String, String> param : params.entrySet()) { uriBuilder.setParameter(param.getKey(), param.getValue()); } } HttpGet httpGet = new HttpGet(uriBuilder.build()); populateHeaders(httpGet, customHeaders); HttpClient httpClient = HttpClientBuilder.create().build(); HttpResponse httpResponse = httpClient.execute(httpGet); int statusCode = httpResponse.getStatusLine().getStatusCode(); if (isErrorStatus(statusCode)) { String jsonErrorResponse = EntityUtils.toString(httpResponse.getEntity(), StandardCharsets.UTF_8); throw new HTTPException(statusCode, httpResponse.getStatusLine().getReasonPhrase(), jsonErrorResponse); } return EntityUtils.toString(httpResponse.getEntity(), StandardCharsets.UTF_8); }
[ "Send get request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws URISyntaxException the uri syntax exception\n@throws IOException the io exception" ]
[ "Retrieve the frequency of an exception.\n\n@param exception XML calendar exception\n@return frequency", "Creates a color item that represents a color field found for a track based on a dbserver message.\n\n@param menuItem the rendered menu item containing the color metadata field\n\n@return the color metadata field", "Get a property as a string or defaultValue.\n\n@param key the property name\n@param defaultValue the default value", "Close the ClientRequestExecutor.", "AND operation which takes the previous clause and the next clause and AND's them together.", "Gets the appropriate cache dir\n\n@param ctx\n@return", "If needed declares and sets up internal data structures.\n\n@param A Matrix being decomposed.", "Adds error correction data to the specified binary string, which already contains the primary data", "Given a date represented by a Date instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param date Date instance representing the date\n@param canonicalTime Date instance representing the time of day\n@return new Date instance with the required time set" ]
public void clearSources() { synchronized (mAudioSources) { for (GVRAudioSource source : mAudioSources) { source.setListener(null); } mAudioSources.clear(); } }
[ "Remove all of the audio sources from the audio manager.\nThis will stop all sound from playing." ]
[ "Try to kill a given process.\n\n@param processName the process name\n@param id the process integer id, or {@code -1} if this is not relevant\n@return {@code true} if the command succeeded, {@code false} otherwise", "Use this API to unset the properties of onlinkipv6prefix resource.\nProperties that need to be unset are specified in args array.", "Use this API to add ntpserver.", "this method is not intended to be called by clients\n@since 2.12", "Consumes the version field from the given input and raises an exception if the record is in a newer version,\nwritten by a newer version of Hibernate OGM.\n\n@param input the input to read from\n@param supportedVersion the type version supported by this version of OGM\n@param externalizedType the type to be unmarshalled\n\n@throws IOException if an error occurs while reading the input", "Retrieve the fixed data offset for a specific field.\n\n@param type field type\n@return offset", "Use this API to fetch vpnvserver_responderpolicy_binding resources of given name .", "Triggers collapse of the parent.", "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" ]
private void createAndLockDescriptorFile() throws CmsException { String sitePath = m_sitepath + m_basename + CmsMessageBundleEditorTypes.Descriptor.POSTFIX; m_desc = m_cms.createResource( sitePath, OpenCms.getResourceManager().getResourceType(CmsMessageBundleEditorTypes.BundleType.DESCRIPTOR.toString())); m_descFile = LockedFile.lockResource(m_cms, m_desc); m_descFile.setCreated(true); }
[ "Creates a descriptor for the bundle in the same folder where the bundle files are located.\n@throws CmsException thrown if creation fails." ]
[ "Search for the attribute \"id\" and return the value.\n\n@return the id of this element or null when not found", "Get the list of build numbers that are to be kept forever.", "Implements getAll by delegating to get.", "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", "Requests the waveform detail for a specific track ID, given a connection to a player that has already been\nset up.\n\n@param rekordboxId the track whose waveform detail is desired\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved waveform detail, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Takes a numeric string value and converts it to a integer between 0 and 100.\n\nreturns 0 if the string is not numeric.\n\n@param percentage - A numeric string value\n@return a integer between 0 and 100", "Get the output mapper from processor.", "Generate a Jongo query regarding a set of parameters.\n\n@param params Map<queryKey, queryValue> of query parameters\n@return String", "Gets all checked widgets in the group\n@return list of checked widgets" ]
private static LogPriorType intToType(int intPrior) { LogPriorType[] values = LogPriorType.values(); for (LogPriorType val : values) { if (val.ordinal() == intPrior) { return val; } } throw new IllegalArgumentException(intPrior + " is not a legal LogPrior."); }
[ "why isn't this functionality in enum?" ]
[ "Given the key, figures out which partition on the local node hosts the key.\n\n@param key\n@return", "Use this API to delete sslcipher resources of given names.", "Copy new data to an existing float-point texture.\n\nCreating a new {@link GVRFloatImage} is pretty cheap, but it's still\nnot a totally trivial operation: it does involve some memory management\nand some GL hardware handshaking. Reusing the texture reduces this\noverhead (primarily by delaying garbage collection). Do be aware that\nupdating a texture will affect any and all {@linkplain GVRMaterial\nmaterials} (and/or post effects that use the texture!\n\n@param width\nTexture width, in pixels\n@param height\nTexture height, in pixels\n@param data\nA linear array of float pairs.\n@return {@code true} if the updateGPU succeeded, and {@code false} if it\nfailed. Updating a texture requires that the new data parameter\nhas the exact same {@code width} and {@code height} and pixel\nformat as the original data.\n@throws IllegalArgumentException\nIf {@code width} or {@code height} is {@literal <= 0,} or if\n{@code data} is {@code null}, or if\n{@code data.length < height * width * 2}", "Send message to all connections tagged with all given tags\n@param message the message\n@param labels the tag labels", "read all brokers in the zookeeper\n\n@param zkClient zookeeper client\n@return all brokers", "Returns a matrix full of ones", "Adds an individual alias. It will be merged with the current\nlist of aliases, or added as a label if there is no label for\nthis item in this language yet.\n\n@param alias\nthe alias to add", "Overridden 'consume' method. Corresponding parent method will be called necessary number of times\n\n@param initialVars - a map containing the initial variables assignments\n@return the number of lines written", "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given yield curve.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param rate The yield which is used for discounted the coupon payments.\n@param model The model under which the product is valued.\n@return The value of the bond for the given yield." ]
protected void setupPivotInfo() { for( int col = 0; col < numCols; col++ ) { pivots[col] = col; double c[] = dataQR[col]; double norm = 0; for( int row = 0; row < numRows; row++ ) { double element = c[row]; norm += element*element; } normsCol[col] = norm; } }
[ "Sets the initial pivot ordering and compute the F-norm squared for each column" ]
[ "Changes to a new sub-view and stores a report to be displayed by that subview.<p<\n\n@param newState the new state\n@param thread the report thread which should be displayed in the sub view\n@param label the label to display for the report", "Use this API to fetch all the gslbsite resources that are configured on netscaler.", "Sets the position vector of the keyframe.", "Compiles and performs the provided equation.\n\n@param equation String in simple equation format", "Swaps two specified partitions.\n\nPair-wase partition swapping may be more prone to local minima than\nlarger perturbations. Could consider \"swapping\" a list of\n<nodeId/partitionId>. This would allow a few nodes to be identified\n(random # btw 2-5?) and then \"swapped\" (shuffled? rotated?).\n\n@return modified cluster metadata.", "Obtains a database connection, retrying if necessary.\n@param connectionHandle\n@return A DB connection.\n@throws SQLException", "Converts a Fluo Span to Accumulo Range\n\n@param span Span\n@return Range", "Obtain the profile name associated with a profile ID\n\n@param id ID of profile\n@return Name of corresponding profile", "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF" ]
@Override public final String getString(final int i) { String val = this.array.optString(i, null); if (val == null) { throw new ObjectMissingException(this, "[" + i + "]"); } return val; }
[ "Get the element at the index as a string.\n\n@param i the index of the element to access" ]
[ "Sets the value for the API's \"sitefilter\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Emit a string event with parameters and force all listener to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(String, Object...)", "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", "Search for groups. 18+ groups will only be returned for authenticated calls where the authenticated user is over 18. This method does not require\nauthentication.\n\n@param text\nThe text to search for.\n@param perPage\nNumber of groups to return per page. If this argument is 0, it defaults to 100. The maximum allowed value is 500.\n@param page\nThe page of results to return. If this argument is 0, it defaults to 1.\n@return A GroupList Object. Only the fields <em>id</em>, <em>name</em> and <em>eighteenplus</em> in the Groups will be set.\n@throws FlickrException", "generate a message for loglevel INFO\n\n@param pObject the message Object", "Converts a vector from eigen space into sample space.\n\n@param eigenData Eigen space data.\n@return Sample space projection.", "Stops download dispatchers.", "Updates the gatewayDirection attributes of all gateways.\n@param def", "Create a container in the platform\n\n@param container\nThe name of the container" ]
public static snmpuser[] get(nitro_service service, options option) throws Exception{ snmpuser obj = new snmpuser(); snmpuser[] response = (snmpuser[])obj.get_resources(service,option); return response; }
[ "Use this API to fetch all the snmpuser resources that are configured on netscaler." ]
[ "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running", "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful", "Creates a Profile object from a SQL resultset\n\n@param result resultset containing the profile\n@return Profile\n@throws Exception exception", "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "Transmits the SerialMessage to a single Z-Wave Node.\nSets the transmission options as well.\n@param serialMessage the Serial message to send.", "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", "Access an attribute.\n\n@param type the attribute's type, not {@code null}\n@param key the attribute's key, not {@code null}\n@return the attribute value, or {@code null}.", "Generate a Jongo query regarding a set of parameters.\n\n@param params Map<queryKey, queryValue> of query parameters\n@return String", "Returns the adapter position of the Parent associated with this ChildViewHolder\n\n@return The adapter position of the Parent if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled." ]
private void disableTalkBack() { GVRSceneObject[] sceneObjects = mGvrContext.getMainScene().getWholeSceneObjects(); for (GVRSceneObject sceneObject : sceneObjects) { if (sceneObject instanceof GVRAccessiblityObject) if (((GVRAccessiblityObject) sceneObject).getTalkBack() != null) ((GVRAccessiblityObject) sceneObject).getTalkBack().setActive(false); } }
[ "find all accessibility object and set active false for enable talk back." ]
[ "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue...", "creates a point array of all dockers and add it to the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Split string content into list\n@param content String content\n@return list", "Reads a markdown link.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link.", "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", "Add BoxMetaDataFilter to the JsonArray boxMetadataFilterRequestArray.\n@param @param bmf accepts a filter that has templateKey, scope, and filters populated.\n@return JsonArray that is formated Json request", "This method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions.\n\n@param date Date to be tested\n@return boolean value", "Iterates through the given CharSequence line by line, splitting each line using\nthe given separator Pattern. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param pattern the regular expression Pattern for the delimiter\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@since 1.8.2", "Removes the specified object in index from the array.\n\n@param index The index to remove." ]
public static String minus(CharSequence self, Object target) { String s = self.toString(); String text = DefaultGroovyMethods.toString(target); int index = s.indexOf(text); if (index == -1) return s; int end = index + text.length(); if (s.length() > end) { return s.substring(0, index) + s.substring(end); } return s.substring(0, index); }
[ "Remove a part of a CharSequence by replacing the first occurrence\nof target within self with '' and returns the result.\n\n@param self a CharSequence\n@param target an object representing the part to remove\n@return a String containing the original minus the part to be removed\n@see #minus(String, Object)\n@since 1.8.2" ]
[ "Use this API to fetch bridgegroup_nsip_binding resources of given name .", "Issue the database statements to create the table associated with a class.\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be created.\n@return The number of statements executed to do so.", "Creates a new instance of this class.\n\n@param variableName\nname of the instance variable to search aliases for. Must\nneither be {@code null} nor empty.\n@param controlFlowBlockToExamine\na {@link ControlFlowBlock} which possibly contains the setup\nof an alias for a lazy variable. This method thereby examines\npredecessors of {@code block}, too. This parameter must not be\n{@code null}.\n@return a new instance of this class.", "Handles incoming Serial Messages. Serial messages can either be messages\nthat are a response to our own requests, or the stick asking us information.\n@param incomingMessage the incoming message to process.", "Renders a given graphic into a new image, scaled to fit the new size and rotated.", "Transform a TMS layer description object into a raster layer info object.\n\n@param tileMap\nThe TMS layer description object.\n@return The raster layer info object as used by Geomajas.", "Get the content-type, including the optional \";base64\".", "Calculate Median value.\n@param values Values.\n@return Median.", "Internal method which performs the authenticated request by preparing the auth request with\nthe provided auth info and request." ]
public static EffectiveAssignmentInsnFinder newInstance(final FieldNode targetVariable, final Collection<ControlFlowBlock> controlFlowBlocks) { return new EffectiveAssignmentInsnFinder(checkNotNull(targetVariable), checkNotNull(controlFlowBlocks)); }
[ "Static factory method.\n\n@param targetVariable\nthe variable to find the effective {@code putfield} or\n{@code putstatic} instruction for.\n@param controlFlowBlocks\nall control flow blocks of an initialising constructor or\nmethod.\n@return a new instance of this class." ]
[ "Informs this sequence model that the value of the element at position pos has changed.\nThis allows this sequence model to update its internal model if desired.", "Parses links for XMLContents etc.\n\n@param cms the CMS context to use\n@throws CmsException if something goes wrong", "Get upload status for the currently authenticated user.\n\nRequires authentication with 'read' permission using the new authentication API.\n\n@return A User object with upload status data fields filled\n@throws FlickrException", "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format.", "Notifies that multiple content items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "Scale the mesh at x, y and z axis.\n\n@param mesh Mesh to be scaled.\n@param x Scale to be applied on x-axis.\n@param y Scale to be applied on y-axis.\n@param z Scale to be applied on z-axis.", "Adds the absolute path to command.\n\n@param command the command to add the arguments to.\n@param typeName the type of directory.\n@param propertyName the name of the property.\n@param properties the properties where the path may already be defined.\n@param directoryGrouping the directory group type.\n@param typeDir the domain level directory for the given directory type; to be used for by-type grouping\n@param serverDir the root directory for the server, to be used for 'by-server' grouping\n@return the absolute path that was added.", "Gets any assignments for this task.\n@return a list of assignments for this task." ]
public static nstrafficdomain_binding get(nitro_service service, Long td) throws Exception{ nstrafficdomain_binding obj = new nstrafficdomain_binding(); obj.set_td(td); nstrafficdomain_binding response = (nstrafficdomain_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch nstrafficdomain_binding resource of given name ." ]
[ "Adds this handler to the widget.\n\n@param <H> the type of handler to add\n@param type the event type\n@param handler the handler\n@return {@link HandlerRegistration} used to remove the handler", "Gets the groupby for ReportQueries of all Criteria and Sub Criteria\nthe elements are of class FieldHelper\n@return List of FieldHelper", "Returns the site path for the edited bundle file.\n\n@return the site path for the edited bundle file.", "Set the week day the events should occur.\n@param weekDay the week day to set.", "Select this tab item.", "Write a comma to the output stream if required.", "Inject members into this instance and register the services afterwards.\n@see #getGuiceModule()\n@see #registerInRegistry(boolean)\n@since 2.1", "Use this API to update dospolicy resources.", "Creates a random diagonal matrix where the diagonal elements are selected from a uniform\ndistribution that goes from min to max.\n\n@param N Dimension of the matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix." ]
public int getJdbcType(String ojbType) throws SQLException { int result; if(ojbType == null) ojbType = ""; ojbType = ojbType.toLowerCase(); if (ojbType.equals("bit")) result = Types.BIT; else if (ojbType.equals("tinyint")) result = Types.TINYINT; else if (ojbType.equals("smallint")) result = Types.SMALLINT; else if (ojbType.equals("integer")) result = Types.INTEGER; else if (ojbType.equals("bigint")) result = Types.BIGINT; else if (ojbType.equals("float")) result = Types.FLOAT; else if (ojbType.equals("real")) result = Types.REAL; else if (ojbType.equals("double")) result = Types.DOUBLE; else if (ojbType.equals("numeric")) result = Types.NUMERIC; else if (ojbType.equals("decimal")) result = Types.DECIMAL; else if (ojbType.equals("char")) result = Types.CHAR; else if (ojbType.equals("varchar")) result = Types.VARCHAR; else if (ojbType.equals("longvarchar")) result = Types.LONGVARCHAR; else if (ojbType.equals("date")) result = Types.DATE; else if (ojbType.equals("time")) result = Types.TIME; else if (ojbType.equals("timestamp")) result = Types.TIMESTAMP; else if (ojbType.equals("binary")) result = Types.BINARY; else if (ojbType.equals("varbinary")) result = Types.VARBINARY; else if (ojbType.equals("longvarbinary")) result = Types.LONGVARBINARY; else if (ojbType.equals("clob")) result = Types.CLOB; else if (ojbType.equals("blob")) result = Types.BLOB; else throw new SQLException( "The type '"+ ojbType + "' is not a valid jdbc type."); return result; }
[ "Determines the java.sql.Types constant value from an OJB\nFIELDDESCRIPTOR value.\n\n@param type The FIELDDESCRIPTOR which JDBC type is to be determined.\n\n@return int the int value representing the Type according to\n\n@throws SQLException if the type is not a valid jdbc type.\njava.sql.Types" ]
[ "Adds a parameter to the MIMEType.\n\n@param name name of parameter\n@param value value of parameter\n@return returns a new instance with the parameter set", "Removes an element from the observation matrix.\n\n@param index which element is to be removed", "Adds a module to the modules that should be exported.\nIf called at least once, the explicitly added modules will be exported\ninstead of the default modules.\n\n@param moduleName the name of the module to export.", "Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{@link Type#getInternalName() getInternalName}).\n@param name\nthe method's name.\n@param desc\nthe method's descriptor (see {@link Type Type}).\n@param itf\nif the method's owner class is an interface.", "Read a four byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "Will scale the image down before processing for\nperformance enhancement and less memory usage\nsacrificing image quality.\n\n@param scaleInSample value greater than 1 will scale the image width/height, so 2 will getFromDiskCache you 1/4\nof the original size and 4 will getFromDiskCache you 1/16 of the original size - this just sets\nthe inSample size in {@link android.graphics.BitmapFactory.Options#inSampleSize } and\nbehaves exactly the same, so keep the value 2^n for least scaling artifacts", "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", "Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name .", "A connection to the database. Should be short-lived. No transaction active by default.\n\n@return a new open connection." ]