query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public Collection<Contact> getPublicList(String userId) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PUBLIC_LIST); parameters.put("user_id", userId); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element contactsElement = response.getPayload(); NodeList contactNodes = contactsElement.getElementsByTagName("contact"); for (int i = 0; i < contactNodes.getLength(); i++) { Element contactElement = (Element) contactNodes.item(i); Contact contact = new Contact(); contact.setId(contactElement.getAttribute("nsid")); contact.setUsername(contactElement.getAttribute("username")); contact.setIgnored("1".equals(contactElement.getAttribute("ignored"))); contact.setOnline(OnlineStatus.fromType(contactElement.getAttribute("online"))); contact.setIconFarm(contactElement.getAttribute("iconfarm")); contact.setIconServer(contactElement.getAttribute("iconserver")); if (contact.getOnline() == OnlineStatus.AWAY) { contactElement.normalize(); contact.setAwayMessage(XMLUtilities.getValue(contactElement)); } contacts.add(contact); } return contacts; }
[ "Get the collection of public contacts for the specified user ID.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The Collection of Contact objects\n@throws FlickrException" ]
[ "Close it and ignore any exceptions.", "To sql pattern.\n\n@param attribute the attribute\n@return the string", "Get the sub registry for the servers.\n\n@param range the version range\n@return the sub registry", "Get the bounding-box containing all features of all layers.", "Lift a Java Func2 to a Scala Function2\n\n@param f the function to lift\n\n@returns the Scala function", "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.", "Retrieve an activity status.\n\n@param mpxj MPXJ Task instance\n@return activity status", "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)", "Acquires a broker instance. If no PBKey is available a runtime exception will be thrown.\n\n@return A broker instance" ]
public Bundler put(String key, CharSequence[] value) { delegate.putCharSequenceArray(key, value); return this; }
[ "Inserts a CharSequence array value into the mapping of the underlying Bundle, replacing any\nexisting value for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a CharSequence array object, or null\n@return this bundler instance to chain method calls" ]
[ "Answer true if an Iterator for a Table is already available\n@param aTable\n@return", "Performs a matrix inversion operations that takes advantage of the special\nproperties of a covariance matrix.\n\n@param cov A covariance matrix. Not modified.\n@param cov_inv The inverse of cov. Modified.\n@return true if it could invert the matrix false if it could not.", "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance.", "This method can be called to ensure that the IDs of all\nentities are sequential, and start from an\nappropriate point. If entities are added to and removed from\nthis list, then the project is loaded into Microsoft\nproject, if the ID values have gaps in the sequence, there will\nbe blank rows shown.", "In-place scaling of a column in A\n\n@param alpha scale factor\n@param A matrix\n@param col which row in A", "Checks whether an XPath expression starts with an XPath eventable condition.\n\n@param dom The DOM String.\n@param eventableCondition The eventable condition.\n@param xpath The XPath.\n@return boolean whether xpath starts with xpath location of eventable condition xpath\ncondition\n@throws XPathExpressionException\n@throws CrawljaxException when eventableCondition is null or its inXPath has not been set", "Returns a BSON version document representing a new version with a new instance ID, and\nversion counter of zero.\n@return a BsonDocument representing a synchronization version", "Process a file.\n\n@param file the file to be processed\n@param mode the patching mode\n@throws IOException", "Gets the index input list.\n\n@return the index input list" ]
public static void rebuild(final MODE newMode) { if (mode != newMode) { mode = newMode; TYPE type; switch (mode) { case DEBUG: type = TYPE.ANDROID; Log.startFullLog(); break; case DEVELOPER: type = TYPE.PERSISTENT; Log.stopFullLog(); break; case USER: type = TYPE.ANDROID; break; default: type = DEFAULT_TYPE; Log.stopFullLog(); break; } currentLog = getLog(type); } }
[ "Rebuild logging systems with updated mode\n@param newMode log mode" ]
[ "Override this method to supply a custom splash screen image.\n\n@param gvrContext\nThe new {@link GVRContext}\n@return Texture to display\n\n@since 1.6.4", "Try to fire a given event on the Browser.\n\n@param eventable the eventable to fire\n@return true iff the event is fired", "Delete a server group by id\n\n@param id server group ID", "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.", "Replaces the first substring of this CharSequence that matches the given\nregular expression with the given replacement.\n\n@param self a CharSequence\n@param regex the capturing regex\n@param replacement the CharSequence to be substituted for each match\n@return a CharSequence with replaced content\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see String#replaceFirst(String, String)\n@since 1.8.2", "Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .", "Sets the left padding for all cells in the table.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Set the row, column, and value\n\n@return this", "Get a collection of Photo objects for the specified Photoset.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@param photosetId\nThe photoset ID\n@param extras\nSet of extra-fields\n@param privacy_filter\nfilter value for authenticated calls\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return PhotoList The Collection of Photo objects\n@throws FlickrException" ]
public void run(Configuration configuration, List<CandidateSteps> candidateSteps, Story story, MetaFilter filter) throws Throwable { run(configuration, candidateSteps, story, filter, null); }
[ "Runs a Story with the given configuration and steps, applying the given\nmeta filter.\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@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown." ]
[ "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", "Get the contents from the request URL.\n\n@param url URL to get the response from\n@param layer the raster layer\n@return {@link InputStream} with the content\n@throws IOException cannot get content", "Use this API to fetch all the inat resources that are configured on netscaler.", "Geta the specified metadata template by its ID.\n@param api the API connection to be used.\n@param templateID the ID of the template to get.\n@return the metadata template object.", "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", "Use this API to fetch the statistics of all appfwprofile_stats resources that are configured on netscaler.", "Allows testsuites to shorten the domain timeout adder", "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", "Parses an item IRI\n\n@param iri\nthe item IRI like http://www.wikidata.org/entity/Q42\n@throws IllegalArgumentException\nif the IRI is invalid or does not ends with an item id" ]
public double response( double[] sample ) { if( sample.length != A.numCols ) throw new IllegalArgumentException("Expected input vector to be in sample space"); DMatrixRMaj dots = new DMatrixRMaj(numComponents,1); DMatrixRMaj s = DMatrixRMaj.wrap(A.numCols,1,sample); CommonOps_DDRM.mult(V_t,s,dots); return NormOps_DDRM.normF(dots); }
[ "Computes the dot product of each basis vector against the sample. Can be used as a measure\nfor membership in the training sample set. High values correspond to a better fit.\n\n@param sample Sample of original data.\n@return Higher value indicates it is more likely to be a member of input dataset." ]
[ "Sets all dates in the list.\n@param dates the dates to set\n@param checked flag, indicating if all should be checked or unchecked.", "return the squared area of the triangle defined by the half edge hedge0\nand the point at the head of hedge1.\n\n@param hedge0\n@param hedge1\n@return", "Input method, called by a Subscriber indicating its intent into receive notification about a given topic.\n\n@param sr DTO containing the info given by the protocol", "Method used as dynamical parameter converter", "Sets the bottom padding for all cells in the row.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining", "Returns the intersection of sets s1 and s2.", "Use this API to fetch vpnclientlessaccesspolicy_binding resource of given name .", "Callback from the worker when it terminates", "Checks if a property's type is valid to be included in the report.\n@param _property the property.\n@return true if the property is is of a valid type." ]
public static double computeTauAndDivide(final int j, final int numRows , final double[] u , final double max) { double tau = 0; // double div_max = 1.0/max; // if( Double.isInfinite(div_max)) { for( int i = j; i < numRows; i++ ) { double d = u[i] /= max; tau += d*d; } // } else { // for( int i = j; i < numRows; i++ ) { // double d = u[i] *= div_max; // tau += d*d; // } // } tau = Math.sqrt(tau); if( u[j] < 0 ) tau = -tau; return tau; }
[ "Normalizes elements in 'u' by dividing by max and computes the norm2 of the normalized\narray u. Adjust the sign of the returned value depending on the size of the first\nelement in 'u'. Normalization is done to avoid overflow.\n\n<pre>\nfor i=j:numRows\nu[i] = u[i] / max\ntau = tau + u[i]*u[i]\nend\ntau = sqrt(tau)\nif( u[j] &lt; 0 )\ntau = -tau;\n</pre>\n\n@param j Element in 'u' that it starts at.\n@param numRows Element in 'u' that it stops at.\n@param u Array\n@param max Max value in 'u' that is used to normalize it.\n@return norm2 of 'u'" ]
[ "Use this API to fetch appqoepolicy resource of given name .", "B tensor is ignored for CUDNN_OP_TENSOR_SQRT, CUDNN_OP_TENSOR_NOT.", "Publish the bundle resources directly.", "Use this API to add appfwjsoncontenttype resources.", "Start with specifying the groupId", "Use this API to add gslbservice.", "Returns a new color that has the hue adjusted by the specified\namount.", "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name .", "Add an appender to Logback logging framework that will track the types of log messages made." ]
public static int allParametersAndArgumentsMatch(Parameter[] params, ClassNode[] args) { if (params==null) { params = Parameter.EMPTY_ARRAY; } int dist = 0; if (args.length<params.length) return -1; // we already know the lengths are equal for (int i = 0; i < params.length; i++) { ClassNode paramType = params[i].getType(); ClassNode argType = args[i]; if (!isAssignableTo(argType, paramType)) return -1; else { if (!paramType.equals(argType)) dist+=getDistance(argType, paramType); } } return dist; }
[ "Checks that arguments and parameter types match.\n@param params method parameters\n@param args type arguments\n@return -1 if arguments do not match, 0 if arguments are of the exact type and >0 when one or more argument is\nnot of the exact type but still match" ]
[ "Computes the null space using QRP decomposition. This is faster than using SVD but slower than QR.\nMuch more stable than QR though.\n@param A (Input) Matrix\n@param totalSingular Number of singular values\n@return Null space", "Provides a type-specific Meta class for the given TinyType.\n\n@param <T> the TinyType class type\n@param candidate the TinyType class to obtain a Meta for\n@return a Meta implementation suitable for the candidate\n@throws IllegalArgumentException for null or a non-TinyType", "Use this API to delete sslfipskey of given name.", "Use this API to unset the properties of rnatparam resource.\nProperties that need to be unset are specified in args array.", "Checks if the specified latitude is correct.\n\n@param name the name of the latitude field\n@param latitude the value of the latitude field\n@return the latitude", "Queues up a callback to be removed and invoked on the next change event.", "Read a four byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "Find and read the cache format entry in a metadata cache file.\n\n@return the content of the format entry, or {@code null} if none was found\n\n@throws IOException if there is a problem reading the file", "Removes all candidates from this collection which are not\nassociated with an initialising method.\n\n@return a {@code Collection} containing the removed\nunassociated candidates. This list is empty if none\nwere removed, i. e. the result is never {@code null}." ]
public Quaternionf ConvertDirectionalVectorToQuaternion(Vector3f d) { d.negate(); Quaternionf q = new Quaternionf(); // check for exception condition if ((d.x == 0) && (d.z == 0)) { // exception condition if direction is (0,y,0): // straight up, straight down or all zero's. if (d.y > 0) { // direction straight up AxisAngle4f angleAxis = new AxisAngle4f(-(float) Math.PI / 2, 1, 0, 0); q.set(angleAxis); } else if (d.y < 0) { // direction straight down AxisAngle4f angleAxis = new AxisAngle4f((float) Math.PI / 2, 1, 0, 0); q.set(angleAxis); } else { // All zero's. Just set to identity quaternion q.identity(); } } else { d.normalize(); Vector3f up = new Vector3f(0, 1, 0); Vector3f s = new Vector3f(); d.cross(up, s); s.normalize(); Vector3f u = new Vector3f(); d.cross(s, u); u.normalize(); Matrix4f matrix = new Matrix4f(s.x, s.y, s.z, 0, u.x, u.y, u.z, 0, d.x, d.y, d.z, 0, 0, 0, 0, 1); q.setFromNormalized(matrix); } return q; }
[ "Converts a vector into a quaternion.\nUsed for the direction of spot and directional lights\nCalled upon initialization and updates to those vectors\n\n@param d" ]
[ "Installs a path service.\n\n@param name the name to use for the service\n@param path the relative portion of the path\n@param possiblyAbsolute {@code true} if {@code path} may be an {@link #isAbsoluteUnixOrWindowsPath(String) absolute path}\nand should be {@link AbsolutePathService installed as such} if it is, with any\n{@code relativeTo} parameter ignored\n@param relativeTo the name of the path that {@code path} may be relative to\n@param serviceTarget the {@link ServiceTarget} to use to install the service\n@return the ServiceController for the path service", "Add a polygon symbolizer definition to the rule.\n\n@param styleJson The old style.", "Retrieves a specific range of child items in this folder.\n\n@param offset the index of the first child item to retrieve.\n@param limit the maximum number of children to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of child items.", "Returns a matrix full of ones", "Adds any listeners attached to this reader to the reader created internally.\n\n@param reader internal project reader", "Use this API to delete appfwjsoncontenttype of given name.", "Read the header data for a single file.\n\n@param header header data\n@return SynchroTable instance", "private multi-value handlers and helpers", "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container" ]
@JsonProperty public String timestamp() { if (timestampAsText == null) { timestampAsText = DateTimeFormatter.ISO_INSTANT.format(timestamp); } return timestampAsText; }
[ "Returns a date and time string which is formatted as ISO-8601." ]
[ "Add a marker so we can recognize this as a metadata archive. I would use the ZipFile comment, but\nthat is not available until Java 7, and Beat Link is supposed to be backwards compatible with Java 6.\nSince we are doing this anyway, we can also provide information about the nature of the cache, and\nhow many metadata entries it contains, which is useful for auto-attachment.\n\n@param trackListEntries the tracks contained in the cache, so we can record the number\n@param playlistId the playlist contained in the cache, or 0 if it is all tracks from the media\n@param zos the stream to which the ZipFile is being written\n\n@throws IOException if there is a problem creating the format entry", "Intercepts calls for setting a key and value for a JSON object\n\n@param name the key name\n@param args the value associated with the key", "Multiplies all positions with a factor v\n@param v Multiplication factor", "Removes trailing and leading whitespace, and also reduces each\nsequence of internal whitespace to a single space.", "Expands the directories from the given list and and returns a list of subfiles.\nFiles from the original list are kept as is.", "Sets the currency code, or the regular expression to select codes.\n\n@param codes the currency codes or code expressions, not null.\n@return the query for chaining.", "Deletes all steps of scenario cases where a data table\nis generated to reduce the size of the data file.\nIn this case only the steps of the first scenario case are actually needed.", "Adds to this set all of the elements in the specified map of members and their score.\n@param scoredMember the members to add together with their scores\n@return the number of members actually added", "Register the given common classes with the ClassUtils cache." ]
private EventType createEventType(EventEnumType type) { EventType eventType = new EventType(); eventType.setTimestamp(Converter.convertDate(new Date())); eventType.setEventType(type); OriginatorType origType = new OriginatorType(); origType.setProcessId(Converter.getPID()); try { InetAddress inetAddress = InetAddress.getLocalHost(); origType.setIp(inetAddress.getHostAddress()); origType.setHostname(inetAddress.getHostName()); } catch (UnknownHostException e) { origType.setHostname("Unknown hostname"); origType.setIp("Unknown ip address"); } eventType.setOriginator(origType); String path = System.getProperty("karaf.home"); CustomInfoType ciType = new CustomInfoType(); CustomInfoType.Item cItem = new CustomInfoType.Item(); cItem.setKey("path"); cItem.setValue(path); ciType.getItem().add(cItem); eventType.setCustomInfo(ciType); return eventType; }
[ "Creates the event type.\n\n@param type the EventEnumType\n@return the event type" ]
[ "Use this API to fetch all the route6 resources that are configured on netscaler.", "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "This method extracts candidate elements from the current DOM tree in the browser, based on\nthe crawl tags defined by the user.\n\n@param currentState the state in which this extract method is requested.\n@return a list of candidate elements that are not excluded.\n@throws CrawljaxException if the method fails.", "Use this API to fetch all the route6 resources that are configured on netscaler.", "Stops the scavenger.", "Creates a file logger in the current thread. The file is in XML format, suitable for interpretation by Eclipse's Drools Audit View\nor other tools. Note that while events are written as they happen, the file will not be flushed until it is closed or the underlying\nfile buffer is filled. If you need real time logging then use a Console Logger or a Threaded File Logger.\n\n@param session\n@param fileName - .log is appended to this.\n@return", "Use this API to fetch nslimitselector resource of given name .", "When the descriptor was added while editing, but the change was not saved, it has to be removed\nwhen the editor is closed.\n@throws CmsException thrown when deleting the descriptor resource fails", "Runs the print.\n\n@param args the cli arguments\n@throws Exception" ]
private ValidationResult _mergeListInternalForKey(String key, JSONArray left, JSONArray right, boolean remove, ValidationResult vr) { if (left == null) { vr.setObject(null); return vr; } if (right == null) { vr.setObject(left); return vr; } int maxValNum = Constants.MAX_MULTI_VALUE_ARRAY_LENGTH; JSONArray mergedList = new JSONArray(); HashSet<String> set = new HashSet<>(); int lsize = left.length(), rsize = right.length(); BitSet dupSetForAdd = null; if (!remove) dupSetForAdd = new BitSet(lsize + rsize); int lidx = 0; int ridx = scan(right, set, dupSetForAdd, lsize); if (!remove && set.size() < maxValNum) { lidx = scan(left, set, dupSetForAdd, 0); } for (int i = lidx; i < lsize; i++) { try { if (remove) { String _j = (String) left.get(i); if (!set.contains(_j)) { mergedList.put(_j); } } else if (!dupSetForAdd.get(i)) { mergedList.put(left.get(i)); } } catch (Throwable t) { //no-op } } if (!remove && mergedList.length() < maxValNum) { for (int i = ridx; i < rsize; i++) { try { if (!dupSetForAdd.get(i + lsize)) { mergedList.put(right.get(i)); } } catch (Throwable t) { //no-op } } } // check to see if the list got trimmed in the merge if (ridx > 0 || lidx > 0) { vr.setErrorDesc("Multi value property for key " + key + " exceeds the limit of " + maxValNum + " items. Trimmed"); vr.setErrorCode(521); } vr.setObject(mergedList); return vr; }
[ "scans right to left until max to maintain latest max values for the multi-value property specified by key.\n\n@param key the property key\n@param left original list\n@param right new list\n@param remove if remove new list from original\n@param vr ValidationResult for error and merged list return" ]
[ "Returns the currently scheduled job description identified by the given id.\n\n@param id the job id\n\n@return a job or <code>null</code> if not found", "note this string is used by hashCode", "Enter information into the hidden input field.\n\n@param input The input to enter into the hidden field.", "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag", "Returns an Organization that suits the Module or null if there is none\n\n@param dbModule DbModule\n@return DbOrganization", "Create a function that will create the style on demand. This is called later in a separate thread so\nany blocking calls will not block the parsing of the layer attributes.\n\n@param template the template for this map\n@param styleString a string that identifies a style.", "If first and second are Strings, then this returns an MutableInternedPair\nwhere the Strings have been interned, and if this Pair is serialized\nand then deserialized, first and second are interned upon\ndeserialization.\n\n@param p A pair of Strings\n@return MutableInternedPair, with same first and second as this.", "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list.", "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day" ]
private JsonArray formatBoxMetadataFilterRequest() { JsonArray boxMetadataFilterRequestArray = new JsonArray(); JsonObject boxMetadataFilter = new JsonObject() .add("templateKey", this.metadataFilter.getTemplateKey()) .add("scope", this.metadataFilter.getScope()) .add("filters", this.metadataFilter.getFiltersList()); boxMetadataFilterRequestArray.add(boxMetadataFilter); return boxMetadataFilterRequestArray; }
[ "Add BoxMetaDataFilter to the JsonArray boxMetadataFilterRequestArray.\n@param @param bmf accepts a filter that has templateKey, scope, and filters populated.\n@return JsonArray that is formated Json request" ]
[ "Renames this file.\n\n@param newName the new name of the file.", "Find and read the cache format entry in a metadata cache file.\n\n@return the content of the format entry, or {@code null} if none was found\n\n@throws IOException if there is a problem reading the file", "Invalidate the item in layout\n@param dataIndex data index", "Returns the list of module dependencies regarding the provided filters\n\n@param moduleId String\n@param filters FiltersHolder\n@return List<Dependency>", "Await the completion of all currently active operations.\n\n@param timeout the timeout\n@param unit the time unit\n@return {@code } false if the timeout was reached and there were still active operations\n@throws InterruptedException", "Checks to see if either the diagonal element or off diagonal element is zero. If one is\nthen it performs a split or pushes it off the matrix.\n\n@return True if there was a zero.", "Calculates the distance between two points\n\n@return distance between two points", "Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.", "Get a compatible constructor\n\n@param type\nClass to look for constructor in\n@param argumentType\nArgument type for constructor\n@return the compatible constructor or null if none found" ]
private static ModelNode createOperation(ServerIdentity identity) { // The server address final ModelNode address = new ModelNode(); address.add(ModelDescriptionConstants.HOST, identity.getHostName()); address.add(ModelDescriptionConstants.RUNNING_SERVER, identity.getServerName()); // final ModelNode operation = OPERATION.clone(); operation.get(ModelDescriptionConstants.OP_ADDR).set(address); return operation; }
[ "Transform the operation into something the proxy controller understands.\n\n@param identity the server identity\n@return the transformed operation" ]
[ "Orders first by word, then by lemma, then by tag.\n\n@param wordLemmaTag object to compare to\n@return result (positive if <code>this</code> is greater than\n<code>obj</code>, 0 if equal, negative otherwise)", "Make an individual Datum out of the data list info, focused at position\nloc.\n@param info A List of WordInfo objects\n@param loc The position in the info list to focus feature creation on\n@param featureFactory The factory that constructs features out of the item\n@return A Datum (BasicDatum) representing this data instance", "Returns an interval representing the addition of the\ngiven interval with this one.\n@param other interval to add to this one\n@return interval sum", "Ends the transition", "Called by determineHead and may be overridden in subclasses\nif special treatment is necessary for particular categories.", "Handles newlines by removing them and add new rows instead", "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", "Removes a tag from the resource.\n@param key the key of the tag to remove\n@return the next stage of the definition/update", "Inits the ws client.\n\n@param context the context\n@throws Exception the exception" ]
public static Iterable<BoxFileVersionRetention.Info> getRetentions( final BoxAPIConnection api, QueryFilter filter, String ... fields) { filter.addFields(fields); return new BoxResourceIterable<BoxFileVersionRetention.Info>(api, ALL_RETENTIONS_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), filter.toString()), DEFAULT_LIMIT) { @Override protected BoxFileVersionRetention.Info factory(JsonObject jsonObject) { BoxFileVersionRetention retention = new BoxFileVersionRetention(api, jsonObject.get("id").asString()); return retention.new Info(jsonObject); } }; }
[ "Retrieves all file version retentions matching given filters as an Iterable.\n@param api the API connection to be used by the resource.\n@param filter filters for the query stored in QueryFilter object.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions matching given filter." ]
[ "Returns the full record for a single story.\n\n@param story Globally unique identifier for the story.\n@return Request object", "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Returns true if this entity's primary key is not null, and for numeric\nfields, is non-zero.", "Gets the uuid from response.\n\n@param myResponse\nthe my response\n@return the uuid from response", "a specialized version of solve that avoid additional checks that are not needed.", "Returns the current revision.", "Generate random velocities for every particle. The direction is obtained by assuming\nthe position of a particle as a vector. This normalised vector is scaled by\nthe speed range.\n\n@return", "Use this API to fetch rnat6_nsip6_binding resources of given name .", "Checks whether this notification is from CleverTap.\n\n@param extras The payload from the GCM intent\n@return See {@link NotificationInfo}" ]
public static String getStatementUri(Statement statement) { int i = statement.getStatementId().indexOf('$') + 1; return PREFIX_WIKIDATA_STATEMENT + statement.getSubject().getId() + "-" + statement.getStatementId().substring(i); }
[ "Get the URI for the given statement.\n\n@param statement\nthe statement for which to create a URI\n@return the URI" ]
[ "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid.", "Checks the extents specifications and removes unnecessary entries.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Add the line to the content\n\n@param bufferedFileReader The file reader\n@param content The content of the file\n@param line The current read line\n@throws IOException", "This method is called to ensure that after a project file has been\nread, the cached unique ID values used to generate new unique IDs\nstart after the end of the existing set of unique IDs.", "Set the model used by the right table.\n\n@param model table model", "Sets the RDF serialization tasks based on the given string value.\n\n@param tasks\na space-free, comma-separated list of task names", "This function interprets the arguments of the main function. By doing\nthis it will set flags for the dump generation. See in the help text for\nmore specific information about the options.\n\n@param args\narray of arguments from the main function.\n@return list of {@link DumpProcessingOutputAction}", "Retrieves the monthly or yearly relative day of the week.\n\n@return day of the week", "If a custom CSS file has been specified, returns the path. Otherwise\nreturns null.\n@return A {@link File} pointing to the stylesheet, or null if no stylesheet\nis specified." ]
public double[] getSingularValues() { double ret[] = new double[W.numCols()]; for (int i = 0; i < ret.length; i++) { ret[i] = getSingleValue(i); } return ret; }
[ "Returns an array of all the singular values" ]
[ "Adds an item to the list box, specifying its direction and an initial\nvalue for the item.\n\n@param value the item's value, to be submitted if it is part of a\n{@link FormPanel}; cannot be <code>null</code>\n@param dir the item's direction\n@param text the text of the item to be added", "Adds a value to the list if does not already exists.\n\n@param list the list\n@param value value to add if not exists in the list", "Reads data from the SP file.\n\n@return Project File instance", "Obtains a Pax zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Pax zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Cancel request and worker on host.\n\n@param targetHosts\nthe target hosts", "This handler will be triggered when there's no search result", "Stops the current connection. No reconnecting will occur. Kills thread + cleanup.\nWaits for the loop to end", "Aggregates a list of templates specified by @Template", "The length of the region left to the completion offset that is part of the\nreplace region." ]
public static void validateRollbackState(final String patchID, final InstalledIdentity identity) throws PatchingException { final Set<String> validHistory = processRollbackState(patchID, identity); if (patchID != null && !validHistory.contains(patchID)) { throw PatchLogger.ROOT_LOGGER.patchNotFoundInHistory(patchID); } }
[ "Validate the consistency of patches to the point we rollback.\n\n@param patchID the patch id which gets rolled back\n@param identity the installed identity\n@throws PatchingException" ]
[ "Register operations associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Add the string representation of the given object to this sequence immediately. That is, all the trailing\nwhitespace of this sequence will be ignored and the string is appended directly after the last segment that\ncontains something besides whitespace. The given indentation will be prepended to each line except the first one\nif the object has a multi-line string representation.\n\n@param object\nthe to-be-appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression", "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\nelements are the second ones. For example, if the list of\nvalue-pair is [\"cluster.xml=file1\", \"stores.xml=file2\"], and the\npair delimiter is '=', we will then have the list of values in\nreturn: [\"cluster.xml\", \"file1\", \"stores.xml\", \"file2\"].", "Retrieve the currently cached value for the given document.", "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list of segments. Is never <code>null</code>.", "Return a copy of the new fragment and set the variable above.", "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "Use this API to add dbdbprofile resources." ]
public double[] getTenors(double moneyness, double maturity) { int maturityInMonths = (int) Math.round(maturity * 12); int[] tenorsInMonths = getTenors(convertMoneyness(moneyness), maturityInMonths); double[] tenors = new double[tenorsInMonths.length]; for(int index = 0; index < tenors.length; index++) { tenors[index] = convertTenor(maturityInMonths, tenorsInMonths[index]); } return tenors; }
[ "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 the first product found in the vector of calibration products\nwhich matches the given symbol, where symbol is the String set in\nthe calibrationSpecs.\n\n@param symbol A given symbol string.\n@return The product associated with that symbol.", "Generate a PageMetadata object for the page represented by the specified pagination token.\n\n@param paginationToken opaque pagination token\n@param initialParameters the initial view query parameters (i.e. for the page 1 request).\n@param <K> the view key type\n@param <V> the view value type\n@return PageMetadata object for the given page", "Verify that all OGM custom externalizers are present.\nN.B. even if some Externalizer is only needed in specific configuration,\nit is not safe to start a CacheManager without one as the same CacheManager\nmight be used, or have been used in the past, to store data using a different\nconfiguration.\n\n@see ExternalizerIds\n@see AdvancedExternalizer\n@param externalCacheManager the provided CacheManager to validate", "add various getAt and setAt methods for primitive arrays\n@param receiver the receiver class\n@param name the name of the method\n@param args the argument classes", "Use this API to fetch the statistics of all nsacl6_stats resources that are configured on netscaler.", "Sets the highlight strength for the InnerPaddingOutline.\n\n@param _highlightStrength The highlighting value for the outline.", "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 kill systemsession resources.", "Add a bundle.\n\n@param moduleName the module name\n@param slot the module slot\n@param newHash the new hash of the added content\n@return the builder" ]
public static base_response delete(nitro_service client, String fipskeyname) throws Exception { sslfipskey deleteresource = new sslfipskey(); deleteresource.fipskeyname = fipskeyname; return deleteresource.delete_resource(client); }
[ "Use this API to delete sslfipskey of given name." ]
[ "Use this method to enable device network-related information tracking, including IP address.\nThis reporting is disabled by default. To re-disable tracking call this method with enabled set to false.\n\n@param value boolean Whether device network info reporting should be enabled/disabled.", "Add the given string to this sequence. The given indentation will be prepended to\neach line except the first one if the object has a multi-line string representation.\n\n@param str\nthe appended string.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.\n@since 2.11", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific currency attributes to the default values\nfor the new locale.\n\n@param properties project properties\n@param locale new locale", "Use this API to fetch appfwprofile_excluderescontenttype_binding resources of given name .", "Returns the root path for this source file, based upon the package name.\n\nFor example, if path is \"/project/src/main/java/org/example/Foo.java\" and the package is \"org.example\", then this\nshould return \"/project/src/main/java\".\n\nReturns null if the folder structure does not match the package name.", "This may cost twice what it would in the original Map because we have to find\nthe original value for this key.\n\n@param key key with which the specified value is to be associated.\n@param value value to be associated with the specified key.\n@return previous value associated with specified key, or <tt>null</tt>\nif there was no mapping for key. A <tt>null</tt> return can\nalso indicate that the map previously associated <tt>null</tt>\nwith the specified key, if the implementation supports\n<tt>null</tt> values.", "Use this API to Reboot reboot.", "Randomly generates matrix with the specified number of matrix elements filled with values from min to max.\n\n@param numRows Number of rows\n@param numCols Number of columns\n@param nz_total Total number of non-zero elements in the matrix\n@param min Minimum value\n@param max maximum value\n@param rand Random number generated\n@return Randomly generated matrix", "Acquires a read lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait." ]
public static XMLStreamException missingRequiredElement(final XMLExtendedStreamReader reader, final Set<?> required) { final StringBuilder b = new StringBuilder(); Iterator<?> iterator = required.iterator(); while (iterator.hasNext()) { final Object o = iterator.next(); b.append(o.toString()); if (iterator.hasNext()) { b.append(", "); } } final XMLStreamException ex = ControllerLogger.ROOT_LOGGER.missingRequiredElements(b, reader.getLocation()); Set<String> set = new HashSet<>(); for (Object o : required) { String toString = o.toString(); set.add(toString); } return new XMLStreamValidationException(ex.getMessage(), ValidationError.from(ex, ErrorType.REQUIRED_ELEMENTS_MISSING) .element(reader.getName()) .alternatives(set), ex); }
[ "Get an exception reporting a missing, required XML child element.\n@param reader the stream reader\n@param required a set of enums whose toString method returns the\nattribute name\n@return the exception" ]
[ "Removes a value from the list.\n\n@param list the list\n@param value value to remove", "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance.", "Use this API to enable snmpalarm of given name.", "Convert gallery name to not found error key.\n@param gallery gallery name for example \"downloadgallery\"\n@return key as string \"ERR_REASON_NO_DOWNLOADGALLERY_0\"", "Copies all elements from input into output which are &gt; tol.\n@param input (Input) input matrix. Not modified.\n@param output (Output) Output matrix. Modified and shaped to match input.\n@param tol Tolerance for defining zero", "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.", "Returns all the deployment runtime names associated with an overlay.\n\n@param context the current OperationContext.\n@param overlayAddress the address for the averlay.\n@return all the deployment runtime names associated with an overlay.", "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 the list of deleted contents." ]
protected String findPath(String start, String end) { if (start.equals(end)) { return start; } else { return findPath(start, parent.get(end)) + " -> " + end; } }
[ "Find the path.\n\n@param start key of first node in the path\n@param end key of last node in the path\n@return string containing the nodes keys in the path separated by arrow symbol" ]
[ "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", "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "Distributed process finish.\n\n@param rb the rb\n@param mtasFields the mtas fields\n@throws IOException Signals that an I/O exception has occurred.", "Provisions a new app user in an enterprise using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@return the created user's info.", "Handles the response of the SendData request.\n@param incomingMessage the response message to process.", "Lift a Java Func2 to a Scala Function2\n\n@param f the function to lift\n\n@returns the Scala function", "Returns list of files matches specified regex in specified directories\n\n@param regex to match file names\n@param directories to find\n@return list of files matches specified regex in specified directories", "Returns the Java command to use.\n\n@param javaHome the Java Home, if {@code null} an attempt to determine the command will be done\n\n@return the Java executable command", "Returns a representation of the date from the value attributes as ISO\n8601 encoding.\n\n@param value\n@return ISO 8601 value (String)" ]
public static String fixLanguageCodeIfDeprecated(String wikimediaLanguageCode) { if (DEPRECATED_LANGUAGE_CODES.containsKey(wikimediaLanguageCode)) { return DEPRECATED_LANGUAGE_CODES.get(wikimediaLanguageCode); } else { return wikimediaLanguageCode; } }
[ "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original language code" ]
[ "Loads the configuration from file \"OBJ.properties\". If the system\nproperty \"OJB.properties\" is set, then the configuration in that file is\nloaded. Otherwise, the file \"OJB.properties\" is tried. If that is also\nunsuccessful, then the configuration is filled with default values.", "Check if the provided date or any date after it are part of the series.\n@param nextDate the current date to check.\n@param previousOccurrences the number of events of the series that took place before the date to check.\n@return <code>true</code> if more dates (including the provided one) could be in the series, <code>false</code> otherwise.", "Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver\nretrieved using the default server integration classloader.\n\n@return this class instance", "Send the started notification", "This will create a line in the SDEF file for each calendar\nif there are more than 9 calendars, you'll have a big error,\nas USACE numbers them 0-9.\n\n@param records list of ProjectCalendar instances", "Finds the column with the largest normal and makes that the first column\n\n@param j Current column being inspected", "Perform a post-boot scan to remove any deployments added during boot that failed to deploy properly.\nThis method isn't private solely to allow a unit test in the same package to call it.", "Mark the top level deployment as being a JPA deployment. If the deployment is not a top level deployment the parent is\nmarked instead", "Creates a new empty HTML document tree.\n@throws ParserConfigurationException" ]
public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) { Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices); Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance); }
[ "Initialize the container for the current application deployment\n\n@param deploymentManager\n@param deploymentServices" ]
[ "Returns the configured fields of the current field configuration.\n\n@return the configured fields of the current field configuration", "Setter for blob handle value.\n\n@param txn enclosing transaction\n@param localId entity local id.\n@param blobId blob id\n@param value property value.", "This is a convenience method which reads the first project\nfrom the named MPD file using the JDBC-ODBC bridge driver.\n\n@param accessDatabaseFileName access database file name\n@return ProjectFile instance\n@throws MPXJException", "build the Join-Information if a super reference exists\n\n@param left\n@param cld\n@param name", "Sets the value for the API's \"props\" parameter based on the current\nsettings.\n\n@param properties\ncurrent setting of parameters", "Use this API to add vpnclientlessaccesspolicy.", "Helper xml end tag writer\n\n@param value the output stream to use in writing", "Emit a event object with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(EventObject, Object...)", "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object." ]
public SimpleFeatureSource getFeatureSource() throws LayerException { try { if (dataStore instanceof WFSDataStore) { return dataStore.getFeatureSource(featureSourceName.replace(":", "_")); } else { return dataStore.getFeatureSource(featureSourceName); } } catch (IOException e) { throw new LayerException(e, ExceptionCode.FEATURE_MODEL_PROBLEM, "Cannot find feature source " + featureSourceName); } catch (NullPointerException e) { throw new LayerException(e, ExceptionCode.FEATURE_MODEL_PROBLEM, "Cannot find feature source " + featureSourceName); } }
[ "Retrieve the FeatureSource object from the data store.\n\n@return An OpenGIS FeatureSource object;\n@throws LayerException\noops" ]
[ "Goes through the first buckets, picking out candidate records and\ntallying up their scores.\n@return the index of the first bucket we did not process", "Main entry point to read criteria data.\n\n@param properties project properties\n@param data criteria data block\n@param dataOffset offset of the data start within the larger data block\n@param entryOffset offset of start node for walking the tree\n@param prompts optional list to hold prompts\n@param fields optional list of hold fields\n@param criteriaType optional array representing criteria types\n@return first node of the criteria", "First looks for zeros and then performs the implicit single step in the QR Algorithm.", "Returns the later of two dates, handling null values. A non-null Date\nis always considered to be later than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date latest date", "Stops the background data synchronization thread.", "Retrieve timephased baseline work. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present", "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", "Gets a property with a default value.\n@param key\nThe key string.\n@param defaultValue\nThe default value.\n@return The property string.", "This method writes data for a single calendar to a Planner file.\n\n@param mpxjCalendar MPXJ calendar instance\n@param plannerCalendar Planner calendar instance\n@throws JAXBException on xml creation errors" ]
public String getString(Integer type) { String result = null; byte[] item = m_map.get(type); if (item != null) { result = m_data.getString(getOffset(item)); } return (result); }
[ "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value" ]
[ "Creates a file\n\n@param folder File\n@param fileName String\n@throws IOException", "Initialize the pattern controllers.", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result.", "Notifies that an existing content item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Applies this patch to a JSON value.\n\n@param node the value to apply the patch to\n@return the patched JSON value\n@throws JsonPatchException failed to apply patch\n@throws NullPointerException input is null", "Creates a ServiceFuture from an Completable object and a callback.\n\n@param completable the completable to create from\n@param callback the callback to call when event happen\n@return the created ServiceFuture", "The period of time to ban a node that gives an error on an operation.\n\n@param nodeBannagePeriod The period of time to ban the node\n@param unit The time unit of the given value\n\n@deprecated Use {@link #setFailureDetectorBannagePeriod(long)} instead", "Get the URL for the user's profile.\n\n@param userId\nThe user ID\n@return The URL\n@throws FlickrException", "Compiles the allowable actions for a file or folder.\n\n@param cms the current CMS context\n@param file the resource for which we want the allowable actions\n\n@return the allowable actions for the given resource" ]
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()); buf.append(" ON "); join.appendJoinEqualities(buf); appendTableWithJoins(join.right, where, buf); }
[ "Append Join for SQL92 Syntax without parentheses" ]
[ "This adds to the feature name the name of classes that are other than\nthe current class that are involved in the clique. In the CMM, these\nother classes become part of the conditioning feature, and only the\nclass of the current position is being predicted.\n\n@return A collection of features with extra class information put\ninto the feature name.", "Retrieve an activity status.\n\n@param mpxj MPXJ Task instance\n@return activity status", "Use this API to fetch all the systemcore resources that are configured on netscaler.", "Use this API to fetch appflowpolicy_appflowpolicylabel_binding resources of given name .", "Start a server.\n\n@return the http server\n@throws Exception the exception", "Gets the metrics as a map whose keys are the metric name and whose values are the metric values.\n\n@return map", "Return the value from the field in the object that is defined by this FieldType. If the field is a foreign object\nthen the ID of the field is returned instead.", "Retrieves state and metrics information for individual channel.\n\n@param name channel name\n@return channel information", "Creates an object instance from the Scala class name\n\n@param className the Scala class name\n@return An Object instance" ]
public V put(K key, V value) { final int hash; int index; if (key == null) { hash = 0; index = indexOfNull(); } else { hash = key.hashCode(); index = indexOf(key, hash); } if (index >= 0) { index = (index<<1) + 1; final V old = (V)mArray[index]; mArray[index] = value; return old; } index = ~index; if (mSize >= mHashes.length) { final int n = mSize >= (BASE_SIZE*2) ? (mSize+(mSize>>1)) : (mSize >= BASE_SIZE ? (BASE_SIZE*2) : BASE_SIZE); final int[] ohashes = mHashes; final Object[] oarray = mArray; allocArrays(n); if (mHashes.length > 0) { System.arraycopy(ohashes, 0, mHashes, 0, ohashes.length); System.arraycopy(oarray, 0, mArray, 0, oarray.length); } freeArrays(ohashes, oarray, mSize); } if (index < mSize) { System.arraycopy(mHashes, index, mHashes, index + 1, mSize - index); System.arraycopy(mArray, index << 1, mArray, (index + 1) << 1, (mSize - index) << 1); } mHashes[index] = hash; mArray[index<<1] = key; mArray[(index<<1)+1] = value; mSize++; return null; }
[ "Add a new value to the array map.\n@param key The key under which to store the value. <b>Must not be null.</b> If\nthis key already exists in the array, its value will be replaced.\n@param value The value to store for the given key.\n@return Returns the old value that was stored for the given key, or null if there\nwas no such key." ]
[ "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "The user can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the invited user.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Returns whether or not the host editor service is available\n\n@return\n@throws Exception", "Use this API to fetch all the cacheobject resources that are configured on netscaler.", "Only meant to be called once\n\n@throws Exception exception", "Convert moneyness given as difference to par swap rate to moneyness in bp.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness as offset.\n@return Moneyness in bp.", "Create a unique signature for this shader.\nThe signature for simple shaders is just the class name.\nFor the more complex shaders generated by GVRShaderTemplate\nthe signature includes information about the vertex attributes,\nuniforms, textures and lights used by the shader variant.\n\n@param defined\nnames to be defined for this shader\n@return string signature for shader\n@see GVRShaderTemplate", "Returns the Field for a given parent class and a dot-separated path of\nfield names.\n\n@param clazz\nParent class.\n@param path\nPath to the desired field.", "Create a new file but fail if it already exists. The check for\nexistance of the file and it's creation are an atomic operation with\nrespect to other filesystem activities." ]
protected void createBulge( int x1 , double p , boolean byAngle ) { double a11 = diag[x1]; double a22 = diag[x1+1]; double a12 = off[x1]; double a23 = off[x1+1]; if( byAngle ) { c = Math.cos(p); s = Math.sin(p); c2 = c*c; s2 = s*s; cs = c*s; } else { computeRotation(a11-p, a12); } // multiply the rotator on the top left. diag[x1] = c2*a11 + 2.0*cs*a12 + s2*a22; diag[x1+1] = c2*a22 - 2.0*cs*a12 + s2*a11; off[x1] = a12*(c2-s2) + cs*(a22 - a11); off[x1+1] = c*a23; bulge = s*a23; if( Q != null ) updateQ(x1,x1+1,c,s); }
[ "Performs a similar transform on A-pI" ]
[ "Find the path to the first association in the property path.\n\n@param targetTypeName the entity with the property\n@param pathWithoutAlias the path to the property WITHOUT the alias\n@return the path to the first association or {@code null} if there isn't an association in the property path", "Obtain parameters from query\n\n@param query query to scan\n@return Map of parameters", "If supported by the WMS server, a parameter \"angle\" can be set on \"customParams\" or \"mergeableParams\".\nIn this case the rotation will be done natively by the WMS.", "try to find the first none null table name for the given class-descriptor.\nIf cld has extent classes, all of these cld's searched for the first none null\ntable name.", "This method must be called on the stop of the component. Stop the directory monitor and unregister all the\ndeclarations.", "If the String argument defaultLocatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the\ncorresponding strategy is selected and set as default strategy, else both the selected strategy and the default strategy remain\nunchanged.\n@param defaultLocatorSelectionStrategy", "Remove all scene objects.", "Check type.\n\n@param type the type\n@return the boolean", "Attempts to return the token from cache. If this is not possible because it is expired or was\nnever assigned, a new token is requested and parallel requests will block on retrieving a new\ntoken. As such no guarantee of maximum latency is provided.\n\nTo avoid blocking the token is refreshed before it's expiration, while parallel requests\ncontinue to use the old token." ]
public final PJsonObject getJSONObject(final int i) { JSONObject val = this.array.optJSONObject(i); final String context = "[" + i + "]"; if (val == null) { throw new ObjectMissingException(this, context); } return new PJsonObject(this, val, context); }
[ "Get the element at the index as a json object.\n\n@param i the index of the object to access" ]
[ "Get the first non-white Y point\n@param img Image in memory\n@return the trimmed y start", "Returns the coupon payment of the period with the given index. The analytic model is needed in case of floating bonds.\n\n@param periodIndex The index of the period of interest.\n@param model The model under which the product is valued.\n@return The value of the coupon payment in the given period.", "Get the number of views, comments and favorites on a photo for a given date.\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(Required) The id of the photo to get stats for.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotoStats.htm\"", "Implements get by delegating to getAll.", "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.", "Updates LetsEncrypt configuration.", "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", "Add the dependencies if the deployment contains a service activator loader entry.\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "poll the response queue for response\n\n@param timeout timeout amount\n@param timeUnit timeUnit of timeout\n@return same result of BlockQueue.poll(long, TimeUnit)\n@throws InterruptedException" ]
public static boolean inArea(Point point, Rect area, float offsetRatio) { int offset = (int) (area.width() * offsetRatio); return point.x >= area.left - offset && point.x <= area.right + offset && point.y >= area.top - offset && point.y <= area.bottom + offset; }
[ "judge if an point in the area or not\n\n@param point\n@param area\n@param offsetRatio\n@return" ]
[ "The user making this call must be an admin in the workspace.\nReturns an empty data record.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Add nodes to the workers list\n\n@param nodeIds list of node ids.", "Use this API to fetch authenticationtacacspolicy_authenticationvserver_binding resources of given name .", "Send a request to another handler internal to the server, getting back the response body and response code.\n\n@param request request to send to another handler.\n@return {@link InternalHttpResponse} containing the response code and body.", "Retrieve the currently cached value for the given document.", "Returns the name of the directory where the dumpfile of the given type\nand date should be stored.\n\n@param dumpContentType\nthe type of the dump\n@param dateStamp\nthe date of the dump in format YYYYMMDD\n@return the local directory name for the dumpfile", "create partitions in the broker\n\n@param topic topic name\n@param partitionNum partition numbers\n@param enlarge enlarge partition number if broker configuration has\nsetted\n@return partition number in the broker\n@throws IOException if an I/O error occurs", "Calculates the bounds of the non-transparent parts of the given image.\n@param p the image\n@return the bounds of the non-transparent area", "Start the timer." ]
public static Optional<Field> getField(Class<?> type, final String fieldName) { Optional<Field> field = Iterables.tryFind(newArrayList(type.getDeclaredFields()), havingFieldName(fieldName)); if (!field.isPresent() && type.getSuperclass() != null){ field = getField(type.getSuperclass(), fieldName); } return field; }
[ "Finds the first Field with given field name in the Class and in its super classes.\n\n@param type The Class type\n@param fieldName The field name to get\n@return an {@code Optional}. Use isPresent() to find out if the field name was found." ]
[ "Sets the specified short 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", "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder", "Assemble the configuration section of the URL.", "Specifies the ARM resource id of the user assigned managed service identity resource that\nshould be used to retrieve the access token.\n\n@param identityId the ARM resource id of the user assigned identity resource\n@return MSICredentials", "Start the timer.", "Use this API to unset the properties of csparameter resource.\nProperties that need to be unset are specified in args array.", "Gets the JVM memory usage.\n\n@return the JVM memory usage", "Submit a command to the server.\n\n@param command The CLI command\n@return The DMR response as a ModelNode\n@throws CommandFormatException\n@throws IOException", "Sets all padding to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining" ]
public static void endRequest() { final List<RequestScopedItem> result = CACHE.get(); if (result != null) { CACHE.remove(); for (final RequestScopedItem item : result) { item.invalidate(); } } }
[ "ends the request and clears the cache. This can be called before the request is over,\nin which case the cache will be unavailable for the rest of the request." ]
[ "Infer the type of and create a new output variable using the results from the right side of the equation.\nIf the type is already known just return that.", "Use this API to update vlan.", "Get the next available ordinal for a method ID\n\n@param methodId ID of method\n@return value of next ordinal\n@throws Exception exception", "Generates JUnit 4 RunListener instances for any user defined RunListeners", "Merges information from the resource root into this resource root\n\n@param additionalResourceRoot The root to merge", "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list", "Generate a unique ID across the cluster\n@return generated ID", "Add an additional compilation unit into the loop\n-> build compilation unit declarations, their bindings and record their results.", "Handle http Request.\n\n@param request HttpRequest to be handled.\n@param responder HttpResponder to write the response.\n@param groupValues Values needed for the invocation." ]
public static<T> Vendor<T> vendor(Func0<T> f) { return j.vendor(f); }
[ "Create a Vendor from a Func0" ]
[ "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly", "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Returns a string that represents a valid Solr query range.\n\n@param from Lower bound of the query range.\n@param to Upper bound of the query range.\n@return String that represents a Solr query range.", "Inserts a child task prior to a given sibling task.\n\n@param child new child task\n@param previousSibling sibling task", "Returns the Java executable command.\n\n@param javaHome the java home directory or {@code null} to use the default\n\n@return the java command to use", "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", "Read an optional string value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the string value in the provided JSON object.\n@param defaultValue the default value, to be returned if the string can not be read from the JSON object.\n@return the string or the default value if reading the string fails.", "copy all fields from the \"from\" object to the \"to\" object.\n\n@param from source object\n@param to from's clone\n@param fields fields to be populated\n@param accessible 'true' if all 'fields' have been made accessible during\ntraversal", "Facade method for operating the Shell.\n\nRun the obtained Shell with commandLoop().\n\n@see org.gearvrf.debug.cli.Shell#Shell(org.gearvrf.debug.cli.Shell.Settings, org.gearvrf.debug.cli.CommandTable, java.util.List)\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Command handler\n@return Shell that can be either further customized or run directly by calling commandLoop()." ]
public static <T extends EObject> IScope scopeFor(Iterable<? extends T> elements, final Function<T, QualifiedName> nameComputation, IScope outer) { return new SimpleScope(outer,scopedElementsFor(elements, nameComputation)); }
[ "creates a scope using the passed function to compute the names and sets the passed scope as the parent scope" ]
[ "Sets the default pattern values dependent on the provided start date.\n@param startDate the date, the default values are determined with.", "Creates a new row with content with given cell context and a normal row style.\n@param content the content for the row, each member of the array represents the content for a cell in the row, must not be null but can contain null members\n@return a new row with content\n@throws {@link NullPointerException} if content was null", "perform the actual matching", "Print the class's operations m", "Return an input stream to read the data from the named table.\n\n@param name table name\n@return InputStream instance\n@throws IOException", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nmetadata updates will use available caches only\n\n@return the metadata found, if any", "Given a file name and read-only storage format, tells whether the file\nname format is correct\n\n@param fileName The name of the file\n@param format The RO format\n@return true if file format is correct, else false", "Use this API to fetch all the responderpolicy resources that are configured on netscaler.", "Returns the master mode's editor state for editing a bundle with descriptor.\n@return the master mode's editor state for editing a bundle with descriptor." ]
public AT_Row setTextAlignment(TextAlignment textAlignment){ if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setTextAlignment(textAlignment); } } return this; }
[ "Sets the text alignment for all cells in the row.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null" ]
[ "Use this API to fetch dnsnsecrec resources of given names .", "A specific, existing task can be deleted by making a DELETE request on the\nURL for that task. Deleted tasks go into the \"trash\" of the user making\nthe delete request. Tasks can be recovered from the trash within a period\nof 30 days; afterward they are completely removed from the system.\n\nReturns an empty data record.\n\n@param task The task to delete.\n@return Request object", "Overridden to add transform.", "Create a WebDriver backed EmbeddedBrowser.\n\n@param driver The WebDriver to use.\n@param filterAttributes the attributes to be filtered from DOM.\n@param crawlWaitReload the period to wait after a reload.\n@param crawlWaitEvent the period to wait after an event is fired.\n@return The EmbeddedBrowser.", "Get parent digest of an image.\n\n@param digest\n@param host\n@return", "Runs Crawljax with the given configuration.\n\n@return The {@link CrawlSession} once the Crawl is done.", "This method is a sync parse to the JSON stream of atlas information.\n\n@return List of atlas information.", "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text", "Verifies a provided signature.\n\n@param key\nfor which signature key\n@param actualAlgorithm\ncurrent signature algorithm\n@param actualSignature\ncurrent signature\n@param webHookPayload\nfor signing\n@param deliveryTimestamp\nfor signing\n@return true if verification passed" ]
private void setRawDirection(SwipyRefreshLayoutDirection direction) { if (mDirection == direction) { return; } mDirection = direction; switch (mDirection) { case BOTTOM: mCurrentTargetOffsetTop = mOriginalOffsetTop = getMeasuredHeight(); break; case TOP: default: mCurrentTargetOffsetTop = mOriginalOffsetTop = -mCircleView.getMeasuredHeight(); break; } }
[ "only TOP or Bottom" ]
[ "Returns a flag, indicating if search should be performed using a wildcard if the empty query is given.\n@return A flag, indicating if search should be performed using a wildcard if the empty query is given.", "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "Use this API to add autoscaleprofile.", "Helper method for formatting connection establishment messages.\n\n@param connectionName\nThe name of the connection\n@param host\nThe remote host\n@param connectionReason\nThe reason for establishing the connection\n@return A formatted message in the format:\n\"[&lt;connectionName&gt;] remote host[&lt;host&gt;] &lt;connectionReason&gt;\"\n<br/>\ne.g. [con1] remote host[123.123.123.123] connection to ECMG.", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings", "Use this API to fetch all the inatparam resources that are configured on netscaler.", "Return the AnnotationNode for the named annotation, or else null.\nSupports Groovy 1.5 and Groovy 1.6.\n@param node - the AnnotatedNode\n@param name - the name of the annotation\n@return the AnnotationNode or else null", "Internal method used to retrieve a integer from an\nembedded data block.\n\n@param blocks list of data blocks\n@return int value", "Copied from AbstractEntityPersister" ]
private void init_jdbcTypes() throws SQLException { ReportQuery q = (ReportQuery) getQueryObject().getQuery(); m_jdbcTypes = new int[m_attributeCount]; // try to get jdbcTypes from Query if (q.getJdbcTypes() != null) { m_jdbcTypes = q.getJdbcTypes(); } else { ResultSetMetaData rsMetaData = getRsAndStmt().m_rs.getMetaData(); for (int i = 0; i < m_attributeCount; i++) { m_jdbcTypes[i] = rsMetaData.getColumnType(i + 1); } } }
[ "get the jdbcTypes from the Query or the ResultSet if not available from the Query\n@throws SQLException" ]
[ "Print a constraint type.\n\n@param value ConstraintType instance\n@return constraint type value", "Adds a variable to the end of the token list\n@param variable Variable which is to be added\n@return The new Token created around variable", "Access an attribute, hereby using the class name as key.\n\n@param type the type, not {@code null}\n@return the type attribute value, or {@code null}.", "Returns the indices that would sort an array.\n\n@param array Array.\n@param ascending Ascending order.\n@return Array of indices.", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.\nThis uses nspbr6_args which is a way to provide additional arguments while fetching the resources.", "Checks to see if every value in the matrix is the specified value.\n\n@param mat The matrix being tested. Not modified.\n@param val Checks to see if every element in the matrix has this value.\n@param tol True if all the elements are within this tolerance.\n@return true if the test passes.", "Retrieve the Activity ID value for this task.\n@param task Task instance\n@return Activity ID value", "Helper method to synchronously invoke a callback\n\n@param call", "Remove duplicate Strings from the given array. Also sorts the array, as\nit uses a TreeSet.\n\n@param array the String array\n@return an array without duplicates, in natural sort order" ]
public static Type boxedType(Type type) { if (type instanceof Class<?>) { return boxedClass((Class<?>) type); } else { return type; } }
[ "Gets the boxed type of a class\n\n@param type The type\n@return The boxed type" ]
[ "Adds special accessors for private constants so that inner classes can retrieve them.", "Simple context menu handler for multi-select tables.\n\n@param table the table\n@param menu the table's context menu\n@param event the click event\n@param entries the context menu entries", "Print a time value.\n\n@param value time value\n@return time value", "Returns the accrued interest of the bond for a given date.\n\n@param date The date of interest.\n@param model The model under which the product is valued.\n@return The accrued interest.", "Returns a simple web page where certs can be downloaded. This is meant for mobile device setup.\n@return\n@throws Exception", "Performs a put operation with the specified composite request object\n\n@param requestWrapper A composite request object containing the key and\nvalue\n@return Version of the value for the successful put", "Creates metadata on this file in the specified template type.\n\n@param typeName the metadata template type name.\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Use this API to unset the properties of nsspparams resource.\nProperties that need to be unset are specified in args array.", "Fall-back for types that are not handled by a subclasse's dispatch method." ]
public ColumnBuilder addFieldProperty(String propertyName, String value) { fieldProperties.put(propertyName, value); return this; }
[ "When the JRField needs properties, use this method.\n@param propertyName\n@param value\n@return" ]
[ "Acquire transaction with a single permit in a thread. Transactions are acquired reentrantly, i.e.\nwith respect to transactions already acquired in the thread.\n\n@return the number of acquired permits, identically equal to 1.", "Add tables to the tree.\n\n@param parentNode parent tree node\n@param file tables container", "Checks if the path leads to an embedded property or association.\n\n@param targetTypeName the entity with the property\n@param namesWithoutAlias the path to the property with all the aliases resolved\n@return {@code true} if the property is an embedded, {@code false} otherwise.", "Set up the services to create a channel listener and operation handler service.\n@param serviceTarget the service target to install the services into\n@param endpointName the endpoint name to install the services into\n@param channelName the name of the channel\n@param executorServiceName service name of the executor service to use in the operation handler service\n@param scheduledExecutorServiceName service name of the scheduled executor service to use in the operation handler service", "Creates a window visually showing the matrix's state. Block means an element is zero.\nRed positive and blue negative. More intense the color larger the element's absolute value\nis.\n\n@param A A matrix.\n@param title Name of the window.", "Called when the scene object gets a new parent.\n\n@param parent New parent of this scene object.", "Use this API to delete dnsaaaarec resources of given names.", "Decode PKWare Compression Library stream.\n\nFormat notes:\n\n- First byte is 0 if literals are uncoded or 1 if they are coded. Second\nbyte is 4, 5, or 6 for the number of extra bits in the distance code.\nThis is the base-2 logarithm of the dictionary size minus six.\n\n- Compressed data is a combination of literals and length/distance pairs\nterminated by an end code. Literals are either Huffman coded or\nuncoded bytes. A length/distance pair is a coded length followed by a\ncoded distance to represent a string that occurs earlier in the\nuncompressed data that occurs again at the current location.\n\n- A bit preceding a literal or length/distance pair indicates which comes\nnext, 0 for literals, 1 for length/distance.\n\n- If literals are uncoded, then the next eight bits are the literal, in the\nnormal bit order in the stream, i.e. no bit-reversal is needed. Similarly,\nno bit reversal is needed for either the length extra bits or the distance\nextra bits.\n\n- Literal bytes are simply written to the output. A length/distance pair is\nan instruction to copy previously uncompressed bytes to the output. The\ncopy is from distance bytes back in the output stream, copying for length\nbytes.\n\n- Distances pointing before the beginning of the output data are not\npermitted.\n\n- Overlapped copies, where the length is greater than the distance, are\nallowed and common. For example, a distance of one and a length of 518\nsimply copies the last byte 518 times. A distance of four and a length of\ntwelve copies the last four bytes three times. A simple forward copy\nignoring whether the length is greater than the distance or not implements\nthis correctly.\n\n@param input InputStream instance\n@param output OutputStream instance\n@return status code", "Writes this JAR to an output stream, and closes the stream." ]
public static appfwsignatures get(nitro_service service) throws Exception{ appfwsignatures obj = new appfwsignatures(); appfwsignatures[] response = (appfwsignatures[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the appfwsignatures resources that are configured on netscaler." ]
[ "Convenience method for getting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field whose value to return.", "Closes all the producers in the pool", "Fixed length fancy formatting for doubles. If possible decimal notation is used. If all the significant digits\ncan't be shown then it will switch to exponential notation. If not all the space is needed then it will\nbe filled in to ensure it has the specified length.\n\n@param value value being formatted\n@param format default format before exponential\n@param length Maximum number of characters it can take.\n@param significant Number of significant decimal digits to show at a minimum.\n@return formatted string", "Remove multiple fields from the map\n@param fields the fields to remove\n@return the number of fields removed", "use parseJsonResponse instead", "Use this API to add nsip6 resources.", "Save page to log\n\n@return address of this page after save", "Update list of sorted services by copying it from the array and making it unmodifiable.", "Creates and start an engine representing the node named as the given parameter.\n\n@param name\nname of the node, as present in the configuration (case sensitive)\n@param handler\ncan be null. A set of callbacks hooked on different engine life cycle events.\n@return an object allowing to stop the engine." ]
public static String changeFileNameSuffixTo(String filename, String suffix) { int dotPos = filename.lastIndexOf('.'); if (dotPos != -1) { return filename.substring(0, dotPos + 1) + suffix; } else { // the string has no suffix return filename; } }
[ "Changes the given filenames suffix from the current suffix to the provided suffix.\n\n<b>Directly exposed for JSP EL</b>, not through {@link org.opencms.jsp.util.CmsJspElFunctions}.<p>\n\n@param filename the filename to be changed\n@param suffix the new suffix of the file\n\n@return the filename with the replaced suffix" ]
[ "Use this API to fetch snmpalarm resource of given name .", "Returns all ApplicationProjectModels.", "Use this API to apply nspbr6 resources.", "Append the WHERE part of the statement to the StringBuilder.", "Retrieve list of assignment extended attributes.\n\n@return list of extended attributes", "Update the server group's name\n\n@param serverGroupId ID of server group\n@param name new name of server group\n@return updated ServerGroup", "Check the version to assure it is allowed.\n\n@param pluginName plugin name which needs the dependency\n@param dependency dependency which needs to be verified\n@param requestedVersion requested/minimum version\n@param availableVersion available version\n@return version check problem or empty string when all is fine", "Use this API to fetch ipset_nsip_binding resources of given name .", "Create a clone of this LevenbergMarquardt optimizer with a new vector for the\ntarget values and weights.\n\nThe clone will use the same objective function than this implementation,\ni.e., the implementation of {@link #setValues(RandomVariable[], RandomVariable[])} and\nthat of {@link #setDerivatives(RandomVariable[], RandomVariable[][])} is reused.\n\nThe initial values of the cloned optimizer will either be the original\ninitial values of this object or the best parameters obtained by this\noptimizer, the latter is used only if this optimized signals a {@link #done()}.\n\n@param newTargetVaues New list of target values.\n@param newWeights New list of weights.\n@param isUseBestParametersAsInitialParameters If true and this optimizer is done(), then the clone will use this.{@link #getBestFitParameters()} as initial parameters.\n@return A new LevenbergMarquardt optimizer, cloning this one except modified target values and weights.\n@throws CloneNotSupportedException Thrown if this optimizer cannot be cloned." ]
public PhotoList<Photo> getWithGeoData(Date minUploadDate, Date maxUploadDate, Date minTakenDate, Date maxTakenDate, int privacyFilter, String sort, Set<String> extras, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_WITH_GEO_DATA); if (minUploadDate != null) { parameters.put("min_upload_date", Long.toString(minUploadDate.getTime() / 1000L)); } if (maxUploadDate != null) { parameters.put("max_upload_date", Long.toString(maxUploadDate.getTime() / 1000L)); } if (minTakenDate != null) { parameters.put("min_taken_date", Long.toString(minTakenDate.getTime() / 1000L)); } if (maxTakenDate != null) { parameters.put("max_taken_date", Long.toString(maxTakenDate.getTime() / 1000L)); } if (privacyFilter > 0) { parameters.put("privacy_filter", Integer.toString(privacyFilter)); } if (sort != null) { parameters.put("sort", sort); } if (extras != null && !extras.isEmpty()) { parameters.put("extras", StringUtilities.join(extras, ",")); } if (perPage > 0) { parameters.put("per_page", Integer.toString(perPage)); } if (page > 0) { parameters.put("page", Integer.toString(page)); } Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element photosElement = response.getPayload(); PhotoList<Photo> photos = PhotoUtils.createPhotoList(photosElement); return photos; }
[ "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" ]
[ "Set RGB output range.\n\n@param outRGB Range.", "Assigned action code", "Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL.\n\n@param cms the CmsObject to initialize for jumping to the favorite\n@return the link for the favorite location\n\n@throws CmsException if something goes wrong", "Constructs and sets the layout parameters to have some gravity.\n\n@param gravity the gravity of the Crouton\n@return <code>this</code>, for chaining.\n@see android.view.Gravity", "Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}", "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids", "Returns the ports of the server.\n\n@return the {@link Map} which contains the pairs of local {@link InetSocketAddress} and\n{@link ServerPort} is the server is started. {@link Optional#empty()} otherwise.", "Use this API to convert sslpkcs8.", "Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas." ]
public void sendFaderStartCommand(Set<Integer> deviceNumbersToStart, Set<Integer> deviceNumbersToStop) throws IOException { ensureRunning(); byte[] payload = new byte[FADER_START_PAYLOAD.length]; System.arraycopy(FADER_START_PAYLOAD, 0, payload, 0, FADER_START_PAYLOAD.length); payload[2] = getDeviceNumber(); for (int i = 1; i <= 4; i++) { if (deviceNumbersToStart.contains(i)) { payload[i + 4] = 0; } if (deviceNumbersToStop.contains(i)) { payload[i + 4] = 1; } } assembleAndSendPacket(Util.PacketType.FADER_START_COMMAND, payload, getBroadcastAddress(), BeatFinder.BEAT_PORT); }
[ "Broadcast a packet that tells some players to start playing and others to stop. If a player number is in\nboth sets, it will be told to stop. Numbers outside the range 1 to 4 are ignored.\n\n@param deviceNumbersToStart the players that should start playing if they aren't already\n@param deviceNumbersToStop the players that should stop playing\n\n@throws IOException if there is a problem broadcasting the command to the players\n@throws IllegalStateException if the {@code VirtualCdj} is not active" ]
[ "Implements getAll by delegating to get.", "returns an Array with an Objects NON-PK VALUES\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Handle a start time change.\n\n@param event the change event", "Get the waveform previews available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the previews associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the WaveformFinder is not running", "This is pretty ugly. We end up mimicking the request logic here, so this\nneeds to stay in sync with handleRequest.", "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape.", "Calculated the numeraire relative value of an underlying swap leg.\n\n@param model The Monte Carlo model.\n@param legSchedule The schedule of the leg.\n@param paysFloat If true a floating rate is payed.\n@param swaprate The swaprate. May be 0.0 for pure floating leg.\n@param notional The notional.\n@return The sum of the numeraire relative cash flows.\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister", "Add a single header key-value pair. If one with the name already exists,\nit gets replaced.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself." ]
private void sendCloseMessage() { this.lock(() -> { TcpChannelHub.this.writeMetaDataForKnownTID(0, outWire, null, 0); TcpChannelHub.this.outWire.writeDocument(false, w -> w.writeEventName(EventId.onClientClosing).text("")); }, TryLock.LOCK); // wait up to 1 seconds to receive an close request acknowledgment from the server try { final boolean await = receivedClosedAcknowledgement.await(1, TimeUnit.SECONDS); if (!await) if (Jvm.isDebugEnabled(getClass())) Jvm.debug().on(getClass(), "SERVER IGNORED CLOSE REQUEST: shutting down the client anyway as the " + "server did not respond to the close() request."); } catch (InterruptedException ignore) { Thread.currentThread().interrupt(); } }
[ "used to signal to the server that the client is going to drop the connection, and waits up to\none second for the server to acknowledge the receipt of this message" ]
[ "Alternative implementation for the drift. For experimental purposes.\n\n@param timeIndex\n@param componentIndex\n@param realizationAtTimeIndex\n@param realizationPredictor\n@return", "Acquire the exclusive lock allowing the acquisition to be interrupted.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@throws InterruptedException - if the acquiring thread is interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "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", "Returns whether this host should ignore operations from the master domain controller that target\nthe given address.\n\n@param address the resource address. Cannot be {@code null}\n\n@return {@code true} if the operation should be ignored; {@code false} otherwise", "Returns true if required properties for FluoClient are set", "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", "Returns a compact representation of all of the projects the task is in.\n\n@param task The task to get projects on.\n@return Request object", "Use this API to update onlinkipv6prefix.", "Obtains a local date in Accounting calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Accounting era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code AccountingEra}" ]
static <K, V> ViewQueryParameters<K, V> forwardPaginationQueryParameters (ViewQueryParameters<K, V> initialQueryParameters, K startkey, String startkey_docid) { // Copy the initial query parameters ViewQueryParameters<K, V> pageParameters = initialQueryParameters.copy(); // Now override with the start keys provided pageParameters.setStartKey(startkey); pageParameters.setStartKeyDocId(startkey_docid); return pageParameters; }
[ "Generate query parameters for a forward page with the specified start key.\n\n@param initialQueryParameters page 1 query parameters\n@param startkey the startkey for the forward page\n@param startkey_docid the doc id for the startkey (in case of duplicate keys)\n@param <K> the view key type\n@param <V> the view value type\n@return the query parameters for the forward page" ]
[ "Use this API to add gslbservice.", "Collection of JRVariable\n\n@param variables\n@return", "compares two java files", "Creates an object instance from the Groovy resource\n\n@param resource the Groovy resource to parse\n@return An Object instance", "Extract the parameters from a method using the Jmx annotation if present,\nor just the raw types otherwise\n\n@param m The method to extract parameters from\n@return An array of parameter infos", "Use this API to update route6.", "Convert a floating point date to a LocalDateTime.\n\nNote: This method currently performs a rounding to the next second.\n\nIf referenceDate is null, the method returns null.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param floatingPointDate The value to the time offset \\( t \\).\n@return The date resulting from adding Math.round(fixingTime*SECONDS_PER_DAY) seconds to referenceDate, where one day has SECONDS_PER_DAY seconds and SECONDS_PER_DAY is a constant 365*24*60*60", "Indicates if a bean is proxyable\n\n@param bean The bean to test\n@return True if proxyable, false otherwise", "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" ]
private Options getOptions() { Options options = new Options(); options.addOption("h", HELP, false, "print this message"); options.addOption(VERSION, false, "print the version information and exit"); options.addOption("b", BROWSER, true, "browser type: " + availableBrowsers() + ". Default is Firefox"); options.addOption(BROWSER_REMOTE_URL, true, "The remote url if you have configured a remote browser"); options.addOption("d", DEPTH, true, "crawl depth level. Default is 2"); options.addOption("s", MAXSTATES, true, "max number of states to crawl. Default is 0 (unlimited)"); options.addOption("p", PARALLEL, true, "Number of browsers to use for crawling. Default is 1"); options.addOption("o", OVERRIDE, false, "Override the output directory if non-empty"); options.addOption("a", CRAWL_HIDDEN_ANCHORS, false, "Crawl anchors even if they are not visible in the browser."); options.addOption("t", TIME_OUT, true, "Specify the maximum crawl time in minutes"); options.addOption(CLICK, true, "a comma separated list of HTML tags that should be clicked. Default is A and BUTTON"); options.addOption(WAIT_AFTER_EVENT, true, "the time to wait after an event has been fired in milliseconds. Default is " + CrawlRules.DEFAULT_WAIT_AFTER_EVENT); options.addOption(WAIT_AFTER_RELOAD, true, "the time to wait after an URL has been loaded in milliseconds. Default is " + CrawlRules.DEFAULT_WAIT_AFTER_RELOAD); options.addOption("v", VERBOSE, false, "Be extra verbose"); options.addOption(LOG_FILE, true, "Log to this file instead of the console"); return options; }
[ "Create the CML Options.\n\n@return Options expected from command-line." ]
[ "Calculate the pointer's coordinates on the color wheel using the supplied\nangle.\n\n@param angle The position of the pointer expressed as angle (in rad).\n\n@return The coordinates of the pointer's center in our internal\ncoordinate system.", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Make a composite filter from the given sub-filters using AND to combine filters.", "Create an embedded host controller.\n\n@param jbossHomePath the location of the root of the host controller installation. Cannot be {@code null} or empty.\n@param modulePath the location of the root of the module repository. May be {@code null} if the standard\nlocation under {@code jbossHomePath} should be used\n@param systemPackages names of any packages that must be treated as system packages, with the same classes\nvisible to the caller's classloader visible to host-controller-side classes loaded from\nthe server's modular classloader\n@param cmdargs any additional arguments to pass to the embedded host controller (e.g. -b=192.168.100.10)\n@return the server. Will not be {@code null}", "This method performs database modification at the very and of transaction.", "Adds the specified list of users as followers to the project. Followers are a subset of members, therefore if\nthe users are not already members of the project they will also become members as a result of this operation.\nReturns the updated project record.\n\n@param project The project to add followers to.\n@return Request object", "Obtains a local date in Ethiopic calendar system from the\nera, year-of-era, month-of-year and day-of-month fields.\n\n@param era the Ethiopic era, not null\n@param yearOfEra the year-of-era\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code EthiopicEra}", "Get a unique reference to a place where a track is currently loaded in a player.\n\n@param player the player in which the track is loaded\n@param hotCue hot cue number in which the track is loaded, or 0 if it is actively loaded on the playback deck\n\n@return the instance that will always represent a reference to the specified player and hot cue", "Sets the provided square matrix to be a random symmetric matrix whose values are selected from an uniform distribution\nfrom min to max, inclusive.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator." ]
private ServerDetails createInitialDeployDetailsFromOldDeployDetails(ServerDetails oldDeployerDetails) { RepositoryConf oldDeployRepositoryConfig = oldDeployerDetails.getDeployReleaseRepository(); RepositoryConf oldSnapshotDeployRepositoryConfig = oldDeployerDetails.getDeploySnapshotRepository(); RepositoryConf deployReleaseRepos = oldDeployRepositoryConfig == null ? RepositoryConf.emptyRepositoryConfig : oldDeployRepositoryConfig; RepositoryConf deploySnapshotRepos = oldSnapshotDeployRepositoryConfig == null ? RepositoryConf.emptyRepositoryConfig : oldSnapshotDeployRepositoryConfig; return new ServerDetails(oldDeployerDetails.getArtifactoryName(), oldDeployerDetails.getArtifactoryUrl(), deployReleaseRepos, deploySnapshotRepos, null, null, null, null); }
[ "Creates a new ServerDetails object for deployer, this will take URL and name from the oldDeployer ServerDetails" ]
[ "Notify all shutdown listeners that the shutdown completed.", "Performs a transpose across block sub-matrices. Reduces\nthe number of cache misses on larger matrices.\n\n*NOTE* If this is beneficial is highly dependent on the computer it is run on. e.g:\n- Q6600 Almost twice as fast as standard.\n- Pentium-M Same speed and some times a bit slower than standard.\n\n@param A Original matrix. Not modified.\n@param A_tran Transposed matrix. Modified.\n@param blockLength Length of a block.", "Returns all the deployment runtime names associated with an overlay.\n\n@param context the current OperationContext.\n@param overlayAddress the address for the averlay.\n@return all the deployment runtime names associated with an overlay.", "Set the attributes of a feature.\n\n@param feature the feature\n@param attributes the attributes\n@throws LayerException oops", "Mark the given TaskItem depends on this taskGroup.\n\n@param dependentTaskItem the task item that depends on this task group\n@return key to be used as parameter to taskResult(string) method to retrieve result of\ninvocation of given task item.", "Prints some basic documentation about this program.", "Returns the nested object definition with the specified name.\n\n@param name The name of the attribute of the nested object\n@return The nested object definition or <code>null</code> if there is no such nested object", "Plots the trajectory\n@param title Title of the plot\n@param t Trajectory to be plotted", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK." ]
private String getProperty(String name) { return System.getSecurityManager() == null ? System.getProperty(name) : doPrivileged(new ReadPropertyAction(name)); }
[ "Get a System property by its name.\n\n@param name the name of the wanted System property.\n@return the System property value - null if it is not defined." ]
[ "Compute morse.\n\n@param term the term\n@return the string", "Retrieve an instance of the TaskField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return TaskField instance", "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error.", "Use this API to delete ntpserver of given name.", "Convert a Java LinkedList to a Scala Iterable.\n@param linkedList Java LinkedList to convert\n@return Scala Iterable", "Adds the specified class to the internal class graph along with its\nrelations and dependencies, eventually inferring them, according to the\nOptions specified for this matcher\n@param cd", "Returns the value of the indicated property of the current object on the specified level.\n\n@param level The level\n@param name The name of the property\n@return The property value", "Gets the site label for the entry.\n\n@param cms the current CMS context\n@param entry the entry\n@return the site label for the entry", "Perform the given work with a Jedis connection from the given pool.\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\n@throws Exception if something went wrong" ]
protected void convertSearchResults(final Collection<CmsSearchResource> searchResults) { m_foundResources = new ArrayList<I_CmsSearchResourceBean>(); for (final CmsSearchResource searchResult : searchResults) { m_foundResources.add(new CmsSearchResourceBean(searchResult, m_cmsObject)); } }
[ "Converts the search results from CmsSearchResource to CmsSearchResourceBean.\n@param searchResults The collection of search results to transform." ]
[ "Check if this type is assignable from the given Type.", "Retrieve a Double from an input stream.\n\n@param is input stream\n@return Double instance", "Returns a PreparedStatementCreator that returns a page of the underlying\nresult set.\n\n@param dialect\nDatabase dialect to use.\n@param limit\nMaximum number of rows to return.\n@param offset\nIndex of the first row to return.", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.\nThis uses nspbr6_args which is a way to provide additional arguments while fetching the resources.", "Initialize the various DAO configurations after the various setters have been called.", "Try to kill a given process.\n\n@param processName the process name\n@param id the process integer id, or {@code -1} if this is not relevant\n@return {@code true} if the command succeeded, {@code false} otherwise", "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "Use this API to fetch all the vridparam resources that are configured on netscaler.", "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" ]
public static double Exp(double x, int nTerms) { if (nTerms < 2) return 1 + x; if (nTerms == 2) { return 1 + x + (x * x) / 2; } else { double mult = x * x; double fact = 2; double result = 1 + x + mult / fact; for (int i = 3; i <= nTerms; i++) { mult *= x; fact *= i; result += mult / fact; } return result; } }
[ "compute Exp using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result." ]
[ "Builds the HTML code for a select widget given a bean containing the select options\n\n@param htmlAttributes html attributes for the select widget\n@param options the bean containing the select options\n\n@return the HTML for the select box", "Resolve temporary folder.", "Controls whether we report that we are playing. This will only have an impact when we are sending status and\nbeat packets.\n\n@param playing {@code true} if we should seem to be playing", "Apply the layout to the each page in the list\n@param itemLayout item layout in the page\n@return true if the new layout is applied successfully, otherwise - false", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance", "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", "returns the zero argument constructor for the class represented by this class descriptor\nor null if a zero argument constructor does not exist. If the zero argument constructor\nfor this class is not public it is made accessible before being returned.", "Deletes the disabled marker file in the directory of the specified version.\n\n@param version to enable\n@throws PersistenceFailureException if the marker file could not be deleted (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible).", "Makes an ancestor filter." ]
public boolean isValidStore(String name) { readLock.lock(); try { if(this.storeNames.contains(name)) { return true; } return false; } finally { readLock.unlock(); } }
[ "Utility function to validate if the given store name exists in the store\nname list managed by MetadataStore. This is used by the Admin service for\nvalidation before serving a get-metadata request.\n\n@param name Name of the store to validate\n@return True if the store name exists in the 'storeNames' list. False\notherwise." ]
[ "Write the patch.xml\n\n@param rollbackPatch the patch\n@param file the target file\n@throws IOException", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"", "Filters all exceptions from the provided dates.\n@param dates the dates to filter.\n@return the provided dates, except the ones that match some exception.", "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 the statistics of all gslbdomain_stats resources that are configured on netscaler.", "Get the current stack trace element, skipping anything from known logging classes.\n@return The current stack trace for this thread", "Returns true if the ASTNode is a declaration of a closure, either as a declaration\nor a field.\n@param expression\nthe target expression\n@return\nas described", "OR operation which takes the previous clause and the next clause and OR's them together.", "Closes a Closeable and swallows any exceptions that might occur in the\nprocess.\n\n@param closeable" ]
public int execute(DatabaseConnection databaseConnection, T data, ID newId, ObjectCache objectCache) throws SQLException { try { // the arguments are the new-id and old-id Object[] args = new Object[] { convertIdToFieldObject(newId), extractIdToFieldObject(data) }; int rowC = databaseConnection.update(statement, args, argFieldTypes); if (rowC > 0) { if (objectCache != null) { Object oldId = idField.extractJavaFieldValue(data); T obj = objectCache.updateId(clazz, oldId, newId); if (obj != null && obj != data) { // if our cached value is not the data that will be updated then we need to update it specially idField.assignField(connectionSource, obj, newId, false, objectCache); } } // adjust the object to assign the new id idField.assignField(connectionSource, data, newId, false, objectCache); } logger.debug("updating-id with statement '{}' and {} args, changed {} rows", statement, args.length, rowC); if (args.length > 0) { // need to do the cast otherwise we only print the first object in args logger.trace("updating-id arguments: {}", (Object) args); } return rowC; } catch (SQLException e) { throw SqlExceptionUtil.create("Unable to run update-id stmt on object " + data + ": " + statement, e); } }
[ "Update the id field of the object in the database." ]
[ "Get the subsystem deployment model root.\n\n<p>\nIf the subsystem resource does not exist one will be created.\n</p>\n\n@param subsystemName the subsystem name.\n\n@return the model", "Retrieves the formatted parent WBS value.\n\n@return formatted parent WBS value", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "As we merge several operations into one operation, we need to be sure the write concern applied to the aggregated\noperation respects all the requirements expressed for each separate operation.\n\nThus, for each parameter of the write concern, we keep the stricter one for the resulting merged write concern.", "Remove colProxy from list of pending collections and\nregister its contents with the transaction.", "Record the details of the media being cached, to make it easier to recognize, now that we have access to that\ninformation.\n\n@param slot the slot from which a metadata cache is being created\n@param zos the stream to which the ZipFile is being written\n@param channel the low-level channel to which the cache is being written\n\n@throws IOException if there is a problem writing the media details entry", "Refactor the method into public CXF utility and reuse it from CXF instead copy&paste", "Parses links for XMLContents etc.\n\n@param cms the CMS context to use\n@throws CmsException if something goes wrong", "Process a file.\n\n@param file the file to be processed\n@param mode the patching mode\n@throws IOException" ]
public float getChildSize(final int dataIndex, final Axis axis) { float size = 0; Widget child = mContainer.get(dataIndex); if (child != null) { switch (axis) { case X: size = child.getLayoutWidth(); break; case Y: size = child.getLayoutHeight(); break; case Z: size = child.getLayoutDepth(); break; default: throw new RuntimeAssertion("Bad axis specified: %s", axis); } } return size; }
[ "Calculate the child size along the axis\n@param dataIndex data index\n@param axis {@link Axis}\n@return child size" ]
[ "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error.", "Get new vector clock based on this clock but incremented on index nodeId\n\n@param nodeId The id of the node to increment\n@return A vector clock equal on each element execept that indexed by\nnodeId", "Helper method to check if log4j is already configured", "Deselects all child items of the provided item.\n@param item the item for which all childs should be deselected.d", "Add a line symbolizer definition to the rule.\n\n@param styleJson The old style.", "Configures the given annotation as a tag.\n\nThis is useful if you want to treat annotations as tags in JGiven that you cannot or want not\nto be annotated with the {@link com.tngtech.jgiven.annotation.IsTag} annotation.\n\n@param tagAnnotation the tag to be configured\n@return a configuration builder for configuring the tag", "Read the given number of bytes into a long\n\n@param bytes The byte array to read from\n@param offset The offset at which to begin reading\n@param numBytes The number of bytes to read\n@return The long value read", "Runs intermediate check on the Assembly status until it is finished executing,\nthen returns it as a response.\n\n@return {@link AssemblyResponse}\n@throws LocalOperationException if something goes wrong while running non-http operations.\n@throws RequestException if request to Transloadit server fails.", "Writes and reads the XOP attachment using a CXF JAX-RS WebClient.\nNote that WebClient is created with the help of JAXRSClientFactoryBean.\nJAXRSClientFactoryBean can be used when neither of the WebClient factory\nmethods is appropriate. For example, in this case, an \"mtom-enabled\"\nproperty is set on the factory bean first.\n\n\n@throws Exception" ]
private <FT, FID> FT createForeignShell(ConnectionSource connectionSource, Object val, ObjectCache objectCache) throws SQLException { @SuppressWarnings("unchecked") Dao<FT, FID> castDao = (Dao<FT, FID>) foreignDao; FT foreignObject = castDao.createObjectInstance(); foreignIdField.assignField(connectionSource, foreignObject, val, false, objectCache); return foreignObject; }
[ "Create a shell object and assign its id field." ]
[ "Use this API to fetch authenticationvserver_auditnslogpolicy_binding resources of given name .", "Removes the specified list of users from following the project, this will not affect project membership status.\nReturns the updated project record.\n\n@param project The project to remove followers from.\n@return Request object", "Updates the properties of a tag. Only the fields provided in the `data`\nblock will be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated tag record.\n\n@param tag The tag to update.\n@return Request object", "Returns a unique file name\n@param baseFileName the requested base name for the file\n@param extension the requested extension for the file\n@param cleanBaseFileName specify if the <code>baseFileName</code> has to be cleaned before being used (i.e. 'jboss-web' should not be cleaned to avoid '-' to become '_')\n@param ancestorFolders specify the ancestor folders for the file (if there's no ancestor folder, just pass 'null' value)\n@return a String representing the unique file generated", "Load the given configuration file.", "GetJob helper - String predicates are all created the same way, so this factors some code.", "Read a text stream into a single string.\n\n@param inputStream\nStream containing text. Will be closed on exit.\n@return The contents, or null on error.", "Get a list of referring domains for a collection.\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 collectionId\n(Optional) The id of the collection to get stats for. If not provided, stats for all collections 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.getCollectionDomains.html\"", "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 alone, the address representing all addresses of all types, or an empty string.\nIf this method returns false, and you want more details, call validate() and examine the thrown exception.\n\n@return whether this is a valid address string format" ]
public Object assignIdValue(ConnectionSource connectionSource, Object data, Number val, ObjectCache objectCache) throws SQLException { Object idVal = dataPersister.convertIdNumber(val); if (idVal == null) { throw new SQLException("Invalid class " + dataPersister + " for sequence-id " + this); } else { assignField(connectionSource, data, idVal, false, objectCache); return idVal; } }
[ "Assign an ID value to this field." ]
[ "Use this API to fetch netbridge_vlan_binding resources of given name .", "Attaches an arbitrary object to this context.\n\n@param key they attachment key used to ensure uniqueness and used for retrieval of the value.\n@param value the value to store.\n@param <V> the value type of the attachment.\n\n@return the previous value associated with the key or {@code null} if there was no previous value.", "Creates a cube with each face as a separate mesh using a different texture.\nThe meshes will share a common vertex array but will have separate index buffers.\n@param gvrContext context to use for creating cube\n@param facingOut true for outward normals, false for inward normals\n@param vertexDesc string describing which vertex components are desired\n@param textureList list of 6 textures, one for each face", "Set a knot blend type.\n@param n the knot index\n@param type the knot blend type\n@see #getKnotBlend", "Drop down item view\n\n@param position position of item\n@param convertView View of item\n@param parent parent view of item's view\n@return covertView", "Attaches an arbitrary object to this context.\n\n@param key they attachment key used to ensure uniqueness and used for retrieval of the value.\n@param value the value to store.\n@param <V> the value type of the attachment.\n\n@return the previous value associated with the key or {@code null} if there was no previous value.", "On key down we assume the key will go at the end. It's the most\ncommon case and not that distracting if that's not true.", "get the result speech recognize and find match in strings file.\n\n@param speechResult", "response simple String\n\n@param response\n@param obj" ]
private static boolean checkModifiers(Class<? extends AbstractPlugin> pluginClass) { int modifiers = pluginClass.getModifiers(); return !Modifier.isAbstract(modifiers) && !Modifier.isInterface(modifiers) && !Modifier.isPrivate(modifiers); }
[ "Check given class modifiers. Plugin with resources plugin should not be private or abstract\nor interface." ]
[ "Return all valid tenors for a given moneyness and maturity.\n\n@param moneynessBP The moneyness in bp for which to get the tenors.\n@param maturityInMonths The maturities in months for which to get the tenors.\n@return The tenors in months.", "Adds an alias to the currently configured site.\n\n@param alias the URL of the alias server\n@param redirect <code>true</code> to always redirect to main URL\n@param offset the optional time offset for this alias", "Returns the bounding sphere of the vertices.\n@param sphere destination array to get bounding sphere.\nThe first entry is the radius, the next\nthree are the center.\n@return radius of bounding sphere or 0.0 if no vertices", "Return the content from an URL in byte array\n\n@param stringUrl URL to get\n@return byte array\n@throws IOException I/O error happened", "Reads data from the SP file.\n\n@return Project File instance", "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider.", "Cancels all the pending & running requests and releases all the dispatchers.", "Use this API to delete sslcertkey.", "Write correlation id.\n\n@param message the message\n@param correlationId the correlation id" ]
public double getProgressFromResponse(ResponseOnSingeRequest myResponse) { double progress = 0.0; try { if (myResponse == null || myResponse.isFailObtainResponse()) { return progress; } String responseBody = myResponse.getResponseBody(); Pattern regex = Pattern.compile(progressRegex); Matcher matcher = regex.matcher(responseBody); if (matcher.matches()) { String progressStr = matcher.group(1); progress = Double.parseDouble(progressStr); } } catch (Exception t) { logger.error("fail " + t); } return progress; }
[ "Gets the progress from response.\n\n@param myResponse\nthe my response\n@return the progress from response" ]
[ "Read an optional month value form a JSON value.\n@param val the JSON value that should represent the month.\n@return the month from the JSON or null if reading the month fails.", "Converts a date to an instance date bean.\n@return the instance date bean.", "Returns the value that has to be set for the dynamic attribute.\n\n@param file the file where the current content is stored\n@param value the content value that is represented by the attribute\n@param attributeName the attribute's name\n@param editedLocalEntity the entities that where edited last\n@return the value that has to be set for the dynamic attribute.", "Get an Iterator based on the ReportQuery\n\n@param query\n@return Iterator", "Add a new server mapping to current profile\n\n@param sourceHost source hostname\n@param destinationHost destination hostname\n@param hostHeader host header\n@return ServerRedirect", "ChromeCast does not allow you to jump levels too quickly to avoid blowing speakers.\nSetting by increment allows us to easily get the level we want\n\n@param level volume level from 0 to 1 to set\n@throws IOException\n@see <a href=\"https://developers.google.com/cast/docs/design_checklist/sender#sender-control-volume\">sender</a>", "Use this API to disable clusterinstance of given name.", "Add some of the release build properties to a map.", "Initializes the persistence strategy to be used when accessing the datastore. In particular, all the required\ncaches will be configured and initialized.\n\n@param cacheMappingType the {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType} to be used\n@param entityTypes meta-data of all the entity types registered with the current session factory\n@param associationTypes meta-data of all the association types registered with the current session factory\n@param idSourceTypes meta-data of all the id source types registered with the current session factory\n@param namespaces from the database currently in use" ]
public static int queryForInt(Statement stmt, String sql, int nullvalue) { try { ResultSet rs = stmt.executeQuery(sql); try { if (!rs.next()) return nullvalue; return rs.getInt(1); } finally { rs.close(); } } catch (SQLException e) { throw new DukeException(e); } }
[ "Runs a query that returns a single int." ]
[ "Calculate the value of a CMS option using the Black-Scholes model for the swap rate together with\nthe Hunt-Kennedy convexity adjustment.\n\n@param forwardSwaprate The forward swap rate\n@param volatility Volatility of the log of the swap rate\n@param swapAnnuity The swap annuity\n@param optionMaturity The option maturity\n@param swapMaturity The swap maturity\n@param payoffUnit The payoff unit, e.g., the discount factor corresponding to the payment date\n@param optionStrike The option strike\n@return Value of the CMS option", "Extract resource data.", "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}", "Converts a Fluo Span to Accumulo Range\n\n@param span Span\n@return Range", "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.", "Returns all ApplicationProjectModels.", "Use this API to fetch authenticationlocalpolicy_authenticationvserver_binding resources of given name .", "Inserts a Serializable 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 Serializable object, or null\n@return this bundler instance to chain method calls", "Returns the version document of the given document, if any; returns null otherwise.\n@param document the document to get the version from.\n@return the version of the given document, if any; returns null otherwise." ]
public int getPrivacy() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PRIVACY); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element personElement = response.getPayload(); return Integer.parseInt(personElement.getAttribute("privacy")); }
[ "Returns the default privacy level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@throws FlickrException\n@return privacyLevel" ]
[ "Convert this path address to its model node representation.\n\n@return the model node list of properties", "Creates an Odata filter string that can be used for filtering list results by tags.\n\n@param tagName the name of the tag. If not provided, all resources will be returned.\n@param tagValue the value of the tag. If not provided, only tag name will be filtered.\n@return the Odata filter to pass into list methods", "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", "Check if this type is assignable from the given Type.", "Initialize the ui elements for the management part.", "Sets the scale vector of the keyframe.", "Returns this applications' context path.\n@return context path.", "Given a HTTPResponce, process it, throwing an error if needed and return a Token for the next\nrequest.", "Make sure we don't attempt to recover inline; if the parser\nsuccessfully recovers, it won't throw an exception." ]
public Iterator<BoxItem.Info> iterator() { URL url = GET_ITEMS_URL.build(this.api.getBaseURL()); return new BoxItemIterator(this.api, url); }
[ "Returns an iterator over the items in the trash.\n@return an iterator over the items in the trash." ]
[ "Queries a Search Index and returns ungrouped results. In case the query\nused grouping, an empty list is returned\n\n@param <T> Object type T\n@param query the Lucene query to be passed to the Search index\n@param classOfT The class of type T\n@return The result of the search query as a {@code List<T> }", "Use this API to delete sslcertkey.", "Sets an error message that will be displayed in a popup when the EditText has focus along\nwith an icon displayed at the right-hand side.\n\n@param error error message to show", "Start with specifying the artifact version", "Establish a new master tempo, and if it is a change from the existing one, report it to the listeners.\n\n@param newTempo the newly reported master tempo.", "remove a converted object from the pool\n\n@param converter\n@param sourceObject\n@param destinationType", "Use this API to add dnsaaaarec resources.", "Reads the entity hosting the association from the datastore and applies any property changes from the server\nside.", "Invokes the method on the class of the passed instance, not the declaring\nclass. Useful with proxies\n\n@param instance The instance to invoke\n@param manager The Bean manager\n@return A reference to the instance" ]
public Where<T, ID> or() { ManyClause clause = new ManyClause(pop("OR"), ManyClause.OR_OPERATION); push(clause); addNeedsFuture(clause); return this; }
[ "OR operation which takes the previous clause and the next clause and OR's them together." ]
[ "Sets the position of the currency symbol.\n\n@param posn currency symbol position.", "The number of bytes required to hold the given number\n\n@param number The number being checked.\n@return The required number of bytes (must be 8 or less)", "Gets the filename from a path or URL.\n@param path or url.\n@return the file name.", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "Most complete output", "Retrieve a list of the available P3 project names from a directory.\n\n@param directory directory containing P3 files\n@return list of project names", "Validate the Combination filter field in Multi configuration jobs", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.", "Computes A-B\n\n@param listA\n@param listB\n@return" ]
public static double Y(int n, double x) { double by, bym, byp, tox; if (n == 0) return Y0(x); if (n == 1) return Y(x); tox = 2.0 / x; by = Y(x); bym = Y0(x); for (int j = 1; j < n; j++) { byp = j * tox * by - bym; bym = by; by = byp; } return by; }
[ "Bessel function of the second kind, of order n.\n\n@param n Order.\n@param x Value.\n@return Y value." ]
[ "Retrieve a list of the available P3 project names from a directory.\n\n@param directory directory containing P3 files\n@return list of project names", "GetJob helper - String predicates are all created the same way, so this factors some code.", "This is the main entry point used to convert the internal representation\nof timephased cost into an external form which can\nbe displayed to the user.\n\n@param projectCalendar calendar used by the resource assignment\n@param cost timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Checks if the provided license is valid and could be stored into the database\n\n@param license the license to test\n@throws WebApplicationException if the data is corrupted", "Uncompresses the textual contents in the given map and and writes them to the files\ndenoted by the keys of the map.\n\n@param dir The base directory into which the files will be written\n@param contents The map containing the contents indexed by the filename\n@throws IOException If an error occurred", "Set text parameters from properties\n@param context Valid Android {@link Context}\n@param properties JSON text properties", "Refactor the method into public CXF utility and reuse it from CXF instead copy&paste", "Remove a key from the given map.\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param key the key to remove.\n@return the removed value, or <code>null</code> if the key was not\npresent in the map.\n@since 2.15", "Enqueues a message for sending on the send thread.\n@param serialMessage the serial message to enqueue." ]
@Override public Optional<SoyMapData> toSoyMap(@Nullable final Object model) throws Exception { if (model instanceof SoyMapData) { return Optional.of((SoyMapData) model); } if (model instanceof Map) { return Optional.of(new SoyMapData(model)); } return Optional.of(new SoyMapData()); }
[ "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" ]
[ "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "Initializes the information on an available master mode.\n@throws CmsException thrown if the write permission check on the bundle descriptor fails.", "Removes the specified list of users from following the project, this will not affect project membership status.\nReturns the updated project record.\n\n@param project The project to remove followers from.\n@return Request object", "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", "Use this API to fetch statistics of nspbr6_stats resource of given name .", "Create a document that parses the tile's featureFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@return document\n@throws RenderException\noops", "Utility method used to round a double to the given precision.\n\n@param value value to truncate\n@param precision Number of decimals to round to.\n@return double value", "Populate the properties indicating the source of this schedule.\n\n@param properties project properties", "Removes and returns a random element from the set.\n@return the removed element, or <code>null</code> when the key does not exist." ]
public void seekToDayOfWeek(String direction, String seekType, String seekAmount, String dayOfWeek) { int dayOfWeekInt = Integer.parseInt(dayOfWeek); int seekAmountInt = Integer.parseInt(seekAmount); assert(direction.equals(DIR_LEFT) || direction.equals(DIR_RIGHT)); assert(seekType.equals(SEEK_BY_DAY) || seekType.equals(SEEK_BY_WEEK)); assert(dayOfWeekInt >= 1 && dayOfWeekInt <= 7); markDateInvocation(); int sign = direction.equals(DIR_RIGHT) ? 1 : -1; if(seekType.equals(SEEK_BY_WEEK)) { // set our calendar to this weeks requested day of the week, // then add or subtract the week(s) _calendar.set(Calendar.DAY_OF_WEEK, dayOfWeekInt); _calendar.add(Calendar.DAY_OF_YEAR, seekAmountInt * 7 * sign); } else if(seekType.equals(SEEK_BY_DAY)) { // find the closest day do { _calendar.add(Calendar.DAY_OF_YEAR, sign); } while(_calendar.get(Calendar.DAY_OF_WEEK) != dayOfWeekInt); // now add/subtract any additional days if(seekAmountInt > 0) { _calendar.add(Calendar.WEEK_OF_YEAR, (seekAmountInt - 1) * sign); } } }
[ "seeks to a specified day of the week in the past or future.\n\n@param direction the direction to seek: two possibilities\n'<' go backward\n'>' go forward\n\n@param seekType the type of seek to perform (by_day or by_week)\nby_day means we seek to the very next occurrence of the given day\nby_week means we seek to the first occurrence of the given day week in the\nnext (or previous,) week (or multiple of next or previous week depending\non the seek amount.)\n\n@param seekAmount the amount to seek. Must be guaranteed to parse as an integer\n\n@param dayOfWeek the day of the week to seek to, represented as an integer from\n1 to 7 (1 being Sunday, 7 being Saturday.) Must be guaranteed to parse as an Integer" ]
[ "Called when the pattern has changed.", "Returns a list with argument words that are not equal in all cases", "Checks the given class descriptor.\n\n@param classDef The class descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "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 identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"\n@return the information extracted from the identifier", "Used to create a new finite retention policy with optional parameters.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@param optionalParams the optional parameters.\n@return the created retention policy's info.", "This method is used to extract the task hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param task task instance\n@param data hyperlink data block", "Visit an exported package of the current module.\n\n@param packaze the qualified name of the exported package.\n@param access the access flag of the exported package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can access to\nthe public classes of the exported package or\n<tt>null</tt>.", "Return fallback if first string is null or empty", "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." ]
protected static boolean numericEquals(Field vector1, Field vector2) { if (vector1.size() != vector2.size()) return false; if (vector1.isEmpty()) return true; Iterator<Object> it1 = vector1.iterator(); Iterator<Object> it2 = vector2.iterator(); while (it1.hasNext()) { Object obj1 = it1.next(); Object obj2 = it2.next(); if (!(obj1 instanceof Number && obj2 instanceof Number)) return false; if (((Number) obj1).doubleValue() != ((Number) obj2).doubleValue()) return false; } return true; }
[ "Compares two vectors and determines if they are numeric equals,\nindependent of its type.\n\n@param vector1\nthe first vector\n@param vector2\nthe second vector\n@return true if the vectors are numeric equals" ]
[ "The MapReduce framework should operate sequentially, so thread safety shouldn't be a problem.", "Clear history for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client", "Builds the radio input to set the export and secure property.\n\n@param propName the name of the property to build the radio input for\n\n@return html for the radio input\n\n@throws CmsException if the reading of a property fails", "Removes a design document from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}", "Stop finding signatures for all active players.", "returns a proxy or a fully materialized Object from the current row of the\nunderlying resultset.", "Use this API to update responderpolicy resources.", "Create a text message that will be stored in the database. Must be called inside a transaction.", "Process a currency definition.\n\n@param row record from XER file" ]
public Envelope getMaxExtent() { final int minX = 0; final int maxX = 1; final int minY = 2; final int maxY = 3; return new Envelope(this.maxExtent[minX], this.maxExtent[minY], this.maxExtent[maxX], this.maxExtent[maxY]); }
[ "Get the max extent as a envelop object." ]
[ "Returns all resources that belong to the bundle\nThis includes the descriptor if one exists.\n\n@return List of the bundle resources, including the descriptor.", "Sets the time warp.\n\n@param l the new time warp", "Append Join for SQL92 Syntax", "Maps a duration unit value from a recurring task record in an MPX file\nto a TimeUnit instance. Defaults to days if any problems are encountered.\n\n@param value integer duration units value\n@return TimeUnit instance", "A specific, existing workspace can be updated by making a PUT request on\nthe URL for that workspace. Only the fields provided in the data block\nwill be updated; any unspecified fields will remain unchanged.\n\nCurrently the only field that can be modified for a workspace is its `name`.\n\nReturns the complete, updated workspace record.\n\n@param workspace The workspace to update.\n@return Request object", "Return whether or not the field value passed in is the default value for the type of the field. Null will return\ntrue.", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Gets the instance associated with the current thread.", "used by Error template" ]
public static vpath get(nitro_service service, String name) throws Exception{ vpath obj = new vpath(); obj.set_name(name); vpath response = (vpath) obj.get_resource(service); return response; }
[ "Use this API to fetch vpath resource of given name ." ]
[ "Curries a function that takes one argument.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a function that takes no arguments. Never <code>null</code>.", "Create a new queued pool using the defaults for key of type K, request of\ntype R, and value of Type V.\n\n@param factory The factory that creates objects\n@return The created pool", "Stops the service. If a timeout is given and the service has still not\ngracefully been stopped after timeout ms the service is stopped by force.\n\n@param millis value in ms", "The transform method for this DataTransformer\n@param cr a reference to DataPipe from which to read the current map", "Return the area polygon as the only feature in the feature collection.\n\n@param mapAttributes the attributes that this aoi is part of.", "Excludes Vertices that are of the provided type.", "Parses the configuration node and provides a pipeline configuration without any extensions marked for loading.\nThe configuration node is supposed to conform to the pipeline configuration JSON schema.\n\n<p>The caller is supposed to use the methods from the builder to add/find extension classes that will be used in\nthe analysis.\n\n<p>Note that the returned pipeline configuration might not contain all the extensions available in\nthe classloader depending on the include/exclude filters in the configuration.\n\n@param json the configuration node\n@return a pipeline configuration parsed from the configuration\n@see Builder#build()", "Visit all child nodes but not this one.\n\n@param visitor The visitor to use.", "Create a Deliverable inside the database that will track a file created by a JobInstance Must be called from inside a transaction\n\n@param path\nFilePath (relative to a root directory - cf. Node)\n@param originalFileName\nFileName\n@param fileFamily\nFile family (may be null). E.g.: \"daily report\"\n@param jobId\nJob Instance ID\n@param cnx\nthe DbConn to use." ]
public void setSpecificDeviceClass(Specific specificDeviceClass) throws IllegalArgumentException { // The specific Device class does not match the generic device class. if (specificDeviceClass.genericDeviceClass != Generic.NOT_KNOWN && specificDeviceClass.genericDeviceClass != this.genericDeviceClass) throw new IllegalArgumentException("specificDeviceClass"); this.specificDeviceClass = specificDeviceClass; }
[ "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." ]
[ "Set the permission for who may view the geo data associated with a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe id of the photo to set permissions for.\n@param perms\nPermissions, who can see the geo data of this photo\n@throws FlickrException", "Here the search query is composed and executed.\nThe result is wrapped in an easily usable form.\nIt is exposed to the JSP via the tag's \"var\" attribute.\n@return The result object exposed via the tag's attribute \"var\".", "Declaration of the variable within a block", "Returns iterable with all enterprise assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all enterprise assignments.", "Process stop.\n\n@param endpoint the endpoint\n@param eventType the event type", "A static method that provides an easy way to create a list of a\ncertain parametric type.\nThis static constructor works better with generics.\n\n@param list The list to pad\n@param padding The padding element (may be null)\n@return The padded list", "Performs the transformation.\n\n@return True if the file was modified.", "Set the draw mode for this mesh. Default is GL_TRIANGLES.\n\n@param drawMode", "All the sub-level attributes.\n\n@param name the attribute name.\n@param attribute the attribute." ]
public void processAnonymousReference(Properties attributes) throws XDocletException { ReferenceDescriptorDef refDef = _curClassDef.getReference("super"); String attrName; if (refDef == null) { refDef = new ReferenceDescriptorDef("super"); _curClassDef.addReference(refDef); } refDef.setAnonymous(); LogHelper.debug(false, OjbTagsHandler.class, "processAnonymousReference", " Processing anonymous reference"); for (Enumeration attrNames = attributes.propertyNames(); attrNames.hasMoreElements(); ) { attrName = (String)attrNames.nextElement(); refDef.setProperty(attrName, attributes.getProperty(attrName)); } }
[ "Processes an anonymous reference definition.\n\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the reference as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\nreferenced object on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe referenced object\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\nreferenced object\"\[email protected] name=\"class-ref\" optional=\"false\" description=\"The fully qualified name of the class\nowning the referenced field\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the reference\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The fields in the current type used for\nimplementing the reference\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the reference is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the reference\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\nreference\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The fields in the referenced type\ncorresponding to the local fields (is only used for the table definition)\"" ]
[ "Create a document that parses the tile's labelFragment, using GraphicsWriter classes.\n\n@param writer\nwriter\n@param labelStyleInfo\nlabel style info\n@return graphics document\n@throws RenderException\ncannot render", "Update the background color of the mBgCircle image view.", "Adds each of the specified followers to the task, if they are not already\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to add followers to.\n@return Request object", "Pops resource requests off the queue until queue is empty or an unexpired\nresource request is found. Invokes .handleTimeout on all expired resource\nrequests popped off the queue.\n\n@return null or a valid ResourceRequest", "Add a URL pattern to the routing table.\n\n@param urlPattern A regular expression\n@throws RouteAlreadyMappedException", "Saves the messages for all languages that were opened in the editor.\n\n@throws CmsException thrown if saving fails.", "Compares two avro strings which contains single store configs\n\n@param configAvro1\n@param configAvro2\n@return true if two config avro strings have same content", "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by the specified comparator.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@param comparator\nthe comparator to be used. May be <code>null</code> to indicate that the natural ordering of the\nelements should be used.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List, Comparator)\n@see #sort(Iterable)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List, Comparator)\n@since 2.7", "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." ]
private static boolean isWideningPrimitive(Class<?> argumentClass, Class<?> targetClass) { return WIDENING_TABLE.containsKey(argumentClass) && WIDENING_TABLE.get(argumentClass).contains(targetClass); }
[ "Checks that the targetClass is widening the argument class\n\n@param argumentClass\n@param targetClass\n@return" ]
[ "This method skips the end-of-line markers in the RTF document.\nIt also indicates if the end of the embedded object has been reached.\n\n@param text RTF document test\n@param offset offset into the RTF document\n@return new offset", "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\"", "Callback when each frame in the indicator animation should be drawn.", "Try to build an default PBKey for convenience PB create method.\n\n@return PBKey or <code>null</code> if default key was not declared in\nmetadata", "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.", "Utility function that gives list of values from list of value-pair\nstrings.\n\n@param valuePairs List of value-pair strings\n@param delim Delimiter that separates the value pair\n@returns The list of values; empty if no value-pair is present, The even\nelements are the first ones of the value pair, and the odd\nelements are the second ones. For example, if the list of\nvalue-pair is [\"cluster.xml=file1\", \"stores.xml=file2\"], and the\npair delimiter is '=', we will then have the list of values in\nreturn: [\"cluster.xml\", \"file1\", \"stores.xml\", \"file2\"].", "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;", "Check that each emitted notification is properly described by its source.", "Delivers the correct JSON Object for properties\n\n@param properties\n@throws org.json.JSONException" ]
public static <T> T splitEachLine(File self, String regex, @ClosureParams(value=SimpleType.class, options="java.lang.String[]") Closure<T> closure) throws IOException { return IOGroovyMethods.splitEachLine(newReader(self), regex, closure); }
[ "Iterates through this file line by line, splitting each line using\nthe given regex separator. For each line, the given closure is called with\na single parameter being the list of strings computed by splitting the line\naround matches of the given regular expression.\nFinally the resources used for processing the file are closed.\n\n@param self a File\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see IOGroovyMethods#splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5" ]
[ "Apply filters to a method name.\n@param methodName", "Read an individual remark type from a Gantt Designer file.\n\n@param remark remark type", "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.", "Read custom fields for a GanttProject task.\n\n@param gpTask GanttProject task\n@param mpxjTask MPXJ Task instance", "Encodes the given URI authority with the given encoding.\n@param authority the authority to be encoded\n@param encoding the character encoding to encode to\n@return the encoded authority\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Returns iterable containing assignments for this single legal hold policy.\nParameters can be used to filter retrieved assignments.\n@param type filter assignments of this type only.\nCan be \"file_version\", \"file\", \"folder\", \"user\" or null if no type filter is necessary.\n@param id filter assignments to this ID only. Can be null if no id filter is necessary.\n@param limit the limit of entries per page. Default limit is 100.\n@param fields the fields to retrieve.\n@return an iterable containing assignments for this single legal hold policy.", "Remove all the existing links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Extracts the value of this bit flag from the supplied byte array\nand sets the value in the supplied container.\n\n@param container container\n@param data byte array", "Creates a rectangular matrix which is zero except along the diagonals.\n\n@param numRows Number of rows in the matrix.\n@param numCols NUmber of columns in the matrix.\n@return A matrix with diagonal elements equal to one." ]
public static <T> int indexOf(T[] array, T element) { for ( int i = 0; i < array.length; i++ ) { if ( array[i].equals( element ) ) { return i; } } return -1; }
[ "Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise" ]
[ "Adds the specified list of users as followers to the project. Followers are a subset of members, therefore if\nthe users are not already members of the project they will also become members as a result of this operation.\nReturns the updated project record.\n\n@param project The project to add followers to.\n@return Request object", "Specifies the ARM resource id of the user assigned managed service identity resource that\nshould be used to retrieve the access token.\n\n@param identityId the ARM resource id of the user assigned identity resource\n@return MSICredentials", "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", "This method is called to alert project listeners to the fact that\na resource assignment has been read from a project file.\n\n@param resourceAssignment resourceAssignment instance", "Returns an MBeanServer with the specified name\n\n@param name\n@return", "Executes the API action \"wbremoveclaims\" for the given parameters.\n\n@param statementIds\nthe statement ids to delete\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Removes the given row.\n\n@param row the row to remove", "Get all Groups\n\n@return\n@throws Exception", "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" ]
public QueryBuilder<T, ID> groupBy(String columnName) { FieldType fieldType = verifyColumnName(columnName); if (fieldType.isForeignCollection()) { throw new IllegalArgumentException("Can't groupBy foreign collection field: " + columnName); } addGroupBy(ColumnNameOrRawSql.withColumnName(columnName)); return this; }
[ "Add \"GROUP BY\" clause to the SQL query statement. This can be called multiple times to add additional \"GROUP BY\"\nclauses.\n\n<p>\nNOTE: Use of this means that the resulting objects may not have a valid ID column value so cannot be deleted or\nupdated.\n</p>" ]
[ "Add the collection of elements to this collection. This will also them to the associated database table.\n\n@return Returns true if any of the items did not already exist in the collection otherwise false.", "Get the spin scripting environment\n\n@param language the language name\n@return the environment script as string or null if the language is\nnot in the set of languages supported by spin.", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Return list of all files in the directory.\n\n@param directory target directory on file system\n@return list of files in the directory or empty list if directory is empty.", "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", "Returns iban's country code and check digit.\n\n@param iban String\n@return countryCodeAndCheckDigit String", "Crop the image between two points.\n\n@param top Top bound.\n@param left Left bound.\n@param bottom Bottom bound.\n@param right Right bound.\n@throws IllegalArgumentException if {@code top} or {@code left} are less than zero or {@code\nbottom} or {@code right} are less than one or less than {@code top} or {@code left},\nrespectively.", "Adds an audio source to the audio manager.\nAn audio source cannot be played unless it is\nadded to the audio manager. A source cannot be\nadded twice.\n@param audioSource audio source to add", "Get a collection of recent photos.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param extras\nSet of extra-fields\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return A collection of Photo objects\n@throws FlickrException" ]
@Override public void perform(Rewrite event, EvaluationContext context) { perform((GraphRewrite) event, context); }
[ "Called internally to actually process the Iteration." ]
[ "Returns a new analysis context builder that extracts the information about the available extensions from\nthe provided Revapi instance.\n\n<p>The extensions have to be known so that both old and new style of configuration can be usefully worked with.\n\n@param revapi the revapi instance to read the available extensions from\n@return a new analysis context builder", "Log a message at the provided level.", "Use this API to add cmppolicylabel resources.", "Deletes all of the Directories in root that match the FileFilter\n\n@param root\n@param filter", "Use this API to fetch appfwprofile_xmlvalidationurl_binding resources of given name .", "Generic method used to create a field map from a block of data.\n\n@param data field map data", "Gets the UTF-8 sequence length of the code point.\n\n@throws InvalidCodePointException if code point is not within a valid range", "Add a forward to this curve.\n\n@param model An analytic model providing a context. The discount curve (if needed) is obtained from this model.\n@param fixingTime The given fixing time.\n@param forward The given forward.\n@param isParameter If true, then this point is server via {@link #getParameter()} and changed via {@link #setParameter(RandomVariable[])} and {@link #getCloneForParameter(RandomVariable[])}, i.e., it can be calibrated.", "Requests the beat grid for a specific track ID, given a connection to a player that has already been set up.\n\n@param rekordboxId the track of interest\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved beat grid, or {@code null} if there was none available\n\n@throws IOException if there is a communication problem" ]
public static base_response convert(nitro_service client, sslpkcs8 resource) throws Exception { sslpkcs8 convertresource = new sslpkcs8(); convertresource.pkcs8file = resource.pkcs8file; convertresource.keyfile = resource.keyfile; convertresource.keyform = resource.keyform; convertresource.password = resource.password; return convertresource.perform_operation(client,"convert"); }
[ "Use this API to convert sslpkcs8." ]
[ "Move this rectangle to the specified bottom-left point.\n\n@param rect rectangle to move\n@param x new x origin\n@param y new y origin", "Convert this update description to an update document.\n\n@return an update document with the appropriate $set and $unset documents.", "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day", "Emit a string event with parameters and force all listeners to be called asynchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(String, Object...)", "Use this API to fetch sslvserver_sslcipher_binding resources of given name .", "Create a TableAlias for path or userAlias\n@param aTable\n@param aPath\n@param aUserAlias\n@return TableAlias", "Create a structured Record instance from the flat text data.\nNull is returned if errors are encountered during parse.\n\n@param text flat text data\n@return Record instance", "Answer the SQL-Clause for a BetweenCriteria\n\n@param alias\n@param pathInfo\n@param c BetweenCriteria\n@param buf", "Unregister the mbean with the given name\n\n@param server The server to unregister from\n@param name The name of the mbean to unregister" ]
public void setWorkingDay(Day day, DayType working) { DayType value; if (working == null) { if (isDerived()) { value = DayType.DEFAULT; } else { value = DayType.WORKING; } } else { value = working; } m_days[day.getValue() - 1] = value; }
[ "This is a convenience method provided to allow a day to be set\nas working or non-working, by using the day number to\nidentify the required day.\n\n@param day required day\n@param working flag indicating if the day is a working day" ]
[ "NOT IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery", "Renders the document to the specified output stream.", "Write an integer field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Crop the image between two points.\n\n@param top Top bound.\n@param left Left bound.\n@param bottom Bottom bound.\n@param right Right bound.\n@throws IllegalArgumentException if {@code top} or {@code left} are less than zero or {@code\nbottom} or {@code right} are less than one or less than {@code top} or {@code left},\nrespectively.", "Update the installed identity using the modified state from the modification.\n\n@param name the identity name\n@param modification the modification\n@param state the installation state\n@return the installed identity", "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "Use this API to delete dnspolicylabel of given name.", "Read a two byte integer.\n\n@param data byte array\n@param offset offset into array\n@return integer value", "Returns a name for the principal based upon one of the attributes\nof the main CommonProfile. The attribute name used to query the CommonProfile\nis specified in the constructor.\n\n@return a name for the Principal or null if the attribute is not populated." ]
public void removeValue(T value, boolean reload) { int idx = getIndex(value); if (idx >= 0) { removeItemInternal(idx, reload); } }
[ "Removes a value from the list box. Nothing is done if the value isn't on\nthe list box.\n\n@param value the value to be removed from the list\n@param reload perform a 'material select' reload to update the DOM." ]
[ "Maps a transportId to its corresponding TransportType.\n@param transportId\n@return", "Get an SQL condition to match this address section representation\n\n@param builder\n@param columnName\n@return the condition", "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name", "Adds each of the specified followers to the task, if they are not already\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to add followers to.\n@return Request object", "Converts the given CharSequence into a List of Strings of one character.\n\n@param self a CharSequence\n@return a List of characters (a 1-character String)\n@see #toSet(String)\n@since 1.8.2", "Enable clipping for the Widget. Widget content including its children will be clipped by a\nrectangular View Port. By default clipping is disabled.", "Returns a matrix of StatisticsMatrix type so that SimpleMatrix functions create matrices\nof the correct type.", "Sets the site root.\n\n@param siteRoot the site root", "Encode a path segment, escaping characters not valid for a URL.\n\n<p>The following characters are not escaped:\n\n<ul>\n<li>{@code a..z, A..Z, 0..9}\n<li>{@code . - * _}\n</ul>\n\n<p>' ' (space) is encoded as '+'.\n\n<p>All other characters (including '/') are converted to the triplet \"%xy\" where \"xy\" is the\nhex representation of the character in UTF-8.\n\n@param component a string containing text to encode.\n@return a string with all invalid URL characters escaped." ]
public static appfwpolicylabel_stats[] get(nitro_service service) throws Exception{ appfwpolicylabel_stats obj = new appfwpolicylabel_stats(); appfwpolicylabel_stats[] response = (appfwpolicylabel_stats[])obj.stat_resources(service); return response; }
[ "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler." ]
[ "Upgrade the lock on the given object to the given lock mode. The call has\nno effect if the object's current lock is already at or above that level of\nlock mode.\n\n@param obj object to acquire a lock on.\n@param lockMode lock mode to acquire. The lock modes\nare <code>READ</code> , <code>UPGRADE</code> , and <code>WRITE</code> .\n\n@exception LockNotGrantedException Description of Exception", "Invokes the exit logger if and only if no ExitLogger was previously invoked.\n@param logger the logger. Cannot be {@code null}", "Returns a converter instance for the given annotation.\n\n@param annotation the annotation\n@return a converter instance or {@code null} if the given annotation is no option annotation", "Use this API to expire cacheobject.", "Adds the content info for the collected resources used in the \"This page\" publish dialog.", "Assign FK value of main object with PK values of the reference object.\n\n@param obj real object with reference (proxy) object (or real object with set FK values on insert)\n@param cld {@link ClassDescriptor} of the real object\n@param rds An {@link ObjectReferenceDescriptor} of real object.\n@param insert Show if \"linking\" is done while insert or update.", "Starts the one and only job instance in a separate Thread. Should be called exactly one time before\nthe operation is stopped.\n\n@param arguments {@inheritDoc}", "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side", "Update server mapping's host header\n\n@param serverMappingId ID of server mapping\n@param hostHeader value of host header\n@return updated ServerRedirect" ]
private void init() { style = new BoxStyle(UNIT); textLine = new StringBuilder(); textMetrics = null; graphicsPath = new Vector<PathSegment>(); startPage = 0; endPage = Integer.MAX_VALUE; fontTable = new FontTable(); }
[ "Internal initialization.\n@throws ParserConfigurationException" ]
[ "Uncheck all items in the list including all sub-items.\n@param list list of CmsTreeItem entries.", "Copy a subsequence of Bytes to specific byte array. Uses the specified offset in the dest byte\narray to start the copy.\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)\n@param dest destination array\n@param destPos starting position in the destination data.\n@exception IndexOutOfBoundsException if copying would cause access of data outside array\nbounds.\n@exception NullPointerException if either <code>src</code> or <code>dest</code> is\n<code>null</code>.\n@since 1.1.0", "Called from the native side\n@param eye", "Initializes custom prefix for all junit4 properties. This must be consistent\nacross all junit4 invocations if done from the same classpath. Use only when REALLY needed.", "Flushes this output stream and forces any buffered output bytes to be written out to the stream. If propagate is\ntrue, the wrapped stream will also be flushed.\n\n@param propagate\nboolean flag to indicate whether the wrapped OutputStream should also be flushed.\n@throws IOException\nif an I/O error occurs.", "calculate arc angle between point a and point b\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Return an artifact regarding its gavc\n\n@param gavc String\n@return DbArtifact", "Called when the end type is changed.", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity" ]
public static void processEntitiesFromWikidataDump( EntityDocumentProcessor entityDocumentProcessor) { // Controller object for processing dumps: DumpProcessingController dumpProcessingController = new DumpProcessingController( "wikidatawiki"); dumpProcessingController.setOfflineMode(OFFLINE_MODE); // // Optional: Use another download directory: // dumpProcessingController.setDownloadDirectory(System.getProperty("user.dir")); // Should we process historic revisions or only current ones? boolean onlyCurrentRevisions; switch (DUMP_FILE_MODE) { case ALL_REVS: case ALL_REVS_WITH_DAILIES: onlyCurrentRevisions = false; break; case CURRENT_REVS: case CURRENT_REVS_WITH_DAILIES: case JSON: case JUST_ONE_DAILY_FOR_TEST: default: onlyCurrentRevisions = true; } // Subscribe to the most recent entity documents of type wikibase item: dumpProcessingController.registerEntityDocumentProcessor( entityDocumentProcessor, null, onlyCurrentRevisions); // Also add a timer that reports some basic progress information: EntityTimerProcessor entityTimerProcessor = new EntityTimerProcessor( TIMEOUT_SEC); dumpProcessingController.registerEntityDocumentProcessor( entityTimerProcessor, null, onlyCurrentRevisions); MwDumpFile dumpFile = null; try { // Start processing (may trigger downloads where needed): switch (DUMP_FILE_MODE) { case ALL_REVS: case CURRENT_REVS: dumpFile = dumpProcessingController .getMostRecentDump(DumpContentType.FULL); break; case ALL_REVS_WITH_DAILIES: case CURRENT_REVS_WITH_DAILIES: MwDumpFile fullDumpFile = dumpProcessingController .getMostRecentDump(DumpContentType.FULL); MwDumpFile incrDumpFile = dumpProcessingController .getMostRecentDump(DumpContentType.DAILY); lastDumpFileName = fullDumpFile.getProjectName() + "-" + incrDumpFile.getDateStamp() + "." + fullDumpFile.getDateStamp(); dumpProcessingController.processAllRecentRevisionDumps(); break; case JSON: dumpFile = dumpProcessingController .getMostRecentDump(DumpContentType.JSON); break; case JUST_ONE_DAILY_FOR_TEST: dumpFile = dumpProcessingController .getMostRecentDump(DumpContentType.DAILY); break; default: throw new RuntimeException("Unsupported dump processing type " + DUMP_FILE_MODE); } if (dumpFile != null) { lastDumpFileName = dumpFile.getProjectName() + "-" + dumpFile.getDateStamp(); dumpProcessingController.processDump(dumpFile); } } catch (TimeoutException e) { // The timer caused a time out. Continue and finish normally. } // Print final timer results: entityTimerProcessor.close(); }
[ "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump" ]
[ "Retrieve a node list based on an XPath expression.\n\n@param document XML document to process\n@param expression compiled XPath expression\n@return node list", "Resets the resend counter and possibly resets the\nnode stage to DONE when previous initialization was\ncomplete.", "Minimize the function starting at the given initial point.", "Function to perform backward activation", "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", "Get content for URL only\n\n@param stringUrl URL to get content\n@return the content\n@throws IOException I/O error happened", "Multiple of gradient windwos per masc relation of x y\n\n@return int[]", "Return the profileId for a path\n\n@param path_id ID of path\n@return ID of profile\n@throws Exception exception", "Converts the http entity to string. If entity is null, returns empty string.\n@param entity\n@return\n@throws IOException" ]
@Override public void solve(DMatrixRBlock B, DMatrixRBlock X) { if( B.blockLength != blockLength ) throw new IllegalArgumentException("Unexpected blocklength in B."); DSubmatrixD1 L = new DSubmatrixD1(decomposer.getT(null)); if( X != null ) { if( X.blockLength != blockLength ) throw new IllegalArgumentException("Unexpected blocklength in X."); if( X.numRows != L.col1 ) throw new IllegalArgumentException("Not enough rows in X"); } if( B.numRows != L.col1 ) throw new IllegalArgumentException("Not enough rows in B"); // L * L^T*X = B // Solve for Y: L*Y = B TriangularSolver_DDRB.solve(blockLength,false,L,new DSubmatrixD1(B),false); // L^T * X = Y TriangularSolver_DDRB.solve(blockLength,false,L,new DSubmatrixD1(B),true); if( X != null ) { // copy the solution from B into X MatrixOps_DDRB.extractAligned(B,X); } }
[ "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X." ]
[ "needs to be resolved once extension beans are deployed", "Convert an integer value into a TimeUnit instance.\n\n@param value time unit value\n@return TimeUnit instance", "For internal use! This method creates real new PB instances", "Deletes all outgoing links of specified entity.\n\n@param entity the entity.", "Cretae a BufferedImage from an ImageProducer.\n@param producer the ImageProducer\n@return a new TYPE_INT_ARGB BufferedImage", "Facade method facilitating the creation of subshell.\nSubshell is created and run inside Command method and shares the same IO and naming strtategy.\n\nRun the obtained Shell with commandLoop().\n\n@param pathElement sub-prompt\n@param parent Shell to be subshell'd\n@param appName The app name string\n@param mainHandler Command handler\n@return subshell", "Use this API to fetch all the dnsview resources that are configured on netscaler.", "Input method, called by a Subscriber indicating its intent into receive notification about a given topic.\n\n@param sr DTO containing the info given by the protocol", "Checks to see if matrix 'a' is the same as this matrix within the specified\ntolerance.\n\n@param a The matrix it is being compared against.\n@param tol How similar they must be to be equals.\n@return If they are equal within tolerance of each other." ]
ModelNode toModelNode() { ModelNode result = null; if (map != null) { result = new ModelNode(); for (Map.Entry<PathAddress, ResourceData> entry : map.entrySet()) { ModelNode item = new ModelNode(); PathAddress pa = entry.getKey(); item.get(ABSOLUTE_ADDRESS).set(pa.toModelNode()); ResourceData rd = entry.getValue(); item.get(RELATIVE_ADDRESS).set(pa.subAddress(baseAddressLength).toModelNode()); ModelNode attrs = new ModelNode().setEmptyList(); if (rd.attributes != null) { for (String attr : rd.attributes) { attrs.add(attr); } } if (attrs.asInt() > 0) { item.get(FILTERED_ATTRIBUTES).set(attrs); } ModelNode children = new ModelNode().setEmptyList(); if (rd.children != null) { for (PathElement pe : rd.children) { children.add(new Property(pe.getKey(), new ModelNode(pe.getValue()))); } } if (children.asInt() > 0) { item.get(UNREADABLE_CHILDREN).set(children); } ModelNode childTypes = new ModelNode().setEmptyList(); if (rd.childTypes != null) { Set<String> added = new HashSet<String>(); for (PathElement pe : rd.childTypes) { if (added.add(pe.getKey())) { childTypes.add(pe.getKey()); } } } if (childTypes.asInt() > 0) { item.get(FILTERED_CHILDREN_TYPES).set(childTypes); } result.add(item); } } return result; }
[ "Report on the filtered data in DMR ." ]
[ "Set the buttons size.", "Displays a localized warning.\n@param caption the caption of the warning.\n@param description the description of the warning.", "Performs the actual spell check query using Solr.\n\n@param request the spell check request\n\n@return Results of the Solr spell check of type SpellCheckResponse or null if something goes wrong.", "Turn a resultset into EndpointOverride\n\n@param results results containing relevant information\n@return EndpointOverride\n@throws Exception exception", "Get info for a given topic reply\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@param replyId\nUnique identifier of a reply for a given topic {@link Reply}.\n@return A group topic\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.replies.getInfo.html\">API Documentation</a>", "Convert this object to a json object.", "Generate a VideoCollection with random data obtained form VIDEO_INFO map. You don't need o\ncreate your own AdapteeCollections. Review ListAdapteeCollection if needed.\n\n@param videoCount size of the collection.\n@return VideoCollection generated.", "Translate the given byte array into a string of 1s and 0s\n\n@param bytes The bytes to translate\n@return The string", "Attach the given link to the classification, while checking for duplicates." ]
protected String statusMsg(final String queue, final Job job) throws IOException { final WorkerStatus status = new WorkerStatus(); status.setRunAt(new Date()); status.setQueue(queue); status.setPayload(job); return ObjectMapperFactory.get().writeValueAsString(status); }
[ "Create and serialize a WorkerStatus.\n\n@param queue the queue the Job came from\n@param job the Job currently being processed\n@return the JSON representation of a new WorkerStatus\n@throws IOException if there was an error serializing the WorkerStatus" ]
[ "Return all objects for the given class.", "Use this API to unset the properties of gslbsite resources.\nProperties that need to be unset are specified in args array.", "Permanently close the ClientRequestExecutor pool. Resources subsequently\nchecked in will be destroyed.", "Retrieve a single field value.\n\n@param id parent entity ID\n@param type field type\n@param fixedData fixed data block\n@param varData var data block\n@return field value", "Use this API to export sslfipskey resources.", "Create an Product delivery\n\n@throws AuthenticationException, GrapesCommunicationException, IOException", "Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plaintext password.\n@param hashed scrypt hashed password.\n\n@return true if passwd matches hashed value.", "Use this API to update cachecontentgroup.", "Checks if template mapper is configured in modules.\n\n@return true if the template mapper is configured in modules" ]
private void readCalendar(Project.Calendars.Calendar calendar, HashMap<BigInteger, ProjectCalendar> map, List<Pair<ProjectCalendar, BigInteger>> baseCalendars) { ProjectCalendar bc = m_projectFile.addCalendar(); bc.setUniqueID(NumberHelper.getInteger(calendar.getUID())); bc.setName(calendar.getName()); BigInteger baseCalendarID = calendar.getBaseCalendarUID(); if (baseCalendarID != null) { baseCalendars.add(new Pair<ProjectCalendar, BigInteger>(bc, baseCalendarID)); } readExceptions(calendar, bc); boolean readExceptionsFromDays = bc.getCalendarExceptions().isEmpty(); Project.Calendars.Calendar.WeekDays days = calendar.getWeekDays(); if (days != null) { for (Project.Calendars.Calendar.WeekDays.WeekDay weekDay : days.getWeekDay()) { readDay(bc, weekDay, readExceptionsFromDays); } } else { bc.setWorkingDay(Day.SUNDAY, DayType.DEFAULT); bc.setWorkingDay(Day.MONDAY, DayType.DEFAULT); bc.setWorkingDay(Day.TUESDAY, DayType.DEFAULT); bc.setWorkingDay(Day.WEDNESDAY, DayType.DEFAULT); bc.setWorkingDay(Day.THURSDAY, DayType.DEFAULT); bc.setWorkingDay(Day.FRIDAY, DayType.DEFAULT); bc.setWorkingDay(Day.SATURDAY, DayType.DEFAULT); } readWorkWeeks(calendar, bc); map.put(calendar.getUID(), bc); m_eventManager.fireCalendarReadEvent(bc); }
[ "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of base calendars" ]
[ "Convert maturity given as offset in months to year fraction.\n\n@param maturityInMonths The maturity as offset in months.\n@return The maturity as year fraction.", "Convenience method for first removing all enum style constants and then adding the single one.\n\n@see #removeEnumStyleNames(UIObject, Class)\n@see #addEnumStyleName(UIObject, Style.HasCssName)", "This method performs a set of queries to retrieve information\nfrom the an MPP or an MPX file.\n\n@param filename name of the MPX file\n@throws Exception on file read error", "Create the function. Be sure to handle all possible input types and combinations correctly and provide\nmeaningful error messages. The output matrix should be resized to fit the inputs.", "get target hosts from line by line.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the list\n@throws TargetHostsLoadException\nthe target hosts load exception", "Sets the replace var map to single target from map.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "Use this API to fetch sslcipher resources of given names .", "Fills the week panel with checkboxes.", "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@param value The element's new value." ]
public static void checkSvdMatrixSize(DMatrixRMaj U, boolean tranU, DMatrixRMaj W, DMatrixRMaj V, boolean tranV ) { int numSingular = Math.min(W.numRows,W.numCols); boolean compact = W.numRows == W.numCols; if( compact ) { if( U != null ) { if( tranU && U.numRows != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix U"); else if( !tranU && U.numCols != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix U"); } if( V != null ) { if( tranV && V.numRows != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix V"); else if( !tranV && V.numCols != numSingular ) throw new IllegalArgumentException("Unexpected size of matrix V"); } } else { if( U != null && U.numRows != U.numCols ) throw new IllegalArgumentException("Unexpected size of matrix U"); if( V != null && V.numRows != V.numCols ) throw new IllegalArgumentException("Unexpected size of matrix V"); if( U != null && U.numRows != W.numRows ) throw new IllegalArgumentException("Unexpected size of W"); if( V != null && V.numRows != W.numCols ) throw new IllegalArgumentException("Unexpected size of W"); } }
[ "Checks to see if all the provided matrices are the expected size for an SVD. If an error is encountered\nthen an exception is thrown. This automatically handles compact and non-compact formats" ]
[ "Read one collection element from the current row of the JDBC result set\n\n@param optionalOwner the collection owner\n@param optionalKey the collection key\n@param persister the collection persister\n@param descriptor the collection aliases\n@param rs the result set\n@param session the session\n@throws HibernateException if an error occurs\n@throws SQLException if an error occurs during the query execution", "This method returns the string representation of an object. In most\ncases this will simply involve calling the normal toString method\non the object, but a couple of exceptions are handled here.\n\n@param o the object to formatted\n@return formatted string representing input Object", "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix.", "If requested, adjust the bounds to the nearest scale and the map size.\n\n@param mapValues Map parameters.\n@param paintArea The size of the painting area.\n@param bounds The map bounds.\n@param dpi the DPI.", "Sets left and right padding for all cells in the table.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining", "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Retains only beans which are enabled.\n\n@param beans The mutable set of beans to filter\n@param beanManager The bean manager\n@return a mutable set of enabled beans", "Checks to see if a WORD matches the name of a macro. if it does it applies the macro at that location", "The CommandContext can be retrieved thatnks to the ExecutableBuilder." ]
private void resetStoreDefinitions(Set<String> storeNamesToDelete) { // Clear entries in the metadata cache for(String storeName: storeNamesToDelete) { this.metadataCache.remove(storeName); this.storeDefinitionsStorageEngine.delete(storeName, null); this.storeNames.remove(storeName); } }
[ "Function to clear all the metadata related to the given store\ndefinitions. This is needed when a put on 'stores.xml' is called, thus\nreplacing the existing state.\n\nThis method is not thread safe. It is expected that the caller of this\nmethod will handle concurrency related issues.\n\n@param storeNamesToDelete" ]
[ "Scan all the class path and look for all classes that have the Format\nAnnotations.", "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", "Gets the Topsoe divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Topsoe divergence between p and q.", "Finds the magnitude of the largest element in the row\n@param A Complex matrix\n@param row Row in A\n@param col0 First column in A to be copied\n@param col1 Last column in A + 1 to be copied\n@return magnitude of largest element", "Number of failed actions in scheduler", "Take screenshot of the current window.\n\n@param target The target type/format of the Screenshot\n@return Screenshot of current window, in the requested format", "Constructs the appropriate MenuDrawer based on the position.", "Use this API to disable snmpalarm resources of given names.", "Create a directory at the given path if it does not exist yet.\n\n@param path\nthe path to the directory\n@throws IOException\nif it was not possible to create a directory at the given\npath" ]
public void addCommandClass(ZWaveCommandClass commandClass) { ZWaveCommandClass.CommandClass key = commandClass.getCommandClass(); if (!supportedCommandClasses.containsKey(key)) { supportedCommandClasses.put(key, commandClass); } }
[ "Adds a command class to the list of supported command classes by this\nendpoint. Does nothing if command class is already added.\n@param commandClass the command class instance to add." ]
[ "Sets the time to wait when close connection watch threads are enabled. 0 = wait forever.\n@param closeConnectionWatchTimeout the watchTimeout to set\n@param timeUnit Time granularity", "Start the first inner table of a class.", "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", "Use this API to fetch lbmonitor_binding resources of given names .", "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.", "Clears the handler hierarchy.", "Sorts the given array into sorted order using the given comparator.\n\n@param self the array to be sorted\n@param comparator a Comparator used for the comparison\n@return the sorted array\n@since 1.5.5", "Prints text to output stream, replacing parameter start and end\nplaceholders\n\n@param text the String to print", "Convert an object to a list.\n\n@param mapper the object mapper\n@param source the source object\n@param targetElementType the target list element type\n@return list" ]
public void deleteRebalancingState(RebalanceTaskInfo stealInfo) { // acquire write lock writeLock.lock(); try { RebalancerState rebalancerState = getRebalancerState(); if(!rebalancerState.remove(stealInfo)) throw new IllegalArgumentException("Couldn't find " + stealInfo + " in " + rebalancerState + " while deleting"); if(rebalancerState.isEmpty()) { logger.debug("Cleaning all rebalancing state"); cleanAllRebalancingState(); } else { put(REBALANCING_STEAL_INFO, rebalancerState); initCache(REBALANCING_STEAL_INFO); } } finally { writeLock.unlock(); } }
[ "Delete the partition steal information from the rebalancer state\n\n@param stealInfo The steal information to delete" ]
[ "Return the value from the field in the object that is defined by this FieldType. If the field is a foreign object\nthen the ID of the field is returned instead.", "This method retrieves the offset of a given entry in the Var2Data block.\nEach entry can be uniquely located by the identifier of the object to\nwhich the data belongs, and the type of the data.\n\n@param id unique identifier of an entity\n@param type data type identifier\n@return offset of requested item", "Pretty-print the object.", "If any of the given list of properties are not found, returns the\nname of that property. Otherwise, returns null.", "Sends the collected dependencies over to the master and record them.", "Create an element that represents a horizntal or vertical line.\n@param x1\n@param y1\n@param x2\n@param y2\n@return the created DOM element", "Generic string joining function.\n@param strings Strings to be joined\n@param fixCase does it need to fix word case\n@param withChar char to join strings with.\n@return joined-string", "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.", "Read the project data and return a ProjectFile instance.\n\n@return ProjectFile instance" ]
public void setProgressBackgroundColor(int colorRes) { mCircleView.setBackgroundColor(colorRes); mProgress.setBackgroundColor(getResources().getColor(colorRes)); }
[ "Set the background color of the progress spinner disc.\n\n@param colorRes Resource id of the color." ]
[ "Print a date time value.\n\n@param value date time value\n@return string representation", "Use this API to count sslcertkey_crldistribution_binding resources configued on NetScaler.", "read a producer request from buffer\n\n@param buffer data buffer\n@return parsed producer request", "Checks if the DPI value is already set for GeoServer.", "Reads next frame image.", "Convert this object to a json array.", "Sets a client option per-request\n\n@param key Option name\n@param value Option value\n@return The request itself", "This method lists all resource assignments defined in the file.\n\n@param file MPX file", "Use this API to flush cacheobject resources." ]
public int size() { int size = cleared ? 0 : snapshot.size(); for ( Map.Entry<RowKey,AssociationOperation> op : currentState.entrySet() ) { switch ( op.getValue().getType() ) { case PUT: if ( cleared || !snapshot.containsKey( op.getKey() ) ) { size++; } break; case REMOVE: if ( !cleared && snapshot.containsKey( op.getKey() ) ) { size--; } break; } } return size; }
[ "Returns the number of rows within this association.\n\n@return the number of rows within this association" ]
[ "Merge two maps of configuration properties. If the original contains a mapping for the same key, the new mapping is ignored.\n\n@param original\n@param toMerge", "detect if WS Addressing feature already enabled.\n\n@param provider the interceptor provider\n@param bus the bus\n@return true, if successful", "Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a question mark or a token in the style\nof {@link ParameterizedPreparedStatementCreator}, e.g. \":foo\".", "Helper method that encapsulates the minimum logic for adding a job to a\nqueue.\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", "Handle a \"current till end\" change event.\n@param event the change event.", "Performs an efficient update of each columns' norm", "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Reports a given exception as a RuntimeException, since the interface does\nnot allow us to throw checked exceptions directly.\n\n@param e\nthe exception to report\n@throws RuntimeException\nin all cases", "Initializes the alarm sensor command class. Requests the supported alarm types." ]
public static String readContent(InputStream is) { String ret = ""; try { String line; BufferedReader in = new BufferedReader(new InputStreamReader(is)); StringBuffer out = new StringBuffer(); while ((line = in.readLine()) != null) { out.append(line).append(CARRIAGE_RETURN); } ret = out.toString(); } catch (Exception e) { e.printStackTrace(); } return ret; }
[ "Gets string content from InputStream\n\n@param is InputStream to read\n@return InputStream content" ]
[ "Asta Powerproject assigns an explicit calendar for each task. This method\nis used to find the most common calendar and use this as the default project\ncalendar. This allows the explicitly assigned task calendars to be removed.", "Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler.\n@param fromObservable the source observable\n@param toValue the value to emit to the observer\n@param <T> the type of the value to emit\n@return an observable emitting the specified value", "Generate an opaque pagination token from the supplied PageMetadata.\n\n@param pageMetadata page metadata of the page for which the token should be generated\n@return opaque pagination token", "Processes the template if the current object on the specified level has a non-empty name.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"", "Default implementation returns unmodified original Query\n\n@see org.apache.ojb.broker.accesslayer.QueryCustomizer#customizeQuery", "Check the variable name and if not set, set it with the singleton variable being on the top of the stack.", "Generates a JSON patch for transforming the source node into the target node.\n\n@param source the node to be patched\n@param target the expected result after applying the patch\n@param replaceMode the replace mode to be used\n@return the patch as a {@link JsonPatch}", "Only meant to be called once\n\n@throws Exception exception", "Get the default providers list to be used.\n\n@return the default provider list and ordering, not null." ]
private static Constructor retrieveCollectionProxyConstructor(Class proxyClass, Class baseType, String typeDesc) { if(proxyClass == null) { throw new MetadataException("No " + typeDesc + " specified."); } if(proxyClass.isInterface() || Modifier.isAbstract(proxyClass.getModifiers()) || !baseType.isAssignableFrom(proxyClass)) { throw new MetadataException("Illegal class " + proxyClass.getName() + " specified for " + typeDesc + ". Must be a concrete subclass of " + baseType.getName()); } Class[] paramType = {PBKey.class, Class.class, Query.class}; try { return proxyClass.getConstructor(paramType); } catch(NoSuchMethodException ex) { throw new MetadataException("The class " + proxyClass.getName() + " specified for " + typeDesc + " is required to have a public constructor with signature (" + PBKey.class.getName() + ", " + Class.class.getName() + ", " + Query.class.getName() + ")."); } }
[ "Retrieves the constructor that is used by OJB to create instances of the given collection proxy\nclass.\n\n@param proxyClass The proxy class\n@param baseType The required base type of the proxy class\n@param typeDesc The type of collection proxy\n@return The constructor" ]
[ "This method allows a pre-existing resource calendar to be attached to a\nresource.\n\n@param calendar resource calendar", "Entry point with no system exit", "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", "Create a local target.\n\n@param jbossHome the jboss home\n@param moduleRoots the module roots\n@param bundlesRoots the bundle roots\n@return the local target\n@throws IOException", "Calculates the size based constraint width and height if present, otherwise from children sizes.", "Returns an array specifing the index of each hull vertex with respect to\nthe original input points.\n\n@return vertex indices with respect to the original points", "Use this API to fetch all the linkset resources that are configured on netscaler.", "Assign to the data object the val corresponding to the fieldType.", "Calculates the legend bounds for a custom list of legends." ]
protected void animateOffsetTo(int position, int velocity, boolean animate) { endDrag(); endPeek(); final int startX = (int) mOffsetPixels; final int dx = position - startX; if (dx == 0 || !animate) { setOffsetPixels(position); setDrawerState(position == 0 ? STATE_CLOSED : STATE_OPEN); stopLayerTranslation(); return; } int duration; velocity = Math.abs(velocity); if (velocity > 0) { duration = 4 * Math.round(1000.f * Math.abs((float) dx / velocity)); } else { duration = (int) (600.f * Math.abs((float) dx / mMenuSize)); } duration = Math.min(duration, mMaxAnimationDuration); animateOffsetTo(position, duration); }
[ "Moves the drawer to the position passed.\n\n@param position The position the content is moved to.\n@param velocity Optional velocity if called by releasing a drag event.\n@param animate Whether the move is animated." ]
[ "Count the number of occurrences of a sub CharSequence.\n\n@param self a CharSequence\n@param text a sub CharSequence\n@return the number of occurrences of the given CharSequence inside this CharSequence\n@see #count(String, String)\n@since 1.8.2", "Perform the work of processing the various OperationContext.Stage queues, and then the DONE stage.", "Use this API to update vserver.", "Searches for cases where a minus sign means negative operator. That happens when there is a minus\nsign with a variable to its right and no variable to its left\n\nExample:\na = - b * c", "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", "Removes obsolete elements from names and shared elements.\n\n@param names Shared element names.\n@param sharedElements Shared elements.\n@param elementsToRemove The elements that should be removed.", "Returns a time interval as Solr compatible query string.\n@param searchField the field to search for.\n@param startTime the lower limit of the interval.\n@param endTime the upper limit of the interval.\n@return Solr compatible query string.", "Initialize the ui elements for the management part.", "Notification that the server process finished." ]
public static int count(CharSequence self, CharSequence text) { int answer = 0; for (int idx = 0; true; idx++) { idx = self.toString().indexOf(text.toString(), idx); // break once idx goes to -1 or for case of empty string once // we get to the end to avoid JDK library bug (see GROOVY-5858) if (idx < answer) break; ++answer; } return answer; }
[ "Count the number of occurrences of a sub CharSequence.\n\n@param self a CharSequence\n@param text a sub CharSequence\n@return the number of occurrences of the given CharSequence inside this CharSequence\n@see #count(String, String)\n@since 1.8.2" ]
[ "Get random stub matching this user type\n@param userType User type\n@return Random stub", "Retrieve all References\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true loading is forced even if cld differs.", "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character Character.MIN_VALUE.\n\n@param self a CharSequence\n@return a value obtained by incrementing the toString() of the CharSequence\n@since 1.8.2", "Converts the bytes that make up an internet address into the corresponding integer value to make\nit easier to perform bit-masking operations on them.\n\n@param address an address whose integer equivalent is desired\n\n@return the integer corresponding to that address", "Add new control at the end of control bar with specified touch listener.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param properties JSON control specific properties\n@param listener touch listener", "Loads the schemas associated to this catalog.", "Obtain collection of Parameters from request\n\n@param dataArray request parameters\n@return Map of parameters\n@throws Exception exception", "Convert Collection to Set\n@param collection Collection\n@return Set", "Executes the API action \"wbsetaliases\" for the given parameters.\n\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param add\nthe values of the aliases to add. They will be merged with the\nexisting aliases. This parameter cannot be used in conjunction\nwith \"set\".\n@param remove\nthe values of the aliases to remove. Other aliases will be retained.\nThis parameter cannot be used in conjunction with \"set\".\n@param set\nthe values of the aliases to set. This will erase any existing\naliases in this language and replace them by the given list.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException" ]
public void drawImage(Image img, Rectangle rect, Rectangle clipRect) { drawImage(img, rect, clipRect, 1); }
[ "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds" ]
[ "Set 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.", "Given a list of typedDependencies, returns true if the node \"node\" is the\ngovernor of a conj relation with a dependent which is not a preposition\n\n@param node\nA node in this GrammaticalStructure\n@param list\nA list of typedDependencies\n@return true If node is the governor of a conj relation in the list with\nthe dep not being a preposition", "Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception.", "Tells you if the date part of a datetime is in a certain time range.", "Term prefix.\n\n@param term\nthe term\n@return the string", "Calculated the numeraire relative value of an underlying swap leg.\n\n@param model The Monte Carlo model.\n@param legSchedule The schedule of the leg.\n@param paysFloat If true a floating rate is payed.\n@param swaprate The swaprate. May be 0.0 for pure floating leg.\n@param notional The notional.\n@return The sum of the numeraire relative cash flows.\n@throws CalculationException Thrown if underlying model failed to calculate stochastic process.", "Use this API to update ntpserver.", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Returns the port as configured by the system variables, fallback is the default port value\n\n@param portIdentifier - SYS_*_PORT defined in Constants\n@return" ]
public boolean checkRead(TransactionImpl tx, Object obj) { if (hasReadLock(tx, obj)) { return true; } LockEntry writer = getWriter(obj); if (writer.isOwnedBy(tx)) { return true; } return false; }
[ "checks whether the specified Object obj is read-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false" ]
[ "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", "Converts this object to JSON.\n\n@return the JSON representation\n\n@throws JSONException if JSON operations fail", "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", "Await a state.\n\n@param expected the expected state\n@return {@code true} if the state was reached, {@code false} otherwise", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.\nThis uses nspbr6_args which is a way to provide additional arguments while fetching the resources.", "Notification that a connection was closed.\n\n@param closed the closed connection", "Use this API to update snmpoption.", "Returns the perma link for the current page based on the URI and detail content id stored in the CmsObject passed as a parameter.<p<\n\n@param cms the CMS context to use to generate the permalink\n\n@return the permalink", "Returns an attribute's list value from a non-main section of this JAR's manifest.\nThe attributes string value will be split on whitespace into the returned list.\nThe returned list may be safely modified.\n\n@param section the manifest's section\n@param name the attribute's name" ]
private WmsLayer getLayer(String layerId) { RasterLayer layer = configurationService.getRasterLayer(layerId); if (layer instanceof WmsLayer) { return (WmsLayer) layer; } return null; }
[ "Given a layer ID, search for the WMS layer.\n\n@param layerId layer id\n@return WMS layer or null if layer is not a WMS layer" ]
[ "Gets the host-ignore data for a slave host running the given version.\n\n@param major the kernel management API major version\n@param minor the kernel management API minor version\n@param micro the kernel management API micro version\n\n@return the host-ignore data, or {@code null} if there is no matching registration", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception", "Sets all dates in the list.\n@param dates the dates to set\n@param checked flag, indicating if all should be checked or unchecked.", "Set the name to be used in announcing our presence on the network. The name can be no longer than twenty\nbytes, and should be normal ASCII, no Unicode.\n\n@param name the device name to report in our presence announcement packets.", "Load and run the OnBrowserCreatedPlugins, this call has been made from the browser pool when a\nnew browser has been created and ready to be used by the Crawler. The PreCrawling plugins are\nexecuted before these plugins are executed except that the pre-crawling plugins are only\nexecuted on the first created browser.\n\n@param newBrowser the new created browser object", "Gets the value for the key.\n\n@param key the key to check for the value\n\n@return the value or an empty collection if no values were set", "1-D Gaussian function.\n\n@param x value.\n@return Function's value at point x.", "Creates a Bytes object by copying the value of the given String", "The Baseline Start field shows the planned beginning date for a task at\nthe time you saved a baseline. Information in this field becomes available\nwhen you set a baseline.\n\n@return Date" ]
public static BoxRetentionPolicyAssignment.Info createAssignmentToMetadata(BoxAPIConnection api, String policyID, String templateID, MetadataFieldFilter... filter) { JsonObject assignTo = new JsonObject().add("type", TYPE_METADATA).add("id", templateID); JsonArray filters = null; if (filter.length > 0) { filters = new JsonArray(); for (MetadataFieldFilter f : filter) { filters.add(f.getJsonObject()); } } return createAssignment(api, policyID, assignTo, filters); }
[ "Assigns a retention policy to all items with a given metadata template, optionally matching on fields.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param templateID the ID of the metadata template to assign the policy to.\n@param filter optional fields to match against in the metadata template.\n@return info about the created assignment." ]
[ "Use this API to fetch cachepolicylabel_binding resource of given name .", "Stores a public key mapping.\n@param original\n@param substitute", "Use this API to fetch cachepolicylabel_binding resource of given name .", "Simple, high-level API to enable or disable eye picking for this scene\nobject.\n\nThe {@linkplain #attachCollider low-level\nAPI} gives you a lot of control over eye picking, but it does involve an\nawful lot of details. This method\n(and {@link #getPickingEnabled()}) provides a simple boolean property.\nIt attaches a GVRSphereCollider to the scene object. If you want more\naccurate picking, you can use {@link #attachComponent(GVRComponent)} to attach a\nmesh collider instead. The mesh collider is more accurate but also\ncosts more to compute.\n\n@param enabled\nShould eye picking 'see' this scene object?\n\n@since 2.0.2\n@see GVRSphereCollider\n@see GVRMeshCollider", "Update all the links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Get HttpResourceModel which matches the HttpMethod of the request.\n\n@param routableDestinations List of ResourceModels.\n@param targetHttpMethod HttpMethod.\n@param requestUri request URI.\n@return RoutableDestination that matches httpMethod that needs to be handled. null if there are no matches.", "Writes the data collected about properties to a file.", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors" ]
private RelationType getRelationType(int type) { RelationType result; if (type > 0 && type < RELATION_TYPES.length) { result = RELATION_TYPES[type]; } else { result = RelationType.FINISH_START; } return result; }
[ "Convert an integer to a RelationType instance.\n\n@param type integer value\n@return RelationType instance" ]
[ "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", "Return the available format ids.", "To populate the dropdown list from the jelly", "Sets an element in at the specified index.", "Adds a set of tests based on pattern matching.", "A henson navigator is a class that helps a consumer to consume the navigation api that it\ndeclares in its dependencies. The henson navigator will wrap the intent builders. Thus, a\nhenson navigator, is driven by consumption of intent builders, whereas the henson classes are\ndriven by the production of an intent builder.\n\n<p>This task is created per android variant:\n\n<ul>\n<li>we scan the variant compile configuration for navigation api dependencies\n<li>we generate a henson navigator class for this variant that wraps the intent builders\n</ul>\n\n@param variant the variant for which to create a builder.\n@param hensonNavigatorPackageName the package name in which we create the class.", "Use this API to fetch the statistics of all service_stats resources that are configured on netscaler.", "Start component timer for current instance\n@param type - of component", "Put new sequence object for given sequence name.\n@param sequenceName Name of the sequence.\n@param seq The sequence object to add." ]
protected I_CmsSearchDocument appendFieldMappingsFromElementsOnThePage( I_CmsSearchDocument document, CmsObject cms, CmsResource resource, List<String> systemFields) { try { CmsFile file = cms.readFile(resource); CmsXmlContainerPage containerPage = CmsXmlContainerPageFactory.unmarshal(cms, file); CmsContainerPageBean containerBean = containerPage.getContainerPage(cms); if (containerBean != null) { for (CmsContainerElementBean element : containerBean.getElements()) { element.initResource(cms); CmsResource elemResource = element.getResource(); Set<CmsSearchField> mappedFields = getXSDMappingsForPage(cms, elemResource); if (mappedFields != null) { for (CmsSearchField field : mappedFields) { if (!systemFields.contains(field.getName())) { document = appendFieldMapping( document, field, cms, elemResource, CmsSolrDocumentXmlContent.extractXmlContent(cms, elemResource, getIndex()), cms.readPropertyObjects(resource, false), cms.readPropertyObjects(resource, true)); } else { LOG.error( Messages.get().getBundle().key( Messages.LOG_SOLR_ERR_MAPPING_TO_INTERNALLY_USED_FIELD_3, elemResource.getRootPath(), field.getName(), resource.getRootPath())); } } } } } } catch (CmsException e) { // Should be thrown if element on the page does not exist anymore - this is possible, but not necessarily an error. // Hence, just notice it in the debug log. if (LOG.isDebugEnabled()) { LOG.debug(e.getLocalizedMessage(), e); } } return document; }
[ "Adds search fields from elements on a container page to a container page's document.\n@param document The document for the container page\n@param cms The current CmsObject\n@param resource The resource of the container page\n@param systemFields The list of field names for fields where mappings to should be discarded, since these fields are used system internally.\n@return the manipulated document" ]
[ "Get a list of referrers from a given domain to a user's photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\n@param 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.getPhotostreamReferrers.html\"", "calculate the difference of the two maps, so we know what was added, removed & updated\n@param left\n@param right\n@param onlyOnLeft\n@param onlyOnRight\n@param updated", "Use this API to fetch auditsyslogpolicy_aaauser_binding resources of given name .", "Returns the Class object of the Event implementation.", "Get the element as a boolean.\n\n@param i the index of the element to access", "This method returns the length of overlapping time between two time\nranges.\n\n@param start1 start of first range\n@param end1 end of first range\n@param start2 start start of second range\n@param end2 end of second range\n@return overlapping time in milliseconds", "Obtains a Symmetry010 local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Function to perform backward activation", "add a Component to this Worker. After the call dragging is enabled for this\nComponent.\n@param c the Component to register" ]