query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static <T> List<T> flatten(Collection<List<T>> nestedList) { List<T> result = new ArrayList<T>(); for (List<T> list : nestedList) { result.addAll(list); } return result; }
[ "combines all the lists in a collection to a single list" ]
[ "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", "Sum of the elements.\n\n@param data Data.\n@return Sum(data).", "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.", "Obtains a local date in Coptic calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Coptic local date, not null\n@throws DateTimeException if unable to create the date", "Returns iterable with all enterprise assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all enterprise assignments.", "Write all state items to the log file.\n\n@param fileRollEvent the event to log", "set custom response or request for a profile's default client, ensures profile and path are enabled\n\n@param profileName profileName to modift, default client is used\n@param pathName friendly name of path\n@param isResponse true if response, false for request\n@param customData custom response/request data\n@return true if success, false otherwise", "Load in a number of database configuration entries from a buffered reader.", "Update max.\n\n@param n the n\n@param c the c" ]
public static Integer convertPathIdentifier(String identifier, Integer profileId) throws Exception { Integer pathId = -1; try { pathId = Integer.parseInt(identifier); } catch (NumberFormatException ne) { // this is OK.. just means it's not a # if (profileId == null) throw new Exception("A profileId must be specified"); pathId = PathOverrideService.getInstance().getPathId(identifier, profileId); } return pathId; }
[ "Obtain the path ID for a profile\n\n@param identifier Can be the path ID, or friendly name\n@param profileId\n@return\n@throws Exception" ]
[ "Returns true if the query result has at least one row.", "Returns a new instance of the class with the given qualified name using the constructor with\nthe specified parameter.\n\n@param className The qualified name of the class to instantiate\n@param type The types of the single parameter of the constructor\n@param arg The argument\n@return The instance", "Returns true if string starts and ends with double-quote\n@param str\n@return", "Retrieves the real subject from the underlying RDBMS. Override this\nmethod if the object is to be materialized in a specific way.\n\n@return The real subject of the proxy", "Seeks to the given day within the current month\n@param dayOfMonth the day of the month to seek to, represented as an integer\nfrom 1 to 31. Must be guaranteed to parse as an Integer. If this day is\nbeyond the last day of the current month, the actual last day of the month\nwill be used.", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "Returns a string representation of map of chunk id to number of chunks\n\n@return String of map of chunk id to number of chunks", "The smallest granularity of rebalancing where-in we move partitions for a\nsub-set of stores. Finally at the end of the movement, the node is\nremoved out of rebalance state\n\n<br>\n\nAlso any errors + rollback procedures are performed at this level itself.\n\n<pre>\n| Case | hasRO | hasRW | finishedRO | Action |\n| 0 | t | t | t | rollback cluster change + swap |\n| 1 | t | t | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 2 | t | f | t | won't be triggered since hasRW is false |\n| 3 | t | f | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 4 | f | t | t | rollback cluster change |\n| 5 | f | t | f | won't be triggered |\n| 6 | f | f | t | won't be triggered |\n| 7 | f | f | f | won't be triggered |\n</pre>\n\n@param batchId Rebalance batch id\n@param batchRollbackCluster Cluster to rollback to if we have a problem\n@param rebalanceTaskPlanList The list of rebalance partition plans\n@param hasReadOnlyStores Are we rebalancing any read-only stores?\n@param hasReadWriteStores Are we rebalancing any read-write stores?\n@param finishedReadOnlyStores Have we finished rebalancing of read-only\nstores?" ]
public Integer getBlockMaskPrefixLength(boolean network) { Integer prefixLen; if(network) { if(hasNoPrefixCache() || (prefixLen = prefixCache.networkMaskPrefixLen) == null) { prefixLen = setNetworkMaskPrefix(checkForPrefixMask(network)); } } else { if(hasNoPrefixCache() || (prefixLen = prefixCache.hostMaskPrefixLen) == null) { prefixLen = setHostMaskPrefix(checkForPrefixMask(network)); } } if(prefixLen < 0) { return null; } return prefixLen; }
[ "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host section.\nA CIDR host mask is an address with all 0s in the network section and then all 1s in the host section.\nThe prefix length is the length of the network section.\n\nAlso, keep in mind that the prefix length returned by this method is not equivalent to the prefix length used to construct this object.\nThe prefix length used to construct indicates the network and host section of this address.\nThe prefix length returned here indicates the whether the value of this address can be used as a mask for the network and host\nsection of any other address. Therefore the two values can be different values, or one can be null while the other is not.\n\nThis method applies only to the lower value of the range if this section represents multiple values.\n\n@param network whether to check for a network mask or a host mask\n@return the prefix length corresponding to this mask, or null if there is no such prefix length" ]
[ "Creates a ServiceFuture from an Completable object and a callback.\n\n@param completable the completable to create from\n@param callback the callback to call when event happen\n@return the created ServiceFuture", "Returns the list of store defs as a map\n\n@param storeDefs\n@return", "Complete both operations and commands.", "Unchecks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already unchecked; {@code false} otherwise.", "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Read hints from a file and merge with the given hints map.", "Gets the object whose index is the integer argument.\n\n@param i the integer index to be queried for the corresponding argument\n@return the object whose index is the integer argument.", "Ensures that generate-table-info is set to false if generate-repository-info is set to false.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Attaches the menu drawer to the content view." ]
@Deprecated public <T> List<T> findByIndex(String selectorJson, Class<T> classOfT) { return findByIndex(selectorJson, classOfT, new FindByIndexOptions()); }
[ "Find documents using an index\n\n@param selectorJson String representation of a JSON object describing criteria used to\nselect documents. For example:\n{@code \"{ \\\"selector\\\": {<your data here>} }\"}.\n@param classOfT The class of Java objects to be returned\n@param <T> the type of the Java object to be returned\n@return List of classOfT objects\n@see #findByIndex(String, Class, FindByIndexOptions)\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/cloudant_query.html#selector-syntax\"\ntarget=\"_blank\">selector syntax</a>\n@deprecated Use {@link #query(String, Class)} instead" ]
[ "Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. This is used\nby internal classes to configure a class.", "Sets the columns width by reading some report options like the\nprintableArea and useFullPageWidth.\ncolumns with fixedWidth property set in TRUE will not be modified", "Returns the nested object definition with the specified name.\n\n@param name The name of the attribute of the nested object\n@return The nested object definition or <code>null</code> if there is no such nested object", "Try Oracle update batching and call setExecuteBatch or revert to\nJDBC update batching. See 12-2 Update Batching in the Oracle9i\nJDBC Developer's Guide and Reference.\n@param stmt the prepared statement to be used for batching\n@throws PlatformException upon JDBC failure", "Updates the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template\n@param fieldOperations the fields that needs to be updated / added in the template\n@return the updated metadata template", "Load a JSON file from the application's \"asset\" directory.\n\n@param context Valid {@link Context}\n@param asset Name of the JSON file\n@return New instance of {@link JSONObject}", "Obtain collection of profiles\n\n@param model\n@return\n@throws Exception", "Process the given key and value. First validate the value and check if there's no different value for the same key in the same source - invalid and\ndifferent values are treated as a deployment problem.\n\n@param properties\n@param key\n@param value", "Register a loader with the 'sniffer'.\n\n'Factory loaders' are pre-registered. To load a format we don't support,\ncreate a {@link GVRCompressedTextureLoader} descendant. Then, before\ntrying to load any files in that format, create an instance and call\n{@link #register()}:\n\n<pre>\n\nnew MyCompressedFormat().register();\n</pre>" ]
public void executeUpdate(ClassDescriptor cld, Object obj) throws PersistenceBrokerException { if (logger.isDebugEnabled()) { logger.debug("executeUpdate: " + obj); } // obj with nothing but key fields is not updated if (cld.getNonPkRwFields().length == 0) { return; } final StatementManagerIF sm = broker.serviceStatementManager(); PreparedStatement stmt = null; // BRJ: preserve current locking values // locking values will be restored in case of exception ValueContainer[] oldLockingValues; oldLockingValues = cld.getCurrentLockingValues(obj); try { stmt = sm.getUpdateStatement(cld); if (stmt == null) { logger.error("getUpdateStatement returned a null statement"); throw new PersistenceBrokerException("getUpdateStatement returned a null statement"); } sm.bindUpdate(stmt, cld, obj); if (logger.isDebugEnabled()) logger.debug("executeUpdate: " + stmt); if ((stmt.executeUpdate() == 0) && cld.isLocking()) //BRJ { /** * Kuali Foundation modification -- 6/19/2009 */ String objToString = ""; try { objToString = obj.toString(); } catch (Exception ex) {} throw new OptimisticLockException("Object has been modified by someone else: " + objToString, obj); /** * End of Kuali Foundation modification */ } // Harvest any return values. harvestReturnValues(cld.getUpdateProcedure(), obj, stmt); } catch (OptimisticLockException e) { // Don't log as error if (logger.isDebugEnabled()) logger.debug( "OptimisticLockException during the execution of update: " + e.getMessage(), e); throw e; } catch (PersistenceBrokerException e) { // BRJ: restore old locking values setLockingValues(cld, obj, oldLockingValues); logger.error( "PersistenceBrokerException during the execution of the update: " + e.getMessage(), e); throw e; } catch (SQLException e) { final String sql = broker.serviceSqlGenerator().getPreparedUpdateStatement(cld).getStatement(); throw ExceptionHelper.generateException(e, sql, cld, logger, obj); } finally { sm.closeResources(stmt, null); } }
[ "performs an UPDATE operation against RDBMS.\n@param obj The Object to be updated in the underlying table.\n@param cld ClassDescriptor providing mapping information." ]
[ "Adds the allowed values. Override for attributes who should not use the allowed values.\n\n@param result the node to add the allowed values to\n@param validator the validator to get the allowed values from", "Constructs credentials for the given account and key file.\n\n@param serviceAccountId service account ID (typically an e-mail address).\n@param privateKeyFile the file name from which to get the private key.\n@param serviceAccountScopes Collection of OAuth scopes to use with the the service\naccount flow or {@code null} if not.\n@return valid credentials or {@code null}", "Writes all data that was collected about properties to a json file.", "Adds OPT_U | OPT_URL option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Finds the file at the provided path within the archive.\n\nEg, getChildFile(ArchiveModel, \"/META-INF/MANIFEST.MF\") will return a {@link FileModel} if a file named\n/META-INF/MANIFEST.MF exists within the archive\n\n@return Returns the located {@link FileModel} or null if no file with this path could be located", "Entry point for this example\nUses HDFS ToolRunner to wrap processing of\n\n@param args Command-line arguments for HDFS example", "Private helper function that performs some assignability checks for the\nprovided GenericArrayType.", "Used by FreeStyle Maven jobs only", "Returns the complete Grapes root URL\n\n@return String" ]
public MaterialAccount getAccountAtCurrentPosition(int position) { if (position < 0 || position >= accountManager.size()) throw new RuntimeException("Account Index Overflow"); return findAccountNumber(position); }
[ "Get the account knowing his position\n@param position the position of the account (it can change at runtime!)\n@return the account" ]
[ "Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle", "Update the Target Filter of the ExporterService.\nApply the induce modifications on the links of the ExporterService\n\n@param serviceReference", "Add the given person to the photo. Optionally, send in co-ordinates\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrException", "The Baseline Duration field shows the original span of time planned\nto complete a task.\n\n@return - duration string", "Creates the full sentence.\n\n@return the mtas CQL parser sentence condition\n@throws ParseException the parse exception", "Use this API to delete sslcipher resources of given names.", "Adds a tag to a task. Returns an empty data block.\n\n@param task The task to add a tag to.\n@return Request object", "Log a byte array.\n\n@param label label text\n@param data byte array", "Method to create a new proxy that wraps the bean instance.\n\n@param beanInstance the bean instance\n@return a new proxy object" ]
public static final UUID parseUUID(String value) { UUID result = null; if (value != null && !value.isEmpty()) { if (value.charAt(0) == '{') { // PMXML representation: <GUID>{0AB9133E-A09A-9648-B98A-B2384894AC44}</GUID> result = UUID.fromString(value.substring(1, value.length() - 1)); } else { // XER representation: CrkTPqCalki5irI4SJSsRA byte[] data = javax.xml.bind.DatatypeConverter.parseBase64Binary(value + "=="); long msb = 0; long lsb = 0; for (int i = 0; i < 8; i++) { msb = (msb << 8) | (data[i] & 0xff); } for (int i = 8; i < 16; i++) { lsb = (lsb << 8) | (data[i] & 0xff); } result = new UUID(msb, lsb); } } return result; }
[ "Convert the Primavera string representation of a UUID into a Java UUID instance.\n\n@param value Primavera UUID\n@return Java UUID instance" ]
[ "Render json.\n\n@param o\nthe o\n@return the string", "Build all children.\n\n@return the child descriptions", "Use this API to update Interface resources.", "Obtains a Discordian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Disable all overrides for a specified path with overrideType\n\n@param pathID ID of path containing overrides\n@param clientUUID UUID of client\n@param overrideType Override type identifier", "get the getter method corresponding to given property", "Use this API to rename a responderpolicy resource.", "Set the featureModel.\n\n@param featureModel\nfeature model\n@throws LayerException\nproblem setting the feature model\n@since 1.8.0", "This method writes extended attribute data for a resource.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource" ]
public Bundler put(String key, Parcelable value) { delegate.putParcelable(key, value); return this; }
[ "Inserts a Parcelable value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Parcelable object, or null\n@return this bundler instance to chain method calls" ]
[ "Given a list of store definitions, filters the list depending on the\nboolean\n\n@param storeDefs Complete list of store definitions\n@param isReadOnly Boolean indicating whether filter on read-only or not?\n@return List of filtered store definition", "check max size of each message\n@param maxMessageSize the max size for each message", "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner.", "Throws one RendererException if the content parent or layoutInflater are null.", "This method is called to format a relation.\n\n@param relation relation instance\n@return formatted relation instance", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "Sets the ssh priv key relative path wtih passphrase.\n\n@param privKeyRelativePath the priv key relative path\n@param passphrase the passphrase\n@return the parallel task builder", "Retrieve multiple properties.\n\n@param method method definition\n@param object target object\n@param map parameter values", "Check whether the given class is cache-safe in the given context,\ni.e. whether it is loaded by the given ClassLoader or a parent of it.\n@param clazz the class to analyze\n@param classLoader the ClassLoader to potentially cache metadata in" ]
protected boolean boot(List<ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException { return boot(bootOperations, rollbackOnRuntimeFailure, false, ModelControllerImpl.getMutableRootResourceRegistrationProvider()); }
[ "Boot with the given operations, performing full model and capability registry validation.\n\n@param bootOperations the operations. Cannot be {@code null}\n@param rollbackOnRuntimeFailure {@code true} if the boot should fail if operations fail in the runtime stage\n@return {@code true} if boot was successful\n@throws ConfigurationPersistenceException" ]
[ "This is a convenience method which reads the first project\nfrom the named MPD file using the JDBC-ODBC bridge driver.\n\n@param accessDatabaseFileName access database file name\n@return ProjectFile instance\n@throws MPXJException", "Ask the specified player for the album art in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any", "Whether this association contains no rows.\n\n@return {@code true} if this association contains no rows, {@code false} otherwise", "used for encoding url path segment", "Read properties from the active profiles.\n\nGoes through all active profiles (in the order the\nprofiles are defined in settings.xml) and extracts\nthe desired properties (if present). The prefix is\nused when looking up properties in the profile but\nnot in the returned map.\n\n@param prefix The prefix to use or null if no prefix should be used\n@param properties The properties to read\n\n@return A map containing the values for the properties that were found", "Store the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException", "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "1-D Gabor function.\n\n@param x Value.\n@param mean Mean.\n@param amplitude Amplitude.\n@param position Position.\n@param width Width.\n@param phase Phase.\n@param frequency Frequency.\n@return Gabor response.", "Exit reporting up to distributor, using information gained from status reports to the LineCountManager\n\n@return a boolean of whether this consumer should immediately exit" ]
private void createNodeMappings(MtasTokenIdFactory mtasTokenIdFactory, Level level, Level parentLevel) { MtasToken nodeToken; if (level.node != null && level.positionStart != null && level.positionEnd != null) { nodeToken = new MtasTokenString(mtasTokenIdFactory.createTokenId(), level.node, ""); nodeToken.setOffset(level.offsetStart, level.offsetEnd); nodeToken.setRealOffset(level.realOffsetStart, level.realOffsetEnd); nodeToken.addPositionRange(level.positionStart, level.positionEnd); tokenCollection.add(nodeToken); if (parentLevel != null) { parentLevel.tokens.add(nodeToken); } // only for first mapping(?) for (MtasToken token : level.tokens) { token.setParentId(nodeToken.getId()); } } }
[ "Creates the node mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param parentLevel\nthe parent level" ]
[ "For each node in specified zones, tries swapping some minimum number of\nrandom partitions per node with some minimum number of random partitions\nfrom other specified nodes. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This may get very expensive.\n\nSo if a node had partitions P1, P2, P3 and P4 and the other partitions\nset was Q1, Q2, Q3, Q4, Q5 The combinations that will be tried for\nswapping will be the cartesian product of the two sets. That is, {P1,\nQ1}, {P2, Q2}...{P2,Q1}, {P2,Q2}, in total 20 such swap pairs will be\ngenerated. The best among these swap pairs will be chosen.\n\n@param nextCandidateCluster\n@param nodeIds Node IDs within which to shuffle partitions\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param storeDefs\n@return updated cluster", "Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources.", "Deletes a template.\n\n@param id id of the template to delete.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Calculate start dates for a weekly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Use this API to delete route6.", "this class requires that the supplied enum is not fitting a\nCollection case for casting", "Returns a compact representation of all of the projects the task is in.\n\n@param task The task to get projects on.\n@return Request object", "Draw an elliptical interior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for filling", "open a readable or writeable FileChannel\n\n@param file file object\n@param mutable writeable\n@return open the FileChannel\n@throws IOException any io exception" ]
public ThumborUrlBuilder resize(int width, int height) { if (width < 0 && width != ORIGINAL_SIZE) { throw new IllegalArgumentException("Width must be a positive number."); } if (height < 0 && height != ORIGINAL_SIZE) { throw new IllegalArgumentException("Height must be a positive number."); } if (width == 0 && height == 0) { throw new IllegalArgumentException("Both width and height must not be zero."); } hasResize = true; resizeWidth = width; resizeHeight = height; return this; }
[ "Resize picture to desired size.\n\n@param width Desired width.\n@param height Desired height.\n@throws IllegalArgumentException if {@code width} or {@code height} is less than 0 or both are\n0." ]
[ "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.", "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)", "Generates a toString method using concatenation or a StringBuilder.", "Calculates the legend bounds for a custom list of legends.", "Use this API to disable nsfeature.", "set the textColor of the ColorHolder to a view\n\n@param view", "initializer to setup JSAdapter prototype in the given scope", "Set all unknown fields\n@param unknownFields the new unknown fields", "Apply filter to an image.\n\n@param source FastBitmap" ]
public static aaaglobal_binding get(nitro_service service) throws Exception{ aaaglobal_binding obj = new aaaglobal_binding(); aaaglobal_binding response = (aaaglobal_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch a aaaglobal_binding resource ." ]
[ "Record the checkout queue length\n\n@param dest Destination of the socket to checkout. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param queueLength The number of entries in the \"synchronous\" checkout\nqueue.", "Compares two avro strings which contains single store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content", "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none.", "Removes the specified object in index from the array.\n\n@param index The index to remove.", "Set the pattern scheme.\n@param isWeekDayBased flag, indicating if the week day based scheme should be set.", "Returns the expression string required\n\n@param ds\n@return", "Creates the name of the .story file to be wrote with the testcase. The\nname of the scenario must be given with spaces.\n\n@param scenarioName\n- The scenario name, with spaces\n@return the .story file name.", "Dump the contents of a row from an MPD file.\n\n@param row row data", "Performs a null edit on an item. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param itemId\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection" ]
public <T> T get(Class<T> type) { return get(type.getName(), type); }
[ "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}." ]
[ "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.", "Determines whether this table has a foreignkey of the given name.\n\n@param name The name of the foreignkey\n@return <code>true</code> if there is a foreignkey of that name", "Walk through the object graph of the specified insert object. Was used for\nrecursive object graph walk.", "I promise that this is always a collection of HazeltaskTasks", "Executes an operation on the controller latching onto an existing transaction\n\n@param operation the operation\n@param handler the handler\n@param control the transaction control\n@param prepareStep the prepare step to be executed before any other steps\n@param operationId the id of the current transaction\n@return the result of the operation", "Use this API to clear nsconfig.", "Read task data from a PEP file.", "Checks the preconditions for creating a new ParseDateTimeAbstract processor with date format and locale.\n\n@param dateFormat\nthe date format to use\n@param locale\nthe Locale used to parse the date\n@throws NullPointerException\nif dateFormat or locale is null", "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." ]
private boolean pathMatches(Path path, SquigglyContext context) { List<SquigglyNode> nodes = context.getNodes(); Set<String> viewStack = null; SquigglyNode viewNode = null; int pathSize = path.getElements().size(); int lastIdx = pathSize - 1; for (int i = 0; i < pathSize; i++) { PathElement element = path.getElements().get(i); if (viewNode != null && !viewNode.isSquiggly()) { Class beanClass = element.getBeanClass(); if (beanClass != null && !Map.class.isAssignableFrom(beanClass)) { Set<String> propertyNames = getPropertyNamesFromViewStack(element, viewStack); if (!propertyNames.contains(element.getName())) { return false; } } } else if (nodes.isEmpty()) { return false; } else { SquigglyNode match = findBestSimpleNode(element, nodes); if (match == null) { match = findBestViewNode(element, nodes); if (match != null) { viewNode = match; viewStack = addToViewStack(viewStack, viewNode); } } else if (match.isAnyShallow()) { viewNode = match; } else if (match.isAnyDeep()) { return true; } if (match == null) { if (isJsonUnwrapped(element)) { continue; } return false; } if (match.isNegated()) { return false; } nodes = match.getChildren(); if (i < lastIdx && nodes.isEmpty() && !match.isEmptyNested() && SquigglyConfig.isFilterImplicitlyIncludeBaseFields()) { nodes = BASE_VIEW_NODES; } } } return true; }
[ "perform the actual matching" ]
[ "Add an additional binary type", "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance", "Set the header names to forward from the request. Should not be defined if all is set to true\n\n@param names the header names.", "Helper method that encapsulates the minimum logic for publishing a job to\na channel.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param channel\nthe channel name\n@param jobJson\nthe job serialized as JSON", "Use this API to update clusternodegroup resources.", "Use this API to fetch servicegroupbindings resource of given name .", "Build a URL with Query String and URL Parameters.\n@param base base URL\n@param queryString query string\n@param values URL Parameters\n@return URL", "Use this API to delete dnssuffix resources of given names.", "Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction" ]
@NotNull static MetaTreeImpl.Proto saveMetaTree(@NotNull final ITreeMutable metaTree, @NotNull final EnvironmentImpl env, @NotNull final ExpiredLoggableCollection expired) { final long newMetaTreeAddress = metaTree.save(); final Log log = env.getLog(); final int lastStructureId = env.getLastStructureId(); final long dbRootAddress = log.write(DatabaseRoot.DATABASE_ROOT_TYPE, Loggable.NO_STRUCTURE_ID, DatabaseRoot.asByteIterable(newMetaTreeAddress, lastStructureId)); expired.add(dbRootAddress, (int) (log.getWrittenHighAddress() - dbRootAddress)); return new MetaTreeImpl.Proto(newMetaTreeAddress, dbRootAddress); }
[ "Saves meta tree, writes database root and flushes the log.\n\n@param metaTree mutable meta tree\n@param env enclosing environment\n@param expired expired loggables (database root to be added)\n@return database root loggable which is read again from the log." ]
[ "Returns a projection object for specifying the fields to retrieve during a specific find operation.", "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter", "Returns the text color for the JSONObject of Link provided\n@param jsonObject of Link\n@return String", "This method works as the one above, adding some properties to the message\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param properties\nto be added to the message\n@param connector\nThe connector to get the external access", "Makes object obj persistent in the underlying persistence system.\nE.G. by INSERT INTO ... or UPDATE ... in an RDBMS.\nThe ObjectModification parameter can be used to determine whether INSERT or update is to be used.\nThis functionality is typically called from transaction managers, that\ntrack which objects have to be stored. If the object is an unmaterialized\nproxy the method return immediately.", "This method returns the string representation of an object. In most\ncases this will simply involve calling the normal toString method\non the object, but a couple of exceptions are handled here.\n\n@param o the object to formatted\n@return formatted string representing input Object", "Start the operation by instantiating the first job instance in a separate Thread.\n\n@param arguments {@inheritDoc}", "Read data for a single column.\n\n@param startIndex block start\n@param length block length", "Returns a new iterator filtering any null references.\n\n@param unfiltered\nthe unfiltered iterator. May not be <code>null</code>.\n@return an unmodifiable iterator containing all elements of the original iterator without any <code>null</code>\nreferences. Never <code>null</code>." ]
@Override public void attachScriptFile(IScriptable target, IScriptFile scriptFile) { mScriptMap.put(target, scriptFile); scriptFile.invokeFunction("onAttach", new Object[] { target }); }
[ "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object." ]
[ "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.", "Method to be implemented by the RendererBuilder subtypes. In this method the library user will\ndefine the mapping between content and renderer class.\n\n@param content used to map object to Renderers.\n@return the class associated to the renderer.", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "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", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "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", "Overloads the left shift operator to provide an easy way to append multiple\nobjects as string representations to a String.\n\n@param self a String\n@param value an Object\n@return a StringBuffer built from this string\n@since 1.0", "Sets the set of property filters based on the given string.\n\n@param filters\ncomma-separates list of property ids, or \"-\" to filter all\nstatements", "Returns the zip entry for a file in the archive.\n@param filename the file name\n@return the zip entry for the file with the provided name\n@throws ZipException thrown if the file is not in the zip archive" ]
public static ResourceField getMpxjField(int value) { ResourceField result = null; if (value >= 0 && value < MPX_MPXJ_ARRAY.length) { result = MPX_MPXJ_ARRAY[value]; } return (result); }
[ "Retrieve an instance of the ResourceField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return instance of this class" ]
[ "Parse a list of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Writes a list of timephased data to the MSPDI file.\n\n@param assignmentID current assignment ID\n@param list output list of timephased data items\n@param data input list of timephased data\n@param type list type (planned or completed)", "Send a kill signal to all running instances and return as soon as the signal is sent.", "Initializes the set of report implementation.", "given the groupId, returns the groupName\n\n@param groupId ID of group\n@return name of group", "Prepare the filter for the transiton at a given time.\nThe default implementation sets the given filter property, but you could override this method to make other changes.\n@param transition the transition time in the range 0 - 1", "Read calendar data.", "Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions", "Returns whether the values of this division grouping contain the prefix block for the given prefix length\n\n@param prefixLength\n@return" ]
public int compare(Vector3 o1, Vector3 o2) { int ans = 0; if (o1 != null && o2 != null) { Vector3 d1 = o1; Vector3 d2 = o2; if (d1.x > d2.x) return 1; if (d1.x < d2.x) return -1; // x1 == x2 if (d1.y > d2.y) return 1; if (d1.y < d2.y) return -1; } else { if (o1 == null && o2 == null) return 0; if (o1 == null && o2 != null) return 1; if (o1 != null && o2 == null) return -1; } return ans; }
[ "compare between two points." ]
[ "Start and configure GreenMail using given properties.\n\n@param properties the properties such as System.getProperties()", "Get a property as an int or default value.\n\n@param key the property name\n@param defaultValue the default value", "Normalizes the matrix such that the Frobenius norm is equal to one.\n\n@param A The matrix that is to be normalized.", "Use this API to fetch nsrpcnode resource of given name .", "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.", "Invalidate the item in layout\n@param dataIndex data index", "find the middle point of two intersect points in circle,only one point will be correct\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "You can register styles object for later reference them directly. Parent\nstyles should be registered this way\n\n@param style\n@return\n@throws DJBuilderException", "Build copyright map once." ]
public static base_response delete(nitro_service client, dnsaaaarec resource) throws Exception { dnsaaaarec deleteresource = new dnsaaaarec(); deleteresource.hostname = resource.hostname; deleteresource.ipv6address = resource.ipv6address; return deleteresource.delete_resource(client); }
[ "Use this API to delete dnsaaaarec." ]
[ "Retrieve row from a nested table.\n\n@param name column name\n@return nested table rows", "Set the value of switch component.", "Returns the formula for the percentage\n@param group\n@param type\n@return", "Create the exception assignment map.\n\n@param rows calendar rows\n@return exception assignment map", "Returns the path to java executable.", "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call this method to re-prepare the query for execution.", "Returns all visble sets and pools the photo belongs to.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo to return information for.\n@return a list of {@link PhotoContext} objects\n@throws FlickrException", "Update rows in the database.", "Creates a MetaMatcher based on the filter content.\n\n@param filterAsString the String representation of the filter\n@param metaMatchers the Map of custom MetaMatchers\n@return A MetaMatcher used to match the filter content" ]
public static ScheduledJob create(String cronExpression) { ScheduledJob res = new ScheduledJob(); res.cronExpression = cronExpression; return res; }
[ "Fluent API builder.\n\n@param cronExpression\n@return" ]
[ "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)", "Loads the configuration XML from the given string.\n@since 1.3", "Parses an item IRI\n\n@param iri\nthe item IRI like http://www.wikidata.org/entity/Q42\n@throws IllegalArgumentException\nif the IRI is invalid or does not ends with an item id", "Add a LIKE clause so the column must mach the value using '%' patterns.", "Use this API to fetch statistics of servicegroup_stats resource of given name .", "Starts closing the keyboard when the hits are scrolled.", "Get the collection of contacts for the calling user.\n\n@return The Collection of Contact objects", "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", "Assigns a list of nodes in the cluster represented by this failure\ndetector configuration.\n\n@param nodes Collection of Node instances, usually determined from the\nCluster; must be non-null" ]
public static void assertUnlocked(Object object, String name) { if (RUNTIME_ASSERTIONS) { if (Thread.holdsLock(object)) { throw new RuntimeAssertion("Recursive lock of %s", name); } } }
[ "This is an assertion method that can be used by a thread to confirm that\nthe thread isn't already holding lock for an object, before acquiring a\nlock\n\n@param object\nobject to test for lock\n@param name\ntag associated with the lock" ]
[ "Checks if the required option exists.\n\n@param options OptionSet to checked\n@param opt Required option to check\n@throws VoldemortException", "This method is called if the data set has been scrolled.", "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names", "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors", "Create and serialize a JobFailure.\n\n@param thrwbl the Throwable that occurred\n@param queue the queue the job came from\n@param job the Job that failed\n@return the JSON representation of a new JobFailure\n@throws IOException if there was an error serializing the JobFailure", "At the moment we only support the case where one entity type is returned", "Remove the trailing line end from an RTF block.\n\n@param text source text\n@param formalRTF true if this is a real RTF block\n@return text with line end stripped", "Determine the raw type for the given generic parameter type.\n@param genericType the generic type to resolve\n@param typeVariableMap the TypeVariable Map to resolved against\n@return the resolved raw type", "Returns all entries in no particular order." ]
public LuaScriptBlock endBlockReturn(LuaValue value) { add(new LuaAstReturnStatement(argument(value))); return new LuaScriptBlock(script); }
[ "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance" ]
[ "Requests that the given namespace stopped being listened to for change events.\n\n@param namespace the namespace to stop listening for change events on.", "Returns the name of the current member which is the name in the case of a field, or the property name for an\naccessor method.\n\n@return The member name\n@exception XDocletException if an error occurs", "Use this API to unset the properties of nsacl6 resource.\nProperties that need to be unset are specified in args array.", "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array.", "Add columns to the tree.\n\n@param parentNode parent tree node\n@param table columns container", "Returns the command line options to be used for scalaxb, excluding the\ninput file names.", "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code null}", "Get the output mapper from processor.", "Check to see whether a packet starts with the standard header bytes, followed by a known byte identifying it.\nIf so, return the kind of packet that has been recognized.\n\n@param packet a packet that has just been received\n@param port the port on which the packet has been received\n\n@return the type of packet that was recognized, or {@code null} if the packet was not recognized" ]
public static boolean isVector(DMatrixSparseCSC a) { return (a.numCols == 1 && a.numRows > 1) || (a.numRows == 1 && a.numCols>1); }
[ "Returns true if the input is a vector\n@param a A matrix or vector\n@return true if it's a vector. Column or row." ]
[ "Print a task UID.\n\n@param value task UID\n@return task UID string", "Loads a CRF classifier from a filepath, and returns it.\n\n@param file\nFile to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Calculate delta with another vector\n@param v another vector\n@return delta vector", "multi-field string", "Handles the cases in which we can use longs rather than BigInteger\n\n@param section\n@param increment\n@param addrCreator\n@param lowerProducer\n@param upperProducer\n@param prefixLength\n@return", "Creates an IndexableTaskItem from provided FunctionalTaskItem.\n\n@param taskItem functional TaskItem\n@return IndexableTaskItem", "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.", "Use this API to fetch all the autoscaleaction resources that are configured on netscaler.", "Stops download dispatchers." ]
public ParallelTaskBuilder setSshPassword(String password) { this.sshMeta.setPassword(password); this.sshMeta.setSshLoginType(SshLoginType.PASSWORD); return this; }
[ "Sets the ssh password.\n\n@param password\nthe password\n@return the parallel task builder" ]
[ "Removes the duplicate node list.\n\n@param list\nthe list\n@return the int", "Retrieves a ProjectWriter instance which can write a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectWriter instance", "Generates timephased costs from timephased work where multiple cost rates\napply to the assignment.\n\n@param standardWorkList timephased work\n@param overtimeWorkList timephased work\n@return timephased cost", "The smallest granularity of rebalancing where-in we move partitions for a\nsub-set of stores. Finally at the end of the movement, the node is\nremoved out of rebalance state\n\n<br>\n\nAlso any errors + rollback procedures are performed at this level itself.\n\n<pre>\n| Case | hasRO | hasRW | finishedRO | Action |\n| 0 | t | t | t | rollback cluster change + swap |\n| 1 | t | t | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 2 | t | f | t | won't be triggered since hasRW is false |\n| 3 | t | f | f | nothing to do since \"rebalance state change\" should have removed everything |\n| 4 | f | t | t | rollback cluster change |\n| 5 | f | t | f | won't be triggered |\n| 6 | f | f | t | won't be triggered |\n| 7 | f | f | f | won't be triggered |\n</pre>\n\n@param batchId Rebalance batch id\n@param batchRollbackCluster Cluster to rollback to if we have a problem\n@param rebalanceTaskPlanList The list of rebalance partition plans\n@param hasReadOnlyStores Are we rebalancing any read-only stores?\n@param hasReadWriteStores Are we rebalancing any read-write stores?\n@param finishedReadOnlyStores Have we finished rebalancing of read-only\nstores?", "This method populates the task model from data read from an MPX file.\n\n@param record data read from an MPX file\n@param isText flag indicating whether the textual or numeric data is being supplied", "Pushes a basic event.\n\n@param eventName The name of the event", "Remove a named object", "Get the next available ordinal for a method ID\n\n@param methodId ID of method\n@return value of next ordinal\n@throws Exception exception", "Polls the next ParsedWord from the stack.\n\n@return next ParsedWord" ]
private void processCalendars() throws SQLException { for (ResultSetRow row : getRows("SELECT * FROM MSP_CALENDARS WHERE PROJ_ID=?", m_projectID)) { processCalendar(row); } updateBaseCalendarNames(); processCalendarData(m_project.getCalendars()); }
[ "Select calendar data from the database.\n\n@throws SQLException" ]
[ "Request to join a group.\n\nNote: if a group has rules, the client must display the rules to the user and the user must accept them (which is indicated by passing a true value to\nacceptRules) prior to making the join request.\n\n@param groupId\n- groupId parameter\n@param message\n- (required) message to group administrator\n@param acceptRules\n- (required) parameter indicating user has accepted groups rules", "Construct a new simple attachment key.\n\n@param valueClass the value class\n@param <T> the attachment type\n@return the new instance", "Return given duration in a human-friendly format. For example, \"4\nminutes\" or \"1 second\". Returns only largest meaningful unit of time,\nfrom seconds up to hours.\n\nThe longest duration it supports is hours.\n\nThis method assumes that there are 60 minutes in an hour,\n60 seconds in a minute and 1000 milliseconds in a second.\nAll currently supplied chronologies use this definition.", "Get a new token.\n\n@return 14 character String", "Read a Synchro date from an input stream.\n\n@param is input stream\n@return Date instance", "Returns a signed string representation of the given number.\n\n@param number\n@return String for BigDecimal value", "Log a fatal message with a throwable.", "Function to add a new Store to the Metadata store. This involves\n\n1. Create a new entry in the ConfigurationStorageEngine for STORES.\n\n2. Update the metadata cache.\n\n3. Re-create the 'stores.xml' key\n\n@param storeDef defines the new store to be created", "Adds a new Site matcher object to the map of server names.\n\n@param matcher the SiteMatcher of the server\n@param site the site to add" ]
public Date getStart() { Date result = null; for (ResourceAssignment assignment : m_assignments) { if (result == null || DateHelper.compare(result, assignment.getStart()) > 0) { result = assignment.getStart(); } } return (result); }
[ "Retrieves the earliest start date for all assigned tasks.\n\n@return start date" ]
[ "Helper for parsing properties\n@param p The properties object\n@param key The key to retrieve\n@param defaultValue The default value if the key does not exist\n@param used The set of keys we have seen\n@return The value of the property at the key", "Returns whether this represents a valid host name or address format.\n@return", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "List the addons already added to an app.\n@param appName new of the app\n@return a list of add-ons", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return", "Manually set the breaker to be reset and ready for use. This\nis only useful after a manual trip otherwise the breaker will\ntrip automatically again if the service is still unavailable.\nJust like a real breaker. WOOT!!!", "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster", "Use this API to fetch filtered set of authenticationradiusaction resources.\nset the filter parameter values in filtervalue object.", "Can be overridden if you want to replace or supplement the debug handling for responses.\n\n@param responseCode\n@param inputStream" ]
public float getNormalX(int vertex) { if (!hasNormals()) { throw new IllegalStateException("mesh has no normals"); } checkVertexIndexBounds(vertex); return m_normals.getFloat(vertex * 3 * SIZEOF_FLOAT); }
[ "Returns the x-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the x coordinate" ]
[ "private multi-value handlers and helpers", "Adds a value to the list if does not already exists.\n\n@param list the list\n@param value value to add if not exists in the list", "Answers the ClassDescriptor referenced by 'super' ReferenceDescriptor.\n@return ClassDescriptor or null", "Logout the current session. After calling this method,\nthe session will be cleared", "Returns the difference of sets s1 and s2.", "characters callback.", "Read custom property definitions for tasks.\n\n@param gpTasks GanttProject tasks", "Use this API to fetch a vpnglobal_intranetip_binding resources.", "Finds the beat in which the specified track position falls.\n\n@param milliseconds how long the track has been playing\n\n@return the beat number represented by that time, or -1 if the time is before the first beat" ]
public final void setWeekDay(WeekDay weekDay) { SortedSet<WeekDay> wds = new TreeSet<>(); if (null != weekDay) { wds.add(weekDay); } setWeekDays(wds); }
[ "Set the week day the events should occur.\n@param weekDay the week day to set." ]
[ "Read ClassDescriptors from the given repository file.\n@see #mergeDescriptorRepository", "Send ourselves \"updates\" about any tracks that were loaded before we started, since we missed them.", "Delivers the correct JSON Object for the stencilId\n\n@param stencilId\n@throws org.json.JSONException", "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "Ensures that no more than maxContiguousPartitionsPerZone partitions are\ncontiguous within a single zone.\n\nMoves the necessary partitions to break up contiguous runs from each zone\nto some other random zone/node. There is some chance that such random\nmoves could result in contiguous partitions in other zones.\n\n@param nextCandidateCluster cluster metadata\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return Return updated cluster metadata.", "Creates the publish button.\n\n@param updateListener the update listener\n@return the publish button", "Loads the configuration from file \"OBJ.properties\". If the system\nproperty \"OJB.properties\" is set, then the configuration in that file is\nloaded. Otherwise, the file \"OJB.properties\" is tried. If that is also\nunsuccessful, then the configuration is filled with default values.", "Given a read-only store name and a directory, swaps it in while returning\nthe directory path being swapped out\n\n@param storeName The name of the read-only store\n@param directory The directory being swapped in\n@return The directory path which was swapped out\n@throws VoldemortException", "if you want to parse an argument, you need a converter from String to Object\n\n@param commandLineOption specification of the command line options\n@param converter how to convert your String value to a castable Object" ]
public void retrieveCollections(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException { doRetrieveCollections(newObj, cld, forced, false); }
[ "Retrieve all Collection attributes of a given instance\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true, loading is forced even if cld differs" ]
[ "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump", "This method writes resource data to a PM XML file.", "we have only one implementation on classpath.", "Get the server redirects belonging to a server group\n\n@param profileId ID of profile\n@param serverGroupId ID of server group\n@return Collection of ServerRedirect for a server group", "Register the given Converter objects with the given target ConverterRegistry.\n@param converters the converter objects: implementing {@link Converter},\n{@link ConverterFactory}, or {@link GenericConverter}\n@param registry the target registry", "Use this API to disable nsacl6 resources of given names.", "Send a get module request\n\n@param name\n@param version\n@return the targeted module\n@throws GrapesCommunicationException", "Start with specifying the artifact version", "Set hint number for country" ]
protected static void invalidateSwitchPoints() { if (LOG_ENABLED) { LOG.info("invalidating switch point"); } SwitchPoint old = switchPoint; switchPoint = new SwitchPoint(); synchronized(IndyInterface.class) { SwitchPoint.invalidateAll(new SwitchPoint[]{old}); } }
[ "Callback for constant meta class update change" ]
[ "Expensive. Creates the plan for the specific settings.", "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to have a comma prepended. We could do this with a boolean,\nmaybe called \"separatorNeeded\", or \"firstValueOutput\", but then we need either a ternary\noperator or an extra nested if block. More readable is to use an initially-empty \"separator\"\nstring, which has a comma placed in it once the first value is written.\n\n<p>For extra tidiness, we note that the first if block need not try writing the separator\n(it is always empty), and the last one need not update it (it will not be used again).", "Inserts a new instance but references via the outIdentifier, which is returned as part of the ExecutionResults\nThe outIdentifier can be null.\nThe entryPoint, which can also be null, specifies the entrypoint the object is inserted into.\n\n@param object\n@param outIdentifier\n@param entryPoint\n@return", "Configure the mapping between a database column and a field.\n\n@param container column to field map\n@param name column name\n@param type field type", "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.", "validates operation against the definition and sets model for the parameters passed.\n\n@param operationObject model node of type {@link ModelType#OBJECT}, typically representing an operation request\n@param model model node in which the value should be stored\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release", "Use this API to fetch a vpnglobal_vpntrafficpolicy_binding resources.", "Set the color for the statusBar\n\n@param statusBarColor", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory" ]
private Set<HttpMethod> getHttpMethods(Method method) { Set<HttpMethod> httpMethods = new HashSet<>(); if (method.isAnnotationPresent(GET.class)) { httpMethods.add(HttpMethod.GET); } if (method.isAnnotationPresent(PUT.class)) { httpMethods.add(HttpMethod.PUT); } if (method.isAnnotationPresent(POST.class)) { httpMethods.add(HttpMethod.POST); } if (method.isAnnotationPresent(DELETE.class)) { httpMethods.add(HttpMethod.DELETE); } return Collections.unmodifiableSet(httpMethods); }
[ "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." ]
[ "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels", "Fetch flag resource by Country\n\n@param country Country\n@return int of resource | 0 value if not exists", "This method is called to format a percentage value.\n\n@param value numeric value\n@return percentage value", "Use this API to delete route6 resources of given names.", "Function to add a new Store to the Metadata store. This involves\n\n1. Create a new entry in the ConfigurationStorageEngine for STORES.\n\n2. Update the metadata cache.\n\n3. Re-create the 'stores.xml' key\n\n@param storeDef defines the new store to be created", "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", "A variant of the gamma function.\n@param a the number to apply gain to\n@param b the gain parameter. 0.5 means no change, smaller values reduce gain, larger values increase gain.\n@return the output value", "Get the size of the painting area required to draw the scalebar with labels.\n\n@param scalebarParams Parameters for the scalebar.\n@param settings Parameters for rendering the scalebar.\n@param maxLabelSize The max. size of the labels.", "Create an instance from the given config.\n\n@param param Grid param from the request." ]
public static ComplexNumber Subtract(ComplexNumber z1, double scalar) { return new ComplexNumber(z1.real - scalar, z1.imaginary); }
[ "Subtract a complex number.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the subtract of specified complex number with a scalar value." ]
[ "Open the connection to the server.\n\n@param url the url to connect to\n@return returns the input stream for the connection\n@throws IOException cannot get result", "Runs the currently entered query and displays the results.", "Removes trailing and leading whitespace, and also reduces each\nsequence of internal whitespace to a single space.", "Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.\nThe created connection will be closed if required.\n\n@param url a database url of the form\n<code>jdbc:<em>subprotocol</em>:<em>subname</em></code>\n@param c the Closure to call\n@see #newInstance(String)\n@throws SQLException if a database access error occurs", "Converts a date series configuration to a date series bean.\n@return the date series bean.", "Retrieves the earliest start date for all assigned tasks.\n\n@return start date", "Reset a timer of the given string name for the given thread. If no such\ntimer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@param threadId\nof the thread to track, or 0 if only system clock should be\ntracked", "Retrieve the Charset used to read the file.\n\n@return Charset instance", "Add a marker so we can recognize this as a metadata archive. I would use the ZipFile comment, but\nthat is not available until Java 7, and Beat Link is supposed to be backwards compatible with Java 6.\nSince we are doing this anyway, we can also provide information about the nature of the cache, and\nhow many metadata entries it contains, which is useful for auto-attachment.\n\n@param trackListEntries the tracks contained in the cache, so we can record the number\n@param playlistId the playlist contained in the cache, or 0 if it is all tracks from the media\n@param zos the stream to which the ZipFile is being written\n\n@throws IOException if there is a problem creating the format entry" ]
public static boolean isTrait(final ClassNode cNode) { return cNode!=null && ((cNode.isInterface() && !cNode.getAnnotations(TRAIT_CLASSNODE).isEmpty()) || isAnnotatedWithTrait(cNode)); }
[ "Returns true if the specified class node is a trait.\n@param cNode a class node to test\n@return true if the classnode represents a trait" ]
[ "Adds another scene object to pick against.\nEach frame all the colliders in the scene will be compared\nagainst the bounding volumes of all the collidables associated\nwith this picker.\n@param sceneObj new collidable\n@return index of collidable added, this is the CursorID in the GVRPickedObject", "Check if the path to the property correspond to an association.\n\n@param targetTypeName the name of the entity containing the property\n@param pathWithoutAlias the path to the property WITHOUT aliases\n@return {@code true} if the property is an association or {@code false} otherwise", "Flush this log file to the physical disk\n\n@throws IOException file read error", "Get the MonetaryAmount implementation class.\n\n@return the implementation class of the containing amount instance, never null.\n@see MonetaryAmount#getContext()", "Initializes the model", "Returns a flag indicating if the query given by the parameters should be ignored.\n@return A flag indicating if the query given by the parameters should be ignored.", "Get a collection of all of the user's groups.\n\n@return A Collection of Group objects\n@throws FlickrException", "Returns the value stored for the given key at the point of call.\n@param key a non null key\n@return the value stored in the map for the given key", "Adds the specified list of users as members of the project. Returns the updated project record.\n\n@param project The project to add members to.\n@return Request object" ]
public static VectorTile.Tile.GeomType toGeomType(Geometry geometry) { VectorTile.Tile.GeomType result = VectorTile.Tile.GeomType.UNKNOWN; if(geometry instanceof Point || geometry instanceof MultiPoint) { result = VectorTile.Tile.GeomType.POINT; } else if(geometry instanceof LineString || geometry instanceof MultiLineString) { result = VectorTile.Tile.GeomType.LINESTRING; } else if(geometry instanceof Polygon || geometry instanceof MultiPolygon) { result = VectorTile.Tile.GeomType.POLYGON; } return result; }
[ "Get the MVT type mapping for the provided JTS Geometry.\n\n@param geometry JTS Geometry to get MVT type for\n@return MVT type for the given JTS Geometry, may return\n{@link com.wdtinc.mapbox_vector_tile.VectorTile.Tile.GeomType#UNKNOWN}" ]
[ "1-D Forward Discrete Cosine Transform.\n\n@param data Data.", "Get the collection of the server groups\n\n@return Collection of active server groups", "Notifies all registered BufferChangeLogger instances of a change.\n\n@param newData the buffer that contains the new data being added\n@param numChars the number of valid characters in the buffer", "Dump raw data as hex.\n\n@param buffer buffer\n@param offset offset into buffer\n@param length length of data to dump\n@param ascii true if ASCII should also be printed\n@param columns number of columns\n@param prefix prefix when printing\n@return hex dump", "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", "Generate a Jongo query with provided the parameter.\n\n@param key\n@param value\n@return String", "This method creates the flattened POM what is the main task of this plugin.\n\n@param pomFile is the name of the original POM file to read and transform.\n@return the {@link Model} of the flattened POM.\n@throws MojoExecutionException if anything goes wrong (e.g. POM can not be processed).\n@throws MojoFailureException if anything goes wrong (logical error).", "Serializes descriptor instance to XML\n@param descriptor descriptor to be serialized\n@return xml representation of descriptor as string", "Calculate power of a complex number.\n\n@param z1 Complex Number.\n@param n Power.\n@return Returns a new complex number containing the power of a specified number." ]
public static base_response delete(nitro_service client, appfwlearningdata resource) throws Exception { appfwlearningdata deleteresource = new appfwlearningdata(); deleteresource.profilename = resource.profilename; deleteresource.starturl = resource.starturl; deleteresource.cookieconsistency = resource.cookieconsistency; deleteresource.fieldconsistency = resource.fieldconsistency; deleteresource.formactionurl_ffc = resource.formactionurl_ffc; deleteresource.crosssitescripting = resource.crosssitescripting; deleteresource.formactionurl_xss = resource.formactionurl_xss; deleteresource.sqlinjection = resource.sqlinjection; deleteresource.formactionurl_sql = resource.formactionurl_sql; deleteresource.fieldformat = resource.fieldformat; deleteresource.formactionurl_ff = resource.formactionurl_ff; deleteresource.csrftag = resource.csrftag; deleteresource.csrfformoriginurl = resource.csrfformoriginurl; deleteresource.xmldoscheck = resource.xmldoscheck; deleteresource.xmlwsicheck = resource.xmlwsicheck; deleteresource.xmlattachmentcheck = resource.xmlattachmentcheck; deleteresource.totalxmlrequests = resource.totalxmlrequests; return deleteresource.delete_resource(client); }
[ "Use this API to delete appfwlearningdata." ]
[ "Use this API to save cacheobject resources.", "Method handle a change on the cluster members set\n@param event", "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read.", "Adds a metadata classification to the specified file.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type added to the file.", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return", "Helper function to bind script bundler to various targets", "If directory doesn't exists try to create it.\n\n@param directory given directory to check\n@throws ReportGenerationException if can't create specified directory", "Converts this address to a prefix length\n\n@return the prefix of the indicated IP type represented by this address or null if this address is valid but cannot be represented by a network prefix length\n@throws AddressStringException if the address is invalid", "Returns a new macro resolver that loads message keys from the workplace bundle in the user setting's language.\n@param cms the CmsObject.\n@return a new macro resolver with messages from the workplace bundle in the current users locale." ]
public static void printHelp(final Options options) { Collection<Option> c = options.getOptions(); System.out.println("Command line options are:"); int longestLongOption = 0; for (Option op : c) { if (op.getLongOpt().length() > longestLongOption) { longestLongOption = op.getLongOpt().length(); } } longestLongOption += 2; String spaces = StringUtils.repeat(" ", longestLongOption); for (Option op : c) { System.out.print("\t-" + op.getOpt() + " --" + op.getLongOpt()); if (op.getLongOpt().length() < spaces.length()) { System.out.print(spaces.substring(op.getLongOpt().length())); } else { System.out.print(" "); } System.out.println(op.getDescription()); } }
[ "Prints the help on the command line\n\n@param options Options object from commons-cli" ]
[ "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails.", "Produces a new ConditionalCounter.\n\n@return a new ConditionalCounter, where order of indices is reversed", "Removes an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return this metadata object.", "Use this API to add vpnsessionaction.", "Map the EventType.\n\n@param eventType the event type\n@return the event", "Writes batch of data to the source\n@param batch\n@throws InterruptedException", "Use this API to add responderpolicy.", "Produces a new ConditionalCounter.\n\n@return a new ConditionalCounter, where order of indices is reversed", "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function" ]
@Deprecated private InputStream getImageAsStream(String suffix) throws IOException { StringBuffer buffer = getBaseImageUrl(); buffer.append(suffix); return _getImageAsStream(buffer.toString()); }
[ "Get an image as a stream. Callers must be sure to close the stream when they are done with it.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@param suffix\nThe suffix\n@return The InputStream\n@throws IOException" ]
[ "Generates a sub-trajectory", "Returns all the dependencies of a module\n\n@param module Module\n@return List<Dependency>", "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", "This method only overrides properties that are specific from Cube like await strategy or before stop events.\n\n@param overrideDockerCompositions\nthat contains information to override.", "Use this API to add clusterinstance resources.", "Answer the SQL-Clause for a SelectionCriteria\nIf the Criteria references a class with extents an OR-Clause is\nadded for each extent\n@param c SelectionCriteria", "Assign FK value to all n-side objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation", "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix.", "Updates the path_order column in the table, loops though the pathOrder array, and changes the value to the loop\nindex+1 for the specified pathId\n\n@param profileId ID of profile\n@param pathOrder array containing new order of paths" ]
@Override public String toCompressedString() { String result; if(hasNoStringCache() || (result = getStringCache().compressedString) == null) { getStringCache().compressedString = result = toNormalizedString(MACStringCache.compressedParams); } return result; }
[ "This produces a shorter string for the address that uses the canonical representation but not using leading zeroes.\n\nEach address has a unique compressed string." ]
[ "Use this API to fetch all the Interface resources that are configured on netscaler.", "Returns the service id with the propertype.\n\n@param serviceReference\n@return long value for the service id", "Evaluates an EL.\n\n@param vars the variables to be available for the evaluation.\n@param el the EL string to evaluate.\n@param returnType the class the EL evaluates to.\n@return the evaluated EL as an instance of the specified return type.\n@throws ELEvalException if the EL could not be evaluated.", "Sets the elements of this vector to uniformly distributed random values\nin a specified range, using a supplied random number generator.\n\n@param lower\nlower random value (inclusive)\n@param upper\nupper random value (exclusive)\n@param generator\nrandom number generator", "Throws an exception or logs a message\n\n@param message The message for the exception or the log message. Must be internationalized", "Assigns this retention policy to folder.\n@param folder the folder to assign policy to.\n@return info about created assignment.", "Copy the contents of the given InputStream into a String.\nLeaves the stream open when done.\n@param in the InputStream to copy from\n@return the String that has been copied to\n@throws IOException in case of I/O errors", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions", "Return the number of ignored or assumption-ignored tests." ]
public double getRate(AnalyticModel model) { if(model==null) { throw new IllegalArgumentException("model==null"); } ForwardCurve forwardCurve = model.getForwardCurve(forwardCurveName); if(forwardCurve==null) { throw new IllegalArgumentException("No forward curve of name '" + forwardCurveName + "' found in given model:\n" + model.toString()); } double fixingDate = schedule.getFixing(0); return forwardCurve.getForward(model,fixingDate); }
[ "Return the par FRA rate for a given curve.\n\n@param model A given model.\n@return The par FRA rate." ]
[ "Convert the holiday format from EquivalenceClassTransformer into a date format\n\n@param holiday the date\n@return a date String in the format yyyy-MM-dd", "Adds a patch operation.\n@param op the operation type. Must be add, replace, remove, or test.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value to be set.", "2-D Integer array to double array.\n\n@param array Integer array.\n@return Double array.", "This method dumps the entire contents of a file to an output\nprint writer as ascii data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "the applications main loop.", "Return the list of actions on the tuple.\nInherently deduplicated operations\n\n@return the operations to execute on the Tuple", "Use this API to delete sslcipher resources of given names.", "Use this API to fetch dnsnsecrec resource of given name .", "Shut down the input manager.\n\nAfter this call, GearVRf will not be able to access IO devices." ]
protected ZipEntry getZipEntry(String filename) throws ZipException { // yes ZipEntry entry = getZipFile().getEntry(filename); // path to file might be relative, too if ((entry == null) && filename.startsWith("/")) { entry = m_zipFile.getEntry(filename.substring(1)); } if (entry == null) { throw new ZipException( Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_FILE_NOT_FOUND_IN_ZIP_1, filename)); } return entry; }
[ "Returns the zip entry for a file in the archive.\n@param filename the file name\n@return the zip entry for the file with the provided name\n@throws ZipException thrown if the file is not in the zip archive" ]
[ "Used to apply or update the watermark for the item.\n@param itemUrl url template for the item.\n@param imprint the value must be \"default\", as custom watermarks is not yet supported.\n@return the watermark associated with the item.", "Returns the version document of the given document, if any; returns null otherwise.\n@param document the document to get the version from.\n@return the version of the given document, if any; returns null otherwise.", "Acquire transaction with a single permit in a thread. Transactions are acquired reentrantly, i.e.\nwith respect to transactions already acquired in the thread.\n\n@return the number of acquired permits, identically equal to 1.", "Read a single weekday from the provided JSON value.\n@param val the value to read the week day from.\n@return the week day read\n@throws IllegalArgumentException thrown if the provided JSON value is not the representation of a week day.", "Add an empty work week.\n\n@return new work week", "Get the bounding box for a certain tile.\n\n@param code\nThe unique tile code. Determines what tile we're talking about.\n@param maxExtent\nThe maximum extent of the grid to which this tile belongs.\n@param scale\nThe current client side scale.\n@return Returns the bounding box for the tile, expressed in the layer's coordinate system.", "Another method to force an input string into a fixed width field\nand set it on the right with the left side filled with space ' ' characters.\n\n@param input input string\n@param width required width\n@return formatted string", "Creates an upper triangular matrix whose values are selected from a uniform distribution. If hessenberg\nis greater than zero then a hessenberg matrix of the specified degree is created instead.\n\n@param dimen Number of rows and columns in the matrix..\n@param hessenberg 0 for triangular matrix and &gt; 0 for hessenberg matrix.\n@param min minimum value an element can be.\n@param max maximum value an element can be.\n@param rand random number generator used.\n@return The randomly generated matrix.", "Adds all items from the iterator to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed" ]
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, java.io.IOException { if (flavor.isMimeTypeEqual(OJBMETADATA_FLAVOR)) return selectedDescriptors; else throw new UnsupportedFlavorException(flavor); }
[ "Returns an object which represents the data to be transferred. The class\nof the object returned is defined by the representation class of the flavor.\n\n@param flavor the requested flavor for the data\n@see DataFlavor#getRepresentationClass\n@exception IOException if the data is no longer available\nin the requested flavor.\n@exception UnsupportedFlavorException if the requested data flavor is\nnot supported." ]
[ "Delete an object.", "If needed declares and sets up internal data structures.\n\n@param A Matrix being decomposed.", "Find the length of the block starting from 'start'.", "Use this API to flush cachecontentgroup.", "Retrieves the default calendar for this project based on the calendar name\ngiven in the project properties. If a calendar of this name cannot be found, then\nthe first calendar listed for the project will be returned. If the\nproject contains no calendars, then a default calendar is added.\n\n@return default projectCalendar instance", "Override for customizing XmlMapper and ObjectMapper", "Abort an upload session, discarding any chunks that were uploaded to it.", "Add a new server mapping to current profile\n\n@param sourceHost source hostname\n@param destinationHost destination hostname\n@param hostHeader host header\n@return ServerRedirect", "Sets the location value as string.\n\n@param value the string representation of the location value (JSON)" ]
public WebhookResponse send(String url, Payload payload) throws IOException { SlackHttpClient httpClient = getHttpClient(); Response httpResponse = httpClient.postJsonPostRequest(url, payload); String body = httpResponse.body().string(); httpClient.runHttpResponseListeners(httpResponse, body); return WebhookResponse.builder() .code(httpResponse.code()) .message(httpResponse.message()) .body(body) .build(); }
[ "Send a data to Incoming Webhook endpoint." ]
[ "Returns the effective batch size. If the dialect is multiget capable and a batch size has been configured, use\nthat one, otherwise the default.", "Added in Gerrit 2.11.", "Adds the worker thread pool attributes to the subysystem add method", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Invoke to tell listeners that an step started event processed", "Auto re-initialize external resourced\nif resources have been already released.", "Set the channel. This will return whether the channel could be set successfully or not.\n\n@param newChannel the channel\n@return whether the operation succeeded or not", "Returns the target locales.\n\n@return the target locales, never null.", "Logout the current session. After calling this method,\nthe session will be cleared" ]
public static String getTokenText(INode node) { if (node instanceof ILeafNode) return ((ILeafNode) node).getText(); else { StringBuilder builder = new StringBuilder(Math.max(node.getTotalLength(), 1)); boolean hiddenSeen = false; for (ILeafNode leaf : node.getLeafNodes()) { if (!leaf.isHidden()) { if (hiddenSeen && builder.length() > 0) builder.append(' '); builder.append(leaf.getText()); hiddenSeen = false; } else { hiddenSeen = true; } } return builder.toString(); } }
[ "This method converts a node to text.\n\nLeading and trailing text from hidden tokens (whitespace/comments) is removed. Text from hidden tokens that is\nsurrounded by text from non-hidden tokens is summarized to a single whitespace.\n\nThe preferred use case of this method is to convert the {@link ICompositeNode} that has been created for a data\ntype rule to text.\n\nThis is also the recommended way to convert a node to text if you want to invoke\n{@link org.eclipse.xtext.conversion.IValueConverterService#toValue(String, String, INode)}" ]
[ "One of DEFAULT, or LARGE.", "Given the key, figures out which partition on the local node hosts the key.\n\n@param key\n@return", "Helper method to set a value in the internal header list.\n\n@param headers the headers to set the value in\n@param name the name to set\n@param value the value to set", "Use this API to update route6 resources.", "Returns a copy of this year-quarter with the new year and quarter, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newQuarter the quarter-of-year to represent, validated not null\n@return the year-quarter, not null", "Computes the determinant for the specified matrix. It must be square and have\nthe same width and height as what was specified in the constructor.\n\n@param mat The matrix whose determinant is to be computed.\n@return The determinant.", "Wait until a range has no notifications.\n\n@return true if notifications were ever seen while waiting", "Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument", "If users want to implement clone on all their objects, we can use this\nto make copies. This is hazardous as user may mess it up, but it is also\npotentially the fastest way of making a copy.\n\nUsually the OjbCloneable interface should just be delegating to the clone()\noperation that the user has implemented.\n\n@see org.apache.ojb.otm.copy.ObjectCopyStrategy#copy(Object)" ]
public static base_responses add(nitro_service client, systemuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemuser addresources[] = new systemuser[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new systemuser(); addresources[i].username = resources[i].username; addresources[i].password = resources[i].password; addresources[i].externalauth = resources[i].externalauth; addresources[i].promptstring = resources[i].promptstring; addresources[i].timeout = resources[i].timeout; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add systemuser resources." ]
[ "Use this API to login into Netscaler.\n@param username Username\n@param password Password for the Netscaler.\n@param timeout timeout for netscaler session.Default is 1800secs\n@return status of the operation performed.\n@throws Exception nitro exception is thrown.", "Recursively read a task, and any sub tasks.\n\n@param mpxjParent Parent for the MPXJ tasks\n@param gpTask GanttProject task", "Resolves a conflict between a synchronized document's local and remote state. The resolution\nwill result in either the document being desynchronized or being replaced with some resolved\nstate based on the conflict resolver specified for the document. Uses the last uncommitted\nlocal event as the local state.\n\n@param nsConfig the namespace synchronization config of the namespace where the document\nlives.\n@param docConfig the configuration of the document that describes the resolver and current\nstate.\n@param remoteEvent the remote change event that is conflicting.", "Get the relative path.\n\n@return the relative path", "Exceptions specific to each operation is handled in the corresponding\nsubclass. At this point we don't know the reason behind this exception.\n\n@param exception", "Creates a ServiceCall from an observable object and a callback.\n\n@param observable the observable to create from\n@param callback the callback to call when events happen\n@param <T> the type of the response\n@return the created ServiceCall", "Gets the Square Euclidean distance between two points.\n\n@param x A point in space.\n@param y A point in space.\n@return The Square Euclidean distance between x and y.", "Generate a report about the targeted module dependencies\n\n@param moduleId String\n@param filters FiltersHolder\n@return DependencyReport", "Does not mutate the TestMatrix.\nVerifies that the test matrix contains all the required tests and that\neach required test is valid.\n\n@param testMatrix the {@link TestMatrixArtifact} to be verified.\n@param matrixSource a {@link String} of the source of proctor artifact. For example a path of proctor artifact file.\n@param requiredTests a {@link Map} of required test. The {@link TestSpecification} would be verified\n@param functionMapper a given el {@link FunctionMapper}\n@param providedContext a {@link Map} containing variables describing the context in which the request is executing. These will be supplied to verifying all rules.\n@param dynamicTests a {@link Set} of dynamic tests determined by filters.\n@return a {@link ProctorLoadResult} to describe the result of verification. It contains errors of verification and a list of missing test." ]
public void set(int i, double value) { switch (i) { case 0: { x = value; break; } case 1: { y = value; break; } case 2: { z = value; break; } default: { throw new ArrayIndexOutOfBoundsException(i); } } }
[ "Sets a single element of this vector. Elements 0, 1, and 2 correspond to\nx, y, and z.\n\n@param i\nelement index\n@param value\nelement value\n@return element value throws ArrayIndexOutOfBoundsException if i is not\nin the range 0 to 2." ]
[ "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value.", "Emit an enum event with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(Enum, Object...)", "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return", "Processes the template for all column definitions of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Stops the playback of a sound and destroys the corresponding Sound Object or Soundfield.", "Add a property.", "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", "Replaces current Collection mapped to key with the specified Collection.\nUse carefully!", "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" ]
public final void setColorPreferred(boolean preferColor) { if (this.preferColor.compareAndSet(!preferColor, preferColor) && isRunning()) { stop(); try { start(); } catch (Exception e) { logger.error("Unexplained exception restarting; we had been running already!", e); } } }
[ "Set whether we should obtain color versions of waveforms and previews when they are available. This will only\naffect waveforms loaded after the setting has been changed. If this changes the setting, and we were running,\nstop and restart in order to flush and reload the correct waveform versions.\n\n@param preferColor if {@code true}, the full-color versions of waveforms will be requested, if {@code false}\nonly the older blue versions will be retrieved" ]
[ "Use this API to fetch vpnclientlessaccesspolicy resource of given name .", "Sets the resource to which this calendar is linked. Note that this\nmethod updates the calendar's name to be the same as the resource name.\nIf the resource does not yet have a name, then the calendar is given\na default name.\n\n@param resource resource instance", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Returns the first product found in the vector of calibration products\nwhich matches the given symbol, where symbol is the String set in\nthe calibrationSpecs.\n\n@param symbol A given symbol string.\n@return The product associated with that symbol.", "Determines the encoding block groups for the specified data.", "Return given duration in a human-friendly format. For example, \"4\nminutes\" or \"1 second\". Returns only largest meaningful unit of time,\nfrom seconds up to hours.\n\nThe longest duration it supports is hours.\n\nThis method assumes that there are 60 minutes in an hour,\n60 seconds in a minute and 1000 milliseconds in a second.\nAll currently supplied chronologies use this definition.", "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", "Calculate start dates for a weekly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "read message from file\n\n@param readOffset offset in this channel(file);not the message offset\n@param size max data size\n@return messages sharding data with file log\n@throws IOException reading file failed" ]
private void verityLicenseIsConflictFree(final DbLicense newComer) { if(newComer.getRegexp() == null || newComer.getRegexp().isEmpty()) { return; } final DbLicense existing = repoHandler.getLicense(newComer.getName()); final List<DbLicense> licenses = repoHandler.getAllLicenses(); if(null == existing) { licenses.add(newComer); } else { existing.setRegexp(newComer.getRegexp()); } final Optional<Report> reportOp = ReportsRegistry.findById(MULTIPLE_LICENSE_MATCHING_STRINGS); if (reportOp.isPresent()) { final Report reportDef = reportOp.get(); ReportRequest reportRequest = new ReportRequest(); reportRequest.setReportId(reportDef.getId()); Map<String, String> params = new HashMap<>(); // // TODO: Make the organization come as an external parameter from the client side. // This may have impact on the UI, as when the user will update a license he will // have to specify which organization he's editing the license for (in case there // are more organizations defined in the collection). // params.put("organization", "Axway"); reportRequest.setParamValues(params); final RepositoryHandler wrapped = wrapperBuilder .start(repoHandler) .replaceGetMethod("getAllLicenses", licenses) .build(); final ReportExecution execution = reportDef.execute(wrapped, reportRequest); List<String[]> data = execution.getData(); final Optional<String[]> first = data .stream() .filter(strings -> strings[2].contains(newComer.getName())) .findFirst(); if(first.isPresent()) { final String[] strings = first.get(); final String message = String.format( "Pattern conflict for string entry %s matching multiple licenses: %s", strings[1], strings[2]); LOG.info(message); throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity(message) .build()); } else { if(!data.isEmpty() && !data.get(0)[2].isEmpty()) { LOG.info("There are remote conflicts between existing licenses and artifact strings"); } } } else { if(LOG.isWarnEnabled()) { LOG.warn(String.format("Cannot find report by id %s", MULTIPLE_LICENSE_MATCHING_STRINGS)); } } }
[ "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" ]
[ "Obtain the master partition for a given key\n\n@param key\n@return master partition id", "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.", "Search for the second entry in the second database. Use this method for databases configured with no duplicates.\n\n@param second second key (value for first).\n@return null if no entry found, otherwise the value.", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value", "Use this API to unset the properties of onlinkipv6prefix resource.\nProperties that need to be unset are specified in args array.", "Retrieve the dir pointed to by 'latest' symbolic-link or the current\nversion dir\n\n@return Current version directory, else null", "given is at the begining, of is at the end", "This method computes the list of unnamed parameters, by filtering the\nlist of raw arguments, stripping out the named parameters.", "Gets the instance associated with the current thread." ]
public static Thread addShutdownHook(final Process process) { final Thread thread = new Thread(new Runnable() { @Override public void run() { if (process != null) { process.destroy(); try { process.waitFor(); } catch (InterruptedException e) { throw new RuntimeException(e); } } } }); thread.setDaemon(true); Runtime.getRuntime().addShutdownHook(thread); return thread; }
[ "Adds a shutdown hook for the process.\n\n@param process the process to add a shutdown hook for\n\n@return the thread set as the shutdown hook\n\n@throws java.lang.SecurityException If a security manager is present and it denies {@link\njava.lang.RuntimePermission <code>RuntimePermission(\"shutdownHooks\")</code>}" ]
[ "Counts one entity. Every once in a while, the current time is checked so\nas to print an intermediate report roughly every ten seconds.", "Adds OPT_U | OPT_URL option to OptionParser, with multiple arguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Returns the squared of the Euclidean distance between this vector and\nvector v.\n\n@return squared distance between this vector and v", "public for testing purpose", "Finish initializing.\n\n@throws GeomajasException oops", "This method is called to format a time value.\n\n@param value time value\n@return formatted time value", "Detects if the current browser is a Sony Mylo device.\n@return detection of a Sony Mylo device", "Use this API to add autoscaleprofile resources.", "Constructs a triangule Face from vertices v0, v1, and v2.\n\n@param v0\nfirst vertex\n@param v1\nsecond vertex\n@param v2\nthird vertex" ]
public static void pauseTimer(final String type) { TransactionLogger instance = getInstance(); if (instance == null) { return; } instance.components.get(type).pauseTimer(); }
[ "Pause component timer for current instance\n@param type - of component" ]
[ "Number of failed actions in scheduler", "Adds a command class to the list of supported command classes by this node.\nDoes nothing if command class is already added.\n@param commandClass the command class instance to add.", "Resize the mesh to given size for each axis.\n\n@param mesh Mesh to be resized.\n@param xsize Size for x-axis.\n@param ysize Size for y-axis.\n@param zsize Size fof z-axis.", "Run a task periodically, for a set number of times.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@param repetitions\nRepeat count\n@return {@code null} if {@code repetitions < 1}; otherwise, an interface\nthat lets you query the status; cancel; or reschedule the event.", "Use this API to fetch a cmpglobal_cmppolicy_binding resources.", "Handle an end time change.\n@param event the change event.", "Returns a list with argument words that are not equal in all cases", "Get the first non-white Y point\n@param img Image in memory\n@return the trimmed y start", "set the textColor of the ColorHolder to an drawable\n\n@param ctx\n@param drawable" ]
public void loginAndRedirectBack(Object userIdentifier, String defaultLandingUrl) { login(userIdentifier); RedirectToLoginUrl.redirectToOriginalUrl(this, defaultLandingUrl); }
[ "Login the user and redirect back to original URL. If no\noriginal URL found then redirect to `defaultLandingUrl`.\n\n@param userIdentifier\nthe user identifier, could be either userId or username\n@param defaultLandingUrl\nthe URL to be redirected if original URL not found" ]
[ "convert filename to clean filename", "Checks, if the end type is valid for the set pattern type.\n@return a flag, indicating if the end type is valid for the pattern type.", "Gen job id.\n\n@return the string", "Returns an iban with replaced check digit.\n\n@param iban The iban\n@return The iban without the check digit", "Use this API to update transformpolicy.", "Get the multicast socket address.\n\n@return the multicast address", "Gets the proper modulus operation.\n\n@param x Integer.\n@param m Modulo.\n@return Modulus.", "Look up the database server port reported by a given player. You should not use this port directly; instead\nask this class for a session to use while you communicate with the database.\n\n@param player the player number of interest\n\n@return the port number on which its database server is running, or -1 if unknown\n\n@throws IllegalStateException if not running", "Output the SQL type for the default value for the type." ]
private static int blockLength(int start, QrMode[] inputMode) { QrMode mode = inputMode[start]; int count = 0; int i = start; do { count++; } while (((i + count) < inputMode.length) && (inputMode[i + count] == mode)); return count; }
[ "Find the length of the block starting from 'start'." ]
[ "Take a string and make it an iterable ContentStream", "Creates an IBlur instance for the given algorithm enum\n\n@param algorithm\n@param contextWrapper\n@return", "Returns the index of a key in the set.\n\n@param key The key to search for.\n@return Returns the index of the key if it exists, else a negative integer.", "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "Generates required number of placeholders as string.\n\nExample: {@code numberOfPlaceholders == 1, result == \"?\"},\n{@code numberOfPlaceholders == 2, result == \"?,?\"}.\n\n@param numberOfPlaceholders required amount of placeholders, should be {@code > 0}.\n@return string with placeholders.", "Create a Build retention object out of the build\n\n@param build The build to create the build retention out of\n@param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded.\n@return a new Build retention", "Visits a parameter of this method.\n\n@param name\nparameter name or null if none is provided.\n@param access\nthe parameter's access flags, only <tt>ACC_FINAL</tt>,\n<tt>ACC_SYNTHETIC</tt> or/and <tt>ACC_MANDATED</tt> are\nallowed (see {@link Opcodes}).", "1-D Gabor function.\n\n@param x Value.\n@param mean Mean.\n@param amplitude Amplitude.\n@param position Position.\n@param width Width.\n@param phase Phase.\n@param frequency Frequency.\n@return Gabor response.", "Open the log file for writing." ]
public static String getTabularData(String[] labels, String[][] data, int padding) { int[] size = new int[labels.length]; for (int i = 0; i < labels.length; i++) { size[i] = labels[i].length() + padding; } for (String[] row : data) { for (int i = 0; i < labels.length; i++) { if (row[i].length() >= size[i]) { size[i] = row[i].length() + padding; } } } StringBuffer tabularData = new StringBuffer(); for (int i = 0; i < labels.length; i++) { tabularData.append(labels[i]); tabularData.append(fill(' ', size[i] - labels[i].length())); } tabularData.append("\n"); for (int i = 0; i < labels.length; i++) { tabularData.append(fill('=', size[i] - 1)).append(" "); } tabularData.append("\n"); for (String[] row : data) { for (int i = 0; i < labels.length; i++) { tabularData.append(row[i]); tabularData.append(fill(' ', size[i] - row[i].length())); } tabularData.append("\n"); } return tabularData.toString(); }
[ "Return tabular data\n@param labels Labels array\n@param data Data bidimensional array\n@param padding Total space between fields\n@return String" ]
[ "Add a new check box.\n@param date the date for the check box\n@param checkState the initial check state.", "Calculates the world matrix based on the local matrix.", "Returns an entry with the given proposal and prefix, or null if the proposal is not valid.\nIf it is valid, the initializer function is applied to it.", "Calculates the bearing, in degrees, of the end LatLong point from this\nLatLong point.\n\n@param end The point that the bearing is calculated for.\n@return The bearing, in degrees, of the supplied point from this point.", "Apply content type to response with result provided.\n\nIf `result` is an error then it might not apply content type as requested:\n* If request is not ajax request, then use `text/html`\n* If request is ajax request then apply requested content type only when `json` or `xml` is requested\n* otherwise use `text/html`\n\n@param result\nthe result used to check if it is error result\n@return this `ActionContext`.", "Updates the statements of the item document identified by the given item\nid. The updates are computed with respect to the current data found\nonline, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged.\n\n@param itemIdValue\nid of the document to be updated\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are IO problems, such as missing network connection", "Drives the unit test.", "Throws an exception if the current thread is not a GL thread.\n\n@since 1.6.5", "Prepare a parallel HTTP PUT Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder" ]
public BoxFile.Info getFileInfo(String fileID, String... fields) { String queryString = new QueryStringBuilder().appendParam("fields", fields).toString(); URL url = FILE_INFO_URL_TEMPLATE.buildWithQuery(this.api.getBaseURL(), queryString, fileID); BoxAPIRequest request = new BoxAPIRequest(this.api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject jsonObject = JsonObject.readFrom(response.getJSON()); BoxFile file = new BoxFile(this.api, jsonObject.get("id").asString()); return file.new Info(response.getJSON()); }
[ "Gets information about a trashed file that's limited to a list of specified fields.\n@param fileID the ID of the trashed file.\n@param fields the fields to retrieve.\n@return info about the trashed file containing only the specified fields." ]
[ "Convert one project file format to another.\n\n@param inputFile input file\n@param outputFile output file\n@throws Exception", "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", "Creates a Bytes object by copying the data of the given byte array", "Helper method that stores in a hash map how often a certain key occurs.\nIf the key has not been encountered yet, a new entry is created for it in\nthe map. Otherwise the existing value for the key is incremented.\n\n@param map\nthe map where the counts are stored\n@param key\nthe key to be counted\n@param count\nvalue by which the count should be incremented; 1 is the usual\ncase", "Return the AnnotationNode for the named annotation, or else null.\nSupports Groovy 1.5 and Groovy 1.6.\n@param node - the AnnotatedNode\n@param name - the name of the annotation\n@return the AnnotationNode or else null", "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "Gets any assignments for this task.\n@return a list of assignments for this task.", "Switches from a dense to sparse matrix", "Split an artifact gavc to get the groupId\n@param gavc\n@return String" ]
public static aaauser_vpntrafficpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding(); obj.set_username(username); aaauser_vpntrafficpolicy_binding response[] = (aaauser_vpntrafficpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name ." ]
[ "Returns the intersection of sets s1 and s2.", "Returns the local collection representing the given namespace.\n\n@param namespace the namespace referring to the local collection.\n@param resultClass the {@link Class} that represents documents in the collection.\n@param <T> the type documents in the collection.\n@return the local collection representing the given namespace.", "Returns a string array of the methods loaded for a class\n\n@param pluginClass name of class\n@return string array of the methods loaded for the class\n@throws Exception exception", "Injects bound fields\n\n@param instance The instance to inject into", "Configure a new user defined field.\n\n@param fieldType field type\n@param dataType field data type\n@param name field name", "Command to select a document from the POIFS for viewing.\n\n@param entry document to view", "Load all string recognize.", "This method is called to format a task type.\n\n@param value task type value\n@return formatted task type", "Add a newline to this sequence according to the configured lineDelimiter if the last line contains\nsomething besides whitespace." ]
public static Diagram parseJson(String json, Boolean keepGlossaryLink) throws JSONException { JSONObject modelJSON = new JSONObject(json); return parseJson(modelJSON, keepGlossaryLink); }
[ "Parse the json string to the diagram model, assumes that the json is\nhierarchical ordered\n@param json\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException" ]
[ "Gets the addresses of the child resources under the given resource.\n\n@param context the operation context\n@param registry registry entry representing the resource\n@param resource the current resource\n@param validChildType a single child type to which the results should be limited. If {@code null} the result\nshould include all child types\n@return map where the keys are the child types and the values are a set of child names associated with a type", "Use this API to convert sslpkcs8.", "Generates JUnit 4 RunListener instances for any user defined RunListeners", "Get the features collection from a GeoJson inline string or URL.\n\n@param template the template\n@param features what to parse\n@return the feature collection\n@throws IOException", "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.", "Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array.", "Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions", "Post a build info to the server\n\n@param moduleName String\n@param moduleVersion String\n@param buildInfo Map<String,String>\n@param user String\n@param password String\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Reads input data from a JSON file in the output directory." ]
public void install(@Observes(precedence = 90) CubeDockerConfiguration configuration, ArquillianDescriptor arquillianDescriptor) { DockerCompositions cubes = configuration.getDockerContainersContent(); final SeleniumContainers seleniumContainers = SeleniumContainers.create(getBrowser(arquillianDescriptor), cubeDroneConfigurationInstance.get()); cubes.add(seleniumContainers.getSeleniumContainerName(), seleniumContainers.getSeleniumContainer()); final boolean recording = cubeDroneConfigurationInstance.get().isRecording(); if (recording) { cubes.add(seleniumContainers.getVncContainerName(), seleniumContainers.getVncContainer()); cubes.add(seleniumContainers.getVideoConverterContainerName(), seleniumContainers.getVideoConverterContainer()); } seleniumContainersInstanceProducer.set(seleniumContainers); System.out.println("SELENIUM INSTALLED"); System.out.println(ConfigUtil.dump(cubes)); }
[ "ten less than Cube Q" ]
[ "Triggers a replication request.", "Process a file.\n\n@param file the file to be processed\n@param mode the patching mode\n@throws IOException", "Uploads a new large file.\n@param boxApi the API connection to be used by the upload session.\n@param folderId the id of the folder in which the file will be uploaded.\n@param stream the input stream that feeds the content of the file.\n@param url the upload session URL.\n@param fileName the name of the file to be created.\n@param fileSize the total size of the file.\n@return the created file instance.\n@throws InterruptedException when a thread gets interupted.\n@throws IOException when reading a stream throws exception.", "Use this API to add policydataset.", "Use this API to update callhome.", "Use this API to add cachepolicylabel.", "This method prints goal information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return goals the IGoal[] with all the information, so the tester can\nlook for information", "Use this API to fetch dnstxtrec resource of given name .", "Logs to Info if the debug level is greater than or equal to 1." ]
public static Iterable<BoxUser.Info> getAppUsersByExternalAppUserID(final BoxAPIConnection api, final String externalAppUserId, final String... fields) { return getUsersInfoForType(api, null, null, externalAppUserId, fields); }
[ "Gets any app users that has an exact match with the externalAppUserId term.\n@param api the API connection to be used when retrieving the users.\n@param externalAppUserId the external app user id that has been set for app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing users matching the given email" ]
[ "Use this API to enable clusterinstance of given name.", "Use this API to update Interface resources.", "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map", "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner.", "Migrate to Jenkins \"Credentials\" plugin from the old credential implementation", "Send an ERROR log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param msg The message you would like logged.\n@return", "append normal text\n\n@param text normal text\n@return SimplifySpanBuild", "Write calendar hours.\n\n@param parentCalendar parent calendar instance\n@param record calendar hours instance\n@throws IOException", "Use this API to fetch servicegroup_lbmonitor_binding resources of given name ." ]
protected void aliasGeneric( Object variable , String name ) { if( variable.getClass() == Integer.class ) { alias(((Integer)variable).intValue(),name); } else if( variable.getClass() == Double.class ) { alias(((Double)variable).doubleValue(),name); } else if( variable.getClass() == DMatrixRMaj.class ) { alias((DMatrixRMaj)variable,name); } else if( variable.getClass() == FMatrixRMaj.class ) { alias((FMatrixRMaj)variable,name); } else if( variable.getClass() == DMatrixSparseCSC.class ) { alias((DMatrixSparseCSC)variable,name); } else if( variable.getClass() == SimpleMatrix.class ) { alias((SimpleMatrix) variable, name); } else if( variable instanceof DMatrixFixed ) { DMatrixRMaj M = new DMatrixRMaj(1,1); ConvertDMatrixStruct.convert((DMatrixFixed)variable,M); alias(M,name); } else if( variable instanceof FMatrixFixed ) { FMatrixRMaj M = new FMatrixRMaj(1,1); ConvertFMatrixStruct.convert((FMatrixFixed)variable,M); alias(M,name); } else { throw new RuntimeException("Unknown value type of "+ (variable.getClass().getSimpleName())+" for variable "+name); } }
[ "Aliases variables with an unknown type.\n@param variable The variable being aliased\n@param name Name of the variable" ]
[ "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Determine the raw type for the given generic parameter type.\n@param genericType the generic type to resolve\n@param typeVariableMap the TypeVariable Map to resolved against\n@return the resolved raw type", "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", "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", "Adds a data source to the configuration. If in deduplication mode\ngroupno == 0, otherwise it gives the number of the group to which\nthe data source belongs.", "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Send an ERROR log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param msg The message you would like logged.\n@return", "Converts the paged list.\n\n@param uList the resource list to convert from\n@return the converted list", "Converts from partitionId to nodeId. The list of partition IDs,\npartitionIds, is expected to be a \"replicating partition list\", i.e., the\nmapping from partition ID to node ID should be one to one.\n\n@param partitionIds List of partition IDs for which to find the Node ID\nfor the Node that owns the partition.\n@return List of node ids, one for each partition ID in partitionIds\n@throws VoldemortException If multiple partition IDs in partitionIds map\nto the same Node ID." ]
protected byte[] getUpperBytesInternal() { byte cached[]; if(hasNoValueCache()) { ValueCache cache = valueCache; cache.upperBytes = cached = getBytesImpl(false); if(!isMultiple()) { cache.lowerBytes = cached; } } else { ValueCache cache = valueCache; if((cached = cache.upperBytes) == null) { if(!isMultiple()) { if((cached = cache.lowerBytes) != null) { cache.upperBytes = cached; } else { cache.lowerBytes = cache.upperBytes = cached = getBytesImpl(false); } } else { cache.upperBytes = cached = getBytesImpl(false); } } } return cached; }
[ "Gets the bytes for the highest address in the range represented by this address.\n\n@return" ]
[ "Map a single ResultSet row to a T instance.\n\n@throws SQLException", "Add a LIKE clause so the column must mach the value using '%' patterns.", "Safe write error response.\n\n@param channel the channel\n@param header the request header\n@param error the exception", "GetJob helper - String predicates are all created the same way, so this factors some code.", "Creates a window visually showing the matrix's state. Block means an element is zero.\nRed positive and blue negative. More intense the color larger the element's absolute value\nis.\n\n@param A A matrix.\n@param title Name of the window.", "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "Use this API to fetch sslservice resource of given name .", "Adds format information to eval.", "Removes the specified list of users from following the project, this will not affect project membership status.\nReturns the updated project record.\n\n@param project The project to remove followers from.\n@return Request object" ]
public void finished() throws Throwable { if( state == FINISHED ) { return; } State previousState = state; state = FINISHED; methodInterceptor.enableMethodInterception( false ); try { if( previousState == STARTED ) { callFinishLifeCycleMethods(); } } finally { listener.scenarioFinished(); } }
[ "Has to be called when the scenario is finished in order to execute after methods." ]
[ "Determine if a CharSequence can be parsed as a Long.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isLong(String)\n@since 1.8.2", "Submit a operations. Throw a run time exception if the operations is\nalready submitted\n\n@param operation The asynchronous operations to submit\n@param requestId Id of the request", "Try to unlink the declaration from the importerService referenced by the ServiceReference,.\nreturn true if they have been cleanly unlink, false otherwise.\n\n@param declaration The Declaration\n@param declarationBinderRef The ServiceReference of the ImporterService\n@return true if they have been cleanly unlink, false otherwise.", "Clear the mask for a new selection", "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", "Returns the full path of the resource file with extension.\n\n@return path of the GVRAndroidResource. May return null if the\nresource is not associated with any file", "Validates the wrapped value and returns a localized error message in case of invalid values.\n@return <code>null</code> if the value is valid, a suitable localized error message otherwise.", "Gets all checked widgets in the group\n@return list of checked widgets", "Creates the container for a bundle with descriptor.\n@return the container for a bundle with descriptor.\n@throws IOException thrown if reading the bundle fails.\n@throws CmsException thrown if reading the bundle fails." ]
public static <T> T assertNotNull(T value, String name) { if (value == null) throw new IllegalArgumentException("Null " + name); return value; }
[ "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the value" ]
[ "Start ssh session and obtain session.\n\n@return the session", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Computes the null space using QR decomposition. This is much faster than using SVD\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space", "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance", "Returns the field descriptors given in the the field names list.\n\n@param fieldNames The field names, separated by commas\n@return The field descriptors in the order given by the field names\n@throws NoSuchFieldException If a field hasn't been found", "Use this API to fetch all the route6 resources that are configured on netscaler.", "This adds to the feature name the name of classes that are other than\nthe current class that are involved in the clique. In the CMM, these\nother classes become part of the conditioning feature, and only the\nclass of the current position is being predicted.\n\n@return A collection of features with extra class information put\ninto the feature name.", "Use this API to fetch auditsyslogpolicy_vpnglobal_binding resources of given name .", "Generate the next combination and return an array containing\nthe appropriate elements.\n@see #nextCombinationAsArray(Object[])\n@see #nextCombinationAsList()\n@return An array containing the elements that make up the next combination." ]
public NamedStyleInfo getNamedStyleInfo(String name) { for (NamedStyleInfo info : namedStyleInfos) { if (info.getName().equals(name)) { return info; } } return null; }
[ "Get layer style by name.\n\n@param name layer style name\n@return layer style" ]
[ "Populate a resource assignment.\n\n@param record MPX record\n@param assignment resource assignment\n@throws MPXJException", "Updates the database. Never call this during normal operations, upgrade is a user-controlled operation.", "This is the code that needs to be executed before either eye is drawn.\n\n@return Current time, from {@link GVRTime#getCurrentTime()}", "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "Creates a new form session to edit the file with the given name using the given form configuration.\n\n@param configPath the site path of the form configuration\n@param fileName the name (not path) of the XML content to edit\n@return the id of the newly created form session\n\n@throws CmsUgcException if something goes wrong", "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", "Close tracks when the JVM shuts down.\n@return this", "Use this API to add nslimitselector.", "Retrieves the table structure for an Asta PP file. Subclasses determine the exact contents of the structure\nfor a specific version of the Asta PP file.\n\n@return PP file table structure" ]
private void checkProcedures(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } ProcedureDef procDef; String type; String name; String fieldName; String argName; for (Iterator it = classDef.getProcedures(); it.hasNext();) { procDef = (ProcedureDef)it.next(); type = procDef.getName(); name = procDef.getProperty(PropertyHelper.OJB_PROPERTY_NAME); if ((name == null) || (name.length() == 0)) { throw new ConstraintException("The "+type+"-procedure in class "+classDef.getName()+" doesn't have a name"); } fieldName = procDef.getProperty(PropertyHelper.OJB_PROPERTY_RETURN_FIELD_REF); if ((fieldName != null) && (fieldName.length() > 0)) { if (classDef.getField(fieldName) == null) { throw new ConstraintException("The "+type+"-procedure "+name+" in class "+classDef.getName()+" references an unknown or non-persistent return field "+fieldName); } } for (CommaListIterator argIt = new CommaListIterator(procDef.getProperty(PropertyHelper.OJB_PROPERTY_ARGUMENTS)); argIt.hasNext();) { argName = argIt.getNext(); if (classDef.getProcedureArgument(argName) == null) { throw new ConstraintException("The "+type+"-procedure "+name+" in class "+classDef.getName()+" references an unknown argument "+argName); } } } ProcedureArgumentDef argDef; for (Iterator it = classDef.getProcedureArguments(); it.hasNext();) { argDef = (ProcedureArgumentDef)it.next(); type = argDef.getProperty(PropertyHelper.OJB_PROPERTY_TYPE); if ("runtime".equals(type)) { fieldName = argDef.getProperty(PropertyHelper.OJB_PROPERTY_FIELD_REF); if ((fieldName != null) && (fieldName.length() > 0)) { if (classDef.getField(fieldName) == null) { throw new ConstraintException("The "+type+"-argument "+argDef.getName()+" in class "+classDef.getName()+" references an unknown or non-persistent return field "+fieldName); } } } } }
[ "Checks the given class descriptor for correct procedure settings.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated" ]
[ "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value", "Use this API to fetch nsacl6 resources of given names .", "Write the text to the File, using the specified encoding.\n\n@param file a File\n@param text the text to write to the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Retrieve the next available field.\n\n@return FieldType instance for the next available field", "Return the name of the current conf set\n@return the conf set name", "Check that all nodes in the new cluster have a corresponding entry in\nstoreRepository and innerStores. add a NodeStore if not present, is\nneeded as with rebalancing we can add new nodes on the fly.", "Synchronize the scroll positions of the scrollbars with the actual scroll\nposition of the content.", "Get result report.\n\n@param reportURI the URI of the report\n@return the result report.", "if you want to parse an argument, you need a converter from String to Object\n\n@param commandLineOption specification of the command line options\n@param converter how to convert your String value to a castable Object" ]
public static ObjectModelResolver get(String resolverId) { List<ObjectModelResolver> resolvers = getResolvers(); for (ObjectModelResolver resolver : resolvers) { if (resolver.accept(resolverId)) { return resolver; } } return null; }
[ "Returns first resolver that accepts the given resolverId.\nIn case none is found null is returned.\n@param resolverId identifier of the resolver\n@return found resolver or null otherwise" ]
[ "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed.", "Gets a JsonObject containing any pending changes to this object that can be sent back to the Box API.\n@return a JsonObject containing the pending changes.", "Initialize elements of the panel displayed for the deactivated widget.", "Use this API to fetch a vpnglobal_auditnslogpolicy_binding resources.", "Performs an inline lower Cholesky decomposition on an inner row-major matrix. Only\nthe lower triangular portion of the matrix is read or written to.\n\n@param T Array containing an inner row-major matrix. Modified.\n@param indexT First index of the inner row-major matrix.\n@param n Number of rows and columns of the matrix.\n@return If the decomposition succeeded.", "Checks if the provided duration information is valid.\n@return <code>null</code> if the information is valid, the key of the suitable error message otherwise.", "Get the Upper triangular factor.\n\n@return U.", "Sets the underlying connect timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#connectTimeout(long, TimeUnit)", "Use this API to fetch all the clusternodegroup resources that are configured on netscaler." ]
public AbstractVolatilitySurfaceParametric getCloneCalibrated(final AnalyticModel calibrationModel, final Vector<AnalyticProduct> calibrationProducts, final List<Double> calibrationTargetValues, Map<String,Object> calibrationParameters, final ParameterTransformation parameterTransformation, OptimizerFactory optimizerFactory) throws SolverException { if(calibrationParameters == null) { calibrationParameters = new HashMap<>(); } Integer maxIterationsParameter = (Integer)calibrationParameters.get("maxIterations"); Double accuracyParameter = (Double)calibrationParameters.get("accuracy"); Double evaluationTimeParameter = (Double)calibrationParameters.get("evaluationTime"); // @TODO currently ignored, we use the setting form the OptimizerFactory int maxIterations = maxIterationsParameter != null ? maxIterationsParameter.intValue() : 600; double accuracy = accuracyParameter != null ? accuracyParameter.doubleValue() : 1E-8; double evaluationTime = evaluationTimeParameter != null ? evaluationTimeParameter.doubleValue() : 0.0; AnalyticModel model = calibrationModel.addVolatilitySurfaces(this); Solver solver = new Solver(model, calibrationProducts, calibrationTargetValues, parameterTransformation, evaluationTime, optimizerFactory); Set<ParameterObject> objectsToCalibrate = new HashSet<>(); objectsToCalibrate.add(this); AnalyticModel modelCalibrated = solver.getCalibratedModel(objectsToCalibrate); // Diagnostic output if (logger.isLoggable(Level.FINE)) { double lastAccuracy = solver.getAccuracy(); int lastIterations = solver.getIterations(); logger.fine("The solver achieved an accuracy of " + lastAccuracy + " in " + lastIterations + "."); } return (AbstractVolatilitySurfaceParametric)modelCalibrated.getVolatilitySurface(this.getName()); }
[ "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails." ]
[ "Get info about the shard a document belongs to.\n\n@param docId document ID\n@return Shard info\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/advanced.html#-get-database-_shards-\"\ntarget=\"_blank\">_shards</a>", "Validate the consistency of patches to the point we rollback.\n\n@param patchID the patch id which gets rolled back\n@param identity the installed identity\n@throws PatchingException", "Gets the Correlation distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Correlation distance between x and y.", "Creates a copy with verbose mode enabled.\n\n@param serverSetups the server setups.\n@return copies of server setups with verbose mode enabled.", "Print duration in tenths of minutes.\n\n@param duration Duration instance\n@return duration in tenths of minutes", "Get a value as a string.\n\n@param key the key for looking up the value.\n@param type the type of the object\n@param <V> the type", "Prepare the filter for the transiton at a given time.\nThe default implementation sets the given filter property, but you could override this method to make other changes.\n@param transition the transition time in the range 0 - 1", "Whether the rows of the given association should be stored in a hash using the single row key column as key or\nnot.", "Obtains a local date in Symmetry454 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 Symmetry454 local date, not null\n@throws DateTimeException if unable to create the date" ]
public AT_Row setPaddingBottomChar(Character paddingBottomChar) { if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingBottomChar(paddingBottomChar); } } return this; }
[ "Sets the bottom padding character for all cells in the row.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining" ]
[ "Use this API to fetch all the dnsview resources that are configured on netscaler.", "Sets the color of the drop shadow.\n\n@param color The color of the drop shadow.", "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).", "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.", "Method to read our client's plain text\n\n@param file_name\n@return the filereader to translate client's plain text into our files\n@throws BeastException\nif any problem is found whit the file", "returns an Enumeration of PrimaryKey Objects for objects of class DataClass.\nThe Elements returned come from a SELECT ... WHERE Statement\nthat is defined by the fields and their coresponding values of listFields\nand listValues.\nUseful for EJB Finder Methods...\n@param primaryKeyClass the pk class for the searched objects\n@param query the query", "Checks all data sets in IIM records 1, 2 and 3 for constraint violations.\n\n@return list of constraint violations, empty set if IIM file is valid", "Filters all exceptions from the provided dates.\n@param dates the dates to filter.\n@return the provided dates, except the ones that match some exception.", "Allows testsuites to shorten the domain timeout adder" ]
public void setAttribute(String strKey, Object value) { this.propertyChangeDelegate.firePropertyChange(strKey, hmAttributes.put(strKey, value), value); }
[ "Set an attribute of this node as Object. This method is backed by\na HashMap, so all rules of HashMap apply to this method.\nFires a PropertyChangeEvent." ]
[ "This method calculates the absolute number of days between two dates.\nNote that where two date objects are provided that fall on the same\nday, this method will return one not zero. Note also that this method\nassumes that the dates are passed in the correct order, i.e.\nstartDate < endDate.\n\n@param startDate Start date\n@param endDate End date\n@return number of days in the date range", "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}", "Sinc function.\n\n@param x Value.\n@return Sinc of the value.", "Use this API to restore appfwprofile resources.", "Return the text content of the document. It does not containing trailing spaces and asterisks\nat the start of the line.", "Creates a new access control entry and stores it for later write out.\n\n@param res the resource\n@param id the id of the principal\n@param allowed the allowed permissions\n@param denied the denied permissions\n@param flags the flags\n\n@return the created ACE", "Set the header names to forward from the request. Should not be defined if all is set to true\n\n@param names the header names.", "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.", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory" ]
private synchronized Response doAuthenticatedRequest( final StitchAuthRequest stitchReq, final AuthInfo authInfo ) { try { return requestClient.doRequest(prepareAuthRequest(stitchReq, authInfo)); } catch (final StitchServiceException ex) { return handleAuthFailure(ex, stitchReq); } }
[ "Internal method which performs the authenticated request by preparing the auth request with\nthe provided auth info and request." ]
[ "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string 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.", "Sets the specified long 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", "Calling this twice will not actually overwrite the gauge\n\n@param collectionSizeGauge", "Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. This is used\nby internal classes to configure a class.", "returns a comparator that allows to sort a Vector of FieldMappingDecriptors\naccording to their m_Order entries.", "Restarts a single dyno\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param dynoId the unique identifier of the dyno to restart", "Set up the services to create a channel listener and operation handler service.\n@param serviceTarget the service target to install the services into\n@param endpointName the endpoint name to install the services into\n@param channelName the name of the channel\n@param executorServiceName service name of the executor service to use in the operation handler service\n@param scheduledExecutorServiceName service name of the scheduled executor service to use in the operation handler service" ]
public String login(Authentication authentication) { String token = getToken(); return login(token, authentication); }
[ "Login for a specific authentication, creating a new token.\n\n@param authentication authentication to assign to token\n@return token" ]
[ "Sets a request header with the given name and value. If a header with the\nspecified name has already been set then the new value overwrites the\ncurrent value.\n\n@param header the name of the header\n@param value the value of the header\n\n@throws NullPointerException if header or value are null\n@throws IllegalArgumentException if header or value are the empty string", "Use this API to sync gslbconfig.", "Heuristic check if string might be an IPv6 address.\n\n@param input Any string or null\n@return true, if input string contains only hex digits and at least two colons, before '.' or '%' character.", "Indicate to the RecyclerView the type of Renderer used to one position using a numeric value.\n\n@param position to analyze.\n@return the id associated to the Renderer used to render the content given a position.", "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", "read offsets before given time\n\n@param offsetRequest the offset request\n@return offsets before given time", "Populate the constraint type and constraint date.\nNote that Merlin allows both start and end constraints simultaneously.\nAs we can't have both, we'll prefer the start constraint.\n\n@param row task data from database\n@param task Task instance", "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list", "Discard the changes." ]
private void writeTask(Task task) { if (!task.getNull()) { if (extractAndConvertTaskType(task) == null || task.getSummary()) { writeWBS(task); } else { writeActivity(task); } } }
[ "Given a Task instance, this task determines if it should be written to the\nPM XML file as an activity or as a WBS item, and calls the appropriate\nmethod.\n\n@param task Task instance" ]
[ "Returns a new AWT BufferedImage from this image.\n\n@param type the type of buffered image to create, if not specified then defaults to the current image type\n@return a new, non-shared, BufferedImage with the same data as this Image.", "Makes sure that there is a class definition for the given qualified name, and returns it.\n\n@param original The XDoclet class object\n@return The class definition", "Create a mapping from entity names to entity ID values.", "Sets an attribute in the main section of the manifest.\n\n@param name the attribute's name\n@param value the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "Find a column by its name\n\n@param columnName the name of the column\n@return the given Column, or <code>null</code> if not found", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Helper to read an optional String value list.\n@param path The XML path of the element to read.\n@return The String list stored in the XML, or <code>null</code> if the value could not be read.", "Enables a dark shadow for this CircularImageView.\nIf the radius is set to 0, the shadow is removed.\n@param radius Radius for the shadow to extend to.\n@param dx Horizontal shadow offset.\n@param dy Vertical shadow offset.\n@param color The color of the shadow to apply.", "Processes the template for all procedures of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"" ]
public int getOpacity() { int opacity = Math .round((mPosToOpacFactor * (mBarPointerPosition - mBarPointerHaloRadius))); if (opacity < 5) { return 0x00; } else if (opacity > 250) { return 0xFF; } else { return opacity; } }
[ "Get the currently selected opacity.\n\n@return The int value of the currently selected opacity." ]
[ "This method sends the same message to many agents.\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param connector\nThe connector to get the external access", "Compares current cluster with final cluster. Uses pertinent store defs\nfor each cluster to determine if a node that hosts a zone-primary in the\ncurrent cluster will no longer host any zone-nary in the final cluster.\nThis check is the precondition for a server returning an invalid metadata\nexception to a client on a normal-case put or get. Normal-case being that\nthe zone-primary receives the pseudo-master put or the get operation.\n\n@param currentCluster\n@param currentStoreDefs\n@param finalCluster\n@param finalStoreDefs\n@return pretty-printed string documenting invalid metadata rates for each\nzone.", "Returns the available module names regarding the filters\n\n@param name String\n@param filters FiltersHolder\n@return List<String>", "Validates specialization if this bean specializes another bean.", "Creates the save and exit button UI Component.\n@return the save and exit button.", "Generates a diagonal matrix with the input vector on its diagonal\n\n@param vector The given matrix A.\n@return diagonalMatrix The matrix with the vectors entries on its diagonal", "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", "Look for the specified album art in both the hot cache of loaded tracks and the longer-lived LRU cache.\n\n@param artReference uniquely identifies the desired album art\n\n@return the art, if it was found in one of our caches, or {@code null}", "Returns the difference of sets s1 and s2." ]
public static void removeFromList(List<String> list, String value) { int foundIndex = -1; int i = 0; for (String id : list) { if (id.equalsIgnoreCase(value)) { foundIndex = i; break; } i++; } if (foundIndex != -1) { list.remove(foundIndex); } }
[ "Removes a value from the list.\n\n@param list the list\n@param value value to remove" ]
[ "Indicate to the RecyclerView the type of Renderer used to one position using a numeric value.\n\n@param position to analyze.\n@return the id associated to the Renderer used to render the content given a position.", "Returns a new client id for the profileIdentifier\n\n@param model\n@param profileIdentifier\n@return json with a new client_id\n@throws Exception", "Notifies that multiple header items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Remove all controllers but leave input manager running.\n@return number of controllers removed", "Use this API to add spilloverpolicy.", "Extracts baseline work from the MPP file for a specific baseline.\nReturns null if no baseline work is present, otherwise returns\na list of timephased work items.\n\n@param assignment parent assignment\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephased baseline work data block\n@param raw flag indicating if this data is to be treated as raw\n@return timephased work", "convert Date to XMLGregorianCalendar.\n\n@param date the date\n@return the xML gregorian calendar", "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map", "Changes the index buffer associated with this mesh.\n@param ibuf new index buffer to use\n@see #setIndices(int[])\n@see #getIndexBuffer()\n@see #getIntIndices()" ]
@Override protected URL getDefinitionsURL() { try { URL url = CustomEPSGCodes.class.getResource(CUSTOM_EPSG_CODES_FILE); // quickly test url try (InputStream stream = url.openStream()) { //noinspection ResultOfMethodCallIgnored stream.read(); } return url; } catch (Throwable e) { throw new AssertionError("Unable to load /epsg.properties file from root of classpath."); } }
[ "Returns the URL to the property file that contains CRS definitions.\n\n@return The URL to the epsg file containing custom EPSG codes" ]
[ "Return a Halton number, sequence starting at index = 0, base &gt; 1.\n\n@param index The index of the sequence.\n@param base The base of the sequence. Has to be greater than one (this is not checked).\n@return The Halton number.", "This method is very similar to addMainHandler, except ShellFactory\nwill pass all handlers registered with this method to all this shell's subshells.\n\n@see org.gearvrf.debug.cli.Shell#addMainHandler(java.lang.Object, java.lang.String)\n\n@param handler Object which should be registered as handler.\n@param prefix Prefix that should be prepended to all handler's command names.", "Un-serialize a Json into BuildInfo\n@param buildInfo String\n@return Map<String,String>\n@throws IOException", "Sets the class loader to be used on serialization operations, for data\nstored in the specified fqn and child nodes. Note that if another class\nloader is set for a specific child node tree, the cache will use instead\nthat class loader.\n\n@param regionFqn\n@param classLoader", "This method extracts data for a single resource from a Planner file.\n\n@param plannerResource Resource data", "Factory method to do the setup and transformation of inputs\n\n@param matrix a {@link TestMatrixArtifact} loaded by ProctorLoader\n@param loadResult a {@link ProctorLoadResult} which contains result of validation of test definition\n@param functionMapper a given el {@link FunctionMapper}\n@return constructed Proctor object", "Provide array of String results from inputOutput MFString field named string.\n@return value of string field", "Resolve temporary folder.", "Applies the mask to this address and then compares values with the given address\n\n@param mask\n@param other\n@return" ]
public void update(int width, int height, float[] data) throws IllegalArgumentException { if ((width <= 0) || (height <= 0) || (data == null) || (data.length < height * width * mFloatsPerPixel)) { throw new IllegalArgumentException(); } NativeFloatImage.update(getNative(), width, height, 0, data); }
[ "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}" ]
[ "Parse a list of Photos from given Element.\n\n@param photosElement\n@return PhotoList", "Sets the actual path for this ID\n\n@param pathId ID of path\n@param path value of path", "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.", "Calculates the legend bounds for a custom list of legends.", "Return true if the two connections seem to one one connection under the covers.", "Reads a markdown link ID.\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 ID.", "Computes the best fit set of polynomial coefficients to the provided observations.\n\n@param samplePoints where the observations were sampled.\n@param observations A set of observations.", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registration completes/fails." ]
public static <T> T buildInstanceForMap(Class<T> clazz, Map<String, Object> values) throws InstantiationException, IllegalAccessException, IntrospectionException, IllegalArgumentException, InvocationTargetException { return buildInstanceForMap(clazz, values, new MyDefaultReflectionDifferenceHandler()); }
[ "Builds a instance of the class for a map containing the values, without specifying the handler for differences\n\n@param clazz The class to build instance\n@param values The values map\n@return The instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target" ]
[ "Register a data type with the manager.", "Stores an new entry in the cache.", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return", "Use this API to delete dnstxtrec of given name.", "Use this API to fetch autoscaleaction resource of given name .", "Parser for forecast\n\n@param feed\n@return", "Creates a new status update on the project.\n\nReturns the full record of the newly created project status update.\n\n@param project The project on which to create a status update.\n@return Request object", "Accessor method used to retrieve an Rate object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Increases the internal array's length by the specified amount. Previous values are preserved.\nThe length value is not modified since this does not change the 'meaning' of the array, just\nincreases the amount of data which can be stored in it.\n\nthis.data = new data_type[ data.length + amount ]\n\n\n@param amount Number of elements added to the internal array's length" ]
private void setProperties(Properties properties) { Props props = new Props(properties); if(props.containsKey(BOOTSTRAP_URLS_PROPERTY)) { setBootstrapURLs(props.getList(BOOTSTRAP_URLS_PROPERTY)); } if(props.containsKey(FAT_CLIENTS_CONFIG_SOURCE)) { setFatClientConfigSource(StoreClientConfigSource.get(props.getString(FAT_CLIENTS_CONFIG_SOURCE))); } if(props.containsKey(FAT_CLIENTS_CONFIG_FILE_PATH_PROPERTY)) { setFatClientConfigPath(props.getString(FAT_CLIENTS_CONFIG_FILE_PATH_PROPERTY)); } if(props.containsKey(METADATA_CHECK_INTERVAL_IN_MS)) { setMetadataCheckIntervalInMs(props.getInt(METADATA_CHECK_INTERVAL_IN_MS)); } if(props.containsKey(NETTY_SERVER_PORT)) { setServerPort(props.getInt(NETTY_SERVER_PORT)); } if(props.containsKey(NETTY_SERVER_BACKLOG)) { setNettyServerBacklog(props.getInt(NETTY_SERVER_BACKLOG)); } if(props.containsKey(COORDINATOR_CORE_THREADS)) { setCoordinatorCoreThreads(props.getInt(COORDINATOR_CORE_THREADS)); } if(props.containsKey(COORDINATOR_MAX_THREADS)) { setCoordinatorMaxThreads(props.getInt(COORDINATOR_MAX_THREADS)); } if(props.containsKey(COORDINATOR_QUEUED_REQUESTS)) { setCoordinatorQueuedRequestsSize(props.getInt(COORDINATOR_QUEUED_REQUESTS)); } if(props.containsKey(HTTP_MESSAGE_DECODER_MAX_INITIAL_LINE_LENGTH)) { setHttpMessageDecoderMaxInitialLength(props.getInt(HTTP_MESSAGE_DECODER_MAX_INITIAL_LINE_LENGTH)); } if(props.containsKey(HTTP_MESSAGE_DECODER_MAX_HEADER_SIZE)) { setHttpMessageDecoderMaxHeaderSize(props.getInt(HTTP_MESSAGE_DECODER_MAX_HEADER_SIZE)); } if(props.containsKey(HTTP_MESSAGE_DECODER_MAX_CHUNK_SIZE)) { setHttpMessageDecoderMaxChunkSize(props.getInt(HTTP_MESSAGE_DECODER_MAX_CHUNK_SIZE)); } if(props.containsKey(ADMIN_ENABLE)) { setAdminServiceEnabled(props.getBoolean(ADMIN_ENABLE)); } if(props.containsKey(ADMIN_PORT)) { setAdminPort(props.getInt(ADMIN_PORT)); } }
[ "Set the values using the specified Properties object\n\n@param properties Properties object containing specific property values\nfor the Coordinator config" ]
[ "Returns true if the context has access to any given permissions.", "Get a list of referrers from a given domain to a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html\"", "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted.", "Factory method that builds the appropriate matcher for @match tags", "Returns the AirMapView implementation as requested by the mapType argument. Use this method if\nyou need to request a specific AirMapView implementation that is not necessarily the preferred\ntype. For example, you can use it to explicit request a web-based map implementation.\n\n@param mapType Map type for the requested AirMapView implementation.\n@return An {@link AirMapViewBuilder} for the requested {@link AirMapViewTypes} mapType.", "Ask the specified player for a Track 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 track menu\n\n@throws Exception if there is a problem obtaining the menu", "Builds the task hierarchy.\n\nNote that there are two distinct levels of organisation going on here. The first is the\nAsta \"summary\" organisation, where the user organises bars into summary groups. We are using this\nto create our hierarchy of tasks.\n\nThe second level displayed within a summary group (or at the project level if the user has not\ncreated summary groups) is the WBS. At the moment we are not including the WBS in the hierarchy.\n\n@param bars bar data\n@param expandedTasks expanded task data\n@param tasks task data\n@param milestones milestone data\n@return list containing the top level tasks", "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array.", "Updates the font table by adding new fonts used at the current page." ]
private boolean operations(Options opt, MethodDoc m[]) { boolean printed = false; for (MethodDoc md : m) { if (hidden(md)) continue; // Filter-out static initializer method if (md.name().equals("<clinit>") && md.isStatic() && md.isPackagePrivate()) continue; stereotype(opt, md, Align.LEFT); String op = visibility(opt, md) + md.name() + // (opt.showType ? "(" + parameter(opt, md.parameters()) + ")" + typeAnnotation(opt, md.returnType()) : "()"); tableLine(Align.LEFT, (md.isAbstract() ? Font.ABSTRACT : Font.NORMAL).wrap(opt, op)); printed = true; tagvalue(opt, md); } return printed; }
[ "Print the class's operations m" ]
[ "Retrieves a specific range of items in this collection.\n@param offset the index of the first item to retrieve.\n@param limit the maximum number of items to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of items.", "Converts the http entity to string. If entity is null, returns empty string.\n@param entity\n@return\n@throws IOException", "Generate random time stamps from the current time upto the next one second.\nPassed as texture coordinates to the vertex shader, an unused field is present\nwith every pair passed.\n\n@param totalTime\n@return", "Read custom property definitions for tasks.\n\n@param gpTasks GanttProject tasks", "Calculate matrix exponential of a square matrix.\n\nA scaled Pade approximation algorithm is used.\nThe algorithm has been directly translated from Golub & Van Loan \"Matrix Computations\",\nalgorithm 11.3.1. Special Horner techniques from 11.2 are also used to minimize the number\nof matrix multiplications.\n\n@param A square matrix\n@return matrix exponential of A", "Main method of this class related to RecyclerView widget. This method is the responsible of\ncreate a new Renderer instance with all the needed information to implement the rendering.\nThis method will validate all the attributes passed in the builder constructor and will create\na RendererViewHolder instance.\n\nThis method is used with RecyclerView because the view recycling mechanism is implemented out\nof this class and we only have to return new RendererViewHolder instances.\n\n@return ready to use RendererViewHolder instance.", "This method writes resource data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Sets the left padding for all cells in the row.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Prints the data of one property to the given output. This will be a\nsingle line in CSV.\n\n@param out\nthe output to write to\n@param propertyRecord\nthe data to write\n@param propertyIdValue\nthe property that the data refers to" ]
public static Set<Annotation> flattenInterceptorBindings(EnhancedAnnotatedType<?> clazz, BeanManagerImpl beanManager, Collection<Annotation> annotations, boolean addTopLevelInterceptorBindings, boolean addInheritedInterceptorBindings) { Set<Annotation> flattenInterceptorBindings = new InterceptorBindingSet(beanManager); MetaAnnotationStore metaAnnotationStore = beanManager.getServices().get(MetaAnnotationStore.class); if (addTopLevelInterceptorBindings) { addInterceptorBindings(clazz, annotations, flattenInterceptorBindings, metaAnnotationStore); } if (addInheritedInterceptorBindings) { for (Annotation annotation : annotations) { addInheritedInterceptorBindings(clazz, annotation.annotationType(), metaAnnotationStore, flattenInterceptorBindings); } } return flattenInterceptorBindings; }
[ "Extracts a flat set of interception bindings from a given set of interceptor bindings.\n\n@param addTopLevelInterceptorBindings add top level interceptor bindings to the result set.\n@param addInheritedInterceptorBindings add inherited level interceptor bindings to the result set.\n@return" ]
[ "Modifier method to set the unique ID of this calendar.\n\n@param uniqueID unique identifier", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name", "Exception handler if we are unable to parse a json value into a java representation\n\n@param expectedType Name of the expected Type\n@param type Type of the json node\n@return SpinJsonDataFormatException", "Find the length of the block starting from 'start'.", "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Initialize the domain registry.\n\n@param registry the domain registry", "Maps a single prefix, uri pair as namespace.\n\n@param prefix the prefix to use\n@param namespaceURI the URI to use\n@throws IllegalArgumentException if prefix or namespaceURI is null", "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", "Handle exceptions thrown by the storage. Exceptions specific to DELETE go\nhere. Pass other exceptions to the parent class.\n\nTODO REST-Server Add a new exception for this condition - server busy\nwith pending requests. queue is full" ]
public void sort(ChildTaskContainer container) { // Do we have any tasks? List<Task> tasks = container.getChildTasks(); if (!tasks.isEmpty()) { for (Task task : tasks) { // // Sort child activities // sort(task); // // Sort Order: // 1. Activities come first // 2. WBS come last // 3. Activities ordered by activity ID // 4. WBS ordered by ID // Collections.sort(tasks, new Comparator<Task>() { @Override public int compare(Task t1, Task t2) { boolean t1IsWbs = m_wbsTasks.contains(t1); boolean t2IsWbs = m_wbsTasks.contains(t2); // Both are WBS if (t1IsWbs && t2IsWbs) { return t1.getID().compareTo(t2.getID()); } // Both are activities if (!t1IsWbs && !t2IsWbs) { String activityID1 = (String) t1.getCurrentValue(m_activityIDField); String activityID2 = (String) t2.getCurrentValue(m_activityIDField); if (activityID1 == null || activityID2 == null) { return (activityID1 == null && activityID2 == null ? 0 : (activityID1 == null ? 1 : -1)); } return activityID1.compareTo(activityID2); } // One activity one WBS return t1IsWbs ? 1 : -1; } }); } } }
[ "Recursively sort the supplied child tasks.\n\n@param container child tasks" ]
[ "Replaces all characters in the second parameter found in the first\nparameter with the final character.\n@param value the string to replace characters in\n@param chars the characters to replace\n@param replacement the character to insert as replacement", "Get a collection of public groups for the user.\n\nThe groups will contain only the members nsid, name, admin and eighteenplus. If you want the whole group-information, you have to call\n{@link com.flickr4java.flickr.groups.GroupsInterface#getInfo(String)}.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The public groups\n@throws FlickrException", "Builds a instance of the class for a map containing the values\n\n@param clazz Class to build\n@param values Values map\n@param differenceHandler The difference handler\n@return The created instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "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", "Read custom property definitions for tasks.\n\n@param gpTasks GanttProject tasks", "Apply an XMLDSig onto the passed document.\n\n@param aPrivateKey\nThe private key used for signing. May not be <code>null</code>.\n@param aCertificate\nThe certificate to be used. May not be <code>null</code>.\n@param aDocument\nThe document to be signed. The signature will always be the first\nchild element of the document element. The document may not contains\nany disg:Signature element. This element is inserted manually.\n@throws Exception\nIn case something goes wrong\n@see #createXMLSignature(X509Certificate)", "Indicate to the RecyclerView the type of Renderer used to one position using a numeric value.\n\n@param position to analyze.\n@return the id associated to the Renderer used to render the content given a position.", "Scroll to the next page. To process the scrolling by pages LayoutScroller must be constructed\nwith a pageSize greater than zero.\n@return the new current item after the scrolling processed.", "Transform the root bone of the pose by the given matrix.\n@param trans matrix to transform the pose by." ]
public static crvserver_binding get(nitro_service service, String name) throws Exception{ crvserver_binding obj = new crvserver_binding(); obj.set_name(name); crvserver_binding response = (crvserver_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch crvserver_binding resource of given name ." ]
[ "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", "Function to perform backward pooling", "Use this API to fetch statistics of nsacl6_stats resource of given name .", "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}", "Calls all initializers of the bean\n\n@param instance The bean instance", "Sets the path to the script file to load and loads the script.\n\n@param filePath path to script file\n@throws IOException if the script cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "PUT and POST are identical calls except for the header specifying the method", "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", "Set the correct day for the date with year and month already fixed.\n@param date the date, where year and month are already correct." ]
private void initializeLogging() { // Since logging is static, make sure this is done only once even if // multiple clients are created (e.g., during tests) if (consoleAppender != null) { return; } consoleAppender = new ConsoleAppender(); consoleAppender.setLayout(new PatternLayout(LOG_PATTERN)); consoleAppender.setThreshold(Level.INFO); LevelRangeFilter filter = new LevelRangeFilter(); filter.setLevelMin(Level.TRACE); filter.setLevelMax(Level.INFO); consoleAppender.addFilter(filter); consoleAppender.activateOptions(); org.apache.log4j.Logger.getRootLogger().addAppender(consoleAppender); errorAppender = new ConsoleAppender(); errorAppender.setLayout(new PatternLayout(LOG_PATTERN)); errorAppender.setThreshold(Level.WARN); errorAppender.setTarget(ConsoleAppender.SYSTEM_ERR); errorAppender.activateOptions(); org.apache.log4j.Logger.getRootLogger().addAppender(errorAppender); }
[ "Sets up Log4J to write log messages to the console. Low-priority messages\nare logged to stdout while high-priority messages go to stderr." ]
[ "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", "Arbitrarily resolve the inconsistency by choosing the first object if\nthere is one.\n\n@param values The list of objects\n@return A single value, if one exists, taken from the input list.", "Add a cause to the backtrace.\n\n@param cause\nthe cause\n@param bTrace\nthe backtrace list", "Given the current cluster and a zone id that needs to be dropped, this\nmethod will remove all partitions from the zone that is being dropped and\nmove it to the existing zones. The partitions are moved intelligently so\nas not to avoid any data movement in the existing zones.\n\nThis is achieved by moving the partitions to nodes in the surviving zones\nthat is zone-nry to that partition in the surviving zone.\n\n@param currentCluster Current cluster metadata\n@return Returns an interim cluster with empty partition lists on the\nnodes from the zone being dropped", "Use this API to fetch csvserver_appflowpolicy_binding resources of given name .", "Append Join for non SQL92 Syntax", "Reads a stringtemplate group from a stream.\n\nThis will always return a group (empty if necessary), even if reading it from the stream fails.\n\n@param stream the stream to read from\n@return the string template group", "Sets the HTTP poller processor to handle Async API.\nWill auto enable the pollable mode with this call\n\n@param httpPollerProcessor\nthe http poller processor\n@return the parallel task builder", "called by timer thread" ]
public static GVRSceneObject loadModel(final GVRContext gvrContext, final String modelFile) throws IOException { return loadModel(gvrContext, modelFile, new HashMap<String, Integer>()); }
[ "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails" ]
[ "Resizes an image to the specified height, changing width in the same proportion\n@param originalImage Image in memory\n@param heightOut The height to resize\n@return New Image in memory", "Returns the value of the primitive type from the given string value.\n\n@param value the value to parse\n@param cls the primitive type class\n@return the boxed type value or {@code null} if the given class is not a primitive type", "Specify the address of the SOCKS proxy the connection should\nuse.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n<p>Be aware that this method only handles SOCKS proxies, not\nHTTPS proxies. Use {@link #withProxy(Proxy)} instead.\n\n@param host the hostname of the SOCKS proxy\n@param port the port of the SOCKS proxy server\n@return this", "Load physics information for the current avatar\n@param filename name of physics file\n@param scene scene the avatar is part of\n@throws IOException if physics file cannot be parsed", "Goes through the first buckets, picking out candidate records and\ntallying up their scores.\n@return the index of the first bucket we did not process", "Iterates over all tags of current member and evaluates the template for each one.\n\n@param template The template to be evaluated\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" optional=\"true\" description=\"The parameter name.\"", "Print a task type.\n\n@param value TaskType instance\n@return task type value", "Checks attributes for rejection\n\n@param rejectedAttributes gathers information about failed attributes\n@param attributeValue the attribute value", "Gets the effects of this action.\n\n@return the effects. Will not be {@code null}" ]
public static base_responses save(nitro_service client, cachecontentgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cachecontentgroup saveresources[] = new cachecontentgroup[resources.length]; for (int i=0;i<resources.length;i++){ saveresources[i] = new cachecontentgroup(); saveresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, saveresources,"save"); } return result; }
[ "Use this API to save cachecontentgroup resources." ]
[ "Validates the data for correct annotation", "generate a prepared DELETE-Statement for the Class\ndescribed by cld.\n@param cld the ClassDescriptor", "Adds format information to eval.", "Declaration of the variable within a block", "Checks if the link target is a secure link.<p\n\n@param cms the current CMS context\n@param vfsName the path of the link target\n@param targetSite the target site containing the detail page\n@param secureRequest true if the currently running request is secure\n\n@return true if the link should be a secure link", "Retrieve the value of a UDF.\n\n@param udf UDF value holder\n@return UDF value", "Given a HTTPResponce, process it, throwing an error if needed and return a Token for the next\nrequest.", "Determines the field name based on an accessor method name.\n\n@param methodName\nan accessor method name\n@return the resulting field name", "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type" ]
public static base_response add(nitro_service client, responderpolicy resource) throws Exception { responderpolicy addresource = new responderpolicy(); addresource.name = resource.name; addresource.rule = resource.rule; addresource.action = resource.action; addresource.undefaction = resource.undefaction; addresource.comment = resource.comment; addresource.logaction = resource.logaction; addresource.appflowaction = resource.appflowaction; return addresource.add_resource(client); }
[ "Use this API to add responderpolicy." ]
[ "Creates a setter method with the given body.\n\n@param declaringClass the class to which we will add the setter\n@param propertyNode the field to back the setter\n@param setterName the name of the setter\n@param setterBlock the statement representing the setter block", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region", "Should use as destroy method. Disconnects from a Service Locator server.\nAll endpoints that were registered before are removed from the server.\nSet property locatorClient to null.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Get the minutes difference", "Use this API to fetch all the aaaparameter resources that are configured on netscaler.", "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", "Sets the database dialect.\n\n@param dialect\nthe database dialect", "Split a module Id to get the module version\n@param moduleId\n@return String" ]
private void writeResourceAssignmentWorkgroupFields(ResourceAssignmentWorkgroupFields record) throws IOException { m_buffer.setLength(0); m_buffer.append(MPXConstants.RESOURCE_ASSIGNMENT_WORKGROUP_FIELDS_RECORD_NUMBER); m_buffer.append(m_delimiter); m_buffer.append(format(record.getMessageUniqueID())); m_buffer.append(m_delimiter); m_buffer.append(record.getConfirmed() ? "1" : "0"); m_buffer.append(m_delimiter); m_buffer.append(record.getResponsePending() ? "1" : "0"); m_buffer.append(m_delimiter); m_buffer.append(format(formatDateTimeNull(record.getUpdateStart()))); m_buffer.append(m_delimiter); m_buffer.append(format(formatDateTimeNull(record.getUpdateFinish()))); m_buffer.append(m_delimiter); m_buffer.append(format(record.getScheduleID())); stripTrailingDelimiters(m_buffer); m_buffer.append(MPXConstants.EOL); m_writer.write(m_buffer.toString()); }
[ "Write resource assignment workgroup.\n\n@param record resource assignment workgroup instance\n@throws IOException" ]
[ "Pass a model object and return a SoyMapData if a model object happens\nto be a SoyMapData.\n\nAn implementation will also check if a passed in object is a Map and return\na SoyMapData wrapping that map", "Handles incoming Application Update Request.\n@param incomingMessage the request message to process.", "Is portlet env supported.\n\n@return true if portlet env is supported, false otherwise", "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given color.", "Returns the index of the segment containing the first byte outside the network prefix.\nWhen networkPrefixLength is null, or it matches or exceeds the bit length, returns the segment count.\n\n@param networkPrefixLength\n@param byteLength\n@return", "The range of velocities that a particle generated from this emitter can have.\n@param minV Minimum velocity that a particle can have\n@param maxV Maximum velocity that a particle can have", "Creates a new GridLines instance.\n\n@param data data block\n@param offset offset into data block\n@return new GridLines instance", "Adds a column pair to this foreignkey.\n\n@param localColumn The column in the local table\n@param remoteColumn The column in the remote table", "This method retrieves a double value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of a double\n@return double value" ]
Response put(URI uri, InputStream instream, String contentType) { HttpConnection connection = Http.PUT(uri, contentType); connection.setRequestBody(instream); return executeToResponse(connection); }
[ "Performs a HTTP PUT request, saves an attachment.\n\n@return {@link Response}" ]
[ "Removes the specified objects.\n\n@param collection The collection to remove.", "Returns true if all pixels in the array have the same color", "Compute singular values and U and V at the same time", "Translate the given byte array into a string of 1s and 0s\n\n@param bytes The bytes to translate\n@return The string", "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", "A specific, existing task can be updated by making a PUT request on the\nURL for that task. 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 task record.\n\n@param task The task to update.\n@return Request object", "Return the AnnotationNode for the named annotation, or else null.\nSupports Groovy 1.5 and Groovy 1.6.\n@param node - the AnnotatedNode\n@param name - the name of the annotation\n@return the AnnotationNode or else null", "Confirms that both clusters have the same number of nodes by comparing\nset of node Ids between clusters.\n\n@param lhs\n@param rhs", "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field" ]
@SuppressWarnings({ "rawtypes", "unchecked" }) private void cleanupSessions(List<String> storeNamesToCleanUp) { logger.info("Performing cleanup"); for(String store: storeNamesToCleanUp) { for(Node node: nodesToStream) { try { SocketAndStreams sands = nodeIdStoreToSocketAndStreams.get(new Pair(store, node.getId())); close(sands.getSocket()); SocketDestination destination = nodeIdStoreToSocketRequest.get(new Pair(store, node.getId())); streamingSocketPool.checkin(destination, sands); } catch(Exception ioE) { logger.error(ioE); } } } cleanedUp = true; }
[ "Helper method to Close all open socket connections and checkin back to\nthe pool\n\n@param storeNamesToCleanUp List of stores to be cleanedup from the current\nstreaming session" ]
[ "Creates a namespace if needed.", "Check, if the current user has permissions on the document's resource.\n@param cms the context\n@param doc the solr document (from the search result)\n@param filter the resource filter to use for checking permissions\n@return <code>true</code> iff the resource mirrored by the search result can be read by the current user.", "Gets whether this registration has an alternative wildcard registration", "Loads the data from the database. Override this method if the objects\nshall be loaded in a specific way.\n\n@return The loaded data", "Creates a server setup based on provided properties.\n\n@param properties the properties.\n@return the server setup, or an empty array.", "Creates an element that represents a rectangle drawn at the specified coordinates in the page.\n@param x the X coordinate of the rectangle\n@param y the Y coordinate of the rectangle\n@param width the width of the rectangle\n@param height the height of the rectangle\n@param stroke should there be a stroke around?\n@param fill should the rectangle be filled?\n@return the resulting DOM element", "Use this API to update vserver.", "Returns the DBCP DataSource for the specified connection descriptor,\nafter creating a new DataSource if needed.\n@param jcd the descriptor for which to return a DataSource\n@return a DataSource, after creating a new pool if needed.\nGuaranteed to never be null.\n@throws LookupException if pool is not in cache and cannot be created", "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host section.\nA CIDR host mask is an address with all 0s in the network section and then all 1s in the host section.\nThe prefix length is the length of the network section.\n\nAlso, keep in mind that the prefix length returned by this method is not equivalent to the prefix length used to construct this object.\nThe prefix length used to construct indicates the network and host section of this address.\nThe prefix length returned here indicates the whether the value of this address can be used as a mask for the network and host\nsection of any other address. Therefore the two values can be different values, or one can be null while the other is not.\n\nThis method applies only to the lower value of the range if this section represents multiple values.\n\n@param network whether to check for a network mask or a host mask\n@return the prefix length corresponding to this mask, or null if there is no such prefix length" ]
public static boolean isSpreadSafe(Expression expression) { if (expression instanceof MethodCallExpression) { return ((MethodCallExpression) expression).isSpreadSafe(); } if (expression instanceof PropertyExpression) { return ((PropertyExpression) expression).isSpreadSafe(); } return false; }
[ "Tells you if the expression is a spread operator call\n@param expression\nexpression\n@return\ntrue if is spread expression" ]
[ "Sets the set of site filters based on the given string.\n\n@param filters\ncomma-separates list of site keys, or \"-\" to filter all site\nlinks", "Make a comparison where the operator is specified by the caller. It is up to the caller to specify an appropriate\noperator for the database and that it be formatted correctly.", "Set a Java class to ignore when printing stack traces\n@param classToIgnoreInTraces The class to ignore.\n@return this", "Removes the value from the Collection mapped to by this key, leaving the\nrest of the collection intact.\n\n@param key\nthe key to the Collection to remove the value from\n@param value\nthe value to remove", "2-D Gaussian function.\n\n@param x value.\n@param y value.\n@return Function's value at point (x,y).", "Assign FK value to all n-side objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation", "Extracts the elements from the source matrix by their 1D index.\n\n@param src Source matrix. Not modified.\n@param indexes array of row indexes\n@param length maximum element in row array\n@param dst output matrix. Must be a vector of the correct length.", "this callback is invoked after an Object is materialized\nwithin an IndirectionHandler.\nthis callback allows to defer registration of objects until\nit's really neccessary.\n@param handler the invoking handler\n@param materializedObject the materialized Object", "Returns the flag, indicating if the characters in the query string that are commands to Solr should be escaped.\n@return the flag, indicating if the characters in the query string that are commands to Solr should be escaped." ]
public void update(StoreDefinition storeDef) { if(!useOneEnvPerStore) throw new VoldemortException("Memory foot print can be set only when using different environments per store"); String storeName = storeDef.getName(); Environment environment = environments.get(storeName); // change reservation amount of reserved store if(!unreservedStores.contains(environment) && storeDef.hasMemoryFootprint()) { EnvironmentMutableConfig mConfig = environment.getMutableConfig(); long currentCacheSize = mConfig.getCacheSize(); long newCacheSize = storeDef.getMemoryFootprintMB() * ByteUtils.BYTES_PER_MB; if(currentCacheSize != newCacheSize) { long newReservedCacheSize = this.reservedCacheSize - currentCacheSize + newCacheSize; // check that we leave a 'minimum' shared cache if((voldemortConfig.getBdbCacheSize() - newReservedCacheSize) < voldemortConfig.getBdbMinimumSharedCache()) { throw new StorageInitializationException("Reservation of " + storeDef.getMemoryFootprintMB() + " MB for store " + storeName + " violates minimum shared cache size of " + voldemortConfig.getBdbMinimumSharedCache()); } this.reservedCacheSize = newReservedCacheSize; adjustCacheSizes(); mConfig.setCacheSize(newCacheSize); environment.setMutableConfig(mConfig); logger.info("Setting private cache for store " + storeDef.getName() + " to " + newCacheSize); } } else { // we cannot support changing a reserved store to unreserved or vice // versa since the sharedCache param is not mutable throw new VoldemortException("Cannot switch between shared and private cache dynamically"); } }
[ "Detect what has changed in the store definition and rewire BDB\nenvironments accordingly.\n\n@param storeDef updated store definition" ]
[ "generate a prepared DELETE-Statement for the Class\ndescribed by cld.\n@param cld the ClassDescriptor", "It is required that T be Serializable", "Use this API to save cacheobject.", "Set the state of an individual day in a weekly recurrence.\n\n@param day Day instance\n@param value true if this day is included in the recurrence", "Captures System.out and System.err and redirects them\nto Redwood logging.\n@param captureOut True is System.out should be captured\n@param captureErr True if System.err should be captured", "This function compares style ID's between features. Features are usually sorted by style.", "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself.", "Attach the given link to the classification, while checking for duplicates.", "Loads the given class, respecting the given classloader.\n@param clazz class to load\n@return Loaded class\n@throws ClassNotFoundException" ]
private Envelope getMaxScreenEnvelope(InternalTile tile, Coordinate panOrigin) { int nrOfTilesX = Math.max(1, MAXIMUM_TILE_COORDINATE / tile.getScreenWidth()); int nrOfTilesY = Math.max(1, MAXIMUM_TILE_COORDINATE / tile.getScreenHeight()); double x1 = panOrigin.x - nrOfTilesX * tile.getTileWidth(); // double x2 = x1 + (nrOfTilesX * tileWidth * 2); double x2 = panOrigin.x + nrOfTilesX * tile.getTileWidth(); double y1 = panOrigin.y - nrOfTilesY * tile.getTileHeight(); // double y2 = y1 + (nrOfTilesY * tileHeight * 2); double y2 = panOrigin.y + nrOfTilesY * tile.getTileHeight(); return new Envelope(x1, x2, y1, y2); }
[ "What is the maximum bounds in screen space? Needed for correct clipping calculation.\n\n@param tile\ntile\n@param panOrigin\npan origin\n@return max screen bbox" ]
[ "Set the menu view from a layout resource.\n\n@param layoutResId Resource ID to be inflated.", "Removes file from your assembly.\n\n@param name field name of the file to remove.", "Retrieve a work field.\n\n@param type field type\n@return Duration instance", "Creates the node mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param parentLevel\nthe parent level", "Returns true if the given candidate is a group that is filtered due to rule parameters in the current call graph.", "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.", "Creates updateable version of capability registry that on publish pushes all changes to main registry\nthis is used to create context local registry that only on completion commits changes to main registry\n\n@return writable registry", "Prints the results of the equation to standard out. Useful for debugging", "Create an executable jar to generate the report. Created jar contains only\nallure configuration file." ]
private Query getReportQueryByCriteriaCount(ReportQueryByCriteria aQuery) { ReportQueryByCriteria countQuery = (ReportQueryByCriteria) getQueryByCriteriaCount(aQuery); // BRJ: keep the original columns to build the Join countQuery.setJoinAttributes(aQuery.getAttributes()); // BRJ: we have to preserve groupby information Iterator iter = aQuery.getGroupBy().iterator(); while(iter.hasNext()) { countQuery.addGroupBy((FieldHelper) iter.next()); } return countQuery; }
[ "Create a Count-Query for ReportQueryByCriteria" ]
[ "If a given x is into an interval of the partition, this method returns the reference point of the corresponding interval.\nIf the given x is not contained in any interval of the partition, this method returns x.\n\n@param x The point of interest.\n@return The discretized value.", "Determines whether the given list contains a descriptor with the same name.\n\n@param defs The list to search\n@param obj The object that is searched for\n@return <code>true</code> if the list contains a descriptor with the same name", "Logs all properties", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "Prepares a Jetty server for communicating with consumers.", "Inject members into this instance and register the services afterwards.\n@see #getGuiceModule()\n@see #registerInRegistry(boolean)\n@since 2.1", "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", "Converts an image to a RGBA direct color model using a workaround via buffered image directly calling the\nColorConvert operation fails for unknown reasons ?!\n\n@param img image to convert\n@return converted image", "Remove a part of a CharSequence. This replaces the first occurrence\nof the pattern within self with '' and returns the result.\n\n@param self a String\n@param pattern a Pattern representing the part to remove\n@return a String minus the part to be removed\n@since 2.2.0" ]
public static authenticationldappolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationldappolicy_authenticationvserver_binding obj = new authenticationldappolicy_authenticationvserver_binding(); obj.set_name(name); authenticationldappolicy_authenticationvserver_binding response[] = (authenticationldappolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch authenticationldappolicy_authenticationvserver_binding resources of given name ." ]
[ "Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value", "Throws one RendererException if the content parent or layoutInflater are null.", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "After obtaining a connection, perform additional tasks.\n@param handle\n@param statsObtainTime", "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", "Record a new event.", "Invalidating just the GVRView associated with the GVRViewSceneObject\nincorrectly set the clip rectangle to just that view. To fix this,\nwe have to create a full screen android View and invalidate this\nto restore the clip rectangle.\n@return full screen View object", "Generate JSON format as result of the scan.\n\n@since 1.2", "Removes all commas from the token list" ]
private String getTaskField(int key) { String result = null; if ((key > 0) && (key < m_taskNames.length)) { result = m_taskNames[key]; } return (result); }
[ "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name" ]
[ "Show or hide the options column dependent on the provided edit mode.\n@param oldMode the old edit mode\n@param newMode the edit mode for which the options column's visibility should be adjusted.", "Use this API to add sslaction.", "Append the text at the end of the File.\n\n@param file a File\n@param text the text to append at the end of the File\n@throws IOException if an IOException occurs.\n@since 1.0", "Set whether the player holding the waveform is playing, which changes the indicator color to white from red.\nThis method can only be used in situations where the component is tied to a single player, and therefore has\na single playback position.\n\n@param playing if {@code true}, draw the position marker in white, otherwise red\n\n@see #setPlaybackState", "Create a HashSet with the given initial values.\n\n@param values The values\n@param <T> The type.", "Returns the corporate dependencies of a module\n\n@param module Module\n@param corporateFilters List<String>\n@return List<Dependency>", "We have received an update that invalidates the waveform detail for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no waveform preview for the associated player", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}", "Parse a command line with the defined command as base of the rules.\nIf any options are found, but not defined in the command object an\nCommandLineParserException will be thrown.\nAlso, if a required option is not found or options specified with value,\nbut is not given any value an CommandLineParserException will be thrown.\n\n@param line input\n@param mode parser mode" ]
public static base_response update(nitro_service client, sslocspresponder resource) throws Exception { sslocspresponder updateresource = new sslocspresponder(); updateresource.name = resource.name; updateresource.url = resource.url; updateresource.cache = resource.cache; updateresource.cachetimeout = resource.cachetimeout; updateresource.batchingdepth = resource.batchingdepth; updateresource.batchingdelay = resource.batchingdelay; updateresource.resptimeout = resource.resptimeout; updateresource.respondercert = resource.respondercert; updateresource.trustresponder = resource.trustresponder; updateresource.producedattimeskew = resource.producedattimeskew; updateresource.signingcert = resource.signingcert; updateresource.usenonce = resource.usenonce; updateresource.insertclientcert = resource.insertclientcert; return updateresource.update_resource(client); }
[ "Use this API to update sslocspresponder." ]
[ "Guesses the best set to use at the specified index by looking at the surrounding sets. In general, characters in\nlower-numbered sets are more common, so we choose them if we can. If no good surrounding sets can be found, the default\nvalue returned is the first value from the valid set.\n\n@param index the current index\n@param length the maximum length to look at\n@param valid the valid sets for this index\n@return the best set to use at the specified index", "Adds all rows from the file specified, using the provided parser.\n\n@param file File to read the data from.\n@param fileParser Parser to be used to parse the file.\n@return {@code this}", "Utility method used to convert an integer time representation into a\nDuration instance.\n\n@param totalTime integer time representation\n@param format required time format\n@return new Duration instance", "Get the values of the fields for an obj\nAutoincrement values are automatically set.\n@param fields\n@param obj\n@throws PersistenceBrokerException", "Retrieve the version number", "Use this API to fetch all the spilloverpolicy resources that are configured on netscaler.", "Determine which type of percent complete is used on on this task,\nand calculate the required value.\n\n@param row task data\n@return percent complete value", "Answer the foreign key query to retrieve the collection\ndefined by CollectionDescriptor", "Given a rebalance-task info, convert it into the protobuf equivalent\n\n@param stealInfo Rebalance task info\n@return Protobuf equivalent of the same" ]
public static String insertDumpInformation(String pattern, String dateStamp, String project) { if (pattern == null) { return null; } else { return pattern.replace("{DATE}", dateStamp).replace("{PROJECT}", project); } }
[ "Inserts the information about the dateStamp of a dump and the project\nname into a pattern.\n\n@param pattern\nString with wildcards\n@param dateStamp\n@param project\n@return String with injected information." ]
[ "Given a protobuf rebalance-partition info, converts it into our\nrebalance-partition info\n\n@param rebalanceTaskInfoMap Proto-buff version of\nRebalanceTaskInfoMap\n@return RebalanceTaskInfo object.", "Readable yyyyMMdd representation of a day, which is also sortable.", "Encodes the given URI host with the given encoding.\n@param host the host to be encoded\n@param encoding the character encoding to encode to\n@return the encoded host\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Shows the provided list of dates as current dates.\n@param dates the current dates to show, accompanied with the information if they are exceptions or not.", "Adds service locator properties to an endpoint reference.\n@param epr\n@param props", "Populate a milestone from a Row instance.\n\n@param row Row instance\n@param task Task instance", "Gets the invalid message.\n\n@param key the key\n@return the invalid message", "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X.", "Finds all providers for the given service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe ordered set of providers for the service if any exists.\nOtherwise, it returns an empty list.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>" ]
public List<List<IN>> classifyFile(String filename) { ObjectBank<List<IN>> documents = makeObjectBankFromFile(filename, plainTextReaderAndWriter); List<List<IN>> result = new ArrayList<List<IN>>(); for (List<IN> document : documents) { // System.err.println(document); classify(document); List<IN> sentence = new ArrayList<IN>(); for (IN wi : document) { sentence.add(wi); // System.err.println(wi); } result.add(sentence); } return result; }
[ "Classify the contents of a file.\n\n@param filename\nContains the sentence(s) to be classified.\n@return {@link List} of classified List of IN." ]
[ "Called when remote end send a message to this connection\n@param receivedMessage the message received\n@return this context", "Use this API to delete systemuser of given name.", "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors", "helper function to convert strings to bytes as needed.\n\n@param key\n@param value", "parse json text to specified class\n\n@param jsonRtn\n@param jsonRtnClazz\n@return", "Gets the estimated time remaining in milliseconds based upon the total number of work units, the start time, and how many units have been done\nso far.\n\nThis should not be called before any work units have been done.", "Restarts a single dyno\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param dynoId the unique identifier of the dyno to restart", "Convert a request type string to value\n\n@param requestType String value of request type GET/POST/PUT/DELETE\n@return Matching REQUEST_TYPE. Defaults to ALL", "Use this API to fetch statistics of appfwpolicylabel_stats resource of given name ." ]
public static void invert( final int blockLength , final boolean upper , final DSubmatrixD1 T , final DSubmatrixD1 T_inv , final double temp[] ) { if( upper ) throw new IllegalArgumentException("Upper triangular matrices not supported yet"); if( temp.length < blockLength*blockLength ) throw new IllegalArgumentException("Temp must be at least blockLength*blockLength long."); if( T.row0 != T_inv.row0 || T.row1 != T_inv.row1 || T.col0 != T_inv.col0 || T.col1 != T_inv.col1) throw new IllegalArgumentException("T and T_inv must be at the same elements in the matrix"); final int M = T.row1-T.row0; final double dataT[] = T.original.data; final double dataX[] = T_inv.original.data; final int offsetT = T.row0*T.original.numCols+M*T.col0; for( int i = 0; i < M; i += blockLength ) { int heightT = Math.min(T.row1-(i+T.row0),blockLength); int indexII = offsetT + T.original.numCols*(i+T.row0) + heightT*(i+T.col0); for( int j = 0; j < i; j += blockLength ) { int widthX = Math.min(T.col1-(j+T.col0),blockLength); for( int w = 0; w < temp.length; w++ ) { temp[w] = 0; } for( int k = j; k < i; k += blockLength ) { int widthT = Math.min(T.col1-(k+T.col0),blockLength); int indexL = offsetT + T.original.numCols*(i+T.row0) + heightT*(k+T.col0); int indexX = offsetT + T.original.numCols*(k+T.row0) + widthT*(j+T.col0); blockMultMinus(dataT,dataX,temp,indexL,indexX,0,heightT,widthT,widthX); } int indexX = offsetT + T.original.numCols*(i+T.row0) + heightT*(j+T.col0); InnerTriangularSolver_DDRB.solveL(dataT,temp,heightT,widthX,heightT,indexII,0); System.arraycopy(temp,0,dataX,indexX,widthX*heightT); } InnerTriangularSolver_DDRB.invertLower(dataT,dataX,heightT,indexII,indexII); } }
[ "Inverts an upper or lower triangular block submatrix.\n\n@param blockLength\n@param upper Is it upper or lower triangular.\n@param T Triangular matrix that is to be inverted. Must be block aligned. Not Modified.\n@param T_inv Where the inverse is stored. This can be the same as T. Modified.\n@param temp Work space variable that is size blockLength*blockLength." ]
[ "Use this API to fetch all the nsdiameter resources that are configured on netscaler.", "Get the collection of untagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\n@param page\n@return A Collection of Photos\n@throws FlickrException", "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\".", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Converts an update description BSON document from a MongoDB Change Event into an\nUpdateDescription object.\n\n@param document the\n@return the converted UpdateDescription", "Creates dependency on management executor.\n\n@param builder the builder\n@param injector the injector\n@param <T> the parameter type\n@return service builder instance\n@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future.", "Obtain the realm used for authentication.\n\nThis realm name applies to both the user and the groups.\n\n@return The name of the realm used for authentication.", "Log a byte array as a hex dump.\n\n@param data byte array", "Use this API to fetch policydataset resource of given name ." ]
public void reset(int profileId, String clientUUID) throws Exception { PreparedStatement statement = null; // TODO: need a better way to do this than brute force.. but the iterative approach is too slow try (Connection sqlConnection = sqlService.getConnection()) { // first remove all enabled overrides with this client uuid String queryString = "DELETE FROM " + Constants.DB_TABLE_ENABLED_OVERRIDE + " WHERE " + Constants.GENERIC_CLIENT_UUID + "= ? " + " AND " + Constants.GENERIC_PROFILE_ID + " = ?"; statement = sqlConnection.prepareStatement(queryString); statement.setString(1, clientUUID); statement.setInt(2, profileId); statement.executeUpdate(); statement.close(); // clean up request response table for this uuid queryString = "UPDATE " + Constants.DB_TABLE_REQUEST_RESPONSE + " SET " + Constants.REQUEST_RESPONSE_CUSTOM_REQUEST + "=?, " + Constants.REQUEST_RESPONSE_CUSTOM_RESPONSE + "=?, " + Constants.REQUEST_RESPONSE_REPEAT_NUMBER + "=-1, " + Constants.REQUEST_RESPONSE_REQUEST_ENABLED + "=0, " + Constants.REQUEST_RESPONSE_RESPONSE_ENABLED + "=0 " + "WHERE " + Constants.GENERIC_CLIENT_UUID + "=? " + " AND " + Constants.GENERIC_PROFILE_ID + "=?"; statement = sqlConnection.prepareStatement(queryString); statement.setString(1, ""); statement.setString(2, ""); statement.setString(3, clientUUID); statement.setInt(4, profileId); statement.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } this.updateActive(profileId, clientUUID, false); }
[ "Resets all override settings for the clientUUID and disables it\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@throws Exception exception" ]
[ "Returns true if this Bytes object equals another. This method doesn't check it's arguments.\n\n@since 1.2.0", "Find out which method to call on the service bean.", "Read custom fields for a GanttProject resource.\n\n@param gpResource GanttProject resource\n@param mpxjResource MPXJ Resource instance", "Unregister the mgmt channel.\n\n@param old the proxy controller to unregister\n@param shuttingDown whether the server inventory is shutting down\n@return whether the registration can be removed from the domain-controller", "Post a build info to the server\n\n@param moduleName String\n@param moduleVersion String\n@param buildInfo Map<String,String>\n@param user String\n@param password String\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Extract WOEID after XML loads", "Stops the emulator. Multiple calls are allowed.\n\n@throws DatastoreEmulatorException if the emulator cannot be stopped", "Use this API to fetch all the ipv6 resources that are configured on netscaler.", "Sorts the specified list itself into ascending order, according to the natural ordering of its elements.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)" ]
public void createInsertionSql(Database model, Platform platform, Writer writer) throws IOException { for (Iterator it = _beans.iterator(); it.hasNext();) { writer.write(platform.getInsertSql(model, (DynaBean)it.next())); if (it.hasNext()) { writer.write("\n"); } } }
[ "Generates and writes the sql for inserting the currently contained data objects.\n\n@param model The database model\n@param platform The platform\n@param writer The output stream" ]
[ "We have received an update that invalidates the beat grid for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no beat grid for the associated player", "Handler for month changes.\n@param event change event.", "Generate JSON format as result of the scan.\n\n@since 1.2", "Print the parameters of the parameterized type t", "Adds a new Token to the end of the linked list", "directive dynamic xxx,yy\n@param node\n@return", "Process the layers.conf file.\n\n@param repoRoot the root\n@return the layers conf\n@throws java.io.IOException", "Stops the background stream thread.", "If there is an unprocessed change event for a particular document ID, fetch it from the\nappropriate namespace change stream listener, and remove it. By reading the event here, we are\nassuming it will be processed by the consumer.\n\n@return the latest unprocessed change event for the given document ID and namespace, or null\nif none exists." ]
@Override public boolean decompose(DMatrixRMaj orig) { if( orig.numCols != orig.numRows ) throw new IllegalArgumentException("Matrix must be square."); if( orig.numCols <= 0 ) return false; int N = orig.numRows; // compute a similar tridiagonal matrix if( !decomp.decompose(orig) ) return false; if( diag == null || diag.length < N) { diag = new double[N]; off = new double[N-1]; } decomp.getDiagonal(diag,off); // Tell the helper to work with this matrix helper.init(diag,off,N); if( computeVectors ) { if( computeVectorsWithValues ) { return extractTogether(); } else { return extractSeparate(N); } } else { return computeEigenValues(); } }
[ "Decomposes the matrix using the QR algorithm. Care was taken to minimize unnecessary memory copying\nand cache skipping.\n\n@param orig The matrix which is being decomposed. Not modified.\n@return true if it decomposed the matrix or false if an error was detected. This will not catch all errors." ]
[ "Loads the given class, respecting the given classloader.\n@param clazz class to load\n@return Loaded class\n@throws ClassNotFoundException", "Print formatted string in the center of 80 chars line, left and right padded.\n\n@param format\nThe string format pattern\n@param args\nThe string format arguments", "Creates a namespace if needed.", "Adds a word to the end of the token list\n@param word word which is to be added\n@return The new Token created around symbol", "Use this API to fetch tmsessionpolicy_binding resource of given name .", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "Get an extent aware Iterator based on the Query\n\n@param query\n@param cld the ClassDescriptor\n@return OJBIterator", "Takes a list of Strings and combines them into a single comma-separated\nString.\n@param strings The Strings to combine.\n@return The combined, comma-separated, String.", "Creates a check box and adds it to the week panel and the checkboxes.\n@param internalValue the internal value of the checkbox\n@param labelMessageKey key for the label of the checkbox" ]