query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public String getRandomHoliday(String earliest, String latest) { String dateString = ""; DateTimeFormatter parser = ISODateTimeFormat.date(); DateTime earlyDate = parser.parseDateTime(earliest); DateTime lateDate = parser.parseDateTime(latest); List<Holiday> holidays = new Linked...
[ "Grab random holiday from the equivalence class that falls between the two dates\n\n@param earliest the earliest date parameter as defined in the model\n@param latest the latest date parameter as defined in the model\n@return a holiday that falls between the dates" ]
[ "Pushes a basic event.\n\n@param eventName The name of the event", "Creates a copy with verbose mode enabled.\n\n@param serverSetups the server setups.\n@return copies of server setups with verbose mode enabled.", "Generates a License regarding the parameters.\n\n@param name String\n@param longName String\n@par...
protected void updateTables() { byte[] data = m_model.getData(); int columns = m_model.getColumns(); int rows = (data.length / columns) + 1; int offset = m_model.getOffset(); String[][] hexData = new String[rows][columns]; String[][] asciiData = new String[rows][columns]; ...
[ "Update the content of the tables." ]
[ "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model T...
public IPlan[] getAgentPlans(final String agent_name, Connector connector) { ((IExternalAccess) connector.getAgentsExternalAccess(agent_name)) .scheduleStep(new IComponentStep<Plan>() { public IFuture<Plan> execute(IInternalAccess ia) { IBDIInternalA...
[ "This method prints plan information of an agent through its external\naccess. It can be used to check the correct behaviour of the agent.\n\n@param agent_name\nThe name of the agent\n@param connector\nThe connector to get the external access\n@return plans the IPlan[] with all the information, so the tester can\nl...
[ "Retrieves the registar linked to the bus.\nCreates a new registar is not present.\n\n@param bus\n@return", "find all accessibility object and set active false for enable talk back.", "Obtain newline-delimited headers from request\n\n@param request HttpServletRequest to scan\n@return newline-delimited headers",...
public static boolean isRevisionDumpFile(DumpContentType dumpContentType) { if (WmfDumpFile.REVISION_DUMP.containsKey(dumpContentType)) { return WmfDumpFile.REVISION_DUMP.get(dumpContentType); } else { throw new IllegalArgumentException("Unsupported dump type " + dumpContentType); } }
[ "Returns true if the given dump file type contains page revisions and\nfalse if it does not. Dumps that do not contain pages are for auxiliary\ninformation such as linked sites.\n\n@param dumpContentType\nthe type of dump\n@return true if the dumpfile contains revisions\n@throws IllegalArgumentException\nif the giv...
[ "Returns the compact project records for all projects in the team.\n\n@param team The team to find projects in.\n@return Request object", "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField inst...
public Release rollback(String appName, String releaseUuid) { return connection.execute(new Rollback(appName, releaseUuid), apiKey); }
[ "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" ]
[ "This method calls the index state. It should be called once per crawl in order to setup the\ncrawl.\n\n@return The initial state.", "Creates a new form session to edit the file with the given name using the given form configuration.\n\n@param configPath the site path of the form configuration\n@param fileName th...
public static base_response delete(nitro_service client, String acl6name) throws Exception { nsacl6 deleteresource = new nsacl6(); deleteresource.acl6name = acl6name; return deleteresource.delete_resource(client); }
[ "Use this API to delete nsacl6 of given name." ]
[ "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error", "Remove an addon from an app.\n@param app...
public static String getShortClassName(Object o) { String name = o.getClass().getName(); int index = name.lastIndexOf('.'); if (index >= 0) { name = name.substring(index + 1); } return name; }
[ "Returns a short class name for an object.\nThis is the class name stripped of any package name.\n\n@return The name of the class minus a package name, for example\n<code>ArrayList</code>" ]
[ "Run a task periodically, with a callback.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@param callback\nCallback that lets you cancel the task. {@code null} mea...
public static RgbaColor from(String color) { if (color.startsWith("#")) { return fromHex(color); } else if (color.startsWith("rgba")) { return fromRgba(color); } else if (color.startsWith("rgb")) { return fromRgb(color); } else ...
[ "Parses an RgbaColor from a hexadecimal, rgb, rgba, hsl, or hsla\nvalue.\n\n@return returns the parsed color" ]
[ "Switches to the next tab.", "Use this API to update cmpparameter.", "Sets the file-pointer offset, measured from the beginning of this file,\nat which the next read or write occurs.", "Lookup the data-type associated with the class.\n\n@return The associated data-type interface or null if none found.", "Pr...
public Pair<int[][][][], int[][]> documentsToDataAndLabels(Collection<List<IN>> documents) { // first index is the number of the document // second index is position in the document also the index of the // clique/factor table // third index is the number of elements in the clique/window these fea...
[ "Convert an ObjectBank to arrays of data features and labels.\n\n@return A Pair, where the first element is an int[][][][] representing the\ndata and the second element is an int[][] representing the labels." ]
[ "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", "Processes the template for all columns of the current table index.\n\n@param template The template\n@...
public static final String printFinishDateTime(Date value) { if (value != null) { value = DateHelper.addDays(value, 1); } return (value == null ? null : DATE_FORMAT.get().format(value)); }
[ "Retrieve a finish date time in the form required by Phoenix.\n\n@param value Date instance\n@return formatted date time" ]
[ "Analyzes a failure thrown connecting to the master for causes that indicate\nsome problem not likely to be resolved by immediately retrying. If found,\nthrows an exception highlighting the underlying cause. If the cause is not\none of the ones understood by this method, the method returns normally.\n\n@throws org....
protected Method resolveTargetMethod(Message message, FieldDescriptor payloadField) { Method targetMethod = fieldToMethod.get(payloadField); if (targetMethod == null) { // look up and cache target method; this block is called only once //...
[ "Find out which method to call on the service bean." ]
[ "Returns the rank of the decomposed matrix.\n\n@see SingularOps_DDRM#rank(SingularValueDecomposition_F64, double)\n\n@return The matrix's rank", "All tests completed.", "Assigns an element a value based on its index in the internal array..\n\n@param index The matrix element that is being assigned a value.\n@par...
@RequestMapping(value = "/api/scripts", method = RequestMethod.GET) public @ResponseBody HashMap<String, Object> getScripts(Model model, @RequestParam(required = false) Integer type) throws Exception { Script[] scripts = ScriptService.getInstance().getScripts(t...
[ "Returns all scripts\n\n@param model\n@param type - optional to specify type of script to return\n@return\n@throws Exception" ]
[ "Sets page shift orientation. The pages might be shifted horizontally or vertically relative\nto each other to make the content of each page on the screen at least partially visible\n@param orientation", "Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data", "I...
public static base_response delete(nitro_service client, String ipv6prefix) throws Exception { onlinkipv6prefix deleteresource = new onlinkipv6prefix(); deleteresource.ipv6prefix = ipv6prefix; return deleteresource.delete_resource(client); }
[ "Use this API to delete onlinkipv6prefix of given name." ]
[ "Sets the specified date attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "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...
public static String readTag(Reader r) throws IOException { if ( ! r.ready()) { return null; } StringBuilder b = new StringBuilder("<"); int c = r.read(); while (c >= 0) { b.append((char) c); if (c == '>') { break; } c = r.read(); } if (b.le...
[ "Reads all text of the XML tag and returns it as a String.\nAssumes that a '<' character has already been read.\n\n@param r The reader to read from\n@return The String representing the tag, or null if one couldn't be read\n(i.e., EOF). The returned item is a complete tag including angle\nbrackets, such as <code>&l...
[ "Use this API to fetch rewritepolicy_csvserver_binding resources of given name .", "Populates a calendar exception instance.\n\n@param record MPX record\n@param calendar calendar to which the exception will be added\n@throws MPXJException", "Use this API to fetch the statistics of all aaa_stats resources that a...
public void setRowReader(String newReaderClassName) { try { m_rowReader = (RowReader) ClassHelper.newInstance( newReaderClassName, ClassDescriptor.class, this); } catch (Exception e) ...
[ "sets the row reader class name for thie class descriptor" ]
[ "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry", "Returns a Span that covers all rows beginning with a prefix.", "Returns whether this is a valid address string format.\n\nThe accepted IP address formats are:\nan IPv4 address, an IPv6 address, a network prefix a...
public final void setAttributes(final Map<String, Attribute> attributes) { for (Map.Entry<String, Attribute> entry: attributes.entrySet()) { Object attribute = entry.getValue(); if (!(attribute instanceof Attribute)) { final String msg = "Attribute...
[ "Set the attributes for this template.\n\n@param attributes the attribute map" ]
[ "Use this API to fetch appfwprofile_denyurl_binding resources of given name .", "Clean obsolete contents from the content repository. It will first mark contents as obsolete then after some time\nif these contents are still obsolete they will be removed.\n\n@return a map containing the list of marked contents and...
private static ModelNode createOperation(final ModelNode operationToValidate) { PathAddress pa = PathAddress.pathAddress(operationToValidate.require(OP_ADDR)); PathAddress validationAddress = pa.subAddress(0, pa.size() - 1); return Util.getEmptyOperation("validate-cache", validationAddress.toMo...
[ "Creates an operations that targets the valiadating handler.\n\n@param operationToValidate the operation that this handler will validate\n@return the validation operation" ]
[ "Adds a tag to a task. Returns an empty data block.\n\n@param task The task to add a tag to.\n@return Request object", "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 exten...
public int setPageCount(final int num) { int diff = num - getCheckableCount(); if (diff > 0) { addIndicatorChildren(diff); } else if (diff < 0) { removeIndicatorChildren(-diff); } if (mCurrentPage >=num ) { mCurrentPage = 0; } s...
[ "Sets number of pages. If the index of currently selected page is bigger than the total number\nof pages, first page will be selected instead.\n@return difference between the previous number of pages and new one. Negative value is\nreturned if new number of pages is less then it was before." ]
[ "Moves everything up so that the specified shift or latch character can be inserted.\n\n@param position the position beyond which everything needs to be shifted\n@param c the latch or shift character to insert at the specified position, after everything has been shifted", "Extracts a house holder vector from the ...
public List<CmsCategory> getLeafItems() { List<CmsCategory> result = new ArrayList<CmsCategory>(); if (m_categories.isEmpty()) { return result; } Iterator<CmsCategory> it = m_categories.iterator(); CmsCategory current = it.next(); while (it.hasNext()) { ...
[ "Returns only the leaf categories of the wrapped categories.\n\nThe method assumes that categories are ordered in the list, i.e., parents are directly followed by their children.\n\nNOTE: In the complete category tree a leaf of the wrapped tree part may not be a leaf.\n\n@return only the leaf categories of the wrap...
[ "Returns the corresponding mac section, or null if this address section does not correspond to a mac section.\nIf this address section has a prefix length it is ignored.\n\n@param extended\n@return", "Inserts the LokenList immediately following the 'before' token", "Creates a replica of the node with the new pa...
public int getTotalLeased(){ int total=0; for (int i=0; i < this.partitionCount && this.partitions[i] != null; i++){ total+=this.partitions[i].getCreatedConnections()-this.partitions[i].getAvailableConnections(); } return total; }
[ "Return total number of connections currently in use by an application\n@return no of leased connections" ]
[ "Finish a state transition from a notification.\n\n@param current\n@param next", "Confirms that both clusters have the same number of total partitions.\n\n@param lhs\n@param rhs", "Confirms a user with the given token and token id.\n\n@param token the confirmation token.\n@param tokenId the id of the confirmati...
public void deleteById(String id) { if (idToVersion.containsKey(id)) { String version = idToVersion.remove(id); expirationVersion.remove(version); versionToItem.remove(version); if (collectionCachePath != null && !collectionCachePath.resolve(version).toFile().delete()) { lo...
[ "Delete by id.\n\n@param id the id" ]
[ "Restores a trashed folder back to its original location.\n@param folderID the ID of the trashed folder.\n@return info about the restored folder.", "Returns the full record for a single story.\n\n@param story Globally unique identifier for the story.\n@return Request object", "Obtains a Pax zoned dat...
public static vpnvserver_appcontroller_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_appcontroller_binding obj = new vpnvserver_appcontroller_binding(); obj.set_name(name); vpnvserver_appcontroller_binding response[] = (vpnvserver_appcontroller_binding[]) obj.get_resources(service...
[ "Use this API to fetch vpnvserver_appcontroller_binding resources of given name ." ]
[ "The only properties added to a relationship are the columns representing the index of the association.", "Use this API to fetch all the nsacl6 resources that are configured on netscaler.", "Transmits the SerialMessage to a single Z-Wave Node.\nSets the transmission options as well.\n@param serialMessage the Se...
public BoxFolder.Info restoreFolder(String folderID) { URL url = RESTORE_FOLDER_URL_TEMPLATE.build(this.api.getBaseURL(), folderID); BoxAPIRequest request = new BoxAPIRequest(this.api, url, "POST"); JsonObject requestJSON = new JsonObject() .add("", ""); request.setBody(r...
[ "Restores a trashed folder back to its original location.\n@param folderID the ID of the trashed folder.\n@return info about the restored folder." ]
[ "Reads a markdown link.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nStarting position.\n@return The new position or -1 if this is no valid markdown link.", "Releases a database connection, and cleans up any resources\nassociated with that connection.", "Handle exceptio...
static int lastArgMatchesVarg(Parameter[] params, ClassNode... args) { if (!isVargs(params)) return -1; // case length ==0 handled already // we have now two cases, // the argument is wrapped in the vargs array or // the argument is an array that can be used for the vargs part di...
[ "Checks if the last argument matches the vararg type.\n@param params\n@param args\n@return -1 if no match, 0 if the last argument is exactly the vararg type and 1 if of an assignable type" ]
[ "See also JLS8, 4.12.5 Initial Values of Variables.\n\n@param type\n@return the default value for the given type as defined by JLS", "Get the ActivityInterface.\n\n@return The ActivityInterface", "Sets a string that will be prepended to the JAR file's data.\n\n@param value the prefix, or {@code null} for none.\...
public static Iterable<BoxGroup.Info> getAllGroupsByName(final BoxAPIConnection api, String name) { final QueryStringBuilder builder = new QueryStringBuilder(); if (name == null || name.trim().isEmpty()) { throw new BoxAPIException("Searching groups by name requires a non NULL or non empty n...
[ "Gets an iterable of all the groups in the enterprise that are starting with the given name string.\n@param api the API connection to be used when retrieving the groups.\n@param name the name prefix of the groups. If the groups need to searched by full name that has spaces,\nthen the parameter string should have ...
[ "Iterates over all tokens in current member tag with the name tagName and evaluates the body for every token.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\n@doc.tag type...
public void setIssueTrackerInfo(BuildInfoBuilder builder) { Issues issues = new Issues(); issues.setAggregateBuildIssues(aggregateBuildIssues); issues.setAggregationBuildStatus(aggregationBuildStatus); issues.setTracker(new IssueTracker("JIRA", issueTrackerVersion)); Set<Issue> a...
[ "Apply issues tracker info to a build info builder (used by generic tasks and maven2 which doesn't use the extractor" ]
[ "Configure the access permissions required to access this print job.\n\n@param template the containing print template which should have sufficient information to\nconfigure the access.\n@param context the application context", "Finds binding for a type in the given injector and, if not found,\nrecurses to its par...
protected final boolean isGLThread() { final Thread glThread = sGLThread.get(); return glThread != null && glThread.equals(Thread.currentThread()); }
[ "Determine whether the calling thread is the GL thread.\n\n@return {@code True} if called from the GL thread, {@code false} if\ncalled from another thread." ]
[ "Toggles a style name on a ui object\n\n@param uiObject Object to toggle style on\n@param toggleStyle whether or not to toggle the style name on the object\n@param styleName Style name", "Get the text value for the specified element. If the element is null, or the element's body is empty then this method wil...
protected I_CmsSearchConfigurationFacetRange parseRangeFacet(String pathPrefix) { try { final String range = parseMandatoryStringValue(pathPrefix + XML_ELEMENT_RANGE_FACET_RANGE); final String name = parseOptionalStringValue(pathPrefix + XML_ELEMENT_FACET_NAME); final String...
[ "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured." ]
[ "Inserts a Parcelable value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Parcelable object, or null\n@return this bundler instance to chain method calls", "Convert an object to another o...
@Subscribe public void onSuiteResult(AggregatedSuiteResultEvent e) { // Calculate summaries. summaryListener.suiteSummary(e); Description suiteDescription = e.getDescription(); String displayName = suiteDescription.getDisplayName(); if (displayName.trim().isEmpty()) { junit4.log("Could not ...
[ "Emit information about all of suite's tests." ]
[ "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "Sets the global. Does not ad...
@Override public void setActive(boolean active) { this.active = active; if (parent != null) { fireCollapsibleHandler(); removeStyleName(CssName.ACTIVE); if (header != null) { header.removeStyleName(CssName.ACTIVE); } if (ac...
[ "Make this item active." ]
[ "Use this API to update nsrpcnode.", "Resolves line alpha based on distance comparing to max distance.\nWhere alpha is close to 0 for maxDistance, and close to 1 to 0 distance.\n\n@param distance line length\n@param maxDistance max line length\n@return line alpha", "Sets a custom response on an endpoint\n\n@...
public static TagModel getSingleParent(TagModel tag) { final Iterator<TagModel> parents = tag.getDesignatedByTags().iterator(); if (!parents.hasNext()) throw new WindupException("Tag is not designated by any tags: " + tag); final TagModel maybeOnlyParent = parents.next(); ...
[ "Returns a single parent of the given tag. If there are multiple parents, throws a WindupException." ]
[ "Sets the current switch index based on object name.\nThis function finds the child of the scene object\nthis component is attached to and sets the switch\nindex to reference it so this is the object that\nwill be displayed.\n\nIf it is out of range, none of the children will be shown.\n@param childName name of chi...
public static Span prefix(Bytes rowPrefix) { Objects.requireNonNull(rowPrefix); Bytes fp = followingPrefix(rowPrefix); return new Span(rowPrefix, true, fp == null ? Bytes.EMPTY : fp, false); }
[ "Returns a Span that covers all rows beginning with a prefix." ]
[ "Use this API to fetch filtered set of dbdbprofile resources.\nset the filter parameter values in filtervalue object.", "Writes this JAR to an output stream, and closes the stream.", "Returns a PreparedStatementCreator that returns a count of the rows that\nthis creator would return.\n\n@param dialect\nDatabase...
private void processCalendarHours(byte[] data, ProjectCalendar defaultCalendar, ProjectCalendar cal, boolean isBaseCalendar) { // Dump out the calendar related data and fields. //MPPUtility.dataDump(data, true, false, false, false, true, false, true); int offset; ProjectCalendarHours hours; ...
[ "For a given set of calendar data, this method sets the working\nday status for each day, and if present, sets the hours for that\nday.\n\nNOTE: MPP14 defines the concept of working weeks. MPXJ does not\ncurrently support this, and thus we only read the working hours\nfor the default working week.\n\n@param data ca...
[ "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to hav...
public static String paramMapToString(final Map<String, String[]> parameters) { final StringBuffer result = new StringBuffer(); for (final String key : parameters.keySet()) { String[] values = parameters.get(key); if (null == values) { result.append(key).append('...
[ "Converts a parameter map to the parameter string.\n@param parameters the parameter map.\n@return the parameter string." ]
[ "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.", "Whether the address is IPv4-compatible\n\n@see java.net.Inet6Address#isIPv4CompatibleA...
public static <T> void callInitializers(T instance, CreationalContext<T> creationalContext, BeanManagerImpl manager, Iterable<? extends MethodInjectionPoint<?, ?>> initializerMethods) { for (MethodInjectionPoint<?, ?> initializer : initializerMethods) { initializer.invoke(instance, null,...
[ "Calls all initializers of the bean\n\n@param instance The bean instance" ]
[ "Wrap PreparedStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Preparedstatement.", "Writes assignment data to a PM XML file.", "Checks the given field descriptor.\n\n@param fieldDef The field descriptor\n@param checkLevel The a...
public static base_responses unset(nitro_service client, String acl6name[], String args[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 unsetresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ unsetresources[i] = new nsa...
[ "Use this API to unset the properties of nsacl6 resources.\nProperties that need to be unset are specified in args array." ]
[ "Get the server redirects for a given clientId from the database\n\n@param clientId client ID\n@return collection of ServerRedirects", "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 par...
public static Timer getNamedTimer(String timerName, int todoFlags) { return getNamedTimer(timerName, todoFlags, Thread.currentThread() .getId()); }
[ "Get a timer of the given string name and todos for the current thread. If\nno such timer exists yet, then it will be newly created.\n\n@param timerName\nthe name of the timer\n@param todoFlags\n@return timer" ]
[ "Get informations about a place.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param placeId\nA Flickr Places ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null. (While optional, you must p...
private void initPatternButtonGroup() { m_groupPattern = new CmsRadioButtonGroup(); m_patternButtons = new HashMap<>(); createAndAddButton(PatternType.DAILY, Messages.GUI_SERIALDATE_TYPE_DAILY_0); m_patternButtons.put(PatternType.NONE, m_patternButtons.get(PatternType.DAILY)); ...
[ "Initialize the pattern choice button group." ]
[ "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "Use this API to update sslocspresponder resources.", "Use this API to fetch all the inat resources that are configured on netscaler.", "Sets axis dimension\n@param val dimension\n@pa...
public static base_response update(nitro_service client, inat resource) throws Exception { inat updateresource = new inat(); updateresource.name = resource.name; updateresource.privateip = resource.privateip; updateresource.tcpproxy = resource.tcpproxy; updateresource.ftp = resource.ftp; updateresource.tftp...
[ "Use this API to update inat." ]
[ "In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.\n\n@param f the file containing the external vault configuration as generated by the vault tool\n@return the vault config", "Remove a custom field setting on the project.\n\n@param project The project to...
public static snmpuser get(nitro_service service, String name) throws Exception{ snmpuser obj = new snmpuser(); obj.set_name(name); snmpuser response = (snmpuser) obj.get_resource(service); return response; }
[ "Use this API to fetch snmpuser resource of given name ." ]
[ "returns an Enumeration of PrimaryKey Objects for objects of class DataClass.\nThe Elements returned come from a SELECT ... WHERE Statement\nthat is defined by the fields and their coresponding values of listFields\nand listValues.\nUseful for EJB Finder Methods...\n@param primaryKeyClass the pk class for the searc...
public boolean getOverAllocated() { Boolean overallocated = (Boolean) getCachedValue(ResourceField.OVERALLOCATED); if (overallocated == null) { Number peakUnits = getPeakUnits(); Number maxUnits = getMaxUnits(); overallocated = Boolean.valueOf(NumberHelper.getDouble(peakU...
[ "Retrieves the overallocated flag.\n\n@return overallocated flag" ]
[ "Helper method to lookup a DAO if it has already been associated with the table-config. Otherwise this returns\nnull.", "Start transaction on the underlying connection.", "Open a database and build a set of table names.\n\n@param url database URL\n@return set containing table names", "Given a filesystem and p...
public static String getVariablesMapExpression(Collection variables) { StringBuilder variablesMap = new StringBuilder("new " + PropertiesMap.class.getName() + "()"); for (Object variable : variables) { JRVariable jrvar = (JRVariable) variable; String varname = jrvar.getName(); ...
[ "Collection of JRVariable\n\n@param variables\n@return" ]
[ "Compiles and performs the provided equation.\n\n@param equation String in simple equation format", "Returns the yield value such that the sum of cash flows of the bond discounted with the yield curve\ncoincides with a given price.\n\n@param bondPrice The target price as double.\n@param model The model under whic...
protected DirectiveStatement parseDirectiveStatement(DirectiveStContext node) { DirectiveStContext stContext = (DirectiveStContext) node; DirectiveExpContext direExp = stContext.directiveExp(); Token token = direExp.Identifier().getSymbol(); String directive = token.getText().toLowerCase().intern(); Te...
[ "directive dynamic xxx,yy\n@param node\n@return" ]
[ "Tokenizes the input file and extracts the required data.\n\n@param is input stream\n@throws MPXJException", "Reads the header data from a block.\n\n@param buffer block data\n@param offset current offset into block data\n@param postHeaderSkipBytes bytes to skip after reading the header\n@return current BlockHeade...
private void appendJoinSQL92NoParen(Join join, StringBuffer where, StringBuffer buf) { if (join.isOuter) { buf.append(" LEFT OUTER JOIN "); } else { buf.append(" INNER JOIN "); } buf.append(join.right.getTableAndAlias()); ...
[ "Append Join for SQL92 Syntax without parentheses" ]
[ "This method is used to process an MPP14 file. This is the file format\nused by Project 14.\n\n@param reader parent file reader\n@param file parent MPP file\n@param root Root of the POI file system.", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param sta...
public ConditionalExpectationEstimator getConditionalExpectationEstimator(double exerciseTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException { RandomVariable[] regressionBasisFunctions = regressionBasisFunctionProvider.getBasisFunctions(exerciseTime, model); return conditionalExpectationR...
[ "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." ]
[ "Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present", "Use this API to Shutdown shutdown.", "Check if one Renderer is recyclable getting it from the convertView's tag and ...
public void logAttributeWarning(PathAddress address, String message, String attribute) { logAttributeWarning(address, null, message, attribute); }
[ "Log warning for the resource at the provided address and single attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param message custom error message to append\n@param attribute attribute we are warning about" ]
[ "Opens a new FileOutputStream for a file of the given name in the given\nresult directory. Any file of this name that exists already will be\nreplaced. The caller is responsible for eventually closing the stream.\n\n@param resultDirectory\nthe path to the result directory\n@param filename\nthe name of the file to w...
public void configure(@Observes(precedence = -200) ArquillianDescriptor arquillianDescriptor) { restAssuredConfigurationInstanceProducer.set( RestAssuredConfiguration.fromMap(arquillianDescriptor .extension("restassured") .getExtensionProperties())); }
[ "required for rest assured base URI configuration." ]
[ "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message", "Build call for postUiAutopilotWaypoint\n\n@param addToBeginning\nWhether this solar system should be added to the beginning of\nall waypoints (required)\n@param clearOtherWaypoints\nWhether clean other waypoints bef...
public synchronized void bindShader(GVRScene scene, boolean isMultiview) { GVRRenderPass pass = mRenderPassList.get(0); GVRShaderId shader = pass.getMaterial().getShaderType(); GVRShader template = shader.getTemplate(getGVRContext()); if (template != null) { templ...
[ "Selects a specific vertex and fragment shader to use for rendering.\n\nIf a shader template has been specified, it is used to generate\na vertex and fragment shader based on mesh attributes, bound textures\nand light sources. If the textures bound to the material are changed\nor a new light source is added, this f...
[ "Prints a few aspects of the TreebankLanguagePack, just for debugging.", "Add the declarationSRef to the DeclarationsManager.\nCalculate the matching of the Declaration with the DeclarationFilter of the\nLinker.\n\n@param declarationSRef the ServiceReference<D> of the Declaration", "Returns the u component of a...
private void toCorrectDateWithDay(Calendar date, WeekOfMonth week) { date.set(Calendar.DAY_OF_MONTH, 1); int daysToFirstWeekDayMatch = ((m_weekDay.toInt() + I_CmsSerialDateValue.NUM_OF_WEEKDAYS) - (date.get(Calendar.DAY_OF_WEEK))) % I_CmsSerialDateValue.NUM_OF_WEEKDAYS; date.add(Cal...
[ "Sets the day of the month that matches the condition, i.e., the day of month of the 2nd Saturday.\nIf the day does not exist in the current month, the last possible date is set, i.e.,\ninstead of the fifth Saturday, the fourth is chosen.\n\n@param date date that has the correct year and month already set.\n@param ...
[ "Helper to format term updates as expected by the Wikibase API\n@param updates\nplanned updates for the type of term\n@return map ready to be serialized as JSON by Jackson", "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node...
@Override @SuppressFBWarnings(value = "UL_UNRELEASED_LOCK", justification = "False positive from FindBugs") public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) { if (!isActive()) { throw new ContextNotActiveException(); } checkContextInitialized...
[ "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)" ]
[ "Calculates the Black-Scholes option value of an atm call option.\n\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param forward The forward, i.e., the expectation of the index under the measure associated with payoff unit.\n@param payoffUnit The payoff unit, i.e., ...
public static final Duration parseDurationInThousanthsOfMinutes(ProjectProperties properties, Number value, TimeUnit targetTimeUnit) { return parseDurationInFractionsOfMinutes(properties, value, targetTimeUnit, 1000); }
[ "Parse duration represented in thousandths of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@return Duration instance" ]
[ "Only return tools with a name matching this partial string\n@param searchTerm Tool name to search for\n@return This object to allow adding more options", "Parses a type annotation table to find the labels, and to visit the try\ncatch block annotations.\n\n@param u\nthe start offset of a type annotation table.\n@...
public String getAttributeValue(String attributeName) throws JMException, UnsupportedEncodingException { String decodedAttributeName = sanitizer.urlDecode(attributeName, encoding); return sanitizer.escapeValue(mBeanServer.getAttribute(objectName, decodedAttributeName)); }
[ "Get the value for a single attribute on an MBean by name.\n@param attributeName the attribute name (can be URL-encoded).\n@return the value as a String.\n@throws JMException Java Management Exception\n@throws UnsupportedEncodingException if the encoding is not supported." ]
[ "Notifies all interested subscribers of the given revision.\n\n@param mwRevision\nthe given revision\n@param isCurrent\ntrue if this is guaranteed to be the most current revision", "This method must be called on the start of the component. Initialize and start the directory monitor.\n\n@param monitoredDirectory\n...
public static boolean isEasterSunday(LocalDate date) { int y = date.getYear(); int a = y % 19; int b = y / 100; int c = y % 100; int d = b / 4; int e = b % 4; int f = (b + 8) / 25; int g = (b - f + 1) / 3; int h = (19 * a + b - d - g + 15) % 30; int i = c / 4; int k = c % 4; int l = (32 + 2 * e ...
[ "Test a given date for being easter sunday.\n\nThe method uses the algorithms sometimes cited as Meeus,Jones, Butcher Gregorian algorithm.\nTaken from http://en.wikipedia.org/wiki/Computus\n\n@param date The date to check.\n@return True, if date is easter sunday." ]
[ "Use this API to add dnsview.", "Writes all data that was collected about classes to a json file.", "Recursively add files to a ZipOutputStream\n\n@param parent Parent file\n@param zout ZipOutputStream to append\n@param fileSource The file source\n@throws IOException I/O Error", "Confirms that both clusters h...
public Date getFinishDate() { Date finishDate = null; for (Task task : m_tasks) { // // If a hidden "summary" task is present we ignore it // if (NumberHelper.getInt(task.getUniqueID()) == 0) { continue; } // // S...
[ "Find the latest task finish date. We treat this as the\nfinish date for the project.\n\n@return finish date" ]
[ "Generating the input vertices is quite complex. Therefore there are multiple methods that handles the input vertices\nbased on the attribute specified in specific order. This method generates all the vertices if there is no other way how to handle\nthe input.", "Sets the timewarp setting from a numeric string\n\...
public static void showUserInfo(CmsSessionInfo session) { final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide); CmsUserInfoDialog dialog = new CmsUserInfoDialog(session, new Runnable() { public void run() { window.close(); } }); ...
[ "Shows a dialog with user information for given session.\n\n@param session to show information for" ]
[ "Go over the task list and create a map of stealerId -> Tasks\n\n@param sbTaskList List of all stealer-based rebalancing tasks to be\nscheduled.", "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...
private void addDefaults() { this.issueCategories.putIfAbsent(MANDATORY, new IssueCategory(MANDATORY, IssueCategoryRegistry.class.getCanonicalName(), "Mandatory", MANDATORY, 1000, true)); this.issueCategories.putIfAbsent(OPTIONAL, new IssueCategory(OPTIONAL, IssueCategoryRegistry.class.getCanonicalN...
[ "Make sure that we have some reasonable defaults available. These would typically be provided by the rulesets\nin the real world." ]
[ "Creates an appropriate HSGE for resources in the host tree, excluding the server and server-config subtrees", "Retrieve and validate store name from the REST request.\n\n@return true if valid, false otherwise", "Prepares a representation of the model that is easier accessible for our purposes.\n\n@param model ...
private static void checkPreconditions(final String dateFormat, final Locale locale) { if( dateFormat == null ) { throw new NullPointerException("dateFormat should not be null"); } else if( locale == null ) { throw new NullPointerException("locale should not be null"); } }
[ "Checks the preconditions for creating a new ParseDateTimeAbstract processor with date format and locale.\n\n@param dateFormat\nthe date format to use\n@param locale\nthe Locale used to parse the date\n@throws NullPointerException\nif dateFormat or locale is null" ]
[ "Determine if a CharSequence can be parsed as a Float.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isFloat(String)\n@since 1.8.2", "Plots the MSD curve for trajectory t\n@param t Trajectory to calculate the msd curve\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*tim...
@Override public void setValue(String value, boolean fireEvents) { boolean added = setSelectedValue(this, value, addMissingValue); if (added && fireEvents) { ValueChangeEvent.fire(this, getValue()); } }
[ "Selects the specified value in the list.\n\n@param value the new value\n@param fireEvents if true, a ValueChangeEvent event will be fired\n@see #setAddMissingValue" ]
[ "generate random velocities in the given range\n@return", "This method retrieves ONLY the ROOT actions", "Get a property as a double or defaultValue.\n\n@param key the property name\n@param defaultValue the default value", "Validations specific to PUT", "Insert syntax for our special table\n@param sequenceN...
public static String pennPOSToWordnetPOS(String s) { if (s.matches("NN|NNP|NNS|NNPS")) { return "noun"; } if (s.matches("VB|VBD|VBG|VBN|VBZ|VBP|MD")) { return "verb"; } if (s.matches("JJ|JJR|JJS|CD")) { return "adjective"; } if (s.matches("RB|RBR|RBS|RP|WRB")) { ...
[ "Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.\n\n@param s a Penn TreeBank POS tag." ]
[ "Use this API to fetch spilloverpolicy_lbvserver_binding resources of given name .", "Returns the given text with the first letter in upper case.\n\n<h2>Examples:</h2>\n<pre>\ncapitalize(\"hi\") == \"Hi\"\ncapitalize(\"Hi\") == \"Hi\"\ncapitalize(\"hi there\") == \"hi there\"\ncapitalize(\"\") == \"\"\ncapitalize...
@Override public final int getInt(final int i) { int val = this.array.optInt(i, Integer.MIN_VALUE); if (val == Integer.MIN_VALUE) { throw new ObjectMissingException(this, "[" + i + "]"); } return val; }
[ "Get the element at the index as an integer.\n\n@param i the index of the element to access" ]
[ "Searches for a declared method with a given name. If the class declares multiple methods with the given name,\nthere is no guarantee as of which methods is returned. Null is returned if the class does not declare a method\nwith the given name.\n@param clazz the given class\n@param methodName the given method name\...
protected boolean prepareClose() { synchronized (lock) { final State state = this.state; if (state == State.OPEN) { this.state = State.CLOSING; lock.notifyAll(); return true; } } return false; }
[ "Signal that we are about to close the channel. This will not have any affect on the underlying channel, however\nprevent setting a new channel.\n\n@return whether the closing state was set successfully" ]
[ "LRN cross-channel backward computation. Double parameters cast to tensor data type", "Adjusts beforeIndex to account for the possibility that the given widget is\nalready a child of this panel.\n\n@param child the widget that might be an existing child\n@param beforeIndex the index at which it will be added to t...
public void putEvents(List<Event> events) { List<Event> filteredEvents = filterEvents(events); executeHandlers(filteredEvents); for (Event event : filteredEvents) { persistenceHandler.writeEvent(event); } }
[ "Executes all event manipulating handler and writes the event with persist\nhandler.\n\n@param events the events" ]
[ "Obtains a Discordian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Assemble the configuration section of the URL.", "This method decod...
public static String movePath( final String file, final String target ) { final String name = new File(file).getName(); return target.endsWith("/") ? target + name : target + '/' + name; }
[ "Construct new path by replacing file directory part. No\nfiles are actually modified.\n@param file path to move\n@param target new path directory" ]
[ "Adds a new assignment to this task.\n@param assignTo the user to assign the assignment to.\n@return information about the newly added task assignment.", "This method is called to alert project listeners to the fact that\na task has been written to a project file.\n\n@param task task instance", "Starts the scen...
private void updateDb(String dbName, String webapp) { m_mainLayout.removeAllComponents(); m_setupBean.setDatabase(dbName); CmsDbSettingsPanel panel = new CmsDbSettingsPanel(m_setupBean); m_panel[0] = panel; panel.initFromSetupBean(webapp); m_mainLayout.addComponent(panel...
[ "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name" ]
[ "Updates property of parent id for the image provided.\nReturns false if image was not captured true otherwise.\n\n@param log\n@param imageTag\n@param host\n@param buildInfoId\n@return\n@throws IOException\n@throws InterruptedException", "Return the profileId for a path\n\n@param path_id ID of path\n@return ID of...
public static String getDumpFileWebDirectory( DumpContentType dumpContentType, String projectName) { if (dumpContentType == DumpContentType.JSON) { if ("wikidatawiki".equals(projectName)) { return WmfDumpFile.DUMP_SITE_BASE_URL + WmfDumpFile.WEB_DIRECTORY.get(dumpContentType) + "wikidata" + "/";...
[ "Returns the absolute directory on the Web site where dumpfiles of the\ngiven type can be found.\n\n@param dumpContentType\nthe type of dump\n@return relative web directory for the current dumpfiles\n@throws IllegalArgumentException\nif the given dump file type is not known" ]
[ "Use this API to add vpath.", "Request the artwork with a particular artwork ID, given a connection to a player that has already been set up.\n\n@param artworkId identifies the album art to retrieve\n@param slot the slot identifier from which the associated track was loaded\n@param trackType the kind of track tha...
public Collection<Method> getAllMethods(String name, int paramCount) { final Map<ParamList, Map<Class<?>, Method>> nameMap = methods.get(name); if (nameMap == null) { return Collections.emptySet(); } final Collection<Method> methods = new ArrayList<Method>(); for (Map...
[ "Get a collection of methods declared on this object by method name and parameter count.\n\n@param name the name of the method\n@param paramCount the number of parameters\n@return the (possibly empty) collection of methods with the given name and parameter count" ]
[ "Receive an expected number of bytes from the player, logging a warning if we get a different number of them.\n\n@param is the input stream associated with the player metadata socket.\n@param size the number of bytes we expect to receive.\n@param description the type of response being processed, for use in the warn...
@Override public ArtifactoryResponse restCall(ArtifactoryRequest artifactoryRequest) throws IOException { HttpRequestBase httpRequest; String requestPath = "/" + artifactoryRequest.getApiUrl(); ContentType contentType = Util.getContentType(artifactoryRequest.getRequestType()); Stri...
[ "Create a REST call to artifactory with a generic request\n\n@param artifactoryRequest that should be sent to artifactory\n@return {@link ArtifactoryResponse} artifactory response as per to the request sent" ]
[ "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to ...
static PatchingTask createTask(final PatchingTasks.ContentTaskDefinition definition, final PatchContentProvider provider, final IdentityPatchContext.PatchEntry context) { final PatchContentLoader contentLoader = provider.getLoader(definition.getTarget().getPatchId()); final PatchingTaskDescription descr...
[ "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task" ]
[ "Option check, forwards options to the standard doclet, if that one refuses them,\nthey are sent to UmlGraph", "Lookup a native pointer to a collider and return its Java object.\n\n@param nativePointer native pointer to C++ Collider\n@return Java GVRCollider object", "This method writes project extended attribu...
protected void closeServerSocket() { // Close server socket, we do not accept new requests anymore. // This also terminates the server thread if blocking on socket.accept. if (null != serverSocket) { try { if (!serverSocket.isClosed()) { serverSock...
[ "Closes the server socket." ]
[ "Moves everything up so that the specified shift or latch character can be inserted.\n\n@param position the position beyond which everything needs to be shifted\n@param c the latch or shift character to insert at the specified position, after everything has been shifted", "Obtain instance of the SQL Service\n\n@r...
public List<ProjectFile> readAll() throws MPXJException { Map<Integer, String> projects = listProjects(); List<ProjectFile> result = new ArrayList<ProjectFile>(projects.keySet().size()); for (Integer id : projects.keySet()) { setProjectID(id.intValue()); result.add(read()); ...
[ "Convenience method which allows all projects in the database to\nbe read in a single operation.\n\n@return list of ProjectFile instances\n@throws MPXJException" ]
[ "Add a raw SQL \"GROUP BY\" clause to the SQL query statement. This should not include the \"GROUP BY\".", "creates a shape list containing all child shapes and set it to the\ncurrent shape new shape get added to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", ...
@Override protected void registerRequest(RestRequestValidator requestValidator, ChannelHandlerContext ctx, MessageEvent messageEvent) { // At this point we know the request is valid and we have a // error handler. So we construct ...
[ "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'Store' object corresponding to the store name specified in\nthe REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Me...
[ "Return the bean type, untangling the proxy if needed\n\n@param name\nthe bean name\n@return The Class of the bean", "Prints out the interceptor chain in a format that is easy to read. It\nalso filters out instances of the DemoInterceptor so you can see what the\nchain would look like in a normal invokation.\n\n@...
public void setOjbQuery(org.apache.ojb.broker.query.Query ojbQuery) { this.ojbQuery = ojbQuery; }
[ "Sets the ojbQuery, needed only as long we\ndon't support the soda constraint stuff.\n@param ojbQuery The ojbQuery to set" ]
[ "Use this API to fetch all the cacheselector resources that are configured on netscaler.", "FOR internal use. This method was called after the external transaction was completed.\n\n@see javax.transaction.Synchronization", "Get an image using the specified URL suffix.\n\n@deprecated\n@param suffix\nThe URL suff...
protected void setWhenNoDataBand() { log.debug("setting up WHEN NO DATA band"); String whenNoDataText = getReport().getWhenNoDataText(); Style style = getReport().getWhenNoDataStyle(); if (whenNoDataText == null || "".equals(whenNoDataText)) return; JRDesignBand band ...
[ "Creates the graphic element to be shown when the datasource is empty" ]
[ "Creates a spin wrapper for a data input. The data format of the\ninput is assumed to be JSON.\n\n@param input the input to wrap\n@return the spin wrapper for the input\n\n@throws IllegalArgumentException in case an argument of illegal type is provided (such as 'null')", "Clean obsolete contents from the content ...
public <T> Observable<ServiceResponse<T>> getPutOrPatchResultAsync(Observable<Response<ResponseBody>> observable, final Type resourceType) { return this.<T>beginPutOrPatchAsync(observable, resourceType) .toObservable() .flatMap(new Func1<PollingState<T>, Observable<PollingState<T...
[ "Handles an initial response from a PUT or PATCH operation response by polling the status of the operation\nasynchronously, once the operation finishes emits the final response.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param resourceType the java.lang.reflect.Type of the resour...
[ "Starts the ephemeral node and waits for it to be created\n\n@param node Node to start\n@param maxWaitSec Maximum time in seconds to wait", "This method extracts assignment data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Pauses a given deployment\n\n@param deployment The deployment to ...
public void setShortVec(CharBuffer 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 ar...
[ "Updates the indices in the index buffer from a Java CharBuffer.\nAll of the entries of the input 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 CharBuffer containing the new values\n@throws ...
[ "performs a DELETE operation against RDBMS.\n@param cld ClassDescriptor providing mapping information.\n@param obj The object to be deleted.", "Removes file from your assembly.\n\n@param name field name of the file to remove.", "returns an Array with an Objects PK VALUES\n@throws PersistenceBrokerException if t...
@SuppressWarnings({"unused", "WeakerAccess"}) public void pushEvent(String eventName) { if (eventName == null || eventName.trim().equals("")) return; pushEvent(eventName, null); }
[ "Pushes a basic event.\n\n@param eventName The name of the event" ]
[ "Gets external resource for an HTML page in the setup-resources folder.\n\n@param context the context\n@param name the file name\n\n@return the resource for the HTML page", "Process TestCaseStartedEvent. New testCase will be created and added\nto suite as child.\n\n@param event to process", "called per frame of...
public ItemRequest<ProjectMembership> findById(String projectMembership) { String path = String.format("/project_memberships/%s", projectMembership); return new ItemRequest<ProjectMembership>(this, ProjectMembership.class, path, "GET"); }
[ "Returns the project membership record.\n\n@param projectMembership Globally unique identifier for the project membership.\n@return Request object" ]
[ "Get the script for a given ID\n\n@param id ID of script\n@return Script if found, otherwise null", "This filter adds rounded corners to the image using the specified color as the background.\n\n@param radiusInner amount of pixels to use as radius.\n@param radiusOuter specifies the second value for the ellipse us...
public static ipset_nsip6_binding[] get(nitro_service service, String name) throws Exception{ ipset_nsip6_binding obj = new ipset_nsip6_binding(); obj.set_name(name); ipset_nsip6_binding response[] = (ipset_nsip6_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch ipset_nsip6_binding resources of given name ." ]
[ "Generates an expression from a variable\n@param var The variable from which to generate the expression\n@return A expression that represents the given variable", "Extract information from a resource ID string with the resource type\nas the identifier.\n\n@param id the resource ID\n@param identifier the identifie...
private void readAvailabilityTable(Resource resource, AvailabilityPeriods periods) { if (periods != null) { AvailabilityTable table = resource.getAvailability(); List<AvailabilityPeriod> list = periods.getAvailabilityPeriod(); for (AvailabilityPeriod period : list) { ...
[ "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods" ]
[ "Send a metadata cache update announcement to all registered listeners.\n\n@param slot the media slot whose cache status has changed\n@param cache the cache which has been attached, or, if {@code null}, the previous cache has been detached", "Use this API to update snmpoption.", "The file we are working with ha...
private static boolean isVariableInteger(TokenList.Token t) { if( t == null ) return false; return t.getScalarType() == VariableScalar.Type.INTEGER; }
[ "Checks to see if the token is an integer scalar\n\n@return true if integer or false if not" ]
[ "Add groups to the tree.\n\n@param parentNode parent tree node\n@param file group container", "Populate data for analytics.", "Get global hotkey provider for current platform\n\n@param useSwingEventQueue whether the provider should be using Swing Event queue or a regular thread\n@return new instance of Provider...
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 (!laye...
[ "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" ]
[ "Use this API to fetch statistics of servicegroup_stats resource of given name .", "Specifies the base URI of this conversion server.\n\n@param baseUri The URI under which this remote conversion server is reachable.\n@return This builder instance.", "Initial setup of the service worker registration.", "Use th...
public static void printHelp(PrintStream stream) { stream.println(); stream.println("Voldemort Admin Tool Async-Job Commands"); stream.println("---------------------------------------"); stream.println("list Get async job list from nodes."); stream.println("stop Stop async jo...
[ "Prints command-line help menu." ]
[ "Renders the document to the specified output stream.", "Add all elements in the iterable to the collection.\n\n@param target\n@param iterable\n@return true if the target was modified, false otherwise", "Execute a slave process. Pump events to the given event bus.", "Returns the default shared instance of the...
public PeriodicEvent runAfter(Runnable task, float delay) { validateDelay(delay); return new Event(task, delay); }
[ "Run a task once, after a delay.\n\n@param task\nTask to run.\n@param delay\nUnit is seconds.\n@return An interface that lets you query the status; cancel; or\nreschedule the event." ]
[ "Private helper method which decodes the Stitch error from the body of an HTTP `Response`\nobject. If the error is successfully decoded, this function will throw the error for the end\nuser to eventually consume. If the error cannot be decoded, this is likely not an error from\nthe Stitch server, and this function ...
public IPv4Address getEmbeddedIPv4Address(int byteIndex) { if(byteIndex == IPv6Address.MIXED_ORIGINAL_SEGMENT_COUNT * IPv6Address.BYTES_PER_SEGMENT) { return getEmbeddedIPv4Address(); } IPv4AddressCreator creator = getIPv4Network().getAddressCreator(); return creator.createAddress(getSection().getEmbeddedIPv...
[ "Produces an IPv4 address from any sequence of 4 bytes in this IPv6 address.\n\n@param byteIndex the byte index to start\n@throws IndexOutOfBoundsException if the index is less than zero or bigger than 7\n@return" ]
[ "Output method responsible for sending the updated content to the Subscribers.\n\n@param cn", "Propagates the names of all facets to each single facet.", "Generic method used to create a field map from a block of data.\n\n@param data field map data", "Set the featureModel.\n\n@param featureModel\nfeature mode...
public static String resourceTypeFromResourceId(String id) { return (id != null) ? ResourceId.fromString(id).resourceType() : null; }
[ "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type" ]
[ "Get the real Object\n\n@param objectOrProxy\n@return Object", "Returns the object pointed by the result-type parameter \"parameters\"\n@param _invocation\n@return", "Populates the bean by mapping the processed columns to the fields of the bean.\n\n@param resultBean\nthe bean to populate\n@param nameMapping\nth...
public static clusternodegroup_binding get(nitro_service service, String name) throws Exception{ clusternodegroup_binding obj = new clusternodegroup_binding(); obj.set_name(name); clusternodegroup_binding response = (clusternodegroup_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch clusternodegroup_binding resource of given name ." ]
[ "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", "Load a classifier from the specified InputStream. The classifier is\nreinitialized from the flags serialized in the classifier. This does n...
protected void mergeHardcodedResultsFrom(Configuration otherConfiguration) { Map<Dotted, AnalysisResult> resultsMap = hardcodedResults.build().stream() .collect(Collectors.toMap(r -> r.className, r -> r)); resultsMap.putAll(otherConfiguration.hardcodedResults()); hardcodedRes...
[ "Merges the hardcoded results of this Configuration with the given\nConfiguration.\n\nThe resultant hardcoded results will be the union of the two sets of\nhardcoded results. Where the AnalysisResult for a class is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result i...
[ "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{@l...
private static void registerCommonClasses(Class<?>... commonClasses) { for (Class<?> clazz : commonClasses) { commonClassCache.put(clazz.getName(), clazz); } }
[ "Register the given common classes with the ClassUtils cache." ]
[ "Get the current attribute type.\n@param key the entry's key, not null\n@return the current attribute type, or null, if no such attribute exists.", "Cancels all requests still waiting for a response.\n\n@return this {@link Searcher} for chaining.", "Reports a given exception as a RuntimeException, since the int...
public void transformPose(Matrix4f trans) { Bone bone = mBones[0]; bone.LocalMatrix.set(trans); bone.WorldMatrix.set(trans); bone.Changed = WORLD_POS | WORLD_ROT; mNeedSync = true; sync(); }
[ "Transform the root bone of the pose by the given matrix.\n@param trans matrix to transform the pose by." ]
[ "disables the current active id, enables the new one selected\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@param active true to make client active, false to make client inactive\n@throws Exception exception", "Adds a redeploy step to the composite operation.\n\n@param build...
private Number calculateUnitsPercentComplete(Row row) { double result = 0; double actualWorkQuantity = NumberHelper.getDouble(row.getDouble("act_work_qty")); double actualEquipmentQuantity = NumberHelper.getDouble(row.getDouble("act_equip_qty")); double numerator = actualWorkQuantity + actua...
[ "Calculate the units percent complete.\n\n@param row task data\n@return percent complete" ]
[ "Get the list of all nodes and the list of active nodes in the cluster.\n\n@return Membership object encapsulating lists of all nodes and the cluster nodes\n@see <a\nhref=\"https://console.bluemix.net/docs/services/Cloudant/api/advanced.html#-get-_membership-\">\n_membership</a>", "select a use case.", "Deal wi...
public List<URL> scan(Predicate<String> filter) { List<URL> discoveredURLs = new ArrayList<>(128); // For each Forge addon... for (Addon addon : furnace.getAddonRegistry().getAddons(AddonFilters.allStarted())) { List<String> filteredResourcePaths = filterAddonResources(a...
[ "Scans all Forge addons for files accepted by given filter." ]
[ "Converts the Conditionals into real headers.\n@return real headers.", "Parses values out of the header text.\n\n@param header header text", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from value", "Parses a single query item for the query facet.\n@param item JSON object of the ...
public void copyPageOnly(CmsResource originalPage, String targetPageRootPath) throws CmsException, NoCustomReplacementException { if ((null == originalPage) || !OpenCms.getResourceManager().getResourceType(originalPage).getTypeName().equals( CmsResourceTypeXmlContainerPage.getSt...
[ "Copies the given container page to the provided root path.\n@param originalPage the page to copy\n@param targetPageRootPath the root path of the copy target.\n@throws CmsException thrown if something goes wrong.\n@throws NoCustomReplacementException if a custom replacement is not found for a type which requires it...
[ "Registers a new user with the given email and password.\n\n@param email the email to register with. This will be the username used during log in.\n@param password the password to associated with the email. The password must be between\n6 and 128 characters long.\n@return A {@link Task} that completes when registra...
@Override @SuppressWarnings("unchecked") public ChronoZonedDateTime<EthiopicDate> zonedDateTime(TemporalAccessor temporal) { return (ChronoZonedDateTime<EthiopicDate>) super.zonedDateTime(temporal); }
[ "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" ]
[ "To use main report datasource. There should be nothing else in the detail band\n@param preSorted\n@return", "Gets the current instance of plugin manager\n\n@return PluginManager", "Write a map field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Obtains a local date in Discordi...
public static final PhotoList<Photo> createPhotoList(Element photosElement) { PhotoList<Photo> photos = new PhotoList<Photo>(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perp...
[ "Parse a list of Photos from given Element.\n\n@param photosElement\n@return PhotoList" ]
[ "Parse init parameter for integer value, returning default if not found or invalid", "Returns sql statement used in this prepared statement together with the parameters.\n@param sql base sql statement\n@param logParams parameters to print out\n@return returns printable statement", "Updates the terms and stateme...
public static int cudnnGetRNNDataDescriptor( cudnnRNNDataDescriptor RNNDataDesc, int[] dataType, int[] layout, int[] maxSeqLength, int[] batchSize, int[] vectorSize, int arrayLengthRequested, int[] seqLengthArray, Pointer paddingFill) {...
[ "symbol for filling padding position in output" ]
[ "Returns the encoding of the file.\nEncoding is read from the content-encoding property and defaults to the systems default encoding.\nSince properties can change without rewriting content, the actual encoding can differ.\n\n@param cms {@link CmsObject} used to read properties of the given file.\n@param file the fi...
public void addFieldDescriptor(FieldDescriptor fld) { fld.setClassDescriptor(this); // BRJ if (m_FieldDescriptions == null) { m_FieldDescriptions = new FieldDescriptor[1]; m_FieldDescriptions[0] = fld; } else { int size = ...
[ "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld" ]
[ "You should use the server's time here. Otherwise you might get unexpected results.\n\nThe typical use case is:\n\n\n<pre>\nHTTPResponse response = ....\nHTTPRequest request = createRequest();\nrequest = request.conditionals(new Conditionals().ifModifiedSince(response.getLastModified());\n</pre>\n\n@param time the ...
public void addAccessory(HomekitAccessory accessory) { if (accessory.getId() <= 1 && !(accessory instanceof Bridge)) { throw new IndexOutOfBoundsException( "The ID of an accessory used in a bridge must be greater than 1"); } addAccessorySkipRangeCheck(accessory); }
[ "Add an accessory to be handled and advertised by this root. Any existing Homekit connections\nwill be terminated to allow the clients to reconnect and see the updated accessory list. When\nusing this for a bridge, the ID of the accessory must be greater than 1, as that ID is reserved\nfor the Bridge itself.\n\n@pa...
[ "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\...
@SuppressWarnings("WeakerAccess") public synchronized void stop() { if (isRunning()) { BeatFinder.getInstance().removeBeatListener(beatListener); VirtualCdj.getInstance().removeUpdateListener(updateListener); running.set(false); positions.clear(); ...
[ "Stop interpolating playback position for all active players." ]
[ "Create a KnowledgeBuilderConfiguration on which properties can be set. Use\nthe given properties file and ClassLoader - either of which can be null.\n@return\nThe KnowledgeBuilderConfiguration.", "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "Perform all Cursor cleanup here....
public void printInterceptorChain(InterceptorChain chain) { Iterator<Interceptor<? extends Message>> it = chain.iterator(); String phase = ""; StringBuilder builder = null; while (it.hasNext()) { Interceptor<? extends Message> interceptor = it.next(); if (intercep...
[ "Prints out the interceptor chain in a format that is easy to read. It\nalso filters out instances of the DemoInterceptor so you can see what the\nchain would look like in a normal invokation.\n\n@param chain" ]
[ "returns array with all allowed values\n@return allowed values", "Triggers a new search with the given text.\n\n@param query the text to search for.", "Read hints from a file.", "Wait for the read side to close. Used when the writer needs to know when\nthe reader finishes consuming a message.", "Adds a Str...
@Override public boolean parseAndValidateRequest() { boolean result = false; if(!super.parseAndValidateRequest() || !hasVectorClock(this.isVectorClockOptional) || !hasContentLength() || !hasContentType()) { result = false; } else { result = true; } ...
[ "Validations specific to PUT" ]
[ "Configs created by this ConfigBuilder will use the given Redis sentinels.\n\n@param sentinels the Redis set of sentinels\n@return this ConfigBuilder", "Utility function that fetches user defined store definitions\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to f...