query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void addDependency(final Dependency dependency) { if(dependency != null && !dependencies.contains(dependency)){ this.dependencies.add(dependency); } }
[ "Add a dependency to the module.\n\n@param dependency Dependency" ]
[ "Create and return a new Violation for this rule and the specified values\n@param lineNumber - the line number for the violation; may be null\n@param sourceLine - the source line for the violation; may be null\n@param message - the message for the violation; may be null\n@return a new Violation object", "Is portlet env supported.\n\n@return true if portlet env is supported, false otherwise", "Parse duration time units.\n\nNote that we don't differentiate between confirmed and unconfirmed\ndurations. Unrecognised duration types are default the supplied default value.\n\n@param value BigInteger value\n@param defaultValue if value is null, use this value as the result\n@return Duration units", "Returns a string that should be used as a label for the given property.\n\n@param propertyIdValue\nthe property to label\n@return the label", "Render a zero Double as null.\n\n@param value double value\n@return null if the double value is zero", "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", "Sets the node meta data.\n\n@param key - the meta data key\n@param value - the meta data value\n@throws GroovyBugError if key is null or there is already meta\ndata under that key", "Mbeans for UPDATE_ENTRIES", "Called when a ParentViewHolder has triggered a collapse for it's parent\n\n@param flatParentPosition the position of the parent that is calling to be collapsed" ]
public void removePath(int pathId) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { // remove any enabled overrides with this path statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_ENABLED_OVERRIDE + " WHERE " + Constants.ENABLED_OVERRIDES_PATH_ID + " = ?" ); statement.setInt(1, pathId); statement.executeUpdate(); statement.close(); // remove path statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_PATH + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setInt(1, pathId); statement.executeUpdate(); statement.close(); //remove path from responseRequest statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_REQUEST_RESPONSE + " WHERE " + Constants.REQUEST_RESPONSE_PATH_ID + " = ?" ); statement.setInt(1, pathId); statement.executeUpdate(); statement.close(); } catch (SQLException e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Remove a path\n\n@param pathId ID of path" ]
[ "cleanup tx and prepare for reuse", "Get the last modified time for a set of files.", "Allows this closeable to be used within the closure, ensuring that it\nis closed once the closure has been executed and before this method returns.\n\n@param self the Closeable\n@param action the closure taking the Closeable as parameter\n@return the value returned by the closure\n@throws IOException if an IOException occurs.\n@since 2.4.0", "Finish initializing the service.", "Sets the HTML entity translator for all cells in the table.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator\n@return this to allow chaining", "Returns an empty Promotion details in Json\n\n@return String\n@throws IOException", "Sets the specified float attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "Create the index and associate it with all project models in the Application", "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" ]
public CollectionRequest<Team> users(String team) { String path = String.format("/teams/%s/users", team); return new CollectionRequest<Team>(this, Team.class, path, "GET"); }
[ "Returns the compact records for all users that are members of the team.\n\n@param team Globally unique identifier for the team.\n@return Request object" ]
[ "Converts a tab delimited string into an object with given fields\nRequires the object has setXxx functions for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterRegex delimiter regular expression\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string", "Set the weekdays at which the event should take place.\n@param weekDays the weekdays at which the event should take place.", "Get the element at the index as a float.\n\n@param i the index of the element to access", "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.", "Converts a class into a signature token.\n\n@param c class\n@return signature token text", "Determines the java.sql.Types constant value from an OJB\nFIELDDESCRIPTOR value.\n\n@param type The FIELDDESCRIPTOR which JDBC type is to be determined.\n\n@return int the int value representing the Type according to\n\n@throws SQLException if the type is not a valid jdbc type.\njava.sql.Types", "A loop driver for applying operations to all primary ClassNodes in\nour AST. Automatically skips units that have already been processed\nthrough the current phase.", "Perform the merge\n\n@param stereotypeAnnotations The stereotype annotations", "Utility function that checks if store names are valid on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@param storeNames Store names to check" ]
public void setOjbQuery(org.apache.ojb.broker.query.Query ojbQuery) { this.ojbQuery = ojbQuery; }
[ "Sets the ojbQuery, needed only as long we\ndon't support the soda constraint stuff.\n@param ojbQuery The ojbQuery to set" ]
[ "Reads the CSS and JavaScript files from the JAR file and writes them to\nthe output directory.\n@param outputDirectory Where to put the resources.\n@throws IOException If the resources can't be read or written.", "Get the subsystem deployment model root.\n\n<p>\nIf the subsystem resource does not exist one will be created.\n</p>\n\n@param subsystemName the subsystem name.\n\n@return the model", "Sets the target translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator", "Obtain all groups\n\n@return All Groups", "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)", "Return the value from the field in the object that is defined by this FieldType.", "Set the groups assigned to a path\n\n@param groups group IDs to set\n@param pathId ID of path", "Use this API to fetch sslpolicy_lbvserver_binding resources of given name .", "Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler." ]
public static IntRange GetRange( int[] values, double percent ){ int total = 0, n = values.length; // for all values for ( int i = 0; i < n; i++ ) { // accumalate total total += values[i]; } int min, max, hits; int h = (int) ( total * ( percent + ( 1 - percent ) / 2 ) ); // get range min value for ( min = 0, hits = total; min < n; min++ ) { hits -= values[min]; if ( hits < h ) break; } // get range max value for ( max = n - 1, hits = total; max >= 0; max-- ) { hits -= values[max]; if ( hits < h ) break; } return new IntRange( min, max ); }
[ "Get range around median containing specified percentage of values.\n@param values Values.\n@param percent Values percentage around median.\n@return Returns the range which containes specifies percentage of values." ]
[ "Sets an argument to the collection of arguments. This guarantees only one value will be assigned to the\nargument key.\n\n@param argument the argument to add", "default visibility for unit test", "This method extracts data for an exception day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data", "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.", "Check whether the delegate type implements or extends all decorated types.\n\n@param decorator\n@throws DefinitionException If the delegate type doesn't implement or extend all decorated types", "Use this API to fetch all the appflowpolicylabel resources that are configured on netscaler.", "Use this API to update route6 resources.", "Creates the graphic element to be shown when the datasource is empty", "Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder" ]
private static int findNext(boolean reverse, int pos) { boolean backwards = IS_BACKWARDS_CHECKBOX.isSelected(); backwards = backwards ? !reverse : reverse; String pattern = (String) FIND_FIELD.getSelectedItem(); if (pattern != null && pattern.length() > 0) { try { Document doc = textComponent.getDocument(); doc.getText(0, doc.getLength(), SEGMENT); } catch (Exception e) { // should NEVER reach here e.printStackTrace(); } pos += textComponent.getSelectedText() == null ? (backwards ? -1 : 1) : 0; char first = backwards ? pattern.charAt(pattern.length() - 1) : pattern.charAt(0); char oppFirst = Character.isUpperCase(first) ? Character.toLowerCase(first) : Character.toUpperCase(first); int start = pos; boolean wrapped = WRAP_SEARCH_CHECKBOX.isSelected(); int end = backwards ? 0 : SEGMENT.getEndIndex(); pos += backwards ? -1 : 1; int length = textComponent.getDocument().getLength(); if (pos > length) { pos = wrapped ? 0 : length; } boolean found = false; while (!found && (backwards ? pos > end : pos < end)) { found = !MATCH_CASE_CHECKBOX.isSelected() && SEGMENT.array[pos] == oppFirst; found = found ? found : SEGMENT.array[pos] == first; if (found) { pos += backwards ? -(pattern.length() - 1) : 0; for (int i = 0; found && i < pattern.length(); i++) { char c = pattern.charAt(i); found = SEGMENT.array[pos + i] == c; if (!MATCH_CASE_CHECKBOX.isSelected() && !found) { c = Character.isUpperCase(c) ? Character.toLowerCase(c) : Character.toUpperCase(c); found = SEGMENT.array[pos + i] == c; } } } if (!found) { pos += backwards ? -1 : 1; if (pos == end && wrapped) { pos = backwards ? SEGMENT.getEndIndex() : 0; end = start; wrapped = false; } } } pos = found ? pos : -1; } return pos; }
[ "Find and select the next searchable matching text.\n\n@param reverse look forwards or backwards\n@param pos the starting index to start finding from\n@return the location of the next selected, or -1 if not found" ]
[ "The default User-Agent header. Override this method to override the user agent.\n\n@return the user agent string.", "Fires the event.\n\n@param source the event source\n@param date the date\n@param isTyping true if event was caused by user pressing key that may have changed the value", "Read the tag structure from the provided stream.", "characters callback.", "Use this API to clear configuration on netscaler.\n@param force clear confirmation without prompting.\n@param level clear config according to the level. eg: basic, extended, full\n@return status of the operation performed.\n@throws Exception Nitro exception is thrown.", "Sets the elements in this matrix to be equal to the elements in the passed in matrix.\nBoth matrix must have the same dimension.\n\n@param a The matrix whose value this matrix is being set to.", "We have received an update that invalidates the beat grid for a player, so clear it and alert\nany listeners if this represents a change. This does not affect the hot cues; they will stick around until the\nplayer loads a new track that overwrites one or more of them.\n\n@param update the update which means we have no beat grid for the associated player", "Return the project name or the default project name.", "Use this API to unset the properties of ipv6 resource.\nProperties that need to be unset are specified in args array." ]
public static route6[] get(nitro_service service) throws Exception{ route6 obj = new route6(); route6[] response = (route6[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the route6 resources that are configured on netscaler." ]
[ "Checks if a point is in the given rectangle.\n\n@param _Rect rectangle which is checked\n@param _X x-coordinate of the point\n@param _Y y-coordinate of the point\n@return True if the points intersects with the rectangle.", "Utility method to remove ampersands embedded in names.\n\n@param name name text\n@return name text without embedded ampersands", "Function to update store definitions. Unlike the put method, this\nfunction does not delete any existing state. It only updates the state of\nthe stores specified in the given stores.xml\n\n@param valueBytes specifies the bytes of the stores.xml containing\nupdates for the specified stores", "Process this deployment for annotations. This will use an annotation indexer to create an index of all annotations\nfound in this deployment and attach it to the deployment unit context.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Get the first non-white X point\n@param img Image n memory\n@return the x start", "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text", "returns the zero argument constructor for the class represented by this class descriptor\nor null if a zero argument constructor does not exist. If the zero argument constructor\nfor this class is not public it is made accessible before being returned.", "Remove attachments matches pattern from step and all step substeps\n\n@param context from which attachments will be removed", "Calculate UserInfo strings." ]
public static DMatrixRMaj insideSpan(DMatrixRMaj[] span , double min , double max , Random rand ) { DMatrixRMaj A = new DMatrixRMaj(span.length,1); DMatrixRMaj B = new DMatrixRMaj(span[0].getNumElements(),1); for( int i = 0; i < span.length; i++ ) { B.set(span[i]); double val = rand.nextDouble()*(max-min)+min; CommonOps_DDRM.scale(val,B); CommonOps_DDRM.add(A,B,A); } return A; }
[ "Creates a random vector that is inside the specified span.\n\n@param span The span the random vector belongs in.\n@param rand RNG\n@return A random vector within the specified span." ]
[ "Return true if the AST expression has not already been visited. If it is\nthe first visit, register the expression so that the next visit will return false.\n\n@param expression - the AST expression to check\n@return true if the AST expression has NOT already been visited", "Registers your facet filters, adding them to this InstantSearch's widgets.\n\n@param filters a List of facet filters.", "Get a property as a boolean or default value.\n\n@param key the property name\n@param defaultValue the default", "Should be called after new data is inserted. Will be automatically called, when the view dimensions\nhas changed.\n\nCalculates the start- and end-angles for every PieSlice.", "A safe wrapper to destroy the given resource request.", "Write flow id.\n\n@param message the message\n@param flowId the flow id", "Writes the data collected about properties to a file.", "Parse a version String and add the components to a properties object.\n\n@param version the version to parse", "Scans given archive for files passing given filter, adds the results into given list." ]
private void requestPlayerDBServerPort(DeviceAnnouncement announcement) { Socket socket = null; try { InetSocketAddress address = new InetSocketAddress(announcement.getAddress(), DB_SERVER_QUERY_PORT); socket = new Socket(); socket.connect(address, socketTimeout.get()); InputStream is = socket.getInputStream(); OutputStream os = socket.getOutputStream(); socket.setSoTimeout(socketTimeout.get()); os.write(DB_SERVER_QUERY_PACKET); byte[] response = readResponseWithExpectedSize(is, 2, "database server port query packet"); if (response.length == 2) { setPlayerDBServerPort(announcement.getNumber(), (int)Util.bytesToNumber(response, 0, 2)); } } catch (java.net.ConnectException ce) { logger.info("Player " + announcement.getNumber() + " doesn't answer rekordbox port queries, connection refused. Won't attempt to request metadata."); } catch (Exception e) { logger.warn("Problem requesting database server port number", e); } finally { if (socket != null) { try { socket.close(); } catch (IOException e) { logger.warn("Problem closing database server port request socket", e); } } } }
[ "Query a player to determine the port on which its database server is running.\n\n@param announcement the device announcement with which we detected a new player on the network." ]
[ "Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.\n\n@param self an Object with an iterator returning its values\n@param defaultResult an Object that should be returned if all closure results are null\n@param closure a closure that returns a non-null value when processing should stop\n@return the first non-null result of the closure, otherwise the default value\n@since 1.7.5", "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.", "Add data for a column to this table.\n\n@param column column data", "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment", "set custom response for profile's default client\n\n@param profileName profileName to modify\n@param pathName friendly name of path\n@param customData custom request data\n@return true if success, false otherwise", "Creates a simple deployment description.\n\n@param name the name for the deployment\n@param serverGroups the server groups\n\n@return the deployment description", "Use this API to rename a gslbservice resource.", "Use this API to fetch statistics of appfwpolicylabel_stats resource of given name .", "Registers the resource to the parent deployment resource. The model returned is that of the resource parameter.\n\n@param subsystemName the subsystem name\n@param resource the resource to be used for the subsystem on the deployment\n\n@return the model\n\n@throws java.lang.IllegalStateException if the subsystem resource already exists" ]
public DynamicReportBuilder addStyle(Style style) throws DJBuilderException { if (style.getName() == null) { throw new DJBuilderException("Invalid style. The style must have a name"); } report.addStyle(style); return this; }
[ "You can register styles object for later reference them directly. Parent\nstyles should be registered this way\n\n@param style\n@return\n@throws DJBuilderException" ]
[ "Use this API to update snmpalarm resources.", "Returns a prefix length for which the range of this segment grouping matches the the block of addresses for that prefix.\n\nIf no such prefix exists, returns null\n\nIf this segment grouping represents a single value, returns the bit length\n\n@return the prefix length or null", "Gets the argument names of a method call. If the arguments are not VariableExpressions then a null\nwill be returned.\n@param methodCall\nthe method call to search\n@return\na list of strings, never null, but some elements may be null", "Reads the configuration of a field facet.\n@param pathPrefix The XML Path that leads to the field facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configuration, or <code>null</code> if the XML was not correctly structured.", "Select a List of characters from a CharSequence using a Collection\nto identify the indices to be selected.\n\n@param self a CharSequence\n@param indices a Collection of indices\n@return a String consisting of the characters at the given indices\n@since 1.0", "Change the currentState to the nextState if possible. The next state should already be\npresent in the graph.\n\n@param nextState the next state.\n@return true if currentState is successfully changed.", "Switches to the next tab.", "Return the name of the current conf set\n@return the conf set name", "Sets a configuration option to the specified value." ]
public void setDefaultInterval(long defaultInterval) { if(defaultInterval <= 0) { LOG.severe("collector.scheduler.interval must be greater than 0. Recommended value is 500-1000. Current value is " + defaultInterval); throw new IllegalArgumentException("collector.scheduler.interval must be greater than 0. Recommended value is 500-1000. Current value is " + defaultInterval); } this.defaultInterval = defaultInterval; }
[ "Set default interval for sending events to monitoring service. DefaultInterval will be used by\nscheduler.\n\n@param defaultInterval the new default interval" ]
[ "Set an enterprise number value.\n\n@param index number index (1-40)\n@param value number value", "Gets the node meta data.\n\n@param key - the meta data key\n@return the node meta data value for this key", "Split a span into two by adding a knot in the middle.\n@param n the span index", "Concats two arrays.\n\n@param first the first array\n@param second the second array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first one", "Ask the specified player for the specified waveform preview from the specified media slot, first checking if we\nhave a cached copy.\n\n@param dataReference uniquely identifies the desired waveform preview\n\n@return the preview, if it was found, or {@code null}\n\n@throws IllegalStateException if the WaveformFinder is not running", "Perform the given work with a Jedis connection from the given pool.\n\n@param pool the resource pool\n@param work the work to perform\n@param <V> the result type\n@return the result of the given work\n@throws Exception if something went wrong", "Returns the mode in the Collection. If the Collection has multiple modes, this method picks one\narbitrarily.", "Resolve the targeted license thanks to the license ID\nReturn null if no license is matching the licenseId\n\n@param licenseId\n@return DbLicense", "Remove a path from a profile\n\n@param path_id path ID to remove\n@param profileId profile ID to remove path from" ]
public static void validate(final Module module) { if (null == module) { throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Module cannot be null!") .build()); } if(module.getName() == null || module.getName().isEmpty()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Module name cannot be null or empty!") .build()); } if(module.getVersion()== null || module.getVersion().isEmpty()){ throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST) .entity("Module version cannot be null or empty!") .build()); } // Check artifacts for(final Artifact artifact: DataUtils.getAllArtifacts(module)){ validate(artifact); } // Check dependencies for(final Dependency dependency: DataUtils.getAllDependencies(module)){ validate(dependency.getTarget()); } }
[ "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" ]
[ "Check if there is an attribute which tells us which concrete class is to be instantiated.", "Returns the most likely class for the word at the given position.", "Helper method to check if log4j is already configured", "Prepare the baseURL to make a request.\n\n@param matrixId matrixId\n@param row row\n@param col cold\n@param layerParam layerParam", "Calculate which pie slice is under the pointer, and set the current item\nfield accordingly.", "package scope in order to test the method", "Aliases variables with an unknown type.\n@param variable The variable being aliased\n@param name Name of the variable", "Resets the text box by removing its content and resetting visual state.", "Upload file and set odo overrides and configuration of odo\n\n@param fileName File containing configuration\n@param odoImport Import odo configuration in addition to overrides\n@return If upload was successful" ]
public synchronized boolean acquireRebalancingPermit(int nodeId) { boolean added = rebalancePermits.add(nodeId); logger.info("Acquiring rebalancing permit for node id " + nodeId + ", returned: " + added); return added; }
[ "Acquire a permit for a particular node id so as to allow rebalancing\n\n@param nodeId The id of the node for which we are acquiring a permit\n@return Returns true if permit acquired, false if the permit is already\nheld by someone" ]
[ "Logs a message for a case where the value of a property does not fit to\nits declared datatype.\n\n@param propertyIdValue\nthe property that was used\n@param datatype\nthe declared type of the property\n@param valueType\na string to denote the type of value", "Notifies that a footer item is changed.\n\n@param position the position.", "Adds the complex number with a scalar value.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the add of specified complex number with scalar value.", "Builds the HTML code for a select widget given a bean containing the select options\n\n@param htmlAttributes html attributes for the select widget\n@param options the bean containing the select options\n\n@return the HTML for the select box", "If you register a CustomExpression with the name \"customExpName\", then this will create the text needed\nto invoke it in a JRDesignExpression\n\n@param customExpName\n@param usePreviousFieldValues\n@return", "Construct new path by replacing file directory part. No\nfiles are actually modified.\n@param file path to move\n@param target new path directory", "Use this API to delete dnsaaaarec resources.", "Create a local target.\n\n@param jbossHome the jboss home\n@param moduleRoots the module roots\n@param bundlesRoots the bundle roots\n@return the local target\n@throws IOException", "Matrix inverse for symmetric positive definite matrices. For small matrices an unrolled\ncholesky is used. Otherwise a standard decomposition.\n\n@see UnrolledCholesky_DDRM\n@see LinearSolverFactory_DDRM#chol(int)\n\n@param mat (Input) SPD matrix\n@param result (Output) Inverted matrix.\n@return true if it could invert the matrix false if it could not." ]
@Override public void set(String headerName, String headerValue) { List<String> headerValues = new LinkedList<String>(); headerValues.add(headerValue); headers.put(headerName, headerValues); }
[ "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)" ]
[ "Create the log if it does not exist or return back exist log\n\n@param topic the topic name\n@param partition the partition id\n@return read or create a log\n@throws IOException any IOException", "Dumps a texture coordinate set of a mesh to stdout.\n\n@param mesh the mesh\n@param coords the coordinates", "Get new vector clock based on this clock but incremented on index nodeId\n\n@param nodeId The id of the node to increment\n@return A vector clock equal on each element execept that indexed by\nnodeId", "Adjusts the day in the provided month, that it fits the specified week day.\nIf there's no match for that provided month, the next possible month is checked.\n\n@param date the date to adjust, with the correct year and month already set.", "The user making this call must be an admin in the workspace.\nReturns an empty data record.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Convert string to qname.\n\n@param str the string\n@return the qname", "Use this API to fetch clusterinstance_binding resource of given name .", "Gets the argument names of a method call. If the arguments are not VariableExpressions then a null\nwill be returned.\n@param methodCall\nthe method call to search\n@return\na list of strings, never null, but some elements may be null", "Read resource data from a PEP file." ]
public Date getPreviousWorkFinish(Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); updateToPreviousWorkFinish(cal); return cal.getTime(); }
[ "Utility method to retrieve the previous working date finish time, given\na date and time as a starting point.\n\n@param date date and time start point\n@return date and time of previous work finish" ]
[ "Loads the currently known phases from Furnace to the map.", "Write a string field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Prepare our statement for the subclasses.\n\n@param limit\nLimit for queries. Can be null if none.", "set custom response for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise", "Compute a Catmull-Rom spline for RGB values, but with variable knot spacing.\n@param x the input parameter\n@param numKnots the number of knots in the spline\n@param xknots the array of knot x values\n@param yknots the array of knot y values\n@return the spline value", "The indices space is ignored for reduce ops other than min or max.", "This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance", "Plots the trajectory\n@param title Title of the plot\n@param t Trajectory to be plotted", "Obtain instance of the SQL Service\n\n@return instance of SQLService\n@throws Exception exception" ]
public static <T> Iterator<T> unique(Iterator<T> self) { return toList((Iterable<T>) unique(toList(self))).listIterator(); }
[ "Returns an iterator equivalent to this iterator with all duplicated items removed\nby using the default comparator. The original iterator will become\nexhausted of elements after determining the unique values. A new iterator\nfor the unique values will be returned.\n\n@param self an Iterator\n@return the modified Iterator\n@since 1.5.5" ]
[ "returns the zero argument constructor for the class represented by this class descriptor\nor null if a zero argument constructor does not exist. If the zero argument constructor\nfor this class is not public it is made accessible before being returned.", "Setting the type of Checkbox.", "Use this API to flush cachecontentgroup.", "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", "Use this API to fetch tunneltrafficpolicy resource of given name .", "Reads a row of a CSV file and populates the bean, using the supplied name mapping to map column values to the\nappropriate fields. If processors are supplied then they are used, otherwise the raw String values will be used.\n\n@param bean\nthe bean to populate\n@param nameMapping\nthe name mapping array\n@param processors\nthe (optional) cell processors\n@return the populated bean, or null if EOF was reached\n@throws IllegalArgumentException\nif nameMapping.length != number of CSV columns read\n@throws IOException\nif an I/O error occurred\n@throws NullPointerException\nif bean or nameMapping are null\n@throws SuperCsvConstraintViolationException\nif a CellProcessor constraint failed\n@throws SuperCsvException\nif there was a general exception while reading/processing\n@throws SuperCsvReflectionException\nif there was an reflection exception while mapping the values to the bean", "This method lists task predecessor and successor relationships.\n\n@param file project file", "Parse a string representation of a Boolean value.\nXER files sometimes have \"N\" and \"Y\" to indicate boolean\n\n@param value string representation\n@return Boolean value", "Find the channel in the animation that animates the named bone.\n@param boneName name of bone to animate." ]
@SuppressWarnings("unchecked") public <T extends Annotation> T getAnnotation(Class<T> annotationType) { for (Annotation annotation : this.annotations) { if (annotation.annotationType().equals(annotationType)) { return (T) annotation; } } for (Annotation metaAnn : this.annotations) { T ann = metaAnn.annotationType().getAnnotation(annotationType); if (ann != null) { return ann; } } return null; }
[ "Obtain the annotation associated with this type descriptor of the specified type.\n@param annotationType the annotation type\n@return the annotation, or {@code null} if no such annotation exists on this type descriptor" ]
[ "Normalizes the matrix such that the Frobenius norm is equal to one.\n\n@param A The matrix that is to be normalized.", "Gets any previous versions of this file. Note that only users with premium accounts will be able to retrieve\nprevious versions of their files.\n\n@return a list of previous file versions.", "This method maps the encoded height of a Gantt bar to\nthe height in pixels.\n\n@param height encoded height\n@return height in pixels", "Checks the orderby attribute.\n\n@param collDef The collection descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the value for orderby is invalid (unknown field or ordering)", "Used when setting the \"visible\" field in the response. See the \"List Conversations\" docs for details\n@param filters Filter strings to be applied to the visibility of conversations\n@return this to continue building options", "Processes the template for all class definitions.\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\"", "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task", "Calculate start dates for a monthly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start dates", "Generates a JSON patch for transforming the source node into the target node.\n\n@param source the node to be patched\n@param target the expected result after applying the patch\n@param replaceMode the replace mode to be used\n@return the patch as a {@link JsonPatch}" ]
public DomainList getPhotostreamDomains(Date date, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_PHOTOSTREAM_DOMAINS, null, null, date, perPage, page); }
[ "Get a list of referring domains for a photostream.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param 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.getPhotostreamDomains.html\"" ]
[ "Process data for an individual calendar.\n\n@param row calendar data", "Sanity checks the input or declares a new matrix. Return matrix is an identity matrix.", "Splits data into blocks, adds error correction and then interleaves the blocks and error correction data.", "Validates operation model against the definition and its parameters\n\n@param operation model node of type {@link ModelType#OBJECT}, representing an operation request\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release", "Get the collection of the server groups\n\n@return Collection of active server groups", "Adds a user defined field value to a task.\n\n@param fieldType field type\n@param container FieldContainer instance\n@param row UDF data", "Set the header names to forward from the request. Should not be defined if all is set to true\n\n@param names the header names.", "Use this API to delete cacheselector of given name.", "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment." ]
public static String get(MessageKey key) { return data.getProperty(key.toString(), key.toString()); }
[ "Retrieves the configured message by property key\n@param key The key in the file\n@return The associated value in case the key is found in the message bundle file. If\nno such key is defined, the returned value would be the key itself." ]
[ "To read an object in a quick & dirty way. Prepare to handle failures when object serialization changes!", "Check position type.\n\n@param type the type\n@return the boolean", "Returns the bill for the month specified.\n\n@param month for which bill to retrieve.\n@param year for which bill to retrieve.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "This method generates a list of lists. Each list represents the data\nfor an embedded object, and contains set set of RTFEmbeddedObject instances\nthat make up the embedded object. This method will return null\nif there are no embedded objects in the RTF document.\n\n@param text RTF document\n@return list of lists of RTFEmbeddedObject instances", "Get the collection of untagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\n@param page\n@return A Collection of Photos\n@throws FlickrException", "Used to get PB, when no tx is running.", "Find the index of the first matching element in the list\n@param element the element value to find\n@return the index of the first matching element, or <code>-1</code> if none found", "Adds steps types from given injector and recursively its parent\n\n@param injector the current Inject\n@param types the List of steps types", "Use this API to add vpnclientlessaccesspolicy." ]
public static base_responses update(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 updateresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nspbr6(); updateresources[i].name = resources[i].name; updateresources[i].action = resources[i].action; updateresources[i].srcipv6 = resources[i].srcipv6; updateresources[i].srcipop = resources[i].srcipop; updateresources[i].srcipv6val = resources[i].srcipv6val; updateresources[i].srcport = resources[i].srcport; updateresources[i].srcportop = resources[i].srcportop; updateresources[i].srcportval = resources[i].srcportval; updateresources[i].destipv6 = resources[i].destipv6; updateresources[i].destipop = resources[i].destipop; updateresources[i].destipv6val = resources[i].destipv6val; updateresources[i].destport = resources[i].destport; updateresources[i].destportop = resources[i].destportop; updateresources[i].destportval = resources[i].destportval; updateresources[i].srcmac = resources[i].srcmac; updateresources[i].protocol = resources[i].protocol; updateresources[i].protocolnumber = resources[i].protocolnumber; updateresources[i].vlan = resources[i].vlan; updateresources[i].Interface = resources[i].Interface; updateresources[i].priority = resources[i].priority; updateresources[i].msr = resources[i].msr; updateresources[i].monitor = resources[i].monitor; updateresources[i].nexthop = resources[i].nexthop; updateresources[i].nexthopval = resources[i].nexthopval; updateresources[i].nexthopvlan = resources[i].nexthopvlan; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update nspbr6 resources." ]
[ "This method returns the installed identity with the requested name and version.\nIf the product name is null, the default identity will be returned.\n\nIf the product name was recognized and the requested version was not null,\nthe version comparison will take place. If the version of the currently installed product\ndoesn't match the requested one, the exception will be thrown.\nIf the requested version is null, the currently installed identity with the requested name\nwill be returned.\n\nIf the product name was not recognized among the registered ones, a new installed identity\nwith the requested name will be created and returned. (This is because the patching system\nis not aware of how many and what the patching streams there are expected).\n\n@param productName\n@param productVersion\n@return\n@throws PatchingException", "Feeds input stream to data consumer using metadata from tar entry.\n@param consumer the consumer\n@param inputStream the stream to feed\n@param entry the entry to use for metadata\n@throws IOException on consume error", "Processes an anonymous field definition specified at the class level.\n\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"content\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the field as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"autoincrement\" optional=\"true\" description=\"Whether the field is\nauto-incremented\" values=\"true,false\"\[email protected] name=\"column\" optional=\"true\" description=\"The column for the field\"\[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=\"name\" optional=\"false\" description=\"The name of the field\"\[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\"", "Join the Collection of Strings using the specified delimter and optionally quoting each\n\n@param s\nThe String collection\n@param delimiter\nthe delimiter String\n@param doQuote\nwhether or not to quote the Strings\n@return The joined String", "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "Set the Log4j appender.\n\n@param appender the log4j appender", "Get the real Object for already materialized Handler\n\n@param objectOrProxy\n@return Object or null if the Handel is not materialized", "Format a date that is parseable from JavaScript, according to ISO-8601.\n\n@param date the date to format to a JSON string\n@return a formatted date in the form of a string", "Creates the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node" ]
private static String getSolrSpellcheckRfsPath() { String sPath = OpenCms.getSystemInfo().getWebInfRfsPath(); if (!OpenCms.getSystemInfo().getWebInfRfsPath().endsWith(File.separator)) { sPath += File.separator; } return sPath + "solr" + File.separator + "spellcheck" + File.separator + "data"; }
[ "Returns the path in the RFS where the Solr spellcheck files reside.\n@return String representation of Solrs spellcheck RFS path." ]
[ "Use this API to fetch tmtrafficaction resource of given name .", "Repeat a CharSequence a certain number of times.\n\n@param self a CharSequence to be repeated\n@param factor the number of times the CharSequence should be repeated\n@return a String composed of a repetition\n@throws IllegalArgumentException if the number of repetitions is &lt; 0\n@since 1.8.2", "Gets the registration point that been associated with the registration for the longest period.\n\n@return the initial registration point, or {@code null} if there are no longer any registration points", "Adds is Null criteria,\ncustomer_id is Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Convert a given date to a floating point date using a given reference date.\n\n@param referenceDate The reference date associated with \\( t=0 \\).\n@param date The given date to be associated with the return value \\( T \\).\n@return The value T measuring the distance of reference date and date by ACT/365 with SECONDS_PER_DAY seconds used as the smallest time unit and SECONDS_PER_DAY is a constant 365*24*60*60.", "Shows the Loader component", "Checks if a given number is in the range of a byte.\n\n@param number\na number which should be in the range of a byte (positive or negative)\n\n@see java.lang.Byte#MIN_VALUE\n@see java.lang.Byte#MAX_VALUE\n\n@return number as a byte (rounding might occur)", "Format the label text.\n\n@param scaleUnit The unit used for the scalebar.\n@param value The scale value.\n@param intervalUnit The scaled unit for the intervals.", "Populate a Command instance with the values parsed from a command line\nIf any parser errors are detected it will throw an exception\n@param processedCommand command line\n@param mode do validation or not\n@throws CommandLineParserException any incorrectness in the parser will abort the populate" ]
@SuppressWarnings({"unused", "WeakerAccess"}) public int getTotalVisits() { EventDetail ed = getLocalDataStore().getEventDetail(Constants.APP_LAUNCHED_EVENT); if (ed != null) return ed.getCount(); return 0; }
[ "Returns the total number of times the app has been launched\n@return Total number of app launches in int" ]
[ "Make a copy of JobContext of current thread\n@return the copy of current job context or an empty job context", "Copy a patch element\n\n@param entry the patch entry\n@param patchId the patch id for the element\n@param modifications the element modifications\n@return the new patch element", "Sets page shift orientation. The pages might be shifted horizontally or vertically relative\nto each other to make the content of each page on the screen at least partially visible\n@param orientation", "Get an extent aware Iterator based on the Query\n\n@param query\n@param cld the ClassDescriptor\n@return OJBIterator", "Gets the sub-entries of the navigation entry.\n\n@return the sub-entries", "Called by subclasses that initialize collections\n\n@param session the session\n@param id the collection identifier\n@param type collection type\n@throws HibernateException if an error occurs", "Read predecessors from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Called by the engine to trigger the cleanup at the end of a payload thread.", "Parses a duration and returns the corresponding number of milliseconds.\n\nDurations consist of a space-separated list of components of the form {number}{time unit},\nfor example 1d 5m. The available units are d (days), h (hours), m (months), s (seconds), ms (milliseconds).<p>\n\n@param durationStr the duration string\n@param defaultValue the default value to return in case the pattern does not match\n@return the corresponding number of milliseconds" ]
public final File getJasperCompilation(final Configuration configuration) { File jasperCompilation = new File(getWorking(configuration), "jasper-bin"); createIfMissing(jasperCompilation, "Jasper Compilation"); return jasperCompilation; }
[ "Get the directory where the compiled jasper reports should be put.\n\n@param configuration the configuration for the current app." ]
[ "Adds not Null criteria,\ncustomer_id is not Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document.", "Split an artifact gavc to get the groupId\n@param gavc\n@return String", "Use this API to unset the properties of snmpoption resource.\nProperties that need to be unset are specified in args array.", "Converts the node to JSON\n@return JSON object", "Converts SMatrixTriplet_64 into a SMatrixCC_64.\n\n@param src Original matrix which is to be copied. Not modified.\n@param dst Destination. Will be a copy. Modified.\n@param hist Workspace. Should be at least as long as the number of columns. Can be null.", "Get the maximum width and height of the labels.\n\n@param settings Parameters for rendering the scalebar.", "Keep a cache of items files associated with classification in order to improve performance.", "Use this API to fetch all the lbvserver resources that are configured on netscaler." ]
public Where<T, ID> ne(String columnName, Object value) throws SQLException { addClause(new SimpleComparison(columnName, findColumnFieldType(columnName), value, SimpleComparison.NOT_EQUAL_TO_OPERATION)); return this; }
[ "Add a '&lt;&gt;' clause so the column must be not-equal-to the value." ]
[ "Calculate the duration percent complete.\n\n@param row task data\n@return percent complete", "Add views to the tree.\n\n@param parentNode parent tree node\n@param file views container", "Returns the modules paths used on the command line.\n\n@return the paths separated by the {@link File#pathSeparator path separator}", "convert selector used in an upsert statement into a document", "Creates a new CRFDatum from the preprocessed allData format, given the\ndocument number, position number, and a List of Object labels.\n\n@return A new CRFDatum", "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "Add the operation at the end of Stage MODEL if this operation has not already been registered.\n\nThis operation should be added if any of the following occur: -\n- The authorization configuration is removed from a security realm.\n- The rbac provider is changed to rbac.\n- A role is removed.\n- An include is removed from a role.\n- A management interface is removed.\n\nNote: This list only includes actions that could invalidate the configuration, actions that would not invalidate the\nconfiguration do not need this operation registering. e.g. Adding a role, if the configuration was already valid this\ncould not invalidate it.\n\n@param context - The OperationContext to use to register the step.", "This produces the dotted hexadecimal format aaaa.bbbb.cccc", "Draw a rounded rectangular boundary.\n\n@param rect rectangle\n@param color colour\n@param linewidth line width\n@param r radius for rounded corners" ]
public static <T> String listToString(List<T> list, final boolean justValue, final String separator) { StringBuilder s = new StringBuilder(); for (Iterator<T> wordIterator = list.iterator(); wordIterator.hasNext();) { T o = wordIterator.next(); s.append(wordToString(o, justValue, separator)); if (wordIterator.hasNext()) { s.append(' '); } } return s.toString(); }
[ "As already described, but if separator is not null, then objects\nsuch as TaggedWord\n\n@param separator The string used to separate Word and Tag\nin TaggedWord, etc" ]
[ "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump", "Get a property as a string or throw an exception.\n\n@param key the property name", "all objects in list1 that are not in list2\n\n@param <T>\n@param list1\nFirst collection\n@param list2\nSecond collection\n@return The collection difference list1 - list2", "Guess whether given file is binary. Just checks for anything under 0x09.", "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to get events for.\n@return the latest change events for a given namespace.", "Use this API to fetch all the systemuser resources that are configured on netscaler.", "Sets an Integer attribute.\n\n@param key the key, non null.\n@param value the value\n@return the Builder, for chaining.", "Sets the scale value in pixel per map unit.\n\n@param pixelPerUnit\nthe scale value (pix/map unit)", "Create a model controller client which is exclusively receiving messages on an existing channel.\n\n@param channel the channel\n@param executorService an executor\n@return the created client" ]
public void removePropertyChangeListener (String propertyName, java.beans.PropertyChangeListener listener) { this.propertyChangeDelegate.removePropertyChangeListener(propertyName, listener); }
[ "Remove a PropertyChangeListener for a specific property from this node.\nThis functionality has. Please note that the listener this does not remove\na listener that has been added without specifying the property it is\ninterested in." ]
[ "Notifies that multiple header items are removed.\n\n@param positionStart the position.\n@param itemCount the item count.", "Returns the project membership record.\n\n@param projectMembership Globally unique identifier for the project membership.\n@return Request object", "Return the entity of a resource\n\n@param resource the resource\n@param <T> the type of the resource's entity\n@param <R> the resource type\n@return the resource's entity", "Register the given object under the package name of the object's class\nwith the given type name.\n\nthis method using the platform mbean server as returned by\nManagementFactory.getPlatformMBeanServer()\n\n@param typeName The name of the type to register\n@param obj The object to register as an mbean", "Given the histogram of columns compute the col_idx for the matrix. nz_length is automatically set and\nnz_values will grow if needed.\n@param histogram histogram of column values in the sparse matrix. modified, see above.", "Converts this object to JSON.\n\n@return the JSON representation\n\n@throws JSONException if JSON operations fail", "Convert the message to a FinishRequest", "Set the value as provided.\n@param value the serial date value as JSON string.", "Use this API to fetch the statistics of all nsacl6_stats resources that are configured on netscaler." ]
public static void checkCreateUpload(CmsObject cms, CmsUgcConfiguration config, String name, long size) throws CmsUgcException { if (!config.getUploadParentFolder().isPresent()) { String message = Messages.get().container(Messages.ERR_NO_UPLOADS_ALLOWED_0).key( cms.getRequestContext().getLocale()); throw new CmsUgcException(CmsUgcConstants.ErrorCode.errNoUploadAllowed, message); } if (config.getMaxUploadSize().isPresent()) { if (config.getMaxUploadSize().get().longValue() < size) { String message = Messages.get().container(Messages.ERR_UPLOAD_TOO_BIG_1, name).key( cms.getRequestContext().getLocale()); throw new CmsUgcException(CmsUgcConstants.ErrorCode.errMaxUploadSizeExceeded, message); } } if (config.getValidExtensions().isPresent()) { List<String> validExtensions = config.getValidExtensions().get(); boolean foundExtension = false; for (String extension : validExtensions) { if (name.toLowerCase().endsWith(extension.toLowerCase())) { foundExtension = true; break; } } if (!foundExtension) { String message = Messages.get().container(Messages.ERR_UPLOAD_FILE_EXTENSION_NOT_ALLOWED_1, name).key( cms.getRequestContext().getLocale()); throw new CmsUgcException(CmsUgcConstants.ErrorCode.errInvalidExtension, message); } } }
[ "Checks whether an uploaded file can be created in the VFS, and throws an exception otherwise.\n\n@param cms the current CMS context\n@param config the form configuration\n@param name the file name of the uploaded file\n@param size the size of the uploaded file\n\n@throws CmsUgcException if something goes wrong" ]
[ "Returns the adapter position of the Child associated with this ChildViewHolder\n\n@return The adapter position of the Child if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled.", "Main method for testing fetching", "Use this API to unset the properties of onlinkipv6prefix resource.\nProperties that need to be unset are specified in args array.", "Update the lastCheckTime of the given record.\n\n@param id the id\n@param lastCheckTime the new value", "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.", "Shuts down a standalone server.\n\n@param client the client used to communicate with the server\n@param timeout the graceful shutdown timeout, a value of {@code -1} will wait indefinitely and a value of\n{@code 0} will not attempt a graceful shutdown\n\n@throws IOException if an error occurs communicating with the server", "Returns true if the activity is a milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone", "For test purposes only.", "Use this API to fetch all the nslimitselector resources that are configured on netscaler." ]
protected final boolean isGLThread() { final Thread glThread = sGLThread.get(); return glThread != null && glThread.equals(Thread.currentThread()); }
[ "Determine whether the calling thread is the GL thread.\n\n@return {@code True} if called from the GL thread, {@code false} if\ncalled from another thread." ]
[ "Checks if this has the passed prefix\n\n@param prefix is a Bytes object to compare to this\n@return true or false\n@since 1.1.0", "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment.", "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler.", "Use this API to unset the properties of cmpparameter resource.\nProperties that need to be unset are specified in args array.", "Reads a string from input stream saved as a sequence of UTF chunks.\n\n@param stream stream to read from.\n@return output string\n@throws IOException if something went wrong", "Convenience method for getting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field whose value to return.", "Adds a port that serves the HTTP requests. If unspecified, cleartext HTTP on port 36462 is used.\n\n@param localAddress the TCP/IP load address to bind\n@param protocol {@link SessionProtocol#HTTP} or {@link SessionProtocol#HTTPS}", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels.", "Get a list of destinations and the values matching templated parameter for the given path.\nReturns an empty list when there are no destinations that are matched.\n\n@param path path to be routed.\n@return List of Destinations matching the given route." ]
public static BoxDeveloperEditionAPIConnection getAppEnterpriseConnection(BoxConfig boxConfig) { BoxDeveloperEditionAPIConnection connection = getAppEnterpriseConnection(boxConfig.getEnterpriseId(), boxConfig.getClientId(), boxConfig.getClientSecret(), boxConfig.getJWTEncryptionPreferences()); return connection; }
[ "Creates a new Box Developer Edition connection with enterprise token leveraging BoxConfig.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection." ]
[ "Method used as dynamical parameter converter", "Gets a collection of photo counts for the given date ranges for the calling user.\n\nThis method requires authentication with 'read' permission.\n\n@param dates\nAn array of dates, denoting the periods to return counts for. They should be specified smallest first.\n@param takenDates\nAn array of dates, denoting the periods to return counts for. They should be specified smallest first.\n@return A Collection of Photocount objects", "Returns a representation of the date from the value attributes as ISO\n8601 encoding.\n\n@param value\n@return ISO 8601 value (String)", "This essentially ensures that we only store a single Vertex for each unique \"Set\" of tags.", "Performs a Versioned put operation with the specified composite request\nobject\n\n@param requestWrapper Composite request object containing the key and the\nversioned object\n@return Version of the value for the successful put\n@throws ObsoleteVersionException", "Sets up the coordinate transformations between the coordinate system of the parent element of the image element and the native coordinate system\nof the original image.", "Dumps the contents of a structured block made up from a header\nand fixed sized records.\n\n@param headerSize header zie\n@param blockSize block size\n@param data data block", "Reads all text of the XML tag and returns it as a String.\nAssumes that a '<' character has already been read.\n\n@param r The reader to read from\n@return The String representing the tag, or null if one couldn't be read\n(i.e., EOF). The returned item is a complete tag including angle\nbrackets, such as <code>&lt;TXT&gt;</code>", "Use this API to fetch statistics of gslbservice_stats resource of given name ." ]
public static boolean sameLists(String list1, String list2) { return new CommaListIterator(list1).equals(new CommaListIterator(list2)); }
[ "Compares the two comma-separated lists.\n\n@param list1 The first list\n@param list2 The second list\n@return <code>true</code> if the lists are equal" ]
[ "Use this API to fetch aaauser_binding resource of given name .", "Hide multiple channels. All other channels will be shown.\n@param channels The channels to hide", "Create a REST call to artifactory with a generic request\n\n@param artifactoryRequest that should be sent to artifactory\n@return {@link ArtifactoryResponse} artifactory response as per to the request sent", "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list", "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "Generate a sql where-clause for the array of fields\n\n@param fields array containing all columns used in WHERE clause", "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Use this API to unset the properties of csparameter resource.\nProperties that need to be unset are specified in args array.", "Sets padding between the pages\n@param padding\n@param axis" ]
public static String printUUID(UUID guid) { return guid == null ? null : "{" + guid.toString().toUpperCase() + "}"; }
[ "Retrieve a UUID in the form required by Primavera PMXML.\n\n@param guid UUID instance\n@return formatted UUID" ]
[ "Use this API to delete ntpserver resources of given names.", "Prints a report about the statistics stored in the given data object.\n\n@param usageStatistics\nthe statistics object to print\n@param entityLabel\nthe label to use to refer to this kind of entities (\"items\" or\n\"properties\")", "Add a comment to a photoset. This method requires authentication with 'write' permission.\n\n@param photosetId\nThe id of the photoset to add a comment to.\n@param commentText\nText of the comment\n@return the comment id\n@throws FlickrException", "Formats a logging event to a writer.\n\n@param event\nlogging event to be formatted.", "Checks the preconditions for creating a new StrRegExReplace processor.\n\n@param regex\nthe supplied regular expression\n@param replacement\nthe supplied replacement text\n@throws IllegalArgumentException\nif regex is empty\n@throws NullPointerException\nif regex or replacement is null", "Logout the current session. After calling this method,\nthe session will be cleared", "Use this API to fetch all the route6 resources that are configured on netscaler.\nThis uses route6_args which is a way to provide additional arguments while fetching the resources.", "Returns the full record for a single attachment.\n\n@param attachment Globally unique identifier for the attachment.\n@return Request object", "Create a set out of the items in the Iterable.\n\n@param <T>\nThe type of items in the Iterable.\n@param items\nThe items to be made into a set.\n@return A set consisting of the items from the Iterable." ]
public void store(String gavc, String action, String commentText, DbCredential credential, String entityType) { DbComment comment = new DbComment(); comment.setEntityId(gavc); comment.setEntityType(entityType); comment.setDbCommentedBy(credential.getUser()); comment.setAction(action); if(!commentText.isEmpty()) { comment.setDbCommentText(commentText); } comment.setDbCreatedDateTime(new Date()); repositoryHandler.store(comment); }
[ "Store a comment based on comment text, gavc and user information\n\n@param gavc - entity id\n@param commentText - comment text\n@param credential - user credentials\n@param entityType - type of the entity" ]
[ "Adds title and subtitle to the TitleBand when it applies.\nIf title is not present then subtitle will be ignored", "Determine which daughter of the current parse tree is the head.\n\n@param t The parse tree to examine the daughters of.\nIf this is a leaf, <code>null</code> is returned\n@param parent The parent of t\n@return The daughter parse tree that is the head of <code>t</code>.\nReturns null for leaf nodes.\n@see Tree#percolateHeads(HeadFinder)\nfor a routine to call this and spread heads throughout a tree", "Use this API to fetch lbvserver_filterpolicy_binding resources of given name .", "Indicates if a bean's scope type is passivating\n\n@param bean The bean to inspect\n@return True if the scope is passivating, false otherwise", "Try to kill a given process.\n\n@param processName the process name\n@param id the process integer id, or {@code -1} if this is not relevant\n@return {@code true} if the command succeeded, {@code false} otherwise", "Constructs a list of items with given separators.\n\n@param sql\nStringBuilder to which the constructed string will be\nappended.\n@param list\nList of objects (usually strings) to join.\n@param init\nString to be added to the start of the list, before any of the\nitems.\n@param sep\nSeparator string to be added between items in the list.", "Set an enterprise number value.\n\n@param index number index (1-40)\n@param value number value", "Mark content as obsolete. If content was already marked for obsolescenceTimeout ms then it is removed.\n\n@param ref the content refrence to be marked as obsolete.\n\n@return true if the content refrence is removed, fale otherwise.", "Verifies a provided signature.\n\n@param key\nfor which signature key\n@param actualAlgorithm\ncurrent signature algorithm\n@param actualSignature\ncurrent signature\n@param webHookPayload\nfor signing\n@param deliveryTimestamp\nfor signing\n@return true if verification passed" ]
public final Set<String> getOutputFormatsNames() { SortedSet<String> formats = new TreeSet<>(); for (String formatBeanName: this.outputFormat.keySet()) { int endingIndex = formatBeanName.indexOf(MAP_OUTPUT_FORMAT_BEAN_NAME_ENDING); if (endingIndex < 0) { endingIndex = formatBeanName.indexOf(OUTPUT_FORMAT_BEAN_NAME_ENDING); } formats.add(formatBeanName.substring(0, endingIndex)); } return formats; }
[ "Return the available format ids." ]
[ "Removes a child task.\n\n@param child child task instance", "Use this API to fetch vpnvserver_cachepolicy_binding resources of given name .", "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON object or null if something goes wrong.", "Read metadata by populating an instance of the target class\nusing SAXParser.", "Restores a trashed folder back to its original location.\n@param folderID the ID of the trashed folder.\n@return info about the restored folder.", "Returns the constructor of the indirection handler class.\n\n@return The constructor for indirection handlers", "Allocates a database connection.\n\n@throws SQLException", "The way calendars are stored in an MPP14 file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and now in this method we can convert those\nID values into the correct names.\n\n@param baseCalendars list of calendars and base calendar IDs\n@param map map of calendar ID values and calendar objects", "This method is used to automatically generate a value\nfor the Outline Number field of this task.\n\n@param parent Parent Task" ]
@SuppressWarnings({"unused", "WeakerAccess"}) public static NotificationInfo getNotificationInfo(final Bundle extras) { if (extras == null) return new NotificationInfo(false, false); boolean fromCleverTap = extras.containsKey(Constants.NOTIFICATION_TAG); boolean shouldRender = fromCleverTap && extras.containsKey("nm"); return new NotificationInfo(fromCleverTap, shouldRender); }
[ "Checks whether this notification is from CleverTap.\n\n@param extras The payload from the GCM intent\n@return See {@link NotificationInfo}" ]
[ "Take a stab at fixing validation problems ?\n\n@param object", "Convert the message to a FinishRequest", "This filter uses a 9-patch to overlay the image.\n\n@param imageUrl Watermark image URL. It is very important to understand that the same image\nloader that Thumbor uses will be used here.", "Convert a layer type to a geometry class.\n\n@param layerType\nlayer type\n@return JTS class", "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.", "Parse a filter expression.\n\n@param filter the filter expression\n@return compiled nodes", "Set the given, single header value under the given name.\n@param headerName the header name\n@param headerValue the header value\n@throws UnsupportedOperationException if adding headers is not supported\n@see #put(String, List)\n@see #add(String, String)", "Invokes a JavaScript function that takes no arguments.\n\n@param <T>\n@param function The function to invoke\n@param returnType The type of object to return\n@return The result of the function.", "Throws an exception or logs a message\n\n@param message The message for the exception or the log message. Must be internationalized" ]
@Subscribe public void onSuiteResult(AggregatedSuiteResultEvent e) { long millis = e.getExecutionTime(); String suiteName = e.getDescription().getDisplayName(); List<Long> values = hints.get(suiteName); if (values == null) { hints.put(suiteName, values = new ArrayList<>()); } values.add(millis); while (values.size() > historyLength) values.remove(0); }
[ "Remember execution time for all executed suites." ]
[ "get current total used capacity.\n\n@return the total used capacity", "This method writes resource data to a Planner file.", "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.", "This method is used to change the credentials of CleverTap account Id, token and region programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token\n@param region Clever Tap Account Region", "Search one prototype using the prototype index which is equals to the view type. This method\nhas to be implemented because prototypes member is declared with Collection and that interface\ndoesn't allow the client code to get one element by index.\n\n@param prototypeIndex used to search.\n@return prototype renderer.", "Update the anchor based on arcore best knowledge of the world\n\n@param scale", "use this method to construct the ChainingIterator\niterator by iterator.", "Use this API to fetch dnspolicy_dnsglobal_binding resources of given name .", "Retrieves state and metrics information for all client connections across the cluster.\n\n@return list of connections across the cluster" ]
private FormInput formInputMatchingNode(Node element) { NamedNodeMap attributes = element.getAttributes(); Identification id; if (attributes.getNamedItem("id") != null && formFillMode != FormFillMode.XPATH_TRAINING) { id = new Identification(Identification.How.id, attributes.getNamedItem("id").getNodeValue()); FormInput input = this.formInputs.get(id); if (input != null) { return input; } } if (attributes.getNamedItem("name") != null && formFillMode != FormFillMode.XPATH_TRAINING) { id = new Identification(Identification.How.name, attributes.getNamedItem("name").getNodeValue()); FormInput input = this.formInputs.get(id); if (input != null) { return input; } } String xpathExpr = XPathHelper.getXPathExpression(element); if (xpathExpr != null && !xpathExpr.equals("")) { id = new Identification(Identification.How.xpath, xpathExpr); FormInput input = this.formInputs.get(id); if (input != null) { return input; } } return null; }
[ "return the list of FormInputs that match this element\n\n@param element\n@return" ]
[ "Use this API to fetch authenticationvserver_authenticationlocalpolicy_binding resources of given name .", "Read an unsigned integer from the given byte array\n\n@param bytes The bytes to read from\n@param offset The offset to begin reading at\n@return The integer as a long", "Used for DI frameworks to inject values into stages.", "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Sets the given value on an the receivers's accessible field with the given name.\n\n@param receiver the receiver, never <code>null</code>\n@param fieldName the field's name, never <code>null</code>\n@param value the value to set\n\n@throws NoSuchFieldException see {@link Class#getField(String)}\n@throws SecurityException see {@link Class#getField(String)}\n@throws IllegalAccessException see {@link Field#set(Object, Object)}\n@throws IllegalArgumentException see {@link Field#set(Object, Object)}", "Returns the y-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the y coordinate", "Searches for cases where a minus sign means negative operator. That happens when there is a minus\nsign with a variable to its right and no variable to its left\n\nExample:\na = - b * c", "Searches for descriptions of integer sequences and array ranges that have a colon character in them\n\nExamples of integer sequences:\n1:6\n2:4:20\n:\n\nExamples of array range\n2:\n2:4:", "Serialize specified object to directory with specified name.\n\n@param directory write to\n@param name serialize object with specified name\n@param obj object to serialize\n@return number of bytes written to directory" ]
public void addRebalancingState(final RebalanceTaskInfo stealInfo) { // acquire write lock writeLock.lock(); try { // Move into rebalancing state if(ByteUtils.getString(get(SERVER_STATE_KEY, null).get(0).getValue(), "UTF-8") .compareTo(VoldemortState.NORMAL_SERVER.toString()) == 0) { put(SERVER_STATE_KEY, VoldemortState.REBALANCING_MASTER_SERVER); initCache(SERVER_STATE_KEY); } // Add the steal information RebalancerState rebalancerState = getRebalancerState(); if(!rebalancerState.update(stealInfo)) { throw new VoldemortException("Could not add steal information " + stealInfo + " since a plan for the same donor node " + stealInfo.getDonorId() + " ( " + rebalancerState.find(stealInfo.getDonorId()) + " ) already exists"); } put(MetadataStore.REBALANCING_STEAL_INFO, rebalancerState); initCache(REBALANCING_STEAL_INFO); } finally { writeLock.unlock(); } }
[ "Add the steal information to the rebalancer state\n\n@param stealInfo The steal information to add" ]
[ "Helper method to get a list of node ids.\n\n@param nodeList", "Read all resource assignments from a GanttProject project.\n\n@param gpProject GanttProject project", "Print a timestamp value.\n\n@param value time value\n@return time value", "Creates a tag directly from the working copy.\n\n@param tagUrl The URL of the tag to create.\n@param commitMessage Commit message\n@return The commit info upon successful operation.\n@throws IOException On IO of SVN failure", "Determines whether or not a given feature matches this pattern.\n\n@param feature\nSpecified feature to examine.\n\n@return Flag confirming whether or not this feature is inside the filter.", "Returns the Java executable command.\n\n@param javaHome the java home directory or {@code null} to use the default\n\n@return the java command to use", "Get the currently selected opacity.\n\n@return The int value of the currently selected opacity.", "Checks if is single position prefix.\n\n@param fieldInfo\nthe field info\n@param prefix\nthe prefix\n@return true, if is single position prefix\n@throws IOException\nSignals that an I/O exception has occurred.", "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'StoreClient' object corresponding to the store name\nspecified in the REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEvent Message Event used to write the response / exception" ]
public double compute( DMatrix1Row mat ) { if( width != mat.numCols || width != mat.numRows ) { throw new RuntimeException("Unexpected matrix dimension"); } // make sure everything is in the proper state before it starts initStructures(); // System.arraycopy(mat.data,0,minorMatrix[0],0,mat.data.length); int level = 0; while( true ) { int levelWidth = width-level; int levelIndex = levelIndexes[level]; if( levelIndex == levelWidth ) { if( level == 0 ) { return levelResults[0]; } int prevLevelIndex = levelIndexes[level-1]++; double val = mat.get((level-1)*width+levelRemoved[level-1]); if( prevLevelIndex % 2 == 0 ) { levelResults[level-1] += val * levelResults[level]; } else { levelResults[level-1] -= val * levelResults[level]; } putIntoOpen(level-1); levelResults[level] = 0; levelIndexes[level] = 0; level--; } else { int excluded = openRemove( levelIndex ); levelRemoved[level] = excluded; if( levelWidth == minWidth ) { createMinor(mat); double subresult = mat.get(level*width+levelRemoved[level]); subresult *= UnrolledDeterminantFromMinor_DDRM.det(tempMat); if( levelIndex % 2 == 0 ) { levelResults[level] += subresult; } else { levelResults[level] -= subresult; } // put it back into the list putIntoOpen(level); levelIndexes[level]++; } else { level++; } } } }
[ "Computes the determinant for the specified matrix. It must be square and have\nthe same width and height as what was specified in the constructor.\n\n@param mat The matrix whose determinant is to be computed.\n@return The determinant." ]
[ "Create a shell object and assign its id field.", "Adds mappings for each declared field in the mapped class. Any fields\nalready mapped by addColumn are skipped.", "Returns the JSON datatype for the property datatype as represented by\nthe given WDTK datatype IRI string.\n\n@param datatypeIri\nthe WDTK datatype IRI string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known", "This method processes any extended attributes associated with a\nresource assignment.\n\n@param xml MSPDI resource assignment instance\n@param mpx MPX task instance", "A regular embedded is an element that it is embedded but it is not a key or a collection.\n\n@param keyColumnNames the column names representing the identifier of the entity\n@param column the column we want to check\n@return {@code true} if the column represent an attribute of a regular embedded element, {@code false} otherwise", "Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value", "Sets the specified integer attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0", "another media scan way", "Returns the user records for all users in the specified workspace or\norganization.\n\n@param workspace The workspace in which to get users.\n@return Request object" ]
public void seekToSeasonYear(String seasonString, String yearString) { Season season = Season.valueOf(seasonString); assert(season != null); seekToIcsEventYear(SEASON_ICS_FILE, yearString, season.getSummary()); }
[ "Seeks to the given season within the given year\n\n@param seasonString\n@param yearString" ]
[ "Use this API to update dbdbprofile.", "Generates a full list of all parents and their children, in order.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@return A list of all parents and their children, expanded", "Add filters to the tree.\n\n@param parentNode parent tree node\n@param filters list of filters", "Sets a custom response on an endpoint using default profile and client\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@param customData custom response data\n@return true if success, false otherwise", "Lookup an object instance from JNDI context.\n\n@param jndiName JNDI lookup name\n@return Matching object or <em>null</em> if none found.", "Initializes the external child resource collection.", "Gets information for a Box Storage Policy with optional fields.\n\n@param fields the fields to retrieve.\n@return info about this item containing only the specified fields, including storage policy.", "Only match if the TypeReference is at the specified location within the file.", "Changes to a new sub-view and stores a report to be displayed by that subview.<p<\n\n@param newState the new state\n@param thread the report thread which should be displayed in the sub view\n@param label the label to display for the report" ]
private Component createConvertToPropertyBundleButton() { Button addDescriptorButton = CmsToolBar.createButton( FontOpenCms.SETTINGS, m_messages.key(Messages.GUI_CONVERT_TO_PROPERTY_BUNDLE_0)); addDescriptorButton.setDisableOnClick(true); addDescriptorButton.addClickListener(new ClickListener() { private static final long serialVersionUID = 1L; public void buttonClick(ClickEvent event) { try { m_model.saveAsPropertyBundle(); Notification.show("Conversion successful."); } catch (CmsException | IOException e) { CmsVaadinUtils.showAlert("Conversion failed", e.getLocalizedMessage(), null); } } }); addDescriptorButton.setDisableOnClick(true); return addDescriptorButton; }
[ "Creates the button for converting an XML bundle in a property bundle.\n@return the created button." ]
[ "Evaluates the body if value for the member tag equals the specified value.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"value\" optional=\"false\" description=\"The expected value.\"", "Append the given String to the given String array, returning a new array\nconsisting of the input array contents plus the given String.\n\n@param array the array to append to (can be <code>null</code>)\n@param str the String to append\n@return the new array (never <code>null</code>)", "Saves changes in properties file. It reads the property file into memory, modifies it and saves it back to the file.\n\n@throws IOException", "Stores template parameters for OpenShiftAssistantTemplate.\n\n@param name template parameter name\n@param value template parameter value", "Initializes the Stitch SDK so that app clients can be created.\n\n@param context An Android context value.", "Display mode for output streams.", "Helper method to add cue list entries from a parsed ANLZ cue tag\n\n@param entries the list of entries being accumulated\n@param tag the tag whose entries are to be added", "Mbeans for UPDATE_ENTRIES", "Use this API to fetch lbvserver_appflowpolicy_binding resources of given name ." ]
public static Organization unserializeOrganization(final String organization) throws IOException { final ObjectMapper mapper = new ObjectMapper(); mapper.disable(MapperFeature.USE_GETTERS_AS_SETTERS); return mapper.readValue(organization, Organization.class); }
[ "Un-serialize a Json into Organization\n@param organization String\n@return Organization\n@throws IOException" ]
[ "Logs a message for a case where the value of a property does not fit to\nits declared datatype.\n\n@param propertyIdValue\nthe property that was used\n@param datatype\nthe declared type of the property\n@param valueType\na string to denote the type of value", "Determines whether a project has the specified publisher type, wrapped by the \"Flexible Publish\" publisher.\n@param project The project\n@param type The type of the publisher\n@return true if the project contains a publisher of the specified type wrapped by the \"Flexible Publish\" publisher.", "Method used to write the name of the scenarios\n\n@param word\n@return the same word starting with capital letter", "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", "Go through all node IDs and determine which node\n\n@param cluster\n@param storeRoutingPlan\n@return", "Examines the list of variables for any unknown variables and throws an exception if one is found", "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context", "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "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." ]
private File extractThriftFile(String artifactId, String fileName, Set<File> thriftFiles) { for (File thriftFile : thriftFiles) { boolean fileFound = false; if (fileName.equals(thriftFile.getName())) { for (String pathComponent : thriftFile.getPath().split(File.separator)) { if (pathComponent.equals(artifactId)) { fileFound = true; } } } if (fileFound) { return thriftFile; } } return null; }
[ "Picks out a File from `thriftFiles` corresponding to a given artifact ID\nand file name. Returns null if `artifactId` and `fileName` do not map to a\nthrift file path.\n\n@parameter artifactId The artifact ID of which to look up the path\n@parameter fileName the name of the thrift file for which to extract a path\n@parameter thriftFiles The set of Thrift files in which to lookup the\nartifact ID.\n@return The path of the directory containing Thrift files for the given\nartifact ID. null if artifact ID not found." ]
[ "Display web page, but no user interface - close", "Method is called by spring and verifies that there is only one plugin per URI scheme.", "Obtain a connection asynchronously by queueing a request to obtain a connection in a separate thread.\n\nUse as follows:<p>\nFuture&lt;Connection&gt; result = pool.getAsyncConnection();<p>\n... do something else in your application here ...<p>\nConnection connection = result.get(); // get the connection<p>\n\n@return A Future task returning a connection.", "Validates a space separated list of emails.\n\n@param emails Space separated list of emails\n@return {@link hudson.util.FormValidation.ok()} if valid or empty, error otherwise", "Sets the HTML entity translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator\n@return this to allow chaining", "Returns an Organization\n\n@param organizationId String\n@return DbOrganization", "Gets the visibility modifiers for the property as defined by the getter and setter methods.\n\n@return the visibility modifer of the getter, the setter, or both depending on which exist", "Used to apply or update the watermark for the item.\n@param itemUrl url template for the item.\n@param imprint the value must be \"default\", as custom watermarks is not yet supported.\n@return the watermark associated with the item.", "Sets the width and height of the canvas the text is drawn to.\n\n@param width\nwidth of the new canvas.\n\n@param height\nhegiht of the new canvas." ]
public static final Duration parseDurationInThousanthsOfMinutes(ProjectProperties properties, Number value, TimeUnit targetTimeUnit) { return parseDurationInFractionsOfMinutes(properties, value, targetTimeUnit, 1000); }
[ "Parse duration represented in thousandths of minutes.\n\n@param properties project properties\n@param value duration value\n@param targetTimeUnit required output time units\n@return Duration instance" ]
[ "Loops over cluster and repeatedly tries to break up contiguous runs of\npartitions. After each phase of breaking up contiguous partitions, random\npartitions are selected to move between zones to balance the number of\npartitions in each zone. The second phase may re-introduce contiguous\npartition runs in another zone. Therefore, this overall process is\nrepeated multiple times.\n\n@param nextCandidateCluster\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return updated cluster", "Creates a simple, annotation defined Web Bean\n\n@param <T> The type\n@param clazz The class\n@param beanManager the current manager\n@return A Web Bean", "returns the XmlCapable id associated with the literal.\nOJB maintains a RepositoryTags table that provides\na mapping from xml-tags to XmlCapable ids.\n\n@param literal the literal to lookup\n@return the int value representing the XmlCapable\n\n@throws MetadataException if no literal was found in tags mapping", "Use this API to fetch appfwlearningsettings resource of given name .", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Specify the time out of the session established at the server. The\nsession is kept alive by requests sent by this client object. If the\nsession is idle for a period of time that would timeout the session, the\nclient will send a PING request to keep the session alive.\n\n@param timeout timeout in milliseconds, must be greater than zero and less\nthan 60000.", "Obtains a local date in Pax calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Pax era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Pax local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code PaxEra}", "Display mode for output streams.", "Starts recursive insert on all insert objects object graph" ]
public List<String> filterAddonResources(Addon addon, Predicate<String> filter) { List<String> discoveredFileNames = new ArrayList<>(); List<File> addonResources = addon.getRepository().getAddonResources(addon.getId()); for (File addonFile : addonResources) { if (addonFile.isDirectory()) handleDirectory(filter, addonFile, discoveredFileNames); else handleArchiveByFile(filter, addonFile, discoveredFileNames); } return discoveredFileNames; }
[ "Returns a list of files in given addon passing given filter." ]
[ "Sets the stream for a resource.\nThis function allows you to provide a stream that is already open to\nan existing resource. It will throw an exception if that resource\nalready has an open stream.\n@param s InputStream currently open stream to use for I/O.", "JSObject will return the String \"undefined\" at certain times, so we\nneed to make sure we're not getting a value that looks valid, but isn't.\n\n@param val The value from Javascript to be checked.\n@return Either null or the value passed in.", "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "Creates a new child folder inside this folder.\n\n@param name the new folder's name.\n@return the created folder's info.", "Returns the string in the buffer minus an leading or trailing whitespace or quotes", "Add the string representation of the given object to this sequence immediately. That is, all the trailing\nwhitespace of this sequence will be ignored and the string is appended directly after the last segment that\ncontains something besides whitespace. The given indentation will be prepended to each line except the first one\nif the object has a multi-line string representation.\n\n@param object\nthe to-be-appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.", "Add an additional binary type", "Obtains a Accounting local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Replace full request content.\n\n@param requestContentTemplate\nthe request content template\n@param replacementString\nthe replacement string\n@return the string" ]
private void writeCalendar(ProjectCalendar mpxj) { CalendarType xml = m_factory.createCalendarType(); m_apibo.getCalendar().add(xml); String type = mpxj.getResource() == null ? "Global" : "Resource"; xml.setBaseCalendarObjectId(getCalendarUniqueID(mpxj.getParent())); xml.setIsPersonal(mpxj.getResource() == null ? Boolean.FALSE : Boolean.TRUE); xml.setName(mpxj.getName()); xml.setObjectId(mpxj.getUniqueID()); xml.setType(type); StandardWorkWeek xmlStandardWorkWeek = m_factory.createCalendarTypeStandardWorkWeek(); xml.setStandardWorkWeek(xmlStandardWorkWeek); for (Day day : EnumSet.allOf(Day.class)) { StandardWorkHours xmlHours = m_factory.createCalendarTypeStandardWorkWeekStandardWorkHours(); xmlStandardWorkWeek.getStandardWorkHours().add(xmlHours); xmlHours.setDayOfWeek(getDayName(day)); for (DateRange range : mpxj.getHours(day)) { WorkTimeType xmlWorkTime = m_factory.createWorkTimeType(); xmlHours.getWorkTime().add(xmlWorkTime); xmlWorkTime.setStart(range.getStart()); xmlWorkTime.setFinish(getEndTime(range.getEnd())); } } HolidayOrExceptions xmlExceptions = m_factory.createCalendarTypeHolidayOrExceptions(); xml.setHolidayOrExceptions(xmlExceptions); if (!mpxj.getCalendarExceptions().isEmpty()) { Calendar calendar = DateHelper.popCalendar(); for (ProjectCalendarException mpxjException : mpxj.getCalendarExceptions()) { calendar.setTime(mpxjException.getFromDate()); while (calendar.getTimeInMillis() < mpxjException.getToDate().getTime()) { HolidayOrException xmlException = m_factory.createCalendarTypeHolidayOrExceptionsHolidayOrException(); xmlExceptions.getHolidayOrException().add(xmlException); xmlException.setDate(calendar.getTime()); for (DateRange range : mpxjException) { WorkTimeType xmlHours = m_factory.createWorkTimeType(); xmlException.getWorkTime().add(xmlHours); xmlHours.setStart(range.getStart()); if (range.getEnd() != null) { xmlHours.setFinish(getEndTime(range.getEnd())); } } calendar.add(Calendar.DAY_OF_YEAR, 1); } } DateHelper.pushCalendar(calendar); } }
[ "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance" ]
[ "Check if the provided manifestPath is correct.\nSet the manifest and imagePath in case of the correct manifest.\n@param manifestPath\n@param candidateImagePath\n@param dependenciesClient\n@param listener\n@return true if found the correct manifest\n@throws IOException", "Builds the HTML code for a select widget given a bean containing the select options\n\n@param htmlAttributes html attributes for the select widget\n@param options the bean containing the select options\n\n@return the HTML for the select box", "Use this API to update nslimitselector resources.", "Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.\nthem is invalid.", "Removes the given service provider factory from the set of\nproviders for the service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@param factory\nA factory for creating a specific type of service\nprovider. May be <tt>null</tt> in which case this\nmethod does nothing.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched.", "Set the view frustum to pick against from the field of view, aspect\nratio and near, far clip planes. The viewpoint of the frustum\nis the center of the scene object the picker is attached to.\nThe view direction is the forward direction of that scene object.\nThe frustum will pick what a camera attached to the scene object\nwith that view frustum would see. If the frustum is not attached\nto a scene object, it defaults to the view frustum of the main camera of the scene.\n\n@param fovy vertical field of view in degrees\n@param aspect aspect ratio (width / height)", "Internal method that adds a metadata provider to the set associated with a particular hash key, creating the\nset if needed.\n\n@param key the hashKey identifying the media for which this provider can offer metadata (or the empty string if\nit can offer metadata for all media)\n@param provider the metadata provider to be added to the active set", "Compute the location of the generated file from the given trace file." ]
protected String generateCacheKey( CmsObject cms, String targetSiteRoot, String detailPagePart, String absoluteLink) { return cms.getRequestContext().getSiteRoot() + ":" + targetSiteRoot + ":" + detailPagePart + absoluteLink; }
[ "Generates the cache key for Online links.\n@param cms the current CmsObject\n@param targetSiteRoot the target site root\n@param detailPagePart the detail page part\n@param absoluteLink the absolute (site-relative) link to the resource\n@return the cache key" ]
[ "Registers an event handler in the repository shared between Javascript\nand Java.\n\n@param h Event handler to be registered.\n@return Callback key that Javascript will use to find this handler.", "Returns the project membership record.\n\n@param projectMembership Globally unique identifier for the project membership.\n@return Request object", "Shutdown the container.\n\n@see Weld#initialize()", "Find a column by its name\n\n@param columnName the name of the column\n@return the given Column, or <code>null</code> if not found", "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an integer (rounding might occur)", "Create a new file but fail if it already exists. The check for\nexistance of the file and it's creation are an atomic operation with\nrespect to other filesystem activities.", "List of releases for an app.\n@param appName App name. See {@link #listApps} for a list of apps that can be used.\n@return a list of releases", "Resets the handler data to a basic state.", "This method writes resource data to an MSPDI file.\n\n@param project Root node of the MSPDI file" ]
public void createAgent(String agent_name, String path) { IComponentIdentifier agent = cmsService.createComponent(agent_name, path, null, null).get(new ThreadSuspendable()); createdAgents.put(agent_name, agent); }
[ "Creates a real agent in the platform\n\n@param agent_name\nThe name that the agent is gonna have in the platform\n@param path\nThe path of the description (xml) of the agent" ]
[ "Start a managed server.\n\n@param factory the boot command factory", "Gets the value of the given header field.\n@param fieldName name of the header field.\n@return value of the header.", "Examines the list of variables for any unknown variables and throws an exception if one is found", "This method is used to associate a child task with the current\ntask instance. It has package access, and has been designed to\nallow the hierarchical outline structure of tasks in an MPX\nfile to be constructed as the file is read in.\n\n@param child Child task.\n@param childOutlineLevel Outline level of the child task.", "Sets up the coordinate transformations between the coordinate system of the parent element of the image element and the native coordinate system\nof the original image.", "Use this API to update inatparam.", "Get a property as a float or Default value.\n\n@param key the property name\n@param defaultValue default value", "Processes all entities in a Wikidata dump using the given entity\nprocessor. By default, the most recent JSON dump will be used. In offline\nmode, only the most recent previously downloaded file is considered.\n\n@param entityDocumentProcessor\nthe object to use for processing entities in this dump", "Returns the formula for the percentage\n@param group\n@param type\n@return" ]
public static base_response update(nitro_service client, cachecontentgroup resource) throws Exception { cachecontentgroup updateresource = new cachecontentgroup(); updateresource.name = resource.name; updateresource.weakposrelexpiry = resource.weakposrelexpiry; updateresource.heurexpiryparam = resource.heurexpiryparam; updateresource.relexpiry = resource.relexpiry; updateresource.relexpirymillisec = resource.relexpirymillisec; updateresource.absexpiry = resource.absexpiry; updateresource.absexpirygmt = resource.absexpirygmt; updateresource.weaknegrelexpiry = resource.weaknegrelexpiry; updateresource.hitparams = resource.hitparams; updateresource.invalparams = resource.invalparams; updateresource.ignoreparamvaluecase = resource.ignoreparamvaluecase; updateresource.matchcookies = resource.matchcookies; updateresource.invalrestrictedtohost = resource.invalrestrictedtohost; updateresource.polleverytime = resource.polleverytime; updateresource.ignorereloadreq = resource.ignorereloadreq; updateresource.removecookies = resource.removecookies; updateresource.prefetch = resource.prefetch; updateresource.prefetchperiod = resource.prefetchperiod; updateresource.prefetchperiodmillisec = resource.prefetchperiodmillisec; updateresource.prefetchmaxpending = resource.prefetchmaxpending; updateresource.flashcache = resource.flashcache; updateresource.expireatlastbyte = resource.expireatlastbyte; updateresource.insertvia = resource.insertvia; updateresource.insertage = resource.insertage; updateresource.insertetag = resource.insertetag; updateresource.cachecontrol = resource.cachecontrol; updateresource.quickabortsize = resource.quickabortsize; updateresource.minressize = resource.minressize; updateresource.maxressize = resource.maxressize; updateresource.memlimit = resource.memlimit; updateresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs; updateresource.minhits = resource.minhits; updateresource.alwaysevalpolicies = resource.alwaysevalpolicies; updateresource.persist = resource.persist; updateresource.pinned = resource.pinned; updateresource.lazydnsresolve = resource.lazydnsresolve; updateresource.hitselector = resource.hitselector; updateresource.invalselector = resource.invalselector; return updateresource.update_resource(client); }
[ "Use this API to update cachecontentgroup." ]
[ "Encrypt a string with AES-128 using the specified key.\n\n@param message Input string.\n@param key Encryption key.\n@return Encrypted output.", "Sets this matrix equal to the matrix encoded in the array.\n\n@param numRows The number of rows.\n@param numCols The number of columns.\n@param rowMajor If the array is encoded in a row-major or a column-major format.\n@param data The formatted 1D array. Not modified.", "set proper expression text invoking the DJCRosstabMeasurePrecalculatedTotalProvider for the cell\n@param auxRows\n@param auxCols\n@param measureExp\n@param djmeasure\n@param crosstabColumn\n@param crosstabRow\n@param meausrePrefix", "Return the build string of this instance of finmath-lib.\nCurrently this is the Git commit hash.\n\n@return The build string of this instance of finmath-lib.", "Stops the playback of a sound and destroys the corresponding Sound Object or Soundfield.", "Returns the AirMapView implementation as requested by the mapType argument. Use this method if\nyou need to request a specific AirMapView implementation that is not necessarily the preferred\ntype. For example, you can use it to explicit request a web-based map implementation.\n\n@param mapType Map type for the requested AirMapView implementation.\n@return An {@link AirMapViewBuilder} for the requested {@link AirMapViewTypes} mapType.", "Converts a string representation of an integer into an Integer object.\nSilently ignores any parse exceptions and returns null.\n\n@param value String representation of an integer\n@return Integer instance", "Return whether or not the data object has a default value passed for this field of this type.", "Computes the p=2 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm." ]
private void saveLocalization() { SortedProperties localization = new SortedProperties(); for (Object itemId : m_container.getItemIds()) { Item item = m_container.getItem(itemId); String key = item.getItemProperty(TableProperty.KEY).getValue().toString(); String value = item.getItemProperty(TableProperty.TRANSLATION).getValue().toString(); if (!(key.isEmpty() || value.isEmpty())) { localization.put(key, value); } } m_keyset.updateKeySet(m_localizations.get(m_locale).keySet(), localization.keySet()); m_localizations.put(m_locale, localization); }
[ "Saves the current translations from the container to the respective localization." ]
[ "binds the objects primary key and locking values to the statement, BRJ", "Add the set with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The set with all bundles to add.", "Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error", "Configs created by this ConfigBuilder will use the given Redis sentinels.\n\n@param sentinels the Redis set of sentinels\n@return this ConfigBuilder", "Finds and sets up the Listeners in the given rootView.\n\n@param rootView a View to traverse looking for listeners.\n@return the list of refinement attributes found on listeners.", "Performs the transformation.\n\n@return True if the file was modified.", "Write an int attribute.\n\n@param name attribute name\n@param value attribute value", "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Marks the start of a query identified by the provided correlationId\n\n@param query - Query data\n@param correlationId - Identifier\n@return Start event to pass to the Events systems EventBus" ]
private List<Long> collectLongMetric(String metricGetterName) { List<Long> vals = new ArrayList<Long>(); for(BdbEnvironmentStats envStats: environmentStatsTracked) { vals.add((Long) ReflectUtils.callMethod(envStats, BdbEnvironmentStats.class, metricGetterName, new Class<?>[0], new Object[0])); } return vals; }
[ "Calls the provided metric getter on all the tracked environments and\nobtains their values\n\n@param metricGetterName\n@return" ]
[ "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance", "Retains only beans which are enabled.\n\n@param beans The mutable set of beans to filter\n@param beanManager The bean manager\n@return a mutable set of enabled beans", "Stop listening for device announcements. Also discard any announcements which had been received, and\nnotify any registered listeners that those devices have been lost.", "Use this API to clear bridgetable.", "Maps a single prefix, uri pair as namespace.\n\n@param prefix the prefix to use\n@param namespaceURI the URI to use\n@throws IllegalArgumentException if prefix or namespaceURI is null", "Use this API to fetch all the dospolicy resources that are configured on netscaler.", "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value", "This implementation checks whether a File can be opened,\nfalling back to whether an InputStream can be opened.\nThis will cover both directories and content resources.", "get an AdminClient from the cache if exists, if not create new one\nand return it. This method is non-blocking.\n\nAll AdminClient returned from checkout, once after the completion of\nusage must be returned to the pool by calling checkin. If not,\nthere will be leak of AdminClients (connections, threads and file handles).\n\n@return AdminClient" ]
public Collection<Argument> getArguments(final String key) { final Collection<Argument> args = map.get(key); if (args != null) { return new ArrayList<>(args); } return Collections.emptyList(); }
[ "Gets the value for the key.\n\n@param key the key to check for the value\n\n@return the value or an empty collection if no values were set" ]
[ "Restarts a single dyno\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param dynoId the unique identifier of the dyno to restart", "obtains the internal JDO lifecycle state of the input StatemanagerInternal.\nThis Method is helpful to display persistent objects internal state.\n@param sm the StateManager to be inspected\n@return the LifeCycleState of a StateManager instance", "Sets the first occurence.\n\n@param min the min\n@param max the max\n@throws ParseException the parse exception", "Appends the String representation of the given operand to this CharSequence.\n\n@param left a CharSequence\n@param value any Object\n@return the original toString() of the CharSequence with the object appended\n@since 1.8.2", "Builder method for specifying the stack an app should be created on.\n@param stack Stack to create the app on.\n@return A copy of the {@link App}", "Get the content-type, including the optional \";base64\".", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Loops over cluster and repeatedly tries to break up contiguous runs of\npartitions. After each phase of breaking up contiguous partitions, random\npartitions are selected to move between zones to balance the number of\npartitions in each zone. The second phase may re-introduce contiguous\npartition runs in another zone. Therefore, this overall process is\nrepeated multiple times.\n\n@param nextCandidateCluster\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return updated cluster", "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor." ]
public DbOrganization getOrganization(final DbArtifact dbArtifact) { final DbModule module = getModule(dbArtifact); if(module == null || module.getOrganization() == null){ return null; } return repositoryHandler.getOrganization(module.getOrganization()); }
[ "Returns the Organization that produce this artifact or null if there is none\n\n@param dbArtifact DbArtifact\n@return DbOrganization" ]
[ "Lookup the username for the specified User URL.\n\n@param url\nThe user profile URL\n@return The username\n@throws FlickrException", "Return a key to identify the connection descriptor.", "Extract the generic type from the given Class object.\n@param clazz the Class to check\n@param source the expected raw source type (can be {@code null})\n@param typeIndex the index of the actual type argument\n@param nestingLevel the nesting level of the target type\n@param currentLevel the current nested level\n@return the generic type as Class, or {@code null} if none", "Return all valid maturities for a given moneyness.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@return The maturities as year fraction from reference date.", "Removes statement ids from a collection of statement groups.\n@param statementIds\n@param claims\n@return", "Creates the default editor state for editing a bundle with descriptor.\n@return the default editor state for editing a bundle with descriptor.", "Two stage distribution, dry run and actual promotion to verify correctness.\n\n@param distributionBuilder\n@param client\n@param listener\n@param buildName\n@param buildNumber\n@throws IOException", "Update the central directory signature of a .jar.\n\n@param file the file to process\n@param searchPattern the search patter to use\n@param badSkipBytes the bad bytes skip table\n@param newSig the new signature\n@param endSig the expected signature\n@throws IOException", "Evaluate the criteria and return a boolean result.\n\n@param container field container\n@param promptValues responses to prompts\n@return boolean flag" ]
private CollectionDescriptorDef cloneCollection(CollectionDescriptorDef collDef, String prefix) { CollectionDescriptorDef copyCollDef = new CollectionDescriptorDef(collDef, prefix); copyCollDef.setOwner(this); // we remove properties that are only relevant to the class the features are declared in copyCollDef.setProperty(PropertyHelper.OJB_PROPERTY_IGNORE, null); Properties mod = getModification(copyCollDef.getName()); if (mod != null) { if (!PropertyHelper.toBoolean(mod.getProperty(PropertyHelper.OJB_PROPERTY_IGNORE), false) && hasFeature(copyCollDef.getName())) { LogHelper.warn(true, ClassDescriptorDef.class, "process", "Class "+getName()+" has a feature that has the same name as its included collection "+ copyCollDef.getName()+" from class "+collDef.getOwner().getName()); } copyCollDef.applyModifications(mod); } return copyCollDef; }
[ "Clones the given collection.\n\n@param collDef The collection descriptor\n@param prefix A prefix for the name\n@return The cloned collection" ]
[ "Get the days difference", "Initializes the metadataCache for MetadataStore", "Add a single exception to a calendar.\n\n@param mpxjCalendar MPXJ calendar\n@param date calendar exception", "Process the response by reporting proper log and feeding failure\ndetectors\n\n@param response\n@param pipeline", "We have identified that we have a zip file. Extract the contents into\na temporary directory and process.\n\n@param stream schedule data\n@return ProjectFile instance", "A disposer method is bound to a producer if the producer is assignable to the disposed parameter.\n\n@param enhancedDisposedParameter\n@return the set of required qualifiers for the given disposed parameter", "Sets the alias. Empty String is regarded as null.\n@param alias The alias to set", "Gets the bytes for the highest address in the range represented by this address.\n\n@return", "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken" ]
public SelectStatement getPreparedSelectByPkStatement(ClassDescriptor cld) { SelectStatement sql; SqlForClass sfc = getSqlForClass(cld); sql = sfc.getSelectByPKSql(); if(sql == null) { sql = new SqlSelectByPkStatement(m_platform, cld, logger); // set the sql string sfc.setSelectByPKSql(sql); if(logger.isDebugEnabled()) { logger.debug("SQL:" + sql.getStatement()); } } return sql; }
[ "generate a prepared SELECT-Statement for the Class\ndescribed by cld\n@param cld the ClassDescriptor" ]
[ "Sets the name of the attribute group with which this attribute is associated.\n\n@param attributeGroup the attribute group name. Cannot be an empty string but can be {@code null}\nif the attribute is not associated with a group.\n@return a builder that can be used to continue building the attribute definition", "Return SELECT clause for object existence call", "Assigns the element in the Matrix to the specified value. Performs a bounds check to make sure\nthe requested element is part of the matrix.\n\n@param row The row of the element.\n@param col The column of the element.\n@param value The element's new value.", "Return a string representation of the object.", "Returns a JRDesignExpression that points to the main report connection\n\n@return", "Determines storage overhead and returns pretty printed summary.\n\n@param finalNodeToOverhead Map of node IDs from final cluster to number\nof partition-stores to be moved to the node.\n@return pretty printed string summary of storage overhead.", "Inserts a Parcelable value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Parcelable object, or null\n@return this bundler instance to chain method calls", "Use this API to add ipset.", "Read the project data and return a ProjectFile instance.\n\n@return ProjectFile instance" ]
public static int[] randomSubset(int k, int n) { assert(0 < k && k <= n); Random r = new Random(); int t = 0, m = 0; int[] result = new int[k]; while (m < k) { double u = r.nextDouble(); if ( (n - t) * u < k - m ) { result[m] = t; m++; } t++; } return result; }
[ "Get a random sample of k out of n elements.\n\nSee Algorithm S, D. E. Knuth, The Art of Computer Programming, Vol. 2, p.142." ]
[ "Gets constructors with given annotation type\n\n@param annotationType The annotation type to match\n@return A set of abstracted constructors with given annotation type. If\nthe constructors set is empty, initialize it first. Returns an\nempty set if there are no matches.\n@see org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType#getEnhancedConstructors(Class)", "Returns the first 24 photos for a given tag cluster.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param tag\n@param clusterId\n@return PhotoList\n@throws FlickrException", "Remove the group and all references to it\n\n@param groupId ID of group", "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request", "Set the name to be used in announcing our presence on the network. The name can be no longer than twenty\nbytes, and should be normal ASCII, no Unicode.\n\n@param name the device name to report in our presence announcement packets.", "Returns the specified range of elements in the sorted set.\nThe elements are considered to be ordered from the lowest to the highest score.\nLexicographical order is used for elements with equal score.\nBoth start and stop are zero-based inclusive indexes. They can also be negative numbers indicating offsets from\nthe end of the sorted set, with -1 being the last element of the sorted set.\n@param start\n@param end\n@return the range of elements", "Emit a event object with parameters and force all listeners to be called synchronously.\n\n@param event\nthe target event\n@param args\nthe arguments passed in\n@see #emit(EventObject, Object...)", "Creates a text box with the given parent and text node assigned.\n@param contblock The parent node (and the containing block in the same time)\n@param n The corresponding text node in the DOM tree.\n@return The new text box.", "Used to populate Map with given annotations\n\n@param annotations initial value for annotations" ]
private void setResourceInformation() { String sitePath = m_cms.getSitePath(m_resource); int pathEnd = sitePath.lastIndexOf('/') + 1; String baseName = sitePath.substring(pathEnd); m_sitepath = sitePath.substring(0, pathEnd); switch (CmsMessageBundleEditorTypes.BundleType.toBundleType( OpenCms.getResourceManager().getResourceType(m_resource).getTypeName())) { case PROPERTY: String localeSuffix = CmsStringUtil.getLocaleSuffixForName(baseName); if ((null != localeSuffix) && !localeSuffix.isEmpty()) { baseName = baseName.substring( 0, baseName.lastIndexOf(localeSuffix) - (1 /* cut off trailing underscore, too*/)); m_locale = CmsLocaleManager.getLocale(localeSuffix); } if ((null == m_locale) || !m_locales.contains(m_locale)) { m_switchedLocaleOnOpening = true; m_locale = m_locales.iterator().next(); } break; case XML: m_locale = OpenCms.getLocaleManager().getBestAvailableLocaleForXmlContent( m_cms, m_resource, m_xmlBundle); break; case DESCRIPTOR: m_basename = baseName.substring( 0, baseName.length() - CmsMessageBundleEditorTypes.Descriptor.POSTFIX.length()); m_locale = new Locale("en"); break; default: throw new IllegalArgumentException( Messages.get().container( Messages.ERR_UNSUPPORTED_BUNDLE_TYPE_1, CmsMessageBundleEditorTypes.BundleType.toBundleType( OpenCms.getResourceManager().getResourceType(m_resource).getTypeName())).toString()); } m_basename = baseName; }
[ "Extract site path, base name and locale from the resource opened with the editor." ]
[ "Obtains a local date in Coptic calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Coptic local date, not null\n@throws DateTimeException if unable to create the date", "Returns a product regarding its name\n\n@param name String\n@return DbProduct", "Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error", "Print a duration represented by an arbitrary fraction of minutes.\n\n@param duration Duration instance\n@param factor required factor\n@return duration represented as an arbitrary fraction of minutes", "Validates the data for correct annotation", "Prioritises the list of step candidates that match a given step.\n\n@param stepAsText\nthe textual step to match\n@param candidates\nthe List of StepCandidate\n@return The prioritised list according to the\n{@link PrioritisingStrategy}.", "Sets the value if the date only should be shown.\n@param dateOnly if the date only should be shown", "Calculate entropy value.\n@param values Values.\n@return Returns entropy value of the specified histogram array.", "Factory method that returns an Identity object created from a serializated representation.\n\n@param anArray The serialized representation\n@return The identity\n@see {@link #serialize}.\n@deprecated" ]
public static void main(String[] args) { String[] s = {"there once was a man", "this one is a manic", "hey there", "there once was a mane", "once in a manger.", "where is one match?", "Jo3seph Smarr!", "Joseph R Smarr"}; for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { System.out.println("s1: " + s[i]); System.out.println("s2: " + s[j]); System.out.println("edit distance: " + editDistance(s[i], s[j])); System.out.println("LCS: " + longestCommonSubstring(s[i], s[j])); System.out.println("LCCS: " + longestCommonContiguousSubstring(s[i], s[j])); System.out.println(); } } }
[ "Tests the string edit distance function." ]
[ "Create a model mbean from an object using the description given in the\nJmx annotation if present. Only operations are supported so far, no\nattributes, constructors, or notifications\n\n@param o The object to create an MBean for\n@return The ModelMBean for the given object", "Adds the allowed values. Override for attributes who should not use the allowed values.\n\n@param result the node to add the allowed values to\n@param validator the validator to get the allowed values from", "Create the environment as specified by @Template or\narq.extension.ce-cube.openshift.template.* properties.\n<p>\nIn the future, this might be handled by starting application Cube\nobjects, e.g. CreateCube(application), StartCube(application)\n<p>\nNeeds to fire before the containers are started.", "Returns the port as configured by the system variables, fallback is the default port value\n\n@param portIdentifier - SYS_*_PORT defined in Constants\n@return", "Function to serialize the given Vector clock into a string. If something\ngoes wrong, it returns an empty string.\n\n@param vc The Vector clock to serialize\n@return The string (JSON) version of the specified Vector clock", "Configure the mapping between a database column and a field, including definition of\nan alias.\n\n@param container column to field map\n@param name column name\n@param type field type\n@param alias field alias", "Generate a Jongo query regarding a set of parameters.\n\n@param params Map<queryKey, queryValue> of query parameters\n@return String", "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Create a model mbean from an object using the description given in the\nJmx annotation if present. Only operations are supported so far, no\nattributes, constructors, or notifications\n\n@param o The object to create an MBean for\n@return The ModelMBean for the given object" ]
@Override public void clear() { values.clear(); listBox.clear(); clearStatusText(); if (emptyPlaceHolder != null) { insertEmptyPlaceHolder(emptyPlaceHolder); } reload(); if (isAllowBlank()) { addBlankItemIfNeeded(); } }
[ "Removes all items from the list box." ]
[ "Use this API to fetch appfwpolicy_csvserver_binding resources of given name .", "Performs a Versioned put operation with the specified composite request\nobject\n\n@param requestWrapper Composite request object containing the key and the\nversioned object\n@return Version of the value for the successful put\n@throws ObsoleteVersionException", "Create a new entry in the database from an object.", "Adds multiple observers using unique integer prefixes for each.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}", "LV morphology helper functions", "Returns true if this Bytes object equals another. This method checks it's arguments.\n\n@since 1.2.0", "Read a project from a ConceptDraw PROJECT file.\n\n@param project ConceptDraw PROJECT project", "Adds position noise to the trajectories\n@param t\n@param sd\n@return trajectory with position noise", "Dump timephased work for an assignment.\n\n@param assignment resource assignment" ]
public static String constructUrl(final HttpServerExchange exchange, final String path) { final HeaderMap headers = exchange.getRequestHeaders(); String host = headers.getFirst(HOST); String protocol = exchange.getConnection().getSslSessionInfo() != null ? "https" : "http"; return protocol + "://" + host + path; }
[ "Based on the current request represented by the HttpExchange construct a complete URL for the supplied path.\n\n@param exchange - The current HttpExchange\n@param path - The path to include in the constructed URL\n@return The constructed URL" ]
[ "No need to expose. Client side work.", "Changes the given filenames suffix from the current suffix to the provided suffix.\n\n<b>Directly exposed for JSP EL</b>, not through {@link org.opencms.jsp.util.CmsJspElFunctions}.<p>\n\n@param filename the filename to be changed\n@param suffix the new suffix of the file\n\n@return the filename with the replaced suffix", "not start with another option name", "Returns the number of rows within this association.\n\n@return the number of rows within this association", "Helper method to remove invalid children that don't have a corresponding CmsSitemapClientEntry.", "Provisions a new app user in an enterprise using Box Developer Edition.\n@param api the API connection to be used by the created user.\n@param name the name of the user.\n@return the created user's info.", "Add an order on the given column\n\n@param columnName the name of the column\n@param ascending whether the sorting is ascending or descending", "Use this API to unset the properties of sslcertkey resource.\nProperties that need to be unset are specified in args array.", "Get a reader implementation class to perform API calls with.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param <T> The reader type to request an instance of\n@return A reader implementation class" ]
@Override public void run() { try { startBarrier.await(); int idleCount = 0; while (!isRunning.compareAndSet(idleCount > lingerIterations && pidToProcessMap.isEmpty(), false)) { idleCount = (!shutdown && process()) ? 0 : (idleCount + 1); } } catch (Exception e) { // TODO: how to handle this error? isRunning.set(false); } }
[ "The primary run loop of the event processor." ]
[ "Adds special accessors for private constants so that inner classes can retrieve them.", "Convert a Java date into a Planner date-time string.\n\n20070222T080000Z\n\n@param value Java date\n@return Planner date-time string", "Process a single criteria block.\n\n@param list parent criteria list\n@param block current block", "Checks if the given group of statements contains the given value as the\nvalue of a main snak of some statement.\n\n@param statementGroup\nthe statement group to scan\n@param value\nthe value to scan for\n@return true if value was found", "Plots the MSD curve with the trajectory t and adds the fitted model for anomalous diffusion above.\n@param t\n@param lagMin Minimum timelag (e.g. 1,2,3..) lagMin*timelag = elapsed time in seconds\n@param lagMax lagMax Maximum timelag (e.g. 1,2,3..) lagMax*timelag = elapsed time in seconds\n@param timelag Elapsed time between two frames.\n@param a Exponent alpha of power law function\n@param D Diffusion coeffcient", "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Use this API to add gslbsite.", "Closes off this connection\n@param connection to close", "Truncated power function.\n\n@param value Value.\n@param degree Degree.\n@return Result." ]
private void closeClient(Client client) { logger.debug("Closing client {}", client); client.close(); openClients.remove(client.targetPlayer); useCounts.remove(client); timestamps.remove(client); }
[ "When it is time to actually close a client, do so, and clean up the related data structures.\n\n@param client the client which has been idle for long enough to be closed" ]
[ "Returns a persistence strategy based on the passed configuration.\n\n@param cacheMapping the selected {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType}\n@param externalCacheManager the infinispan cache manager\n@param configurationUrl the location of the configuration file\n@param jtaPlatform the {@link JtaPlatform}\n@param entityTypes the meta-data of the entities\n@param associationTypes the meta-data of the associations\n@param idSourceTypes the meta-data of the id generators\n@return the persistence strategy", "Serialize the Document object.\n\n@param dom the document to serialize\n@return the serialized dom String", "Returns the current download state for a download request.\n\n@param downloadId\n@return", "Attemps to delete all provided segments from a log and returns how many it was able to", "This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance", "Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .", "Register the entity as batch loadable, if enabled\n\nCopied from {@link org.hibernate.type.ManyToOneType#scheduleBatchLoadIfNeeded}", "Add the string representation of the given object to this sequence immediately. That is, all the trailing\nwhitespace of this sequence will be ignored and the string is appended directly after the last segment that\ncontains something besides whitespace. The given indentation will be prepended to each line except the first one\nif the object has a multi-line string representation.\n\n@param object\nthe to-be-appended object.\n@param indentation\nthe indentation string that should be prepended. May not be <code>null</code>.", "Write a calendar.\n\n@param record calendar instance\n@throws IOException" ]
private Iterable<PersistentNoSqlIdentifierGenerator> getPersistentGenerators() { Map<String, EntityPersister> entityPersisters = factory.getMetamodel().entityPersisters(); Set<PersistentNoSqlIdentifierGenerator> persistentGenerators = new HashSet<PersistentNoSqlIdentifierGenerator>( entityPersisters.size() ); for ( EntityPersister persister : entityPersisters.values() ) { if ( persister.getIdentifierGenerator() instanceof PersistentNoSqlIdentifierGenerator ) { persistentGenerators.add( (PersistentNoSqlIdentifierGenerator) persister.getIdentifierGenerator() ); } } return persistentGenerators; }
[ "Returns all the persistent id generators which potentially require the creation of an object in the schema." ]
[ "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]\").", "This method retrieves the data at the given offset and returns\nit as a String, assuming the underlying data is composed of\nsingle byte characters.\n\n@param offset offset of required data\n@return string containing required data", "Obtain collection of headers to remove\n\n@return\n@throws Exception", "Emits a change event for the given document id.\n\n@param nsConfig the configuration for the namespace to which the\ndocument referred to by the change event belongs.\n@param event the change event.", "Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered.\n\n@param timeout number of milliseconds after which the callback should be called if it hasn't already been", "Sets the Red, Green, and Blue color variables. This will automatically populate the Hue, Saturation and Brightness and Hexadecimal fields, too.\n\nThe RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue.\n@param red strength - valid range is 0-255\n@param green strength - valid range is 0-255\n@param blue strength - valid range is 0-255\n@throws java.lang.Exception Exception if the Red, Green or Blue variables are out of range.", "Get permissions for who may view geo data for a photo.\n\nThis method requires authentication with 'read' permission.\n\n@param photoId\nreqired photo id, not null\n@return the permissions\n@throws FlickrException\nif photo id is invalid, if photo has no geodata or if any other error has been reported in the response.", "Used to retrieve the watermark for the item.\nIf the item does not have a watermark applied to it, a 404 Not Found will be returned by API.\n@param itemUrl url template for the item.\n@param fields the fields to retrieve.\n@return the watermark associated with the item.", "Loads the localization for the current locale from a bundle of type xmlvfsbundle.\nIt assumes, the content has already been unmarshalled before.\n@param locale the locale for which the localization should be loaded" ]
public static long get1D(DMatrixRMaj A , int n ) { long before = System.currentTimeMillis(); double total = 0; for( int iter = 0; iter < n; iter++ ) { int index = 0; for( int i = 0; i < A.numRows; i++ ) { int end = index+A.numCols; while( index != end ) { total += A.get(index++); } } } long after = System.currentTimeMillis(); // print to ensure that ensure that an overly smart compiler does not optimize out // the whole function and to show that both produce the same results. System.out.println(total); return after-before; }
[ "Get by index is used here." ]
[ "Runs the server.", "get string from post stream\n\n@param is\n@param encoding\n@return", "Converts an Accumulo Range to a Fluo Span\n\n@param range Range\n@return Span", "read message from file\n\n@param readOffset offset in this channel(file);not the message offset\n@param size max data size\n@return messages sharding data with file log\n@throws IOException reading file failed", "Simply appends the given parameters and returns it to obtain a cache key\n@param sql\n@param resultSetConcurrency\n@param resultSetHoldability\n@param resultSetType\n@return cache key to use", "Starts the scavenger.", "Returns all migrations starting from and excluding the given version. Usually you want to provide the version of\nthe database here to get all migrations that need to be executed. In case there is no script with a newer\nversion than the one given, an empty list is returned.\n\n@param version the version that is currently in the database\n@return all versions since the given version or an empty list if no newer script is available. Never null.\nDoes not include the given version.", "Use this API to update nstimeout.", "Starts or stops capturing.\n\n@param capture If true, capturing is started. If false, it is stopped.\n@param fps Capturing FPS (frames per second)." ]
public static <E> void retainAll(Collection<E> elems, Filter<? super E> filter) { for (Iterator<E> iter = elems.iterator(); iter.hasNext();) { E elem = iter.next(); if ( ! filter.accept(elem)) { iter.remove(); } } }
[ "Removes all elems in the given Collection that aren't accepted by the given Filter." ]
[ "Load a list of entities using the information in the context\n\n@param session The session\n@param lockOptions The locking details\n@param ogmContext The context with the information to load the entities\n@return the list of entities corresponding to the given context", "Use this API to update bridgetable resources.", "Creates a Bytes object by copying the data of a subsequence of the given byte array\n\n@param data Byte data\n@param offset Starting offset in byte array (inclusive)\n@param length Number of bytes to include", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity", "Special-purpose version for hashing a single int value. Value is treated as little-endian", "Explicitly set the end time of the event.\n\nIf the provided date is <code>null</code> or a date before the start date, the end date defaults to the start date.\n\n@param endDate the end time of the event.", "this remove the linebreak.\n\n@param input\nthe input\n@param patternStr\nthe pattern str\n@return the string", "Adds listeners and reads from a stream.\n\n@param reader reader for file type\n@param stream schedule data\n@return ProjectFile instance", "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read." ]
public static nsconfig get(nitro_service service) throws Exception{ nsconfig obj = new nsconfig(); nsconfig[] response = (nsconfig[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the nsconfig resources that are configured on netscaler." ]
[ "Adds a chain of vertices to the end of this list.", "Marks inbox message as read for given messageId\n@param messageId String messageId\n@return boolean value depending on success of operation", "Get the sub registry for the domain.\n\n@param range the version range\n@return the sub registry", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15", "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "Returns the scene graph root.\n\nThis method is part of the wrapped API (see {@link AiWrapperProvider}\nfor details on wrappers).<p>\n\nThe built-in behavior is to return a {@link AiVector}.\n\n@param wrapperProvider the wrapper provider (used for type inference)\n@return the scene graph root", "Gets the element view.\n\n@return the element view", "Return overall per token accuracy", "Use this API to fetch a vpnglobal_binding resource ." ]
public void setClasspath(Path classpath) { if (_classpath == null) { _classpath = classpath; } else { _classpath.append(classpath); } log("Verification classpath is "+ _classpath, Project.MSG_VERBOSE); }
[ "Set the classpath for loading the driver.\n\n@param classpath the classpath" ]
[ "Removes the specified type from the frame.", "Extracts a set of interceptor bindings from a collection of annotations.\n@param beanManager\n@param annotations\n@return", "Update the background color of the mBgCircle image view.", "Wait for the read side to close. Used when the writer needs to know when\nthe reader finishes consuming a message.", "Seeks to the given holiday within the given year\n\n@param holidayString\n@param yearString", "Returns package name of a class\n\n@param clazz\nthe class\n@return\nthe package name of the class", "build the Join-Information if a super reference exists\n\n@param left\n@param cld\n@param name", "Registers an image to be captured by the build-info proxy.\n\n@param imageTag\n@param host\n@param targetRepo\n@param buildInfoId\n@throws IOException\n@throws InterruptedException", "Adds a new role to the list of defined roles.\n\n@param roleName - The name of the role being added." ]
private void handleContentLength(Event event) { if (event.getContent() == null) { return; } if (maxContentLength == -1 || event.getContent().length() <= maxContentLength) { return; } if (maxContentLength < CUT_START_TAG.length() + CUT_END_TAG.length()) { event.setContent(""); event.setContentCut(true); return; } int contentLength = maxContentLength - CUT_START_TAG.length() - CUT_END_TAG.length(); event.setContent(CUT_START_TAG + event.getContent().substring(0, contentLength) + CUT_END_TAG); event.setContentCut(true); }
[ "Handle content length.\n\n@param event\nthe event" ]
[ "Generates the routing Java source code", "check if MessageID exists in the message, if not, only generate new MessageID for outbound message.\n@param message", "This method is currently in use only by the SvnCoordinator", "Checks if the DPI value is already set for GeoServer.", "Validates operation model against the definition and its parameters\n\n@param operation model node of type {@link ModelType#OBJECT}, representing an operation request\n@throws OperationFailedException if the value is not valid\n\n@deprecated Not used by the WildFly management kernel; will be removed in a future release", "Returns true if templates are to be instantiated synchronously and false if\nasynchronously.", "Acquires a write lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait.", "Use this API to unset the properties of gslbsite resources.\nProperties that need to be unset are specified in args array.", "Write a relation list field to the JSON file.\n\n@param fieldName field name\n@param value field value" ]
private void tagvalue(Options opt, Doc c) { Tag tags[] = c.tags("tagvalue"); if (tags.length == 0) return; for (Tag tag : tags) { String t[] = tokenize(tag.text()); if (t.length != 2) { System.err.println("@tagvalue expects two fields: " + tag.text()); continue; } tableLine(Align.RIGHT, Font.TAG.wrap(opt, "{" + t[0] + " = " + t[1] + "}")); } }
[ "Return as a string the tagged values associated with c\n@param opt the Options used to guess font names\n@param c the Doc entry to look for @tagvalue\n@param prevterm the termination string for the previous element\n@param term the termination character for each tagged value" ]
[ "Click no children of the specified parent element.\n\n@param tagName The tag name of which no children should be clicked.\n@return The builder to append more options.", "Adds a JSON string to the DB.\n\n@param obj the JSON to record\n@param table the table to insert into\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR", "Selects the single element of the collection for which the provided OQL query\npredicate is true.\n@param\tpredicate\tAn OQL boolean query predicate.\n@return The element that evaluates to true for the predicate. If no element\nevaluates to true, null is returned.\n@exception\torg.odmg.QueryInvalidException\tThe query predicate is invalid.", "Adds one or several attributes to facet on for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "This method is called to alert project listeners to the fact that\na calendar has been read from a project file.\n\n@param calendar calendar instance", "Produces the Soundex key for the given string.", "Parse a list of Photos from given Element.\n\n@param photosElement\n@return PhotoList", "Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1", "Prepare a model JSON for analyze, resolves the hierarchical structure\ncreates a HashMap which contains all resourceIds as keys and for each key\nthe JSONObject, all id are keys of this map\n@param object\n@return a HashMap keys: all ressourceIds values: all child JSONObjects\n@throws org.json.JSONException" ]
private void setFieldType(FastTrackTableType tableType) { switch (tableType) { case ACTBARS: { m_type = ActBarField.getInstance(m_header.getColumnType()); break; } case ACTIVITIES: { m_type = ActivityField.getInstance(m_header.getColumnType()); break; } case RESOURCES: { m_type = ResourceField.getInstance(m_header.getColumnType()); break; } } }
[ "Set the enum representing the type of this column.\n\n@param tableType type of table to which this column belongs" ]
[ "Removes the given object from the cache\n\n@param oid oid of the object to remove", "Creates a scheduled thread pool where each thread has the daemon\nproperty set to true. This allows the program to quit without\nexplicitly calling shutdown on the pool\n\n@param corePoolSize the number of threads to keep in the pool,\neven if they are idle\n\n@return a newly created scheduled thread pool", "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Parses links for XMLContents etc.\n\n@param cms the CMS context to use\n@throws CmsException if something goes wrong", "Do post exam of child inside the layout after it has been positioned in parent\n@param dataIndex data index", "this method will be invoked after methodToBeInvoked is invoked", "Returns the error correction codewords for the specified data codewords.\n\n@param codewords the codewords that we need error correction codewords for\n@param ecclen the number of error correction codewords needed\n@return the error correction codewords for the specified data codewords", "Parses the result and returns the failure description.\n\n@param result the result of executing an operation\n\n@return the failure description if defined, otherwise a new undefined model node\n\n@throws IllegalArgumentException if the outcome of the operation was successful", "Copies from buffer to our internal strBufferIndex, expanding the internal buffer if necessary\n@param offset offset in the buffer to start copying from\n@param length length to copy" ]
public static double normP1( DMatrixRMaj A ) { if( MatrixFeatures_DDRM.isVector(A)) { return CommonOps_DDRM.elementSumAbs(A); } else { return inducedP1(A); } }
[ "Computes the p=1 norm. If A is a matrix then the induced norm is computed.\n\n@param A Matrix or vector.\n@return The norm." ]
[ "Set a custom response for this path\n\n@param pathName name of path\n@param customResponse value of custom response\n@return true if success, false otherwise\n@throws Exception exception", "Checks if there's exactly one option that exists among all possible opts.\n\n@param options OptionSet to checked\n@param opt1 Possible required option to check\n@param opt2 Possible required option to check\n@throws VoldemortException", "Use this API to fetch rewritepolicylabel_rewritepolicy_binding resources of given name .", "Ensures that no more than maxContiguousPartitionsPerZone partitions are\ncontiguous within a single zone.\n\nMoves the necessary partitions to break up contiguous runs from each zone\nto some other random zone/node. There is some chance that such random\nmoves could result in contiguous partitions in other zones.\n\n@param nextCandidateCluster cluster metadata\n@param maxContiguousPartitionsPerZone See RebalanceCLI.\n@return Return updated cluster metadata.", "Use this API to fetch the statistics of all gslbdomain_stats resources that are configured on netscaler.", "Checks if request is intended for Gerrit host.", "Rollback to the specified push version\n\n@param rollbackToDir The version directory to rollback to", "Determine if a CharSequence can be parsed as a Double.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isDouble(String)\n@since 1.8.2", "Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. This is used\nby internal classes to configure a class." ]
public String[] getReportSamples() { final Map<String, String> sampleValues = new HashMap<>(); sampleValues.put("name1", "Secure Transpiler Mars"); sampleValues.put("version1", "4.7.0"); sampleValues.put("name2", "Secure Transpiler Bounty"); sampleValues.put("version2", "5.0.0"); sampleValues.put("license", "CDDL-1.1"); sampleValues.put("name", "Secure Pretender"); sampleValues.put("version", "2.7.0"); sampleValues.put("organization", "Axway"); return ReportsRegistry.allReports() .stream() .map(report -> ReportUtils.generateSampleRequest(report, sampleValues)) .map(request -> { try { String desc = ""; final Optional<Report> byId = ReportsRegistry.findById(request.getReportId()); if(byId.isPresent()) { desc = byId.get().getDescription() + "<br/><br/>"; } return String.format(TWO_PLACES, desc, JsonUtils.serialize(request)); } catch(IOException e) { return "Error " + e.getMessage(); } }) .collect(Collectors.toList()) .toArray(new String[] {}); }
[ "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution" ]
[ "Helper to read a mandatory String value.\n@param path The XML path of the element to read.\n@return The String value stored in the XML.\n@throws Exception thrown if the value could not be read.", "Converts an update description BSON document from a MongoDB Change Event into an\nUpdateDescription object.\n\n@param document the\n@return the converted UpdateDescription", "Add all elements in the iterable to the collection.\n\n@param target\n@param iterable\n@return true if the target was modified, false otherwise", "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", "Generate the next permutation and return an array containing\nthe elements in the appropriate order.\n@see #nextPermutationAsArray(Object[])\n@see #nextPermutationAsList()\n@return The next permutation as an array.", "Sets the color for the big total between the column and row\n@param row row index (starting from 1)\n@param column column index (starting from 1)\n@param color", "Revert all the working copy changes.", "Uninstall current location collection client.\n\n@return true if uninstall was successful", "Performs the BFS and gives the results to a distributor to distribute\n\n@param distributor the distributor" ]
public static dnspolicylabel get(nitro_service service, String labelname) throws Exception{ dnspolicylabel obj = new dnspolicylabel(); obj.set_labelname(labelname); dnspolicylabel response = (dnspolicylabel) obj.get_resource(service); return response; }
[ "Use this API to fetch dnspolicylabel resource of given name ." ]
[ "Checks whether an uploaded file can be created in the VFS, and throws an exception otherwise.\n\n@param cms the current CMS context\n@param config the form configuration\n@param name the file name of the uploaded file\n@param size the size of the uploaded file\n\n@throws CmsUgcException if something goes wrong", "Start the timer.", "Lift a Java Func0 to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model", "Clones the given field.\n\n@param fieldDef The field descriptor\n@param prefix A prefix for the name\n@return The cloned field", "Returns the name of this alias if path has been added\nto the aliased portions of attributePath\n\n@param path the path to test for inclusion in the alias", "Check position type.\n\n@param type the type\n@return the boolean", "Returns a pretty printed string of nodes that host specific \"hot\"\npartitions, where hot is defined as following a contiguous run of\npartitions of some length in another zone.\n\n@param cluster The cluster to analyze\n@param hotContiguityCutoff cutoff below which a contiguous run is not\nhot.\n@return pretty string of hot partitions", "Inserts a CharSequence value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a CharSequence, or null\n@return this bundler instance to chain method calls" ]
public Curve getRegressionCurve(){ // @TODO Add threadsafe lazy init. if(regressionCurve !=null) { return regressionCurve; } DoubleMatrix a = solveEquationSystem(); double[] curvePoints=new double[partition.getLength()]; curvePoints[0]=a.get(0); for(int i=1;i<curvePoints.length;i++) { curvePoints[i]=curvePoints[i-1]+a.get(i)*(partition.getIntervalLength(i-1)); } return new CurveInterpolation( "RegressionCurve", referenceDate, CurveInterpolation.InterpolationMethod.LINEAR, CurveInterpolation.ExtrapolationMethod.CONSTANT, CurveInterpolation.InterpolationEntity.VALUE, partition.getPoints(), curvePoints); }
[ "Returns the curve resulting from the local linear regression with discrete kernel.\n\n@return The regression curve." ]
[ "Get MultiJoined ClassDescriptors\n@param cld", "returns true if a job was queued within a timeout", "This method is used to process an MPP14 file. This is the file format\nused by Project 14.\n\n@param reader parent file reader\n@param file parent MPP file\n@param root Root of the POI file system.", "returns true if the primary key fields are valid for delete, else false.\nPK fields are valid if each of them contains a valid non-null value\n@param cld the ClassDescriptor\n@param obj the object\n@return boolean", "Pretty print a progress update after each batch complete.\n\n@param batchCount current batch\n@param numBatches total number of batches\n@param partitionStoreCount partition stores migrated\n@param numPartitionStores total number of partition stores to migrate\n@param totalTimeMs total time, in milliseconds, of execution thus far.", "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", "Finds out which dump files of the given type have been downloaded\nalready. The result is a list of objects that describe the available dump\nfiles, in descending order by their date. Not all of the dumps included\nmight be actually available.\n\n@param dumpContentType\nthe type of dump to consider\n@return list of objects that provide information on available dumps", "Look for a child view with the given id. If this view has the given\nid, return this view.\n\n@param id The id to search for.\n@return The view that has the given id in the hierarchy or null", "Abort an active extern transaction associated with the given PB." ]
private Project.Calendars.Calendar writeCalendar(ProjectCalendar bc) { // // Create a calendar // Project.Calendars.Calendar calendar = m_factory.createProjectCalendarsCalendar(); calendar.setUID(NumberHelper.getBigInteger(bc.getUniqueID())); calendar.setIsBaseCalendar(Boolean.valueOf(!bc.isDerived())); ProjectCalendar base = bc.getParent(); // SF-329: null default required to keep Powerproject happy when importing MSPDI files calendar.setBaseCalendarUID(base == null ? NULL_CALENDAR_ID : NumberHelper.getBigInteger(base.getUniqueID())); calendar.setName(bc.getName()); // // Create a list of normal days // Project.Calendars.Calendar.WeekDays days = m_factory.createProjectCalendarsCalendarWeekDays(); Project.Calendars.Calendar.WeekDays.WeekDay.WorkingTimes.WorkingTime time; ProjectCalendarHours bch; List<Project.Calendars.Calendar.WeekDays.WeekDay> dayList = days.getWeekDay(); for (int loop = 1; loop < 8; loop++) { DayType workingFlag = bc.getWorkingDay(Day.getInstance(loop)); if (workingFlag != DayType.DEFAULT) { Project.Calendars.Calendar.WeekDays.WeekDay day = m_factory.createProjectCalendarsCalendarWeekDaysWeekDay(); dayList.add(day); day.setDayType(BigInteger.valueOf(loop)); day.setDayWorking(Boolean.valueOf(workingFlag == DayType.WORKING)); if (workingFlag == DayType.WORKING) { Project.Calendars.Calendar.WeekDays.WeekDay.WorkingTimes times = m_factory.createProjectCalendarsCalendarWeekDaysWeekDayWorkingTimes(); day.setWorkingTimes(times); List<Project.Calendars.Calendar.WeekDays.WeekDay.WorkingTimes.WorkingTime> timesList = times.getWorkingTime(); bch = bc.getCalendarHours(Day.getInstance(loop)); if (bch != null) { for (DateRange range : bch) { if (range != null) { time = m_factory.createProjectCalendarsCalendarWeekDaysWeekDayWorkingTimesWorkingTime(); timesList.add(time); time.setFromTime(range.getStart()); time.setToTime(range.getEnd()); } } } } } } // // Create a list of exceptions // // A quirk of MS Project is that these exceptions must be // in date order in the file, otherwise they are ignored // List<ProjectCalendarException> exceptions = new ArrayList<ProjectCalendarException>(bc.getCalendarExceptions()); if (!exceptions.isEmpty()) { Collections.sort(exceptions); writeExceptions(calendar, dayList, exceptions); } // // Do not add a weekdays tag to the calendar unless it // has valid entries. // Fixes SourceForge bug 1854747: MPXJ and MSP 2007 XML formats // if (!dayList.isEmpty()) { calendar.setWeekDays(days); } writeWorkWeeks(calendar, bc); m_eventManager.fireCalendarWrittenEvent(bc); return (calendar); }
[ "This method writes data for a single calendar to an MSPDI file.\n\n@param bc Base calendar data\n@return New MSPDI calendar instance" ]
[ "To populate the dropdown list from the jelly", "Set an outline code value.\n\n@param index outline code index (1-10)\n@param value outline code value", "Apply content type to response with result provided.\n\nIf `result` is an error then it might not apply content type as requested:\n* If request is not ajax request, then use `text/html`\n* If request is ajax request then apply requested content type only when `json` or `xml` is requested\n* otherwise use `text/html`\n\n@param result\nthe result used to check if it is error result\n@return this `ActionContext`.", "Convert the Values using the FieldConversion.sqlToJava\n@param fcs\n@param values", "Create a new queued pool using the defaults for key of type K, request of\ntype R, and value of Type V.\n\n@param factory The factory that creates objects\n@return The created pool", "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", "Apply the remote domain model to the local host controller.\n\n@param bootOperations the result of the remote read-domain-model op\n@return {@code true} if the model was applied successfully, {@code false} otherwise", "Check if this is a redeployment triggered after the removal of a link.\n@param operation the current operation.\n@return true if this is a redeploy after the removal of a link.\n@see org.jboss.as.server.deploymentoverlay.DeploymentOverlayDeploymentRemoveHandler", "Retrieves a string value from the extended data.\n\n@param type Type identifier\n@return string value" ]
public void sendMessageToAgentsWithExtraProperties(String[] agent_name, String msgtype, Object message_content, ArrayList<Object> properties, Connector connector) { HashMap<String, Object> hm = new HashMap<String, Object>(); hm.put("performative", msgtype); hm.put(SFipa.CONTENT, message_content); for (Object property : properties) { // Logger logger = Logger.getLogger("JadexMessenger"); // logger.info("Sending message with extra property: "+property.get(0)+", with value "+property.get(1)); hm.put((String) ((Tuple) property).get(0), ((Tuple) property).get(1)); } IComponentIdentifier[] ici = new IComponentIdentifier[agent_name.length]; for (int i = 0; i < agent_name.length; i++) { ici[i] = (IComponentIdentifier) connector.getAgentID(agent_name[i]); } ((IMessageService) connector.getMessageService()).deliverMessage(hm, "fipa", ici); }
[ "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" ]
[ "decides which icon to apply or hide this view\n\n@param imageHolder\n@param imageView\n@param iconColor\n@param tint", "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions", "Parses the equation and compiles it into a sequence which can be executed later on\n@param equation String in simple equation format.\n@param assignment if true an assignment is expected and an exception if thrown if there is non\n@param debug if true it will print out debugging information\n@return Sequence of operations on the variables", "Returns the sentence as a string with a space between words.\nDesigned to work robustly, even if the elements stored in the\n'Sentence' are not of type Label.\n\nThis one uses the default separators for any word type that uses\nseparators, such as TaggedWord.\n\n@param justValue If <code>true</code> and the elements are of type\n<code>Label</code>, return just the\n<code>value()</code> of the <code>Label</code> of each word;\notherwise,\ncall the <code>toString()</code> method on each item.\n@return The sentence in String form", "If directory doesn't exists try to create it.\n\n@param directory given directory to check\n@throws ReportGenerationException if can't create specified directory", "Remove a key for all language versions. If a descriptor is present, the key is only removed in the descriptor.\n\n@param key the key to remove.\n@return <code>true</code> if removing was successful, <code>false</code> otherwise.", "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", "Transform the root bone of the pose by the given matrix.\n@param trans matrix to transform the pose by.", "Converts the text stream data to HTML form.\n\n@param content the content to convert\n@return the HTML version of the content" ]
public static int[] longestWord(LinkedList<AT_Row> rows, int colNumbers){ if(rows==null){ return null; } if(rows.size()==0){ return new int[0]; } int[] ret = new int[colNumbers]; for(AT_Row row : rows){ if(row.getType()==TableRowType.CONTENT) { LinkedList<AT_Cell> cells = row.getCells(); for(int i=0; i<cells.size(); i++) { if(cells.get(i).getContent()!=null){ String[] ar = StringUtils.split(Object_To_StrBuilder.convert(cells.get(i).getContent()).toString()); for(int k=0; k<ar.length; k++){ int count = ar[k].length() + cells.get(i).getContext().getPaddingLeft() + cells.get(i).getContext().getPaddingRight(); if(count>ret[i]){ ret[i] = count; } } } } } } return ret; }
[ "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" ]
[ "Returns a new Set containing all the objects in the specified array.", "The main method, which is essentially the same as in CRFClassifier. See the class documentation.", "Retrieve and validate the key from the REST request.\n\n@return true if present, false if missing", "Use this API to fetch all the dnspolicylabel resources that are configured on netscaler.", "Processes the most recent dump of the given type using the given dump\nprocessor.\n\n@see DumpProcessingController#processMostRecentMainDump()\n@see DumpProcessingController#processAllRecentRevisionDumps()\n\n@param dumpContentType\nthe type of dump to process\n@param dumpFileProcessor\nthe processor to use\n@deprecated Use {@link #getMostRecentDump(DumpContentType)} and\n{@link #processDump(MwDumpFile)} instead; method will vanish\nin WDTK 0.5", "Writes the timephased data for a resource assignment.\n\n@param mpx MPXJ assignment\n@param xml MSDPI assignment", "Updates the date and time formats.\n\n@param properties project properties", "Return the list of licenses attached to an artifact\n\n@param gavc String\n@param filters FiltersHolder\n@return List<DbLicense>", "Use this API to fetch sslcertkey_sslocspresponder_binding resources of given name ." ]
public void setPadding(float padding, Layout.Axis axis) { OrientedLayout layout = null; switch(axis) { case X: layout = mShiftLayout; break; case Y: layout = mShiftLayout; break; case Z: layout = mStackLayout; break; } if (layout != null) { if (!equal(layout.getDividerPadding(axis), padding)) { layout.setDividerPadding(padding, axis); if (layout.getOrientationAxis() == axis) { requestLayout(); } } } }
[ "Sets padding between the pages\n@param padding\n@param axis" ]
[ "Adds a member to this group with the specified role.\n@param user the member to be added to this group.\n@param role the role of the user in this group. Can be null to assign the default role.\n@return info about the new group membership.", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the proper value", "Retrieve the effective calendar for this task. If the task does not have\na specific calendar associated with it, fall back to using the default calendar\nfor the project.\n\n@return ProjectCalendar instance", "Returns the complete tag record for a single tag.\n\n@param tag The tag to get.\n@return Request object", "Update the central directory signature of a .jar.\n\n@param file the file to process\n@param searchPattern the search patter to use\n@param badSkipBytes the bad bytes skip table\n@param newSig the new signature\n@param endSig the expected signature\n@throws IOException", "When all the elements in a sorted set are inserted with the same score, in order to force lexicographical\nordering, this command returns the number of elements in the sorted set with a value in the given range.\n@param lexRange\n@return the number of elements in the specified range.", "Promote a module in the Grapes server\n\n@param name\n@param version\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "determine the what state a transaction is in by inspecting the primary column", "Finds the Widget in hierarchy\n@param name Name of the child to find\n@return The named child {@link Widget} or {@code null} if not found." ]
public void setYearlyAbsoluteFromDate(Date date) { if (date != null) { Calendar cal = DateHelper.popCalendar(date); m_dayNumber = Integer.valueOf(cal.get(Calendar.DAY_OF_MONTH)); m_monthNumber = Integer.valueOf(cal.get(Calendar.MONTH) + 1); DateHelper.pushCalendar(cal); } }
[ "Sets the yearly absolute date.\n\n@param date yearly absolute date" ]
[ "An efficient method for exchanging data between two bit strings. Both bit strings must\nbe long enough that they contain the full length of the specified substring.\n@param other The bitstring with which this bitstring should swap bits.\n@param start The start position for the substrings to be exchanged. All bit\nindices are big-endian, which means position 0 is the rightmost bit.\n@param length The number of contiguous bits to swap.", "multi-field string", "Retrieves the index of a cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry index", "Creates a binary media type with the given type and subtype\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "Sets the number of ms to wait before attempting to obtain a connection again after a failure.\n@param acquireRetryDelay the acquireRetryDelay to set\n@param timeUnit time granularity", "Creates a real valued diagonal matrix of the specified type", "Creates a new Table instance from data extracted from an MPP file.\n\n@param file parent project file\n@param data fixed data\n@param varMeta var meta\n@param varData var data\n@return Table instance", "Calculates the Boundedness value to given confinement radius, diffusion coefficient, timlag and number of steps.\n@param D diffusion coefficient\n@param N Number of steps\n@param timelag Timelag\n@param confRadius Confinement radius\n@return Boundedness value", "Curries a procedure that takes two arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes one argument. Never <code>null</code>." ]
public static Iterable<BoxRetentionPolicy.Info> getAll( String name, String type, String userID, int limit, final BoxAPIConnection api, String ... fields) { QueryStringBuilder queryString = new QueryStringBuilder(); if (name != null) { queryString.appendParam("policy_name", name); } if (type != null) { queryString.appendParam("policy_type", type); } if (userID != null) { queryString.appendParam("created_by_user_id", userID); } if (fields.length > 0) { queryString.appendParam("fields", fields); } URL url = RETENTION_POLICIES_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), queryString.toString()); return new BoxResourceIterable<BoxRetentionPolicy.Info>(api, url, limit) { @Override protected BoxRetentionPolicy.Info factory(JsonObject jsonObject) { BoxRetentionPolicy policy = new BoxRetentionPolicy(api, jsonObject.get("id").asString()); return policy.new Info(jsonObject); } }; }
[ "Returns all the retention policies with specified filters.\n@param name a name to filter the retention policies by. A trailing partial match search is performed.\nSet to null if no name filtering is required.\n@param type a policy type to filter the retention policies by. Set to null if no type filtering is required.\n@param userID a user id to filter the retention policies by. Set to null if no type filtering is required.\n@param limit the limit of items per single response. The default value is 100.\n@param api the API connection to be used by the resource.\n@param fields the fields to retrieve.\n@return an iterable with all the retention policies met search conditions." ]
[ "Processes the template for the comma-separated value pairs in an attribute of the current object on the specified level.\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=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"true\" description=\"The name of the attribute containg attributes (defaults to 'attributes')\"\[email protected] name=\"default-right\" optional=\"true\" description=\"The default right value if none is given (defaults to empty value)\"", "Counts one entity. Every once in a while, the current time is checked so\nas to print an intermediate report roughly every ten seconds.", "The amount of time to keep an idle client thread alive\n\n@param threadIdleTime", "Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name .", "Return all valid maturities for a given moneyness.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@return The maturities as year fraction from reference date.", "Adds a node to this graph.\n\n@param node the node", "The main method called from the command line.\n\n@param args the command line arguments", "Registers an image to the images cache, so that it can be captured by the build-info proxy.\n\n@param imageId\n@param imageTag\n@param targetRepo\n@param buildInfoId\n@throws IOException", "1-D Double array to integer array.\n\n@param array Double array.\n@return Integer array." ]
public static RequiredConfigurationHolder populateHostResolutionContext(final HostInfo hostInfo, final Resource root, final ExtensionRegistry extensionRegistry) { final RequiredConfigurationHolder rc = new RequiredConfigurationHolder(); for (IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo info : hostInfo.getServerConfigInfos()) { processServerConfig(root, rc, info, extensionRegistry); } return rc; }
[ "Process the host info and determine which configuration elements are required on the slave host.\n\n@param hostInfo the host info\n@param root the model root\n@param extensionRegistry the extension registry\n@return" ]
[ "Utility function to get the current value.", "helper method to set the TranslucentStatusFlag\n\n@param on", "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress.\n@throws BoxAPIException if an error occurs while writing to the connection.", "Select item by it's position\n\n@param position int value of item position to select\n@param invokeListeners boolean value for invoking listeners", "Use this API to add authenticationradiusaction resources.", "Returns an object which represents the data to be transferred. The class\nof the object returned is defined by the representation class of the flavor.\n\n@param flavor the requested flavor for the data\n@see DataFlavor#getRepresentationClass\n@exception IOException if the data is no longer available\nin the requested flavor.\n@exception UnsupportedFlavorException if the requested data flavor is\nnot supported.", "Count the total number of queued resource requests for all queues. The\nresult is \"approximate\" in the face of concurrency since individual\nqueues can change size during the aggregate count.\n\n@return The (approximate) aggregate count of queued resource requests.", "Use this API to fetch wisite_accessmethod_binding resources of given name .", "Converts a tab delimited string into an object with given fields\nRequires the object has setXxx functions for the specified fields\n\n@param objClass Class of object to be created\n@param str string to convert\n@param delimiterRegex delimiter regular expression\n@param fieldNames fieldnames\n@param <T> type to return\n@return Object created from string" ]
public static base_response renumber(nitro_service client) throws Exception { nspbr6 renumberresource = new nspbr6(); return renumberresource.perform_operation(client,"renumber"); }
[ "Use this API to renumber nspbr6." ]
[ "Conditionally read a nested table based in the value of a boolean flag which precedes the table data.\n\n@param readerClass reader class\n@return table rows or empty list if table not present", "Replace a photo from a File.\n\n@param file\n@param flickrId\n@param async\n@return photoId or ticketId\n@throws FlickrException", "Release the connection back to the pool.\n\n@throws SQLException Never really thrown", "Utility function to set the current value in a ListBox.\n\n@return returns true if the option corresponding to the value\nwas successfully selected in the ListBox", "Write attributes for an individual custom field.\nNote that at present we are only writing a subset of the\navailable data... in this instance the field alias.\nIf the field does not have an alias we won't write an\nentry.\n\n@param field custom field to write\n@throws IOException", "The document field must not exist in the list provided\n@param rhs The argument - one or more values\n@return PredicateExpression: $nin rhs", "Tests whether the given string is the name of a java.lang type.", "Given a parameter, builds a new parameter for which the known generics placeholders are resolved.\n@param genericFromReceiver resolved generics from the receiver of the message\n@param placeholdersFromContext, resolved generics from the method context\n@param methodParameter the method parameter for which we want to resolve generic types\n@param paramType the (unresolved) type of the method parameter\n@return a new parameter with the same name and type as the original one, but with resolved generic types", "Gets the Square Euclidean distance between two points.\n\n@param x A point in space.\n@param y A point in space.\n@return The Square Euclidean distance between x and y." ]
private boolean matchesFingerprint(byte[] buffer, Pattern fingerprint) { return fingerprint.matcher(m_charset == null ? new String(buffer) : new String(buffer, m_charset)).matches(); }
[ "Determine if the buffer, when expressed as text, matches a fingerprint regular expression.\n\n@param buffer bytes from file\n@param fingerprint fingerprint regular expression\n@return true if the file matches the fingerprint" ]
[ "Get a store definition from the given list of store definitions\n\n@param list A list of store definitions\n@param name The name of the store\n@return The store definition", "Get the FieldDescriptor for the PathInfo\n\n@param aTableAlias\n@param aPathInfo\n@return FieldDescriptor", "Search for the first entry in the first database. Use this method for databases configured with no duplicates.\n\n@param txn enclosing transaction\n@param first first key.\n@return null if no entry found, otherwise the value.", "Retrieve the set of start dates represented by this recurrence data.\n\n@return array of start dates", "Determines if the queue identified by the given key is used.\n\n@param jedis\nconnection to Redis\n@param key\nthe key that identifies a queue\n@return true if the key is used, false otherwise", "Get the original-image using the specified URL suffix.\n\n@deprecated\n@see PhotosInterface#getImage(Photo, int)\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException\n@throws FlickrException", "Called on mouse up in the caption area, ends dragging by ending event\ncapture.\n\n@param event the mouse up event that ended dragging\n\n@see DOM#releaseCapture\n@see #beginDragging\n@see #endDragging", "This method creates the flattened POM what is the main task of this plugin.\n\n@param pomFile is the name of the original POM file to read and transform.\n@return the {@link Model} of the flattened POM.\n@throws MojoExecutionException if anything goes wrong (e.g. POM can not be processed).\n@throws MojoFailureException if anything goes wrong (logical error).", "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" ]
@SuppressWarnings({"unused", "WeakerAccess"}) public void recordScreen(String screenName){ if(screenName == null || (!currentScreenName.isEmpty() && currentScreenName.equals(screenName))) return; getConfigLogger().debug(getAccountId(), "Screen changed to " + screenName); currentScreenName = screenName; recordPageEventWithExtras(null); }
[ "Record a Screen View event\n@param screenName String, the name of the screen" ]
[ "Validate the header signature.\n\n@param input The input to read the signature from\n@throws IOException If any read problems occur", "The default User-Agent header. Override this method to override the user agent.\n\n@return the user agent string.", "Add a new Corporate GroupId to an organization.\n\n@param credential DbCredential\n@param organizationId String Organization name\n@param corporateGroupId String\n@return Response", "Set the payload to the fileModel of the given instance even though the variable is not directly referencing it. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "This is the main entry point used to convert the internal representation\nof timephased work into an external form which can\nbe displayed to the user.\n\n@param projectCalendar calendar used by the resource assignment\n@param work 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", "Generate a schedule for the given start and end date.\n\n@param referenceDate The reference date (corresponds to \\( t = 0 \\).\n@param startDate The start date.\n@param endDate The end date.\n@return The schedule", "Processes the template if the property value of the current object on the specified level equals the given value.\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=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"value\" optional=\"false\" description=\"The value to check for\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"", "Clear the selection of all items.\n@param requestLayout request layout after clear selection if the flag is true, no layout\nrequested otherwise\n@return {@code true} if at least one item was deselected,\n{@code false} otherwise.", "currently does not support paths with name constrains" ]
public static crvserver_policymap_binding[] get(nitro_service service, String name) throws Exception{ crvserver_policymap_binding obj = new crvserver_policymap_binding(); obj.set_name(name); crvserver_policymap_binding response[] = (crvserver_policymap_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch crvserver_policymap_binding resources of given name ." ]
[ "Allows direct access to the Undertow.Builder for custom configuration\n\n@param serverConfigurationFunction the serverConfigurationFunction", "Write a long attribute.\n\n@param name attribute name\n@param value attribute value", "Extract note text.\n\n@param row task data\n@return note text", "This method extracts project properties from a Planner file.\n\n@param project Root node of the Planner file", "Add a raw statement as part of the where that can be anything that the database supports. Using more structured\nmethods is recommended but this gives more control over the query and allows you to utilize database specific\nfeatures.\n\n@param rawStatement\nThe statement that we should insert into the WHERE.\n\n@param args\nOptional arguments that correspond to any ? specified in the rawStatement. Each of the arguments must\nhave either the corresponding columnName or the sql-type set. <b>WARNING,</b> you cannot use the\n{@code SelectArg(\"columnName\")} constructor since that sets the _value_, not the name. Use\n{@code new SelectArg(\"column-name\", null);}.", "Send a channels on-air update to all registered listeners.\n\n@param audibleChannels holds the device numbers of all channels that can currently be heard in the mixer output", "Helper xml end tag writer\n\n@param value the output stream to use in writing", "Sets in-place the right child with the same first byte.\n\n@param b next byte of child suffix.\n@param child child node.", "Get the object responsible for printing to the correct output format.\n\n@param specJson the request json from the client" ]
public final List<Throwable> validate() { List<Throwable> validationErrors = new ArrayList<>(); this.accessAssertion.validate(validationErrors, this); for (String jdbcDriver: this.jdbcDrivers) { try { Class.forName(jdbcDriver); } catch (ClassNotFoundException e) { try { Configuration.class.getClassLoader().loadClass(jdbcDriver); } catch (ClassNotFoundException e1) { validationErrors.add(new ConfigurationException(String.format( "Unable to load JDBC driver: %s ensure that the web application has the jar " + "on its classpath", jdbcDriver))); } } } if (this.configurationFile == null) { validationErrors.add(new ConfigurationException("Configuration file is field on configuration " + "object is null")); } if (this.templates.isEmpty()) { validationErrors.add(new ConfigurationException("There are not templates defined.")); } for (Template template: this.templates.values()) { template.validate(validationErrors, this); } for (HttpProxy proxy: this.proxies) { proxy.validate(validationErrors, this); } try { ColorParser.toColor(this.opaqueTileErrorColor); } catch (RuntimeException ex) { validationErrors.add(new ConfigurationException("Cannot parse opaqueTileErrorColor", ex)); } try { ColorParser.toColor(this.transparentTileErrorColor); } catch (RuntimeException ex) { validationErrors.add(new ConfigurationException("Cannot parse transparentTileErrorColor", ex)); } if (smtp != null) { smtp.validate(validationErrors, this); } return validationErrors; }
[ "Validate that the configuration is valid.\n\n@return any validation errors." ]
[ "Get the list of supported resolutions for the layer. Each resolution is specified in map units per pixel.\n\n@return list of supported resolutions\n@deprecated use {@link #getZoomLevels()}", "Use this API to fetch rnat6_nsip6_binding resources of given name .", "This method writes resource data to a Planner file.", "Set the repeat type.\n\nIn the default {@linkplain GVRRepeatMode#ONCE run-once} mode, animations\nrun once, ignoring the {@linkplain #getRepeatCount() repeat count.} In\n{@linkplain GVRRepeatMode#PINGPONG ping pong} and\n{@linkplain GVRRepeatMode#REPEATED repeated} modes, animations do honor\nthe repeat count, which {@linkplain #DEFAULT_REPEAT_COUNT defaults} to 2.\n\n@param repeatMode\nOne of the {@link GVRRepeatMode} constants\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code repetitionType} is not one of the\n{@link GVRRepeatMode} constants", "Prints a stores xml to a file.\n\n@param outputDirName\n@param fileName\n@param list of storeDefs", "read the file as a list of text lines", "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", "Prepare a parallel SSH Task.\n\n@return the parallel task builder", "Use this API to fetch all the Interface resources that are configured on netscaler." ]
public Entry<T>[] entries() { @SuppressWarnings("unchecked") Entry<T>[] entries = new Entry[size]; int idx = 0; for (Entry entry : table) { while (entry != null) { entries[idx++] = entry; entry = entry.next; } } return entries; }
[ "Returns all entries in no particular order." ]
[ "Creates a new subtask and adds it to the parent task. Returns the full record\nfor the newly created subtask.\n\n@param task The task to add a subtask to.\n@return Request object", "Clears the handler hierarchy.", "Use this API to unset the properties of Interface resource.\nProperties that need to be unset are specified in args array.", "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", "Returns the adapter position of the Parent associated with this ChildViewHolder\n\n@return The adapter position of the Parent if it still exists in the adapter.\nRecyclerView.NO_POSITION if item has been removed from the adapter,\nRecyclerView.Adapter.notifyDataSetChanged() has been called after the last\nlayout pass or the ViewHolder has already been recycled.", "Perform construction.\n\n@param callbackHandler", "Not exposed directly - the Query object passed as parameter actually contains results...", "Delete an object.", "Function to update store definitions. Unlike the put method, this\nfunction does not delete any existing state. It only updates the state of\nthe stores specified in the given stores.xml\n\n@param valueBytes specifies the bytes of the stores.xml containing\nupdates for the specified stores" ]
public static base_response update(nitro_service client, vlan resource) throws Exception { vlan updateresource = new vlan(); updateresource.id = resource.id; updateresource.aliasname = resource.aliasname; updateresource.ipv6dynamicrouting = resource.ipv6dynamicrouting; return updateresource.update_resource(client); }
[ "Use this API to update vlan." ]
[ "Inspects the object and all superclasses for public, non-final, accessible methods and returns a\ncollection containing all the attributes found.\n\n@param classToInspect the class under inspection.", "Creates a new ServerDetails object for resolver, this will take URL and name from the deployer ServerDetails as a default behaviour", "Adds steps types from given injector and recursively its parent\n\n@param injector the current Inject\n@param types the List of steps types", "Evaluates the filter, returns true if the supplied Task or Resource\ninstance matches the filter criteria.\n\n@param container Task or Resource instance\n@param promptValues respose to prompts\n@return boolean flag", "Wrap an operation's parameters in a simple encapsulating object\n@param operation the operation\n@param messageHandler the message handler\n@param attachments the attachments\n@return the encapsulating object", "Check type.\n\n@param type the type\n@return the boolean", "Enter information into the hidden input field.\n\n@param input The input to enter into the hidden field.", "Gets information about a trashed file that's limited to a list of specified fields.\n@param fileID the ID of the trashed file.\n@param fields the fields to retrieve.\n@return info about the trashed file containing only the specified fields.", "Links the form with an HTML element which can be clicked.\n\n@param form the collection of the input fields\n@return a FormAction\n@see Form" ]
private String getSignature(String sharedSecret, Map<String, String> params) { StringBuffer buffer = new StringBuffer(); buffer.append(sharedSecret); for (Map.Entry<String, String> entry : params.entrySet()) { buffer.append(entry.getKey()); buffer.append(entry.getValue()); } try { MessageDigest md = MessageDigest.getInstance("MD5"); return ByteUtilities.toHexString(md.digest(buffer.toString().getBytes("UTF-8"))); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } catch (UnsupportedEncodingException u) { throw new RuntimeException(u); } }
[ "Get a signature for a list of parameters using the given shared secret.\n\n@param sharedSecret\nThe shared secret\n@param params\nThe parameters\n@return The signature String" ]
[ "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", "Converts this object to JSON.\n\n@return the JSON representation\n\n@throws JSONException if JSON operations fail", "Remove pairs with the given keys from the map.\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param keysToRemove the keys of the pairs to remove.\n@since 2.15", "Adjust submatrices and helper data structures for the input matrix. Must be called\nbefore the decomposition can be computed.\n\n@param orig", "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", "The entity instance is already in the session cache\n\nCopied from Loader#instanceAlreadyLoaded", "Use this API to update lbsipparameters.", "Creates a sorted list that contains the items of the given iterable. The resulting list is in ascending order,\naccording to the natural ordering of the elements in the iterable.\n\n@param iterable\nthe items to be sorted. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see Collections#sort(List)\n@see #sort(Iterable, Comparator)\n@see #sortBy(Iterable, org.eclipse.xtext.xbase.lib.Functions.Function1)\n@see ListExtensions#sortInplace(List)", "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@param inputMap the entries to add.\n@since 2.15" ]
public List<String> invoke(File f, VirtualChannel channel) throws IOException, InterruptedException { MavenProject mavenProject = getMavenProject(f.getAbsolutePath()); return mavenProject.getModel().getModules(); }
[ "This is needed when running on slaves." ]
[ "Creates an Odata filter string that can be used for filtering list results by tags.\n\n@param tagName the name of the tag. If not provided, all resources will be returned.\n@param tagValue the value of the tag. If not provided, only tag name will be filtered.\n@return the Odata filter to pass into list methods", "Gets the index to use in the search.\n\n@return the index to use in the search", "This implementation does not support the 'offset' and 'maxResultSize' parameters.", "Use this API to add authenticationradiusaction resources.", "Get the Exif data for the photo.\n\nThe calling user must have permission to view the photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@param secret\nThe secret\n@return A collection of Exif objects\n@throws FlickrException", "This is an assertion method that can be used by a thread to confirm that\nthe thread isn't already holding lock for an object, before acquiring a\nlock\n\n@param object\nobject to test for lock\n@param name\ntag associated with the lock", "Webkit based browsers require that we set the webkit-user-drag style\nattribute to make an element draggable.", "Set the weeks of the month the events should occur.\n@param weeksOfMonth the weeks of month to set (first to fifth, where fifth means last).", "Count the number of non-zero elements in V" ]
public static MBeanParameterInfo[] extractParameterInfo(Method m) { Class<?>[] types = m.getParameterTypes(); Annotation[][] annotations = m.getParameterAnnotations(); MBeanParameterInfo[] params = new MBeanParameterInfo[types.length]; for(int i = 0; i < params.length; i++) { boolean hasAnnotation = false; for(int j = 0; j < annotations[i].length; j++) { if(annotations[i][j] instanceof JmxParam) { JmxParam param = (JmxParam) annotations[i][j]; params[i] = new MBeanParameterInfo(param.name(), types[i].getName(), param.description()); hasAnnotation = true; break; } } if(!hasAnnotation) { params[i] = new MBeanParameterInfo("", types[i].getName(), ""); } } return params; }
[ "Extract the parameters from a method using the Jmx annotation if present,\nor just the raw types otherwise\n\n@param m The method to extract parameters from\n@return An array of parameter infos" ]
[ "Write the classifications of the Sequence classifier out to a writer in a\nformat determined by the DocumentReaderAndWriter used.\n\n@param doc Documents to write out\n@param printWriter Writer to use for output\n@throws IOException If an IO problem", "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.", "Use this API to change sslcertkey resources.", "Send an error to the client with an exception.\n\n@param httpServletResponse the http response to send the error to\n@param e the error that occurred", "Convenience method to set the underlying bean instance for a proxy.\n\n@param proxy the proxy instance\n@param beanInstance the instance of the bean", "Add \"ORDER BY\" clause to the SQL query statement. This can be called multiple times to add additional \"ORDER BY\"\nclauses. Ones earlier are applied first.", "Setter for the file format.\n@param fileFormat File format the configuration file is in.", "Process task dependencies.", "Extracts out a matrix from source given a sub matrix with arbitrary rows and columns specified in\ntwo array lists\n\n@param src Source matrix. Not modified.\n@param rows array of row indexes\n@param rowsSize maximum element in row array\n@param cols array of column indexes\n@param colsSize maximum element in column array\n@param dst output matrix. Must be correct shape." ]
public ThreadUsage getThreadUsage() { ThreadMXBean threadMxBean = ManagementFactory.getThreadMXBean(); ThreadUsage threadUsage = new ThreadUsage(); long[] threadIds = threadMxBean.getAllThreadIds(); threadUsage.liveThreadCount = threadIds.length; for (long tId : threadIds) { ThreadInfo threadInfo = threadMxBean.getThreadInfo(tId); threadUsage.threadData.put(Long.toString(tId), new ThreadData( threadInfo.getThreadName(), threadInfo.getThreadState() .name(), threadMxBean.getThreadCpuTime(tId))); } return threadUsage; }
[ "Gets the thread usage.\n\n@return the thread usage" ]
[ "Starts all streams.", "Sets a parameter for the creator.", "Scans a set of classes for both ReaderListeners and Swagger annotations. All found listeners will\nbe instantiated before any of the classes are scanned for Swagger annotations - so they can be invoked\naccordingly.\n\n@param classes a set of classes to scan\n@return the generated Swagger definition", "Process the standard working hours for a given day.\n\n@param mpxjCalendar MPXJ Calendar instance\n@param uniqueID unique ID sequence generation\n@param day Day instance\n@param typeList Planner list of days", "Appends a String to the string representation of this number.\n\n@param value a Number\n@param right a String\n@return a String\n@since 1.0", "Renders the document to the specified output stream.", "process all messages in this batch, provided there is plenty of output space.", "Retrieve the index of the table entry valid for the supplied date.\n\n@param date required date\n@return cost rate table entry index", "Do some magic to turn request parameters into a context object" ]
public static final String getString(byte[] data, int offset) { StringBuilder buffer = new StringBuilder(); char c; for (int loop = 0; offset + loop < data.length; loop++) { c = (char) data[offset + loop]; if (c == 0) { break; } buffer.append(c); } return (buffer.toString()); }
[ "Reads a string of single byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nReading begins at the supplied offset into the array.\n\n@param data byte array of data\n@param offset offset into the array\n@return string value" ]
[ "Launch Sample Activity residing in the same module", "Add an additional binary type", "Close all HTTP clients created by this factory\n@throws IOException if an I/O error occurs", "Read exceptions for a calendar.\n\n@param table calendar exception data\n@param calendar calendar\n@param exceptionID first exception ID", "Records the result of updating a server group.\n\n@param serverGroup the server group's name. Cannot be <code>null</code>\n@param failed <code>true</code> if the server group update failed;\n<code>false</code> if it succeeded", "Write a list of custom field attributes.", "Use this API to fetch responderhtmlpage resource of given name .", "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>", "Guess the type of the given dump from its filename.\n\n@param fileName\n@return dump type, defaulting to JSON if no type was found" ]
@Override public CopticDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); }
[ "Obtains a local date in Coptic calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Coptic era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Coptic local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code CopticEra}" ]
[ "adds the qualified names to the export-package attribute, if not already\npresent.\n\n@param packages - passing parameterized packages is not supported", "Creates a block matrix the same size as A_inv, inverts the matrix and copies the results back\nonto A_inv.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Obtains a local date in Accounting calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Accounting era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code AccountingEra}", "a small helper to set the text color to a textView null save\n\n@param textView\n@param colorDefault", "Read a single weekday from the provided JSON value.\n@param val the value to read the week day from.\n@return the week day read\n@throws IllegalArgumentException thrown if the provided JSON value is not the representation of a week day.", "Checks if a given number is in the range of a float.\n\n@param number\na number which should be in the range of a float (positive or negative)\n\n@see java.lang.Float#MIN_VALUE\n@see java.lang.Float#MAX_VALUE\n\n@return number as a float", "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", "Creates an operation to read a resource.\n\n@param address the address to create the read for\n@param recursive whether to search recursively or not\n\n@return the operation", "Returns a source excerpt of the type parameters of this type, including angle brackets.\nAlways an empty string if the type class is not generic.\n\n<p>e.g. {@code <N, C>}" ]
public Story storyOfText(Configuration configuration, String storyAsText, String storyId) { return configuration.storyParser().parseStory(storyAsText, storyId); }
[ "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" ]
[ "Called just before the thread finishes, regardless of status, to take any necessary action on\nthe downloaded file with mDownloadedCacheSize file.\n\n@param forceClean - It will delete downloaded cache, Even streaming is enabled, If user intentionally cancelled.", "Update the BinderDescriptor of the declarationBinderRef.\n\n@param declarationBinderRef the ServiceReference<DeclarationBinder> of the DeclarationBinder", "This method is used to configure the format pattern.\n\n@param patterns new format patterns", "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object", "Return a long value which is the number of rows in the table.", "Use this API to update sslocspresponder.", "Create the exception assignment map.\n\n@param rows calendar rows\n@return exception assignment map", "Sets the left padding character for all cells in the table.\n@param paddingLeftChar new padding character, ignored if null\n@return this to allow chaining", "Add a given factory to the list of factories at the BEGINNING.\n\n@param factory The factory to be added.\n@return Cascade with amended factory list." ]
public static byte[] decodeBase64(String value) { int byteShift = 4; int tmp = 0; boolean done = false; final StringBuilder buffer = new StringBuilder(); for (int i = 0; i != value.length(); i++) { final char c = value.charAt(i); final int sixBit = (c < 123) ? EncodingGroovyMethodsSupport.TRANSLATE_TABLE[c] : 66; if (sixBit < 64) { if (done) throw new RuntimeException("= character not at end of base64 value"); // TODO: change this exception type tmp = (tmp << 6) | sixBit; if (byteShift-- != 4) { buffer.append((char) ((tmp >> (byteShift * 2)) & 0XFF)); } } else if (sixBit == 64) { byteShift--; done = true; } else if (sixBit == 66) { // RFC 2045 says that I'm allowed to take the presence of // these characters as evidence of data corruption // So I will throw new RuntimeException("bad character in base64 value"); // TODO: change this exception type } if (byteShift == 0) byteShift = 4; } try { return buffer.toString().getBytes("ISO-8859-1"); } catch (UnsupportedEncodingException e) { throw new RuntimeException("Base 64 decode produced byte values > 255"); // TODO: change this exception type } }
[ "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" ]
[ "Adds a security property to be passed to the server.\n\n@param key the property key\n@param value the property value\n\n@return the builder", "Returns the JSON datatype for the property datatype as represented by\nthe given WDTK datatype IRI string.\n\n@param datatypeIri\nthe WDTK datatype IRI string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known", "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance", "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.", "Executes the sequence of operations", "Use this API to fetch all the sslservice resources that are configured on netscaler.\nThis uses sslservice_args which is a way to provide additional arguments while fetching the resources.", "Initialize the ui elements for the management part.", "Iterate through a set of bit field flags and set the value for each one\nin the supplied container.\n\n@param flags bit field flags\n@param container field container\n@param data source data", "Converts string to UUID and returns it, or null if the conversion is not possible.\n\n@param uuid the potential UUID string\n@return the UUID, or null if conversion is not possible" ]
public void addChild(final DiffNode node) { if (node == this) { throw new IllegalArgumentException("Detected attempt to add a node to itself. " + "This would cause inifite loops and must never happen."); } else if (node.isRootNode()) { throw new IllegalArgumentException("Detected attempt to add root node as child. " + "This is not allowed and must be a mistake."); } else if (node.getParentNode() != null && node.getParentNode() != this) { throw new IllegalArgumentException("Detected attempt to add child node that is already the " + "child of another node. Adding nodes multiple times is not allowed, since it could " + "cause infinite loops."); } if (node.getParentNode() == null) { node.setParentNode(this); } children.put(node.getElementSelector(), node); if (state == State.UNTOUCHED && node.hasChanges()) { state = State.CHANGED; } }
[ "Adds a child to this node and sets this node as its parent node.\n\n@param node The node to add." ]
[ "Generates the body of a toString method that uses a StringBuilder and a separator variable.\n\n<p>Conventionally, we join properties with comma separators. If all of the properties are\noptional, we have no choice but to track the separators at runtime, as apart from the first\none, all properties will need to have a comma prepended. We could do this with a boolean,\nmaybe called \"separatorNeeded\", or \"firstValueOutput\", but then we need either a ternary\noperator or an extra nested if block. More readable is to use an initially-empty \"separator\"\nstring, which has a comma placed in it once the first value is written.\n\n<p>For extra tidiness, we note that the first if block need not try writing the separator\n(it is always empty), and the last one need not update it (it will not be used again).", "OR operation which takes 2 arguments and OR's them together.\n\n<p>\n<b>NOTE:</b> There is no guarantee of the order of the clauses that are generated in the final query.\n</p>\n<p>\n<b>NOTE:</b> I can't remove the generics code warning that can be associated with this method. You can instead\nuse the {@link #or(int)} method.\n</p>", "Shows the Loader component", "makes a deep clone of the object, using reflection.\n@param toCopy the object you want to copy\n@return", "Use this API to fetch snmpuser resource of given name .", "Checks if the provided artifactQuery is valid\n\n@param artifactQuery ArtifactQuery\n@throws WebApplicationException if the data is corrupted", "Creates and attaches the annotation index to a resource root, if it has not already been attached", "Reads a row of a CSV file and populates the bean, using the supplied name mapping to map column values to the\nappropriate fields. If processors are supplied then they are used, otherwise the raw String values will be used.\n\n@param bean\nthe bean to populate\n@param nameMapping\nthe name mapping array\n@param processors\nthe (optional) cell processors\n@return the populated bean, or null if EOF was reached\n@throws IllegalArgumentException\nif nameMapping.length != number of CSV columns read\n@throws IOException\nif an I/O error occurred\n@throws NullPointerException\nif bean or nameMapping are null\n@throws SuperCsvConstraintViolationException\nif a CellProcessor constraint failed\n@throws SuperCsvException\nif there was a general exception while reading/processing\n@throws SuperCsvReflectionException\nif there was an reflection exception while mapping the values to the bean", "Makes an ancestor filter." ]
protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
[ "Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.\n\n@param beanClass\n@return the additional bean deployment archive" ]
[ "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.", "Sends the events to monitoring service client.\n\n@param events the events", "Scale all widgets in Main Scene hierarchy\n@param scale", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will not block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests", "This is a convenience method which reads the first project\nfrom the named MPD file using the JDBC-ODBC bridge driver.\n\n@param accessDatabaseFileName access database file name\n@return ProjectFile instance\n@throws MPXJException", "Gets the boxed type of a class\n\n@param type The type\n@return The boxed type", "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.", "change server state between OFFLINE_SERVER and NORMAL_SERVER\n\n@param setToOffline True if set to OFFLINE_SERVER", "Use this API to add gslbsite." ]
@Override public <T> T get(Object key, Resource resource, Provider<T> provider) { if(resource == null) { return provider.get(); } CacheAdapter adapter = getOrCreate(resource); T element = adapter.<T>internalGet(key); if (element==null) { element = provider.get(); cacheMiss(adapter); adapter.set(key, element); } else { cacheHit(adapter); } if (element == CacheAdapter.NULL) { return null; } return element; }
[ "Try to obtain the value that is cached for the given key in the given resource.\nIf no value is cached, the provider is used to compute it and store it afterwards.\n@param resource the resource. If it is <code>null</code>, the provider will be used to compute the value.\n@param key the cache key. May not be <code>null</code>.\n@param provider the strategy to compute the value if necessary. May not be <code>null</code>." ]
[ "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", "Counts the number of lines.\n\n@param str the input string\n@return Returns the number of lines terminated by '\\n' in string", "Read an element which contains only a single list attribute of a given\ntype, returning it as an array.\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 as an array\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.", "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.", "Output the SQL type for the default value for the type.", "Set value for given object field.\n\n@param object object to be updated\n@param field field name\n@param value field value\n\n@throws NoSuchMethodException if property writer is not available\n@throws InvocationTargetException if property writer throws an exception\n@throws IllegalAccessException if property writer is inaccessible", "Initializes the fields on the changes file with the values of the specified\nbinary package control file.\n\n@param packageControlFile", "Sets the path of the edited file in the corresponding display.\n@param editedFilePath path of the edited file to 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" ]
public static Drawable decideIcon(ImageHolder imageHolder, Context ctx, int iconColor, boolean tint) { if (imageHolder == null) { return null; } else { return imageHolder.decideIcon(ctx, iconColor, tint); } }
[ "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return" ]
[ "Converts an object to an XML file.\n\n@param object The object to convert.\n@param fileName The filename where to save it to.\n@throws FileNotFoundException On error.", "Skips the given count of bytes, but at most the currently available count.\n\n@return number of bytes actually skipped from this buffer (0 if no bytes are available)", "Updates this BoxJSONObject using the information in a JSON object.\n@param jsonObject the JSON object containing updated information.", "Adds an extent relation to the current class definition.\n\n@param attributes The attributes of the tag\n@return An empty string\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"name\" optional=\"false\" description=\"The fully qualified name of the extending\nclass\"", "Use this API to unset the properties of clusternodegroup resources.\nProperties that need to be unset are specified in args array.", "Returns all the persistent id generators which potentially require the creation of an object in the schema.", "The location for this elevation.\n\n@return", "Set the attributes for this template.\n\n@param attributes the attribute map", "Determines whether the boolean value of the given string value.\n\n@param value The value\n@param defaultValue The boolean value to use if the string value is neither 'true' nor 'false'\n@return The boolean value of the string" ]
public AwsServiceClient withCodecRegistry(@Nonnull final CodecRegistry codecRegistry) { return new AwsServiceClientImpl(proxy.withCodecRegistry(codecRegistry), dispatcher); }
[ "Create a new AwsServiceClient instance with a different codec registry.\n\n@param codecRegistry the new {@link CodecRegistry} for the client.\n@return a new AwsServiceClient instance with the different codec registry" ]
[ "Use this API to add systemuser resources.", "Used to finish up pushing the bulge off the matrix.", "Adds a property to report design, this properties are mostly used by\nexporters to know if any specific configuration is needed\n\n@param name\n@param value\n@return A Dynamic Report Builder", "Creates a random diagonal matrix where the diagonal elements are selected from a uniform\ndistribution that goes from min to max.\n\n@param N Dimension of the matrix.\n@param min Minimum value of a diagonal element.\n@param max Maximum value of a diagonal element.\n@param rand Random number generator.\n@return A random diagonal matrix.", "Answer the orderBy of all Criteria and Sub Criteria\nthe elements are of class Criteria.FieldHelper\n@return List", "Create an import declaration and delegates its registration for an upper class.", "Use this API to unset the properties of gslbservice resources.\nProperties that need to be unset are specified in args array.", "Adds all fields declared directly in the object's class to the output\n@return this", "Visit all child nodes but not this one.\n\n@param visitor The visitor to use." ]