query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void setTexCoord(String texName, String texCoordAttr, String shaderVarName) { synchronized (textures) { GVRTexture tex = textures.get(texName); if (tex != null) { tex.setTexCoord(texCoordAttr, shaderVarName); } else { throw new UnsupportedOperationException("Texture must be set before updating texture coordinate information"); } } }
[ "Designate the vertex attribute and shader variable for the texture coordinates\nassociated with the named texture.\n\n@param texName name of texture\n@param texCoordAttr name of vertex attribute with texture coordinates.\n@param shaderVarName name of shader variable to get texture coordinates." ]
[ "Set an unknown field.\n@param name the unknown property name\n@param value the unknown property value", "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.", "Returns the number of vertex indices for a single face.\n\n@param face the face\n@return the number of indices", "Execute the operation.\n\n@param listener the transactional operation listener\n@param client the transactional protocol client\n@param identity the server identity\n@param operation the operation\n@param transformer the operation result transformer\n@return whether the operation was executed", "Classify stdin by documents seperated by 3 blank line\n@param readerWriter\n@return boolean reached end of IO\n@throws IOException", "Gets Widget bounds height\n@return height", "Returns an unmodifiable set containing the given elements.\n\n@param ts the elements from which to create a set\n@param <T> the type of the element in the set\n@return an unmodifiable set containing the given elements or {@code null} in case the given element array is\n{@code null}.", "For given field name get the actual hint message", "Instantiates an instance of input Java shader class,\nwhich must be derived from GVRShader or GVRShaderTemplate.\n@param id Java class which implements shaders of this type.\n@param ctx GVRContext shader belongs to\n@return GVRShader subclass which implements this shader type" ]
@Nonnull public static Proctor construct(@Nonnull final TestMatrixArtifact matrix, ProctorLoadResult loadResult, FunctionMapper functionMapper) { final ExpressionFactory expressionFactory = RuleEvaluator.EXPRESSION_FACTORY; final Map<String, TestChooser<?>> testChoosers = Maps.newLinkedHashMap(); final Map<String, String> versions = Maps.newLinkedHashMap(); for (final Entry<String, ConsumableTestDefinition> entry : matrix.getTests().entrySet()) { final String testName = entry.getKey(); final ConsumableTestDefinition testDefinition = entry.getValue(); final TestType testType = testDefinition.getTestType(); final TestChooser<?> testChooser; if (TestType.RANDOM.equals(testType)) { testChooser = new RandomTestChooser(expressionFactory, functionMapper, testName, testDefinition); } else { testChooser = new StandardTestChooser(expressionFactory, functionMapper, testName, testDefinition); } testChoosers.put(testName, testChooser); versions.put(testName, testDefinition.getVersion()); } return new Proctor(matrix, loadResult, testChoosers); }
[ "Factory method to do the setup and transformation of inputs\n\n@param matrix a {@link TestMatrixArtifact} loaded by ProctorLoader\n@param loadResult a {@link ProctorLoadResult} which contains result of validation of test definition\n@param functionMapper a given el {@link FunctionMapper}\n@return constructed Proctor object" ]
[ "This must be called with the write lock held.\n@param requirement the requirement", "Split a span into two by adding a knot in the middle.\n@param n the span index", "Installs a path service.\n\n@param name the name to use for the service\n@param path the relative portion of the path\n@param possiblyAbsolute {@code true} if {@code path} may be an {@link #isAbsoluteUnixOrWindowsPath(String) absolute path}\nand should be {@link AbsolutePathService installed as such} if it is, with any\n{@code relativeTo} parameter ignored\n@param relativeTo the name of the path that {@code path} may be relative to\n@param serviceTarget the {@link ServiceTarget} to use to install the service\n@return the ServiceController for the path service", "Populates a calendar instance.\n\n@param record MPX record\n@param calendar calendar instance\n@param isBaseCalendar true if this is a base calendar", "DISPATCHING - COMMANDS", "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "returns a dynamic Proxy that implements all interfaces of the\nclass described by this ClassDescriptor.\n\n@return Class the dynamically created proxy class", "Save page to log\n\n@return address of this page after save", "Attaches the menu drawer to the window." ]
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." ]
[ "Assign based on execution time history. The algorithm is a greedy heuristic\nassigning the longest remaining test to the slave with the\nshortest-completion time so far. This is not optimal but fast and provides\na decent average assignment.", "Sets all padding for all cells in the row to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining", "Moves everything up so that the specified shift or latch character can be inserted.\n\n@param position the position beyond which everything needs to be shifted\n@param c the latch or shift character to insert at the specified position, after everything has been shifted", "Use this API to fetch vpnsessionpolicy_aaauser_binding resources of given name .", "Flatten a list of test suite results into a collection of results grouped by test class.\nThis method basically strips away the TestNG way of organising tests and arranges\nthe results by test class.", "For a cert we have generated, return the private key.\n@param cert\n@return\n@throws CertificateEncodingException\n@throws KeyStoreException\n@throws UnrecoverableKeyException\n@throws NoSuchAlgorithmException", "Check whether the URL end with one of the given suffixes.\n\n@param uri URI\n@param patterns possible suffixes\n@return true when URL ends with one of the suffixes", "Validates the binding types", "Flatten a list of test suite results into a collection of results grouped by test class.\nThis method basically strips away the TestNG way of organising tests and arranges\nthe results by test class." ]
@Override public ProjectFile read(String accessDatabaseFileName) throws MPXJException { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=" + accessDatabaseFileName; m_connection = DriverManager.getConnection(url); m_projectID = Integer.valueOf(1); return (read()); } catch (ClassNotFoundException ex) { throw new MPXJException("Failed to load JDBC driver", ex); } catch (SQLException ex) { throw new MPXJException("Failed to create connection", ex); } finally { if (m_connection != null) { try { m_connection.close(); } catch (SQLException ex) { // silently ignore exceptions when closing connection } } } }
[ "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" ]
[ "Returns all ApplicationProjectModels.", "Create the patching task based on the definition.\n\n@param definition the task description\n@param provider the content provider\n@param context the task context\n@return the created task", "Extract WOEID after XML loads", "creates a point array of all dockers and add it to the current shape\n@param modelJSON\n@param current\n@throws org.json.JSONException", "Add an index on the given collection and field\n\n@param collection the collection to use for the index\n@param field the field to use for the index\n@param asc the sorting direction. <code>true</code> to sort ascending; <code>false</code> to sort descending\n@param background iff <code>true</code> the index is created in the background", "If the specified value is not greater than or equal to the specified minimum and\nless than or equal to the specified maximum, adjust it so that it is.\n@param value The value to check.\n@param min The minimum permitted value.\n@param max The maximum permitted value.\n@return {@code value} if it is between the specified limits, {@code min} if the value\nis too low, or {@code max} if the value is too high.\n@since 1.2", "Use this API to unset the properties of responderpolicy resource.\nProperties that need to be unset are specified in args array.", "Use this API to unset the properties of clusterinstance resource.\nProperties that need to be unset are specified in args array.", "Use this API to fetch all the clusterinstance resources that are configured on netscaler." ]
private static void addEcc(int[] fullstream, int[] datastream, int version, int data_cw, int blocks) { int ecc_cw = QR_TOTAL_CODEWORDS[version - 1] - data_cw; int short_data_block_length = data_cw / blocks; int qty_long_blocks = data_cw % blocks; int qty_short_blocks = blocks - qty_long_blocks; int ecc_block_length = ecc_cw / blocks; int i, j, length_this_block, posn; int[] data_block = new int[short_data_block_length + 2]; int[] ecc_block = new int[ecc_block_length + 2]; int[] interleaved_data = new int[data_cw + 2]; int[] interleaved_ecc = new int[ecc_cw + 2]; posn = 0; for (i = 0; i < blocks; i++) { if (i < qty_short_blocks) { length_this_block = short_data_block_length; } else { length_this_block = short_data_block_length + 1; } for (j = 0; j < ecc_block_length; j++) { ecc_block[j] = 0; } for (j = 0; j < length_this_block; j++) { data_block[j] = datastream[posn + j]; } ReedSolomon rs = new ReedSolomon(); rs.init_gf(0x11d); rs.init_code(ecc_block_length, 0); rs.encode(length_this_block, data_block); for (j = 0; j < ecc_block_length; j++) { ecc_block[j] = rs.getResult(j); } for (j = 0; j < short_data_block_length; j++) { interleaved_data[(j * blocks) + i] = data_block[j]; } if (i >= qty_short_blocks) { interleaved_data[(short_data_block_length * blocks) + (i - qty_short_blocks)] = data_block[short_data_block_length]; } for (j = 0; j < ecc_block_length; j++) { interleaved_ecc[(j * blocks) + i] = ecc_block[ecc_block_length - j - 1]; } posn += length_this_block; } for (j = 0; j < data_cw; j++) { fullstream[j] = interleaved_data[j]; } for (j = 0; j < ecc_cw; j++) { fullstream[j + data_cw] = interleaved_ecc[j]; } }
[ "Splits data into blocks, adds error correction and then interleaves the blocks and error correction data." ]
[ "Validate the configuration.\n\n@param validationErrors where to put the errors.", "Remove attachments matches pattern from step and all step substeps\n\n@param context from which attachments will be removed", "Return a vector of values corresponding to a given vector of times.\n@param times A given vector of times.\n@return A vector of values corresponding to the given vector of times.", "Use this API to unset the properties of sslparameter resource.\nProperties that need to be unset are specified in args array.", "Adds the value to the Collection mapped to by the key.", "Find the next match of the pattern on the tree\n\n@return whether there is a match somewhere in the tree", "Handles logging tasks related to a failure to connect to a remote HC.\n@param uri the URI at which the connection attempt was made. Can be {@code null} indicating a failure to discover the HC\n@param discoveryOption the {@code DiscoveryOption} used to determine {@code uri}\n@param moreOptions {@code true} if there are more untried discovery options\n@param e the exception", "Classify stdin by documents seperated by 3 blank line\n@param readerWriter\n@return boolean reached end of IO\n@throws IOException", "Get the pickers date." ]
private void lockDescriptor() throws CmsException { if ((null == m_descFile) && (null != m_desc)) { m_descFile = LockedFile.lockResource(m_cms, m_desc); } }
[ "Locks the bundle descriptor.\n@throws CmsException thrown if locking fails." ]
[ "Closes the server socket. No new clients are accepted afterwards.", "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", "Use this API to clear Interface.", "A convenience method for creating an immutable map.\n\n@param self a Map\n@return an immutable Map\n@see java.util.Collections#unmodifiableMap(java.util.Map)\n@since 1.0", "Converts a DTO attribute into a generic attribute object.\n\n@param attribute\nThe DTO attribute.\n@return The server side attribute representation. As we don't know at this point what kind of object the\nattribute is (that's a problem for the <code>FeatureModel</code>), we return an <code>Object</code>.", "Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise", "Returns the title according to the given locale.\n@param locale the locale for which the title should be read.\n@return the title according to the given locale", "Use this API to clear nssimpleacl.", "Get the column name from the indirection table.\n@param mnAlias\n@param path" ]
public Integer getVarDataKey(FieldType type) { Integer result = null; FieldItem item = m_map.get(type); if (item != null) { result = item.getVarDataKey(); } return result; }
[ "Retrieve the var data key for a specific field.\n\n@param type field type\n@return var data key" ]
[ "A comment.\n\n@param args the parameters", "Detect new objects.", "Perform the work of processing the various OperationContext.Stage queues, and then the DONE stage.", "Use this API to update appfwlearningsettings.", "The user can be referenced by their globally unique user ID or their email address.\nReturns the full user record for the invited user.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Calculates the distance between two points\n\n@return distance between two points", "Replies the elements of the given map except the pairs with the given keys.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param keys the keys of the pairs to remove.\n@return the map with the content of the map except the pairs.\n@since 2.15", "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format.", "Returns the total number of times the app has been launched\n@return Total number of app launches in int" ]
private static String getAttribute(String name, Element firstElement, Element secondElement) { String val = firstElement.getAttribute(name); if (val.length() == 0 && secondElement != null) { val = secondElement.getAttribute(name); } return val; }
[ "Try to get an attribute value from two elements.\n\n@param firstElement\n@param secondElement\n@return attribute value" ]
[ "Update properties for a specific client id\n\n@param model\n@param profileIdentifier\n@param clientUUID\n@param active - true false depending on if the client should be active\n@param reset - true to reset the state of a client(clears settings for all paths and disables the client)\n@return\n@throws Exception", "Load the windows resize handler with initial view port detection.", "This method reads a four byte integer from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "Performs a Bulk Documents insert request.\n\n@param objects The {@link List} of objects.\n@param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.\n@return {@code List<Response>} Containing the resulted entries.", "Given the byte buffer containing album art, build an actual image from it for easy rendering.\n\n@return the newly-created image, ready to be drawn", "Assign arguments to the statement.\n\n@return The statement passed in or null if it had to be closed on error.", "This function returns the first external IP address encountered\n\n@return IP address or null\n@throws Exception", "Gets all of the column names for a result meta data\n\n@param rsmd Resultset metadata\n@return Array of column names\n@throws Exception exception", "Use this API to fetch transformpolicylabel resource of given name ." ]
public static lbroute[] get(nitro_service service) throws Exception{ lbroute obj = new lbroute(); lbroute[] response = (lbroute[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the lbroute resources that are configured on netscaler." ]
[ "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Find the scheme to use to connect to the service.\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved scheme of 'http' as a fallback.", "Send parallel task to execution manager.\n\n@param task\nthe parallel task\n@return the batch response from manager", "Sets the seed for random number generator", "Start unmarshalling using the parser.\n@param parser\n@param preProcessingData\n@return the root element of a bpmn2 document.\n@throws java.io.IOException", "Determine the target type for the generic return type of the given method,\nwhere formal type variables are declared on the given class.\n@param method the method to introspect\n@param clazz the class to resolve type variables against\n@return the corresponding generic parameter or return type\n@see #resolveReturnTypeForGenericMethod", "Use this API to fetch authorizationpolicylabel_binding resource of given name .", "read all objects of this iterator. objects will be placed in cache", "Stores a public key mapping.\n@param original\n@param substitute" ]
public static ProtocolConnectionManager create(final Connection connection, final ConnectionOpenHandler openHandler) { return create(new EstablishedConnection(connection, openHandler)); }
[ "Create a new connection manager, based on an existing connection.\n\n@param connection the existing connection\n@param openHandler a connection open handler\n@return the connected manager" ]
[ "Returns the ViewGroup used as a parent for the content view.\n\n@return The content view's parent.", "Gets information about a trashed folder.\n@param folderID the ID of the trashed folder.\n@return info about the trashed folder.", "Use this API to unset the properties of nstimeout resource.\nProperties that need to be unset are specified in args array.", "Set the default host running the Odo instance to configure. Allows default profile methods and PathValueClient to\noperate on remote hosts\n\n@param hostName name of host", "generate a select-Statement according to query\n\n@param query the Query\n@param cld the ClassDescriptor", "Use this API to fetch authenticationtacacspolicy_systemglobal_binding resources of given name .", "This configuration requires that all your tasks you submit to the system implement\nthe Groupable interface. By default, it will round robin tasks from each group\n\nTasks will be tracked internally in the system by randomly generated UUIDs\n\n@return", "Load all string recognize.", "Checks each available roll strategy in turn, starting at the per-minute\nstrategy, next per-hour, and so on for increasing units of time until a\nmatch is found. If no match is found, the error strategy is returned.\n\n@param properties\n@return The appropriate roll strategy." ]
@SuppressWarnings({"unused", "WeakerAccess"}) public void pushNotificationViewedEvent(Bundle extras){ if (extras == null || extras.isEmpty() || extras.get(Constants.NOTIFICATION_TAG) == null) { getConfigLogger().debug(getAccountId(), "Push notification: " + (extras == null ? "NULL" : extras.toString()) + " not from CleverTap - will not process Notification Viewed event."); return; } if (!extras.containsKey(Constants.NOTIFICATION_ID_TAG) || (extras.getString(Constants.NOTIFICATION_ID_TAG) == null)) { getConfigLogger().debug(getAccountId(), "Push notification ID Tag is null, not processing Notification Viewed event for: " + extras.toString()); return; } // Check for dupe notification views; if same notficationdId within specified time interval (2 secs) don't process boolean isDuplicate = checkDuplicateNotificationIds(extras, notificationViewedIdTagMap, Constants.NOTIFICATION_VIEWED_ID_TAG_INTERVAL); if (isDuplicate) { getConfigLogger().debug(getAccountId(), "Already processed Notification Viewed event for " + extras.toString() + ", dropping duplicate."); return; } JSONObject event = new JSONObject(); try { JSONObject notif = getWzrkFields(extras); event.put("evtName", Constants.NOTIFICATION_VIEWED_EVENT_NAME); event.put("evtData", notif); } catch (Throwable ignored) { //no-op } queueEvent(context, event, Constants.RAISED_EVENT); }
[ "Pushes the Notification Viewed event to CleverTap.\n\n@param extras The {@link Bundle} object that contains the\nnotification details" ]
[ "Use this API to unset the properties of snmpalarm resource.\nProperties that need to be unset are specified in args array.", "Run the configured crawl. This method blocks until the crawl is done.\n\n@return the CrawlSession once the crawl is done.", "Generates a vector clock with the provided values\n\n@param serverIds servers in the clock\n@param clockValue value of the clock for each server entry\n@param timestamp ts value to be set for the clock\n@return", "Either a single file extension or a comma-separated list of extensions for which the language\nshall be registered.", "Insert an entity into the datastore.\n\nThe entity must have no ids.\n\n@return The key for the inserted entity.\n@throws DatastoreException on error", "Returns a color for a given absolute number that is to be shown on the\nmap.\n\n@param value\n@return", "Boyer Moore scan that proceeds forwards from the end of the file looking for the first LOCSIG", "Called when the surface is created or recreated. Avoided because this can\nbe called twice at the beginning.", "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance" ]
public ArrayList<Duration> segmentWork(ProjectCalendar projectCalendar, List<TimephasedWork> work, TimescaleUnits rangeUnits, List<DateRange> dateList) { ArrayList<Duration> result = new ArrayList<Duration>(dateList.size()); int lastStartIndex = 0; // // Iterate through the list of dates range we are interested in. // Each date range in this list corresponds to a column // shown on the "timescale" view by MS Project // for (DateRange range : dateList) { // // If the current date range does not intersect with any of the // assignment date ranges in the list, then we show a zero // duration for this date range. // int startIndex = lastStartIndex == -1 ? -1 : getStartIndex(range, work, lastStartIndex); if (startIndex == -1) { result.add(Duration.getInstance(0, TimeUnit.HOURS)); } else { // // We have found an assignment which intersects with the current // date range, call the method below to determine how // much time from this resource assignment can be allocated // to the current date range. // result.add(getRangeDuration(projectCalendar, rangeUnits, range, work, startIndex)); lastStartIndex = startIndex; } } return result; }
[ "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" ]
[ "Return true if this rule should be applied for the specified ClassNode, based on the\nconfiguration of this rule.\n@param classNode - the ClassNode\n@return true if this rule should be applied for the specified ClassNode", "Uncompresses the given textual content and writes it to the given file.\n\n@param file The file to write to\n@param compressedContent The content\n@throws IOException If an error occurred", "Export the modules that should be checked in into git.", "Designate the vertex attribute and shader variable for the texture coordinates\nassociated with the named texture.\n\n@param texName name of texture\n@param texCoordAttr name of vertex attribute with texture coordinates.\n@param shaderVarName name of shader variable to get texture coordinates.", "get the getter method corresponding to given property", "Returns the naming context.", "Validates a favorite entry.\n\n<p>If the favorite entry references a resource or project that can't be read, this will return false.\n\n@param entry the favorite entry\n@return the", "Use this API to fetch dnstxtrec resources of given names .", "Apply the remote read domain model result.\n\n@param result the domain model result\n@return whether it was applied successfully or not" ]
public double getValue(int[] batch) { double value = 0.0; for (int i=0; i<batch.length; i++) { value += getValue(i); } return value; }
[ "Gets value of this function at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@return The value of the function at the point." ]
[ "Initialize; cached threadpool is safe as it is releasing resources automatically if idle", "Assign FK value of main object with PK values of the reference object.\n\n@param obj real object with reference (proxy) object (or real object with set FK values on insert)\n@param cld {@link ClassDescriptor} of the real object\n@param rds An {@link ObjectReferenceDescriptor} of real object.\n@param insert Show if \"linking\" is done while insert or update.", "Select this tab item.", "Rotate the specified photo. The only allowed values for degrees are 90, 180 and 270.\n\n@param photoId\nThe photo ID\n@param degrees\nThe degrees to rotate (90, 170 or 270)", "Returns a string that encodes the result of a method invocation.\nEffectively, this just removes any headers from the encoded response.\n\n@param encodedResponse\n@return string that encodes the result of a method invocation", "Extract assignment hyperlink data.\n\n@param assignment assignment instance\n@param data hyperlink data", "Use this API to fetch cacheselector resource of given name .", "Calculate the highlight color. Saturate at 0xff to make sure that high values\ndon't result in aliasing.\n\n@param _Slice The Slice which will be highlighted.", "Call with pathEntries lock taken" ]
public static String nameFromResourceId(String id) { return (id != null) ? ResourceId.fromString(id).name() : null; }
[ "Extract name of the resource from a resource ID.\n@param id the resource ID\n@return the name of the resource" ]
[ "Updates the font table by adding new fonts used at the current page.", "Creates a ServiceCall from an observable object.\n\n@param observable the observable to create from\n@param <T> the type of the response\n@return the created ServiceCall", "Returns true if the given document should be included in the\nserialization.\n\n@param itemDocument\nthe document to check\n@return true if the document should be serialized", "Use this API to flush cacheobject resources.", "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", "Retrieve the value of a single-valued parameter.\n\n@param key\n@param defaultValue\n@param cnx", "This is the main entry point used to convert the internal representation\nof timephased baseline work into an external form which can\nbe displayed to the user.\n\n@param file parent project file\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", "Read resource assignment baseline values.\n\n@param row result set row", "Writes image files for all data that was collected and the statistics\nfile for all sites." ]
public static spilloverpolicy_stats get(nitro_service service, String name) throws Exception{ spilloverpolicy_stats obj = new spilloverpolicy_stats(); obj.set_name(name); spilloverpolicy_stats response = (spilloverpolicy_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of spilloverpolicy_stats resource of given name ." ]
[ "Build a Count-Query based on aQuery\n@param aQuery\n@return The count query", "Use this API to unset the properties of ipv6 resource.\nProperties that need to be unset are specified in args array.", "Gets information about the device pin.\n@param fields the fields to retrieve.\n@return info about the device pin.", "Set the main attribute \"Bundle-RequiredExecutionEnvironment\" to the given\nvalue.\n\n@param bree The new value", "Validates the producer method", "Returns a CmsSolrQuery representation of this class.\n@param cms the openCms object.\n@return CmsSolrQuery representation of this class.", "Facade method for operating the Unix-like terminal supporting line editing and command\nhistory.\n\n@param prompt Prompt to be displayed\n@param appName The app name string\n@param mainHandler Main command handler\n@param input Input stream.\n@param output Output stream.\n@return Shell that can be either further customized or run directly by calling commandLoop().", "Get the currently selected opacity.\n\n@return The int value of the currently selected opacity.", "Use this API to fetch authenticationnegotiatepolicy_binding resource of given name ." ]
public static int findFirstNonAnnotationLine(ASTNode node, SourceCode sourceCode) { if (node instanceof AnnotatedNode && !((AnnotatedNode) node).getAnnotations().isEmpty()) { // HACK: Groovy line numbers are broken when annotations have a parameter :( // so we must look at the lineNumber, not the lastLineNumber AnnotationNode lastAnnotation = null; for (AnnotationNode annotation : ((AnnotatedNode) node).getAnnotations()) { if (lastAnnotation == null) lastAnnotation = annotation; else if (lastAnnotation.getLineNumber() < annotation.getLineNumber()) lastAnnotation = annotation; } String rawLine = getRawLine(sourceCode, lastAnnotation.getLastLineNumber()-1); if(rawLine == null) { return node.getLineNumber(); } // is the annotation the last thing on the line? if (rawLine.length() > lastAnnotation.getLastColumnNumber()) { // no it is not return lastAnnotation.getLastLineNumber(); } // yes it is the last thing, return the next thing return lastAnnotation.getLastLineNumber() + 1; } return node.getLineNumber(); }
[ "gets the first non annotation line number of a node, taking into account annotations." ]
[ "Returns the Java command to use.\n\n@param javaHome the Java Home, if {@code null} an attempt to determine the command will be done\n\n@return the Java executable command", "Sets an attribute in the main section of the manifest to a map.\nThe map entries will be joined with a single whitespace character, and each key-value pair will be joined with a '='.\n\n@param name the attribute's name\n@param values the attribute's value\n@return {@code this}\n@throws IllegalStateException if entries have been added or the JAR has been written prior to calling this methods.", "returns an Array with an Objects CURRENT locking VALUES , BRJ\n@throws PersistenceBrokerException if there is an erros accessing o field values", "Get an interpolated value for a given argument x.\n\n@param x The abscissa at which the interpolation should be performed.\n@return The interpolated value (ordinate).", "this method is basically checking whether we can return \"this\" for getNetworkSection", "Lift a Java Func3 to a Scala Function3\n\n@param f the function to lift\n\n@returns the Scala function", "Helper function to create JsonArray from collection.\n\n@param values collection of values to convert to JsonArray\n@return JsonArray with collection values", "Utility method used to convert a Number into a BigInteger.\n\n@param value Number instance\n@return BigInteger instance", "Prepares a representation of the model that is easier accessible for our purposes.\n\n@param model The original model\n@return The model representation" ]
public static BoxAPIConnection restore(String clientID, String clientSecret, String state) { BoxAPIConnection api = new BoxAPIConnection(clientID, clientSecret); api.restore(state); return api; }
[ "Restores a BoxAPIConnection from a saved state.\n\n@see #save\n@param clientID the client ID to use with the connection.\n@param clientSecret the client secret to use with the connection.\n@param state the saved state that was created with {@link #save}.\n@return a restored API connection." ]
[ "Construct a Access Token from a Flickr Response.\n\n@param response", "Gets the visibility cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value from the property value {@value #VISIBILITY_CACHE_WEIGHT}\nif it is set, else the value of the default value\n{@value #VISIBILITY_CACHE_WEIGHT_DEFAULT}", "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", "Write an error response.\n\n@param channel the channel\n@param header the request\n@param error the error\n@throws IOException", "Dumps all properties of a material to stdout.\n\n@param material the material", "Add tasks to the tree.\n\n@param parentNode parent tree node\n@param parent parent task container", "read CustomInfo list from table.\n\n@param eventId the event id\n@return the map", "Validate arguments.", "Registers a BeanNameAutoProxyCreator class that wraps the bean being\nmonitored. The proxy is associated with the PerformanceMonitorInterceptor\nfor the bean, which is created when parsing the methods attribute from\nthe springconfiguration xml file.\n\n@param source An Attribute node from the spring configuration\n@param holder A container for the beans I will create\n@param context the context currently parsing my spring config" ]
protected T checkReturnValue(T instance) { if (instance == null && !isDependent()) { throw BeanLogger.LOG.nullNotAllowedFromProducer(getProducer(), Formats.formatAsStackTraceElement(getAnnotated().getJavaMember())); } if (instance == null) { InjectionPoint injectionPoint = beanManager.getServices().get(CurrentInjectionPoint.class).peek(); if (injectionPoint != null) { Class<?> injectionPointRawType = Reflections.getRawType(injectionPoint.getType()); if (injectionPointRawType.isPrimitive()) { return cast(Defaults.getJlsDefaultValue(injectionPointRawType)); } } } if (instance != null && !(instance instanceof Serializable)) { if (beanManager.isPassivatingScope(getScope())) { throw BeanLogger.LOG.nonSerializableProductError(getProducer(), Formats.formatAsStackTraceElement(getAnnotated().getJavaMember())); } InjectionPoint injectionPoint = beanManager.getServices().get(CurrentInjectionPoint.class).peek(); if (injectionPoint != null && injectionPoint.getBean() != null && Beans.isPassivatingScope(injectionPoint.getBean(), beanManager)) { // Transient field is passivation capable injection point if (!(injectionPoint.getMember() instanceof Field) || !injectionPoint.isTransient()) { throw BeanLogger.LOG.unserializableProductInjectionError(this, Formats.formatAsStackTraceElement(getAnnotated().getJavaMember()), injectionPoint, Formats.formatAsStackTraceElement(injectionPoint.getMember())); } } } return instance; }
[ "Validates the return value\n\n@param instance The instance to validate" ]
[ "Return SELECT clause for object existence call", "Internal method for recursivly searching for a class descriptor that avoids\nclass loading when we already have a class object.\n\n@param clazz The class whose descriptor we need to find\n@return ClassDescriptor for <code>clazz</code> or <code>null</code>\nif no ClassDescriptor could be located.", "Return the containing group if it contains exactly one element.\n\n@since 2.14", "Adds a set of tests based on pattern matching.", "Process an individual UDF.\n\n@param udf UDF definition", "Returns the screen width in pixels\n\n@param context is the context to get the resources\n@return the screen width in pixels", "Computes the rank of a matrix using the specified tolerance.\n\n@param A Matrix whose rank is to be calculated. Not modified.\n@param threshold The numerical threshold used to determine a singular value.\n@return The matrix's rank.", "Adds an additional statement to the constructed document.\n\n@param statement\nthe additional statement\n@return builder object to continue construction", "Add groups for given group parent item.\n\n@param type the tree type\n@param ouItem group parent item" ]
private void handleGlobalArguments(Section section) { for (String key : section.keySet()) { switch (key) { case OPTION_OFFLINE_MODE: if (section.get(key).toLowerCase().equals("true")) { this.offlineMode = true; } break; case OPTION_QUIET: if (section.get(key).toLowerCase().equals("true")) { this.quiet = true; } break; case OPTION_CREATE_REPORT: this.reportFilename = section.get(key); break; case OPTION_DUMP_LOCATION: this.dumpDirectoryLocation = section.get(key); break; case OPTION_FILTER_LANGUAGES: setLanguageFilters(section.get(key)); break; case OPTION_FILTER_SITES: setSiteFilters(section.get(key)); break; case OPTION_FILTER_PROPERTIES: setPropertyFilters(section.get(key)); break; case OPTION_LOCAL_DUMPFILE: this.inputDumpLocation = section.get(key); break; default: logger.warn("Unrecognized option: " + key); } } }
[ "Analyses the content of the general section of an ini configuration file\nand fills out the class arguments with this data.\n\n@param section\n{@link Section} with name \"general\"" ]
[ "Returns the version of Jenkins Artifactory Plugin or empty string if not found\n\n@return the version of Jenkins Artifactory Plugin or empty string if not found", "return null if the operation has no params to validate", "Deletes a specific, existing project status update.\n\nReturns an empty data record.\n\n@param projectStatus The project status update to delete.\n@return Request object", "List the indexes in the database. The returned object allows for listing indexes by type.\n\n@return indexes object with methods for getting indexes of a particular type", "Create a random permutation of the numbers 0, ..., size - 1.\n\nsee Algorithm P, D.E. Knuth: The Art of Computer Programming, Vol. 2, p. 145", "Create a structured Record instance from the flat text data.\nNull is returned if errors are encountered during parse.\n\n@param text flat text data\n@return Record instance", "Convert the continuous values into discrete values by chopping up\nthe distribution into several equally-sized intervals.", "B = -A. Changes the sign of elements in A and stores it in B. A and B can be the same instance.\n\n@param A (Input) Matrix. Not modified.\n@param B (Output) Matrix. Modified.", "Mark root of this task task group depends on the given TaskItem.\nThis ensure this task group's root get picked for execution only after the completion\nof invocation of provided TaskItem.\n\n@param dependencyTaskItem the task item that this task group depends on\n@return the key of the dependency" ]
public static void assertValidMetadata(ByteArray key, RoutingStrategy routingStrategy, Node currentNode) { List<Node> nodes = routingStrategy.routeRequest(key.get()); for(Node node: nodes) { if(node.getId() == currentNode.getId()) { return; } } throw new InvalidMetadataException("Client accessing key belonging to partitions " + routingStrategy.getPartitionList(key.get()) + " not present at " + currentNode); }
[ "Check if the current node is part of routing request based on cluster.xml\nor throw an exception.\n\n@param key The key we are checking\n@param routingStrategy The routing strategy\n@param currentNode Current node" ]
[ "Remove an write lock.", "Return the IP address as text such as \"192.168.1.15\".", "This method attempts to locate a suitable directory by checking a number of different configuration sources.\n\n1 - serverConfigUserDirPropertyName - This value is used to check it a matching system property has been set. 2 -\nsuppliedConfigDir - If a path was specified on the command line it is expected to be passed in as this parameter. 3 -\nserverConfigDirPropertyName - This is a second system property to check.\n\nAnd finally if none of these match defaultBaseDir specifies the configuration being searched and is appended to the JBoss\nHome value discovered when the utility started.", "Processes the template for all foreignkeys of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\[email protected] type=\"block\"", "Records the result of updating a server.\n\n@param server the id of the server. Cannot be <code>null</code>\n@param response the result of the updates", "Reads characters until any 'end' character is encountered, ignoring\nescape sequences.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "set ViewPager scroller to change animation duration when sliding", "Returns a correlation matrix which has rank &lt; n and for which the first n factors agree with the factors of correlationMatrix.\n\n@param correlationMatrix The given correlation matrix.\n@param numberOfFactors The requested number of factors (Eigenvectors).\n@return Factor reduced correlation matrix.", "Get the ordinal value for the last of a particular override on a path\n\n@param overrideId Id of the override to check\n@param pathId Path the override is on\n@param clientUUID UUID of the client\n@param filters If supplied, only endpoints ending with values in filters are returned\n@return The integer ordinal\n@throws Exception" ]
public static Bic valueOf(final String bic) throws BicFormatException, UnsupportedCountryException { BicUtil.validate(bic); return new Bic(bic); }
[ "Returns a Bic object holding the value of the specified String.\n\n@param bic the String to be parsed.\n@return a Bic object holding the value represented by the string argument.\n@throws BicFormatException if the String doesn't contain parsable Bic.\nUnsupportedCountryException if bic's country is not supported." ]
[ "This method writes extended attribute data for a task.\n\n@param xml MSPDI task\n@param mpx MPXJ task", "Return all server groups for a profile\n\n@param profileId ID of profile\n@return collection of ServerGroups for a profile", "Opens a JDBC connection with the given parameters.", "Returns a predicate that takes no parameters. The given SQL expression is\nused directly.\n\n@param sql\nSQL text of the expression", "Pause between cluster change in metadata and starting server rebalancing\nwork.", "2-D Integer array to float array.\n\n@param array Integer array.\n@return Float array.", "Calculate the value of a digital caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@param periodLength The period length of the underlying forward rate.\n@param discountFactor The discount factor corresponding to the payment date (option maturity + period length).\n@param optionMaturity The option maturity\n@param optionStrike The option strike.\n@return Returns the price of a digital caplet under the Black'76 model", "Read ClassDescriptors from the given repository file.\n@see #mergeDescriptorRepository", "Use this API to fetch appfwlearningsettings resource of given name ." ]
public LinearInterpolatedTimeDiscreteProcess add(LinearInterpolatedTimeDiscreteProcess process) throws CalculationException { Map<Double, RandomVariable> sum = new HashMap<>(); for(double time: timeDiscretization) { sum.put(time, realizations.get(time).add(process.getProcessValue(time, 0))); } return new LinearInterpolatedTimeDiscreteProcess(timeDiscretization, sum); }
[ "Create a new linear interpolated time discrete process by\nusing the time discretization of this process and the sum of this process and the given one\nas its values.\n\n@param process A given process.\n@return A new process representing the of this and the given process.\n@throws CalculationException Thrown if the given process fails to evaluate at a certain time point." ]
[ "A specific, existing task can be deleted by making a DELETE request on the\nURL for that task. Deleted tasks go into the \"trash\" of the user making\nthe delete request. Tasks can be recovered from the trash within a period\nof 30 days; afterward they are completely removed from the system.\n\nReturns an empty data record.\n\n@param task The task to delete.\n@return Request object", "Used by the slave host when creating the host info dmr sent across to the DC during the registration process\n\n@param ignoreUnaffectedServerGroups whether the slave host is set up to ignore config for server groups it does not have servers for\n@param hostModel the resource containing the host model\n@param model the dmr sent across to theDC\n@return the modified dmr", "Gets a list of split keys given a desired number of splits.\n\n<p>This list will contain multiple split keys for each split. Only a single split key\nwill be chosen as the split point, however providing multiple keys allows for more uniform\nsharding.\n\n@param numSplits the number of desired splits.\n@param query the user query.\n@param partition the partition to run the query in.\n@param datastore the datastore containing the data.\n@throws DatastoreException if there was an error when executing the datastore query.", "Escape a value to be HTML friendly.\n@param value the Object value.\n@return the HTML-escaped String, or <null> if the value is null.", "Set an unknown field.\n@param name the unknown property name\n@param value the unknown property value", "This method processes any extended attributes associated with a resource.\n\n@param xml MSPDI resource instance\n@param mpx MPX resource instance", "The normalized string returned by this method is consistent with java.net.Inet6address.\n\nIPs are not compressed nor mixed in this representation. If this has a prefix length, that will be included in the string.", "Load a system library from a stream. Copies the library to a temp file\nand loads from there.\n\n@param libname name of the library (just used in constructing the library name)\n@param is InputStream pointing to the library", "Convenience method which allows all projects in the database to\nbe read in a single operation.\n\n@return list of ProjectFile instances\n@throws MPXJException" ]
public void copyCategories(CmsObject cms, CmsResource fromResource, String toResourceSitePath) throws CmsException { List<CmsCategory> categories = readResourceCategories(cms, fromResource); for (CmsCategory category : categories) { addResourceToCategory(cms, toResourceSitePath, category); } }
[ "Adds all categories from one resource to another, skipping categories that are not available for the resource copied to.\n\nThe resource where categories are copied to has to be locked.\n\n@param cms the CmsObject used for reading and writing.\n@param fromResource the resource to copy the categories from.\n@param toResourceSitePath the full site path of the resource to copy the categories to.\n@throws CmsException thrown if copying the resources fails." ]
[ "Adds a boolean refinement for the next queries.\n\n@param attribute the attribute to refine on.\n@param value the value to refine with.\n@return this {@link Searcher} for chaining.", "Stores a public key mapping.\n@param original\n@param substitute", "Use this API to fetch sslciphersuite resources of given names .", "Returns all base types.\n\n@return An iterator of the base types", "Append Join for SQL92 Syntax", "Removes file from your assembly.\n\n@param name field name of the file to remove.", "Gets information about all of the group memberships for this user as iterable with paging support.\n@param fields the fields to retrieve.\n@return an iterable with information about the group memberships for this user.", "Handle content length.\n\n@param event\nthe event", "Mapping originator.\n\n@param originator the originator\n@return the originator type" ]
public static base_response add(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl addresource = new nssimpleacl(); addresource.aclname = resource.aclname; addresource.aclaction = resource.aclaction; addresource.td = resource.td; addresource.srcip = resource.srcip; addresource.destport = resource.destport; addresource.protocol = resource.protocol; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
[ "Use this API to add nssimpleacl." ]
[ "This method permanently removes a webhook. Note that it may be possible\nto receive a request that was already in flight after deleting the\nwebhook, but no further requests will be issued.\n\n@param webhook The webhook to delete.\n@return Request object", "From the set of classes a new set is built containing all indexed\nsubclasses, but removing then all subtypes of indexed entities.\n\n@param selection\n\n@return a new set of entities", "Use this API to fetch all the callhome resources that are configured on netscaler.", "Checks if class package match provided list of action packages\n\n@param classPackageName\nname of class package\n@return true if class package is on the {@link #actionPackages} list", "Private helper function that performs some assignability checks for the\nprovided GenericArrayType.", "Use this API to fetch the statistics of all ipseccounters_stats resources that are configured on netscaler.", "Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error", "Use this API to fetch all the nspbr6 resources that are configured on netscaler.\nThis uses nspbr6_args which is a way to provide additional arguments while fetching the resources.", "Calculates Sine value of the complex number.\n\n@param z1 A Complex Number instance.\n@return Returns new ComplexNumber instance containing the Sine value of the specified complex number." ]
public static <T> T callConstructor(Class<T> klass) { return callConstructor(klass, new Class<?>[0], new Object[0]); }
[ "Call the no-arg constructor for the given class\n\n@param <T> The type of the thing to construct\n@param klass The class\n@return The constructed thing" ]
[ "Whether the given grid dialect implements the specified facet or not.\n\n@param gridDialect the dialect of interest\n@param facetType the dialect facet type of interest\n@return {@code true} in case the given dialect implements the specified facet, {@code false} otherwise", "Converts a batch indexing into the sample, to a batch indexing into the\noriginal function.\n\n@param batch The batch indexing into the sample.\n@return A new batch indexing into the original function, containing only\nthe indices from the sample.", "Pull docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host", "If needed declares and sets up internal data structures.\n\n@param A Matrix being decomposed.", "Calculate UserInfo strings.", "Create a new DateTime. To the last second. This will not create any\nextra-millis-seconds, which may cause bugs when writing to stores such as\ndatabases that round milli-seconds up and down.", "Given the key, figures out which partition on the local node hosts the key.\n\n@param key\n@return", "Create all the links possible between the Declaration and all the ImporterService matching the.\nImporterServiceFilter of the Linker.\n\n@param declarationSRef the ServiceReference<Declaration> of the Declaration", "Cleans up a extension module's subsystems from the resource registration model.\n\n@param rootResource the model root resource\n@param moduleName the name of the extension's module. Cannot be {@code null}\n@throws IllegalStateException if the extension still has subsystems present in {@code rootResource} or its children" ]
public void openBlockingInterruptable() throws InterruptedException { // We need to thread this call in order to interrupt it (when Ctrl-C occurs). connectionThread = new Thread(() -> { // This thread can't be interrupted from another thread. // Will stay alive until System.exit is called. Thread thr = new Thread(() -> super.openBlocking(), "CLI Terminal Connection (uninterruptable)"); thr.start(); try { thr.join(); } catch (InterruptedException ex) { // XXX OK, interrupted, just leaving. } }, "CLI Terminal Connection (interruptable)"); connectionThread.start(); connectionThread.join(); }
[ "Required to close the connection reading on the terminal, otherwise\nit can't be interrupted.\n\n@throws InterruptedException" ]
[ "Determine if a CharSequence can be parsed as an Integer.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isInteger(String)\n@since 1.8.2", "Return the factor loading for a given time and a given component.\n\nThe factor loading is the vector <i>f<sub>i</sub></i> such that the scalar product <br>\n<i>f<sub>j</sub>f<sub>k</sub> = f<sub>j,1</sub>f<sub>k,1</sub> + ... + f<sub>j,m</sub>f<sub>k,m</sub></i> <br>\nis the instantaneous covariance of the component <i>j</i> and <i>k</i>.\n\nWith respect to simulation time <i>t</i>, this method uses a piece wise constant interpolation, i.e.,\nit calculates <i>t_<sub>i</sub></i> such that <i>t_<sub>i</sub></i> is the largest point in <code>getTimeDiscretization</code>\nsuch that <i>t_<sub>i</sub> &le; t </i>.\n\nThe component here, it given via a double <i>T</i> which may be associated with the LIBOR fixing date.\nWith respect to component time <i>T</i>, this method uses a piece wise constant interpolation, i.e.,\nit calculates <i>T_<sub>j</sub></i> such that <i>T_<sub>j</sub></i> is the largest point in <code>getTimeDiscretization</code>\nsuch that <i>T_<sub>j</sub> &le; T </i>.\n\n@param time The time <i>t</i> at which factor loading is requested.\n@param component The component time (as a double associated with the fixing of the forward rate) <i>T<sub>i</sub></i>.\n@param realizationAtTimeIndex The realization of the stochastic process (may be used to implement local volatility/covariance/correlation models).\n@return The factor loading <i>f<sub>i</sub>(t)</i>.", "Use this API to add systemuser.", "Assigns retention policy with givenID to the enterprise.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@return info about created assignment.", "to do with XmlId value being strictly of type 'String'", "Locates a task within a child task container which matches the supplied UUID.\n\n@param parent child task container\n@param uuid required UUID\n@return Task instance or null if the task is not found", "The main entry point for processing graphical indicator definitions.\n\n@param indicators graphical indicators container\n@param properties project properties\n@param props properties data", "Retrieve a string value.\n\n@param data byte array\n@param offset offset into byte array\n@return string value", "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object" ]
public void setCanvasWidthHeight(int width, int height) { hudWidth = width; hudHeight = height; HUD = Bitmap.createBitmap(width, height, Config.ARGB_8888); canvas = new Canvas(HUD); texture = null; }
[ "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." ]
[ "Get all the attribute values for an MBean by name. The values are HTML escaped.\n@return the {@link Map} of attribute names and values.\n@throws javax.management.AttributeNotFoundException Unable to find the 'attribute'\n@throws InstanceNotFoundException unable to find the specific bean\n@throws ReflectionException unable to interrogate the bean", "Given a container, and a set of raw data blocks, this method extracts\nthe field data and writes it into the container.\n\n@param type expected type\n@param container field container\n@param id entity ID\n@param fixedData fixed data block\n@param varData var data block", "Use this API to fetch the statistics of all service_stats resources that are configured on netscaler.", "Concatenate the arrays.\n\n@param array First array.\n@param array2 Second array.\n@return Concatenate between first and second array.", "Destroys the internal connection handle and creates a new one.\n@throws SQLException", "Cleans the object key.\n\n@param name Name of the object key\n@return The {@link ValidationResult} object containing the object,\nand the error code(if any)", "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call this method to re-prepare the query for execution.", "Computes the eigenvalue of the 2 by 2 matrix.", "convert Date to XMLGregorianCalendar.\n\n@param date the date\n@return the xML gregorian calendar" ]
protected PatchEntry resolveForElement(final PatchElement element) throws PatchingException { assert state == State.NEW; final PatchElementProvider provider = element.getProvider(); final String layerName = provider.getName(); final LayerType layerType = provider.getLayerType(); final Map<String, PatchEntry> map; if (layerType == LayerType.Layer) { map = layers; } else { map = addOns; } PatchEntry entry = map.get(layerName); if (entry == null) { final InstallationManager.MutablePatchingTarget target = modification.resolve(layerName, layerType); if (target == null) { throw PatchLogger.ROOT_LOGGER.noSuchLayer(layerName); } entry = new PatchEntry(target, element); map.put(layerName, entry); } // Maintain the most recent element entry.updateElement(element); return entry; }
[ "Get the target entry for a given patch element.\n\n@param element the patch element\n@return the patch entry\n@throws PatchingException" ]
[ "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", "Return a copy of the result as a String.\n\n<p>The default version of this method copies the result into a temporary byte array and then\ntries to decode it using the configured encoding.\n\n@return string version of the result.\n@throws IOException if the data cannot be produced or could not be decoded to a String.", "Read all child tasks for a given parent.\n\n@param parentTask parent task", "Parse the given file to obtains a Properties object.\n\n@param file\n@return a properties object containing all the properties present in the file.\n@throws InvalidDeclarationFileException", "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", "Find Flickr Places information by Place URL.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@deprecated This method has been deprecated. It won't be removed but you should use {@link PlacesInterface#getInfoByUrl(String)} instead.\n@param flickrPlacesUrl\n@return A Location\n@throws FlickrException", "Parses an adl source into a differential archetype.\n\n@param adl contents of an adl source file\n@return parsed archetype\n@throws org.openehr.adl.parser.AdlParserException if an error occurred while parsing", "Transforms a list of Integer objects to an array of primitive int values.\n\n@param integers\n@return", "Initialises JMX stuff.\n@param doRegister if true, perform registration, if false unregister" ]
public void prepare(Properties p, Connection cnx) { this.tablePrefix = p.getProperty("com.enioka.jqm.jdbc.tablePrefix", ""); queries.putAll(DbImplBase.queries); for (Map.Entry<String, String> entry : DbImplBase.queries.entrySet()) { queries.put(entry.getKey(), this.adaptSql(entry.getValue())); } }
[ "Called after creating the first connection. The adapter should create its caches and do all initialization it requires. Most\nimportantly, the SQL query cache should be created.\n\n@param cnx\nan open ready to use connection to the database." ]
[ "Separate from other findNonProgressingOp variant to allow unit testing without needing a mock OperationContext", "Display web page, but no user interface - close", "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.", "Remember execution time for all executed suites.", "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry", "Return the regression basis functions.\n\n@param exerciseDate The date w.r.t. which the basis functions should be measurable.\n@param model The model.\n@return Array of random variables.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "Create the required services according to the server setup\n\n@param config Service configuration\n@return Services map", "Retrieves the path using the endpoint value\n\n@param pathValue - path (endpoint) value\n@param requestType - \"GET\", \"POST\", etc\n@return Path or null\n@throws Exception exception", "Process calendar days of the week.\n\n@param calendar project calendar\n@param root calendar data" ]
public void addStep(String name, String robot, Map<String, Object> options) { all.put(name, new Step(name, robot, options)); }
[ "Adds a new step to the list of steps.\n\n@param name Name of the step to add.\n@param robot The name of the robot ot use with the step.\n@param options extra options required for the step." ]
[ "Loads a classifier from the file specified by loadPath. If loadPath ends in\n.gz, uses a GZIPInputStream, else uses a regular FileInputStream.", "Specify additional query parameters to be passed to the filter function.\n\n@param queryParams map of key-value parameters\n@return this Replication instance to set more options or trigger the replication", "Update the currency format.\n\n@param properties project properties\n@param decimalSeparator decimal separator\n@param thousandsSeparator thousands separator", "Retrieve a boolean value.\n\n@param name column name\n@return boolean value", "If converters are set on a table, this function tests if these can convert a cell value. The first\nconverter, which claims that it can convert, will be used to do the conversion.", "This method extracts assignment data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Returns angle in degrees between two points\n\n@param ax x of the point 1\n@param ay y of the point 1\n@param bx x of the point 2\n@param by y of the point 2\n@return angle in degrees between two points", "Use this API to update snmpmanager.", "Obtains a Coptic local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Coptic local date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
private static Map<Integer, LinkedList<MetadataCache>> gatherCandidateAttachmentGroups() { Map<Integer,LinkedList<MetadataCache>> candidateGroups = new TreeMap<Integer, LinkedList<MetadataCache>>(); final Iterator<File> iterator = MetadataFinder.getInstance().getAutoAttachCacheFiles().iterator(); while (iterator.hasNext()) { final File file = iterator.next(); try { final MetadataCache candidate = new MetadataCache(file); if (candidateGroups.get(candidate.sourcePlaylist) == null) { candidateGroups.put(candidate.sourcePlaylist, new LinkedList<MetadataCache>()); } candidateGroups.get(candidate.sourcePlaylist).add(candidate); } catch (Exception e) { logger.error("Unable to open metadata cache file " + file + ", discarding", e); iterator.remove(); } } return candidateGroups; }
[ "Groups all of the metadata cache files that are candidates for auto-attachment to player slots into lists\nthat are keyed by the playlist ID used to create the cache file. Files that cache all tracks have a playlist\nID of 0.\n\n@return a map from playlist ID to the caches holding tracks from that playlist" ]
[ "Provides lookup of elements by non-namespaced name.\n\n@param name the name or shortcut key for nodes of interest\n@return the nodes of interest which match name", "a small static helper class to get the color from the colorHolder\n\n@param colorHolder\n@param ctx\n@return", "Returns the first found autoincrement field\ndefined in this class descriptor. Use carefully\nwhen multiple autoincrement field were defined.\n@deprecated does not make sense because it's possible to\ndefine more than one autoincrement field. Alternative\nsee {@link #getAutoIncrementFields}", "Retrieve the number of minutes per day for this calendar.\n\n@return minutes per day", "Use this API to fetch lbvserver resource of given name .", "Iterates through the given CharSequence line by line, splitting each line using\nthe given separator Pattern. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param pattern the regular expression Pattern for the delimiter\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@since 1.8.2", "Extract site path, base name and locale from the resource opened with the editor.", "Check if the right-hand side type may be assigned to the left-hand side\ntype following the Java generics rules.\n@param lhsType the target type\n@param rhsType the value type that should be assigned to the target type\n@return true if rhs is assignable to lhs", "Method to build Integration flow for IMAP Idle configuration.\n@param urlName Mail source URL.\n@return Integration Flow object IMAP IDLE." ]
private void populateCurrencySettings(Record record, ProjectProperties properties) { properties.setCurrencySymbol(record.getString(0)); properties.setSymbolPosition(record.getCurrencySymbolPosition(1)); properties.setCurrencyDigits(record.getInteger(2)); Character c = record.getCharacter(3); if (c != null) { properties.setThousandsSeparator(c.charValue()); } c = record.getCharacter(4); if (c != null) { properties.setDecimalSeparator(c.charValue()); } }
[ "Populates currency settings.\n\n@param record MPX record\n@param properties project properties" ]
[ "Creates the container for a bundle without descriptor.\n@return the container for a bundle without descriptor.\n@throws IOException thrown if reading the bundle fails.\n@throws CmsException thrown if reading the bundle fails.", "Add a task to the project.\n\n@return new task instance", "Closes off this connection pool.", "Register the given common classes with the ClassUtils cache.", "Calculate the actual bit length of the proposed binary string.", "Use this API to add vpath.", "Returns the names of the bundles configured as workplace bundles in any module configuration.\n@return the names of the bundles configured as workplace bundles in any module configuration.", "Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception.", "Test whether the operation has a defined criteria attribute.\n\n@param operation the operation\n@return" ]
public static String getImageIdFromTag(String imageTag, String host) throws IOException { DockerClient dockerClient = null; try { dockerClient = getDockerClient(host); return dockerClient.inspectImageCmd(imageTag).exec().getId(); } finally { closeQuietly(dockerClient); } }
[ "Get image Id from imageTag using DockerBuildInfoHelper client.\n\n@param imageTag\n@param host\n@return" ]
[ "Creates a color item that represents a color field found for a track based on a dbserver message.\n\n@param menuItem the rendered menu item containing the color metadata field\n\n@return the color metadata field", "Commits the writes to the remote collection.", "Logs to Info if the debug level is greater than or equal to 1.", "Retrieves the working hours on the given date.\n\n@param date required date\n@param cal optional calendar instance\n@param day optional day instance\n@return working hours", "Initializes the editor states for the different modes, depending on the type of the opened file.", "Sets the RDF serialization tasks based on the given string value.\n\n@param tasks\na space-free, comma-separated list of task names", "Obtains the collection of server groups defined for a profile\n\n@param model\n@param profileId\n@return\n@throws Exception", "Given the current and final cluster dumps it into the output directory\n\n@param currentCluster Initial cluster metadata\n@param finalCluster Final cluster metadata\n@param outputDirName Output directory where to dump this file\n@throws IOException", "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful" ]
public DesignDocument get(String id, String rev) { assertNotEmpty(id, "id"); assertNotEmpty(id, "rev"); return db.find(DesignDocument.class, ensureDesignPrefix(id), rev); }
[ "Gets a design document using the id and revision from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@param rev the document revision\n@return {@link DesignDocument}" ]
[ "Return the count of all objects found\nfor given class, using the PB-api within\nODMG - this may change in further versions.", "Quits server by closing server socket and closing client socket handlers.", "Remove the given pair into the map.\n\n<p>\nIf the given key is inside the map, but is not mapped to the given value, the\nmap will not be changed.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param map the map to update.\n@param entry the entry (key, value) to remove from the map.\n@return {@code true} if the pair was removed.\n@since 2.15", "Look for the specified album art in both the hot cache of loaded tracks and the longer-lived LRU cache.\n\n@param artReference uniquely identifies the desired album art\n\n@return the art, if it was found in one of our caches, or {@code null}", "Sets padding between the pages\n@param padding\n@param axis", "Returns the time elapsed by the user on the app\n@return Time elapsed by user on the app in int", "Get a loader that lists the Files in the current path,\nand monitors changes.", "Returns the WDTK datatype IRI for the property datatype as represented by\nthe given JSON datatype string.\n\n@param jsonDatatype\nthe JSON datatype string; case-sensitive\n@throws IllegalArgumentException\nif the given datatype string is not known", "Adds version information." ]
protected void processCalendarData(ProjectCalendar calendar, Row row) { int dayIndex = row.getInt("CD_DAY_OR_EXCEPTION"); if (dayIndex == 0) { processCalendarException(calendar, row); } else { processCalendarHours(calendar, row, dayIndex); } }
[ "Read calendar hours and exception data.\n\n@param calendar parent calendar\n@param row calendar hours and exception data" ]
[ "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", "Tests if this enumeration contains more elements.\n@return <code>true</code> if and only if this enumeration object\ncontains at least one more element to provide;\n<code>false</code> otherwise.", "Set the correct day for the date with year and month already fixed.\n@param date the date, where year and month are already correct.", "Maps a duration unit value from a recurring task record in an MPX file\nto a TimeUnit instance. Defaults to days if any problems are encountered.\n\n@param value integer duration units value\n@return TimeUnit instance", "Returns the squared of the Euclidean distance between this vector and\nvector v.\n\n@return squared distance between this vector and v", "Returns the union of sets s1 and s2.", "Generates timephased costs from timephased work where multiple cost rates\napply to the assignment.\n\n@param standardWorkList timephased work\n@param overtimeWorkList timephased work\n@return timephased cost", "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", "Get a property as a json object or null.\n\n@param key the property name" ]
protected void runImportScript(CmsObject cms, CmsModule module) { LOG.info("Executing import script for module " + module.getName()); m_report.println( org.opencms.module.Messages.get().container(org.opencms.module.Messages.RPT_IMPORT_SCRIPT_HEADER_0), I_CmsReport.FORMAT_HEADLINE); String importScript = "echo on\n" + module.getImportScript(); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); PrintStream out = new PrintStream(buffer); CmsShell shell = new CmsShell(cms, "${user}@${project}:${siteroot}|${uri}>", null, out, out); shell.execute(importScript); String outputString = buffer.toString(); LOG.info("Shell output for import script was: \n" + outputString); m_report.println( org.opencms.module.Messages.get().container( org.opencms.module.Messages.RPT_IMPORT_SCRIPT_OUTPUT_1, outputString)); }
[ "Runs the module import script.\n\n@param cms the CMS context to use\n@param module the module for which to run the script" ]
[ "Pick arbitrary copying method from available configuration and don't forget to\nset generic method type if required.\n@param builder", "Collapse repeated records, using exact string match on the record.\nThis is generally useful for making very verbose logs more readable.\n@return this", "Iterates through the given CharSequence line by line, splitting each line using\nthe given regex delimiter. The list of tokens for each line is then passed to\nthe given closure.\n\n@param self a CharSequence\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws java.io.IOException if an error occurs\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see #splitEachLine(CharSequence, java.util.regex.Pattern, groovy.lang.Closure)\n@since 1.8.2", "Convert an Object to a Time.", "Register capabilities associated with this resource.\n\n<p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p>\n\n@param resourceRegistration a {@link ManagementResourceRegistration} created from this definition", "Read a list of fixed size blocks using an instance of the supplied reader class.\n\n@param readerClass reader class\n@return list of blocks", "This method is called to format a date. It will return the null text\nif a null value is supplied.\n\n@param value date value\n@return formatted date value", "Returns the list of user defined attribute names.\n\n@return the list of user defined attribute names, if there are none it returns an empty set.", "Returns if a MongoDB document is a todo item." ]
public static boolean isConstructorCall(Expression expression, List<String> classNames) { return expression instanceof ConstructorCallExpression && classNames.contains(expression.getType().getName()); }
[ "Return true if the expression is a constructor call on any of the named classes, with any number of parameters.\n@param expression - the expression\n@param classNames - the possible List of class names\n@return as described" ]
[ "Create a new remote proxy controller.\n\n@param client the transactional protocol client\n@param pathAddress the path address\n@param addressTranslator the address translator\n@param targetKernelVersion the {@link ModelVersion} of the kernel management API exposed by the proxied process\n@return the proxy controller", "Writes a resource's cost rate tables.\n\n@param xml MSPDI resource\n@param mpx MPXJ resource", "Set the mbean server on the QueryExp and try and pass back any previously set one", "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.", "Helper method to abstract out the common logic from the various users methods.\n\n@param api the API connection to be used when retrieving the users.\n@param filterTerm The filter term to lookup users by (login for external, login or name for managed)\n@param userType The type of users we want to search with this request.\nValid values are 'managed' (enterprise users), 'external' or 'all'\n@param externalAppUserId the external app user id that has been set for an app user\n@param fields the fields to retrieve. Leave this out for the standard fields.\n@return An iterator over the selected users.", "Returns the current transaction for the calling thread.\n\n@throws org.odmg.TransactionNotInProgressException\n{@link org.odmg.TransactionNotInProgressException} if no transaction was found.", "Returns an array of the names of all atributes of this descriptor.\n\n@return The list of attribute names (will not be <code>null</code>)", "Export modules and check them in. Assumes the log stream already open.\n@return exit code of the commit-script.", "Recovers the state of synchronization in case a system failure happened. The goal is to revert\nto a known, good state." ]
private void setPlaying(boolean playing) { PlaybackState oldState = currentSimpleState(); if (oldState != null && oldState.playing != playing) { setPlaybackState(oldState.player, oldState.position, playing); } }
[ "Set whether the player holding the waveform is playing, which changes the indicator color to white from red.\nThis method can only be used in situations where the component is tied to a single player, and therefore has\na single playback position.\n\n@param playing if {@code true}, draw the position marker in white, otherwise red\n\n@see #setPlaybackState" ]
[ "Loads the asset referenced by the file name\nunder the owner of this component.\nIf this component was constructed to replace the scene with\nthe asset, the scene will contain only the owner of this\ncomponent upon return. Otherwise, the loaded asset is a\nchild of this component's owner.\n\nLoading the asset is performed in a separate thread.\nThis function returns before the asset has finished loading.\nIAssetEvents are emitted to the event listener on the context.\n\n@param scene scene to add the model to, null is permissible\n@return always true", "Unlock all edited resources.", "Retrieve the default aliases to be applied to MPXJ task and resource fields.\n\n@return map of aliases", "Adds the correct load instruction based on the type descriptor\n\n@param code the bytecode to add the instruction to\n@param type the type of the variable\n@param variable the variable number", "Inserts the provided document. If the document is missing an identifier, the client should\ngenerate one.\n\n@param document the document to insert\n@return a task containing the result of the insert one operation", "Returns the item at the specified position.\n\n@param position index of the item to return\n@return the item at the specified position or {@code null} when not found", "Returns the u component of a coordinate from a texture coordinate set.\n\n@param vertex the vertex index\n@param coords the texture coordinate set\n@return the u component", "Update the object in the database.", "Writes long strings to output stream as several chunks.\n\n@param stream stream to write to.\n@param str string to be written.\n@throws IOException if something went wrong" ]
private void expireDevices() { long now = System.currentTimeMillis(); // Make a copy so we don't have to worry about concurrent modification. Map<InetAddress, DeviceAnnouncement> copy = new HashMap<InetAddress, DeviceAnnouncement>(devices); for (Map.Entry<InetAddress, DeviceAnnouncement> entry : copy.entrySet()) { if (now - entry.getValue().getTimestamp() > MAXIMUM_AGE) { devices.remove(entry.getKey()); deliverLostAnnouncement(entry.getValue()); } } if (devices.isEmpty()) { firstDeviceTime.set(0); // We have lost contact with the Pro DJ Link network, so start over with next device. } }
[ "Remove any device announcements that are so old that the device seems to have gone away." ]
[ "Pretty prints the output of getMapOfContiguousPartitionRunLengths\n\n@param cluster\n@param zoneId\n@return pretty string of contiguous run lengths", "Helper method that encapsulates the minimum logic for adding a job to a\nqueue.\n\n@param jedis\nthe connection to Redis\n@param namespace\nthe Resque namespace\n@param queue\nthe Resque queue name\n@param jobJson\nthe job serialized as JSON", "Draws the specified image with the first rectangle's bounds, clipping with the second one and adding\ntransparency.\n\n@param img image\n@param rect rectangle\n@param clipRect clipping bounds", "Translates the Fluo row, column, and value set into the persistent format that is stored in\nAccumulo.\n\n<p>\nThe objects returned by this method are reused each time its called. So each time this is\ncalled it invalidates what was returned by previous calls to this method.\n\n@return A an array of Accumulo key values in correct sorted order.", "Read an optional string value form a JSON Object.\n@param json the JSON object to read from.\n@param key the key for the string value in the provided JSON object.\n@param defaultValue the default value, to be returned if the string can not be read from the JSON object.\n@return the string or the default value if reading the string fails.", "Saves the favorites.\n\n@param favorites the list of favorites to save\n@throws CmsException if something goes wrong", "Parse a list of objects from a JsonParser.\n\n@param jsonParser The JsonParser, preconfigured to be at the START_ARRAY token.", "Update the object in the database.", "Check if the gravity and orientation are not in conflict one with other.\n@param gravity\n@param orientation\n@return true if orientation and gravity can be applied together, false - otherwise" ]
public GVRAnimation setOnFinish(GVROnFinish callback) { mOnFinish = callback; // Do the instance-of test at set-time, not at use-time mOnRepeat = callback instanceof GVROnRepeat ? (GVROnRepeat) callback : null; if (mOnRepeat != null) { mRepeatCount = -1; // loop until iterate() returns false } return this; }
[ "Set the on-finish callback.\n\nThe basic {@link GVROnFinish} callback will notify you when the animation\nruns to completion. This is a good time to do things like removing\nnow-invisible objects from the scene graph.\n\n<p>\nThe extended {@link GVROnRepeat} callback will be called after every\niteration of an indefinite (repeat count less than 0) animation, giving\nyou a way to stop the animation when it's not longer appropriate.\n\n@param callback\nA {@link GVROnFinish} or {@link GVROnRepeat} implementation.\n<p>\n<em>Note</em>: Supplying a {@link GVROnRepeat} callback will\n{@linkplain #setRepeatCount(int) set the repeat count} to a\nnegative number. Calling {@link #setRepeatCount(int)} with a\nnon-negative value after setting a {@link GVROnRepeat}\ncallback will effectively convert the callback to a\n{@link GVROnFinish}.\n@return {@code this}, so you can chain setProperty() calls." ]
[ "Retrieves state and metrics information for all channels on individual connection.\n@param connectionName the connection name to retrieve channels\n@return list of channels on the connection", "Send Identify Node message to the controller.\n@param nodeId the nodeId of the node to identify\n@throws SerialInterfaceException when timing out or getting an invalid response.", "Reads the given text stream and compressed its content.\n\n@param stream The input stream\n@return A byte array containing the GZIP-compressed content of the stream\n@throws IOException If an error ocurred", "Export data base contents to a directory using supplied connection.\n\n@param connection database connection\n@param directory target directory\n@throws Exception", "A document that is paused no longer has remote updates applied to it.\nAny local updates to this document cause it to be resumed. An example of pausing a document\nis when a conflict is being resolved for that document and the handler throws an exception.\n\nThis method allows you to resume sync for a document.\n\n@param namespace namespace for the document\n@param documentId the id of the document to resume syncing\n@return true if successfully resumed, false if the document\ncould not be found or there was an error resuming", "Returns the body of the request. This method is used to read posted JSON data.\n\n@param request The request.\n\n@return String representation of the request's body.\n\n@throws IOException in case reading the request fails", "List the addons already added to an app.\n@param appName new of the app\n@return a list of add-ons", "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return", "given the groupName, it returns the groupId\n\n@param groupName name of group\n@return ID of group" ]
protected void watchConnection(ConnectionHandle connectionHandle) { String message = captureStackTrace(UNCLOSED_EXCEPTION_MESSAGE); this.closeConnectionExecutor.submit(new CloseThreadMonitor(Thread.currentThread(), connectionHandle, message, this.closeConnectionWatchTimeoutInMs)); }
[ "Starts off a new thread to monitor this connection attempt.\n@param connectionHandle to monitor" ]
[ "Not implemented.\n@param point1 Point1\n@param point2 Point2\n@return Throws an exception.", "Get all views from the list content\n@return list of views currently visible", "Helper to format term updates as expected by the Wikibase API\n@param updates\nplanned updates for the type of term\n@return map ready to be serialized as JSON by Jackson", "Parse currency.\n\n@param value currency value\n@return currency value", "Adds the supplied marker to the map.\n\n@param marker", "Convert a color to an angle.\n\n@param color The RGB value of the color to \"find\" on the color wheel.\n\n@return The angle (in rad) the \"normalized\" color is displayed on the\ncolor wheel.", "Creates a polling state.\n\n@param response the response from Retrofit REST call that initiate the long running operation.\n@param lroOptions long running operation options.\n@param defaultRetryTimeout the long running operation retry timeout.\n@param resourceType the type of the resource the long running operation returns\n@param serializerAdapter the adapter for the Jackson object mapper\n@param <T> the result type\n@return the polling state\n@throws IOException thrown by deserialization", "Renders a given graphic into a new image, scaled to fit the new size and rotated.", "Ensure that the nodeList is either null or empty.\n\n@param nodeList the nodeList to ensure to be either null or empty\n@param expression the expression was used to fine the nodeList\n@throws SpinXPathException if the nodeList is either null or empty" ]
protected void validate(final boolean isDomain) throws MojoDeploymentException { final boolean hasServerGroups = hasServerGroups(); if (isDomain) { if (!hasServerGroups) { throw new MojoDeploymentException( "Server is running in domain mode, but no server groups have been defined."); } } else if (hasServerGroups) { throw new MojoDeploymentException("Server is running in standalone mode, but server groups have been defined."); } }
[ "Validates the deployment.\n\n@param isDomain {@code true} if this is a domain server, otherwise {@code false}\n\n@throws MojoDeploymentException if the deployment is invalid" ]
[ "Checks whether a built of the indices is necessary.\n@param cms The appropriate CmsObject instance.\n@return true, if the spellcheck indices have to be rebuilt, otherwise false", "Prepare a parallel UDP Task.\n\n@param command\nthe command\n@return the parallel task builder", "Create the CML Options.\n\n@return Options expected from command-line.", "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object.", "Sets the file-pointer offset, measured from the beginning of this file,\nat which the next read or write occurs.", "Clears the Parameters before performing a new search.\n@return this.true;", "Browse groups for the given category ID. If a null value is passed for the category then the root category is used.\n\n@param catId\nThe optional category id. Null value will be ignored.\n@return The Collection of Photo objects\n@throws FlickrException\n@deprecated Flickr returns just empty results", "Use this API to update snmpuser resources.", "Replace bad xml charactes in given array by space\n\n@param cbuf buffer to replace in\n@param off Offset from which to start reading characters\n@param len Number of characters to be replaced" ]
public CollectionDescriptorDef getCollection(String name) { CollectionDescriptorDef collDef = null; for (Iterator it = _collections.iterator(); it.hasNext(); ) { collDef = (CollectionDescriptorDef)it.next(); if (collDef.getName().equals(name)) { return collDef; } } return null; }
[ "Returns the collection definition of the given name if it exists.\n\n@param name The name of the collection\n@return The collection definition or <code>null</code> if there is no such collection" ]
[ "Creates a status instance from the given serviceReferences.\nThe given list is copied to a new set made immutable.\n\n@param serviceReferencesBound the set of ServiceReference which are bound to the declaration.\n@param serviceReferencesHandled the set of ServiceReference which are handling the declaration.\n@return the new instance of status", "Parser for forecast\n\n@param feed\n@return", "Takes an HTML file, looks for the first instance of the specified insertion point, and\ninserts the diagram image reference and a client side map in that point.", "Adds new holes to the polygon.\n\n@param holes holes, must be contained in the exterior ring and must not overlap or\nintersect another hole\n@return this for chaining", "Append field with quotes and escape characters added, if required.\n\n@return this", "Updates the statements of the item document identified by the given item\nid. The updates are computed with respect to the current data found\nonline, making sure that no redundant deletions or duplicate insertions\nhappen. The references of duplicate statements will be merged.\n\n@param itemIdValue\nid of the document to be updated\n@param addStatements\nthe list of statements to be added or updated; statements with\nempty statement id will be added; statements with non-empty\nstatement id will be updated (if such a statement exists)\n@param deleteStatements\nthe list of statements to be deleted; statements will only be\ndeleted if they are present in the current document (in\nexactly the same form, with the same id)\n@param summary\nshort edit summary\n@return the updated document\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are IO problems, such as missing network connection", "Use this API to apply nspbr6.", "I promise that this is always a collection of HazeltaskTasks", "Instruct a query to use a specific index.\n@param designDocument Design document to use.\n@param indexName Index name to use.\n@return {@code QueryBuilder} object for method chaining." ]
public static String getValue(Element element) { if (element != null) { Node dataNode = element.getFirstChild(); if (dataNode != null) { return ((Text) dataNode).getData(); } } return null; }
[ "Get the text value for the specified element. If the element is null, or the element's body is empty then this method will return null.\n\n@param element\nThe Element\n@return The value String or null" ]
[ "Returns the value of found in the model.\n\n@param model the model that contains the key and value.\n@param expressionResolver the expression resolver to use to resolve expressions\n\n@return the directory grouping found in the model.\n\n@throws IllegalArgumentException if the {@link org.jboss.as.controller.descriptions.ModelDescriptionConstants#DIRECTORY_GROUPING directory grouping}\nwas not found in the model.", "Retrieves the text value for the baseline duration.\n\n@return baseline duration text", "We will always try to gather as many results as possible and never throw an exception.\n\nTODO: Make MemberResponse hold an exception that we can populate if something bad happens so we always\nget to return something for a member in order to indicate a failure. Getting the result when there\nis an error should throw an exception.\n\n@param execSvc\n@param members\n@param callable\n@param maxWaitTime - a value of 0 indicates forever\n@param unit\n@return", "This function looks for files with the \"wrong\" replica type in their name, and\nif it finds any, renames them.\n\nThose files may have ended up on this server either because:\n- 1. We restored them from another server, where they were named according to\nanother replica type. Or,\n- 2. The {@link voldemort.store.readonly.mr.azkaban.VoldemortBuildAndPushJob}\nand the {@link voldemort.store.readonly.fetcher.HdfsFetcher} are\noperating in 'build.primary.replicas.only' mode, so they only ever built\nand fetched replica 0 of any given file.\n\nNote: This is an implementation detail of the READONLY_V2 naming scheme, and should\nnot be used outside of that scope.\n\n@param masterPartitionId partition ID of the \"primary replica\"\n@param correctReplicaType replica number which should be found on the current\nnode for the provided masterPartitionId.", "Use this API to update vlan.", "Use this API to delete gslbservice of given name.", "Converts an XML file to an object.\n\n@param fileName The filename where to save it to.\n@return The object.\n@throws FileNotFoundException On error.", "Extract resource provider from a resource ID string.\n@param id the resource ID string\n@return the resource group name", "Inserts the specified array into the specified original array at the specified index.\n\n@param original the original array into which we want to insert another array\n@param index the index at which we want to insert the array\n@param inserted the array that we want to insert\n@return the combined array" ]
public static String getParameter(DbConn cnx, String key, String defaultValue) { try { return cnx.runSelectSingle("globalprm_select_by_key", 3, String.class, key); } catch (NoResultException e) { return defaultValue; } }
[ "Retrieve the value of a single-valued parameter.\n\n@param key\n@param defaultValue\n@param cnx" ]
[ "Adds all rows from the TSV file specified, using the provided delimiter and null value.\n\n@param file The file to read the data from.\n@param delimiter A column delimiter.\n@param nullValue Value to be treated as null in the source data.\n@return {@code this}", "Transforms a position according to the current transformation matrix and current page transformation.\n@param x\n@param y\n@return", "If the DefaultActionInvocation has been executed before and the Result is\nan instance of ActionChainResult, this method will walk down the chain of\nActionChainResults until it finds a non-chain result, which will be\nreturned. If the DefaultActionInvocation's result has not been executed\nbefore, the Result instance will be created and populated with the result\nparams.\n\n@return a Result instance\n@throws Exception", "Use this API to fetch nsacl6 resource of given name .", "Sets the currency code, or the regular expression to select codes.\n\n@param codes the currency codes or code expressions, not null.\n@return the query for chaining.", "Creates a sorted list that contains the items of the given iterable. The resulting list is sorted according to\nthe order induced by applying a key function to each element which yields a comparable criteria.\n\n@param iterable\nthe elements to be sorted. May not be <code>null</code>.\n@param key\nthe key function to-be-used. May not be <code>null</code>.\n@return a sorted list as a shallow copy of the given iterable.\n@see #sort(Iterable)\n@see #sort(Iterable, Comparator)\n@see ListExtensions#sortInplaceBy(List, org.eclipse.xtext.xbase.lib.Functions.Function1)", "Gets the message payload.\n\n@param message the message\n@return the payload", "a specialized version of solve that avoid additional checks that are not needed.", "This function uses a proxy which is capable of transforming typed invocations into proper HTTP calls\nwhich will be understood by RESTful services. This works for subresources as well. Interfaces and\nconcrete classes can be proxified, in the latter case a CGLIB runtime dependency is needed. CXF JAX-RS\nproxies can be configured the same way as HTTP-centric WebClients and response status and headers can\nalso be checked. HTTP response errors can be converted into typed exceptions." ]
public static boolean isFinalVariable(DeclarationExpression declarationExpression, SourceCode sourceCode) { if (isFromGeneratedSourceCode(declarationExpression)) { return false; } List<Expression> variableExpressions = getVariableExpressions(declarationExpression); if (!variableExpressions.isEmpty()) { Expression variableExpression = variableExpressions.get(0); int startOfDeclaration = declarationExpression.getColumnNumber(); int startOfVariableName = variableExpression.getColumnNumber(); int sourceLineNumber = findFirstNonAnnotationLine(declarationExpression, sourceCode); String sourceLine = sourceCode.getLines().get(sourceLineNumber-1); String modifiers = (startOfDeclaration >= 0 && startOfVariableName >= 0 && sourceLine.length() >= startOfVariableName) ? sourceLine.substring(startOfDeclaration - 1, startOfVariableName - 1) : ""; return modifiers.contains("final"); } return false; }
[ "Return true if the DeclarationExpression represents a 'final' variable declaration.\n\nNOTE: THIS IS A WORKAROUND.\n\nThere does not seem to be an easy way to determine whether the 'final' modifier has been\nspecified for a variable declaration. Return true if the 'final' is present before the variable name." ]
[ "Remove any mapping for this key, and return any previously\nmapped value.\n\n@param key the key whose mapping is to be removed\n@return the value removed, or null", "Submit a operations. Throw a run time exception if the operations is\nalready submitted\n\n@param operation The asynchronous operations to submit\n@param requestId Id of the request", "Removes the specified object in index from the array.\n\n@param index The index to remove.", "Clean obsolete contents from the content repository. It will first mark contents as obsolete then after some time\nif these contents are still obsolete they will be removed.\n\n@return a map containing the list of marked contents and the list of deleted contents.", "Invoked when an action occurs.", "Reads a single day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT week day", "Sums up the square of each element in the matrix. This is equivalent to the\nFrobenius norm squared.\n\n@param m Matrix.\n@return Sum of elements squared.", "Append this message to the message set\n@param messages message to append\n@return the written size and first offset\n@throws IOException file write exception", "Build a standard-format UDP packet for sending to port 50001 or 50002 in the protocol.\n\n@param type the type of packet to create.\n@param deviceName the 0x14 (twenty) bytes of the device name to send in the packet.\n@param payload the remaining bytes which come after the device name.\n@return the packet to send." ]
public static void dumpPlanToFile(String outputDirName, RebalancePlan plan) { if(outputDirName != null) { File outputDir = new File(outputDirName); if(!outputDir.exists()) { Utils.mkdirs(outputDir); } try { FileUtils.writeStringToFile(new File(outputDirName, "plan.out"), plan.toString()); } catch(IOException e) { logger.error("IOException during dumpPlanToFile: " + e); } } }
[ "Prints the plan to a file.\n\n@param outputDirName\n@param plan" ]
[ "Get a list of path transformers for a given address.\n\n@param address the path address\n@param placeholderResolver a placeholder resolver used to resolve children of a placeholder registration\n@return a list of path transformations", "Sets a JSON String as a request entity.\n\n@param connnection The request of {@link HttpConnection}\n@param body The JSON String to set.", "Converts a vector from sample space into eigen space.\n\n@param sampleData Sample space data.\n@return Eigen space projection.", "Use this API to fetch autoscaleaction resource of given name .", "a small static helper which catches nulls for us\n\n@param imageHolder\n@param ctx\n@param iconColor\n@param tint\n@return", "generate a message for loglevel FATAL\n\n@param pObject the message Object", "Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key", "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix.", "Use this API to fetch statistics of appfwpolicylabel_stats resource of given name ." ]
public void applyToOr(TextView textView, ColorStateList colorDefault) { if (mColorInt != 0) { textView.setTextColor(mColorInt); } else if (mColorRes != -1) { textView.setTextColor(ContextCompat.getColor(textView.getContext(), mColorRes)); } else if (colorDefault != null) { textView.setTextColor(colorDefault); } }
[ "a small helper to set the text color to a textView null save\n\n@param textView\n@param colorDefault" ]
[ "Loads the rules from files in the class loader, often jar files.\n\n@return the list of loaded rules, not null\n@throws Exception if an error occurs", "Generate heroku-like random names\n\n@return String", "Updates the date and time formats.\n\n@param properties project properties", "Over simplistic helper to compare two strings to check radio buttons.\n\n@param value1 the first value\n@param value2 the second value\n@return \"checked\" if both values are equal, the empty String \"\" otherwise", "A convenience method for creating an immutable map.\n\n@param self a Map\n@return an immutable Map\n@see java.util.Collections#unmodifiableMap(java.util.Map)\n@since 1.0", "Get the currently selected opacity.\n\n@return The int value of the currently selected opacity.", "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception", "This filter permit to return an image sized exactly as requested wherever is its ratio by\nfilling with chosen color the missing parts. Usually used with \"fit-in\" or \"adaptive-fit-in\"\n\n@param color integer representation of color.", "Helper. Current transaction is committed in some cases." ]
public static base_response update(nitro_service client, gslbservice resource) throws Exception { gslbservice updateresource = new gslbservice(); updateresource.servicename = resource.servicename; updateresource.ipaddress = resource.ipaddress; updateresource.publicip = resource.publicip; updateresource.publicport = resource.publicport; updateresource.cip = resource.cip; updateresource.cipheader = resource.cipheader; updateresource.sitepersistence = resource.sitepersistence; updateresource.siteprefix = resource.siteprefix; updateresource.maxclient = resource.maxclient; updateresource.healthmonitor = resource.healthmonitor; updateresource.maxbandwidth = resource.maxbandwidth; updateresource.downstateflush = resource.downstateflush; updateresource.maxaaausers = resource.maxaaausers; updateresource.viewname = resource.viewname; updateresource.viewip = resource.viewip; updateresource.monthreshold = resource.monthreshold; updateresource.weight = resource.weight; updateresource.monitor_name_svc = resource.monitor_name_svc; updateresource.hashid = resource.hashid; updateresource.comment = resource.comment; updateresource.appflowlog = resource.appflowlog; return updateresource.update_resource(client); }
[ "Use this API to update gslbservice." ]
[ "Gets Widget bounds depth\n@return depth", "Use this API to fetch Interface resource of given name .", "Updates the font table by adding new fonts used at the current page.", "Execute JavaScript in the browser.\n\n@param code The code to execute.\n@return The return value of the JavaScript.\n@throws CrawljaxException when javascript execution failed.", "Returns all the retention policies.\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.", "Returns the configured request parameter for the query string, or the default parameter if no core is configured.\n@return The configured request parameter for the query string, or the default parameter if no core is configured.", "Returns the current transaction for the calling thread.\n\n@throws org.odmg.TransactionNotInProgressException\n{@link org.odmg.TransactionNotInProgressException} if no transaction was found.", "No need to expose. Client side work.", "Create a standalone target.\n\n@param controllerClient the connected controller client to a standalone instance.\n@return the remote target" ]
public static String readUntilTag(Reader r) throws IOException { if (!r.ready()) { return ""; } StringBuilder b = new StringBuilder(); int c = r.read(); while (c >= 0 && c != '<') { b.append((char) c); c = r.read(); } return b.toString(); }
[ "Reads all text up to next XML tag and returns it as a String.\n\n@return the String of the text read, which may be empty." ]
[ "In case we cannot delete a directory create a marker to recheck whether we can garbage collect some not\nreferenced directories and files.\n\n@param file the directory", "Set the value of one or more fields based on the contents of a database row.\n\n@param map column to field map\n@param row database row\n@param container field container", "Remove colProxy from list of pending collections and\nregister its contents with the transaction.", "Return the position of an element inside an array\n\n@param array the array where it looks for an element\n@param element the element to find in the array\n@param <T> the type of elements in the array\n@return the position of the element if it's found in the array, -1 otherwise", "Writes the content of an input stream to an output stream\n\n@throws IOException", "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Process an update packet from one of the CDJs. See if it has a valid track loaded; if not, clear any\nmetadata we had stored for that player. If so, see if it is the same track we already know about; if not,\nrequest the metadata associated with that track.\n\nAlso clears out any metadata caches that were attached for slots that no longer have media mounted in them,\nand updates the sets of which players have media mounted in which slots.\n\nIf any of these reflect a change in state, any registered listeners will be informed.\n\n@param update an update packet we received from a CDJ", "Sets the jdbcLevel. parse the string setting and check that it is indeed an integer.\n@param jdbcLevel The jdbcLevel to set", "Set the maximum date limit." ]
DeleteResult deleteMany(final MongoNamespace namespace, final Bson filter) { this.waitUntilInitialized(); try { ongoingOperationsGroup.enter(); final List<ChangeEvent<BsonDocument>> eventsToEmit = new ArrayList<>(); final DeleteResult result; final NamespaceSynchronizationConfig nsConfig = this.syncConfig.getNamespaceConfig(namespace); final Lock lock = nsConfig.getLock().writeLock(); lock.lock(); try { final MongoCollection<BsonDocument> localCollection = getLocalCollection(namespace); final MongoCollection<BsonDocument> undoCollection = getUndoCollection(namespace); final Set<BsonValue> idsToDelete = localCollection .find(filter) .map(new Function<BsonDocument, BsonValue>() { @Override @NonNull public BsonValue apply(@NonNull final BsonDocument bsonDocument) { undoCollection.insertOne(bsonDocument); return BsonUtils.getDocumentId(bsonDocument); } }).into(new HashSet<>()); result = localCollection.deleteMany(filter); for (final BsonValue documentId : idsToDelete) { final CoreDocumentSynchronizationConfig config = syncConfig.getSynchronizedDocument(namespace, documentId); if (config == null) { continue; } final ChangeEvent<BsonDocument> event = ChangeEvents.changeEventForLocalDelete(namespace, documentId, true); // this block is to trigger coalescence for a delete after insert if (config.getLastUncommittedChangeEvent() != null && config.getLastUncommittedChangeEvent().getOperationType() == OperationType.INSERT) { desyncDocumentsFromRemote(nsConfig, config.getDocumentId()) .commitAndClear(); undoCollection.deleteOne(getDocumentIdFilter(documentId)); continue; } config.setSomePendingWritesAndSave(logicalT, event); undoCollection.deleteOne(getDocumentIdFilter(documentId)); eventsToEmit.add(event); } checkAndDeleteNamespaceListener(namespace); } finally { lock.unlock(); } for (final ChangeEvent<BsonDocument> event : eventsToEmit) { eventDispatcher.emitEvent(nsConfig, event); } return result; } finally { ongoingOperationsGroup.exit(); } }
[ "Removes all documents from the collection that match the given query filter. If no documents\nmatch, the collection is not modified.\n\n@param filter the query filter to apply the the delete operation\n@return the result of the remove many operation" ]
[ "Store the given data and return a uuid for later retrieval of the data\n\n@param data\n@return unique id for the stored data", "Collects all the fields from columns and also the fields not bounds to columns\n@return List<ColumnProperty>", "Retrieve the FeatureSource object from the data store.\n\n@return An OpenGIS FeatureSource object;\n@throws LayerException\noops", "Convert the holiday format from EquivalenceClassTransformer into a date format\n\n@param holiday the date\n@return a date String in the format yyyy-MM-dd", "create partitions in the broker\n\n@param topic topic name\n@param partitionNum partition numbers\n@param enlarge enlarge partition number if broker configuration has\nsetted\n@return partition number in the broker\n@throws IOException if an I/O error occurs", "Retrieves a ProjectWriter instance which can write a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectWriter instance", "Copy the contents of the given InputStream into a String.\nLeaves the stream open when done.\n@param in the InputStream to copy from\n@return the String that has been copied to\n@throws IOException in case of I/O errors", "Delete with retry.\n\n@param file\n@return <tt>true</tt> if the file was successfully deleted.", "Converts a row major block matrix into a row major matrix.\n\n@param src Original DMatrixRBlock.. Not modified.\n@param dst Equivalent DMatrixRMaj. Modified." ]
public static Object newInstance(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException { return newInstance(getClass(className)); }
[ "Returns a new instance of the class with the given qualified name using the default or\nor a no-arg constructor.\n\n@param className The qualified name of the class to instantiate" ]
[ "Process StepFinishedEvent. Change last added to stepStorage step\nand add it as child of previous step.\n\n@param event to process", "Build a Dataset from some data.\n\n@param oldData This {@link Dataset} represents data for which we which to\nsome features, specifically those features not in the {@link edu.stanford.nlp.util.Index}\ngoodFeatures.\n@param goodFeatures An {@link edu.stanford.nlp.util.Index} of features we wish to retain.\n@return A new {@link Dataset} wheres each datapoint contains only features\nwhich were in goodFeatures.", "Obtain the name of the caller, most likely a user but could also be a remote process.\n\n@return The name of the caller.", "Add a calendar node.\n\n@param parentNode parent node\n@param calendar calendar", "Deletes an organization\n\n@param organizationId String", "Legacy conversion.\n@param map\n@return Properties", "Use this API to unset the properties of aaaparameter resource.\nProperties that need to be unset are specified in args array.", "Stops download dispatchers.", "Save an HTTP response to a file\n@param response the response to save\n@param destFile the destination file\n@throws IOException if the response could not be downloaded" ]
public static <E> String serialize(Map<String, E> map, Class<E> jsonObjectClass) throws IOException { return mapperFor(jsonObjectClass).serialize(map); }
[ "Serialize a map of objects to a JSON String.\n\n@param map The map of objects to serialize.\n@param jsonObjectClass The @JsonObject class of the list elements" ]
[ "convert object into another class using the JSON mapper\n\n@param <C> the generic target type\n@param object the object to convert\n@param targetClass the class of the target object\n@return the converted object\n@throws IllegalArgumentException if conversion fails", "Print units.\n\n@param value units value\n@return units value", "Get a property as a json array or throw exception.\n\n@param key the property name", "Executes a query. The query results will be added to the ExecutionResults using the\ngiven identifier.\n\n@param identifier\nThe identifier to be used for the results when added to the ExecutionResults\n@param name\nThe name of the query to execute\n@return", "Gets the bytes for the highest address in the range represented by this address.\n\n@return", "Determine whether or not a given serializedr is \"AVRO\" based\n\n@param serializerName\n@return", "The parameter 'project' is not used at the moment, but will be used once schema and plugin support lands.", "It is required that T be Serializable", "Gets an item that was shared with a shared link.\n@param api the API connection to be used by the shared item.\n@param sharedLink the shared link to the item.\n@return info about the shared item." ]
private void throwOrWarnAboutDescriptorProblem(String message) { if (validateDescriptions) { throw new IllegalArgumentException(message); } ControllerLogger.ROOT_LOGGER.warn(message); }
[ "Throws an exception or logs a message\n\n@param message The message for the exception or the log message. Must be internationalized" ]
[ "Get the FieldDescriptors of the extent based on the FieldDescriptors of the parent.", "The parameter must never be null\n\n@param queryParameters", "Sets the distance from the origin to the far clipping plane for the\nwhole camera rig.\n\n@param far\nDistance to the far clipping plane.", "Get the Json Schema of the input path, assuming the path contains just one\nschema version in all files under that path.", "Modifies the belief referenced by bName parameter.\n\n@param bName\n- the name of the belief to update.\n@param value\n- the new value for the belief", "Flat the map of list of string to map of strings, with theoriginal values, seperated by comma", "Assembles the exception message when the value received by a CellProcessor isn't of the correct type.\n\n@param expectedType\nthe expected type\n@param actualValue\nthe value received by the CellProcessor\n@return the message\n@throws NullPointerException\nif expectedType is null", "Read assignment data.", "Unkink FK fields of target object.\n\n@param targetObject real (non-proxy) target object\n@param cld {@link ClassDescriptor} of the real target object\n@param rds An {@link ObjectReferenceDescriptor} or {@link CollectionDescriptor}\nassociated with the real object." ]
void release() { if (mCurrentRequests != null) { synchronized (mCurrentRequests) { mCurrentRequests.clear(); mCurrentRequests = null; } } if (mDownloadQueue != null) { mDownloadQueue = null; } if (mDownloadDispatchers != null) { stop(); for (int i = 0; i < mDownloadDispatchers.length; i++) { mDownloadDispatchers[i] = null; } mDownloadDispatchers = null; } }
[ "Cancels all the pending & running requests and releases all the dispatchers." ]
[ "Utility function to zip the content of an entire folder, but not the folder itself.\n@param folder\n@param fileName optional\n@return success or not", "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", "Returns the screen width in pixels\n\n@param context is the context to get the resources\n@return the screen width in pixels", "Returns all headers with the headers from the Payload\n\n@return All the headers", "This method reads an eight byte integer from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "Fetch the specified expression from the cache or create it if necessary.\n\n@param expressionString the expression string\n@return the expression\n@throws ParseException oops", "Parses command-line and checks if metadata is consistent across all\nnodes.\n\n@param args Command-line input\n@param printHelp Tells whether to print help only or execute command\nactually\n@throws IOException", "Prints to a file. If the file does not exist, rewrites the file;\ndoes not append.", "Added in Gerrit 2.11." ]
public static String base64Encode(byte[] bytes) { if (bytes == null) { throw new IllegalArgumentException("Input bytes must not be null."); } if (bytes.length >= BASE64_UPPER_BOUND) { throw new IllegalArgumentException( "Input bytes length must not exceed " + BASE64_UPPER_BOUND); } // Every three bytes is encoded into four characters. // // Example: // input |0 1 0 1 0 0 1 0|0 1 1 0 1 1 1 1|0 1 1 0 0 0 1 0| // encode grouping |0 1 0 1 0 0|1 0 0 1 1 0|1 1 1 1 0 1|1 0 0 0 1 0| // encoded ascii | U | m | 9 | i | int triples = bytes.length / 3; // If the number of input bytes is not a multiple of three, padding characters will be added. if (bytes.length % 3 != 0) { triples += 1; } // The encoded string will have four characters for every three bytes. char[] encoding = new char[triples << 2]; for (int in = 0, out = 0; in < bytes.length; in += 3, out += 4) { int triple = (bytes[in] & 0xff) << 16; if (in + 1 < bytes.length) { triple |= ((bytes[in + 1] & 0xff) << 8); } if (in + 2 < bytes.length) { triple |= (bytes[in + 2] & 0xff); } encoding[out] = BASE64_CHARS.charAt((triple >> 18) & 0x3f); encoding[out + 1] = BASE64_CHARS.charAt((triple >> 12) & 0x3f); encoding[out + 2] = BASE64_CHARS.charAt((triple >> 6) & 0x3f); encoding[out + 3] = BASE64_CHARS.charAt(triple & 0x3f); } // Add padding characters if needed. for (int i = encoding.length - (triples * 3 - bytes.length); i < encoding.length; i++) { encoding[i] = '='; } return String.valueOf(encoding); }
[ "Base64 encodes a byte array.\n\n@param bytes Bytes to encode.\n@return Encoded string.\n@throws IllegalArgumentException if {@code bytes} is null or exceeds 3/4ths of {@code\nInteger.MAX_VALUE}." ]
[ "Load the given configuration file.", "Indicates if a set of types are all proxyable\n\n@param types The types to test\n@return True if proxyable, false otherwise", "Used to create a new retention policy with optional parameters.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@param type the type of the retention policy. Can be \"finite\" or \"indefinite\".\n@param length the duration in days that the retention policy will be active for after being assigned to content.\n@param action the disposition action can be \"permanently_delete\" or \"remove_retention\".\n@param optionalParams the optional parameters.\n@return the created retention policy's info.", "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\"", "Use this API to add dnssuffix.", "helper to calculate the statusBar height\n\n@param context\n@param force pass true to get the height even if the device has no translucent statusBar\n@return", "Set brightness to eg. darken the resulting image for use as background\n\n@param brightness default is 0, pos values increase brightness, neg. values decrease brightness\n.-100 is black, positive goes up to 1000+", "Reads baseline values for the current task.\n\n@param xmlTask MSPDI task instance\n@param mpxjTask MPXJ task instance\n@param durationFormat duration format to use", "Use this API to convert sslpkcs12." ]
public static <E, V> ServiceFuture<List<E>> fromHeaderPageResponse(Observable<ServiceResponseWithHeaders<Page<E>, V>> first, final Func1<String, Observable<ServiceResponseWithHeaders<Page<E>, V>>> next, final ListOperationCallback<E> callback) { final AzureServiceFuture<List<E>> serviceCall = new AzureServiceFuture<>(); final PagingSubscriber<E> subscriber = new PagingSubscriber<>(serviceCall, new Func1<String, Observable<ServiceResponse<Page<E>>>>() { @Override public Observable<ServiceResponse<Page<E>>> call(String s) { return next.call(s) .map(new Func1<ServiceResponseWithHeaders<Page<E>, V>, ServiceResponse<Page<E>>>() { @Override public ServiceResponse<Page<E>> call(ServiceResponseWithHeaders<Page<E>, V> pageVServiceResponseWithHeaders) { return pageVServiceResponseWithHeaders; } }); } }, callback); serviceCall.setSubscription(first .single() .subscribe(subscriber)); return serviceCall; }
[ "Creates a ServiceCall from a paging operation that returns a header response.\n\n@param first the observable to the first page\n@param next the observable to poll subsequent pages\n@param callback the client-side callback\n@param <E> the element type\n@param <V> the header object type\n@return the future based ServiceCall" ]
[ "Update the installed identity using the modified state from the modification.\n\n@param name the identity name\n@param modification the modification\n@param state the installation state\n@return the installed identity", "Adds the specified list of users as followers to the project. Followers are a subset of members, therefore if\nthe users are not already members of the project they will also become members as a result of this operation.\nReturns the updated project record.\n\n@param project The project to add followers to.\n@return Request object", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Load a JSON file from the application's \"asset\" directory.\n\n@param context Valid {@link Context}\n@param asset Name of the JSON file\n@return New instance of {@link JSONObject}", "Put a value if and only if the map has not changed since the given snapshot was taken. If the put fails,\nit is the caller's responsibility to retry.\n\n@param instance the instance with the map field\n@param key the key\n@param value the value\n@param snapshot the map snapshot\n@return {@code false} if the snapshot is out of date and we could not update, {@code true} if the put succeeded", "Post a module to the server\n\n@param module\n@param user\n@param password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Get the correct google api key.\nTries to read a workplace key first.\n\n@param cms CmsObject\n@param sitePath site path\n@return key value\n@throws CmsException exception", "Determines if a token stream contains only numeric tokens\n@param stream\n@return true if all tokens in the given stream can be parsed as an integer", "Use this API to fetch bridgegroup_nsip_binding resources of given name ." ]
private Map<String, Integer> runSampling( final ProctorContext proctorContext, final Set<String> targetTestNames, final TestType testType, final int determinationsToRun ) { final Set<String> targetTestGroups = getTargetTestGroups(targetTestNames); final Map<String, Integer> testGroupToOccurrences = Maps.newTreeMap(); for (final String testGroup : targetTestGroups) { testGroupToOccurrences.put(testGroup, 0); } for (int i = 0; i < determinationsToRun; ++i) { final Identifiers identifiers = TestType.RANDOM.equals(testType) ? new Identifiers(Collections.<TestType, String>emptyMap(), /* randomEnabled */ true) : Identifiers.of(testType, Long.toString(random.nextLong())); final AbstractGroups groups = supplier.getRandomGroups(proctorContext, identifiers); for (final Entry<String, TestBucket> e : groups.getProctorResult().getBuckets().entrySet()) { final String testName = e.getKey(); if (targetTestNames.contains(testName)) { final int group = e.getValue().getValue(); final String testGroup = testName + group; testGroupToOccurrences.put(testGroup, testGroupToOccurrences.get(testGroup) + 1); } } } return testGroupToOccurrences; }
[ "test, how many times the group was present in the list of groups." ]
[ "Traverses the test case annotations. Will inject a HiveShell in the test case that envelopes the HiveServer.", "Reads baseline values for the current resource.\n\n@param xmlResource MSPDI resource instance\n@param mpxjResource MPXJ resource instance", "Parses the query facet configurations.\n@param rangeFacetObject The JSON sub-node with the query facet configurations.\n@return The query facet configurations.", "Retrieve the details of a single project from the database.\n\n@param result Map instance containing the results\n@param row result set row read from the database", "Allocates a database connection.\n\n@throws SQLException", "Load the layers based on the default setup.\n\n@param jbossHome the jboss home directory\n@param productConfig the product config\n@param repoRoots the repository roots\n@return the available layers\n@throws IOException", "Enable the use of the given controller type by\nadding it to the cursor controller types list.\n@param controllerType GVRControllerType to add to the list", "Check if this applies to the provided authorization scope and return the credentials for that scope or\nnull if it doesn't apply to the scope.\n\n@param authscope the scope to test against.", "Gets the current user.\n@param api the API connection of the current user.\n@return the current user." ]
public static double elementSum( DMatrixSparseCSC A ) { if( A.nz_length == 0) return 0; double sum = 0; for(int i = 0; i < A.nz_length; i++ ) { sum += A.nz_values[i]; } return sum; }
[ "Sum of all elements\n\n@param A (Input) Matrix. Not modified.\n@return scalar" ]
[ "Checks if two claims are equivalent in the sense that they have the same\nmain snak and the same qualifiers, but possibly in a different order.\n\n@param claim1\n@param claim2\n@return true if claims are equivalent", "Given a GanttProject priority value, turn this into an MPXJ Priority instance.\n\n@param gpPriority GanttProject priority\n@return Priority instance", "Add assignments to the tree.\n\n@param parentNode parent tree node\n@param file assignments container", "Use this API to fetch sslcertkey_sslvserver_binding resources of given name .", "Load a cube map texture asynchronously.\n\nThis is the implementation of\n{@link GVRAssetLoader#loadCubemapTexture(GVRAndroidResource)} - it will\nusually be more convenient (and more efficient) to call that directly.\n\n@param gvrContext\nThe GVRF context\n@param textureCache\nTexture cache - may be {@code null}\n@param resource\nA steam containing a zip file which contains six bitmaps. The\nsix bitmaps correspond to +x, -x, +y, -y, +z, and -z faces of\nthe cube map texture respectively. The default names of the\nsix images are \"posx.png\", \"negx.png\", \"posy.png\", \"negx.png\",\n\"posz.png\", and \"negz.png\", which can be changed by calling\n{@link GVRCubemapImage#setFaceNames(String[])}.\n@param priority\nThis request's priority. Please see the notes on asynchronous\npriorities in the <a href=\"package-summary.html#async\">package\ndescription</a>.\n@return A {@link Future} that you can pass to methods like\n{@link GVRShaderData#setMainTexture(Future)}", "Constraint that ensures that the field has a conversion if the java type requires it. Also checks the conversion class.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic (partly) and strict)\n@exception ConstraintException If the conversion class is invalid", "Use this API to fetch all the sslaction resources that are configured on netscaler.", "Calculate the layout offset", "Convert a Identification to a By used in WebDriver Drivers.\n\n@return the correct By specification of the current Identification." ]
public void registerComponent(java.awt.Component c) { unregisterComponent(c); if (recognizerAbstractClass == null) { hmDragGestureRecognizers.put(c, dragSource.createDefaultDragGestureRecognizer(c, dragWorker.getAcceptableActions(c), dgListener) ); } else { hmDragGestureRecognizers.put(c, dragSource.createDragGestureRecognizer (recognizerAbstractClass, c, dragWorker.getAcceptableActions(c), dgListener) ); } }
[ "add a Component to this Worker. After the call dragging is enabled for this\nComponent.\n@param c the Component to register" ]
[ "Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name .", "Extract child task data.\n\n@param task MPXJ task\n@param row Synchro task data", "When creating image columns\n@return", "removes all data for an annotation class. This should be called after an\nannotation has been modified through the SPI", "Check if new license pattern is valid and doesn't match any existing one\n@param newComer License being added or edited\n@throws WebApplicationException if conflicts involving the newComer are detected", "Creates the event for endpoint with specific type.\n\n@param endpoint the endpoint\n@param type the type\n@return the event", "Stop announcing ourselves and listening for status updates.", "Adds an array of groupby fieldNames for ReportQueries.\n@param fieldNames The groupby to set\n@deprecated use QueryByCriteria#addGroupBy", "Creates an immutable copy that we can cache." ]
public <T extends Widget & Checkable> void clearChecks() { List<T> children = getCheckableChildren(); for (T c : children) { c.setChecked(false); } }
[ "Clears all checked widgets in the group" ]
[ "Clear history for a client\n\n@param profileId ID of profile\n@param clientUUID UUID of client", "Try to provide an escaped, ready-to-use shell line to repeat a given command line.", "Collapses all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start collapsing parents\n@param parentCount The number of parents to collapse", "Handles DMR strings in the configuration\n\n@param node the node to create.\n@param name the name for the node.\n@param value the value for the node.", "Find a node in the tree. The node must be \"visible\" to be found.\n@param address The full address of the node matching ManagementModelNode.addressPath()\n@return The node, or null if not found.", "Notify all WorkerListeners currently registered for the given WorkerEvent.\n@param event the WorkerEvent that occurred\n@param worker the Worker that the event occurred in\n@param queue the queue the Worker is processing\n@param job the Job related to the event (only supply for JOB_PROCESS, JOB_EXECUTE, JOB_SUCCESS, and\nJOB_FAILURE events)\n@param runner the materialized object that the Job specified (only supply for JOB_EXECUTE and\nJOB_SUCCESS events)\n@param result the result of the successful execution of the Job (only set for JOB_SUCCESS and if the Job was\na Callable that returned a value)\n@param t the Throwable that caused the event (only supply for JOB_FAILURE and ERROR events)", "Gets external resource for an HTML page in the setup-resources folder.\n\n@param context the context\n@param name the file name\n\n@return the resource for the HTML page", "Retrieve the parent task based on its WBS.\n\n@param wbs parent WBS\n@return parent task", "Release the broker instance." ]
private static void addTimePerComponent(HashMap<String, Long> mapComponentTimes, Component component) { Long currentTimeOfComponent = 0L; String key = component.getComponentType(); if (mapComponentTimes.containsKey(key)) { currentTimeOfComponent = mapComponentTimes.get(key); } //when transactions are run in parallel, we should log the longest transaction only to avoid that //for ex 'Total time' would be 100ms and transactions in parallel to hornetQ will be 2000ms Long maxTime = Math.max(component.getTime(), currentTimeOfComponent); mapComponentTimes.put(key, maxTime); }
[ "Add component processing time to given map\n@param mapComponentTimes\n@param component" ]
[ "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", "Queues a job for execution in specified time.\n\n@param job the job.\n@param millis execute the job in this time.", "Here we specify the configuration, starting from default MostUsefulConfiguration, and changing only what is needed", "Send value to node.\n@param nodeId the node Id to send the value to.\n@param endpoint the endpoint to send the value to.\n@param value the value to send", "Init the licenses cache\n\n@param licenses", "Creates an element that represents a rectangle drawn at the specified coordinates in the page.\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 DOM element", "page breaks should be near the bottom of the band, this method used while adding subreports\nwhich has the \"start on new page\" option.\n@param band", "Creates a non-binary text media type with the given subtype and a specified encoding", "Check the variable name and if not set, set it with the singleton variable name being on the top of the stack." ]
protected void checkActiveState(Widget child) { // Check if this widget has a valid href String href = child.getElement().getAttribute("href"); String url = Window.Location.getHref(); int pos = url.indexOf("#"); String location = pos >= 0 ? url.substring(pos, url.length()) : ""; if (!href.isEmpty() && location.startsWith(href)) { ListItem li = findListItemParent(child); if (li != null) { makeActive(li); } } else if (child instanceof HasWidgets) { // Recursive check for (Widget w : (HasWidgets) child) { checkActiveState(w); } } }
[ "Checks if this child holds the current active state.\nIf the child is or contains the active state it is applied." ]
[ "Sets padding between the pages\n@param padding\n@param axis", "Set dates with the provided check states.\n@param datesWithCheckInfo the dates to set, accompanied with the check state to set.", "Propagates node table of given DAG to all of it ancestors.", "Retrieves all file version retentions matching given filters as an Iterable.\n@param api the API connection to be used by the resource.\n@param filter filters for the query stored in QueryFilter object.\n@param fields the fields to retrieve.\n@return an iterable contains information about all file version retentions matching given filter.", "This method retrieves a double value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of a double\n@return double value", "in truth we probably only need the types as injected by the metadata binder", "Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.\nThe created connection will be closed if required.\n\n@param url a database url of the form\n<code>jdbc:<em>subprotocol</em>:<em>subname</em></code>\n@param c the Closure to call\n@see #newInstance(String)\n@throws SQLException if a database access error occurs", "Create a new queued pool with key type K, request type R, and value type\nV.\n\n@param factory The factory that creates objects\n@param config The pool config\n@return The created pool", "Reads next frame image." ]
private boolean ignoreMethod(String name) { boolean result = false; for (String ignoredName : IGNORED_METHODS) { if (name.matches(ignoredName)) { result = true; break; } } return result; }
[ "Used to determine if the current method should be ignored.\n\n@param name method name\n@return true if the method should be ignored" ]
[ "Returns the editable columns for the provided edit mode.\n@param mode the edit mode.\n@return the editable columns for the provided edit mode.", "Write a Byte Order Mark at the beginning of the file\n\n@param stream the FileOutputStream to write the BOM to\n@param bigEndian true if UTF 16 Big Endian or false if Low Endian\n@throws IOException if an IOException occurs.\n@since 1.0", "Parse one resource to a shape object and add it to the shapes array\n@param shapes\n@param flatJSON\n@param resourceId\n@throws org.json.JSONException", "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.", "Physically close off the internal connection.\n@param conn", "Merge a subtree.\n\n@param targetRegistry the target registry\n@param subTree the subtree", "Enable a host\n\n@param hostName\n@throws Exception", "Returns a representation of the date from the value attributes as ISO\n8601 encoding.\n\n@param value\n@return ISO 8601 value (String)", "todo move to commonops" ]
@RequestMapping(value = "api/edit/server", method = RequestMethod.GET) public @ResponseBody HashMap<String, Object> getjqRedirects(Model model, @RequestParam(value = "profileId", required = false) Integer profileId, @RequestParam(value = "clientUUID", required = true) String clientUUID, @RequestParam(value = "profileIdentifier", required = false) String profileIdentifier) throws Exception { if (profileId == null && profileIdentifier == null) { throw new Exception("profileId required"); } if (profileId == null) { profileId = ProfileService.getInstance().getIdFromName(profileIdentifier); } int clientId = ClientService.getInstance().findClient(clientUUID, profileId).getId(); HashMap<String, Object> returnJson = Utils.getJQGridJSON(ServerRedirectService.getInstance().tableServers(clientId), "servers"); returnJson.put("hostEditor", Client.isAvailable()); return returnJson; }
[ "Redirect URL to the specified profile ID\n\n@param model\n@param profileId\n@return\n@throws Exception" ]
[ "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character Character.MIN_VALUE.\n\n@param self a CharSequence\n@return a value obtained by incrementing the toString() of the CharSequence\n@since 1.8.2", "Allows to access the names of the current defined roundings.\n\n@param providers the providers and ordering to be used. By default providers and ordering as defined in\n#getDefaultProviders is used.\n@return the set of custom rounding ids, never {@code null}.", "Loads the properties file using the classloader provided. Creating a string from the properties\n\"user.agent.name\" and \"user.agent.version\".\n@param loader The class loader to use to load the resource.\n@param filename The name of the file to load.\n@return A string that represents the first part of the UA string eg java-cloudant/2.6.1", "Creates an appropriate HSGE for resources in the host tree, excluding the server and server-config subtrees", "Begin a \"track;\" that is, begin logging at one level deeper.\nChannels other than the FORCE channel are ignored.\n@param args The title of the track to begin, with an optional FORCE flag.", "Performs the actual spell check query using Solr.\n\n@param request the spell check request\n\n@return Results of the Solr spell check of type SpellCheckResponse or null if something goes wrong.", "Handle interval change.\n@param event the change event.", "Get random stub matching this user type\n@param userType User type\n@return Random stub", "A callback that handles requestComplete event from NIO selector manager\nWill try any possible nodes and pass itself as callback util all nodes\nare exhausted\n\n@param slopKey\n@param slopVersioned\n@param nodesToTry List of nodes to try to contact. Will become shorter\nafter each callback" ]
private static FieldType getPlaceholder(final Class<?> type, final int fieldID) { return new FieldType() { @Override public FieldTypeClass getFieldTypeClass() { return FieldTypeClass.UNKNOWN; } @Override public String name() { return "UNKNOWN"; } @Override public int getValue() { return fieldID; } @Override public String getName() { return "Unknown " + (type == null ? "" : type.getSimpleName() + "(" + fieldID + ")"); } @Override public String getName(Locale locale) { return getName(); } @Override public DataType getDataType() { return null; } @Override public FieldType getUnitsType() { return null; } @Override public String toString() { return getName(); } }; }
[ "Generate a placeholder for an unknown type.\n\n@param type expected type\n@param fieldID field ID\n@return placeholder" ]
[ "checkpoint the transaction", "Find a Constructor on the given type that matches the given arguments.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@return a Constructor from the given type that matches the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments", "Use this API to clear route6.", "Add the string representation of the given object to this sequence at the given index. The given indentation will\nbe prepended to each line except the first one if 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>.\n@param index\nthe index in the list of segments.", "Calls all initializers of the bean\n\n@param instance The bean instance", "Convert an object to a set.\n\n@param mapper the object mapper\n@param source the source object\n@param targetElementType the target set element type\n@return set", "Calculate the name of the output value.\n\n@param outputPrefix a nullable prefix to prepend to the name if non-null and non-empty\n@param outputMapper the name mapper\n@param field the field containing the value", "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", "Adds a path to the request response table with the specified values\n\n@param profileId ID of profile\n@param clientUUID UUID of client\n@param pathId ID of path\n@throws Exception exception" ]
public static java.sql.Timestamp toTimestamp(Object value) throws ParseException { if (value == null) { return null; } if (value instanceof java.sql.Timestamp) { return (java.sql.Timestamp) value; } if (value instanceof String) { if ("".equals((String) value)) { return null; } return new java.sql.Timestamp(IN_TIMESTAMP_FORMAT.parse((String) value).getTime()); } return new java.sql.Timestamp(IN_TIMESTAMP_FORMAT.parse(value.toString()).getTime()); }
[ "Convert an Object to a Timestamp." ]
[ "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", "Flush output streams.", "Get the upload parameters.\n@return", "Get the names of the paths that would apply to the request\n\n@param requestUrl URL of the request\n@param requestType Type of the request: GET, POST, PUT, or DELETE as integer\n@return JSONArray of path names\n@throws Exception", "Set the rate types.\n\n@param rateTypes the rate types, not null and not empty.\n@return this, for chaining.\n@throws IllegalArgumentException when not at least one {@link RateType} is provided.", "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.", "Returns the target locales.\n\n@return the target locales, never null.", "Requests that the given namespace stopped being listened to for change events.\n\n@param namespace the namespace to stop listening for change events on.", "return the squared area of the triangle defined by the half edge hedge0\nand the point at the head of hedge1.\n\n@param hedge0\n@param hedge1\n@return" ]
public static void finishThread(){ //--Create Task final long threadId = Thread.currentThread().getId(); Runnable finish = new Runnable(){ public void run(){ releaseThreadControl(threadId); } }; //--Run Task if(isThreaded){ //(case: multithreaded) attemptThreadControl( threadId, finish ); } else { //(case: no threading) throw new IllegalStateException("finishThreads() called outside of threaded environment"); } }
[ "Signal that this thread will not log any more messages in the multithreaded\nenvironment" ]
[ "Use this API to count sslcertkey_crldistribution_binding resources configued on NetScaler.", "Retrieves state and metrics information for all nodes in the cluster.\n\n@return list of nodes in the cluster", "Appends a formatted line of code to the source.\n\n<p>Formatting supports {@code %s} and {@code %n$s}. Most args are converted according to their\n{@link Object#toString()} method, except that:<ul>\n<li> {@link Package} and {@link PackageElement} instances use their fully-qualified names\n(no \"package \" prefix).\n<li> {@link Class}, {@link TypeElement}, {@link DeclaredType} and {@link QualifiedName}\ninstances use their qualified names where necessary, or shorter versions if a suitable\nimport line can be added.\n<li> {@link Excerpt} instances have {@link Excerpt#addTo(SourceBuilder)} called.\n</ul>", "Write all state items to the log file.\n\n@param fileRollEvent the event to log", "Creates the adapter for the target database.", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "Send a device found announcement to all registered listeners.\n\n@param announcement the message announcing the new device", "Dump raw data as hex.\n\n@param buffer buffer\n@param offset offset into buffer\n@param length length of data to dump\n@param ascii true if ASCII should also be printed\n@param columns number of columns\n@param prefix prefix when printing\n@return hex dump", "Promotes this version of the file to be the latest version." ]
public static final Bytes of(ByteBuffer bb) { Objects.requireNonNull(bb); if (bb.remaining() == 0) { return EMPTY; } byte[] data; if (bb.hasArray()) { data = Arrays.copyOfRange(bb.array(), bb.position() + bb.arrayOffset(), bb.limit() + bb.arrayOffset()); } else { data = new byte[bb.remaining()]; // duplicate so that it does not change position bb.duplicate().get(data); } return new Bytes(data); }
[ "Creates a Bytes object by copying the data of the given ByteBuffer.\n\n@param bb Data will be read from this ByteBuffer in such a way that its position is not\nchanged." ]
[ "Creates and caches dataset info object. Subsequent invocations will\nreturn same instance.\n\n@see IIM#DS(int, int)\n@param dataSet\ndataset record number\n@return dataset info instace", "Converts an absolute rectangle to a relative one wrt to the current coordinate system.\n\n@param rect absolute rectangle\n@return relative rectangle", "Returns the class hierarchy of the given type, from bottom to top, starting with the given class itself.\nInterfaces are not included.\n\n@param clazz the class of interest\n@return the class hierarchy of the given class", "Load resource content from given path into variable with\ntype specified by `spec`.\n\n@param resourcePath the resource path\n@param spec {@link BeanSpec} specifies the return value type\n@return the resource content in a specified type or `null` if resource not found\n@throws UnexpectedException if return value type not supported", "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.", "Get the collection of contacts for the calling user.\n\n@return The Collection of Contact objects", "Get all Groups\n\n@return\n@throws Exception", "Returns an ArrayList of String URLs of the Carousel Images\n@return ArrayList of Strings", "Redirect standard streams so that the output can be passed to listeners." ]
private void readRelationships(Document cdp) { for (Link link : cdp.getLinks().getLink()) { readRelationship(link); } }
[ "Read all task relationships from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file" ]
[ "Performs the transformation.\n\n@return True if the file was modified.", "Returns the compact project records for all projects in the workspace.\n\n@param workspace The workspace or organization to find projects in.\n@return Request object", "Add an index on the given collection and field\n\n@param collection the collection to use for the index\n@param field the field to use for the index\n@param asc the sorting direction. <code>true</code> to sort ascending; <code>false</code> to sort descending\n@param background iff <code>true</code> the index is created in the background", "Updates the existing cluster such that we remove partitions mentioned\nfrom the stealer node and add them to the donor node\n\n@param currentCluster Existing cluster metadata. Both stealer and donor\nnode should already exist in this metadata\n@param stealerNodeId Id of node for which we are stealing the partitions\n@param donatedPartitions List of partitions we are moving\n@return Updated cluster metadata", "Creates a new capsule\n\n@param mode the capsule mode, or {@code null} for the default mode\n@param wrappedJar a path to a capsule JAR that will be launched (wrapped) by the empty capsule in {@code jarFile}\nor {@code null} if no wrapped capsule is wanted\n@return the capsule.", "end class SAXErrorHandler", "Makes sure that there is a class definition for the given qualified name, and returns it.\n\n@param original The XDoclet class object\n@return The class definition", "add trace information for received frame", "Retrieves the real subject from the underlying RDBMS. Override this\nmethod if the object is to be materialized in a specific way.\n\n@return The real subject of the proxy" ]
public long nextUniqueTransaction(long timeMs) { long id = timeMs; for (; ; ) { long old = transactionID.get(); if (old >= id) id = old + 1; if (transactionID.compareAndSet(old, id)) break; } return id; }
[ "the transaction id are generated as unique timestamps\n\n@param timeMs in milliseconds\n@return a unique transactionId" ]
[ "If the layer transformer has not been prepared yet, do it.\n\n@param transformer the transformer", "Gets validation errors either as a JSON string, or null if there are no validation errors.\n\n@return the validation error JSON", "Parser for actual conditions\n\n@param feed\n@return", "Use this API to fetch dnsview resources of given names .", "Parse the given projection.\n\n@param projection The projection string.\n@param longitudeFirst longitudeFirst", "This method is called to alert project listeners to the fact that\na task has been read from a project file.\n\n@param task task instance", "Perform construction with custom thread pool size.", "Parses a raw WBS value from the database and breaks it into\ncomponent parts ready for formatting.\n\n@param value raw WBS value", "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." ]
public SqlStatement getPreparedDeleteStatement(Query query, ClassDescriptor cld) { return new SqlDeleteByQuery(m_platform, cld, query, logger); }
[ "generate a prepared DELETE-Statement according to query\n@param query the Query\n@param cld the ClassDescriptor" ]
[ "Remove the S3 file that contains the domain controller data.\n\n@param directoryName the name of the directory that contains the S3 file", "Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.\n\n@param map\nthe map\n@param nameMapping\nthe keys of the Map values to add to the List\n@return a List of all of the values in the Map whose key matches an entry in the nameMapping array\n@throws NullPointerException\nif map or nameMapping is null", "Replaces current Collection mapped to key with the specified Collection.\nUse carefully!", "Convert an Object to a DateTime, without an Exception", "Adds the given entity to the inverse associations it manages.", "Appends a line separator node that will only be effective if the current line contains non-whitespace text.\n\n@return the given parent node", "Convert an Object to a DateTime.", "Returns the tags that were root in the definition files. These serve as entry point shortcuts when browsing the graph. We could reduce this to\njust fewer as the root tags may be connected through parents=\"...\".", "Determine if a CharSequence can be parsed as an Integer.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isInteger(String)\n@since 1.8.2" ]
boolean undoChanges() { final State state = stateUpdater.getAndSet(this, State.ROLLBACK_ONLY); if (state == State.COMPLETED || state == State.ROLLBACK_ONLY) { // Was actually completed already return false; } PatchingTaskContext.Mode currentMode = this.mode; mode = PatchingTaskContext.Mode.UNDO; final PatchContentLoader loader = PatchContentLoader.create(miscBackup, null, null); // Undo changes for the identity undoChanges(identityEntry, loader); // TODO maybe check if we need to do something for the layers too !? if (state == State.INVALIDATE || currentMode == PatchingTaskContext.Mode.ROLLBACK) { // For apply the state needs to be invalidate // For rollback the files are invalidated as part of the tasks final PatchingTaskContext.Mode mode = currentMode == PatchingTaskContext.Mode.APPLY ? PatchingTaskContext.Mode.ROLLBACK : PatchingTaskContext.Mode.APPLY; for (final File file : moduleInvalidations) { try { PatchModuleInvalidationUtils.processFile(this, file, mode); } catch (Exception e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to restore state for %s", file); } } if(!modulesToReenable.isEmpty()) { for (final File file : modulesToReenable) { try { PatchModuleInvalidationUtils.processFile(this, file, PatchingTaskContext.Mode.APPLY); } catch (Exception e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to restore state for %s", file); } } } if(!modulesToDisable.isEmpty()) { for (final File file : modulesToDisable) { try { PatchModuleInvalidationUtils.processFile(this, file, PatchingTaskContext.Mode.ROLLBACK); } catch (Exception e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to restore state for %s", file); } } } } return true; }
[ "Internally undo recorded changes we did so far.\n\n@return whether the state required undo actions" ]
[ "Use this API to fetch csvserver_cmppolicy_binding resources of given name .", "Reports that a node is faulted.\n\n@param faulted the node faulted\n@param throwable the reason for fault", "Function to perform backward activation", "Get path ID for a given profileId and pathName\n\n@param pathName Name of path\n@param profileId ID of profile\n@return ID of path", "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Set up the services to create a channel listener and operation handler service.\n@param serviceTarget the service target to install the services into\n@param endpointName the endpoint name to install the services into\n@param channelName the name of the channel\n@param executorServiceName service name of the executor service to use in the operation handler service\n@param scheduledExecutorServiceName service name of the scheduled executor service to use in the operation handler service", "Release the connection back to the pool.\n\n@throws SQLException Never really thrown", "Initial random seed used for shuffling test suites and other sources\nof pseudo-randomness. If not set, any random value is set.\n\n<p>The seed's format is compatible with {@link RandomizedRunner} so that\nseed can be fixed for suites and methods alike.", "Retrieves the cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry" ]
public void sendValue(int nodeId, int endpoint, int value) { ZWaveNode node = this.getNode(nodeId); ZWaveSetCommands zwaveCommandClass = null; SerialMessage serialMessage = null; for (ZWaveCommandClass.CommandClass commandClass : new ZWaveCommandClass.CommandClass[] { ZWaveCommandClass.CommandClass.SWITCH_MULTILEVEL, ZWaveCommandClass.CommandClass.SWITCH_BINARY, ZWaveCommandClass.CommandClass.BASIC }) { zwaveCommandClass = (ZWaveSetCommands)node.resolveCommandClass(commandClass, endpoint); if (zwaveCommandClass != null) break; } if (zwaveCommandClass == null) { logger.error("No Command Class found on node {}, instance/endpoint {} to request level.", nodeId, endpoint); return; } serialMessage = node.encapsulate(zwaveCommandClass.setValueMessage(value), (ZWaveCommandClass)zwaveCommandClass, endpoint); if (serialMessage != null) this.sendData(serialMessage); // read back level on "ON" command if (((ZWaveCommandClass)zwaveCommandClass).getCommandClass() == ZWaveCommandClass.CommandClass.SWITCH_MULTILEVEL && value == 255) this.requestValue(nodeId, endpoint); }
[ "Send value to node.\n@param nodeId the node Id to send the value to.\n@param endpoint the endpoint to send the value to.\n@param value the value to send" ]
[ "Sets the bottom padding for all cells in the table.\n@param paddingBottom new padding, ignored if smaller than 0\n@return this to allow chaining", "Registers your facet filters, adding them to this InstantSearch's widgets.\n\n@param filters a List of facet filters.", "Returns the vertex points in this hull.\n\n@return array of vertex points\n@see QuickHull3D#getVertices(double[])\n@see QuickHull3D#getFaces()", "Complete both operations and commands.", "Obtains a International Fixed zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Converts an integer into a time format.\n\n@param format integer format value\n@return TimeUnit instance", "Use this API to delete clusterinstance resources.", "Checks that given directory if readable & writable and prints a warning if the check fails. Warning is only\nprinted once and is not repeated until the condition is fixed and broken again.\n\n@param directory deployment directory\n@return does given directory exist and is readable and writable?", "Remove an read lock." ]
public static String unexpand(CharSequence self, int tabStop) { String s = self.toString(); if (s.length() == 0) return s; try { StringBuilder builder = new StringBuilder(); for (String line : readLines((CharSequence) s)) { builder.append(unexpandLine(line, tabStop)); builder.append("\n"); } // remove the normalized ending line ending if it was not present if (!s.endsWith("\n")) { builder.deleteCharAt(builder.length() - 1); } return builder.toString(); } catch (IOException e) { /* ignore */ } return s; }
[ "Replaces sequences of whitespaces with tabs.\n\n@param self A CharSequence to unexpand\n@param tabStop The number of spaces a tab represents\n@return an unexpanded String\n@since 1.8.2" ]
[ "Generates an expression from a variable\n@param var The variable from which to generate the expression\n@return A expression that represents the given variable", "Creates the container for a bundle descriptor.\n@return the container for a bundle descriptor.", "Finds for the given project.\n\n@param name project name\n@return given project or an empty {@code Optional} if project does not exist\n@throws IllegalArgumentException", "Sets the license for a photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo to update the license for.\n@param licenseId\nThe license to apply, or 0 (zero) to remove the current license.\n@throws FlickrException", "Returns IMAP formatted String of MessageFlags for named user", "Copy one Gradient into another.\n@param g the Gradient to copy into", "Prepare a parallel HTTP PUT Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Configs created by this ConfigBuilder will have the given Redis hostname.\n\n@param host the Redis hostname\n@return this ConfigBuilder", "This is a very ugly workaround to get the method arguments from the JUnit 5 context via reflection." ]
public static tunnelip_stats get(nitro_service service, String tunnelip) throws Exception{ tunnelip_stats obj = new tunnelip_stats(); obj.set_tunnelip(tunnelip); tunnelip_stats response = (tunnelip_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of tunnelip_stats resource of given name ." ]
[ "Add the extra parameters which are passed as report parameters. The type of the parameter is \"guessed\" from the\nfirst letter of the parameter name.\n\n@param model view model\n@param request servlet request", "Returns all headers with the headers from the Payload\n\n@return All the headers", "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", "Adds a column to this table definition.\n\n@param columnDef The new column", "This method retrieves a byte array of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return byte array containing required data", "Runs the command session.\nCreate the Shell, then run this method to listen to the user,\nand the Shell will invoke Handler's methods.\n@throws java.io.IOException when can't readLine() from input.", "Use this API to unset the properties of rnatparam resource.\nProperties that need to be unset are specified in args array.", "Use this API to clear route6 resources.", "Populates a calendar exception instance.\n\n@param record MPX record\n@param calendar calendar to which the exception will be added\n@throws MPXJException" ]
public static <T> void setBeanInstance(String contextId, T proxy, BeanInstance beanInstance, Bean<?> bean) { if (proxy instanceof ProxyObject) { ProxyObject proxyView = (ProxyObject) proxy; proxyView.weld_setHandler(new ProxyMethodHandler(contextId, beanInstance, bean)); } }
[ "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" ]
[ "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Adds main report query.\n\n@param text\n@param language use constants from {@link DJConstants}\n@return", "Fixed length fancy formatting for doubles. If possible decimal notation is used. If all the significant digits\ncan't be shown then it will switch to exponential notation. If not all the space is needed then it will\nbe filled in to ensure it has the specified length.\n\n@param value value being formatted\n@param format default format before exponential\n@param length Maximum number of characters it can take.\n@param significant Number of significant decimal digits to show at a minimum.\n@return formatted string", "Use this API to fetch policydataset resource of given name .", "Returns the proxies real subject. The subject will be materialized if\nnecessary.\n\n@return The subject", "Compare two versions\n\n@param other\n@return an integer: 0 if equals, -1 if older, 1 if newer\n@throws IncomparableException is thrown when two versions are not coparable", "used by Error template", "Send a beat grid update announcement to all registered listeners.\n\n@param player the player whose beat grid information has changed\n@param beatGrid the new beat grid associated with that player, if any", "Return the equivalence class of the argument. If the argument is not contained in\nand equivalence class, then an empty string is returned.\n\n@param punc\n@return The class name if found. Otherwise, an empty string." ]
private void writeAssignmentExtendedAttributes(Project.Assignments.Assignment xml, ResourceAssignment mpx) { Project.Assignments.Assignment.ExtendedAttribute attrib; List<Project.Assignments.Assignment.ExtendedAttribute> extendedAttributes = xml.getExtendedAttribute(); for (AssignmentField mpxFieldID : getAllAssignmentExtendedAttributes()) { Object value = mpx.getCachedValue(mpxFieldID); if (FieldTypeHelper.valueIsNotDefault(mpxFieldID, value)) { m_extendedAttributesInUse.add(mpxFieldID); Integer xmlFieldID = Integer.valueOf(MPPAssignmentField.getID(mpxFieldID) | MPPAssignmentField.ASSIGNMENT_FIELD_BASE); attrib = m_factory.createProjectAssignmentsAssignmentExtendedAttribute(); extendedAttributes.add(attrib); attrib.setFieldID(xmlFieldID.toString()); attrib.setValue(DatatypeConverter.printExtendedAttribute(this, value, mpxFieldID.getDataType())); attrib.setDurationFormat(printExtendedAttributeDurationFormat(value)); } } }
[ "This method writes extended attribute data for an assignment.\n\n@param xml MSPDI assignment\n@param mpx MPXJ assignment" ]
[ "This method is called if the data set has been scrolled.", "Returns the matrix's rank. Automatic selection of threshold\n\n@param A Matrix. Not modified.\n@return The rank of the decomposed matrix.", "Determine the enum value corresponding to the first play state found in the packet.\n\n@return the proper value", "Returns the JMX connector address of a child process.\n\n@param p the process to which to connect\n@param startAgent whether to installed the JMX agent in the target process if not already in place\n@return a {@link JMXServiceURL} to the process's MBean server", "Read a nested table whose contents we don't understand.\n\n@param rowSize fixed row size\n@param rowMagicNumber row magic number\n@return table rows", "rollback the transaction", "Entry point for the example.\n\n@param args Command-line arguments for the example. To use samplemachine.xml from resources, send\nno arguments. To use other file, send a filename without xml extension).", "Returns a collection view of this map's values.\n\n@return a collection view of this map's values.", "Gets an enhanced protection domain for a proxy based on the given protection domain.\n@param domain the given protection domain\n@return protection domain enhanced with \"accessDeclaredMembers\" runtime permission" ]
public static void Forward(double[][] data) { double[][] result = new double[data.length][data[0].length]; for (int m = 0; m < data.length; m++) { for (int n = 0; n < data[0].length; n++) { double sum = 0; for (int i = 0; i < result.length; i++) { for (int k = 0; k < data.length; k++) { sum += data[i][k] * cas(((2.0 * Math.PI) / data.length) * (i * m + k * n)); } result[m][n] = (1.0 / data.length) * sum; } } } for (int i = 0; i < data.length; i++) { for (int j = 0; j < data[0].length; j++) { data[i][j] = result[i][j]; } } }
[ "2-D Forward Discrete Hartley Transform.\n\n@param data Data." ]
[ "Refresh's this connection's access token using Box Developer Edition.\n@throws IllegalStateException if this connection's access token cannot be refreshed.", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Use this API to fetch all the tmsessionparameter resources that are configured on netscaler.", "Obtains a Discordian local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Discordian local date-time, not null\n@throws DateTimeException if unable to create the date-time", "Appends the accumulated words to the resulting words. Trailing whitespace is removed because of the\npostprocessing that inserts custom whitespace\n\n@param currentWords is the {@link StringBuilder} of the accumulated words\n@param formattedWords is the list that is being appended to", "Use this API to delete ntpserver resources of given names.", "Gets a property from system, environment or an external map.\nThe lookup order is system > env > map > defaultValue.\n\n@param name\nThe name of the property.\n@param map\nThe external map.\n@param defaultValue\nThe value that should be used if property is not found.", "If status is in failed state then throw CloudException.", "Use this API to delete appfwjsoncontenttype of given name." ]
public static sslvserver_sslciphersuite_binding[] get(nitro_service service, String vservername) throws Exception{ sslvserver_sslciphersuite_binding obj = new sslvserver_sslciphersuite_binding(); obj.set_vservername(vservername); sslvserver_sslciphersuite_binding response[] = (sslvserver_sslciphersuite_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch sslvserver_sslciphersuite_binding resources of given name ." ]
[ "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.", "Create a SVG graphic with the give dimensions.\n\n@param size The size of the SVG graphic.", "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", "Ensures that the specified fields are present in the given class.\n\n@param classDef The class to copy the fields into\n@param fields The fields to copy\n@throws ConstraintException If there is a conflict between the new fields and fields in the class", "Returns an encrypted token combined with answer.", "Use this API to fetch all the spilloverpolicy resources that are configured on netscaler.", "retrieve a collection of type collectionClass matching the Query query\n\n@see org.apache.ojb.broker.PersistenceBroker#getCollectionByQuery(Class, Query)", "provides a safe toString", "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)\"" ]
public Style createStyle(final List<Rule> styleRules) { final Rule[] rulesArray = styleRules.toArray(new Rule[0]); final FeatureTypeStyle featureTypeStyle = this.styleBuilder.createFeatureTypeStyle(null, rulesArray); final Style style = this.styleBuilder.createStyle(); style.featureTypeStyles().add(featureTypeStyle); return style; }
[ "Create a style from a list of rules.\n\n@param styleRules the rules" ]
[ "Use this API to fetch filtered set of sslcipher_individualcipher_binding resources.\nset the filter parameter values in filtervalue object.", "Set the rate types.\n\n@param rateTypes the rate types, not null and not empty.\n@return this, for chaining.\n@throws IllegalArgumentException when not at least one {@link RateType} is provided.", "Locate a feature in the file by match a byte pattern.\n\n@param patterns patterns to match\n@param bufferIndex start index\n@return true if the bytes at the position match a pattern", "Creates a new Logger instance for the specified name.", "Computes the rank of a matrix using the specified tolerance.\n\n@param A Matrix whose rank is to be calculated. Not modified.\n@param threshold The numerical threshold used to determine a singular value.\n@return The matrix's rank.", "Convenience method which locates the first P3 database in a directory\nand opens it.\n\n@param directory directory containing a P3 database\n@return ProjectFile instance", "Returns the supplied string with any trailing '\\n' removed.", "Assigns retention policy with givenID to folder or enterprise.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param assignTo object representing folder or enterprise to assign policy to.\n@return info about created assignment.", "Overloads the left shift operator to provide an easy way to append multiple\nobjects as string representations to a String.\n\n@param self a String\n@param value an Object\n@return a StringBuffer built from this string\n@since 1.0" ]
public static int cudnnRestoreDropoutDescriptor( cudnnDropoutDescriptor dropoutDesc, cudnnHandle handle, float dropout, Pointer states, long stateSizeInBytes, long seed) { return checkResult(cudnnRestoreDropoutDescriptorNative(dropoutDesc, handle, dropout, states, stateSizeInBytes, seed)); }
[ "Restores the dropout descriptor to a previously saved-off state" ]
[ "Magnitude of complex number.\n\n@param z Complex number.\n@return Magnitude of complex number.", "Read an individual GanttProject resource assignment.\n\n@param gpAllocation GanttProject resource assignment.", "Create a temporary directory with the same attributes as its parent directory.\n@param dir\nthe path to directory in which to create the directory\n@param prefix\nthe prefix string to be used in generating the directory's name;\nmay be {@code null}\n@return the path to the newly created directory that did not exist before\nthis method was invoked\n@throws IOException", "Register the given callback as to be executed after request completion.\n\n@param name The name of the bean.\n@param callback The callback of the bean to be executed for destruction.", "This method recursively descends the directory structure, dumping\ndetails of any files it finds to the output file.\n\n@param pw Output PrintWriter\n@param dir DirectoryEntry to dump\n@param prefix prefix used to identify path to this object\n@param showData flag indicating if data is dumped, or just structure\n@param hex set to true if hex output is required\n@param indent indent used if displaying structure only\n@throws Exception Thrown on file read errors", "We try to convert an Object to an Array and this is not easy in Java so we need a little bit of nasty magic.\n\n@param <T> Type of elements\n@param clazz Clazz of the Objct elements\n@param obj Object\n@return Array", "Returns the ARGB components for all pixels in this image\n\n@return an array containing an array for each ARGB components in that order.", "Writes the data collected about properties to a file.", "absolute for advancedJDBCSupport\n@param row" ]
public boolean isDockerMachineInstalled(String cliPathExec) { try { commandLineExecutor.execCommand(createDockerMachineCommand(cliPathExec)); return true; } catch (Exception e) { return false; } }
[ "Checks if Docker Machine is installed by running docker-machine and inspect the result.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n\n@return true if it is installed, false otherwise." ]
[ "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Use this API to fetch sslcipher_individualcipher_binding resources of given name .", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null", "Switches from a dense to sparse matrix", "Updates the value in HashMap and writeBack as Atomic step", "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array.", "Acquire the exclusive lock, with a max wait timeout to acquire.\n@param permit - the permit Integer for this operation. May not be {@code null}.\n@param timeout - the timeout scalar quantity.\n@param unit - see {@code TimeUnit} for quantities.\n@return {@code boolean} true on successful acquire.\n@throws InterruptedException - if the acquiring thread was interrupted.\n@throws IllegalArgumentException if {@code permit} is null.", "at this point definition below is not really needed as it is the same as for 1.1, but it is here as place holder when subsystem parser evolves.", "Just collapses digits to 9 characters.\nDoes lazy copying of String.\n\n@param s String to find word shape of\n@return The same string except digits are equivalence classed to 9." ]
private void checkId(FieldDescriptorDef fieldDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } String id = fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_ID); if ((id != null) && (id.length() > 0)) { try { Integer.parseInt(id); } catch (NumberFormatException ex) { throw new ConstraintException("The id attribute of field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+" is not a valid number"); } } }
[ "Checks the id value.\n\n@param fieldDef The field descriptor\n@param checkLevel The current check level (this constraint is checked in basic and strict)\n@exception ConstraintException If the constraint has been violated" ]
[ "Sets the seed for random number generator", "Combine the iterators into a single one.\n\n@param iterators An iterator of iterators\n@return a single combined iterator", "By default all bean archives see each other.", "Use this API to unset the properties of nsacl6 resources.\nProperties that need to be unset are specified in args array.", "Determine the enum value corresponding to the track source slot found in the packet.\n\n@return the proper value", "Starts the HTTP service.\n\n@throws Exception if the service failed to started", "We have obtained a waveform preview for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform preview\n@param preview the waveform preview which we retrieved", "Use this API to add lbroute.", "used by Error template" ]
private int getColorWaveformBits(final ByteBuffer waveBytes, final int segment) { final int base = (segment * 2); final int big = Util.unsign(waveBytes.get(base)); final int small = Util.unsign(waveBytes.get(base + 1)); return big * 256 + small; }
[ "Color waveforms are represented by a series of sixteen bit integers into which color and height information are\npacked. This function returns the integer corresponding to a particular half-frame in the waveform.\n\n@param waveBytes the raw data making up the waveform\n@param segment the index of hte half-frame of interest\n\n@return the sixteen-bit number encoding the height and RGB values of that segment" ]
[ "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", "Use this API to fetch all the systemsession resources that are configured on netscaler.", "Adds the given reference to the list of references that should still be\nserialized, and returns the RDF resource that will be used as a subject.\n\n@param reference\nthe reference to be serialized\n@return RDF resource that represents this reference", "This method is called to alert project listeners to the fact that\na task has been read from a project file.\n\n@param task task instance", "Retrieves an object that has been attached to this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Used for DI frameworks to inject values into stages.", "updates the values for locking fields , BRJ\nhandles int, long, Timestamp\nrespects updateLock so locking field are only updated when updateLock is true\n@throws PersistenceBrokerException if there is an erros accessing obj field values", "Method to initialize the list.\n\n@param resList a given instance or null\n@return an instance", "Returns the raw class of the given type." ]
public Iterable<BoxItem.Info> getChildren(final String... fields) { return new Iterable<BoxItem.Info>() { @Override public Iterator<BoxItem.Info> iterator() { String queryString = new QueryStringBuilder().appendParam("fields", fields).toString(); URL url = GET_ITEMS_URL.buildWithQuery(getAPI().getBaseURL(), queryString, getID()); return new BoxItemIterator(getAPI(), url); } }; }
[ "Returns an iterable containing the items in this folder and specifies which child fields to retrieve from the\nAPI.\n\n@param fields the fields to retrieve.\n@return an iterable containing the items in this folder." ]
[ "Pretty prints the output of getMapOfContiguousPartitionRunLengths\n\n@param cluster\n@param zoneId\n@return pretty string of contiguous run lengths", "Gets a list of registered docker images from the images cache, if it has been\nregistered to the cache for a specific build-info ID and if a docker manifest has been captured for it\nby the build-info proxy.\n@param buildInfoId\n@return", "Arrange to become the tempo master. Starts a sequence of interactions with the other players that should end\nup with us in charge of the group tempo and beat alignment.\n\n@throws IllegalStateException if we are not sending status updates\n@throws IOException if there is a problem sending the master yield request", "Convert raw data into Java types.\n\n@param type data type\n@param data raw data\n@return list of Java object", "Only sets and gets that are by row and column are used.", "Add a resource assignment which has been populated elsewhere.\n\n@param assignment resource assignment", "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Collapses all parents in a range of indices in the list of parents.\n\n@param startParentPosition The index at which to to start collapsing parents\n@param parentCount The number of parents to collapse", "Load the given class using the default constructor\n\n@param className The name of the class\n@return The class object" ]
public ItemRequest<Task> dependencies(String task) { String path = String.format("/tasks/%s/dependencies", task); return new ItemRequest<Task>(this, Task.class, path, "GET"); }
[ "Returns the compact representations of all of the dependencies of a task.\n\n@param task The task to get dependencies on.\n@return Request object" ]
[ "Return the authorization URL which is used to perform the authorization_code based OAuth2 flow.\n@param clientID the client ID to use with the connection.\n@param redirectUri the URL to which Box redirects the browser when authentication completes.\n@param state the text string that you choose.\nBox sends the same string to your redirect URL when authentication is complete.\n@param scopes this optional parameter identifies the Box scopes available\nto the application once it's authenticated.\n@return the authorization URL", "Formats the supplied value using the specified DateTimeFormat.\n\n@return \"\" if the value is null", "Retrieve a value from the map, ensuring that a key exists in the map\nwith the specified name.\n\n@param name column name\n@return column value", "Read a Synchro string from an input stream.\n\n@param is input stream\n@return String instance", "Tries to load a the bundle for a given locale, also loads the backup\nlocales with the same language.\n\n@param baseName the raw bundle name, without locale qualifiers\n@param locale the locale\n@param wantBase whether a resource bundle made only from the base name\n(with no locale information attached) should be returned.\n@return the resource bundle if it was loaded, otherwise the backup", "Detects if the current device is a Nintendo game device.\n@return detection of Nintendo", "This method allows nested tasks to be added, with the WBS being\ncompleted automatically.\n\n@return new task", "Disable all overrides for a specified path with overrideType\n\n@param pathID ID of path containing overrides\n@param clientUUID UUID of client\n@param overrideType Override type identifier", "Converts the text stream data to HTML form.\n\n@param content the content to convert\n@return the HTML version of the content" ]
private void processResourceAssignment(Task task, MapRow row) { Resource resource = m_resourceMap.get(row.getUUID("RESOURCE_UUID")); task.addResourceAssignment(resource); }
[ "Extract data for a single resource assignment.\n\n@param task parent task\n@param row Synchro resource assignment" ]
[ "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Move the SQL value to the next one for version processing.", "Lock the given region. Does not report failures.", "Writes all auxiliary triples that have been buffered recently. This\nincludes OWL property restrictions but it also includes any auxiliary\ntriples required by complex values that were used in snaks.\n\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "symbol for filling padding position in output", "legacy helper for setting background", "Use this API to fetch a responderglobal_responderpolicy_binding resources.", "Print a resource type.\n\n@param value ResourceType instance\n@return resource type value", "Sets the bottom padding character for all cells in the table.\n@param paddingBottomChar new padding character, ignored if null\n@return this to allow chaining" ]
@Override public boolean add(E o) { Integer index = indexes.get(o); if (index == null && ! locked) { index = objects.size(); objects.add(o); indexes.put(o, index); return true; } return false; }
[ "Adds an object to the Index. If it was already in the Index,\nthen nothing is done. If it is not in the Index, then it is\nadded iff the Index hasn't been locked.\n\n@return true if the item was added to the index and false if the\nitem was already in the index or if the index is locked" ]
[ "Add a dependency to this node.\n\n@param node the dependency to add.", "Preloads a sound file.\n\n@param soundFile path/name of the file to be played.", "Determines if still WRITING or COMPLETE.\n\n@param itemTag mad libs style string to insert into progress message.\n@return state of stream request handler", "Make a string with the shader layout for a uniform block\nwith a given descriptor. The format of the descriptor is\nthe same as for a @{link GVRShaderData} - a string of\ntypes and names of each field.\n<p>\nThis function will return a Vulkan shader layout if the\nVulkan renderer is being used. Otherwise, it returns\nan OpenGL layout.\n@param descriptor string with types and names of each field\n@param blockName name of uniform block\n@param useUBO true to output uniform buffer layout, false for push constants\n@return string with shader declaration", "Set virtual host so the server can direct the request. Value is the host header if it is set, otherwise\nuse the hostname from the original request.\n\n@param httpMethodProxyRequest\n@param httpServletRequest", "Converts the positions to a 2D double array\n@return 2d double array [i][j], i=Time index, j=coordinate index", "Checks if a given number is in the range of a double.\n\n@param number\na number which should be in the range of a double (positive or negative)\n\n@see java.lang.Double#MIN_VALUE\n@see java.lang.Double#MAX_VALUE\n\n@return number as a double", "Extract resource group from a resource ID string.\n@param id the resource ID string\n@return the resource group name", "Creates a CSS rgb specification from a PDF color\n@param pdcolor\n@return the rgb() string" ]
public void setHtml(String html) { this.html = html; if (widget != null) { if (widget.isAttached()) { tooltipElement.find("span") .html(html != null ? html : ""); } else { widget.addAttachHandler(event -> tooltipElement.find("span") .html(html != null ? html : "")); } } else { GWT.log("Please initialize the Target widget.", new IllegalStateException()); } }
[ "Set the html as value inside the tooltip." ]
[ "Check type.\n\n@param type the type\n@return the boolean", "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", "compares two java files", "Set the values using the specified Properties object\n\n@param properties Properties object containing specific property values\nfor the Coordinator config", "Converts a submatrix into an extract matrix operation.\n@param variableTarget The variable in which the submatrix is extracted from", "Get the int resource id with specified type definition\n@param context\n@param id String resource id\n@return int resource id", "Display a Notification message\n@param event", "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output", "Check if position is in inner circle\n\n@param x x position\n@param y y position\n@return true if in inner circle, false otherwise" ]
private String formatPercentage(Number value) { return (value == null ? null : m_formats.getPercentageDecimalFormat().format(value) + "%"); }
[ "This method is called to format a percentage value.\n\n@param value numeric value\n@return percentage value" ]
[ "Remove a previously registered requirement for a capability.\n\n@param requirementRegistration the requirement. Cannot be {@code null}\n@see #registerAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)", "Gets a tokenizer from a reader.", "Returns true if conversion between the sourceType and targetType can be bypassed.\nMore precisely this method will return true if objects of sourceType can be\nconverted to the targetType by returning the source object unchanged.\n@param sourceType context about the source type to convert from (may be null if source is null)\n@param targetType context about the target type to convert to (required)\n@return true if conversion can be bypassed\n@throws IllegalArgumentException if targetType is null", "Checks whether a property can be added to a Properties.\n\n@param typeManager\n@param properties the properties object\n@param typeId the type id\n@param filter the property filter\n@param id the property id\n\n@return true if the property should be added", "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null.", "Set the value for a floating point vector of length 4.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@param w new W value\n@see #getVec4\n@see #getFloatVec(String)", "Ranks a map based on integer values\n@param inputMap Input\n@return The ranked map", "Utility method to read a percentage value.\n\n@param data data block\n@param offset offset into data block\n@return percentage value", "Get all registration points associated with this registration.\n\n@return all registration points. Will not be {@code null} but may be empty" ]
protected Boolean getEscapeQueryChars() { Boolean isEscape = parseOptionalBooleanValue(m_configObject, JSON_KEY_ESCAPE_QUERY_CHARACTERS); return (null == isEscape) && (m_baseConfig != null) ? Boolean.valueOf(m_baseConfig.getGeneralConfig().getEscapeQueryChars()) : isEscape; }
[ "Returns the flag, indicating if the characters in the query string that are commands to Solr should be escaped.\n@return the flag, indicating if the characters in the query string that are commands to Solr should be escaped." ]
[ "Sets a property on this Javascript object for which the value is a\nJavascriptEnum\n\nThe value is set to what is returned by the getEnumValue() method on the JavascriptEnum\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property.", "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", "Non-blocking call\n\n@param key\n@param value\n@return", "Read an optional JSON array.\n@param json the JSON Object that has the array as element\n@param key the key for the array in the provided JSON object\n@return the array or null if reading the array fails.", "Returns the logger name that should be used in the log manager.\n\n@param name the name of the logger from the resource\n\n@return the name of the logger", "Return the available format ids.", "Start the host controller services.\n\n@throws Exception", "Checks whether the property of the given name is allowed for the model element.\n\n@param defClass The class of the model element\n@param propertyName The name of the property\n@return <code>true</code> if the property is allowed for this type of model elements", "Visit an exported package of the current module.\n\n@param packaze the qualified name of the exported package.\n@param access the access flag of the exported package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can access to\nthe public classes of the exported package or\n<tt>null</tt>." ]
public Pair<int[][][][], int[][]> documentsToDataAndLabels(Collection<List<IN>> documents) { // first index is the number of the document // second index is position in the document also the index of the // clique/factor table // third index is the number of elements in the clique/window these features // are for (starting with last element) // fourth index is position of the feature in the array that holds them // element in data[i][j][k][m] is the index of the mth feature occurring in // position k of the jth clique of the ith document // int[][][][] data = new int[documentsSize][][][]; List<int[][][]> data = new ArrayList<int[][][]>(); // first index is the number of the document // second index is the position in the document // element in labels[i][j] is the index of the correct label (if it exists) // at position j in document i // int[][] labels = new int[documentsSize][]; List<int[]> labels = new ArrayList<int[]>(); int numDatums = 0; for (List<IN> doc : documents) { Pair<int[][][], int[]> docPair = documentToDataAndLabels(doc); data.add(docPair.first()); labels.add(docPair.second()); numDatums += doc.size(); } System.err.println("numClasses: " + classIndex.size() + ' ' + classIndex); System.err.println("numDocuments: " + data.size()); System.err.println("numDatums: " + numDatums); System.err.println("numFeatures: " + featureIndex.size()); printFeatures(); int[][][][] dataA = new int[0][][][]; int[][] labelsA = new int[0][]; return new Pair<int[][][][], int[][]>(data.toArray(dataA), labels.toArray(labelsA)); }
[ "Convert an ObjectBank to arrays of data features and labels.\n\n@return A Pair, where the first element is an int[][][][] representing the\ndata and the second element is an int[][] representing the labels." ]
[ "Creates a new access control entry and stores it for later write out.\n\n@param res the resource\n@param id the id of the principal\n@param allowed the allowed permissions\n@param denied the denied permissions\n@param flags the flags\n\n@return the created ACE", "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", "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken", "Update rows in the database.", "Checks that the targetClass is widening the argument class\n\n@param argumentClass\n@param targetClass\n@return", "Creates a new form session to edit the file with the given name using the given form configuration.\n\n@param configPath the site path of the form configuration\n@param fileName the name (not path) of the XML content to edit\n@return the id of the newly created form session\n\n@throws CmsUgcException if something goes wrong", "Print rate.\n\n@param rate Rate instance\n@return rate value", "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.", "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)" ]
public Response updateTemplate(String id, Map<String, Object> options) throws RequestException, LocalOperationException { Request request = new Request(this); return new Response(request.put("/templates/" + id, options)); }
[ "Updates the template with the specified id.\n\n@param id id of the template to update\n@param options a Map of options to update/add.\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." ]
[ "Use this API to unset the properties of Interface resource.\nProperties that need to be unset are specified in args array.", "Sets the right padding character for all cells in the table.\n@param paddingRightChar new padding character, ignored if null\n@return this to allow chaining", "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X.", "FOR internal use. This method was called after the external transaction was completed.\n\n@see javax.transaction.Synchronization", "Print formatted string in the center of 80 chars line, left and right padded.\n\n@param format\nThe string format pattern\n@param args\nThe string format arguments", "Returns the list of nodes which match the expression xpathExpr in the Document dom.\n\n@param dom the Document to search in\n@param xpathExpr the xpath query\n@return the list of nodes which match the query\n@throws XPathExpressionException On error.", "Utility function that fetches node ids.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return Node ids in cluster", "Lookup the data-type associated with the class.\n\n@return The associated data-type interface or null if none found.", "Checks a returned Javascript value where we expect a boolean but could\nget null.\n\n@param val The value from Javascript to be checked.\n@param def The default return value, which can be null.\n@return The actual value, or if null, returns false." ]
public ItemRequest<Attachment> findById(String attachment) { String path = String.format("/attachments/%s", attachment); return new ItemRequest<Attachment>(this, Attachment.class, path, "GET"); }
[ "Returns the full record for a single attachment.\n\n@param attachment Globally unique identifier for the attachment.\n@return Request object" ]
[ "Use this API to update protocolhttpband.", "Use this API to add authenticationradiusaction resources.", "Shutdown the server\n\n@throws Exception exception", "Creates a curator built using the given zookeeper connection string and timeout", "Use this API to fetch all the cmppolicylabel resources that are configured on netscaler.", "Send JSON representation of given data object to all connections tagged with all give tag labels\n@param data the data object\n@param labels the tag labels", "Clears all scopes. Useful for testing and not getting any leak...", "Obtain the master partition for a given key\n\n@param key\n@return master partition id", "Loaders call this method to register themselves. This method can be called by\nloaders provided by the application.\n\n@param textureClass\nThe class the loader is responsible for loading.\n\n@param asyncLoaderFactory\nThe factory object." ]
@JmxGetter(name = "getChunkIdToNumChunks", description = "Returns a string representation of the map of chunk id to number of chunks") public String getChunkIdToNumChunks() { StringBuilder builder = new StringBuilder(); for(Entry<Object, Integer> entry: fileSet.getChunkIdToNumChunks().entrySet()) { builder.append(entry.getKey().toString() + " - " + entry.getValue().toString() + ", "); } return builder.toString(); }
[ "Returns a string representation of map of chunk id to number of chunks\n\n@return String of map of chunk id to number of chunks" ]
[ "Set the values of all the knots.\nThis version does not require the \"extra\" knots at -1 and 256\n@param x the knot positions\n@param rgb the knot colors\n@param types the knot types", "Scale the mesh at x, y and z axis.\n\n@param mesh Mesh to be scaled.\n@param x Scale to be applied on x-axis.\n@param y Scale to be applied on y-axis.\n@param z Scale to be applied on z-axis.", "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "This is a convenience method used to add a calendar called\n\"Standard\" to the project, and populate it with a default working week\nand default working hours.\n\n@return a new default calendar", "Helper method that searches an object array for the occurence of a\nspecific object based on reference equality\n@param searchFor the object to search for\n@param searchIn the array to search in\n@return true if the object is found, otherwise false", "Retrieves the default calendar for this project based on the calendar name\ngiven in the project properties. If a calendar of this name cannot be found, then\nthe first calendar listed for the project will be returned. If the\nproject contains no calendars, then a default calendar is added.\n\n@return default projectCalendar instance", "This method is provided to allow an absolute period of time\nrepresented by start and end dates into a duration in working\ndays based on this calendar instance. This method takes account\nof any exceptions defined for this calendar.\n\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object", "Acquires a read lock on a specific key.\n@param key The key to lock\n@param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait.", "Reorder the objects in the table to resolve referential integrity dependencies." ]
static String makeLayout(String descriptor, String blockName, boolean useUBO) { return NativeShaderManager.makeLayout(descriptor, blockName, useUBO); }
[ "Make a string with the shader layout for a uniform block\nwith a given descriptor. The format of the descriptor is\nthe same as for a @{link GVRShaderData} - a string of\ntypes and names of each field.\n<p>\nThis function will return a Vulkan shader layout if the\nVulkan renderer is being used. Otherwise, it returns\nan OpenGL layout.\n@param descriptor string with types and names of each field\n@param blockName name of uniform block\n@param useUBO true to output uniform buffer layout, false for push constants\n@return string with shader declaration" ]
[ "Creates the tables according to the schema files.\n\n@throws PlatformException If some error occurred", "Read the name of a table and prepare to populate it with column data.\n\n@param startIndex start of the block\n@param blockLength length of the block", "Notifies all registered BufferChangeLogger instances of a change.\n\n@param newData the buffer that contains the new data being added\n@param numChars the number of valid characters in the buffer", "Runs a method call with retries.\n@param pjp a {@link ProceedingJoinPoint} representing an annotated\nmethod call.\n@param retryableAnnotation the {@link org.fishwife.jrugged.aspects.Retryable}\nannotation that wrapped the method.\n@throws Throwable if the method invocation itself throws one during execution.\n@return The return value from the method call.", "Add a IN clause so the column must be equal-to one of the objects passed in.", "Extract calendar data from the file.\n\n@throws SQLException", "Update the current position with specified length.\nThe input will append to the current position of the iterator.\n\n@param length update length", "Build a Count-Query based on aQuery\n@param aQuery\n@return The count query", "This should be called from a subclass constructor, if offset or length\nare unknown at a time when SubIIMInputStream constructor is called. This\nmethod shouldn't be called more than once.\n\n@param offset\nbyte offset\n@param length\nbyte length\n@throws IOException\nif underlying stream can't be read" ]
public static appfwpolicy_stats get(nitro_service service, String name) throws Exception{ appfwpolicy_stats obj = new appfwpolicy_stats(); obj.set_name(name); appfwpolicy_stats response = (appfwpolicy_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of appfwpolicy_stats resource of given name ." ]
[ "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", "Gets the task from in progress map.\n\n@param jobId\nthe job id\n@return the task from in progress map", "Returns the response error stream, handling the case when it contains gzipped data.\n@return gzip decoded (if needed) error stream or null", "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "create a new instance of class clazz.\nfirst use the public default constructor.\nIf this fails also try to use protected an private constructors.\n@param clazz the class to instantiate\n@return the fresh instance of class clazz\n@throws InstantiationException", "Helper method that stores in a hash map how often a certain key occurs.\nIf the key has not been encountered yet, a new entry is created for it in\nthe map. Otherwise the existing value for the key is incremented.\n\n@param map\nthe map where the counts are stored\n@param key\nthe key to be counted\n@param count\nvalue by which the count should be incremented; 1 is the usual\ncase", "get current total used capacity.\n\n@return the total used capacity", "Read an element which contains only a single boolean attribute.\n@param reader the reader\n@param attributeName the attribute name, usually \"value\"\n@return the boolean value\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.", "Typically this is transparently handled by using the Protostream codecs but be aware of it when bypassing Protostream." ]
public static byte[] storeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws IOException, OperationFailedException { if (!operation.hasDefined(CONTENT)) { throw createFailureException(DomainControllerLogger.ROOT_LOGGER.invalidContentDeclaration()); } final ModelNode content = operation.get(CONTENT).get(0); if (content.hasDefined(HASH)) { // This should be handled as part of the OSH throw createFailureException(DomainControllerLogger.ROOT_LOGGER.invalidContentDeclaration()); } final byte[] hash = storeDeploymentContent(context, operation, contentRepository); // Clear the contents and update with the hash final ModelNode slave = operation.clone(); slave.get(CONTENT).setEmptyList().add().get(HASH).set(hash); // Add the domain op transformer List<DomainOperationTransmuter> transformers = context.getAttachment(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS); if (transformers == null) { context.attach(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS, transformers = new ArrayList<>()); } transformers.add(new CompositeOperationAwareTransmuter(slave)); return hash; }
[ "Store the deployment contents and attach a \"transformed\" slave operation to the operation context.\n\n@param context the operation context\n@param operation the original operation\n@param contentRepository the content repository\n@return the hash of the uploaded deployment content\n@throws IOException\n@throws OperationFailedException" ]
[ "Returns the key value in the given array.\n\n@param keyIndex the index of the scale key", "When set to true, all items in layout will be considered having the size of the largest child. If false, all items are\nmeasured normally. Disabled by default.\n@param enable true to measure children using the size of the largest child, false - otherwise.", "Generates and writes the sql for inserting the currently contained data objects.\n\n@param model The database model\n@param platform The platform\n@param writer The output stream", "Create a clone of this volatility surface using a generic calibration\nof its parameters to given market data.\n\n@param calibrationModel The model used during calibration (contains additional objects required during valuation, e.g. curves).\n@param calibrationProducts The calibration products.\n@param calibrationTargetValues The target values of the calibration products.\n@param calibrationParameters A map containing additional settings like \"evaluationTime\" (Double).\n@param parameterTransformation An optional parameter transformation.\n@param optimizerFactory The factory providing the optimizer to be used during calibration.\n@return An object having the same type as this one, using (hopefully) calibrated parameters.\n@throws SolverException Exception thrown when solver fails.", "Use this API to fetch statistics of servicegroup_stats resource of given name .", "Returns a handle to the pool. Useful to obtain a handle to the\nstatistics for example.\n@return pool", "Transforms a list of Integer objects to an array of primitive int values.\n\n@param integers\n@return", "Check if the path to the property correspond to an association.\n\n@param targetTypeName the name of the entity containing the property\n@param pathWithoutAlias the path to the property WITHOUT aliases\n@return {@code true} if the property is an association or {@code false} otherwise", "Return the project name or the default project name." ]
protected Date parseNonNullDate(String str, ParsePosition pos) { Date result = null; for (int index = 0; index < m_formats.length; index++) { result = m_formats[index].parse(str, pos); if (pos.getIndex() != 0) { break; } result = null; } return result; }
[ "We have a non-null date, try each format in turn to see if it can be parsed.\n\n@param str date to parse\n@param pos position at which to start parsing\n@return Date instance" ]
[ "Creates or returns the instance of the helper class.\n\n@param inputSpecification the input specification.\n@param formFillMode if random data should be used on the input fields.\n@return The singleton instance.", "This method extracts task data from an MSPDI file.\n\n@param project Root node of the MSPDI file", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "add a join between two aliases\n\nTODO BRJ : This needs refactoring, it looks kind of weird\n\nno extents\nA1 -> A2\n\nextents on the right\nA1 -> A2\nA1 -> A2E0\n\nextents on the left : copy alias on right, extents point to copies\nA1 -> A2\nA1E0 -> A2C0\n\nextents on the left and right\nA1 -> A2\nA1 -> A2E0\nA1E0 -> A2C0\nA1E0 -> A2E0C0\n\n@param left\n@param leftKeys\n@param right\n@param rightKeys\n@param outer\n@param name", "Takes a list of Strings and combines them into a single comma-separated\nString.\n@param strings The Strings to combine.\n@return The combined, comma-separated, String.", "Processes a row of the sites table and stores the site information found\ntherein.\n\n@param siteRow\nstring serialisation of a sites table row as found in the SQL\ndump", "Get FieldDescriptor from joined superclass.", "generates a Meta Object Protocol method, that is used to call a non public\nmethod, or to make a call to super.\n\n@param mopCalls list of methods a mop call method should be generated for\n@param useThis true if \"this\" should be used for the naming", "Attempts to return the token from cache. If this is not possible because it is expired or was\nnever assigned, a new token is requested and parallel requests will block on retrieving a new\ntoken. As such no guarantee of maximum latency is provided.\n\nTo avoid blocking the token is refreshed before it's expiration, while parallel requests\ncontinue to use the old token." ]