query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void attachHoursToDay(ProjectCalendarHours hours) { if (hours.getParentCalendar() != this) { throw new IllegalArgumentException(); } m_hours[hours.getDay().getValue() - 1] = hours; }
[ "Attaches a pre-existing set of hours to the correct\nday within the calendar.\n\n@param hours calendar hours instance" ]
[ "Determine whether the given method is a \"readString\" method.\n\n@see Object#toString()", "Use this API to fetch a vpnglobal_auditnslogpolicy_binding resources.", "Gets the string representation of the path to the current JSON element.\n\n@param key the leaf key", "Method signature without \"public void\" prefix\n\n@return The method signature in String format", "Isn't there a method for this in GeoTools?\n\n@param crs\nCRS string in the form of 'EPSG:<srid>'.\n@return SRID as integer.", "Gets the first value for the key.\n\n@param key the key to check for the value\n\n@return the value or {@code null} if the key is not found or the value was {@code null}", "Appends the given string encoding special HTML characters.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nInput String starting position.\n@param end\nInput String end position.", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "Get a list of referrers from a given domain to 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 domain\n(Required) The domain to return referrers for. This should be a hostname (eg: \"flickr.com\") with no protocol or pathname.\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.getCollectionReferrers.html\"" ]
@NonNull @SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher reset() { lastResponsePage = 0; lastRequestPage = 0; lastResponseId = 0; endReached = false; clearFacetRefinements(); cancelPendingRequests(); numericRefinements.clear(); return this; }
[ "Resets the helper's state.\n\n@return this {@link Searcher} for chaining." ]
[ "This method can be used by child classes to apply the configuration that is stored in config.", "Bean types of a session bean.", "Lookup a native pointer to a collider and return its Java object.\n\n@param nativePointer native pointer to C++ Collider\n@return Java GVRCollider object", "Retrieve and validate store name from the REST request.\n\n@return true if valid, false otherwise", "Add a calendar node.\n\n@param parentNode parent node\n@param calendar calendar", "Helper method to copy the contents of a stream to a file.\n@param outputDirectory The directory in which the new file is created.\n@param stream The stream to copy.\n@param targetFileName The file to write the stream contents to.\n@throws IOException If the stream cannot be copied.", "Find the length of the block starting from 'start'.", "This method reads an eight byte integer from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Print a class's relations" ]
public synchronized void reset() { this.authorizerDescription = StandardRBACAuthorizer.AUTHORIZER_DESCRIPTION; this.useIdentityRoles = this.nonFacadeMBeansSensitive = false; this.roleMappings = new HashMap<String, RoleMappingImpl>(); RoleMaps oldRoleMaps = this.roleMaps; this.roleMaps = new RoleMaps(authorizerDescription.getStandardRoles(), Collections.<String, ScopedRole>emptyMap()); for (ScopedRole role : oldRoleMaps.scopedRoles.values()) { for (ScopedRoleListener listener : scopedRoleListeners) { try { listener.scopedRoleRemoved(role); } catch (Exception ignored) { // TODO log an ERROR } } } }
[ "Reset the internal state of this object back to what it originally was.\n\nUsed then reloading a server or in a slave host controller following a post-boot reconnect\nto the master." ]
[ "Use this API to add vlan.", "Resolve the given class if it is a primitive class,\nreturning the corresponding primitive wrapper type instead.\n@param clazz the class to check\n@return the original class, or a primitive wrapper for the original primitive type", "Sets the ssh priv key relative path.\nNote that must be relative path for now.\nThis default to no need of passphrase for the private key.\nWill also auto set the login type to key based.\n\n@param privKeyRelativePath\nthe priv key relative path\n@return the parallel task builder", "Retrieve the var data key for a specific field.\n\n@param type field type\n@return var data key", "Propagate onTouchStart events to listeners\n@param hit collision object", "Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data", "Use this API to fetch responderpolicy_binding resource of given name .", "On host controller reload, remove a not running server registered in the process controller declared as stopping.", "Retrieve the default mapping between MPXJ assignment fields and Primavera assignment field names.\n\n@return mapping" ]
public void setIntVec(IntBuffer data) { if (data == null) { throw new IllegalArgumentException("Input buffer for indices cannot be null"); } if (getIndexSize() != 4) { throw new UnsupportedOperationException("Cannot update integer indices with short array"); } if (data.isDirect()) { if (!NativeIndexBuffer.setIntVec(getNative(), data)) { throw new UnsupportedOperationException("Input array is wrong size"); } } else if (data.hasArray()) { if (!NativeIndexBuffer.setIntArray(getNative(), data.array())) { throw new IllegalArgumentException("Data array incompatible with index buffer"); } } else { throw new UnsupportedOperationException("IntBuffer type not supported. Must be direct or have backing array"); } }
[ "Updates the indices in the index buffer from a Java IntBuffer.\nAll of the entries of the input int buffer are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if int buffer is wrong size" ]
[ "Creates multiple aliases at once.", "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", "Joins the given list into a single string.", "Deletes the device pin.", "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", "Gets the Java subclass of GVRShader which implements\nthis shader type.\n@param ctx GVRContext shader is associated with\n@return GVRShader class implementing the shader type", "Copies all available data from in to out without closing any stream.\n\n@return number of bytes copied", "Set the value for a floating point 4x4 matrix.\n@param key name of uniform to set.\n@see #getFloatVec(String)", "This is the main entry point used to convert the internal representation\nof timephased baseline cost into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param cost timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range" ]
private static void listTaskNotes(ProjectFile file) { for (Task task : file.getTasks()) { String notes = task.getNotes(); if (notes.length() != 0) { System.out.println("Notes for " + task.getName() + ": " + notes); } } System.out.println(); }
[ "This method lists any notes attached to tasks.\n\n@param file MPX file" ]
[ "Filter unsafe or unnecessary request.\n\n@param nodeDataMapValidSource\nthe node data map valid source\n@param nodeDataMapValidSafe\nthe node data map valid safe", "Checks all data sets in IIM records 1, 2 and 3 for constraint violations.\n\n@return list of constraint violations, empty set if IIM file is valid", "Checks that the modified features exist.\n\n@param classDef The class descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated", "Writes the value key to the serialized characteristic\n\n@param builder The JSON builder to add the value to\n@param value The value to add", "This method retrieves a byte array of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return byte array containing required data", "Copies information between specified streams and then closes\nboth of the streams.\n@throws java.io.IOException", "Write the auxiliary RDF data for encoding the given value.\n\n@param value\nthe value to write\n@param resource\nthe (subject) URI to use to represent this value in RDF\n@throws RDFHandlerException", "Register this broker in ZK for the first time.", "Compose src onto dst using the alpha of sel to interpolate between the two.\nI can't think of a way to do this using AlphaComposite.\n@param src the source raster\n@param dst the destination raster\n@param sel the mask raster" ]
public void addExtentClass(String newExtentClassName) { extentClassNames.add(newExtentClassName); if(m_repository != null) m_repository.addExtent(newExtentClassName, this); }
[ "add an Extent class to the current descriptor\n@param newExtentClassName name of the class to add" ]
[ "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Method used to write the name of the scenarios methods\n\n@param word\n@return the same word starting with lower case", "Cancels all requests still waiting for a response.\n\n@return this {@link Searcher} for chaining.", "Add a \"post-run\" dependent for this model.\n\n@param dependent the \"post-run\" dependent.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group", "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return", "Set a variable in the top variables layer to given \"collection\" of the vertex frames. Can't be reassigned -\nthrows on attempt to reassign.", "Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the case where a hierarchical task\nstructure has been created programmatically in MPXJ.", "Check whether the URL contains one of the patterns.\n\n@param uri URI\n@param patterns possible patterns\n@return true when URL contains one of the patterns", "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object." ]
private Object getConstantValue(FieldType type, byte[] block) { Object value; DataType dataType = type.getDataType(); if (dataType == null) { value = null; } else { switch (dataType) { case DURATION: { value = MPPUtility.getAdjustedDuration(m_properties, MPPUtility.getInt(block, getValueOffset()), MPPUtility.getDurationTimeUnits(MPPUtility.getShort(block, getTimeUnitsOffset()))); break; } case NUMERIC: { value = Double.valueOf(MPPUtility.getDouble(block, getValueOffset())); break; } case PERCENTAGE: { value = Double.valueOf(MPPUtility.getShort(block, getValueOffset())); break; } case CURRENCY: { value = Double.valueOf(MPPUtility.getDouble(block, getValueOffset()) / 100); break; } case STRING: { int textOffset = getTextOffset(block); value = MPPUtility.getUnicodeString(m_criteriaData, m_dataOffset + m_criteriaTextStart + textOffset); break; } case BOOLEAN: { int intValue = MPPUtility.getShort(block, getValueOffset()); value = (intValue == 1 ? Boolean.TRUE : Boolean.FALSE); break; } case DATE: { value = MPPUtility.getTimestamp(block, getValueOffset()); break; } default: { value = null; break; } } } return value; }
[ "Retrieves a constant value.\n\n@param type field type\n@param block criteria data block\n@return constant value" ]
[ "Checks the widget by index\n@param checkableIndex The index is in the range from 0 to size -1, where size is the number of\nCheckable widgets in the group. It does not take into account any\nnon-Checkable widgets added to the group widget.\n@return {@code True} if {@code checkableWidget} is a child of this {@code CheckableGroup} and\nwas not already checked; {@code false} otherwise.", "Command to select a document from the POIFS for viewing.\n\n@param entry document to view", "Returns true if \"file\" is a subfile or subdirectory of \"dir\".\n\nFor example with the directory /path/to/a, the following return values would occur:\n\n/path/to/a/foo.txt - true /path/to/a/bar/zoo/boo/team.txt - true /path/to/b/foo.txt - false", "Use this API to fetch all the nsip6 resources that are configured on netscaler.", "Write a double attribute.\n\n@param name attribute name\n@param value attribute value", "Internal initialization.\n@throws ParserConfigurationException", "Override this method to change the default splash screen size or\nposition.\n\nThis method will be called <em>before</em> {@link #onInit(GVRContext)\nonInit()} and before the normal render pipeline starts up. In particular,\nthis means that any {@linkplain GVRAnimation animations} will not start\nuntil the first {@link #onStep()} and normal rendering starts.\n\n@param splashScreen\nThe splash object created from\n{@link #getSplashTexture(GVRContext)},\n{@link #getSplashMesh(GVRContext)}, and\n{@link #getSplashShader(GVRContext)}.\n\n@since 1.6.4", "Over simplistic helper to compare two strings to check radio buttons.\n\n@param value1 the first value\n@param value2 the second value\n@return \"checked\" if both values are equal, the empty String \"\" otherwise", "Creates a ServiceCall from an observable object and a callback.\n\n@param observable the observable to create from\n@param callback the callback to call when events happen\n@param <T> the type of the response\n@return the created ServiceCall" ]
private static void parseSsextensions(JSONObject modelJSON, Diagram current) throws JSONException { if (modelJSON.has("ssextensions")) { JSONArray array = modelJSON.getJSONArray("ssextensions"); for (int i = 0; i < array.length(); i++) { current.addSsextension(array.getString(i)); } } }
[ "adds all json extension to an diagram\n@param modelJSON\n@param current\n@throws org.json.JSONException" ]
[ "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar. The\ncalendar used is the \"Standard\" calendar. If this calendar does not exist,\nand exception will be thrown.\n\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)", "rollback the transaction", "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the value", "Initializes an annotation class\n\n@param name The name of the annotation class\n@return The instance of the annotation. Returns a dummy if the class was\nnot found", "Returns the compact records for all sections in the specified project.\n\n@param project The project to get sections from.\n@return Request object", "Add a variable to the scripting context.\n\n@param varName The variable name.\n@param value The variable value.", "Splits the given string.", "Execute a server task.\n\n@param listener the transactional server listener\n@param task the server task\n@return time to wait in ms for a response from the server, or {@code -1} if the task execution failed locally", "Use this API to fetch nssimpleacl resource of given name ." ]
public static cmppolicylabel get(nitro_service service, String labelname) throws Exception{ cmppolicylabel obj = new cmppolicylabel(); obj.set_labelname(labelname); cmppolicylabel response = (cmppolicylabel) obj.get_resource(service); return response; }
[ "Use this API to fetch cmppolicylabel resource of given name ." ]
[ "Prints a balance analysis to a file.\n\n@param outputDirName\n@param baseFileName suffix '.analysis' is appended to baseFileName.\n@param partitionBalance", "Concatenate the arrays.\n\n@param array First array.\n@param array2 Second array.\n@return Concatenate between first and second array.", "Returns the logger name that should be used in the log manager.\n\n@param name the name of the logger from the resource\n\n@return the name of the logger", "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", "Reads outline code custom field values and populates container.", "Load entries from the storage.\nOverriding methods should first delegate to super before adding their own entries.", "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", "Search for interesting photos using the Flickr Interestingness algorithm.\n\n@param params\nAny search parameters\n@param perPage\nNumber of items per page\n@param page\nThe page to start on\n@return A PhotoList\n@throws FlickrException", "Gets an exception reporting an unexpected XML element.\n\n@param reader a reference to the stream reader.\n@return the constructed {@link javax.xml.stream.XMLStreamException}." ]
public int indexOfKey(Object key) { return key == null ? indexOfNull() : indexOf(key, key.hashCode()); }
[ "Returns the index of a key in the set.\n\n@param key The key to search for.\n@return Returns the index of the key if it exists, else a negative integer." ]
[ "Add an index on the given collection and field\n\n@param collection the collection to use for the index\n@param field the field to use for the index\n@param asc the sorting direction. <code>true</code> to sort ascending; <code>false</code> to sort descending\n@param background iff <code>true</code> the index is created in the background", "Helper method to create a Dao object without having to define a class. Dao classes are supposed to be convenient\nbut if you have a lot of classes, they can seem to be a pain.\n\n<p>\n<b>NOTE:</b> You should use {@link DaoManager#createDao(ConnectionSource, DatabaseTableConfig)} instead of this\nmethod so you won't have to create the DAO multiple times.\n</p>", "Linear interpolation of ARGB values.\n@param t the interpolation parameter\n@param rgb1 the lower interpolation range\n@param rgb2 the upper interpolation range\n@return the interpolated value", "Main executable method of Crawljax CLI.\n\n@param args\nthe arguments.", "Complete the current operation and persist the current state to the disk. This will also trigger the invalidation\nof outdated modules.\n\n@param modification the current modification\n@param callback the completion callback", "Reverse Engineers an XPath Expression of a given Node in the DOM.\n\n@param node the given node.\n@return string xpath expression (e.g., \"/html[1]/body[1]/div[3]\").", "Recover log up to the last complete entry. Truncate off any bytes from any incomplete\nmessages written\n\n@throws IOException any exception", "Groups all of the metadata cache files that are candidates for auto-attachment to player slots into lists\nthat are keyed by the playlist ID used to create the cache file. Files that cache all tracks have a playlist\nID of 0.\n\n@return a map from playlist ID to the caches holding tracks from that playlist", "Distributed process finish.\n\n@param rb the rb\n@param mtasFields the mtas fields\n@throws IOException Signals that an I/O exception has occurred." ]
@Override public boolean check(EmbeddedBrowser browser) { String js = "try{ if(" + expression + "){return '1';}else{" + "return '0';}}catch(e){" + " return '0';}"; try { Object object = browser.executeJavaScript(js); if (object == null) { return false; } return object.toString().equals("1"); } catch (CrawljaxException e) { // Exception is caught, check failed so return false; return false; } }
[ "Check invariant.\n\n@param browser The browser.\n@return Whether the condition is satisfied or <code>false</code> when it it isn't or a\n{@link CrawljaxException} occurs." ]
[ "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "Inserts the currently contained data objects into the database.\n\n@param platform The (connected) database platform for inserting data\n@param model The database model\n@param batchSize The batch size; use 1 for not using batch mode", "Parse the json string to the diagram model, assumes that the json is\nhierarchical ordered\n@param json\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException", "Get FieldDescriptor from joined superclass.", "Wrap PreparedStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Preparedstatement.", "Format a calendar instance that is parseable from JavaScript, according to ISO-8601.\n\n@param cal the calendar to format to a JSON string\n@return a formatted date in the form of a string", "Determines if this connection's access token has expired and needs to be refreshed.\n@return true if the access token needs to be refreshed; otherwise false.", "Instantiate Service Locator client. After successful instantiation\nestablish a connection to the Service Locator server. This method will be\ncalled if property locatorClient is null. For this purpose was defined\nadditional properties to instantiate ServiceLocatorImpl.\n\n@throws InterruptedException\n@throws ServiceLocatorException" ]
public ImageSource apply(ImageSource input) { ImageSource originalImage = input; int width = originalImage.getWidth(); int height = originalImage.getHeight(); boolean[][] matrix = new boolean[width][height]; // black n white boolean matrix; true = blck, false = white // Copy ImageSource filteredImage = new MatrixSource(input); int[] histogram = OtsuBinarize.imageHistogram(originalImage); int totalNumberOfpixels = height * width; int threshold = OtsuBinarize.threshold(histogram, totalNumberOfpixels); int black = 0; int white = 255; int gray; int alpha; int newColor; for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { gray = originalImage.getGray(i, j); if (gray > threshold) { matrix[i][j] = false; } else { matrix[i][j] = true; } } } int blackTreshold = letterThreshold(originalImage, matrix); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { gray = originalImage.getGray(i, j); alpha = originalImage.getA(i, j); if (gray > blackTreshold) { newColor = white; } else { newColor = black; } newColor = ColorHelper.getARGB(newColor, newColor, newColor, alpha); filteredImage.setRGB(i, j, newColor); } } return filteredImage; }
[ "radi otsu da dobije spojena crna slova i ra\n\n@param input\n@return the processed image" ]
[ "2-D Perlin noise function.\n\n@param x X Value.\n@param y Y Value.\n@return Returns function's value at point xy.", "Obtains the transform for a specific time in animation.\n\n@param animationTime The time in animation.\n\n@return The transform.", "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results.", "Use this API to unset the properties of sslocspresponder resource.\nProperties that need to be unset are specified in args array.", "Process the layers.conf file.\n\n@param repoRoot the root\n@return the layers conf\n@throws java.io.IOException", "Lists the formation info for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.", "This method should be called after all column have been added to the report.\n@param numgroups\n@return", "rollback the transaction", "Isn't there a method for this in GeoTools?\n\n@param crs\nCRS string in the form of 'EPSG:<srid>'.\n@return SRID as integer." ]
public boolean isFinished(final ProcessorGraphNode processorGraphNode) { this.processorLock.lock(); try { return this.executedProcessors.containsKey(processorGraphNode.getProcessor()); } finally { this.processorLock.unlock(); } }
[ "Return true if the processor of the node has previously been executed.\n\n@param processorGraphNode the node to test." ]
[ "Checks the query-customizer setting of the given collection descriptor.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is only checked in strict)\n@exception ConstraintException If the constraint has been violated", "Formats an IPTC string for this reference using information obtained from\nSubject Reference System.\n\n@param srs\nreference subject reference system\n@return IPTC formatted reference", "Returns the value of the identified field as a Date.\nTime fields returned from an FQL query are expressed in terms of seconds since midnight, January 1, 1970 UTC.\n@param fieldName the name of the field\n@return the value of the field as a Date\n@throws FqlException if the field's value cannot be expressed as a long value from which a Date object can be constructed.", "Lookup a PortComponentMetaData by wsdl-port local part\n\n@param name - the wsdl-port local part\n@return PortComponentMetaData if found, null otherwise", "set the layout which will host the ScrimInsetsFrameLayout and its layoutParams\n\n@param container\n@param layoutParams\n@return", "Retrieve the dir pointed to by 'latest' symbolic-link or the current\nversion dir\n\n@return Current version directory, else null", "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "An extension point so we can control how the query gets executed.\nThis exists for testing purposes, not because we believe it will\nactually be used for real.", "Set the classpath for loading the driver.\n\n@param classpath the classpath" ]
public Integer getInteger(String fieldName) { try { return hasValue(fieldName) ? Integer.valueOf(String.valueOf(resultMap.get(fieldName))) : null; } catch (NumberFormatException e) { throw new FqlException("Field '" + fieldName +"' is not a number.", e); } }
[ "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" ]
[ "Resets the generator state.", "Merge msg bundles together, creating new MsgBundle with merges msg bundles passed in as a method argument", "Get a patch entry for either a layer or add-on.\n\n@param name the layer name\n@param addOn whether the target is an add-on\n@return the patch entry, {@code null} if it there is no such layer", "Write the given pattern to given log in given logging level\n@param logger\n@param level\n@param pattern\n@param exception", "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance", "Check whether the given class is cache-safe in the given context,\ni.e. whether it is loaded by the given ClassLoader or a parent of it.\n@param clazz the class to analyze\n@param classLoader the ClassLoader to potentially cache metadata in", "Copy the contents of the given String to the given output Writer.\nCloses the writer when done.\n@param in the String to copy from\n@param out the Writer to copy to\n@throws IOException in case of I/O errors", "Checks if is file exist.\n\n@param filePath\nthe file path\n@return true, if is file exist", "add trace information for received frame" ]
public int rank() { if( is64 ) { return SingularOps_DDRM.rank((SingularValueDecomposition_F64)svd, tol); } else { return SingularOps_FDRM.rank((SingularValueDecomposition_F32)svd, (float)tol); } }
[ "Returns the rank of the decomposed matrix.\n\n@see SingularOps_DDRM#rank(SingularValueDecomposition_F64, double)\n\n@return The matrix's rank" ]
[ "common utility method for adding a statement to a record", "This method maps the currency symbol position from the\nrepresentation used in the MPP file to the representation\nused by MPX.\n\n@param value MPP symbol position\n@return MPX symbol position", "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\"", "Get the deferred flag. Exchange rates can be deferred or real.time.\n\n@return the deferred flag, or {code null}.", "Overrides the superclass implementation to allow the AttributeDefinition for each field in the\nobject to in turn resolve that field.\n\n{@inheritDoc}", "Retrieve a boolean field.\n\n@param type field type\n@return field data", "Fall-back for types that are not handled by a subclasse's dispatch method.", "Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements", "Run a task periodically, for a set number of times.\n\n@param task\nTask to run.\n@param delay\nThe first execution will happen in {@code delay} seconds.\n@param period\nSubsequent executions will happen every {@code period} seconds\nafter the first.\n@param repetitions\nRepeat count\n@return {@code null} if {@code repetitions < 1}; otherwise, an interface\nthat lets you query the status; cancel; or reschedule the event." ]
public SpinJsonDataFormatException unableToParseValue(String expectedType, JsonNodeType type) { return new SpinJsonDataFormatException(exceptionMessage("002", "Expected '{}', got '{}'", expectedType, type.toString())); }
[ "Exception handler if we are unable to parse a json value into a java representation\n\n@param expectedType Name of the expected Type\n@param type Type of the json node\n@return SpinJsonDataFormatException" ]
[ "Generate the next permutation and return a list containing\nthe elements in the appropriate order.\n@see #nextPermutationAsList(java.util.List)\n@see #nextPermutationAsArray()\n@return The next permutation as a list.", "Create a structured Record instance from the flat text data.\nNull is returned if errors are encountered during parse.\n\n@param text flat text data\n@return Record instance", "Harvest any values that may have been returned during the execution\nof a procedure.\n\n@param proc the procedure descriptor that provides info about the procedure\nthat was invoked.\n@param obj the object that was persisted\n@param stmt the statement that was used to persist the object.\n\n@throws PersistenceBrokerSQLException if a problem occurs.", "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.", "Write the domain controller data to an S3 file.\n\n@param data the domain controller data\n@param domainName the name of the directory in the bucket to write the S3 file to\n@throws IOException", "Permanently close the ClientRequestExecutor pool. Resources subsequently\nchecked in will be destroyed.", "Sets the text alignment for all cells in the row.\n@param textAlignment new text alignment\n@throws NullPointerException if the argument was null\n@return this to allow chaining\n@throws {@link NullPointerException} if the argument was null", "Save current hostname and reuse it.\n\n@return hostname as String", "select a use case." ]
@UiHandler("m_seriesCheckBox") void onSeriesChange(ValueChangeEvent<Boolean> event) { if (handleChange()) { m_controller.setIsSeries(event.getValue()); } }
[ "Handle changes of the series check box.\n@param event the change event." ]
[ "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", "Processes the template for all foreignkeys of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "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.", "symbol for filling padding position in output", "Closes any registered stream entries that have not yet been consumed", "Sets the current field definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"\[email protected] name=\"access\" optional=\"true\" description=\"The accessibility of the column\" values=\"readonly,readwrite\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"none,ojb,database\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[email protected] name=\"column-documentation\" optional=\"true\" description=\"Documentation on the column\"\[email protected] name=\"conversion\" optional=\"true\" description=\"The fully qualified name of the\nconversion for the field\"\[email protected] name=\"default-fetch\" optional=\"true\" description=\"The default-fetch setting\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the field\"\[email protected] name=\"id\" optional=\"true\" description=\"The position of the field in the class\ndescriptor\"\[email protected] name=\"indexed\" optional=\"true\" description=\"Whether the field is indexed\"\nvalues=\"true,false\"\[email protected] name=\"jdbc-type\" optional=\"true\" description=\"The jdbc type of the column\"\[email protected] name=\"length\" optional=\"true\" description=\"The length of the column\"\[email protected] name=\"locking\" optional=\"true\" description=\"Whether the field supports locking\"\nvalues=\"true,false\"\[email protected] name=\"nullable\" optional=\"true\" description=\"Whether the field is nullable\"\nvalues=\"true,false\"\[email protected] name=\"precision\" optional=\"true\" description=\"The precision of the column\"\[email protected] name=\"primarykey\" optional=\"true\" description=\"Whether the field is a primarykey\"\nvalues=\"true,false\"\[email protected] name=\"scale\" optional=\"true\" description=\"The scale of the column\"\[email protected] name=\"sequence-name\" optional=\"true\" description=\"The name of the sequence for\nincrementing the field\"\[email protected] name=\"table\" optional=\"true\" description=\"The table of the field (not implemented\nyet)\"\[email protected] name=\"update-lock\" optional=\"true\" description=\"Can be set to false if the persistent attribute is\nused for optimistic locking AND the dbms should update the lock column itself (default is true). Can only be set for\nTIMESTAMP and INTEGER columns\" values=\"true,false\"", "Use this API to fetch gslbvserver_spilloverpolicy_binding resources of given name .", "Adds an edge between the current and new state.\n\n@return true if the new state is not found in the state machine.", "Find the animation associated with this avatar with the given name.\n@param name name of animation to look for\n@return {@link GVRAnimator} animation found or null if none with that name" ]
public static appfwprofile_excluderescontenttype_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_excluderescontenttype_binding obj = new appfwprofile_excluderescontenttype_binding(); obj.set_name(name); appfwprofile_excluderescontenttype_binding response[] = (appfwprofile_excluderescontenttype_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch appfwprofile_excluderescontenttype_binding resources of given name ." ]
[ "Checks if the dependency server is available\n\n@return true if the server is reachable, false otherwise", "Return the discount factor within a given model context for a given maturity.\n@param model The model used as a context (not required for this class).\n@param maturity The maturity in terms of ACT/365 daycount form this curve reference date. Note that this parameter might get rescaled to a different time parameter.\n@see net.finmath.marketdata.model.curves.DiscountCurveInterface#getDiscountFactor(net.finmath.marketdata.model.AnalyticModelInterface, double)", "Add a source and destination.\n\n@param source Source path to be routed. Routed path can have named wild-card pattern with braces \"{}\".\n@param destination Destination of the path.", "Validate the JtsLayer.\n\n@param name mvt layer name\n@param geometries geometries in the tile\n@throws IllegalArgumentException when {@code name} or {@code geometries} are null", "Build a standard-format UDP packet for sending to port 50001 or 50002 in the protocol.\n\n@param type the type of packet to create.\n@param deviceName the 0x14 (twenty) bytes of the device name to send in the packet.\n@param payload the remaining bytes which come after the device name.\n@return the packet to send.", "Return the available format ids.", "Update which options are shown.\n@param showModeSwitch flag, indicating if the mode switch should be shown.\n@param showAddKeyOption flag, indicating if the \"Add key\" row should be shown.", "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance", "Gets the Hamming distance between two strings.\n\n@param first First string.\n@param second Second string.\n@return The Hamming distance between p and q." ]
public void removeLicenseFromArtifact(final String gavc, final String licenseId) { final DbArtifact dbArtifact = getArtifact(gavc); // // The artifact may not have the exact string associated with it, but rather one // matching license regexp expression. // repositoryHandler.removeLicenseFromArtifact(dbArtifact, licenseId, licenseMatcher); }
[ "Remove a license from an artifact\n\n@param gavc String The artifact GAVC\n@param licenseId String The license id to be removed." ]
[ "Read custom fields for a GanttProject task.\n\n@param gpTask GanttProject task\n@param mpxjTask MPXJ Task instance", "Shifts are performed based upon singular values computed previously. If it does not converge\nusing one of those singular values it uses a Wilkinson shift instead.", "This method can be used by child classes to apply the configuration that is stored in config.", "Calculate the actual bit length of the proposed binary string.", "Returns the rendered element content for all the given containers.\n\n@param element the element to render\n@param containers the containers the element appears in\n\n@return a map from container names to rendered page contents", "This will check to see if certain configuration values exist from the ConfigurationService\nIf not then it redirects to the configuration screen", "Update the plane based on arcore best knowledge of the world\n\n@param scale", "Copy the given Collection into a Class array.\nThe Collection must contain Class elements only.\n@param collection the Collection to copy\n@return the Class array ({@code null} if the passed-in\nCollection was {@code null})", "Use this API to add route6 resources." ]
public int[] getIntArray(String attributeName) { int[] array = NativeVertexBuffer.getIntArray(getNative(), attributeName); if (array == null) { throw new IllegalArgumentException("Attribute name " + attributeName + " cannot be accessed"); } return array; }
[ "Retrieves a vertex attribute as an integer array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntVec(String, IntBuffer)\n@see #getIntArray(String)" ]
[ "Set HTTP client\n\n@param httpClient\nAn instance of OkHttpClient\n@return Api Client", "Commit all changes if there are uncommitted changes.\n\n@param msg the commit message.\n@throws GitAPIException", "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.", "Adds labels to the item\n\n@param labels\nthe labels to add", "return a generic Statement for the given ClassDescriptor", "Use this API to fetch a vpnglobal_intranetip_binding resources.", "Checks if the provided module is valid and could be stored into the database\n\n@param module the module to test\n@throws WebApplicationException if the data is corrupted", "Executes the API action \"wbsetlabel\" for the given parameters.\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param value\nthe value of the label to set. Set it to null to remove the label.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the label as returned by the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException", "Initializes the default scope type" ]
@Override public final Boolean optBool(final String key) { if (this.obj.optString(key, null) == null) { return null; } else { return this.obj.optBoolean(key); } }
[ "Get a property as a boolean or null.\n\n@param key the property name" ]
[ "Returns the absolute directory on the Web site where dumpfiles of the\ngiven type can be found.\n\n@param dumpContentType\nthe type of dump\n@return relative web directory for the current dumpfiles\n@throws IllegalArgumentException\nif the given dump file type is not known", "Just collapses digits to 9 characters.\nDoes lazy copying of String.\n\n@param s String to find word shape of\n@return The same string except digits are equivalence classed to 9.", "Convert the server side feature to a DTO feature that can be sent to the client.\n\n@param feature\nThe server-side feature representation.\n@param featureIncludes\nIndicate which aspects of the should be included see {@link VectorLayerService}\n@return Returns the DTO feature.", "Returns true if required properties for MiniFluo are set", "Calculate Mode value.\n@param values Values.\n@return Returns mode value of the histogram array.", "Handle a completed request producing an optional response", "This is a method to stream slops to \"slop\" store when a node is detected\nfaulty in a streaming session\n\n@param key -- original key\n@param value -- original value\n@param storeName -- the store for which we are registering the slop\n@param failedNodeId -- the faulty node ID for which we register a slop\n@throws IOException", "Builds the radio input to set the export and secure property.\n\n@param propName the name of the property to build the radio input for\n\n@return html for the radio input\n\n@throws CmsException if the reading of a property fails", "Checks to see if matrix 'a' is the same as this matrix within the specified\ntolerance.\n\n@param a The matrix it is being compared against.\n@param tol How similar they must be to be equals.\n@return If they are equal within tolerance of each other." ]
public static void checkVectorAddition() { DoubleMatrix x = new DoubleMatrix(3, 1, 1.0, 2.0, 3.0); DoubleMatrix y = new DoubleMatrix(3, 1, 4.0, 5.0, 6.0); DoubleMatrix z = new DoubleMatrix(3, 1, 5.0, 7.0, 9.0); check("checking vector addition", x.add(y).equals(z)); }
[ "Check whether vector addition works. This is pure Java code and should work." ]
[ "Tries to load a site specific error page. If\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 errorCode the error code to display\n@return a flag, indicating if the custom error page could be loaded.", "Promotes this version of the file to be the latest version.", "Make this item active.", "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", "Use this API to update tmtrafficaction.", "Should be called after all columns have been created\n@param headerStyle\n@param totalStyle\n@param totalHeaderStyle\n@return", "Sets all Fluo properties to their default in the given configuration. NOTE - some properties do\nnot have defaults and will not be set.", "Shutdown task scheduler.", "Internal function that uses recursion to create the list" ]
public Mapping<T> addFields() { if (idColumn == null) { throw new RuntimeException("Map ID column before adding class fields"); } for (Field f : ReflectionUtils.getDeclaredFieldsInHierarchy(clazz)) { if (!Modifier.isStatic(f.getModifiers()) && !isFieldMapped(f.getName()) && !ignoredFields.contains(f.getName())) { addColumn(f.getName()); } } return this; }
[ "Adds mappings for each declared field in the mapped class. Any fields\nalready mapped by addColumn are skipped." ]
[ "Remove all non replica clock entries from the list of versioned values\nprovided\n\n@param vals list of versioned values to prune replicas from\n@param keyReplicas list of current replicas for the given key\n@param didPrune flag to mark if we did actually prune something\n@return pruned list", "Adds the remaining tokens to the processed tokens list.\n\n@param iter An iterator over the remaining tokens", "removes all data for an annotation class. This should be called after an\nannotation has been modified through the SPI", "Returns true if the lattice contains an entry at the specified location.\n\n@param maturityInMonths The maturity in months to check.\n@param tenorInMonths The tenor in months to check.\n@param moneynessBP The moneyness in bp to check.\n@return True iff there is an entry at the specified location.", "Remove an addon from an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param addonName Addon name. See {@link #listAppAddons} for a list of addons that can be used.\n@return the request object", "Return a replica of this instance with its quality value removed.\n@return the same instance if the media type doesn't contain a quality value, or a new one otherwise", "Creates a new connection from the data source that the connection descriptor\nrepresents. If the connection descriptor does not directly contain the data source\nthen a JNDI lookup is performed to retrieve the data source.\n\n@param jcd The connection descriptor\n@return A connection instance\n@throws LookupException if we can't get a connection from the datasource either due to a\nnaming exception, a failed sanity check, or a SQLException.", "Executes all event manipulating handler and writes the event with persist\nhandler.\n\n@param events the events", "Return the numeric distance value in degrees.\n\n@return the degrees" ]
public DocumentReaderAndWriter<IN> makePlainTextReaderAndWriter() { String readerClassName = flags.plainTextDocumentReaderAndWriter; // We set this default here if needed because there may be models // which don't have the reader flag set if (readerClassName == null) { readerClassName = SeqClassifierFlags.DEFAULT_PLAIN_TEXT_READER; } DocumentReaderAndWriter<IN> readerAndWriter; try { readerAndWriter = ((DocumentReaderAndWriter<IN>) Class.forName(readerClassName).newInstance()); } catch (Exception e) { throw new RuntimeException(String.format("Error loading flags.plainTextDocumentReaderAndWriter: '%s'", flags.plainTextDocumentReaderAndWriter), e); } readerAndWriter.init(flags); return readerAndWriter; }
[ "Makes a DocumentReaderAndWriter based on\nflags.plainTextReaderAndWriter. Useful for reading in\nuntokenized text documents or reading plain text from the command\nline. An example of a way to use this would be to return a\nedu.stanford.nlp.wordseg.Sighan2005DocumentReaderAndWriter for\nthe Chinese Segmenter." ]
[ "Generates a vector clock with the provided values\n\n@param serverIds servers in the clock\n@param clockValue value of the clock for each server entry\n@param timestamp ts value to be set for the clock\n@return", "Process stop.\n\n@param endpoint the endpoint\n@param eventType the event type", "get the type erasure signature", "Stops the current connection. No reconnecting will occur. Kills thread + cleanup.\nWaits for the loop to end", "Set the position of the given Matcher to the given index.\n\n@param matcher a Matcher\n@param idx the index number\n@since 1.0", "Initialization necessary for editing a property bundle.\n\n@throws CmsLoaderException thrown if loading a bundle file fails.\n@throws CmsException thrown if loading a bundle file fails.\n@throws IOException thrown if loading a bundle file fails.", "Use this API to delete route6 of given name.", "Creates an operations that targets the valiadating handler.\n\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "This method will return a list of installed identities for which\nthe corresponding .conf file exists under .installation directory.\nThe list will also include the default identity even if the .conf\nfile has not been created for it." ]
okhttp3.Response delete(String url, Map<String, Object> params) throws RequestException, LocalOperationException { okhttp3.Request request = new okhttp3.Request.Builder() .url(getFullUrl(url)) .delete(getBody(toPayload(params), null)) .addHeader("Transloadit-Client", version) .build(); try { return httpClient.newCall(request).execute(); } catch (IOException e) { throw new RequestException(e); } }
[ "Makes http DELETE request\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException" ]
[ "Requests the cue list for a specific track ID, given a dbserver connection to a player that has already\nbeen set up.\n\n@param rekordboxId the track of interest\n@param slot identifies the media slot we are querying\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the retrieved cue list, or {@code null} if none was available\n@throws IOException if there is a communication problem", "Use this API to add systemuser resources.", "Dumps an animation channel to stdout.\n\n@param nodeAnim the channel", "Helper method to get a list of node ids.\n\n@param nodeList", "Replies the elements of the given map except the pairs with the given keys.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param keys the keys of the pairs to remove.\n@return the map with the content of the map except the pairs.\n@since 2.15", "Read the leaf tasks for an individual WBS node.\n\n@param parent parent task\n@param id first task ID", "Obtain a dbserver client session that can be used to perform some task, call that task with the client,\nthen release the client.\n\n@param targetPlayer the player number whose dbserver we wish to communicate with\n@param task the activity that will be performed with exclusive access to a dbserver connection\n@param description a short description of the task being performed for error reporting if it fails,\nshould be a verb phrase like \"requesting track metadata\"\n@param <T> the type that will be returned by the task to be performed\n\n@return the value returned by the completed task\n\n@throws IOException if there is a problem communicating\n@throws Exception from the underlying {@code task}, if any", "Returns the default safety level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_MODERATE\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_RESTRICTED\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_SAFE\n@return The current users safety-level\n@throws FlickrException", "Take four bytes from the specified position in the specified\nblock and convert them into a 32-bit int, using the big-endian\nconvention.\n@param bytes The data to read from.\n@param offset The position to start reading the 4-byte int from.\n@return The 32-bit integer represented by the four bytes." ]
private boolean hasToBuilderMethod( DeclaredType builder, boolean isExtensible, Iterable<ExecutableElement> methods) { for (ExecutableElement method : methods) { if (isToBuilderMethod(builder, method)) { if (!isExtensible) { messager.printMessage(ERROR, "No accessible no-args Builder constructor available to implement toBuilder", method); } return true; } } return false; }
[ "Find a toBuilder method, if the user has provided one." ]
[ "Sets up and declares internal data structures.\n\n@param diag Diagonal elements from tridiagonal matrix. Modified.\n@param off Off diagonal elements from tridiagonal matrix. Modified.\n@param numCols number of columns (and rows) in the matrix.", "Creates an IndexableTaskItem from provided FunctionalTaskItem.\n\n@param taskItem functional TaskItem\n@return IndexableTaskItem", "Use this API to fetch all the linkset resources that are configured on netscaler.", "Assigns retention policy with givenID to folder or enterprise.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param assignTo object representing folder or enterprise to assign policy to.\n@return info about created assignment.", "This method tokenizes a string by space characters,\nbut ignores spaces in quoted parts,that are parts in\n'' or \"\". The method does allows the usage of \"\" in ''\nand '' in \"\". The space character between tokens is not\nreturned.\n\n@param s the string to tokenize\n@return the tokens", "Executes the given transaction within the context of a write lock.\n\n@param t The transaction to execute.", "Get a handler based on its class\n@param clazz The class of the Handler to return.\nIf multiple Handlers exist, the first one is returned.\n@param <E> The class of the handler to return.\n@return The handler matching the class name.", "Use this API to fetch responderpolicy resource of given name .", "Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data" ]
public float[] getFloatArray(String attributeName) { float[] array = NativeVertexBuffer.getFloatArray(getNative(), attributeName); if (array == null) { throw new IllegalArgumentException("Attribute name " + attributeName + " cannot be accessed"); } return array; }
[ "Retrieves a vertex attribute as a float array.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>float</i>\n@see #setFloatVec(String, FloatBuffer)\n@see #getFloatArray(String)" ]
[ "Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.\n\n@param setup the setup type, such as <code>ServerSetup.IMAP</code>\n@param mailProps additional mail properties.\n@return the JavaMail session.", "Use this API to update route6.", "Decide which donor node to steal from. This is a policy implementation.\nI.e., in the future, additional policies could be considered. At that\ntime, this method should be overridden in a sub-class, or a policy object\nought to implement this algorithm.\n\nCurrent policy:\n\n1) If possible, a stealer node that is the zone n-ary in the finalCluster\nsteals from the zone n-ary in the currentCluster in the same zone.\n\n2) If there are no partition-stores to steal in the same zone (i.e., this\nis the \"zone expansion\" use case), then a differnt policy must be used.\nThe stealer node that is the zone n-ary in the finalCluster determines\nwhich pre-existing zone in the currentCluster hosts the primary partition\nid for the partition-store. The stealer then steals the zone n-ary from\nthat pre-existing zone.\n\nThis policy avoids unnecessary cross-zone moves and distributes the load\nof cross-zone moves approximately-uniformly across pre-existing zones.\n\nOther policies to consider:\n\n- For zone expansion, steal all partition-stores from one specific\npre-existing zone.\n\n- Replace heuristic to approximately uniformly distribute load among\nexisting zones to something more concrete (i.e. track steals from each\npre-existing zone and forcibly balance them).\n\n- Select a single donor for all replicas in a new zone. This will require\ndonor-based rebalancing to be run (at least for this specific part of the\nplan). This would reduce the number of donor-side scans of data. (But\nstill send replication factor copies over the WAN.) This would require\napparatus in the RebalanceController to work.\n\n- Set up some sort of chain-replication in which a single stealer in the\nnew zone steals some replica from a pre-exising zone, and then other\nn-aries in the new zone steal from the single cross-zone stealer in the\nzone. This would require apparatus in the RebalanceController to work.\n\n@param currentSRP\n@param finalSRP\n@param stealerZoneId\n@param stealerNodeId\n@param stealerPartitionId\n@return the node id of the donor for this partition Id.", "Get the multicast socket address.\n\n@return the multicast address", "Returns a new instance of the class with the given qualified name using the constructor with\nthe specified signature.\n\n@param className The qualified name of the class to instantiate\n@param types The parameter types\n@param args The arguments\n@return The instance", "Convert a color to an angle.\n\n@param color The RGB value of the color to \"find\" on the color wheel.\n\n@return The angle (in rad) the \"normalized\" color is displayed on the\ncolor wheel.", "Add the given person to the photo. Optionally, send in co-ordinates\n\n@param photoId\n@param userId\n@param bounds\n@throws FlickrException", "Normalizes elements in 'u' by dividing by max and computes the norm2 of the normalized\narray u. Adjust the sign of the returned value depending on the size of the first\nelement in 'u'. Normalization is done to avoid overflow.\n\n<pre>\nfor i=j:numRows\nu[i] = u[i] / max\ntau = tau + u[i]*u[i]\nend\ntau = sqrt(tau)\nif( u[j] &lt; 0 )\ntau = -tau;\n</pre>\n\n@param j Element in 'u' that it starts at.\n@param numRows Element in 'u' that it stops at.\n@param u Array\n@param max Max value in 'u' that is used to normalize it.\n@return norm2 of 'u'", "Ensures that the primary keys required by the given collection with indirection table are present in\nthe element class.\n\n@param modelDef The model\n@param collDef The collection\n@throws ConstraintException If there is a problem with the fitting collection (if any) or the primary keys" ]
void initialize(DMatrixSparseCSC A) { m = A.numRows; n = A.numCols; int s = 4*n + (ata ? (n+m+1) : 0); gw.reshape(s); w = gw.data; // compute the transpose of A At.reshape(A.numCols,A.numRows,A.nz_length); CommonOps_DSCC.transpose(A,At,gw); // initialize w Arrays.fill(w,0,s,-1); // assign all values in workspace to -1 ancestor = 0; maxfirst = n; prevleaf = 2*n; first = 3*n; }
[ "Initializes class data structures and parameters" ]
[ "Delete all backups asynchronously", "Add the given pair to a given map for obtaining a new map.\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>\nEven if the key of the right operand exists in the left operand, 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 map to consider.\n@param right the entry (key, value) to add into the map.\n@return an immutable map with the content of the map and with the given entry.\n@throws IllegalArgumentException - when the right operand key exists in the left operand.\n@since 2.15", "Returns a list of the rekordbox IDs of the tracks contained in the cache.\n\n@return a list containing the rekordbox ID for each track present in the cache, in the order they appear", "Returns a copy of this year-week with the new year and week, checking\nto see if a new object is in fact required.\n\n@param newYear the year to represent, validated from MIN_YEAR to MAX_YEAR\n@param newWeek the week to represent, validated from 1 to 53\n@return the year-week, not null", "Use this API to fetch responderpolicylabel_binding resource of given name .", "Retrieves all Metadata Cascade Policies on a folder.\n\n@param fields optional fields to retrieve for cascade policies.\n@return the Iterable of Box Metadata Cascade Policies in your enterprise.", "Get the default provider used.\n\n@return the default provider, never {@code null}.", "Delete a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to delete.\n@throws FlickrException", "Use this API to fetch all the sslaction resources that are configured on netscaler." ]
private void sendOneAsyncHint(final ByteArray slopKey, final Versioned<byte[]> slopVersioned, final List<Node> nodesToTry) { Node nodeToHostHint = null; boolean foundNode = false; while(nodesToTry.size() > 0) { nodeToHostHint = nodesToTry.remove(0); if(!failedNodes.contains(nodeToHostHint) && failureDetector.isAvailable(nodeToHostHint)) { foundNode = true; break; } } if(!foundNode) { Slop slop = slopSerializer.toObject(slopVersioned.getValue()); logger.error("Trying to send an async hint but used up all nodes. key: " + slop.getKey() + " version: " + slopVersioned.getVersion().toString()); return; } final Node node = nodeToHostHint; int nodeId = node.getId(); NonblockingStore nonblockingStore = nonblockingSlopStores.get(nodeId); Utils.notNull(nonblockingStore); final Long startNs = System.nanoTime(); NonblockingStoreCallback callback = new NonblockingStoreCallback() { @Override public void requestComplete(Object result, long requestTime) { Slop slop = null; boolean loggerDebugEnabled = logger.isDebugEnabled(); if(loggerDebugEnabled) { slop = slopSerializer.toObject(slopVersioned.getValue()); } Response<ByteArray, Object> response = new Response<ByteArray, Object>(node, slopKey, result, requestTime); if(response.getValue() instanceof Exception && !(response.getValue() instanceof ObsoleteVersionException)) { if(!failedNodes.contains(node)) failedNodes.add(node); if(response.getValue() instanceof UnreachableStoreException) { UnreachableStoreException use = (UnreachableStoreException) response.getValue(); if(loggerDebugEnabled) { logger.debug("Write of key " + slop.getKey() + " for " + slop.getNodeId() + " to node " + node + " failed due to unreachable: " + use.getMessage()); } failureDetector.recordException(node, (System.nanoTime() - startNs) / Time.NS_PER_MS, use); } sendOneAsyncHint(slopKey, slopVersioned, nodesToTry); } if(loggerDebugEnabled) logger.debug("Slop write of key " + slop.getKey() + " for node " + slop.getNodeId() + " to node " + node + " succeeded in " + (System.nanoTime() - startNs) + " ns"); failureDetector.recordSuccess(node, (System.nanoTime() - startNs) / Time.NS_PER_MS); } }; nonblockingStore.submitPutRequest(slopKey, slopVersioned, null, callback, timeoutMs); }
[ "A callback that handles requestComplete event from NIO selector manager\nWill try any possible nodes and pass itself as callback util all nodes\nare exhausted\n\n@param slopKey\n@param slopVersioned\n@param nodesToTry List of nodes to try to contact. Will become shorter\nafter each callback" ]
[ "Get a list of all active server mappings defined for current profile\n\n@return Collection of ServerRedirects", "This may cost twice what it would in the original Map.\n\n@param key key whose associated value is to be returned.\n@return the value to which this map maps the specified key, or\n<tt>null</tt> if the map contains no mapping for this key.", "Bessel function of order n.\n\n@param n Order.\n@param x Value.\n@return J value.", "Decode the String from Base64 into a byte array.\n\n@param value the string to be decoded\n@return the decoded bytes as an array\n@since 1.0", "Sets the left padding for all cells in the table.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining", "Adds an object to the Index. If it was already in the Index,\nthen nothing is done. If it is not in the Index, then it is\nadded iff the Index hasn't been locked.\n\n@return true if the item was added to the index and false if the\nitem was already in the index or if the index is locked", "Compares two sets of snaks, given by iterators. The method is optimised\nfor short lists of snaks, as they are typically found in claims and\nreferences.\n\n@param snaks1\n@param snaks2\n@return true if the lists are equal", "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", "Returns a BoxStoragePolicyAssignment information.\n@param api the API connection to be used by the resource.\n@param resolvedForType the assigned entity type for the storage policy.\n@param resolvedForID the assigned entity id for the storage policy.\n@return information about this {@link BoxStoragePolicyAssignment}." ]
public static base_response save(nitro_service client, cacheobject resource) throws Exception { cacheobject saveresource = new cacheobject(); saveresource.locator = resource.locator; return saveresource.perform_operation(client,"save"); }
[ "Use this API to save cacheobject." ]
[ "Parse a list of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Reads a color value represented by three bytes, for R, G, and B\ncomponents, plus a flag byte indicating if this is an automatic color.\nReturns null if the color type is \"Automatic\".\n\n@param data byte array of data\n@param offset offset into array\n@return new Color instance", "Use this API to fetch cacheselector resources of given names .", "Performs a request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return a {@link Response} to the request.", "Installs a provider either in the scope or the pool of unbound providers.\n\n@param clazz the class for which to install the provider.\n@param bindingName the name, possibly {@code null}, for which to install the scoped provider.\n@param internalProvider the internal provider to install.\n@param isBound whether or not the provider is bound to the scope or belongs to the pool of unbound providers.\n@param isTestProvider whether or not is a test provider, installed through a Test Module that should override\nexisting providers for the same class-bindingname.\n@param <T> the type of {@code clazz}.\n\nNote to maintainers : we don't use this method directly, both {@link #installBoundProvider(Class, String, InternalProviderImpl, boolean)}\nand {@link #installUnBoundProvider(Class, String, InternalProviderImpl)}\nare a facade of this method and make the calls more clear.", "Assigns one variable to one value\n\n@param action an Assign Action\n@param possibleStateList a current list of possible states produced so far from expanding a model state\n\n@return the same list, with every possible state augmented with an assigned variable, defined by action", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Counts the number of lines.\n\n@param str the input string\n@return Returns the number of lines terminated by '\\n' in string", "scroll only once" ]
public void addRoute(String path, Class<? extends Actor> actorClass) throws RouteAlreadyMappedException { addRoute(new Route(path, false), actorClass); }
[ "Add an exact path to the routing table.\n\n@throws RouteAlreadyMappedException" ]
[ "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nunless we have a metadata cache available for the specified media slot, in which case that will be used instead.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n\n@return the metadata, if any", "Set hint number for country", "Get the node that has been selected by the user, or null if\nnothing is selected.\n@return The node or <code>null</code>", "Obtains a Discordian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Created a fresh CancelIndicator", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "This function is responsible for starting the actual async rebalance\noperation. This is run if this node is the stealer node\n\n<br>\n\nWe also assume that the check that this server is in rebalancing state\nhas been done at a higher level\n\n@param stealInfo Partition info to steal\n@return Returns a id identifying the async operation", "Use this API to sync gslbconfig.", "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." ]
public void setIndexBuffer(GVRIndexBuffer ibuf) { mIndices = ibuf; NativeMesh.setIndexBuffer(getNative(), (ibuf != null) ? ibuf.getNative() : 0L); }
[ "Changes the index buffer associated with this mesh.\n@param ibuf new index buffer to use\n@see #setIndices(int[])\n@see #getIndexBuffer()\n@see #getIntIndices()" ]
[ "Use this API to delete clusterinstance resources.", "Calls the stored procedure stored procedure throws an\nerror if it doesn't exist.\n@param broker\n@param cld\n@param sequenceName\n@return\n@throws LookupException\n@throws SQLException", "Use this API to unset the properties of gslbservice resources.\nProperties that need to be unset are specified in args array.", "Returns the value of an optional property, if the property is\nset. If it is not set defval is returned.", "Bessel function of order 0.\n\n@param x Value.\n@return J0 value.", "Set hint number for country", "Extracts the rank of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The rank of the decomposed matrix.", "Convenience method to determine if a character is special to the regex system.\n\n@param chr\nthe character to test\n\n@return is the character a special character.", "Locate the no arg constructor for the class." ]
public static void endThreads(String check){ //(error check) if(currentThread != -1L){ throw new IllegalStateException("endThreads() called, but thread " + currentThread + " has not finished (exception in thread?)"); } //(end threaded environment) assert !control.isHeldByCurrentThread(); isThreaded = false; //(write remaining threads) boolean cleanPass = false; while(!cleanPass){ cleanPass = true; for(long thread : threadedLogQueue.keySet()){ assert currentThread < 0L; if(threadedLogQueue.get(thread) != null && !threadedLogQueue.get(thread).isEmpty()){ //(mark queue as unclean) cleanPass = false; //(variables) Queue<Runnable> backlog = threadedLogQueue.get(thread); currentThread = thread; //(clear buffer) while(currentThread >= 0){ if(currentThread != thread){ throw new IllegalStateException("Redwood control shifted away from flushing thread"); } if(backlog.isEmpty()){ throw new IllegalStateException("Forgot to call finishThread() on thread " + currentThread); } assert !control.isHeldByCurrentThread(); backlog.poll().run(); } //(unregister thread) threadsWaiting.remove(thread); } } } while(threadsWaiting.size() > 0){ assert currentThread < 0L; assert control.tryLock(); assert !threadsWaiting.isEmpty(); control.lock(); attemptThreadControlThreadsafe(-1); control.unlock(); } //(clean up) for(long threadId : threadedLogQueue.keySet()){ assert threadedLogQueue.get(threadId).isEmpty(); } assert threadsWaiting.isEmpty(); assert currentThread == -1L; endTrack("Threads( "+check+" )"); }
[ "Signal that all threads have run to completion, and the multithreaded\nenvironment is over.\n@param check The name of the thread group passed to startThreads()" ]
[ "With the QR algorithm it is possible for the found singular values to be negative. This\nmakes them all positive by multiplying it by a diagonal matrix that has", "Use this API to delete nsacl6 of given name.", "Get the log if exists or return null\n\n@param topic topic name\n@param partition partition index\n@return a log for the topic or null if not exist", "Updates the information about this collaboration with any info fields that have been modified locally.\n\n@param info the updated info.", "Restores a trashed file to a new location with a new name.\n@param fileID the ID of the trashed file.\n@param newName an optional new name to give the file. This can be null to use the file's original name.\n@param newParentID an optional new parent ID for the file. This can be null to use the file's original\nparent.\n@return info about the restored file.", "Get the canonical method declared on this object.\n\n@param method the method to look up\n@return the canonical method object, or {@code null} if no matching method exists", "note this string is used by hashCode", "Stores the gathered usage statistics about property uses to a CSV file.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Validate JUnit4 presence in a concrete version." ]
protected int readShort(InputStream is) throws IOException { byte[] data = new byte[2]; if (is.read(data) != data.length) { throw new EOFException(); } return (MPPUtility.getShort(data, 0)); }
[ "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" ]
[ "Analyses the content of the general section of an ini configuration file\nand fills out the class arguments with this data.\n\n@param section\n{@link Section} with name \"general\"", "Called recursively to renumber child task IDs.\n\n@param parentTask parent task instance\n@param currentID current task ID\n@return updated current task ID", "Use this API to fetch the statistics of all nspbr6_stats resources that are configured on netscaler.", "Retrieve the default aliases to be applied to MPXJ task and resource fields.\n\n@return map of aliases", "convert selector used in an upsert statement into a document", "Find a toBuilder method, if the user has provided one.", "Uses getResult to get the final Result and executes it\n\n@throws ConfigurationException\nIf not result can be found with the returned code", "Resets the generator state.", "Calling EventProducerInterceptor in case of logging faults.\n\n@param exchange\nthe message exchange\n@param reqFid\nthe FlowId\n\n@throws Fault\nthe fault" ]
public static ProctorLoadResult verifyWithoutSpecification(@Nonnull final TestMatrixArtifact testMatrix, final String matrixSource) { final ProctorLoadResult.Builder resultBuilder = ProctorLoadResult.newBuilder(); for (final Entry<String, ConsumableTestDefinition> entry : testMatrix.getTests().entrySet()) { final String testName = entry.getKey(); final ConsumableTestDefinition testDefinition = entry.getValue(); try { verifyInternallyConsistentDefinition(testName, matrixSource, testDefinition); } catch (IncompatibleTestMatrixException e) { LOGGER.info(String.format("Unable to load test matrix for %s", testName), e); resultBuilder.recordError(testName, e); } } return resultBuilder.build(); }
[ "Verifies that the TestMatrix is correct and sane without using a specification.\nThe Proctor API doesn't use a test specification so that it can serve all tests in the matrix\nwithout restriction.\nDoes a limited set of sanity checks that are applicable when there is no specification,\nand thus no required tests or provided context.\n\n@param testMatrix the {@link TestMatrixArtifact} to be verified.\n@param matrixSource a {@link String} of the source of proctor artifact. For example a path of proctor artifact file.\n@return a {@link ProctorLoadResult} to describe the result of verification. It contains errors of verification and a list of missing test." ]
[ "Want to make arbitrary probability queries? Then this is the method for\nyou. Given the filename, it reads it in and breaks it into documents, and\nthen makes a CRFCliqueTree for each document. you can then ask the clique\ntree for marginals and conditional probabilities of almost anything you\nwant.", "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", "Get all components of a specific class from this scene object and its descendants.\n@param type component type (as returned from getComponentType())\n@return ArrayList of components with the specified class.", "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "Use this API to fetch all the sslparameter resources that are configured on netscaler.", "Get a setted section knowing his title\n\nN.B. this search only into section list and bottom section list.\n@param title is the title of the section\n@return the section with title or null if the section is not founded", "Returns the compact records for all teams in the organization visible to\nthe authorized user.\n\n@param organization Globally unique identifier for the workspace or organization.\n@return Request object", "Lookup the username for the specified User URL.\n\n@param url\nThe user profile URL\n@return The username\n@throws FlickrException", "Check the model for expression values.\n\n@param model the model\n@return the attribute containing an expression" ]
private String fixSpecials(final String inString) { StringBuilder tmp = new StringBuilder(); for (int i = 0; i < inString.length(); i++) { char chr = inString.charAt(i); if (isSpecial(chr)) { tmp.append(this.escape); tmp.append(chr); } else { tmp.append(chr); } } return tmp.toString(); }
[ "Convenience method to escape any character that is special to the regex system.\n\n@param inString\nthe string to fix\n\n@return the fixed string" ]
[ "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text", "Maps a story if it is allowed by the meta filter\n\n@param story\nthe Story\n@param metaFilter\nthe meta filter", "Create a new thread\n\n@param name The name of the thread\n@param runnable The work for the thread to do\n@param daemon Should the thread block JVM shutdown?\n@return The unstarted thread", "Get maximum gray value in the image.\n\n@param fastBitmap Image to be processed.\n@param startX Initial X axis coordinate.\n@param startY Initial Y axis coordinate.\n@param width Width.\n@param height Height.\n@return Maximum gray.", "Build a compact representation of the ModelNode.\n@param node The model\n@return A single line containing the multi lines ModelNode.toString() content.", "Add resources to the tree.\n\n@param parentNode parent tree node\n@param file resource container", "Obtain an OTMConnection for the given persistence broker key", "Returns a reasonable timeout duration for a watch request.\n\n@param expectedTimeoutMillis timeout duration that a user wants to use, in milliseconds\n@param bufferMillis buffer duration which needs to be added, in milliseconds\n@return timeout duration in milliseconds, between the specified {@code bufferMillis} and\nthe {@link #MAX_MILLIS}.", "multi-field string" ]
public URI build() { try { String uriString = String.format("%s%s", baseUri.toASCIIString(), (path.isEmpty() ? "" : path)); if(qParams != null && qParams.size() > 0) { //Add queries together if both exist if(!completeQuery.isEmpty()) { uriString = String.format("%s?%s&%s", uriString, getJoinedQuery(qParams.getParams()), completeQuery); } else { uriString = String.format("%s?%s", uriString, getJoinedQuery(qParams.getParams())); } } else if(!completeQuery.isEmpty()) { uriString = String.format("%s?%s", uriString, completeQuery); } return new URI(uriString); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
[ "Build and return the complete URI containing values\nsuch as the document ID, attachment ID, and query syntax." ]
[ "Issue the database statements to drop the table associated with a dao.\n\n@param dao\nAssociated dao.\n@return The number of statements executed to do so.", "Create an object of the given type using a constructor that matches the\nsupplied arguments and invoke the setters with the supplied variables.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@param vars\nthe named arguments for setters\n@return a new object of the given type, initialized with 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\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception", "For running queries embebed in the report design\n\n@param dr\n@param layoutManager\n@param con\n@param _parameters\n@return\n@throws JRException", "Use this API to unset the properties of responderpolicy resource.\nProperties that need to be unset are specified in args array.", "Read a list of fixed sized blocks from the input stream.\n\n@return List of MapRow instances representing the fixed size blocks", "Allows to access the identifiers of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used, not null.\n@return the set of custom rounding ids, never {@code null}.", "Convert an operation for deployment overlays to be executed on local servers.\nSince this might be called in the case of redeployment of affected deployments, we need to take into account\nthe composite op resulting from such a transformation\n@see AffectedDeploymentOverlay#redeployLinksAndTransformOperationForDomain\n@param operation\n@param host\n@return", "Use this API to fetch statistics of lbvserver_stats resource of given name .", "Use this API to fetch aaauser_binding resource of given name ." ]
public static synchronized void registerDao(ConnectionSource connectionSource, Dao<?, ?> dao) { if (connectionSource == null) { throw new IllegalArgumentException("connectionSource argument cannot be null"); } addDaoToClassMap(new ClassConnectionSource(connectionSource, dao.getDataClass()), dao); }
[ "Register the DAO with the cache. This will allow folks to build a DAO externally and then register so it can be\nused internally as necessary.\n\n<p>\n<b>NOTE:</b> By default this registers the DAO to be associated with the class that it uses. If you need to\nregister multiple dao's that use different {@link DatabaseTableConfig}s then you should use\n{@link #registerDaoWithTableConfig(ConnectionSource, Dao)}.\n</p>\n\n<p>\n<b>NOTE:</b> You should maybe use the {@link DatabaseTable#daoClass()} and have the DaoManager construct the DAO\nif possible.\n</p>" ]
[ "Throws an IllegalStateException when the given value is null.\n@return the value", "Use this API to fetch all the responderpolicy resources that are configured on netscaler.", "Filter events.\n\n@param events the events\n@return the list of filtered events", "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", "Get the active overrides with parameters and the active server group for a client\n\n@param profileID Id of profile to get configuration for\n@param clientUUID Client Id to export configuration\n@return SingleProfileBackup containing active overrides and active server group\n@throws Exception exception", "crops the srcBmp with the canvasView bounds and returns the cropped bitmap", "Generates required number of placeholders as string.\n\nExample: {@code numberOfPlaceholders == 1, result == \"?\"},\n{@code numberOfPlaceholders == 2, result == \"?,?\"}.\n\n@param numberOfPlaceholders required amount of placeholders, should be {@code > 0}.\n@return string with placeholders.", "Extract resource type from a resource ID string.\n@param id the resource ID string\n@return the resource type", "Handles an incoming request message.\nAn incoming request message is a message initiated by a node or the controller.\n@param incomingMessage the incoming message to process." ]
public static base_response export(nitro_service client, application resource) throws Exception { application exportresource = new application(); exportresource.appname = resource.appname; exportresource.apptemplatefilename = resource.apptemplatefilename; exportresource.deploymentfilename = resource.deploymentfilename; return exportresource.perform_operation(client,"export"); }
[ "Use this API to export application." ]
[ "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement the packet which reported the device’s disappearance", "Checks, if the end type is valid for the set pattern type.\n@return a flag, indicating if the end type is valid for the pattern type.", "Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name .", "Verifies application name. Avoids characters that Zookeeper does not like in nodes & Hadoop\ndoes not like in HDFS paths.\n\n@param name Application name\n@throws IllegalArgumentException If name contains illegal characters", "Retrieve the fixed data offset for a specific field.\n\n@param type field type\n@return offset", "Return the list of module ancestors\n\n@param moduleName\n@param moduleVersion\n@return List<Dependency>\n@throws GrapesCommunicationException", "Use this API to delete sslcertkey resources of given names.", "Adds a column to this table definition.\n\n@param columnDef The new column", "Given a rebalance-task info, convert it into the protobuf equivalent\n\n@param stealInfo Rebalance task info\n@return Protobuf equivalent of the same" ]
public Weld addExtension(Extension extension) { extensions.add(new MetadataImpl<Extension>(extension, SYNTHETIC_LOCATION_PREFIX + extension.getClass().getName())); return this; }
[ "Add an extension to the set of extensions.\n\n@param extension an extension" ]
[ "Removes CRs but returns LFs", "Mark root of this task task group depends on the given TaskItem.\nThis ensure this task group's root get picked for execution only after the completion\nof invocation of provided TaskItem.\n\n@param dependencyTaskItem the task item that this task group depends on\n@return the key of the dependency", "This method is called when the locale of the parent file is updated.\nIt resets the locale specific date attributes to the default values\nfor the new locale.\n\n@param locale new locale", "Replace the last element of an address with a static path element.\n\n@param element the path element\n@return the operation address transformer", "Initializes data structures", "Restore authentications from persisted state.\n\n@param savedAuthorization saved authorizations", "Increases the maximum number of columns in the matrix.\n@param desiredColumns Desired number of columns.\n@param preserveValue If the array needs to be expanded should it copy the previous values?", "Read a Synchro time from an input stream.\n\n@param is input stream\n@return Date instance", "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler." ]
public void stop() { instanceLock.writeLock().lock(); try { for (final NamespaceChangeStreamListener streamer : nsStreamers.values()) { streamer.stop(); } } finally { instanceLock.writeLock().unlock(); } }
[ "Stops all streams." ]
[ "Handle a value change.\n@param propertyId the column in which the value has changed.", "Only call with the read lock held", "Matches the styles and adjusts the size. This needs to be\ncalled after the input is added to the DOM, so we do it in\nonLoad.", "Commit all changes if there are uncommitted changes.\n\n@param msg the commit message.\n@throws GitAPIException", "Serialize a content into a targeted file, checking that the parent directory exists.\n\n@param folder File\n@param content String\n@param fileName String", "Make sure that we have some reasonable defaults available. These would typically be provided by the rulesets\nin the real world.", "Split an artifact gavc to get the groupId\n@param gavc\n@return String", "Return the NTSC gray level of an RGB value.\n@param rgb1 the input pixel\n@return the gray level (0-255)", "Creates the server bootstrap." ]
public Jar setJarPrefix(Path file) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Really executable cannot be set after entries are added."); if (file != null && jarPrefixStr != null) throw new IllegalStateException("A prefix has already been set (" + jarPrefixStr + ")"); this.jarPrefixFile = file; return this; }
[ "Sets a file whose contents will be prepended to the JAR file's data.\n\n@param file the prefix file, or {@code null} for none.\n@return {@code this}" ]
[ "Function to filter files based on defined rules.", "Parse the JSON string and return the object. The string is expected to be the JSON print data from the\nclient.\n\n@param spec the JSON formatted string.\n@return The encapsulated JSON object", "Merges information from the resource root into this resource root\n\n@param additionalResourceRoot The root to merge", "Assign float value within allowed range of [0,infinity) to initializeOnly SFFloat field named spacing.\n@param newValue", "This method is called to format a relation list.\n\n@param value relation list instance\n@return formatted relation list", "Prepare a parallel HTTP HEAD Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Utility function that creates directory.\n\n@param dir Directory path\n@return File object of directory.", "Checks that all the qualifiers in the set requiredQualifiers are in the set of qualifiers. Qualifier equality rules for\nannotation members are followed.\n\n@param requiredQualifiers The required qualifiers\n@param qualifiers The set of qualifiers to check\n@return True if all matches, false otherwise", "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" ]
public synchronized void cleanWaitTaskQueue() { for (ParallelTask task : waitQ) { task.setState(ParallelTaskState.COMPLETED_WITH_ERROR); task.getTaskErrorMetas().add( new TaskErrorMeta(TaskErrorType.USER_CANCELED, "NA")); logger.info( "task {} removed from wait q. This task has been marked as USER CANCELED.", task.getTaskId()); } waitQ.clear(); }
[ "Clean wait task queue." ]
[ "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}", "read CustomInfo list from table.\n\n@param eventId the event id\n@return the map", "Set keyboard done listener to detect when the user click \"DONE\" on his keyboard\n\n@param listener IntlPhoneInputListener", "Get a bean value from the context.\n\n@param name bean name\n@return bean value or null", "Updates the existing cluster such that we remove partitions mentioned\nfrom the stealer node and add them to the donor node\n\n@param currentCluster Existing cluster metadata. Both stealer and donor\nnode should already exist in this metadata\n@param stealerNodeId Id of node for which we are stealing the partitions\n@param donatedPartitions List of partitions we are moving\n@return Updated cluster metadata", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Use this API to unset the properties of clusterinstance resources.\nProperties that need to be unset are specified in args array.", "Creates a new DMatrixRMaj around the provided data. The data must encode\na row-major matrix. Any modification to the returned matrix will modify the\nprovided data.\n\n@param numRows Number of rows in the matrix.\n@param numCols Number of columns in the matrix.\n@param data Data that is being wrapped. Referenced Saved.\n@return A matrix which references the provided data internally.", "Use this API to disable Interface resources of given names." ]
public static String fill(int color) { final String colorCode = Integer.toHexString(color & 0xFFFFFF); // Strip alpha return FILTER_FILL + "(" + colorCode + ")"; }
[ "This filter permit to return an image sized exactly as requested wherever is its ratio by\nfilling with chosen color the missing parts. Usually used with \"fit-in\" or \"adaptive-fit-in\"\n\n@param color integer representation of color." ]
[ "Adds special accessors for private constants so that inner classes can retrieve them.", "Get the collection of the server groups\n\n@return Collection of active server groups", "Write exceptions into the format used by MSPDI files from\nProject 2007 onwards.\n\n@param calendar parent calendar\n@param exceptions list of exceptions", "Split string of comma-delimited ints into an a int array\n\n@param str\n@return\n@throws IllegalArgumentException", "Read the leaf tasks for an individual WBS node.\n\n@param parent parent task\n@param id first task ID", "Resets the resend counter and possibly resets the\nnode stage to DONE when previous initialization was\ncomplete.", "Create a hazard curve from given times and given discount factors using default interpolation and extrapolation methods.\n\n@param name The name of this hazard curve.\n@param times Array of times as doubles.\n@param givenSurvivalProbabilities Array of corresponding survival probabilities.\n@return A new discount factor object.", "Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any\nmember, we will always attempt to continue execution and collect as many results as possible.\n\n@param execSvc\n@param members\n@param callable\n@return", "Creates a tar file entry with defaults parameters.\n@param fileName the entry name\n@return file entry with reasonable defaults" ]
public void addNotIn(String attribute, Query subQuery) { // PAW // addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getAlias())); addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getUserAlias(attribute))); }
[ "NOT IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery" ]
[ "Sets the header of the collection component.", "Adds the index input to list.\n\n@param name the name\n@param in the in\n@param postingsFormatName the postings format name\n@return the string\n@throws IOException Signals that an I/O exception has occurred.", "Adds the file to the tar archive represented by output stream. It's caller's responsibility to close output stream\nproperly.\n\n@param out target archive.\n@param source file to be added.\n@param fileSize size of the file (which is known in most cases).\n@throws IOException in case of any issues with underlying store.", "Answer the real ClassDescriptor for anObj\nie. aCld may be an Interface of anObj, so the cld for anObj is returned", "Uses getResult to get the final Result and executes it\n\n@throws ConfigurationException\nIf not result can be found with the returned code", "generate a message for loglevel ERROR\n\n@param pObject the message Object", "Add the list with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The list of all bundles to add.", "Helper method for getting the current parameter values from a list of annotated parameters.\n\n@param parameters The list of annotated parameter to look up\n@param manager The Bean manager\n@return The object array of looked up values", "Removes the task from the specified project. The task will still exist\nin the system, but it will not be in the project anymore.\n\nReturns an empty data block.\n\n@param task The task to remove from a project.\n@return Request object" ]
public List<Widget> getAllViews() { List<Widget> views = new ArrayList<>(); for (Widget child: mContent.getChildren()) { Widget item = ((ListItemHostWidget) child).getGuest(); if (item != null) { views.add(item); } } return views; }
[ "Get all views from the list content\n@return list of views currently visible" ]
[ "Check all abstract methods are declared by the decorated types.\n\n@param type\n@param beanManager\n@param delegateType\n@throws DefinitionException If any of the abstract methods is not declared by the decorated types", "Returns a new AWT BufferedImage from this image.\n\n@param type the type of buffered image to create, if not specified then defaults to the current image type\n@return a new, non-shared, BufferedImage with the same data as this Image.", "The file we are working with has a byte order mark. Skip this and try again to read the file.\n\n@param stream schedule data\n@param length length of the byte order mark\n@param charset charset indicated by byte order mark\n@return ProjectFile instance", "Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler.\n@param fromObservable the source observable\n@param toValue the value to emit to the observer\n@param <T> the type of the value to emit\n@return an observable emitting the specified value", "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "Retrieve the jdbc type for the field descriptor that is related\nto this argument.", "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Adds a new floating point variable. If one already has the same name it is written over.\n@param value Value of the number\n@param name Name in code", "Decides what the Map Web provider should be used and generates a builder for it.\n\n@return The AirMapViewBuilder for the selected Map Web provider." ]
public void setValue(Vector3f scale) { mX = scale.x; mY = scale.y; mZ = scale.z; }
[ "Sets the scale vector of the keyframe." ]
[ "Waits for the timeout duration until the url responds with correct status code\n\n@param routeUrl URL to check (usually a route one)\n@param timeout Max timeout value to await for route readiness.\nIf not set, default timeout value is set to 5.\n@param timeoutUnit TimeUnit used for timeout duration.\nIf not set, Minutes is used as default TimeUnit.\n@param repetitions How many times in a row the route must respond successfully to be considered available.\n@param statusCodes list of status code that might return that service is up and running.\nIt is used as OR, so if one returns true, then the route is considered valid.\nIf not set, then only 200 status code is used.", "Check, if all values used for calculating the series for a specific pattern are valid.\n@return <code>null</code> if the pattern is valid, a suitable error message otherwise.", "Use this API to fetch a rewriteglobal_binding resource .", "Returns true if the context has access to any given permissions.", "Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{@link Type#getInternalName() getInternalName}).\n@param name\nthe method's name.\n@param desc\nthe method's descriptor (see {@link Type Type}).\n@param itf\nif the method's owner class is an interface.", "Recursively read the WBS structure from a PEP file.\n\n@param parent parent container for tasks\n@param id initial WBS ID", "Checks to see if a standalone server is running.\n\n@param client the client used to communicate with the server\n\n@return {@code true} if the server is running, otherwise {@code false}", "Creates the style definition used for a rectangle element based on the given properties of the rectangle\n@param x The X coordinate of the rectangle.\n@param y The Y coordinate of the rectangle.\n@param width The width of the rectangle.\n@param height The height of the rectangle.\n@param stroke Should there be a stroke around?\n@param fill Should the rectangle be filled?\n@return The resulting element style definition.", "Sets the elements of this vector to uniformly distributed random values\nin a specified range, using a supplied random number generator.\n\n@param lower\nlower random value (inclusive)\n@param upper\nupper random value (exclusive)\n@param generator\nrandom number generator" ]
public ProxyAuthentication getProxyAuthentication() { // convert authentication to layerAuthentication so we only use one // TODO Remove when removing deprecated authentication field. if (layerAuthentication == null && authentication != null) { layerAuthentication = new LayerAuthentication(); layerAuthentication.setAuthenticationMethod(LayerAuthenticationMethod.valueOf(authentication .getAuthenticationMethod().name())); layerAuthentication.setPassword(authentication.getPassword()); layerAuthentication.setPasswordKey(authentication.getPasswordKey()); layerAuthentication.setRealm(authentication.getRealm()); layerAuthentication.setUser(authentication.getUser()); layerAuthentication.setUserKey(authentication.getUserKey()); } // TODO Remove when removing deprecated authentication field. return layerAuthentication; }
[ "Get the authentication info for this layer.\n\n@return authentication info." ]
[ "Assembles an avro format string of single store config from store\nproperties\n\n@param props Store properties\n@return String in avro format that contains single store configs", "Use this API to add sslcertkey resources.", "Generic version of getting value by key from the JobContext of current thread\n@param key the key\n@param clz the val class\n@param <T> the val type\n@return the value", "Retrieve a single field value.\n\n@param id parent entity ID\n@param type field type\n@param fixedData fixed data block\n@param varData var data block\n@return field value", "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data", "Get the bean if it exists in the contexts.\n\n@return An instance of the bean\n@throws ContextNotActiveException if the context is not active\n@see javax.enterprise.context.spi.Context#get(BaseBean, boolean)", "Provides a reverse view on the given list which is especially useful to traverse a list backwards in a for-each\nloop. The list itself is not modified by calling this method.\n\n@param list\nthe list whose elements should be traversed in reverse. May not be <code>null</code>.\n@return a list with the same elements as the given list, in reverse", "Read an element which contains only a single list attribute of a given\ntype.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@param type the value type class\n@param <T> the value type\n@return the value list\n@throws javax.xml.stream.XMLStreamException if an error occurs or if the\nelement does not contain the specified attribute, contains other\nattributes, or contains child elements.", "Returns the formula for the percentage\n@param group\n@param type\n@return" ]
public static Class<?> loadClass(String className, ClassLoader cl) { try { return Class.forName(className, false, cl); } catch(ClassNotFoundException e) { throw new IllegalArgumentException(e); } }
[ "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object" ]
[ "Attaches an arbitrary object to this context only if the object was not already attached. If a value has already\nbeen attached with the key provided, the current value associated with the key is returned.\n\n@param key they attachment key used to ensure uniqueness and used for retrieval of the value.\n@param value the value to store.\n@param <V> the value type of the attachment.\n\n@return the previous value associated with the key or {@code null} if there was no previous value.", "Returns package name of a class\n\n@param clazz\nthe class\n@return\nthe package name of the class", "Starts recursive insert on all insert objects object graph", "Convert a color to an angle.\n\n@param color The RGB value of the color to \"find\" on the color wheel.\n\n@return The angle (in rad) the \"normalized\" color is displayed on the\ncolor wheel.", "the absolute and relative calls are the trickiest parts. We have to\nmove across cursor boundaries potentially.\n\na + row value indexes from beginning of resultset\na - row value indexes from the end of th resulset.\n\nCalling absolute(1) is the same as calling first().\nCalling absolute(-1) is the same as calling last().", "Determines the offset code of a forward contract from a schedule. Rounds the average period length to full months.\n\n@param schedule The schedule.\n@return The offset code as String", "Iterate and insert each of the elements of the Collection.\n\n@param objects\nThe objects to insert\n@param outIdentifier\nIdentifier to lookup the returned objects\n@param returnObject\nboolean to specify whether the inserted Collection is part of the ExecutionResults\n@param entryPoint\nOptional EntryPoint for the insertions\n@return", "Generates a set of HTML files that contain data about the outcome of\nthe specified test suites.\n@param suites Data about the test runs.\n@param outputDirectoryName The directory in which to create the report.", "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" ]
public static vpnvserver_vpnsessionpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_vpnsessionpolicy_binding obj = new vpnvserver_vpnsessionpolicy_binding(); obj.set_name(name); vpnvserver_vpnsessionpolicy_binding response[] = (vpnvserver_vpnsessionpolicy_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch vpnvserver_vpnsessionpolicy_binding resources of given name ." ]
[ "Returns the real key object.", "Get the replication partitions list for the given partition.\n\n@param index Partition id for which we are generating the preference list\n@return The List of partitionId where this partition is replicated.", "Process a device update once it has been received. Track it as the most recent update from its address,\nand notify any registered listeners, including master listeners if it results in changes to tracked state,\nsuch as the current master player and tempo. Also handles the Baroque dance of handing off the tempo master\nrole from or to another device.", "Print duration in thousandths of minutes.\n\n@param duration Duration instance\n@return duration in thousandths of minutes", "Wrapped version of standard jdbc executeUpdate Pays attention to DB\nlocked exception and waits up to 1s\n\n@param query SQL query to execute\n@throws Exception - will throw an exception if we can never get a lock", "return the list of FormInputs that match this element\n\n@param element\n@return", "Process an individual UDF.\n\n@param udf UDF definition", "Constraint that ensures that the proxy-prefetching-limit has a valid value.\n\n@param def The descriptor (class, reference, collection)\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Removes a metadata provider so it will no longer be consulted to provide metadata for tracks loaded from any\nmedia.\n\n@param provider the metadata provider to remove." ]
private Bpmn2Resource unmarshall(JsonParser parser, String preProcessingData) throws IOException { try { parser.nextToken(); // open the object ResourceSet rSet = new ResourceSetImpl(); rSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("bpmn2", new JBPMBpmn2ResourceFactoryImpl()); Bpmn2Resource bpmn2 = (Bpmn2Resource) rSet.createResource(URI.createURI("virtual.bpmn2")); rSet.getResources().add(bpmn2); _currentResource = bpmn2; if (preProcessingData == null || preProcessingData.length() < 1) { preProcessingData = "ReadOnlyService"; } // do the unmarshalling now: Definitions def = (Definitions) unmarshallItem(parser, preProcessingData); def.setExporter(exporterName); def.setExporterVersion(exporterVersion); revisitUserTasks(def); revisitServiceTasks(def); revisitMessages(def); revisitCatchEvents(def); revisitThrowEvents(def); revisitLanes(def); revisitSubProcessItemDefs(def); revisitArtifacts(def); revisitGroups(def); revisitTaskAssociations(def); revisitTaskIoSpecification(def); revisitSendReceiveTasks(def); reconnectFlows(); revisitGateways(def); revisitCatchEventsConvertToBoundary(def); revisitBoundaryEventsPositions(def); createDiagram(def); updateIDs(def); revisitDataObjects(def); revisitAssociationsIoSpec(def); revisitWsdlImports(def); revisitMultiInstanceTasks(def); addSimulation(def); revisitItemDefinitions(def); revisitProcessDoc(def); revisitDI(def); revisitSignalRef(def); orderDiagramElements(def); // return def; _currentResource.getContents().add(def); return _currentResource; } catch (Exception e) { _logger.error(e.getMessage()); return _currentResource; } finally { parser.close(); _objMap.clear(); _idMap.clear(); _outgoingFlows.clear(); _sequenceFlowTargets.clear(); _bounds.clear(); _currentResource = null; } }
[ "Start unmarshalling using the parser.\n@param parser\n@param preProcessingData\n@return the root element of a bpmn2 document.\n@throws java.io.IOException" ]
[ "Parses a string that contains single fat client config string in avro\nformat\n\n@param configAvro Input string of avro format, that contains config for\nmultiple stores\n@return Properties of single fat client config", "Use this API to unset the properties of responderpolicy resource.\nProperties that need to be unset are specified in args array.", "Send a sync command to all registered listeners.\n\n@param command the byte which identifies the type of sync command we received", "Constructs a full capability name from a static base name and a dynamic element.\n\n@param baseName the base name. Cannot be {@code null}\n@param dynamicNameElement the dynamic portion of the name. Cannot be {@code null}\n@return the full capability name. Will not return {@code null}", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "For creating regular columns\n@return", "Use this API to delete clusterinstance of given name.", "Generates the points for an arc based on two bearings from a centre point\nand a radius.\n\n@param center The LatLong point of the center.\n@param startBearing North is 0 degrees, East is 90 degrees, etc.\n@param endBearing North is 0 degrees, East is 90 degrees, etc.\n@param radius In metres\n@return An array of LatLong points in an MVC array representing the arc.\nUsing this method directly you will need to push the centre point onto\nthe array in order to close it, if desired.", "Checks if class package match provided list of action packages\n\n@param classPackageName\nname of class package\n@return true if class package is on the {@link #actionPackages} list" ]
public void removeAt(int index) { synchronized (mLock) { if (mOriginalValues != null) { mOriginalValues.remove(index); } else { mObjects.remove(index); } } if (mNotifyOnChange) notifyDataSetChanged(); }
[ "Removes the specified object in index from the array.\n\n@param index The index to remove." ]
[ "Returns the total number of weights associated with this classifier.\n\n@return number of weights", "judge a->b is ordered clockwise\n\n@param center\n@param a\n@param b\n@return", "If the not a bitmap itself, this will read the file's meta data.\n\n@param resources {@link android.content.Context#getResources()}\n@return Point where x = width and y = height", "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", "Set the face to be culled\n\n@param cullFace\n{@code GVRCullFaceEnum.Back} Tells Graphics API to discard\nback faces, {@code GVRCullFaceEnum.Front} Tells Graphics API\nto discard front faces, {@code GVRCullFaceEnum.None} Tells\nGraphics API to not discard any face\n@param passIndex\nThe rendering pass to set cull face state", "When an alias for a field is added, index it here to allow lookup by alias and type.\n\n@param type field type\n@param alias field alias", "Use this API to fetch all the vpnclientlessaccesspolicy resources that are configured on netscaler.", "Decomposes a submatrix. The results are written to the submatrix\nand to its internal matrix L.\n\n@param mat A matrix which has a submatrix that needs to be inverted\n@param indexStart the first index of the submatrix\n@param n The width of the submatrix that is to be inverted.\n@return True if it was able to finish the decomposition.", "Returns a valid DisplayMetrics object\n\n@param context valid context\n@return DisplayMetrics object" ]
public void setCharTranslator(CharacterTranslator charTranslator) { if(charTranslator!=null){ this.charTranslator = charTranslator; this.htmlElementTranslator = null; this.targetTranslator = null; } }
[ "Sets the character translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator" ]
[ "Sanity-check a new non-beat update, make sure we are still interpolating a sensible position, and correct\nas needed.\n\n@param lastTrackUpdate the most recent digested update received from a player\n@param newDeviceUpdate a new status update from the player\n@param beatGrid the beat grid for the track that is playing, in case we have jumped\n\n@return the playback position we believe that player has reached at that point in time", "Returns the bit at the specified index.\n@param index The index of the bit to look-up (0 is the least-significant bit).\n@return A boolean indicating whether the bit is set or not.\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Create a WebMBeanAdaptor for a specified MBean name.\n@param mBeanName the MBean name (can be URL-encoded).\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the created WebMBeanAdaptor.\n@throws JMException Java Management Exception\n@throws UnsupportedEncodingException if the encoding is not supported.", "Helper method to set a value in the internal header list.\n\n@param headers the headers to set the value in\n@param name the name to set\n@param value the value to set", "Convert an Object to a Time, without an Exception", "Internal method which performs the authenticated request by preparing the auth request with\nthe provided auth info and request.", "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", "Parses the list of query items for the query facet.\n@param queryFacetObject JSON object representing the node with the query facet.\n@return list of query options\n@throws JSONException if the list cannot be parsed.", "Gets the invalid message.\n\n@param key the key\n@return the invalid message" ]
public Credentials toGrgit() { if (username != null && password != null) { return new Credentials(username, password); } else { return null; } }
[ "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format." ]
[ "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.", "Transfer the ownership of an application to another user.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@param to Username of the person to transfer the app to. This is usually in the form of \"[email protected]\".", "Use this API to add nsacl6.", "If the variable is a local temporary variable it will be resized so that the operation can complete. If not\ntemporary then it will not be reshaped\n@param mat Variable containing the matrix\n@param numRows Desired number of rows\n@param numCols Desired number of columns", "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer", "Attempt to detect the current platform.\n\n@return The current platform.\n\n@throws UnsupportedPlatformException if the platform cannot be detected.", "Make a comparison where the operator is specified by the caller. It is up to the caller to specify an appropriate\noperator for the database and that it be formatted correctly.", "Appends the accumulated words to the resulting words. Trailing whitespace is removed because of the\npostprocessing that inserts custom whitespace\n\n@param currentWords is the {@link StringBuilder} of the accumulated words\n@param formattedWords is the list that is being appended to", "Validates the return value\n\n@param instance The instance to validate" ]
public void addFile(File file) { String name = "file"; files.put(normalizeDuplicateName(name), file); }
[ "Adds a file to your assembly but automatically generates the field name of the file.\n\n@param file {@link File} the file to be uploaded." ]
[ "Gets a list of any comments on this file.\n\n@return a list of comments on this file.", "Finish the work of building and sending a protocol packet.\n\n@param kind the type of packet to create and send\n@param payload the content which will follow our device name in the packet\n@param destination where the packet should be sent\n@param port the port to which the packet should be sent\n\n@throws IOException if there is a problem sending the packet", "Tokenizes lookup fields and returns all matching buckets in the\nindex.", "Lock a file lazily, if a value that should be written to the file has changed.\n@param propertyId the table column in which the value has changed (e.g., KEY, TRANSLATION, ...)\n@throws CmsException thrown if locking fails.", "Returns true if the information in this link should take\nprecedence over the information in the other link.", "Deletes a specific client id for a profile\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@return returns the table of the remaining clients or an exception if deletion failed for some reason\n@throws Exception", "Process UDFs for a specific object.\n\n@param mpxj field container\n@param udfs UDF values", "Return the \"common\" configuration set name. By default it is \"common\"\n@return the \"common\" conf set name", "Sets the value associated with the given key; if the the key is one\nof the hashable keys, throws an exception.\n\n@throws HashableCoreMapException Attempting to set the value for an\nimmutable, hashable key." ]
public static String post(String url, Map<String, String> customHeaders, Map<String, String> params) throws IOException, HTTPException { LOGGER.log(Level.INFO, "Sending POST request to the url {0}", url); HttpPost httpPost = new HttpPost(url); populateHeaders(httpPost, customHeaders); if (params != null && params.size() > 0) { List<NameValuePair> nameValuePairs = new ArrayList<>(); for (Map.Entry<String, String> param : params.entrySet()) { nameValuePairs.add(new BasicNameValuePair(param.getKey(), param.getValue())); } httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); } HttpClient httpClient = HttpClientBuilder.create().build(); HttpResponse httpResponse = httpClient.execute(httpPost); int statusCode = httpResponse.getStatusLine().getStatusCode(); if (isErrorStatus(statusCode)) { String jsonErrorResponse = EntityUtils.toString(httpResponse.getEntity(), StandardCharsets.UTF_8); throw new HTTPException(statusCode, httpResponse.getStatusLine().getReasonPhrase(), jsonErrorResponse); } return EntityUtils.toString(httpResponse.getEntity(), StandardCharsets.UTF_8); }
[ "Send post request.\n\n@param url the url\n@param customHeaders the customHeaders\n@param params the params\n@return the string\n@throws IOException the io exception" ]
[ "Collect the total times measured by all known named timers of the given\nname. This is useful to add up times that were collected across separate\nthreads.\n\n@param timerName\n@return timer", "Check if we still need more nodes from the given zone and reduce the\nzoneReplicationFactor count accordingly.\n\n@param requiredRepFactor\n@param zoneId\n@return", "Merges the item from the resultLocaleValues into the corresponding item of the localeValues.\n@param item the item to merge\n@param localeValues the values where the item gets merged into\n@param resultLocaleValues the values where the item to merge is read from\n@return the modified localeValues with the merged item", "Adds an ORDER BY item with a direction indicator.\n\n@param name\nName of the column by which to sort.\n@param ascending\nIf true, specifies the direction \"asc\", otherwise, specifies\nthe direction \"desc\".", "Check that each emitted notification is properly described by its source.", "Determines whether there is an element of the collection that evaluates to true\nfor the predicate.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return\tTrue if there is an element of the collection that evaluates to true\nfor the predicate, otherwise false.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Specifies the container object class to be instantiated\n\n@param containerObjectClass\ncontainer object class to be instantiated\n\n@return the current builder instance", "get the property source method corresponding to given destination\nproperty\n\n@param sourceObject\n@param destinationObject\n@param destinationProperty\n@return", "Assign FK value to target object by reading PK values of referenced object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object.\n@param referencedObject referenced object or proxy\n@param insert Show if \"linking\" is done while insert or update." ]
private void validationRelations(Task task) { List<Relation> predecessors = task.getPredecessors(); if (!predecessors.isEmpty()) { ArrayList<Relation> invalid = new ArrayList<Relation>(); for (Relation relation : predecessors) { Task sourceTask = relation.getSourceTask(); Task targetTask = relation.getTargetTask(); String sourceOutlineNumber = sourceTask.getOutlineNumber(); String targetOutlineNumber = targetTask.getOutlineNumber(); if (sourceOutlineNumber != null && targetOutlineNumber != null && sourceOutlineNumber.startsWith(targetOutlineNumber + '.')) { invalid.add(relation); } } for (Relation relation : invalid) { relation.getSourceTask().removePredecessor(relation.getTargetTask(), relation.getType(), relation.getLag()); } } }
[ "This method validates all relationships for a task, removing\nany which have been incorrectly read from the MPP file and\npoint to a parent task.\n\n@param task task under test" ]
[ "Configure file logging and stop console logging.\n\n@param filename\nLog to this file.", "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "Compares two double values up to some delta.\n\n@param a\n@param b\n@param delta\n@return The value 0 if a equals b, a value greater than 0 if if a > b, and a value less than 0 if a < b.", "Returns the invocation handler object of the given proxy object.\n\n@param obj The object\n@return The invocation handler if the object is an OJB proxy, or <code>null</code>\notherwise", "For every String key, it registers the object as a parameter to make it available\nin the report.\n\n@param jd\n@param _parameters", "Get a date range that correctly handles the case where the end time\nis midnight. In this instance the end time should be the start of the\nnext day.\n\n@param hours calendar hours\n@param start start date\n@param end end date", "Computes the mean or average of all the elements.\n\n@return mean", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "This method populates the task model from data read from an MPX file.\n\n@param record data read from an MPX file\n@param isText flag indicating whether the textual or numeric data is being supplied" ]
public static void checkArrayLength(String parameterName, int actualLength, int expectedLength) { if (actualLength != expectedLength) { throw Exceptions.IllegalArgument( "Array %s should have %d elements, not %d", parameterName, expectedLength, actualLength); } }
[ "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" ]
[ "Runs the server.", "Use this API to add locationfile.", "Set sizes to override the generated URLs of the different sizes.\n\n@param sizes\n@see com.flickr4java.flickr.photos.PhotosInterface#getSizes(String)", "low level http operations", "Update list of sorted services by copying it from the array and making it unmodifiable.", "Unpack report face to given directory.\n\n@param outputDirectory the output directory to unpack face.\n@throws IOException if any occurs.", "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove", "Add a property.", "Skips variable length blocks up to and including next zero length block." ]
private void writeCalendars(Project project) { // // Create the new MSPDI calendar list // Project.Calendars calendars = m_factory.createProjectCalendars(); project.setCalendars(calendars); List<Project.Calendars.Calendar> calendar = calendars.getCalendar(); // // Process each calendar in turn // for (ProjectCalendar cal : m_projectFile.getCalendars()) { calendar.add(writeCalendar(cal)); } }
[ "This method writes calendar data to an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
[ "Read an int from an input stream.\n\n@param is input stream\n@return int value", "Pass the activity you use the drawer in ;)\nThis is required if you want to set any values by resource\n\n@param activity\n@return", "Requests Change notifications of feed type normal.\n\n@return {@link ChangesResult} encapsulating the normal feed changes", "Checks whether the compilation has been canceled and reports the given progress to the compiler progress.", "Retrieve and validate the zone id value from the REST request.\n\"X-VOLD-Zone-Id\" is the zone id header.\n\n@return valid zone id or -1 if there is no/invalid zone id", "Submit a operations. Throw a run time exception if the operations is\nalready submitted\n\n@param operation The asynchronous operations to submit\n@param requestId Id of the request", "Clears the handler hierarchy.", "Read the header data for a single file.\n\n@param header header data\n@return SynchroTable instance", "Builds IMAP envelope String from pre-parsed data." ]
public Iterable<BoxRetentionPolicyAssignment.Info> getEnterpriseAssignments(int limit, String ... fields) { return this.getAssignments(BoxRetentionPolicyAssignment.TYPE_ENTERPRISE, limit, fields); }
[ "Returns iterable with all enterprise assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all enterprise assignments." ]
[ "Find the current active layout.\n\n@param phoenixProject phoenix project data\n@return current active layout", "Toggles a style name on a ui object\n\n@param uiObject Object to toggle style on\n@param toggleStyle whether or not to toggle the style name on the object\n@param styleName Style name", "Given a binary expression corresponding to an assignment, will check that the type of the RHS matches one\nof the possible setters and if not, throw a type checking error.\n@param expression the assignment expression\n@param leftExpression left expression of the assignment\n@param rightExpression right expression of the assignment\n@param setterInfo possible setters\n@return true if type checking passed", "Returns an array of non-empty ids from the given list of ids or values.\n\n@param idsOrValues\nlist of ids and/or values\n@return array of non-empty ids", "Factory method to create EnumStringConverter\n\n@param <E>\nenum type inferred from enumType parameter\n@param enumType\nparticular enum class\n@return instance of EnumConverter", "Gets a method based on data in the override_db table\n\n@param overrideId ID of override\n@return Method found", "Record a prepare operation timeout.\n\n@param failedOperation the prepared operation", "Returns the screen width in pixels\n\n@param context is the context to get the resources\n@return the screen width in pixels", "Provides a collection of all the nodes in the tree\nusing a depth first traversal.\n\n@return the list of (depth-first) ordered nodes" ]
private void fireTreeStructureChanged() { // Guaranteed to return a non-null array Object[] listeners = m_listenerList.getListenerList(); TreeModelEvent e = null; // Process the listeners last to first, notifying // those that are interested in this event for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == TreeModelListener.class) { // Lazily create the event: if (e == null) { e = new TreeModelEvent(getRoot(), new Object[] { getRoot() }, null, null); } ((TreeModelListener) listeners[i + 1]).treeStructureChanged(e); } } }
[ "Notify listeners that the tree structure has changed." ]
[ "Writes the value key to the serialized characteristic\n\n@param builder The JSON builder to add the value to\n@param value The value to add", "Returns the default privacy level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@throws FlickrException\n@return privacyLevel", "Associate the batched Children with their owner object.\nLoop over owners", "Un-serialize a Json into BuildInfo\n@param buildInfo String\n@return Map<String,String>\n@throws IOException", "Sorts the fields.", "Send an error to the client with a message.\n\n@param httpServletResponse the response to send the error to.\n@param message the message to send\n@param code the error code", "Answers the ClassDescriptor referenced by 'super' ReferenceDescriptor.\n@return ClassDescriptor or null", "Adds the given value to the list of values that should still be\nserialized. The given RDF resource will be used as a subject.\n\n@param value\nthe value to be serialized\n@param resource\nthe RDF resource that is used as a subject for serialization", "read all brokers in the zookeeper\n\n@param zkClient zookeeper client\n@return all brokers" ]
public void growMaxColumns( int desiredColumns , boolean preserveValue ) { if( col_idx.length < desiredColumns+1 ) { int[] c = new int[ desiredColumns+1 ]; if( preserveValue ) System.arraycopy(col_idx,0,c,0,col_idx.length); col_idx = c; } }
[ "Increases the maximum number of columns in the matrix.\n@param desiredColumns Desired number of columns.\n@param preserveValue If the array needs to be expanded should it copy the previous values?" ]
[ "The document field must not exist in the list provided\n@param rhs The argument - one or more values\n@return PredicateExpression: $nin rhs", "Calls the specified function with the specified arguments. This is used for v2 response overrides\n\n@param className name of class\n@param methodName name of method\n@param pluginArgs plugin arguments\n@param args arguments to supply to function\n@throws Exception exception", "Mapping message info.\n\n@param messageInfo the message info\n@return the message info type", "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", "Read a block of data from the FastTrack file and determine if\nit contains a table definition, or columns.\n\n@param blockIndex index of the current block\n@param startIndex start index of the block in the file\n@param blockLength block length", "Adds a perspective camera constructed from the designated\nperspective camera to describe the shadow projection.\nThis type of camera is used for shadows generated by spot lights.\n@param centerCam GVRPerspectiveCamera to derive shadow projection from\n@param coneAngle spot light cone angle\n@return Perspective camera to use for shadow casting\n@see GVRSpotLight", "Computes either the vector p-norm or the induced matrix p-norm depending on A\nbeing a vector or a matrix respectively.\n\n@param A Vector or matrix whose norm is to be computed.\n@param p The p value of the p-norm.\n@return The computed norm.", "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "Returns a list of files in given addon passing given filter." ]
public synchronized PrivateKey getPrivateKeyForLocalCert(final X509Certificate cert) throws CertificateEncodingException, KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException { String thumbprint = ThumbprintUtil.getThumbprint(cert); return (PrivateKey)_ks.getKey(thumbprint, _keypassword); }
[ "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException" ]
[ "Returns a usage String based on the defined command and options.\nUseful when printing \"help\" info etc.", "Check if the given class represents an array of primitive wrappers,\ni.e. Boolean, Byte, Character, Short, Integer, Long, Float, or Double.\n@param clazz the class to check\n@return whether the given class is a primitive wrapper array class", "Gets a property with a default value.\n@param key\nThe key string.\n@param defaultValue\nThe default value.\n@return The property string.", "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object", "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.", "Gets the node list from string line seperate or space seperate.\n\n@param listStr\nthe list str\n@param removeDuplicate\nthe remove duplicate\n@return the node list from string line seperate or space seperate", "Use this API to fetch filtered set of vpnglobal_auditnslogpolicy_binding resources.\nset the filter parameter values in filtervalue object.", "Internal method which is called when the user has finished editing the title.\n\n@param box the text box which has been edited", "Harvest a single value that was returned by a callable statement.\n\n@param obj the object that will receive the value that is harvested.\n@param callable the CallableStatement that contains the value to harvest\n@param fmd the FieldDescriptor that identifies the field where the\nharvested value will be stord.\n@param index the parameter index.\n\n@throws PersistenceBrokerSQLException if a problem occurs." ]
synchronized void reconnectServerProcess(final ManagedServerBootCmdFactory factory) { if(this.requiredState != InternalState.SERVER_STARTED) { this.bootConfiguration = factory; this.requiredState = InternalState.SERVER_STARTED; ROOT_LOGGER.reconnectingServer(serverName); internalSetState(new ReconnectTask(), InternalState.STOPPED, InternalState.SEND_STDIN); } }
[ "Try to reconnect to a started server." ]
[ "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException", "Use this API to fetch vpnvserver_cachepolicy_binding resources of given name .", "Initialize the domain registry.\n\n@param registry the domain registry", "Use this API to update gslbsite resources.", "handle case where Instant is outside the bounds of OffsetDateTime", "Parses a single query item for the query facet.\n@param item JSON object of the query item.\n@return the parsed query item, or <code>null</code> if parsing failed.", "Creates the given connection pool with the given configuration. Extracted here to make unit mocking easier.\n@param config configuration object.\n@return BoneCP connection pool handle.", "This is a convenience method used to add a default set of calendar\nhours to a calendar.\n\n@param day Day for which to add default hours for" ]
public String toText() { StringBuilder sb = new StringBuilder(); if (!description.isEmpty()) { sb.append(description.toText()); sb.append(EOL); } if (!blockTags.isEmpty()) { sb.append(EOL); } for (JavadocBlockTag tag : blockTags) { sb.append(tag.toText()).append(EOL); } return sb.toString(); }
[ "Return the text content of the document. It does not containing trailing spaces and asterisks\nat the start of the line." ]
[ "change server state between OFFLINE_SERVER and NORMAL_SERVER\n\n@param setToOffline True if set to OFFLINE_SERVER", "Will start the HiveServer.\n\n@param testConfig Specific test case properties. Will be merged with the HiveConf of the context\n@param hiveVars HiveVars to pass on to the HiveServer for this session", "Get the bean if it exists in the contexts.\n\n@return An instance of the bean\n@throws ContextNotActiveException if the context is not active\n@see javax.enterprise.context.spi.Context#get(BaseBean, boolean)", "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "generate a prepared SELECT-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor", "Sends a request to the API with the given parameters and the given\nrequest method and returns the result string. It automatically fills the\ncookie map with cookies in the result header after the request.\n\nWarning: You probably want to use ApiConnection.sendJsonRequest\nthat execute the request using JSON content format,\nthrows the errors and logs the warnings.\n\n@param requestMethod\neither POST or GET\n@param parameters\nMaps parameter keys to values. Out of this map the function\nwill create a query string for the request.\n@return API result\n@throws IOException", "Set the given column name to the given value.\n\n@param name The column name to set.\n@param value the value to set.\n@return {@code this}\n@throws IllegalArgumentException if a column name does not exist in the table.", "Set the start time.\n@param date the start time to set.", "Called when is removed the parent of the scene object.\n\n@param parent Old parent of this scene object." ]
public float getNormalY(int vertex) { if (!hasNormals()) { throw new IllegalStateException("mesh has no normals"); } checkVertexIndexBounds(vertex); return m_normals.getFloat((vertex * 3 + 1) * SIZEOF_FLOAT); }
[ "Returns the y-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the y coordinate" ]
[ "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)}", "Use this API to update Interface resources.", "Request to join a group.\n\nNote: if a group has rules, the client must display the rules to the user and the user must accept them (which is indicated by passing a true value to\nacceptRules) prior to making the join request.\n\n@param groupId\n- groupId parameter\n@param message\n- (required) message to group administrator\n@param acceptRules\n- (required) parameter indicating user has accepted groups rules", "Use this API to expire cachecontentgroup.", "Extract calendar data.", "Constructs a camera rig with cameras attached. An owner scene object is automatically\ncreated for the camera rig.\n\nDo not try to change the owner object of the camera rig - not supported currently and will\nlead to native crashes.", "Returns a Pair constructed from X and Y. Convenience method; the\ncompiler will disambiguate the classes used for you so that you\ndon't have to write out potentially long class names.", "Returns the mode in the Collection. If the Collection has multiple modes, this method picks one\narbitrarily.", "Refresh this context with the specified configuration locations.\n\n@param configLocations\nlist of configuration resources (see implementation for specifics)\n@throws GeomajasException\nindicates a problem with the new location files (see cause)" ]
public List<ServerRedirect> tableServers(int clientId) { List<ServerRedirect> servers = new ArrayList<>(); try { Client client = ClientService.getInstance().getClient(clientId); servers = tableServers(client.getProfile().getId(), client.getActiveServerGroup()); } catch (SQLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return servers; }
[ "Get the server redirects for a given clientId from the database\n\n@param clientId client ID\n@return collection of ServerRedirects" ]
[ "Remove a bean from the context, calling the destruction callback if any.\n\n@param name bean name\n@return previous value", "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", "Increases the internal array's length by the specified amount. Previous values are preserved.\nThe length value is not modified since this does not change the 'meaning' of the array, just\nincreases the amount of data which can be stored in it.\n\nthis.data = new data_type[ data.length + amount ]\n\n\n@param amount Number of elements added to the internal array's length", "Removes a filter from this project file.\n\n@param filterName The name of the filter", "Performs the actual spell check query using Solr.\n\n@param request the spell check request\n\n@return Results of the Solr spell check of type SpellCheckResponse or null if something goes wrong.", "Converts the Conditionals into real headers.\n@return real headers.", "Merges the item from the resultLocaleValues into the corresponding item of the localeValues.\n@param item the item to merge\n@param localeValues the values where the item gets merged into\n@param resultLocaleValues the values where the item to merge is read from\n@return the modified localeValues with the merged item", "Gets the value of the resourceRequestCriterion 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 resourceRequestCriterion property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetResourceRequestCriterion().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link ResourceRequestType.ResourceRequestCriterion }", "Send JSON representation of given data object to all connections\nconnected to given URL\n\n@param data the data object\n@param url the url" ]
private String formatRelationList(List<Relation> value) { String result = null; if (value != null && value.size() != 0) { StringBuilder sb = new StringBuilder(); for (Relation relation : value) { if (sb.length() != 0) { sb.append(m_delimiter); } sb.append(formatRelation(relation)); } result = sb.toString(); } return (result); }
[ "This method is called to format a relation list.\n\n@param value relation list instance\n@return formatted relation list" ]
[ "Prepare a parallel HTTP DELETE 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", "Samples with replacement from a collection\n\n@param c\nThe collection to be sampled from\n@param n\nThe number of samples to take\n@return a new collection with the sample", "Enter information into the hidden input field.\n\n@param input The input to enter into the hidden field.", "Places a disabled marker file in the directory of the specified version.\n\n@param version to disable\n@throws PersistenceFailureException if the marker file could not be created (can happen if\nthe storage system has become read-only or is otherwise\ninaccessible).", "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", "Returns the docker version.\n\n@param serverUrl\nThe serverUrl to use.", "Remove any device announcements that are so old that the device seems to have gone away.", "Compares two columns given by their names.\n\n@param objA The name of the first column\n@param objB The name of the second column\n@return\n@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)", "Deletes any empty directories under the output directory. These\ndirectories are created by TestNG for its own reports regardless\nof whether those reports are generated. If you are using the\ndefault TestNG reports as well as ReportNG, these directories will\nnot be empty and will be retained. Otherwise they will be removed.\n@param outputDirectory The directory to search for empty directories." ]
public <T extends Widget & Checkable> List<T> getCheckedWidgets() { List<T> checked = new ArrayList<>(); for (Widget c : getChildren()) { if (c instanceof Checkable && ((Checkable) c).isChecked()) { checked.add((T) c); } } return checked; }
[ "Gets all checked widgets in the group\n@return list of checked widgets" ]
[ "Return an input stream to read the data from the named table.\n\n@param name table name\n@return InputStream instance\n@throws IOException", "Use this API to delete dnsview of given name.", "Returns the JRDesignGroup for the DJGroup passed\n@param jd\n@param layoutManager\n@param group\n@return", "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "Initializes the queue that tracks the next set of nodes with no dependencies or\nwhose dependencies are resolved.", "Return a long value which is the number of rows in the table.", "Send message to all connections of a certain user\n\n@param message the message to be sent\n@param username the username\n@return this context", "Reports a given exception as a RuntimeException, since the interface does\nnot allow us to throw checked exceptions directly.\n\n@param e\nthe exception to report\n@throws RuntimeException\nin all cases", "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining." ]
@Subscribe @SuppressForbidden("legitimate printStackTrace().") public void onSuiteResult(AggregatedSuiteResultEvent e) { try { if (jsonWriter == null) return; slaves.put(e.getSlave().id, e.getSlave()); e.serialize(jsonWriter, outputStreams); } catch (Exception ex) { ex.printStackTrace(); junit4.log("Error serializing to JSON file: " + Throwables.getStackTraceAsString(ex), Project.MSG_WARN); if (jsonWriter != null) { try { jsonWriter.close(); } catch (Throwable ignored) { // Ignore. } finally { jsonWriter = null; } } } }
[ "Emit information about a single suite and all of its tests." ]
[ "Resolve Java control character sequences to the actual character value.\nOptionally handle unicode escape sequences, too.", "Creates metadata on this folder using a specified scope and template.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata returned from the server.", "Build a stack trace for this path. This can be used in generating more meaningful exceptions\nwhile using Crawljax in conjunction with JUnit for example.\n\n@return a array of StackTraceElements denoting the steps taken by this path. The first\nelement [0] denotes the last {@link Eventable} on this path while the last item\ndenotes the first {@link Eventable} executed.", "Creates dependency on management executor.\n\n@param builder the builder\n@param injector the injector\n@param <T> the parameter type\n@return service builder instance\n@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future.", "Returns the value of the identified field as a Date.\nTime fields returned from an FQL query are expressed in terms of seconds since midnight, January 1, 1970 UTC.\n@param fieldName the name of the field\n@return the value of the field as a Date\n@throws FqlException if the field's value cannot be expressed as a long value from which a Date object can be constructed.", "Retrieve and validate the timeout value from the REST request.\n\"X_VOLD_REQUEST_TIMEOUT_MS\" is the timeout header.\n\n@return true if present, false if missing", "Converts the given hash code into an index into the\nhash table.", "Returns the value of the identified field as a String.\n@param fieldName the name of the field\n@return the value of the field as a String", "We have obtained a beat grid for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this beat grid\n@param beatGrid the beat grid which we retrieved" ]
public static AbstractBuild<?, ?> getRootBuild(AbstractBuild<?, ?> currentBuild) { AbstractBuild<?, ?> rootBuild = null; AbstractBuild<?, ?> parentBuild = getUpstreamBuild(currentBuild); while (parentBuild != null) { if (isPassIdentifiedDownstream(parentBuild)) { rootBuild = parentBuild; } parentBuild = getUpstreamBuild(parentBuild); } if (rootBuild == null && isPassIdentifiedDownstream(currentBuild)) { return currentBuild; } return rootBuild; }
[ "Get the root build which triggered the current build. The build root is considered to be the one furthest one\naway from the current build which has the isPassIdentifiedDownstream active, if no parent build exists, check\nthat the current build needs an upstream identifier, if it does return it.\n\n@param currentBuild The current build.\n@return The root build with isPassIdentifiedDownstream active. Null if no upstream or non is found." ]
[ "Loads the data from the database. Override this method if the objects\nshall be loaded in a specific way.\n\n@return The loaded data", "Processes a row of the sites table and stores the site information found\ntherein.\n\n@param siteRow\nstring serialisation of a sites table row as found in the SQL\ndump", "Create dummy groups for each concatenated report, and in the footer of\neach group adds the subreport.", "Replaces current Collection mapped to key with the specified Collection.\nUse carefully!", "Search down all extent classes and return max of all found\nPK values.", "of the unbound provider (", "Create a BoxStoragePolicyAssignment for a BoxStoragePolicy.\n@param api the API connection to be used by the resource.\n@param policyID the policy ID of the BoxStoragePolicy.\n@param userID the user ID of the to assign the BoxStoragePolicy to.\n@return the information about the BoxStoragePolicyAssignment created.", "For given field name get the actual hint message", "Return input mapper from processor." ]
public static Integer distance(String h1, String h2) { HammingDistance distance = new HammingDistance(); return distance.apply(h1, h2); }
[ "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return" ]
[ "Set whether the player holding the waveform is playing, which changes the indicator color to white from red.\nThis method can only be used in situations where the component is tied to a single player, and therefore has\na single playback position.\n\n@param playing if {@code true}, draw the position marker in white, otherwise red\n\n@see #setPlaybackState", "Validate ipv4 address with regular expression\n\n@param ip\naddress for validation\n\n@return true valid ip address, false invalid ip address", "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error", "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value", "Recurses the given folder and creates the FileModels vertices for the child files to the graph.", "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output", "Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the path containing the content\n\n@return the deployment", "Generate the next available field for a user defined field.\n\n@param <E> field type class\n@param clazz class of the desired field enum\n@param type user defined field type.\n@return field of specified type", "Creates an element that represents a single positioned box containing the specified text string.\n@param data the text string to be contained in the created box.\n@return the resulting DOM element" ]
private void initWsClient(BundleContext context) throws Exception { ServiceReference serviceRef = context.getServiceReference(ConfigurationAdmin.class.getName()); ConfigurationAdmin cfgAdmin = (ConfigurationAdmin)context.getService(serviceRef); Configuration config = cfgAdmin.getConfiguration("org.talend.esb.sam.agent"); String serviceURL = (String)config.getProperties().get("service.url"); retryNum = Integer.parseInt((String)config.getProperties().get("service.retry.number")); retryDelay = Long.parseLong((String)config.getProperties().get("service.retry.delay")); JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setServiceClass(org.talend.esb.sam.monitoringservice.v1.MonitoringService.class); factory.setAddress(serviceURL); monitoringService = (MonitoringService)factory.create(); }
[ "Inits the ws client.\n\n@param context the context\n@throws Exception the exception" ]
[ "Create a patch element for the rollback patch.\n\n@param entry the entry\n@return the new patch element", "Returns a color for a given absolute number that is to be shown on the\nmap.\n\n@param value\n@return", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Process a single criteria block.\n\n@param list parent criteria list\n@param block current block", "Copies all node meta data from the other node to this one\n@param other - the other node", "Sets the file-pointer offset, measured from the beginning of this file,\nat which the next read or write occurs.", "Set the inner angle of the spotlight cone in degrees.\n\nBeyond the outer cone angle there is no illumination.\nThe underlying uniform \"outer_cone_angle\" is the cosine\nof this input angle. If the inner cone angle is larger than the outer cone angle\nthere will be unexpected results.\n@see #setInnerConeAngle(float)\n@see #getOuterConeAngle()", "Create a new path address by appending more elements to the end of this address.\n\n@param additionalElements the elements to append\n@return the new path address" ]
public boolean removeHandlerFactory(ManagementRequestHandlerFactory instance) { for(;;) { final ManagementRequestHandlerFactory[] snapshot = updater.get(this); final int length = snapshot.length; int index = -1; for(int i = 0; i < length; i++) { if(snapshot[i] == instance) { index = i; break; } } if(index == -1) { return false; } final ManagementRequestHandlerFactory[] newVal = new ManagementRequestHandlerFactory[length - 1]; System.arraycopy(snapshot, 0, newVal, 0, index); System.arraycopy(snapshot, index + 1, newVal, index, length - index - 1); if (updater.compareAndSet(this, snapshot, newVal)) { return true; } } }
[ "Remove a management request handler factory from this context.\n\n@param instance the request handler factory\n@return {@code true} if the instance was removed, {@code false} otherwise" ]
[ "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "Resolve the disposal method for the given producer method. Any resolved\nbeans will be marked as such for the purpose of validating that all\ndisposal methods are used. For internal use.\n\n@param types the types\n@param qualifiers The binding types to match\n@param declaringBean declaring bean\n@return The set of matching disposal methods", "Performs backward pass of Batch Normalization layer. Returns x gradient,\nbnScale gradient and bnBias gradient", "High-accuracy Normal cumulative distribution function.\n\n@param x Value.\n@return Result.", "Creates a simple, annotation defined Enterprise Web Bean using the annotations specified on type\n\n@param <T> The type\n@param beanManager the current manager\n@param type the AnnotatedType to use\n@return An Enterprise Web Bean", "Get file extension for script language.\n\n@param language the language name\n@return the file extension as string or null if the language is not in the set of languages supported by spin", "Writes all error responses to the client.\n\nTODO REST-Server 1. collect error stats\n\n@param messageEvent - for retrieving the channel details\n@param status - error code\n@param message - error message", "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object", "Get the Attribute metadata for an MBean by name.\n@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values." ]
public void set_protocol(String protocol) throws nitro_exception { if (protocol == null || !(protocol.equalsIgnoreCase("http") ||protocol.equalsIgnoreCase("https"))) { throw new nitro_exception("error: protocol value " + protocol + " is not supported"); } this.protocol = protocol; }
[ "Sets the protocol.\n@param protocol The protocol to be set." ]
[ "Sets the character translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator", "Read an optional string value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the string value in the provided JSON object.\n@param defaultValue the default value, to be returned if the string can not be read from the JSON object.\n@return the string or the default value if reading the string fails.", "This function is intended to detect the subset of IOException which are not\nconsidered recoverable, in which case we want to bubble up the exception, instead\nof retrying.\n\n@throws VoldemortException", "look for zero after country code, and remove if present", "Write the text to the File, using the specified encoding.\n\n@param file a File\n@param text the text to write to the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Uncompresses the textual contents in the given map and and writes them to the files\ndenoted by the keys of the map.\n\n@param dir The base directory into which the files will be written\n@param contents The map containing the contents indexed by the filename\n@throws IOException If an error occurred", "Helper for reading a mandatory String value list - throwing an Exception if parsing fails.\n@param json The JSON object where the list should be read from.\n@param key The key of the value to read.\n@return The value from the JSON.\n@throws JSONException thrown when parsing fails.", "Sets the request type for this ID. Defaults to GET\n\n@param pathId ID of path\n@param requestType type of request to service", "Process schedule options from SCHEDOPTIONS. This table only seems to exist\nin XER files, not P6 databases." ]
protected void updateModel(final ModelNode operation, final Resource resource) throws OperationFailedException { updateModel(operation, resource.getModel()); }
[ "Update the given resource in the persistent configuration model based on the values in the given operation.\n\n@param operation the operation\n@param resource the resource that corresponds to the address of {@code operation}\n\n@throws OperationFailedException if {@code operation} is invalid or populating the model otherwise fails" ]
[ "Multiply two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the multiply of specified complex numbers.", "Returns an Array with an Objects PK VALUES if convertToSql is true, any\nassociated java-to-sql conversions are applied. If the Object is a Proxy\nor a VirtualProxy NO conversion is necessary.\n\n@param objectOrProxy\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Performs a request against a Stitch app server determined by the deployment model\nof the underlying app. Throws a Stitch specific exception if the request fails.\n\n@param stitchReq the request to perform.\n@return a {@link Response} to the request.", "The third method to write caseManager. Its task is to write the call to\nthe story to be run.\n\n@param caseManager\nthe file where the test must be written\n@param storyName\nthe name of the story\n@param test_path\nthe path where the story can be found\n@param user\nthe user requesting the story\n@param feature\nthe feature requested by the user\n@param benefit\nthe benefit provided by the feature\n@throws BeastException", "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld", "Does the slice contain only 7-bit ASCII characters.", "Add a '&lt;=' clause so the column must be less-than or equals-to the value.", "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry" ]
public static <T> Iterator<T> concat(Iterator<? extends Iterator<? extends T>> iterators) { Preconditions.checkArgumentNotNull(iterators, "iterators"); return new CombinedIterator<T>(iterators); }
[ "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator" ]
[ "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched.", "Sets the real offset.\n\n@param start the start\n@param end the end", "Parse a string representation of an Integer value.\n\n@param value string representation\n@return Integer value", "Gets the value of a global editor configuration parameter.\n\n@param cms the CMS context\n@param editor the editor name\n@param param the name of the parameter\n\n@return the editor parameter value", "Removes CRs but returns LFs", "Set the week of the month the events should occur.\n@param weekOfMonth the week of month to set (first to fifth, where fifth means last).", "Resend the confirmation for a user to the given email.\n\n@param email the email of the user.\n@return A {@link Task} that completes when the resend request completes/fails.", "Increases the internal array's length by the specified amount. Previous values are preserved.\nThe length value is not modified since this does not change the 'meaning' of the array, just\nincreases the amount of data which can be stored in it.\n\nthis.data = new data_type[ data.length + amount ]\n\n\n@param amount Number of elements added to the internal array's length", "Adds a file with the provided description." ]
public void rollback() throws GeomajasException { try { setConfigLocations(previousConfigLocations); refresh(); } catch (Exception e) { throw new GeomajasException(e, ExceptionCode.REFRESH_CONFIGURATION_FAILED); } }
[ "Roll back to the previous configuration.\n\n@throws GeomajasException\nindicates an unlikely problem with the rollback (see cause)" ]
[ "Load the layers based on the default setup.\n\n@param jbossHome the jboss home directory\n@param productConfig the product config\n@param repoRoots the repository roots\n@return the available layers\n@throws IOException", "Closes this output stream and releases any system resources associated with the stream.\n\n@throws IOException\nif an I/O error occurs.", "Returns an array with the width of the longest word per column calculated from the given table.\nDefault padding will be added per column.\nPadding for individual columns will be added if defined.\n@param rows the table rows for calculations\n@param colNumbers number of columns in the table\n@return array with width of longest word for each column, null if input table was null", "Tests correctness.", "Size of a queue.\n\n@param jedis\n@param queueName\n@return", "Log original incoming request\n\n@param requestType\n@param request\n@param history", "Leave a group.\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.leave.html\">lickr.groups.leave</a> for a description of the various behaviors possible\nwhen a user leaves a group.\n\n@param groupId\n- the id of the group to leave\n@param deletePhotos\n- delete photos by this user from group", "Gets the type to use for the Vaadin table column corresponding to the c-th column in this result.\n\n@param c the column index\n@return the class to use for the c-th Vaadin table column", "Read the name of a table and prepare to populate it with column data.\n\n@param startIndex start of the block\n@param blockLength length of the block" ]
private void addModuleToGraph(final DbModule module, final AbstractGraph graph, final int depth) { if (graph.isTreated(graph.getId(module))) { return; } final String moduleElementId = graph.getId(module); graph.addElement(moduleElementId, module.getVersion(), depth == 0); if (filters.getDepthHandler().shouldGoDeeper(depth)) { for (final DbDependency dep : DataUtils.getAllDbDependencies(module)) { if(filters.shouldBeInReport(dep)){ addDependencyToGraph(dep, graph, depth + 1, moduleElementId); } } } }
[ "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth" ]
[ "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly", "Retrieve the start slack.\n\n@return start slack", "Use this API to fetch statistics of gslbdomain_stats resource of given name .", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name in original form.\n@throws UnsupportedEncodingException if the encoding is not supported.", "Get a configured database connection via JNDI.", "Gets all tags that are \"prime\" tags.", "Utility method to convert an array of bytes into a long. Byte ordered is\nassumed to be big-endian.\n@param bytes The data to read from.\n@param offset The position to start reading the 8-byte long from.\n@return The 64-bit integer represented by the eight bytes.\n@since 1.1", "Remove any protocol-level headers from the clients request that\ndo not apply to the new request we are sending to the remote server.\n\n@param request\n@param destination", "Log original incoming request\n\n@param requestType\n@param request\n@param history" ]
public void setReadTimeout(int millis) { // Hack to get round Spring's dynamic loading of http client stuff ClientHttpRequestFactory f = getRequestFactory(); if (f instanceof SimpleClientHttpRequestFactory) { ((SimpleClientHttpRequestFactory) f).setReadTimeout(millis); } else { ((HttpComponentsClientHttpRequestFactory) f).setReadTimeout(millis); } }
[ "The read timeout for the underlying URLConnection to the twitter stream." ]
[ "Returns the master mode's editor state for editing a bundle with descriptor.\n@return the master mode's editor state for editing a bundle with descriptor.", "Update rows in the database.", "This is the original, naive implementation, using the Wagner &\nFischer algorithm from 1974. It uses a flattened matrix for\nspeed, but still computes the entire matrix.", "Print the common class node's properties", "Return whether or not the field value passed in is the default value for the type of the field. Null will return\ntrue.", "Use this API to delete dnsaaaarec resources of given names.", "Returns an MBeanServer with the specified name\n\n@param name\n@return", "Adds descriptions to the item.\n\n@param descriptions\nthe descriptions to add", "Handle a completed request producing an optional response" ]
private void stop() { for (int i = 0; i < mDownloadDispatchers.length; i++) { if (mDownloadDispatchers[i] != null) { mDownloadDispatchers[i].quit(); } } }
[ "Stops download dispatchers." ]
[ "Returns an interval representing the subtraction of the\ngiven interval from this one.\n@param other interval to subtract from this one\n@return result of subtraction", "Converts from a bitmap to individual day flags for a weekly recurrence,\nusing the array of masks.\n\n@param days bitmap\n@param masks array of mask values", "Reports a dependency of this node has been faulted.\n\n@param dependencyKey the id of the dependency node\n@param throwable the reason for unsuccessful resolution", "Add new control at the end of control bar with specified touch listener.\nSize of control bar is updated based on new number of controls.\n@param name name of the control to remove\n@param properties JSON control specific properties\n@param listener touch listener", "That is, of size 6, which become 8, since HashMaps are powers of 2. Still, it's half the size", "Retrieve a work field.\n\n@param type field type\n@return Duration instance", "get children nodes name\n\n@param zkClient zkClient\n@param path full path\n@return children nodes name or null while path not exist", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "Deletes this collaboration whitelist." ]
public BlurBuilder downScale(int scaleInSample) { data.options.inSampleSize = Math.min(Math.max(1, scaleInSample), 16384); return this; }
[ "Will scale the image down before processing for\nperformance enhancement and less memory usage\nsacrificing image quality.\n\n@param scaleInSample value greater than 1 will scale the image width/height, so 2 will getFromDiskCache you 1/4\nof the original size and 4 will getFromDiskCache you 1/16 of the original size - this just sets\nthe inSample size in {@link android.graphics.BitmapFactory.Options#inSampleSize } and\nbehaves exactly the same, so keep the value 2^n for least scaling artifacts" ]
[ "Close tracks when the JVM shuts down.\n@return this", "This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance", "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to control the intensity of ambient light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Parses operations where the input comes from variables to its left only. Hard coded to only look\nfor transpose for now\n\n@param tokens List of all the tokens\n@param sequence List of operation sequence", "This function is responsible for starting the actual async rebalance\noperation. This is run if this node is the stealer node\n\n<br>\n\nWe also assume that the check that this server is in rebalancing state\nhas been done at a higher level\n\n@param stealInfo Partition info to steal\n@return Returns a id identifying the async operation", "Capture stdout and route them through Redwood\n@return this", "See if there is an auto-attach cache file that seems to match the media in the specified slot, and if so,\nattach it.\n\n@param slot the player slot that is under consideration for automatic cache attachment", "Use this API to fetch netbridge_vlan_binding resources of given name .", "Stops and clears all transitions" ]
public PhotoList<Photo> photosForLocation(GeoData location, Set<String> extras, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); PhotoList<Photo> photos = new PhotoList<Photo>(); parameters.put("method", METHOD_PHOTOS_FOR_LOCATION); if (extras.size() > 0) { parameters.put("extras", StringUtilities.join(extras, ",")); } if (perPage > 0) { parameters.put("per_page", Integer.toString(perPage)); } if (page > 0) { parameters.put("page", Integer.toString(page)); } parameters.put("lat", Float.toString(location.getLatitude())); parameters.put("lon", Float.toString(location.getLongitude())); parameters.put("accuracy", Integer.toString(location.getAccuracy())); Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element photosElement = response.getPayload(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perpage")); photos.setTotal(photosElement.getAttribute("total")); NodeList photoElements = photosElement.getElementsByTagName("photo"); for (int i = 0; i < photoElements.getLength(); i++) { Element photoElement = (Element) photoElements.item(i); photos.add(PhotoUtils.createPhoto(photoElement)); } return photos; }
[ "Return a list of photos for a user at a specific latitude, longitude and accuracy.\n\n@param location\n@param extras\n@param perPage\n@param page\n@return The collection of Photo objects\n@throws FlickrException\n@see com.flickr4java.flickr.photos.Extras" ]
[ "Deletes an organization\n\n@param organizationId String", "Calculates a checksum for the specified buffer.\n@param buffer the buffer to calculate.\n@return the checksum value.", "Convert custom info.\n\n@param customInfo the custom info map\n@return the custom info type", "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "Pushes the Notification Viewed event to CleverTap.\n\n@param extras The {@link Bundle} object that contains the\nnotification details", "Unzip a file or a folder\n@param zipFile\n@param unzippedFolder optional, if null the file/folder will be extracted in the same folder as zipFile\n@return", "Concatenate all the arrays in the list into a vector.\n\n@param arrays List of arrays.\n@return Vector.", "Dump data for all non-summary tasks to stdout.\n\n@param name file name", "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" ]
private String[] getDatePatterns(ProjectProperties properties) { String pattern = ""; char datesep = properties.getDateSeparator(); DateOrder dateOrder = properties.getDateOrder(); switch (dateOrder) { case DMY: { pattern = "dd" + datesep + "MM" + datesep + "yy"; break; } case MDY: { pattern = "MM" + datesep + "dd" + datesep + "yy"; break; } case YMD: { pattern = "yy" + datesep + "MM" + datesep + "dd"; break; } } return new String[] { pattern }; }
[ "Generate date patterns based on the project configuration.\n\n@param properties project properties\n@return date patterns" ]
[ "Check, if all values used for calculating the series for a specific pattern are valid.\n@return <code>null</code> if the pattern is valid, a suitable error message otherwise.", "add a FK column pointing to the item Class", "Creates a ServiceCall from a paging operation that returns a header response.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@param <V> the header object type\n@return the future based ServiceCall", "Reload a managed server.\n\n@param permit the controller permit\n@return whether the state was changed successfully or not", "Get distance between geographical coordinates\n@param point1 Point1\n@param point2 Point2\n@return Distance (double)", "Returns details of a previously-requested Organization export.\n\n@param organizationExport Globally unique identifier for the Organization export.\n@return Request object", "multi-field string", "Map the currency separator character to a symbol name.\n\n@param c currency separator character\n@return symbol name", "Determines if the queue identified by the given key can be used as a delayed queue.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key already is a delayed queue or is not currently used, false otherwise" ]
public static java.sql.Timestamp toTimestamp(Object value) throws ParseException { if (value == null) { return null; } if (value instanceof java.sql.Timestamp) { return (java.sql.Timestamp) value; } if (value instanceof String) { if ("".equals((String) value)) { return null; } return new java.sql.Timestamp(IN_TIMESTAMP_FORMAT.parse((String) value).getTime()); } return new java.sql.Timestamp(IN_TIMESTAMP_FORMAT.parse(value.toString()).getTime()); }
[ "Convert an Object to a Timestamp." ]
[ "Use this API to fetch all the cachepolicylabel resources that are configured on netscaler.", "An endpoint to compile an array of soy templates to JavaScript.\n\nThis endpoint is a preferred way of compiling soy templates to JavaScript but it requires a user to compose a url\non their own or using a helper class TemplateUrlComposer, which calculates checksum of a file and puts this in url\nso that whenever a file changes, after a deployment a JavaScript, url changes and a new hash is appended to url, which enforces\ngetting of new compiles JavaScript resource.\n\nInvocation of this url may throw two types of http exceptions:\n1. notFound - usually when a TemplateResolver cannot find a template with an associated name\n2. error - usually when there is a permission error and a user is not allowed to compile a template into a JavaScript\n\n@param hash - some unique number that should be used when we are caching this resource in a browser and we use http cache headers\n@param templateFileNames - an array of template names, e.g. client-words,server-time, which may or may not contain extension\ncurrently three modes are supported - soy extension, js extension and no extension, which is preferred\n@param disableProcessors - whether the controller should run registered outputProcessors after the compilation is complete.\n@param request - HttpServletRequest\n@param locale - locale\n@return response entity, which wraps a compiled soy to JavaScript files.\n@throws IOException - io error", "Notifies all registered BufferChangeLogger instances of a change.\n\n@param newData the buffer that contains the new data being added\n@param numChars the number of valid characters in the buffer", "Here we start a intern odmg-Transaction to hide transaction demarcation\nThis method could be invoked several times within a transaction, but only\nthe first call begin a intern odmg transaction", "Scan a network interface to find if it has an address space which matches the device we are trying to reach.\nIf so, return the address specification.\n\n@param aDevice the DJ Link device we are trying to communicate with\n@param networkInterface the network interface we are testing\n@return the address which can be used to communicate with the device on the interface, or null", "Returns the precedence of the specified operator. Non-operator's will\nreceive -1 or a GroovyBugError, depending on your preference.", "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value", "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "Notify our own event listeners of a Z-Wave event.\n@param event the event to send." ]
public IPv6Address getIPv6Address(IPv6AddressSegment segs[]) { IPv6AddressCreator creator = getIPv6Network().getAddressCreator(); return creator.createAddress(IPv6AddressSection.createSection(creator, segs, this)); /* address creation */ }
[ "Create an IPv6 mixed address using the given ipv6 segments and using this address for the embedded IPv4 segments\n\n@param segs\n@return" ]
[ "If the burst mode is on, emit the particles only once.\n\n@param particlePositions\n@param particleVelocities\n@param particleTimeStamps", "Initialize the metadata cache with system store list", "Converts Observable of list to Observable of Inner.\n@param innerList list to be converted.\n@param <InnerT> type of inner.\n@return Observable for list of inner.", "This method works as the one above, adding some properties to the message\n\n@param agent_name\nThe id of the agents that receive the message\n@param msgtype\n@param message_content\nThe content of the message\n@param properties\nto be added to the message\n@param connector\nThe connector to get the external access", "Remove a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param isDirectory whether the file is a directory or not\n@return the builder", "if any item in toCheck is present in collection\n@param <T>\n@param collection\n@param toCheck\n@return", "Append the text at the end of the File, using a specified encoding.\n\n@param file a File\n@param text 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 1.0", "We have reason to believe we might have enough information to calculate a signature for the track loaded on a\nplayer. Verify that, and if so, perform the computation and record and report the new signature.", "Set the configuration property.\n\n@param key\n@param value\n@return self\n@see #ARCHIVE_ISOLATION_SYSTEM_PROPERTY\n@see #SHUTDOWN_HOOK_SYSTEM_PROPERTY\n@see #DEV_MODE_SYSTEM_PROPERTY\n@see ConfigurationKey" ]
public Object invokeOperation(Map<String, String[]> parameterMap) throws JMException { MBeanParameterInfo[] parameterInfoArray = operationInfo.getSignature(); Object[] values = new Object[parameterInfoArray.length]; String[] types = new String[parameterInfoArray.length]; MBeanValueConverter valueConverter = createMBeanValueConverter(parameterMap); for (int parameterNum = 0; parameterNum < parameterInfoArray.length; parameterNum++) { MBeanParameterInfo parameterInfo = parameterInfoArray[parameterNum]; String type = parameterInfo.getType(); types[parameterNum] = type; values[parameterNum] = valueConverter.convertParameterValue(parameterInfo.getName(), type); } return mBeanServer.invoke(objectName, operationInfo.getName(), values, types); }
[ "Invoke the operation.\n@param parameterMap the {@link Map} of parameter names to value arrays.\n@return the {@link Object} return value from the operation.\n@throws JMException Java Management Exception" ]
[ "Use this API to clear bridgetable resources.", "Use this API to fetch all the nstimeout resources that are configured on netscaler.", "Sets the search scope.\n\n@param cms The current CmsObject object.", "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", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Get the URI for the given statement.\n\n@param statement\nthe statement for which to create a URI\n@return the URI", "Get the number of views, comments and favorites on a photostream 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@see \"http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.htm\"", "Implement this to do your drawing.\n\n@param canvas the canvas on which the background will be drawn", "Creates a random symmetric matrix. The entire matrix will be filled in, not just a triangular\nportion.\n\n@param N Number of rows and columns\n@param nz_total Number of nonzero elements in the triangular portion of the matrix\n@param min Minimum element value, inclusive\n@param max Maximum element value, inclusive\n@param rand Random number generator\n@return Randomly generated matrix" ]
public void parseRawValue(String value) { int valueIndex = 0; int elementIndex = 0; m_elements.clear(); while (valueIndex < value.length() && elementIndex < m_elements.size()) { int elementLength = m_lengths.get(elementIndex).intValue(); if (elementIndex > 0) { m_elements.add(m_separators.get(elementIndex - 1)); } int endIndex = valueIndex + elementLength; if (endIndex > value.length()) { endIndex = value.length(); } String element = value.substring(valueIndex, endIndex); m_elements.add(element); valueIndex += elementLength; elementIndex++; } }
[ "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value" ]
[ "Redirect to page\n\n@param model\n@return", "Unlock all files opened for writing.", "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", "Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas.", "Given a string with the scenario or story name, creates a Class Name with\nno spaces and first letter capital\n\n@param String\n- The name of the scenario/story. It should be in lower case.\n@returns String - The class name", "Finds the column with the largest normal and makes that the first column\n\n@param j Current column being inspected", "Sends a request to the API with the given parameters and the given\nrequest method and returns the result string. It automatically fills the\ncookie map with cookies in the result header after the request.\n\nWarning: You probably want to use ApiConnection.sendJsonRequest\nthat execute the request using JSON content format,\nthrows the errors and logs the warnings.\n\n@param requestMethod\neither POST or GET\n@param parameters\nMaps parameter keys to values. Out of this map the function\nwill create a query string for the request.\n@return API result\n@throws IOException", "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions or the original input in case\nthe input didn't contain any expressions or at least one of the\nexpressions could not be resolved", "compute Sinh using Taylor Series.\n\n@param x An angle, in radians.\n@param nTerms Number of terms.\n@return Result." ]
public List<WbSearchEntitiesResult> wbSearchEntities(String search, String language, Boolean strictLanguage, String type, Long limit, Long offset) throws MediaWikiApiErrorException { Map<String, String> parameters = new HashMap<String, String>(); parameters.put(ApiConnection.PARAM_ACTION, "wbsearchentities"); if (search != null) { parameters.put("search", search); } else { throw new IllegalArgumentException( "Search parameter must be specified for this action."); } if (language != null) { parameters.put("language", language); } else { throw new IllegalArgumentException( "Language parameter must be specified for this action."); } if (strictLanguage != null) { parameters.put("strictlanguage", Boolean.toString(strictLanguage)); } if (type != null) { parameters.put("type", type); } if (limit != null) { parameters.put("limit", Long.toString(limit)); } if (offset != null) { parameters.put("continue", Long.toString(offset)); } List<WbSearchEntitiesResult> results = new ArrayList<>(); try { JsonNode root = this.connection.sendJsonRequest("POST", parameters); JsonNode entities = root.path("search"); for (JsonNode entityNode : entities) { try { JacksonWbSearchEntitiesResult ed = mapper.treeToValue(entityNode, JacksonWbSearchEntitiesResult.class); results.add(ed); } catch (JsonProcessingException e) { LOGGER.error("Error when reading JSON for entity " + entityNode.path("id").asText("UNKNOWN") + ": " + e.toString()); } } } catch (IOException e) { LOGGER.error("Could not retrive data: " + e.toString()); } return results; }
[ "Executes the API action \"wbsearchentity\" for the given parameters.\nSearches for entities using labels and aliases. Returns a label and\ndescription for the entity in the user language if possible. Returns\ndetails of the matched term. The matched term text is also present in the\naliases key if different from the display label.\n\n<p>\nSee the <a href=\n\"https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentity\"\n>online API documentation</a> for further information.\n<p>\n\n@param search\n(required) search for this text\n@param language\n(required) search in this language\n@param strictLanguage\n(optional) whether to disable language fallback\n@param type\n(optional) search for this type of entity\nOne of the following values: item, property\nDefault: item\n@param limit\n(optional) maximal number of results\nno more than 50 (500 for bots) allowed\nDefault: 7\n@param offset\n(optional) offset where to continue a search\nDefault: 0\nthis parameter is called \"continue\" in the API (which is a Java keyword)\n\n@return list of matching entities retrieved via the API URL\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IllegalArgumentException\nif the given combination of parameters does not make sense" ]
[ "Bessel function of the second kind, of order 1.\n\n@param x Value.\n@return Y value.", "Use this API to fetch authenticationradiuspolicy_vpnvserver_binding resources of given name .", "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", "Add a dependency task group for this model.\n\n@param dependency the dependency.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependency task group", "Alias accessor provided for JSON serialization only", "Write a resource.\n\n@param record resource instance\n@throws IOException", "we only use the registrationList map if the object is not a proxy. During the\nreference locking, we will materialize objects and they will enter the registered for\nlock map.", "Handle a simple ping request.\n\n@param channel the channel\n@param header the protocol header\n@throws IOException for any error", "Retrieves the path using the endpoint value\n\n@param pathValue - path (endpoint) value\n@param requestType - \"GET\", \"POST\", etc\n@return Path or null\n@throws Exception exception" ]
private Collection<? extends ResourceRoot> handleClassPathItems(final DeploymentUnit deploymentUnit) { final Set<ResourceRoot> additionalRoots = new HashSet<ResourceRoot>(); final ArrayDeque<ResourceRoot> toProcess = new ArrayDeque<ResourceRoot>(); final List<ResourceRoot> resourceRoots = DeploymentUtils.allResourceRoots(deploymentUnit); toProcess.addAll(resourceRoots); final Set<ResourceRoot> processed = new HashSet<ResourceRoot>(resourceRoots); while (!toProcess.isEmpty()) { final ResourceRoot root = toProcess.pop(); final List<ResourceRoot> classPathRoots = root.getAttachmentList(Attachments.CLASS_PATH_RESOURCE_ROOTS); for(ResourceRoot cpRoot : classPathRoots) { if(!processed.contains(cpRoot)) { additionalRoots.add(cpRoot); toProcess.add(cpRoot); processed.add(cpRoot); } } } return additionalRoots; }
[ "Loops through all resource roots that have been made available transitively via Class-Path entries, and\nadds them to the list of roots to be processed." ]
[ "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "Extract WOEID after XML loads", "Retrieve a UUID field.\n\n@param type field type\n@return UUID instance", "Use this API to fetch tmtrafficpolicy_lbvserver_binding resources of given name .", "Gets an overrideID for a class name, method name\n\n@param className name of class\n@param methodName name of method\n@return override ID of method", "Scan a network interface to find if it has an address space which matches the device we are trying to reach.\nIf so, return the address specification.\n\n@param aDevice the DJ Link device we are trying to communicate with\n@param networkInterface the network interface we are testing\n@return the address which can be used to communicate with the device on the interface, or null", "Returns the rendered element content for all the given containers.\n\n@param element the element to render\n@param containers the containers the element appears in\n\n@return a map from container names to rendered page contents", "Return the next word of the string, in other words it stops when a space is encountered.", "Pop the record number from the front of the list, and parse it to ensure that\nit is a valid integer.\n\n@param list MPX record" ]
private TrackType findTrackType() { TrackType result = TRACK_TYPE_MAP.get(packetBytes[42]); if (result == null) { return TrackType.UNKNOWN; } return result; }
[ "Determine the enum value corresponding to the track type found in the packet.\n\n@return the proper value" ]
[ "crops the srcBmp with the canvasView bounds and returns the cropped bitmap", "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", "We add typeRefs without Nodes on the fly, so we should remove them before relinking.", "Return the next word of the string, in other words it stops when a space is encountered.", "Generates the context diagram for a single class", "Converts a List to a Map using the elements of the nameMapping array as the keys of the Map.\n\n@param destinationMap\nthe destination Map (which is cleared before it's populated)\n@param nameMapping\nthe keys of the Map (corresponding with the elements in the sourceList). Cannot contain duplicates.\n@param sourceList\nthe List to convert\n@param <T>\nthe type of the values in the map\n@throws NullPointerException\nif destinationMap, nameMapping or sourceList are null\n@throws SuperCsvException\nif nameMapping and sourceList are not the same size", "Checks whether a property can be added to a Properties.\n\n@param typeManager\n@param properties the properties object\n@param typeId the type id\n@param filter the property filter\n@param id the property id\n\n@return true if the property should be added", "Constructs credentials for the given account and key file.\n\n@param serviceAccountId service account ID (typically an e-mail address).\n@param privateKeyFile the file name from which to get the private key.\n@param serviceAccountScopes Collection of OAuth scopes to use with the the service\naccount flow or {@code null} if not.\n@return valid credentials or {@code null}", "Recovers the state of synchronization for a namespace in case a system failure happened.\nThe goal is to revert the namespace to a known, good state. This method itself is resilient\nto failures, since it doesn't delete any documents from the undo collection until the\ncollection is in the desired state with respect to those documents." ]
private byte[] readStreamCompressed(InputStream stream) throws IOException { ByteArrayOutputStream bao = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream(bao); OutputStreamWriter output = new OutputStreamWriter(gos); BufferedReader input = new BufferedReader(new InputStreamReader(stream)); String line; while ((line = input.readLine()) != null) { output.write(line); output.write('\n'); } input.close(); stream.close(); output.close(); gos.close(); bao.close(); return bao.toByteArray(); }
[ "Reads the given text stream and compressed its content.\n\n@param stream The input stream\n@return A byte array containing the GZIP-compressed content of the stream\n@throws IOException If an error ocurred" ]
[ "Log a message with a throwable at the provided level.", "Method used to create missing timephased data.\n\n@param file project file\n@param assignment resource assignment\n@param timephasedPlanned planned timephased data\n@param timephasedComplete complete timephased data", "Use this API to add autoscaleaction resources.", "Use this API to fetch the statistics of all dos_stats resources that are configured on netscaler.", "Returns the z-coordinate of a vertex normal.\n\n@param vertex the vertex index\n@return the z coordinate", "Get the first non-white X point\n@param img Image n memory\n@return the x start", "Determine whether the given element matches this element.\nAn element matches this element when keys are equal, values are equal\nor this element value is a wildcard.\n@param pe the element to check\n@return {@code true} if the element matches", "This is a convenience method used to add a default set of calendar\nhours to a calendar.\n\n@param day Day for which to add default hours for", "add trace information for received frame" ]
public static StringBuilder leftShift(StringBuilder self, Object value) { self.append(value); return self; }
[ "Overloads the left shift operator to provide syntactic sugar for appending to a StringBuilder.\n\n@param self a StringBuilder\n@param value an Object\n@return the original StringBuilder\n@since 1.8.2" ]
[ "Log unexpected column structure.", "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}.", "Aggregates a list of templates specified by @Template", "Gets the first group of a regex\n@param pattern Pattern\n@param str String to find\n@return the matching group", "Get the last modified time for a set of files.", "Call this method to initialize the Fluo connection props\n\n@param conf Job configuration\n@param props Use {@link org.apache.fluo.api.config.FluoConfiguration} to set props\nprogrammatically", "Constraint that ensures that the proxy-prefetching-limit has a valid value.\n\n@param def The descriptor (class, reference, collection)\n@param checkLevel The current check level (this constraint is checked in basic and strict)", "Handle http worker response.\n\n@param respOnSingleReq\nthe my response\n@throws Exception\nthe exception", "A specific, existing project can be deleted by making a DELETE request\non the URL for that project.\n\nReturns an empty data record.\n\n@param project The project to delete.\n@return Request object" ]
protected void sendEvent(final T event) { if (isStatic) { sendEvent(event, null, null); } else { CreationalContext<X> creationalContext = null; try { Object receiver = getReceiverIfExists(null); if (receiver == null && reception != Reception.IF_EXISTS) { // creational context is created only if we need it for obtaining receiver // ObserverInvocationStrategy takes care of creating CC for parameters, if needed creationalContext = beanManager.createCreationalContext(declaringBean); receiver = getReceiverIfExists(creationalContext); } if (receiver != null) { sendEvent(event, receiver, creationalContext); } } finally { if (creationalContext != null) { creationalContext.release(); } } } }
[ "Invokes the observer method immediately passing the event.\n\n@param event The event to notify observer with" ]
[ "Return the number of entries in the cue list that represent hot cues.\n\n@return the number of cue list entries that are hot cues", "Returns PatternParser used to parse the conversion string. Subclasses may\noverride this to return a subclass of PatternParser which recognize\ncustom conversion characters.\n\n@since 0.9.0", "Check if the given color string can be parsed.\n\n@param colorString The color to parse.", "Private recursive helper function to actually do the type-safe checking\nof assignability.", "called when we are completed finished with using the TcpChannelHub", "Update all the links of the DeclarationBinder.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "Tells you if the ASTNode is a method node for the given name, arity, and return type.\n@param node\nthe node to inspect\n@param methodNamePattern\nthe expected name of the method\n@param numArguments\nthe expected number of arguments, optional\n@param returnType\nthe expected return type, optional\n@return\ntrue if this node is a MethodNode meeting the parameters. false otherwise", "Use this API to convert sslpkcs12.", "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field" ]
public static WidgetLib init(GVRContext gvrContext, String customPropertiesAsset) throws InterruptedException, JSONException, NoSuchMethodException { if (mInstance == null) { // Constructor sets mInstance to ensure the initialization order new WidgetLib(gvrContext, customPropertiesAsset); } return mInstance.get(); }
[ "Initialize an instance of Widget Lib. It has to be done before any usage of library.\nThe application needs to hold onto the returned WidgetLib reference for as long as the\nlibrary is going to be used.\n@param gvrContext A valid {@link GVRContext} instance\n@param customPropertiesAsset An optional asset JSON file containing custom and overridden\nproperties for the application\n@return Instance of Widget library\n@throws InterruptedException\n@throws JSONException\n@throws NoSuchMethodException" ]
[ "In-place scaling of a row in A\n\n@param alpha scale factor\n@param A matrix\n@param row which row in A", "Copies the non-zero structure of orig into \"this\"\n@param orig Matrix who's structure is to be copied", "Increment the version info associated with the given node\n\n@param node The node", "Get all parameter keys.\n@return a set of parameter keys", "Parses the resource String id and get back the int res id\n@param context\n@param id String resource id\n@return int resource id", "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message", "Set the host.\n\n@param host the host", "If the specified value is not greater than or equal to the specified minimum and\nless than or equal to the specified maximum, adjust it so that it is.\n@param value The value to check.\n@param min The minimum permitted value.\n@param max The maximum permitted value.\n@return {@code value} if it is between the specified limits, {@code min} if the value\nis too low, or {@code max} if the value is too high.\n@since 1.2", "Calculate start dates for a yearly absolute recurrence.\n\n@param calendar current date\n@param dates array of start dates" ]
public ServerSocket createServerSocket() throws IOException { final ServerSocket socket = getServerSocketFactory().createServerSocket(name); socket.bind(getSocketAddress()); return socket; }
[ "Create and bind a server socket\n\n@return the server socket\n@throws IOException" ]
[ "Creates a copy with verbose mode enabled.\n\n@param serverSetups the server setups.\n@return copies of server setups with verbose mode enabled.", "Adds a row to the internal storage, indexed by primary key.\n\n@param uniqueID unique ID of the row\n@param map row data as a simpe map", "Utility function that copies a string array and add another string to\nfirst\n\n@param arr Original array of strings\n@param add\n@return Copied array of strings", "Returns the next index of the argument by decrementing 1 from the possibly parsed number\n\n@param description this String will be searched from the start for a number\n@param defaultIndex this will be returned if the match does not succeed\n@return the parsed index or the defaultIndex", "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "get the jdbcTypes from the Query or the ResultSet if not available from the Query\n@throws SQLException", "Calculate the value of a caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@param optionMaturity The option maturity\n@param optionStrike The option strike.\n@param periodLength The period length of the underlying forward rate.\n@param discountFactor The discount factor corresponding to the payment date (option maturity + period length).\n@return Returns the value of a caplet under the Black'76 model", "Convert from Hadoop Text to Bytes", "Add the provided document to the cache." ]
private void readResourceExtendedAttributes(Project.Resources.Resource xml, Resource mpx) { for (Project.Resources.Resource.ExtendedAttribute attrib : xml.getExtendedAttribute()) { int xmlFieldID = Integer.parseInt(attrib.getFieldID()) & 0x0000FFFF; ResourceField mpxFieldID = MPPResourceField.getInstance(xmlFieldID); TimeUnit durationFormat = DatatypeConverter.parseDurationTimeUnits(attrib.getDurationFormat(), null); DatatypeConverter.parseExtendedAttribute(m_projectFile, mpx, attrib.getValue(), mpxFieldID, durationFormat); } }
[ "This method processes any extended attributes associated with a resource.\n\n@param xml MSPDI resource instance\n@param mpx MPX resource instance" ]
[ "The fields returned by default. Typically the output is done via display formatters and hence nearly no\nfield is necessary. Returning all fields might cause performance problems.\n\n@return the default return fields.", "Extracts baseline cost from the MPP file for a specific baseline.\nReturns null if no baseline cost is present, otherwise returns\na list of timephased work items.\n\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephased baseline work data block\n@param raw flag indicating if this data is to be treated as raw\n@return timephased work", "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException", "Parse currency.\n\n@param value currency value\n@return currency value", "Return the list of galleries created by a user. Sorted from newest to oldest.\n\n@param userId\nThe user you want to check for\n@param perPage\nNumber of galleries per page\n@param page\nThe page number\n@return gallery\n@throws FlickrException\n\n@see <a hrerf=\"http://www.flickr.com/services/api/flickr.galleries.getList.html\">flickr.galleries.getList</a>", "Use this API to unset the properties of systemuser resource.\nProperties that need to be unset are specified in args array.", "Use picasso to render the video thumbnail into the thumbnail widget using a temporal\nplaceholder.\n\n@param video to get the rendered thumbnail.", "Validates the binding types", "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" ]
public static ModelNode getParentAddress(final ModelNode address) { if (address.getType() != ModelType.LIST) { throw new IllegalArgumentException("The address type must be a list."); } final ModelNode result = new ModelNode(); final List<Property> addressParts = address.asPropertyList(); if (addressParts.isEmpty()) { throw new IllegalArgumentException("The address is empty."); } for (int i = 0; i < addressParts.size() - 1; ++i) { final Property property = addressParts.get(i); result.add(property.getName(), property.getValue()); } return result; }
[ "Finds the parent address, everything before the last address part.\n\n@param address the address to get the parent\n\n@return the parent address\n\n@throws IllegalArgumentException if the address is not of type {@link ModelType#LIST} or is empty" ]
[ "Parser for forecast\n\n@param feed\n@return", "Joins the given iterable objects using the given separator into a single string.\n\n@return the joined string or an empty string if iterable is null", "this method is not intended to be called by clients\n@since 2.12", "Transforms an input file into HTML using the given Configuration.\n\n@param file\nThe File to process.\n@param configuration\nthe Configuration\n@return The processed String.\n@throws IOException\nif an IO error occurs\n@since 0.7\n@see Configuration", "Returns all model classes registered on this datasource\n\n@return model classes talk to this datasource", "Get Rule\nGet a rule using the Rule ID\n@param ruleId Rule ID. (required)\n@return RuleEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Executes a given SPARQL query and returns a stream with the result in\nJSON format.\n\n@param query\n@return\n@throws IOException", "Add an empty work week.\n\n@return new work week", "Get or create the log context based on the logging profile.\n\n@param loggingProfile the logging profile to get or create the log context for\n\n@return the log context that was found or a new log context" ]
public ItemRequest<Project> delete(String project) { String path = String.format("/projects/%s", project); return new ItemRequest<Project>(this, Project.class, path, "DELETE"); }
[ "A specific, existing project can be deleted by making a DELETE request\non the URL for that project.\n\nReturns an empty data record.\n\n@param project The project to delete.\n@return Request object" ]
[ "Initialize the random generator with a seed.", "Checks if the given operator code is a valid one.\n\n@param operatorCode an operator code to evaluate\n@throws IllegalStateException if operatorCode is not a known operator code.", "Moves a calendar to the nth named day of the month.\n\n@param calendar current date\n@param dayNumber nth day", "Checks if data set is mandatory but missing or non repeatable but having\nmultiple values in this IIM instance.\n\n@param info\nIIM data set to check\n@return list of constraint violations, empty set if data set is valid", "Returns all model classes registered on this datasource\n\n@return model classes talk to this datasource", "Returns a string that represents a valid Solr query range.\n\n@param from Lower bound of the query range.\n@param to Upper bound of the query range.\n@return String that represents a Solr query range.", "Returns an empty map with expected size matching the iterable size if\nit's of type Collection. Otherwise, an empty map with the default size is\nreturned.", "Indicate whether the given URI matches this template.\n@param uri the URI to match to\n@return {@code true} if it matches; {@code false} otherwise", "Resolve the subsystem versions.\n\n@param extensions the extensions to install\n@return the subsystem versions" ]
public void fireEvent(final WorkerEvent event, final Worker worker, final String queue, final Job job, final Object runner, final Object result, final Throwable t) { final ConcurrentSet<WorkerListener> listeners = this.eventListenerMap.get(event); if (listeners != null) { for (final WorkerListener listener : listeners) { if (listener != null) { try { listener.onEvent(event, worker, queue, job, runner, result, t); } catch (Exception e) { log.error("Failure executing listener " + listener + " for event " + event + " from queue " + queue + " on worker " + worker, e); } } } } }
[ "Notify all WorkerListeners currently registered for the given WorkerEvent.\n@param event the WorkerEvent that occurred\n@param worker the Worker that the event occurred in\n@param queue the queue the Worker is processing\n@param job the Job related to the event (only supply for JOB_PROCESS, JOB_EXECUTE, JOB_SUCCESS, and\nJOB_FAILURE events)\n@param runner the materialized object that the Job specified (only supply for JOB_EXECUTE and\nJOB_SUCCESS events)\n@param result the result of the successful execution of the Job (only set for JOB_SUCCESS and if the Job was\na Callable that returned a value)\n@param t the Throwable that caused the event (only supply for JOB_FAILURE and ERROR events)" ]
[ "Constructs a triangule Face from vertices v0, v1, and v2.\n\n@param v0\nfirst vertex\n@param v1\nsecond vertex\n@param v2\nthird vertex", "Write file creation record.\n\n@throws IOException", "Determines a histogram of contiguous runs of partitions within a zone.\nI.e., for each run length of contiguous partitions, how many such runs\nare there.\n\nDoes not correctly address \"wrap around\" of partition IDs (i.e., the fact\nthat partition ID 0 is \"next\" to partition ID 'max')\n\n@param cluster\n@param zoneId\n@return map of length of contiguous run of partitions to count of number\nof such runs.", "Should use as destroy method. Disconnects from a Service Locator server.\nAll endpoints that were registered before are removed from the server.\nSet property locatorClient to null.\n\n@throws InterruptedException\n@throws ServiceLocatorException", "Sets the values of this input field. Only Applicable check-boxes and a radio buttons.\n\n@param values Values to set.", "Wrap Statement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a statement.", "this class requires that the supplied enum is not fitting a\nCollection case for casting", "Calculates the squared curvature of the LIBOR instantaneous variance.\n\n@param evaluationTime Time at which the product is evaluated.\n@param model A model implementing the LIBORModelMonteCarloSimulationModel\n@return The squared curvature of the LIBOR instantaneous variance (reduced a possible tolerance). The return value is &ge; 0.", "Set the minimum date limit." ]