query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void setOnQueryTextListener(@NonNull final SearchView.OnQueryTextListener listener) { if (searchView != null) { searchView.setOnQueryTextListener(listener); } else if (supportView != null) { supportView.setOnQueryTextListener(new android.support.v7.widget.SearchView.OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String query) { return listener.onQueryTextSubmit(query); } @Override public boolean onQueryTextChange(String newText) { return listener.onQueryTextChange(newText); } }); } else { throw new IllegalStateException(ERROR_NO_SEARCHVIEW); } }
[ "Sets a listener for user actions within the SearchView.\n\n@param listener the listener object that receives callbacks when the user performs\nactions in the SearchView such as clicking on buttons or typing a query." ]
[ "Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object", "Use this API to fetch bridgegroup_vlan_binding resources of given name .", "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", "Authenticate with the target database using OAuth.\n\n@param consumerSecret consumer secret\n@param consumerKey consumer key\n@param tokenSecret token secret\n@param token token\n@return this Replication instance to set more options\n@deprecated OAuth 1.0 implementation has been <a href=\"http://docs.couchdb.org/en/stable/whatsnew/2.1.html?highlight=oauth#upgrade-notes\"\ntarget=\"_blank\">removed in CouchDB 2.1</a>", "note that for read from file, this will just load all to memory. not fit\nif need to read a very large file. However for getting the host name.\nnormally it is fine.\n\nfor reading large file, should use iostream.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the content from path\n@throws IOException\nSignals that an I/O exception has occurred.", "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception", "Writes the data collected about classes to a file.", "Prints the error message as log message.\n\n@param level the log level", "Send a track metadata update announcement to all registered listeners." ]
public void run(Configuration configuration, List<CandidateSteps> candidateSteps, Story story, MetaFilter filter, State beforeStories) throws Throwable { run(configuration, new ProvidedStepsFactory(candidateSteps), story, filter, beforeStories); }
[ "Runs a Story with the given configuration and steps, applying the given\nmeta filter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param candidateSteps the List of CandidateSteps containing the candidate\nsteps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@param beforeStories the State before running any of the stories, if not\n<code>null</code>\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown." ]
[ "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", "Verifies if the new value is different from the field's old value. It's\nuseful, for example, in NoSQL databases that replicates data between\nservers. This verification prevents to mark a field as modified and to be\nreplicated needlessly.\n\n@param field\nthe field that we are checking before to be modified\n@param value\nthe new value\n@return true if the new and the old values are different and the value\nwas changed.", "Obtains a local date in Coptic calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Coptic local date, not null\n@throws DateTimeException if unable to create the date", "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar", "Returns a list of your geo-tagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param minUploadDate\nMinimum upload date. Photos with an upload date greater than or equal to this value will be returned. Set to null to not specify a date.\n@param maxUploadDate\nMaximum upload date. Photos with an upload date less than or equal to this value will be returned. Set to null to not specify a date.\n@param minTakenDate\nMinimum taken date. Photos with an taken date greater than or equal to this value will be returned. Set to null to not specify a date.\n@param maxTakenDate\nMaximum taken date. Photos with an taken date less than or equal to this value will be returned. Set to null to not specify a date.\n@param privacyFilter\nReturn photos only matching a certain privacy level. Valid values are:\n<ul>\n<li>1 public photos</li>\n<li>2 private photos visible to friends</li>\n<li>3 private photos visible to family</li>\n<li>4 private photos visible to friends & family</li>\n<li>5 completely private photos</li>\n</ul>\nSet to 0 to not specify a privacy Filter.\n\n@see com.flickr4java.flickr.photos.Extras\n@param sort\nThe order in which to sort returned photos. Deafults to date-posted-desc. The possible values are: date-posted-asc, date-posted-desc,\ndate-taken-asc, date-taken-desc, interestingness-desc, and interestingness-asc.\n@param extras\nA set of Strings controlling the extra information to fetch for each returned record. Currently supported fields are: license, date_upload,\ndate_taken, owner_name, icon_server, original_format, last_update, geo. Set to null or an empty set to not specify any extras.\n@param perPage\nNumber of photos to return per page. If this argument is 0, it defaults to 100. The maximum allowed value is 500.\n@param page\nThe page of results to return. If this argument is 0, it defaults to 1.\n@return photos\n@throws FlickrException", "Boot the controller. Called during service start.\n\n@param context the boot context\n@throws ConfigurationPersistenceException\nif the configuration failed to be loaded", "Use this API to rename a gslbservice resource.", "Parses command-line and removes metadata related to rebalancing.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Add tags to a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param tags\nThe tags\n@throws FlickrException" ]
public static TestSuiteResult unmarshal(File testSuite) throws IOException { try (InputStream stream = new FileInputStream(testSuite)) { return unmarshal(stream); } }
[ "Unmarshal test suite from given file." ]
[ "Retrieves or if necessary, creates a user alias to be used\nby a child criteria\n@param attribute The alias to set", "Find out which field in the incoming message contains the payload that is.\ndelivered to the service method.", "Whether the given grid dialect implements the specified facet or not.\n\n@param gridDialect the dialect of interest\n@param facetType the dialect facet type of interest\n@return {@code true} in case the given dialect implements the specified facet, {@code false} otherwise", "Get a list of comments made for a particular entity\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@return list of comments", "Called by spring on initialization.", "Add a number of days to the supplied date.\n\n@param date start date\n@param days number of days to add\n@return new date", "This method extracts predecessor data from a Planner file.\n\n@param plannerTask Task data", "Undo a prior removal using the supplied undo key.\n\n@param removalKey - The key returned from the call to removeRoleMapping.\n@return true if the undo was successful, false otherwise.", "Converts a time in milliseconds to the appropriate x coordinate for drawing something at that time.\n\n@param milliseconds the time at which something should be drawn\n\n@return the component x coordinate at which it should be drawn" ]
protected boolean checkPackageLocators(String classPackageName) { if (packageLocators != null && !disablePackageLocatorsScanning && classPackageName.length() > 0 && (packageLocatorsBasePackage == null || classPackageName.startsWith(packageLocatorsBasePackage))) { for (String packageLocator : packageLocators) { String[] splitted = classPackageName.split("\\."); if (es.cenobit.struts2.json.util.StringUtils.contains(splitted, packageLocator, false)) return true; } } return false; }
[ "Checks if class package match provided list of package locators\n\n@param classPackageName\nname of class package\n@return true if class package is on the {@link #packageLocators} list" ]
[ "Add the value to list of values to be used as part of the\nevaluation of this indicator.\n\n@param index position in the list\n@param value evaluation value", "Does the server support log downloads?\n\n@param cliGuiCtx The context.\n@return <code>true</code> if the server supports log downloads,\n<code>false</code> otherwise.", "Extracts the zip file to the output folder\n\n@param zipFile ZIP File to extract\n@param outputFolder Output Folder\n@return A Collection with the extracted files\n@throws IOException I/O Error", "Write a resource.\n\n@param record resource instance\n@throws IOException", "For the DC to check whether an operation should be ignored on the slave, if the slave is set up to ignore config not relevant to it\n\n@param domainResource the domain root resource\n@param serverConfigs the server configs the slave is known to have\n@param pathAddress the address of the operation to check if should be ignored or not", "Returns the directory of the file.\n\n@param filePath Path of the file.\n@return The directory string or {@code null} if\nthere is no parent directory.\n@throws IllegalArgumentException if path is bad", "Adds a leaf node, which could be a task or a milestone.\n\n@param parentName parent bar name\n@param row row to add\n@param task task to populate with data from the row", "Use this API to delete nssimpleacl.", "Sets the locale for which the property should be read.\n\n@param locale the locale for which the property should be read." ]
public void setIntVec(IntBuffer data) { if (data == null) { throw new IllegalArgumentException("Input buffer for indices cannot be null"); } if (getIndexSize() != 4) { throw new UnsupportedOperationException("Cannot update integer indices with short array"); } if (data.isDirect()) { if (!NativeIndexBuffer.setIntVec(getNative(), data)) { throw new UnsupportedOperationException("Input array is wrong size"); } } else if (data.hasArray()) { if (!NativeIndexBuffer.setIntArray(getNative(), data.array())) { throw new IllegalArgumentException("Data array incompatible with index buffer"); } } else { throw new UnsupportedOperationException("IntBuffer type not supported. Must be direct or have backing array"); } }
[ "Updates the indices in the index buffer from a Java IntBuffer.\nAll of the entries of the input int buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if int buffer is wrong size" ]
[ "Use this API to update autoscaleprofile.", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "Get a random pod that provides the specified service in the specified namespace.\n\n@param client\nThe client instance to use.\n@param name\nThe name of the service.\n@param namespace\nThe namespace of the service.\n\n@return The pod or null if no pod matches.", "Add a shutdown listener, which gets called when all requests completed on shutdown.\n\n@param listener the shutdown listener", "Returns the service id with the propertype.\n\n@param serviceReference\n@return long value for the service id", "Sets the alias. By default the entire attribute path participates in the alias\n@param alias The name of the alias to set", "Display a Notification message\n@param event", "This internal method is used to convert from a Date instance to an\ninteger representing the number of minutes past midnight.\n\n@param date date instance\n@return minutes past midnight as an integer", "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources." ]
private List<Group> getGroups() throws Exception { List<Group> groups = new ArrayList<Group>(); List<Group> sourceGroups = PathOverrideService.getInstance().findAllGroups(); // loop through the groups for (Group sourceGroup : sourceGroups) { Group group = new Group(); // add all methods ArrayList<Method> methods = new ArrayList<Method>(); for (Method sourceMethod : EditService.getInstance().getMethodsFromGroupId(sourceGroup.getId(), null)) { Method method = new Method(); method.setClassName(sourceMethod.getClassName()); method.setMethodName(sourceMethod.getMethodName()); methods.add(method); } group.setMethods(methods); group.setName(sourceGroup.getName()); groups.add(group); } return groups; }
[ "Get all Groups\n\n@return\n@throws Exception" ]
[ "Transform the root bone of the pose by the given matrix.\n@param trans matrix to transform the pose by.", "Create an LBuffer from a given file.\n@param file\n@return\n@throws IOException", "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", "Should the URI be cached?\n\n@param requestUri request URI\n@return true when caching is needed", "Calculates all dates of the series.\n@return all dates of the series in milliseconds.", "Use this API to fetch a rewriteglobal_binding resource .", "Deletes the first element from the receiver that matches the specified element.\nDoes nothing, if no such matching element is contained.\n\nTests elements for equality or identity as specified by <tt>testForEquality</tt>.\nWhen testing for equality, two elements <tt>e1</tt> and\n<tt>e2</tt> are <i>equal</i> if <tt>(e1==null ? e2==null :\ne1.equals(e2))</tt>.)\n\n@param testForEquality if true -> tests for equality, otherwise for identity.\n@param element the element to be deleted.", "Prints a few aspects of the TreebankLanguagePack, just for debugging.", "Use this API to update csparameter." ]
protected TextBox createTextBox(BlockBox contblock, Text n) { TextBox text = new TextBox(n, (Graphics2D) contblock.getGraphics().create(), contblock.getVisualContext().create()); text.setOrder(next_order++); text.setContainingBlockBox(contblock); text.setClipBlock(contblock); text.setViewport(viewport); text.setBase(baseurl); return text; }
[ "Creates a text box with the given parent and text node assigned.\n@param contblock The parent node (and the containing block in the same time)\n@param n The corresponding text node in the DOM tree.\n@return The new text box." ]
[ "Extract the subscription ID from a resource ID string.\n@param id the resource ID string\n@return the subscription ID", "Use this API to clear nssimpleacl.", "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Validates the wrapped value and returns a localized error message in case of invalid values.\n@return <code>null</code> if the value is valid, a suitable localized error message otherwise.", "open a readable or writeable FileChannel\n\n@param file file object\n@param mutable writeable\n@return open the FileChannel\n@throws IOException any io exception", "Use this API to fetch all the systemcore resources that are configured on netscaler.", "Write all state items to the log file.\n\n@param fileRollEvent the event to log", "This method only overrides properties that are specific from Cube like await strategy or before stop events.\n\n@param overrideDockerCompositions\nthat contains information to override.", "Renames this folder.\n\n@param newName the new name of the folder." ]
public static DMatrix2 extractColumn( DMatrix2x2 a , int column , DMatrix2 out ) { if( out == null) out = new DMatrix2(); switch( column ) { case 0: out.a1 = a.a11; out.a2 = a.a21; break; case 1: out.a1 = a.a12; out.a2 = a.a22; break; default: throw new IllegalArgumentException("Out of bounds column. column = "+column); } return out; }
[ "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column." ]
[ "Clones the given field.\n\n@param fieldDef The field descriptor\n@param prefix A prefix for the name\n@return The cloned field", "Creates the parents of nested XML elements if necessary.\n@param xmlContent the XML content that is edited.\n@param xmlPath the path of the (nested) element, for which the parents should be created\n@param l the locale for which the XML content is edited.", "Compute pose of skeleton at the given time from the animation channels.\n@param timeInSec animation time in seconds.", "Appends the query part for the facet to the query string.\n@param query The current query string.\n@param name The name of the facet parameter, e.g. \"limit\", \"order\", ....\n@param value The value to set for the parameter specified by name.", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15", "Use this API to fetch appflowpolicy_appflowpolicylabel_binding resources of given name .", "This method extracts predecessor data from an MSPDI file.\n\n@param task Task data", "Check if one Renderer is recyclable getting it from the convertView's tag and checking the\nclass used.\n\n@param convertView to get the renderer if is not null.\n@param content used to get the prototype class.\n@return true if the renderer is recyclable.", "Apply content type to response with result provided.\n\nIf `result` is an error then it might not apply content type as requested:\n* If request is not ajax request, then use `text/html`\n* If request is ajax request then apply requested content type only when `json` or `xml` is requested\n* otherwise use `text/html`\n\n@param result\nthe result used to check if it is error result\n@return this `ActionContext`." ]
public static vpnglobal_auditnslogpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_auditnslogpolicy_binding obj = new vpnglobal_auditnslogpolicy_binding(); vpnglobal_auditnslogpolicy_binding response[] = (vpnglobal_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a vpnglobal_auditnslogpolicy_binding resources." ]
[ "Retrieve the calendar used internally for timephased baseline calculation.\n\n@return baseline calendar", "Compute morse.\n\n@param term the term\n@return the string", "Close the Closeable. Logging a warning if any problems occur.\n\n@param c the thing to close", "Sets the right padding character for all cells in the row.\n@param paddingRightChar new padding character, ignored if null\n@return this to allow chaining", "Request the list of all tracks in the specified slot, given a dbserver connection to a player that has already\nbeen set up.\n\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 track list entry items\n\n@throws IOException if there is a communication problem\n@throws InterruptedException if the thread is interrupted while trying to lock the client for menu operations\n@throws TimeoutException if we are unable to lock the client for menu operations", "Get the first non-white Y point\n@param img Image in memory\n@return the trimmed y start", "Get the possible beans for the given element\n\n@param resolvable The resolving criteria\n@return An unmodifiable set of matching beans", "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "Executes the sequence of operations" ]
public static ModelNode createBootUpdates(final String serverName, final ModelNode domainModel, final ModelNode hostModel, final DomainController domainController, final ExpressionResolver expressionResolver) { final ManagedServerOperationsFactory factory = new ManagedServerOperationsFactory(serverName, domainModel, hostModel, domainController, expressionResolver); return factory.getBootUpdates(); }
[ "Create a list of operations required to a boot a managed server.\n\n@param serverName the server name\n@param domainModel the complete domain model\n@param hostModel the local host model\n@param domainController the domain controller\n@return the list of boot operations" ]
[ "If this address section is equivalent to the mask for a CIDR prefix block, it returns that prefix length.\nOtherwise, it returns null.\nA CIDR network mask is an address with all 1s in the network section and then all 0s in the host section.\nA CIDR host mask is an address with all 0s in the network section and then all 1s in the host section.\nThe prefix length is the length of the network section.\n\nAlso, keep in mind that the prefix length returned by this method is not equivalent to the prefix length used to construct this object.\nThe prefix length used to construct indicates the network and host section of this address.\nThe prefix length returned here indicates the whether the value of this address can be used as a mask for the network and host\nsection of any other address. Therefore the two values can be different values, or one can be null while the other is not.\n\nThis method applies only to the lower value of the range if this section represents multiple values.\n\n@param network whether to check for a network mask or a host mask\n@return the prefix length corresponding to this mask, or null if there is no such prefix length", "Generate query part for the facet, without filters.\n@param query The query, where the facet part should be added", "Set the values of all the knots.\nThis version does not require the \"extra\" knots at -1 and 256\n@param x the knot positions\n@param rgb the knot colors\n@param types the knot types", "Use this API to fetch auditnslogpolicy_authenticationvserver_binding resources of given name .", "Get the possible beans for the given element\n\n@param resolvable The resolving criteria\n@return An unmodifiable set of matching beans", "compute Sin using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result.", "Decode '%HH'.", "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.", "Remove a DropPasteWorker from the helper.\n@param worker the worker that should be removed" ]
public static csvserver_cachepolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_cachepolicy_binding obj = new csvserver_cachepolicy_binding(); obj.set_name(name); csvserver_cachepolicy_binding response[] = (csvserver_cachepolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch csvserver_cachepolicy_binding resources of given name ." ]
[ "Flushes all changes to disk.", "Return the list of module dependencies\n\n@param moduleName\n@param moduleVersion\n@param fullRecursive\n@param corporate\n@param thirdParty\n@return List<Dependency>\n@throws GrapesCommunicationException", "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress.\n@throws BoxAPIException if an error occurs while writing to the connection.", "This method is called to try to catch any invalid tasks that may have sneaked past all our other checks.\nThis is done by validating the tasks by task ID.", "Attaches locale groups to the copied page.\n@param copiedPage the copied page.\n@throws CmsException thrown if the root cms cannot be retrieved.", "Makes it possible to uniquify a collection of objects which are normally\nnon-hashable. Alternatively, it lets you define an alternate hash function\nfor them for limited-use hashing.", "Join the Collection of Strings using the specified delimiter.\n\n@param s\nThe String collection\n@param delimiter\nThe delimiter String\n@return The joined String", "Send a beat grid update announcement to all registered listeners.\n\n@param player the player whose beat grid information has changed\n@param beatGrid the new beat grid associated with that player, if any", "Gets information about a trashed folder that's limited to a list of specified fields.\n@param folderID the ID of the trashed folder.\n@param fields the fields to retrieve.\n@return info about the trashed folder containing only the specified fields." ]
protected void destroyRequest(AsyncResourceRequest<V> resourceRequest) { if(resourceRequest != null) { try { // To hand control back to the owner of the // AsyncResourceRequest, treat "destroy" as an exception since // there is no resource to pass into useResource, and the // timeout has not expired. Exception e = new UnreachableStoreException("Client request was terminated while waiting in the queue."); resourceRequest.handleException(e); } catch(Exception ex) { logger.error("Exception while destroying resource request:", ex); } } }
[ "A safe wrapper to destroy the given resource request." ]
[ "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.", "Initialize the fat client for the given store.\n\n1. Updates the coordinatorMetadata 2.Gets the new store configs from the\nconfig file 3.Creates a new @SocketStoreClientFactory 4. Subsequently\ncaches the @StoreClient obtained from the factory.\n\n\nThis is synchronized because if Coordinator Admin is already doing some\nchange we want the AsyncMetadataVersionManager to wait.\n\n@param storeName", "Read all top level tasks.", "Return the list of corporate GroupId prefix configured for an organization.\n\n@param organizationId String Organization name\n@return Response A list of corporate groupId prefix in HTML or JSON", "Return collection of path Ids in priority order\n\n@param profileId ID of profile\n@return collection of path Ids in priority order", "Recovers the state of synchronization for a namespace in case a system failure happened.\nThe goal is to revert the namespace to a known, good state. This method itself is resilient\nto failures, since it doesn't delete any documents from the undo collection until the\ncollection is in the desired state with respect to those documents.", "Write an unsigned short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Create parameter converters from methods annotated with @AsParameterConverter\n@see {@link AbstractStepsFactory}", "Get all views from the list content\n@return list of views currently visible" ]
private void centerOnCurrentItem() { if(!mPieData.isEmpty()) { PieModel current = mPieData.get(getCurrentItem()); int targetAngle; if(mOpenClockwise) { targetAngle = (mIndicatorAngle - current.getStartAngle()) - ((current.getEndAngle() - current.getStartAngle()) / 2); if (targetAngle < 0 && mPieRotation > 0) targetAngle += 360; } else { targetAngle = current.getStartAngle() + (current.getEndAngle() - current.getStartAngle()) / 2; targetAngle += mIndicatorAngle; if (targetAngle > 270 && mPieRotation < 90) targetAngle -= 360; } mAutoCenterAnimator.setIntValues(targetAngle); mAutoCenterAnimator.setDuration(AUTOCENTER_ANIM_DURATION).start(); } }
[ "Kicks off an animation that will result in the pointer being centered in the\npie slice of the currently selected item." ]
[ "Check the model for expression values.\n\n@param model the model\n@return the attribute containing an expression", "Returns a UTMDetail object which consists of UTM parameters like source, medium & campaign\n@return The {@link UTMDetail} object", "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0", "Add a note to a photo. The Note object bounds and text must be specified.\n\n@param photoId\nThe photo ID\n@param note\nThe Note object\n@return The updated Note object", "Returns the collection definition of the given name if it exists.\n\n@param name The name of the collection\n@return The collection definition or <code>null</code> if there is no such collection", "Use this API to fetch all the tunneltrafficpolicy resources that are configured on netscaler.", "Set the main attribute \"Bundle-RequiredExecutionEnvironment\" to the given\nvalue.\n\n@param bree The new value", "Serializes any char sequence and writes it into specified buffer.", "Use this API to fetch all the nslimitselector resources that are configured on netscaler." ]
public static base_response add(nitro_service client, gslbservice resource) throws Exception { gslbservice addresource = new gslbservice(); addresource.servicename = resource.servicename; addresource.cnameentry = resource.cnameentry; addresource.ip = resource.ip; addresource.servername = resource.servername; addresource.servicetype = resource.servicetype; addresource.port = resource.port; addresource.publicip = resource.publicip; addresource.publicport = resource.publicport; addresource.maxclient = resource.maxclient; addresource.healthmonitor = resource.healthmonitor; addresource.sitename = resource.sitename; addresource.state = resource.state; addresource.cip = resource.cip; addresource.cipheader = resource.cipheader; addresource.sitepersistence = resource.sitepersistence; addresource.cookietimeout = resource.cookietimeout; addresource.siteprefix = resource.siteprefix; addresource.clttimeout = resource.clttimeout; addresource.svrtimeout = resource.svrtimeout; addresource.maxbandwidth = resource.maxbandwidth; addresource.downstateflush = resource.downstateflush; addresource.maxaaausers = resource.maxaaausers; addresource.monthreshold = resource.monthreshold; addresource.hashid = resource.hashid; addresource.comment = resource.comment; addresource.appflowlog = resource.appflowlog; return addresource.add_resource(client); }
[ "Use this API to add gslbservice." ]
[ "Checks whether a user account can be locked because of inactivity.\n\n@param cms the CMS context\n@param user the user to check\n@return true if the user may be locked after being inactive for too long", "Map the Primavera UDF to a custom field.\n\n@param fieldType parent object type\n@param dataType UDF data type\n@param name UDF name\n@return FieldType instance", "Starts recursive delete on all delete objects object graph", "Parses command-line and removes metadata related to rebalancing.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Returns all the persistent id generators which potentially require the creation of an object in the schema.", "Append the text supplied by the Writer at the end of the File, using a specified encoding.\n\n@param file a File\n@param writer the Writer supplying the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 2.3", "For every String key, it registers the object as a parameter to make it available\nin the report.\n\n@param jd\n@param _parameters", "Retrieve the correct index for the supplied Table instance.\n\n@param table Table instance\n@return index", "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid.\nIf it is valid, the initializer function is applied to it." ]
private boolean matchesFingerprint(byte[] buffer, byte[] fingerprint) { return Arrays.equals(fingerprint, Arrays.copyOf(buffer, fingerprint.length)); }
[ "Determine if the start of the buffer matches a fingerprint byte array.\n\n@param buffer bytes from file\n@param fingerprint fingerprint bytes\n@return true if the file matches the fingerprint" ]
[ "Obtains a string from a PDF value\n@param value the PDF value of the String, Integer or Float type\n@return the corresponging string value", "Helper method used to peel off spurious wrappings of DateTimeException\n\n@param e DateTimeException to peel\n\n@return DateTimeException that does not have another DateTimeException as its cause.", "returns an array containing values for all the Objects attribute\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Returns the value of an option, or the default if the value is null or the key is not part of the map.\n@param configOptions the map with the config options.\n@param optionKey the option to get the value of\n@param defaultValue the default value to return if the option is not set.\n@return the value of an option, or the default if the value is null or the key is not part of the map.", "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", "Creates the stats items.\n\n@param statsType\nthe stats type\n@return the sorted set\n@throws IOException\nSignals that an I/O exception has occurred.", "Perform the given work with a Jedis connection from the given pool.\nWraps any thrown checked exceptions in a RuntimeException.\n\n@param pool the resource pool\n@param work the work to perform\n@param <V> the result type\n@return the result of the given work", "Utility function that fetches partitions.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return all partitions on cluster", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance" ]
public void add(T value) { Element<T> element = new Element<T>(bundle, value); element.previous = tail; if (tail != null) tail.next = element; tail = element; if (head == null) head = element; }
[ "adds a value to the list\n\n@param value the value" ]
[ "Returns a usage String based on the defined command and options.\nUseful when printing \"help\" info etc.", "Return all valid tenors for a given moneyness and maturity.\nUses the payment times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@param maturity The maturities as year fraction from the reference date.\n@return The tenors as year fraction from reference date.", "Returns a row matrix which contains all the elements in A which are flagged as true in 'marked'\n\n@param A Input matrix\n@param marked Input matrix marking elements in A\n@param output Storage for output row vector. Can be null. Will be reshaped.\n@return Row vector with marked elements", "Handles newlines by removing them and add new rows instead", "Whether or not points are within some threshold.\n@param point1 Point 1\n@param point2 Point 2\n@return True or false", "Read a task from a ConceptDraw PROJECT file.\n\n@param projectIdentifier parent project identifier\n@param map outline number to task map\n@param task ConceptDraw PROJECT task", "Parses a String comprised of 0 or more comma-delimited key=value pairs.\n\n@param s the string to parse\n@return the Map of parsed key value pairs", "Method used to create missing timephased data.\n\n@param file project file\n@param assignment resource assignment\n@param timephasedPlanned planned timephased data\n@param timephasedComplete complete timephased data", "Use this API to fetch all the appfwwsdl resources that are configured on netscaler." ]
@Deprecated public static ScheduleInterface createScheduleFromConventions( LocalDate referenceDate, LocalDate startDate, String frequency, double maturity, String daycountConvention, String shortPeriodConvention ) { return createScheduleFromConventions( referenceDate, startDate, frequency, maturity, daycountConvention, shortPeriodConvention, "UNADJUSTED", new BusinessdayCalendarAny(), 0, 0); }
[ "Generates a schedule based on some meta data. The schedule generation\nconsiders short periods. Date rolling is ignored.\n\n@param referenceDate The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.\n@param startDate The start date of the first period.\n@param frequency The frequency.\n@param maturity The end date of the last period.\n@param daycountConvention The daycount convention.\n@param shortPeriodConvention If short period exists, have it first or last.\n@return The corresponding schedule\n@deprecated Will be removed in version 2.3" ]
[ "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance", "Removes a filter from this project file.\n\n@param filterName The name of the filter", "Gets id of a link and creates the new one if necessary.\n\n@param linkName name of the link.\n@param allowCreate if set to true and if there is no link named as linkName,\ncreate the new id for the linkName.\n@return < 0 if there is no such link and create=false, else id of the link", "Get all the handlers at a specific address.\n\n@param address the address\n@param inherited true to include the inherited operations\n@return the handlers", "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history", "Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.\n\n@param inv Where the value of the inverse will be stored. Modified.", "Dump the contents of a row from an MPD file.\n\n@param row row data", "This returns all profiles associated with a server name\n\n@param serverName server Name\n@return profile UUID\n@throws Exception exception", "Sets the size of a UIObject" ]
public Map<Double, SingleAssetEuropeanOptionProductDescriptor> getDescriptors(LocalDate referenceDate){ int numberOfStrikes = strikes.length; HashMap<Double, SingleAssetEuropeanOptionProductDescriptor> descriptors = new HashMap<Double, SingleAssetEuropeanOptionProductDescriptor>(); LocalDate maturityDate = FloatingpointDate.getDateFromFloatingPointDate(referenceDate, maturity); for(int i = 0; i< numberOfStrikes; i++) { descriptors.put(strikes[i], new SingleAssetEuropeanOptionProductDescriptor(underlyingName, maturityDate, strikes[i])); } return descriptors; }
[ "Return a collection of product descriptors for each option in the smile.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@return a collection of product descriptors for each option in the smile." ]
[ "Performs a partial BFS on model until the search frontier reaches the desired bootstrap size\n\n@param min the desired bootstrap size\n@return a list of found PossibleState\n@throws ModelException if the desired bootstrap can not be reached", "The Critical field indicates whether a task has any room in the schedule\nto slip, or if a task is on the critical path. The Critical field contains\nYes if the task is critical and No if the task is not critical.\n\n@return boolean", "Removes and returns a random element from the set.\n@return the removed element, or <code>null</code> when the key does not exist.", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Get transformer to use.\n\n@return transformation to apply", "Returns a collection view of this map's values.\n\n@return a collection view of this map's values.", "Returns if this maps the specified cell.\n\n@param cell the cell name\n@return {@code true} if this maps the column, {@code false} otherwise", "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity", "Converts the string of given content to an input stream.\n\n@param content the string content.\n@param charset the charset for conversion.\n@return the stream (should be closed by invoker)." ]
public void updateStructure() { if (size() > 1) { Collections.sort(this); m_projectFile.getChildTasks().clear(); Task lastTask = null; int lastLevel = -1; boolean autoWbs = m_projectFile.getProjectConfig().getAutoWBS(); boolean autoOutlineNumber = m_projectFile.getProjectConfig().getAutoOutlineNumber(); for (Task task : this) { task.clearChildTasks(); Task parent = null; if (!task.getNull()) { int level = NumberHelper.getInt(task.getOutlineLevel()); if (lastTask != null) { if (level == lastLevel || task.getNull()) { parent = lastTask.getParentTask(); level = lastLevel; } else { if (level > lastLevel) { parent = lastTask; } else { while (level <= lastLevel) { parent = lastTask.getParentTask(); if (parent == null) { break; } lastLevel = NumberHelper.getInt(parent.getOutlineLevel()); lastTask = parent; } } } } lastTask = task; lastLevel = level; if (autoWbs || task.getWBS() == null) { task.generateWBS(parent); } if (autoOutlineNumber) { task.generateOutlineNumber(parent); } } if (parent == null) { m_projectFile.getChildTasks().add(task); } else { parent.addChildTask(task); } } } }
[ "This method is used to recreate the hierarchical structure of the\nproject file from scratch. The method sorts the list of all tasks,\nthen iterates through it creating the parent-child structure defined\nby the outline level field." ]
[ "Dump timephased work for an assignment.\n\n@param assignment resource assignment", "Delete an object from the database.", "Returns the complete record for a single section.\n\n@param section The section to get.\n@return Request object", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "Generate an IKVM map file.\n\n@param mapFileName map file name\n@param jarFile jar file containing code to be mapped\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws XMLStreamException\n@throws ClassNotFoundException\n@throws IntrospectionException", "Creates the parents of nested XML elements if necessary.\n@param xmlContent the XML content that is edited.\n@param xmlPath the path of the (nested) element, for which the parents should be created\n@param l the locale for which the XML content is edited.", "Notifies that multiple content items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Print a class's relations", "Populate the supplied response with the model representation of the certificates.\n\n@param result the response to populate.\n@param certificates the certificates to add to the response.\n@throws CertificateEncodingException\n@throws NoSuchAlgorithmException" ]
public static lbvserver_cachepolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_cachepolicy_binding obj = new lbvserver_cachepolicy_binding(); obj.set_name(name); lbvserver_cachepolicy_binding response[] = (lbvserver_cachepolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch lbvserver_cachepolicy_binding resources of given name ." ]
[ "Checks if the name of the file follows the version-n format\n\n@param versionDir The directory\n@return Returns true if the name is correct, else false", "Unmarshals the XML content and adds the file to the bundle files.\n@throws CmsException thrown if reading the file or unmarshaling fails.", "Process TestCaseEvent. You can change current testCase context\nusing this method.\n\n@param event to process", "in truth we probably only need the types as injected by the metadata binder", "Extract predecessor data.", "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Performs a Versioned put operation with the specified composite request\nobject\n\n@param requestWrapper Composite request object containing the key and the\nversioned object\n@return Version of the value for the successful put\n@throws ObsoleteVersionException", "Walks from the most outer embeddable to the most inner one\nlook for all columns contained in these embeddables\nand exclude the embeddables that have a non null column\nbecause of caching, the algorithm is only run once per column parameter", "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" ]
private synchronized void closeIdleClients() { List<Client> candidates = new LinkedList<Client>(openClients.values()); logger.debug("Scanning for idle clients; " + candidates.size() + " candidates."); for (Client client : candidates) { if ((useCounts.get(client) < 1) && ((timestamps.get(client) + idleLimit.get() * 1000) <= System.currentTimeMillis())) { logger.debug("Idle time reached for unused client {}", client); closeClient(client); } } }
[ "Finds any clients which are not currently in use, and which have been idle for longer than the\nidle timeout, and closes them." ]
[ "Allows testsuites to shorten the domain timeout adder", "Plots a list of charts in matrix with 2 columns.\n@param charts", "Check whether vector addition works. This is pure Java code and should work.", "Retrieve row from a nested table.\n\n@param name column name\n@return nested table rows", "read the prefetchInLimit from Config based on OJB.properties", "Writes 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.", "Remove a PropertyChangeListener for a specific property from this node.\nThis functionality has. Please note that the listener this does not remove\na listener that has been added without specifying the property it is\ninterested in.", "Read an individual Phoenix task relationship.\n\n@param relation Phoenix task relationship", "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file" ]
private static void generateJson(CellScanner cellScanner, Function<Bytes, String> encoder, PrintStream out) throws JsonIOException { Gson gson = new GsonBuilder().serializeNulls().setDateFormat(DateFormat.LONG) .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).setVersion(1.0) .create(); Map<String, String> json = new LinkedHashMap<>(); for (RowColumnValue rcv : cellScanner) { json.put(FLUO_ROW, encoder.apply(rcv.getRow())); json.put(FLUO_COLUMN_FAMILY, encoder.apply(rcv.getColumn().getFamily())); json.put(FLUO_COLUMN_QUALIFIER, encoder.apply(rcv.getColumn().getQualifier())); json.put(FLUO_COLUMN_VISIBILITY, encoder.apply(rcv.getColumn().getVisibility())); json.put(FLUO_VALUE, encoder.apply(rcv.getValue())); gson.toJson(json, out); out.append("\n"); if (out.checkError()) { break; } } out.flush(); }
[ "Generate JSON format as result of the scan.\n\n@since 1.2" ]
[ "Get the values for a particular configuration property\n\n@param name - name of the property\n@return All values encountered or null", "Handle a \"current till end\" change event.\n@param event the change event.", "Update a variable name with a date if the variable is detected as being a date.\n\n@param variableName the variable name.\n@param date the date to replace the value with if the variable is a date variable.", "Sets the SCXML model with an InputStream\n\n@param inputFileStream the model input stream", "Join N sets.", "Returns the value associated with the given key, if any.\n\n@return the value associated with the given key, or <Code>null</Code>\nif the key maps to no value", "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Use this API to delete linkset of given name.", "End a \"track;\" that is, return to logging at one level shallower.\n@param title A title that should match the beginning of this track." ]
protected void processLink(Row row) { Task predecessorTask = m_project.getTaskByUniqueID(row.getInteger("LINK_PRED_UID")); Task successorTask = m_project.getTaskByUniqueID(row.getInteger("LINK_SUCC_UID")); if (predecessorTask != null && successorTask != null) { RelationType type = RelationType.getInstance(row.getInt("LINK_TYPE")); TimeUnit durationUnits = MPDUtility.getDurationTimeUnits(row.getInt("LINK_LAG_FMT")); Duration duration = MPDUtility.getDuration(row.getDouble("LINK_LAG").doubleValue(), durationUnits); Relation relation = successorTask.addPredecessor(predecessorTask, type, duration); relation.setUniqueID(row.getInteger("LINK_UID")); m_eventManager.fireRelationReadEvent(relation); } }
[ "Process a relationship between two tasks.\n\n@param row relationship data" ]
[ "Add an element assigned with its score\n@param member the member to add\n@param score the score to assign\n@return <code>true</code> if the set has been changed", "Use this API to fetch vpath resource of given name .", "Removes the given service provider factory from the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Start component timer for current instance\n@param type - of component", "Sets the value for the API's \"sitefilter\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "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", "Whether or not points are within some threshold.\n@param point1 Point 1\n@param point2 Point 2\n@return True or false", "Return true only if the MethodCallExpression represents a method call for the specified method name\n@param methodCall - the AST MethodCallExpression\n@param methodNamePattern - the expected name of the method being called\n@param numArguments - The number of expected arguments\n@return true only if the method call name matches", "Read a four byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value" ]
public static int validateZone(CharSequence zone) { for(int i = 0; i < zone.length(); i++) { char c = zone.charAt(i); if (c == IPAddress.PREFIX_LEN_SEPARATOR) { return i; } if (c == IPv6Address.SEGMENT_SEPARATOR) { return i; } } return -1; }
[ "Returns the index of the first invalid character of the zone, or -1 if the zone is valid\n\n@param sequence\n@return" ]
[ "Delivers the correct JSON Object for the stencilId\n\n@param stencilId\n@throws org.json.JSONException", "Create a new path\n\n@param pathName friendly name of path\n@param pathValue path value or regex\n@param requestType path request type. \"GET\", \"POST\", etc", "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.\nAdditionally, the methods also removes the returned images from the cache.\n@param buildInfoId\n@return", "Hide multiple channels. All other channels will be unaffected.\n@param channels The channels to hide", "Use this API to fetch all the vpnsessionaction resources that are configured on netscaler.", "Use this API to update snmpoption.", "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of the JSON result", "Visits a parameter of this method.\n\n@param name\nparameter name or null if none is provided.\n@param access\nthe parameter's access flags, only <tt>ACC_FINAL</tt>,\n<tt>ACC_SYNTHETIC</tt> or/and <tt>ACC_MANDATED</tt> are\nallowed (see {@link Opcodes}).", "This method is called to format a duration.\n\n@param value duration value\n@return formatted duration value" ]
public double getRate(AnalyticModel model) { if(model==null) { throw new IllegalArgumentException("model==null"); } ForwardCurve forwardCurve = model.getForwardCurve(forwardCurveName); if(forwardCurve==null) { throw new IllegalArgumentException("No forward curve of name '" + forwardCurveName + "' found in given model:\n" + model.toString()); } double fixingDate = schedule.getFixing(0); return forwardCurve.getForward(model,fixingDate); }
[ "Return the par FRA rate for a given curve.\n\n@param model A given model.\n@return The par FRA rate." ]
[ "Sets the specified many-to-one attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Retrieve a UUID in the form required by Primavera PMXML.\n\n@param guid UUID instance\n@return formatted UUID", "Transforms each character from this reader by passing it to the given\nclosure. The Closure should return each transformed character, which\nwill be passed to the Writer. The reader and writer will be both be\nclosed before this method returns.\n\n@param self a Reader object\n@param writer a Writer to receive the transformed characters\n@param closure a closure that performs the required transformation\n@throws IOException if an IOException occurs.\n@since 1.5.0", "Process an MPP file to make it anonymous.\n\n@param input input file name\n@param output output file name\n@throws Exception", "Might not fill all of dst.", "Set the channel. This will return whether the channel could be set successfully or not.\n\n@param newChannel the channel\n@return whether the operation succeeded or not", "Classify the contents of a file.\n\n@param filename\nContains the sentence(s) to be classified.\n@return {@link List} of classified List of IN.", "Scans the given token global token stream for a list of sub-token\nstreams representing those portions of the global stream that\nmay contain date time information\n\n@param stream\n@return", "Add an executable \"post-run\" dependent for this model.\n\n@param executable the executable \"post-run\" dependent\n@return the key to be used as parameter to taskResult(string) method to retrieve result of executing\nthe executable \"post-run\" dependent" ]
private static String decode(String s) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); if (ch == '%') { baos.write(hexToInt(s.charAt(i + 1)) * 16 + hexToInt(s.charAt(i + 2))); i += 2; continue; } baos.write(ch); } try { return new String(baos.toByteArray(), "UTF-8"); } catch (UnsupportedEncodingException e) { throw new Error(e); // impossible } }
[ "Decode '%HH'." ]
[ "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", "Converts the given list of a type to paged list of a different type.\n\n@param list the list to convert to paged list\n@param mapper the mapper to map type in input list to output list\n@param <OutT> the type of items in output paged list\n@param <InT> the type of items in input paged list\n@return the paged list", "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List", "This method checks for paging information and returns the appropriate\ndata\n\n@param result\n@param httpResponse\n@param where\n@return a {@link WrappingPagedList} if there is paging, result if not.", "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Flips the output buffer, and lets the Selector know we're ready to write.\n\n@param selectionKey", "Reverses all the TransitionControllers managed by this TransitionManager", "Does this procedure return any values to the 'caller'?\n\n@return <code>true</code> if the procedure returns at least 1\nvalue that is returned to the caller.", "Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the case where a hierarchical task\nstructure has been created programmatically in MPXJ." ]
public void unregisterComponent(java.awt.Component c) { java.awt.dnd.DragGestureRecognizer recognizer = (java.awt.dnd.DragGestureRecognizer)this.hmDragGestureRecognizers.remove(c); if (recognizer != null) recognizer.setComponent(null); }
[ "remove drag support from the given Component.\n@param c the Component to remove" ]
[ "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs", "Rotate the specified photo. The only allowed values for degrees are 90, 180 and 270.\n\n@param photoId\nThe photo ID\n@param degrees\nThe degrees to rotate (90, 170 or 270)", "Computes the ratio of the smallest value to the largest. Does not assume\nthe array is sorted first\n@param sv array\n@return smallest / largest", "General API\n-> compile each of supplied files\n-> recompile any required types for which we have an incomplete principle structure", "convolution data type", "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer", "Gets the current user.\n@param api the API connection of the current user.\n@return the current user.", "returns a comparator that allows to sort a Vector of FieldMappingDecriptors\naccording to their m_Order entries.", "Requests Change notifications of feed type normal.\n\n@return {@link ChangesResult} encapsulating the normal feed changes" ]
public static void transformChar(Reader self, Writer writer, @ClosureParams(value=SimpleType.class, options="java.lang.String") Closure closure) throws IOException { int c; try { char[] chars = new char[1]; while ((c = self.read()) != -1) { chars[0] = (char) c; writer.write((String) closure.call(new String(chars))); } writer.flush(); Writer temp2 = writer; writer = null; temp2.close(); Reader temp1 = self; self = null; temp1.close(); } finally { closeWithWarning(self); closeWithWarning(writer); } }
[ "Transforms each character from this reader by passing it to the given\nclosure. The Closure should return each transformed character, which\nwill be passed to the Writer. The reader and writer will be both be\nclosed before this method returns.\n\n@param self a Reader object\n@param writer a Writer to receive the transformed characters\n@param closure a closure that performs the required transformation\n@throws IOException if an IOException occurs.\n@since 1.5.0" ]
[ "Read a task relationship.\n\n@param link ConceptDraw PROJECT task link", "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException", "Sets the highlight strength for the InnerPaddingOutline.\n\n@param _highlightStrength The highlighting value for the outline.", "Create a patch element for the rollback patch.\n\n@param entry the entry\n@return the new patch element", "Specifies the maximum capacity of the counter.\n\n@param capacity\n<code>long</code>\n@throws IllegalArgumentException\nif windowMillis is less than 1.", "Process a graphical indicator definition for a known type.\n\n@param type field type", "Helper method that encapsulates the minimum logic for adding a high\npriority job to a queue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJson\nthe job serialized as JSON", "Sets the hostname and port to connect to.\n\n@param hostname the host name\n@param port the port\n\n@return the builder", "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" ]
private void setRecordNumber(LinkedList<String> list) { try { String number = list.remove(0); m_recordNumber = Integer.valueOf(number); } catch (NumberFormatException ex) { // Malformed MPX file: the record number isn't a valid integer // Catch the exception here, leaving m_recordNumber as null // so we will skip this record entirely. } }
[ "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record" ]
[ "Get the last non-white Y point\n@param img Image in memory\n@return The trimmed height", "Get a property as a string or defaultValue.\n\n@param key the property name\n@param defaultValue the default value", "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "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.", "Creates an temporary directory. The created directory will be deleted when\ncommand will ended.", "Returns the orthogonal U matrix.\n\n@param U If not null then the results will be stored here. Otherwise a new matrix will be created.\n@return The extracted Q matrix.", "Get a list of referring domains for a photo.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param photoId\n(Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.\n@param perPage\n(Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.\n@param page\n(Optional) The page of results to return. If this argument is omitted, it defaults to 1.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoDomains.html\"", "Retrieves an existing resource assignment if one is present,\nto prevent duplicate resource assignments being added.\n\n@param resource resource to test for\n@return existing resource assignment", "Extracts warnings that are returned in an API response.\n\n@param root\nroot node of the JSON result" ]
private void writeTermStatisticsToFile(UsageStatistics usageStatistics, String fileName) { // Make sure all keys are present in label count map: for (String key : usageStatistics.aliasCounts.keySet()) { countKey(usageStatistics.labelCounts, key, 0); } for (String key : usageStatistics.descriptionCounts.keySet()) { countKey(usageStatistics.labelCounts, key, 0); } try (PrintStream out = new PrintStream( ExampleHelpers.openExampleFileOuputStream(fileName))) { out.println("Language,Labels,Descriptions,Aliases"); for (Entry<String, Integer> entry : usageStatistics.labelCounts .entrySet()) { countKey(usageStatistics.aliasCounts, entry.getKey(), 0); int aCount = usageStatistics.aliasCounts.get(entry.getKey()); countKey(usageStatistics.descriptionCounts, entry.getKey(), 0); int dCount = usageStatistics.descriptionCounts.get(entry .getKey()); out.println(entry.getKey() + "," + entry.getValue() + "," + dCount + "," + aCount); } } catch (IOException e) { e.printStackTrace(); } }
[ "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use" ]
[ "test, how many times the group was present in the list of groups.", "Iterates through the range of prefixes in this range instance using the given prefix length.\n\n@param prefixLength\n@return", "Performs the transformation.\n\n@return True if the file was modified.", "Use this API to fetch cachecontentgroup resource of given name .", "Extract site path, base name and locale from the resource opened with the editor.", "Update the current position with specified length.\nThe input will append to the current position of the iterator.\n\n@param length update length", "Returns the y-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the y coordinate", "Returns the key for the best matching local-specific property version.\n\n@param propertiesMap the \"raw\" property map\n@param key the name of the property to search for\n@param locale the locale to search for\n\n@return the key for the best matching local-specific property version.", "Get a state handler for a given patching artifact.\n\n@param artifact the patching artifact\n@param <P>\n@param <S>\n@return the state handler, {@code null} if there is no handler registered for the given artifact" ]
public synchronized void createImportationDeclaration(String deviceId, String deviceType, String deviceSubType) { Map<String, Object> metadata = new HashMap<String, Object>(); metadata.put(Constants.DEVICE_ID, deviceId); metadata.put(Constants.DEVICE_TYPE, deviceType); metadata.put(Constants.DEVICE_TYPE_SUB, deviceSubType); metadata.put("scope", "generic"); ImportDeclaration declaration = ImportDeclarationBuilder.fromMetadata(metadata).build(); importDeclarations.put(deviceId, declaration); registerImportDeclaration(declaration); }
[ "Create an import declaration and delegates its registration for an upper class." ]
[ "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", "Physically close off the internal connection.\n@param conn", "Remove a collaborator from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param collaborator See {@link #listCollaborators} for collaborators that can be removed from the app.", "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given color.", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Send a kill signal to all running instances and return as soon as the signal is sent.", "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder", "Set the meta data for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param title\nThe new title\n@param description\nThe new description\n@throws FlickrException", "Retrieves the cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry" ]
@NonNull @Override public Loader<SortedList<File>> getLoader() { return new AsyncTaskLoader<SortedList<File>>(getActivity()) { FileObserver fileObserver; @Override public SortedList<File> loadInBackground() { File[] listFiles = mCurrentPath.listFiles(); final int initCap = listFiles == null ? 0 : listFiles.length; SortedList<File> files = new SortedList<>(File.class, new SortedListAdapterCallback<File>(getDummyAdapter()) { @Override public int compare(File lhs, File rhs) { return compareFiles(lhs, rhs); } @Override public boolean areContentsTheSame(File file, File file2) { return file.getAbsolutePath().equals(file2.getAbsolutePath()) && (file.isFile() == file2.isFile()); } @Override public boolean areItemsTheSame(File file, File file2) { return areContentsTheSame(file, file2); } }, initCap); files.beginBatchedUpdates(); if (listFiles != null) { for (java.io.File f : listFiles) { if (isItemVisible(f)) { files.add(f); } } } files.endBatchedUpdates(); return files; } /** * Handles a request to start the Loader. */ @Override protected void onStartLoading() { super.onStartLoading(); // handle if directory does not exist. Fall back to root. if (mCurrentPath == null || !mCurrentPath.isDirectory()) { mCurrentPath = getRoot(); } // Start watching for changes fileObserver = new FileObserver(mCurrentPath.getPath(), FileObserver.CREATE | FileObserver.DELETE | FileObserver.MOVED_FROM | FileObserver.MOVED_TO ) { @Override public void onEvent(int event, String path) { // Reload onContentChanged(); } }; fileObserver.startWatching(); forceLoad(); } /** * Handles a request to completely reset the Loader. */ @Override protected void onReset() { super.onReset(); // Stop watching if (fileObserver != null) { fileObserver.stopWatching(); fileObserver = null; } } }; }
[ "Get a loader that lists the Files in the current path,\nand monitors changes." ]
[ "Set HTTP client\n\n@param httpClient\nAn instance of OkHttpClient\n@return Api Client", "Updates the indices in the index buffer from a Java IntBuffer.\nAll of the entries of the input int buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if int buffer is wrong size", "Determine which daughter of the current parse tree is the head.\n\n@param t The parse tree to examine the daughters of.\nIf this is a leaf, <code>null</code> is returned\n@param parent The parent of t\n@return The daughter parse tree that is the head of <code>t</code>.\nReturns null for leaf nodes.\n@see Tree#percolateHeads(HeadFinder)\nfor a routine to call this and spread heads throughout a tree", "Copy one Gradient into another.\n@param g the Gradient to copy into", "Returns the getter method for field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@return the getter associated with the field on the object\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible", "Use this API to update nslimitselector resources.", "Tokenize the the string as a package hierarchy\n\n@param str\n@return", "This method writes extended attribute data for a resource.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Reads a \"flags\" argument from the request." ]
@Override public List<ConfigIssue> init(Service.Context context) { this.context = context; return init(); }
[ "Initializes the service.\n\nStores the <code>Service.Context</code> in instance variables and calls the {@link #init()} method.\n\n@param context Service context.\n@return The list of configuration issues found during initialization, an empty list if none." ]
[ "Set the specific device class of the node.\n@param specificDeviceClass the specificDeviceClass to set\n@exception IllegalArgumentException thrown when the specific device class does not match\nthe generic device class.", "Gets a tokenizer from a reader.", "Check if a given string is a valid java package or class name.\n\nThis method use the technique documented in\n[this SO question](https://stackoverflow.com/questions/13557195/how-to-check-if-string-is-a-valid-class-identifier)\nwith the following extensions:\n\n* if the string does not contain `.` then assume it is not a valid package or class name\n\n@param s\nthe string to be checked\n@return\n`true` if `s` is a valid java package or class name", "Set the week of month.\n@param weekOfMonthStr the week of month to set.", "Determines the encoding block groups for the specified data.", "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", "Use this API to fetch lbvserver_cachepolicy_binding resources of given name .", "Get a collection of public photos for the specified user ID.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param userId\nThe User ID\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return The PhotoList collection\n@throws FlickrException", "Cleans the object key.\n\n@param name Name of the object key\n@return The {@link ValidationResult} object containing the object,\nand the error code(if any)" ]
public void sendMessageUntilStopCount(int stopCount) { // always send with valid data. for (int i = processedWorkerCount; i < workers.size(); ++i) { ActorRef worker = workers.get(i); try { /** * !!! This is a must; without this sleep; stuck occured at 5K. * AKKA seems cannot handle too much too fast message send out. */ Thread.sleep(1L); } catch (InterruptedException e) { logger.error("sleep exception " + e + " details: ", e); } // send as if the sender is the origin manager; so reply back to // origin manager worker.tell(OperationWorkerMsgType.PROCESS_REQUEST, originalManager); processedWorkerCount++; if (processedWorkerCount > stopCount) { return; } logger.debug("REQ_SENT: {} / {} taskId {}", processedWorkerCount, requestTotalCount, taskIdTrim); }// end for loop }
[ "Note that if there is sleep in this method.\n\n@param stopCount\nthe stop count" ]
[ "This method extracts project properties from a GanttProject file.\n\n@param ganttProject GanttProject file", "Creates all propertyvfsbundle files for the currently loaded translations.\nThe method is used to convert xmlvfsbundle files into propertyvfsbundle files.\n\n@throws CmsIllegalArgumentException thrown if resource creation fails.\n@throws CmsLoaderException thrown if the propertyvfsbundle type can't be read from the resource manager.\n@throws CmsException thrown if creation, type retrieval or locking fails.", "Only call with monitor for 'this' held", "Sets the highlight strength for the InnerPaddingOutline.\n\n@param _highlightStrength The highlighting value for the outline.", "Get the active overrides with parameters and the active server group for a client\n\n@param profileID Id of profile to get configuration for\n@param clientUUID Client Id to export configuration\n@return SingleProfileBackup containing active overrides and active server group\n@throws Exception exception", "Log column data.\n\n@param column column data", "Performs a Bulk Documents insert request.\n\n@param objects The {@link List} of objects.\n@param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.\n@return {@code List<Response>} Containing the resulted entries.", "Calculate the starting content offset based on the layout orientation and Gravity\n@param totalSize total size occupied by the content", "Converts a list of dates to a Json array with the long representation of the dates as strings.\n@param individualDates the list to convert.\n@return Json array with long values of dates as string" ]
public BlurBuilder brightness(float brightness) { data.preProcessors.add(new RenderscriptBrightnessProcessor(data.contextWrapper.getRenderScript(), brightness, data.contextWrapper.getResources())); return this; }
[ "Set brightness to eg. darken the resulting image for use as background\n\n@param brightness default is 0, pos values increase brightness, neg. values decrease brightness\n.-100 is black, positive goes up to 1000+" ]
[ "Given a resource field number, this method returns the resource field name.\n\n@param key resource field number\n@return resource field name", "Adds error correction data to the specified binary string, which already contains the primary data", "Delete a file ignoring failures.\n\n@param file file to delete", "Returns a OkHttpClient that ignores SSL cert errors\n@return", "Remove a handler from the list\n@param toRemove The handler to remove. Any handler object that\nmatches this class will be removed.\n@return true if this handler was in the list.", "Determines if this connection's access token has expired and needs to be refreshed.\n@return true if the access token needs to be refreshed; otherwise false.", "Obtain collection of profiles\n\n@param model\n@return\n@throws Exception", "Retrieve the request History based on the specified filters.\nIf no filter is specified, return the default size history.\n\n@param filters filters to be applied\n@return array of History items\n@throws Exception exception", "Opens a file from the volume. The filePath is relative to the\ndefaultPath.\n\n@param filePath\nFile path of the resource to open.\n\n@throws IOException" ]
private boolean compareBytes(byte[] lhs, byte[] rhs, int rhsOffset) { boolean result = true; for (int loop = 0; loop < lhs.length; loop++) { if (lhs[loop] != rhs[rhsOffset + loop]) { result = false; break; } } return (result); }
[ "Compare an array of bytes with a subsection of a larger array of bytes.\n\n@param lhs small array of bytes\n@param rhs large array of bytes\n@param rhsOffset offset into larger array of bytes\n@return true if a match is found" ]
[ "Removes all currently assigned labels for this Datum then adds all\nof the given Labels.", "generate a prepared SELECT-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor", "Use this API to unlink sslcertkey resources.", "gets the count of addresses that this address division grouping may represent\n\nIf this address division grouping is not a subnet block of multiple addresses or has no range of values, then there is only one such address.\n\n@return", "Method used as dynamical parameter converter", "Use this API to delete nsip6 resources.", "Plots the rotated trajectory, spline and support points.", "Use this API to fetch lbvserver_scpolicy_binding resources of given name .", "Control whether the Virtual CDJ sends status packets to the other players. Most uses of Beat Link will not\nrequire this level of activity. However, if you want to be able to take over the tempo master role, and control\nthe tempo and beat alignment of other players, you will need to turn on this feature, which also requires that\nyou are using one of the standard player numbers, 1-4.\n\n@param send if {@code true} we will send status packets, and can participate in (and control) tempo and beat sync\n\n@throws IllegalStateException if the virtual CDJ is not running, or if it is not using a device number in the\nrange 1 through 4\n@throws IOException if there is a problem starting the {@link BeatFinder}" ]
public Class<E> getEventClass() { if (cachedClazz != null) { return cachedClazz; } Class<?> clazz = this.getClass(); while (clazz != Object.class) { try { Type mySuperclass = clazz.getGenericSuperclass(); Type tType = ((ParameterizedType) mySuperclass).getActualTypeArguments()[0]; cachedClazz = (Class<E>) Class.forName(tType.getTypeName()); return cachedClazz; } catch (Exception e) { } clazz = clazz.getSuperclass(); } throw new IllegalStateException("Failed to load event class - " + this.getClass().getCanonicalName()); }
[ "Returns the Class object of the Event implementation." ]
[ "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Method must be invoked upon completion of a rebalancing task. It is the\ntask's responsibility to do so.\n\n@param stealerId\n@param donorId", "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param filterTerm The filter term to lookup users by (login for external, login or name for managed)\n@param userType The type of users we want to search with this request.\nValid values are 'managed' (enterprise users), 'external' or 'all'\n@param externalAppUserId the external app user id that has been set for an app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return An iterator over the selected users.", "Unlock the given region. Does not report failures.", "Use this API to fetch all the pqbinding resources that are configured on netscaler.\nThis uses pqbinding_args which is a way to provide additional arguments while fetching the resources.", "Get the element at the index as a json object.\n\n@param i the index of the object to access", "this method mimics EMC behavior", "Write the document object to a file.\n\n@param document the document object.\n@param filePathname the path name of the file to be written to.\n@param method the output method: for instance html, xml, text\n@param indent amount of indentation. -1 to use the default.\n@throws TransformerException if an exception occurs.\n@throws IOException if an IO exception occurs.", "Group results by the specified field.\n\n@param fieldName by which to group results\n@param isNumber whether field isNumeric.\n@return this for additional parameter setting or to query" ]
public static nsfeature get(nitro_service service) throws Exception{ nsfeature obj = new nsfeature(); nsfeature[] response = (nsfeature[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the nsfeature resources that are configured on netscaler." ]
[ "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "Deploys application reading resources from specified URLs\n\n@param applicationName to configure in cluster\n@param urls where resources are read\n@return the name of the application\n@throws IOException", "Checks if the query should be executed using the debug mode where the security restrictions do not apply.\n@param cms the current context.\n@param query the query to execute.\n@return a flag, indicating, if the query should be performed in debug mode.", "Checks if there's exactly one option that exists among all possible opts.\n\n@param options OptionSet to checked\n@param opt1 Possible required option to check\n@param opt2 Possible required option to check\n@throws VoldemortException", "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "Notifies that multiple footer items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Get logs for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return log stream response", "Use this API to update route6.", "ceiling for clipped RELU, alpha for ELU" ]
public static authenticationvserver_binding get(nitro_service service, String name) throws Exception{ authenticationvserver_binding obj = new authenticationvserver_binding(); obj.set_name(name); authenticationvserver_binding response = (authenticationvserver_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch authenticationvserver_binding resource of given name ." ]
[ "Append the text supplied by the Writer at the end of the File, using a specified encoding.\n\n@param file a File\n@param writer the Writer supplying the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 2.3", "The way calendars are stored in an MPP8 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs", "Parses the supplied text and converts it to a Long\ncorresponding to that midnight in UTC on the specified date.\n\n@return null if it fails to parsing using the specified\nDateTimeFormat", "Upcasts a Builder instance to the generated superclass, to allow access to private fields.\n\n<p>Reuses an existing upcast instance if one was already declared in this scope.\n\n@param code the {@link SourceBuilder} to add the declaration to\n@param datatype metadata about the user type the builder is being generated for\n@param builder the Builder instance to upcast\n@returns a variable holding the upcasted instance", "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "Private used static method for creation of a RemoteWebDriver. Taking care of the default\nCapabilities and using the HttpCommandExecutor.\n\n@param hubUrl the url of the hub to use.\n@return the RemoteWebDriver instance.", "Returns the set of synchronized documents in a namespace.\n\n@param namespace the namespace to get synchronized documents for.\n@return the set of synchronized documents in a namespace.", "Builds a string that serializes a list of objects separated by the pipe\ncharacter. The toString methods are used to turn objects into strings.\nThis operation is commonly used to build parameter lists for API\nrequests.\n\n@param objects\nthe objects to implode\n@return string of imploded objects", "Cancel old waiting jobs.\n\n@param starttimeThreshold threshold for start time\n@param checkTimeThreshold threshold for last check time\n@param message the error message" ]
private Pair<Double, String> summarizeBalance(final Map<Integer, Integer> nodeIdToPartitionCount, String title) { StringBuilder builder = new StringBuilder(); builder.append("\n" + title + "\n"); Map<Integer, ZoneBalanceStats> zoneToBalanceStats = new HashMap<Integer, ZoneBalanceStats>(); for(Integer zoneId: cluster.getZoneIds()) { zoneToBalanceStats.put(zoneId, new ZoneBalanceStats()); } for(Node node: cluster.getNodes()) { int curCount = nodeIdToPartitionCount.get(node.getId()); builder.append("\tNode ID: " + node.getId() + " : " + curCount + " (" + node.getHost() + ")\n"); zoneToBalanceStats.get(node.getZoneId()).addPartitions(curCount); } // double utilityToBeMinimized = Double.MIN_VALUE; double utilityToBeMinimized = 0; for(Integer zoneId: cluster.getZoneIds()) { builder.append("Zone " + zoneId + "\n"); builder.append(zoneToBalanceStats.get(zoneId).dumpStats()); utilityToBeMinimized += zoneToBalanceStats.get(zoneId).getUtility(); /*- * Another utility function to consider if(zoneToBalanceStats.get(zoneId).getMaxMinRatio() > utilityToBeMinimized) { utilityToBeMinimized = zoneToBalanceStats.get(zoneId).getUtility(); } */ } return Pair.create(utilityToBeMinimized, builder.toString()); }
[ "Summarizes balance for the given nodeId to PartitionCount.\n\n@param nodeIdToPartitionCount\n@param title for use in pretty string\n@return Pair: getFirst() is utility value to be minimized, getSecond() is\npretty summary string of balance" ]
[ "Undeletes the selected files\n\n@return the ids of the modified resources\n\n@throws CmsException if something goes wrong", "One of the two main methods in this class. Creates a RendererViewHolder instance with a\nRenderer inside ready to be used. The RendererBuilder to create a RendererViewHolder using the\ninformation given as parameter.\n\n@param viewGroup used to create the ViewHolder.\n@param viewType associated to the renderer.\n@return ViewHolder extension with the Renderer it has to use inside.", "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "Set the color at \"index\" to \"color\". Entries are interpolated linearly from\nthe existing entries at \"firstIndex\" and \"lastIndex\" to the new entry.\nfirstIndex < index < lastIndex must hold.\n@param index the position to set\n@param firstIndex the position of the first color from which to interpolate\n@param lastIndex the position of the second color from which to interpolate\n@param color the color to set", "Obtains a Ethiopic zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Ethiopic zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Returns the Class object of the class specified in the OJB.properties\nfile for the \"PersistentFieldClass\" property.\n\n@return Class The Class object of the \"PersistentFieldClass\" class\nspecified in the OJB.properties file.", "Get the list of store names from a list of store definitions\n\n@param list\n@param ignoreViews\n@return list of store names", "Helper xml start tag writer\n\n@param value the output stream to use in writing", "performs a SQL UPDTE, INSERT or DELETE statement against RDBMS.\n@param sqlStatement the query string.\n@param cld ClassDescriptor providing meta-information.\n@return int returncode" ]
public synchronized void stop() { if (isRunning()) { try { setSendingStatus(false); } catch (Throwable t) { logger.error("Problem stopping sending status during shutdown", t); } DeviceFinder.getInstance().removeIgnoredAddress(socket.get().getLocalAddress()); socket.get().close(); socket.set(null); broadcastAddress.set(null); updates.clear(); setTempoMaster(null); setDeviceNumber((byte)0); // Set up for self-assignment if restarted. deliverLifecycleAnnouncement(logger, false); } }
[ "Stop announcing ourselves and listening for status updates." ]
[ "Hide multiple channels. All other channels will be shown.\n@param channels The channels to hide", "Converts Observable of list to Observable of Inner.\n@param innerList list to be converted.\n@param <InnerT> type of inner.\n@return Observable for list of inner.", "Starts recursive insert on all insert objects object graph", "Get the log if exists or return null\n\n@param topic topic name\n@param partition partition index\n@return a log for the topic or null if not exist", "Use this API to update dbdbprofile.", "Assigned action code", "page breaks should be near the bottom of the band, this method used while adding subreports\nwhich has the \"start on new page\" option.\n@param band", "Restores the dropout descriptor to a previously saved-off state", "Returns a new instance of the given class using the constructor with the specified parameter.\n\n@param target The class to instantiate\n@param type The types of the single parameter of the constructor\n@param arg The argument\n@return The instance" ]
public static String getTextContent(Document document, boolean individualTokens) { String textContent = null; if (individualTokens) { List<String> tokens = getTextTokens(document); textContent = StringUtils.join(tokens, ","); } else { textContent = document.getDocumentElement().getTextContent().trim().replaceAll("\\s+", ","); } return textContent; }
[ "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" ]
[ "Use this API to fetch vpath resource of given name .", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Read the project data and return a ProjectFile instance.\n\n@return ProjectFile instance", "Create the CML Options.\n\n@return Options expected from command-line.", "Given a list of store definitions, find out and return a map of similar\nstore definitions + count of them\n\n@param storeDefs All store definitions\n@return Map of a unique store definition + counts", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Print a time value.\n\n@param value time value\n@return time value", "Compute the repair set from the given values and nodes\n\n@param nodeValues The value found on each node\n@return A set of repairs to perform", "Use this API to fetch aaauser_auditsyslogpolicy_binding resources of given name ." ]
public Iterator<K> tailIterator(@NotNull final K key) { return new Iterator<K>() { private Stack<TreePos<K>> stack; private boolean hasNext; private boolean hasNextValid; @Override public boolean hasNext() { if (hasNextValid) { return hasNext; } hasNextValid = true; if (stack == null) { Node<K> root = getRoot(); if (root == null) { hasNext = false; return hasNext; } stack = new Stack<>(); if (!root.getLess(key, stack)) { stack.push(new TreePos<>(root)); } } TreePos<K> treePos = stack.peek(); if (treePos.node.isLeaf()) { while (treePos.pos >= (treePos.node.isTernary() ? 2 : 1)) { stack.pop(); if (stack.isEmpty()) { hasNext = false; return hasNext; } treePos = stack.peek(); } } else { if (treePos.pos == 0) { treePos = new TreePos<>(treePos.node.getFirstChild()); } else if (treePos.pos == 1) { treePos = new TreePos<>(treePos.node.getSecondChild()); } else { treePos = new TreePos<>(treePos.node.getThirdChild()); } stack.push(treePos); while (!treePos.node.isLeaf()) { treePos = new TreePos<>(treePos.node.getFirstChild()); stack.push(treePos); } } treePos.pos++; hasNext = true; return hasNext; } @Override public K next() { if (!hasNext()) { throw new NoSuchElementException(); } hasNextValid = false; TreePos<K> treePos = stack.peek(); // treePos.pos must be 1 or 2 here return treePos.pos == 1 ? treePos.node.getFirstKey() : treePos.node.getSecondKey(); } @Override public void remove() { throw new UnsupportedOperationException(); } }; }
[ "Returns an iterator that iterates over all elements greater or equal to key in ascending order\n\n@param key key\n@return iterator" ]
[ "Writes data to delegate stream if it has been set.\n\n@param data the data to write", "Overloads the left shift operator to provide an easy way to append multiple\nobjects as string representations to a String.\n\n@param self a String\n@param value an Object\n@return a StringBuffer built from this string\n@since 1.0", "Non-blocking call that will throw any Exceptions in the traditional\nmanner on access\n\n@param key\n@param value\n@return", "Adds a new metadata value of array type.\n@param path the path to the field.\n@param values the collection of values.\n@return the metadata object for chaining.", "set custom response or request for a profile's default client, ensures profile and path are enabled\n\n@param profileName profileName to modift, default client is used\n@param pathName friendly name of path\n@param isResponse true if response, false for request\n@param customData custom response/request data\n@return true if success, false otherwise", "replace the counter for K1-index o by new counter c", "Use this API to add autoscaleprofile resources.", "Append Join for non SQL92 Syntax", "Scans the jar file and returns the paths that match the includes and excludes.\n\n@return A List of paths\n@throws An IllegalStateException when an I/O error occurs in reading the jar file." ]
private List<Event> filterEvents(List<Event> events) { List<Event> filteredEvents = new ArrayList<Event>(); for (Event event : events) { if (!filter(event)) { filteredEvents.add(event); } } return filteredEvents; }
[ "Filter events.\n\n@param events the events\n@return the list of filtered events" ]
[ "Internal utility to help JNI add hit objects to the pick list. Specifically for MeshColliders with picking\nfor UV, Barycentric, and normal coordinates enabled", "Use this API to add gslbservice.", "This method is called to format a duration.\n\n@param value duration value\n@return formatted duration value", "Return a set of all the Declaration matching the DeclarationFilter of the.\nLinker.\n\n@return a set of all the Declaration matching the DeclarationFilter of the\nLinker.", "adds the qualified names to the require-bundle attribute, if not already\npresent.\n\n@param bundles - passing parameterized bundled (e.g. versions, etc.) is\nnot supported", "Returns a list of Elements form the DOM tree, matching the tag element.", "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read.", "Mapping message info.\n\n@param messageInfo the message info\n@return the message info type", "Assigns retention policy with givenID to the enterprise.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@return info about created assignment." ]
protected void addPoint(double time, RandomVariable value, boolean isParameter) { synchronized (rationalFunctionInterpolationLazyInitLock) { if(interpolationEntity == InterpolationEntity.LOG_OF_VALUE_PER_TIME && time == 0) { boolean containsOne = false; int index=0; for(int i = 0; i< value.size(); i++){if(value.get(i)==1.0) {containsOne = true; index=i; break;}} if(containsOne && isParameter == false) { return; } else { throw new IllegalArgumentException("The interpolation method LOG_OF_VALUE_PER_TIME does not allow to add a value at time = 0 other than 1.0 (received 1 at index" + index + ")."); } } RandomVariable interpolationEntityValue = interpolationEntityFromValue(value, time); int index = getTimeIndex(time); if(index >= 0) { if(points.get(index).value == interpolationEntityValue) { return; // Already in list } else if(isParameter) { return; } else { throw new RuntimeException("Trying to add a value for a time for which another value already exists."); } } else { // Insert the new point, retain ordering. Point point = new Point(time, interpolationEntityValue, isParameter); points.add(-index-1, point); if(isParameter) { // Add this point also to the list of parameters int parameterIndex = getParameterIndex(time); if(parameterIndex >= 0) { new RuntimeException("CurveFromInterpolationPoints inconsistent."); } pointsBeingParameters.add(-parameterIndex-1, point); } } rationalFunctionInterpolation = null; curveCacheReference = null; } }
[ "Add a point to this curveFromInterpolationPoints. The method will throw an exception if the point\nis already part of the curveFromInterpolationPoints.\n\n@param time The x<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param value The y<sub>i</sub> in <sub>i</sub> = f(x<sub>i</sub>).\n@param isParameter If true, then this point is served via {@link #getParameter()} and changed via {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated." ]
[ "This method writes resource data to an MSPDI file.\n\n@param project Root node of the MSPDI file", "Detach the component of the specified type from this scene object.\n\nEach scene object has a list of components. Only one component\nof a particular type can be attached. Components are detached based on their type.\n\n@return GVRComponent detached or null if component not found\n@param type type of component to detach\n@see GVRSceneObject#attachComponent(GVRComponent)", "Format a date that is parseable from JavaScript, according to ISO-8601.\n\n@param date the date to format to a JSON string\n@return a formatted date in the form of a string", "Start a process using the given parameters.\n\n@param processId\n@param parameters\n@return", "Update the BinderDescriptor of the declarationBinderRef.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Transforms each character from this reader by passing it to the given\nclosure. The Closure should return each transformed character, which\nwill be passed to the Writer. The reader and writer will be both be\nclosed before this method returns.\n\n@param self a Reader object\n@param writer a Writer to receive the transformed characters\n@param closure a closure that performs the required transformation\n@throws IOException if an IOException occurs.\n@since 1.5.0", "Returns true if the given method has a possibly matching instance method with the given name and arguments.\n\n@param name the name of the method of interest\n@param arguments the arguments to match against\n@return true if a matching method was found", "Create a Count-Query for ReportQueryByCriteria", "Read data for a single column.\n\n@param startIndex block start\n@param length block length" ]
public static Integer getDay(Day day) { Integer result = null; if (day != null) { result = DAY_MAP.get(day); } return (result); }
[ "Convert Day instance to MPX day index.\n\n@param day Day instance\n@return day index" ]
[ "Writes a resource assignment to a PM XML file.\n\n@param mpxj MPXJ ResourceAssignment instance", "The CommandContext can be retrieved thatnks to the ExecutableBuilder.", "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.", "Set the content type of a photo.\n\nThis method requires authentication with 'write' permission.\n\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_PHOTO\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_SCREENSHOT\n@see com.flickr4java.flickr.Flickr#CONTENTTYPE_OTHER\n@param photoId\nThe photo ID\n@param contentType\nThe contentType to set\n@throws FlickrException", "Use this API to fetch appfwsignatures resource of given name .", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Set a callback to handle any exceptions in the chain of execution.\n\n@param callback\nInstance of {@link ErrorCallback}.\n@return Reference to the {@code ExecutionChain}\n@throws IllegalStateException\nif the chain of execution has already been {@link #execute()\nstarted}.", "Mark a given element as checked to prevent duplicate work. A elements is only added when it\nis not already in the set of checked elements.\n\n@param element the element that is checked\n@return true if !contains(element.uniqueString)", "Bean types of a session bean." ]
public void addAll(int index, T... items) { List<T> collection = Arrays.asList(items); synchronized (mLock) { if (mOriginalValues != null) { mOriginalValues.addAll(index, collection); } else { mObjects.addAll(index, collection); } } if (mNotifyOnChange) notifyDataSetChanged(); }
[ "Inserts the specified objects at the specified index in the array.\n\n@param items The objects to insert into the array.\n@param index The index at which the object must be inserted." ]
[ "Count some stats on what occurs in a file.", "Given a rebalance-task info, convert it into the protobuf equivalent\n\n@param stealInfo Rebalance task info\n@return Protobuf equivalent of the same", "Extracts a house holder vector from the rows of A and stores it in u\n@param A Complex matrix with householder vectors stored in the upper right triangle\n@param row Row in A\n@param col0 first row in A (implicitly assumed to be r + i0)\n@param col1 last row +1 in A\n@param u Output array storage\n@param offsetU first index in U", "Parse a date time value.\n\n@param value String representation\n@return Date instance", "Read all resource assignments from a GanttProject project.\n\n@param gpProject GanttProject project", "Create a JavadocComment, by formatting the text of the Javadoc using the given indentation.", "Retrieves the class object for the given qualified class name.\n\n@param className The qualified name of the class\n@param initialize Whether the class shall be initialized\n@return The class object", "request token from GCM", "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name ." ]
public Date getCompleteThrough() { Date value = (Date) getCachedValue(TaskField.COMPLETE_THROUGH); if (value == null) { int percentComplete = NumberHelper.getInt(getPercentageComplete()); switch (percentComplete) { case 0: { break; } case 100: { value = getActualFinish(); break; } default: { Date actualStart = getActualStart(); Duration duration = getDuration(); if (actualStart != null && duration != null) { double durationValue = (duration.getDuration() * percentComplete) / 100d; duration = Duration.getInstance(durationValue, duration.getUnits()); ProjectCalendar calendar = getEffectiveCalendar(); value = calendar.getDate(actualStart, duration, true); } break; } } set(TaskField.COMPLETE_THROUGH, value); } return value; }
[ "Retrieve the \"complete through\" date.\n\n@return complete through date" ]
[ "Returns the first 24 photos for a given tag cluster.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\n@param clusterId\n@return PhotoList\n@throws FlickrException", "There appear to be two ways of representing task notes in an MPP8 file.\nThis method tries to determine which has been used.\n\n@param task task\n@param data task data\n@param taskExtData extended task data\n@param taskVarData task var data", "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", "Enable or disable the default blank validator.", "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", "Make a copy of this Area of Interest.", "Mark for creation all newly introduced dependent references.\nMark for deletion all nullified dependent references.\n@return the list of created objects", "Cancel all currently active operations.\n\n@return a list of cancelled operations", "Takes a String and converts it to a Date\n\n@param dateString the date\n@return Date denoted by dateString" ]
private void populateRelationList(Task task, TaskField field, String data) { DeferredRelationship dr = new DeferredRelationship(); dr.setTask(task); dr.setField(field); dr.setData(data); m_deferredRelationships.add(dr); }
[ "Populates a relation list.\n\n@param task parent task\n@param field target task field\n@param data MPX relation list data" ]
[ "Abort an upload session, discarding any chunks that were uploaded to it.", "Check if the current version match the last release or the last snapshot one\n\n@param artifact\n@return boolean", "Initializes the upper left component. Does not show the mode switch.", "Mark unfinished test cases as interrupted for each unfinished test suite, then write\ntest suite result\n@see #createFakeTestcaseWithWarning(ru.yandex.qatools.allure.model.TestSuiteResult)\n@see #markTestcaseAsInterruptedIfNotFinishedYet(ru.yandex.qatools.allure.model.TestCaseResult)", "delegate to each contained OJBIterator and release\nits resources.", "Initialize VIDEO_INFO data.", "Get the configured hive.execution.engine. If not set it will default to the default value of HiveConf", "Inserts a new instance but references via the outIdentifier, which is returned as part of the ExecutionResults\n\n@param object\n@param outIdentifier\n@return", "Click handler for bottom drawer items." ]
public static crvserver_policymap_binding[] get(nitro_service service, String name) throws Exception{ crvserver_policymap_binding obj = new crvserver_policymap_binding(); obj.set_name(name); crvserver_policymap_binding response[] = (crvserver_policymap_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch crvserver_policymap_binding resources of given name ." ]
[ "Infer app name from scan package\n\n@param packageName\nthe package name\n@return\napp name inferred from the package name", "Sets the location value as string.\n\n@param value the string representation of the location value (JSON)", "Reads a single record from the table.\n\n@param buffer record data\n@param table parent table", "Expands all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start expanding parents\n@param parentCount The number of parents to expand", "Use this API to add dnstxtrec resources.", "Read an int from an input stream.\n\n@param is input stream\n@return int value", "Creates a ProjectCalendar instance from the Asta data.\n\n@param calendarRow basic calendar data\n@param workPatternMap work pattern map\n@param workPatternAssignmentMap work pattern assignment map\n@param exceptionAssignmentMap exception assignment map\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map", "Initial random seed used for shuffling test suites and other sources\nof pseudo-randomness. If not set, any random value is set.\n\n<p>The seed's format is compatible with {@link RandomizedRunner} so that\nseed can be fixed for suites and methods alike.", "Returns the ReportModel with given name." ]
private void debugLogEnd(String operationType, Long OriginTimeInMs, Long RequestStartTimeInMs, Long ResponseReceivedTimeInMs, String keyString, int numVectorClockEntries) { long durationInMs = ResponseReceivedTimeInMs - RequestStartTimeInMs; logger.debug("Received a response from voldemort server for Operation Type: " + operationType + " , For key(s): " + keyString + " , Store: " + this.storeName + " , Origin time of request (in ms): " + OriginTimeInMs + " , Response received at time (in ms): " + ResponseReceivedTimeInMs + " . Request sent at(in ms): " + RequestStartTimeInMs + " , Num vector clock entries: " + numVectorClockEntries + " , Duration from CoordinatorFatClient back to CoordinatorFatClient(in ms): " + durationInMs); }
[ "Traces the time taken just by the fat client inside Coordinator to\nprocess this request\n\n\n@param operationType\n@param OriginTimeInMs - Original request time in Http Request\n@param RequestStartTimeInMs - Time recorded just before fat client\nstarted processing\n@param ResponseReceivedTimeInMs - Time when Response was received from\nfat client\n@param keyString - Hex denotation of the key(s)\n@param numVectorClockEntries - represents the sum of entries size of all\nvector clocks received in response. Size of a single vector clock\nrepresents the number of entries(nodes) in the vector" ]
[ "Returns the type of the current member which is the type in the case of a field, the return type for a getter\nmethod, or the type of the parameter for a setter method.\n\n@return The member type\n@exception XDocletException if an error occurs", "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue...", "Use this API to fetch all the snmpmanager resources that are configured on netscaler.", "Attempts to locate the activity type value extracted from an existing P6 schedule.\nIf necessary converts to the form which can be used in the PMXML file.\nReturns \"Resource Dependent\" as the default value.\n\n@param task parent task\n@return activity type", "Add a IN clause so the column must be equal-to one of the objects passed in.", "Called when a ParentViewHolder has triggered a collapse for it's parent\n\n@param flatParentPosition the position of the parent that is calling to be collapsed", "Write the document object to a file.\n\n@param document the document object.\n@param filePathname the path name of the file to be written to.\n@param method the output method: for instance html, xml, text\n@param indent amount of indentation. -1 to use the default.\n@throws TransformerException if an exception occurs.\n@throws IOException if an IO exception occurs.", "Answer the SQL-Clause for a SelectionCriteria\nIf the Criteria references a class with extents an OR-Clause is\nadded for each extent\n@param c SelectionCriteria", "Find the animation associated with this avatar with the given name.\n@param name name of animation to look for\n@return {@link GVRAnimator} animation found or null if none with that name" ]
static void processRoot(final File root, final ProcessedLayers layers, final LayerPathSetter setter) throws IOException { final LayersConfig layersConfig = LayersConfig.getLayersConfig(root); // Process layers final File layersDir = new File(root, layersConfig.getLayersPath()); if (!layersDir.exists()) { if (layersConfig.isConfigured()) { // Bad config from user throw PatchLogger.ROOT_LOGGER.installationNoLayersConfigFound(layersDir.getAbsolutePath()); } // else this isn't a root that has layers and add-ons } else { // check for a valid layer configuration for (final String layer : layersConfig.getLayers()) { File layerDir = new File(layersDir, layer); if (!layerDir.exists()) { if (layersConfig.isConfigured()) { // Bad config from user throw PatchLogger.ROOT_LOGGER.installationMissingLayer(layer, layersDir.getAbsolutePath()); } // else this isn't a standard layers and add-ons structure return; } layers.addLayer(layer, layerDir, setter); } } // Finally process the add-ons final File addOnsDir = new File(root, layersConfig.getAddOnsPath()); final File[] addOnsList = addOnsDir.listFiles(); if (addOnsList != null) { for (final File addOn : addOnsList) { layers.addAddOn(addOn.getName(), addOn, setter); } } }
[ "Process a module or bundle root.\n\n@param root the root\n@param layers the processed layers\n@param setter the bundle or module path setter\n@throws IOException" ]
[ "Replaces sequences of whitespaces with tabs.\n\n@param self A CharSequence to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2", "Old REST client uses old REST service", "Convert an Object to a DateTime, without an Exception", "Use this API to fetch snmpalarm resources of given names .", "Copy one Gradient into another.\n@param g the Gradient to copy into", "Generate and return the list of statements to create a database table and any associated features.", "Use this API to add sslcipher resources.", "Called by implementation class once websocket connection established\nat networking layer.\n@param context the websocket context", "Sets a quota for a users.\n\n@param user the user.\n@param quota the quota." ]
private void readRelationships() { for (MapRow row : m_tables.get("REL")) { Task predecessor = m_activityMap.get(row.getString("PREDECESSOR_ACTIVITY_ID")); Task successor = m_activityMap.get(row.getString("SUCCESSOR_ACTIVITY_ID")); if (predecessor != null && successor != null) { Duration lag = row.getDuration("LAG_VALUE"); RelationType type = row.getRelationType("LAG_TYPE"); successor.addPredecessor(predecessor, type, lag); } } }
[ "Read task relationships." ]
[ "Retrieve a finish date.\n\n@param data byte array\n@param offset offset into byte array\n@return finish date", "Get the configured hive.execution.engine. If not set it will default to the default value of HiveConf", "Send an event to other applications\n\n@param context context in which to send the broadcast\n@param event event to send", "Get the URI for the given statement.\n\n@param statement\nthe statement for which to create a URI\n@return the URI", "Check if the given class represents an array of primitive wrappers,\ni.e. Boolean, Byte, Character, Short, Integer, Long, Float, or Double.\n@param clazz the class to check\n@return whether the given class is a primitive wrapper array class", "Set a knot color.\n@param n the knot index\n@param color the color", "Calculate the adjusted forward swaprate corresponding to a change of payoff unit from the given swapAnnuity to the given payoffUnit\nusing the Black-Scholes model for the swap rate together with the 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@return Convexity adjusted forward rate", "Build a String representation of given arguments.", "Set a custom response for this path\n\n@param pathName name of path\n@param customResponse value of custom response\n@return true if success, false otherwise\n@throws Exception exception" ]
public boolean setViewPortVisibility(final ViewPortVisibility viewportVisibility) { boolean visibilityIsChanged = viewportVisibility != mIsVisibleInViewPort; if (visibilityIsChanged) { Visibility visibility = mVisibility; switch(viewportVisibility) { case FULLY_VISIBLE: case PARTIALLY_VISIBLE: break; case INVISIBLE: visibility = Visibility.HIDDEN; break; } mIsVisibleInViewPort = viewportVisibility; updateVisibility(visibility); } return visibilityIsChanged; }
[ "Set ViewPort visibility of the object.\n\n@see ViewPortVisibility\n@param viewportVisibility\nThe ViewPort visibility of the object.\n@return {@code true} if the ViewPort visibility was changed, {@code false} if it\nwasn't." ]
[ "Clears out the statement handles.\n@param internalClose if true, close the inner statement handle too.", "Serializes the timing data to a \"~\" delimited file at outputPath.", "Gets the file from which boot operations should be parsed.\n@return the file. Will not be {@code null}", "Support the range subscript operator for GString\n\n@param text a GString\n@param range a Range\n@return the String of characters corresponding to the provided range\n@since 2.3.7", "Create a Collection Proxy for a given query.\n\n@param brokerKey The key of the persistence broker\n@param query The query\n@param collectionClass The class to build the proxy for\n@return The collection proxy", "Find the node corresponding to an entity.\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", "Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return", "Retrieves the timephased breakdown of actual cost.\n\n@return timephased actual cost", "Get a list of tags for the specified photo.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param photoId\nThe photo ID\n@return The collection of Tag objects" ]
public void setShortVec(char[] data) { if (data == null) { throw new IllegalArgumentException("Input data for indices cannot be null"); } if (getIndexSize() != 2) { throw new UnsupportedOperationException("Cannot update integer indices with char array"); } if (!NativeIndexBuffer.setShortArray(getNative(), data)) { throw new UnsupportedOperationException("Input array is wrong size"); } }
[ "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if char array is wrong size" ]
[ "For internal use, don't call the public API internally", "Make superclasses method protected??", "call with lock on 'children' held", "Sets the category of the notification for iOS8 notification\nactions. See 13 minutes into \"What's new in iOS Notifications\"\n\nPassing {@code null} removes the category.\n\n@param category the name of the category supplied to the app\nwhen receiving the notification\n@return this", "Retrieve an activity status.\n\n@param mpxj MPXJ Task instance\n@return activity status", "bootstrap method for method calls with \"this\" as receiver\n@deprecated since Groovy 2.1.0", "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", "symbol for filling padding position in output", "Return whether or not the data object has a default value passed for this field of this type." ]
public void reverse() { for (int i = 0, size = mTransitionControls.size(); i < size; i++) { mTransitionControls.get(i).reverse(); } }
[ "Reverses all the TransitionControllers managed by this TransitionManager" ]
[ "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance", "Inserts a single document locally and being to synchronize it based on its _id. Inserting\na document with the same _id twice will result in a duplicate key exception.\n\n@param namespace the namespace to put the document in.\n@param document the document to insert.", "Use this API to fetch appfwjsoncontenttype resources of given names .", "Notifies that multiple header items are inserted.\n\n@param positionStart the position.\n@param itemCount the item count.", "Retrieve any task field value lists defined in the MPP file.", "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.", "Converts from a Fluo RowColumn to a Accumulo Key\n\n@param rc RowColumn\n@return Key", "Multiply two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the multiply of specified complex numbers.", "Use this API to fetch all the nslimitselector resources that are configured on netscaler." ]
public static String getAt(GString text, Range range) { return getAt(text.toString(), range); }
[ "Support the range subscript operator for GString\n\n@param text a GString\n@param range a Range\n@return the String of characters corresponding to the provided range\n@since 2.3.7" ]
[ "Query a player to determine the port on which its database server is running.\n\n@param announcement the device announcement with which we detected a new player on the network.", "Goes through the token lists and adds all the variables which can be used to define a sub-matrix. If anything\nelse is found an excpetion is thrown", "create a HashMap form the json properties and add it to the shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "Create a mapping from entity names to entity ID values.", "Use this API to fetch a rewriteglobal_binding resource .", "Get random geographical location\n@return 2-Tuple of ints (latitude, longitude)", "Adds a new Pie Slice to the PieChart. After inserting and calculation of the highlighting color\na complete recalculation is initiated.\n\n@param _Slice The newly added PieSlice.", "Notify our own event listeners of a Z-Wave event.\n@param event the event to send." ]
public ConfigBuilder withMasterName(final String masterName) { if (masterName == null || "".equals(masterName)) { throw new IllegalArgumentException("masterName is null or empty: " + masterName); } this.masterName = masterName; return this; }
[ "Configs created by this ConfigBuilder will use the given Redis master name.\n\n@param masterName the Redis set of sentinels\n@return this ConfigBuilder" ]
[ "Creates a new Terms of Services.\n@param api the API connection to be used by the resource.\n@param termsOfServiceStatus the current status of the terms of services. Set to \"enabled\" or \"disabled\".\n@param termsOfServiceType the scope of terms of service. Set to \"external\" or \"managed\".\n@param text the text field of terms of service containing terms of service agreement info.\n@return information about the Terms of Service created.", "A convenient way of creating a map on the fly.\n\n@param <K> the key type\n@param <V> the value type\n@param entries\nMap.Entry objects to be added to the map\n@return a LinkedHashMap with the supplied entries", "Determines total number of partition-stores moved across zones.\n\n@return number of cross zone partition-store moves", "Removes all elements in the sorted set with a score in the given range.\n@param scoreRange\n@return the number of elements removed.", "Use this API to fetch gslbsite resources of given names .", "Converts a string representation of an integer into an Integer object.\nSilently ignores any parse exceptions and returns null.\n\n@param value String representation of an integer\n@return Integer instance", "Close all JDBC objects related to this connection.", "Creates a style definition used for the body element.\n@return The body style definition.", "Store the given data and return a uuid for later retrieval of the data\n\n@param data\n@return unique id for the stored data" ]
public Integer getGroupIdFromName(String groupName) { return (Integer) sqlService.getFromTable(Constants.GENERIC_ID, Constants.GROUPS_GROUP_NAME, groupName, Constants.DB_TABLE_GROUPS); }
[ "given the groupName, it returns the groupId\n\n@param groupName name of group\n@return ID of group" ]
[ "This method is used to associate a child task with the current\ntask instance. It has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be updated once all of the task data has been read.\n\n@param child child task", "Construct a Access Token from a Flickr Response.\n\n@param response", "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler.", "Internal method which is called when the user has finished editing the title.\n\n@param box the text box which has been edited", "Returns the index of each elem in a List.\n@param elems The list of items\n@return An array of indices", "Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A line to expand\n@param tabStop The number of spaces a tab represents\n@return The expanded toString() of this CharSequence\n@see #expandLine(String, int)\n@since 1.8.2", "Set the visibility of the object.\n\n@see Visibility\n@param visibility\nThe visibility of the object.\n@return {@code true} if the visibility was changed, {@code false} if it\nwasn't.", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the proper value", "This method extracts resource data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param calendarMap Map of calendar UIDs to names" ]
protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
[ "Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.\n\n@param beanClass\n@return the additional bean deployment archive" ]
[ "Pass a model object and return a SoyMapData if a model object happens\nto be a SoyMapData.\n\nAn implementation will also check if a passed in object is a Map and return\na SoyMapData wrapping that map", "find the middle point of two intersect points in circle,only one point will be correct\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Reads characters until the 'end' character is encountered.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "This method is called to alert project listeners to the fact that\na calendar has been read from a project file.\n\n@param calendar calendar instance", "Return the score of the specified element of the sorted set at key.\n@param member\n@return The score value or <code>null</code> if the element does not exist in the set.", "Get the DMR path for this node. For leaves, the DMR path is the path of its parent.\n@return The DMR path for this node.", "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.", "Cosine interpolation.\n\n@param x1 X1 Value.\n@param x2 X2 Value.\n@param a Value.\n@return Value.", "Set new front facing rotation\n@param rotation" ]
public Client setFriendlyName(int profileId, String clientUUID, String friendlyName) throws Exception { // first see if this friendlyName is already in use Client client = this.findClientFromFriendlyName(profileId, friendlyName); if (client != null && !client.getUUID().equals(clientUUID)) { throw new Exception("Friendly name already in use"); } PreparedStatement statement = null; int rowsAffected = 0; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_CLIENT + " SET " + Constants.CLIENT_FRIENDLY_NAME + " = ?" + " WHERE " + Constants.CLIENT_CLIENT_UUID + " = ?" + " AND " + Constants.GENERIC_PROFILE_ID + " = ?" ); statement.setString(1, friendlyName); statement.setString(2, clientUUID); statement.setInt(3, profileId); rowsAffected = statement.executeUpdate(); } catch (Exception e) { } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } if (rowsAffected == 0) { return null; } return this.findClient(clientUUID, profileId); }
[ "Set a friendly name for a client\n\n@param profileId profileId of the client\n@param clientUUID UUID of the client\n@param friendlyName friendly name of the client\n@return return Client object or null\n@throws Exception exception" ]
[ "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)", "Creates a list of placeholders for use in a PreparedStatement\n\n@param length number of placeholders\n@return String of placeholders, seperated by comma", "Gets the info for a running build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildId the unique identifier of the build", "Redirect to page\n\n@param model\n@return", "Use this API to unset the properties of nsacl6 resources.\nProperties that need to be unset are specified in args array.", "Restores a trashed file to a new location with a new name.\n@param fileID the ID of the trashed file.\n@param newName an optional new name to give the file. This can be null to use the file's original name.\n@param newParentID an optional new parent ID for the file. This can be null to use the file's original\nparent.\n@return info about the restored file.", "Replace a single value at the appropriate location in the existing value array.\n@param index - location in the array list\n@param newValue - the new String", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Copies the non-zero structure of orig into \"this\"\n@param orig Matrix who's structure is to be copied" ]
public void inputValues(boolean... values) { for (boolean value : values) { InputValue inputValue = new InputValue(); inputValue.setChecked(value); this.inputValues.add(inputValue); } }
[ "Sets the values of this input field. Only Applicable check-boxes and a radio buttons.\n\n@param values Values to set." ]
[ "Use this API to fetch aaagroup_vpnsessionpolicy_binding resources of given name .", "Adds the given service provider factory to the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "package for testing purpose", "Inserts the LokenList immediately following the 'before' token", "Apply any applicable header overrides to request\n\n@param httpMethodProxyRequest\n@throws Exception", "Sets the underlying write timeout in milliseconds.\nA value of 0 specifies an infinite timeout.\n@see okhttp3.OkHttpClient.Builder#writeTimeout(long, TimeUnit)", "Requests the cue list for a specific track ID, given a dbserver connection to a player that has already\nbeen 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 cue list, or {@code null} if none was available\n@throws IOException if there is a communication problem", "The token was previously determined as potentially to-be-splitted thus we\nemit additional indentation or dedenting tokens.", "Add the set with given bundles to the \"Import-Package\" main attribute.\n\n@param importedPackages The set of all packages to add." ]
public CollectionRequest<Attachment> findByTask(String task) { String path = String.format("/tasks/%s/attachments", task); return new CollectionRequest<Attachment>(this, Attachment.class, path, "GET"); }
[ "Returns the compact records for all attachments on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object" ]
[ "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", "Publish finish events for each of the specified query types\n\n<pre>\n{@code\nRequestEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Identifier\n@param bus EventBus to post events to\n@param types Query types to post to event bus", "Gets an item that was shared with a password-protected shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@param password the password for the shared link.\n@return info about the shared item.", "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", "Converts the transpose of a row major matrix into a row major block matrix.\n\n@param src Original DMatrixRMaj. Not modified.\n@param dst Equivalent DMatrixRBlock. Modified.", "Set a friendly name for a client\n\n@param profileId profileId of the client\n@param clientUUID UUID of the client\n@param friendlyName friendly name of the client\n@return return Client object or null\n@throws Exception exception", "Throws an IllegalArgumentException when the given value is not true.\n@param value the value to assert if true\n@param message the message to display if the value is false\n@return the value", "Registers the transformers for JBoss EAP 7.0.0.\n\n@param subsystemRegistration contains data about the subsystem registration", "Waits for the current outstanding request retrying it with exponential backoff if it fails.\n\n@throws ClosedByInterruptException if request was interrupted\n@throws IOException In the event of FileNotFoundException, MalformedURLException\n@throws RetriesExhaustedException if exceeding the number of retries" ]
public static sslfipskey get(nitro_service service, String fipskeyname) throws Exception{ sslfipskey obj = new sslfipskey(); obj.set_fipskeyname(fipskeyname); sslfipskey response = (sslfipskey) obj.get_resource(service); return response; }
[ "Use this API to fetch sslfipskey resource of given name ." ]
[ "Delivers the correct JSON Object for the target\n\n@param target\n@throws org.json.JSONException", "Return true if c has a @hidden tag associated with it", "Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources.", "Use this API to fetch all the ipset resources that are configured on netscaler.", "Return the discount factor within a given model context for a given maturity.\n@param model The model used as a context (not required for this class).\n@param maturity The maturity in terms of ACT/365 daycount form this curve reference date. Note that this parameter might get rescaled to a different time parameter.\n@see net.finmath.marketdata.model.curves.DiscountCurveInterface#getDiscountFactor(net.finmath.marketdata.model.AnalyticModelInterface, double)", "Validate that the Unique IDs for the entities in this container are valid for MS Project.\nIf they are not valid, i.e one or more of them are too large, renumber them.", "Obtains a local date in International Fixed calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the International Fixed local date, not null\n@throws DateTimeException if unable to create the date", "Joins a collection in a string using a delimiter\n@param col Collection\n@param delim Delimiter\n@return String", "At the moment we only support the case where one entity type is returned" ]
public static void validateAllAvroSchemas(SerializerDefinition avroSerDef) { Map<Integer, String> schemaVersions = avroSerDef.getAllSchemaInfoVersions(); if(schemaVersions.size() < 1) { throw new VoldemortException("No schema specified"); } for(Map.Entry<Integer, String> entry: schemaVersions.entrySet()) { Integer schemaVersionNumber = entry.getKey(); String schemaStr = entry.getValue(); try { Schema.parse(schemaStr); } catch(Exception e) { throw new VoldemortException("Unable to parse Avro schema version :" + schemaVersionNumber + ", schema string :" + schemaStr); } } }
[ "Given an AVRO serializer definition, validates if all the avro schemas\nare valid i.e parseable.\n\n@param avroSerDef" ]
[ "if you have a default, it's automatically optional", "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", "Called when a previously created loader has finished its load.\n\n@param loader The Loader that has finished.\n@param data The data generated by the Loader.", "Validates aliases.\n\n@param uuid The structure id for which the aliases should be valid\n@param aliasPaths a map from id strings to alias paths\n@param callback the callback which should be called with the validation results", "Gets an exception reporting an unexpected XML attribute.\n\n@param reader a reference to the stream reader.\n@param index the attribute index.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Set work connection.\n\n@param db the db setup bean", "Get the connectivity state as reported by the Android system\n\n@param context Android context\n@return the connectivity state as reported by the Android system", "Get a reader implementation class to perform API calls with while specifying\nan explicit page size for paginated API calls. This gets translated to a per_page=\nparameter on API requests. Note that Canvas does not guarantee it will honor this page size request.\nThere is an explicit maximum page size on the server side which could change. The default page size\nis 10 which can be limiting when, for example, trying to get all users in a 800 person course.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param paginationPageSize Requested pagination page size\n@param <T> The reader type to request an instance of\n@return An instance of the requested reader class", "Get the list of store names from a list of store definitions\n\n@param list\n@param ignoreViews\n@return list of store names" ]
static Project convert( String name, com.linecorp.centraldogma.server.storage.project.Project project) { return new Project(name); }
[ "The parameter 'project' is not used at the moment, but will be used once schema and plugin support lands." ]
[ "Called when a drawer has settled in a completely open state.", "Gets the Java subclass of GVRShader which implements\nthis shader type.\n@param ctx GVRContext shader is associated with\n@return GVRShader class implementing the shader type", "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder", "Removes from this set all of its elements that are contained in the specified members array\n@param members the members to remove\n@return the number of members actually removed", "Use this API to fetch authenticationvserver_binding resource of given name .", "Convert an Object to a Timestamp, without an Exception", "request token from GCM", "Obtain plugin information\n\n@return", "Get the first controller of a specified type\n@param type controller type to search for\n@return controller found or null if no controllers of the given type" ]
public String getProfileIdFromClientId(int id) { return (String) sqlService.getFromTable(Constants.CLIENT_PROFILE_ID, Constants.GENERIC_ID, id, Constants.DB_TABLE_CLIENT); }
[ "gets the profile_name associated with a specific id" ]
[ "Main method of this class related to ListView widget. This method is the responsible of\nrecycle or create a new Renderer instance with all the needed information to implement the\nrendering. This method will validate all the attributes passed in the builder constructor and\nwill check if can recycle or has to create a new Renderer instance.\n\nThis method is used with ListView because the view recycling mechanism is implemented in this\nclass. RecyclerView widget will use buildRendererViewHolder method.\n\n@return ready to use Renderer instance.", "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Store the versioned values\n\n@param values list of versioned bytes\n@return the list of versioned values rolled into an array of bytes", "symbol for filling padding position in output", "Add component processing time to given map\n@param mapComponentTimes\n@param component", "Set a knot blend type.\n@param n the knot index\n@param type the knot blend type\n@see #getKnotBlend", "Triggers the building process, builds, creates and starts the docker container associated with the requested\ncontainer object, creates the container object and returns it\n\n@return the created container object\n\n@throws IllegalAccessException\nif there is an error accessing the container object fields\n@throws IOException\nif there is an I/O error while preparing the docker build\n@throws InvocationTargetException\nif there is an error while calling the DockerFile archive creation", "Format a calendar instance that is parseable from JavaScript, according to ISO-8601.\n\n@param cal the calendar to format to a JSON string\n@return a formatted date in the form of a string", "In MongoDB the equivalent of a stored procedure is a stored Javascript.\n\n@param storedProcedureName name of stored procedure\n@param params query parameters\n@param tupleContext the tuple context\n\n@return the result as a {@link ClosableIterator}" ]
public void removeCustomOverride(int path_id, String client_uuid) throws Exception { updateRequestResponseTables("custom_response", "", getProfileIdFromPathID(path_id), client_uuid, path_id); }
[ "Remove custom overrides\n\n@param path_id ID of path containing custom override\n@param client_uuid UUID of the client\n@throws Exception exception" ]
[ "This method extracts calendar data from a Planner file.\n\n@param project Root node of the Planner file", "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "This method writes assignment data to a JSON file.", "Creates the database.\n\n@throws PlatformException If some error occurred", "Create an info object from a uri and the http method object.\n\n@param uri the uri\n@param method the method", "Round the size of a rectangle with double values.\n\n@param rectangle The rectangle.\n@return", "initializer to setup JSAdapter prototype in the given scope", "Get the QNames of the port components to be declared\nin the namespaces\n\n@return collection of QNames", "Use this API to add autoscaleaction resources." ]
public NamedStyleInfo getNamedStyleInfo(String name) { for (NamedStyleInfo info : namedStyleInfos) { if (info.getName().equals(name)) { return info; } } return null; }
[ "Get layer style by name.\n\n@param name layer style name\n@return layer style" ]
[ "Use this API to fetch lbvserver_auditnslogpolicy_binding resources of given name .", "Randomize the gradient.", "Retrieve and validate the zone id value from the REST request.\n\"X-VOLD-Zone-Id\" is the zone id header.\n\n@return valid zone id or -1 if there is no/invalid zone id", "Returns the directory of the file.\n\n@param filePath Path of the file.\n@return The directory string or {@code null} if\nthere is no parent directory.\n@throws IllegalArgumentException if path is bad", "This method retrieves the next token and returns a constant representing\nthe type of token found.\n\n@return token type value", "Returns all keys in no particular order.", "Use this API to fetch filtered set of dospolicy resources.\nset the filter parameter values in filtervalue object.", "Takes a string of the form \"x1=y1,x2=y2,...\" and returns Map\n@param map A string of the form \"x1=y1,x2=y2,...\"\n@return A Map m is returned such that m.get(xn) = yn", "Get DPI suggestions.\n\n@return DPI suggestions" ]
private ServerSetup[] createServerSetup() { List<ServerSetup> setups = new ArrayList<>(); if (smtpProtocol) { smtpServerSetup = createTestServerSetup(ServerSetup.SMTP); setups.add(smtpServerSetup); } if (smtpsProtocol) { smtpsServerSetup = createTestServerSetup(ServerSetup.SMTPS); setups.add(smtpsServerSetup); } if (pop3Protocol) { setups.add(createTestServerSetup(ServerSetup.POP3)); } if (pop3sProtocol) { setups.add(createTestServerSetup(ServerSetup.POP3S)); } if (imapProtocol) { setups.add(createTestServerSetup(ServerSetup.IMAP)); } if (imapsProtocol) { setups.add(createTestServerSetup(ServerSetup.IMAPS)); } return setups.toArray(new ServerSetup[setups.size()]); }
[ "Creates the server setup, depending on the protocol flags.\n\n@return the configured server setups." ]
[ "Adds a submodule to the module.\n\n<P>\nINFO: If the module is promoted, all added submodule will be promoted.\n\n@param submodule Module", "Check the given URI to see if it matches.\n\n@param matchInfo the matchInfo to validate.\n@return True if it matches.", "Returns the index of the given name.\n\n@param name The name of the index (null or empty string for the default index)\n@return The index def or <code>null</code> if it does not exist", "We have received notification that a device is no longer on the network, so clear out its artwork.\n\n@param announcement the packet which reported the device’s disappearance", "Performs the filtering of the expired entries based on retention time.\nOptionally, deletes them also\n\n@param key the key whose value is to be deleted if needed\n@param vals set of values to be filtered out\n@return filtered list of values which are currently valid", "Notifies that a header item is changed.\n\n@param position the position.", "prefix the this class fk columns with the indirection table", "Marshal the assertion as a JSON object.\n\n@param assertion the assertion to marshal", "Return the list of galleries created by a user. Sorted from newest to oldest.\n\n@param userId\nThe user you want to check for\n@param perPage\nNumber of galleries per page\n@param page\nThe page number\n@return gallery\n@throws FlickrException\n\n@see <a hrerf=\"http://www.flickr.com/services/api/flickr.galleries.getList.html\">flickr.galleries.getList</a>" ]
public static dnsview_binding get(nitro_service service, String viewname) throws Exception{ dnsview_binding obj = new dnsview_binding(); obj.set_viewname(viewname); dnsview_binding response = (dnsview_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch dnsview_binding resource of given name ." ]
[ "Cretae a BufferedImage from an ImageProducer.\n@param producer the ImageProducer\n@return a new TYPE_INT_ARGB BufferedImage", "Generate a path select string\n\n@return Select query string", "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", "Get the authentication method to use.\n\n@return authentication method", "Makes sure that the operation name and the address have been set and returns a ModelNode\nrepresenting the operation request.", "Appends to the statement table and all tables joined to it.\n@param alias the table alias\n@param where append conditions for WHERE clause here", "Return the first header value for the given header name, if any.\n@param headerName the header name\n@return the first header value, or {@code null} if none", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Configures the player whose current track waveforms and status will automatically be reflected. Whenever a new\ntrack is loaded on that player, the waveform and metadata will be updated, and the current playback position and\nstate of the player will be reflected by the component.\n\n@param player the player number to monitor, or zero if monitoring should stop" ]
public Tree determineHead(Tree t, Tree parent) { if (nonTerminalInfo == null) { throw new RuntimeException("Classes derived from AbstractCollinsHeadFinder must" + " create and fill HashMap nonTerminalInfo."); } if (t == null || t.isLeaf()) { return null; } if (DEBUG) { System.err.println("determineHead for " + t.value()); } Tree[] kids = t.children(); Tree theHead; // first check if subclass found explicitly marked head if ((theHead = findMarkedHead(t)) != null) { if (DEBUG) { System.err.println("Find marked head method returned " + theHead.label() + " as head of " + t.label()); } return theHead; } // if the node is a unary, then that kid must be the head // it used to special case preterminal and ROOT/TOP case // but that seemed bad (especially hardcoding string "ROOT") if (kids.length == 1) { if (DEBUG) { System.err.println("Only one child determines " + kids[0].label() + " as head of " + t.label()); } return kids[0]; } return determineNonTrivialHead(t, parent); }
[ "Determine which daughter of the current parse tree is the head.\n\n@param t The parse tree to examine the daughters of.\nIf this is a leaf, <code>null</code> is returned\n@param parent The parent of t\n@return The daughter parse tree that is the head of <code>t</code>.\nReturns null for leaf nodes.\n@see Tree#percolateHeads(HeadFinder)\nfor a routine to call this and spread heads throughout a tree" ]
[ "Tells you if the expression is a null safe dereference.\n@param expression\nexpression\n@return\ntrue if is null safe dereference.", "This method dumps the entire contents of a file to an output\nprint writer as ascii data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "The conditional expectation is calculated using a Monte-Carlo regression technique.\n\n@param exerciseTime The exercise time\n@param model The valuation model\n@return The condition expectation estimator\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Get all the names of inputs that are required to be in the Values object when this graph is executed.", "Associate a name with an object and make it persistent.\nAn object instance may be bound to more than one name.\nBinding a previously transient object to a name makes that object persistent.\n@param object The object to be named.\n@param name The name to be given to the object.\n@exception org.odmg.ObjectNameNotUniqueException\nIf an attempt is made to bind a name to an object and that name is already bound\nto an object.", "Return the value from the field in the object that is defined by this FieldType.", "This continuously tries to reconnect in a separate thread and will only stop if the connection was established\nsuccessfully or the server gets shutdown. If there is currently a reconnect task active the connection paramaters\nand callback will get updated.\n\n@param reconnectUri the updated connection uri\n@param authKey the updated authentication key\n@param callback the current callback", "Creates a new block box from the given element with the given parent. No style is assigned to the resulting box.\n@param parent The parent box in the tree of boxes.\n@param n The element that this box belongs to.\n@param replaced When set to <code>true</code>, a replaced block box will be created. Otherwise, a normal non-replaced block will be created.\n@return The new block box.", "This method returns the duplicated certificate mapped to the passed in cert, or\ncreates and returns one if no mapping has yet been performed. If a naked public\nkey has already been mapped that matches the key in the cert, the already mapped\nkeypair will be reused for the mapped cert.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws InvalidKeyException\n@throws CertificateException\n@throws CertificateNotYetValidException\n@throws NoSuchAlgorithmException\n@throws NoSuchProviderException\n@throws SignatureException\n@throws KeyStoreException\n@throws UnrecoverableKeyException" ]
public static void requireNamespace(final XMLExtendedStreamReader reader, final Namespace requiredNs) throws XMLStreamException { Namespace actualNs = Namespace.forUri(reader.getNamespaceURI()); if (actualNs != requiredNs) { throw unexpectedElement(reader); } }
[ "Require that the namespace of the current element matches the required namespace.\n\n@param reader the reader\n@param requiredNs the namespace required\n@throws XMLStreamException if the current namespace does not match the required namespace" ]
[ "Creates a XopBean. The image on the disk is included as a byte array,\na DataHandler and java.awt.Image\n@return the bean\n@throws Exception", "Factory for 'and' and 'or' predicates.", "Writes and reads the XOP attachment using a CXF JAX-RS Proxy\nThe proxy automatically sets the \"mtom-enabled\" property by checking\nthe CXF EndpointProperty set on the XopAttachment interface.\n\n@throws Exception", "Image scale method\n@param imageToScale The image to be scaled\n@param dWidth Desired width, the new image object is created to this size\n@param dHeight Desired height, the new image object is created to this size\n@param fWidth What to multiply the width by. value < 1 scales down, and value > one scales up\n@param fHeight What to multiply the height by. value < 1 scales down, and value > one scales up\n@return A scaled image", "Classify the tokens in a String. Each sentence becomes a separate document.\n\n@param str\nA String with tokens in one or more sentences of text to be\nclassified.\n@return {@link List} of classified sentences (each a List of something that\nextends {@link CoreMap}).", "Checks length and compare order of field names with declared PK fields in metadata.", "We have identified that we have an MDB file. This could be a Microsoft Project database\nor an Asta database. Open the database and use the table names present to determine\nwhich type this is.\n\n@param stream schedule data\n@return ProjectFile instance", "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "Commit all written data to the physical disk\n\n@throws IOException any io exception" ]
private void writeTasks(Project project) { Project.Tasks tasks = m_factory.createProjectTasks(); project.setTasks(tasks); List<Project.Tasks.Task> list = tasks.getTask(); for (Task task : m_projectFile.getTasks()) { list.add(writeTask(task)); } }
[ "This method writes task data to an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
[ "Add another store destination to an existing streaming session\n\n\n@param store the name of the store to stream to", "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return", "Build the tree of joins for the given criteria", "Provides a nicely formatted string of the method definition. For simplicity, generic types on some of the elements\nare not displayed.\n@return\nstring form of node with some generic elements suppressed", "Takes the file, reads it in, and prints out the likelihood of each possible\nlabel at each point.\n\n@param filename\nThe path to the specified file", "Returns all tags that designate this tag. E.g., for \"tesla-model3\", this would return \"car\", \"vehicle\", \"vendor-tesla\" etc.", "Adds each required length, ensuring it isn't negative.\n\n@param requiredLengths\none or more required lengths\n@throws IllegalArgumentException\nif a supplied length is negative", "Attempt to reconnect to Redis.\n\n@param jedis\nthe connection to Redis\n@param reconAttempts\nnumber of times to attempt to reconnect before giving up\n@param reconnectSleepTime\ntime in milliseconds to wait between attempts\n@return true if reconnection was successful", "Converts a vector from sample space into eigen space.\n\n@param sampleData Sample space data.\n@return Eigen space projection." ]
public static String readFlowId(Message message) { if (!(message instanceof SoapMessage)) { return null; } String flowId = null; Header hdFlowId = ((SoapMessage)message).getHeader(FLOW_ID_QNAME); if (hdFlowId != null) { if (hdFlowId.getObject() instanceof String) { flowId = (String)hdFlowId.getObject(); } else if (hdFlowId.getObject() instanceof Node) { Node headerNode = (Node)hdFlowId.getObject(); flowId = headerNode.getTextContent(); } else { LOG.warning("Found FlowId soap header but value is not a String or a Node! Value: " + hdFlowId.getObject().toString()); } } return flowId; }
[ "Read flow id.\n\n@param message the message\n@return flow id from the message" ]
[ "Sets that there are some pending writes that occurred at a time for an associated\nlocally emitted change event. This variant maintains the last version set.\n\n@param atTime the time at which the write occurred.\n@param changeEvent the description of the write/change.", "Return the max bounds of the layer as envelope.\n\n@param layer the layer to get envelope from\n@return Envelope the envelope", "Translate the given byte array into a string of 1s and 0s\n\n@param bytes The bytes to translate\n@return The string", "Minimize the function starting at the given initial point.", "Expensive. Creates the plan for the specific settings.", "Parse duration time units.\n\nNote that we don't differentiate between confirmed and unconfirmed\ndurations. Unrecognised duration types are default the supplied default value.\n\n@param value BigInteger value\n@param defaultValue if value is null, use this value as the result\n@return Duration units", "Converts an object to an XML file.\n\n@param object The object to convert.\n@param fileName The filename where to save it to.\n@throws FileNotFoundException On error.", "This utility method calculates the difference in working\ntime between two dates, given the context of a task.\n\n@param task parent task\n@param date1 first date\n@param date2 second date\n@param format required format for the resulting duration\n@return difference in working time between the two dates", "Assign FK values and store entries in indirection table\nfor all objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation" ]
private YearQuarter with(int newYear, Quarter newQuarter) { if (year == newYear && quarter == newQuarter) { return this; } return new YearQuarter(newYear, newQuarter); }
[ "Returns a copy of this year-quarter with the new year and quarter, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newQuarter the quarter-of-year to represent, validated not null\n@return the year-quarter, not null" ]
[ "Use this API to update bridgetable resources.", "Try to set specified property to given marshaller\n\n@param marshaller specified marshaller\n@param name name of property to set\n@param value value of property to set", "This method takes a calendar of MPXJ library type, then returns a String of the\ngeneral working days USACE format. For example, the regular 5-day work week is\nNYYYYYN\n\nIf you get Fridays off work, then the String becomes NYYYYNN\n\n@param input ProjectCalendar instance\n@return work days string", "Process the scheduling project property from PROJPROP. This table only seems to exist\nin P6 databases, not XER files.\n\n@throws SQLException", "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "Replaces an existing metadata value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value.\n@return this metadata object.", "Sets the upper limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis upper rotation limit (in radians)\n@param limitY the Y axis upper rotation limit (in radians)\n@param limitZ the Z axis upper rotation limit (in radians)", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}", "Reads Logical Screen Descriptor." ]
private void deliverOnAirUpdate(Set<Integer> audibleChannels) { for (final OnAirListener listener : getOnAirListeners()) { try { listener.channelsOnAir(audibleChannels); } catch (Throwable t) { logger.warn("Problem delivering channels on-air update to listener", t); } } }
[ "Send a channels on-air update to all registered listeners.\n\n@param audibleChannels holds the device numbers of all channels that can currently be heard in the mixer output" ]
[ "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array.", "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this", "Waits for a job V3 to complete\n\n@param cloudFoundryClient the client to use to request job status\n@param completionTimeout the amount of time to wait for the job to complete.\n@param jobId the id of the job\n@return {@code onComplete} once job has completed", "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return", "Merges the immutable container types of this Configuration with the given\nConfiguration.\n\nThe resultant immutable container types results will be the union of the two sets of\nimmutable container types. Where the type is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeImmutableContainerTypesFrom(Configuration)} .\n\n@param otherConfiguration - Configuration to merge immutable container types with.", "Stops the background data synchronization thread and releases the local client.", "Get the collection of contacts for the calling user.\n\n@return The Collection of Contact objects", "Returns the flag, indicating if the characters in the query string that are commands to Solr should be escaped.\n@return the flag, indicating if the characters in the query string that are commands to Solr should be escaped.", "Marks a given list of statements for insertion into the current document.\nInserted statements can have an id if they should update an existing\nstatement, or use an empty string as id if they should be added. The\nmethod removes duplicates and avoids unnecessary modifications by\nchecking the current content of the given document before marking\nstatements for being written.\n\n@param currentDocument\nthe document with the current statements\n@param addStatements\nthe list of new statements to be added" ]
public void setBean(String name, Object object) { Bean bean = beans.get(name); if (null == bean) { bean = new Bean(); beans.put(name, bean); } bean.object = object; }
[ "Set a bean in the context.\n\n@param name bean name\n@param object bean value" ]
[ "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server identity\n@param operation the operation\n@param transformer the operation result transformer\n@return whether the operation was executed", "Provides a collection of all the nodes in the tree\nusing a depth first traversal.\n\n@return the list of (depth-first) ordered nodes", "Use this API to fetch dospolicy resource of given name .", "The selectionStrategy given as String argument is selected as locatorSelectionStrategy.\nIf selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead.\nThen the new locatorSelectionStrategy is connected to the locatorClient and the matcher.\nA new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set\nas selector in the conduitSelectorHolder.\n\n@param conduitSelectorHolder\n@param matcher\n@param selectionStrategy", "Uploads files from the given file input fields.<p<\n\n@param fields the set of names of fields containing the files to upload\n@param filenameCallback the callback to call with the resulting map from field names to file paths\n@param errorCallback the callback to call with an error message", "This method returns the value it is passed, or null if the value\nmatches the nullValue argument.\n\n@param value value under test\n@param nullValue return null if value under test matches this value\n@return value or null", "Use this API to fetch systemuser resource of given name .", "Register capabilities associated with this resource.\n\n<p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p>\n\n@param resourceRegistration a {@link ManagementResourceRegistration} created from this definition", "Return the first header value for the given header name, if any.\n@param headerName the header name\n@return the first header value, or {@code null} if none" ]
protected void store(Object obj, Identity oid, ClassDescriptor cld, boolean insert) { store(obj, oid, cld, insert, false); }
[ "Internal used method which start the real store work." ]
[ "package for testing purpose", "Draw a rectangle's interior with this color.\n\n@param rect rectangle\n@param color colour", "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.", "Add the provided document to the cache.", "Commit an upload session after all parts have been uploaded, creating the new file or the version.\n@param digest the base64-encoded SHA-1 hash of the file being uploaded.\n@param parts the list of uploaded parts to be committed.\n@param attributes the key value pairs of attributes from the file instance.\n@param ifMatch ensures that your app only alters files/folders on Box if you have the current version.\n@param ifNoneMatch ensure that it retrieve unnecessary data if the most current version of file is on-hand.\n@return the created file instance.", "Copies entries in the source map to target map.\n\n@param source source map\n@param target target map", "orientation state factory method", "Use this API to fetch sslaction resource of given name .", "Returns the value of the primitive type from the given string value.\n\n@param value the value to parse\n@param cls the primitive type class\n@return the boxed type value or {@code null} if the given class is not a primitive type" ]
public void sendJsonToTagged(Object data, String label) { sendToTagged(JSON.toJSONString(data), label); }
[ "Send JSON representation of given data object to all connections tagged with\ngiven label\n@param data the data object\n@param label the tag label" ]
[ "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by applying a key function to each element which yields a comparable criteria.\n\n@param iterable\nthe elements to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see #sort(Iterable)\n@see #sort(Iterable, Comparator)\n@see ListExtensions#sortInplaceBy(List, org.eclipse.xtext.xbase.lib.Functions.Function1)", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "This method reads a six byte long from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Checks whether this notification is from CleverTap.\n\n@param extras The payload from the GCM intent\n@return See {@link NotificationInfo}", "Creates an element that represents a single positioned box containing the specified text string.\n@param data the text string to be contained in the created box.\n@return the resulting DOM element", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests", "This method extracts byte arrays from the embedded object data\nand converts them into RTFEmbeddedObject instances, which\nit then adds to the supplied list.\n\n@param offset offset into the RTF document\n@param text RTF document\n@param objects destination for RTFEmbeddedObject instances\n@return new offset into the RTF document", "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods", "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix." ]
public static base_responses add(nitro_service client, tmtrafficaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { tmtrafficaction addresources[] = new tmtrafficaction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new tmtrafficaction(); addresources[i].name = resources[i].name; addresources[i].apptimeout = resources[i].apptimeout; addresources[i].sso = resources[i].sso; addresources[i].formssoaction = resources[i].formssoaction; addresources[i].persistentcookie = resources[i].persistentcookie; addresources[i].initiatelogout = resources[i].initiatelogout; addresources[i].kcdaccount = resources[i].kcdaccount; addresources[i].samlssoprofile = resources[i].samlssoprofile; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add tmtrafficaction resources." ]
[ "Sets the publish queue shutdown time.\n\n@param publishQueueShutdowntime the shutdown time to set, parsed as <code>int</code>", "Use this API to fetch statistics of servicegroup_stats resource of given name .", "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", "Within a single zone, tries swapping some minimum number of random\npartitions per node with some minimum number of random partitions from\nother nodes within the zone. Chooses the best swap in each iteration.\nLarge values of the greedSwapMaxPartitions... arguments make this method\nequivalent to comparing every possible swap. This is very expensive.\n\nNormal case should be :\n\n#zones X #nodes/zone X max partitions/node X max partitions/zone\n\n@param nextCandidateCluster cluster object.\n@param greedyAttempts See RebalanceCLI.\n@param greedySwapMaxPartitionsPerNode See RebalanceCLI.\n@param greedySwapMaxPartitionsPerZone See RebalanceCLI.\n@param greedySwapZoneIds The set of zoneIds to consider. Each zone is done\nindependently.\n@param storeDefs\n@return updated cluster", "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with", "Get an array of property ids.\n\nNot all property ids need be returned. Those properties\nwhose ids are not returned are considered non-enumerable.\n\n@return an array of Objects. Each entry in the array is either\na java.lang.String or a java.lang.Number", "Sets the lower limits for the \"moving\" body rotation relative to joint point.\n\n@param limitX the X axis lower rotation limit (in radians)\n@param limitY the Y axis lower rotation limit (in radians)\n@param limitZ the Z axis lower rotation limit (in radians)", "Sets a custom configuration attribute.\n@param attributeName the attribute name. Names starting with\n{@link #JDBC_PROPERTY_NAME_PREFIX} will be used (without the prefix) by the\nConnectionFactory when creating connections from DriverManager\n(not used for external DataSource connections). Names starting with\n{@link #DBCP_PROPERTY_NAME_PREFIX} to Commons DBCP (if used, also without prefix).\n@param attributeValue the attribute value", "Use this API to clear nssimpleacl." ]
public static lbvserver_appflowpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_appflowpolicy_binding obj = new lbvserver_appflowpolicy_binding(); obj.set_name(name); lbvserver_appflowpolicy_binding response[] = (lbvserver_appflowpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch lbvserver_appflowpolicy_binding resources of given name ." ]
[ "Compares two fields given by their names.\n\n@param objA The name of the first field\n@param objB The name of the second field\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "returns the abstract method from a SAM type, if it is a SAM type.\n@param c the SAM class\n@return null if nothing was found, the method otherwise", "Deletes the VFS XML bundle file.\n@throws CmsException thrown if the delete operation fails.", "Begin a \"track;\" that is, begin logging at one level deeper.\nChannels other than the FORCE channel are ignored.\n@param args The title of the track to begin, with an optional FORCE flag.", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Generate a module graph regarding the filters\n\n@param moduleId String\n@return AbstractGraph", "This method extracts assignment data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Get the aggregated result human readable string for easy display.\n\n\n@param aggregateResultMap the aggregate result map\n@return the aggregated result human", "Remove the sequence for given sequence name.\n\n@param sequenceName Name of the sequence to remove." ]
public static ReportGenerator.Format getFormat( String... args ) { ConfigOptionParser configParser = new ConfigOptionParser(); List<ConfigOption> configOptions = Arrays.asList( format, help ); for( ConfigOption co : configOptions ) { if( co.hasDefault() ) { configParser.parsedOptions.put( co.getLongName(), co.getValue() ); } } for( String arg : args ) { configParser.commandLineLookup( arg, format, configOptions ); } // TODO properties // TODO environment if( !configParser.hasValue( format ) ) { configParser.printUsageAndExit( configOptions ); } return (ReportGenerator.Format) configParser.getValue( format ); }
[ "Terminates with a help message if the parse is not successful\n\n@param args command line arguments to\n@return the format in a correct state" ]
[ "get specific property value of job.\n\n@param id the id\n@param property the property name/path\n@return the property value", "Convert an MPXJ Duration instance into an integer duration in minutes\nready to be written to an MPX file.\n\n@param properties project properties, used for duration units conversion\n@param duration Duration instance\n@return integer duration in minutes", "Get DPI suggestions.\n\n@return DPI suggestions", "Returns the index of the first invalid character of the zone, or -1 if the zone is valid\n\n@param sequence\n@return", "Connects to a child JVM process\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return an {@link MBeanServerConnection} to the process's MBean server", "Use this API to add responderpolicy.", "Detailed request to track additional data about PUT, GET and GET_ALL\n\n@param timeNS The time in nanoseconds that the operation took to complete\n@param numEmptyResponses For GET and GET_ALL, how many keys were no values found\n@param valueBytes Total number of bytes across all versions of values' bytes\n@param keyBytes Total number of bytes in the keys\n@param getAllAggregatedCount Total number of keys returned for getAll calls", "Destroys all resource requests in requestQueue.\n\n@param requestQueue The queue for which all resource requests are to be\ndestroyed.", "Get the inactive history directories.\n\n@return the inactive history" ]
protected void ensureColumns(List columns, List existingColumns) { if (columns == null || columns.isEmpty()) { return; } Iterator iter = columns.iterator(); while (iter.hasNext()) { FieldHelper cf = (FieldHelper) iter.next(); if (!existingColumns.contains(cf.name)) { getAttributeInfo(cf.name, false, null, getQuery().getPathClasses()); } } }
[ "Builds the Join for columns if they are not found among the existingColumns.\n@param columns the list of columns represented by Criteria.Field to ensure\n@param existingColumns the list of column names (String) that are already appended" ]
[ "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "If there is an unprocessed change event for a particular document ID, fetch it from the\nchange stream listener, and remove it. By reading the event here, we are assuming it will be\nprocessed by the consumer.\n\n@return the latest unprocessed change event for the given document ID, or null if none exists.", "Build a new WebDriver based EmbeddedBrowser.\n\n@return the new build WebDriver based embeddedBrowser", "Helper method to track storage operations & time via StreamingStats.\n\n@param startNs", "Main entry point. Reads a directory containing a P3 Btrieve database files\nand returns a map of table names and table content.\n\n@param directory directory containing the database\n@param prefix file name prefix used to identify files from the same database\n@return Map of table names to table data", "Converts this object to JSON.\n\n@return the JSON representation\n\n@throws JSONException if JSON operations fail", "Send a master handoff yield command to all registered listeners.\n\n@param toPlayer the device number to which we are being instructed to yield the tempo master role", "Adds a data source to the configuration. If in deduplication mode\ngroupno == 0, otherwise it gives the number of the group to which\nthe data source belongs.", "Create a request for elevations for samples along a path.\n\n@param req\n@param callback" ]
public static authenticationradiuspolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationradiuspolicy_authenticationvserver_binding obj = new authenticationradiuspolicy_authenticationvserver_binding(); obj.set_name(name); authenticationradiuspolicy_authenticationvserver_binding response[] = (authenticationradiuspolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch authenticationradiuspolicy_authenticationvserver_binding resources of given name ." ]
[ "Apply all attributes on the given context, hereby existing entries are preserved.\n\n@param context the context to be applied, not null.\n@return this Builder, for chaining\n@see #importContext(AbstractContext, boolean)", "returns true if a job was queued within a timeout", "Draw a rounded rectangular boundary.\n\n@param rect rectangle\n@param color colour\n@param linewidth line width\n@param r radius for rounded corners", "Returns the zip entry for a file in the archive.\n@param filename the file name\n@return the zip entry for the file with the provided name\n@throws ZipException thrown if the file is not in the zip archive", "Returns the dimension of the type of the current member.\n\n@return The member dimension\n@exception XDocletException if an error occurs\n@see OjbMemberTagsHandler#getMemberType()", "Cut all characters from maxLength and replace it with \"...\"", "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Prints and stores final result of the processing. This should be called\nafter finishing the processing of a dump. It will print the statistics\ngathered during processing and it will write a CSV file with usage counts\nfor every property.", "Generates new individual particle radius based on min and max radius setting.\n\n@return new particle radius" ]
void releaseResources(JobInstance ji) { this.peremption.remove(ji.getId()); this.actualNbThread.decrementAndGet(); for (ResourceManagerBase rm : this.resourceManagers) { rm.releaseResource(ji); } if (!this.strictPollingPeriod) { // Force a new loop at once. This makes queues more fluid. loop.release(1); } this.engine.signalEndOfRun(); }
[ "Called when a payload thread has ended. This also notifies the poller to poll once again." ]
[ "Requests that the given namespace be started listening to for change events.\n\n@param namespace the namespace to listen for change events on.", "Retrieve list of resource extended attributes.\n\n@return list of extended attributes", "Process encoded payload.\n\n@throws IOException Signals that an I/O exception has occurred.", "Browse groups for the given category ID. If a null value is passed for the category then the root category is used.\n\n@param catId\nThe optional category id. Null value will be ignored.\n@return The Collection of Photo objects\n@throws FlickrException\n@deprecated Flickr returns just empty results", "Accessor method used to retrieve an Rate object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails", "Return a replica of this instance with its quality value removed.\n@return the same instance if the media type doesn't contain a quality value, or a new one otherwise", "Returns the value of the identified field as an Integer.\n@param fieldName the name of the field\n@return the value of the field as an Integer\n@throws FqlException if the field cannot be expressed as an Integer", "Load a cube map texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource)} - it will\nusually be more convenient (and more efficient) to call that directly.\n\n@param gvrContext\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param resource\nA steam containing a zip file which contains six bitmaps. The\nsix bitmaps correspond to +x, -x, +y, -y, +z, and -z faces of\nthe cube map texture respectively. The default names of the\nsix images are \"posx.png\", \"negx.png\", \"posy.png\", \"negx.png\",\n\"posz.png\", and \"negz.png\", which can be changed by calling\n{@link GVRCubemapImage#setFaceNames(String[])}.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}", "Convert a color to an angle.\n\n@param color The RGB value of the color to \"find\" on the color wheel.\n\n@return The angle (in rad) the \"normalized\" color is displayed on the\ncolor wheel." ]
public void fireEvent(Type eventType, Object event, Annotation... qualifiers) { final EventMetadata metadata = new EventMetadataImpl(eventType, null, qualifiers); notifier.fireEvent(eventType, event, metadata, qualifiers); }
[ "Fire an event and notify observers that belong to this module.\n@param eventType\n@param event\n@param qualifiers" ]
[ "Create a new AwsServiceClient instance with a different codec registry.\n\n@param codecRegistry the new {@link CodecRegistry} for the client.\n@return a new AwsServiceClient instance with the different codec registry", "scroll only once", "Ensures that no more than maxContiguousPartitionsPerZone partitions are\ncontiguous within a single zone.\n\nMoves the necessary partitions to break up contiguous runs from each zone\nto some other random zone/node. There is some chance that such random\nmoves could result in contiguous partitions in other zones.\n\n@param nextCandidateCluster cluster metadata\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return Return updated cluster metadata.", "Indicates that all of the packages within an archive are \"known\" by the package mapper. Generally\nthis indicates that the archive does not contain customer code.", "Creates an appropriate HSGE for a domain-wide resource of a type that is mappable to server groups", "Finish the initialization.\n\n@param container\n@param isShutdownHookEnabled", "Gets information about all of the group memberships for this user.\nDoes not support paging.\n\n<p>Note: This method is only available to enterprise admins.</p>\n\n@return a collection of information about the group memberships for this user.", "Put features in a tile. This will assure all features are only added in one tile. When a feature's unique tile\nis different from this one a link is added in the tile.\n\n@param tile\ntile to put features in\n@param maxTileExtent\nthe maximum tile extent\n@throws GeomajasException oops", "Use this API to fetch sslocspresponder resource of given name ." ]
private void readColumnBlock(int startIndex, int blockLength) throws Exception { int endIndex = startIndex + blockLength; List<Integer> blocks = new ArrayList<Integer>(); for (int index = startIndex; index < endIndex - 11; index++) { if (matchChildBlock(index)) { int childBlockStart = index - 2; blocks.add(Integer.valueOf(childBlockStart)); } } blocks.add(Integer.valueOf(endIndex)); int childBlockStart = -1; for (int childBlockEnd : blocks) { if (childBlockStart != -1) { int childblockLength = childBlockEnd - childBlockStart; try { readColumn(childBlockStart, childblockLength); } catch (UnexpectedStructureException ex) { logUnexpectedStructure(); } } childBlockStart = childBlockEnd; } }
[ "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block" ]
[ "Generates a change event for a local insert of the given document in the given namespace.\n\n@param namespace the namespace where the document was inserted.\n@param document the document that was inserted.\n@return a change event for a local insert of the given document in the given namespace.", "Creates a simple deployment description.\n\n@param name the name for the deployment\n@param serverGroups the server groups\n\n@return the deployment description", "Gets the interpolated text of a query from cache. If key does not exist, an exception is thrown.\n\n@param key\nname of the query\n@return the query text", "Returns the item at the specified position.\n\n@param position index of the item to return\n@return the item at the specified position or {@code null} when not found", "Checks if the selected template context is \"templatemapper\".\n\n@param request the current request\n@return true if the selected template context is \"templatemapper\"", "Process an individual work week day.\n\n@param data calendar data\n@param offset current offset into data\n@param week parent week\n@param day current day", "Use this API to unset the properties of protocolhttpband resource.\nProperties that need to be unset are specified in args array.", "Provisions a new user in an enterprise with additional user information.\n@param api the API connection to be used by the created user.\n@param login the email address the user will use to login.\n@param name the name of the user.\n@param params additional user information.\n@return the created user's info.", "Retrieves the overallocated flag.\n\n@return overallocated flag" ]
public void ifMemberTagValueEquals(String template, Properties attributes) throws XDocletException { if (getCurrentField() != null) { if (isTagValueEqual(attributes, FOR_FIELD)) { generate(template); } } else if (getCurrentMethod() != null) { if (isTagValueEqual(attributes, FOR_METHOD)) { generate(template); } } }
[ "Evaluates the body if value for the member tag equals the specified value.\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=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"value\" optional=\"false\" description=\"The expected value.\"" ]
[ "Use this API to export sslfipskey.", "Use this API to fetch sslvserver_sslciphersuite_binding resources of given name .", "Check that the parameter array has at least as many elements as it\nshould.\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 minimumLength\nThe minimum array length", "Retrieves the class object for the class with the given name.\n\n@param name The class name\n@return The class object\n@throws ClassNotFoundException If the class is not on the classpath (the exception message contains the class name)", "Fetch flag resource by Country\n\n@param country Country\n@return int of resource | 0 value if not exists", "Fetch the latest versions for cluster metadata", "Sets a property on this Javascript object for which the value is a\nJavascriptEnum\n\nThe value is set to what is returned by the getEnumValue() method on the JavascriptEnum\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "Writes this address as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.", "Adds another scene object to pick against.\nEach frame all the colliders in the scene will be compared\nagainst the bounding volumes of all the collidables associated\nwith this picker.\n@param sceneObj new collidable\n@return index of collidable added, this is the CursorID in the GVRPickedObject" ]
public void seekToDayOfYear(String dayOfYear) { int dayOfYearInt = Integer.parseInt(dayOfYear); assert(dayOfYearInt >= 1 && dayOfYearInt <= 366); markDateInvocation(); dayOfYearInt = Math.min(dayOfYearInt, _calendar.getActualMaximum(Calendar.DAY_OF_YEAR)); _calendar.set(Calendar.DAY_OF_YEAR, dayOfYearInt); }
[ "Seeks to the given day within the current year\n@param dayOfYear the day of the year to seek to, represented as an integer\nfrom 1 to 366. Must be guaranteed to parse as an Integer. If this day is\nbeyond the last day of the current year, the actual last day of the year\nwill be used." ]
[ "Creates a Bytes object by copying the value of the given String", "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.", "Gets or creates the a resource for the sub-deployment on the parent deployments resource.\n\n@param deploymentName the name of the deployment\n@param parent the parent deployment used to find the parent resource\n\n@return the already registered resource or a newly created resource", "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "Send JSON representation of given data object to all connections of a user\n@param data the data object\n@param username the username", "Should be called after all columns have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Enforces the correct srid on incoming features.\n\n@param feature\nobject to enforce srid on\n@throws LayerException\nproblem getting or setting srid", "Calculate the actual bit length of the proposed binary string.", "This method decodes a byte array with the given encryption code\nusing XOR encryption.\n\n@param data Source data\n@param encryptionCode Encryption code" ]
private static BsonDocument withNewVersion( final BsonDocument document, final BsonDocument newVersion ) { final BsonDocument newDocument = BsonUtils.copyOfDocument(document); newDocument.put(DOCUMENT_VERSION_FIELD, newVersion); return newDocument; }
[ "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document." ]
[ "Queues a Runnable to be run on the main thread on the next iteration of\nthe messaging loop. This is handy when code running on the main thread\nneeds to run something else on the main thread, but only after the\ncurrent code has finished executing.\n\n@param r\nThe {@link Runnable} to run on the main thread.\n@return Returns {@code true} if the Runnable was successfully placed in\nthe Looper's message queue.", "In managed environment do internal close the used connection", "Puts as many of the given bytes as possible into this buffer.\n\n@return number of bytes actually put into this buffer (0 if the buffer is full)", "Gets the metadata on this folder associated with a specified template.\n\n@param templateName the metadata template type name.\n@return the metadata returned from the server.", "Sends a request to the API with the given parameters and the given\nrequest method and returns the result string. It automatically fills the\ncookie map with cookies in the result header after the request.\n\nWarning: You probably want to use ApiConnection.sendJsonRequest\nthat execute the request using JSON content format,\nthrows the errors and logs the warnings.\n\n@param requestMethod\neither POST or GET\n@param parameters\nMaps parameter keys to values. Out of this map the function\nwill create a query string for the request.\n@return API result\n@throws IOException", "Handling out responce.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Returns details of a previously-requested Organization export.\n\n@param organizationExport Globally unique identifier for the Organization export.\n@return Request object", "Use this API to fetch all the nsdiameter resources that are configured on netscaler.", "Throws an IllegalArgumentException when the given value is not false.\n@param value the value to assert if false\n@param message the message to display if the value is false\n@return the value" ]
public static base_response update(nitro_service client, dbdbprofile resource) throws Exception { dbdbprofile updateresource = new dbdbprofile(); updateresource.name = resource.name; updateresource.interpretquery = resource.interpretquery; updateresource.stickiness = resource.stickiness; updateresource.kcdaccount = resource.kcdaccount; updateresource.conmultiplex = resource.conmultiplex; return updateresource.update_resource(client); }
[ "Use this API to update dbdbprofile." ]
[ "Finds all the resource names contained in this file system folder.\n\n@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.\n@param scanRootLocation The root location of the scan on the classpath, without leading or trailing slashes.\n@param folder The folder to look for resources under on disk.\n@return The resource names;", "Retrieves an integer value from the extended data.\n\n@param type Type identifier\n@return integer value", "Performs a similar transform on A-pI", "Creates the box tree for the PDF file.\n@param dim", "Parses the comma delimited address into model nodes.\n\n@param profileName the profile name for the domain or {@code null} if not a domain\n@param inputAddress the address.\n\n@return a collection of the address nodes.", "Unlock all edited resources.", "Verifies given web-hook information.\n\n@param signatureVersion\nsignature version received from web-hook\n@param signatureAlgorithm\nsignature algorithm received from web-hook\n@param primarySignature\nprimary signature received from web-hook\n@param secondarySignature\nsecondary signature received from web-hook\n@param webHookPayload\npayload of web-hook\n@param deliveryTimestamp\ndevilery timestamp received from web-hook\n@return true, if given payload is successfully verified against primary and secondary signatures, false otherwise", "Adds a parameter to the argument list if the given integer is non-null.\nIf the value is null, then the argument list remains unchanged.", "Start a task. The id is needed to end the task\n\n@param id\n@param taskName" ]
public static base_response apply(nitro_service client) throws Exception { nspbr6 applyresource = new nspbr6(); return applyresource.perform_operation(client,"apply"); }
[ "Use this API to apply nspbr6." ]
[ "Generates a Map of query parameters for Artifact regarding the filters\n\n@return Map<String, Object>", "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", "There appear to be two ways of representing task notes in an MPP8 file.\nThis method tries to determine which has been used.\n\n@param task task\n@param data task data\n@param taskExtData extended task data\n@param taskVarData task var data", "this class loader interface can be used by other plugins to lookup\nresources from the bundles. A temporary class loader interface is set\nduring other configuration loading as well\n\n@return ClassLoaderInterface (BundleClassLoaderInterface)", "Provides a message which describes the expected format and arguments\nfor this command. This is used to provide user feedback when a command\nrequest is malformed.\n\n@return A message describing the command protocol format.", "Backup the current version of the configuration to the versioned configuration history", "Given a date represented by a Date instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param date Date instance representing the date\n@param canonicalTime Date instance representing the time of day\n@return new Date instance with the required time set", "Use this API to change appfwsignatures.", "Converts the transpose of a row major matrix into a row major block matrix.\n\n@param src Original DMatrixRMaj. Not modified.\n@param dst Equivalent DMatrixRBlock. Modified." ]
public OAuth1RequestToken exchangeAuthToken(String authToken) throws FlickrException { // Use TreeMap so keys are automatically sorted alphabetically Map<String, String> parameters = new TreeMap<String, String>(); parameters.put("method", METHOD_EXCHANGE_TOKEN); parameters.put(Flickr.API_KEY, apiKey); // This method call must be signed using Flickr (not OAuth) style signing parameters.put("api_sig", getSignature(sharedSecret, parameters)); Response response = transportAPI.getNonOAuth(transportAPI.getPath(), parameters); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } OAuth1RequestToken accessToken = constructToken(response); return accessToken; }
[ "Exchange an auth token from the old Authentication API, to an OAuth access token.\n\nCalling this method will delete the auth token used to make the request.\n\n@param authToken\n@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.auth.oauth.getAccessToken.html\"" ]
[ "Returns all entries in no particular order.", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Plots the MSD curve with the trajectory t and adds the fitted model for free diffusion.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param diffusionCoefficient Diffusion coefficient\n@param intercept", "Get MultiJoined ClassDescriptors\n@param cld", "Sets the target directory.", "Builds a instance of the class for a map containing the values\n\n@param clazz Class to build\n@param values Values map\n@param differenceHandler The difference handler\n@return The created instance\n@throws InstantiationException Error instantiating\n@throws IllegalAccessException Access error\n@throws IntrospectionException Introspection error\n@throws IllegalArgumentException Argument invalid\n@throws InvocationTargetException Invalid target", "Reads, stems, and prints the trees in the file.\n\n@param args Usage: WordStemmer file", "Sets the Base Calendar field indicates which calendar is the base calendar\nfor a resource calendar. The list includes the three built-in calendars,\nas well as any new base calendars you have created in the Change Working\nTime dialog box.\n\n@param val calendar name", "Removes an accessory from being handled or advertised by this root. Any existing Homekit\nconnections will be terminated to allow the clients to reconnect and see the updated accessory\nlist.\n\n@param accessory accessory to cease advertising and handling" ]
public void setActiveView(View v, int position) { final View oldView = mActiveView; mActiveView = v; mActivePosition = position; if (mAllowIndicatorAnimation && oldView != null) { startAnimatingIndicator(); } invalidate(); }
[ "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." ]
[ "Use this API to fetch the statistics of all authenticationvserver_stats resources that are configured on netscaler.", "Append environment variables and system properties from othre PipelineEvn object", "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", "Check if information model entity referenced by archetype\nhas right name or type", "Use this API to flush cacheobject.", "Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.\n\n@param setup the setup type, such as <code>ServerSetup.IMAP</code>\n@param mailProps additional mail properties.\n@return the JavaMail session.", "Sets the top padding for all cells in the table.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "select a use case.", "Detects if the current browser is a BlackBerry Touch\ndevice, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.\n@return detection of a Blackberry touchscreen device" ]
public static int[] convertBytesToInts(byte[] bytes) { if (bytes.length % 4 != 0) { throw new IllegalArgumentException("Number of input bytes must be a multiple of 4."); } int[] ints = new int[bytes.length / 4]; for (int i = 0; i < ints.length; i++) { ints[i] = convertBytesToInt(bytes, i * 4); } return ints; }
[ "Convert an array of bytes into an array of ints. 4 bytes from the\ninput data map to a single int in the output data.\n@param bytes The data to read from.\n@return An array of 32-bit integers constructed from the data.\n@since 1.1" ]
[ "parse the target resource and add it to the current shape\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Update the repeat number for a client path\n\n@param newNum new repeat number of the path\n@param path_id ID of the path\n@param client_uuid UUID of the client\n@throws Exception exception", "Assigns this retention policy to a metadata template, optionally with certain field values.\n@param templateID the ID of the metadata template to apply to.\n@param fieldFilters optional field value filters.\n@return info about the created assignment.", "Fill queue.\n\n@param item the item\n@param minStartPosition the min start position\n@param maxStartPosition the max start position\n@param minEndPosition the min end position\n@throws IOException Signals that an I/O exception has occurred.", "we have only one implementation on classpath.", "Register the DAO with the cache. This will allow folks to build a DAO externally and then register so it can be\nused internally as necessary.\n\n<p>\n<b>NOTE:</b> By default this registers the DAO to be associated with the class that it uses. If you need to\nregister multiple dao's that use different {@link DatabaseTableConfig}s then you should use\n{@link #registerDaoWithTableConfig(ConnectionSource, Dao)}.\n</p>\n\n<p>\n<b>NOTE:</b> You should maybe use the {@link DatabaseTable#daoClass()} and have the DaoManager construct the DAO\nif possible.\n</p>", "Recursively construct a LblTree from DOM tree\n\n@param walker tree walker for DOM tree traversal\n@return tree represented by DOM tree", "A property tied to the map, updated when the idle state event is fired.\n\n@return", "Check if there is an attribute which tells us which concrete class is to be instantiated." ]
public ItemRequest<Story> update(String story) { String path = String.format("/stories/%s", story); return new ItemRequest<Story>(this, Story.class, path, "PUT"); }
[ "Updates the story and returns the full record for the updated story.\nOnly comment stories can have their text updated, and only comment stories and\nattachment stories can be pinned. Only one of `text` and `html_text` can be specified.\n\n@param story Globally unique identifier for the story.\n@return Request object" ]
[ "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "Use this API to add sslocspresponder resources.", "Sets the default pattern values dependent on the provided start date.\n@param startDate the date, the default values are determined with.", "Renames this folder.\n\n@param newName the new name of the folder.", "Verifies application name. Avoids characters that Zookeeper does not like in nodes & Hadoop\ndoes not like in HDFS paths.\n\n@param name Application name\n@throws IllegalArgumentException If name contains illegal characters", "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", "Decomposes the provided matrix and stores the result in the same matrix.\n\n@param A Matrix that is to be decomposed. Modified.\n@return If it succeeded or not.", "Retrieves an existing resource assignment if one is present,\nto prevent duplicate resource assignments being added.\n\n@param resource resource to test for\n@return existing resource assignment", "Get the bean if it exists in the contexts.\n\n@return An instance of the bean\n@throws ContextNotActiveException if the context is not active\n@see javax.enterprise.context.spi.Context#get(BaseBean, boolean)" ]
private void ensureConversion(FieldDescriptorDef fieldDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } // we issue a warning if we encounter a field with a java.util.Date java type without a conversion if ("java.util.Date".equals(fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_JAVA_TYPE)) && !fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_CONVERSION)) { LogHelper.warn(true, FieldDescriptorConstraints.class, "ensureConversion", "The field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+ " of type java.util.Date is directly mapped to jdbc-type "+ fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE)+ ". However, most JDBC drivers can't handle java.util.Date directly so you might want to "+ " use a conversion for converting it to a JDBC datatype like TIMESTAMP."); } String conversionClass = fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_CONVERSION); if (((conversionClass == null) || (conversionClass.length() == 0)) && fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_CONVERSION) && fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_JDBC_TYPE).equals(fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_JDBC_TYPE))) { conversionClass = fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_CONVERSION); fieldDef.setProperty(PropertyHelper.OJB_PROPERTY_CONVERSION, conversionClass); } // now checking if (CHECKLEVEL_STRICT.equals(checkLevel) && (conversionClass != null) && (conversionClass.length() > 0)) { InheritanceHelper helper = new InheritanceHelper(); try { if (!helper.isSameOrSubTypeOf(conversionClass, CONVERSION_INTERFACE)) { throw new ConstraintException("The conversion class specified for field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+" does not implement the necessary interface "+CONVERSION_INTERFACE); } } catch (ClassNotFoundException ex) { throw new ConstraintException("The class "+ex.getMessage()+" hasn't been found on the classpath while checking the conversion class specified for field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()); } } }
[ "Constraint that ensures that the field has a conversion if the java type requires it. Also checks the conversion class.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If the conversion class is invalid" ]
[ "Execute a request through Odo processing\n\n@param httpMethodProxyRequest\n@param httpServletRequest\n@param httpServletResponse\n@param history", "Creates a future that will send a request to the reporting host and call\nthe handler with the response\n\n@param path the path at the reporting host which the request will be made\n@param reportingHandler the handler to receive the response once executed\nand recieved\n@return a {@link java.util.concurrent.Future} for handing the request", "Updates the story and returns the full record for the updated story.\nOnly comment stories can have their text updated, and only comment stories and\nattachment stories can be pinned. Only one of `text` and `html_text` can be specified.\n\n@param story Globally unique identifier for the story.\n@return Request object", "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", "Use this API to add gslbservice resources.", "performs an INSERT operation against RDBMS.\n@param obj The Object to be inserted as a row of the underlying table.\n@param cld ClassDescriptor providing mapping information.", "This method lists all resources defined in the file.\n\n@param file MPX file", "Puts as many of the given bytes as possible into this buffer.\n\n@return number of bytes actually put into this buffer (0 if the buffer is full)", "Use this API to delete nssimpleacl." ]
private void setRequestLanguages(WbGetEntitiesActionData properties) { if (this.filter.excludeAllLanguages() || this.filter.getLanguageFilter() == null) { return; } properties.languages = ApiConnection.implodeObjects(this.filter .getLanguageFilter()); }
[ "Sets the value for the API's \"languages\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters" ]
[ "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.", "Get the collection of the server groups\n\n@return Collection of active server groups", "Used to determine if a particular day of the week is normally\na working day.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day Day instance\n@return boolean flag", "get specific property value of job.\n\n@param id the id\n@param property the property name/path\n@return the property value", "Undo a prior removal using the supplied undo key.\n\n@param removalKey - The key returned from the call to removeRoleMapping.\n@return true if the undo was successful, false otherwise.", "Sets the top padding for all cells in the row.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Downloads a part of this file's contents, starting at rangeStart and stopping at rangeEnd, while reporting the\nprogress to a ProgressListener.\n\n@param output the stream to where the file will be written.\n@param rangeStart the byte offset at which to start the download.\n@param rangeEnd the byte offset at which to stop the download.\n@param listener a listener for monitoring the download's progress.", "calculate the point a's angle of rectangle consist of point a,point b, point c;\n\n@param vertex\n@param A\n@param B\n@return", "Calls a function script associated with this component.\nThe function is called even if the component\nis not enabled and not attached to a scene object.\n@param funcName name of script function to call.\n@param args function parameters as an array of objects.\n@return true if function was called, false if no such function\n@see org.gearvrf.script.GVRScriptFile#invokeFunction(String, Object[]) invokeFunction" ]
private void readProject(Project project) { Task mpxjTask = m_projectFile.addTask(); //project.getAuthor() mpxjTask.setBaselineCost(project.getBaselineCost()); mpxjTask.setBaselineFinish(project.getBaselineFinishDate()); mpxjTask.setBaselineStart(project.getBaselineStartDate()); //project.getBudget(); //project.getCompany() mpxjTask.setFinish(project.getFinishDate()); //project.getGoal() //project.getHyperlinks() //project.getMarkerID() mpxjTask.setName(project.getName()); mpxjTask.setNotes(project.getNote()); mpxjTask.setPriority(project.getPriority()); // project.getSite() mpxjTask.setStart(project.getStartDate()); // project.getStyleProject() // project.getTask() // project.getTimeScale() // project.getViewProperties() String projectIdentifier = project.getID().toString(); mpxjTask.setGUID(UUID.nameUUIDFromBytes(projectIdentifier.getBytes())); // // Sort the tasks into the correct order // List<Document.Projects.Project.Task> tasks = new ArrayList<Document.Projects.Project.Task>(project.getTask()); final AlphanumComparator comparator = new AlphanumComparator(); Collections.sort(tasks, new Comparator<Document.Projects.Project.Task>() { @Override public int compare(Document.Projects.Project.Task o1, Document.Projects.Project.Task o2) { return comparator.compare(o1.getOutlineNumber(), o2.getOutlineNumber()); } }); Map<String, Task> map = new HashMap<String, Task>(); map.put("", mpxjTask); for (Document.Projects.Project.Task task : tasks) { readTask(projectIdentifier, map, task); } }
[ "Read a project from a ConceptDraw PROJECT file.\n\n@param project ConceptDraw PROJECT project" ]
[ "Initializes the default scope type", "Method signature without \"public void\" prefix\n\n@return The method signature in String format", "Send a waveform detail update announcement to all registered listeners.\n\n@param player the player whose waveform detail has changed\n@param detail the new waveform detail, if any", "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters", "Resolves the configuration.\n\n@param config The specified configuration.\n@return The resolved configuration.", "Obtain an OTMConnection for the given persistence broker key", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Alternative entry point allowing an MPP file to be read from\na user-supplied POI file stream.\n\n@param fs POI file stream\n@return ProjectFile instance\n@throws MPXJException", "Indicates that contextual session bean instance has been constructed." ]