query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public static base_response restore(nitro_service client, appfwprofile resource) throws Exception { appfwprofile restoreresource = new appfwprofile(); restoreresource.archivename = resource.archivename; return restoreresource.perform_operation(client,"restore"); }
[ "Use this API to restore appfwprofile." ]
[ "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter.", "Create a deep copy.\n\n@param bindAddress overwrites bind address when creating deep copy.\n@return a copy of the server setup configuration.", "Adds an orthographic camera constructed from the designated\nperspective camera to describe the shadow projection.\nThe field of view and aspect ration of the perspective\ncamera are used to obtain the view volume of the\northographic camera. This type of camera is used\nfor shadows generated by direct lights at infinite distance.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@return Orthographic camera to use for shadow casting\n@see GVRDirectLight", "Sets the monitoring service.\n\n@param monitoringService the new monitoring service", "Apply the matching client UUID for the request\n\n@param httpServletRequest\n@param history", "Calculates all dates of the series.\n@return all dates of the series in milliseconds.", "Adds the content info for the collected resources used in the \"This page\" publish dialog.", "Use this API to fetch sslpolicylabel resource of given name .", "An extension point so we can control how the query gets executed.\nThis exists for testing purposes, not because we believe it will\nactually be used for real." ]
protected void setWhenNoDataBand() { log.debug("setting up WHEN NO DATA band"); String whenNoDataText = getReport().getWhenNoDataText(); Style style = getReport().getWhenNoDataStyle(); if (whenNoDataText == null || "".equals(whenNoDataText)) return; JRDesignBand band = new JRDesignBand(); getDesign().setNoData(band); JRDesignTextField text = new JRDesignTextField(); JRDesignExpression expression = ExpressionUtils.createStringExpression("\"" + whenNoDataText + "\""); text.setExpression(expression); if (style == null) { style = getReport().getOptions().getDefaultDetailStyle(); } if (getReport().isWhenNoDataShowTitle()) { LayoutUtils.copyBandElements(band, getDesign().getTitle()); LayoutUtils.copyBandElements(band, getDesign().getPageHeader()); } if (getReport().isWhenNoDataShowColumnHeader()) LayoutUtils.copyBandElements(band, getDesign().getColumnHeader()); int offset = LayoutUtils.findVerticalOffset(band); text.setY(offset); applyStyleToElement(style, text); text.setWidth(getReport().getOptions().getPrintableWidth()); text.setHeight(50); band.addElement(text); log.debug("OK setting up WHEN NO DATA band"); }
[ "Creates the graphic element to be shown when the datasource is empty" ]
[ "Convert a date to the String representation we use in the JSON.\n@param d the date to convert\n@return the String representation we use in the JSON.", "Retrieve the correct calendar for a resource.\n\n@param calendarID calendar ID\n@return calendar for resource", "Get image Id from imageTag using DockerBuildInfoHelper client.\n\n@param imageTag\n@param host\n@return", "Disconnects from the serial interface and stops\nsend and receive threads.", "Load the entity activating the persistence context execution boundaries\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", "SuppressWarnings I really want to return HazeltaskTasks instead of Runnable", "Creates a code location URL from a file path\n\n@param filePath the file path\n@return A URL created from File\n@throws InvalidCodeLocation if URL creation fails", "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block", "Use this API to fetch onlinkipv6prefix resource of given name ." ]
public static Comparator getComparator() { return new Comparator() { public int compare(Object o1, Object o2) { FieldDescriptor fmd1 = (FieldDescriptor) o1; FieldDescriptor fmd2 = (FieldDescriptor) o2; if (fmd1.getColNo() < fmd2.getColNo()) { return -1; } else if (fmd1.getColNo() > fmd2.getColNo()) { return 1; } else { return 0; } } }; }
[ "returns a comparator that allows to sort a Vector of FieldMappingDecriptors\naccording to their m_Order entries." ]
[ "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.", "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "used for encoding queries or form data", "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", "Sets the left padding for all cells in the row.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Creates new legal hold policy assignment.\n@param api the API connection to be used by the resource.\n@param policyID ID of policy to create assignment for.\n@param resourceType type of target resource. Can be 'file_version', 'file', 'folder', or 'user'.\n@param resourceID ID of the target resource.\n@return info about created legal hold policy assignment.", "Get the layer ID out of the request URL.\n\n@param request servlet request\n@return layer id", "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "We have obtained a waveform preview for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform preview\n@param preview the waveform preview which we retrieved" ]
public List<BoxTaskAssignment.Info> getAssignments() { URL url = GET_ASSIGNMENTS_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); int totalCount = responseJSON.get("total_count").asInt(); List<BoxTaskAssignment.Info> assignments = new ArrayList<BoxTaskAssignment.Info>(totalCount); JsonArray entries = responseJSON.get("entries").asArray(); for (JsonValue value : entries) { JsonObject assignmentJSON = value.asObject(); BoxTaskAssignment assignment = new BoxTaskAssignment(this.getAPI(), assignmentJSON.get("id").asString()); BoxTaskAssignment.Info info = assignment.new Info(assignmentJSON); assignments.add(info); } return assignments; }
[ "Gets any assignments for this task.\n@return a list of assignments for this task." ]
[ "Determine whether the given element matches this element.\nAn element matches this element when keys are equal, values are equal\nor this element value is a wildcard.\n@param pe the element to check\n@return {@code true} if the element matches", "Returns the integer value o the given belief", "Generate the specified output file by merging the specified\nVelocity template with the supplied context.", "Prepares a statement with parameters that should work with most RDBMS.\n\n@param con the connection to utilize\n@param sql the sql syntax to use when creating the statement.\n@param scrollable determines if the statement will be scrollable.\n@param createPreparedStatement if <code>true</code>, then a\n{@link PreparedStatement} will be created. If <code>false</code>, then\na {@link java.sql.CallableStatement} will be created.\n@param explicitFetchSizeHint will be used as fetchSize hint\n(if applicable) if > 0\n\n@return a statement that can be used to execute the syntax contained in\nthe <code>sql</code> argument.", "Reorder the objects in the table to resolve referential integrity dependencies.", "Replaces the first substring of this CharSequence that matches the given\nregular expression with the given replacement.\n\n@param self a CharSequence\n@param regex the capturing regex\n@param replacement the CharSequence to be substituted for each match\n@return a CharSequence with replaced content\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see String#replaceFirst(String, String)\n@since 1.8.2", "Delete an object.", "Computes an MD4 hash for the password.\n\n@param password the password for which to compute the hash\n@throws NoSuchAlgorithmException\n@throws InvalidKeyException\n\n@return the password hash", "Encrypts data.\n\n@param plainData {@code initVector || payload || zeros:4}\n@return {@code initVector || E(payload) || I(signature)}" ]
private void persistEnabledVersion(long version) throws PersistenceFailureException { File disabledMarker = getDisabledMarkerFile(version); if (disabledMarker.exists()) { if (!disabledMarker.delete()) { throw new PersistenceFailureException("Failed to create the disabled marker at path: " + disabledMarker.getAbsolutePath() + "\nThe store/version " + "will remain enabled only until the next restart."); } } }
[ "Deletes the disabled marker file in the directory of the specified version.\n\n@param version to enable\n@throws PersistenceFailureException if the marker file could not be deleted (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible)." ]
[ "Use this API to expire cachecontentgroup.", "Use this API to fetch sslcertkey_sslvserver_binding resources of given name .", "Use this API to update bridgetable.", "Meant to execute assertions in tests only\n@return a read-only view of the map containing the relations between entities", "Sets up and declares internal data structures.\n\n@param diag Diagonal elements from tridiagonal matrix. Modified.\n@param off Off diagonal elements from tridiagonal matrix. Modified.\n@param numCols number of columns (and rows) in the matrix.", "Convert an ObjectBank to corresponding collection of data features and\nlabels.\n\n@return A List of pairs, one for each document, where the first element is\nan int[][][] representing the data and the second element is an\nint[] representing the labels.", "Re-initializes the shader texture used to fill in\nthe Circle upon drawing.", "Adds the newState and the edge between the currentState and the newState on the SFG.\n\n@param newState the new state.\n@param eventable the clickable causing the new state.\n@return the clone state iff newState is a clone, else returns null", "Check that the parameter array has exactly the right number of elements.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@param actualLength\nThe actual array length\n@param expectedLength\nThe expected array length" ]
public UniqueEntityLoader buildLoader( OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers, BatchableEntityLoaderBuilder innerEntityLoaderBuilder) { if ( batchSize <= 1 ) { // no batching return buildNonBatchingLoader( persister, lockOptions, factory, influencers, innerEntityLoaderBuilder ); } return buildBatchingLoader( persister, batchSize, lockOptions, factory, influencers, innerEntityLoaderBuilder ); }
[ "Builds a batch-fetch capable loader based on the given persister, lock-options, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockOptions The lock options\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader." ]
[ "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", "Read flow id from message.\n\n@param message the message\n@return the FlowId as string", "Returns list of files matches filters in specified directories\n\n@param directories which will using to find files\n@param fileFilter file filter\n@param dirFilter directory filter\n@return list of files matches filters in specified directories", "Use this API to fetch the statistics of all dos_stats resources that are configured on netscaler.", "Log warning for the resource at the provided address and single attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attribute attribute we are warning about", "Emit status line for an aggregated event.", "Returns a list of all the eigenvalues", "Set HTTP client\n\n@param httpClient\nAn instance of OkHttpClient\n@return Api Client", "Copies all node meta data from the other node to this one\n@param other - the other node" ]
private void onClickAdd() { if (m_currentLocation.isPresent()) { CmsFavoriteEntry entry = m_currentLocation.get(); List<CmsFavoriteEntry> entries = getEntries(); entries.add(entry); try { m_favDao.saveFavorites(entries); } catch (Exception e) { CmsErrorDialog.showErrorDialog(e); } m_context.close(); } }
[ "The click handler for the add button." ]
[ "Determine the color to use to draw a cue list entry. Hot cues are green, ordinary memory points are red,\nand loops are orange.\n\n@param entry the entry being drawn\n\n@return the color with which it should be represented.", "Use this API to add dnssuffix.", "Returns the total number of weights associated with this classifier.\n\n@return number of weights", "Utility function to set the current value in a ListBox.\n\n@return returns true if the option corresponding to the value\nwas successfully selected in the ListBox", "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value", "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "Use this API to update ntpserver resources.", "Insert an entity into the datastore.\n\nThe entity must have no ids.\n\n@return The key for the inserted entity.\n@throws DatastoreException on error", "returns true if there are still more rows in the underlying ResultSet.\nReturns false if ResultSet is exhausted." ]
public int executeRefresh(DatabaseConnection databaseConnection, T data, ObjectCache objectCache) throws SQLException { @SuppressWarnings("unchecked") ID id = (ID) idField.extractJavaFieldValue(data); // we don't care about the cache here T result = super.execute(databaseConnection, id, null); if (result == null) { return 0; } // copy each field from the result into the passed in object for (FieldType fieldType : resultsFieldTypes) { if (fieldType != idField) { fieldType.assignField(connectionSource, data, fieldType.extractJavaFieldValue(result), false, objectCache); } } return 1; }
[ "Execute our refresh query statement and then update all of the fields in data with the fields from the result.\n\n@return 1 if we found the object in the table by id or 0 if not." ]
[ "Dump timephased work for an assignment.\n\n@param assignment resource assignment", "Initialize the random generator with a seed.", "Return a String with linefeeds and carriage returns normalized to linefeeds.\n\n@param self a CharSequence object\n@return the normalized toString() for the CharSequence\n@see #normalize(String)\n@since 1.8.2", "Rethrows platform specific OperationCanceledExceptions and unwraps OperationCanceledErrors. Does nothing for any other type of Throwable.", "Use this API to delete ntpserver resources of given names.", "Returns the value of this product under the given model.\n\n@param evaluationTime Evaluation time.\n@param model The model.\n@return Value of this product und the given model.", "Find the scheme to use to connect to the service.\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved scheme of 'http' as a fallback.", "Populate a Command instance with the values parsed from a command line\nIf any parser errors are detected it will throw an exception\n@param processedCommand command line\n@param mode do validation or not\n@throws CommandLineParserException any incorrectness in the parser will abort the populate", "The read timeout for the underlying URLConnection to the twitter stream." ]
private int getReplicaTypeForPartition(int partitionId) { List<Integer> routingPartitionList = routingStrategy.getReplicatingPartitionList(partitionId); // Determine if we should host this partition, and if so, whether we are a primary, // secondary or n-ary replica for it int correctReplicaType = -1; for (int replica = 0; replica < routingPartitionList.size(); replica++) { if(nodePartitionIds.contains(routingPartitionList.get(replica))) { // This means the partitionId currently being iterated on should be hosted // by this node. Let's remember its replica type in order to make sure the // files we have are properly named. correctReplicaType = replica; break; } } return correctReplicaType; }
[ "Given a partition ID, determine which replica of this partition is hosted by the\ncurrent node, if any.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param partitionId for which we want to know the replica type\n@return the requested partition's replica type (which ranges from 0 to replication\nfactor -1) if the partition is hosted on the current node, or -1 if the\nrequested partition is not hosted on this node." ]
[ "Creates a bridge accessory, capable of holding multiple child accessories. This has the\nadvantage over multiple standalone accessories of only requiring a single pairing from iOS for\nthe bridge.\n\n@param authInfo authentication information for this accessory. These values should be persisted\nand re-supplied on re-start of your application.\n@param label label for the bridge. This will show in iOS during pairing.\n@param manufacturer manufacturer of the bridge. This information is exposed to iOS for unknown\npurposes.\n@param model model of the bridge. This is also exposed to iOS for unknown purposes.\n@param serialNumber serial number of the bridge. Also exposed. Purposes also unknown.\n@return the bridge, from which you can {@link HomekitRoot#addAccessory add accessories} and\nthen {@link HomekitRoot#start start} handling requests.\n@throws IOException when mDNS cannot connect to the network", "Set the attributes for this template.\n\n@param attributes the attribute map", "Handles newlines by removing them and add new rows instead", "Processes the template for all reference definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Shortcut for mapping an arbitrary observable to void, using the IO scheduler.\n@param fromObservable the source observable\n@return a void-emitting observable", "Convert an object to a list of maps.\n\n@param mapper the object mapper\n@param source the source object\n@return list", "Find and validate manifest.json file in Artifactory for the current image.\nSince provided imageTag differs between reverse-proxy and proxy-less configuration, try to build the correct manifest path.\n@param server\n@param dependenciesClient\n@param listener\n@return\n@throws IOException", "Add new control at the end of control bar with specified touch listener, control label and resource.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param resId the control face\n@param label the control label\n@param listener touch listener", "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid" ]
public AlbumArt requestArtworkFrom(final DataReference artReference, final CdjStatus.TrackType trackType) { ensureRunning(); AlbumArt artwork = findArtInMemoryCaches(artReference); // First check the in-memory artwork caches. if (artwork == null) { artwork = requestArtworkInternal(artReference, trackType, false); } return artwork; }
[ "Ask the specified player for the specified artwork from the specified media slot, first checking if we have a\ncached copy.\n\n@param artReference uniquely identifies the desired artwork\n@param trackType the kind of track that owns the artwork\n\n@return the artwork, if it was found, or {@code null}\n\n@throws IllegalStateException if the ArtFinder is not running" ]
[ "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "Add component processing time to given map\n@param mapComponentTimes\n@param component", "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", "Draw an elliptical interior with this color.\n\n@param rect rectangle in which ellipse should fit\n@param color colour to use for filling", "Returns the configured page size, or the default page size if it is not configured.\n@return The configured page size, or the default page size if it is not configured.", "As part of checking whether a metadata cache can be auto-mounted for a particular media slot, this method\nlooks up the track at the specified offset within the player's track list, and returns its rekordbox ID.\n\n@param slot the slot being considered for auto-attaching a metadata cache\n@param client the connection to the database server on the player holding that slot\n@param offset an index into the list of all tracks present in the slot\n\n@throws IOException if there is a problem communicating with the player", "Applies the given codec registry to be used alongside the default codec registry.\n\n@param codecRegistry the codec registry to merge in.\n@return an {@link StitchObjectMapper} with the merged codec registries.", "Create a field map for enterprise custom fields.\n\n@param props props data\n@param c target class", "Reads a command \"tag\" from the request." ]
public long[] keys() { long[] values = new long[size]; int idx = 0; for (Entry entry : table) { while (entry != null) { values[idx++] = entry.key; entry = entry.next; } } return values; }
[ "Returns all keys in no particular order." ]
[ "Retrieve a table by name.\n\n@param name table name\n@return Table instance", "This method maps the currency symbol position from the\nrepresentation used in the MPP file to the representation\nused by MPX.\n\n@param value MPP symbol position\n@return MPX symbol position", "Stops the emulator. Multiple calls are allowed.\n\n@throws DatastoreEmulatorException if the emulator cannot be stopped", "Post a build info to the server\n\n@param moduleName String\n@param moduleVersion String\n@param buildInfo Map<String,String>\n@param user String\n@param password String\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Perform construction.\n\n@param callbackHandler", "lookup a ClassDescriptor in the internal Hashtable\n@param strClassName a fully qualified class name as it is returned by Class.getName().", "Set the enum representing the type of this column.\n\n@param tableType type of table to which this column belongs", "Handles Multi Channel Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\nendpoint.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Reads a combined date and time value expressed in tenths of a minute.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value" ]
private void processCustomValueLists() throws IOException { CustomFieldValueReader9 reader = new CustomFieldValueReader9(m_projectDir, m_file.getProjectProperties(), m_projectProps, m_file.getCustomFields()); reader.process(); }
[ "Retrieve any task field value lists defined in the MPP file." ]
[ "Sets the left padding character for all cells in the table.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "Consumer is required to do any privilege checks before getting here\n\n@param request a {@link HttpServletRequest} which may contain forced groups parameters from URL, Header or Cookie.\n@return a map of test names to bucket values specified by the request. Returns an empty {@link Map} if nothing was specified", "Build a String representation of given arguments.", "Transform the operation into something the proxy controller understands.\n\n@param identity the server identity\n@return the transformed operation", "Applies the kubernetes json url to the configuration.\n\n@param map\nThe arquillian configuration.", "Clear the connection that was previously saved.\n\n@return True if the connection argument had been saved.", "Deletes all outgoing links of specified entity.\n\n@param entity the entity.", "Returns the maximum magnitude of the complex numbers\n@param u Array of complex numbers\n@param startU first index to consider in u\n@param length Number of complex numebrs to consider\n@return magnitude", "The connection timeout for making a connection to Twitter." ]
void countNonZeroInR( int[] parent ) { TriangularSolver_DSCC.postorder(parent,n,post,gwork); columnCounts.process(A,parent,post,countsR); nz_in_R = 0; for (int k = 0; k < n; k++) { nz_in_R += countsR[k]; } if( nz_in_R < 0) throw new RuntimeException("Too many elements. Numerical overflow in R counts"); }
[ "Count the number of non-zero elements in R" ]
[ "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value", "This method prints plan information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return plans the IPlan[] with all the information, so the tester can\nlook for information", "This method takes an integer enumeration of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param priority int version of the priority\n@return Priority class instance", "Rethrows OperationCanceledErrors and wraps platform specific OperationCanceledExceptions. Does nothing for any other type of Throwable.", "Gets the metrics as a map whose keys are the metric name and whose values are the metric values.\n\n@return map", "Infer app name from entry class\n\n@param entryClass\nthe entry class\n@return\napp name inferred from the entry class", "Executes a API query action to get a new token.\nThe method only executes the action, without doing any\nchecks first. If errors occur, they are logged and null is returned.\n\n@param tokenType The kind of token to retrieve like \"csrf\" or \"login\"\n@return newly retrieved token or null if no token was retrieved", "Sets the permissions associated with this shared link.\n@param permissions the new permissions for this shared link.", "Use this API to add clusternodegroup." ]
@Override protected void initBuilderSpecific() throws Exception { reset(); FilePath workspace = getModuleRoot(EnvVars.masterEnvVars); FilePath gradlePropertiesPath = new FilePath(workspace, "gradle.properties"); if (releaseProps == null) { releaseProps = PropertyUtils.getModulesPropertiesFromPropFile(gradlePropertiesPath, getReleaseProperties()); } if (nextIntegProps == null) { nextIntegProps = PropertyUtils.getModulesPropertiesFromPropFile(gradlePropertiesPath, getNextIntegProperties()); } }
[ "Initialize the version properties map from the gradle.properties file, and the additional properties from the\ngradle.properties file." ]
[ "Retrieve multiple properties.\n\n@param method method definition\n@param object target object\n@param map parameter values", "Function to perform backward pooling", "Stop offering shared dbserver sessions.", "Create a new collaboration object.\n@param api the API connection used to make the request.\n@param accessibleBy the JSON object describing who should be collaborated.\n@param item the JSON object describing which item to collaborate.\n@param role the role to give the collaborators.\n@param notify the user/group should receive email notification of the collaboration or not.\n@param canViewPath the view path collaboration feature is enabled or not.\n@return info about the new collaboration.", "Send a DEBUG log message with specified subsystem. If subsystem is not enabled the message\nwill not be logged\n@param subsystem logging subsystem\n@param tag Used to identify the source of a log message. It usually identifies the class or\nactivity where the log call occurs.\n@param pattern The message pattern\n@return", "This is private. It is a helper function for the utils.", "Adds a file to your assembly but automatically genarates the name of the file.\n\n@param inputStream {@link InputStream} the file to be uploaded.", "Use this API to clear route6.", "Convert a method name into a property name.\n\n@param method target method\n@return property name" ]
private void processClassMethods(XMLStreamWriter writer, Class<?> aClass, Set<Method> methodSet) throws XMLStreamException { Method[] methods = aClass.getDeclaredMethods(); for (Method method : methods) { if (!methodSet.contains(method) && Modifier.isPublic(method.getModifiers()) && !Modifier.isInterface(method.getModifiers())) { if (Modifier.isStatic(method.getModifiers())) { // TODO Handle static methods here } else { String name = method.getName(); String methodSignature = createMethodSignature(method); String fullJavaName = aClass.getCanonicalName() + "." + name + methodSignature; if (!ignoreMethod(fullJavaName)) { // // Hide the original method // writer.writeStartElement("method"); writer.writeAttribute("name", name); writer.writeAttribute("sig", methodSignature); writer.writeStartElement("attribute"); writer.writeAttribute("type", "System.ComponentModel.EditorBrowsableAttribute"); writer.writeAttribute("sig", "(Lcli.System.ComponentModel.EditorBrowsableState;)V"); writer.writeStartElement("parameter"); writer.writeCharacters("Never"); writer.writeEndElement(); writer.writeEndElement(); writer.writeEndElement(); // // Create a wrapper method // name = name.toUpperCase().charAt(0) + name.substring(1); writer.writeStartElement("method"); writer.writeAttribute("name", name); writer.writeAttribute("sig", methodSignature); writer.writeAttribute("modifiers", "public"); writer.writeStartElement("body"); for (int index = 0; index <= method.getParameterTypes().length; index++) { if (index < 4) { writer.writeEmptyElement("ldarg_" + index); } else { writer.writeStartElement("ldarg_s"); writer.writeAttribute("argNum", Integer.toString(index)); writer.writeEndElement(); } } writer.writeStartElement("callvirt"); writer.writeAttribute("class", aClass.getName()); writer.writeAttribute("name", method.getName()); writer.writeAttribute("sig", methodSignature); writer.writeEndElement(); if (!method.getReturnType().getName().equals("void")) { writer.writeEmptyElement("ldnull"); writer.writeEmptyElement("pop"); } writer.writeEmptyElement("ret"); writer.writeEndElement(); writer.writeEndElement(); /* * The private method approach doesn't work... so * 3. Add EditorBrowsableAttribute (Never) to original methods * 4. Generate C Sharp and VB variants of the DLL to avid case-sensitivity issues * 5. Implement static method support? <attribute type="System.ComponentModel.EditorBrowsableAttribute" sig="(Lcli.System.ComponentModel.EditorBrowsableState;)V"> 914 <parameter>Never</parameter> 915 </attribute> */ m_responseList.add(fullJavaName); } } } } }
[ "Hides the original Java-style method name using an attribute\nwhich should be respected by Visual Studio, the creates a new\nwrapper method using a .Net style method name.\n\nNote that this does not work for VB as it is case insensitive. Even\nthough Visual Studio won't show you the Java-style method name,\nthe VB compiler sees both and thinks they are the same... which\ncauses it to fail.\n\n@param writer output stream\n@param aClass class being processed\n@param methodSet set of methods which have been processed.\n@throws XMLStreamException" ]
[ "Adds a path to the request response table with the specified values\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param pathId ID of path\n@throws Exception exception", "Use this API to update Interface.", "Decode a code from the stream s using huffman table h. Return the symbol or\na negative value if there is an error. If all of the lengths are zero, i.e.\nan empty code, or if the code is incomplete and an invalid code is received,\nthen -9 is returned after reading MAXBITS bits.\n\nFormat notes:\n\n- The codes as stored in the compressed data are bit-reversed relative to\na simple integer ordering of codes of the same lengths. Hence below the\nbits are pulled from the compressed data one at a time and used to\nbuild the code value reversed from what is in the stream in order to\npermit simple integer comparisons for decoding.\n\n- The first code for the shortest length is all ones. Subsequent codes of\nthe same length are simply integer decrements of the previous code. When\nmoving up a length, a one bit is appended to the code. For a complete\ncode, the last code of the longest length will be all zeros. To support\nthis ordering, the bits pulled during decoding are inverted to apply the\nmore \"natural\" ordering starting with all zeros and incrementing.\n\n@param h Huffman table\n@return status code", "Write to a context. Uses NullWritable for key so that only value of output string is ultimately written\n\n@param cr the DataPipe to write to", "Parses a PDF document and serializes the resulting DOM tree to an output. This requires\na DOM Level 3 capable implementation to be available.", "If the status of a print job is not checked for a while, we assume that the user is no longer\ninterested in the report, and we cancel the job.\n\n@param printJob\n@return is the abandoned timeout exceeded?", "Get a property as a array or throw exception.\n\n@param key the property name", "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.", "Reports that a node is resolved hence other nodes depends on it can consume it.\n\n@param completed the node ready to be consumed" ]
public static base_responses delete(nitro_service client, String Dnssuffix[]) throws Exception { base_responses result = null; if (Dnssuffix != null && Dnssuffix.length > 0) { dnssuffix deleteresources[] = new dnssuffix[Dnssuffix.length]; for (int i=0;i<Dnssuffix.length;i++){ deleteresources[i] = new dnssuffix(); deleteresources[i].Dnssuffix = Dnssuffix[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete dnssuffix resources of given names." ]
[ "use the design parameters to compute the constraint equation to get the value", "Sets the HTTP poller processor to handle Async API.\nWill auto enable the pollable mode with this call\n\n@param httpPollerProcessor\nthe http poller processor\n@return the parallel task builder", "Use this API to clear nssimpleacl.", "Sets the maximum time to wait before a call to getConnection is timed out.\n\nSetting this to zero is similar to setting it to Long.MAX_VALUE\n\n@param connectionTimeout\n@param timeUnit the unit of the connectionTimeout argument", "Checks the status of one or more asynchronous photo upload tickets. This method does not require authentication.\n\n@param tickets\na set of ticket ids (Strings) or {@link Ticket} objects containing ids\n@return a list of {@link Ticket} objects.\n@throws FlickrException", "RReturns the entity type of the id like \"item\" or \"property\"\n\n@param id\nthe identifier of the entity, such as \"Q42\"\n@throws IllegalArgumentException\nif the id is invalid", "Gets a single byte return or -1 if no data is available.", "Add a clause where the ID is from an existing object.", "get the key name to use in log from the logging keys map" ]
public static List<Integer> toIntegerList(List<String> strList, boolean failOnException){ List<Integer> intList = new ArrayList<Integer>(); for(String str : strList){ try{ intList.add(Integer.parseInt(str)); } catch(NumberFormatException nfe){ if(failOnException){ return null; } else{ intList.add(null); } } } return intList; }
[ "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed as Integer or null if failOnException" ]
[ "Parses a String email address to an IMAP address string.", "Use this API to unset the properties of systemcollectionparam resource.\nProperties that need to be unset are specified in args array.", "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>", "Creates a new Box Developer Edition connection with enterprise token leveraging BoxConfig.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection.", "Use this API to fetch aaagroup_vpnsessionpolicy_binding resources of given name .", "Release a connection by placing the connection back in the pool.\n@param connectionHandle Connection being released.\n@throws SQLException", "The grammar elements that may occur at the given offset.", "Pool configuration.\n@param props\n@throws HibernateException", "If needed, destroy the remaining conversation contexts after an HTTP session was invalidated within the current request.\n\n@param request" ]
public static final String printAccrueType(AccrueType value) { return (Integer.toString(value == null ? AccrueType.PRORATED.getValue() : value.getValue())); }
[ "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value" ]
[ "Convert a list of objects to a JSON array with the string representations of that objects.\n@param list the list of objects.\n@return the JSON array with the string representations.", "Generate heroku-like random names\n\n@return String", "This method returns the value of the product using a Black-Scholes model for the swap rate with the Hunt-Kennedy convexity adjustment.\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve from which the swap rate is calculated. The discount curve, associated with this forward curve is used for discounting this option.\n@param swaprateVolatility The volatility of the log-swaprate.\n@return Value of this product", "Retrieve row from a nested table.\n\n@param name column name\n@return nested table rows", "Gets the message payload.\n\n@param message the message\n@return the payload", "A find query only given as criterion. Leave it to MongoDB's own parser to handle it.\n\n@return the {@link Rule} to identify a find query only", "Use this API to fetch all the sslciphersuite resources that are configured on netscaler.", "Expects a height mat as input\n\n@param input - A grayscale height map\n@return edges", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}" ]
private String validateDuration() { if (!isValidEndTypeForPattern()) { return Messages.ERR_SERIALDATE_INVALID_END_TYPE_FOR_PATTERN_0; } switch (getEndType()) { case DATE: return (getStart().getTime() < (getSeriesEndDate().getTime() + DAY_IN_MILLIS)) ? null : Messages.ERR_SERIALDATE_SERIES_END_BEFORE_START_0; case TIMES: return getOccurrences() > 0 ? null : Messages.ERR_SERIALDATE_INVALID_OCCURRENCES_0; default: return null; } }
[ "Checks if the provided duration information is valid.\n@return <code>null</code> if the information is valid, the key of the suitable error message otherwise." ]
[ "Helper xml end tag writer\n\n@param value the output stream to use in writing", "Use this API to fetch all the cmpparameter resources that are configured on netscaler.", "Query for an object in the database which matches the id argument.", "This produces a string with no compressed segments and all segments of full length,\nwhich is 4 characters for IPv6 segments and 3 characters for IPv4 segments.", "Allocate a timestamp", "Get the JSON representation of the metadata field filter.\n@return the JSON object representing the filter.", "Returns a single template.\n\n@param id id of the template to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Set the color for the statusBar\n\n@param statusBarColor", "Gets information for a Box Storage Policy with optional fields.\n\n@param fields the fields to retrieve.\n@return info about this item containing only the specified fields, including storage policy." ]
public LayoutScroller.ScrollableList getPageScrollable() { return new LayoutScroller.ScrollableList() { @Override public int getScrollingItemsCount() { return MultiPageWidget.super.getScrollingItemsCount(); } @Override public float getViewPortWidth() { return MultiPageWidget.super.getViewPortWidth(); } @Override public float getViewPortHeight() { return MultiPageWidget.super.getViewPortHeight(); } @Override public float getViewPortDepth() { return MultiPageWidget.super.getViewPortDepth(); } @Override public boolean scrollToPosition(int pos, final LayoutScroller.OnScrollListener listener) { return MultiPageWidget.super.scrollToPosition(pos, listener); } @Override public boolean scrollByOffset(float xOffset, float yOffset, float zOffset, final LayoutScroller.OnScrollListener listener) { return MultiPageWidget.super.scrollByOffset(xOffset, yOffset, zOffset, listener); } @Override public void registerDataSetObserver(DataSetObserver observer) { MultiPageWidget.super.registerDataSetObserver(observer); } @Override public void unregisterDataSetObserver(DataSetObserver observer) { MultiPageWidget.super.unregisterDataSetObserver(observer); } @Override public int getCurrentPosition() { return MultiPageWidget.super.getCurrentPosition(); } }; }
[ "Provides the scrollableList implementation for page scrolling\n@return {@link LayoutScroller.ScrollableList} implementation, passed to {@link LayoutScroller}\nfor the processing the scrolling" ]
[ "This method extracts data for a normal working day from an MSPDI file.\n\n@param calendar Calendar data\n@param weekDay Day data", "Removes a value from the list.\n\n@param list the list\n@param value value to remove", "Prepares a representation of the model that is easier accessible for our purposes.\n\n@param model The original model\n@return The model representation", "Painter the tile, by building a URL where the image can be found.\n\n@param tile\nMust be an instance of {@link InternalTile}, and must have a non-null {@link RasterUrlBuilder}.\n@return Returns a {@link InternalTile}.", "Finds binding for a type in the given injector and, if not found,\nrecurses to its parent\n\n@param injector\nthe current Injector\n@param type\nthe Class representing the type\n@return A boolean flag, <code>true</code> if binding found", "Process the given key and value. First validate the value and check if there's no different value for the same key in the same source - invalid and\ndifferent values are treated as a deployment problem.\n\n@param properties\n@param key\n@param value", "Add a calendar day node.\n\n@param parentNode parent node\n@param calendar ProjectCalendar instance\n@param day calendar day", "Returns a presentable version of the given PTB-tokenized text.\nPTB tokenization splits up punctuation and does various other things\nthat makes simply joining the tokens with spaces look bad. So join\nthe tokens with space and run it through this method to produce nice\nlooking text. It's not perfect, but it works pretty well.\n\n@param ptbText A String in PTB3-escaped form\n@return An approximation to the original String", "Tests if this enumeration contains more elements.\n@return <code>true</code> if and only if this enumeration object\ncontains at least one more element to provide;\n<code>false</code> otherwise." ]
public static <T extends InterconnectObject> T fromJson(String data, Class<T> clazz) throws IOException { return InterconnectMapper.mapper.readValue(data, clazz); }
[ "Creates an object from the given JSON data.\n\n@param data the JSON data\n@param clazz the class object for the content of the JSON data\n@param <T> the type of the class object extending {@link InterconnectObject}\n@return the object contained in the given JSON data\n@throws JsonParseException if a the JSON data could not be parsed\n@throws JsonMappingException if the mapping of the JSON data to the IVO failed\n@throws IOException if an I/O related problem occurred" ]
[ "Select the specific vertex and fragment shader to use with this material.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the material properties only.\nIt will ignore the mesh attributes and all lights.\n\n@param context\nGVRContext\n@param material\nmaterial to use with the shader\n@return ID of vertex/fragment shader set", "Remove duplicate Strings from the given array. Also sorts the array, as\nit uses a TreeSet.\n\n@param array the String array\n@return an array without duplicates, in natural sort order", "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.", "Output method responsible for sending the updated content to the Subscribers.\n\n@param cn", "Backup the current version of the configuration to the versioned configuration history", "Utility function to set the current value in a ListBox.\n\n@return returns true if the option corresponding to the value\nwas successfully selected in the ListBox", "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.", "Prepare a parallel HTTP HEAD Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "xml -> object\n\n@param message\n@param childClass\n@return" ]
private void checkForUnknownVariables(TokenList tokens) { TokenList.Token t = tokens.getFirst(); while( t != null ) { if( t.getType() == Type.WORD ) throw new ParseError("Unknown variable on right side. "+t.getWord()); t = t.next; } }
[ "Examines the list of variables for any unknown variables and throws an exception if one is found" ]
[ "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error", "Print an extended attribute date value.\n\n@param value date value\n@return string representation", "Returns the overtime cost of this resource assignment.\n\n@return cost", "Obtains a Julian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return", "Extract data for a single calendar.\n\n@param row calendar data", "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "Map message info.\n\n@param messageInfoType the message info type\n@return the message info", "Lookup an object via its name.\n@param name The name of an object.\n@return The object with that name.\n@exception ObjectNameNotFoundException There is no object with the specified name.\nObjectNameNotFoundException" ]
protected Element createPageElement() { String pstyle = ""; PDRectangle layout = getCurrentMediaBox(); if (layout != null) { /*System.out.println("x1 " + layout.getLowerLeftX()); System.out.println("y1 " + layout.getLowerLeftY()); System.out.println("x2 " + layout.getUpperRightX()); System.out.println("y2 " + layout.getUpperRightY()); System.out.println("rot " + pdpage.findRotation());*/ float w = layout.getWidth(); float h = layout.getHeight(); final int rot = pdpage.getRotation(); if (rot == 90 || rot == 270) { float x = w; w = h; h = x; } pstyle = "width:" + w + UNIT + ";" + "height:" + h + UNIT + ";"; pstyle += "overflow:hidden;"; } else log.warn("No media box found"); Element el = doc.createElement("div"); el.setAttribute("id", "page_" + (pagecnt++)); el.setAttribute("class", "page"); el.setAttribute("style", pstyle); return el; }
[ "Creates an element that represents a single page.\n@return the resulting DOM element" ]
[ "Calculates the bar width and bar margin based on the _DataSize and settings and starts the boundary\ncalculation in child classes.\n@param _DataSize Amount of data sets", "Adds a clause that checks whether ANY set bits in a bitmask are present\nin a numeric expression.\n\n@param expr\nSQL numeric expression to check.\n@param bits\nInteger containing the bits for which to check.", "Propagates node table of given DAG to all of it ancestors.", "Use this API to delete appfwjsoncontenttype resources of given names.", "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.", "A static method that provides an easy way to create a list of a\ncertain parametric type.\nThis static constructor works better with generics.\n\n@param list The list to pad\n@param padding The padding element (may be null)\n@return The padded list", "Finish the oauth flow after the user was redirected back.\n\n@param code\nCode returned by the Eve Online SSO\n@param state\nThis should be some secret to prevent XRSF see\ngetAuthorizationUri\n@throws net.troja.eve.esi.ApiException", "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code null}", "Converts SMatrixTriplet_64 into a SMatrixCC_64.\n\n@param src Original matrix which is to be copied. Not modified.\n@param dst Destination. Will be a copy. Modified.\n@param hist Workspace. Should be at least as long as the number of columns. Can be null." ]
public void checkConnection() { long start = Time.currentTimeMillis(); while (clientChannel == null) { tcpSocketConsumer.checkNotShutdown(); if (start + timeoutMs > Time.currentTimeMillis()) try { condition.await(1, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { throw new IORuntimeException("Interrupted"); } else throw new IORuntimeException("Not connected to " + socketAddressSupplier); } if (clientChannel == null) throw new IORuntimeException("Not connected to " + socketAddressSupplier); }
[ "blocks until there is a connection" ]
[ "Verify that the given channels are all valid.\n\n@param channels\nthe given channels", "returns array with length 3 and optional entries version, encoding, standalone", "get the jdbcTypes from the Query or the ResultSet if not available from the Query\n@throws SQLException", "Whether the rows of the given association should be stored in a hash using the single row key column as key or\nnot.", "Get the available sizes of a Photo.\n\nThe boolean toggle allows to (api-)sign the call.\n\nThis way the calling user can retrieve sizes for <b>his own</b> private photos.\n\n@param photoId\nThe photo ID\n@param sign\ntoggle to allow optionally signing the call (Authenticate)\n@return A collection of {@link Size}\n@throws FlickrException", "Utility function to validate if the given store name exists in the store\nname list managed by MetadataStore. This is used by the Admin service for\nvalidation before serving a get-metadata request.\n\n@param name Name of the store to validate\n@return True if the store name exists in the 'storeNames' list. False\notherwise.", "Simple context menu handler for multi-select tables.\n\n@param table the table\n@param menu the table's context menu\n@param event the click event\n@param entries the context menu entries", "Calculate start dates for a monthly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Returns any events for the given resource ID since the last sync token\n\n@param resource Globally unique identifier for the resource.\n@param sync Sync token provided by a previous call to the events API\n@return Request object" ]
public void forAllValuePairs(String template, Properties attributes) throws XDocletException { String name = attributes.getProperty(ATTRIBUTE_NAME, "attributes"); String defaultValue = attributes.getProperty(ATTRIBUTE_DEFAULT_RIGHT, ""); String attributePairs = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), name); if ((attributePairs == null) || (attributePairs.length() == 0)) { return; } String token; int pos; for (CommaListIterator it = new CommaListIterator(attributePairs); it.hasNext();) { token = it.getNext(); pos = token.indexOf('='); if (pos >= 0) { _curPairLeft = token.substring(0, pos); _curPairRight = (pos < token.length() - 1 ? token.substring(pos + 1) : defaultValue); } else { _curPairLeft = token; _curPairRight = defaultValue; } if (_curPairLeft.length() > 0) { generate(template); } } _curPairLeft = null; _curPairRight = null; }
[ "Processes the template for the comma-separated value pairs in an attribute of the current object on the specified level.\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=\"true\" description=\"The name of the attribute containg attributes (defaults to 'attributes')\"\[email protected] name=\"default-right\" optional=\"true\" description=\"The default right value if none is given (defaults to empty value)\"" ]
[ "Specialized version of readValue just for reading map keys, because the StdDeserializer methods like\n_parseIntPrimitive blow up when the current JsonToken is FIELD_NAME", "Returns the zero rates for a given vector maturities.\n\n@param maturities The given maturities.\n@return The zero rates.", "Commits the writes to the remote collection.", "Sends the error to responder.", "dst is just for log information", "Returns the compact project status update records for all updates on the project.\n\n@param project The project to find status updates for.\n@return Request object", "Get an extent aware Iterator based on the ReportQuery\n\n@param query\n@param cld\n@return OJBIterator", "Creates a unique name, suitable for use with Resque.\n\n@return a unique name for this worker", "Write a boolean field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public static final Date getTime(byte[] data, int offset) { int time = getShort(data, offset) / 10; Calendar cal = DateHelper.popCalendar(EPOCH_DATE); cal.set(Calendar.HOUR_OF_DAY, (time / 60)); cal.set(Calendar.MINUTE, (time % 60)); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); DateHelper.pushCalendar(cal); return (cal.getTime()); }
[ "Reads a time value. The time is represented as tenths of a\nminute since midnight.\n\n@param data byte array of data\n@param offset location of data as offset into the array\n@return time value" ]
[ "Adds the basic sentence.\n\n@param s the s\n@throws ParseException the parse exception", "Closes the transactor node by removing its node in Zookeeper", "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"delimiter\" description=\"delimiter for the StringTokenizer. consult javadoc for\njava.util.StringTokenizer default is ','\"\[email protected] name=\"skip\" description=\"how many tokens to skip on start\"", "Writes an untagged OK response, with the supplied response code,\nand an optional message.\n\n@param responseCode The response code, included in [].\n@param message The message to follow the []", "Returns the target locales.\n\n@return the target locales, never null.", "Convert the server side feature to a DTO feature that can be sent to the client.\n\n@param feature\nThe server-side feature representation.\n@param featureIncludes\nIndicate which aspects of the should be included see {@link VectorLayerService}\n@return Returns the DTO feature.", "Perform the module promotion\n\n@param moduleId String", "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", "Random string from string array\n\n@param s Array\n@return String" ]
public void setTileUrls(List<String> tileUrls) { this.tileUrls = tileUrls; if (null != urlStrategy) { urlStrategy.setUrls(tileUrls); } }
[ "Set possible tile URLs.\n\n@param tileUrls tile URLs" ]
[ "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Use this API to diff nsconfig.", "Append the WHERE part of the statement to the StringBuilder.", "Sets the top and bottom frame margin.\n@param frameTop margin\n@param frameBottom margin\n@return this to allow chaining", "Used to apply or update the watermark for the item.\n@param itemUrl url template for the item.\n@param imprint the value must be \"default\", as custom watermarks is not yet supported.\n@return the watermark associated with the item.", "Tests whether a Row name occurs more than once in the list of rows\n@param name\n@return", "Upgrades a read transaction to a write transaction, executes the work then downgrades to a read transaction\nagain.\n\n@since 2.4\n@noreference", "Create a Build retention object out of the build\n\n@param build The build to create the build retention out of\n@param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded.\n@return a new Build retention", "Calculate entropy value.\n@param values Values.\n@return Returns entropy value of the specified histogram array." ]
protected void addAllowedValuesToDescription(ModelNode result, ParameterValidator validator) { if (allowedValues != null) { for (ModelNode allowedValue : allowedValues) { result.get(ModelDescriptionConstants.ALLOWED).add(allowedValue); } } else if (validator instanceof AllowedValuesValidator) { AllowedValuesValidator avv = (AllowedValuesValidator) validator; List<ModelNode> allowed = avv.getAllowedValues(); if (allowed != null) { for (ModelNode ok : allowed) { result.get(ModelDescriptionConstants.ALLOWED).add(ok); } } } }
[ "Adds the allowed values. Override for attributes who should not use the allowed values.\n\n@param result the node to add the allowed values to\n@param validator the validator to get the allowed values from" ]
[ "Get a View that displays the data at the specified\nposition in the data set. In this case, if we are at\nthe end of the list and we are still in append mode, we\nask for a pending view and return it, plus kick off the\nbackground task to append more data to the wrapped\nadapter.\n\n@param position Position of the item whose data we want\n@param convertView View to recycle, if not null\n@param parent ViewGroup containing the returned View", "Use this API to update clusternodegroup resources.", "Add a list of enums to the options map\n@param key The key for the options map (ex: \"include[]\")\n@param list A list of enums", "Default settings set type loader to ClasspathTypeLoader if not set before.", "Pre API 11, this does an alpha animation.\n\n@param progress", "Recursively construct a LblTree from DOM tree\n\n@param walker tree walker for DOM tree traversal\n@return tree represented by DOM tree", "Checks to see if the two matrices have the same shape and same pattern of non-zero elements\n\n@param a Matrix\n@param b Matrix\n@return true if the structure is the same", "Get object by identity. First lookup among objects registered in the\ntransaction, then in persistent storage.\n@param id The identity\n@return The object\n@throws PersistenceBrokerException", "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." ]
public static <T> ManagedBean<T> of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager) { return new ManagedBean<T>(attributes, clazz, createId(attributes, clazz), beanManager); }
[ "Creates a simple, annotation defined Web Bean\n\n@param <T> The type\n@param clazz The class\n@param beanManager the current manager\n@return A Web Bean" ]
[ "Inserts a String 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 String, or null\n@return this bundler instance to chain method calls", "Connects to the comm port and starts send and receive threads.\n@param serialPortName the port name to open\n@throws SerialInterfaceException when a connection error occurs.", "This could be a self-extracting archive. If we understand the format, expand\nit and check the content for files we can read.\n\n@param stream schedule data\n@return ProjectFile instance", "convert Date to XMLGregorianCalendar.\n\n@param date the date\n@return the xML gregorian calendar", "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException", "Locate the no arg constructor for the class.", "Find the path to the first association in the property path.\n\n@param targetTypeName the entity with the property\n@param pathWithoutAlias the path to the property WITHOUT the alias\n@return the path to the first association or {@code null} if there isn't an association in the property path", "Populates data in this Options from the character stream.\n@param in The Reader\n@throws IOException If there is a problem reading data", "Returns this applications' context path.\n@return context path." ]
public static String getTokenText(INode node) { if (node instanceof ILeafNode) return ((ILeafNode) node).getText(); else { StringBuilder builder = new StringBuilder(Math.max(node.getTotalLength(), 1)); boolean hiddenSeen = false; for (ILeafNode leaf : node.getLeafNodes()) { if (!leaf.isHidden()) { if (hiddenSeen && builder.length() > 0) builder.append(' '); builder.append(leaf.getText()); hiddenSeen = false; } else { hiddenSeen = true; } } return builder.toString(); } }
[ "This method converts a node to text.\n\nLeading and trailing text from hidden tokens (whitespace/comments) is removed. Text from hidden tokens that is\nsurrounded by text from non-hidden tokens is summarized to a single whitespace.\n\nThe preferred use case of this method is to convert the {@link ICompositeNode} that has been created for a data\ntype rule to text.\n\nThis is also the recommended way to convert a node to text if you want to invoke\n{@link org.eclipse.xtext.conversion.IValueConverterService#toValue(String, String, INode)}" ]
[ "Start the socket server and waiting for finished\n\n@throws InterruptedException thread interrupted", "Emit status line for an aggregated event.", "Check if the provided date or any date after it are part of the series.\n@param nextDate the current date to check.\n@param previousOccurrences the number of events of the series that took place before the date to check.\n@return <code>true</code> if more dates (including the provided one) could be in the series, <code>false</code> otherwise.", "Delete an index with the specified name and type in the given design document.\n\n@param indexName name of the index\n@param designDocId ID of the design doc (the _design prefix will be added if not present)\n@param type type of the index, valid values or \"text\" or \"json\"", "Updates the statements of the item document identified by the given item\nid. The updates are computed with respect to the current data found\nonline, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged.\n\n@param itemIdValue\nid of the document to be updated\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are IO problems, such as missing network connection", "this method is not intended to be called by clients\n@since 2.12", "Creates a field map for tasks.\n\n@param props props data", "Enable a custom response\n\n@param custom custom response\n@param path_id path ID of the response\n@param client_uuid client UUID\n@throws Exception exception", "Use this API to export appfwlearningdata." ]
public void afterMaterialization(IndirectionHandler handler, Object materializedObject) { try { Identity oid = handler.getIdentity(); if (log.isDebugEnabled()) log.debug("deferred registration: " + oid); if(!isOpen()) { log.error("Proxy object materialization outside of a running tx, obj=" + oid); try{throw new Exception("Proxy object materialization outside of a running tx, obj=" + oid);}catch(Exception e) { e.printStackTrace(); } } ClassDescriptor cld = getBroker().getClassDescriptor(materializedObject.getClass()); RuntimeObject rt = new RuntimeObject(materializedObject, oid, cld, false, false); lockAndRegister(rt, Transaction.READ, isImplicitLocking(), getRegistrationList()); } catch (Throwable t) { log.error("Register materialized object with this tx failed", t); throw new LockNotGrantedException(t.getMessage()); } unregisterFromIndirectionHandler(handler); }
[ "this callback is invoked after an Object is materialized\nwithin an IndirectionHandler.\nthis callback allows to defer registration of objects until\nit's really neccessary.\n@param handler the invoking handler\n@param materializedObject the materialized Object" ]
[ "The sniffing Loggers are some special Loggers, whose level will be set to TRACE forcedly.\n@param logger", "Finish the oauth flow after the user was redirected back.\n\n@param code\nCode returned by the Eve Online SSO\n@param state\nThis should be some secret to prevent XRSF see\ngetAuthorizationUri\n@throws net.troja.eve.esi.ApiException", "Creates an attachment from a given array of bytes.\nThe bytes will be Base64 encoded.\n@throws java.lang.IllegalArgumentException if mediaType is not binary", "Adds a user defined field value to a task.\n\n@param fieldType field type\n@param container FieldContainer instance\n@param row UDF data", "Return the list of module that uses the targeted artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbModule>", "Sets the set of property filters based on the given string.\n\n@param filters\ncomma-separates list of property ids, or \"-\" to filter all\nstatements", "Retrieves the timephased breakdown of cost.\n\n@return timephased cost", "Common method for creating styles.\n\n@param template the template that the map is part of\n@param styleRef the style ref identifying the style\n@param <T> the source type", "Set the property on the given object to the new value.\n\n@param object on which to set the property\n@param newValue the new value of the property\n@throws RuntimeException if the property could not be set" ]
public static RgbaColor fromRgba(String rgba) { if (rgba.length() == 0) return getDefaultColor(); String[] parts = getRgbaParts(rgba).split(","); if (parts.length == 4) { return new RgbaColor(parseInt(parts[0]), parseInt(parts[1]), parseInt(parts[2]), parseFloat(parts[3])); } else { return getDefaultColor(); } }
[ "Parses an RgbaColor from an rgba value.\n\n@return the parsed color" ]
[ "Returns the secret key matching the specified identifier.\n\n@param input the input stream containing the keyring collection\n@param keyId the 4 bytes identifier of the key", "Put the given value to the appropriate id in the stack, using the version\nof the current list node identified by that id.\n\n@param id\n@param element element to set\n@return element that was replaced by the new element\n@throws ObsoleteVersionException when an update fails", "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", "Gets an array of of all registered ConstantMetaClassListener instances.", "Returns list of files matches specified regex in specified directories\n\n@param regex to match file names\n@param directories to find\n@return list of files matches specified regex in specified directories", "Use this API to fetch tunneltrafficpolicy resource of given name .", "Handles the change of a value in the current translation.\n@param propertyId the property id of the column where the value has changed.", "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names", "Fixed length fancy formatting for doubles. If possible decimal notation is used. If all the significant digits\ncan't be shown then it will switch to exponential notation. If not all the space is needed then it will\nbe filled in to ensure it has the specified length.\n\n@param value value being formatted\n@param format default format before exponential\n@param length Maximum number of characters it can take.\n@param significant Number of significant decimal digits to show at a minimum.\n@return formatted string" ]
public static <T> T notNull(T argument, String argumentName) { if (argument == null) { throw new IllegalArgumentException("Argument " + argumentName + " must not be null."); } return argument; }
[ "Checks if the given argument is null and throws an exception with a\nmessage containing the argument name if that it true.\n\n@param argument the argument to check for null\n@param argumentName the name of the argument to check.\nThis is used in the exception message.\n@param <T> the type of the argument\n@return the argument itself\n@throws IllegalArgumentException in case argument is null" ]
[ "converts a java.net.URI to a decoded string", "Change the currentState to the nextState if possible. The next state should already be\npresent in the graph.\n\n@param nextState the next state.\n@return true if currentState is successfully changed.", "See page 385 of Fundamentals of Matrix Computations 2nd", "Provides an object that can build SQL clauses to match this string representation.\n\nThis method can be overridden for other IP address types to match in their own ways.\n\n@param isEntireAddress\n@param translator\n@return", "Finds an entity given its primary key.\n\n@throws RowNotFoundException\nIf no such object was found.\n@throws TooManyRowsException\nIf more that one object was returned for the given ID.", "This method is called to format a rate.\n\n@param value rate value\n@return formatted rate", "Assign to the data object the val corresponding to the fieldType.", "This method extracts calendar data from a Phoenix file.\n\n@param phoenixProject Root node of the Phoenix file", "Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPutVals that were rejected as obsolete" ]
public Object getFieldByAlias(String alias) { return getCachedValue(getParentFile().getCustomFields().getFieldByAlias(FieldTypeClass.TASK, alias)); }
[ "Retrieve the value of a field using its alias.\n\n@param alias field alias\n@return field value" ]
[ "Create the metadata which gets send to the DC when registering.\n\n\n@param hostInfo the local host info\n@param productConfig the product config\n@param ignoredResourceRegistry registry of ignored resources\n@return the host info", "This produces a canonical string.\n\nRFC 5952 describes canonical representations.\nhttp://en.wikipedia.org/wiki/IPv6_address#Recommended_representation_as_text\nhttp://tools.ietf.org/html/rfc5952", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Gets the crouton's layout parameters, constructing a default if necessary.\n\n@return the layout parameters", "Add a management request handler factory to this context.\n\n@param factory the request handler to add", "Return overall per token accuracy", "This one picks up on Dan2 ideas, but seeks to make less distinctions\nmid sequence by sorting for long words, but to maintain extra\ndistinctions for short words, by always recording the class of the\nfirst and last two characters of the word.\nCompared to chris2 on which it is based,\nit uses more Unicode classes, and so collapses things like\npunctuation more, and might work better with real unicode.\n\n@param s The String to find the word shape of\n@param omitIfInBoundary If true, character classes present in the\nfirst or last two (i.e., BOUNDARY_SIZE) letters\nof the word are not also registered\nas classes that appear in the middle of the word.\n@param knownLCWords If non-null and non-empty, tag with a \"k\" suffix words\nthat are in this list when lowercased (representing\nthat the word is \"known\" as a lowercase word).\n@return A word shape for the word.", "Returns the compact task records for all tasks with the given tag.\nTasks can have more than one tag at a time.\n\n@param tag The tag to fetch tasks from.\n@return Request object", "Lift a Java Func0 to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function" ]
private boolean loadCustomErrorPage( CmsObject cms, HttpServletRequest req, HttpServletResponse res, String rootPath) { try { // get the site of the error page resource CmsSite errorSite = OpenCms.getSiteManager().getSiteForRootPath(rootPath); cms.getRequestContext().setSiteRoot(errorSite.getSiteRoot()); String relPath = cms.getRequestContext().removeSiteRoot(rootPath); if (cms.existsResource(relPath)) { cms.getRequestContext().setUri(relPath); OpenCms.getResourceManager().loadResource(cms, cms.readResource(relPath), req, res); return true; } else { return false; } } catch (Throwable e) { // something went wrong log the exception and return false LOG.error(e.getMessage(), e); return false; } }
[ "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded" ]
[ "Gets the attributes provided by the processor.\n\n@return the attributes", "Boot with the given operations, performing full model and capability registry validation.\n\n@param bootOperations the operations. Cannot be {@code null}\n@param rollbackOnRuntimeFailure {@code true} if the boot should fail if operations fail in the runtime stage\n@return {@code true} if boot was successful\n@throws ConfigurationPersistenceException", "Load the windows resize handler with initial view port detection.", "Shows error dialog, manually supplying details instead of getting them from an exception stack trace.\n\n@param message the error message\n@param details the details", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "Create all the links possible between the Declaration and all the ImporterService matching the.\nImporterServiceFilter of the Linker.\n\n@param declarationSRef the ServiceReference<Declaration> of the Declaration", "When the descriptor was added while editing, but the change was not saved, it has to be removed\nwhen the editor is closed.\n@throws CmsException thrown when deleting the descriptor resource fails", "Print a percent complete value.\n\n@param value Double instance\n@return percent complete value", "Returns all the version directories present in the root directory\nspecified\n\n@param rootDir The parent directory\n@param maxId The\n@return An array of version directories" ]
public static base_responses add(nitro_service client, dospolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dospolicy addresources[] = new dospolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dospolicy(); addresources[i].name = resources[i].name; addresources[i].qdepth = resources[i].qdepth; addresources[i].cltdetectrate = resources[i].cltdetectrate; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add dospolicy resources." ]
[ "Build and return the complete URI containing values\nsuch as the document ID, attachment ID, and query syntax.", "Checks if there's exactly one option that exists among all opts.\n\n@param options OptionSet to checked\n@param opts List of options to be checked\n@throws VoldemortException", "Return the par FRA rate for a given curve.\n\n@param model A given model.\n@return The par FRA rate.", "Returns an MBeanServer with the specified name\n\n@param name\n@return", "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "This method lists any notes attached to tasks.\n\n@param file MPX file", "Register the given callback as to be executed after request completion.\n\n@param name The name of the bean.\n@param callback The callback of the bean to be executed for destruction.", "Checks whether a built of the indices is necessary.\n@param cms The appropriate CmsObject instance.\n@return true, if the spellcheck indices have to be rebuilt, otherwise false", "Determine whether we should use the normal repaint process, or delegate that to another component that is\nhosting us in a soft-loaded manner to save memory.\n\n@param x the left edge of the region that we want to have redrawn\n@param y the top edge of the region that we want to have redrawn\n@param width the width of the region that we want to have redrawn\n@param height the height of the region that we want to have redrawn" ]
public final void notifyContentItemMoved(int fromPosition, int toPosition) { if (fromPosition < 0 || toPosition < 0 || fromPosition >= contentItemCount || toPosition >= contentItemCount) { throw new IndexOutOfBoundsException("The given fromPosition " + fromPosition + " or toPosition " + toPosition + " is not within the position bounds for content items [0 - " + (contentItemCount - 1) + "]."); } notifyItemMoved(fromPosition + headerItemCount, toPosition + headerItemCount); }
[ "Notifies that an existing content item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position." ]
[ "Fetch the latest versions for cluster metadata", "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.", "Authenticates the API connection for Box Developer Edition.", "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance", "Animate de-selection of visible views and clear\nselected set.", "Send JSON representation of given data object to all connections tagged with all give tag labels\n@param data the data object\n@param labels the tag labels", "Method will be executed asynchronously.", "Parse the XML for a collection as returned by getTree call.\n\n@param collectionElement\n@return", "Remove the given pair from a given map for obtaining a new map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\n</p>\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the map to consider.\n@param right the entry (key, value) to remove from the map.\n@return an immutable map with the content of the map and with the given entry.\n@throws IllegalArgumentException - when the right operand key exists in the left operand.\n@since 2.15" ]
private ProjectFile readFile(String inputFile) throws MPXJException { ProjectReader reader = new UniversalProjectReader(); ProjectFile projectFile = reader.read(inputFile); if (projectFile == null) { throw new IllegalArgumentException("Unsupported file type"); } return projectFile; }
[ "Use the universal project reader to open the file.\nThrow an exception if we can't determine the file type.\n\n@param inputFile file name\n@return ProjectFile instance" ]
[ "Creates a temporary folder using the given prefix to generate its name.\n@param prefix the prefix string to be used in generating the directory's name; may be <i>null</i>\n@return the <code>File</code> to the newly created folder\n@throws IOException", "Generates a set of HTML files that contain data about the outcome of\nthe specified test suites.\n@param suites Data about the test runs.\n@param outputDirectoryName The directory in which to create the report.", "Converts the real matrix into a complex matrix.\n\n@param input Real matrix. Not modified.\n@param output Complex matrix. Modified.", "Run a task once, after a delay.\n\n@param task\nTask to run.\n@param delay\nUnit is seconds.\n@return An interface that lets you query the status; cancel; or\nreschedule the event.", "Returns the currently set filters in a map column -> filter.\n\n@return the currently set filters in a map column -> filter.", "Calculates how much of a time range is before or after a\ntarget intersection point.\n\n@param start time range start\n@param end time range end\n@param target target intersection point\n@param after true if time after target required, false for time before\n@return length of time in milliseconds", "Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data", "Log a message at the provided level.", "Use this API to link sslcertkey." ]
public double getAccruedInterest(LocalDate date, AnalyticModel model) { int periodIndex=schedule.getPeriodIndex(date); Period period=schedule.getPeriod(periodIndex); DayCountConvention dcc= schedule.getDaycountconvention(); double accruedInterest=getCouponPayment(periodIndex,model)*(dcc.getDaycountFraction(period.getPeriodStart(), date))/schedule.getPeriodLength(periodIndex); return accruedInterest; }
[ "Returns the accrued interest of the bond for a given date.\n\n@param date The date of interest.\n@param model The model under which the product is valued.\n@return The accrued interest." ]
[ "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", "Closes the JDBC statement and its associated connection.", "Obtains a database connection, retrying if necessary.\n@param connectionHandle\n@return A DB connection.\n@throws SQLException", "Check invariant.\n\n@param browser The browser.\n@return Whether the condition is satisfied or <code>false</code> when it it isn't or a\n{@link CrawljaxException} occurs.", "Creates a resource key defined as a child of key defined by enumeration value.\n@see #key(Enum)\n@see #child(String)\n@param enumValue the enumeration value defining the parent key\n@param key the child id\n@return the resource key", "Renames this file.\n\n@param newName the new name of the file.", "Add the set with given bundles to the \"Export-Package\" main attribute.\n\n@param exportedPackages The set of all packages to add.", "Gets the element at the given index.\n\n@param index the index\n@return the element\n\n@throws IndexOutOfBoundsException if the index is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>)", "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." ]
private void writeResources() { Resources resources = m_factory.createResources(); m_plannerProject.setResources(resources); List<net.sf.mpxj.planner.schema.Resource> resourceList = resources.getResource(); for (Resource mpxjResource : m_projectFile.getResources()) { net.sf.mpxj.planner.schema.Resource plannerResource = m_factory.createResource(); resourceList.add(plannerResource); writeResource(mpxjResource, plannerResource); } }
[ "This method writes resource data to a Planner file." ]
[ "Set the Log4j appender.\n\n@param appender the log4j appender", "Sets the node meta data but allows overwriting values.\n\n@param key - the meta data key\n@param value - the meta data value\n@return the old node meta data value for this key\n@throws GroovyBugError if key is null", "Build a String representation of given arguments.", "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Helper method to split a string by a given character, with empty parts omitted.", "Use this API to fetch dnssuffix resources of given names .", "Export modules and check them in. Assumes the log stream already open.\n@return exit code of the commit-script.", "Use this API to fetch all the cacheselector resources that are configured on netscaler.", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message." ]
public static <S extends Matrix, D extends Matrix> LinearSolver<S,D> safe(LinearSolver<S,D> solver ) { if( solver.modifiesA() || solver.modifiesB() ) { if( solver instanceof LinearSolverDense ) { return new LinearSolverSafe((LinearSolverDense)solver); } else if( solver instanceof LinearSolverSparse ) { return new LinearSolverSparseSafe((LinearSolverSparse)solver); } else { throw new IllegalArgumentException("Unknown solver type"); } } else { return solver; } }
[ "Wraps a linear solver of any type with a safe solver the ensures inputs are not modified" ]
[ "Sets divider padding for axis. If axis does not match the orientation, it has no effect.\n@param padding\n@param axis {@link Axis}", "Retrieves the timephased breakdown of actual cost.\n\n@return timephased actual cost", "Returns an immutable view of a given map.", "Releases a database connection, and cleans up any resources\nassociated with that connection.", "Return whether or not the field value passed in is the default value for the type of the field. Null will return\ntrue.", "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", "Seeks to the given holiday within the given year\n\n@param holidayString\n@param yearString", "Returns the compact project membership records for the project.\n\n@param project The project for which to fetch memberships.\n@return Request object", "Processes the template for all column definitions of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"" ]
protected boolean isSameSnakSet(Iterator<Snak> snaks1, Iterator<Snak> snaks2) { ArrayList<Snak> snakList1 = new ArrayList<>(5); while (snaks1.hasNext()) { snakList1.add(snaks1.next()); } int snakCount2 = 0; while (snaks2.hasNext()) { snakCount2++; Snak snak2 = snaks2.next(); boolean found = false; for (int i = 0; i < snakList1.size(); i++) { if (snak2.equals(snakList1.get(i))) { snakList1.set(i, null); found = true; break; } } if (!found) { return false; } } return snakCount2 == snakList1.size(); }
[ "Compares two sets of snaks, given by iterators. The method is optimised\nfor short lists of snaks, as they are typically found in claims and\nreferences.\n\n@param snaks1\n@param snaks2\n@return true if the lists are equal" ]
[ "Gets the index input list.\n\n@return the index input list", "If the DefaultActionInvocation has been executed before and the Result is\nan instance of ActionChainResult, this method will walk down the chain of\nActionChainResults until it finds a non-chain result, which will be\nreturned. If the DefaultActionInvocation's result has not been executed\nbefore, the Result instance will be created and populated with the result\nparams.\n\n@return a Result instance\n@throws Exception", "Read the version number.\n\n@param is input stream", "Excludes Vertices that are of the provided type.", "2-D Forward Discrete Hartley Transform.\n\n@param data Data.", "Check if a column is part of the row key columns.\n\n@param column the name of the column to check\n@return true if the column is one of the row key columns, false otherwise", "Read a two byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "Returns the value of the identified field as a Long.\n@param fieldName the name of the field\n@return the value of the field as a Long\n@throws FqlException if the field cannot be expressed as an Long", "Default implementation returns unmodified original Query\n\n@see org.apache.ojb.broker.accesslayer.QueryCustomizer#customizeQuery" ]
public static Object setProperty( String key, String value ) { return prp.setProperty( key, value ); }
[ "Add a property." ]
[ "Check if the print has not been asked to stop taking new jobs.\n\n@return true if it's OK to take new jobs.", "Create and return a new Violation for this rule and the specified import\n@param sourceCode - the SourceCode\n@param importNode - the ImportNode for the import triggering the violation\n@return a new Violation object", "static expansion helpers", "Returns first resolver that accepts the given resolverId.\nIn case none is found null is returned.\n@param resolverId identifier of the resolver\n@return found resolver or null otherwise", "Find a column by its name\n\n@param columnName the name of the column\n@return the given Column, or <code>null</code> if not found", "prefetch defined relationships requires JDBC level 2.0, does not work\nwith Arrays", "Generate a map of UUID values to field types.\n\n@return UUID field value map", "Print time unit.\n\n@param value TimeUnit instance\n@return time unit value", "Use this API to fetch statistics of gslbservice_stats resource of given name ." ]
synchronized void transitionFailed(final InternalState state) { final InternalState current = this.internalState; if(state == current) { // Revert transition and mark as failed switch (current) { case PROCESS_ADDING: this.internalState = InternalState.PROCESS_STOPPED; break; case PROCESS_STARTED: internalSetState(getTransitionTask(InternalState.PROCESS_STOPPING), InternalState.PROCESS_STARTED, InternalState.PROCESS_ADDED); break; case PROCESS_STARTING: this.internalState = InternalState.PROCESS_ADDED; break; case SEND_STDIN: case SERVER_STARTING: this.internalState = InternalState.PROCESS_STARTED; break; } this.requiredState = InternalState.FAILED; notifyAll(); } }
[ "Notification that a state transition failed.\n\n@param state the failed transition" ]
[ "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name", "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error", "Override the thread context ClassLoader with the environment's bean ClassLoader\nif necessary, i.e. if the bean ClassLoader is not equivalent to the thread\ncontext ClassLoader already.\n@param classLoaderToUse the actual ClassLoader to use for the thread context\n@return the original thread context ClassLoader, or {@code null} if not overridden", "Sets the value of the setting with the specified key.\n\n@param key name of the setting\n@param value the setting value\n@return this {@code EnvironmentConfig} instance", "Determines the accessor method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Cancels all the pending & running requests and releases all the dispatchers.", "OJB can handle only classes that declare at least one primary key attribute,\nthis method checks this condition.\n\n@param realObject The real object to check\n@throws ClassNotPersistenceCapableException thrown if no primary key is specified for the objects class", "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld", "Return the current handedness of the Gear Controller.\n\n@return returns whether the user is using the controller left or right handed. This function\nreturns <code>null</code> if the controller is unavailable or the data is stale." ]
public void forAllIndexColumns(String template, Properties attributes) throws XDocletException { for (Iterator it = _curIndexDef.getColumns(); it.hasNext(); ) { _curColumnDef = _curTableDef.getColumn((String)it.next()); generate(template); } _curColumnDef = null; }
[ "Processes the template for all columns of the current table index.\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\"" ]
[ "Notifies all listeners that the data is about to be loaded.", "Filter that's either negated or normal as specified.", "Gets the current version of the database schema. This version is taken\nfrom the migration table and represent the latest successful entry.\n\n@return the current schema version", "Helper method to set a value in the internal header list.\n\n@param headers the headers to set the value in\n@param name the name to set\n@param value the value to set", "Returns the URL of the class file where the given class has been loaded from.\n\n@throws IllegalArgumentException\nif failed to determine.\n@since 2.24", "Convenience method dispatches this object to the source appender, which\nwill result in the custom message being appended to the new file.\n\n@param message\nThe custom logging message to be appended.", "Split a module Id to get the module version\n@param moduleId\n@return String", "Parse a string.\n\n@param value string representation\n@return String value", "Retrieves child nodes from a directory entry.\n\n@param parent parent directory entry\n@return list of child nodes" ]
public static RebalanceTaskInfo decodeRebalanceTaskInfoMap(VAdminProto.RebalanceTaskInfoMap rebalanceTaskInfoMap) { RebalanceTaskInfo rebalanceTaskInfo = new RebalanceTaskInfo( rebalanceTaskInfoMap.getStealerId(), rebalanceTaskInfoMap.getDonorId(), decodeStoreToPartitionIds(rebalanceTaskInfoMap.getPerStorePartitionIdsList()), new ClusterMapper().readCluster(new StringReader(rebalanceTaskInfoMap.getInitialCluster()))); return rebalanceTaskInfo; }
[ "Given a protobuf rebalance-partition info, converts it into our\nrebalance-partition info\n\n@param rebalanceTaskInfoMap Proto-buff version of\nRebalanceTaskInfoMap\n@return RebalanceTaskInfo object." ]
[ "Make a string with the shader layout for a uniform block\nwith a given descriptor. The format of the descriptor is\nthe same as for a @{link GVRShaderData} - a string of\ntypes and names of each field.\n<p>\nThis function will return a Vulkan shader layout if the\nVulkan renderer is being used. Otherwise, it returns\nan OpenGL layout.\n@param descriptor string with types and names of each field\n@param blockName name of uniform block\n@param useUBO true to output uniform buffer layout, false for push constants\n@return string with shader declaration", "Use this API to fetch sslcertkey_sslocspresponder_binding resources of given name .", "Checks if the specified bytecode version string represents a JDK 1.5+ compatible\nbytecode version.\n@param bytecodeVersion the bytecode version string (1.4, 1.5, 1.6, 1.7 or 1.8)\n@return true if the bytecode version is JDK 1.5+", "Gets as many of the requested bytes as available from this buffer.\n\n@return number of bytes actually got from this buffer (0 if no bytes are available)", "Read all configuration files.\n@return the list with all available configurations", "Fancy print without a space added to positive numbers", "Stops listening. Safe to call when already stopped. Ignored on devices\nwithout appropriate hardware.", "Returns a BSON version document representing a new version with a new instance ID, and\nversion counter of zero.\n@return a BsonDocument representing a synchronization version", "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
public static List<DockerImage> getImagesByBuildId(int buildInfoId) { List<DockerImage> list = new ArrayList<DockerImage>(); Iterator<DockerImage> it = images.iterator(); while (it.hasNext()) { DockerImage image = it.next(); if (image.getBuildInfoId() == buildInfoId && image.hasManifest()) { list.add(image); } } return list; }
[ "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\n@param buildInfoId\n@return" ]
[ "Mirrors the given bitmap", "Creates an internal project and repositories such as a token storage.", "Reconstructs a number that is represented by more than one byte in a network packet in big-endian order.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "returns an Enumeration of PrimaryKey Objects for objects of class DataClass.\nThe Elements returned come from a SELECT ... WHERE Statement\nthat is defined by the fields and their coresponding values of listFields\nand listValues.\nUseful for EJB Finder Methods...\n@param primaryKeyClass the pk class for the searched objects\n@param query the query", "Use this API to fetch aaauser_intranetip_binding resources of given name .", "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of base calendars", "Sets the yearly absolute date.\n\n@param date yearly absolute date", "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor." ]
@SuppressForbidden("legitimate sysstreams.") private static void redirectStreams(final Serializer serializer, final boolean flushFrequently) { final PrintStream origSysOut = System.out; final PrintStream origSysErr = System.err; // Set warnings stream to System.err. warnings = System.err; AccessController.doPrivileged(new PrivilegedAction<Void>() { @SuppressForbidden("legitimate PrintStream with default charset.") @Override public Void run() { System.setOut(new PrintStream(new BufferedOutputStream(new ChunkedStream() { @Override public void write(byte[] b, int off, int len) throws IOException { if (multiplexStdStreams) { origSysOut.write(b, off, len); } serializer.serialize(new AppendStdOutEvent(b, off, len)); if (flushFrequently) serializer.flush(); } }))); System.setErr(new PrintStream(new BufferedOutputStream(new ChunkedStream() { @Override public void write(byte[] b, int off, int len) throws IOException { if (multiplexStdStreams) { origSysErr.write(b, off, len); } serializer.serialize(new AppendStdErrEvent(b, off, len)); if (flushFrequently) serializer.flush(); } }))); return null; } }); }
[ "Redirect standard streams so that the output can be passed to listeners." ]
[ "Pauses the file upload. This is a blocking function that would try to wait till the assembly file uploads\nhave actually been paused if possible.\n\n@throws LocalOperationException if the method is called while no upload is going on.", "Gets a document from the service.\n\n@param key\nunique key to reference the document\n@return the document or null if no such document", "Updates the gatewayDirection attributes of all gateways.\n@param def", "Checks to see if a WORD matches the name of a macro. if it does it applies the macro at that location", "Loads treebank data from first argument and prints it.\n\n@param args Array of command-line arguments: specifies a filename", "Specify the artifact configuration to be searched for\n@param artifact configured artifact object\n@return", "Calculate delta with another vector\n@param v another vector\n@return delta vector", "Remove a path\n\n@param pathId ID of path", "Reads a markdown link.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link." ]
private void processCustomFieldValues() { byte[] data = m_projectProps.getByteArray(Props.TASK_FIELD_ATTRIBUTES); if (data != null) { int index = 0; int offset = 0; // First the length int length = MPPUtility.getInt(data, offset); offset += 4; // Then the number of custom value lists int numberOfValueLists = MPPUtility.getInt(data, offset); offset += 4; // Then the value lists themselves FieldType field; int valueListOffset = 0; while (index < numberOfValueLists && offset < length) { // Each item consists of the Field ID (4 bytes) and the offset to the value list (4 bytes) // Get the Field field = FieldTypeHelper.getInstance(MPPUtility.getInt(data, offset)); offset += 4; // Get the value list offset valueListOffset = MPPUtility.getInt(data, offset); offset += 4; // Read the value list itself if (valueListOffset < data.length) { int tempOffset = valueListOffset; tempOffset += 8; // Get the data offset int dataOffset = MPPUtility.getInt(data, tempOffset) + valueListOffset; tempOffset += 4; // Get the end of the data offset int endDataOffset = MPPUtility.getInt(data, tempOffset) + valueListOffset; tempOffset += 4; // Get the end of the description int endDescriptionOffset = MPPUtility.getInt(data, tempOffset) + valueListOffset; // Get the values themselves int valuesLength = endDataOffset - dataOffset; byte[] values = new byte[valuesLength]; MPPUtility.getByteArray(data, dataOffset, valuesLength, values, 0); // Get the descriptions int descriptionsLength = endDescriptionOffset - endDataOffset; byte[] descriptions = new byte[descriptionsLength]; MPPUtility.getByteArray(data, endDataOffset, descriptionsLength, descriptions, 0); populateContainer(field, values, descriptions); } index++; } } }
[ "Reads non outline code custom field values and populates container." ]
[ "Returns the bounding box of the vertices.\n@param corners destination array to get corners of bounding box.\nThe first three entries are the minimum X,Y,Z values\nand the next three are the maximum X,Y,Z.\n@return true if bounds are not empty, false if empty (no vertices)", "This method prints goal information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return goals the IGoal[] with all the information, so the tester can\nlook for information", "returns a sorted array of fields", "Queries taking longer than this limit to execute are logged.\n@param queryExecuteTimeLimit the limit to set in milliseconds.\n@param timeUnit", "Determine if the exception is relative based on the recurrence type integer value.\n\n@param value integer value\n@return true if the recurrence is relative", "Copies all node meta data from the other node to this one\n@param other - the other node", "Boyer Moore scan that proceeds backwards from the end of the file looking for ENDSIG\n@throws NonScannableZipException", "Get the features collection from a GeoJson inline string or URL.\n\n@param template the template\n@param features what to parse\n@return the feature collection\n@throws IOException", "Record a prepared operation.\n\n@param identity the server identity\n@param prepared the prepared operation" ]
public MaterializeBuilder withContainer(ViewGroup container, ViewGroup.LayoutParams layoutParams) { this.mContainer = container; this.mContainerLayoutParams = layoutParams; return this; }
[ "set the layout which will host the ScrimInsetsFrameLayout and its layoutParams\n\n@param container\n@param layoutParams\n@return" ]
[ "Retrieve a Synchro Duration from an input stream.\n\n@param is input stream\n@return Duration instance", "Used to set the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param real Real component of assigned value\n@param imaginary Imaginary component of assigned value", "Set HTTP client\n\n@param httpClient\nAn instance of OkHttpClient\n@return Api Client", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression", "Returns a copy of this year-week with the new year and week, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newWeek the week to represent, validated from 1 to 53\n@return the year-week, not null", "This method writes calendar data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump", "Use this API to update nslimitselector resources.", "Returns the error correction codewords for the specified data codewords.\n\n@param codewords the codewords that we need error correction codewords for\n@param ecclen the number of error correction codewords needed\n@return the error correction codewords for the specified data codewords" ]
private static void tryWritePreferenceOnDisk(Preferences preference) throws BackingStoreException { final String DUMMY_PROP="dummywrite"; instance.put(DUMMY_PROP,"test"); instance.flush(); instance.remove(DUMMY_PROP); instance.flush(); }
[ "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" ]
[ "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path", "Calcs the bonding size of given mesh.\n\n@param mesh Mesh to calc its bouding size.\n@return The bounding size for x, y and z axis.", "Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.", "Extract Primavera project data and export in another format.\n\n@param driverClass JDBC driver class name\n@param connectionString JDBC connection string\n@param projectID project ID\n@param outputFile output file\n@throws Exception", "Combines adjacent blocks of the same type.", "Return a new instance of the BufferedImage\n\n@return BufferedImage", "If the workspace for your project _is_ an organization, you must also\nsupply a `team` to share the project with.\n\nReturns the full record of the newly created project.\n\n@param workspace The workspace or organization to create the project in.\n@return Request object", "Validates a space separated list of emails.\n\n@param emails Space separated list of emails\n@return {@link hudson.util.FormValidation.ok()} if valid or empty, error otherwise", "Create a set containing all the processor at the current node and the entire subgraph." ]
@Nullable public Import find(@Nonnull final String typeName) { Check.notEmpty(typeName, "typeName"); Import ret = null; final Type type = new Type(typeName); for (final Import imp : imports) { if (imp.getType().getName().equals(type.getName())) { ret = imp; break; } } if (ret == null) { final Type javaLangType = Type.evaluateJavaLangType(typeName); if (javaLangType != null) { ret = Import.of(javaLangType); } } return ret; }
[ "Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}" ]
[ "judge a->b is ordered clockwise\n\n@param center\n@param a\n@param b\n@return", "Retrieve a UUID in the form required by Primavera PMXML.\n\n@param guid UUID instance\n@return formatted UUID", "Specify the class represented by this `ClassNode` implements\nan interface specified by the given name\n\n@param name the name of the interface class\n@return this `ClassNode` instance", "Generate a path select string\n\n@return Select query string", "Quits server by closing server socket and closing client socket handlers.", "Saves meta tree, writes database root and flushes the log.\n\n@param metaTree mutable meta tree\n@param env enclosing environment\n@param expired expired loggables (database root to be added)\n@return database root loggable which is read again from the log.", "Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked", "Saves a matrix to disk using Java binary serialization.\n\n@param A The matrix being saved.\n@param fileName Name of the file its being saved at.\n@throws java.io.IOException", "Use this API to fetch a tmglobal_tmsessionpolicy_binding resources." ]
private void updateHostingEntityIfRequired() { if ( hostingEntity != null && hostingEntityRequiresReadAfterUpdate() ) { OgmEntityPersister entityPersister = getHostingEntityPersister(); if ( GridDialects.hasFacet( gridDialect, GroupingByEntityDialect.class ) ) { ( (GroupingByEntityDialect) gridDialect ).flushPendingOperations( getAssociationKey().getEntityKey(), entityPersister.getTupleContext( session ) ); } entityPersister.processUpdateGeneratedProperties( entityPersister.getIdentifier( hostingEntity, session ), hostingEntity, new Object[entityPersister.getPropertyNames().length], session ); } }
[ "Reads the entity hosting the association from the datastore and applies any property changes from the server\nside." ]
[ "Use this API to kill systemsession resources.", "Retuns the Windows UNC style path with backslashs intead of forward slashes.\n\n@return The UNC path.", "Attempt to detect the current platform.\n\n@return The current platform.\n\n@throws UnsupportedPlatformException if the platform cannot be detected.", "Gets the attributes provided by the processor.\n\n@return the attributes", "Add the provided document to the cache.", "Write the given pattern to given log in given logging level\n@param logger\n@param level\n@param pattern\n@param exception", "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", "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.", "Sets the specified long attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
public Diff compare(String left, String right) { return compare(getCtType(left), getCtType(right)); }
[ "compares two snippet" ]
[ "Start a managed server.\n\n@param factory the boot command factory", "Method that takes an inputstream, read it preserving the end lines, and subtitute using commons-lang-3 calls\nthe variables, first searching as system properties vars and then in environment var list.\nIn case of missing the property is replaced by white space.\n@param stream\n@return", "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "why isn't this functionality in enum?", "This method writes data for a single resource to a Planner file.\n\n@param mpxjResource MPXJ Resource instance\n@param plannerResource Planner Resource instance", "Creates the string mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param position\nthe position\n@throws IOException\nSignals that an I/O exception has occurred.", "Reads all text of the XML tag and returns it as a String.\nAssumes that a '<' character has already been read.\n\n@param r The reader to read from\n@return The String representing the tag, or null if one couldn't be read\n(i.e., EOF). The returned item is a complete tag including angle\nbrackets, such as <code>&lt;TXT&gt;</code>", "Position the child inside the layout based on the offset and axis-s factors\n@param dataIndex data index", "Retrieve list of assignment extended attributes.\n\n@return list of extended attributes" ]
public String getPromotionDetailsJsonModel() throws IOException { final PromotionEvaluationReport sampleReport = new PromotionEvaluationReport(); sampleReport.addMessage(String.format(TWO_PLACES, PromotionReportTranslator.UNPROMOTED_MSG, "com.acme.secure-smh:core-relay:1.2.0"), MAJOR); sampleReport.addMessage(String.format(TWO_PLACES, PromotionReportTranslator.DO_NOT_USE_MSG, "com.google.guava:guava:20.0"), MAJOR); sampleReport.addMessage(String.format(TWO_PLACES, PromotionReportTranslator.MISSING_LICENSE_MSG, "org.apache.maven.wagon:wagon-webdav-jackrabbit:2.12"), MINOR); sampleReport.addMessage(String.format(TWO_PLACES, PromotionReportTranslator.UNACCEPTABLE_LICENSE_MSG, "aopaliance:aopaliance:1.0 licensed as Attribution-ShareAlike 2.5 Generic, " + "org.polyjdbc:polyjdbc0.7.1 licensed as Creative Commons Attribution-ShareAlike 3.0 Unported License"), MINOR); sampleReport.addMessage(PromotionReportTranslator.SNAPSHOT_VERSION_MSG, Tag.CRITICAL); return JsonUtils.serialize(sampleReport); }
[ "Returns an empty Promotion details in Json\n\n@return String\n@throws IOException" ]
[ "Starts the ephemeral node and waits for it to be created\n\n@param node Node to start\n@param maxWaitSec Maximum time in seconds to wait", "Reads an HTML snippet with the given name.\n\n@return the HTML data", "Check if the specified sql-string is a stored procedure\nor not.\n@param sql The sql query to check\n@return <em>True</em> if the query is a stored procedure, else <em>false</em> is returned.", "Add all elements in the iterator to the collection.\n\n@param target\n@param iterator\n@return true if the target was modified, false otherwise", "Print the parameters of the parameterized type t", "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task", "Private function to allow looking for the field recursively up the superclasses.\n\n@param clazz\n@return", "Initializes the external child resource collection.", "Returns the total count of the specified event\n@param event The event for which you want to get the total count\n@return Total count in int" ]
private static JSONObject parseStencilSet(StencilSet stencilSet) throws JSONException { if (stencilSet != null) { JSONObject stencilSetObject = new JSONObject(); stencilSetObject.put("url", stencilSet.getUrl().toString()); stencilSetObject.put("namespace", stencilSet.getNamespace().toString()); return stencilSetObject; } return new JSONObject(); }
[ "Delivers the correct JSON Object for the Stencilset\n\n@param stencilSet\n@throws org.json.JSONException" ]
[ "In managed environment do internal close the used connection", "Set the TableAlias for ClassDescriptor", "Set the value of switch component.", "Looks up and returns the value of the given key in the properties file of\nthe currently-selected theme.\n\n@param code Key to look up in the theme properties file.\n@return The value of the code in the current theme properties file, or an\nempty string if the code could not be resolved.", "Print rate.\n\n@param rate Rate instance\n@return rate value", "Returns a client model from a ResultSet\n\n@param result resultset containing client information\n@return Client or null\n@throws Exception exception", "Add a listener to be invoked when the checked button changes in this group.\n@param listener\n@param <T>\n@return", "Creates a replica of the node with the new partitions list\n\n@param node The node whose replica we are creating\n@param partitionsList The new partitions list\n@return Replica of node with new partitions list", "Get the multicast socket address.\n\n@return the multicast address" ]
private PoolingHttpClientConnectionManager createConnectionMgr() { PoolingHttpClientConnectionManager connectionMgr; // prepare SSLContext SSLContext sslContext = buildSslContext(); ConnectionSocketFactory plainsf = PlainConnectionSocketFactory.getSocketFactory(); // we allow to disable host name verification against CA certificate, // notice: in general this is insecure and should be avoided in production, // (this type of configuration is useful for development purposes) boolean noHostVerification = false; LayeredConnectionSocketFactory sslsf = new SSLConnectionSocketFactory( sslContext, noHostVerification ? NoopHostnameVerifier.INSTANCE : new DefaultHostnameVerifier() ); Registry<ConnectionSocketFactory> r = RegistryBuilder.<ConnectionSocketFactory>create() .register("http", plainsf) .register("https", sslsf) .build(); connectionMgr = new PoolingHttpClientConnectionManager(r, null, null, null, connectionPoolTimeToLive, TimeUnit.SECONDS); connectionMgr.setMaxTotal(maxConnectionsTotal); connectionMgr.setDefaultMaxPerRoute(maxConnectionsPerRoute); HttpHost localhost = new HttpHost("localhost", 80); connectionMgr.setMaxPerRoute(new HttpRoute(localhost), maxConnectionsPerRoute); return connectionMgr; }
[ "Creates custom Http Client connection pool to be used by Http Client\n\n@return {@link PoolingHttpClientConnectionManager}" ]
[ "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)", "Poll for the next N waiting jobs in line.\n\n@param size maximum amount of jobs to poll for\n@return up to \"size\" jobs", "Extracts the last revision id from the JSON response returned\nby the API after an edit\n\n@param response\nthe response as returned by Mediawiki\n@return\nthe new revision id of the edited entity\n@throws JsonMappingException", "Get a value as a string.\n\n@param key the key for looking up the value.\n@param type the type of the object\n@param <V> the type", "Returns the secret key matching the specified identifier.\n\n@param input the input stream containing the keyring collection\n@param keyId the 4 bytes identifier of the key", "Randomly generates matrix with the specified number of non-zero 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 element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix", "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", "Update the project properties from the project summary task.\n\n@param task project summary task", "Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8." ]
public void verifyMessageSize(int maxMessageSize) { Iterator<MessageAndOffset> shallowIter = internalIterator(true); while(shallowIter.hasNext()) { MessageAndOffset messageAndOffset = shallowIter.next(); int payloadSize = messageAndOffset.message.payloadSize(); if(payloadSize > maxMessageSize) { throw new MessageSizeTooLargeException("payload size of " + payloadSize + " larger than " + maxMessageSize); } } }
[ "check max size of each message\n@param maxMessageSize the max size for each message" ]
[ "Add an object into cache by key. The key will be used in conjunction with session id if\nthere is a session instance\n\n@param key\nthe key to index the object within the cache\n@param obj\nthe object to be cached", "Core write attribute implementation.\n\n@param name attribute name\n@param value attribute value", "Accessor method to retrieve a Boolean instance.\n\n@param field the index number of the field to be retrieved\n@param falseText locale specific text representing false\n@return the value of the required field", "Calculates the world matrix based on the local matrix.", "Gets the pathClasses.\nA Map containing hints about what Class to be used for what path segment\nIf local instance not set, try parent Criteria's instance. If this is\nthe top-level Criteria, try the m_query's instance\n@return Returns a Map", "Use this API to fetch all the autoscaleprofile resources that are configured on netscaler.", "Use this API to expire cachecontentgroup resources.", "Checks that all the qualifiers in the set requiredQualifiers are in the set of qualifiers. Qualifier equality rules for\nannotation members are followed.\n\n@param requiredQualifiers The required qualifiers\n@param qualifiers The set of qualifiers to check\n@return True if all matches, false otherwise", "Explode the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException" ]
public boolean deleteWithCustomTimeout(CompositeVoldemortRequest<K, V> deleteRequestObject) { List<Versioned<V>> versionedValues; validateTimeout(deleteRequestObject.getRoutingTimeoutInMs()); boolean hasVersion = deleteRequestObject.getVersion() == null ? false : true; String keyHexString = ""; if(!hasVersion) { long startTimeInMs = System.currentTimeMillis(); if(logger.isDebugEnabled()) { ByteArray key = (ByteArray) deleteRequestObject.getKey(); keyHexString = RestUtils.getKeyHexString(key); logger.debug("DELETE without version requested for key: " + keyHexString + " , for store: " + this.storeName + " at time(in ms): " + startTimeInMs + " . Nested GET and DELETE requests to follow ---"); } // We use the full timeout for doing the Get. In this, we're being // optimistic that the subsequent delete might be faster all the // steps might finish within the allotted time deleteRequestObject.setResolveConflicts(true); versionedValues = getWithCustomTimeout(deleteRequestObject); Versioned<V> versioned = getItemOrThrow(deleteRequestObject.getKey(), null, versionedValues); if(versioned == null) { return false; } long timeLeft = deleteRequestObject.getRoutingTimeoutInMs() - (System.currentTimeMillis() - startTimeInMs); // This should not happen unless there's a bug in the // getWithCustomTimeout if(timeLeft < 0) { throw new StoreTimeoutException("DELETE request timed out"); } // Update the version and the new timeout deleteRequestObject.setVersion(versioned.getVersion()); deleteRequestObject.setRoutingTimeoutInMs(timeLeft); } long deleteVersionStartTimeInNs = System.currentTimeMillis(); if(logger.isDebugEnabled()) { ByteArray key = (ByteArray) deleteRequestObject.getKey(); keyHexString = RestUtils.getKeyHexString(key); debugLogStart("DELETE", deleteRequestObject.getRequestOriginTimeInMs(), deleteVersionStartTimeInNs, keyHexString); } boolean result = store.delete(deleteRequestObject); if(logger.isDebugEnabled()) { debugLogEnd("DELETE", deleteRequestObject.getRequestOriginTimeInMs(), deleteVersionStartTimeInNs, System.currentTimeMillis(), keyHexString, 0); } if(!hasVersion && logger.isDebugEnabled()) { logger.debug("DELETE without version response received for key: " + keyHexString + ", for store: " + this.storeName + " at time(in ms): " + System.currentTimeMillis()); } return result; }
[ "Performs a delete operation with the specified composite request object\n\n@param deleteRequestObject Composite request object containing the key to\ndelete\n@return true if delete was successful. False otherwise" ]
[ "Gets an item that was shared with a 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@return info about the shared item.", "Initialize that Foundation Logging library.", "Joins the given parts to recover the original secret.\n\n<p><b>N.B.:</b> There is no way to determine whether or not the returned value is actually the\noriginal secret. If the parts are incorrect, or are under the threshold value used to split the\nsecret, a random value will be returned.\n\n@param parts a map of part IDs to part values\n@return the original secret\n@throws IllegalArgumentException if {@code parts} is empty or contains values of varying\nlengths", "Executes the API action \"wbsetlabel\" for the given parameters.\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param value\nthe value of the label to set. Set it to null to remove the label.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the label as returned by the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Set the minimum date limit.", "Calculate the value of a CMS option using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@param optionStrike The option strike\n@return Value of the CMS option", "Use this API to fetch statistics of authenticationvserver_stats resource of given name .", "Process an operand value used in the definition of the graphical\nindicator criteria.\n\n@param index position in operand list\n@param type field type\n@param criteria indicator criteria", "Attaches a morph to scene object with a base mesh\n@param sceneObj is the base mesh.\n@throws IllegalStateException if component is null\n@throws IllegalStateException if mesh is null\n@throws IllegalStateException if material is null" ]
private BasicCredentialsProvider getCredentialsProvider() { return new BasicCredentialsProvider() { private Set<AuthScope> authAlreadyTried = Sets.newHashSet(); @Override public Credentials getCredentials(AuthScope authscope) { if (authAlreadyTried.contains(authscope)) { return null; } authAlreadyTried.add(authscope); return super.getCredentials(authscope); } }; }
[ "With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way." ]
[ "Use this API to delete sslcipher of given name.", "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle", "any possible bean invocations from other ADV observers", "Convert an Object to a Date, without an Exception", "If this Aztec Code symbol is part of a series of Aztec Code symbols appended in a structured format,\nthis method sets the unique message ID for the series. Values may not contain spaces and must contain\nonly printable ASCII characters. Message IDs are optional.\n\n@param messageId the unique message ID for the series that this symbol is part of", "Updates the cluster and store metadata atomically\n\nThis is required during rebalance and expansion into a new zone since we\nhave to update the store def along with the cluster def.\n\n@param cluster The cluster metadata information\n@param storeDefs The stores metadata information", "orientation state factory method", "Retrieves state and metrics information for individual channel.\n\n@param name channel name\n@return channel information", "Function to perform backward activation" ]
protected void addRow(int uniqueID, Map<String, Object> map) { m_rows.put(Integer.valueOf(uniqueID), new MapRow(map)); }
[ "Adds a row to the internal storage, indexed by primary key.\n\n@param uniqueID unique ID of the row\n@param map row data as a simpe map" ]
[ "Adds a license to an artifact if the license exist into the database\n\n@param gavc String\n@param licenseId String", "Set RGB output range.\n\n@param outRGB Range.", "Sets the replace var map to single target from map.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "Find the the qualified container port of the target service\nUses java annotations first or returns the container port.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved containerPort of '0' as a fallback.", "Get the photos for the specified group pool, optionally filtering by taf.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param groupId\nThe group ID\n@param userId\nThe user ID (may be null)\n@param tags\nThe optional tags (may be null)\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page (0 to ignore)\n@param page\nThe page offset (0 to ignore)\n@return A Collection of Photo objects\n@throws FlickrException", "Replace HTML entities\n@param content Content\n@param map Map\n@return Replaced content", "Use this API to update rsskeytype.", "Adds the content info for the collected resources used in the \"This page\" publish dialog.", "Tells you if the expression is true, which can be true or Boolean.TRUE.\n@param expression\nexpression\n@return\nas described" ]
public void addBetween(Object attribute, Object value1, Object value2) { // PAW // addSelectionCriteria(ValueCriteria.buildBeweenCriteria(attribute, value1, value2, getAlias())); addSelectionCriteria(ValueCriteria.buildBeweenCriteria(attribute, value1, value2, getUserAlias(attribute))); }
[ "Adds BETWEEN criteria,\ncustomer_id 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" ]
[ "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task.", "Extracts a flat set of interception bindings from a given set of interceptor bindings.\n\n@param addTopLevelInterceptorBindings add top level interceptor bindings to the result set.\n@param addInheritedInterceptorBindings add inherited level interceptor bindings to the result set.\n@return", "Obtain the realm used for authentication.\n\nThis realm name applies to both the user and the groups.\n\n@return The name of the realm used for authentication.", "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", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the lowest to the highest score.\nLexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements", "Utility function to set the current value in a ListBox.\n\n@return returns true if the option corresponding to the value\nwas successfully selected in the ListBox", "Defers an event for processing in a later phase of the current\ntransaction.\n\n@param metadata The event object", "Log the data for a single column.\n\n@param startIndex offset into buffer\n@param length length", "If the status of a print job is not checked for a while, we assume that the user is no longer\ninterested in the report, and we cancel the job.\n\n@param printJob\n@return is the abandoned timeout exceeded?" ]
public List<Versioned<V>> getWithCustomTimeout(CompositeVoldemortRequest<K, V> requestWrapper) { validateTimeout(requestWrapper.getRoutingTimeoutInMs()); for(int attempts = 0; attempts < this.metadataRefreshAttempts; attempts++) { try { long startTimeInMs = System.currentTimeMillis(); String keyHexString = ""; if(logger.isDebugEnabled()) { ByteArray key = (ByteArray) requestWrapper.getKey(); keyHexString = RestUtils.getKeyHexString(key); debugLogStart("GET", requestWrapper.getRequestOriginTimeInMs(), startTimeInMs, keyHexString); } List<Versioned<V>> items = store.get(requestWrapper); if(logger.isDebugEnabled()) { int vcEntrySize = 0; for(Versioned<V> vc: items) { vcEntrySize += ((VectorClock) vc.getVersion()).getVersionMap().size(); } debugLogEnd("GET", requestWrapper.getRequestOriginTimeInMs(), startTimeInMs, System.currentTimeMillis(), keyHexString, vcEntrySize); } return items; } catch(InvalidMetadataException e) { logger.info("Received invalid metadata exception during get [ " + e.getMessage() + " ] on store '" + storeName + "'. Rebootstrapping"); bootStrap(); } } throw new VoldemortException(this.metadataRefreshAttempts + " metadata refresh attempts failed."); }
[ "Performs a get operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key (and\n/ or default value) and timeout.\n@return The Versioned value corresponding to the key" ]
[ "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions or the original input in case\nthe input didn't contain any expressions or at least one of the\nexpressions could not be resolved", "Template-and-Hook method for generating the url required by the jdbc driver\nto allow for modifying an existing database.", "Returns the local collection representing the given namespace for raw document operations.\n\n@param namespace the namespace referring to the local collection.\n@return the local collection representing the given namespace for raw document operations.", "Creates a new Product in Grapes database\n\n@param dbProduct DbProduct", "Adds a child to this node and sets this node as its parent node.\n\n@param node The node to add.", "Calculate start dates for a monthly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Returns a new analysis context builder that extracts the information about the available extensions from\nthe provided Revapi instance.\n\n<p>The extensions have to be known so that both old and new style of configuration can be usefully worked with.\n\n@param revapi the revapi instance to read the available extensions from\n@return a new analysis context builder", "The user can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the invited user.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Wrapper functions with no bounds checking are used to access matrix internals" ]
private SortedSet<Date> calculateDates() { if (null == m_allDates) { SortedSet<Date> result = new TreeSet<>(); if (isAnyDatePossible()) { Calendar date = getFirstDate(); int previousOccurrences = 0; while (showMoreEntries(date, previousOccurrences)) { result.add(date.getTime()); toNextDate(date); previousOccurrences++; } } m_allDates = result; } return m_allDates; }
[ "Calculates all dates of the series.\n@return all dates of the series in milliseconds." ]
[ "Sets the value associated with the given key; if the the key is one\nof the hashable keys, throws an exception.\n\n@throws HashableCoreMapException Attempting to set the value for an\nimmutable, hashable key.", "Sets the scale vector of the keyframe.", "Use this API to fetch all the lbvserver resources that are configured on netscaler.", "Use this API to fetch sslvserver_sslciphersuite_binding resources of given name .", "Specify the class represented by this `ClassNode` extends\na class with the name specified\n@param name the name of the parent class\n@return this `ClassNode` instance", "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", "Create the grid feature type.\n\n@param mapContext the map context containing the information about the map the grid will be\nadded to.\n@param geomClass the geometry type", "Whether this association contains no rows.\n\n@return {@code true} if this association contains no rows, {@code false} otherwise", "Process the graphical indicator data." ]
public ArrayList<IntPoint> process(ImageSource fastBitmap) { //FastBitmap l = new FastBitmap(fastBitmap); if (points == null) { apply(fastBitmap); } int width = fastBitmap.getWidth(); int height = fastBitmap.getHeight(); points = new ArrayList<IntPoint>(); if (fastBitmap.isGrayscale()) { for (int x = 0; x < height; x++) { for (int y = 0; y < width; y++) { if (fastBitmap.getRGB(y, x) == 255) points.add(new IntPoint(y, x)); } } } else { for (int x = 0; x < height; x++) { for (int y = 0; y < width; y++) { // TODO Check for green and blue? if (fastBitmap.getR(y, x) == 255) points.add(new IntPoint(y, x)); } } } return points; }
[ "Get points after extract boundary.\n\n@param fastBitmap Image to be processed.\n@return List of points." ]
[ "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance", "Parse a string representation of a Boolean value.\nXER files sometimes have \"N\" and \"Y\" to indicate boolean\n\n@param value string representation\n@return Boolean value", "Checks whether the given field definition is used as the primary key of a class referenced by\na reference.\n\n@param modelDef The model\n@param fieldDef The current field descriptor def\n@return The reference that uses the field or <code>null</code> if the field is not used in this way", "This method is used to quote any special characters that appear in\nliteral text that is required as part of the currency format.\n\n@param literal Literal text\n@return literal text with special characters in quotes", "Send get request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws URISyntaxException the uri syntax exception\n@throws IOException the io exception", "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map", "Returns the list of nodes which match the expression xpathExpr in the Document dom.\n\n@param dom the Document to search in\n@param xpathExpr the xpath query\n@return the list of nodes which match the query\n@throws XPathExpressionException On error.", "Returns true if the request should continue.\n\n@return", "Confirms that both clusters have the same number of total partitions.\n\n@param lhs\n@param rhs" ]
public static base_response add(nitro_service client, gslbsite resource) throws Exception { gslbsite addresource = new gslbsite(); addresource.sitename = resource.sitename; addresource.sitetype = resource.sitetype; addresource.siteipaddress = resource.siteipaddress; addresource.publicip = resource.publicip; addresource.metricexchange = resource.metricexchange; addresource.nwmetricexchange = resource.nwmetricexchange; addresource.sessionexchange = resource.sessionexchange; addresource.triggermonitor = resource.triggermonitor; addresource.parentsite = resource.parentsite; return addresource.add_resource(client); }
[ "Use this API to add gslbsite." ]
[ "Write objects to data store, but don't release the locks.\nI don't know what we should do if we are in a checkpoint and\nwe need to abort.", "Read all task relationships from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Lock the given region. Does not report failures.", "Loads the currently known phases from Furnace to the map.", "Expands the directories from the given list and and returns a list of subfiles.\nFiles from the original list are kept as is.", "Find out which field in the incoming message contains the payload that is.\ndelivered to the service method.", "Build a Count-Query based on aQuery\n@param aQuery\n@return The count query", "Use this API to fetch all the gslbservice resources that are configured on netscaler.", "Attaches meta info about the current state of the device to an event.\nTypically, this meta is added only to the ping event." ]
protected boolean hasTimeStampHeader() { String originTime = request.getHeader(RestMessageHeaders.X_VOLD_REQUEST_ORIGIN_TIME_MS); boolean result = false; if(originTime != null) { try { // TODO: remove the originTime field from request header, // because coordinator should not accept the request origin time // from the client.. In this commit, we only changed // "this.parsedRequestOriginTimeInMs" from // "Long.parseLong(originTime)" to current system time, // The reason that we did not remove the field from request // header right now, is because this commit is a quick fix for // internal performance test to be available as soon as // possible. this.parsedRequestOriginTimeInMs = System.currentTimeMillis(); if(this.parsedRequestOriginTimeInMs < 0) { RestErrorHandler.writeErrorResponse(messageEvent, HttpResponseStatus.BAD_REQUEST, "Origin time cannot be negative "); } else { result = true; } } catch(NumberFormatException nfe) { logger.error("Exception when validating request. Incorrect origin time parameter. Cannot parse this to long: " + originTime, nfe); RestErrorHandler.writeErrorResponse(this.messageEvent, HttpResponseStatus.BAD_REQUEST, "Incorrect origin time parameter. Cannot parse this to long: " + originTime); } } else { logger.error("Error when validating request. Missing origin time parameter."); RestErrorHandler.writeErrorResponse(this.messageEvent, HttpResponseStatus.BAD_REQUEST, "Missing origin time parameter."); } return result; }
[ "Retrieve and validate the timestamp value from the REST request.\n\"X_VOLD_REQUEST_ORIGIN_TIME_MS\" is timestamp header\n\nTODO REST-Server 1. Change Time stamp header to a better name.\n\n@return true if present, false if missing" ]
[ "Retrieves the amount of time represented by a calendar exception\nbefore or after an intersection point.\n\n@param exception calendar exception\n@param date intersection time\n@param after true to report time after intersection, false to report time before\n@return length of time in milliseconds", "Add new control at the control bar with specified touch listener, resource and position.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param resId the control face\n@param listener touch listener\n@param position control position in the bar", "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client", "Create the voldemort key and value from the input Avro record by\nextracting the key and value and map it out for each of the responsible\nvoldemort nodes\n\n\nThe output value is the node_id & partition_id of the responsible node\nfollowed by serialized value", "Creates a collaboration whitelist for a Box User with a given ID.\n@param api the API connection to be used by the collaboration whitelist.\n@param userID the ID of the Box User to add to the collaboration whitelist.\n@return information about the collaboration whitelist created for user.", "Calculates the local translation and rotation for a bone.\nAssumes WorldRot and WorldPos have been calculated for the bone.", "removes an Object from the cache.\n\n@param oid the Identity of the object to be removed.", "Convert this update description to an update document.\n\n@return an update document with the appropriate $set and $unset documents.", "Returns a new List containing the given objects." ]
private boolean pathMatches(Path path, SquigglyContext context) { List<SquigglyNode> nodes = context.getNodes(); Set<String> viewStack = null; SquigglyNode viewNode = null; int pathSize = path.getElements().size(); int lastIdx = pathSize - 1; for (int i = 0; i < pathSize; i++) { PathElement element = path.getElements().get(i); if (viewNode != null && !viewNode.isSquiggly()) { Class beanClass = element.getBeanClass(); if (beanClass != null && !Map.class.isAssignableFrom(beanClass)) { Set<String> propertyNames = getPropertyNamesFromViewStack(element, viewStack); if (!propertyNames.contains(element.getName())) { return false; } } } else if (nodes.isEmpty()) { return false; } else { SquigglyNode match = findBestSimpleNode(element, nodes); if (match == null) { match = findBestViewNode(element, nodes); if (match != null) { viewNode = match; viewStack = addToViewStack(viewStack, viewNode); } } else if (match.isAnyShallow()) { viewNode = match; } else if (match.isAnyDeep()) { return true; } if (match == null) { if (isJsonUnwrapped(element)) { continue; } return false; } if (match.isNegated()) { return false; } nodes = match.getChildren(); if (i < lastIdx && nodes.isEmpty() && !match.isEmptyNested() && SquigglyConfig.isFilterImplicitlyIncludeBaseFields()) { nodes = BASE_VIEW_NODES; } } } return true; }
[ "perform the actual matching" ]
[ "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", "Read metadata by populating an instance of the target class\nusing SAXParser.", "Append field with quotes and escape characters added in the key, if required.\nThe value is added without quotes and any escape characters.\n\n@return this", "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Retrieve all Collection attributes of a given instance, and make all of the Proxy Collections\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", "Delivers the correct JSON Object for the dockers\n\n@param dockers\n@throws org.json.JSONException", "Use this API to fetch appfwprofile_safeobject_binding resources of given name .", "Returns the field with the specified value properly formatted. Multiline\nvalues are automatically indented, and dots are added on the empty lines.\n\n<pre>\nField-Name: value\n</pre>", "Open the event stream\n\n@return true if successfully opened, false if not" ]
public void setEnterpriseCost(int index, Number value) { set(selectField(AssignmentFieldLists.ENTERPRISE_COST, index), value); }
[ "Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value" ]
[ "compute Exp using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Validates the deployment.\n\n@param isDomain {@code true} if this is a domain server, otherwise {@code false}\n\n@throws MojoDeploymentException if the deployment is invalid", "Returns the remote collection representing the given namespace.\n\n@param namespace the namespace referring to the remote collection.\n@param resultClass the {@link Class} that represents documents in the collection.\n@param <T> the type documents in the collection.\n@return the remote collection representing the given namespace.", "Sets the path to the script file to load and loads the script.\n\n@param filePath path to script file\n@throws IOException if the script cannot be read.\n@throws GVRScriptException if a script processing error occurs.", "Do the search, called as a \"page action\"", "Adds vector v1 to v2 and places the result in this vector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "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", "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null.", "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'StoreClient' object corresponding to the store name\nspecified in the REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Message Event used to write the response / exception" ]
private String parameter(Options opt, Parameter p[]) { StringBuilder par = new StringBuilder(1000); for (int i = 0; i < p.length; i++) { par.append(p[i].name() + typeAnnotation(opt, p[i].type())); if (i + 1 < p.length) par.append(", "); } return par.toString(); }
[ "Print the method parameter p" ]
[ "Update max.\n\n@param n the n\n@param c the c", "Utility function that fetches node ids.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return Node ids in cluster", "Sets the duration for the animation to be played.\n\n@param start the animation will start playing from the specified time\n@param end the animation will stop playing at the specified time\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code start} is either negative value, greater than\n{@code end} value or {@code end} is greater than duration", "Resize picture to desired size.\n\n@param width Desired width.\n@param height Desired height.\n@throws IllegalArgumentException if {@code width} or {@code height} is less than 0 or both are\n0.", "Determine if a CharSequence can be parsed as a Float.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isFloat(String)\n@since 1.8.2", "To get all the textual content in the dom\n\n@param document\n@param individualTokens : default True : when set to true, each text node from dom is used to build the\ntext content : when set to false, the text content of whole is obtained at once.\n@return", "Sets a configuration option to the specified value.", "Creates an IndexableTaskItem from provided FunctionalTaskItem.\n\n@param taskItem functional TaskItem\n@return IndexableTaskItem", "Returns the meta-data for the inverse side of the association represented by the given property on the given\npersister in case it represents the main side of a bi-directional one-to-many or many-to-many association.\n\n@param mainSidePersister persister of the entity hosting the property of interest\n@param propertyIndex index of the property of interest\n@return the meta-data of the inverse side of the specified association or {@code null} if no such meta-data\nexists" ]
public ReferenceBuilder withPropertyValue(PropertyIdValue propertyIdValue, Value value) { getSnakList(propertyIdValue).add( factory.getValueSnak(propertyIdValue, value)); return getThis(); }
[ "Adds the given property and value to the constructed reference.\n\n@param propertyIdValue\nthe property to add\n@param value\nthe value to add\n@return builder object to continue construction" ]
[ "Create a document that parses the tile's featureFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@return document\n@throws RenderException\noops", "Helper method to convert seed bytes into the long value required by the\nsuper class.", "Writes the buffer contents to the given byte channel.\n\n@param channel\n@throws IOException", "Refresh the layout element.", "Use this API to fetch all the sslcertkey resources that are configured on netscaler.", "Configures a RequestBuilder to send an RPC request when the RequestBuilder\nis intended to be returned through the asynchronous proxy interface.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a RequestBuilder object that is ready to have its\n{@link RequestBuilder#send()} method invoked.", "Return a copy of the zoom level scale denominators. Scales are sorted greatest to least.", "Use this API to add vpath.", "convert object into another class using the JSON mapper\n\n@param <C> the generic target type\n@param object the object to convert\n@param targetClass the class of the target object\n@return the converted object\n@throws IllegalArgumentException if conversion fails" ]
public List<MapRow> readUnknownTable(int rowSize, int rowMagicNumber) throws IOException { TableReader reader = new UnknownTableReader(this, rowSize, rowMagicNumber); reader.read(); return reader.getRows(); }
[ "Read a nested table whose contents we don't understand.\n\n@param rowSize fixed row size\n@param rowMagicNumber row magic number\n@return table rows" ]
[ "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists of RTFEmbeddedObject instances", "Add a method to the enabled response overrides for a path\n\n@param pathName name of path\n@param methodName name of method\n@return true if success, false otherwise", "Function to serialize the given list of Vector clocks into a string. If\nsomething goes wrong, it returns an empty string.\n\n@param vectorClocks The Vector clock list to serialize\n@return The string (JSON) version of the specified Vector clock", "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Utility method to read a percentage value.\n\n@param data data block\n@param offset offset into data block\n@return percentage value", "Generated the report.", "Decomposes a submatrix. The results are written to the submatrix\nand to its internal matrix L.\n\n@param mat A matrix which has a submatrix that needs to be inverted\n@param indexStart the first index of the submatrix\n@param n The width of the submatrix that is to be inverted.\n@return True if it was able to finish the decomposition.", "Use this API to delete systementitydata.", "Log modified request\n\n@param httpMethodProxyRequest\n@param httpServletResponse\n@param history" ]
public static Info rng( final Variable A , ManagerTempVariables manager) { Info ret = new Info(); if( A instanceof VariableInteger ) { ret.op = new Operation("rng") { @Override public void process() { int seed = ((VariableInteger)A).value; manager.getRandom().setSeed(seed); } }; } else { throw new RuntimeException("Expected one integer"); } return ret; }
[ "Sets the seed for random number generator" ]
[ "Process events in the order as they were received.\n\n<p/>\n\nThe overall time to process the events must be within the bounds of the\ntimeout or an {@link InsufficientOperationalNodesException} will be\nthrown.", "Returns a new AWT BufferedImage from this image.\n\n@param type the type of buffered image to create, if not specified then defaults to the current image type\n@return a new, non-shared, BufferedImage with the same data as this Image.", "Checks whether given class descriptor has a primary key.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Validates a String to be a valid name to be used in MongoDB for a field name.\n\n@param fieldName", "Returns a PreparedStatementCreator that returns a page of the underlying\nresult set.\n\n@param dialect\nDatabase dialect to use.\n@param limit\nMaximum number of rows to return.\n@param offset\nIndex of the first row to return.", "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value", "Returns the later of two dates, handling null values. A non-null Date\nis always considered to be later than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date latest date", "Should be called after all rows have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Lookup a native pointer to a collider and return its Java object.\n\n@param nativePointer native pointer to C++ Collider\n@return Java GVRCollider object" ]
public void writeStartObject(String name) throws IOException { writeComma(); writeNewLineIndent(); if (name != null) { writeName(name); writeNewLineIndent(); } m_writer.write("{"); increaseIndent(); }
[ "Begin writing a named object attribute.\n\n@param name attribute name" ]
[ "Static factory method.\n\n@param targetVariable\nthe variable to find the effective {@code putfield} or\n{@code putstatic} instruction for.\n@param controlFlowBlocks\nall control flow blocks of an initialising constructor or\nmethod.\n@return a new instance of this class.", "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", "Save the current file as the given type.\n\n@param file target file\n@param type file type", "Handle unbind service event.\n@param service Service instance\n@param props Service reference properties", "Get the element at the index as a string.\n\n@param i the index of the element to access", "Post the specified photo to a blog. Note that the Photo.title and Photo.description are used for the blog entry title and body respectively.\n\n@param photo\nThe photo metadata\n@param blogId\nThe blog ID\n@param blogPassword\nThe blog password\n@throws FlickrException", "Returns all categories that are direct children of the current main category.\n\n@return all categories that are direct children of the current main category.", "This method writes data for a single calendar to an MSPDI file.\n\n@param bc Base calendar data\n@return New MSPDI calendar instance", "Returns the y-coordinate of a vertex tangent.\n\n@param vertex the vertex index\n@return the y coordinate" ]
public static nsrpcnode[] get(nitro_service service) throws Exception{ nsrpcnode obj = new nsrpcnode(); nsrpcnode[] response = (nsrpcnode[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the nsrpcnode resources that are configured on netscaler." ]
[ "Registers annotations which will be considered as bean defining annotations.\n\nNOTE - If used along with {@code <trim/>} bean archives and/or with Weld configuration key\n{@code org.jboss.weld.bootstrap.vetoTypesWithoutBeanDefiningAnnotation}, these annotations will be ignored.\n\n@param annotations annotations which will be considered as Bean Defining Annotations.\n@return self", "Use this API to fetch dnsnsecrec resource of given name .", "Creates a new deployment for the file. If the file is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the file containing the content\n\n@return the deployment", "Verify that all OGM custom externalizers are present.\nN.B. even if some Externalizer is only needed in specific configuration,\nit is not safe to start a CacheManager without one as the same CacheManager\nmight be used, or have been used in the past, to store data using a different\nconfiguration.\n\n@see ExternalizerIds\n@see AdvancedExternalizer\n@param externalCacheManager the provided CacheManager to validate", "Retrieve a timestamp field.\n\n@param dateName field containing the date component\n@param timeName field containing the time component\n@return Date instance", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns all the elements in the sorted set with a value in the given range.\nIf the elements in the sorted set have different scores, the returned elements are unspecified.\n@param lexRange\n@return the range of elements", "Triggers a replication request.", "Fills the Boyer Moore \"bad character array\" for the given pattern", "Remove a part of a CharSequence. This replaces the first occurrence\nof the pattern within self with '' and returns the result.\n\n@param self a String\n@param pattern a Pattern representing the part to remove\n@return a String minus the part to be removed\n@since 2.2.0" ]
protected void propagateOnMotionOutside(MotionEvent event) { if (mEventOptions.contains(EventOptions.SEND_TOUCH_EVENTS)) { if (mEventOptions.contains(EventOptions.SEND_TO_LISTENERS)) { getGVRContext().getEventManager().sendEvent(this, ITouchEvents.class, "onMotionOutside", this, event); } if (mEventOptions.contains(EventOptions.SEND_TO_SCENE) && (mScene != null)) { getGVRContext().getEventManager().sendEvent(mScene, ITouchEvents.class, "onMotionOutside", this, event); } } }
[ "Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked" ]
[ "Returns the value of the identified field as a Float.\n@param fieldName the name of the field\n@return the value of the field as a Float\n@throws FqlException if the field cannot be expressed as an Float", "Apply aliases to task and resource fields.\n\n@param aliases map of aliases", "Convert the Phoenix representation of a finish date time into a Date instance.\n\n@param value Phoenix date time\n@return Date instance", "Retrieve the Charset used to read the file.\n\n@return Charset instance", "This version assumes relativeIndices array no longer needs to\nbe copied. Further it is assumed that it has already been\nchecked or assured by construction that relativeIndices\nis sorted.", "Set the values of a set of knots.\n@param x the knot positions\n@param y the knot colors\n@param types the knot types\n@param offset the first knot to set\n@param count the number of knots", "Handle a \"current till end\" change event.\n@param event the change event.", "Perform a one-off scan during boot to establish deployment tasks to execute during boot", "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance" ]
public void postModule(final Module module, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.moduleResourcePath()); final ClientResponse response = resource.type(MediaType.APPLICATION_JSON).post(ClientResponse.class, module); client.destroy(); if(ClientResponse.Status.CREATED.getStatusCode() != response.getStatus()){ final String message = "Failed to POST module"; if(LOG.isErrorEnabled()) { LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, message, response.getStatus())); } throw new GrapesCommunicationException(message, response.getStatus()); } }
[ "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException" ]
[ "Obtains a local date in International Fixed calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the International Fixed era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the International Fixed local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code InternationalFixedEra}", "Use this API to fetch lbmonitor_binding resource of given name .", "digest message with MD5\n\n@param source message\n@return 32 bit MD5 value (lower case)", "Finds trajectory by ID\n@param t List of Trajectories\n@param id ID of the trajectorie\n@return Trajectory with ID=id", "It is possible for the QR algorithm to get stuck in a loop because of symmetries. This happens\nmore often with larger matrices. By taking a random step it can break the symmetry and finish.", "Method for reporting SQLException. This is used by\nthe treenodes if retrieving information for a node\nis not successful.\n@param message The message describing where the error occurred\n@param sqlEx The exception to be reported.", "Recursively read a task, and any sub tasks.\n\n@param mpxjParent Parent for the MPXJ tasks\n@param gpTask GanttProject task", "Gets information about the device pin.\n@param fields the fields to retrieve.\n@return info about the device pin.", "Method used to update fields with values received from API.\n@param jsonObject JSON-encoded info about File Version object." ]
@Override public void map(GenericData.Record record, AvroCollector<Pair<ByteBuffer, ByteBuffer>> collector, Reporter reporter) throws IOException { byte[] keyBytes = null; byte[] valBytes = null; Object keyRecord = null; Object valRecord = null; try { keyRecord = record.get(keyField); valRecord = record.get(valField); keyBytes = keySerializer.toBytes(keyRecord); valBytes = valueSerializer.toBytes(valRecord); this.collectorWrapper.setCollector(collector); this.mapper.map(keyBytes, valBytes, this.collectorWrapper); recordCounter++; } catch (OutOfMemoryError oom) { logger.error(oomErrorMessage(reporter)); if (keyBytes == null) { logger.error("keyRecord caused OOM!"); } else { logger.error("keyRecord: " + keyRecord); logger.error("valRecord: " + (valBytes == null ? "caused OOM" : valRecord)); } throw new VoldemortException(oomErrorMessage(reporter), oom); } }
[ "Create the voldemort key and value from the input Avro record by\nextracting the key and value and map it out for each of the responsible\nvoldemort nodes\n\n\nThe output value is the node_id & partition_id of the responsible node\nfollowed by serialized value" ]
[ "Checks if the specified longitude is correct.\n\n@param name the name of the longitude field\n@param longitude the value of the longitude field\n@return the longitude", "Get the present keys of all entries with a given type, checking hereby if assignable.\n\n@param type The attribute type, not null.\n@return all present keys of attributes being assignable to the type, never null.", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "Set the active view.\nIf the mdActiveIndicator attribute is set, this View will have the indicator drawn next to it.\n\n@param v The active view.\n@param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\nmust be called first.", "Creates a Source Processor\n\n@param source the data source itself\n@param parallelism the parallelism of this processor\n@param description the description of this processor\n@param taskConf the configuration of this processor\n@param system actor system\n@return the new created source processor", "Returns the list of module dependencies regarding the provided filters\n\n@param moduleId String\n@param filters FiltersHolder\n@return List<Dependency>", "Convert subQuery to SQL\n@param subQuery the subQuery value of SelectionCriteria", "Saves changes in properties file. It reads the property file into memory, modifies it and saves it back to the file.\n\n@throws IOException", "If this address was resolved from a host, returns that host. Otherwise, does a reverse name lookup." ]
private void sendSyncControlCommand(DeviceUpdate target, byte command) throws IOException { ensureRunning(); byte[] payload = new byte[SYNC_CONTROL_PAYLOAD.length]; System.arraycopy(SYNC_CONTROL_PAYLOAD, 0, payload, 0, SYNC_CONTROL_PAYLOAD.length); payload[2] = getDeviceNumber(); payload[8] = getDeviceNumber(); payload[12] = command; assembleAndSendPacket(Util.PacketType.SYNC_CONTROL, payload, target.getAddress(), BeatFinder.BEAT_PORT); }
[ "Assemble and send a packet that performs sync control, turning a device's sync mode on or off, or telling it\nto become the tempo master.\n\n@param target an update from the device whose sync state is to be set\n@param command the byte identifying the specific sync command to be sent\n\n@throws IOException if there is a problem sending the command to the device" ]
[ "Finds the missing value. Seems to lose a degree of freedom, but it\ndoesn't. That degree of freedom is already lost by the sensor.", "Use this API to fetch gslbsite resource of given name .", "Calls the httpHandler method.", "Run the JavaScript program, Output saved in localBindings", "Gets any app users that has an exact match with the externalAppUserId term.\n@param api the API connection to be used when retrieving the users.\n@param externalAppUserId the external app user id that has been set for app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing users matching the given email", "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", "Compare two versions\n\n@param other\n@return an integer: 0 if equals, -1 if older, 1 if newer\n@throws IncomparableException is thrown when two versions are not coparable", "Set some initial values.", "Creates an endpoint reference from a given adress.\n@param address\n@param props\n@return" ]
protected static BoxCollaboration.Info create(BoxAPIConnection api, JsonObject accessibleBy, JsonObject item, BoxCollaboration.Role role, Boolean notify, Boolean canViewPath) { String queryString = ""; if (notify != null) { queryString = new QueryStringBuilder().appendParam("notify", notify.toString()).toString(); } URL url; if (queryString.length() > 0) { url = COLLABORATIONS_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), queryString); } else { url = COLLABORATIONS_URL_TEMPLATE.build(api.getBaseURL()); } JsonObject requestJSON = new JsonObject(); requestJSON.add("item", item); requestJSON.add("accessible_by", accessibleBy); requestJSON.add("role", role.toJSONString()); if (canViewPath != null) { requestJSON.add("can_view_path", canViewPath.booleanValue()); } BoxJSONRequest request = new BoxJSONRequest(api, url, "POST"); request.setBody(requestJSON.toString()); BoxJSONResponse response = (BoxJSONResponse) request.send(); JsonObject responseJSON = JsonObject.readFrom(response.getJSON()); BoxCollaboration newCollaboration = new BoxCollaboration(api, responseJSON.get("id").asString()); return newCollaboration.new Info(responseJSON); }
[ "Create a new collaboration object.\n@param api the API connection used to make the request.\n@param accessibleBy the JSON object describing who should be collaborated.\n@param item the JSON object describing which item to collaborate.\n@param role the role to give the collaborators.\n@param notify the user/group should receive email notification of the collaboration or not.\n@param canViewPath the view path collaboration feature is enabled or not.\n@return info about the new collaboration." ]
[ "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1", "updates the groupname in the table given the id\n\n@param newGroupName new group name\n@param id ID of group", "Creates a ServiceCall from a paging operation that returns a header response.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@param <V> the header object type\n@return the future based ServiceCall", "Add a row to the table. We have a limited understanding of the way\nBtrieve handles outdated rows, so we use what we think is a version number\nto try to ensure that we only have the latest rows.\n\n@param primaryKeyColumnName primary key column name\n@param map Map containing row data", "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", "Calculate the value of a digital caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@param periodLength The period length of the underlying forward rate.\n@param discountFactor The discount factor corresponding to the payment date (option maturity + period length).\n@param optionMaturity The option maturity\n@param optionStrike The option strike.\n@return Returns the price of a digital caplet under the Black'76 model", "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "Builds the table for the database results.\n\n@param results the database results\n@return the table", "Command to select a document from the POIFS for viewing.\n\n@param entry document to view" ]
public ModelSource resolveModel( Parent parent ) throws UnresolvableModelException { Dependency parentDependency = new Dependency(); parentDependency.setGroupId(parent.getGroupId()); parentDependency.setArtifactId(parent.getArtifactId()); parentDependency.setVersion(parent.getVersion()); parentDependency.setClassifier(""); parentDependency.setType("pom"); Artifact parentArtifact = null; try { Iterable<ArtifactResult> artifactResults = depencencyResolver.resolveDependencies( projectBuildingRequest, singleton(parentDependency), null, null ); Iterator<ArtifactResult> iterator = artifactResults.iterator(); if (iterator.hasNext()) { parentArtifact = iterator.next().getArtifact(); } } catch (DependencyResolverException e) { throw new UnresolvableModelException( e.getMessage(), parent.getGroupId(), parent.getArtifactId(), parent.getVersion(), e ); } return resolveModel( parentArtifact.getGroupId(), parentArtifact.getArtifactId(), parentArtifact.getVersion() ); }
[ "Resolves the POM for the specified parent.\n\n@param parent the parent coordinates to resolve, must not be {@code null}\n@return The source of the requested POM, never {@code null}\n@since Apache-Maven-3.2.2 (MNG-5639)" ]
[ "Sets the node meta data.\n\n@param key - the meta data key\n@param value - the meta data value\n@throws GroovyBugError if key is null or there is already meta\ndata under that key", "Get PhoneNumber object\n\n@return PhonenUmber | null on error", "Method called to indicate persisting the properties file is now complete.\n\n@throws IOException", "Returns the parameter key of the facet with the given name.\n@param facet the facet's name.\n@return the parameter key for the facet.", "Prepares a statement with parameters that should work with most RDBMS.\n\n@param con the connection to utilize\n@param sql the sql syntax to use when creating the statement.\n@param scrollable determines if the statement will be scrollable.\n@param createPreparedStatement if <code>true</code>, then a\n{@link PreparedStatement} will be created. If <code>false</code>, then\na {@link java.sql.CallableStatement} will be created.\n@param explicitFetchSizeHint will be used as fetchSize hint\n(if applicable) if > 0\n\n@return a statement that can be used to execute the syntax contained in\nthe <code>sql</code> argument.", "Specify the artifact configuration to be searched for\n@param artifact configured artifact object\n@return", "do delete given object. Should be used by all intern classes to delete\nobjects.", "generate a prepared UPDATE-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor", "Converts a gwt Date in the timezone of the current browser to a time in\nUTC.\n\n@return A Long corresponding to the number of milliseconds since January\n1, 1970, 00:00:00 GMT or null if the specified Date is null." ]
private Map<String, Class<? extends RulePhase>> loadPhases() { Map<String, Class<? extends RulePhase>> phases; phases = new HashMap<>(); Furnace furnace = FurnaceHolder.getFurnace(); for (RulePhase phase : furnace.getAddonRegistry().getServices(RulePhase.class)) { @SuppressWarnings("unchecked") Class<? extends RulePhase> unwrappedClass = (Class<? extends RulePhase>) Proxies.unwrap(phase).getClass(); String simpleName = unwrappedClass.getSimpleName(); phases.put(classNameToMapKey(simpleName), unwrappedClass); } return Collections.unmodifiableMap(phases); }
[ "Loads the currently known phases from Furnace to the map." ]
[ "Notifies that a footer item is inserted.\n\n@param position the position of the content item.", "Checks if request is intended for Gerrit host.", "Reset autoCommit state.", "Generate date patterns based on the project configuration.\n\n@param properties project properties\n@return date patterns", "Use this API to fetch auditsyslogpolicy_systemglobal_binding resources of given name .", "Watches specified IDs in a collection.\n@param ids the ids to watch.\n@return the stream of change events.", "Find the earliest start time of the specified methods.\n@param methods A list of test methods.\n@return The earliest start time.", "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Returns a Client object for a clientUUID and profileId\n\n@param clientUUID UUID or friendlyName of client\n@param profileId - can be null, safer if it is not null\n@return Client object or null\n@throws Exception exception" ]
protected final Event processEvent() throws IOException { while (true) { String line; try { line = readLine(); } catch (final EOFException ex) { if (doneOnce) { throw ex; } doneOnce = true; line = ""; } // If the line is empty (a blank line), Dispatch the event, as defined below. if (line.isEmpty()) { // If the data buffer is an empty string, set the data buffer and the event name buffer to // the empty string and abort these steps. if (dataBuffer.length() == 0) { eventName = ""; continue; } // If the event name buffer is not the empty string but is also not a valid NCName, // set the data buffer and the event name buffer to the empty string and abort these steps. // NOT IMPLEMENTED final Event.Builder eventBuilder = new Event.Builder(); eventBuilder.withEventName(eventName.isEmpty() ? Event.MESSAGE_EVENT : eventName); eventBuilder.withData(dataBuffer.toString()); // Set the data buffer and the event name buffer to the empty string. dataBuffer = new StringBuilder(); eventName = ""; return eventBuilder.build(); // If the line starts with a U+003A COLON character (':') } else if (line.startsWith(":")) { // ignore the line // If the line contains a U+003A COLON character (':') character } else if (line.contains(":")) { // Collect the characters on the line before the first U+003A COLON character (':'), // and let field be that string. final int colonIdx = line.indexOf(":"); final String field = line.substring(0, colonIdx); // Collect the characters on the line after the first U+003A COLON character (':'), // and let value be that string. // If value starts with a single U+0020 SPACE character, remove it from value. String value = line.substring(colonIdx + 1); value = value.startsWith(" ") ? value.substring(1) : value; processField(field, value); // Otherwise, the string is not empty but does not contain a U+003A COLON character (':') // character } else { processField(line, ""); } } }
[ "Process the next event in a given stream.\n@return the fully processed event\n@throws IOException if a stream is in the wrong state, IO errors can be thrown" ]
[ "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Replaces each substring of this CharSequence that matches the given\nregular expression with the given replacement.\n\n@param self a CharSequence\n@param regex the capturing regex\n@param replacement the string to be substituted for each match\n@return the toString() of the CharSequence with content replaced\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see String#replaceAll(String, String)\n@since 1.8.2", "Create an element that represents a horizntal or vertical line.\n@param x1\n@param y1\n@param x2\n@param y2\n@return the created DOM element", "Reads a string of single byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nReading begins at the supplied offset into the array.\n\n@param data byte array of data\n@param offset offset into the array\n@return string value", "Add a Opacity bar to the color wheel.\n\n@param bar The instance of the Opacity bar.", "This is private because the execute is the only method that should be called here.", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key", "Returns a reference definition of the given name if it exists.\n\n@param name The name of the reference\n@return The reference def or <code>null</code> if there is no such reference" ]
public Iterable<BoxItem.Info> getChildren(String sort, SortDirection direction, final String... fields) { QueryStringBuilder builder = new QueryStringBuilder() .appendParam("sort", sort) .appendParam("direction", direction.toString()); if (fields.length > 0) { builder.appendParam("fields", fields).toString(); } final String query = builder.toString(); return new Iterable<BoxItem.Info>() { @Override public Iterator<BoxItem.Info> iterator() { URL url = GET_ITEMS_URL.buildWithQuery(getAPI().getBaseURL(), query, getID()); return new BoxItemIterator(getAPI(), url); } }; }
[ "Returns an iterable containing the items in this folder sorted by name and direction.\n@param sort the field to sort by, can be set as `name`, `id`, and `date`.\n@param direction the direction to display the item results.\n@param fields the fields to retrieve.\n@return an iterable containing the items in this folder." ]
[ "Parses a PDF document and serializes the resulting DOM tree to an output. This requires\na DOM Level 3 capable implementation to be available.", "end AnchorImplementation class", "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", "Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "This method calls the index state. It should be called once per crawl in order to setup the\ncrawl.\n\n@return The initial state.", "Compute Cholesky decomposition of A\n\n@param A symmetric, positive definite matrix (only upper half is used)\n@return upper triangular matrix U such that A = U' * U", "Use this API to update snmpmanager.", "This method returns an array containing all of the unique identifiers\nfor which data has been stored in the Var2Data block.\n\n@return array of unique identifiers", "Returns an iterator of all direct and indirect extents of this class.\n\n@return The extents iterator" ]
@SuppressWarnings("WeakerAccess") public ByteBuffer getRawData() { if (rawData != null) { rawData.rewind(); return rawData.slice(); } return null; }
[ "Get the raw bytes of the beat grid as it was read over the network. This can be used to analyze fields\nthat have not yet been reliably understood, and is also used for storing the beat grid in a cache file.\nThis is not available when the beat grid was loaded by Crate Digger.\n\n@return the bytes that make up the beat grid" ]
[ "Called when the end type is changed.", "Ask the specified player for a Track menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the track menu\n\n@throws Exception if there is a problem obtaining the menu", "Load a list of entities using the information in the context\n\n@param session The session\n@param lockOptions The locking details\n@param ogmContext The context with the information to load the entities\n@return the list of entities corresponding to the given context", "This method extracts task data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Create a random video.\n\n@return random video.", "Use this API to update tmtrafficaction resources.", "Gets the current Stack. If the stack is not set, a new empty instance is created and set.\n@return", "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter", "Replace error msg.\n\n@param origMsg\nthe orig msg\n@return the string" ]
private static CmsObject adjustSiteRootIfNecessary(final CmsObject cms, final CmsModule module) throws CmsException { CmsObject cmsClone; if ((null == module.getSite()) || cms.getRequestContext().getSiteRoot().equals(module.getSite())) { cmsClone = cms; } else { cmsClone = OpenCms.initCmsObject(cms); cmsClone.getRequestContext().setSiteRoot(module.getSite()); } return cmsClone; }
[ "Adjusts the site root and returns a cloned CmsObject, iff the module has set an import site that differs\nfrom the site root of the CmsObject provided as argument. Otherwise returns the provided CmsObject unchanged.\n@param cms The original CmsObject.\n@param module The module where the import site is read from.\n@return The original CmsObject, or, if necessary, a clone with adjusted site root\n@throws CmsException see {@link OpenCms#initCmsObject(CmsObject)}" ]
[ "Use this API to fetch a appfwglobal_auditnslogpolicy_binding resources.", "Get a message bundle of the given type.\n\n@param type the bundle type class\n\n@return the bundle", "Checks if provided class package is on the exclude list\n\n@param classPackageName\nname of class package\n@return false if class package is on the {@link #excludePackages} list", "Returns a new ObjectPool for the specified connection descriptor.\nOverride this method to setup your own pool.\n@param jcd the connection descriptor for which to set up the pool\n@return a newly created object pool", "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name .", "Detects if the current browser is a BlackBerry device AND\nhas a more capable recent browser. Excludes the Playbook.\nExamples, Storm, Bold, Tour, Curve2\nExcludes the new BlackBerry OS 6 and 7 browser!!\n@return detection of a Blackberry device with a better browser", "Get the bytes which represent the payload of this field, without the leading type tag and length header, as\na newly-allocated byte array.\n\n@return a new byte array containing a copy of the bytes this field contains", "Use this API to fetch cachepolicylabel_binding resource of given name .", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise" ]
public static void createMetadataCache(SlotReference slot, int playlistId, File cache) throws Exception { createMetadataCache(slot, playlistId, cache, null); }
[ "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." ]
[ "Return the array of field objects pulled from the data object.", "Save the current file as the given type.\n\n@param file target file\n@param type file type", "Calculate the file to compile a jasper report template to.\n\n@param configuration the configuration for the current app.\n@param jasperFileXml the jasper report template in xml format.\n@param extension the extension of the compiled report template.\n@param logger the logger to log errors to if an occur.", "Extracts the list of columns from the given field list.\n\n@param fields The fields\n@return The corresponding columns", "This method is called to format a duration.\n\n@param value duration value\n@return formatted duration value", "Use this API to fetch auditnslogpolicy_vpnvserver_binding resources of given name .", "Load a system library from a stream. Copies the library to a temp file\nand loads from there.\n\n@param libname name of the library (just used in constructing the library name)\n@param is InputStream pointing to the library", "Checks attributes for rejection\n\n@param rejectedAttributes gathers information about failed attributes\n@param attributeValue the attribute value", "Start the host controller services.\n\n@throws Exception" ]
protected EObject forceCreateModelElementAndSet(Action action, EObject value) { EObject result = semanticModelBuilder.create(action.getType().getClassifier()); semanticModelBuilder.set(result, action.getFeature(), value, null /* ParserRule */, currentNode); insertCompositeNode(action); associateNodeWithAstElement(currentNode, result); return result; }
[ "Assigned action code" ]
[ "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", "Returns the screen height in pixels\n\n@param context is the context to get the resources\n@return the screen height in pixels", "Extracts location result from intent object\n\n@param intent valid intent object\n@return location result.\n@since 1.1.0", "This method reads a byte array from the input stream.\n\n@param is the input stream\n@param size number of bytes to read\n@return byte array\n@throws IOException on file read error or EOF", "Creates a spin wrapper for a data input of a given data format.\n\n@param input the input to wrap\n@param format the data format of the input\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')", "Copy the contents of this buffer begginning from the srcOffset to a destination byte array\n@param srcOffset\n@param destArray\n@param destOffset\n@param size", "Returns information for a specific path id\n\n@param pathId ID of path\n@param clientUUID client UUID\n@param filters filters to set on endpoint\n@return EndpointOverride\n@throws Exception exception", "Write a project file in SDEF format to an output stream.\n\n@param projectFile ProjectFile instance\n@param out output stream", "poll the response queue for response\n\n@param timeout timeout amount\n@param timeUnit timeUnit of timeout\n@return same result of BlockQueue.poll(long, TimeUnit)\n@throws InterruptedException" ]
private Duration assignmentDuration(Task task, Duration work) { Duration result = work; if (result != null) { if (result.getUnits() == TimeUnit.PERCENT) { Duration taskWork = task.getWork(); if (taskWork != null) { result = Duration.getInstance(taskWork.getDuration() * result.getDuration(), taskWork.getUnits()); } } } return result; }
[ "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance" ]
[ "Update artifact provider\n\n@param gavc String\n@param provider String", "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.", "Read properties from the raw header data.\n\n@param stream input stream", "Adds a new Site matcher object to the map of server names.\n\n@param matcher the SiteMatcher of the server\n@param site the site to add", "When it is time to actually close a client, do so, and clean up the related data structures.\n\n@param client the client which has been idle for long enough to be closed", "The length of the region left to the completion offset that is part of the\nreplace region.", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "Configures a text field to look like a filter box for a table.\n\n@param searchBox the text field to configure", "Answer the SQL-Clause for a FieldCriteria\n\n@param c FieldCriteria\n@param cld ClassDescriptor" ]
public static Iterable<BoxUser.Info> getAppUsersByExternalAppUserID(final BoxAPIConnection api, final String externalAppUserId, final String... fields) { return getUsersInfoForType(api, null, null, externalAppUserId, fields); }
[ "Gets any app users that has an exact match with the externalAppUserId term.\n@param api the API connection to be used when retrieving the users.\n@param externalAppUserId the external app user id that has been set for app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return an iterable containing users matching the given email" ]
[ "Extracts the last revision id from the JSON response returned\nby the API after an edit\n\n@param response\nthe response as returned by Mediawiki\n@return\nthe new revision id of the edited entity\n@throws JsonMappingException", "Generates a HashMap used to store expanded state for items in the list\non configuration change or whenever onResume is called.\n\n@return A HashMap containing the expanded state of all parents", "Set the role info for this user. If set, this will be used to set the user's authorizations.\n\n@param roles the roles\n@since 1.10.0", "Rollback an app to a specific release.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param releaseUuid Release UUID. See {@link #listReleases} for a list of the app's releases.\n@return the release object", "Issue the database statements to drop the table associated with a class.\n\n<p>\n<b>WARNING:</b> This is [obviously] very destructive and is unrecoverable.\n</p>\n\n@param connectionSource\nAssociated connection source.\n@param dataClass\nThe class for which a table will be dropped.\n@param ignoreErrors\nIf set to true then try each statement regardless of {@link SQLException} thrown previously.\n@return The number of statements executed to do so.", "to do with XmlId value being strictly of type 'String'", "For internal use! This method creates real new PB instances", "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none.", "Stores an new entry in the cache." ]
public static BMatrixRMaj elementLessThan(DMatrixRMaj A , double value , BMatrixRMaj output ) { if( output == null ) { output = new BMatrixRMaj(A.numRows,A.numCols); } output.reshape(A.numRows, A.numCols); int N = A.getNumElements(); for (int i = 0; i < N; i++) { output.data[i] = A.data[i] < value; } return output; }
[ "Applies the &gt; operator to each element in A. Results are stored in a boolean matrix.\n\n@param A Input matrx\n@param value value each element is compared against\n@param output (Optional) Storage for results. Can be null. Is reshaped.\n@return Boolean matrix with results" ]
[ "Reopen the associated static logging stream. Set to null to redirect to System.out.", "Removes the task from the specified project. The task will still exist\nin the system, but it will not be in the project anymore.\n\nReturns an empty data block.\n\n@param task The task to remove from a project.\n@return Request object", "Print units.\n\n@param value units value\n@return units value", "Default settings set type loader to ClasspathTypeLoader if not set before.", "Returns the z-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the z coordinate", "Returns the index of the segment containing the first byte outside the network prefix.\nWhen networkPrefixLength is null, or it matches or exceeds the bit length, returns the segment count.\n\n@param networkPrefixLength\n@param byteLength\n@return", "Adds the allowed values. Override for attributes who should not use the allowed values.\n\n@param result the node to add the allowed values to\n@param validator the validator to get the allowed values from", "Rebuild logging systems with updated mode\n@param newMode log mode", "Get the Json Schema of the input path, assuming the path contains just one\nschema version in all files under that path." ]
public void localCommit() { if (log.isDebugEnabled()) log.debug("commit was called"); if (!this.isInLocalTransaction) { throw new TransactionNotInProgressException("Not in transaction, call begin() before commit()"); } try { if(!broker.isManaged()) { if (batchCon != null) { batchCon.commit(); } else if (con != null) { con.commit(); } } else { if(log.isDebugEnabled()) log.debug( "Found managed environment setting in PB, will skip Connection.commit() call"); } } catch (SQLException e) { log.error("Commit on underlying connection failed, try to rollback connection", e); this.localRollback(); throw new TransactionAbortedException("Commit on connection failed", e); } finally { this.isInLocalTransaction = false; restoreAutoCommitState(); this.releaseConnection(); } }
[ "Call commit on the underlying connection." ]
[ "Reads primary key information from current RS row and generates a\n\ncorresponding Identity, and returns a proxy from the Identity.\n\n@throws PersistenceBrokerException\nif there was an error creating the proxy class", "Return the entity of a resource\n\n@param resource the resource\n@param <T> the type of the resource's entity\n@param <R> the resource type\n@return the resource's entity", "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", "Disassociate a name with an object\n@param name The name of an object.\n@exception ObjectNameNotFoundException No object exists in the database with that name.", "Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder", "Reads outline code custom field values and populates container.", "Returns a Span that covers all rows beginning with a prefix String parameters will be encoded\nas UTF-8", "Add a '&gt;=' clause so the column must be greater-than or equals-to the value.", "Adds a JSON string representing to the DB.\n\n@param obj the JSON to record\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR" ]
private String getCacheFormatEntry() throws IOException { ZipEntry zipEntry = zipFile.getEntry(CACHE_FORMAT_ENTRY); InputStream is = zipFile.getInputStream(zipEntry); try { Scanner s = new Scanner(is, "UTF-8").useDelimiter("\\A"); String tag = null; if (s.hasNext()) tag = s.next(); return tag; } finally { is.close(); } }
[ "Find and read the cache format entry in a metadata cache file.\n\n@return the content of the format entry, or {@code null} if none was found\n\n@throws IOException if there is a problem reading the file" ]
[ "Adds the specified type to this frame, and returns a new object that implements this type.", "adds a value to the list\n\n@param value the value", "Parses the list of query items for the query facet.\n@param queryFacetObject JSON object representing the node with the query facet.\n@return list of query options\n@throws JSONException if the list cannot be parsed.", "Links the two field names into a single left.right field name.\nIf the left field is empty, right is returned\n\n@param left one field name\n@param right the other field name\n\n@return left.right or right if left is an empty string", "Uninstall current location collection client.\n\n@return true if uninstall was successful", "Read one collection element from the current row of the JDBC result set\n\n@param optionalOwner the collection owner\n@param optionalKey the collection key\n@param persister the collection persister\n@param descriptor the collection aliases\n@param rs the result set\n@param session the session\n@throws HibernateException if an error occurs\n@throws SQLException if an error occurs during the query execution", "Returns the decoded string, in case it contains non us-ascii characters.\nReturns the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.\n\n@param str string to be decoded\n@return the decoded string, in case it contains non us-ascii characters;\nor the same string if it doesn't or the passed value in case\nof an UnsupportedEncodingException.", "Convert the Phoenix representation of a duration into a Duration instance.\n\n@param value Phoenix duration\n@return Duration instance", "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time." ]
public Set<RateType> getRateTypes() { @SuppressWarnings("unchecked") Set<RateType> rateSet = get(KEY_RATE_TYPES, Set.class); if (rateSet == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(rateSet); }
[ "Get the deferred flag. Exchange rates can be deferred or real.time.\n\n@return the deferred flag, or {code null}." ]
[ "Splits timephased work segments in line with cost rates. Note that this is\nan approximation - where a rate changes during a working day, the second\nrate is used for the whole day.\n\n@param table cost rate table\n@param calendar calendar used by this assignment\n@param work timephased work segment\n@param rateIndex rate applicable at the start of the timephased work segment\n@return list of segments which replace the one supplied by the caller", "Returns all the URL that should be inside the classpath. This includes the jar itself if any.\n\n@throws JqmPayloadException", "Release the rebalancing permit for a particular node id\n\n@param nodeId The node id whose permit we want to release", "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", "Retrieves a vertex attribute as a float array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatVec(String, FloatBuffer)\n@see #getFloatArray(String)", "Returns the ARGB components for all pixels in this image\n\n@return an array containing an array for each ARGB components in that order.", "Checks whether an XPath expression starts with an XPath eventable condition.\n\n@param dom The DOM String.\n@param eventableCondition The eventable condition.\n@param xpath The XPath.\n@return boolean whether xpath starts with xpath location of eventable condition xpath\ncondition\n@throws XPathExpressionException\n@throws CrawljaxException when eventableCondition is null or its inXPath has not been set", "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance", "Common mechanism to convert Synchro commentary recorss into notes.\n\n@param rows commentary table rows\n@return note text" ]
public FormInput inputField(InputType type, Identification identification) { FormInput input = new FormInput(type, identification); this.formInputs.add(input); return input; }
[ "Specifies an input field to assign a value to. Crawljax first tries to match the found HTML\ninput element's id and then the name attribute.\n\n@param type\nthe type of input field\n@param identification\nthe locator of the input field\n@return an InputField" ]
[ "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator", "Build call for getCharactersCharacterIdShip\n\n@param characterId\nAn EVE character ID (required)\n@param datasource\nThe server name you would like data from (optional, default to\ntranquility)\n@param ifNoneMatch\nETag from a previous request. A 304 will be returned if this\nmatches the current ETag (optional)\n@param token\nAccess token to use if unable to set a header (optional)\n@param callback\nCallback for upload/download progress\n@return Call to execute\n@throws ApiException\nIf fail to serialize the request body object", "Determine the enum value corresponding to the track type found in the packet.\n\n@return the proper value", "Scale all widgets in Main Scene hierarchy\n@param scale", "determinates if this triangle contains the point p.\n@param p the query point\n@return true iff p is not null and is inside this triangle (Note: on boundary is considered inside!!).", "Use this API to unset the properties of cmpparameter resource.\nProperties that need to be unset are specified in args array.", "Returns a string describing 'time' as a time relative to 'now'.\n\nSee {@link android.text.format.DateUtils#getRelativeTimeSpanString} for full docs.\n\n@param context the context\n@param time the time to describe\n@param flags a bit mask for formatting options, usually FORMAT_ABBREV_RELATIVE\n@return a string describing 'time' as a time relative to 'now'.", "Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG", "Returns a count of in-window events.\n\n@return the the count of in-window events." ]
int getItemViewType(T content) { Class prototypeClass = getPrototypeClass(content); validatePrototypeClass(prototypeClass); return getItemViewType(prototypeClass); }
[ "Return the item view type used by the adapter to implement recycle mechanism.\n\n@param content to be rendered.\n@return an integer that represents the renderer inside the adapter." ]
[ "Print out the configuration that the client needs to make a request.\n\n@param json the output writer.\n@throws JSONException", "Use this API to fetch dnssuffix resource of given name .", "Encodes the given source into an encoded String using the rules specified\nby the given component and with the given options.\n@param source the source string\n@param encoding the encoding of the source string\n@param type the URI component for the source\n@return the encoded URI\n@throws IllegalArgumentException when the given uri parameter is not a valid URI", "This method is called to alert project listeners to the fact that\na relation has been written to a project file.\n\n@param relation relation instance", "Register the given common classes with the ClassUtils cache.", "Make a copy.", "Gets the txinfo cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value from the property value {@value #TX_INFO_CACHE_WEIGHT} if\nit is set, else the value of the default value {@value #TX_INFO_CACHE_WEIGHT_DEFAULT}", "Queues up a callback to be removed and invoked on the next change event.", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors." ]
public static ServiceActivator create(final ModelNode endpointConfig, final URI managementURI, final String serverName, final String serverProcessName, final String authKey, final boolean managementSubsystemEndpoint, final Supplier<SSLContext> sslContextSupplier) { return new DomainServerCommunicationServices(endpointConfig, managementURI, serverName, serverProcessName, authKey, managementSubsystemEndpoint, sslContextSupplier); }
[ "Create a new service activator for the domain server communication services.\n\n@param endpointConfig the endpoint configuration\n@param managementURI the management connection URI\n@param serverName the server name\n@param serverProcessName the server process name\n@param authKey the authentication key\n@param managementSubsystemEndpoint whether to use the mgmt subsystem endpoint or not\n@return the service activator" ]
[ "Counts one entity. Every once in a while, the current time is checked so\nas to print an intermediate report roughly every ten seconds.", "Computes the null space using QR decomposition. This is much faster than using SVD\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space", "Adds the specified list of objects at the end of the array.\n\n@param collection The objects to add at the end of the array.", "Returns an Organization that suits the Module or null if there is none\n\n@param dbModule DbModule\n@return DbOrganization", "Map Synchro constraints to MPXJ constraints.\n\n@param task task\n@param row Synchro constraint data", "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment.", "Configures a RequestBuilder to send an RPC request when the RequestBuilder\nis intended to be returned through the asynchronous proxy interface.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@param callback callback handler\n\n@return a RequestBuilder object that is ready to have its\n{@link RequestBuilder#send()} method invoked.", "Deletes an email alias from this user's account.\n\n<p>The IDs of the user's email aliases can be found by calling {@link #getEmailAliases}.</p>\n\n@param emailAliasID the ID of the email alias to delete.", "Reads timephased assignment data.\n\n@param calendar current calendar\n@param assignment assignment data\n@param type flag indicating if this is planned or complete work\n@return list of timephased resource assignment instances" ]
public static base_responses add(nitro_service client, vlan resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { vlan addresources[] = new vlan[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new vlan(); addresources[i].id = resources[i].id; addresources[i].aliasname = resources[i].aliasname; addresources[i].ipv6dynamicrouting = resources[i].ipv6dynamicrouting; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add vlan resources." ]
[ "Mark the top level deployment as being a JPA deployment. If the deployment is not a top level deployment the parent is\nmarked instead", "Create a single node representing an embedded element.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node;", "Check whether the delegate type implements or extends all decorated types.\n\n@param decorator\n@throws DefinitionException If the delegate type doesn't implement or extend all decorated types", "Convert any number class to array of integer.\n\n@param <T> Type.\n@param array Array.\n@return Integer array.", "Use this API to fetch vpntrafficpolicy_vpnglobal_binding resources of given name .", "Get the max extent as a envelop object.", "Creates a random matrix where all elements are zero but diagonal elements. Diagonal elements\nrandomly drawn from a uniform distribution from min to max, inclusive.\n\n@param numRows Number of rows in the returned matrix..\n@param numCols Number of columns in the returned matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "get the last segment at the moment\n\n@return the last segment", "Reads a data block and adds it to the list of blocks.\n\n@param text RTF data\n@param offset current offset\n@param length next block length\n@param blocks list of blocks\n@return next offset" ]
public static List<ContentRepositoryElement> listFiles(final Path rootPath, Path tempDir, final ContentFilter filter) throws IOException { List<ContentRepositoryElement> result = new ArrayList<>(); if (Files.exists(rootPath)) { if(isArchive(rootPath)) { return listZipContent(rootPath, filter); } Files.walkFileTree(rootPath, new FileVisitor<Path>() { @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { return FileVisitResult.CONTINUE; } @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { if (filter.acceptFile(rootPath, file)) { result.add(ContentRepositoryElement.createFile(formatPath(rootPath.relativize(file)), Files.size(file))); } return FileVisitResult.CONTINUE; } @Override public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException { return FileVisitResult.CONTINUE; } @Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { if (filter.acceptDirectory(rootPath, dir)) { String directoryPath = formatDirectoryPath(rootPath.relativize(dir)); if(! "/".equals(directoryPath)) { result.add(ContentRepositoryElement.createFolder(directoryPath)); } } return FileVisitResult.CONTINUE; } private String formatDirectoryPath(Path path) { return formatPath(path) + '/'; } private String formatPath(Path path) { return path.toString().replace(File.separatorChar, '/'); } }); } else { Path file = getFile(rootPath); if(isArchive(file)) { Path relativePath = file.relativize(rootPath); Path target = createTempDirectory(tempDir, "unarchive"); unzip(file, target); return listFiles(target.resolve(relativePath), tempDir, filter); } else { throw new FileNotFoundException(rootPath.toString()); } } return result; }
[ "List files in a path according to the specified filter.\n@param rootPath the path from which we are listing the files.\n@param filter the filter to be applied.\n@return the list of files / directory.\n@throws IOException" ]
[ "Operators which affect the variables to its left and right", "This method validates all relationships for a task, removing\nany which have been incorrectly read from the MPP file and\npoint to a parent task.\n\n@param task task under test", "Sets the left padding for all cells in the row.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator", "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "Create a text message that will be stored in the database. Must be called inside a transaction.", "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", "Get a default style. If null a simple black line style will be returned.\n\n@param geometryType the name of the geometry type (point, line, polygon)" ]
public void logWarning(final String message) { messageQueue.add(new LogEntry() { @Override public String getMessage() { return message; } }); }
[ "Log a free-form warning\n@param message the warning message. Cannot be {@code null}" ]
[ "Removes the given value to the set.\n\n@return true if the value was actually removed", "Generates a diagonal matrix with the input vector on its diagonal\n\n@param vector The given matrix A.\n@return diagonalMatrix The matrix with the vectors entries on its diagonal", "Use this API to update lbsipparameters.", "Collects all the fields from columns and also the fields not bounds to columns\n@return List<ColumnProperty>", "Set the header names to forward from the request. Should not be defined if all is set to true\n\n@param names the header names.", "The main method. See the class documentation.", "Returns the dimensions for the video\n@param videoFile Video file\n@return the dimensions\n@throws IOException", "Wait for the read side to close. Used when the writer needs to know when\nthe reader finishes consuming a message.", "These exact lines are shared between three different tools, so\nthey have been moved here to reduce code duplication.\n@return The parsed command-line, with options removed." ]