query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public ProjectFile read() throws MPXJException { MPD9DatabaseReader reader = new MPD9DatabaseReader(); reader.setProjectID(m_projectID); reader.setPreserveNoteFormatting(m_preserveNoteFormatting); reader.setDataSource(m_dataSource); reader.setConnection(m_connection); ProjectFile project = reader.read(); return (project); }
[ "Read project data from a database.\n\n@return ProjectFile instance\n@throws MPXJException" ]
[ "and class as property", "Use this API to unset the properties of inatparam resource.\nProperties that need to be unset are specified in args array.", "Plots a list of charts in matrix with 2 columns.\n@param charts", "Use this API to unset the properties of gslbsite resources.\nProperties that need to be unset are specified in args array.", "This method is used to push install referrer via Intent\n@param intent An Intent with the install referrer parameters", "Check the given URI to see if it matches.\n\n@param matchInfo the matchInfo to validate.\n@return True if it matches.", "Look for a style in the named styles provided in the configuration.\n\n@param styleName the name of the style to look for.", "Use this API to unset the properties of cmpparameter resource.\nProperties that need to be unset are specified in args array.", "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" ]
public static server_service_binding[] get(nitro_service service, String name) throws Exception{ server_service_binding obj = new server_service_binding(); obj.set_name(name); server_service_binding response[] = (server_service_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch server_service_binding resources of given name ." ]
[ "Use this API to disable nsfeature.", "Use this API to fetch sslcertkey_sslvserver_binding resources of given name .", "Starts the compressor.", "Use this API to fetch a vpnglobal_intranetip_binding resources.", "Removes the given entity from the inverse associations it manages.", "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model", "Load the avatar base model\n@param avatarResource resource with avatar model", "This method extracts project properties from a GanttProject file.\n\n@param ganttProject GanttProject file", "Send message to socket's output stream.\n\n@param messageToSend message to send.\n\n@return {@code true} if message was sent successfully, {@code false} otherwise." ]
public String registerHandler(GFXEventHandler handler) { String uuid = UUID.randomUUID().toString(); handlers.put(uuid, handler); return uuid; }
[ "Registers a handler and returns the callback key to be passed to\nJavascript.\n\n@param handler Handler to be registered.\n@return A String random UUID that can be used as the callback key." ]
[ "Return a list of unique namespaces, optionally limited by a given predicate, in alphabetical order.\n\nThis method does not require authentication.\n\n@param predicate\n@param perPage\n@param page\n@return NamespacesList\n@throws FlickrException", "Bean types of a session bean.", "Create an info object from a uri and the http method object.\n\n@param uri the uri\n@param method the method", "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10\n\n@param attribute The field name to be used\n@param value1 The lower boundary\n@param value2 The upper boundary", "Whether the specified JavaBeans property exists on the given type or not.\n\n@param clazz the type of interest\n@param property the JavaBeans property name\n@param elementType the element type to check, must be either {@link ElementType#FIELD} or\n{@link ElementType#METHOD}.\n@return {@code true} if the specified property exists, {@code false} otherwise", "Returns the count of total number of unread inbox messages for the user\n@return int - count of all unread messages", "Checks whether table name and key column names of the given joinable and inverse collection persister match.", "Main entry point. Reads a directory containing a P3 Btrieve database files\nand returns a map of table names and table content.\n\n@param directory directory containing the database\n@param prefix file name prefix used to identify files from the same database\n@return Map of table names to table data", "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" ]
public ExecInspection execStartVerbose(String containerId, String... commands) { this.readWriteLock.readLock().lock(); try { String id = execCreate(containerId, commands); CubeOutput output = execStartOutput(id); return new ExecInspection(output, inspectExec(id)); } finally { this.readWriteLock.readLock().unlock(); } }
[ "EXecutes command to given container returning the inspection object as well. This method does 3 calls to\ndockerhost. Create, Start and Inspect.\n\n@param containerId\nto execute command." ]
[ "Utility function that fetches user defined store definitions\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch store definitions from\n@return The map container that maps store names to store definitions", "this method will be invoked after methodToBeInvoked is invoked", "Gets the gradient at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@param gradient The output gradient, a vector of partial derivatives.", "Creates metadata on this folder using a specified scope and template.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "performs a primary key lookup operation against RDBMS and materializes\nan object from the resulting row. Only skalar attributes are filled from\nthe row, references are not resolved.\n@param oid contains the primary key info.\n@param cld ClassDescriptor providing mapping information.\n@return the materialized object, null if no matching row was found or if\nany error occured.", "Redirect standard streams so that the output can be passed to listeners.", "The primary run loop of the kqueue event processor.", "Use this API to rename a gslbservice resource.", "Gets the Taneja divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Taneja divergence between p and q." ]
public static DMatrixSparseTriplet uniform(int numRows , int numCols , int nz_total , double min , double max , Random rand ) { // Create a list of all the possible element values int N = numCols*numRows; if( N < 0 ) throw new IllegalArgumentException("matrix size is too large"); nz_total = Math.min(N,nz_total); int selected[] = new int[N]; for (int i = 0; i < N; i++) { selected[i] = i; } for (int i = 0; i < nz_total; i++) { int s = rand.nextInt(N); int tmp = selected[s]; selected[s] = selected[i]; selected[i] = tmp; } // Create a sparse matrix DMatrixSparseTriplet ret = new DMatrixSparseTriplet(numRows,numCols,nz_total); for (int i = 0; i < nz_total; i++) { int row = selected[i]/numCols; int col = selected[i]%numCols; double value = rand.nextDouble()*(max-min)+min; ret.addItem(row,col, value); } return ret; }
[ "Randomly generates matrix with the specified number of matrix elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum value\n@param max maximum value\n@param rand Random number generated\n@return Randomly generated matrix" ]
[ "Build control archive of the deb\n\n@param packageControlFile the package control file\n@param controlFiles the other control information files (maintainer scripts, etc)\n@param dataSize the size of the installed package\n@param checksums the md5 checksums of the files in the data archive\n@param output\n@return\n@throws java.io.FileNotFoundException\n@throws java.io.IOException\n@throws java.text.ParseException", "Retrieve the effective calendar for this task. If the task does not have\na specific calendar associated with it, fall back to using the default calendar\nfor the project.\n\n@return ProjectCalendar instance", "Store a comment based on comment text, gavc and user information\n\n@param gavc - entity id\n@param commentText - comment text\n@param credential - user credentials\n@param entityType - type of the entity", "Determines if the queue identified by the given key is a regular queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key identifies a regular queue, false otherwise", "Scans given archive for files passing given filter, adds the results into given list.", "Sets a new config and clears the previous cache", "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", "Get the minutes difference", "Update the Target Filter of the ImporterService.\nApply the induce modifications on the links of the ImporterService\n\n@param serviceReference" ]
@Nonnull protected Payload getPayload(final String testName) { // Get the current bucket. final TestBucket testBucket = buckets.get(testName); // Lookup Payloads for this test if (testBucket != null) { final Payload payload = testBucket.getPayload(); if (null != payload) { return payload; } } return Payload.EMPTY_PAYLOAD; }
[ "Return the Payload attached to the current active bucket for |test|.\nAlways returns a payload so the client doesn't crash on a malformed\ntest definition.\n\n@param testName test name\n@return pay load attached to the current active bucket\n@deprecated Use {@link #getPayload(String, Bucket)} instead" ]
[ "Joins with another IPv4 segment to produce a IPv6 segment.\n\n@param creator\n@param low\n@return", "Calculate the child size along the axis\n@param dataIndex data index\n@param axis {@link Axis}\n@return child size", "Pops the top of the stack of active elements if the current position in the call stack corresponds to the one\nthat pushed the active elements.\n\n<p>This method does not do any type checks, so take care to retrieve the elements with the same types used to push\nto them onto the stack.\n\n@param <T> the type of the elements\n\n@return the active elements or null if the current call stack did not push any active elements onto the stack", "returns controller if a new device is found", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception", "Get siblings of the same type as element from parent.\n\n@param parent parent node.\n@param element element.\n@return List of sibling (from element) under parent", "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", "Performs a standard QR decomposition on the specified submatrix that is one block wide.\n\n@param blockLength\n@param Y\n@param gamma" ]
public static final Bytes of(CharSequence cs) { if (cs instanceof String) { return of((String) cs); } Objects.requireNonNull(cs); if (cs.length() == 0) { return EMPTY; } ByteBuffer bb = StandardCharsets.UTF_8.encode(CharBuffer.wrap(cs)); if (bb.hasArray()) { // this byte buffer has never escaped so can use its byte array directly return new Bytes(bb.array(), bb.position() + bb.arrayOffset(), bb.limit()); } else { byte[] data = new byte[bb.remaining()]; bb.get(data); return new Bytes(data); } }
[ "Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8." ]
[ "Creates an observer\n\n@param method The observer method abstraction\n@param declaringBean The declaring bean\n@param manager The Bean manager\n@return An observer implementation built from the method abstraction", "Add the option specifying if the categories should be displayed collapsed\nwhen the dialog opens.\n\n@see org.opencms.ui.actions.I_CmsADEAction#getParams()", "This ensures that we are able to use the default preference from JSDK, to check basically if we are in Android or Not\n@param preference\n@throws BackingStoreException", "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file", "Save a weak reference to the resource", "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.", "Within a single zone, tries swapping some minimum number of random\npartitions per node with some minimum number of random partitions from\nother nodes within the zone. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This is very expensive.\n\nNormal case should be :\n\n#zones X #nodes/zone X max partitions/node X max partitions/zone\n\n@param nextCandidateCluster cluster object.\n@param greedyAttempts See RebalanceCLI.\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param greedySwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs\n@return updated cluster", "Traces the duration between origin time in the http Request and time just\nbefore being processed by the fat client\n\n@param operationType\n@param originTimeInMS - origin time in the Http Request\n@param requestReceivedTimeInMs - System Time in ms\n@param keyString", "helper function to convert strings to bytes as needed.\n\n@param key\n@param value" ]
@Override protected void runUnsafe() throws Exception { Path reportDirectory = getReportDirectoryPath(); Files.walkFileTree(reportDirectory, new DeleteVisitor()); LOGGER.info("Report directory <{}> was successfully cleaned.", reportDirectory); }
[ "Remove the report directory." ]
[ "given the groupName, it returns the groupId\n\n@param groupName name of group\n@return ID of group", "Mbeans for SLOP_UPDATE", "Make a copy.", "Decomposes the provided matrix and stores the result in the same matrix.\n\n@param A Matrix that is to be decomposed. Modified.\n@return If it succeeded or not.", "Returns the result of a stored procedure executed on the backend.\n\n@param embeddedCacheManager embedded cache manager\n@param storedProcedureName name of stored procedure\n@param queryParameters parameters passed for this query\n@param classLoaderService the class loader service\n\n@return a {@link ClosableIterator} with the result of the query", "Add an appliable dependency for this task item.\n\n@param appliable the appliable dependency.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated dependency", "Send message to all connections tagged with all given tags\n@param message the message\n@param labels the tag labels", "Cancel all currently active operations.\n\n@return a list of cancelled operations", "Use this API to fetch responderpolicy_binding resource of given name ." ]
private boolean ensureValidSetter(final Expression expression, final Expression leftExpression, final Expression rightExpression, final SetterInfo setterInfo) { // for expressions like foo = { ... } // we know that the RHS type is a closure // but we must check if the binary expression is an assignment // because we need to check if a setter uses @DelegatesTo VariableExpression ve = new VariableExpression("%", setterInfo.receiverType); MethodCallExpression call = new MethodCallExpression( ve, setterInfo.name, rightExpression ); call.setImplicitThis(false); visitMethodCallExpression(call); MethodNode directSetterCandidate = call.getNodeMetaData(StaticTypesMarker.DIRECT_METHOD_CALL_TARGET); if (directSetterCandidate==null) { // this may happen if there's a setter of type boolean/String/Class, and that we are using the property // notation AND that the RHS is not a boolean/String/Class for (MethodNode setter : setterInfo.setters) { ClassNode type = getWrapper(setter.getParameters()[0].getOriginType()); if (Boolean_TYPE.equals(type) || STRING_TYPE.equals(type) || CLASS_Type.equals(type)) { call = new MethodCallExpression( ve, setterInfo.name, new CastExpression(type,rightExpression) ); call.setImplicitThis(false); visitMethodCallExpression(call); directSetterCandidate = call.getNodeMetaData(StaticTypesMarker.DIRECT_METHOD_CALL_TARGET); if (directSetterCandidate!=null) { break; } } } } if (directSetterCandidate != null) { for (MethodNode setter : setterInfo.setters) { if (setter == directSetterCandidate) { leftExpression.putNodeMetaData(StaticTypesMarker.DIRECT_METHOD_CALL_TARGET, directSetterCandidate); storeType(leftExpression, getType(rightExpression)); break; } } } else { ClassNode firstSetterType = setterInfo.setters.iterator().next().getParameters()[0].getOriginType(); addAssignmentError(firstSetterType, getType(rightExpression), expression); return true; } return false; }
[ "Given a binary expression corresponding to an assignment, will check that the type of the RHS matches one\nof the possible setters and if not, throw a type checking error.\n@param expression the assignment expression\n@param leftExpression left expression of the assignment\n@param rightExpression right expression of the assignment\n@param setterInfo possible setters\n@return true if type checking passed" ]
[ "Sets ID field value.\n\n@param val value", "Write the field to the specified channel.\n\n@param channel the channel to which it should be written\n\n@throws IOException if there is a problem writing to the channel", "Add the string representation of the given object to this sequence immediately. That is, all the trailing\nwhitespace of this sequence will be ignored and the string is appended directly after the last segment that\ncontains something besides whitespace. The given indentation will be prepended to each line except the first one\nif the object has a multi-line string representation.\n\n@param object\nthe to-be-appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.", "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given color.", "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.", "Create a new queued pool using the defaults for key of type K, request of\ntype R, and value of Type V.\n\n@param factory The factory that creates objects\n@return The created pool", "Tells you if the expression is a null safe dereference.\n@param expression\nexpression\n@return\ntrue if is null safe dereference.", "Check the given resource back into the pool\n\n@param key The key for the resource\n@param resource The resource", "Obtains a Pax local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Pax local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
public static void initializeInternalProject(CommandExecutor executor) { final long creationTimeMillis = System.currentTimeMillis(); try { executor.execute(createProject(creationTimeMillis, Author.SYSTEM, INTERNAL_PROJ)) .get(); } catch (Throwable cause) { cause = Exceptions.peel(cause); if (!(cause instanceof ProjectExistsException)) { throw new Error("failed to initialize an internal project", cause); } } // These repositories might be created when creating an internal project, but we try to create them // again here in order to make sure them exist because sometimes their names are changed. for (final String repo : ImmutableList.of(Project.REPO_META, Project.REPO_DOGMA)) { try { executor.execute(createRepository(creationTimeMillis, Author.SYSTEM, INTERNAL_PROJ, repo)) .get(); } catch (Throwable cause) { cause = Exceptions.peel(cause); if (!(cause instanceof RepositoryExistsException)) { throw new Error(cause); } } } }
[ "Creates an internal project and repositories such as a token storage." ]
[ "Finds trajectory by ID\n@param t List of Trajectories\n@param id ID of the trajectorie\n@return Trajectory with ID=id", "set the layout which will host the ScrimInsetsFrameLayout and its layoutParams\n\n@param container\n@param layoutParams\n@return", "Use this API to fetch sslcertkey_sslocspresponder_binding resources of given name .", "Operations to do after all subthreads finished their work on index\n\n@param backend", "Gets the '.disabled' file for a given version of this store. That file may or may not\nexist.\n\n@param version of the store for which to get the '.disabled' file.\n@return an instance of {@link File} pointing to the '.disabled' file.\n@throws PersistenceFailureException if the requested version cannot be found.", "This method processes a single deferred relationship list.\n\n@param dr deferred relationship list data\n@throws MPXJException", "Combines adjacent blocks of the same type.", "On host controller reload, remove a not running server registered in the process controller declared as stopping.", "To read an object in a quick & dirty way. Prepare to handle failures when object serialization changes!" ]
public static final String getSelectedText(ListBox list) { int index = list.getSelectedIndex(); return (index >= 0) ? list.getItemText(index) : null; }
[ "Utility function to get the current text." ]
[ "Checks whether two internet addresses are on the same subnet.\n\n@param prefixLength the number of bits within an address that identify the network\n@param address1 the first address to be compared\n@param address2 the second address to be compared\n\n@return true if both addresses share the same network bits", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "An extremely simple method for identifying multimedia. This\ncould be improved, but it's good enough for this example.\n\n@param file which could be an image or a video\n@return true if the file can be previewed, false otherwise", "Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.\n\n@param inv Where the value of the inverse will be stored. Modified.", "Get an InputStream for the original image. Callers must close the stream upon completion.\n\n@deprecated\n@see PhotosInterface#getImageAsStream(Photo, int)\n@return The InputStream\n@throws IOException", "Draw a rectangular boundary with this color and linewidth.\n\n@param rect\nrectangle\n@param color\ncolor\n@param linewidth\nline width", "Returns true if the given item document lacks a label for at least one of\nthe languages covered.\n\n@param itemDocument\n@return true if some label is missing", "Parses the date or returns null if it fails to do so.", "Get string value of flow context for current instance\n@return string value of flow context" ]
public static boolean isBigInteger(CharSequence self) { try { new BigInteger(self.toString().trim()); return true; } catch (NumberFormatException nfe) { return false; } }
[ "Determine if a CharSequence can be parsed as a BigInteger.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isBigInteger(String)\n@since 1.8.2" ]
[ "Deletes the specified shovel from specified virtual host.\n\n@param vhost virtual host from where to delete the shovel\n@param shovelname Shovel to be deleted.", "Retrieve a boolean value.\n\n@param name column name\n@return boolean value", "Parses and adds dictionaries to the Solr index.\n\n@param cms the OpenCms object.\n\n@throws CmsRoleViolationException in case the user does not have the required role ROOT_ADMIN", "Construct an InterestRateSwapProductDescriptor from a node in a FpML file.\n\n@param trade The node containing the swap.\n@return Descriptor of the swap.", "Use this API to fetch autoscalepolicy_binding resource of given name .", "Use this API to fetch nd6ravariables resources of given names .", "Obtains a local date in Symmetry010 calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date", "Create a new linear interpolated time discrete process by\nusing the time discretization of this process and the sum of this process and the given one\nas its values.\n\n@param process A given process.\n@return A new process representing the of this and the given process.\n@throws CalculationException Thrown if the given process fails to evaluate at a certain time point.", "Passes the Socket's InputStream and OutputStream to the closure. The\nstreams will be closed after the closure returns, even if an exception\nis thrown.\n\n@param socket a Socket\n@param closure a Closure\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 1.5.2" ]
public static synchronized void clearDaoCache() { if (classMap != null) { classMap.clear(); classMap = null; } if (tableConfigMap != null) { tableConfigMap.clear(); tableConfigMap = null; } }
[ "Clear out our DAO caches." ]
[ "Apply issues tracker info to a build info builder (used by generic tasks and maven2 which doesn't use the extractor", "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "Gets the data by id.\n\n@param id the id\n@return the data by id\n@throws IOException Signals that an I/O exception has occurred.", "Replaces the proxy url with the correct url from the tileMap.\n\n@return correct url to TMS service", "This returns all profiles associated with a server name\n\n@param serverName server Name\n@return profile UUID\n@throws Exception exception", "replace the counter for K1-index o by new counter c", "Set a friendly name for a client\n\n@param profileId profileId of the client\n@param clientUUID UUID of the client\n@param friendlyName friendly name of the client\n@return return Client object or null\n@throws Exception exception", "Use this API to update nsdiameter.", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns the number of elements in the sorted set with a value in the given range.\n@param lexRange\n@return the number of elements in the specified range." ]
private String getClassLabel(EntityIdValue entityIdValue) { ClassRecord classRecord = this.classRecords.get(entityIdValue); String label; if (classRecord == null || classRecord.itemDocument == null) { label = entityIdValue.getId(); } else { label = getLabel(entityIdValue, classRecord.itemDocument); } EntityIdValue labelOwner = this.labels.get(label); if (labelOwner == null) { this.labels.put(label, entityIdValue); return label; } else if (labelOwner.equals(entityIdValue)) { return label; } else { return label + " (" + entityIdValue.getId() + ")"; } }
[ "Returns a string that should be used as a label for the given item. The\nmethod also ensures that each label is used for only one class. Other\nclasses with the same label will have their QID added for disambiguation.\n\n@param entityIdValue\nthe item to label\n@return the label" ]
[ "Counts each property for which there is a statement in the given item\ndocument, ignoring the property thisPropertyIdValue to avoid properties\ncounting themselves.\n\n@param statementDocument\n@param usageRecord\n@param thisPropertyIdValue", "Use this API to update rsskeytype.", "Stores a new certificate and its associated private key in the keystore.\n@param hostname\n@param cert\n@param privKey @throws KeyStoreException\n@throws CertificateException\n@throws NoSuchAlgorithmException", "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", "Constructs a camera rig with cameras attached. An owner scene object is automatically\ncreated for the camera rig.\n\nDo not try to change the owner object of the camera rig - not supported currently and will\nlead to native crashes.", "Provides a collection of all the nodes in the tree\nusing a depth first traversal.\n\n@return the list of (depth-first) ordered nodes", "Removes an accessory from being handled or advertised by this root. Any existing Homekit\nconnections will be terminated to allow the clients to reconnect and see the updated accessory\nlist.\n\n@param accessory accessory to cease advertising and handling", "Function to perform the forward pass for batch convolution", "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar" ]
public static dnsview[] get(nitro_service service, String viewname[]) throws Exception{ if (viewname !=null && viewname.length>0) { dnsview response[] = new dnsview[viewname.length]; dnsview obj[] = new dnsview[viewname.length]; for (int i=0;i<viewname.length;i++) { obj[i] = new dnsview(); obj[i].set_viewname(viewname[i]); response[i] = (dnsview) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch dnsview resources of given names ." ]
[ "Converts this file into a resource name on the classpath by cutting of the file path\nto the classpath root.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param file The file.\n@return The resource name on the classpath.", "Appends the GROUP BY clause for the Query\n@param groupByFields\n@param buf", "List the photos with the most views, comments or favorites.\n\n@param date\n(Optional) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day. If no date is provided, all time view counts will be returned.\n@param sort\n(Optional) The order in which to sort returned photos. Defaults to views. The possible values are views, comments and favorites. Other sort\noptions are available through flickr.photos.search.\n@param perPage\n(Optional) Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html\"", "Initializes the counters for a property to zero if not done yet.\n\n@param usageStatistics\nstatistics object to initialize\n@param property\nthe property to count", "Gets Widget bounds width\n@return width", "Add groups for given group parent item.\n\n@param type the tree type\n@param ouItem group parent item", "Generates a comment regarding the parameters.\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@param action - the action performed by the user\n@param commentedText - comment text\n@param user - comment left by\n@param date - date comment was created\n@return - comment entity", "Returns the temporary directory used by java.\n\n@return The temporary directory\n@throws IOException If an io error occurred", "Configure properties needed to connect to a Fluo application\n\n@param conf Job configuration\n@param config use {@link FluoConfiguration} to configure programmatically" ]
@Override public Inet6Address toInetAddress() { if(hasZone()) { Inet6Address result; if(hasNoValueCache() || (result = valueCache.inetAddress) == null) { valueCache.inetAddress = result = (Inet6Address) toInetAddressImpl(getBytes()); } return result; } return (Inet6Address) super.toInetAddress(); }
[ "we need to cache the address in here and not in the address section if there is a zone" ]
[ "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Register the given object under the package name of the object's class\nwith the given type name.\n\nthis method using the platform mbean server as returned by\nManagementFactory.getPlatformMBeanServer()\n\n@param typeName The name of the type to register\n@param obj The object to register as an mbean", "Use this API to change appfwsignatures.", "Processes the most recent dump of the given type using the given dump\nprocessor.\n\n@see DumpProcessingController#processMostRecentMainDump()\n@see DumpProcessingController#processAllRecentRevisionDumps()\n\n@param dumpContentType\nthe type of dump to process\n@param dumpFileProcessor\nthe processor to use\n@deprecated Use {@link #getMostRecentDump(DumpContentType)} and\n{@link #processDump(MwDumpFile)} instead; method will vanish\nin WDTK 0.5", "Deselects all child items of the provided item.\n@param item the item for which all childs should be deselected.d", "Will auto format the given string to provide support for pickadate.js formats.", "Get the short exception message using the requested locale. This does not include the cause exception message.\n\n@param locale locale for message\n@return (short) exception message", "Use this API to add nsacl6." ]
public static OgmCollectionPersister getInverseCollectionPersister(OgmCollectionPersister mainSidePersister) { if ( mainSidePersister.isInverse() || !mainSidePersister.isManyToMany() || !mainSidePersister.getElementType().isEntityType() ) { return null; } EntityPersister inverseSidePersister = mainSidePersister.getElementPersister(); // process collection-typed properties of inverse side and try to find association back to main side for ( Type type : inverseSidePersister.getPropertyTypes() ) { if ( type.isCollectionType() ) { OgmCollectionPersister inverseCollectionPersister = getPersister( mainSidePersister.getFactory(), (CollectionType) type ); if ( isCollectionMatching( mainSidePersister, inverseCollectionPersister ) ) { return inverseCollectionPersister; } } } return null; }
[ "Returns the given collection persister for the inverse side in case the given persister represents the main side\nof a bi-directional many-to-many association.\n\n@param mainSidePersister the collection persister on the main side of a bi-directional many-to-many association\n@return the collection persister for the inverse side of the given persister or {@code null} in case it\nrepresents the inverse side itself or the association is uni-directional" ]
[ "Locates a task within a child task container which matches the supplied UUID.\n\n@param parent child task container\n@param uuid required UUID\n@return Task instance or null if the task is not found", "Cancels all the pending & running requests and releases all the dispatchers.", "Returns true if this entity's primary key is not null, and for numeric\nfields, is non-zero.", "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", "IS NULL predicate\n@param value the value for which to check\n@return a {@link LuaCondition} instance", "Check if the provided manifestPath is correct.\nSet the manifest and imagePath in case of the correct manifest.\n@param manifestPath\n@param candidateImagePath\n@param dependenciesClient\n@param listener\n@return true if found the correct manifest\n@throws IOException", "refresh all primitive typed attributes of a cached instance\nwith the current values from the database.\nrefreshing of reference and collection attributes is not done\nhere.\n@param cachedInstance the cached instance to be refreshed\n@param oid the Identity of the cached instance\n@param cld the ClassDescriptor of cachedInstance", "Reverses all the TransitionControllers managed by this TransitionManager", "Throw IllegalArgumentException if the value is null.\n\n@param name the parameter name.\n@param value the value that should not be null.\n@param <T> the value type.\n@throws IllegalArgumentException if value is null." ]
public List<BoxAPIResponse> execute(List<BoxAPIRequest> requests) { this.prepareRequest(requests); BoxJSONResponse batchResponse = (BoxJSONResponse) send(); return this.parseResponse(batchResponse); }
[ "Execute a set of API calls as batch request.\n@param requests list of api requests that has to be executed in batch.\n@return list of BoxAPIResponses" ]
[ "Destroys all resource requests in requestQueue.\n\n@param requestQueue The queue for which all resource requests are to be\ndestroyed.", "Helper method to get a list of node ids.\n\n@param nodeList", "Invalidate the item in layout\n@param dataIndex data index", "Rename a key for all languages.\n@param oldKey the key to rename\n@param newKey the new key name\n@return <code>true</code> if renaming was successful, <code>false</code> otherwise.", "Add several jvm metrics.", "Generate Allure report data from directories with allure report results.\n\n@param args a list of directory paths. First (args.length - 1) arguments -\nresults directories, last argument - the folder to generated data", "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name .", "Sets the occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception", "Calculates the static drift. Static means, that the drift does not change direction or intensity over time.\n\n@param tracks Tracks which seems to exhibit a local drift\n@return The static drift over all trajectories" ]
public synchronized RegistrationPoint getOldestRegistrationPoint() { return registrationPoints.size() == 0 ? null : registrationPoints.values().iterator().next().get(0); }
[ "Gets the registration point that been associated with the registration for the longest period.\n\n@return the initial registration point, or {@code null} if there are no longer any registration points" ]
[ "read data from channel to buffer\n\n@param channel readable channel\n@param buffer bytebuffer\n@return read size\n@throws IOException any io exception", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "Stores an new entry in the cache.", "Extract the field types from the fieldConfigs if they have not already been configured.", "Copy all of the mappings from the specified map to this one, replacing\nany mappings with the same keys.\n\n@param in the map whose mappings are to be copied", "copy all fields from the \"from\" object to the \"to\" object.\n\n@param from source object\n@param to from's clone\n@param fields fields to be populated\n@param accessible 'true' if all 'fields' have been made accessible during\ntraversal", "Sets a custom response on an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@param customData custom response data\n@return true if success, false otherwise", "Sets current state\n@param state new state", "Sets the position of a UIObject" ]
public static RouteInfo of(ActionContext context) { H.Method m = context.req().method(); String path = context.req().url(); RequestHandler handler = context.handler(); if (null == handler) { handler = UNKNOWN_HANDLER; } return new RouteInfo(m, path, handler); }
[ "used by Error template" ]
[ "Counts the number of elements in A which are not zero.\n@param A A matrix\n@return number of non-zero elements", "Collapses all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start collapsing parents\n@param parentCount The number of parents to collapse", "package scope in order to test the method", "Convert one project file format to another.\n\n@param inputFile input file\n@param outputFile output file\n@throws Exception", "Returns the constructor of the indirection handler class.\n\n@return The constructor for indirection handlers", "Add an additional binary type", "Returns a source excerpt of a JavaDoc link to a method on this type.", "Set child components.\n\n@param children\nchildren", "prefix the this class fk columns with the indirection table" ]
public static String minus(CharSequence self, Object target) { String s = self.toString(); String text = DefaultGroovyMethods.toString(target); int index = s.indexOf(text); if (index == -1) return s; int end = index + text.length(); if (s.length() > end) { return s.substring(0, index) + s.substring(end); } return s.substring(0, index); }
[ "Remove a part of a CharSequence by replacing the first occurrence\nof target within self with '' and returns the result.\n\n@param self a CharSequence\n@param target an object representing the part to remove\n@return a String containing the original minus the part to be removed\n@see #minus(String, Object)\n@since 1.8.2" ]
[ "There appear to be two ways of representing task notes in an MPP8 file.\nThis method tries to determine which has been used.\n\n@param task task\n@param data task data\n@param taskExtData extended task data\n@param taskVarData task var data", "Called recursively to renumber child task IDs.\n\n@param parentTask parent task instance\n@param currentID current task ID\n@return updated current task ID", "Deploys application reading resources from specified URLs\n\n@param applicationName to configure in cluster\n@param urls where resources are read\n@return the name of the application\n@throws IOException", "Puts the cached security context in the thread local.\n\n@param context the cache context", "Create a ModelNode representing the CPU the instance is running on.\n\n@return a ModelNode representing the CPU the instance is running on.\n@throws OperationFailedException", "Process the timephased resource assignment data to work out the\nsplit structure of the task.\n\n@param task parent task\n@param timephasedComplete completed resource assignment work\n@param timephasedPlanned planned resource assignment work", "Returns the result of the performed spellcheck formatted in JSON.\n\n@param request The CmsSpellcheckingRequest.\n@return JSONObject that contains the result of the performed spellcheck.", "Used to get PB, when no tx is running.", "Return the path to the parent directory. Should return the root if\nfrom is root.\n\n@param from either a file or directory\n@return the parent directory" ]
private static int getSqlInLimit() { try { PersistenceBrokerConfiguration config = (PersistenceBrokerConfiguration) PersistenceBrokerFactory .getConfigurator().getConfigurationFor(null); return config.getSqlInLimit(); } catch (ConfigurationException e) { return 200; } }
[ "read the prefetchInLimit from Config based on OJB.properties" ]
[ "Adds a JSON string to the DB.\n\n@param obj the JSON to record\n@param table the table to insert into\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR", "Converts a sequence of Java characters to a sequence of unicode code points.\n\n@return the number of code points written to the destination buffer", "Get ComponentsMultiThread of current instance\n@return componentsMultiThread", "Returns a list of objects for each line in the spreadsheet, of the specified type.\n\n<p>\nIf the class is a view model then the objects will be properly instantiated (that is, using\n{@link DomainObjectContainer#newViewModelInstance(Class, String)}, with the correct\nview model memento); otherwise the objects will be simple transient objects (that is, using\n{@link DomainObjectContainer#newTransientInstance(Class)}).\n</p>", "Draw an elliptical exterior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for stroking\n@param linewidth line width", "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message", "Was this beat sent by the current tempo master?\n\n@return {@code true} if the device that sent this beat is the master\n@throws IllegalStateException if the {@link VirtualCdj} is not running", "Searches for a declared method with a given name. If the class declares multiple methods with the given name,\nthere is no guarantee as of which methods is returned. Null is returned if the class does not declare a method\nwith the given name.\n@param clazz the given class\n@param methodName the given method name\n@return method method with the given name declared by the given class or null if no such method exists", "Whether the specified JavaBeans property exists on the given type or not.\n\n@param clazz the type of interest\n@param property the JavaBeans property name\n@param elementType the element type to check, must be either {@link ElementType#FIELD} or\n{@link ElementType#METHOD}.\n@return {@code true} if the specified property exists, {@code false} otherwise" ]
public static void executeCommand(String[] args) throws IOException { OptionParser parser = getParser(); String url = null; Boolean confirm = false; // parse command-line input OptionSet options = parser.parse(args); if(options.has(AdminParserUtils.OPT_HELP)) { printHelp(System.out); return; } AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_URL); url = (String) options.valueOf(AdminParserUtils.OPT_URL); if(options.has(AdminParserUtils.OPT_CONFIRM)) { confirm = true; } // print summary System.out.println("Synchronize metadata versions across all nodes"); System.out.println("Location:"); System.out.println(" bootstrap url = " + url); System.out.println(" node = all nodes"); AdminClient adminClient = AdminToolUtils.getAdminClient(url); AdminToolUtils.assertServerNotInRebalancingState(adminClient); Versioned<Properties> versionedProps = mergeAllVersions(adminClient); printVersions(versionedProps); // execute command if(!AdminToolUtils.askConfirm(confirm, "do you want to synchronize metadata versions to all node")) return; adminClient.metadataMgmtOps.setMetadataVersion(versionedProps); }
[ "Parses command-line and synchronizes metadata versions across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException" ]
[ "Adds a parameter that requires a string argument to the argument list.\nIf the given argument is null, then the argument list remains unchanged.", "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an integer (rounding might occur)", "Determine the X coordinate within the component at which the specified beat begins.\n\n@param beat the beat number whose position is desired\n@return the horizontal position within the component coordinate space where that beat begins\n@throws IllegalArgumentException if the beat number exceeds the number of beats in the track.", "Returns the finish date for this resource assignment.\n\n@return finish date", "Print time unit.\n\n@param value TimeUnit instance\n@return time unit value", "We have received notification that a device is no longer on the network, so clear out its artwork.\n\n@param announcement the packet which reported the device’s disappearance", "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "Returns the title according to the given locale.\n@param locale the locale for which the title should be read.\n@return the title according to the given locale", "Returns a representation of the date from the value attributes as ISO\n8601 encoding.\n\n@param value\n@return ISO 8601 value (String)" ]
@Override public TagsInterface getTagsInterface() { if (tagsInterface == null) { tagsInterface = new TagsInterface(apiKey, sharedSecret, transport); } return tagsInterface; }
[ "Get the TagsInterface for working with Flickr Tags.\n\n@return The TagsInterface" ]
[ "Curries a function that takes one argument.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a function that takes no arguments. Never <code>null</code>.", "Use this API to add dnstxtrec.", "Iterate and insert each of the elements of the Collection.\n\n@param objects\nThe objects to insert\n@param outIdentifier\nIdentifier to lookup the returned objects\n@param returnObject\nboolean to specify whether the inserted Collection is part of the ExecutionResults\n@param entryPoint\nOptional EntryPoint for the insertions\n@return", "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object", "Append the path to the StringBuilder.\n\n@param result the string builder to add the path to.", "Remove any mapping for this key, and return any previously\nmapped value.\n\n@param key the key whose mapping is to be removed\n@return the value removed, or null", "Removes a tag from the task. Returns an empty data block.\n\n@param task The task to remove a tag from.\n@return Request object", "Use this API to add dbdbprofile.", "JSObject will return the String \"undefined\" at certain times, so we\nneed to make sure we're not getting a value that looks valid, but isn't.\n\n@param val The value from Javascript to be checked.\n@return Either null or the value passed in." ]
public Constructor getZeroArgumentConstructor() { if (zeroArgumentConstructor == null && !alreadyLookedupZeroArguments) { try { zeroArgumentConstructor = getClassOfObject().getConstructor(NO_PARAMS); } catch (NoSuchMethodException e) { //no public zero argument constructor available let's try for a private/protected one try { zeroArgumentConstructor = getClassOfObject().getDeclaredConstructor(NO_PARAMS); //we found one, now let's make it accessible zeroArgumentConstructor.setAccessible(true); } catch (NoSuchMethodException e2) { //out of options, log the fact and let the method return null LoggerFactory.getDefaultLogger().warn( this.getClass().getName() + ": " + "No zero argument constructor defined for " + this.getClassOfObject()); } } alreadyLookedupZeroArguments = true; } return zeroArgumentConstructor; }
[ "returns the zero argument constructor for the class represented by this class descriptor\nor null if a zero argument constructor does not exist. If the zero argument constructor\nfor this class is not public it is made accessible before being returned." ]
[ "Chooses the ECI mode most suitable for the content of this symbol.", "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}", "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return", "Gets the type to use for the Vaadin table column corresponding to the c-th column in this result.\n\n@param c the column index\n@return the class to use for the c-th Vaadin table column", "Get the time zone for a specific stock or index.\nFor stocks, the exchange suffix is extracted from the stock symbol to retrieve the time zone.\n\n@param symbol stock symbol in YahooFinance\n@return time zone of the exchange on which this stock is traded", "True if deleted, false if not found.", "Determines whether a project has the specified publisher type, wrapped by the \"Flexible Publish\" publisher.\n@param project The project\n@param type The type of the publisher\n@return true if the project contains a publisher of the specified type wrapped by the \"Flexible Publish\" publisher.", "Collapses all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start collapsing parents\n@param parentCount The number of parents to collapse", "Add precedence -10 because we need that ContainerRegistry is available in the Arquillian scope." ]
public Path getReportDirectory() { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(getGraphContext()); Path path = cfg.getOutputPath().asFile().toPath().resolve(REPORTS_DIR); createDirectoryIfNeeded(path); return path.toAbsolutePath(); }
[ "Returns the output directory for reporting." ]
[ "Adds the class descriptor to this model.\n\n@param classDef The class descriptor\n@return The class descriptor or <code>null</code> if there is no such class in this model", "Provides a message which describes the expected format and arguments\nfor this command. This is used to provide user feedback when a command\nrequest is malformed.\n\n@return A message describing the command protocol format.", "Parse currency.\n\n@param value currency value\n@return currency value", "Stop offering shared dbserver sessions.", "Parses operations where the input comes from variables to its left only. Hard coded to only look\nfor transpose for now\n\n@param tokens List of all the tokens\n@param sequence List of operation sequence", "Use this API to fetch aaauser_auditsyslogpolicy_binding resources of given name .", "Gets a JSON string containing any pending changes to this object that can be sent back to the Box API.\n@return a JSON string containing the pending changes.", "Returns the value of the identified field as a Date.\nTime fields returned from an FQL query are expressed in terms of seconds since midnight, January 1, 1970 UTC.\n@param fieldName the name of the field\n@return the value of the field as a Date\n@throws FqlException if the field's value cannot be expressed as a long value from which a Date object can be constructed.", "Converts this file into a resource name on the classpath by cutting of the file path\nto the classpath root.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param file The file.\n@return The resource name on the classpath." ]
public static autoscaleaction get(nitro_service service, String name) throws Exception{ autoscaleaction obj = new autoscaleaction(); obj.set_name(name); autoscaleaction response = (autoscaleaction) obj.get_resource(service); return response; }
[ "Use this API to fetch autoscaleaction resource of given name ." ]
[ "Get the remote address.\n\n@return the remote address, {@code null} if not available", "Initialize. create the httpClientStore, tcpClientStore", "Calculate entropy value.\n@param values Values.\n@return Returns entropy value of the specified histogram array.", "Try to set the value from the provided Json string.\n@param value the value to set.\n@throws Exception thrown if parsing fails.", "Use this API to fetch cachepolicylabel_binding resource of given name .", "Gen job id.\n\n@return the string", "Triggers a replication request.", "Returns a list of your geo-tagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param minUploadDate\nMinimum upload date. Photos with an upload date greater than or equal to this value will be returned. Set to null to not specify a date.\n@param maxUploadDate\nMaximum upload date. Photos with an upload date less than or equal to this value will be returned. Set to null to not specify a date.\n@param minTakenDate\nMinimum taken date. Photos with an taken date greater than or equal to this value will be returned. Set to null to not specify a date.\n@param maxTakenDate\nMaximum taken date. Photos with an taken date less than or equal to this value will be returned. Set to null to not specify a date.\n@param privacyFilter\nReturn photos only matching a certain privacy level. Valid values are:\n<ul>\n<li>1 public photos</li>\n<li>2 private photos visible to friends</li>\n<li>3 private photos visible to family</li>\n<li>4 private photos visible to friends & family</li>\n<li>5 completely private photos</li>\n</ul>\nSet to 0 to not specify a privacy Filter.\n\n@see com.flickr4java.flickr.photos.Extras\n@param sort\nThe order in which to sort returned photos. Deafults to date-posted-desc. The possible values are: date-posted-asc, date-posted-desc,\ndate-taken-asc, date-taken-desc, interestingness-desc, and interestingness-asc.\n@param extras\nA set of Strings controlling the extra information to fetch for each returned record. Currently supported fields are: license, date_upload,\ndate_taken, owner_name, icon_server, original_format, last_update, geo. Set to null or an empty set to not specify any extras.\n@param perPage\nNumber of photos to return per page. If this argument is 0, it defaults to 100. The maximum allowed value is 500.\n@param page\nThe page of results to return. If this argument is 0, it defaults to 1.\n@return photos\n@throws FlickrException", "Execute the physical query and initialize the various entities and collections\n\n@param session the session\n@param qp the query parameters\n@param ogmLoadingContext the loading context\n@param returnProxies when {@code true}, get an existing proxy for each collection element (if there is one)\n@return the result of the query" ]
public static String[] allLowerCase(String... strings){ String[] tmp = new String[strings.length]; for(int idx=0;idx<strings.length;idx++){ if(strings[idx] != null){ tmp[idx] = strings[idx].toLowerCase(); } } return tmp; }
[ "Make all elements of a String array lower case.\n@param strings string array, may contain null item but can't be null\n@return array containing all provided elements lower case" ]
[ "Checks if the categoryfolder setting needs to be updated.\n\n@return true if the categoryfolder setting needs to be updated", "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "Encodes the given URI user info with the given encoding.\n@param userInfo the user info to be encoded\n@param encoding the character encoding to encode to\n@return the encoded user info\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Handles an initial response from a PUT or PATCH operation response by polling the status of the operation\nasynchronously, once the operation finishes emits the final response.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param resourceType the java.lang.reflect.Type of the resource.\n@param <T> the return type of the caller.\n@return the observable of which a subscription will lead to a final response.", "Saves the state of this connection to a string so that it can be persisted and restored at a later time.\n\n<p>Note that proxy settings aren't automatically saved or restored. This is mainly due to security concerns\naround persisting proxy authentication details to the state string. If your connection uses a proxy, you will\nhave to manually configure it again after restoring the connection.</p>\n\n@see #restore\n@return the state of this connection.", "Backup the current configuration as part of the patch history.\n\n@throws IOException for any error", "Returns the URL of the first route.\n@return URL backed by the first route.", "Use this API to fetch all the csparameter resources that are configured on netscaler.", "Gets Widget bounds height\n@return height" ]
public static void copy(byte[] in, OutputStream out) throws IOException { Assert.notNull(in, "No input byte array specified"); Assert.notNull(out, "No OutputStream specified"); out.write(in); }
[ "Copy the contents of the given byte array to the given OutputStream.\nLeaves the stream open when done.\n@param in the byte array to copy from\n@param out the OutputStream to copy to\n@throws IOException in case of I/O errors" ]
[ "Empirical data from 3.x, actual =40", "Print a day.\n\n@param day Day instance\n@return day value", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Update max min.\n\n@param n the n\n@param c the c", "Prepare a parallel UDP Task.\n\n@param command\nthe command\n@return the parallel task builder", "Read a text file from assets into a single string\n\n@param context\nA non-null Android Context\n@param asset\nThe asset file to read\n@return The contents or null on error.", "Should be called each frame.", "Create a new DirectByteBuffer from a given address and size.\nThe returned DirectByteBuffer does not release the memory by itself.\n\n@param addr\n@param size\n@param att object holding the underlying memory to attach to the buffer.\nThis will prevent the garbage collection of the memory area that's\nassociated with the new <code>DirectByteBuffer</code>\n@return", "Read properties from the raw header data.\n\n@param stream input stream" ]
public static tmtrafficaction get(nitro_service service, String name) throws Exception{ tmtrafficaction obj = new tmtrafficaction(); obj.set_name(name); tmtrafficaction response = (tmtrafficaction) obj.get_resource(service); return response; }
[ "Use this API to fetch tmtrafficaction resource of given name ." ]
[ "Returns the ports of the server.\n\n@return the {@link Map} which contains the pairs of local {@link InetSocketAddress} and\n{@link ServerPort} is the server is started. {@link Optional#empty()} otherwise.", "Login for a specific authentication, creating a specific token if given.\n\n@param token token to use\n@param authentication authentication to assign to token\n@return token", "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity", "returns a sorted array of nested classes and interfaces", "Extract phrases from Korean input text\n\n@param tokens Korean tokens (output of tokenize(CharSequence text)).\n@return List of phrase CharSequences.", "This is needed when running on slaves.", "Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String", "Use this API to unset the properties of filterhtmlinjectionparameter resource.\nProperties that need to be unset are specified in args array.", "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder" ]
public boolean remove(long key) { int index = ((((int) (key >>> 32)) ^ ((int) (key))) & 0x7fffffff) % capacity; Entry previous = null; Entry entry = table[index]; while (entry != null) { Entry next = entry.next; if (entry.key == key) { if (previous == null) { table[index] = next; } else { previous.next = next; } size--; return true; } previous = entry; entry = next; } return false; }
[ "Removes the given value to the set.\n\n@return true if the value was actually removed" ]
[ "Skips variable length blocks up to and including next zero length block.", "Use this API to delete onlinkipv6prefix of given name.", "Remove all of the audio sources from the audio manager.\nThis will stop all sound from playing.", "Return the factor loading for a given time and a given component.\n\nThe factor loading is the vector <i>f<sub>i</sub></i> such that the scalar product <br>\n<i>f<sub>j</sub>f<sub>k</sub> = f<sub>j,1</sub>f<sub>k,1</sub> + ... + f<sub>j,m</sub>f<sub>k,m</sub></i> <br>\nis the instantaneous covariance of the component <i>j</i> and <i>k</i>.\n\nWith respect to simulation time <i>t</i>, this method uses a piece wise constant interpolation, i.e.,\nit calculates <i>t_<sub>i</sub></i> such that <i>t_<sub>i</sub></i> is the largest point in <code>getTimeDiscretization</code>\nsuch that <i>t_<sub>i</sub> &le; t </i>.\n\nThe component here, it given via a double <i>T</i> which may be associated with the LIBOR fixing date.\nWith respect to component time <i>T</i>, this method uses a piece wise constant interpolation, i.e.,\nit calculates <i>T_<sub>j</sub></i> such that <i>T_<sub>j</sub></i> is the largest point in <code>getTimeDiscretization</code>\nsuch that <i>T_<sub>j</sub> &le; T </i>.\n\n@param time The time <i>t</i> at which factor loading is requested.\n@param component The component time (as a double associated with the fixing of the forward rate) <i>T<sub>i</sub></i>.\n@param realizationAtTimeIndex The realization of the stochastic process (may be used to implement local volatility/covariance/correlation models).\n@return The factor loading <i>f<sub>i</sub>(t)</i>.", "Initialize the container for the current application deployment\n\n@param deploymentManager\n@param deploymentServices", "Load an animation for the current avatar.\n@param animResource resource with the animation\n@param boneMap optional bone map to map animation skeleton to avatar", "Get the title and read the Title property according the provided locale.\n@return The map from locales to the locale specific titles.", "Add groups for given group parent item.\n\n@param type the tree type\n@param ouItem group parent item", "Refresh's this connection's access token using its refresh token.\n@throws IllegalStateException if this connection's access token cannot be refreshed." ]
private void readHeaderProperties(BufferedInputStream stream) throws IOException { String header = readHeaderString(stream); for (String property : header.split("\\|")) { String[] expression = property.split("="); m_properties.put(expression[0], expression[1]); } }
[ "Read properties from the raw header data.\n\n@param stream input stream" ]
[ "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", "Delete a module from Grapes server\n\n@param name\n@param version\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Sets an attribute in the main section of the manifest to a list.\nThe list elements will be joined with a single whitespace character.\n\n@param name the attribute's name\n@param values 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.", "Mutate the gradient.\n@param amount the amount in the range zero to one", "Closes the transactor node by removing its node in Zookeeper", "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "Runs a Story with the given configuration and steps.\n\n@param configuration the Configuration used to run story\n@param candidateSteps the List of CandidateSteps containing the candidate\nsteps methods\n@param story the Story to run\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown.", "sets the row reader class name for thie class descriptor", "Updates the store definition object and the retention time based on the\nupdated store definition" ]
public void startServer() throws Exception { if (!externalDatabaseHost) { try { this.port = Utils.getSystemPort(Constants.SYS_DB_PORT); server = Server.createTcpServer("-tcpPort", String.valueOf(port), "-tcpAllowOthers").start(); } catch (SQLException e) { if (e.toString().contains("java.net.UnknownHostException")) { logger.error("Startup failure. Potential bug in OSX & Java7. Workaround: add name of local machine to '/etc/hosts.'"); logger.error("Example: 127.0.0.1 MacBook"); throw e; } } } }
[ "Only meant to be called once\n\n@throws Exception exception" ]
[ "Str map to str.\n\n@param map\nthe map\n@return the string", "Destroy the proxy & update the map containing the registration ref.\n\n@param importDeclaration", "Set a Background Drawable using the appropriate Android version api call\n\n@param view\n@param drawable", "Use this API to fetch all the route6 resources that are configured on netscaler.", "Use this API to delete gslbsite of given name.", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails", "Create new logging action\nThis method check if there is an old instance for this thread-local\nIf not - Initialize new instance and set it as this thread-local's instance\n@param logger\n@param auditor\n@param instance\n@return whether new instance was set to thread-local", "Generates an artifact regarding the parameters.\n\n<P> <b>WARNING:</b> The parameters grId/arId/version should be filled!!! Only classifier and type are not mandatory.\n\n@param groupId String\n@param artifactId String\n@param version String\n@param classifier String\n@param type String\n@param extension String\n@return Artifact", "Stops and clears all transitions" ]
@Deprecated public FluoConfiguration clearObservers() { Iterator<String> iter1 = getKeys(OBSERVER_PREFIX.substring(0, OBSERVER_PREFIX.length() - 1)); while (iter1.hasNext()) { String key = iter1.next(); clearProperty(key); } return this; }
[ "Removes any configured observers.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}" ]
[ "Sets top and bottom padding for all cells in the row.\n@param padding new padding for top and bottom, ignored if smaller than 0\n@return this to allow chaining", "Helper method that encapsulates the minimum logic for adding jobs to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJsons\na list of jobs serialized as JSON", "Give next index i where i and i+timelag is valid", "This method allows a predecessor relationship to be added to this\ntask instance.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return relationship", "Get permissions for who may view geo data for a photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nreqired photo id, not null\n@return the permissions\n@throws FlickrException\nif photo id is invalid, if photo has no geodata or if any other error has been reported in the response.", "Creates a field map for resources.\n\n@param props props data", "Sends a text message using given server setup for SMTP.\n\n@param to the to address.\n@param from the from address.\n@param subject the subject.\n@param msg the test message.\n@param setup the SMTP setup.", "Use this API to add nssimpleacl.", "Use this API to delete nsip6 resources." ]
public Iterable<BoxLegalHoldAssignment.Info> getAssignments(String ... fields) { return this.getAssignments(null, null, DEFAULT_LIMIT, fields); }
[ "Returns iterable containing assignments for this single legal hold policy.\n@param fields the fields to retrieve.\n@return an iterable containing assignments for this single legal hold policy." ]
[ "Callback for constant meta class update change", "Handles week day changes.\n@param event the change event.", "Creates the automaton map.\n\n@param prefix the prefix\n@param valueList the value list\n@param filter the filter\n@return the map", "Moves the drawer to the position passed.\n\n@param position The position the content is moved to.\n@param velocity Optional velocity if called by releasing a drag event.\n@param animate Whether the move is animated.", "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance", "Obtains a local date in Julian calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Julian era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Julian local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code JulianEra}", "Get by index is used here.", "Convert an Object to a Date, without an Exception", "Merge the given maps.\n\n<p>\nThe replied map is a view on the given two maps.\nIf a key exists in the two maps, the replied value is the value of the right operand.\n</p>\n\n<p>\nEven if the key of the right operand exists in the left operand, the value in the right operand is preferred.\n</p>\n\n<p>\nThe replied map is unmodifiable.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the left map.\n@param right the right map.\n@return a map with the merged contents from the two maps.\n@since 2.15" ]
public synchronized void start() throws SocketException { if (!isRunning()) { socket.set(new DatagramSocket(ANNOUNCEMENT_PORT)); startTime.set(System.currentTimeMillis()); deliverLifecycleAnnouncement(logger, true); final byte[] buffer = new byte[512]; final DatagramPacket packet = new DatagramPacket(buffer, buffer.length); Thread receiver = new Thread(null, new Runnable() { @Override public void run() { boolean received; while (isRunning()) { try { if (getCurrentDevices().isEmpty()) { socket.get().setSoTimeout(60000); // We have no devices to check for timeout; block for a whole minute to check for shutdown } else { socket.get().setSoTimeout(1000); // Check every second to see if a device has vanished } socket.get().receive(packet); received = !ignoredAddresses.contains(packet.getAddress()); } catch (SocketTimeoutException ste) { received = false; } catch (IOException e) { // Don't log a warning if the exception was due to the socket closing at shutdown. if (isRunning()) { // We did not expect to have a problem; log a warning and shut down. logger.warn("Problem reading from DeviceAnnouncement socket, stopping", e); stop(); } received = false; } try { if (received && (packet.getLength() == 54)) { final Util.PacketType kind = Util.validateHeader(packet, ANNOUNCEMENT_PORT); if (kind == Util.PacketType.DEVICE_KEEP_ALIVE) { // Looks like the kind of packet we need if (packet.getLength() < 54) { logger.warn("Ignoring too-short " + kind.name + " packet; expected 54 bytes, but only got " + packet.getLength() + "."); } else { if (packet.getLength() > 54) { logger.warn("Processing too-long " + kind.name + " packet; expected 54 bytes, but got " + packet.getLength() + "."); } DeviceAnnouncement announcement = new DeviceAnnouncement(packet); final boolean foundNewDevice = isDeviceNew(announcement); updateDevices(announcement); if (foundNewDevice) { deliverFoundAnnouncement(announcement); } } } } expireDevices(); } catch (Throwable t) { logger.warn("Problem processing DeviceAnnouncement packet", t); } } } }, "beat-link DeviceFinder receiver"); receiver.setDaemon(true); receiver.start(); } }
[ "Start listening for device announcements and keeping track of the DJ Link devices visible on the network.\nIf already listening, has no effect.\n\n@throws SocketException if the socket to listen on port 50000 cannot be created" ]
[ "Methods returns InetAddress for localhost\n\n@return InetAddress of the localhost\n@throws UnknownHostException if localhost could not be resolved", "This method writes task data to a Planner file.\n\n@throws JAXBException on xml creation errors", "Updates this BoxJSONObject using the information in a JSON object.\n@param jsonObject the JSON object containing updated information.", "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", "Sets the specified integer 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", "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", "Set the pattern scheme to either \"by weekday\" or \"by day of month\".\n@param isByWeekDay flag, indicating if the pattern \"by weekday\" should be set.\n@param fireChange flag, indicating if a value change event should be fired.", "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class", "Copy the data from an InputStream to a temp file.\n\n@param inputStream data source\n@param tempFileSuffix suffix to use for temp file\n@return File instance" ]
void apply() { final FlushLog log = new FlushLog(); store.logOperations(txn, log); final BlobVault blobVault = store.getBlobVault(); if (blobVault.requiresTxn()) { try { blobVault.flushBlobs(blobStreams, blobFiles, deferredBlobsToDelete, txn); } catch (Exception e) { // out of disk space not expected there throw ExodusException.toEntityStoreException(e); } } txn.setCommitHook(new Runnable() { @Override public void run() { log.flushed(); final EntityIterableCacheAdapterMutable cache = PersistentStoreTransaction.this.mutableCache; if (cache != null) { // mutableCache can be null if only blobs are modified applyAtomicCaches(cache); } } }); }
[ "exposed only for tests" ]
[ "Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plaintext password.\n@param hashed scrypt hashed password.\n\n@return true if passwd matches hashed value.", "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance", "This is a convenience method to add a default derived\ncalendar to the project.\n\n@return new ProjectCalendar instance", "To populate the dropdown list from the jelly", "Updates the style of the field label according to the field value if the\nfield value is empty - null or \"\" - removes the label 'active' style else\nwill add the 'active' style to the field label.", "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object", "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value", "A smoothed step function. A cubic function is used to smooth the step between two thresholds.\n@param a the lower threshold position\n@param b the upper threshold position\n@param x the input parameter\n@return the output value" ]
public static systemcollectionparam get(nitro_service service) throws Exception{ systemcollectionparam obj = new systemcollectionparam(); systemcollectionparam[] response = (systemcollectionparam[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the systemcollectionparam resources that are configured on netscaler." ]
[ "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Return collection of path Ids in priority order\n\n@param profileId ID of profile\n@return collection of path Ids in priority order", "Harvest any values that may have been returned during the execution\nof a procedure.\n\n@param proc the procedure descriptor that provides info about the procedure\nthat was invoked.\n@param obj the object that was persisted\n@param stmt the statement that was used to persist the object.\n\n@throws PersistenceBrokerSQLException if a problem occurs.", "Update artifact provider\n\n@param gavc String\n@param provider String", "Use this API to update autoscaleprofile resources.", "Find a node in the tree. The node must be \"visible\" to be found.\n@param address The full address of the node matching ManagementModelNode.addressPath()\n@return The node, or null if not found.", "Returns the overtime cost of this resource assignment.\n\n@return cost", "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException", "Initialization necessary for editing a property bundle.\n\n@throws CmsLoaderException thrown if loading a bundle file fails.\n@throws CmsException thrown if loading a bundle file fails.\n@throws IOException thrown if loading a bundle file fails." ]
protected void processDurationField(Row row) { processField(row, "DUR_FIELD_ID", "DUR_REF_UID", MPDUtility.getAdjustedDuration(m_project, row.getInt("DUR_VALUE"), MPDUtility.getDurationTimeUnits(row.getInt("DUR_FMT")))); }
[ "Read a single duration field extended attribute.\n\n@param row field data" ]
[ "Returns an unmodifiable view of the specified multi-value map.\n\n@param map the map for which an unmodifiable view is to be returned.\n@return an unmodifiable view of the specified multi-value map.", "for testing purpose", "Convert Collection to Set\n@param collection Collection\n@return Set", "Creates a XopBean. The image on the disk is included as a byte array,\na DataHandler and java.awt.Image\n@return the bean\n@throws Exception", "Append the bounding volume particle positions, times and velocities to the existing mesh\nbefore creating a new scene object with this mesh attached to it.\nAlso, append every created scene object and its creation time to corresponding array lists.\n\n@param particlePositions\n@param particleVelocities\n@param particleTimeStamps", "Close and remove expired streams. Package protected to allow unit tests to invoke it.", "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", "Use this API to fetch cacheselector resources of given names .", "Start speech recognizer.\n\n@param speechListener" ]
private void countKey(Map<String, Integer> map, String key, int count) { if (map.containsKey(key)) { map.put(key, map.get(key) + count); } else { map.put(key, count); } }
[ "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" ]
[ "Use this API to fetch the statistics of all vpath_stats resources that are configured on netscaler.", "Reads data from the SP file.\n\n@return Project File instance", "Splits the given string.", "AND operation which takes the previous clause and the next clause and AND's them together.", "Retrieves the index of a cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry index", "Determine whether the calling thread is the GL thread.\n\n@return {@code True} if called from the GL thread, {@code false} if\ncalled from another thread.", "Returns this bar code's pattern, converted into a set of corresponding codewords.\nUseful for bar codes that encode their content as a pattern.\n\n@param size the number of digits in each codeword\n@return this bar code's pattern, converted into a set of corresponding codewords", "Called when the pattern has changed.", "Scans the jar file and returns the paths that match the includes and excludes.\n\n@return A List of paths\n@throws An IllegalStateException when an I/O error occurs in reading the jar file." ]
public static void removeZeros( DMatrixSparseCSC input , DMatrixSparseCSC output , double tol ) { ImplCommonOps_DSCC.removeZeros(input,output,tol); }
[ "Copies all elements from input into output which are &gt; tol.\n@param input (Input) input matrix. Not modified.\n@param output (Output) Output matrix. Modified and shaped to match input.\n@param tol Tolerance for defining zero" ]
[ "Removes any configured observers.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}", "Get result report.\n\n@param reportURI the URI of the report\n@return the result report.", "Return a collection of product descriptors for each option in the smile.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@return a collection of product descriptors for each option in the smile.", "Read an int from an input stream.\n\n@param is input stream\n@return int value", "Returns server group by ID\n\n@param id ID of server group\n@return ServerGroup\n@throws Exception exception", "Determine the length of a nul terminated UTF16LE string in bytes.\n\n@param data string data\n@param offset offset into string data\n@return length in bytes", "This method extracts calendar data from a Phoenix file.\n\n@param phoenixProject Root node of the Phoenix file", "Checks the given collection descriptor.\n\n@param collDef The collection descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "A write through put to inner-store.\n\n@param keyBytes : keyName strings serialized as bytes eg. 'cluster.xml'\n@param valueBytes : versioned byte[] eg. UTF bytes for cluster xml\ndefinitions\n@throws VoldemortException" ]
private void getMonthlyRelativeDates(Calendar calendar, int frequency, List<Date> dates) { long startDate = calendar.getTimeInMillis(); calendar.set(Calendar.DAY_OF_MONTH, 1); int dayNumber = NumberHelper.getInt(m_dayNumber); while (moreDates(calendar, dates)) { if (dayNumber > 4) { setCalendarToLastRelativeDay(calendar); } else { setCalendarToOrdinalRelativeDay(calendar, dayNumber); } if (calendar.getTimeInMillis() > startDate) { dates.add(calendar.getTime()); if (!moreDates(calendar, dates)) { break; } } calendar.set(Calendar.DAY_OF_MONTH, 1); calendar.add(Calendar.MONTH, frequency); } }
[ "Calculate start dates for a monthly relative recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates" ]
[ "Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array.", "A comment.\n\n@param args the parameters", "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Sets the indirection handler class.\n\n@param indirectionHandlerClass The class for indirection handlers", "slave=true", "Transform the operation into something the proxy controller understands.\n\n@param identity the server identity\n@return the transformed operation", "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails.", "Add a cause to the backtrace.\n\n@param cause\nthe cause\n@param bTrace\nthe backtrace list", "Process stop.\n\n@param endpoint the endpoint\n@param eventType the event type" ]
private static ChangeEvent<BsonDocument> coalesceChangeEvents( final ChangeEvent<BsonDocument> lastUncommittedChangeEvent, final ChangeEvent<BsonDocument> newestChangeEvent ) { if (lastUncommittedChangeEvent == null) { return newestChangeEvent; } switch (lastUncommittedChangeEvent.getOperationType()) { case INSERT: switch (newestChangeEvent.getOperationType()) { // Coalesce replaces/updates to inserts since we believe at some point a document did not // exist remotely and that this replace or update should really be an insert if we are // still in an uncommitted state. case REPLACE: case UPDATE: return new ChangeEvent<>( newestChangeEvent.getId(), OperationType.INSERT, newestChangeEvent.getFullDocument(), newestChangeEvent.getNamespace(), newestChangeEvent.getDocumentKey(), null, newestChangeEvent.hasUncommittedWrites() ); default: break; } break; case DELETE: switch (newestChangeEvent.getOperationType()) { // Coalesce inserts to replaces since we believe at some point a document existed // remotely and that this insert should really be an replace if we are still in an // uncommitted state. case INSERT: return new ChangeEvent<>( newestChangeEvent.getId(), OperationType.REPLACE, newestChangeEvent.getFullDocument(), newestChangeEvent.getNamespace(), newestChangeEvent.getDocumentKey(), null, newestChangeEvent.hasUncommittedWrites() ); default: break; } break; case UPDATE: switch (newestChangeEvent.getOperationType()) { case UPDATE: return new ChangeEvent<>( newestChangeEvent.getId(), OperationType.UPDATE, newestChangeEvent.getFullDocument(), newestChangeEvent.getNamespace(), newestChangeEvent.getDocumentKey(), lastUncommittedChangeEvent.getUpdateDescription() != null ? lastUncommittedChangeEvent .getUpdateDescription() .merge(newestChangeEvent.getUpdateDescription()) : newestChangeEvent.getUpdateDescription(), newestChangeEvent.hasUncommittedWrites() ); case REPLACE: return new ChangeEvent<>( newestChangeEvent.getId(), OperationType.REPLACE, newestChangeEvent.getFullDocument(), newestChangeEvent.getNamespace(), newestChangeEvent.getDocumentKey(), null, newestChangeEvent.hasUncommittedWrites() ); default: break; } break; case REPLACE: switch (newestChangeEvent.getOperationType()) { case UPDATE: return new ChangeEvent<>( newestChangeEvent.getId(), OperationType.REPLACE, newestChangeEvent.getFullDocument(), newestChangeEvent.getNamespace(), newestChangeEvent.getDocumentKey(), null, newestChangeEvent.hasUncommittedWrites() ); default: break; } break; default: break; } return newestChangeEvent; }
[ "Possibly coalesces the newest change event to match the user's original intent. For example,\nan unsynchronized insert and update is still an insert.\n\n@param lastUncommittedChangeEvent the last change event known about for a document.\n@param newestChangeEvent the newest change event known about for a document.\n@return the possibly coalesced change event." ]
[ "For a particular stealer node find all the primary partitions tuples it\nwill steal.\n\n@param currentCluster The cluster definition of the existing cluster\n@param finalCluster The final cluster definition\n@param stealNodeId Node id of the stealer node\n@return Returns a list of primary partitions which this stealer node will\nget", "Await a state.\n\n@param expected the expected state\n@return {@code true} if the state was reached, {@code false} otherwise", "Fetches the current online data for the given item, and adds numerical\nlabels if necessary.\n\n@param itemIdValue\nthe id of the document to inspect", "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to control the intensity of ambient light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Use this API to fetch sslvserver_sslciphersuite_binding resources of given name .", "Used to parse the dividend dates. Returns null if the date cannot be\nparsed.\n\n@param date String received that represents the date\n@return Calendar object representing the parsed date", "Returns the y-coordinate of a vertex bitangent.\n\n@param vertex the vertex index\n@return the y coordinate", "Sets a client option per-request\n\n@param key Option name\n@param value Option value\n@return The request itself", "Register opened database via the PBKey." ]
private void renderAsLI(Writer writer, ProjectModel project, Iterator<Link> links, boolean wrap) throws IOException { if (!links.hasNext()) return; if (wrap) writer.append("<ul>"); while (links.hasNext()) { Link link = links.next(); writer.append("<li>"); renderLink(writer, project, link); writer.append("</li>"); } if (wrap) writer.append("</ul>"); }
[ "Renders in LI tags, Wraps with UL tags optionally." ]
[ "Dump data for all non-summary tasks to stdout.\n\n@param name file name", "Retrieves state and metrics information for individual node.\n\n@param name node name\n@return node information", "Maps this iterable from the source document type to the target document type.\n\n@param mapper a function that maps from the source to the target document type\n@param <U> the target document type\n@return an iterable which maps T to U", "Sets the color of the drop shadow.\n\n@param color The color of the drop shadow.", "Read the header data for a single file.\n\n@param header header data\n@return SynchroTable instance", "Get the Attribute metadata for an MBean by name.\n@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values.", "Examins the structure of A for QR decomposition\n@param A matrix which is to be decomposed\n@return true if the solution is valid or false if the decomposition can't be performed (i.e. requires column pivots)", "Check if values in the column \"property\" are written to the bundle descriptor.\n@param property the property id of the table column.\n@return a flag, indicating if values of the table column are stored to the bundle descriptor.", "Populate a milestone from a Row instance.\n\n@param row Row instance\n@param task Task instance" ]
public static void plotCharts(List<Chart> charts){ int numRows =1; int numCols =1; if(charts.size()>1){ numRows = (int) Math.ceil(charts.size()/2.0); numCols = 2; } final JFrame frame = new JFrame(""); frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); frame.getContentPane().setLayout(new GridLayout(numRows, numCols)); for (Chart chart : charts) { if (chart != null) { JPanel chartPanel = new XChartPanel(chart); frame.add(chartPanel); } else { JPanel chartPanel = new JPanel(); frame.getContentPane().add(chartPanel); } } // Display the window. frame.pack(); frame.setVisible(true); }
[ "Plots a list of charts in matrix with 2 columns.\n@param charts" ]
[ "Retrieve the Activity ID value for this task.\n@param task Task instance\n@return Activity ID value", "Reads all text up to next XML tag and returns it as a String.\n\n@return the String of the text read, which may be empty.", "Put object to session cache.\n\n@param oid The {@link org.apache.ojb.broker.Identity} of the object to cache\n@param entry The {@link org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl.CacheEntry} of the object\n@param onlyIfNew Flag, if set <em>true</em> only new objects (not already in session cache) be cached.", "Set the name to be used in announcing our presence on the network. The name can be no longer than twenty\nbytes, and should be normal ASCII, no Unicode.\n\n@param name the device name to report in our presence announcement packets.", "The user to remove can be referenced by their globally unique user ID or their email address.\nRemoves the user from the specified team. Returns an empty data record.\n\n@param team Globally unique identifier for the team.\n@return Request object", "Checks to see if a subsystem resource has already been registered for the deployment.\n\n@param subsystemName the name of the subsystem\n\n@return {@code true} if the subsystem exists on the deployment otherwise {@code false}", "Determine the common ancestor of the given classes, if any.\n@param clazz1 the class to introspect\n@param clazz2 the other class to introspect\n@return the common ancestor (i.e. common superclass, one interface\nextending the other), or {@code null} if none found. If any of the\ngiven classes is {@code null}, the other class will be returned.\n@since 2.0", "Returns the ordered Map value of the field.\n\n@return the ordered Map value of the field. It returns a reference of the value.\n@throws IllegalArgumentException if the value cannot be converted to ordered Map.", "EAP 7.1" ]
public static Map<String, List<String>> getConsumersPerTopic(ZkClient zkClient, String group) { ZkGroupDirs dirs = new ZkGroupDirs(group); List<String> consumers = getChildrenParentMayNotExist(zkClient, dirs.consumerRegistryDir); // Map<String, List<String>> consumersPerTopicMap = new HashMap<String, List<String>>(); for (String consumer : consumers) { TopicCount topicCount = getTopicCount(zkClient, group, consumer); for (Map.Entry<String, Set<String>> e : topicCount.getConsumerThreadIdsPerTopic().entrySet()) { final String topic = e.getKey(); for (String consumerThreadId : e.getValue()) { List<String> list = consumersPerTopicMap.get(topic); if (list == null) { list = new ArrayList<String>(); consumersPerTopicMap.put(topic, list); } // list.add(consumerThreadId); } } } // for (Map.Entry<String, List<String>> e : consumersPerTopicMap.entrySet()) { Collections.sort(e.getValue()); } return consumersPerTopicMap; }
[ "get all consumers for the group\n\n@param zkClient the zookeeper client\n@param group the group name\n@return topic-&gt;(consumerIdStringA-0,consumerIdStringA-1...consumerIdStringB-0,consumerIdStringB-1)" ]
[ "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.", "Reads characters until the 'end' character is encountered.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "The derivative of the objective function. You may override this method\nif you like to implement your own derivative.\n\n@param parameters Input value. The parameter vector.\n@param derivatives Output value, where derivatives[i][j] is d(value(j)) / d(parameters(i)\n@throws SolverException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Returns true if the given method has a possibly matching instance method with the given name and arguments.\n\n@param name the name of the method of interest\n@param arguments the arguments to match against\n@return true if a matching method was found", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Builds sql clause to load data into a database.\n\n@param config Load configuration.\n@param prefix Prefix for temporary resources.\n@return the load DDL", "Get the output mapper from processor.", "Get the element at the index as a string.\n\n@param i the index of the element to access", "Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories." ]
public static cmppolicy_stats[] get(nitro_service service) throws Exception{ cmppolicy_stats obj = new cmppolicy_stats(); cmppolicy_stats[] response = (cmppolicy_stats[])obj.stat_resources(service); return response; }
[ "Use this API to fetch the statistics of all cmppolicy_stats resources that are configured on netscaler." ]
[ "Use this API to add appfwjsoncontenttype resources.", "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", "Returns an iterable containing all the enterprise users that matches the filter and specifies which child fields\nto retrieve from the API.\n@param api the API connection to be used when retrieving the users.\n@param filterTerm used to filter the results to only users starting with this string in either the name or the\nlogin. Can be null to not filter the results.\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing all the enterprise users that matches the filter.", "Specifies the angle of the effect.\n\n@param angle the angle of the effect.\n@angle", "Return the content from an URL in byte array\n\n@param stringUrl URL to get\n@return byte array\n@throws IOException I/O error happened", "Generates a License regarding the parameters.\n\n@param name String\n@param longName String\n@param comments String\n@param regexp String\n@param url String\n@return License", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "Dumps a single material property to stdout.\n\n@param property the property", "Commit all changes if there are uncommitted changes.\n\n@param msg the commit message.\n@throws GitAPIException" ]
public void removeLinks(ServiceReference<D> declarationSRef) { D declaration = getDeclaration(declarationSRef); for (ServiceReference serviceReference : declaration.getStatus().getServiceReferencesBounded()) { // FIXME : In case of multiples Linker, we will remove the link of all the ServiceReference // FIXME : event the ones which dun know nothing about linkerManagement.unlink(declaration, serviceReference); } }
[ "Remove all the existing links of the Declaration.\n\n@param declarationSRef the ServiceReference<Declaration> of the Declaration" ]
[ "Creates the event for endpoint with specific type.\n\n@param endpoint the endpoint\n@param type the type\n@return the event", "Execute a request\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history\n@throws Exception", "Cosine interpolation.\n\n@param x1 X1 Value.\n@param x2 X2 Value.\n@param a Value.\n@return Value.", "Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1", "Load the properties from the resource file if one is specified", "Handle the serialization of String, Integer and boolean parameters.\n\n@param param to serialize\n@return Object", "Adds a new child widget to the panel, attaching its Element to the\nspecified container Element.\n\n@param child the child widget to be added\n@param container the element within which the child will be contained", "Sets an attribute in the main section of the manifest to a list.\nThe list elements will be joined with a single whitespace character.\n\n@param name the attribute's name\n@param values 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.", "Gets read-only metadata.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to fetch read-only metadata from\n@param storeNames Stores names to fetch read-only metadata from\n@param metaKeys List of read-only metadata to fetch\n@throws IOException" ]
public void linkMtoN(Object obj, CollectionDescriptor cod, boolean insert) { Object referencedObjects = cod.getPersistentField().get(obj); storeAndLinkMtoN(true, obj, cod, referencedObjects, insert); }
[ "Assign FK values and store entries in indirection table\nfor all 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" ]
[ "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Get User application properties\nGet application properties of a user\n@param userId User Id (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Gets the name for the getter for this property\n\n@return The name of the property. The name is \"get\"+ the capitalized propertyName\nor, in the case of boolean values, \"is\" + the capitalized propertyName", "Map Synchro constraints to MPXJ constraints.\n\n@param task task\n@param row Synchro constraint data", "Check whether the patch can be applied to a given target.\n\n@param condition the conditions\n@param target the target\n@throws PatchingException", "Returns a reasonable timeout duration for a watch request.\n\n@param expectedTimeoutMillis timeout duration that a user wants to use, in milliseconds\n@param bufferMillis buffer duration which needs to be added, in milliseconds\n@return timeout duration in milliseconds, between the specified {@code bufferMillis} and\nthe {@link #MAX_MILLIS}.", "Reads all text up to next XML tag and returns it as a String.\n\n@return the String of the text read, which may be empty.", "Send a media details response to all registered listeners.\n\n@param details the response that has just arrived", "Use this API to update nd6ravariables resources." ]
synchronized void removeServerProcess() { this.requiredState = InternalState.STOPPED; internalSetState(new ProcessRemoveTask(), InternalState.STOPPED, InternalState.PROCESS_REMOVING); }
[ "On host controller reload, remove a not running server registered in the process controller declared as down." ]
[ "This method maps the encoded height of a Gantt bar to\nthe height in pixels.\n\n@param height encoded height\n@return height in pixels", "Gets the Kumar-Johnson divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kumar-Johnson divergence between p and q.", "Gets the crouton's layout parameters, constructing a default if necessary.\n\n@return the layout parameters", "This method can be called to ensure that the IDs of all\nentities are sequential, and start from an\nappropriate point. If entities are added to and removed from\nthis list, then the project is loaded into Microsoft\nproject, if the ID values have gaps in the sequence, there will\nbe blank rows shown.", "Get the last modified time for a set of files.", "Utility function to get the current value.", "Creates the next permutation in the sequence.\n\n@return An array containing the permutation. The returned array is modified each time this function is called.", "Returns the parsed story from the given text\n\n@param configuration the Configuration used to run story\n@param storyAsText the story text\n@param storyId the story Id, which will be returned as story path\n@return The parsed Story", "Get global hotkey provider for current platform\n\n@param useSwingEventQueue whether the provider should be using Swing Event queue or a regular thread\n@return new instance of Provider, or null if platform is not supported\n@see X11Provider\n@see WindowsProvider\n@see CarbonProvider" ]
@Override public void setActive(boolean active) { this.active = active; if (parent != null) { fireCollapsibleHandler(); removeStyleName(CssName.ACTIVE); if (header != null) { header.removeStyleName(CssName.ACTIVE); } if (active) { if (parent != null && parent.isAccordion()) { parent.clearActive(); } addStyleName(CssName.ACTIVE); if (header != null) { header.addStyleName(CssName.ACTIVE); } } if (body != null) { body.setDisplay(active ? Display.BLOCK : Display.NONE); } } else { GWT.log("Please make sure that the Collapsible parent is attached or existed.", new IllegalStateException()); } }
[ "Make this item active." ]
[ "Reads a string of two byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nThe value starts at the position specified by the offset\nparameter.\n\n@param data byte array of data\n@param offset start point of unicode string\n@return string value", "Use this API to update sslocspresponder resources.", "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "When creating barcode columns\n@return", "This is the main entry point used to convert the internal representation\nof timephased baseline work into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param work timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Register child resources associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Resets the helper's state.\n\n@return this {@link Searcher} for chaining.", "Fills the Boyer Moore \"bad character array\" for the given pattern", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned." ]
public long getTimeFor(int player) { TrackPositionUpdate update = positions.get(player); if (update != null) { return interpolateTimeSinceUpdate(update, System.nanoTime()); } return -1; // We don't know. }
[ "Get the best guess we have for the current track position on the specified player.\n\n@param player the player number whose position is desired\n\n@return the milliseconds into the track that we believe playback has reached, or -1 if we don't know\n\n@throws IllegalStateException if the TimeFinder is not running" ]
[ "Log a message line to the output.", "Return the filesystem path needed to mount the NFS filesystem associated with a particular media slot.\n\n@param slot the slot whose filesystem is desired\n\n@return the path to use in the NFS mount request to access the files mounted in that slot\n\n@throws IllegalArgumentException if it is a slot that we don't know how to handle", "Create a Map composed of the entries of the first map minus the\nentries of the given map.\n\n@param self a map object\n@param removeMe the entries to remove from the map\n@return the resulting map\n@since 1.7.4", "A convenience method for creating an immutable sorted set.\n\n@param self a SortedSet\n@return an immutable SortedSet\n@see java.util.Collections#unmodifiableSortedSet(java.util.SortedSet)\n@since 1.0", "Called to update the cached formats when something changes.", "In managed environment do internal close the used connection", "Check if this applies to the provided authorization scope and return the credentials for that scope or\nnull if it doesn't apply to the scope.\n\n@param authscope the scope to test against.", "create a HTTP POST request.\n\n@return {@link HttpConnection}", "Use this API to unset the properties of bridgetable resource.\nProperties that need to be unset are specified in args array." ]
public static String getStatusForItem(Long lastActivity) { if (lastActivity.longValue() < CmsSessionsTable.INACTIVE_LIMIT) { return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROADCAST_COLS_STATUS_ACTIVE_0); } return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROADCAST_COLS_STATUS_INACTIVE_0); }
[ "Gets the status text from given session.\n\n@param lastActivity miliseconds since last activity\n@return status string" ]
[ "combines all the lists in a collection to a single list", "This method permanently removes a webhook. Note that it may be possible\nto receive a request that was already in flight after deleting the\nwebhook, but no further requests will be issued.\n\n@param webhook The webhook to delete.\n@return Request object", "Takes a numeric string value and converts it to a integer between 0 and 100.\n\nreturns 0 if the string is not numeric.\n\n@param percentage - A numeric string value\n@return a integer between 0 and 100", "Take four bytes from the specified position in the specified\nblock and convert them into a 32-bit int, using the big-endian\nconvention.\n@param bytes The data to read from.\n@param offset The position to start reading the 4-byte int from.\n@return The 32-bit integer represented by the four bytes.", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "Checks to see if all the diagonal elements in the matrix are positive.\n\n@param a A matrix. Not modified.\n@return true if all the diagonal elements are positive, false otherwise.", "Get the bone index for the bone with the given name.\n\n@param bonename string identifying the bone whose index you want\n@return 0 based bone index or -1 if bone with that name is not found.", "Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)", "Populate the container, converting raw data into Java types.\n\n@param field custom field to which these values belong\n@param values raw value data\n@param descriptions raw description data" ]
public double dot(Vector3d v1) { return x * v1.x + y * v1.y + z * v1.z; }
[ "Returns the dot product of this vector and v1.\n\n@param v1\nright-hand vector\n@return dot product" ]
[ "Read a list of fixed sized blocks from the input stream.\n\n@return List of MapRow instances representing the fixed size blocks", "Convert a layer type to a geometry class.\n\n@param layerType\nlayer type\n@return JTS class", "Convert one project file format to another.\n\n@param inputFile input file\n@param outputFile output file\n@throws Exception", "The amount of time to keep an idle client thread alive\n\n@param threadIdleTime", "Create an object of the given type using a constructor that matches the\nsupplied arguments and invoke the setters with the supplied variables.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@param vars\nthe named arguments for setters\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception", "Configure a selector to choose documents that should be added to the index.", "Set a Java classname path to ignore when printing stack traces\n@param classToIgnoreInTraces The class name (with packages, etc) to ignore.\n@return this", "Set the html as value inside the tooltip.", "Refresh's this connection's access token using Box Developer Edition.\n@throws IllegalStateException if this connection's access token cannot be refreshed." ]
@SuppressWarnings("unchecked") public Relation addPredecessor(Task targetTask, RelationType type, Duration lag) { // // Ensure that we have a valid lag duration // if (lag == null) { lag = Duration.getInstance(0, TimeUnit.DAYS); } // // Retrieve the list of predecessors // List<Relation> predecessorList = (List<Relation>) getCachedValue(TaskField.PREDECESSORS); // // Ensure that there is only one predecessor relationship between // these two tasks. // Relation predecessorRelation = null; Iterator<Relation> iter = predecessorList.iterator(); while (iter.hasNext() == true) { predecessorRelation = iter.next(); if (predecessorRelation.getTargetTask() == targetTask) { if (predecessorRelation.getType() != type || predecessorRelation.getLag().compareTo(lag) != 0) { predecessorRelation = null; } break; } predecessorRelation = null; } // // If necessary, create a new predecessor relationship // if (predecessorRelation == null) { predecessorRelation = new Relation(this, targetTask, type, lag); predecessorList.add(predecessorRelation); } // // Retrieve the list of successors // List<Relation> successorList = (List<Relation>) targetTask.getCachedValue(TaskField.SUCCESSORS); // // Ensure that there is only one successor relationship between // these two tasks. // Relation successorRelation = null; iter = successorList.iterator(); while (iter.hasNext() == true) { successorRelation = iter.next(); if (successorRelation.getTargetTask() == this) { if (successorRelation.getType() != type || successorRelation.getLag().compareTo(lag) != 0) { successorRelation = null; } break; } successorRelation = null; } // // If necessary, create a new successor relationship // if (successorRelation == null) { successorRelation = new Relation(targetTask, this, type, lag); successorList.add(successorRelation); } return (predecessorRelation); }
[ "This method allows a predecessor relationship to be added to this\ntask instance.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return relationship" ]
[ "Return the list of corporate GroupId prefix configured for an organization.\n\n@param organizationId String Organization name\n@return Response A list of corporate groupId prefix in HTML or JSON", "Commit the contents of the given temp file to either the main file, or, if we are not persisting\nto the main file, to the .last file in the configuration history\n@param temp temp file containing the latest configuration. Will not be {@code null}\n@throws ConfigurationPersistenceException", "Parse JSON parameters from this request.\n\n@param jsonRequest The request in the JSON format.\n@return CmsSpellcheckingRequest object that contains parsed parameters or null, if JSON input is not well\ndefined.", "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", "Get the active overrides with parameters and the active server group for a client\n\n@param profileID Id of profile to get configuration for\n@param clientUUID Client Id to export configuration\n@return SingleProfileBackup containing active overrides and active server group\n@throws Exception exception", "Inserts a Bundle value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Bundle object, or null\n@return this bundler instance to chain method calls", "Extract calendar data from the file.\n\n@throws SQLException", "Permanently deletes a trashed folder.\n@param folderID the ID of the trashed folder to permanently delete.", "Get the nearest scale.\n\n@param zoomLevels the list of Zoom Levels.\n@param tolerance the tolerance to use when considering if two values are equal. For example if\n12.0 == 12.001. The tolerance is a percentage.\n@param zoomLevelSnapStrategy the strategy to use for snapping to the nearest zoom level.\n@param geodetic snap to geodetic scales.\n@param paintArea the paint area of the map.\n@param dpi the DPI." ]
@Deprecated public List<Double> getResolutions() { List<Double> resolutions = new ArrayList<Double>(); for (ScaleInfo scale : getZoomLevels()) { resolutions.add(1. / scale.getPixelPerUnit()); } return resolutions; }
[ "Get the list of supported resolutions for the layer. Each resolution is specified in map units per pixel.\n\n@return list of supported resolutions\n@deprecated use {@link #getZoomLevels()}" ]
[ "Get a value from a date metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the metadata value as a Date.\n@throws ParseException when the value cannot be parsed as a valid date", "Parses command-line and gets metadata.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Retrieve any task field value lists defined in the MPP file.", "Return a licenses view of the targeted module\n\n@param moduleId String\n@return List<DbLicense>", "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from", "Writes the results of the processing to a file.", "Use this API to flush nssimpleacl.", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Retrieve any task field value lists defined in the MPP file." ]
public static void validateClusterZonesSame(final Cluster lhs, final Cluster rhs) { Set<Zone> lhsSet = new HashSet<Zone>(lhs.getZones()); Set<Zone> rhsSet = new HashSet<Zone>(rhs.getZones()); if(!lhsSet.equals(rhsSet)) throw new VoldemortException("Zones are not the same [ lhs cluster zones (" + lhs.getZones() + ") not equal to rhs cluster zones (" + rhs.getZones() + ") ]"); }
[ "Confirms that both clusters have the same set of zones defined.\n\n@param lhs\n@param rhs" ]
[ "Find container env.\n\n@param ctx the container context\n@param dump the exception dump\n@return valid container or null", "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>", "Returns a list with argument words that are not equal in all cases", "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.", "Finish initialization of state object.\n\n@param geoService geo service\n@param converterService converter service\n@throws GeomajasException oops", "Gets the value of a global editor configuration parameter.\n\n@param cms the CMS context\n@param editor the editor name\n@param param the name of the parameter\n\n@return the editor parameter value", "Triggers a new search with the given text.\n\n@param query the text to search for.", "get an AdminClient from the cache if exists, if not create new one\nand return it. This method is non-blocking.\n\nAll AdminClient returned from checkout, once after the completion of\nusage must be returned to the pool by calling checkin. If not,\nthere will be leak of AdminClients (connections, threads and file handles).\n\n@return AdminClient", "Add a URL pattern to the routing table.\n\n@param urlPattern A regular expression\n@throws RouteAlreadyMappedException" ]
@JmxGetter(name = "avgFetchEntriesNetworkTimeMs", description = "average time spent on network, for streaming operations") public double getAvgFetchEntriesNetworkTimeMs() { return networkTimeCounterMap.get(Operation.FETCH_ENTRIES).getAvgEventValue() / Time.NS_PER_MS; }
[ "Mbeans for FETCH_ENTRIES" ]
[ "Used to retrieve all metadata associated with the item.\n@param item item to get metadata for.\n@param fields the optional fields to retrieve.\n@return An iterable of metadata instances associated with the item.", "Verify the given job types are all valid.\n\n@param jobTypes the given job types\n@throws IllegalArgumentException if any of the job types are invalid\n@see #checkJobType(String, Class)", "Process normal calendar working and non-working days.\n\n@param calendar parent calendar", "Runs the server.", "Initialize the random generator with a seed.", "Is invoked on the leaf deletion only.\n\n@param left left page.\n@param right right page.\n@return true if the left page ought to be merged with the right one.", "Use this API to fetch snmpalarm resources of given names .", "Find a statement group by its property id, without checking for\nequality with the site IRI. More efficient implementation than\nthe default one.", "Returns the URL to the property file that contains CRS definitions.\n\n@return The URL to the epsg file containing custom EPSG codes" ]
public static void checkXerbla() { double[] x = new double[9]; System.out.println("Check whether we're catching XERBLA errors. If you see something like \"** On entry to DGEMM parameter number 4 had an illegal value\", it didn't work!"); try { NativeBlas.dgemm('N', 'N', 3, -1, 3, 1.0, x, 0, 3, x, 0, 3, 0.0, x, 0, 3); } catch (IllegalArgumentException e) { check("checking XERBLA", e.getMessage().contains("XERBLA")); return; } assert (false); // shouldn't happen }
[ "Check whether error handling works. If it works, you should see an\nok, otherwise, you might see the actual error message and then\nthe program exits." ]
[ "Assign float value to inputOutput SFFloat field named speed.\nNote that our implementation with ExoPlayer that pitch and speed will be set to the same value.\n@param newValue", "Hardcode a copy method as being valid. This should be used to tell Mutability Detector about\na method which copies a collection, and when the copy can be wrapped in an immutable wrapper\nwe can consider the assignment immutable. Useful for allowing Mutability Detector to correctly\nwork with other collections frameworks such as Google Guava. Reflection is used to obtain the\nmethod's descriptor and to verify the method's existence.\n\n@param fieldType - the type of the field to which the result of the copy is assigned\n@param fullyQualifiedMethodName - the fully qualified method name\n@param argType - the type of the argument passed to the copy method\n\n@throws MutabilityAnalysisException - if the specified class or method does not exist\n@throws IllegalArgumentException - if any of the arguments are null", "Takes a date, and retrieves the next business day\n\n@param dateString the date\n@param onlyBusinessDays only business days\n@return a string containing the next business day", "Download a file asynchronously.\n@param url the URL pointing to the file\n@param retrofit the retrofit client\n@return an Observable pointing to the content of the file", "Check if the current version match the last release or the last snapshot one\n\n@param artifact\n@return boolean", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Calculate the pointer's coordinates on the color wheel using the supplied\nangle.\n\n@param angle The position of the pointer expressed as angle (in rad).\n\n@return The coordinates of the pointer's center in our internal\ncoordinate system.", "Returns the full record for a single team.\n\n@param team Globally unique identifier for the team.\n@return Request object", "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException" ]
protected FieldDescriptor resolvePayloadField(Message message) { for (FieldDescriptor field : message.getDescriptorForType().getFields()) { if (message.hasField(field)) { return field; } } throw new RuntimeException("No payload found in message " + message); }
[ "Find out which field in the incoming message contains the payload that is.\ndelivered to the service method." ]
[ "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "Reads a single day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT week day", "Throw fault.\n\n@param code the fault code\n@param message the message\n@param t the throwable type\n@throws PutEventsFault", "Update the value of an embedded node property.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param keyValues the columns representing the identifier in the entity owning the embedded\n@param embeddedColumn the column on the embedded node (dot-separated properties)\n@param value the new value for the property", "Gets the Java subclass of GVRShader which implements\nthis shader type.\n@param ctx GVRContext shader is associated with\n@return GVRShader class implementing the shader type", "Adds a parameter to the MIMEType.\n\n@param name name of parameter\n@param value value of parameter\n@return returns a new instance with the parameter set", "Read a text file into a single string\n\n@param file\nThe file to read\n@return The contents, or null on error.", "Groups the current element according to the value\n\n@param answer the map containing the results\n@param element the element to be placed\n@param value the value according to which the element will be placed\n@since 1.5.0", "Default implementation returns unmodified original Query\n\n@see org.apache.ojb.broker.accesslayer.QueryCustomizer#customizeQuery" ]
public static lbmonbindings_servicegroup_binding[] get(nitro_service service, String monitorname) throws Exception{ lbmonbindings_servicegroup_binding obj = new lbmonbindings_servicegroup_binding(); obj.set_monitorname(monitorname); lbmonbindings_servicegroup_binding response[] = (lbmonbindings_servicegroup_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch lbmonbindings_servicegroup_binding resources of given name ." ]
[ "Deletes the VFS XML bundle file.\n@throws CmsException thrown if the delete operation fails.", "Support the subscript operator for String.\n\n@param text a String\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Fetch the outermost Hashmap as a TwoDHashMap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap", "Set the minimum date limit.", "This function helps handle the following case\n\n<OL>\n<LI>TX1 locls r1 col1\n<LI>TX1 fails before unlocking\n<LI>TX2 attempts to write r1:col1 w/o reading it\n</OL>\n\n<p>\nIn this case TX2 would not roll back TX1, because it never read the column. This function\nattempts to handle this case if TX2 fails. Only doing this in case of failures is cheaper than\ntrying to always read unread columns.\n\n@param cd Commit data", "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", "Get the URI for the given property in the given context.\n\n@param propertyIdValue\nthe property id for which to create a URI\n@param propertyContext\nthe context for which the URI will be needed\n@return the URI", "Prints a few aspects of the TreebankLanguagePack, just for debugging.", "Answer the SQL-Clause for a BetweenCriteria\n\n@param alias\n@param pathInfo\n@param c BetweenCriteria\n@param buf" ]
public static <K, V> HashMap<K, V> newEmptyHashMap(Iterable<?> iterable) { if(iterable instanceof Collection<?>) return Maps.newHashMapWithExpectedSize(((Collection<?>) iterable).size()); return Maps.newHashMap(); }
[ "Returns an empty map with expected size matching the iterable size if\nit's of type Collection. Otherwise, an empty map with the default size is\nreturned." ]
[ "Sends a multipart response. Each body part represents a versioned value\nof the given key.\n\n@throws IOException\n@throws MessagingException", "Convenience method dispatches the specified event to the source appender,\nwhich will result in the custom event data being appended to the new file.\n\n@param customLoggingEvent\nThe custom Log4J event to be appended.", "Return the text content of the document. It does not containing trailing spaces and asterisks\nat the start of the line.", "Use this API to fetch dnstxtrec resources of given names .", "Checks, if all values necessary for a specific pattern are valid.\n@return a flag, indicating if all values required for the pattern are valid.", "Send a master handoff yield response to all registered listeners.\n\n@param fromPlayer the device number that is responding to our request that it yield the tempo master role to us\n@param yielded will be {@code true} if we should now be the tempo master", "Extract task data.", "Tells you if the expression is a null safe dereference.\n@param expression\nexpression\n@return\ntrue if is null safe dereference.", "Copy the data from an InputStream to a temp file.\n\n@param inputStream data source\n@param tempFileSuffix suffix to use for temp file\n@return File instance" ]
private void readResourceAssignment(Allocation gpAllocation) { Integer taskID = Integer.valueOf(NumberHelper.getInt(gpAllocation.getTaskId()) + 1); Integer resourceID = Integer.valueOf(NumberHelper.getInt(gpAllocation.getResourceId()) + 1); Task task = m_projectFile.getTaskByUniqueID(taskID); Resource resource = m_projectFile.getResourceByUniqueID(resourceID); if (task != null && resource != null) { ResourceAssignment mpxjAssignment = task.addResourceAssignment(resource); mpxjAssignment.setUnits(gpAllocation.getLoad()); m_eventManager.fireAssignmentReadEvent(mpxjAssignment); } }
[ "Read an individual GanttProject resource assignment.\n\n@param gpAllocation GanttProject resource assignment." ]
[ "Private used static method for creation of a RemoteWebDriver. Taking care of the default\nCapabilities and using the HttpCommandExecutor.\n\n@param hubUrl the url of the hub to use.\n@return the RemoteWebDriver instance.", "static expansion helpers", "Retrieves the task mode.\n\n@return task mode", "public because it's used by other packages that use Duke", "Checks if the given project exists or not.\n\n@param name project name\n@return true/false\n@throws IllegalArgumentException", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Handles DMR strings in the configuration\n\n@param node the node to create.\n@param name the name for the node.\n@param value the value for the node.", "Generates a change event for a local deletion of a document in the given namespace referring\nto the given document _id.\n\n@param namespace the namespace where the document was inserted.\n@param documentId the _id of the document that was updated.\n@return a change event for a local deletion of a document in the given namespace referring\nto the given document _id.", "Returns true if the provided matrix is has a value of 1 along the diagonal\nelements and zero along all the other elements.\n\n@param a Matrix being inspected.\n@param tol How close to zero or one each element needs to be.\n@return If it is within tolerance to an identity matrix." ]
void countNonZeroUsingLinkedList( int parent[] , int ll[] ) { Arrays.fill(pinv,0,m,-1); nz_in_V = 0; m2 = m; for (int k = 0; k < n; k++) { int i = ll[head+k]; // remove row i from queue k nz_in_V++; // count V(k,k) as nonzero if( i < 0) // add a fictitious row since there are no nz elements i = m2++; pinv[i] = k; // associate row i with V(:,k) if( --ll[nque+k] <= 0 ) continue; nz_in_V += ll[nque+k]; int pa; if( (pa = parent[k]) != -1 ) { // move all rows to parent of k if( ll[nque+pa] == 0) ll[tail+pa] = ll[tail+k]; ll[next+ll[tail+k]] = ll[head+pa]; ll[head+pa] = ll[next+i]; ll[nque+pa] += ll[nque+k]; } } for (int i = 0, k = n; i < m; i++) { if( pinv[i] < 0 ) pinv[i] = k++; } if( nz_in_V < 0) throw new RuntimeException("Too many elements. Numerical overflow in V counts"); }
[ "Non-zero counts of Householder vectors and computes a permutation\nmatrix that ensures diagonal entires are all structurally nonzero.\n\n@param parent elimination tree\n@param ll linked list for each row that specifies elements that are not zero" ]
[ "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "Populates the project header.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Determines the partition ID that replicates the key on the given node.\n\n@param nodeId of the node\n@param key to look up.\n@return partitionId if found, otherwise null.", "Maps a story if it is allowed by the meta filter\n\n@param story\nthe Story\n@param metaFilter\nthe meta filter", "Prints and stores final result of the processing. This should be called\nafter finishing the processing of a dump. It will print the statistics\ngathered during processing and it will write a CSV file with usage counts\nfor every property.", "Sum of the elements.\n\n@param data Data.\n@return Sum(data).", "Send a request to another handler internal to the server, getting back the response body and response code.\n\n@param request request to send to another handler.\n@return {@link InternalHttpResponse} containing the response code and body.", "Sets the target translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator\n@return this to allow chaining", "returns &gt; 0 when o1 is more specific than o2,\n\nreturns == 0 when o1 and o2 are equal or unrelated,\n\nreturns &lt; 0 when o2 is more specific than o1," ]
private void processSubProjects() { int subprojectIndex = 1; for (Task task : m_project.getTasks()) { String subProjectFileName = task.getSubprojectName(); if (subProjectFileName != null) { String fileName = subProjectFileName; int offset = 0x01000000 + (subprojectIndex * 0x00400000); int index = subProjectFileName.lastIndexOf('\\'); if (index != -1) { fileName = subProjectFileName.substring(index + 1); } SubProject sp = new SubProject(); sp.setFileName(fileName); sp.setFullPath(subProjectFileName); sp.setUniqueIDOffset(Integer.valueOf(offset)); sp.setTaskUniqueID(task.getUniqueID()); task.setSubProject(sp); ++subprojectIndex; } } }
[ "The only indication that a task is a SubProject is the contents\nof the subproject file name field. We test these here then add a skeleton\nsubproject structure to match the way we do things with MPP files." ]
[ "interceptors, decorators and observers go first", "This implementation returns whether the underlying asset exists.", "convolution data type", "Use this API to fetch sslvserver_sslcipher_binding resources of given name .", "Set a variable in the top variables layer to given \"collection\" of the vertex frames. Can't be reassigned -\nthrows on attempt to reassign.", "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "Requests the beat grid for a specific track ID, given a connection to a player that has already been set up.\n\n@param rekordboxId the track of interest\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved beat grid, or {@code null} if there was none available\n\n@throws IOException if there is a communication problem", "Returns the user records for all users in the specified workspace or\norganization.\n\n@param workspace The workspace in which to get users.\n@return Request object", "Sets the color for the big total between the column and row\n@param row row index (starting from 1)\n@param column column index (starting from 1)\n@param color" ]
public void ifPropertyValueEquals(String template, Properties attributes) throws XDocletException { String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME)); String expected = attributes.getProperty(ATTRIBUTE_VALUE); if (value == null) { value = attributes.getProperty(ATTRIBUTE_DEFAULT); } if (expected.equals(value)) { generate(template); } }
[ "Processes the template if the property value of the current object on the specified level equals the given value.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"value\" optional=\"false\" description=\"The value to check for\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"" ]
[ "Used to create a new indefinite retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@return the created retention policy's info.", "Returns the total number of elements which are true.\n@return number of elements which are set to true", "Send a metadata cache update announcement to all registered listeners.\n\n@param slot the media slot whose cache status has changed\n@param cache the cache which has been attached, or, if {@code null}, the previous cache has been detached", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Resolve all files from a given path and simplify its definition.", "Answer the SQL-Clause for a BetweenCriteria\n\n@param alias\n@param pathInfo\n@param c BetweenCriteria\n@param buf", "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "Read an exception day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT exception day", "Computes the rank of a matrix using the specified tolerance.\n\n@param A Matrix whose rank is to be calculated. Not modified.\n@param threshold The numerical threshold used to determine a singular value.\n@return The matrix's rank." ]
public static void doBatchEnqueue(final Jedis jedis, final String namespace, final String queue, final List<String> jobJsons) { Pipeline pipelined = jedis.pipelined(); pipelined.sadd(JesqueUtils.createKey(namespace, QUEUES), queue); for (String jobJson : jobJsons) { pipelined.rpush(JesqueUtils.createKey(namespace, QUEUE, queue), jobJson); } pipelined.sync(); }
[ "Helper method that encapsulates the minimum logic for adding jobs to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJsons\na list of jobs serialized as JSON" ]
[ "Get upload status for the currently authenticated user.\n\nRequires authentication with 'read' permission using the new authentication API.\n\n@return A User object with upload status data fields filled\n@throws FlickrException", "The users element defines users within the domain model, it is a simple authentication for some out of the box users.", "Use this API to change responderhtmlpage.", "Get the last date to keep logs from, by a given current date.\n@param currentDate the date of today\n@return the last date to keep log files from.", "Builds the data structures that show the effects of the plan by server group", "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of the JSON result", "Reads the next chunk for the intermediate work buffer.", "Adds the absolute path to command.\n\n@param command the command to add the arguments to.\n@param typeName the type of directory.\n@param propertyName the name of the property.\n@param properties the properties where the path may already be defined.\n@param directoryGrouping the directory group type.\n@param typeDir the domain level directory for the given directory type; to be used for by-type grouping\n@param serverDir the root directory for the server, to be used for 'by-server' grouping\n@return the absolute path that was added.", "Gets the global and adds it ot the BatchExecutionresults using the alternative outIdentifier.\n\n@param identifier\nThe identifier of the global\n@param outIdentifier\nThe identifier used in the ExecutionResults to store the global.\n@return" ]
public static base_response disable(nitro_service client, nsacl6 resource) throws Exception { nsacl6 disableresource = new nsacl6(); disableresource.acl6name = resource.acl6name; return disableresource.perform_operation(client,"disable"); }
[ "Use this API to disable nsacl6." ]
[ "Called when remote end send a message to this connection\n@param receivedMessage the message received\n@return this context", "Set the color resources used in the progress animation from color resources.\nThe first color will also be the color of the bar that grows in response\nto a user swipe gesture.\n\n@param colorResIds", "Unlink the specified reference object.\nMore info see OJB doc.\n@param source The source object with the specified reference field.\n@param attributeName The field name of the reference to unlink.\n@param target The referenced object to unlink.", "Use this API to fetch statistics of gslbdomain_stats resource of given name .", "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", "returns an Array with an Objects PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Returns the number of consecutive leading one or zero bits.\nIf network is true, returns the number of consecutive leading one bits.\nOtherwise, returns the number of consecutive leading zero bits.\n\n@param network\n@return", "Return the hostname of this address such as \"MYCOMPUTER\".", "Format event to string buffer.\n\n@param sbuf\nstring buffer to receive formatted event, may not be null.\n@param event\nevent to format, may not be null." ]
private Calendar cleanHistCalendar(Calendar cal) { cal.set(Calendar.MILLISECOND, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.HOUR, 0); return cal; }
[ "Put everything smaller than days at 0\n@param cal calendar to be cleaned" ]
[ "Checks constraints on this model.\n\n@param checkLevel The amount of checks to perform\n@throws ConstraintException If a constraint has been violated", "Rethrows OperationCanceledErrors and wraps platform specific OperationCanceledExceptions. Does nothing for any other type of Throwable.", "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors", "Given a class configures the binding between a class and a Renderer class.\n\n@param clazz to bind.\n@param prototype used as Renderer.\n@return the current RendererBuilder instance.", "Throws an exception if the request can for security reasons not be performed.\nSecurity restrictions can be set via parameters of the index.\n\n@param cms the current context.\n@param query the query.\n@param isSpell flag, indicating if the spellcheck handler is requested.\n@throws CmsSearchException thrown if the query cannot be executed due to security reasons.", "Was the CDJ playing a track when this update was sent?\n\n@return true if the play flag was set, or, if this seems to be a non-nexus player, if <em>P<sub>1</sub></em>\nhas a value corresponding to a playing state.", "Create a forward curve from forwards given by a LIBORMonteCarloModel.\n\n@param name 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 forward curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Set the minimum date limit.", "Modify a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@param newHash the new hash of the modified content\n@return the builder" ]
public void generateOutlineNumber(Task parent) { String outline; if (parent == null) { if (NumberHelper.getInt(getUniqueID()) == 0) { outline = "0"; } else { outline = Integer.toString(getParentFile().getChildTasks().size() + 1); } } else { outline = parent.getOutlineNumber(); int index = outline.lastIndexOf(".0"); if (index != -1) { outline = outline.substring(0, index); } int childTaskCount = parent.getChildTasks().size() + 1; if (outline.equals("0")) { outline = Integer.toString(childTaskCount); } else { outline += ("." + childTaskCount); } } setOutlineNumber(outline); }
[ "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task" ]
[ "Embeds the given SVG element into a new SVG element scaling the graphic to the given dimension and\napplying the given rotation.", "Extracts the rank of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The rank of the decomposed matrix.", "Used only for unit testing. Please do not use this method in other ways.\n\n@param key\n@return\n@throws Exception", "Calculates the size based constraint width and height if present, otherwise from children sizes.", "The cell String is the string representation of the object.\nIf padLeft is greater than 0, it is padded. Ditto right", "Return the trimmed source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Detect bad xml 1.0 characters\n\n@param c to detect\n@return true if specified character valid, false otherwise", "Tells you if the expression is the false expression, either literal or constant.\n@param expression\nexpression\n@return\nas described", "Retrieves the pro-rata work carried out on a given day.\n\n@param calendar current calendar\n@param assignment current assignment.\n@return assignment work duration" ]
@Override public EthiopicDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); }
[ "Obtains a local date in Ethiopic calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Ethiopic era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code EthiopicEra}" ]
[ "Gets the value of the project property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the project property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetProject().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link ProjectListType.Project }", "Creates the style definition used for a rectangle element based on the given properties of the rectangle\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 element style definition.", "Generate the next permutation and return a list containing\nthe elements in the appropriate order.\n@see #nextPermutationAsList(java.util.List)\n@see #nextPermutationAsArray()\n@return The next permutation as a list.", "Sorts the fields.", "Solve the using the lower triangular matrix in LU. Diagonal elements are assumed\nto be 1", "Finish initializing service.\n\n@throws IOException oop", "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object", "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", "Sets the first occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception" ]
public static tmsessionpolicy_binding get(nitro_service service, String name) throws Exception{ tmsessionpolicy_binding obj = new tmsessionpolicy_binding(); obj.set_name(name); tmsessionpolicy_binding response = (tmsessionpolicy_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch tmsessionpolicy_binding resource of given name ." ]
[ "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "Given a class node, if this class node implements a trait, then generate all the appropriate\ncode which delegates calls to the trait. It is safe to call this method on a class node which\ndoes not implement a trait.\n@param cNode a class node\n@param unit the source unit", "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", "Set the start time.\n@param date the start time to set.", "Constructs a camera rig with cameras attached. An owner scene object is automatically\ncreated for the camera rig.\n\nDo not try to change the owner object of the camera rig - not supported currently and will\nlead to native crashes.", "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "Fling the content\n\n@param velocityX The initial velocity in the X direction. Positive numbers mean that the\nfinger/cursor is moving to the left on the screen, which means we want to\nscroll towards the beginning.\n@param velocityY The initial velocity in the Y direction. Positive numbers mean that the\nfinger/cursor is moving down the screen, which means we want to scroll\ntowards the top.\n@param velocityZ TODO: Z-scrolling is currently not supported\n@return", "Calculate start dates for a monthly relative recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Sets the right padding character for all cells in the table.\n@param paddingRightChar new padding character, ignored if null\n@return this to allow chaining" ]
protected void readUUID(StreamReader stream, Map<String, Object> map) throws IOException { int unknown0Size = stream.getMajorVersion() > 5 ? 8 : 16; map.put("UNKNOWN0", stream.readBytes(unknown0Size)); map.put("UUID", stream.readUUID()); }
[ "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map" ]
[ "Sets the baseline duration text value.\n\n@param baselineNumber baseline number\n@param value baseline duration text value", "Runs a query that returns a single int.", "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object", "Returns true if this Bytes object equals another. This method doesn't check it's arguments.\n\n@since 1.2.0", "Call the named method\n\n@param obj The object to call the method on\n@param c The class of the object\n@param name The name of the method\n@param args The method arguments\n@return The result of the method", "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set\nas selector in the conduitSelectorHolder.\n\n@param conduitSelectorHolder\n@param matcher\n@param selectionStrategy", "The Critical field indicates whether a task has any room in the schedule\nto slip, or if a task is on the critical path. The Critical field contains\nYes if the task is critical and No if the task is not critical.\n\n@return boolean", "Propagates node table of given DAG to all of it ancestors.", "Returns all ApplicationProjectModels." ]
private void cleanStaleFiles(File backupDir, AsyncOperationStatus status) { String[] filesInEnv = env.getHome().list(); String[] filesInBackupDir = backupDir.list(); if(filesInEnv != null && filesInBackupDir != null) { HashSet<String> envFileSet = new HashSet<String>(); for(String file: filesInEnv) envFileSet.add(file); // delete all files in backup which are currently not in environment for(String file: filesInBackupDir) { if(file.endsWith(BDB_EXT) && !envFileSet.contains(file)) { status.setStatus("Deleting stale jdb file :" + file); File staleJdbFile = new File(backupDir, file); staleJdbFile.delete(); } } } }
[ "For recovery from the latest consistent snapshot, we should clean up the\nold files from the previous backup set, else we will fill the disk with\nuseless log files\n\n@param backupDir" ]
[ "Returns the export format indicated in the result-type parameter \"layoutManager\"\n@param _invocation\n@return", "Checks constraints on this model.\n\n@param checkLevel The amount of checks to perform\n@throws ConstraintException If a constraint has been violated", "Will auto format the given string to provide support for pickadate.js formats.", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "Returns the number of key-value mappings in this map for the third key.\n\n@param firstKey\nthe first key\n@param secondKey\nthe second key\n@return Returns the number of key-value mappings in this map for the third key.", "Load resource content from given path into variable with\ntype specified by `spec`.\n\n@param resourcePath the resource path\n@param spec {@link BeanSpec} specifies the return value type\n@return the resource content in a specified type or `null` if resource not found\n@throws UnexpectedException if return value type not supported", "Returns the command line options to be used for scalaxb, excluding the\ninput file names.", "Internal method used to test for the existence of a relationship\nwith a task.\n\n@param task target task\n@param list list of relationships\n@return boolean flag", "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" ]
private ModelNode parseAddress(final String profileName, final String inputAddress) { final ModelNode result = new ModelNode(); if (profileName != null) { result.add(ServerOperations.PROFILE, profileName); } String[] parts = inputAddress.split(","); for (String part : parts) { String[] address = part.split("="); if (address.length != 2) { throw new RuntimeException(part + " is not a valid address segment"); } result.add(address[0], address[1]); } return result; }
[ "Parses the comma delimited address into model nodes.\n\n@param profileName the profile name for the domain or {@code null} if not a domain\n@param inputAddress the address.\n\n@return a collection of the address nodes." ]
[ "Load a properties file from a file path\n\n@param gradlePropertiesFilePath The file path where the gradle.properties is located.\n@return The loaded properties.\n@throws IOException In case an error occurs while reading the properties file, this exception is thrown.", "1-D Perlin noise function.\n\n@param x X Value.\n@return Returns function's value at point x.", "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code", "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "Parses command line arguments.\n\n@param args\nArray of arguments, like the ones provided by\n{@code void main(String[] args)}\n@param objs\nOne or more objects with annotated public fields.\n@return A {@code List} containing all unparsed arguments (i.e. arguments\nthat are no switches)\n@throws IOException\nif a parsing error occurred.\n@see CmdArgument", "Show only the given channel.\n@param channels The channels to show", "Produces an IPv4 address from any sequence of 4 bytes in this IPv6 address.\n\n@param byteIndex the byte index to start\n@throws IndexOutOfBoundsException if the index is less than zero or bigger than 7\n@return", "Searches for a declared method with a given name. If the class declares multiple methods with the given name,\nthere is no guarantee as of which methods is returned. Null is returned if the class does not declare a method\nwith the given name.\n@param clazz the given class\n@param methodName the given method name\n@return method method with the given name declared by the given class or null if no such method exists", "Gets the JsonObject representation of the given field object.\n@param field represents a template field\n@return the json object" ]
public String[] parseMFString(String mfString) { Vector<String> strings = new Vector<String>(); StringReader sr = new StringReader(mfString); StreamTokenizer st = new StreamTokenizer(sr); st.quoteChar('"'); st.quoteChar('\''); String[] mfStrings = null; int tokenType; try { while ((tokenType = st.nextToken()) != StreamTokenizer.TT_EOF) { strings.add(st.sval); } } catch (IOException e) { Log.d(TAG, "String parsing Error: " + e); e.printStackTrace(); } mfStrings = new String[strings.size()]; for (int i = 0; i < strings.size(); i++) { mfStrings[i] = strings.get(i); } return mfStrings; }
[ "multi-field string" ]
[ "Converts an image in RGB mode to BINARY mode\n\n@param img image\n@param threshold grays cale threshold\n@return new MarvinImage instance in BINARY mode", "Use this API to fetch lbmonitor_binding resources of given names .", "Non-zero counts of Householder vectors and computes a permutation\nmatrix that ensures diagonal entires are all structurally nonzero.\n\n@param parent elimination tree\n@param ll linked list for each row that specifies elements that are not zero", "Set the order in which sets are returned for the user.\n\nThis method requires authentication with 'write' permission.\n\n@param photosetIds\nAn array of Ids\n@throws FlickrException", "Creates the automata.\n\n@param prefix the prefix\n@param regexp the regexp\n@param automatonMap the automaton map\n@return the list\n@throws IOException Signals that an I/O exception has occurred.", "Get the title and read the Title property according the provided locale.\n@return The map from locales to the locale specific titles.", "Performs the filtering of the expired entries based on retention time.\nOptionally, deletes them also\n\n@param key the key whose value is to be deleted if needed\n@param vals set of values to be filtered out\n@return filtered list of values which are currently valid", "Deletes this collaboration.", "Calculates the tiles width and height.\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 an array of double values where the first value is the tile width and the second value is the\ntile height." ]
private void checkGAs(List l) { for (final Iterator i = l.iterator(); i.hasNext();) if (!(i.next() instanceof GroupAddress)) throw new KNXIllegalArgumentException("not a group address list"); }
[ "iteration not synchronized" ]
[ "Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Use this API to Force hafailover.", "Sets a property on this Javascript object for which the value is a\nJavascript object itself.\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value", "This implementation does not support the 'offset' and 'maxResultSize' parameters.", "Plots the MSD curve with the trajectory t and adds the fitted model for free diffusion.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param intercept", "Get the server redirects for a given clientId from the database\n\n@param clientId client ID\n@return collection of ServerRedirects", "Stops the processing and prints the final time.", "Checks if class is on class path\n@param className of the class to check.\n@return true if class in on class path, false otherwise." ]
public void fireRelationReadEvent(Relation relation) { if (m_projectListeners != null) { for (ProjectListener listener : m_projectListeners) { listener.relationRead(relation); } } }
[ "This method is called to alert project listeners to the fact that\na relation has been read from a project file.\n\n@param relation relation instance" ]
[ "Checks that sequence-name is only used with autoincrement='ojb'\n\n@param fieldDef The field 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", "Returns a diagonal matrix with the specified diagonal elements.\n@param values values of diagonal elements\n@return A diagonal matrix", "Expand a macro.\n\nThis will look up the macro definition from {@link #macros} map.\nIf not found then return passed in `macro` itself, otherwise return\nthe macro definition found.\n\n**note** if macro definition is not found and the string\n{@link #isMacro(String) comply to macro name convention}, then a\nwarn level message will be logged.\n\n@param macro the macro name\n@return macro definition or macro itself if no definition found.", "Write entries into the storage.\nOverriding methods should first delegate to super before adding their own entries.", "Add BoxMetaDataFilter to the JsonArray boxMetadataFilterRequestArray.\n@param @param bmf accepts a filter that has templateKey, scope, and filters populated.\n@return JsonArray that is formated Json request", "Creates a non-binary media type with the given type, subtype, and UTF-8 encoding\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Send an announcement packet so the other devices see us as being part of the DJ Link network and send us\nupdates.", "ends the request and clears the cache. This can be called before the request is over,\nin which case the cache will be unavailable for the rest of the request.", "Removes metadata related to rebalancing.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeIds Node ids to clear metadata after rebalancing" ]
public void processClass(String template, Properties attributes) throws XDocletException { if (!_model.hasClass(getCurrentClass().getQualifiedName())) { // we only want to output the log message once LogHelper.debug(true, OjbTagsHandler.class, "processClass", "Type "+getCurrentClass().getQualifiedName()); } ClassDescriptorDef classDef = ensureClassDef(getCurrentClass()); String attrName; for (Enumeration attrNames = attributes.propertyNames(); attrNames.hasMoreElements(); ) { attrName = (String)attrNames.nextElement(); classDef.setProperty(attrName, attributes.getProperty(attrName)); } _curClassDef = classDef; generate(template); _curClassDef = null; }
[ "Sets the current class definition derived from the current class, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"accept-locks\" optional=\"true\" description=\"The accept locks setting\" values=\"true,false\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the class as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"determine-extents\" optional=\"true\" description=\"Whether to determine\npersistent direct sub types automatically\" values=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a no-argument factory method that is\nused to create instances (not yet implemented !)\"\[email protected] name=\"factory-class\" optional=\"true\" description=\"Specifies a factory class to be used for creating\nobjects of this class\"\[email protected] name=\"factory-method\" optional=\"true\" description=\"Specifies a static no-argument method in the factory class\"\[email protected] name=\"generate-repository-info\" optional=\"true\" description=\"Whether repository data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"generate-table-info\" optional=\"true\" description=\"Whether table data should be\ngenerated for the class\" values=\"true,false\"\[email protected] name=\"include-inherited\" optional=\"true\" description=\"Whether to include\nfields/references/collections of supertypes\" values=\"true,false\"\[email protected] name=\"initialization-method\" optional=\"true\" description=\"Specifies a no-argument instance method that is\ncalled right after an instance has been read from the database\"\[email protected] name=\"isolation-level\" optional=\"true\" description=\"The isolation level setting\"\[email protected] name=\"proxy\" optional=\"true\" description=\"The proxy setting for this class\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects of\nobjects of this class to prefetch in collections\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Can be set to force OJB to refresh instances when\nloaded from the cache\" values=\"true,false\"\[email protected] name=\"row-reader\" optional=\"true\" description=\"The row reader for the class\"\[email protected] name=\"schema\" optional=\"true\" description=\"The schema for the type\"\[email protected] name=\"table\" optional=\"true\" description=\"The table for the class\"\[email protected] name=\"table-documentation\" optional=\"true\" description=\"Documentation on the table\"" ]
[ "This takes into account objects that breaks the JavaBean convention\nand have as getter for Boolean objects an \"isXXX\" method.\n@param dest\n@param orig", "Return the current working directory\n\n@return the current working directory", "Handles a complete record at a time, stores it in a form ready for\nfurther processing.\n\n@param record record to be processed\n@return flag indicating if this is the last record in the file to be processed\n@throws MPXJException", "Add a new PropertyChangeListener to this node for a specific property.\nThis functionality has\nbeen borrowed from the java.beans package, though this class has\nnothing to do with a bean", "The % Work Complete field contains the current status of a task,\nexpressed as the percentage of the task's work that has been completed.\nYou can enter percent work complete, or you can have Microsoft Project\ncalculate it for you based on actual work on the task.\n\n@return percentage as float", "Logs the current user out.\n\n@throws IOException", "Builds the radio input to set the export and secure property.\n\n@param propName the name of the property to build the radio input for\n\n@return html for the radio input\n\n@throws CmsException if the reading of a property fails", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Checks if this child holds the current active state.\nIf the child is or contains the active state it is applied." ]
public void setRegExp(final String pattern, final String invalidCharactersInNameErrorMessage, final String invalidCharacterTypedMessage) { regExp = RegExp.compile(pattern); this.invalidCharactersInNameErrorMessage = invalidCharactersInNameErrorMessage; this.invalidCharacterTypedMessage = invalidCharacterTypedMessage; }
[ "Sets the RegExp pattern for the TextBox\n@param pattern\n@param invalidCharactersInNameErrorMessage" ]
[ "Add another store destination to an existing streaming session\n\n\n@param store the name of the store to stream to", "changes an existing property with the same name, or adds a new one\n@param key property name with which the specified value is to be\nassociated\n@param value value to be associated with the specified property name\n@return the previous value associated with property name, or null if\nthere was no mapping for property name. (A null return can also\nindicate that the map previously associated null with key.)", "Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.\n@param other\n@return", "Write a double attribute.\n\n@param name attribute name\n@param value attribute value", "Unregister the mbean with the given name, if there is one registered\n\n@param name The mbean name to unregister\n@see #registerMBean(Object, String)", "2-D Gaussian function.\n\n@param x value.\n@param y value.\n@return Function's value at point (x,y).", "In the case where the prefix sits at a segment boundary, and the prefix sequence is null - null - 0, this changes to prefix sequence of null - x - 0, where x is segment bit length.\n\nNote: We allow both [null, null, 0] and [null, x, 0] where x is segment length. However, to avoid inconsistencies when doing segment replacements,\nand when getting subsections, in the calling constructor we normalize [null, null, 0] to become [null, x, 0].\nWe need to support [null, x, 0] so that we can create subsections and full addresses ending with [null, x] where x is bit length.\nSo we defer to that when constructing addresses and sections.\nAlso note that in our append/appendNetowrk/insert/replace we have special handling for cases like inserting [null] into [null, 8, 0] at index 2.\nThe straight replace would give [null, 8, null, 0] which is wrong.\nIn that code we end up with [null, null, 8, 0] by doing a special trick:\nWe remove the end of [null, 8, 0] and do an append [null, 0] and we'd remove prefix from [null, 8] to get [null, null] and then we'd do another append to get [null, null, null, 0]\nThe final step is this normalization here that gives [null, null, 8, 0]\n\nHowever, when users construct AddressDivisionGrouping or IPAddressDivisionGrouping, either one is allowed: [null, null, 0] and [null, x, 0].\nSince those objects cannot be further subdivided with getSection/getNetworkSection/getHostSection or grown with appended/inserted/replaced,\nthere are no inconsistencies introduced, we are simply more user-friendly.\nAlso note that normalization of AddressDivisionGrouping or IPAddressDivisionGrouping is really not possible without the address creator objects we use for addresses and sections,\nthat allow us to recreate new segments of the correct type.\n\n@param sectionPrefixBits\n@param segments\n@param segmentBitCount\n@param segmentByteCount\n@param segProducer", "Returns a raw handle to the SQLite database connection. Do not close!\n@param context A context, which is used to (when needed) set up a connection to the database\n@return The single, unique connection to the database, as is (also) used by our Cupboard instance", "Utility method to retrieve the previous working date finish time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of previous work finish" ]
public static ProxyMetaClass getInstance(Class theClass) throws IntrospectionException { MetaClassRegistry metaRegistry = GroovySystem.getMetaClassRegistry(); MetaClass meta = metaRegistry.getMetaClass(theClass); return new ProxyMetaClass(metaRegistry, theClass, meta); }
[ "convenience factory method for the most usual case." ]
[ "Returns new boolean matrix with true or false values selected with equal probability.\n\n@param numRow Number of rows in the new matrix.\n@param numCol Number of columns in the new matrix.\n@param rand Random number generator used to fill the matrix.\n@return The randomly generated matrix.", "Send a request for a menu that we will retrieve items from in subsequent requests, when the request must reflect\nthe actual type of track being asked about.\n\n@param requestType identifies what kind of menu request to send\n@param targetMenu the destination for the response to this query\n@param slot the media library of interest for this query\n@param trackType the type of track for which metadata is being requested, since this affects the request format\n@param arguments the additional arguments needed, if any, to complete the request\n\n@return the {@link Message.KnownType#MENU_AVAILABLE} response reporting how many items are available in the menu\n\n@throws IOException if there is a problem communicating, or if the requested menu is not available\n@throws IllegalStateException if {@link #tryLockingForMenuOperations(long, TimeUnit)} was not called successfully\nbefore attempting this call", "Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name .", "Mark root of this DAG depends on given DAG's root.\n\n@param dependencyGraph the dependency DAG", "Configure file logging and stop console logging.\n\n@param filename\nLog to this file.", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Attaches the menu drawer to the content view.", "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset.", "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be JSON.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')" ]
public static void applyMultiIconTo(Drawable icon, int iconColor, Drawable selectedIcon, int selectedIconColor, boolean tinted, ImageView imageView) { //if we have an icon then we want to set it if (icon != null) { //if we got a different color for the selectedIcon we need a StateList if (selectedIcon != null) { if (tinted) { imageView.setImageDrawable(new PressedEffectStateListDrawable(icon, selectedIcon, iconColor, selectedIconColor)); } else { imageView.setImageDrawable(UIUtils.getIconStateList(icon, selectedIcon)); } } else if (tinted) { imageView.setImageDrawable(new PressedEffectStateListDrawable(icon, iconColor, selectedIconColor)); } else { imageView.setImageDrawable(icon); } //make sure we display the icon imageView.setVisibility(View.VISIBLE); } else { //hide the icon imageView.setVisibility(View.GONE); } }
[ "a small static helper to set a multi state drawable on a view\n\n@param icon\n@param iconColor\n@param selectedIcon\n@param selectedIconColor\n@param tinted\n@param imageView" ]
[ "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)", "Installs a path service.\n\n@param name the name to use for the service\n@param path the relative portion of the path\n@param possiblyAbsolute {@code true} if {@code path} may be an {@link #isAbsoluteUnixOrWindowsPath(String) absolute path}\nand should be {@link AbsolutePathService installed as such} if it is, with any\n{@code relativeTo} parameter ignored\n@param relativeTo the name of the path that {@code path} may be relative to\n@param serviceTarget the {@link ServiceTarget} to use to install the service\n@return the ServiceController for the path service", "Wait for exclusive permit during a timeout in milliseconds.\n\n@return number of acquired permits if > 0", "Gets an item that was shared with a password-protected shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@param password the password for the shared link.\n@return info about the shared item.", "Handles incoming Application Command Request.\n@param incomingMessage the request message to process.", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "This method retrieves a double of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return required double data", "Add an executable \"post-run\" dependent for this model.\n\n@param executable the executable \"post-run\" dependent\n@return the key to be used as parameter to taskResult(string) method to retrieve result of executing\nthe executable \"post-run\" dependent", "Add a polygon symbolizer definition to the rule.\n\n@param styleJson The old style." ]
@Override public boolean minimize(DifferentiableBatchFunction function, IntDoubleVector point) { return minimize(function, point, null); }
[ "Minimize the function starting at the given initial point." ]
[ "The Baseline Start field shows the planned beginning date for a task at\nthe time you saved a baseline. Information in this field becomes available\nwhen you set a baseline.\n\n@return Date", "Returns the input to parse including the whitespace left to the cursor position since\nit may be relevant to the list of proposals for whitespace sensitive languages.", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Returns the configured fields of the current field configuration.\n\n@return the configured fields of the current field configuration", "Returns an array of the enabled endpoints as Integer IDs\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return Collection of endpoints\n@throws Exception exception", "Extract a Class from the given Type.", "Accessor method used to retrieve an Duration object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Concat a List into a CSV String.\n@param list list to concat\n@return csv string", "This method will return a list of installed identities for which\nthe corresponding .conf file exists under .installation directory.\nThe list will also include the default identity even if the .conf\nfile has not been created for it." ]
void writeNoValueRestriction(RdfWriter rdfWriter, String propertyUri, String rangeUri, String subject) throws RDFHandlerException { Resource bnodeSome = rdfWriter.getFreshBNode(); rdfWriter.writeTripleValueObject(subject, RdfWriter.RDF_TYPE, RdfWriter.OWL_CLASS); rdfWriter.writeTripleValueObject(subject, RdfWriter.OWL_COMPLEMENT_OF, bnodeSome); rdfWriter.writeTripleValueObject(bnodeSome, RdfWriter.RDF_TYPE, RdfWriter.OWL_RESTRICTION); rdfWriter.writeTripleUriObject(bnodeSome, RdfWriter.OWL_ON_PROPERTY, propertyUri); rdfWriter.writeTripleUriObject(bnodeSome, RdfWriter.OWL_SOME_VALUES_FROM, rangeUri); }
[ "Writes no-value restriction.\n\n@param rdfWriter\nthe writer to write the restrictions to\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param subject\nnode representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples" ]
[ "Check if the object has a property with the key.\n\n@param key key to check for.", "Collects all the fields from columns and also the fields not bounds to columns\n@return List<ColumnProperty>", "Send a mount update announcement to all registered listeners, and see if we can auto-attach a media cache file.\n\n@param slot the slot in which media has been mounted or unmounted\n@param mounted will be {@code true} if there is now media mounted in the specified slot", "Returns the classpath for executable jar.", "Parse a map of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "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.", "Reads an HTML snippet with the given name.\n\n@return the HTML data", "Get the output mapper from processor.", "Retrieve a calendar exception which applies to this date.\n\n@param date target date\n@return calendar exception, or null if none match this date" ]
private void complete(final InstallationManager.InstallationModification modification, final FinalizeCallback callback) { final List<File> processed = new ArrayList<File>(); List<File> reenabled = Collections.emptyList(); List<File> disabled = Collections.emptyList(); try { try { // Update the state to invalidate and process module resources if (stateUpdater.compareAndSet(this, State.PREPARED, State.INVALIDATE)) { if (mode == PatchingTaskContext.Mode.APPLY) { // Only invalidate modules when applying patches; on rollback files are immediately restored for (final File invalidation : moduleInvalidations) { processed.add(invalidation); PatchModuleInvalidationUtils.processFile(this, invalidation, mode); } if (!modulesToReenable.isEmpty()) { reenabled = new ArrayList<File>(modulesToReenable.size()); for (final File path : modulesToReenable) { reenabled.add(path); PatchModuleInvalidationUtils.processFile(this, path, PatchingTaskContext.Mode.ROLLBACK); } } } else if(mode == PatchingTaskContext.Mode.ROLLBACK) { if (!modulesToDisable.isEmpty()) { disabled = new ArrayList<File>(modulesToDisable.size()); for (final File path : modulesToDisable) { disabled.add(path); PatchModuleInvalidationUtils.processFile(this, path, PatchingTaskContext.Mode.APPLY); } } } } modification.complete(); callback.completed(this); state = State.COMPLETED; } catch (Exception e) { this.moduleInvalidations.clear(); this.moduleInvalidations.addAll(processed); this.modulesToReenable.clear(); this.modulesToReenable.addAll(reenabled); this.modulesToDisable.clear(); this.moduleInvalidations.addAll(disabled); throw new RuntimeException(e); } } finally { if (state != State.COMPLETED) { try { modification.cancel(); } finally { try { undoChanges(); } finally { callback.operationCancelled(this); } } } else { try { if (checkForGarbageOnRestart) { final File cleanupMarker = new File(installedImage.getInstallationMetadata(), "cleanup-patching-dirs"); cleanupMarker.createNewFile(); } storeFailedRenaming(); } catch (IOException e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to create cleanup marker"); } } } }
[ "Complete the current operation and persist the current state to the disk. This will also trigger the invalidation\nof outdated modules.\n\n@param modification the current modification\n@param callback the completion callback" ]
[ "A convenience method for creating an immutable list\n\n@param self a List\n@return an immutable List\n@see java.util.Collections#unmodifiableList(java.util.List)\n@since 1.0", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong", "Returns true if the provided matrix is has a value of 1 along the diagonal\nelements and zero along all the other elements.\n\n@param a Matrix being inspected.\n@param tol How close to zero or one each element needs to be.\n@return If it is within tolerance to an identity matrix.", "Adds a new email alias to this user's account and confirms it without user interaction.\nThis functionality is only available for enterprise admins.\n@param email the email address to add as an alias.\n@param isConfirmed whether or not the email alias should be automatically confirmed.\n@return the newly created email alias.", "Generates a change event for a local insert of the given document in the given namespace.\n\n@param namespace the namespace where the document was inserted.\n@param document the document that was inserted.\n@return a change event for a local insert of the given document in the given namespace.", "Stop a timer of the given string name for the current thread. If no such\ntimer exists, -1 will be returned. Otherwise the return value is the CPU\ntime that was measured.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return CPU time if timer existed and was running, and -1 otherwise", "ceiling for clipped RELU, alpha for ELU", "Adds a procedure definition to this class descriptor.\n\n@param procDef The procedure definition", "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter" ]
public static SVGGraphics2D createSvgGraphics(final Dimension size) throws ParserConfigurationException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document document = db.getDOMImplementation().createDocument(null, "svg", null); SVGGeneratorContext ctx = SVGGeneratorContext.createDefault(document); ctx.setStyleHandler(new OpacityAdjustingStyleHandler()); ctx.setComment("Generated by GeoTools2 with Batik SVG Generator"); SVGGraphics2D g2d = new SVGGraphics2D(ctx, true); g2d.setSVGCanvasSize(size); return g2d; }
[ "Create a SVG graphic with the give dimensions.\n\n@param size The size of the SVG graphic." ]
[ "Gets the node list from string line seperate or space seperate.\n\n@param listStr\nthe list str\n@param removeDuplicate\nthe remove duplicate\n@return the node list from string line seperate or space seperate", "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.", "We have received an update that invalidates the waveform preview 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", "Shifts are performed based upon singular values computed previously. If it does not converge\nusing one of those singular values it uses a Wilkinson shift instead.", "Cleans a multi-value property key.\n\n@param name Name of the property key\n@return The {@link ValidationResult} object containing the key,\nand the error code(if any)\n<p/>\nFirst calls cleanObjectKey\nKnown property keys are reserved for multi-value properties, subsequent validation is done for those", "Calculates the squared curvature of the LIBOR instantaneous variance.\n\n@param evaluationTime Time at which the product is evaluated.\n@param model A model implementing the LIBORModelMonteCarloSimulationModel\n@return The squared curvature of the LIBOR instantaneous variance (reduced a possible tolerance). The return value is &ge; 0.", "Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the\ntimestampTest.\n\n@param dest Destination ColumnBuffer\n@param timestampTest Test to determine which timestamps get added to dest", "The third method to write caseManager. Its task is to write the call to\nthe story to be run.\n\n@param caseManager\nthe file where the test must be written\n@param storyName\nthe name of the story\n@param test_path\nthe path where the story can be found\n@param user\nthe user requesting the story\n@param feature\nthe feature requested by the user\n@param benefit\nthe benefit provided by the feature\n@throws BeastException", "All address strings are comparable. If two address strings are invalid, their strings are compared.\nOtherwise, address strings are compared according to which type or version of string, and then within each type or version\nthey are compared using the comparison rules for addresses.\n\n@param other\n@return" ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher addBooleanFilter(String attribute, Boolean value) { booleanFilterMap.put(attribute, value); rebuildQueryFacetFilters(); return this; }
[ "Adds a boolean refinement for the next queries.\n\n@param attribute the attribute to refine on.\n@param value the value to refine with.\n@return this {@link Searcher} for chaining." ]
[ "Sends a text message using given server setup for SMTP.\n\n@param to the to address.\n@param from the from address.\n@param subject the subject.\n@param msg the test message.\n@param setup the SMTP setup.", "Clears the Parameters before performing a new search.\n@return this.true;", "Updates the value in HashMap and writeBack as Atomic step", "This method maps the task unique identifiers to their index number\nwithin the FixedData block.\n\n@param fieldMap field map\n@param taskFixedMeta Fixed meta data for this task\n@param taskFixedData Fixed data for this task\n@param taskVarData Variable task data\n@return Mapping between task identifiers and block position", "Use to generate a file based on generator node.", "Remove a named object", "This method is used to extract the task hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param task task instance\n@param data hyperlink data block", "Returns the list of module dependencies regarding the provided filters\n\n@param moduleId String\n@param filters FiltersHolder\n@return List<Dependency>", "add trace information for received frame" ]
public float getNormalZ(int vertex) { if (!hasNormals()) { throw new IllegalStateException("mesh has no normals"); } checkVertexIndexBounds(vertex); return m_normals.getFloat((vertex * 3 + 2) * SIZEOF_FLOAT); }
[ "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate" ]
[ "Create a patch representing what we actually processed. This may contain some fixed content hashes for removed\nmodules.\n\n@param original the original\n@return the processed patch", "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id", "Adds a port that serves the HTTP requests. If unspecified, cleartext HTTP on port 36462 is used.\n\n@param localAddress the TCP/IP load address to bind\n@param protocol {@link SessionProtocol#HTTP} or {@link SessionProtocol#HTTPS}", "convert selector used in an upsert statement into a document", "Serialize the object JSON. When an error occures return a string with the given error.", "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document.", "Groups all of the metadata cache files that are candidates for auto-attachment to player slots into lists\nthat are keyed by the playlist ID used to create the cache file. Files that cache all tracks have a playlist\nID of 0.\n\n@return a map from playlist ID to the caches holding tracks from that playlist", "Adds the index input to list.\n\n@param name the name\n@param in the in\n@param postingsFormatName the postings format name\n@return the string\n@throws IOException Signals that an I/O exception has occurred.", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException" ]
public static void touch(final File folder , final String fileName) throws IOException { if(!folder.exists()){ folder.mkdirs(); } final File touchedFile = new File(folder, fileName); // The JVM will only 'touch' the file if you instantiate a // FileOutputStream instance for the file in question. // You don't actually write any data to the file through // the FileOutputStream. Just instantiate it and close it. try ( FileOutputStream doneFOS = new FileOutputStream(touchedFile); ) { // Touching the file } catch (FileNotFoundException e) { throw new FileNotFoundException("Failed to the find file." + e); } }
[ "Creates a file\n\n@param folder File\n@param fileName String\n@throws IOException" ]
[ "read a producer request from buffer\n\n@param buffer data buffer\n@return parsed producer request", "Add a file to notify the script that asked to stop the print that it is now done processing the remain\njobs.", "Returns the perma link for the given resource and optional detail content.<p<\n\n@param cms the CMS context to use\n@param resourceName the page to generate the perma link for\n@param detailContentId the structure id of the detail content (may be null)\n\n@return the perma link", "Find the earliest start time of the specified methods.\n@param methods A list of test methods.\n@return The earliest start time.", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Loads all localizations not already loaded.\n@throws CmsException thrown if locking a file fails.\n@throws UnsupportedEncodingException thrown if reading a file fails.\n@throws IOException thrown if reading a file fails.", "Returns a the list of available version of an artifact\n\n@param gavc String\n@return List<String>", "Returns a description String based on the defined command and options.\nUseful when printing \"help\" info etc." ]
public static List<String> asListLinesIgnore(String content, Pattern ignorePattern) { List<String> retorno = new ArrayList<String>(); content = content.replace(CARRIAGE_RETURN, RETURN); content = content.replace(RETURN, CARRIAGE_RETURN); for (String str : content.split(CARRIAGE_RETURN)) { if (!ignorePattern.matcher(str).matches()) { retorno.add(str); } } return retorno; }
[ "Split string content into list, ignoring matches of the pattern\n@param content String content\n@param ignorePattern Pattern to ignore\n@return list" ]
[ "Returns a color for a given absolute number that is to be shown on the\nmap.\n\n@param value\n@return", "Use this API to update autoscaleprofile.", "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source", "Get the spatial object from the cache.\n\n@param key key to get object for\n@param type type of object which should be returned\n@return object for key or null if object does not exist or is a different type", "Writes a list of UDF types.\n\n@author lsong\n@param type parent entity type\n@param mpxj parent entity\n@return list of UDFAssignmentType instances", "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)", "Returns a new intern odmg-transaction for the current database.", "Logs all properties", "Adds all rows from the TSV file specified, using the provided delimiter and null value.\n\n@param file The file to read the data from.\n@param delimiter A column delimiter.\n@param nullValue Value to be treated as null in the source data.\n@return {@code this}" ]
public void removeAll() { LOGGER.debug("Removing {} reverse connections from subscription manager", reverse.size()); Iterator<HomekitClientConnection> i = reverse.keySet().iterator(); while (i.hasNext()) { HomekitClientConnection connection = i.next(); LOGGER.debug("Removing connection {}", connection.hashCode()); removeConnection(connection); } LOGGER.debug("Subscription sizes are {} and {}", reverse.size(), subscriptions.size()); }
[ "Remove all existing subscriptions" ]
[ "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry", "Get components list for current instance\n@return components", "Calls the provided closure for a \"page\" of rows from the table represented by this DataSet.\nA page is defined as starting at a 1-based offset, and containing a maximum number of rows.\n\n@param offset the 1-based offset for the first row to be processed\n@param maxRows the maximum number of rows to be processed\n@param closure called for each row with a GroovyResultSet\n@throws SQLException if a database access error occurs\n@see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure)", "All the attributes needed either by the processors for each datasource row or by the jasper template.\n\n@param attributes the attributes.", "Operations to do after all subthreads finished their work on index\n\n@param backend", "Use this API to update route6 resources.", "Make a copy of this Area of Interest.", "Adds the given some-value restriction to the list of restrictions that\nshould still be serialized. The given resource will be used as a subject.\n\n@param subject\n@param propertyUri\n@param rangeUri", "Sets the lower limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis lower rotation limit (in radians)\n@param limitY the Y axis lower rotation limit (in radians)\n@param limitZ the Z axis lower rotation limit (in radians)" ]
private static void listSlack(ProjectFile file) { for (Task task : file.getTasks()) { System.out.println(task.getName() + " Total Slack=" + task.getTotalSlack() + " Start Slack=" + task.getStartSlack() + " Finish Slack=" + task.getFinishSlack()); } }
[ "List the slack values for each task.\n\n@param file ProjectFile instance" ]
[ "Clear the connection that was previously saved.\n\n@return True if the connection argument had been saved.", "If status is in failed state then throw CloudException.", "Deserialize a directory of javascript design documents to a List of DesignDocument objects.\n\n@param directory the directory containing javascript files\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read", "Read all task relationships from a GanttProject.\n\n@param gpProject GanttProject project", "Only meant to be called once\n\n@throws Exception exception", "Finds the parent address, everything before the last address part.\n\n@param address the address to get the parent\n\n@return the parent address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty", "A simple helper method that creates a pool of connections to Redis using\nthe supplied configurations.\n\n@param jesqueConfig the config used to create the pooled Jedis connections\n@param poolConfig the config used to create the pool\n@return a configured Pool of Jedis connections", "Notify our own event listeners of a Z-Wave event.\n@param event the event to send.", "Configure column aliases." ]
private List<Entry> getChildNodes(DirectoryEntry parent) { List<Entry> result = new ArrayList<Entry>(); Iterator<Entry> entries = parent.getEntries(); while (entries.hasNext()) { result.add(entries.next()); } return result; }
[ "Retrieves child nodes from a directory entry.\n\n@param parent parent directory entry\n@return list of child nodes" ]
[ "Parse a macro defintion.\n\n\"macro NAME( var0 , var1 ) = 5+var0+var1'", "See if a range for assignment is specified. If so return the range, otherwise return null\n\nExample of assign range:\na(0:3,4:5) = blah\na((0+2):3,4:5) = blah", "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", "Get EditMode based on os and mode\n\n@return edit mode", "Calculate standart deviation.\n@param values Values.\n@param mean Mean.\n@return Standart deviation.", "Creates a metadata cache archive file of all tracks in the specified slot on the specified player. Any\nprevious contents of the specified file will be replaced.\n\n@param slot the slot in which the media to be cached can be found\n@param playlistId the id of playlist to be cached, or 0 of all tracks should be cached\n@param cache the file into which the metadata cache should be written\n\n@throws Exception if there is a problem communicating with the player or writing the cache file.", "Replace a single value at the appropriate location in the existing value array.\n@param index - location in the array list\n@param newValue - the new String", "Calculates the bounds of the non-transparent parts of the given image.\n@param p the image\n@return the bounds of the non-transparent area", "Checks if a point is in the given rectangle.\n\n@param _Rect rectangle which is checked\n@param _X x-coordinate of the point\n@param _Y y-coordinate of the point\n@return True if the points intersects with the rectangle." ]
public Step createRootStep() { return new Step() .withName("Root step") .withTitle("Allure step processing error: if you see this step something went wrong.") .withStart(System.currentTimeMillis()) .withStatus(Status.BROKEN); }
[ "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken" ]
[ "Use this API to add dnstxtrec.", "End a \"track;\" that is, return to logging at one level shallower.\n@param title A title that should match the beginning of this track.", "Returns the complete definition of a custom field's metadata.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "Concats an element and an array.\n\n@param firstElement the first element\n@param array the array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first element", "Execute a request\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history\n@throws Exception", "Use this API to link sslcertkey.", "Writes the data collected about classes to a file.", "Adds a directory to the collection of module paths.\n\n@param moduleDir the module directory to add\n\n@throws java.lang.IllegalArgumentException if the path is {@code null}" ]
@Override public void putAll(Map<? extends K, ? extends V> in) { if (fast) { synchronized (this) { Map<K, V> temp = cloneMap(map); temp.putAll(in); map = temp; } } else { synchronized (map) { map.putAll(in); } } }
[ "Copy all of the mappings from the specified map to this one, replacing\nany mappings with the same keys.\n\n@param in the map whose mappings are to be copied" ]
[ "Copies all node meta data from the other node to this one\n@param other - the other node", "Gets the event type from message.\n\n@param message the message\n@return the event type", "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map", "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.\n\n@param f the file containing the external vault configuration as generated by the vault tool\n@return the vault config", "Promote a module in the Grapes server\n\n@param name\n@param version\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Returns the List value of the field.\n\n@return the List value of the field. It returns a reference of the value if the type is <code>LIST</code>, if\nthe type is <code>LIST_MAP</code> it returns a copy of the value.\n@throws IllegalArgumentException if the value cannot be converted to List.", "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception", "Trim the trailing spaces.\n\n@param line" ]
private DefBase getDefForLevel(String level) { if (LEVEL_CLASS.equals(level)) { return _curClassDef; } else if (LEVEL_FIELD.equals(level)) { return _curFieldDef; } else if (LEVEL_REFERENCE.equals(level)) { return _curReferenceDef; } else if (LEVEL_COLLECTION.equals(level)) { return _curCollectionDef; } else if (LEVEL_OBJECT_CACHE.equals(level)) { return _curObjectCacheDef; } else if (LEVEL_INDEX_DESC.equals(level)) { return _curIndexDescriptorDef; } else if (LEVEL_TABLE.equals(level)) { return _curTableDef; } else if (LEVEL_COLUMN.equals(level)) { return _curColumnDef; } else if (LEVEL_FOREIGNKEY.equals(level)) { return _curForeignkeyDef; } else if (LEVEL_INDEX.equals(level)) { return _curIndexDef; } else if (LEVEL_PROCEDURE.equals(level)) { return _curProcedureDef; } else if (LEVEL_PROCEDURE_ARGUMENT.equals(level)) { return _curProcedureArgumentDef; } else { return null; } }
[ "Returns the current definition on the indicated level.\n\n@param level The level\n@return The definition" ]
[ "Checks if user exists.\n\n@param userId the user id, which can be an email or the login.\n@return true, if user exists.", "Retrieve the number of minutes per week for this calendar.\n\n@return minutes per week", "Use this API to create sslfipskey resources.", "Method handle a change on the cluster members set\n@param event", "Adds service locator properties to an endpoint reference.\n@param epr\n@param props", "Print the method parameter p", "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids", "close the AdminPool, if no long required.\nAfter closed, all public methods will throw IllegalStateException", "Calculate a cache key.\n@param sql to use\n@param columnIndexes to use\n@return cache key to use." ]
public ItemRequest<Story> findById(String story) { String path = String.format("/stories/%s", story); return new ItemRequest<Story>(this, Story.class, path, "GET"); }
[ "Returns the full record for a single story.\n\n@param story Globally unique identifier for the story.\n@return Request object" ]
[ "This utility method calculates the difference in working\ntime between two dates, given the context of a task.\n\n@param task parent task\n@param date1 first date\n@param date2 second date\n@param format required format for the resulting duration\n@return difference in working time between the two dates", "This filter adds rounded corners to the image using the specified color as the background.\n\n@param radiusInner amount of pixels to use as radius.\n@param radiusOuter specifies the second value for the ellipse used for the radius. Use 0 for\nno value.\n@param color fill color for clipped region.", "Set editable state on an attribute. This needs to also set the state on the associated attributes.\n\n@param attribute attribute for which the editable state needs to be set\n@param editable new editable state", "Save a weak reference to the resource", "get all consumers for the group\n\n@param zkClient the zookeeper client\n@param group the group name\n@return topic-&gt;(consumerIdStringA-0,consumerIdStringA-1...consumerIdStringB-0,consumerIdStringB-1)", "Get's the user's current upload limits, User object only contains user_id\n\n@return Media Limits", "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type", "Copies the jdb log files, with additional verification of the checksums.\n\n@param sourceFile\n@param destFile\n@throws IOException", "Load all string recognize." ]
public static boolean requiresReload(final Set<Flag> flags) { return flags.contains(Flag.RESTART_ALL_SERVICES) || flags.contains(Flag.RESTART_RESOURCE_SERVICES); }
[ "Checks to see within the flags if a reload, i.e. not a full restart, is required.\n\n@param flags the flags to check\n\n@return {@code true} if a reload is required, otherwise {@code false}" ]
[ "Transforms each character from this reader by passing it to the given\nclosure. The Closure should return each transformed character, which\nwill be passed to the Writer. The reader and writer will be both be\nclosed before this method returns.\n\n@param self a Reader object\n@param writer a Writer to receive the transformed characters\n@param closure a closure that performs the required transformation\n@throws IOException if an IOException occurs.\n@since 1.5.0", "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", "Removes the given service provider factory from the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Wait for the read side to close. Used when the writer needs to know when\nthe reader finishes consuming a message.", "Gets the project name for a favorite entry.\n\n@param cms the CMS context\n@param entry the favorite entry\n@return the project name for the favorite entry\n@throws CmsException if something goes wrong", "Gets the name for the getter for this property\n\n@return The name of the property. The name is \"get\"+ the capitalized propertyName\nor, in the case of boolean values, \"is\" + the capitalized propertyName", "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any columns to return, then any foreign-collection fields will be returned as null\n<i>unless</i> their {@link ForeignCollectionField#columnName()} is also in the list.\n</p>", "Convolve with a 2D kernel.\n@param kernel the kernel\n@param inPixels the input pixels\n@param outPixels the output pixels\n@param width the width\n@param height the height\n@param alpha include alpha channel\n@param edgeAction what to do at the edges", "Returns whether this host should ignore operations from the master domain controller that target\nthe given address.\n\n@param address the resource address. Cannot be {@code null}\n\n@return {@code true} if the operation should be ignored; {@code false} otherwise" ]
private String dbProp(String name) { String dbType = m_setupBean.getDatabase(); Object prop = m_setupBean.getDatabaseProperties().get(dbType).get(dbType + "." + name); if (prop == null) { return ""; } return prop.toString(); }
[ "Accesses a property from the DB configuration for the selected DB.\n\n@param name the name of the property\n@return the value of the property" ]
[ "Dump the contents of a row from an MPD file.\n\n@param row row data", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specified fields.", "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Gets the automaton by id.\n\n@param id the id\n@return the automaton by id\n@throws IOException Signals that an I/O exception has occurred.", "Translate the each ByteArray in an iterable into a hexadecimal string\n\n@param arrays The array of bytes to translate\n@return An iterable of converted strings", "Sets the value of the given variable\n\n@param name the name of the variable to set\n@param value the new value for the given variable", "Gets an iterator to the EJB descriptors for an EJB implementation class\n\n@param beanClass The EJB class\n@return An iterator", "Use this API to fetch all the lbroute resources that are configured on netscaler.", "Check if the property is part of the identifier of the entity.\n\n@param persister the {@link OgmEntityPersister} of the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is part of the id, {@code false} otherwise." ]
public List<ServerRedirect> deleteServerMapping(int serverMappingId) { ArrayList<ServerRedirect> servers = new ArrayList<ServerRedirect>(); try { JSONArray serverArray = new JSONArray(doDelete(BASE_SERVER + "/" + serverMappingId, null)); for (int i = 0; i < serverArray.length(); i++) { JSONObject jsonServer = serverArray.getJSONObject(i); ServerRedirect server = getServerRedirectFromJSON(jsonServer); if (server != null) { servers.add(server); } } } catch (Exception e) { e.printStackTrace(); return null; } return servers; }
[ "Remove a server mapping from current profile by ID\n\n@param serverMappingId server mapping ID\n@return Collection of updated ServerRedirects" ]
[ "This method calculates the total amount of working time in a single\nday, which intersects with the supplied time range.\n\n@param hours collection of working hours in a day\n@param startDate time range start\n@param endDate time range end\n@return length of time in milliseconds", "Use this API to add route6 resources.", "Returns a licenses regarding its Id and a fake on if no license exist with such an Id\n\n@param licenseId String\n@return License", "Read an individual GanttProject resource assignment.\n\n@param gpAllocation GanttProject resource assignment.", "Use this API to add ntpserver.", "Accessor method used to retrieve a char representing the\ncontents of an individual field. If the field does not exist in the\nrecord, the default character is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Make sure that the Identity objects of garbage collected cached\nobjects are removed too.", "Collapses all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start collapsing parents\n@param parentCount The number of parents to collapse", "Creates a combined list of Entries using the provided mapping file, and sorts them by\nfirst by priority, then the number of tokens in the regex.\n\n@param mapping The path to a file of mappings\n@return a sorted list of Entries" ]