query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void add(ResourceCollection rc) { if (rc instanceof FileSet) { FileSet fs = (FileSet) rc; fs.setProject(getProject()); } resources.add(rc); }
[ "Adds a resource collection with execution hints." ]
[ "This method formats a time unit.\n\n@param timeUnit time unit instance\n@return formatted time unit instance", "Checks whether the given set of properties is available.\n\n@param keys the keys to check\n@return true if all properties are available, false otherwise", "Answer the FieldConversions for the PkFields\n@param cld\n@return the pk FieldConversions", "Formats a percentage value.\n\n@param number MPXJ percentage value\n@return Primavera percentage value", "moves to the next row of the underlying ResultSet and returns the\ncorresponding Object materialized from this row.", "Used to set the complex value of a matrix element.\n@param row The row of the element.\n@param col The column of the element.\n@param real Real component of assigned value\n@param imaginary Imaginary component of assigned value", "Measure all children from container if needed\n@param measuredChildren the list of measured children\nmeasuredChildren list can be passed as null if it's not needed to\ncreate the list of the measured items\n@return true if the layout was recalculated, otherwise - false", "Gets the index of a ExpandableWrapper within the helper item list based on\nthe index of the ExpandableWrapper.\n\n@param parentPosition The index of the parent in the list of parents\n@return The index of the parent in the merged list of children and parents", "Returns the value of the identified field as an Integer.\n@param fieldName the name of the field\n@return the value of the field as an Integer\n@throws FqlException if the field cannot be expressed as an Integer" ]
public boolean isHomeKeyPresent() { final GVRApplication application = mApplication.get(); if (null != application) { final String model = getHmtModel(); if (null != model && model.contains("R323")) { return true; } } return false; }
[ "Does the headset the device is docked into have a dedicated home key\n@return" ]
[ "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException", "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object", "Get a list of topics from a group.\n\n@param groupId\nUnique identifier of a group returns a list of topics for a given group {@link Group}.\n@param perPage\nNumber of records per page.\n@param page\nResult-section.\n@return A group topic list\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.topics.getList.html\">API Documentation</a>", "Get a new token.\n\n@return 14 character String", "Reads input data from a JSON file in the output directory.", "Helper method to send message on outputStream and account for network\ntime stats.\n\n@param outputStream\n@param message\n@throws IOException", "Returns a File object whose path is the expected user directory.\nDoes not create or check for existence.\n@param prefix\n@param suffix\n@param parent\n@return", "Ensure that the node is not null.\n\n@param node the node to ensure to be not null\n@param expression the expression was used to find the node\n@throws SpinXPathException if the node is null", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}" ]
public static boolean containsOnlyNull(Object... values){ for(Object o : values){ if(o!= null){ return false; } } return true; }
[ "Check that an array only contains null elements.\n@param values, can't be null\n@return" ]
[ "Release transaction that was acquired in a thread with specified permits.", "Checks whether every property except 'preferred' is satisfied\n\n@return", "Method to get the file writer required for the .story files\n\n@param scenarioName\n@param aux_package_path\n@param dest_dir\n@return The file writer that generates the .story files for each test\n@throws BeastException", "Gets the pathClasses.\nA Map containing hints about what Class to be used for what path segment\nIf local instance not set, try parent Criteria's instance. If this is\nthe top-level Criteria, try the m_query's instance\n@return Returns a Map", "Log a warning for the given operation at the provided address for the given attribute, using the provided detail\nmessage.\n\n@param address where warning occurred\n@param operation where which problem occurred\n@param message custom error message to append\n@param attribute attribute we that has problem", "Retrieves a string value from the property data.\n\n@param type Type identifier\n@return string value", "Creates a new Box Developer Edition connection with App User token.\n@param userId the user ID to use for an App User.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "Set the model used by the right table.\n\n@param model table model", "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." ]
public static void setSourceLevelUrisWithoutCopy(final ResourceSet resourceSet, final Set<URI> uris) { final SourceLevelURIsAdapter adapter = SourceLevelURIsAdapter.findOrCreateAdapter(resourceSet); adapter.sourceLevelURIs = uris; }
[ "Installs the given set of URIs as the source level URIs. Does not copy the given\nset but uses it directly." ]
[ "Extract a list of exception assignments.\n\n@param exceptionData string representation of exception assignments\n@return list of exception assignment rows", "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", "Send a get artifacts request\n\n@param hasLicense\n@return list of artifact\n@throws GrapesCommunicationException", "Returns an instance of the CleverTap SDK.\n\n@param context The Android context\n@return The {@link CleverTapAPI} object\n@deprecated use {@link CleverTapAPI#getDefaultInstance(Context context)}", "Main render algorithm based on render the video thumbnail, render the title, render the marker\nand the label.", "Validates the deployment.\n\n@param isDomain {@code true} if this is a domain server, otherwise {@code false}\n\n@throws MojoDeploymentException if the deployment is invalid", "Connects to the comm port and starts send and receive threads.\n@param serialPortName the port name to open\n@throws SerialInterfaceException when a connection error occurs.", "Parse a comma-delimited list of method names into a List of strings.\nWhitespace is ignored.\n\n@param methods the comma delimited list of methods from the spring configuration\n\n@return List&lt;String&gt;", "Scans the scene graph to collect picked items\nand generates appropriate pick and touch events.\nThis function is called by the cursor controller\ninternally but can also be used to funnel a\nstream of Android motion events into the picker.\n@see #pickObjects(GVRScene, float, float, float, float, float, float)\n@param touched true if the \"touched\" button is pressed.\nWhich button indicates touch is controller dependent.\n@param event Android MotionEvent which caused the pick\n@see IPickEvents\n@see ITouchEvents" ]
public Duration getWork(Date date, TimeUnit format) { ProjectCalendarDateRanges ranges = getRanges(date, null, null); long time = getTotalTime(ranges); return convertFormat(time, format); }
[ "Retrieves the amount of work on a given day, and\nreturns it in the specified format.\n\n@param date target date\n@param format required format\n@return work duration" ]
[ "Add authentication information for the given host\n@param host the host\n@param credentials the credentials\n@param authScheme the scheme for preemptive authentication (should be\n<code>null</code> if adding authentication for a proxy server)\n@param context the context in which the authentication information\nshould be saved", "Use this API to fetch all the dnsnsecrec resources that are configured on netscaler.", "convert Event bean to EventType manually.\n\n@param event the event\n@return the event type", "Generates JUnit 4 RunListener instances for any user defined RunListeners", "Get the column name from the indirection table.\n@param mnAlias\n@param path", "Loads a CRF classifier from an InputStream, and returns it. This method\ndoes not buffer the InputStream, so you should have buffered it before\ncalling this method.\n\n@param in\nInputStream to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Gets the value of the task property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the task property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetTask().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link GanttDesignerRemark.Task }", "Try Oracle update batching and call setExecuteBatch or revert to\nJDBC update batching. See 12-2 Update Batching in the Oracle9i\nJDBC Developer's Guide and Reference.\n@param stmt the prepared statement to be used for batching\n@throws PlatformException upon JDBC failure", "Returns all the persistent id generators which potentially require the creation of an object in the schema." ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher addFacet(String... attributes) { for (String attribute : attributes) { final Integer value = facetRequestCount.get(attribute); facetRequestCount.put(attribute, value == null ? 1 : value + 1); if (value == null || value == 0) { facets.add(attribute); } } rebuildQueryFacets(); return this; }
[ "Adds one or several attributes to facet on for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining." ]
[ "a small static helper to set the image from the imageHolder nullSave to the imageView\n\n@param imageHolder\n@param imageView\n@param tag used to identify imageViews and define different placeholders\n@return true if an image was set", "Extract schema of the key field", "Remove a column from the Document\n\n@param entity the {@link Document} with the column\n@param column the column to remove", "Acquire the exclusive lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Use this API to fetch appfwpolicy_csvserver_binding resources of given name .", "Use this API to fetch all the appfwlearningdata resources that are configured on netscaler.\nThis uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources.", "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.", "mark a node as blacklisted\n\n@param nodeId Integer node id of the node to be blacklisted", "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" ]
@Override public boolean decompose( ZMatrixRMaj A ) { if( A.numRows != A.numCols ) throw new IllegalArgumentException("A must be square."); if( A.numRows <= 0 ) return false; QH = A; N = A.numCols; if( b.length < N*2 ) { b = new double[ N*2 ]; gammas = new double[ N ]; u = new double[ N*2 ]; } return _decompose(); }
[ "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not." ]
[ "Returns a string representation of the receiver, containing\nthe String representation of each key-value pair, sorted ascending by value.", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions", "Read an individual remark type from a Gantt Designer file.\n\n@param remark remark type", "Obtains a British Cutover local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the British Cutover local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Returns a File object whose path is the expected user directory.\nDoes not create or check for existence.\n@param prefix\n@param suffix\n@param parent\n@return", "Read an exception day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT exception day", "Append the data of another lattice to this lattice. If the other lattice follows a different quoting convention, it is automatically converted.\nHowever, this method does not check, whether the two lattices are aligned in terms of reference date, curve names and meta schedules.\nIf the two lattices have shared data points, the data from this lattice will be overwritten.\n\n@param other The lattice containing the data to be appended.\n@param model The model to use for context, in case the other lattice follows a different convention.\n\n@return The lattice with the combined swaption entries.", "Disallow the job type from being executed.\n@param jobType the job type to disallow", "Sets the drawable used as the drawer indicator.\n\n@param drawable The drawable used as the drawer indicator." ]
public static IPAddressSeqRange[] join(IPAddressSeqRange... ranges) { int joinedCount = 0; Arrays.sort(ranges, Address.ADDRESS_LOW_VALUE_COMPARATOR); for(int i = 0; i < ranges.length; i++) { IPAddressSeqRange range = ranges[i]; if(range == null) { continue; } for(int j = i + 1; j < ranges.length; j++) { IPAddressSeqRange range2 = ranges[j]; if(range2 == null) { continue; } IPAddress upper = range.getUpper(); IPAddress lower = range2.getLower(); if(compareLowValues(upper, lower) >= 0 || upper.increment(1).equals(lower)) { //join them ranges[i] = range = range.create(range.getLower(), range2.getUpper()); ranges[j] = null; joinedCount++; } else break; } } if(joinedCount == 0) { return ranges; } IPAddressSeqRange joined[] = new IPAddressSeqRange[ranges.length - joinedCount]; for(int i = 0, j = 0; i < ranges.length; i++) { IPAddressSeqRange range = ranges[i]; if(range == null) { continue; } joined[j++] = range; if(j >= joined.length) { break; } } return joined; }
[ "Joins the given ranges into the fewest number of ranges.\nIf no joining can take place, the original array is returned.\n\n@param ranges\n@return" ]
[ "Return all option names that not already have a value\nand is enabled", "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", "Checks that the data starting at startLocRecord looks like a local file record header.\n\n@param channel the channel\n@param startLocRecord offset into channel of the start of the local record\n@param compressedSize expected compressed size of the file, or -1 to indicate this isn't known", "Creates an operations that targets the valiadating handler.\n\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "Loads configuration from File. Later loads have lower priority.\n\n@param file File to load from\n@since 1.2.0", "Write an int to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The int to write\n@param offset The offset to begin writing at", "Process encoded payload.\n\n@throws IOException Signals that an I/O exception has occurred.", "Remove a part of a CharSequence by replacing the first occurrence\nof target within self with '' and returns the result.\n\n@param self a CharSequence\n@param target an object representing the part to remove\n@return a String containing the original minus the part to be removed\n@see #minus(String, Object)\n@since 1.8.2", "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
private void clearWaveforms(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(previewHotCache.keySet())) { if (deck.player == player) { previewHotCache.remove(deck); if (deck.hotCue == 0) { deliverWaveformPreviewUpdate(player, null); // Inform listeners that preview is gone. } } } // Again iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(detailHotCache.keySet())) { if (deck.player == player) { detailHotCache.remove(deck); if (deck.hotCue == 0) { deliverWaveformDetailUpdate(player, null); // Inform listeners that detail is gone. } } } }
[ "We have received notification that a device is no longer on the network, so clear out all its waveforms.\n\n@param announcement the packet which reported the device’s disappearance" ]
[ "Obtain matching paths for a request\n\n@param overrideType type of override\n@param client Client\n@param profile Profile\n@param uri URI\n@param requestType type of request\n@param pathTest If true this will also match disabled paths\n@return Collection of matching endpoints\n@throws Exception exception", "Write a resource.\n\n@param record resource instance\n@throws IOException", "Returns a client object for a clientId\n\n@param clientId ID of client to return\n@return Client or null\n@throws Exception exception", "Use this API to delete systementitydata.", "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null", "Get a value from a multiselect metadata field.\n@param path the key path in the metadata object. Must be prefixed with a \"/\".\n@return the list of values set in the field.", "Determine if a job name and job type are valid.\n@param jobName the name of the job\n@param jobType the class of the job\n@throws IllegalArgumentException if the name or type are invalid", "Test for convergence by seeing if the element with the largest change\nis smaller than the tolerance. In some test cases it alternated between\nthe + and - values of the eigen vector. When this happens it seems to have \"converged\"\nto a non-dominant eigen vector. At least in the case I looked at. I haven't devoted\na lot of time into this issue...", "Get a property as a array or throw exception.\n\n@param key the property name" ]
public static void registerDataPersisters(DataPersister... dataPersisters) { // we build the map and replace it to lower the chance of concurrency issues List<DataPersister> newList = new ArrayList<DataPersister>(); if (registeredPersisters != null) { newList.addAll(registeredPersisters); } for (DataPersister persister : dataPersisters) { newList.add(persister); } registeredPersisters = newList; }
[ "Register a data type with the manager." ]
[ "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.", "Use this API to fetch a appfwglobal_auditnslogpolicy_binding resources.", "The indices space is ignored for reduce ops other than min or max.", "Get a list of path transformers for a given address.\n\n@param address the path address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return a list of path transformations", "Sets the bottom padding for all cells in the table.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining", "Use this API to delete sslcipher of given name.", "Use this API to enable clusterinstance resources of given names.", "Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data", "Get the property name of a method name. For example the property name of\nsetSomeValue would be someValue. Names not beginning with set or get are\nnot changed.\n\n@param name The name to process\n@return The property name" ]
public void setDynamicValue(String attribute, String value) { if (null == m_dynamicValues) { m_dynamicValues = new ConcurrentHashMap<String, String>(); } m_dynamicValues.put(attribute, value); }
[ "Set cached value for the attribute. Used for dynamically loaded values in the Acacia content editor.\n\n@param attribute the attribute for which the value should be cached\n@param value the value to cache" ]
[ "Remove a descriptor.\n@param validKey This could be the {@link JdbcConnectionDescriptor}\nitself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.", "Computes the d and H parameters.\n\nd = J'*(f(x)-y) <--- that's also the gradient\nH = J'*J", "Convert a Identification to a By used in WebDriver Drivers.\n\n@return the correct By specification of the current Identification.", "converts a java.net.URI to a decoded string", "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", "Initialize the version properties map from the gradle.properties file, and the additional properties from the\ngradle.properties file.", "this callback is invoked after an Object is materialized\nwithin an IndirectionHandler.\nthis callback allows to defer registration of objects until\nit's really neccessary.\n@param handler the invoking handler\n@param materializedObject the materialized Object", "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Start with specifying the artifact version" ]
private void readRelationships(net.sf.mpxj.ganttproject.schema.Task gpTask) { for (Depend depend : gpTask.getDepend()) { Task task1 = m_projectFile.getTaskByUniqueID(Integer.valueOf(NumberHelper.getInt(gpTask.getId()) + 1)); Task task2 = m_projectFile.getTaskByUniqueID(Integer.valueOf(NumberHelper.getInt(depend.getId()) + 1)); if (task1 != null && task2 != null) { Duration lag = Duration.getInstance(NumberHelper.getInt(depend.getDifference()), TimeUnit.DAYS); Relation relation = task2.addPredecessor(task1, getRelationType(depend.getType()), lag); m_eventManager.fireRelationReadEvent(relation); } } }
[ "Read the relationships for an individual GanttProject task.\n\n@param gpTask GanttProject task" ]
[ "This method extracts resource data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param calendarMap Map of calendar UIDs to names", "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", "Use this API to delete ntpserver of given name.", "Indicates if the type is a simple Web Bean\n\n@param clazz The type to inspect\n@return True if simple Web Bean, false otherwise", "Set a custom response for this path\n\n@param pathName name of path\n@param customResponse value of custom response\n@return true if success, false otherwise\n@throws Exception exception", "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", "Adds columns for the specified properties.\n@param _properties the array of <code>PropertyDescriptor</code>s to be added.\n@throws ColumnBuilderException if an error occurs.\n@throws ClassNotFoundException if an error occurs.", "Returns the query string currently in the text field.\n\n@return the query string", "Updates the database. Never call this during normal operations, upgrade is a user-controlled operation." ]
public void close() { inputManager.unregisterInputDeviceListener(inputDeviceListener); mouseDeviceManager.forceStopThread(); gamepadDeviceManager.forceStopThread(); controllerIds.clear(); cache.clear(); controllers.clear(); }
[ "Shut down the input manager.\n\nAfter this call, GearVRf will not be able to access IO devices." ]
[ "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Returns the first number available, starting at portNumberStartingPoint that's not already in the reservedPorts\nlist.\n\n@param portNumberStartingPoint first port number to start from.\n@param reservedPorts the ports already reserved.\n@return first number available not in the given list, starting at the given parameter.", "Count the number of working hours in a day, based in the\ninteger representation of the working hours.\n\n@param hours working hours\n@return number of hours", "Loads the localization for the current locale from a bundle of type xmlvfsbundle.\nIt assumes, the content has already been unmarshalled before.\n@param locale the locale for which the localization should be loaded", "Computes the eigenvalue of the 2 by 2 matrix.", "Use this API to add spilloverpolicy.", "Creates a curator built using the given zookeeper connection string and timeout", "Get the exception message using the requested locale.\n\n@param locale locale for message\n@return exception message", "Checks to see within the flags if a reload, i.e. not a full restart, is required.\n\n@param flags the flags to check\n\n@return {@code true} if a reload is required, otherwise {@code false}" ]
public static int getDayAsReadableInt(long time) { Calendar cal = calendarThreadLocal.get(); cal.setTimeInMillis(time); return getDayAsReadableInt(cal); }
[ "Readable yyyyMMdd int representation of a day, which is also sortable." ]
[ "Convenience method for retrieving a char resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Obtain collection of profiles\n\n@param model\n@return\n@throws Exception", "Instantiates a new event collector.", "Create a MfClientHttpRequestFactory for adding the specified headers.\n\n@param requestFactory the basic request factory. It should be unmodified and just wrapped with\na proxy class.\n@param matchers The matchers.\n@param headers The headers.\n@return", "Parses operations where the input comes from variables to its left and right\n\n@param ops List of operations which should be parsed\n@param tokens List of all the tokens\n@param sequence List of operation sequence", "Use this API to delete dnstxtrec.", "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", "Method used to instantiate the appropriate input stream reader,\na standard one, or one which can deal with \"encrypted\" data.\n\n@param directory directory entry\n@param name file name\n@return new input stream\n@throws IOException", "Removes the row with the specified key from this association.\n\n@param key the key of the association row to remove" ]
public void insertAfter(Token before, TokenList list ) { Token after = before.next; before.next = list.first; list.first.previous = before; if( after == null ) { last = list.last; } else { after.previous = list.last; list.last.next = after; } size += list.size; }
[ "Inserts the LokenList immediately following the 'before' token" ]
[ "Sets the HTML entity translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator\n@return this to allow chaining", "Defines how messages should be logged. This method can be modified to\nrestrict the logging messages that are shown on the console or to change\ntheir formatting. See the documentation of Log4J for details on how to do\nthis.", "Add the operation to add the local host definition.", "B = -A. Changes the sign of elements in A and stores it in B. A and B can be the same instance.\n\n@param A (Input) Matrix. Not modified.\n@param B (Output) Matrix. Modified.", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}", "Check whether the media seems to have changed since a saved version of it was used. We ignore changes in\nfree space because those probably just reflect history entries being added.\n\n@param originalMedia the media details when information about it was saved\n\n@return true if there have been detectable significant changes to the media since it was saved\n\n@throws IllegalArgumentException if the {@link #hashKey()} values of the media detail objects differ", "Execute a CLI command. This can be any command that you might execute on\nthe CLI command line, including both server-side operations and local\ncommands such as 'cd' or 'cn'.\n\n@param cliCommand A CLI command.\n@return A result object that provides all information about the execution\nof the command.", "Returns the most likely class for the word at the given position.", "Convert the continuous values into discrete values by chopping up\nthe distribution into several equally-sized intervals." ]
public static HttpConnection connect(String requestMethod, URL url, String contentType) { return new HttpConnection(requestMethod, url, contentType); }
[ "low level http operations" ]
[ "Returns the required gallery open parameters.\n\n@param cms an initialized instance of a CmsObject\n@param messages the dialog messages\n@param param the widget parameter to generate the widget for\n@param resource the resource being edited\n@param hashId the field id hash\n\n@return the gallery open parameters", "Add a resource assignment which has been populated elsewhere.\n\n@param assignment resource assignment", "Method used to read the sub project details from a byte array.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset\n@return new SubProject instance", "Default settings set type loader to ClasspathTypeLoader if not set before.", "Aggregate results to see the status code distribution with target hosts.\n\n@return the aggregateResultMap", "Clear out our DAO caches.", "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance", "Close all JDBC objects related to this connection.", "Converts a time in milliseconds to the appropriate x coordinate for drawing something at that time.\n\n@param milliseconds the time at which something should be drawn\n\n@return the component x coordinate at which it should be drawn" ]
public static String createResource( CmsObject cmsObject, String newLink, Locale locale, String sitePath, String modelFileName, String mode, String postCreateHandler) { String[] newLinkParts = newLink.split("\\|"); String rootPath = newLinkParts[1]; String typeName = newLinkParts[2]; CmsFile modelFile = null; if (StringUtils.equalsIgnoreCase(mode, CmsEditorConstants.MODE_COPY)) { try { modelFile = cmsObject.readFile(sitePath); } catch (CmsException e) { LOG.warn( "The resource at path" + sitePath + "could not be read. Thus it can not be used as model file.", e); } } CmsADEConfigData adeConfig = OpenCms.getADEManager().lookupConfiguration(cmsObject, rootPath); CmsResourceTypeConfig typeConfig = adeConfig.getResourceType(typeName); CmsResource newElement = null; try { CmsObject cmsClone = cmsObject; if ((locale != null) && !cmsObject.getRequestContext().getLocale().equals(locale)) { // in case the content locale does not match the request context locale, use a clone cms with the appropriate locale cmsClone = OpenCms.initCmsObject(cmsObject); cmsClone.getRequestContext().setLocale(locale); } newElement = typeConfig.createNewElement(cmsClone, modelFile, rootPath); CmsPair<String, String> handlerParameter = I_CmsCollectorPostCreateHandler.splitClassAndConfig( postCreateHandler); I_CmsCollectorPostCreateHandler handler = A_CmsResourceCollector.getPostCreateHandler( handlerParameter.getFirst()); handler.onCreate(cmsClone, cmsClone.readFile(newElement), modelFile != null, handlerParameter.getSecond()); } catch (CmsException e) { LOG.error("Could not create resource.", e); } return newElement == null ? null : cmsObject.getSitePath(newElement); }
[ "Creates a new resource.\n@param cmsObject The CmsObject of the current request context.\n@param newLink A string, specifying where which new content should be created.\n@param locale The locale for which the\n@param sitePath site path of the currently edited content.\n@param modelFileName not used.\n@param mode optional creation mode\n@param postCreateHandler optional class name of an {@link I_CmsCollectorPostCreateHandler} which is invoked after the content has been created.\nThe fully qualified class name can be followed by a \"|\" symbol and a handler specific configuration string.\n@return The site-path of the newly created resource." ]
[ "Retrieves the amount of working time represented by\na calendar exception.\n\n@param exception calendar exception\n@return length of time in milliseconds", "Configure a selector to choose documents that should be added to the index.", "Returns true if the input is a vector\n@param a A matrix or vector\n@return true if it's a vector. Column or row.", "Returns new boolean matrix with true or false values selected with equal probability.\n\n@param numRow Number of rows in the new matrix.\n@param numCol Number of columns in the new matrix.\n@param rand Random number generator used to fill the matrix.\n@return The randomly generated matrix.", "Returns the value associated with the given key, if any.\n\n@return the value associated with the given key, or <Code>null</Code>\nif the key maps to no value", "Sets the RDF serialization tasks based on the given string value.\n\n@param tasks\na space-free, comma-separated list of task names", "Downloads this version of the file to a given OutputStream while reporting the progress to a ProgressListener.\n@param output the stream to where the file will be written.\n@param listener a listener for monitoring the download's progress.", "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> }", "Set a bean in the context.\n\n@param name bean name\n@param object bean value" ]
public static dnstxtrec get(nitro_service service, String domain) throws Exception{ dnstxtrec obj = new dnstxtrec(); obj.set_domain(domain); dnstxtrec response = (dnstxtrec) obj.get_resource(service); return response; }
[ "Use this API to fetch dnstxtrec resource of given name ." ]
[ "todo move to commonops", "Schedule at most one task.\n\nThe scheduled task *must* invoke 'doneTask()' upon\ncompletion/termination.\n\n@param executeService flag to control execution of the service, some tests pass\nin value 'false'\n@return The task scheduled or null if not possible to schedule a task at\nthis time.", "Returns the real value object.", "Get the bar size.\n\n@param settings Parameters for rendering the scalebar.", "This produces a string with no compressed segments and all segments of full length,\nwhich is 3 characters for IPv4 segments.", "Builder method for specifying the stack an app should be created on.\n@param stack Stack to create the app on.\n@return A copy of the {@link App}", "creates a shape list containing all child shapes and set it to the\ncurrent shape new shape get added to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Acquire the exclusive lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "Pads the given String to the left with the given character to ensure that\nit's at least totalChars long." ]
protected int readByte(InputStream is) throws IOException { byte[] data = new byte[1]; if (is.read(data) != data.length) { throw new EOFException(); } return (MPPUtility.getByte(data, 0)); }
[ "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF" ]
[ "Sets a string that will be prepended to the JAR file's data.\n\n@param value the prefix, or {@code null} for none.\n@return {@code this}", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "Use this API to fetch clusternodegroup resource of given name .", "Creates a resource key defined as a child of key defined by enumeration value.\n@see #key(Enum)\n@see #child(String)\n@param enumValue the enumeration value defining the parent key\n@param key the child id\n@return the resource key", "Maps all views that don't start with \"android\" namespace.\n\n@param names All shared element names.\n@return The obsolete shared element names.", "Validates that this string is a valid host name or IP address, and if not, throws an exception with a descriptive message indicating why it is not.\n@throws HostNameException", "Checks if the last argument matches the vararg type.\n@param params\n@param args\n@return -1 if no match, 0 if the last argument is exactly the vararg type and 1 if of an assignable type", "Look for the specified album art in both the hot cache of loaded tracks and the longer-lived LRU cache.\n\n@param artReference uniquely identifies the desired album art\n\n@return the art, if it was found in one of our caches, or {@code null}", "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object" ]
private void readDefinitions() { for (MapRow row : m_tables.get("TTL")) { Integer id = row.getInteger("DEFINITION_ID"); List<MapRow> list = m_definitions.get(id); if (list == null) { list = new ArrayList<MapRow>(); m_definitions.put(id, list); } list.add(row); } List<MapRow> rows = m_definitions.get(WBS_FORMAT_ID); if (rows != null) { m_wbsFormat = new SureTrakWbsFormat(rows.get(0)); } }
[ "Extract definition records from the table and divide into groups." ]
[ "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "Convert an Image into a TYPE_INT_ARGB BufferedImage. If the image is already of this type, the original image is returned unchanged.\n@param image the image to convert\n@return the converted image", "Update environment variables to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param config Key/Value pairs of environment variables.", "Given a string with method or package name, creates a Class Name with no\nspaces and first letter lower case\n\n@param String\n- The name of the scenario/story. It should be in lower case.\n@returns String - The class name", "Put the given value to the appropriate id in the stack, using the version\nof the current list node identified by that id.\n\n@param id\n@param element element to set\n@return element that was replaced by the new element\n@throws ObsoleteVersionException when an update fails", "Starts the transition", "Deletes a FilePath file.\n\n@param workspace The build workspace.\n@param path The path in the workspace.\n@throws IOException In case of missing file.", "Requests Change notifications of feed type normal.\n\n@return {@link ChangesResult} encapsulating the normal feed changes", "Use this API to update autoscaleaction." ]
private void attributes(Options opt, FieldDoc fd[]) { for (FieldDoc f : fd) { if (hidden(f)) continue; stereotype(opt, f, Align.LEFT); String att = visibility(opt, f) + f.name(); if (opt.showType) att += typeAnnotation(opt, f.type()); tableLine(Align.LEFT, att); tagvalue(opt, f); } }
[ "Print the class's attributes fd" ]
[ "Allows direct access to the Undertow.Builder for custom configuration\n\n@param serverConfigurationFunction the serverConfigurationFunction", "Retrieve the currently cached value for the given document.", "Set the values of a set of knots.\n@param x the knot positions\n@param y the knot colors\n@param types the knot types\n@param offset the first knot to set\n@param count the number of knots", "Assign based on execution time history. The algorithm is a greedy heuristic\nassigning the longest remaining test to the slave with the\nshortest-completion time so far. This is not optimal but fast and provides\na decent average assignment.", "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded", "Updates the position and direction of this light from the transform of\nscene object that owns it.", "Determines the field via reflection look-up.\n\n@param clazz The java class to search in\n@param fieldName The field's name\n@return The field object or <code>null</code> if no matching field was found", "Generates a torque schema for the model.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"", "Escapes control characters with a preceding backslash.\nOptionally encodes special chars as unicode escape sequence.\nThe resulting string is safe to be put into a Java string literal between\nthe quotes." ]
public ItemRequest<CustomField> insertEnumOption(String customField) { String path = String.format("/custom_fields/%s/enum_options/insert", customField); return new ItemRequest<CustomField>(this, CustomField.class, path, "POST"); }
[ "Moves a particular enum option to be either before or after another specified enum option in the custom field.\n\n@param customField Globally unique identifier for the custom field.\n@return Request object" ]
[ "Sets the replace var map to single target.\n\n@param replacementVarMapList\nthe replacement var map list\n@param uniformTargetHost\nthe uniform target host\n@return the parallel task builder", "Returns the total number of elements which are true.\n@return number of elements which are set to true", "The main entry point for processing graphical indicator definitions.\n\n@param indicators graphical indicators container\n@param properties project properties\n@param props properties data", "Takes an object and converts it to a string.\n\n@param mapper the object mapper\n@param object the object to convert\n@return json string", "Adds a handler for a mouse type event on the map.\n\n@param obj The object that the event should be registered on.\n@param type Type of the event to register against.\n@param h Handler that will be called when the event occurs.", "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", "Updates the information about this weblink with any info fields that have been modified locally.\n\n<p>The only fields that will be updated are the ones that have been modified locally. For example, the following\ncode won't update any information (or even send a network request) since none of the info's fields were\nchanged:</p>\n\n<pre>BoxWebLink webLink = new BoxWebLink(api, id);\nBoxWebLink.Info info = webLink.getInfo();\nwebLink.updateInfo(info);</pre>\n\n@param info the updated info.", "Multiplied a transpose orthogonal matrix Q by the specified rotator. This is used\nto update the U and V matrices. Updating the transpose of the matrix is faster\nsince it only modifies the rows.\n\n\n@param Q Orthogonal matrix\n@param m Coordinate of rotator.\n@param n Coordinate of rotator.\n@param c cosine of rotator.\n@param s sine of rotator.", "Notifies that an existing header item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position." ]
public static final double round(double value, double precision) { precision = Math.pow(10, precision); return Math.round(value * precision) / precision; }
[ "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" ]
[ "Writes task baseline data.\n\n@param xmlTask MSPDI task\n@param mpxjTask MPXJ task", "Checks if the provided organization is valid and could be stored into the database\n\n@param organization Organization\n@throws WebApplicationException if the data is corrupted", "Throw IllegalStateException if key is not present in map.\n@param key the key to expect.\n@param map the map to search.\n@throws IllegalArgumentException if key is not in map.", "Parses a string of space delimited command line parameters and returns a\nlist of parameters which doesn't contain any special quoting either for\nvalues or whole parameter.\n\n@param param string containing a list\n@return the list", "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", "Creates an instance of a NewSimpleBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewSimpleBean instance", "performs an UPDATE operation against RDBMS.\n@param obj The Object to be updated in the underlying table.\n@param cld ClassDescriptor providing mapping information.", "Use this API to save cachecontentgroup.", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name" ]
ProtectionDomain getProtectionDomainForProxy(ProtectionDomain domain) { if (domain.getCodeSource() == null) { // no codesource to cache on return create(domain); } ProtectionDomain proxyProtectionDomain = proxyProtectionDomains.get(domain.getCodeSource()); if (proxyProtectionDomain == null) { // as this is not atomic create() may be called multiple times for the same domain // we ignore that proxyProtectionDomain = create(domain); ProtectionDomain existing = proxyProtectionDomains.putIfAbsent(domain.getCodeSource(), proxyProtectionDomain); if (existing != null) { proxyProtectionDomain = existing; } } return proxyProtectionDomain; }
[ "Gets an enhanced protection domain for a proxy based on the given protection domain.\n@param domain the given protection domain\n@return protection domain enhanced with \"accessDeclaredMembers\" runtime permission" ]
[ "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails", "Use the jgrapht cycle checker to detect any cycles in the provided dependency graph.", "Sets the seed for random number generator", "Initializes the upper left component. Does not show the mode switch.", "Use this API to add dnstxtrec resources.", "Given a directory, determine if it contains a multi-file database whose format\nwe can process.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Retrieve a duration in the form required by Phoenix.\n\n@param duration Duration instance\n@return formatted duration", "Set the url for the shape file.\n\n@param url shape file url\n@throws LayerException file cannot be accessed\n@since 1.7.1", "Delivers the correct JSON Object for the Stencilset\n\n@param stencilSet\n@throws org.json.JSONException" ]
public ProjectFile read(POIFSFileSystem fs) throws MPXJException { try { ProjectFile projectFile = new ProjectFile(); ProjectConfig config = projectFile.getProjectConfig(); config.setAutoTaskID(false); config.setAutoTaskUniqueID(false); config.setAutoResourceID(false); config.setAutoResourceUniqueID(false); config.setAutoOutlineLevel(false); config.setAutoOutlineNumber(false); config.setAutoWBS(false); config.setAutoCalendarUniqueID(false); config.setAutoAssignmentUniqueID(false); projectFile.getEventManager().addProjectListeners(m_projectListeners); // // Open the file system and retrieve the root directory // DirectoryEntry root = fs.getRoot(); // // Retrieve the CompObj data, validate the file format and process // CompObj compObj = new CompObj(new DocumentInputStream((DocumentEntry) root.getEntry("\1CompObj"))); ProjectProperties projectProperties = projectFile.getProjectProperties(); projectProperties.setFullApplicationName(compObj.getApplicationName()); projectProperties.setApplicationVersion(compObj.getApplicationVersion()); String format = compObj.getFileFormat(); Class<? extends MPPVariantReader> readerClass = FILE_CLASS_MAP.get(format); if (readerClass == null) { throw new MPXJException(MPXJException.INVALID_FILE + ": " + format); } MPPVariantReader reader = readerClass.newInstance(); reader.process(this, projectFile, root); // // Update the internal structure. We'll take this opportunity to // generate outline numbers for the tasks as they don't appear to // be present in the MPP file. // config.setAutoOutlineNumber(true); projectFile.updateStructure(); config.setAutoOutlineNumber(false); // // Perform post-processing to set the summary flag and clean // up any instances where a task has an empty splits list. // for (Task task : projectFile.getTasks()) { task.setSummary(task.hasChildTasks()); List<DateRange> splits = task.getSplits(); if (splits != null && splits.isEmpty()) { task.setSplits(null); } validationRelations(task); } // // Ensure that the unique ID counters are correct // config.updateUniqueCounters(); // // Add some analytics // String projectFilePath = projectFile.getProjectProperties().getProjectFilePath(); if (projectFilePath != null && projectFilePath.startsWith("<>\\")) { projectProperties.setFileApplication("Microsoft Project Server"); } else { projectProperties.setFileApplication("Microsoft"); } projectProperties.setFileType("MPP"); return (projectFile); } catch (IOException ex) { throw new MPXJException(MPXJException.READ_ERROR, ex); } catch (IllegalAccessException ex) { throw new MPXJException(MPXJException.READ_ERROR, ex); } catch (InstantiationException ex) { throw new MPXJException(MPXJException.READ_ERROR, ex); } }
[ "Alternative entry point allowing an MPP file to be read from\na user-supplied POI file stream.\n\n@param fs POI file stream\n@return ProjectFile instance\n@throws MPXJException" ]
[ "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", "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors", "Creates a code location URL from a URL\n\n@param url the URL external form\n@return A URL created from URL\n@throws InvalidCodeLocation if URL creation fails", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return", "Use this API to fetch ipset resource of given name .", "This method is used to configure the primary and alternative\nformat patterns.\n\n@param primaryPattern new format pattern\n@param alternativePatterns alternative format patterns\n@param decimalSeparator Locale specific decimal separator to replace placeholder\n@param groupingSeparator Locale specific grouping separator to replace placeholder", "Checks the status of one or more asynchronous photo upload tickets. This method does not require authentication.\n\n@param tickets\na set of ticket ids (Strings) or {@link Ticket} objects containing ids\n@return a list of {@link Ticket} objects.\n@throws FlickrException", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Deregister shutdown hook and execute it immediately" ]
@SuppressWarnings("WeakerAccess") public static synchronized SlotReference getSlotReference(int player, CdjStatus.TrackSourceSlot slot) { Map<CdjStatus.TrackSourceSlot, SlotReference> playerMap = instances.get(player); if (playerMap == null) { playerMap = new HashMap<CdjStatus.TrackSourceSlot, SlotReference>(); instances.put(player, playerMap); } SlotReference result = playerMap.get(slot); if (result == null) { result = new SlotReference(player, slot); playerMap.put(slot, result); } return result; }
[ "Get a unique reference to a media slot on the network from which tracks can be loaded.\n\n@param player the player in which the slot is found\n@param slot the specific type of the slot\n\n@return the instance that will always represent the specified slot\n\n@throws NullPointerException if {@code slot} is {@code null}" ]
[ "Generate an ordered set of column definitions from an ordered set of column names.\n\n@param columns column definitions\n@param order column names\n@return ordered set of column definitions", "Calls beforeMaterialization on all registered listeners in the reverse\norder of registration.", "Encode a path in a manner suitable for a GET request\n@param in The path to encode, eg \"a/document\"\n@return The encoded path eg \"a%2Fdocument\"", "this class requires that the supplied enum is not fitting a\nCollection case for casting", "Creates a new CRFDatum from the preprocessed allData format, given the\ndocument number, position number, and a List of Object labels.\n\n@return A new CRFDatum", "Checks whether a String satisfies the number range selection filter.\nThe test is evaluated based on the rightmost natural number found in\nthe String. Note that this is just evaluated on the String as given.\nIt is not trying to interpret it as a filename and to decide whether\nthe file exists, is a directory or anything like that.\n\n@param str The String to check for a number in\n@return true If the String is within the ranges filtered for", "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId", "Retrieve a calendar exception which applies to this date.\n\n@param date target date\n@return calendar exception, or null if none match this date", "Find the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node" ]
public double distanceToPlane(Point3d p) { return normal.x * p.x + normal.y * p.y + normal.z * p.z - planeOffset; }
[ "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane" ]
[ "On throwable.\n\n@param cause\nthe cause", "Go through all nodes and determine how many partition Ids each node\nhosts.\n\n@param cluster\n@return map of nodeId to number of primary partitions hosted on node.", "Returns only the leaf categories of the wrapped categories.\n\nThe method assumes that categories are ordered in the list, i.e., parents are directly followed by their children.\n\nNOTE: In the complete category tree a leaf of the wrapped tree part may not be a leaf.\n\n@return only the leaf categories of the wrapped categories.", "Return a new File object based on the baseDir and the segments.\n\nThis method does not perform any operation on the file system.", "Retrieves a specific range of items in this collection.\n@param offset the index of the first item to retrieve.\n@param limit the maximum number of items to retrieve after the offset.\n@param fields the fields to retrieve.\n@return a partial collection containing the specified range of items.", "Lookup the Gallery for the specified ID.\n\n@param galleryId\nThe user profile URL\n@return The Gallery\n@throws FlickrException", "Get the number of views, comments and favorites on a photoset 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 photosetId\n(Required) The id of the photoset to get stats for.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotosetStats.htm\"", "Add a IN clause so the column must be equal-to one of the objects passed in.", "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\"." ]
@SuppressWarnings("SameParameterValue") private byte[] readResponseWithExpectedSize(InputStream is, int size, String description) throws IOException { byte[] result = receiveBytes(is); if (result.length != size) { logger.warn("Expected " + size + " bytes while reading " + description + " response, received " + result.length); } return result; }
[ "Receive an expected number of bytes from the player, logging a warning if we get a different number of them.\n\n@param is the input stream associated with the player metadata socket.\n@param size the number of bytes we expect to receive.\n@param description the type of response being processed, for use in the warning message.\n@return the bytes read.\n\n@throws IOException if there is a problem reading the response." ]
[ "Sorts the entries into the order we want to present them in, which is by position, with hot cues coming after\nordinary memory points if both exist at the same position, which often happens.\n\n@param loadedEntries the unsorted entries we have loaded from a dbserver message, metadata cache, or rekordbox\ndatabase export\n@return an immutable list of the collections in the proper order", "Adds a free connection.\n\n@param connectionHandle\n@throws SQLException on error", "Creates a polling state.\n\n@param response the response from Retrofit REST call that initiate the long running operation.\n@param lroOptions long running operation options.\n@param defaultRetryTimeout the long running operation retry timeout.\n@param resourceType the type of the resource the long running operation returns\n@param serializerAdapter the adapter for the Jackson object mapper\n@param <T> the result type\n@return the polling state\n@throws IOException thrown by deserialization", "FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to close the connection in this method, because the TxManager does prepare for commit\nafter this method and all used DataSource-connections have to be closed before.\n\n@see javax.transaction.Synchronization", "Scans the given token global token stream for a list of sub-token\nstreams representing those portions of the global stream that\nmay contain date time information\n\n@param stream\n@return", "Put the core auto-code algorithm here so an external class can call it", "Check if the given color string can be parsed.\n\n@param colorString The color to parse.", "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Use this API to fetch the statistics of all gslbdomain_stats resources that are configured on netscaler." ]
public Bundler put(String key, Parcelable[] value) { delegate.putParcelableArray(key, value); return this; }
[ "Inserts an array of Parcelable values 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 an array of Parcelable objects, or null\n@return this bundler instance to chain method calls" ]
[ "Returns server group by ID\n\n@param id ID of server group\n@return ServerGroup\n@throws Exception exception", "Store the given data and return a uuid for later retrieval of the data\n\n@param data\n@return unique id for the stored data", "Use this API to update sslocspresponder.", "The digits were stored as a hex value, thix switches them to an octal value.\n\n@param currentHexValue\n@param digitCount\n@return", "Encodes the given URI fragment with the given encoding.\n@param fragment the fragment to be encoded\n@param encoding the character encoding to encode to\n@return the encoded fragment\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Use this API to add clusternodegroup resources.", "set custom response for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise", "Creates a \"delta clone\" of this Map, where only the differences are\nrepresented.", "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" ]
public void clearSelections() { for (CheckableViewHolder vh : mCheckedVisibleViewHolders) { vh.checkbox.setChecked(false); } mCheckedVisibleViewHolders.clear(); mCheckedItems.clear(); }
[ "Animate de-selection of visible views and clear\nselected set." ]
[ "Writes data to delegate stream if it has been set.\n\n@param data the data to write", "Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.\n\n@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.", "Gets a list of AssignmentRows based on the current Assignments\n@return", "Ask the specified player for a Track menu.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n\n@return the entries in the track menu\n\n@throws Exception if there is a problem obtaining the menu", "The connection timeout for making a connection to Twitter.", "returns all methods not in the group\n\n@param groupId Id of group\n@return List of Methods for a group\n@throws Exception exception", "Creates a metadata cache archive file of all tracks in the specified slot on the specified player. Any\nprevious contents of the specified file will be replaced.\n\n@param slot the slot in which the media to be cached can be found\n@param playlistId the id of playlist to be cached, or 0 of all tracks should be cached\n@param cache the file into which the metadata cache should be written\n\n@throws Exception if there is a problem communicating with the player or writing the cache file.", "Return a set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.\n\n@return a Set of all DeclarationBinder matching the DeclarationBinderFilter of the Linker.", "Calls a method from editService to update the repeat number for a path\n\n@param model\n@param newNum\n@param path_id\n@param clientUUID\n@return\n@throws Exception" ]
@Override @SuppressWarnings("unchecked") public ChronoZonedDateTime<PaxDate> zonedDateTime(TemporalAccessor temporal) { return (ChronoZonedDateTime<PaxDate>) super.zonedDateTime(temporal); }
[ "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" ]
[ "An invalid reference or references. The verification of the digest of a\nreference failed. This can be caused by a change to the referenced data\nsince the signature was generated.\n\n@param aInvalidReferences\nThe indices to the invalid references.\n@return Result object", "Convert the continuous values into discrete values by chopping up\nthe distribution into several equally-sized intervals.", "Creates an instance of a NewSimpleBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewSimpleBean instance", "If this address was resolved from a host, returns that host. Otherwise, does a reverse name lookup.", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException", "Use this API to fetch nd6ravariables resource of given name .", "Generate and return the list of statements to drop a database table.", "The transaction will be executed. While it is running, any semantic state change\nin the given resource will be ignored and the cache will not be cleared.", "Creates a new access control entry and stores it for later write out.\n\n@param res the resource\n@param id the id of the principal\n@param allowed the allowed permissions\n@param denied the denied permissions\n@param flags the flags\n\n@return the created ACE" ]
public static DMatrixRMaj convert(DMatrixRBlock src , DMatrixRMaj dst ) { return ConvertDMatrixStruct.convert(src,dst); }
[ "Converts a row major block matrix into a row major matrix.\n\n@param src Original DMatrixRBlock.. Not modified.\n@param dst Equivalent DMatrixRMaj. Modified." ]
[ "Search for rectangles which have the same width and x position, and\nwhich join together vertically and merge them together to reduce the\nnumber of rectangles needed to describe a symbol.", "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator", "Creates a new empty HTML document tree.\n@throws ParserConfigurationException", "Read the header from the Phoenix file.\n\n@param stream input stream\n@return raw header data", "Notifies that an existing content item is moved to another position.\n\n@param fromPosition the original position.\n@param toPosition the new position.", "Note that if there is sleep in this method.\n\n@param stopCount\nthe stop count", "This method is called to format a date. It will return the null text\nif a null value is supplied.\n\n@param value date value\n@return formatted date value", "Closes off this connection\n@param connection to close", "Stops this progress bar." ]
public ApiResponse<String> getPingWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = getPingValidateBeforeCall(null); Type localVarReturnType = new TypeToken<String>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
[ "Ping route Ping the ESI routers\n\n@return ApiResponse&lt;String&gt;\n@throws ApiException\nIf fail to call the API, e.g. server error or cannot\ndeserialize the response body" ]
[ "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy", "Gets the prefix from value.\n\n@param value the value\n@return the prefix from 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.", "Method which performs strength checks on password. It returns outcome which can be used by CLI.\n\n@param isAdminitrative - administrative checks are less restrictive. This means that weak password or one which violates restrictions is not indicated as failure.\nAdministrative checks are usually performed by admin changing/setting default password for user.\n@param userName - the name of user for which password is set.\n@param password - password.\n@return", "Maps a story if it is allowed by the meta filter\n\n@param story\nthe Story\n@param metaFilter\nthe meta filter", "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_", "Revert all the working copy changes.", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry" ]
private int getResourceCode(String field) throws MPXJException { Integer result = m_resourceNumbers.get(field); if (result == null) { throw new MPXJException(MPXJException.INVALID_RESOURCE_FIELD_NAME + " " + field); } return (result.intValue()); }
[ "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number" ]
[ "Calculate where within the beat grid array the information for the specified beat can be found.\nYes, this is a super simple calculation; the main point of the method is to provide a nice exception\nwhen the beat is out of bounds.\n\n@param beatNumber the beat desired\n\n@return the offset of the start of our cache arrays for information about that beat", "Add server redirect to a profile\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@param groupId group ID\n@return ID of added ServerRedirect\n@throws Exception exception", "Retrieves the pro-rata work carried out on a given day.\n\n@param calendar current calendar\n@param assignment current assignment.\n@return assignment work duration", "Calculate start dates for a yearly recurrence.\n\n@param calendar current date\n@param dates array of start dates", "Create a standalone target.\n\n@param controllerClient the connected controller client to a standalone instance.\n@return the remote target", "Returns the association row with the given key.\n\n@param key the key of the row to return.\n@return the association row with the given key or {@code null} if no row with that key is contained in this\nassociation", "Read all task relationships from a GanttProject.\n\n@param gpProject GanttProject project", "Given a particular key, first converts its to the storage format and then\ndetermines which chunk it belongs to\n\n@param key Byte array of keys\n@return Chunk id\n@throws IllegalStateException if unable to find the chunk id for the given key", "Sets the alert sound to be played.\n\nPassing {@code null} disables the notification sound.\n\n@param sound the file name or song name to be played\nwhen receiving the notification\n@return this" ]
public static List<String> getBuildNumbersNotToBeDeleted(Run build) { List<String> notToDelete = Lists.newArrayList(); List<? extends Run<?, ?>> builds = build.getParent().getBuilds(); for (Run<?, ?> run : builds) { if (run.isKeepLog()) { notToDelete.add(String.valueOf(run.getNumber())); } } return notToDelete; }
[ "Get the list of build numbers that are to be kept forever." ]
[ "Get a list of referrers from a given domain to a photoset.\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 photosetId\n(Optional) The id of the photoset to get stats for. If not provided, stats for all sets 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.getPhotosetReferrers.html\"", "Returns an English label for a given datatype.\n\n@param datatype\nthe datatype to label\n@return the label", "Increase the priority of an overrideId\n\n@param overrideId ID of override\n@param pathId ID of path containing override\n@param clientUUID UUID of client", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining.", "Get replication document state for a given replication document ID.\n\n@param docId The replication document ID\n@return Replication document for {@code docId}", "other static handlers", "Produces an IPv4 address section from any sequence of bytes in this IPv6 address section\n\n@param startIndex the byte index in this section to start from\n@param endIndex the byte index in this section to end at\n@throws IndexOutOfBoundsException\n@return\n\n@see #getEmbeddedIPv4AddressSection()\n@see #getMixedAddressSection()", "Prepare a parallel HTTP OPTION Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Validate ipv4 address with regular expression\n\n@param ip\naddress for validation\n\n@return true valid ip address, false invalid ip address" ]
private void setVerticalScrollbar(final CmsScrollBar scrollbar, int width) { // Validate. if ((scrollbar == m_scrollbar) || (scrollbar == null)) { return; } // Detach new child. scrollbar.asWidget().removeFromParent(); // Remove old child. if (m_scrollbar != null) { if (m_verticalScrollbarHandlerRegistration != null) { m_verticalScrollbarHandlerRegistration.removeHandler(); m_verticalScrollbarHandlerRegistration = null; } remove(m_scrollbar); } m_scrollLayer.appendChild(scrollbar.asWidget().getElement()); adopt(scrollbar.asWidget()); // Logical attach. m_scrollbar = scrollbar; m_verticalScrollbarWidth = width; // Initialize the new scrollbar. m_verticalScrollbarHandlerRegistration = scrollbar.addValueChangeHandler(new ValueChangeHandler<Integer>() { public void onValueChange(ValueChangeEvent<Integer> event) { int vPos = scrollbar.getVerticalScrollPosition(); int v = getVerticalScrollPosition(); if (v != vPos) { setVerticalScrollPosition(vPos); } } }); maybeUpdateScrollbars(); }
[ "Set the scrollbar used for vertical scrolling.\n\n@param scrollbar the scrollbar, or null to clear it\n@param width the width of the scrollbar in pixels" ]
[ "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", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar.\nThe name of the calendar to be used is passed as an argument.\n\n@param calendarName name of the calendar to use\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Return the list of module dependencies\n\n@param moduleName\n@param moduleVersion\n@param fullRecursive\n@param corporate\n@param thirdParty\n@return List<Dependency>\n@throws GrapesCommunicationException", "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info.", "Use this API to fetch the statistics of all audit_stats resources that are configured on netscaler.", "Fetches the HttpMethod from annotations and returns String representation of HttpMethod.\nReturn emptyString if not present.\n\n@param method Method handling the http request.\n@return String representation of HttpMethod from annotations or emptyString as a default.", "Returns a string representation of map of chunk id to number of chunks\n\n@return String of map of chunk id to number of chunks", "This method retrieves the calendar hours for the specified day.\nNote that if this is a derived calendar, then this method\nwill refer to the base calendar where no hours are specified\nin the derived calendar.\n\n@param day Day instance\n@return calendar hours" ]
public static List<ObjectModelResolver> getResolvers() { if (resolvers == null) { synchronized (serviceLoader) { if (resolvers == null) { List<ObjectModelResolver> foundResolvers = new ArrayList<ObjectModelResolver>(); for (ObjectModelResolver resolver : serviceLoader) { foundResolvers.add(resolver); } resolvers = foundResolvers; } } } return resolvers; }
[ "Returns all found resolvers\n@return" ]
[ "Get the last non-white Y point\n@param img Image in memory\n@return The trimmed height", "Add a collaborator to an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param collaborator Username of the collaborator to add. This is usually in the form of \"[email protected]\".", "Flush the network buffer and write all entries to the serve. then wait\nfor an ack from the server. This is a blocking call. It is invoked on\nevery Commit batch size of entries, It is also called on the close\nsession call\n\n@param storeNamesToCommit List of stores to be flushed and committed", "Move sections relative to each other in a board view. One of\n`before_section` or `after_section` is required.\n\nSections cannot be moved between projects.\n\nAt this point in time, moving sections is not supported in list views, only board views.\n\nReturns an empty data block.\n\n@param project The project in which to reorder the given section\n@return Request object", "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}.", "Determine which math transform to use when creating the coordinate of the label.\n\n@param mapCrs the crs of the map, used if the {@link #labelProjection} is not defined.", "Counts the number of elements in A which are not zero.\n@param A A matrix\n@return number of non-zero elements", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "Removes the token from the list\n@param token Token which is to be removed" ]
public static String resolveProxyUrl(String relativeUrl, TileMap tileMap, String baseTmsUrl) { TileCode tc = parseTileCode(relativeUrl); return buildUrl(tc, tileMap, baseTmsUrl); }
[ "Replaces the proxy url with the correct url from the tileMap.\n\n@return correct url to TMS service" ]
[ "Check that the parameter array has exactly the right number of elements.\n\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@param actualLength\nThe actual array length\n@param expectedLength\nThe expected array length", "Return the inverse cumulative distribution function at x.\n\n@param x Argument\n@return Inverse cumulative distribution function at x.", "Only meant to be called once\n\n@throws Exception exception", "Removes the supplied marker from the map.\n\n@param marker", "Adds the dependencies typical for particular deployment types.\nThis is not accurate and doesn't cover the real needs of the project.\nBasically it's just to have \"something\" for the initial implementation.", "Determine the common ancestor of the given classes, if any.\n@param clazz1 the class to introspect\n@param clazz2 the other class to introspect\n@return the common ancestor (i.e. common superclass, one interface\nextending the other), or {@code null} if none found. If any of the\ngiven classes is {@code null}, the other class will be returned.\n@since 2.0", "Adjust the visible columns.", "This method extracts byte arrays from the embedded object data\nand converts them into RTFEmbeddedObject instances, which\nit then adds to the supplied list.\n\n@param offset offset into the RTF document\n@param text RTF document\n@param objects destination for RTFEmbeddedObject instances\n@return new offset into the RTF document", "Find a Constructor on the given type that matches the given arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a Constructor from the given type that matches the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments" ]
public String[] getItemsSelected() { List<String> selected = new LinkedList<>(); for (int i = getIndexOffset(); i < listBox.getItemCount(); i++) { if (listBox.isItemSelected(i)) { selected.add(listBox.getValue(i)); } } return selected.toArray(new String[selected.size()]); }
[ "Returns all selected values of the list box, or empty array if none.\n\n@return the selected values of the list box" ]
[ "Finds and returns the date for the given event summary and year within the given ics file,\nor null if not present.", "A variant of the gamma function.\n@param a the number to apply gain to\n@param b the gain parameter. 0.5 means no change, smaller values reduce gain, larger values increase gain.\n@return the output value", "Manipulates a string by cutting of a prefix, if present, and adding a new prefix.\n\n@param word the string to be manipulated\n@param oldPrefix the old prefix that should be replaced\n@param newPrefix the new prefix that is added\n@return the manipulated string", "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", "This procedure is invoked to process the \"subst\" Tcl command.\nSee the user documentation for details on what it does.\n\n@param interp the current interpreter.\n@param argv command arguments.\n@exception TclException if wrong # of args or invalid argument(s).", "Get the waveform details available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the details 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 or requesting waveform details", "checkpoint the transaction", "Register the ChangeHandler to become notified if the user changes the slider.\nThe Handler is called when the user releases the mouse only at the end of the slide\noperation.", "Tries to guess location of the user secure keyring using various\nheuristics.\n\n@return path to the keyring file\n@throws FileNotFoundException if no keyring file found" ]
public static int getHostSegmentIndex(int networkPrefixLength, int bytesPerSegment, int bitsPerSegment) { if(bytesPerSegment > 1) { if(bytesPerSegment == 2) { return networkPrefixLength >> 4; } return networkPrefixLength / bitsPerSegment; } return networkPrefixLength >> 3; }
[ "Returns the index of the segment containing the first byte outside the network prefix.\nWhen networkPrefixLength is null, or it matches or exceeds the bit length, returns the segment count.\n\n@param networkPrefixLength\n@param byteLength\n@return" ]
[ "Remove any overrides for an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@return true if success, false otherwise", "Get the deferred flag. Exchange rates can be deferred or real.time.\n\n@return the deferred flag, or {code null}.", "Calls a function script associated with this component.\nThe function is called even if the component\nis not enabled and not attached to a scene object.\n@param funcName name of script function to call.\n@param args function parameters as an array of objects.\n@return true if function was called, false if no such function\n@see org.gearvrf.script.GVRScriptFile#invokeFunction(String, Object[]) invokeFunction", "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running", "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", "Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module", "Walk project references recursively, adding thrift files to the provided list.", "Given a list of store definitions, filters the list depending on the\nboolean\n\n@param storeDefs Complete list of store definitions\n@param isReadOnly Boolean indicating whether filter on read-only or not?\n@return List of filtered store definition", "Executes the sequence of operations" ]
public synchronized void resumeControlPoint(final String entryPoint) { for (ControlPoint ep : entryPoints.values()) { if (ep.getEntryPoint().equals(entryPoint)) { ep.resume(); } } }
[ "Resumes a given entry point type;\n\n@param entryPoint The entry point" ]
[ "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler.", "Overridden method always creating a new instance\n\n@param contextual The bean to create\n@param creationalContext The creation context", "currently does not support paths with name constrains", "Returns the dimensions for the video\n@param videoFile Video file\n@return the dimensions\n@throws IOException", "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", "Inserts a String value into the mapping of the underlying Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String, or null\n@return this bundler instance to chain method calls", "Returns a new color that has the hue adjusted by the specified\namount.", "This method extracts calendar data from a Phoenix file.\n\n@param phoenixProject Root node of the Phoenix file", "Updates the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template\n@param fieldOperations the fields that needs to be updated / added in the template\n@return the updated metadata template" ]
@ArgumentsChecked @Throws(IllegalNullArgumentException.class) public static short checkShort(@Nonnull final Number number) { Check.notNull(number, "number"); if (!isInShortRange(number)) { throw new IllegalNumberRangeException(number.toString(), SHORT_MIN, SHORT_MAX); } return number.shortValue(); }
[ "Checks if a given number is in the range of a short.\n\n@param number\na number which should be in the range of a short (positive or negative)\n\n@see java.lang.Short#MIN_VALUE\n@see java.lang.Short#MAX_VALUE\n\n@return number as a short (rounding might occur)" ]
[ "Processes the template for all collection definitions of the current class definition.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Open the connection to the server.\n\n@param url the url to connect to\n@return returns the input stream for the connection\n@throws IOException cannot get result", "Reads GIF image from stream.\n\n@param is containing GIF file.\n@return read status code (0 = no errors).", "Filter on a search term. Can be course name, code or full ID. Must be at least 3 characters\n@param searchTerm Search term to filter by\n@return This object to allow adding more options", "Generates a mapping between attribute names and data types.\n\n@param name name of the map\n@param types types to write", "Register a new PerformanceMonitor with Spring if it does not already exist.\n\n@param beanName The name of the bean that this performance monitor is wrapped around\n@param registry The registry where all the spring beans are registered", "Waits the given amount of time in seconds for a managed domain to start. A domain is considered started when each\nof the servers in the domain are started unless the server is disabled.\n\n@param client the client used to communicate with the server\n@param startupTimeout the time, in seconds, to wait for the server start\n\n@throws InterruptedException if interrupted while waiting for the server to start\n@throws RuntimeException if the process has died\n@throws TimeoutException if the timeout has been reached and the server is still not started", "Get the size of the painting area required to draw the scalebar with labels.\n\n@param scalebarParams Parameters for the scalebar.\n@param settings Parameters for rendering the scalebar.\n@param maxLabelSize The max. size of the labels.", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag" ]
public boolean getWorkModified(List<TimephasedWork> list) { boolean result = false; for (TimephasedWork assignment : list) { result = assignment.getModified(); if (result) { break; } } return result; }
[ "Test the list of TimephasedWork instances to see\nif any of them have been modified.\n\n@param list list of TimephasedWork instances\n@return boolean flag" ]
[ "Check if the specified sql-string is a stored procedure\nor not.\n@param sql The sql query to check\n@return <em>True</em> if the query is a stored procedure, else <em>false</em> is returned.", "Remember execution time for all executed suites.", "Sets a JSON String as a request entity.\n\n@param connnection The request of {@link HttpConnection}\n@param body The JSON String to set.", "Returns a String summarizing overall accuracy that will print nicely.", "Get the element at the index as a json array.\n\n@param i the index of the element to access", "Build control archive of the deb\n\n@param packageControlFile the package control file\n@param controlFiles the other control information files (maintainer scripts, etc)\n@param dataSize the size of the installed package\n@param checksums the md5 checksums of the files in the data archive\n@param output\n@return\n@throws java.io.FileNotFoundException\n@throws java.io.IOException\n@throws java.text.ParseException", "Sets the frame pointer to a specific frame\n\n@return boolean true if the move was successful", "Use this API to fetch a systemglobal_authenticationldappolicy_binding resources.", "Reset the crawler to its initial state." ]
void reset() { if (!hasStopped) { throw new IllegalStateException("cannot reset a non stopped queue poller"); } hasStopped = false; run = true; lastLoop = null; loop = new Semaphore(0); }
[ "Will make the thread ready to run once again after it has stopped." ]
[ "returns position of xpath element which match the expression xpath in the String dom.\n\n@param dom the Document to search in\n@param xpath the xpath query\n@return position of xpath element, if fails returns -1", "This is an assertion method that can be used by a thread to confirm that\nthe thread isn't already holding lock for an object, before acquiring a\nlock\n\n@param object\nobject to test for lock\n@param name\ntag associated with the lock", "Checks for duplicate elements. A is sorted\n@param A Matrix to be tested.\n@return true if duplicates or false if false duplicates", "Use this API to update protocolhttpband.", "Returns an Object array of all FK field values of the specified object.\nIf the specified object is an unmaterialized Proxy, it will be materialized\nto read the FK values.\n\n@throws MetadataException if an error occours while accessing ForeingKey values on obj", "Creates the automaton map.\n\n@param prefix the prefix\n@param valueList the value list\n@param filter the filter\n@return the map", "Returns the precedence of the specified operator. Non-operator's will\nreceive -1 or a GroovyBugError, depending on your preference.", "Deletes specified entity clearing all its properties and deleting all its outgoing links.\n\n@param entity to delete.", "Triggers the building process, builds, creates and starts the docker container associated with the requested\ncontainer object, creates the container object and returns it\n\n@return the created container object\n\n@throws IllegalAccessException\nif there is an error accessing the container object fields\n@throws IOException\nif there is an I/O error while preparing the docker build\n@throws InvocationTargetException\nif there is an error while calling the DockerFile archive creation" ]
public static byte[] copy(byte[] array, int from, int to) { if(to - from < 0) { return new byte[0]; } else { byte[] a = new byte[to - from]; System.arraycopy(array, from, a, 0, to - from); return a; } }
[ "Copy the specified bytes into a new array\n\n@param array The array to copy from\n@param from The index in the array to begin copying from\n@param to The least index not copied\n@return A new byte[] containing the copied bytes" ]
[ "Do the search, called as a \"page action\"", "Update database schema\n\n@param migrationPath path to migrations", "Set to array.\n@param injectionProviders\nset of providers\n@return array of providers", "Sets the stream for a resource.\nThis function allows you to provide a stream that is already open to\nan existing resource. It will throw an exception if that resource\nalready has an open stream.\n@param s InputStream currently open stream to use for I/O.", "Adds a command class to the list of supported command classes by this node.\nDoes nothing if command class is already added.\n@param commandClass the command class instance to add.", "Creates a bridge accessory, capable of holding multiple child accessories. This has the\nadvantage over multiple standalone accessories of only requiring a single pairing from iOS for\nthe bridge.\n\n@param authInfo authentication information for this accessory. These values should be persisted\nand re-supplied on re-start of your application.\n@param label label for the bridge. This will show in iOS during pairing.\n@param manufacturer manufacturer of the bridge. This information is exposed to iOS for unknown\npurposes.\n@param model model of the bridge. This is also exposed to iOS for unknown purposes.\n@param serialNumber serial number of the bridge. Also exposed. Purposes also unknown.\n@return the bridge, from which you can {@link HomekitRoot#addAccessory add accessories} and\nthen {@link HomekitRoot#start start} handling requests.\n@throws IOException when mDNS cannot connect to the network", "Send value to node.\n@param nodeId the node Id to send the value to.\n@param endpoint the endpoint to send the value to.\n@param value the value to send", "Determines the number of elements that the query would return. Override this\nmethod if the size shall be determined in a specific way.\n\n@return The number of elements", "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." ]
public void remove(IConverter converter, Object sourceObject, TypeReference<?> destinationType) { convertedObjects.remove(new ConvertedObjectsKey(converter, sourceObject, destinationType)); }
[ "remove a converted object from the pool\n\n@param converter\n@param sourceObject\n@param destinationType" ]
[ "Remove a module.\n\n@param moduleName the module name\n@param slot the module slot\n@param existingHash the existing hash\n@return the builder", "End building the prepared script, adding a return value statement\n@param value the value to return\n@param config the configuration for the script to build\n@return the new {@link LuaPreparedScript} instance", "Sets in-place the right child with the same first byte.\n\n@param b next byte of child suffix.\n@param child child node.", "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "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", "Get a list of topics from a group.\n\n@param groupId\nUnique identifier of a group returns a list of topics for a given group {@link Group}.\n@param perPage\nNumber of records per page.\n@param page\nResult-section.\n@return A group topic list\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.topics.getList.html\">API Documentation</a>", "Starts the compressor.", "visibility increased for testing", "Get the last modified time for a set of files." ]
public void handleChannelClosed(final Channel closed, final IOException e) { for(final ActiveOperationImpl<?, ?> activeOperation : activeRequests.values()) { if (activeOperation.getChannel() == closed) { // Only call cancel, to also interrupt still active threads activeOperation.getResultHandler().cancel(); } } }
[ "Receive a notification that the channel was closed.\n\nThis is used for the {@link ManagementClientChannelStrategy.Establishing} since it might use multiple channels.\n\n@param closed the closed resource\n@param e the exception which occurred during close, if any" ]
[ "With the Batik SVG library it is only possible to create new SVG graphics, but you can not modify an\nexisting graphic. So, we are loading the SVG file as plain XML and doing the modifications by hand.", "Creates the server bootstrap.", "changes an existing property with the same name, or adds a new one\n@param key property name with which the specified value is to be\nassociated\n@param value value to be associated with the specified property name\n@return the previous value associated with property name, or null if\nthere was no mapping for property name. (A null return can also\nindicate that the map previously associated null with key.)", "Convert an object to another object with given type\n\n@param <T>\n@param source\nobject to convert\n@param typeReference\nreference to {@link java.lang.reflect.Type}\n@return the converted object if conversion failed\n@throws ConverterException", "Check that an array only contains null elements.\n@param values, can't be null\n@return", "Gets the logger.\n\n@return Returns a Category", "Write the criteria elements, extracting the information of the sub-model.\n\n@param writer the xml stream writer\n@param subModel the interface model\n@param nested whether it the criteria elements are nested as part of <not /> or <any />\n@throws XMLStreamException", "When creating barcode columns\n@return", "Log long string using verbose tag\n\n@param TAG The tag.\n@param longString The long string." ]
private void checkExactlyTheWeeksCheckBoxes(Collection<WeekOfMonth> weeksToCheck) { for (CmsCheckBox cb : m_checkboxes) { cb.setChecked(weeksToCheck.contains(WeekOfMonth.valueOf(cb.getInternalValue()))); } }
[ "Check exactly the week check-boxes representing the given weeks.\n@param weeksToCheck the weeks selected." ]
[ "Calculate the value of a swaption assuming the Black'76 model.\n\n@param forwardSwaprate The forward (spot)\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity.\n@param optionStrike The option strike.\n@param swapAnnuity The swap annuity corresponding to the underlying swap.\n@return Returns the value of a Swaption under the Black'76 model", "A variant of the gamma function.\n@param a the number to apply gain to\n@param b the gain parameter. 0.5 means no change, smaller values reduce gain, larger values increase gain.\n@return the output value", "Called when the end type is changed.", "Get an extent aware RsIterator based on the Query\n\n@param query\n@param cld\n@param factory the Factory for the RsIterator\n@return OJBIterator", "Select the specific vertex and fragment shader to use with this material.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the material properties only.\nIt will ignore the mesh attributes and all lights.\n\n@param context\nGVRContext\n@param material\nmaterial to use with the shader\n@return ID of vertex/fragment shader set", "Used to apply or update the watermark for the item.\n@param itemUrl url template for the item.\n@param imprint the value must be \"default\", as custom watermarks is not yet supported.\n@return the watermark associated with the item.", "Set default values for the TimeAndSizeRollingAppender appender\n\n@param appender", "Checks whether the given field definition is used as the primary key of a class referenced by\na reference.\n\n@param modelDef The model\n@param fieldDef The current field descriptor def\n@return The reference that uses the field or <code>null</code> if the field is not used in this way", "generate random velocities in the given range\n@return" ]
public static int compactDistance(String s1, String s2) { if (s1.length() == 0) return s2.length(); if (s2.length() == 0) return s1.length(); // the maximum edit distance there is any point in reporting. int maxdist = Math.min(s1.length(), s2.length()) / 2; // we allocate just one column instead of the entire matrix, in // order to save space. this also enables us to implement the // algorithm somewhat faster. the first cell is always the // virtual first row. int s1len = s1.length(); int[] column = new int[s1len + 1]; // first we need to fill in the initial column. we use a separate // loop for this, because in this case our basis for comparison is // not the previous column, but a virtual first column. int ix2 = 0; char ch2 = s2.charAt(ix2); column[0] = 1; // virtual first row for (int ix1 = 1; ix1 <= s1len; ix1++) { int cost = s1.charAt(ix1 - 1) == ch2 ? 0 : 1; // Lowest of three: above (column[ix1 - 1]), aboveleft: ix1 - 1, // left: ix1. Latter cannot possibly be lowest, so is // ignored. column[ix1] = Math.min(column[ix1 - 1], ix1 - 1) + cost; } // okay, now we have an initialized first column, and we can // compute the rest of the matrix. int above = 0; for (ix2 = 1; ix2 < s2.length(); ix2++) { ch2 = s2.charAt(ix2); above = ix2 + 1; // virtual first row int smallest = s1len * 2; // used to implement cutoff for (int ix1 = 1; ix1 <= s1len; ix1++) { int cost = s1.charAt(ix1 - 1) == ch2 ? 0 : 1; // above: above // aboveleft: column[ix1 - 1] // left: column[ix1] int value = Math.min(Math.min(above, column[ix1 - 1]), column[ix1]) + cost; column[ix1 - 1] = above; // write previous above = value; // keep current smallest = Math.min(smallest, value); } column[s1len] = above; // check if we can stop because we'll be going over the max distance if (smallest > maxdist) return smallest; } // ok, we're done return above; }
[ "Optimized version of the Wagner & Fischer algorithm that only\nkeeps a single column in the matrix in memory at a time. It\nimplements the simple cutoff, but otherwise computes the entire\nmatrix. It is roughly twice as fast as the original function." ]
[ "Process each regex group matched substring of the given CharSequence. If the closure\nparameter takes one argument, an array with all match groups is passed to it.\nIf the closure takes as many arguments as there are match groups, then each\nparameter will be one match group.\n\n@param self the source CharSequence\n@param regex a Regex CharSequence\n@param closure a closure with one parameter or as much parameters as groups\n@return the source CharSequence\n@see #eachMatch(String, String, groovy.lang.Closure)\n@since 1.8.2", "Returns the last available version of an artifact\n\n@param gavc String\n@return String", "Prepares a Jetty server for communicating with consumers.", "Add the extra parameters which are passed as report parameters. The type of the parameter is \"guessed\" from the\nfirst letter of the parameter name.\n\n@param model view model\n@param request servlet request", "Remove paths with no active overrides\n\n@throws Exception", "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", "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler.", "Get the max extent as a envelop object.", "Return the list of module that uses the targeted artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbModule>" ]
public IPv6Address toLinkLocalIPv6() { IPv6AddressNetwork network = getIPv6Network(); IPv6AddressSection linkLocalPrefix = network.getLinkLocalPrefix(); IPv6AddressCreator creator = network.getAddressCreator(); return creator.createAddress(linkLocalPrefix.append(toEUI64IPv6())); }
[ "Converts to a link-local Ipv6 address. Any MAC prefix length is ignored. Other elements of this address section are incorporated into the conversion.\nThis will provide the latter 4 segments of an IPv6 address, to be paired with the link-local IPv6 prefix of 4 segments.\n\n@return" ]
[ "Get result report.\n\n@param reportURI the URI of the report\n@return the result report.", "Use this API to enable snmpalarm resources of given names.", "Old SOAP client uses new SOAP service", "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().", "Checks that excess arguments match the vararg signature parameter.\n@param params\n@param args\n@return -1 if no match, 0 if all arguments matches the vararg type and >0 if one or more vararg argument is\nassignable to the vararg type, but still not an exact match", "This method performs a series of permissions checks given a directory and properties file path.\n\n1 - Check whether the parent directory dirPath has proper execute and read permissions\n2 - Check whether properties file path is readable and writable\n\nIf either of the permissions checks fail, update validFilePermissions and filePermissionsProblemPath\nappropriately.", "For test purposes only.", "Send message to socket's output stream.\n\n@param messageToSend message to send.\n\n@return {@code true} if message was sent successfully, {@code false} otherwise.", "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy" ]
public void copyPageOnly(CmsResource originalPage, String targetPageRootPath) throws CmsException, NoCustomReplacementException { if ((null == originalPage) || !OpenCms.getResourceManager().getResourceType(originalPage).getTypeName().equals( CmsResourceTypeXmlContainerPage.getStaticTypeName())) { throw new CmsException(new CmsMessageContainer(Messages.get(), Messages.ERR_PAGECOPY_INVALID_PAGE_0)); } m_originalPage = originalPage; CmsObject rootCms = getRootCms(); rootCms.copyResource(originalPage.getRootPath(), targetPageRootPath); CmsResource copiedPage = rootCms.readResource(targetPageRootPath, CmsResourceFilter.IGNORE_EXPIRATION); m_targetFolder = rootCms.readResource(CmsResource.getFolderPath(copiedPage.getRootPath())); replaceElements(copiedPage); attachLocaleGroups(copiedPage); tryUnlock(copiedPage); }
[ "Copies the given container page to the provided root path.\n@param originalPage the page to copy\n@param targetPageRootPath the root path of the copy target.\n@throws CmsException thrown if something goes wrong.\n@throws NoCustomReplacementException if a custom replacement is not found for a type which requires it." ]
[ "Main method of this class related to ListView widget. This method is the responsible of\nrecycle or create a new Renderer instance with all the needed information to implement the\nrendering. This method will validate all the attributes passed in the builder constructor and\nwill check if can recycle or has to create a new Renderer instance.\n\nThis method is used with ListView because the view recycling mechanism is implemented in this\nclass. RecyclerView widget will use buildRendererViewHolder method.\n\n@return ready to use Renderer instance.", "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance", "Enter information into the hidden input field.\n\n@param input The input to enter into the hidden field.", "Removes empty space when \"fitToContent\" is true and real height of object is\ntaller than current bands height, otherwise, it is not modified\n\n@param band\n@param currHeigth\n@param fitToContent", "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "do the parsing on an JSONObject, assumes that the json is hierarchical\nordered, so all shapes are reachable over child relations\n@param json hierarchical JSON object\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException", "Update the descriptor content with values from the editor.\n@throws CmsXmlException thrown if update fails due to a wrong XML structure (should never happen)", "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", "Run a task once, after a delay.\n\n@param task\nTask to run.\n@param delay\nUnit is seconds.\n@return An interface that lets you query the status; cancel; or\nreschedule the event." ]
public static String replaceFirst(final CharSequence self, final CharSequence regex, final CharSequence replacement) { return self.toString().replaceFirst(regex.toString(), replacement.toString()); }
[ "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" ]
[ "main class entry point.", "Method to build Integration Flow for Mail. Suppress Warnings for\nMailInboundChannelAdapterSpec.\n@return Integration Flow object for Mail Source", "Return all objects for the given class.", "Returns the supplied string with any trailing '\\n' removed.", "Download a file asynchronously.\n@param url the URL pointing to the file\n@param retrofit the retrofit client\n@return an Observable pointing to the content of the file", "Notifies that multiple footer items are changed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Writes task baseline data.\n\n@param xmlTask MSPDI task\n@param mpxjTask MPXJ task", "If the resource has ordered child types, those child types will be stored in the attachment. If there are no\nordered child types, this method is a no-op.\n\n@param resourceAddress the address of the resource\n@param resource the resource which may or may not have ordered children.", "Gets all checked widgets in the group\n@return list of checked widgets" ]
protected String getArgString(Object arg) { //if (arg instanceof LatLong) { // return ((LatLong) arg).getVariableName(); //} else if (arg instanceof JavascriptObject) { return ((JavascriptObject) arg).getVariableName(); // return ((JavascriptObject) arg).getPropertiesAsString(); } else if( arg instanceof JavascriptEnum ) { return ((JavascriptEnum) arg).getEnumValue().toString(); } else { return arg.toString(); } }
[ "Takes the specified object and converts the argument to a String.\n\n@param arg The object to convert\n@return A String representation of the argument." ]
[ "In the 3.0 xsd the vault configuration and its options are part of the vault xsd.\n\n@param reader the reader at the vault element\n@param expectedNs the namespace\n@return the vault configuration", "Redirect to page\n\n@param model\n@return", "Returns the parsed story from the given text\n\n@param configuration the Configuration used to run story\n@param storyAsText the story text\n@param storyId the story Id, which will be returned as story path\n@return The parsed Story", "Obtains a Pax local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Pax local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Use this API to fetch all the systemcore resources that are configured on netscaler.\nThis uses systemcore_args which is a way to provide additional arguments while fetching the resources.", "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value", "Do the search, called as a \"page action\"", "Use this API to fetch all the authenticationradiusaction resources that are configured on netscaler.", "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted." ]
public void updateActive(int profileId, String clientUUID, Boolean active) throws Exception { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_CLIENT + " SET " + Constants.CLIENT_IS_ACTIVE + "= ?" + " WHERE " + Constants.GENERIC_CLIENT_UUID + "= ? " + " AND " + Constants.GENERIC_PROFILE_ID + "= ?" ); statement.setBoolean(1, active); statement.setString(2, clientUUID); statement.setInt(3, profileId); statement.executeUpdate(); } catch (Exception e) { // ok to swallow this.. just means there wasn't any } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "disables the current active id, enables the new one selected\n\n@param profileId profile ID of the client\n@param clientUUID UUID of the client\n@param active true to make client active, false to make client inactive\n@throws Exception exception" ]
[ "Writes references that have been added recently. Auxiliary triples that\nare generated for serializing snaks in references will be written right\nafterwards. This will also trigger any other auxiliary triples to be\nwritten that the snak converter object may have buffered.\n\n@throws RDFHandlerException\nif there was a problem writing the restrictions", "Parses the field facet configurations.\n@param fieldFacetObject The JSON sub-node with the field facet configurations.\n@return The field facet configurations.", "Adds mappings for each declared field in the mapped class. Any fields\nalready mapped by addColumn are skipped.", "Records that there is media mounted in a particular media player slot, updating listeners if this is a change.\nAlso send a query to the player requesting details about the media mounted in that slot, if we don't already\nhave that information.\n\n@param slot the slot in which media is mounted", "Dump the buffer contents to a file\n@param file\n@throws IOException", "Use this API to fetch systemsession resource of given name .", "This method takes the value of an agent's belief through its external\naccess\n\n@param agent_name\nThe name of the agent\n@param belief_name\nThe name of the belief inside agent's adf\n@param connector\nThe connector to get the external access\n@return belief_value The value of the requested belief", "Returns the given dialect, narrowed down to the given dialect facet in case it is implemented by the dialect.\n\n@param gridDialect the dialect of interest\n@param facetType the dialect facet type of interest\n@return the given dialect, narrowed down to the given dialect facet or {@code null} in case the given dialect\ndoes not implement the given facet", "called per frame of animation to update the camera position" ]
public Object remove(Object key) { if (key == null) return null; purge(); int hash = hashCode(key); int index = indexFor(hash); Entry previous = null; Entry entry = table[index]; while (entry != null) { if ((hash == entry.hash) && equals(key, entry.getKey())) { if (previous == null) table[index] = entry.next; else previous.next = entry.next; this.size--; modCount++; return entry.getValue(); } previous = entry; entry = entry.next; } return null; }
[ "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map" ]
[ "Updates metadata versions on stores.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param oldStoreDefs List of old store definitions\n@param newStoreDefs List of new store definitions", "Uploads bytes to an open upload session.\n@param data data\n@param offset the byte position where the chunk begins in the file.\n@param partSize the part size returned as part of the upload session instance creation.\nOnly the last chunk can have a lesser value.\n@param totalSizeOfFile The total size of the file being uploaded.\n@return the part instance that contains the part id, offset and part size.", "This method returns the installed identity with the requested name and version.\nIf the product name is null, the default identity will be returned.\n\nIf the product name was recognized and the requested version was not null,\nthe version comparison will take place. If the version of the currently installed product\ndoesn't match the requested one, the exception will be thrown.\nIf the requested version is null, the currently installed identity with the requested name\nwill be returned.\n\nIf the product name was not recognized among the registered ones, a new installed identity\nwith the requested name will be created and returned. (This is because the patching system\nis not aware of how many and what the patching streams there are expected).\n\n@param productName\n@param productVersion\n@return\n@throws PatchingException", "Runs the module import script.\n\n@param cms the CMS context to use\n@param module the module for which to run the script", "This is a convenience method to add a default derived\ncalendar to the project.\n\n@return new ProjectCalendar instance", "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists of RTFEmbeddedObject instances", "Use this API to fetch authenticationradiusaction resource of given name .", "Called to update the cached formats when something changes.", "Writes the data collected about classes to a file." ]
private void createSimpleCubeSixMeshes(GVRContext gvrContext, boolean facingOut, String vertexDesc, ArrayList<GVRTexture> textureList) { GVRSceneObject[] children = new GVRSceneObject[6]; GVRMesh[] meshes = new GVRMesh[6]; GVRVertexBuffer vbuf = new GVRVertexBuffer(gvrContext, vertexDesc, SIMPLE_VERTICES.length / 3); if (facingOut) { vbuf.setFloatArray("a_position", SIMPLE_VERTICES, 3, 0); vbuf.setFloatArray("a_normal", SIMPLE_OUTWARD_NORMALS, 3, 0); vbuf.setFloatArray("a_texcoord", SIMPLE_OUTWARD_TEXCOORDS, 2, 0); meshes[0] = createMesh(vbuf, SIMPLE_OUTWARD_FRONT_INDICES); meshes[1] = createMesh(vbuf, SIMPLE_OUTWARD_RIGHT_INDICES); meshes[2] = createMesh(vbuf, SIMPLE_OUTWARD_BACK_INDICES); meshes[3] = createMesh(vbuf, SIMPLE_OUTWARD_LEFT_INDICES); meshes[4] = createMesh(vbuf, SIMPLE_OUTWARD_TOP_INDICES); meshes[5] = createMesh(vbuf, SIMPLE_OUTWARD_BOTTOM_INDICES); } else { vbuf.setFloatArray("a_position", SIMPLE_VERTICES, 3, 0); vbuf.setFloatArray("a_normal", SIMPLE_INWARD_NORMALS, 3, 0); vbuf.setFloatArray("a_texcoord", SIMPLE_INWARD_TEXCOORDS, 2, 0); meshes[0] = createMesh(vbuf, SIMPLE_INWARD_FRONT_INDICES); meshes[1] = createMesh(vbuf, SIMPLE_INWARD_RIGHT_INDICES); meshes[2] = createMesh(vbuf, SIMPLE_INWARD_BACK_INDICES); meshes[3] = createMesh(vbuf, SIMPLE_INWARD_LEFT_INDICES); meshes[4] = createMesh(vbuf, SIMPLE_INWARD_TOP_INDICES); meshes[5] = createMesh(vbuf, SIMPLE_INWARD_BOTTOM_INDICES); } for (int i = 0; i < 6; i++) { children[i] = new GVRSceneObject(gvrContext, meshes[i], textureList.get(i)); addChildObject(children[i]); } // attached an empty renderData for parent object, so that we can set some common properties GVRRenderData renderData = new GVRRenderData(gvrContext); attachRenderData(renderData); }
[ "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" ]
[ "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "Handles an initial response from a PUT or PATCH operation response by polling the status of the operation\nasynchronously, once the operation finishes emits the final response.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param resourceType the java.lang.reflect.Type of the resource.\n@param <T> the return type of the caller.\n@return the observable of which a subscription will lead to a final response.", "Helper function to create JsonArray from collection.\n\n@param values collection of values to convert to JsonArray\n@return JsonArray with collection values", "Use this API to fetch sslvserver_sslcertkey_binding resources of given name .", "Add the operation to add the local host definition.", "Return whether or not the field value passed in is the default value for the type of the field. Null will return\ntrue.", "Write a short to the byte array starting at the given offset\n\n@param bytes The byte array\n@param value The short to write\n@param offset The offset to begin writing at", "Generate a path select string\n\n@return Select query string", "Emit an event object with parameters.\n\nThis will invoke all {@link SimpleEventListener} bound to the event object\nclass given the listeners has the matching argument list.\n\nIf there is no parameter passed in, i.e. `args.length == 0`, then it will\nalso invoke all the {@link ActEventListener} bound to the event class.\n\nFor example, suppose we have the following Event defined:\n\n```java\npublic class UserActivityEvent extends ActEvent<User> {\npublic UserActivityEvent(User user) {super(user);}\n}\n```\n\nAnd we have the following event handler defined:\n\n```java\n{@literal @}OnEvent\npublic void logUserLogin(UserActivityEvent event, long timestamp) {...}\n\n{@literal @}OnEvent\npublic void checkDuplicateLoginAttempts(UserActivityEvent, Object... args) {...}\n\n{@literal @}OnEvent\npublic void foo(UserActivityEvent event) {...}\n```\n\nThe following code will invoke `logUserLogin` and `checkDuplicateLoginAttempts` methods:\n\n```java\nUser user = ...;\neventBus.emit(new UserActivityEvent(user), System.currentTimeMills());\n```\n\nThe `foo(UserActivityEvent)` will not invoked because:\n\n* The parameter list `(UserActivityEvent, long)` does not match the declared\nargument list `(UserActivityEvent)`. Here the `String` in the parameter\nlist is taken out because it is used to indicate the event, instead of being\npassing through to the event handler method.\n* The method `checkDuplicateLoginAttempts(UserActivityEvent, Object ...)` will\nbe invoked because it declares a varargs typed arguments, meaning it matches\nany parameters passed in.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see SimpleEventListener" ]
public void resize(int w, int h) { // using the new approach of Java 2D API BufferedImage buf = new BufferedImage(w, h, image.getType()); Graphics2D g2d = (Graphics2D) buf.getGraphics(); g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); g2d.drawImage(image, 0, 0, w, h, null); g2d.dispose(); image = buf; width = w; height = h; updateColorArray(); }
[ "Resize the image passing the new height and width\n\n@param height\n@param width\n@return" ]
[ "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)", "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Find the number of Strings matched to the given Matcher.\n\n@param matcher a Matcher\n@return int the number of Strings matched to the given matcher.\n@since 1.0", "Read ClassDescriptors from the given repository file.\n@see #mergeDescriptorRepository", "Indicate to the RecyclerView the type of Renderer used to one position using a numeric value.\n\n@param position to analyze.\n@return the id associated to the Renderer used to render the content given a position.", "Checks if a parameter exists. If it exists, it is left untouched. If it doesn't, it is created. Only works for parameters which key\nis unique. Must be called from within an open transaction.", "Create a FreeMarkerOperation with the provided furnace instance template path, and varNames.\n\nThe variables in varNames will be provided to the template, and a new ReportModel will be created with these variables attached.", "Removes and returns a random element from the set.\n@return the removed element, or <code>null</code> when the key does not exist.", "Returns Task field name of supplied code no.\n\n@param key - the code no of required Task field\n@return - field name" ]
public Object invokeMethod(String name, Object args) { Object val = null; if (args != null && Object[].class.isAssignableFrom(args.getClass())) { Object[] arr = (Object[]) args; if (arr.length == 1) { val = arr[0]; } else if (arr.length == 2 && arr[0] instanceof Collection && arr[1] instanceof Closure) { Closure<?> closure = (Closure<?>) arr[1]; Iterator<?> iterator = ((Collection) arr[0]).iterator(); List<Object> list = new ArrayList<Object>(); while (iterator.hasNext()) { list.add(curryDelegateAndGetContent(closure, iterator.next())); } val = list; } else { val = Arrays.asList(arr); } } content.put(name, val); return val; }
[ "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" ]
[ "Reads a \"message set\" argument, and parses into an IdSet.\nCurrently only supports a single range of values.", "Populates the project header.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "This method is a sync parse to the JSON stream of atlas information.\n\n@return List of atlas information.", "Retrieves the task mode.\n\n@return task mode", "Get the connectivity state as reported by the Android system\n\n@param context Android context\n@return the connectivity state as reported by the Android system", "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", "Excludes Vertices that are of the provided type.", "Return true if c has a @hidden tag associated with it", "Returns the red color component of a color from a vertex color set.\n\n@param vertex the vertex index\n@param colorset the color set\n@return the red color component" ]
public PayloadBuilder category(final String category) { if (category != null) { aps.put("category", category); } else { aps.remove("category"); } return this; }
[ "Sets the category of the notification for iOS8 notification\nactions. See 13 minutes into \"What's new in iOS Notifications\"\n\nPassing {@code null} removes the category.\n\n@param category the name of the category supplied to the app\nwhen receiving the notification\n@return this" ]
[ "Add all the items from an iterable to a collection.\n\n@param <T>\nThe type of items in the iterable and the collection\n@param collection\nThe collection to which the items should be added.\n@param items\nThe items to add to the collection.", "Merge the two maps.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n<p>\nIf a key exists in the left and right operands, the value in the right operand is preferred.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the left map.\n@param right the right map.\n@return a map with the merged contents from the two maps.\n@throws IllegalArgumentException - when a right operand key exists in the left operand.\n@since 2.15", "Map originator type.\n\n@param originatorType the originator type\n@return the originator", "Parses whole value as list attribute\n@deprecated in favour of using {@link AttributeParser attribute parser}\n@param value String with \",\" separated string elements\n@param operation operation to with this list elements are added\n@param reader xml reader from where reading is be done\n@throws XMLStreamException if {@code value} is not valid", "Remove specified override id from enabled overrides for path\n\n@param overrideId ID of override to remove\n@param pathId ID of path containing override\n@param ordinal index to the instance of the enabled override\n@param clientUUID UUID of client", "Writes the data collected about classes to a file.", "Handle a \"current till end\" change event.\n@param event the change event.", "Iterates through the given InputStream line by line using the specified\nencoding, splitting each line using the given separator. The list of tokens\nfor each line is then passed to the given closure. Finally, the stream\nis closed.\n\n@param stream an InputStream\n@param regex the delimiting regular expression\n@param charset opens the stream with a specified charset\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 #splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5", "Split string content into list\n@param content String content\n@return list" ]
public Object getColumnValue(String columnName) { for ( int j = 0; j < columnNames.length; j++ ) { if ( columnNames[j].equals( columnName ) ) { return columnValues[j]; } } return null; }
[ "Get the value of the specified column.\n\n@param columnName the name of the column\n@return the corresponding value of the column, {@code null} if the column does not exist in the row key" ]
[ "Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name .", "Handles Multi Channel Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\nendpoint.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Create the time entry map.\n\n@param rows work pattern rows\n@return time entry map", "Put the given value to the appropriate id in the stack, using the version\nof the current list node identified by that id.\n\n@param id\n@param element element to set\n@return element that was replaced by the new element\n@throws ObsoleteVersionException when an update fails", "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task.", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Parses the supplied text and converts it to a Long\ncorresponding to that midnight in UTC on the specified date.\n\n@return null if it fails to parsing using the specified\nDateTimeFormat", "Gets information about the device pin.\n@param fields the fields to retrieve.\n@return info about the device pin.", "Set the repeat count of an override at ordinal index\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param repeatCount new repeat count to set\n@return true if success, false otherwise" ]
void portForward(final Patch patch, IdentityPatchContext context) throws PatchingException, IOException, XMLStreamException { assert patch.getIdentity().getPatchType() == Patch.PatchType.CUMULATIVE; final PatchingHistory history = context.getHistory(); for (final PatchElement element : patch.getElements()) { final PatchElementProvider provider = element.getProvider(); final String name = provider.getName(); final boolean addOn = provider.isAddOn(); final IdentityPatchContext.PatchEntry target = context.resolveForElement(element); final String cumulativePatchID = target.getCumulativePatchID(); if (Constants.BASE.equals(cumulativePatchID)) { reenableRolledBackInBase(target); continue; } boolean found = false; final PatchingHistory.Iterator iterator = history.iterator(); while (iterator.hasNextCP()) { final PatchingHistory.Entry entry = iterator.nextCP(); final String patchId = addOn ? entry.getAddOnPatches().get(name) : entry.getLayerPatches().get(name); if (patchId != null && patchId.equals(cumulativePatchID)) { final Patch original = loadPatchInformation(entry.getPatchId(), installedImage); for (final PatchElement originalElement : original.getElements()) { if (name.equals(originalElement.getProvider().getName()) && addOn == originalElement.getProvider().isAddOn()) { PatchingTasks.addMissingModifications(target, originalElement.getModifications(), ContentItemFilter.ALL_BUT_MISC); } } // Record a loader to have access to the current modules final DirectoryStructure structure = target.getDirectoryStructure(); final File modulesRoot = structure.getModulePatchDirectory(patchId); final File bundlesRoot = structure.getBundlesPatchDirectory(patchId); final PatchContentLoader loader = PatchContentLoader.create(null, bundlesRoot, modulesRoot); context.recordContentLoader(patchId, loader); found = true; break; } } if (!found) { throw PatchLogger.ROOT_LOGGER.patchNotFoundInHistory(cumulativePatchID); } reenableRolledBackInBase(target); } }
[ "Port forward missing module changes for each layer.\n\n@param patch the current patch\n@param context the patch context\n@throws PatchingException\n@throws IOException\n@throws XMLStreamException" ]
[ "Returns the index of the eigenvalue which has the largest magnitude.\n\n@return index of the largest magnitude eigen value.", "This one picks up on Dan2 ideas, but seeks to make less distinctions\nmid sequence by sorting for long words, but to maintain extra\ndistinctions for short words, by always recording the class of the\nfirst and last two characters of the word.\nCompared to chris2 on which it is based,\nit uses more Unicode classes, and so collapses things like\npunctuation more, and might work better with real unicode.\n\n@param s The String to find the word shape of\n@param omitIfInBoundary If true, character classes present in the\nfirst or last two (i.e., BOUNDARY_SIZE) letters\nof the word are not also registered\nas classes that appear in the middle of the word.\n@param knownLCWords If non-null and non-empty, tag with a \"k\" suffix words\nthat are in this list when lowercased (representing\nthat the word is \"known\" as a lowercase word).\n@return A word shape for the word.", "replaces the old with the new item. The new item will not be added when the old one is not\nfound.\n\n@param oldObject will be removed\n@param newObject is added only when hte old item is removed", "Sets the provided filters.\n@param filters a map \"column id -> filter\".", "Serialize a parameterized object to a JSON String.\n\n@param object The object to serialize.\n@param parameterizedType The ParameterizedType describing the object. Ex: LoganSquare.serialize(object, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });", "Print duration in thousandths of minutes.\n\n@param duration Duration instance\n@return duration in thousandths of minutes", "Read all resource assignments from a GanttProject project.\n\n@param gpProject GanttProject project", "Use this API to delete dnstxtrec.", "Executes a batch plan.\n\n@param batchId Used as the ID of the batch plan. This allows related\ntasks on client- & server-side to pretty print messages in a\nmanner that debugging can track specific batch plans across the\ncluster.\n@param batchPlan The batch plan..." ]
private static long hexdump(InputStream is, PrintWriter pw) throws Exception { byte[] buffer = new byte[BUFFER_SIZE]; long byteCount = 0; char c; int loop; int count; StringBuilder sb = new StringBuilder(); while (true) { count = is.read(buffer); if (count == -1) { break; } byteCount += count; sb.setLength(0); for (loop = 0; loop < count; loop++) { sb.append(" "); sb.append(HEX_DIGITS[(buffer[loop] & 0xF0) >> 4]); sb.append(HEX_DIGITS[buffer[loop] & 0x0F]); } while (loop < BUFFER_SIZE) { sb.append(" "); ++loop; } sb.append(" "); for (loop = 0; loop < count; loop++) { c = (char) buffer[loop]; if (c > 200 || c < 27) { c = ' '; } sb.append(c); } pw.println(sb.toString()); } return (byteCount); }
[ "This method dumps the entire contents of a file to an output\nprint writer as hex and ASCII data.\n\n@param is Input Stream\n@param pw Output PrintWriter\n@return number of bytes read\n@throws Exception Thrown on file read errors" ]
[ "Get layer style by name.\n\n@param name layer style name\n@return layer style", "After obtaining a connection, perform additional tasks.\n@param handle\n@param statsObtainTime", "Check if this applies to the provided authorization scope and return the credentials for that scope or\nnull if it doesn't apply to the scope.\n\n@param authscope the scope to test against.", "Get the list of store names from a list of store definitions\n\n@param list\n@param ignoreViews\n@return list of store names", "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "Returns the real value object.", "Converts the given list of a type to paged list of a different type.\n\n@param list the list to convert to paged list\n@param mapper the mapper to map type in input list to output list\n@param <OutT> the type of items in output paged list\n@param <InT> the type of items in input paged list\n@return the paged list", "Create the actual patchable target.\n\n@param name the layer name\n@param layer the layer path config\n@param metadata the metadata location for this target\n@param image the installed image\n@return the patchable target\n@throws IOException", "Use this API to unset the properties of Interface resource.\nProperties that need to be unset are specified in args array." ]
public static vpnglobal_appcontroller_binding[] get(nitro_service service) throws Exception{ vpnglobal_appcontroller_binding obj = new vpnglobal_appcontroller_binding(); vpnglobal_appcontroller_binding response[] = (vpnglobal_appcontroller_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch a vpnglobal_appcontroller_binding resources." ]
[ "Returns the value of the element with the largest value\n@param A (Input) Matrix. Not modified.\n@return scalar", "Move the SQL value to the next one for version processing.", "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps", "Throw fault.\n\n@param code the fault code\n@param message the message\n@param t the throwable type\n@throws PutEventsFault", "Read all child tasks for a given parent.\n\n@param parentTask parent task", "Return as a string the tagged values associated with c\n@param opt the Options used to guess font names\n@param c the Doc entry to look for @tagvalue\n@param prevterm the termination string for the previous element\n@param term the termination character for each tagged value", "Takes a date, and retrieves the next business day\n\n@param dateString the date\n@param onlyBusinessDays only business days\n@return a string containing the next business day", "Option check, forwards options to the standard doclet, if that one refuses them,\nthey are sent to UmlGraph", "performs a SQL SELECT statement against RDBMS.\n@param sql the query string.\n@param cld ClassDescriptor providing meta-information." ]
@UiThread protected void expandView() { setExpanded(true); onExpansionToggled(false); if (mParentViewHolderExpandCollapseListener != null) { mParentViewHolderExpandCollapseListener.onParentExpanded(getAdapterPosition()); } }
[ "Triggers expansion of the parent." ]
[ "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", "Sets the left padding character for all cells in the row.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "returns a sorted array of constructors", "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation of column data\n@throws MPXJException", "Create a rollback patch based on the recorded actions.\n\n@param patchId the new patch id, depending on release or one-off\n@param patchType the current patch identity\n@return the rollback patch", "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\"", "Detach a connection from a key.\n\n@param key\nthe key\n@param connection\nthe connection", "Show a toast-like message for the specified duration\n\n@param message\n@param duration in seconds", "Remove a tag from a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param tagId\nThe tag ID\n@throws FlickrException" ]
private static URI createRaster( final Dimension targetSize, final RasterReference rasterReference, final Double rotation, final Color backgroundColor, final File workingDir) throws IOException { final File path = File.createTempFile("north-arrow-", ".png", workingDir); final BufferedImage newImage = new BufferedImage(targetSize.width, targetSize.height, BufferedImage.TYPE_4BYTE_ABGR); final Graphics2D graphics2d = newImage.createGraphics(); try { final BufferedImage originalImage = ImageIO.read(rasterReference.inputStream); if (originalImage == null) { LOGGER.warn("Unable to load NorthArrow graphic: {}, it is not an image format that can be " + "decoded", rasterReference.uri); throw new IllegalArgumentException(); } // set background color graphics2d.setColor(backgroundColor); graphics2d.fillRect(0, 0, targetSize.width, targetSize.height); // scale the original image to fit the new size int newWidth; int newHeight; if (originalImage.getWidth() > originalImage.getHeight()) { newWidth = targetSize.width; newHeight = Math.min( targetSize.height, (int) Math.ceil(newWidth / (originalImage.getWidth() / (double) originalImage.getHeight()))); } else { newHeight = targetSize.height; newWidth = Math.min( targetSize.width, (int) Math.ceil(newHeight / (originalImage.getHeight() / (double) originalImage.getWidth()))); } // position the original image in the center of the new int deltaX = (int) Math.floor((targetSize.width - newWidth) / 2.0); int deltaY = (int) Math.floor((targetSize.height - newHeight) / 2.0); if (!FloatingPointUtil.equals(rotation, 0.0)) { final AffineTransform rotate = AffineTransform.getRotateInstance( rotation, targetSize.width / 2.0, targetSize.height / 2.0); graphics2d.setTransform(rotate); } graphics2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); graphics2d.drawImage(originalImage, deltaX, deltaY, newWidth, newHeight, null); ImageUtils.writeImage(newImage, "png", path); } finally { graphics2d.dispose(); } return path.toURI(); }
[ "Renders a given graphic into a new image, scaled to fit the new size and rotated." ]
[ "Add the operation at the end of Stage MODEL if this operation has not already been registered.\n\nThis operation should be added if any of the following occur: -\n- The authorization configuration is removed from a security realm.\n- The rbac provider is changed to rbac.\n- A role is removed.\n- An include is removed from a role.\n- A management interface is removed.\n\nNote: This list only includes actions that could invalidate the configuration, actions that would not invalidate the\nconfiguration do not need this operation registering. e.g. Adding a role, if the configuration was already valid this\ncould not invalidate it.\n\n@param context - The OperationContext to use to register the step.", "Get the default provider used.\n\n@return the default provider, never {@code null}.", "Retrieves all file version retentions.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions.", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "Appends the query part for the facet to the query string.\n@param query The current query string.\n@param name The name of the facet parameter, e.g. \"limit\", \"order\", ....\n@param value The value to set for the parameter specified by name.", "Return a key to identify the connection descriptor.", "Clears all checked widgets in the group", "Delete any log segments matching the given predicate function\n\n@throws IOException", "Sets name, status, start time and title to specified step\n\n@param step which will be changed" ]
public static authenticationvserver_authenticationcertpolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_authenticationcertpolicy_binding obj = new authenticationvserver_authenticationcertpolicy_binding(); obj.set_name(name); authenticationvserver_authenticationcertpolicy_binding response[] = (authenticationvserver_authenticationcertpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name ." ]
[ "Encodes the given URI port with the given encoding.\n@param port the port to be encoded\n@param encoding the character encoding to encode to\n@return the encoded port\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Calls the specified Stitch function, and decodes the response into an instance of the specified\ntype. The response will be decoded using the codec registry given.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.\n@param resultClass the class that the Stitch response should be decoded as.\n@param <T> the type into which the Stitch response will be decoded.\n@param codecRegistry the codec registry that will be used to encode/decode the function call.\n@return the decoded value.", "Apply the necessary rotation to the transform so that it is in front of\nthe camera.\n\n@param transform The transform to modify.", "Checks the given class descriptor for correct row-reader setting.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Returns the number of vertex indices for a single face.\n\n@param face the face\n@return the number of indices", "Create a JsonParser for a given json node.\n@param jsonNode the json node\n@return the json parser\n@throws IOException", "Throw IllegalStateException if key is not present in map.\n@param key the key to expect.\n@param map the map to search.\n@throws IllegalArgumentException if key is not in map.", "Sets the license for a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo to update the license for.\n@param licenseId\nThe license to apply, or 0 (zero) to remove the current license.\n@throws FlickrException", "Get the seconds difference" ]
public static <T> List<T> copyOf(Collection<T> source) { Preconditions.checkNotNull(source); if (source instanceof ImmutableList<?>) { return (ImmutableList<T>) source; } if (source.isEmpty()) { return Collections.emptyList(); } return ofInternal(source.toArray()); }
[ "Creates an immutable list that consists of the elements in the given collection. If the given collection is already an immutable list,\nit is returned directly.\n\n@param source the given collection\n@return an immutable list" ]
[ "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration", "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.", "This method takes a calendar of MPXJ library type, then returns a String of the\ngeneral working days USACE format. For example, the regular 5-day work week is\nNYYYYYN\n\nIf you get Fridays off work, then the String becomes NYYYYNN\n\n@param input ProjectCalendar instance\n@return work days string", "Adds this vector to v1 and places the result in this vector.\n\n@param v1\nright-hand vector", "Use this API to fetch nslimitidentifier_binding resource of given name .", "Creates a new HTML-formatted label with the given content.\n\n@param html the label content", "Get the first non-white Y point\n@param img Image in memory\n@return the trimmed y start", "creates a bounds object with both point parsed from the json and set it\nto the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Returns a set that contains all the unique entries of the given iterator in the order of their appearance.\nThe result set is a copy of the iterator with stable order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a set with the unique entries of the given iterator. Never <code>null</code>." ]
public CliCommandBuilder setTimeout(final int timeout) { if (timeout > 0) { addCliArgument(CliArgument.TIMEOUT, Integer.toString(timeout)); } else { addCliArgument(CliArgument.TIMEOUT, null); } return this; }
[ "Sets the timeout used when connecting to the server.\n\n@param timeout the time out to use\n\n@return the builder" ]
[ "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set", "Use this API to fetch rewritepolicylabel_rewritepolicy_binding resources of given name .", "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", "Helper function to bind script bundler to various targets", "Use this API to fetch aaagroup_vpntrafficpolicy_binding resources of given name .", "Throw IllegalStateException if key is not present in map.\n@param key the key to expect.\n@param map the map to search.\n@throws IllegalArgumentException if key is not in map.", "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes", "Return the key if there is one else return -1", "Get a configured database connection via JNDI." ]
public static final Integer getInteger(Number value) { Integer result = null; if (value != null) { if (value instanceof Integer) { result = (Integer) value; } else { result = Integer.valueOf((int) Math.round(value.doubleValue())); } } return (result); }
[ "Utility method used to convert an arbitrary Number into an Integer.\n\n@param value Number instance\n@return Integer instance" ]
[ "Returns the Class object of the Event implementation.", "Returns the value of the element with the minimum value\n@param A (Input) Matrix. Not modified.\n@return scalar", "Get the real Class\n\n@param objectOrProxy\n@return Class", "Get all the handlers at a specific address.\n\n@param address the address\n@param inherited true to include the inherited operations\n@return the handlers", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors.", "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Replace bad xml charactes in given array by space\n\n@param cbuf buffer to replace in\n@param off Offset from which to start reading characters\n@param len Number of characters to be replaced", "Used to create a new indefinite retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@return the created retention policy's info." ]
public static Date addDays(Date date, int days) { Calendar cal = popCalendar(date); cal.add(Calendar.DAY_OF_YEAR, days); Date result = cal.getTime(); pushCalendar(cal); return result; }
[ "Add a number of days to the supplied date.\n\n@param date start date\n@param days number of days to add\n@return new date" ]
[ "Sets the name of the designated bone.\n\n@param boneindex zero based index of bone to rotate.\n@param bonename string with name of bone.\n. * @see #getBoneName", "Returns the name of the bone.\n\n@return the name", "Probe the existing cluster to retrieve the current cluster xml and stores\nxml.\n\n@return Pair of Cluster and List<StoreDefinition> from current cluster.", "Builder method for specifying the stack an app should be created on.\n@param stack Stack to create the app on.\n@return A copy of the {@link App}", "needs to be resolved once extension beans are deployed", "Retrieve a boolean field.\n\n@param type field type\n@return field data", "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@param target\nthe class\n@return\ntrue if the class node 'is a' target", "Handles DMR strings in the configuration\n\n@param node the node to create.\n@param name the name for the node.\n@param value the value for the node.", "Template-and-Hook method for generating the url required by the jdbc driver\nto allow for modifying an existing database." ]
public String getAuthorizationUrl(OAuth1RequestToken oAuthRequestToken, Permission permission) { OAuth10aService service = new ServiceBuilder(apiKey) .apiSecret(sharedSecret) .build(FlickrApi.instance()); String authorizationUrl = service.getAuthorizationUrl(oAuthRequestToken); return String.format("%s&perms=%s", authorizationUrl, permission.toString()); }
[ "Get the auth URL, this is step two of authorization.\n\n@param oAuthRequestToken\nthe token from a {@link AuthInterface#getRequestToken} call." ]
[ "Build a request URL using a given scheme.\n\n@param scheme the scheme, either {@code http} or {@code https}\n@param host\nThe host\n@param port\nThe port\n@param path\nThe path\n@param parameters\nThe parameters\n@return The URL\n@throws MalformedURLException", "Build control archive of the deb\n\n@param packageControlFile the package control file\n@param controlFiles the other control information files (maintainer scripts, etc)\n@param dataSize the size of the installed package\n@param checksums the md5 checksums of the files in the data archive\n@param output\n@return\n@throws java.io.FileNotFoundException\n@throws java.io.IOException\n@throws java.text.ParseException", "below is testing code", "Builds a batch-fetch capable loader based on the given persister, lock-options, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockOptions The lock options\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Factory method to do the setup and transformation of inputs\n\n@param matrix a {@link TestMatrixArtifact} loaded by ProctorLoader\n@param loadResult a {@link ProctorLoadResult} which contains result of validation of test definition\n@param functionMapper a given el {@link FunctionMapper}\n@return constructed Proctor object", "Log a warning for the resource at the provided address and a single attribute. The detail message is a default\n'Attributes are not understood in the target model version and this resource will need to be ignored on the target host.'\n\n@param address where warning occurred\n@param attribute attribute we are warning about", "Creates a directory at the given path if it does not exist yet and if the\ndirectory manager was not configured for read-only access.\n\n@param path\n@throws IOException\nif it was not possible to create a directory at the given\npath", "Cancel old waiting jobs.\n\n@param starttimeThreshold threshold for start time\n@param checkTimeThreshold threshold for last check time\n@param message the error message", "Reads a single day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT week day" ]
public String getPrototypeName() { String name = getClass().getName(); if (name.startsWith(ORG_GEOMAJAS)) { name = name.substring(ORG_GEOMAJAS.length()); } name = name.replace(".dto.", ".impl."); return name.substring(0, name.length() - 4) + "Impl"; }
[ "Get prototype name.\n\n@return prototype name" ]
[ "Adds format information to eval.", "Get image Id from imageTag using DockerBuildInfoHelper client.\n\n@param imageTag\n@param host\n@return", "Use this API to clear Interface.", "creates a shape list containing all child shapes and set it to the\ncurrent shape new shape get added to the shape array\n@param shapes\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Returns the chunk id for the file name\n\n@param fileName The file name\n@return Chunk id", "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer", "Gets the or create protocol header.\n\n@param message the message\n@return the message headers map", "Use this API to clear gslbldnsentries.", "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" ]
public static int[] getTileScreenSize(double[] worldSize, double scale) { int screenWidth = (int) Math.round(scale * worldSize[0]); int screenHeight = (int) Math.round(scale * worldSize[1]); return new int[] { screenWidth, screenHeight }; }
[ "Calculate the screen size of a tile. Normally the screen size is expressed in pixels and should therefore be\nintegers, but for the sake of accuracy we try to keep a double value as long as possible.\n\n@param worldSize\nThe width and height of a tile in the layer's world coordinate system.\n@param scale\nThe current client side scale.\n@return Returns an array of double values where the first value is the tile screen width and the second value is\nthe tile screen height." ]
[ "This method writes resource data to a PM XML file.", "Determines if we need to calculate more dates.\nIf we do not have a finish date, this method falls back on using the\noccurrences attribute. If we have a finish date, we'll use that instead.\nWe're assuming that the recurring data has one or other of those values.\n\n@param calendar current date\n@param dates dates generated so far\n@return true if we should calculate another date", "Translates the Fluo row, column, and value set into the persistent format that is stored in\nAccumulo.\n\n<p>\nThe objects returned by this method are reused each time its called. So each time this is\ncalled it invalidates what was returned by previous calls to this method.\n\n@return A an array of Accumulo key values in correct sorted order.", "Constraint that ensures that the field has a column property. If none is specified, then\nthe name of the field is used.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Resolves current full path with .yml and .yaml extensions\n\n@param fullpath\nwithout extension.\n\n@return Path of existing definition or null", "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list", "Gets the flags associated with this attribute.\n@return the flags. Will not return {@code null}" ]
public final URI render( final MapfishMapContext mapContext, final ScalebarAttributeValues scalebarParams, final File tempFolder, final Template template) throws IOException, ParserConfigurationException { final double dpi = mapContext.getDPI(); // get the map bounds final Rectangle paintArea = new Rectangle(mapContext.getMapSize()); MapBounds bounds = mapContext.getBounds(); final DistanceUnit mapUnit = getUnit(bounds); final Scale scale = bounds.getScale(paintArea, PDF_DPI); final double scaleDenominator = scale.getDenominator(scalebarParams.geodetic, bounds.getProjection(), dpi, bounds.getCenter()); DistanceUnit scaleUnit = scalebarParams.getUnit(); if (scaleUnit == null) { scaleUnit = mapUnit; } // adjust scalebar width and height to the DPI value final double maxLengthInPixel = (scalebarParams.getOrientation().isHorizontal()) ? scalebarParams.getSize().width : scalebarParams.getSize().height; final double maxIntervalLengthInWorldUnits = DistanceUnit.PX.convertTo(maxLengthInPixel, scaleUnit) * scaleDenominator / scalebarParams.intervals; final double niceIntervalLengthInWorldUnits = getNearestNiceValue(maxIntervalLengthInWorldUnits, scaleUnit, scalebarParams.lockUnits); final ScaleBarRenderSettings settings = new ScaleBarRenderSettings(); settings.setParams(scalebarParams); settings.setMaxSize(scalebarParams.getSize()); settings.setPadding(getPadding(settings)); // start the rendering File path = null; if (template.getConfiguration().renderAsSvg(scalebarParams.renderAsSvg)) { // render scalebar as SVG final SVGGraphics2D graphics2D = CreateMapProcessor.createSvgGraphics(scalebarParams.getSize()); try { tryLayout( graphics2D, scaleUnit, scaleDenominator, niceIntervalLengthInWorldUnits, settings, 0); path = File.createTempFile("scalebar-graphic-", ".svg", tempFolder); CreateMapProcessor.saveSvgFile(graphics2D, path); } finally { graphics2D.dispose(); } } else { // render scalebar as raster graphic double dpiRatio = mapContext.getDPI() / PDF_DPI; final BufferedImage bufferedImage = new BufferedImage( (int) Math.round(scalebarParams.getSize().width * dpiRatio), (int) Math.round(scalebarParams.getSize().height * dpiRatio), TYPE_4BYTE_ABGR); final Graphics2D graphics2D = bufferedImage.createGraphics(); try { AffineTransform saveAF = new AffineTransform(graphics2D.getTransform()); graphics2D.scale(dpiRatio, dpiRatio); tryLayout( graphics2D, scaleUnit, scaleDenominator, niceIntervalLengthInWorldUnits, settings, 0); graphics2D.setTransform(saveAF); path = File.createTempFile("scalebar-graphic-", ".png", tempFolder); ImageUtils.writeImage(bufferedImage, "png", path); } finally { graphics2D.dispose(); } } return path.toURI(); }
[ "Render the scalebar.\n\n@param mapContext The context of the map for which the scalebar is created.\n@param scalebarParams The scalebar parameters.\n@param tempFolder The directory in which the graphic file is created.\n@param template The template that containts the scalebar processor" ]
[ "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", "Reads a string from input stream saved as a sequence of UTF chunks.\n\n@param stream stream to read from.\n@return output string\n@throws IOException if something went wrong", "Configures the log context for the server and returns the configured log context.\n\n@param logDir the logging directory, from jboss.server|domain.log.dir standalone default {@code $JBOSS_HOME/standalone/log}\n@param configDir the configuration directory from jboss.server|domain.config.dir, standalone default {@code $JBOSS_HOME/standalone/configuration}\n@param defaultLogFileName the name of the log file to pass to {@code org.jboss.boot.log.file}\n@param ctx the command context used to report errors to\n\n@return the configured log context", "Handle content length.\n\n@param event\nthe event", "Calculates the tiles width and height.\n\n@param code\nThe unique tile code. Determines what tile we're talking about.\n@param maxExtent\nThe maximum extent of the grid to which this tile belongs.\n@param scale\nThe current client side scale.\n@return Returns an array of double values where the first value is the tile width and the second value is the\ntile height.", "Use this API to update spilloverpolicy.", "Use this API to fetch filtered set of dospolicy resources.\nset the filter parameter values in filtervalue object.", "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Webkit based browsers require that we set the webkit-user-drag style\nattribute to make an element draggable." ]
public static ipset get(nitro_service service, String name) throws Exception{ ipset obj = new ipset(); obj.set_name(name); ipset response = (ipset) obj.get_resource(service); return response; }
[ "Use this API to fetch ipset resource of given name ." ]
[ "returns a unique String for given field.\nthe returned uid is unique accross all tables.", "Magnitude of complex number.\n\n@param z Complex number.\n@return Magnitude of complex number.", "Run a task once, after a delay.\n\n@param task\nTask to run.\n@param delay\nUnit is seconds.\n@return An interface that lets you query the status; cancel; or\nreschedule the event.", "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", "Use this API to fetch wisite_farmname_binding resources of given name .", "Print classes that were parts of relationships, but not parsed by javadoc", "Gets the first group of a regex\n@param pattern Pattern\n@param str String to find\n@return the matching group", "An extremely simple method for identifying multimedia. This\ncould be improved, but it's good enough for this example.\n\n@param file which could be an image or a video\n@return true if the file can be previewed, false otherwise", "B = -A. Changes the sign of elements in A and stores it in B. A and B can be the same instance.\n\n@param A (Input) Matrix. Not modified.\n@param B (Output) Matrix. Modified." ]
protected Class<?> classForName(String name) { try { return resourceLoader.classForName(name); } catch (ResourceLoadingException cnfe) { return DUMMY_CLASS; } }
[ "Initializes a type\n\n@param name The name of the class\n@return The instance of the class. Returns a dummy if the class was not\nfound." ]
[ "Use this API to fetch all the appfwsignatures resources that are configured on netscaler.", "Returns a correlation matrix which has rank &lt; n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.", "Add a creatable \"post-run\" dependent for this task item.\n\n@param creatable the creatable \"post-run\" dependent.\n@return the key to be used as parameter to taskResult(string) method to retrieve created \"post-run\" dependent", "Use this API to apply nspbr6 resources.", "Writes one or more String columns as a line to the CsvWriter.\n\n@param columns\nthe columns to write\n@throws IllegalArgumentException\nif columns.length == 0\n@throws IOException\nIf an I/O error occurs\n@throws NullPointerException\nif columns is null", "Finds and returns the date for the given event summary and year within the given ics file,\nor null if not present.", "Use this API to fetch all the nsspparams resources that are configured on netscaler.", "misc utility methods", "touch event without ripple support" ]
public static base_response restart(nitro_service client) throws Exception { dbsmonitors restartresource = new dbsmonitors(); return restartresource.perform_operation(client,"restart"); }
[ "Use this API to restart dbsmonitors." ]
[ "A slop is dead if the destination node or the store does not exist\nanymore on the cluster.\n\n@param slop\n@return", "Get the information for a specified photoset.\n\nThis method does not require authentication.\n\n@param photosetId\nThe photoset ID\n@return The Photoset\n@throws FlickrException", "When we execute a single statement we only need the corresponding Row with the result.\n\n@param results a list of {@link StatementResult}\n@return the result of a single query", "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields", "Bessel function of the second kind, of order n.\n\n@param n Order.\n@param x Value.\n@return Y value.", "This method reads a two byte integer from the input stream.\n\n@param is the input stream\n@return integer value\n@throws IOException on file read error or EOF", "Notify all shutdown listeners that the shutdown completed.", "Returns the most likely class for the word at the given position.", "Use this API to fetch all the lbsipparameters resources that are configured on netscaler." ]
public Duration getFinishVariance() { Duration variance = (Duration) getCachedValue(AssignmentField.FINISH_VARIANCE); if (variance == null) { TimeUnit format = getParentFile().getProjectProperties().getDefaultDurationUnits(); variance = DateHelper.getVariance(getTask(), getBaselineFinish(), getFinish(), format); set(AssignmentField.FINISH_VARIANCE, variance); } return (variance); }
[ "Calculate the finish variance.\n\n@return finish variance" ]
[ "Flush this log file to the physical disk\n\n@throws IOException file read error", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Register a loader with the 'sniffer'.\n\n'Factory loaders' are pre-registered. To load a format we don't support,\ncreate a {@link GVRCompressedTextureLoader} descendant. Then, before\ntrying to load any files in that format, create an instance and call\n{@link #register()}:\n\n<pre>\n\nnew MyCompressedFormat().register();\n</pre>", "resolves any lazy cross references in this resource, adding Issues for unresolvable elements to this resource.\nThis resource might still contain resolvable proxies after this method has been called.\n\n@param mon a {@link CancelIndicator} can be used to stop the resolution.", "Get an array of property ids.\n\nNot all property ids need be returned. Those properties\nwhose ids are not returned are considered non-enumerable.\n\n@return an array of Objects. Each entry in the array is either\na java.lang.String or a java.lang.Number", "Marshal the assertion as a JSON object.\n\n@param assertion the assertion to marshal", "Gets the list of failed invocations that has been collected by this collector.\n\n@return The failed invocations.", "Joins a collection in a string using a delimiter\n@param col Collection\n@param delim Delimiter\n@return String", "Add the key and return it's index code. If the key already is present, the previous\nindex code is returned and no insertion is done.\n\n@param key key to add\n@return index of the key" ]
protected <T, A> ActiveOperation<T, A> registerActiveOperation(final Integer id, A attachment, ActiveOperation.CompletedCallback<T> callback) { lock.lock(); try { // Check that we still allow registration // TODO WFCORE-199 distinguish client uses from server uses and limit this check to server uses // Using id==null may be one way to do this, but we need to consider ops that involve multiple requests // TODO WFCORE-845 consider using an IllegalStateException for this //assert ! shutdown; final Integer operationId; if(id == null) { // If we did not get an operationId, create a new one operationId = operationIdManager.createBatchId(); } else { // Check that the operationId is not already taken if(! operationIdManager.lockBatchId(id)) { throw ProtocolLogger.ROOT_LOGGER.operationIdAlreadyExists(id); } operationId = id; } final ActiveOperationImpl<T, A> request = new ActiveOperationImpl<T, A>(operationId, attachment, getCheckedCallback(callback), this); final ActiveOperation<?, ?> existing = activeRequests.putIfAbsent(operationId, request); if(existing != null) { throw ProtocolLogger.ROOT_LOGGER.operationIdAlreadyExists(operationId); } ProtocolLogger.ROOT_LOGGER.tracef("Registered active operation %d", operationId); activeCount++; // condition.signalAll(); return request; } finally { lock.unlock(); } }
[ "Register an active operation with a specific operation id.\n\n@param id the operation id\n@param attachment the shared attachment\n@param callback the completed callback\n@return the created active operation\n\n@throws java.lang.IllegalStateException if an operation with the same id is already registered" ]
[ "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value", "do 'Distinct' operation\n\n@param queryDescriptor descriptor of MongoDB query\n@param collection collection for execute the operation\n@return result iterator\n@see <a href =\"https://docs.mongodb.com/manual/reference/method/db.collection.distinct/\">distinct</a>", "Adds a tag to the resource.\n@param key the key for the tag\n@param value the value for the tag\n@return the next stage of the definition/update", "Create and return a new Violation for this rule and the specified import\n@param sourceCode - the SourceCode\n@param importNode - the ImportNode for the import triggering the violation\n@return a new Violation object", "Remove all the existing links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.\n\n@param self A line to expand\n@param tabStop The number of spaces a tab represents\n@return The expanded toString() of this CharSequence\n@see #expandLine(String, int)\n@since 1.8.2", "We have received notification that a device is no longer on the network, so clear out its metadata.\n\n@param announcement the packet which reported the device’s disappearance", "Keep a cache of items files associated with classification in order to improve performance.", "Use this API to fetch inat resource of given name ." ]
public void addEvent(Event event) { if(event == null) throw new IllegalStateException("event must be non-null"); if(logger.isTraceEnabled()) logger.trace("Adding event " + event); eventQueue.add(event); }
[ "Add an event to the queue. It will be processed in the order received.\n\n@param event Event" ]
[ "Get the ver\n\n@param id\n@return", "Get a random sample of k out of n elements.\n\nSee Algorithm S, D. E. Knuth, The Art of Computer Programming, Vol. 2, p.142.", "Checks the given field descriptor.\n\n@param fieldDef The field descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Replaces new line delimiters in the input stream with the Unix line feed.\n\n@param input", "Ask the specified player for the album art 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 artReference uniquely identifies the desired album art\n@param trackType the kind of track that owns the art\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nartwork updates will use available caches only\n\n@return the album art found, if any", "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception", "Initializes OJB for the purposes of this task.\n\n@return The metadata manager used by OJB", "Starts the compressor.", "Set RGB input range.\n\n@param inRGB Range." ]
public static final Integer getInteger(String value) { Integer result; try { result = Integer.valueOf(Integer.parseInt(value)); } catch (Exception ex) { result = null; } return (result); }
[ "Converts a string representation of an integer into an Integer object.\nSilently ignores any parse exceptions and returns null.\n\n@param value String representation of an integer\n@return Integer instance" ]
[ "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "Computes the longest common contiguous substring of s and t.\nThe LCCS is the longest run of characters that appear consecutively in\nboth s and t. For instance, the LCCS of \"color\" and \"colour\" is 4, because\nof \"colo\".", "Helper function to return the minimum size of the index space to be passed to the reduction given the input and\noutput tensors", "Operates on one dimension at a time.", "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "Append the text supplied by the Writer at the end of the File, using a specified encoding.\n\n@param file a File\n@param writer the Writer supplying the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 2.3", "build the Join-Information for Subclasses having a super reference to this class\n\n@param left\n@param cld\n@param name", "Creates a file\n\n@param folder File\n@param fileName String\n@throws IOException", "Main render algorithm based on render the video thumbnail, render the title, render the marker\nand the label." ]
public final PJsonArray toJSON() { JSONArray jsonArray = new JSONArray(); final int size = this.array.size(); for (int i = 0; i < size; i++) { final Object o = get(i); if (o instanceof PYamlObject) { PYamlObject pYamlObject = (PYamlObject) o; jsonArray.put(pYamlObject.toJSON().getInternalObj()); } else if (o instanceof PYamlArray) { PYamlArray pYamlArray = (PYamlArray) o; jsonArray.put(pYamlArray.toJSON().getInternalArray()); } else { jsonArray.put(o); } } return new PJsonArray(null, jsonArray, getContextName()); }
[ "Convert this object to a json array." ]
[ "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed.", "Register child resources associated with this resource.\n\n@param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition", "Arbitrarily resolve the inconsistency by choosing the first object if\nthere is one.\n\n@param values The list of objects\n@return A single value, if one exists, taken from the input list.", "This method returns the value it is passed, or null if the value\nmatches the nullValue argument.\n\n@param value value under test\n@param nullValue return null if value under test matches this value\n@return value or null", "Perform construction.\n\n@param callbackHandler", "Gets the index input list.\n\n@return the index input list", "Initialize the version properties map from the gradle.properties file, and the additional properties from the\ngradle.properties file.", "Call the onQueryExecuteTimeLimitExceeded hook if necessary\n@param sql sql statement that took too long\n@param queryStartTime time when query was started.", "Registers the resource to the parent deployment resource. The model returned is that of the resource parameter.\n\n@param subsystemName the subsystem name\n@param resource the resource to be used for the subsystem on the deployment\n\n@return the model\n\n@throws java.lang.IllegalStateException if the subsystem resource already exists" ]
public Map<String, String> getMapAttribute(String name, String defaultValue) { return mapSplit(getAttribute(name), defaultValue); }
[ "Returns an attribute's map value from this JAR's manifest's main section.\nThe attributes string value will be split on whitespace into map entries, and each entry will be split on '=' to get the key-value pair.\nThe returned map may be safely modified.\n\n@param name the attribute's name" ]
[ "Returns the compression type of this kind of dump file using file suffixes\n\n@param fileName the name of the file\n@return compression type\n@throws IllegalArgumentException\nif the given dump file type is not known", "Checks to see if the rows of the provided matrix are linearly independent.\n\n@param A Matrix whose rows are being tested for linear independence.\n@return true if linearly independent and false otherwise.", "Return the text box for the specified text and font.\n\n@param text text\n@param font font\n@return text box", "Create a set containing all the processor at the current node and the entire subgraph.", "Return the text content of the document. It does not containing trailing spaces and asterisks\nat the start of the line.", "Internal initialization.\n@throws ParserConfigurationException", "Extracts the data for a single file from the input stream and writes\nit to a target directory.\n\n@param stream input stream\n@param dir target directory", "Iterates over the elements of an iterable collection of items, starting\nfrom a specified startIndex, and returns the index of the last item that\nmatches the condition specified in the closure.\n\n@param self the iteration object over which to iterate\n@param startIndex start matching from this index\n@param closure the filter to perform a match on the collection\n@return an integer that is the index of the last matched object or -1 if no match was found\n@since 1.5.2", "Lookup the group for the specified URL.\n\n@param url\nThe url\n@return The group\n@throws FlickrException" ]
public void read(File file, Table table) throws IOException { //System.out.println("Reading " + file.getName()); InputStream is = null; try { is = new FileInputStream(file); read(is, table); } finally { StreamHelper.closeQuietly(is); } }
[ "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance" ]
[ "except for the ones that make the content appear under the system bars.", "This method must be called on the start of the component. Initialize and start the directory monitor.\n\n@param monitoredDirectory\n@param pollingTime", "This method retrieves ONLY the ROOT actions", "Creates SLD rules for each old style.", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Gathers the pk fields from the hierarchy of the given class, and copies them into the class.\n\n@param classDef The root of the hierarchy\n@throws ConstraintException If there is a conflict between the pk fields", "Remove a DAO from the cache. This is necessary if we've registered it already but it throws an exception during\nconfiguration.", "This method extracts data for a single calendar from a Planner file.\n\n@param plannerCalendar Calendar data\n@param parentMpxjCalendar parent of derived calendar", "allow extension only for testing" ]
public static final Bytes of(byte[] array) { Objects.requireNonNull(array); if (array.length == 0) { return EMPTY; } byte[] copy = new byte[array.length]; System.arraycopy(array, 0, copy, 0, array.length); return new Bytes(copy); }
[ "Creates a Bytes object by copying the data of the given byte array" ]
[ "Use this API to fetch cacheselector resources of given names .", "Register capabilities associated with this resource.\n\n<p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p>\n\n@param resourceRegistration a {@link ManagementResourceRegistration} created from this definition", "Propagate onTouchStart events to listeners\n@param hit collision object", "Obtains a local date in Discordian calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Discordian era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Discordian local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code DiscordianEra}", "Detach the component of the specified type from this scene object.\n\nEach scene object has a list of components. Only one component\nof a particular type can be attached. Components are detached based on their type.\n\n@return GVRComponent detached or null if component not found\n@param type type of component to detach\n@see GVRSceneObject#attachComponent(GVRComponent)", "Give next index i where i and i+timelag is valid", "Apply a filter to the list of all tasks, and show the results.\n\n@param project project file\n@param filter filter", "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'Store' object corresponding to the store name specified in\nthe REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Message Event used to write the response / exception", "Get a collection of public photos for the specified user ID.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param userId\nThe User ID\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page\n@param page\nThe page offset\n@return The PhotoList collection\n@throws FlickrException" ]
private void updateDateTimeFormats(ProjectProperties properties) { String[] timePatterns = getTimePatterns(properties); String[] datePatterns = getDatePatterns(properties); String[] dateTimePatterns = getDateTimePatterns(properties, timePatterns); m_dateTimeFormat.applyPatterns(dateTimePatterns); m_dateFormat.applyPatterns(datePatterns); m_timeFormat.applyPatterns(timePatterns); m_dateTimeFormat.setLocale(m_locale); m_dateFormat.setLocale(m_locale); m_dateTimeFormat.setNullText(m_nullText); m_dateFormat.setNullText(m_nullText); m_timeFormat.setNullText(m_nullText); m_dateTimeFormat.setAmPmText(properties.getAMText(), properties.getPMText()); m_timeFormat.setAmPmText(properties.getAMText(), properties.getPMText()); }
[ "Updates the date and time formats.\n\n@param properties project properties" ]
[ "Checks to see if all the diagonal elements in the matrix are positive.\n\n@param a A matrix. Not modified.\n@return true if all the diagonal elements are positive, false otherwise.", "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Check local saved copy first ??. If Auth by username is available, then we will not need to make the API call.\n\n@throws FlickrException", "Converts a list of dates to a Json array with the long representation of the dates as strings.\n@param individualDates the list to convert.\n@return Json array with long values of dates as string", "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Allocates a database connection.\n\n@throws SQLException", "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy", "This method lists any notes attached to resources.\n\n@param file MPX file", "Parse units.\n\n@param value units value\n@return units value" ]
private void loadResourceFile(URL configurationResourceUrl, Properties hotRodConfiguration) { if ( configurationResourceUrl != null ) { try ( InputStream openStream = configurationResourceUrl.openStream() ) { hotRodConfiguration.load( openStream ); } catch (IOException e) { throw log.failedLoadingHotRodConfigurationProperties( e ); } } }
[ "Load the properties from the resource file if one is specified" ]
[ "Closing will only skip to the end of this fixed length input stream and\nnot call the parent's close method.\n@throws IOException if an I/O error occurs while closing stream", "Writes no-value restriction.\n\n@param rdfWriter\nthe writer to write the restrictions to\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param subject\nnode representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "Use this API to fetch systemsession resources of given names .", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException", "This implementation will probably be slower than the metadata\nobject copy, but this was easier to implement.\n@see org.apache.ojb.otm.copy.ObjectCopyStrategy#copy(Object)", "Return a product descriptor for a specific strike.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@param index The index corresponding to the strike grid.\n@return a product descriptor for a specific strike.\n@throws ArrayIndexOutOfBoundsException Thrown if index is out of bound.", "Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key", "Returns the naming context.", "Creates a new random symmetric matrix that will have the specified real eigenvalues.\n\n@param num Dimension of the resulting matrix.\n@param rand Random number generator.\n@param eigenvalues Set of real eigenvalues that the matrix will have.\n@return A random matrix with the specified eigenvalues." ]
public Optional<URL> getRoute(String routeName) { Route route = getClient().routes() .inNamespace(namespace).withName(routeName).get(); return route != null ? Optional.ofNullable(createUrlFromRoute(route)) : Optional.empty(); }
[ "Gets the URL of the route with given name.\n@param routeName to return its URL\n@return URL backed by the route with given name." ]
[ "Set the offsets in the compressed data area for each mip-map level.\n@param offsets array of offsets", "Sets the HTML entity translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator\n@return this to allow chaining", "Reads characters into a portion of an array, then replace invalid XML characters\n\n@throws IOException If an I/O error occurs\n@see ru.yandex.qatools.allure.config.AllureNamingUtils#isBadXmlCharacter(char) by space", "Flag that the processor has completed execution.\n\n@param processorGraphNode the node that has finished.", "Given the current and final cluster dumps it into the output directory\n\n@param currentCluster Initial cluster metadata\n@param finalCluster Final cluster metadata\n@param outputDirName Output directory where to dump this file\n@throws IOException", "Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements", "Calling this twice will not actually overwrite the gauge\n\n@param collectionSizeGauge", "Get the metadata cache files that are currently configured to be automatically attached when matching media is\nmounted in a player on the network.\n\n@return the current auto-attache cache files, sorted by name", "Returns the counters with keys as the first key and count as the\ntotal count of the inner counter for that key\n\n@return counter of type K1" ]
public QueryBuilder<T, ID> orderBy(String columnName, boolean ascending) { FieldType fieldType = verifyColumnName(columnName); if (fieldType.isForeignCollection()) { throw new IllegalArgumentException("Can't orderBy foreign collection field: " + columnName); } addOrderBy(new OrderBy(columnName, ascending)); return this; }
[ "Add \"ORDER BY\" clause to the SQL query statement. This can be called multiple times to add additional \"ORDER BY\"\nclauses. Ones earlier are applied first." ]
[ "Stop the drag action.", "Prints text to output stream, replacing parameter start and end\nplaceholders\n\n@param text the String to print", "Search for groups. 18+ groups will only be returned for authenticated calls where the authenticated user is over 18. This method does not require\nauthentication.\n\n@param text\nThe text to search for.\n@param perPage\nNumber of groups 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 A GroupList Object. Only the fields <em>id</em>, <em>name</em> and <em>eighteenplus</em> in the Groups will be set.\n@throws FlickrException", "Records the result of updating a server.\n\n@param server the id of the server. Cannot be <code>null</code>\n@param response the result of the updates", "Returns timezone offset from a session instance. The offset is\nin minutes to UTC time\n\n@param session\nthe session instance\n@return the offset to UTC time in minutes", "Reads a stringtemplate group from a stream.\n\nThis will always return a group (empty if necessary), even if reading it from the stream fails.\n\n@param stream the stream to read from\n@return the string template group", "Classify the contents of a file.\n\n@param filename\nContains the sentence(s) to be classified.\n@return {@link List} of classified List of IN.", "Creates an element that represents a single page.\n@return the resulting DOM element", "Returns true if string starts and ends with double-quote\n@param str\n@return" ]
protected EntityKey getEntityKey(Tuple tuple, AssociatedEntityKeyMetadata associatedEntityKeyMetadata) { Object[] columnValues = new Object[ associatedEntityKeyMetadata.getAssociationKeyColumns().length]; int i = 0; for ( String associationKeyColumn : associatedEntityKeyMetadata.getAssociationKeyColumns() ) { columnValues[i] = tuple.get( associationKeyColumn ); i++; } return new EntityKey( associatedEntityKeyMetadata.getEntityKeyMetadata(), columnValues ); }
[ "Returns the key of the entity targeted by the represented association, retrieved from the given tuple.\n\n@param tuple the tuple from which to retrieve the referenced entity key\n@return the key of the entity targeted by the represented association" ]
[ "Use this API to fetch vpnvserver_appcontroller_binding resources of given name .", "Use this API to update tmtrafficaction resources.", "Find the style filter that must be applied to this feature.\n\n@param feature\nfeature to find the style for\n@param styles\nstyle filters to select from\n@return a style filter", "Normalizes the matrix such that the Frobenius norm is equal to one.\n\n@param A The matrix that is to be normalized.", "Detailed request to track additional data about PUT, GET and GET_ALL\n\n@param timeNS The time in nanoseconds that the operation took to complete\n@param numEmptyResponses For GET and GET_ALL, how many keys were no values found\n@param valueBytes Total number of bytes across all versions of values' bytes\n@param keyBytes Total number of bytes in the keys\n@param getAllAggregatedCount Total number of keys returned for getAll calls", "Return the name of the current conf set\n@return the conf set name", "creates a bounds object with both point parsed from the json and set it\nto the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Transforms the category path of a category to the category.\n@return a map from root or site path to category.", "Set HTTP headers to allow caching for the given number of seconds.\n\n@param response where to set the caching settings\n@param seconds number of seconds into the future that the response should be cacheable for" ]
public Character getCharacter(int field) { Character result; if ((field < m_fields.length) && (m_fields[field].length() != 0)) { result = Character.valueOf(m_fields[field].charAt(0)); } else { result = null; } return (result); }
[ "Accessor method used to retrieve a char representing the\ncontents of an individual field. If the field does not exist in the\nrecord, the default character is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field" ]
[ "Notification that the server process finished.", "Binds a script bundle to a scene.\n@param scriptBundle\nThe {@code GVRScriptBundle} object containing script binding information.\n@param scene\nThe scene to bind to.\n@throws IOException if script bundle file cannot be read.\n@throws GVRScriptException if script processing error occurs.", "Sets ID field value.\n\n@param val value", "Use this API to update tmtrafficaction resources.", "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Set a Java classname path to ignore when printing stack traces\n@param classToIgnoreInTraces The class name (with packages, etc) to ignore.\n@return this", "Update the default time unit for work based on data read from the file.\n\n@param column column data", "Use this API to unset the properties of coparameter resource.\nProperties that need to be unset are specified in args array.", "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining" ]
public Set<ServerConfigInfo> getServerConfigsOnSlave(Resource hostResource){ Set<ServerConfigInfo> groups = new HashSet<>(); for (ResourceEntry entry : hostResource.getChildren(SERVER_CONFIG)) { groups.add(new ServerConfigInfoImpl(entry.getModel())); } return groups; }
[ "For use on a slave HC to get all the server groups used by the host\n\n@param hostResource the host resource\n@return the server configs on this host" ]
[ "Count the total number of queued resource requests for all queues. The\nresult is \"approximate\" in the face of concurrency since individual\nqueues can change size during the aggregate count.\n\n@return The (approximate) aggregate count of queued resource requests.", "Create an `AppDescriptor` with appName and entry class specified.\n\nIf `appName` is `null` or blank, it will try the following\napproach to get app name:\n\n1. check the {@link Version#getArtifactId() artifact id} and use it unless\n2. if artifact id is null or empty, then infer app name using {@link AppNameInferer}\n\n@param appName\nthe app name\n@param entryClass\nthe entry class\n@return\nan `AppDescriptor` instance", "Start timing an operation with the given identifier.", "Ensures that generate-table-info is set to false if generate-repository-info is set to false.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in all levels)", "Constraint that ensures that the field has a conversion if the java type requires it. Also checks the conversion class.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If the conversion class is invalid", "Update all the links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Returns a non-validating XML parser. The parser ignores both DTDs and XSDs.\n\n@return An XML parser in the form of a DocumentBuilder", "Returns the compact representations of all of the dependents of a task.\n\n@param task The task to get dependents on.\n@return Request object", "Reflection API to find the method corresponding to the default implementation of a trait, given a bridge method.\n@param someMethod a method node\n@return null if it is not a method implemented in a trait. If it is, returns the method from the trait class." ]
int add(DownloadRequest request) { int downloadId = getDownloadId(); // Tag the request as belonging to this queue and add it to the set of current requests. request.setDownloadRequestQueue(this); synchronized (mCurrentRequests) { mCurrentRequests.add(request); } // Process requests in the order they are added. request.setDownloadId(downloadId); mDownloadQueue.add(request); return downloadId; }
[ "Generates a download id for the request and adds the download request to the download request queue for the dispatchers pool to act on immediately.\n\n@param request\n@return downloadId" ]
[ "Retrieve the parent task based on its WBS.\n\n@param wbs parent WBS\n@return parent task", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "Answer the SQL-Clause for a LikeCriteria\n\n@param c\n@param buf", "Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>.", "Factory for 'and' and 'or' predicates.", "Validate an RIBean. This includes validating whether two beans specialize\nthe same bean\n\n@param bean the bean to validate\n@param beanManager the current manager\n@param specializedBeans the existing specialized beans", "Prepare all tasks.\n\n@param entry the patch entry\n@param context the patch context\n@param tasks a list for prepared tasks\n@param conflicts a list for conflicting content items\n@throws PatchingException", "Get range around median containing specified percentage of values.\n@param values Values.\n@param percent Values percentage around median.\n@return Returns the range which containes specifies percentage of values." ]
@SuppressWarnings("deprecation") @RequestMapping(value = "/api/backup", method = RequestMethod.GET) public @ResponseBody String getBackup(Model model, HttpServletResponse response) throws Exception { response.addHeader("Content-Disposition", "attachment; filename=backup.json"); response.setContentType("application/json"); Backup backup = BackupService.getInstance().getBackupData(); ObjectMapper objectMapper = new ObjectMapper(); ObjectWriter writer = objectMapper.writerWithDefaultPrettyPrinter(); return writer.withView(ViewFilters.Default.class).writeValueAsString(backup); }
[ "Get all backup data\n\n@param model\n@return\n@throws Exception" ]
[ "Packages of the specified classes will be scanned and found classes will be added to the set of bean classes for the synthetic bean archive.\n\n@param scanRecursively\n@param packageClasses\n@return self", "Returns the list of Solr fields a search result must have to initialize the gallery search result correctly.\n@return the list of Solr fields.", "This method displays the resource assignments for each task. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a task-by-task basis.\n\n@param file MPX file", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "Performs an efficient update of each columns' norm", "Parses the supplied text and converts it to a Long\ncorresponding to that midnight in UTC on the specified date.\n\n@return null if it fails to parsing using the specified\nDateTimeFormat", "Scroll to the next page. To process the scrolling by pages LayoutScroller must be constructed\nwith a pageSize greater than zero.\n@return the new current item after the scrolling processed.", "Send get request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws URISyntaxException the uri syntax exception\n@throws IOException the io exception", "Create a transactional protocol client.\n\n@param channelAssociation the channel handler\n@return the transactional protocol client" ]
private static String getUnexpectedTypeMessage(final Class<?> expectedType, final Object actualValue) { if( expectedType == null ) { throw new NullPointerException("expectedType should not be null"); } String expectedClassName = expectedType.getName(); String actualClassName = (actualValue != null) ? actualValue.getClass().getName() : "null"; return String.format("the input value should be of type %s but is %s", expectedClassName, actualClassName); }
[ "Assembles the exception message when the value received by a CellProcessor isn't of the correct type.\n\n@param expectedType\nthe expected type\n@param actualValue\nthe value received by the CellProcessor\n@return the message\n@throws NullPointerException\nif expectedType is null" ]
[ "Parses a tag formatted as defined by the HTTP standard.\n\n@param httpTag The HTTP tag string; if it starts with 'W/' the tag will be\nmarked as weak and the data following the 'W/' used as the tag;\notherwise it should be surrounded with quotes (e.g.,\n\"sometag\").\n\n@return A new tag instance.\n\n@see <a\nhref=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\">HTTP\nEntity Tags</a>", "Returns a single item from the Iterator.\nIf there's none, returns null.\nIf there are more, throws an IllegalStateException.\n\n@throws IllegalStateException", "Use this API to unset the properties of responderpolicy resource.\nProperties that need to be unset are specified in args array.", "Read flow id.\n\n@param message the message\n@return flow id from the message", "Use this API to update autoscaleprofile resources.", "Returns true if the grammar element that is associated with the given param is filtered due to guard conditions\nof parameterized rules in the current call stack.\n\nIf the grammar element is the only element contained in a group, its container is checked, too.\n\n@see #isFiltered(AbstractElement, Param)", "Look up the playback state that has reached furthest in the track, but give playing players priority over stopped players.\nThis is used to choose the scroll center when auto-scrolling is active.\n\n@return the playback state, if any, with the highest playing {@link PlaybackState#position} value", "Read all child tasks for a given parent.\n\n@param parentTask parent task", "Gets the gradient at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@param gradient The output gradient, a vector of partial derivatives." ]
private void writeTaskExtendedAttributes(Project.Tasks.Task xml, Task mpx) { Project.Tasks.Task.ExtendedAttribute attrib; List<Project.Tasks.Task.ExtendedAttribute> extendedAttributes = xml.getExtendedAttribute(); for (TaskField mpxFieldID : getAllTaskExtendedAttributes()) { Object value = mpx.getCachedValue(mpxFieldID); if (FieldTypeHelper.valueIsNotDefault(mpxFieldID, value)) { m_extendedAttributesInUse.add(mpxFieldID); Integer xmlFieldID = Integer.valueOf(MPPTaskField.getID(mpxFieldID) | MPPTaskField.TASK_FIELD_BASE); attrib = m_factory.createProjectTasksTaskExtendedAttribute(); extendedAttributes.add(attrib); attrib.setFieldID(xmlFieldID.toString()); attrib.setValue(DatatypeConverter.printExtendedAttribute(this, value, mpxFieldID.getDataType())); attrib.setDurationFormat(printExtendedAttributeDurationFormat(value)); } } }
[ "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task" ]
[ "Get informations about a place.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param placeId\nA Flickr Places ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@param woeId\nA Where On Earth (WOE) ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.)\n@return A Location\n@throws FlickrException", "Get replication document state for a given replication document ID.\n\n@param docId The replication document ID\n@return Replication document for {@code docId}", "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", "Gets the actual key - will create a new row with the max key of table if it\ndoes not exist.\n@param field\n@return\n@throws SequenceManagerException", "Set the classpath for loading the driver using the classpath reference.\n\n@param r reference to the classpath", "Use this API to fetch nssimpleacl resource of given name .", "Get the waveform details available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the details 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 or requesting waveform details", "Hashes a path, if the path points to a directory then hashes the contents recursively.\n@param messageDigest the digest used to hash.\n@param path the file/directory we want to hash.\n@return the resulting hash.\n@throws IOException", "Initial setup of the service worker registration." ]
public static <ObjType, Hashable> Collection<ObjType> uniqueNonhashableObjects(Collection<ObjType> objects, Function<ObjType, Hashable> customHasher) { Map<Hashable, ObjType> hashesToObjects = new HashMap<Hashable, ObjType>(); for (ObjType object : objects) { hashesToObjects.put(customHasher.apply(object), object); } return hashesToObjects.values(); }
[ "Makes it possible to uniquify a collection of objects which are normally\nnon-hashable. Alternatively, it lets you define an alternate hash function\nfor them for limited-use hashing." ]
[ "Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .", "Use this API to fetch aaagroup_vpntrafficpolicy_binding resources of given name .", "Get a collection of methods declared on this object by method name and parameter count.\n\n@param name the name of the method\n@param paramCount the number of parameters\n@return the (possibly empty) collection of methods with the given name and parameter count", "Sends this request while monitoring its progress and returns a BoxAPIResponse containing the server's response.\n\n<p>A ProgressListener is generally only useful when the size of the request is known beforehand. If the size is\nunknown, then the ProgressListener will be updated for each byte sent, but the total number of bytes will be\nreported as 0.</p>\n\n<p> See {@link #send} for more information on sending requests.</p>\n\n@param listener a listener for monitoring the progress of the request.\n@throws BoxAPIException if the server returns an error code or if a network error occurs.\n@return a {@link BoxAPIResponse} containing the server's response.", "Rethrows platform specific OperationCanceledExceptions and unwraps OperationCanceledErrors. Does nothing for any other type of Throwable.", "Use this API to fetch a appflowglobal_binding resource .", "Updates the given integer belief\nadding the given integer\nnewBelief = previousBelief + givenValue\n\n@param String - the belief name\n@param the value to add", "Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be copied.\n@return The copied matrix.", "Consumer is required to do any privilege checks before getting here\n\n@param request a {@link HttpServletRequest} which may contain forced groups parameters from URL, Header or Cookie.\n@return a map of test names to bucket values specified by the request. Returns an empty {@link Map} if nothing was specified" ]
public void save() throws CmsException { if (hasChanges()) { switch (m_bundleType) { case PROPERTY: saveLocalization(); saveToPropertyVfsBundle(); break; case XML: saveLocalization(); saveToXmlVfsBundle(); break; case DESCRIPTOR: break; default: throw new IllegalArgumentException(); } if (null != m_descFile) { saveToBundleDescriptor(); } resetChanges(); } }
[ "Saves the messages for all languages that were opened in the editor.\n\n@throws CmsException thrown if saving fails." ]
[ "Check if underlying connection was alive.", "generates a Meta Object Protocol method, that is used to call a non public\nmethod, or to make a call to super.\n\n@param mopCalls list of methods a mop call method should be generated for\n@param useThis true if \"this\" should be used for the naming", "Produces all tuples of size n chosen from a list of variable names\n\n@param variables the list of variable names to make tuples of\n@param nWise the size of the desired tuples\n@return all tuples of size nWise", "Uses current variable assignments and info in an NWiseActionTag to expand on an n wise combinatorial set\n\n@param action an NWiseAction Action\n@param possibleStateList a current list of possible states produced so far from expanding a model state\n@return every input possible state expanded on an n wise combinatorial set defined by that input possible state", "Recursively update parent task dates.\n\n@param parentTask parent task", "Use this API to fetch ipset resource of given name .", "Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in the prototypes collection.\n@return the prototype index associated to the prototypeClass.", "Get the response headers for URL\n\n@param stringUrl URL to use\n@return headers HTTP Headers\n@throws IOException I/O error happened", "Gets the progress.\n\n@return the progress" ]
private static void parseBounds(JSONObject modelJSON, Shape current) throws JSONException { if (modelJSON.has("bounds")) { JSONObject boundsObject = modelJSON.getJSONObject("bounds"); current.setBounds(new Bounds(new Point(boundsObject.getJSONObject("lowerRight").getDouble("x"), boundsObject.getJSONObject("lowerRight").getDouble( "y")), new Point(boundsObject.getJSONObject("upperLeft").getDouble("x"), boundsObject.getJSONObject("upperLeft").getDouble("y")))); } }
[ "creates a bounds object with both point parsed from the json and set it\nto the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
[ "Create a collection object of the given collection type. If none has been given,\nOJB uses RemovalAwareList, RemovalAwareSet, or RemovalAwareCollection depending\non the field type.\n\n@param desc The collection descriptor\n@param collectionClass The collection class specified in the collection-descriptor\n@return The collection object", "Bulk delete clients from a profile.\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Read assignment data.", "Sets the SCXML model with an InputStream\n\n@param inputFileStream the model input stream", "Checks the available space and sets max-height to the details field-set.", "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.", "Print the parameters of the parameterized type t", "Apply an XMLDSig onto the passed document.\n\n@param aPrivateKey\nThe private key used for signing. May not be <code>null</code>.\n@param aCertificate\nThe certificate to be used. May not be <code>null</code>.\n@param aDocument\nThe document to be signed. The signature will always be the first\nchild element of the document element. The document may not contains\nany disg:Signature element. This element is inserted manually.\n@throws Exception\nIn case something goes wrong\n@see #createXMLSignature(X509Certificate)", "Take a stab at fixing validation problems ?\n\n@param object" ]
public static ConsistencyLevel determineConsistency(Map<Value, Set<ClusterNode>> versionNodeSetMap, int replicationFactor) { boolean fullyConsistent = true; Value latestVersion = null; for (Map.Entry<Value, Set<ClusterNode>> versionNodeSetEntry : versionNodeSetMap.entrySet()) { Value value = versionNodeSetEntry.getKey(); if (latestVersion == null) { latestVersion = value; } else if (value.isTimeStampLaterThan(latestVersion)) { latestVersion = value; } Set<ClusterNode> nodeSet = versionNodeSetEntry.getValue(); fullyConsistent = fullyConsistent && (nodeSet.size() == replicationFactor); } if (fullyConsistent) { return ConsistencyLevel.FULL; } else { // latest write consistent, effectively consistent if (latestVersion != null && versionNodeSetMap.get(latestVersion).size() == replicationFactor) { return ConsistencyLevel.LATEST_CONSISTENT; } // all other states inconsistent return ConsistencyLevel.INCONSISTENT; } }
[ "Determine the consistency level of a key\n\n@param versionNodeSetMap A map that maps version to set of PrefixNodes\n@param replicationFactor Total replication factor for the set of clusters\n@return ConsistencyLevel Enum" ]
[ "Bounds are calculated locally, can use any filter, but slower than native.\n\n@param filter\nfilter which needs to be applied\n@return the bounds of the specified features\n@throws LayerException\noops", "Cleans the object key.\n\n@param name Name of the object key\n@return The {@link ValidationResult} object containing the object,\nand the error code(if any)", "Main file parser. Reads GIF content blocks. Stops after reading maxFrames", "Should the URI explicitly not be cached.\n\n@param requestUri request URI\n@return true when caching is prohibited", "Returns the address for the operation.\n\n@param op the operation\n\n@return the operation address or a new undefined model node", "Gets a property from system, environment or an external map.\nThe lookup order is system > env > map > defaultValue.\n\n@param name\nThe name of the property.\n@param map\nThe external map.\n@param defaultValue\nThe value that should be used if property is not found.", "Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "Handles incoming Serial Messages. Serial messages can either be messages\nthat are a response to our own requests, or the stick asking us information.\n@param incomingMessage the incoming message to process." ]