query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public void calculateSize(PdfContext context) { float width = 0; float height = 0; for (PrintComponent<?> child : children) { child.calculateSize(context); float cw = child.getBounds().getWidth() + 2 * child.getConstraint().getMarginX(); float ch = child.getBounds().getHeight() + 2 * child.getConstraint().getMarginY(); switch (getConstraint().getFlowDirection()) { case LayoutConstraint.FLOW_NONE: width = Math.max(width, cw); height = Math.max(height, ch); break; case LayoutConstraint.FLOW_X: width += cw; height = Math.max(height, ch); break; case LayoutConstraint.FLOW_Y: width = Math.max(width, cw); height += ch; break; default: throw new IllegalStateException("Unknown flow direction " + getConstraint().getFlowDirection()); } } if (getConstraint().getWidth() != 0) { width = getConstraint().getWidth(); } if (getConstraint().getHeight() != 0) { height = getConstraint().getHeight(); } setBounds(new Rectangle(0, 0, width, height)); }
[ "Calculates the size based constraint width and height if present, otherwise from children sizes." ]
[ "Determine whether the given property matches this element.\nA property matches this element when property name and this key are equal,\nvalues are equal or this element value is a wildcard.\n@param property the property to check\n@return {@code true} if the property matches", "Restores a trashed file back to its original location.\n@param fileID the ID of the trashed file.\n@return info about the restored file.", "This method is designed to be called from the diverse subclasses", "Internal used method which start the real store work.", "used for encoding url path segment", "Returns iterable with all assignments of this retention policy.\n@param limit the limit of entries per response. The default value is 100.\n@param fields the fields to retrieve.\n@return an iterable containing all assignments.", "The full path of a jrxml file, or the path in the classpath of a jrxml\nresource.\n\n@param path\n@return", "Delivers the correct JSON Object for the Stencilset Extensions\n\n@param extensions", "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration" ]
@Override public Response toResponse(ErrorDto e) { // String type = headers.getContentType() == null ? MediaType.APPLICATION_JSON : headers.getContentType(); return Response.status(e.httpStatus).entity(e).type(MediaType.APPLICATION_JSON).build(); }
[ "private HttpServletResponse headers;" ]
[ "Sets the top padding for all cells in the row.\n@param paddingTop new padding, ignored if smaller than 0\n@return this to allow chaining", "Pretty prints a task list of rebalancing tasks.\n\n@param infos list of rebalancing tasks (RebalancePartitionsInfo)\n@return pretty-printed string", "Record operation for sync ops time\n\n@param dest Destination of the socket to connect to. Will actually record\nif null. Otherwise will call this on self and corresponding child\nwith this param null.\n@param opTimeUs The number of us for the op to finish", "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails", "Use this API to delete locationfile.", "Removes all children", "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", "Displays a sample model for the report request.\n@return A string describing the structure of a certain report execution", "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 void clear() { for (Bean bean : beans.values()) { if (null != bean.destructionCallback) { bean.destructionCallback.run(); } } beans.clear(); }
[ "Clear all beans and call the destruction callback." ]
[ "Use this API to add authenticationradiusaction resources.", "Load the given class using a specific class loader.\n\n@param className The name of the class\n@param cl The Class Loader to be used for finding the class.\n@return The class object", "Use this API to fetch bridgegroup_vlan_binding resources of given name .", "Clears all scopes. Useful for testing and not getting any leak...", "Use this API to fetch vlan resource of given name .", "Creates a real valued diagonal matrix of the specified type", "Writes the details of a recurring exception.\n\n@param mpxjException source MPXJ calendar exception\n@param xmlException target MSPDI exception", "Sets the day of the month that matches the condition, i.e., the day of month of the 2nd Saturday.\nIf the day does not exist in the current month, the last possible date is set, i.e.,\ninstead of the fifth Saturday, the fourth is chosen.\n\n@param date date that has the correct year and month already set.\n@param week the number of the week to choose.", "note that for read from file, this will just load all to memory. not fit\nif need to read a very large file. However for getting the host name.\nnormally it is fine.\n\nfor reading large file, should use iostream.\n\n@param sourcePath\nthe source path\n@param sourceType\nthe source type\n@return the content from path\n@throws IOException\nSignals that an I/O exception has occurred." ]
synchronized void removeUserProfile(String id) { if (id == null) return; final String tableName = Table.USER_PROFILES.getName(); try { final SQLiteDatabase db = dbHelper.getWritableDatabase(); db.delete(tableName, "_id = ?", new String[]{id}); } catch (final SQLiteException e) { getConfigLogger().verbose("Error removing user profile from " + tableName + " Recreating DB"); dbHelper.deleteDatabase(); } finally { dbHelper.close(); } }
[ "remove the user profile with id from the db." ]
[ "Copy new data to an existing float-point texture.\n\nCreating a new {@link GVRFloatImage} is pretty cheap, but it's still\nnot a totally trivial operation: it does involve some memory management\nand some GL hardware handshaking. Reusing the texture reduces this\noverhead (primarily by delaying garbage collection). Do be aware that\nupdating a texture will affect any and all {@linkplain GVRMaterial\nmaterials} (and/or post effects that use the texture!\n\n@param width\nTexture width, in pixels\n@param height\nTexture height, in pixels\n@param data\nA linear array of float pairs.\n@return {@code true} if the updateGPU succeeded, and {@code false} if it\nfailed. Updating a texture requires that the new data parameter\nhas the exact same {@code width} and {@code height} and pixel\nformat as the original data.\n@throws IllegalArgumentException\nIf {@code width} or {@code height} is {@literal <= 0,} or if\n{@code data} is {@code null}, or if\n{@code data.length < height * width * 2}", "Imports a file via assimp without post processing.\n\n@param filename the file to import\n@return the loaded scene\n@throws IOException if an error occurs", "Add a \"post-run\" dependent for this model.\n\n@param dependent the \"post-run\" dependent.\n@return key to be used as parameter to taskResult(string) method to retrieve result of root\ntask in the given dependent task group", "A connection to the database. Should be short-lived. No transaction active by default.\n\n@return a new open connection.", "Converts the given CharSequence into a List of Strings of one character.\n\n@param self a CharSequence\n@return a List of characters (a 1-character String)\n@see #toSet(String)\n@since 1.8.2", "Clear the connection that was previously saved.\n\n@return True if the connection argument had been saved.", "Performs spellchecking using Solr and returns the spellchecking results using JSON.\n\n@param res The HttpServletResponse object.\n@param servletRequest The ServletRequest object.\n@param cms The CmsObject object.\n\n@throws CmsPermissionViolationException in case of the anonymous guest user\n@throws IOException if writing the response fails", "Triggers expansion of the parent.", "Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data" ]
public void run(Configuration configuration, List<CandidateSteps> candidateSteps, Story story, MetaFilter filter) throws Throwable { run(configuration, candidateSteps, story, filter, null); }
[ "Runs a Story with the given configuration and steps, applying the given\nmeta filter.\n\n@param configuration the Configuration used to run story\n@param candidateSteps the List of CandidateSteps containing the candidate\nsteps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown." ]
[ "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth", "Returns a human-readable string representation of a reference to a\nprecision that is used for a time value.\n\n@param precision\nthe numeric precision\n@return a string representation of the precision", "returns true if the primary key fields are valid for delete, else false.\nPK fields are valid if each of them contains a valid non-null value\n@param cld the ClassDescriptor\n@param obj the object\n@return boolean", "Dumps the partition IDs per node in terms of zone n-ary type.\n\n@param cluster\n@param storeRoutingPlan\n@return pretty printed string of detailed zone n-ary type.", "This method only overrides properties that are specific from Cube like await strategy or before stop events.\n\n@param overrideDockerCompositions\nthat contains information to override.", "Fetch flag resource by Country\n\n@param country Country\n@return int of resource | 0 value if not exists", "2-D Forward Discrete Cosine Transform.\n\n@param data Data.", "Stops the compressor.", "Retrieve a timestamp field.\n\n@param dateName field containing the date component\n@param timeName field containing the time component\n@return Date instance" ]
public View getFullScreenView() { if (mFullScreenView != null) { return mFullScreenView; } final DisplayMetrics metrics = new DisplayMetrics(); mActivity.getWindowManager().getDefaultDisplay().getMetrics(metrics); final int screenWidthPixels = Math.max(metrics.widthPixels, metrics.heightPixels); final int screenHeightPixels = Math.min(metrics.widthPixels, metrics.heightPixels); final ViewGroup.LayoutParams layout = new ViewGroup.LayoutParams(screenWidthPixels, screenHeightPixels); mFullScreenView = new View(mActivity); mFullScreenView.setLayoutParams(layout); mRenderableViewGroup.addView(mFullScreenView); return mFullScreenView; }
[ "Invalidating just the GVRView associated with the GVRViewSceneObject\nincorrectly set the clip rectangle to just that view. To fix this,\nwe have to create a full screen android View and invalidate this\nto restore the clip rectangle.\n@return full screen View object" ]
[ "Gets the addresses of the child resources under the given resource.\n\n@param context the operation context\n@param registry registry entry representing the resource\n@param resource the current resource\n@param validChildType a single child type to which the results should be limited. If {@code null} the result\nshould include all child types\n@return map where the keys are the child types and the values are a set of child names associated with a type", "Set the default size of the texture buffers. You can call this to reduce the buffer size\nof views with anti-aliasing issue.\n\nThe max value to the buffer size should be the Math.max(width, height) of attached view.\n\n@param size buffer size. Value > 0 and <= Math.max(width, height).", "Set child components.\n\n@param children\nchildren", "Returns a new instance of the given class, using the constructor with the specified parameter types.\n\n@param target The class to instantiate\n@param types The parameter types\n@param args The arguments\n@return The instance", "Get a list of comments made for a particular entity\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@return list of comments", "Send a request that expects a single message as its response, then read and return that response.\n\n@param requestType identifies what kind of request to send\n@param responseType identifies the type of response we expect, or {@code null} if we’ll accept anything\n@param arguments The argument fields to send in the request\n\n@return the response from the player\n\n@throws IOException if there is a communication problem, or if the response does not have the same transaction\nID as the request.", "Sets the current configuration if it is a valid configuration. Otherwise the configuration is not set.\n@param configuration the configuration to set.\n@return flag, indicating if the configuration is set.", "Writes the object to the specified document, optionally creating a child\nelement. The object in this case should be a point.\n\n@param o the object (of type Point).\n@param document the document to write to.\n@param asChild create child element if true.\n@throws RenderException", "refresh all deliveries dependencies for a particular product" ]
private boolean fireEventWait(WebElement webElement, Eventable eventable) throws ElementNotVisibleException, InterruptedException { switch (eventable.getEventType()) { case click: try { webElement.click(); } catch (ElementNotVisibleException e) { throw e; } catch (WebDriverException e) { throwIfConnectionException(e); return false; } break; case hover: LOGGER.info("EventType hover called but this isn't implemented yet"); break; default: LOGGER.info("EventType {} not supported in WebDriver.", eventable.getEventType()); return false; } Thread.sleep(this.crawlWaitEvent); return true; }
[ "Fires the event and waits for a specified time.\n\n@param webElement the element to fire event on.\n@param eventable The HTML event type (onclick, onmouseover, ...).\n@return true if firing event is successful.\n@throws InterruptedException when interrupted during the wait." ]
[ "Sets the protocol.\n@param protocol The protocol to be set.", "Registers all custom Externalizer implementations that Hibernate OGM needs into a running\nInfinispan CacheManager configuration.\nThis is only safe to do when Caches from this CacheManager haven't been started yet,\nor the ones already started do not contain any data needing these.\n\n@see ExternalizerIds\n@param globalCfg the Serialization section of a GlobalConfiguration builder", "This method retrieves the offset of a given entry in the Var2Data block.\nEach entry can be uniquely located by the identifier of the object to\nwhich the data belongs, and the type of the data.\n\n@param id unique identifier of an entity\n@param type data type identifier\n@return offset of requested item", "Adds steps types from given injector and recursively its parent\n\n@param injector the current Inject\n@param types the List of steps types", "This method merges together assignment data for the same cost.\n\n@param list assignment data", "Convenience method for setting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field to set.\n@param value\nValue to which to set the field.", "Sets the hostname and port to connect to.\n\n@param hostname the host name\n@param port the port\n\n@return the builder", "Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler.", "Print duration in thousandths of minutes.\n\n@param duration Duration instance\n@return duration in thousandths of minutes" ]
public String getXmlFormatted(Map<String, String> dataMap) { StringBuilder sb = new StringBuilder(); for (String var : outTemplate) { sb.append(appendXmlStartTag(var)); sb.append(dataMap.get(var)); sb.append(appendXmlEndingTag(var)); } return sb.toString(); }
[ "Given an array of variable names, returns an Xml String\nof values.\n\n@param dataMap an map containing variable names and their corresponding values\nnames.\n@param dataMap\n@return values in Xml format" ]
[ "Add a Opacity bar to the color wheel.\n\n@param bar The instance of the Opacity bar.", "Return a collection of Photo objects not in part of any sets.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\nThe per page\n@param page\nThe page\n@return The collection of Photo objects\n@throws FlickrException", "Initializes the persistence strategy to be used when accessing the datastore. In particular, all the required\ncaches will be configured and initialized.\n\n@param cacheMappingType the {@link org.hibernate.ogm.datastore.keyvalue.options.CacheMappingType} to be used\n@param entityTypes meta-data of all the entity types registered with the current session factory\n@param associationTypes meta-data of all the association types registered with the current session factory\n@param idSourceTypes meta-data of all the id source types registered with the current session factory\n@param namespaces from the database currently in use", "Handle a \"current till end\" change event.\n@param event the change event.", "Join a group as a public member.\n\nNote: if a group has rules - the client must display the rules to the user and the user must accept them prior to joining the group. The acceptRules\nparameter indicates that the user has accepted those rules.\n\n@param groupId\n- the id of the group to join\n@param acceptRules\n- if a group has rules, true indicates the user has accepted the rules\n\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.join.html\">flickr.groups.join</a>", "Set the payload to the fileModel of the given instance even though the variable is not directly of it's type. This is mainly to simplify the\ncreation of the rule, when the FileModel itself is not being iterated but just a model referencing it.", "Returns the connection count by key specified in this registry\n\nNote it might count connections that are closed but not removed from registry yet\n\n@param key\nthe key\n@return connection count by key", "Access an attribute.\n\n@param type the attribute's type, not {@code null}\n@param key the attribute's key, not {@code null}\n@return the attribute value, or {@code null}.", "Sets the specified double attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
public void processStencilSet() throws IOException { StringBuilder stencilSetFileContents = new StringBuilder(); Scanner scanner = null; try { scanner = new Scanner(new File(ssInFile), "UTF-8"); String currentLine = ""; String prevLine = ""; while (scanner.hasNextLine()) { prevLine = currentLine; currentLine = scanner.nextLine(); String trimmedPrevLine = prevLine.trim(); String trimmedCurrentLine = currentLine.trim(); // First time processing - replace view="<file>.svg" with _view_file="<file>.svg" + view="<svg_xml>" if (trimmedCurrentLine.matches(VIEW_PROPERTY_NAME_PATTERN) && trimmedCurrentLine.endsWith(VIEW_PROPERTY_VALUE_SUFFIX)) { String newLines = processViewPropertySvgReference(currentLine); stencilSetFileContents.append(newLines); } // Second time processing - replace view="<svg_xml>" with refreshed contents of file referenced by previous line else if (trimmedPrevLine.matches(VIEW_FILE_PROPERTY_NAME_PATTERN) && trimmedPrevLine.endsWith(VIEW_PROPERTY_VALUE_SUFFIX) && trimmedCurrentLine.matches(VIEW_PROPERTY_NAME_PATTERN)) { String newLines = processViewFilePropertySvgReference(prevLine, currentLine); stencilSetFileContents.append(newLines); } else { stencilSetFileContents.append(currentLine + LINE_SEPARATOR); } } } finally { if (scanner != null) { scanner.close(); } } Writer out = null; try { out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(ssOutFile), "UTF-8")); out.write(stencilSetFileContents.toString()); } catch (FileNotFoundException e) { } catch (UnsupportedEncodingException e) { } catch (IOException e) { } finally { if (out != null) { try { out.close(); } catch (IOException e) { } } } System.out.println("SVG files referenced more than once:"); for (Map.Entry<String, Integer> stringIntegerEntry : mapSVGCounts.entrySet()) { if (stringIntegerEntry.getValue() > 1) { System.out.println("\t" + stringIntegerEntry.getKey() + "\t = " + stringIntegerEntry.getValue()); } } }
[ "Processes a stencilset template file\n@throws IOException" ]
[ "converts a java.net.URI to a decoded string", "Retrieve the index of the table entry valid for the supplied date.\n\n@param date required date\n@return cost rate table entry index", "Delivers the correct JSON Object for the Stencilset\n\n@param stencilSet\n@throws org.json.JSONException", "Returns all found resolvers\n@return", "disables the responses for a given pathname and user id\n\n@param model\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "creates option map for remoting connections\n@param resolver\n@param model\n@param defaults\n@return\n@throws OperationFailedException\n@deprecated configuring xnio worker options is no longer supported and should be replaced for referencing IO subsystem", "Read a single calendar exception.\n\n@param bc parent calendar\n@param exception exception data", "Creates a new ServerDetails object for resolver, this will take URL and name from the deployer ServerDetails as a default behaviour", "Retrieves the configured message by property key\n@param key The key in the file\n@return The associated value in case the key is found in the message bundle file. If\nno such key is defined, the returned value would be the key itself." ]
public boolean process(DMatrixRMaj A , int numSingularValues, DMatrixRMaj nullspace ) { decomposition.decompose(A); if( A.numRows > A.numCols ) { Q.reshape(A.numCols,Math.min(A.numRows,A.numCols)); decomposition.getQ(Q, true); } else { Q.reshape(A.numCols, A.numCols); decomposition.getQ(Q, false); } nullspace.reshape(Q.numRows,numSingularValues); CommonOps_DDRM.extract(Q,0,Q.numRows,Q.numCols-numSingularValues,Q.numCols,nullspace,0,0); return true; }
[ "Finds the null space of A\n@param A (Input) Matrix. Modified\n@param numSingularValues Number of singular values\n@param nullspace Storage for null-space\n@return true if successful or false if it failed" ]
[ "This is the main entry point used to convert the internal representation\nof timephased baseline cost into an external form which can\nbe displayed to the user.\n\n@param file parent project file\n@param cost timephased resource assignment data\n@param rangeUnits timescale units\n@param dateList timescale date ranges\n@return list of durations, one per timescale date range", "Tries to load a site specific error page. If\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param errorCode the error code to display\n@return a flag, indicating if the custom error page could be loaded.", "Fetch the given image from the web.\n\n@param request The request\n@param transformer The transformer\n@return The image", "Helper. Current transaction is committed in some cases.", "Adds the specified serie column to the dataset with custom label expression.\n\n@param column the serie column\n@param labelExpression column the custom label expression", "Want to make arbitrary probability queries? Then this is the method for\nyou. Given the filename, it reads it in and breaks it into documents, and\nthen makes a CRFCliqueTree for each document. you can then ask the clique\ntree for marginals and conditional probabilities of almost anything you\nwant.", "this remove the linebreak.\n\n@param input\nthe input\n@param patternStr\nthe pattern str\n@return the string", "Return all valid maturities for a given moneyness.\nUses the fixing times of the fix schedule to determine fractions.\n\n@param moneyness The moneyness as actual offset from par swap rate for which to get the maturities.\n@return The maturities as year fraction from reference date.", "Normalizes the matrix such that the Frobenius norm is equal to one.\n\n@param A The matrix that is to be normalized." ]
protected String adaptFilePath(String filePath) { // Convert windows file path to target FS String targetPath = filePath.replaceAll("\\\\", volumeType.getSeparator()); return targetPath; }
[ "Adapt a file path to the current file system.\n@param filePath The input file path string.\n@return File path compatible with the file system of this {@link GVRResourceVolume}." ]
[ "a small helper to set the text color to a textView null save\n\n@param textView\n@param colorDefault", "Use this API to fetch all the ntpserver resources that are configured on netscaler.", "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish", "Return the knot at a given position.\n@param x the position\n@return the knot number, or 1 if no knot found", "Use this API to delete gslbservice of given name.", "Use this API to create ssldhparam.", "Read leaf tasks attached to the WBS.\n\n@param id initial WBS ID", "Creates an attachment from a given array of bytes.\nThe bytes will be Base64 encoded.\n@throws java.lang.IllegalArgumentException if mediaType is not binary", "Retrieve the var data key for a specific field.\n\n@param type field type\n@return var data key" ]
public void loadObject(Object object, Set<String> excludedMethods) { m_model.setTableModel(createTableModel(object, excludedMethods)); }
[ "Populate the model with the object's properties.\n\n@param object object whose properties we're displaying\n@param excludedMethods method names to exclude" ]
[ "Resumes a given entry point type;\n\n@param entryPoint The entry point", "Checks String to see if the parameter is null.\n@param paramValue Object that will be checked if null.\n@return this.true if the parameter that is being checked is not null", "Create a new thread\n\n@param name The name of the thread\n@param runnable The work for the thread to do\n@param daemon Should the thread block JVM shutdown?\n@return The unstarted thread", "Uploads a new file to this folder with custom upload parameters.\n\n@param uploadParams the custom upload parameters.\n@return the uploaded file's info.", "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", "Calculates the delta of a digital option under a Black-Scholes model\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank account numerarie.\n@param volatility The Black-Scholes volatility.\n@param optionMaturity The option maturity T.\n@param optionStrike The option strike.\n@return The delta of the digital option", "Scans a single class for Swagger annotations - does not invoke ReaderListeners", "Returns the size of the shadow element", "Use this API to fetch the statistics of all aaa_stats resources that are configured on netscaler." ]
public DynamicReport build() { if (built) { throw new DJBuilderException("DynamicReport already built. Cannot use more than once."); } else { built = true; } report.setOptions(options); if (!globalVariablesGroup.getFooterVariables().isEmpty() || !globalVariablesGroup.getHeaderVariables().isEmpty() || !globalVariablesGroup.getVariables().isEmpty() || hasPercentageColumn()) { report.getColumnsGroups().add(0, globalVariablesGroup); } createChartGroups(); addGlobalCrosstabs(); addSubreportsToGroups(); concatenateReports(); report.setAutoTexts(autoTexts); return report; }
[ "Builds the DynamicReport object. Cannot be used twice since this produced\nundesired results on the generated DynamicReport object\n\n@return" ]
[ "Selects a specific vertex and fragment shader to use for rendering.\n\nIf a shader template has been specified, it is used to generate\na vertex and fragment shader based on mesh attributes, bound textures\nand light sources. If the textures bound to the material are changed\nor a new light source is added, this function must be called again\nto select the appropriate shaders. This function may cause recompilation\nof shaders which is quite slow.\n\n@param scene scene being rendered\n@see GVRShaderTemplate GVRMaterialShader.getShaderType", "Adds a logical operator block.\n\n@param list parent criteria list\n@param block current block\n@param operator logical operator represented by this block", "Returns a new macro resolver that loads message keys from the workplace bundle in the user setting's language.\n@param cms the CmsObject.\n@return a new macro resolver with messages from the workplace bundle in the current users locale.", "Post an artifact to the Grapes server\n\n@param artifact The artifact to post\n@param user The user posting the information\n@param password The user password\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Determines if the queue identified by the given key is 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 identifies a delayed queue, false otherwise", "This method returns the mapped certificate for a hostname, or generates a \"standard\"\nSSL server certificate issued by the CA to the supplied subject if no mapping has been\ncreated. This is not a true duplication, just a shortcut method\nthat is adequate for web browsers.\n\n@param hostname\n@return\n@throws CertificateParsingException\n@throws InvalidKeyException\n@throws CertificateExpiredException\n@throws CertificateNotYetValidException\n@throws SignatureException\n@throws CertificateException\n@throws NoSuchAlgorithmException\n@throws NoSuchProviderException\n@throws KeyStoreException\n@throws UnrecoverableKeyException", "Returns the name under which this dump file. This is the name used online\nand also locally when downloading the file.\n\n@param dumpContentType\nthe type of the dump\n@param projectName\nthe project name, e.g. \"wikidatawiki\"\n@param dateStamp\nthe date of the dump in format YYYYMMDD\n@return file name string", "Use this API to add nsacl6.", "Create an IPv6 mixed address using the given ipv6 segments and using this address for the embedded IPv4 segments\n\n@param segs\n@return" ]
public ItemRequest<Tag> update(String tag) { String path = String.format("/tags/%s", tag); return new ItemRequest<Tag>(this, Tag.class, path, "PUT"); }
[ "Updates the properties of a tag. Only the fields provided in the `data`\nblock will be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated tag record.\n\n@param tag The tag to update.\n@return Request object" ]
[ "Loads the schemas associated to this catalog.", "Sets the quaternion of the keyframe.", "build a complete set of local files, files from referenced projects, and dependencies.", "Mirrors the given bitmap", "Gets the string describing the uniforms used by shaders of this type.\n@param ctx GVFContext shader is associated with\n@return uniform descriptor string\n@see #getTemplate(GVRContext) GVRShader#getUniformDescriptor()", "Process data for an individual calendar.\n\n@param row calendar data", "Populates data in this Options from the character stream.\n@param in The Reader\n@throws IOException If there is a problem reading data", "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", "Manually set the breaker to be reset and ready for use. This\nis only useful after a manual trip otherwise the breaker will\ntrip automatically again if the service is still unavailable.\nJust like a real breaker. WOOT!!!" ]
public ClassDescriptor getSuperClassDescriptor() { if (!m_superCldSet) { if(getBaseClass() != null) { m_superCld = getRepository().getDescriptorFor(getBaseClass()); if(m_superCld.isAbstract() || m_superCld.isInterface()) { throw new MetadataException("Super class mapping only work for real class, but declared super class" + " is an interface or is abstract. Declared class: " + m_superCld.getClassNameOfObject()); } } m_superCldSet = true; } return m_superCld; }
[ "Answers the ClassDescriptor referenced by 'super' ReferenceDescriptor.\n@return ClassDescriptor or null" ]
[ "Commit an upload session after all parts have been uploaded, creating the new file or the version.\n@param digest the base64-encoded SHA-1 hash of the file being uploaded.\n@param parts the list of uploaded parts to be committed.\n@param attributes the key value pairs of attributes from the file instance.\n@param ifMatch ensures that your app only alters files/folders on Box if you have the current version.\n@param ifNoneMatch ensure that it retrieve unnecessary data if the most current version of file is on-hand.\n@return the created file instance.", "Send message to all connections tagged with all given tags\n@param message the message\n@param labels the tag labels", "Determine the relevant pieces of configuration which need to be included when processing the domain model.\n\n@param root the resource root\n@param requiredConfigurationHolder the resolution context\n@param serverConfig the server config\n@param extensionRegistry the extension registry", "Execute pull docker image on agent\n\n@param launcher\n@param imageTag\n@param username\n@param password\n@param host\n@return\n@throws IOException\n@throws InterruptedException", "Caches the results of radix to the given power.\n\n@param radix\n@param power\n@return", "Loads the configuration file, using CmsVfsMemoryObjectCache for caching.\n\n@param cms the CMS context\n@return the template mapper configuration", "Compute the location of the generated file from the given trace file.", "Stops the scavenger.", "Evaluates the body if current member has no tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"error\" description=\"Show this error message if no tag found.\"" ]
public void enqueue(SerialMessage serialMessage) { this.sendQueue.add(serialMessage); logger.debug("Enqueueing message. Queue length = {}", this.sendQueue.size()); }
[ "Enqueues a message for sending on the send thread.\n@param serialMessage the serial message to enqueue." ]
[ "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", "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", "Add an individual class to the map file.\n\n@param loader jar file class loader\n@param jarEntry jar file entry\n@param writer XML stream writer\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException", "Answer the FieldConversions for the PkFields\n@param cld\n@return the pk FieldConversions", "Checks the given reference descriptor.\n\n@param refDef The reference descriptor\n@param checkLevel The amount of checks to perform\n@exception ConstraintException If a constraint has been violated", "Forceful cleanup the logs", "Goes through the first buckets, picking out candidate records and\ntallying up their scores.\n@return the index of the first bucket we did not process", "convert a param object to a multimap.\n\n@param objectParams the parameters to convert.\n@return the corresponding Multimap.", "Determine if a CharSequence can be parsed as a Long.\n\n@param self a CharSequence\n@return true if the CharSequence can be parsed\n@see #isLong(String)\n@since 1.8.2" ]
private static Query buildQuery(ClassDescriptor cld) { FieldDescriptor[] pkFields = cld.getPkFields(); Criteria crit = new Criteria(); for(int i = 0; i < pkFields.length; i++) { crit.addEqualTo(pkFields[i].getAttributeName(), null); } return new QueryByCriteria(cld.getClassOfObject(), crit); }
[ "Build a Pk-Query base on the ClassDescriptor.\n\n@param cld\n@return a select by PK query" ]
[ "Process the requestJsonAttributes using the attributes and the MapfishParser and add all resulting\nvalues to this values object.\n\n@param template the template of the current request.\n@param attributes the attributes that will be used to add values to this values object\n@param requestJsonAttributes the json data for populating the attribute values", "Use this API to fetch csvserver_copolicy_binding resources of given name .", "Extracts the list of columns from the given field list.\n\n@param fields The fields\n@return The corresponding columns", "Adds a step to the steps.\n\n@param name {@link String} name of the step\n@param robot {@link String} name of the robot used by the step.\n@param options {@link Map} extra options required for the step.", "Use this API to fetch dnsview resource of given name .", "Sets number of pages. If the index of currently selected page is bigger than the total number\nof pages, first page will be selected instead.\n@return difference between the previous number of pages and new one. Negative value is\nreturned if new number of pages is less then it was before.", "Creates a new row representing a rule.\n@param type the type for the rule row, must not be null nor {@link TableRowType#CONTENT} nor {@link TableRowType#UNKNOWN}\n@param style the style for the rule row, must not be null nor {@link TableRowStyle#UNKNOWN}\n@return a new row representing a rule\n@throws {@link NullPointerException} if type or style where null\n@throws {@link IllegalStateException} if type or style where unknown or if type was {@link TableRowType#CONTENT}", "Set up the ThreadContext and delegate.", "Register custom filter types especially for serializer of specification json file" ]
public static base_response kill(nitro_service client, systemsession resource) throws Exception { systemsession killresource = new systemsession(); killresource.sid = resource.sid; killresource.all = resource.all; return killresource.perform_operation(client,"kill"); }
[ "Use this API to kill systemsession." ]
[ "Sets the segment reject as a string. This method is for convenience\nto be able to set percent reject type just by calling with '3%' and\notherwise it uses rows. All this assuming that parsing finds '%' characher\nand is able to parse a raw reject number.\n\n@param reject the new segment reject", "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "Use this API to update cachecontentgroup.", "Create an import declaration and delegates its registration for an upper class.", "returns all methods not in the group\n\n@param groupId Id of group\n@return List of Methods for a group\n@throws Exception exception", "Print all relations for a given's class's tag\n@param tagname the tag containing the given relation\n@param from the source class\n@param edgetype the dot edge specification", "Parses an RgbaColor from a hexadecimal, rgb, rgba, hsl, or hsla\nvalue.\n\n@return returns the parsed color", "Adds a clause that checks whether ANY set bits in a bitmask are present\nin a numeric expression.\n\n@param expr\nSQL numeric expression to check.\n@param bits\nInteger containing the bits for which to check.", "Calculates ATM Bachelier implied volatilities.\n\n@see net.finmath.functions.AnalyticFormulas#bachelierOptionImpliedVolatility(double, double, double, double, double)\n\n@param optionValue RandomVarable representing the value of the option\n@param optionMaturity Time to maturity.\n@param swapAnnuity The swap annuity as seen on valuation time.\n@return The Bachelier implied volatility." ]
private void unmarshalDescriptor() throws CmsXmlException, CmsException { if (null != m_desc) { // unmarshal descriptor m_descContent = CmsXmlContentFactory.unmarshal(m_cms, m_cms.readFile(m_desc)); // configure messages if wanted CmsProperty bundleProp = m_cms.readPropertyObject(m_desc, PROPERTY_BUNDLE_DESCRIPTOR_LOCALIZATION, true); if (!(bundleProp.isNullProperty() || bundleProp.getValue().trim().isEmpty())) { m_configuredBundle = bundleProp.getValue(); } } }
[ "Unmarshals the descriptor content.\n\n@throws CmsXmlException thrown if the XML structure of the descriptor is wrong.\n@throws CmsException thrown if reading the descriptor file fails." ]
[ "Set the degrees of rotation. Value will be set to -1, if not available.\n\n@param rotation", "Returns a sampling of the source at the specified line and column,\nof null if it is unavailable.", "Returns the complete task record for a single task.\n\n@param task The task to get.\n@return Request object", "Returns the RPC service for serial dates.\n@return the RPC service for serial dates.", "This method lists all resource assignments defined in the file.\n\n@param file MPX file", "Maps a bindingId to its corresponding BindingType.\n@param bindingId\n@return", "Obtain host header value for a hostname\n\n@param hostName\n@return", "Saves changes in properties file. It reads the property file into memory, modifies it and saves it back to the file.\n\n@throws IOException", "Method is called by spring and verifies that there is only one plugin per URI scheme." ]
private void logState(final FileRollEvent fileRollEvent) { // if (ApplicationState.isApplicationStateEnabled()) { synchronized (this) { final Collection<ApplicationState.ApplicationStateMessage> entries = ApplicationState.getAppStateEntries(); for (ApplicationState.ApplicationStateMessage entry : entries) { Level level = ApplicationState.getLog4jLevel(entry.getLevel()); if(level.isGreaterOrEqual(ApplicationState.LOGGER.getEffectiveLevel())) { final org.apache.log4j.spi.LoggingEvent loggingEvent = new org.apache.log4j.spi.LoggingEvent(ApplicationState.FQCN, ApplicationState.LOGGER, level, entry.getMessage(), null); //Save the current layout before changing it to the original (relevant for marker cases when the layout was changed) Layout current=fileRollEvent.getSource().getLayout(); //fileRollEvent.getSource().activeOriginalLayout(); String flowContext = (String) MDC.get("flowCtxt"); MDC.remove("flowCtxt"); //Write applicationState: if(fileRollEvent.getSource().isAddApplicationState() && fileRollEvent.getSource().getFile().endsWith("log")){ fileRollEvent.dispatchToAppender(loggingEvent); } //Set current again. fileRollEvent.getSource().setLayout(current); if (flowContext != null) { MDC.put("flowCtxt", flowContext); } } } } // } }
[ "Write all state items to the log file.\n\n@param fileRollEvent the event to log" ]
[ "Triggers collapse of the parent.", "Returns the getter method for field on an object.\n\n@param object\nthe object\n@param fieldName\nthe field name\n@return the getter associated with the field on the object\n@throws NullPointerException\nif object or fieldName is null\n@throws SuperCsvReflectionException\nif the getter doesn't exist or is not visible", "Get logs for an app by specifying additional parameters.\n@param logRequest See {LogRequestBuilder}\n@return log stream response", "Utility function that fetches user defined store definitions\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch store definitions from\n@return The map container that maps store names to store definitions", "Query zipcode from Yahoo to find associated WOEID", "Parse a percent complete value.\n\n@param value sting representation of a percent complete value.\n@return Double instance", "Retrieve all Collection attributes of a given instance\n\n@param newObj the instance to be loaded or refreshed\n@param cld the ClassDescriptor of the instance\n@param forced if set to true, loading is forced even if cld differs", "Send a beat announcement to all registered master listeners.\n\n@param beat the beat sent by the tempo master", "Add a cause to the backtrace.\n\n@param cause\nthe cause\n@param bTrace\nthe backtrace list" ]
public AT_CellContext setPadding(int padding){ if(padding>-1){ this.paddingTop = padding; this.paddingBottom = padding; this.paddingLeft = padding; this.paddingRight = padding; } return this; }
[ "Sets all padding to the same value.\n@param padding new padding for top, bottom, left, and right, ignored if smaller than 0\n@return this to allow chaining" ]
[ "Diagnostic method used to dump known field map data.\n\n@param props props block containing field map data", "Prints the URL of a thumbnail for the given item document to the output,\nor a default image if no image is given for the item.\n\n@param out\nthe output to write to\n@param itemDocument\nthe document that may provide the image information", "Given a list of partition plans and a set of stores, copies the store\nnames to every individual plan and creates a new list\n\n@param existingPlanList Existing partition plan list\n@param storeDefs List of store names we are rebalancing\n@return List of updated partition plan", "Create an `AppDescriptor` with appName and entry class specified.\n\nIf `appName` is `null` or blank, it will try the following\napproach to get app name:\n\n1. check the {@link Version#getArtifactId() artifact id} and use it unless\n2. if artifact id is null or empty, then infer app name using {@link AppNameInferer}\n\n@param appName\nthe app name\n@param entryClass\nthe entry class\n@return\nan `AppDescriptor` instance", "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "Find the node corresponding to an entity.\n\n@param executionEngine the {@link GraphDatabaseService} used to run the query\n@param columnValues the values in {@link org.hibernate.ogm.model.key.spi.EntityKey#getColumnValues()}\n@return the corresponding node", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "Used to create a new retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@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@return the created retention policy's info.", "Use this method to enable device network-related information tracking, including IP address.\nThis reporting is disabled by default. To re-disable tracking call this method with enabled set to false.\n\n@param value boolean Whether device network info reporting should be enabled/disabled." ]
public Where<T, ID> raw(String rawStatement, ArgumentHolder... args) { for (ArgumentHolder arg : args) { String columnName = arg.getColumnName(); if (columnName == null) { if (arg.getSqlType() == null) { throw new IllegalArgumentException("Either the column name or SqlType must be set on each argument"); } } else { arg.setMetaInfo(findColumnFieldType(columnName)); } } addClause(new Raw(rawStatement, args)); return this; }
[ "Add a raw statement as part of the where that can be anything that the database supports. Using more structured\nmethods is recommended but this gives more control over the query and allows you to utilize database specific\nfeatures.\n\n@param rawStatement\nThe statement that we should insert into the WHERE.\n\n@param args\nOptional arguments that correspond to any ? specified in the rawStatement. Each of the arguments must\nhave either the corresponding columnName or the sql-type set. <b>WARNING,</b> you cannot use the\n{@code SelectArg(\"columnName\")} constructor since that sets the _value_, not the name. Use\n{@code new SelectArg(\"column-name\", null);}." ]
[ "Returns true if the given item document lacks a label for at least one of\nthe languages covered.\n\n@param itemDocument\n@return true if some label is missing", "Compares the two comma-separated lists.\n\n@param list1 The first list\n@param list2 The second list\n@return <code>true</code> if the lists are equal", "Returns the value of the matrix at the specified index of the 1D row major array.\n\n@see DMatrixRMaj#get(int)\n\n@param index The element's index whose value is to be returned\n@return The value of the specified element.", "Sets the parent node.\n\n@param parentNode The parent of this node. May be null, if this is a root node.", "Transits a float propertyId from the start value to the end value.\n\n@param propertyId\n@param vals\n@return self", "Converts a class into a signature token.\n\n@param c class\n@return signature token text", "Pretty-print the object.", "Write a string attribute.\n\n@param name attribute name\n@param value attribute value", "URL-Decodes a given string using UTF-8. No UnsupportedEncodingException to handle as it is dealt with in this\nmethod." ]
public byte byteAt(int i) { if (i < 0) { throw new IndexOutOfBoundsException("i < 0, " + i); } if (i >= length) { throw new IndexOutOfBoundsException("i >= length, " + i + " >= " + length); } return data[offset + i]; }
[ "Gets a byte within this sequence of bytes\n\n@param i index into sequence\n@return byte\n@throws IllegalArgumentException if i is out of range" ]
[ "Stops the server. This method does nothing if the server is stopped already.", "Given a DocumentVersionInfo, returns a BSON document representing the next version. This means\nand incremented version count for a non-empty version, or a fresh version document for an\nempty version.\n@return a BsonDocument representing a synchronization version", "Creates a code location URL from a URL\n\n@param url the URL external form\n@return A URL created from URL\n@throws InvalidCodeLocation if URL creation fails", "Creates a new fixed size ThreadPoolExecutor\n\n@param threads\nthe number of threads\n@param groupname\na label to identify the threadpool; useful for profiling.\n@param queueSize\nthe size of the queue to store Runnables when all threads are busy\n@return the new ExecutorService", "Display a Notification message\n@param event", "When an alias for a field is added, index it here to allow lookup by alias and type.\n\n@param type field type\n@param alias field alias", "Use this API to unset the properties of nsip6 resource.\nProperties that need to be unset are specified in args array.", "Get the nearest scale.\n\n@param zoomLevels the list of Zoom Levels.\n@param tolerance the tolerance to use when considering if two values are equal. For example if\n12.0 == 12.001. The tolerance is a percentage.\n@param zoomLevelSnapStrategy the strategy to use for snapping to the nearest zoom level.\n@param geodetic snap to geodetic scales.\n@param paintArea the paint area of the map.\n@param dpi the DPI.", "Retrieve an instance of the ConstraintField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ConstraintField instance" ]
public void disableAll(int profileId, String client_uuid) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "DELETE FROM " + Constants.DB_TABLE_ENABLED_OVERRIDE + " WHERE " + Constants.CLIENT_PROFILE_ID + " = ?" + " AND " + Constants.CLIENT_CLIENT_UUID + " =? " ); statement.setInt(1, profileId); statement.setString(2, client_uuid); statement.executeUpdate(); statement.close(); } catch (SQLException e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Delete all enabled overrides for a client\n\n@param profileId profile ID of teh client\n@param client_uuid UUID of teh client" ]
[ "Use this API to fetch statistics of rnatip_stats resource of given name .", "Performs an implicit double step using the values contained in the lower right hand side\nof the submatrix for the estimated eigenvector values.\n@param x1\n@param x2", "Pauses the file upload. This is a blocking function that would try to wait till the assembly file uploads\nhave actually been paused if possible.\n\n@throws LocalOperationException if the method is called while no upload is going on.", "Request the artwork with a particular artwork ID, given a connection to a player that has already been set up.\n\n@param artworkId identifies the album art to retrieve\n@param slot the slot identifier from which the associated track was loaded\n@param trackType the kind of track that owns the artwork\n@param client the dbserver client that is communicating with the appropriate player\n\n@return the track's artwork, or null if none is available\n\n@throws IOException if there is a problem communicating with the player", "Utility function that fetches all stores on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@return List of all store names", "Converts the List to PagedList.\n@param list list to be converted in to paged list\n@param <InnerT> the wrapper inner type\n@return the Paged list for the inner type.", "Template method responsible for file compression checks, file creation, and\ndelegation to specific strategy implementations.\n\n@param backupFile\nThe file to be compressed.\n@param properties\nThe appender's configuration.", "Use this API to add gslbservice.", "Returns s if it's at most maxWidth chars, otherwise chops right side to fit." ]
public synchronized Object removeRoleMapping(final String roleName) { /* * Would not expect this to happen during boot so don't offer the 'immediate' optimisation. */ HashMap<String, RoleMappingImpl> newRoles = new HashMap<String, RoleMappingImpl>(roleMappings); if (newRoles.containsKey(roleName)) { RoleMappingImpl removed = newRoles.remove(roleName); Object removalKey = new Object(); removedRoles.put(removalKey, removed); roleMappings = Collections.unmodifiableMap(newRoles); return removalKey; } return null; }
[ "Remove a role from the list of defined roles.\n\n@param roleName - The name of the role to be removed.\n@return A key that can be used to undo the removal." ]
[ "Returns width and height that allow the given source width, height to fit inside the target width, height\nwithout losing aspect ratio", "This method is called to alert project listeners to the fact that\na resource assignment has been written to a project file.\n\n@param resourceAssignment resourceAssignment instance", "Given a particular id, return the correct contextual. For contextuals\nwhich aren't passivation capable, the contextual can't be found in another\ncontainer, and null will be returned.\n\n@param id An identifier for the contextual\n@return the contextual", "Returns the specified process time out in milliseconds.\n\n@return The process time out in milliseconds.", "Create and return a new Violation for this rule and the specified values\n@param lineNumber - the line number for the violation; may be null\n@param sourceLine - the source line for the violation; may be null\n@param message - the message for the violation; may be null\n@return a new Violation object", "Remove the realm name block.\n\n@see PropertiesFileLoader#addLineContent(java.io.BufferedReader, java.util.List, String)", "Read task baseline values.\n\n@param row result set row", "Performs MAC signing of the SMB. This is done as follows.\nThe signature field of the SMB is overwritted with the sequence number;\nThe MD5 digest of the MAC signing key + the entire SMB is taken;\nThe first 8 bytes of this are placed in the signature field.\n\n@param data The data.\n@param offset The starting offset at which the SMB header begins.\n@param length The length of the SMB data starting at offset.", "Add a given factory to the list of factories at the BEGINNING.\n\n@param factory The factory to be added.\n@return Cascade with amended factory list." ]
public String findAlias(String entityAlias, List<String> propertyPathWithoutAlias) { RelationshipAliasTree aliasTree = relationshipAliases.get( entityAlias ); if ( aliasTree == null ) { return null; } RelationshipAliasTree associationAlias = aliasTree; for ( int i = 0; i < propertyPathWithoutAlias.size(); i++ ) { associationAlias = associationAlias.findChild( propertyPathWithoutAlias.get( i ) ); if ( associationAlias == null ) { return null; } } return associationAlias.getAlias(); }
[ "Given the alias of the entity and the path to the relationship it will return the alias\nof the component.\n\n@param entityAlias the alias of the entity\n@param propertyPathWithoutAlias the path to the property without the alias\n@return the alias the relationship or null" ]
[ "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date", "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", "If the belief its a count of some sort his counting its increased by one.\n\n@param bName\n- the name of the belief count.", "Use this API to update nslimitselector resources.", "Creates, writes and loads a new keystore and CA root certificate.", "Apply any applicable header overrides to request\n\n@param httpMethodProxyRequest\n@throws Exception", "Convenience extension, to generate traced code.", "Creates a copy of a matrix but swaps the rows as specified by the order array.\n\n@param order Specifies which row in the dest corresponds to a row in the src. Not modified.\n@param src The original matrix. Not modified.\n@param dst A Matrix that is a row swapped copy of src. Modified.", "List the slack values for each task.\n\n@param file ProjectFile instance" ]
public Set<String> getAttributeNames() { if (attributes == null) { return Collections.emptySet(); } else { return Collections.unmodifiableSet(attributes.keySet()); } }
[ "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." ]
[ "Read file content to string.\n\n@param filePath\nthe file path\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "Consumes the version field from the given input and raises an exception if the record is in a newer version,\nwritten by a newer version of Hibernate OGM.\n\n@param input the input to read from\n@param supportedVersion the type version supported by this version of OGM\n@param externalizedType the type to be unmarshalled\n\n@throws IOException if an error occurs while reading the input", "Set default interval for sending events to monitoring service. DefaultInterval will be used by\nscheduler.\n\n@param defaultInterval the new default interval", "Returns a value.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@return the metadata property value.\n@deprecated Metadata#get() does not handle all possible metadata types; use Metadata#getValue() instead", "Fills in the element with the InputValues for input\n\n@param element the node element\n@param input the input data", "Get the sub registry for the servers.\n\n@param range the version range\n@return the sub registry", "Retrieves a long value from the extended data.\n\n@param type Type identifier\n@return long value", "Tells you if the ASTNode is a method node for the given name, arity, and return type.\n@param node\nthe node to inspect\n@param methodNamePattern\nthe expected name of the method\n@param numArguments\nthe expected number of arguments, optional\n@param returnType\nthe expected return type, optional\n@return\ntrue if this node is a MethodNode meeting the parameters. false otherwise", "Use this API to fetch appfwlearningsettings resource of given name ." ]
public static appfwjsoncontenttype get(nitro_service service, String jsoncontenttypevalue) throws Exception{ appfwjsoncontenttype obj = new appfwjsoncontenttype(); obj.set_jsoncontenttypevalue(jsoncontenttypevalue); appfwjsoncontenttype response = (appfwjsoncontenttype) obj.get_resource(service); return response; }
[ "Use this API to fetch appfwjsoncontenttype resource of given name ." ]
[ "Add join info to the query. This can be called multiple times to join with more than one table.", "flushes log queue, this actually writes combined log message into system log", "Apply modifications to a content task definition.\n\n@param patchId the patch id\n@param modifications the modifications\n@param definitions the task definitions\n@param filter the content item filter", "Convert a Planner time into a Java date.\n\n0800\n\n@param value Planner time\n@return Java Date instance", "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.", "Retrieve column font details from a block of property data.\n\n@param data property data\n@param offset offset into property data\n@param fontBases map of font bases\n@return ColumnFontStyle instance", "Converts a standard optimizer to one which the given amount of l1 or l2 regularization.", "Generates a comment regarding the parameters.\n\n@param entityId - id of the commented entity\n@param entityType - type of the entity\n@param action - the action performed by the user\n@param commentedText - comment text\n@param user - comment left by\n@param date - date comment was created\n@return - comment entity", "Adds an environment variable to the process being created.\n\n@param key they key for the variable\n@param value the value for the variable\n\n@return the launcher" ]
private org.apache.tools.ant.types.Path resolveFiles(org.apache.tools.ant.types.Path path) { org.apache.tools.ant.types.Path cloned = new org.apache.tools.ant.types.Path(getProject()); for (String location : path.list()) { cloned.createPathElement().setLocation(new File(location)); } return cloned; }
[ "Resolve all files from a given path and simplify its definition." ]
[ "Obtains a local date in Symmetry010 calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Symmetry010 era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Symmetry010 local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code IsoEra}", "Interfaces, enums, annotations, and abstract classes cannot be\ninstantiated.\n\n@param actionClass\nclass to check\n@return returns true if the class cannot be instantiated or should be\nignored", "Gets string content from InputStream\n\n@param is InputStream to read\n@return InputStream content", "Get the number of views, comments and favorites on a photoset for a given date.\n\n@param date\n(Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will\nautomatically be rounded down to the start of the day.\n@param photosetId\n(Required) The id of the photoset to get stats for.\n@see \"http://www.flickr.com/services/api/flickr.stats.getPhotosetStats.htm\"", "Use this API to fetch nstrafficdomain_binding resources of given names .", "Create a new instance of a two input function from an operator character\n@param op Which operation\n@param left Input variable on left\n@param right Input variable on right\n@return Resulting operation", "Generates a full list of all parents and their children, in order. Uses Map to preserve\nlast expanded state.\n\n@param parentList A list of the parents from\nthe {@link ExpandableRecyclerAdapter}\n@param savedLastExpansionState A map of the last expanded state for a given parent key.\n@return A list of all parents and their children, expanded accordingly", "Use this API to add policydataset.", "Examine the given model node, resolving any expressions found within, including within child nodes.\n\n@param node the node\n@return a node with all expressions resolved\n@throws OperationFailedException if an expression cannot be resolved" ]
protected void ensureColumns(List columns, List existingColumns) { if (columns == null || columns.isEmpty()) { return; } Iterator iter = columns.iterator(); while (iter.hasNext()) { FieldHelper cf = (FieldHelper) iter.next(); if (!existingColumns.contains(cf.name)) { getAttributeInfo(cf.name, false, null, getQuery().getPathClasses()); } } }
[ "Builds the Join for columns if they are not found among the existingColumns.\n@param columns the list of columns represented by Criteria.Field to ensure\n@param existingColumns the list of column names (String) that are already appended" ]
[ "Converts the permutation matrix into a vector\n@param P (Input) Permutation matrix\n@param vector (Output) Permutation vector", "checking availability of ClassInfo.setFlags method is just workaround for JANDEX-37", "Gets an exception reporting an unexpected XML element.\n\n@param reader a reference to the stream reader.\n@return the constructed {@link javax.xml.stream.XMLStreamException}.", "Process this deployment for annotations. This will use an annotation indexer to create an index of all annotations\nfound in this deployment and attach it to the deployment unit context.\n\n@param phaseContext the deployment unit context\n@throws DeploymentUnitProcessingException", "Insert syntax for our special table\n@param sequenceName\n@param maxKey\n@return sequence insert statement", "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", "Select which view to display based on the state of the promotion. Will return the form if user selects to perform\npromotion. Progress will be returned if the promotion is currently in progress.", "Use this API to add snmpuser resources.", "Obtains a Pax zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Pax zoned date-time, not null\n@throws DateTimeException if unable to create the date-time" ]
@Override public Map<String, Set<String>> cleanObsoleteContent() { if(!readWrite) { return Collections.emptyMap(); } Map<String, Set<String>> cleanedContents = new HashMap<>(2); cleanedContents.put(MARKED_CONTENT, new HashSet<>()); cleanedContents.put(DELETED_CONTENT, new HashSet<>()); synchronized (contentHashReferences) { for (ContentReference fsContent : listLocalContents()) { if (!readWrite) { return Collections.emptyMap(); } if (!contentHashReferences.containsKey(fsContent.getHexHash())) { //We have no reference to this content if (markAsObsolete(fsContent)) { cleanedContents.get(DELETED_CONTENT).add(fsContent.getContentIdentifier()); } else { cleanedContents.get(MARKED_CONTENT).add(fsContent.getContentIdentifier()); } } else { obsoleteContents.remove(fsContent.getHexHash()); //Remove existing references from obsoleteContents } } } return cleanedContents; }
[ "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." ]
[ "The primary run loop of the event processor.", "Look-up the results data for a particular test class.", "Validates given external observer method.\n\n@param observerMethod the given observer method\n@param beanManager\n@param originalObserverMethod observer method replaced by given observer method (this parameter is optional)", "Creates a curator built using Fluo's zookeeper connection string. Root path will start at Fluo\nchroot.", "Adds a listener to this collection.\n\n@param listener The listener to add", "Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.\n\n@param s a Penn TreeBank POS tag.", "Resizes an image to the specified height, changing width in the same proportion\n@param originalImage Image in memory\n@param heightOut The height to resize\n@return New Image in memory", "Main method, handles all the setup tasks for DataGenerator a user would normally do themselves\n\n@param args command line arguments", "Get the FieldDescriptor for the PathInfo\n\n@param aTableAlias\n@param aPathInfo\n@return FieldDescriptor" ]
public Map<Integer, String> getSignatures() { ensureRunning(); // Make a copy so callers get an immutable snapshot of the current state. return Collections.unmodifiableMap(new HashMap<Integer, String>(signatures)); }
[ "Get the signatures that have been computed for all tracks currently loaded in any player for which we have\nbeen able to obtain all necessary metadata.\n\n@return the signatures that uniquely identify the tracks loaded in each player\n\n@throws IllegalStateException if the SignatureFinder is not running" ]
[ "Fancy print without a space added to positive numbers", "Given a method node, checks if we are calling a private method from an inner class.", "Process calendar hours.\n\n@param calendar parent calendar\n@param row calendar hours data\n@param dayIndex day index", "Checks whether two internet addresses are on the same subnet.\n\n@param prefixLength the number of bits within an address that identify the network\n@param address1 the first address to be compared\n@param address2 the second address to be compared\n\n@return true if both addresses share the same network bits", "gets a class from the class cache. This cache contains only classes loaded through\nthis class loader or an InnerLoader instance. If no class is stored for a\nspecific name, then the method should return null.\n\n@param name of the class\n@return the class stored for the given name\n@see #removeClassCacheEntry(String)\n@see #setClassCacheEntry(Class)\n@see #clearCache()", "Only call with monitor for 'this' held", "Returns requested content types or default content type if none found.\n\n@return Requested content types or default content type if none found.", "Utility function to get the current value.", "Parses a reflection modifier to a list of string\n\n@param modifiers The modifier to parse\n@return The resulting string list" ]
private String appendXmlEndingTag(String value) { StringBuilder sb = new StringBuilder(); sb.append("</").append(value).append(">"); return sb.toString(); }
[ "Helper xml end tag writer\n\n@param value the output stream to use in writing" ]
[ "Set the amount of padding between child objects.\n@param axis {@link Axis}\n@param padding", "Is the transport secured by a policy", "Use this API to fetch all the sslcipher resources that are configured on netscaler.", "Initialise an extension module's extensions in the extension registry\n\n@param extensionRegistry the extension registry\n@param module the name of the module containing the extensions\n@param rootRegistration The parent registration of the extensions. For a server or domain.xml extension, this will be the root resource registration. For a host.xml extension, this will be the host resource registration\n@param extensionRegistryType The type of the registry", "This method allows a predecessor relationship to be added to this\ntask instance.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return relationship", "Curries a function that takes three arguments.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code function}.\n@return a function that takes two arguments. Never <code>null</code>.", "Checks if the specified longitude is correct.\n\n@param name the name of the longitude field\n@param longitude the value of the longitude field\n@return the longitude", "Get the raw data bytes of the device update packet.\n\n@return the data sent by the device to update its status", "Sets padding between the pages\n@param padding\n@param axis" ]
@Deprecated public ModelNode navigate(ModelNode model, boolean create) throws NoSuchElementException { final Iterator<PathElement> i = pathAddressList.iterator(); while (i.hasNext()) { final PathElement element = i.next(); if (create && !i.hasNext()) { if (element.isMultiTarget()) { throw new IllegalStateException(); } model = model.require(element.getKey()).get(element.getValue()); } else { model = model.require(element.getKey()).require(element.getValue()); } } return model; }
[ "Navigate to this address in the given model node.\n\n@param model the model node\n@param create {@code true} to create the last part of the node if it does not exist\n@return the submodel\n@throws NoSuchElementException if the model contains no such element\n\n@deprecated manipulating a deep DMR node tree via PathAddress is no longer how the management layer works\ninternally, so this method has become legacy cruft. Management operation handlers\nshould obtain a {@link org.jboss.as.controller.registry.Resource Resource} from the\n{@link org.jboss.as.controller.OperationContext#readResource(PathAddress) OperationContext}\nand use the {@code Resource} API to access child resources" ]
[ "Add fields to the text index configuration.\n\n@param fields the {@link TextIndex.Field} configurations to add\n@return the builder for chaining", "Gets the i-th half-edge associated with the face.\n\n@param i\nthe half-edge index, in the range 0-2.\n@return the half-edge", "Read a field into our table configuration for field=value line.", "Helper xml start tag writer\n\n@param value the output stream to use in writing", "Handler for month changes.\n@param event change event.", "Use this API to fetch transformpolicylabel resource of given name .", "Initialize. create the httpClientStore, tcpClientStore", "Sets the name of the optional two tabs.\nThe contents of the tabs are filtered based on the name of the tab.\n@param tabs ArrayList of Strings", "create a consumer\n\n@param zookeeperConfig connect config of zookeeper; ex: 127.0.0.1:2181/jafka\n@param topic the topic to be watched\n@param groupId grouping the consumer clients\n@param listener message listener\n@return the real consumer" ]
private static void addFormatInfoEval(byte[] eval, int size, EccLevel ecc_level, int pattern) { int format = pattern; int seq; int i; switch(ecc_level) { case L: format += 0x08; break; case Q: format += 0x18; break; case H: format += 0x10; break; } seq = QR_ANNEX_C[format]; for (i = 0; i < 6; i++) { eval[(i * size) + 8] = (byte) ((((seq >> i) & 0x01) != 0) ? (0x01 >> pattern) : 0x00); } for (i = 0; i < 8; i++) { eval[(8 * size) + (size - i - 1)] = (byte) ((((seq >> i) & 0x01) != 0) ? (0x01 >> pattern) : 0x00); } for (i = 0; i < 6; i++) { eval[(8 * size) + (5 - i)] = (byte) ((((seq >> (i + 9)) & 0x01) != 0) ? (0x01 >> pattern) : 0x00); } for (i = 0; i < 7; i++) { eval[(((size - 7) + i) * size) + 8] = (byte) ((((seq >> (i + 8)) & 0x01) != 0) ? (0x01 >> pattern) : 0x00); } eval[(7 * size) + 8] = (byte) ((((seq >> 6) & 0x01) != 0) ? (0x01 >> pattern) : 0x00); eval[(8 * size) + 8] = (byte) ((((seq >> 7) & 0x01) != 0) ? (0x01 >> pattern) : 0x00); eval[(8 * size) + 7] = (byte) ((((seq >> 8) & 0x01) != 0) ? (0x01 >> pattern) : 0x00); }
[ "Adds format information to eval." ]
[ "Checks to see if the matrix is symmetric to within tolerance.\n\n@param A Matrix being tested. Not modified.\n@param tol Tolerance that defines how similar two values must be to be considered identical\n@return true if symmetric or false if not", "Save the current file as the given type.\n\n@param file target file\n@param type file type", "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output", "Sets allowed values for attribute\n\n@param allowedValues values that are legal as part in this attribute\n@return a builder that can be used to continue building the attribute definition", "Use this API to delete lbroute.", "Serialize this `AppDescriptor` and output byte array\n\n@return\nserialize this `AppDescriptor` into byte array", "Mark content as obsolete. If content was already marked for obsolescenceTimeout ms then it is removed.\n\n@param ref the content refrence to be marked as obsolete.\n\n@return true if the content refrence is removed, fale otherwise.", "Return the score of the specified element of the sorted set at key.\n@param member\n@return The score value or <code>null</code> if the element does not exist in the set.", "Returns the inverse of a given matrix.\n\n@param matrix A matrix given as double[n][n].\n@return The inverse of the given matrix." ]
public static Pool<Jedis> createJedisPool(final Config jesqueConfig, final GenericObjectPoolConfig poolConfig) { if (jesqueConfig == null) { throw new IllegalArgumentException("jesqueConfig must not be null"); } if (poolConfig == null) { throw new IllegalArgumentException("poolConfig must not be null"); } if (jesqueConfig.getMasterName() != null && !"".equals(jesqueConfig.getMasterName()) && jesqueConfig.getSentinels() != null && jesqueConfig.getSentinels().size() > 0) { return new JedisSentinelPool(jesqueConfig.getMasterName(), jesqueConfig.getSentinels(), poolConfig, jesqueConfig.getTimeout(), jesqueConfig.getPassword(), jesqueConfig.getDatabase()); } else { return new JedisPool(poolConfig, jesqueConfig.getHost(), jesqueConfig.getPort(), jesqueConfig.getTimeout(), jesqueConfig.getPassword(), jesqueConfig.getDatabase()); } }
[ "A simple helper method that creates a pool of connections to Redis using\nthe supplied configurations.\n\n@param jesqueConfig the config used to create the pooled Jedis connections\n@param poolConfig the config used to create the pool\n@return a configured Pool of Jedis connections" ]
[ "Writes the content of an input stream to an output stream\n\n@throws IOException", "Create a random video.\n\n@return random video.", "Writes an activity to a PM XML file.\n\n@param mpxj MPXJ Task instance", "Returns the classpath for executable jar.", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Use this API to fetch all the nsip6 resources that are configured on netscaler.", "Helper to return the first item in the iterator or null.\n\n@return T the first item or null.", "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", "Retrieves all of the headers from the servlet request and sets them on\nthe proxy request\n\n@param httpServletRequest The request object representing the client's request to the\nservlet engine\n@param httpMethodProxyRequest The request that we are about to send to the proxy host" ]
@Override public final PArray getArray(final String key) { PArray result = optArray(key); if (result == null) { throw new ObjectMissingException(this, key); } return result; }
[ "Get a property as a array or throw exception.\n\n@param key the property name" ]
[ "Reverse Engineers an XPath Expression of a given Node in the DOM.\n\n@param node the given node.\n@return string xpath expression (e.g., \"/html[1]/body[1]/div[3]\").", "Get HttpResourceModel which matches the HttpMethod of the request.\n\n@param routableDestinations List of ResourceModels.\n@param targetHttpMethod HttpMethod.\n@param requestUri request URI.\n@return RoutableDestination that matches httpMethod that needs to be handled. null if there are no matches.", "Whether the given value generation strategy requires to read the value from the database or not.", "Use this API to update nsip6 resources.", "Use this API to fetch dnszone_domain_binding resources of given name .", "Sets the value associated with the given key; if the the key is one\nof the hashable keys, throws an exception.\n\n@throws HashableCoreMapException Attempting to set the value for an\nimmutable, hashable key.", "Allow the given job type to be executed.\n@param jobName the job name as seen\n@param jobType the job type to allow", "given the groupName, it returns the groupId\n\n@param groupName name of group\n@return ID of group", "For given field name get the actual hint message" ]
public <E extends Enum<E> & FieldType> E nextField(Class<E> clazz, UserFieldDataType type) { for (String name : m_names[type.ordinal()]) { int i = NumberHelper.getInt(m_counters.get(name)) + 1; try { E e = Enum.valueOf(clazz, name + i); m_counters.put(name, Integer.valueOf(i)); return e; } catch (IllegalArgumentException ex) { // try the next name } } // no more fields available throw new IllegalArgumentException("No fields for type " + type + " available"); }
[ "Generate the next available field for a user defined field.\n\n@param <E> field type class\n@param clazz class of the desired field enum\n@param type user defined field type.\n@return field of specified type" ]
[ "Writes references that have been added recently. Auxiliary triples that\nare generated for serializing snaks in references will be written right\nafterwards. This will also trigger any other auxiliary triples to be\nwritten that the snak converter object may have buffered.\n\n@throws RDFHandlerException\nif there was a problem writing the restrictions", "Use this API to delete nsacl6 resources of given names.", "Callback when each frame in the indicator animation should be drawn.", "Returns an interval representing the subtraction of the\ngiven interval from this one.\n@param other interval to subtract from this one\n@return result of subtraction", "Calculates the bounds of the non-transparent parts of the given image.\n@param p the image\n@return the bounds of the non-transparent area", "get the underlying wrapped connection\n@return OTMConnection raw connection to the OTM.", "Exchange an auth token from the old Authentication API, to an OAuth access token.\n\nCalling this method will delete the auth token used to make the request.\n\n@param authToken\n@throws FlickrException\n@see \"http://www.flickr.com/services/api/flickr.auth.oauth.getAccessToken.html\"", "Parse rate.\n\n@param value rate value\n@return Rate instance", "Recursively builds the VFS entry bean for the quick filtering function in the folder tab.<p<\n\n@param resource the resource\n@param childMap map from parent to child resources\n@param filterMatches the resources matching the filter\n@param parentPaths root paths of resources which are not leaves\n@param isRoot true if this the root node\n\n@return the VFS entry bean for the client\n\n@throws CmsException if something goes wrong" ]
int getDelay(int n) { int delay = -1; if ((n >= 0) && (n < header.frameCount)) { delay = header.frames.get(n).delay; } return delay; }
[ "Gets display duration for specified frame.\n\n@param n int index of frame.\n@return delay in milliseconds." ]
[ "Use this API to login into Netscaler.\n@param username Username\n@param password Password for the Netscaler.\n@param timeout timeout for netscaler session.Default is 1800secs\n@return status of the operation performed.\n@throws Exception nitro exception is thrown.", "Recursively construct a LblTree from DOM tree\n\n@param walker tree walker for DOM tree traversal\n@return tree represented by DOM tree", "Use this API to unset the properties of clusterinstance resource.\nProperties that need to be unset are specified in args array.", "Copy one Gradient into another.\n@param g the Gradient to copy into", "Use this API to fetch vlan_nsip6_binding resources of given name .", "Binds the Identities Primary key values to the statement.", "Called recursively to renumber child task IDs.\n\n@param parentTask parent task instance\n@param currentID current task ID\n@return updated current task ID", "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "Sets the specified long attribute to the specified value.\n\n@param name name of the attribute\n@param value value of the attribute\n@since 1.9.0" ]
public <U> CoreRemoteMongoIterable<U> map(final Function<ResultT, U> mapper) { return new CoreRemoteMappingIterable<>(this, mapper); }
[ "Maps this iterable from the source document type to the target document type.\n\n@param mapper a function that maps from the source to the target document type\n@param <U> the target document type\n@return an iterable which maps T to U" ]
[ "Used to map from a var data key to a field type. Note this\nis designed for diagnostic use only, and uses an inefficient search.\n\n@param key var data key\n@return field type", "Invoke a method through reflection.\nFalls through to using the Invoker to call the method in case the reflection call fails..\n\n@param object the object on which to invoke a method\n@param methodName the name of the method to invoke\n@param parameters the parameters of the method call\n@return the result of the method call", "Use this API to delete nsip6.", "Will make the thread ready to run once again after it has stopped.", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "Returns the spread value such that the sum of cash flows of the bond discounted with a given reference curve\nwith the additional spread coincides with a given price.\n\n@param bondPrice The target price as double.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param model The model under which the product is valued.\n@return The optimal spread value.", "Removes a watermark from the item.\nIf the item did not have a watermark applied to it, a 404 Not Found will be returned by API.\n@param itemUrl url template for the item.", "Publish finish events for each of the specified query types\n\n<pre>\n{@code\nRequestEvents.start(\"get\", 1l, bus, \"typeA\", \"custom\");\ntry {\nreturn \"ok\";\n} finally {\nRequestEvents.finish(\"get\", 1l, bus, \"typeA\", \"custom\");\n}\n\n}\n</pre>\n\n\n@param query Completed query\n@param correlationId Identifier\n@param bus EventBus to post events to\n@param types Query types to post to event bus", "Makes http GET request.\n@param url url to makes request to\n@param params data to add to params field\n@return {@link okhttp3.Response}\n@throws RequestException\n@throws LocalOperationException" ]
public void setPath(int pathId, String path) { PreparedStatement statement = null; try (Connection sqlConnection = sqlService.getConnection()) { statement = sqlConnection.prepareStatement( "UPDATE " + Constants.DB_TABLE_PATH + " SET " + Constants.PATH_PROFILE_ACTUAL_PATH + " = ? " + " WHERE " + Constants.GENERIC_ID + " = ?" ); statement.setString(1, path); statement.setInt(2, pathId); statement.executeUpdate(); statement.close(); } catch (SQLException e) { e.printStackTrace(); } finally { try { if (statement != null) { statement.close(); } } catch (Exception e) { } } }
[ "Sets the actual path for this ID\n\n@param pathId ID of path\n@param path value of path" ]
[ "Tries to load the custom error page at the given rootPath.\n@param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!)\n@param req the current request\n@param res the current response\n@param rootPath the VFS root path to the error page resource\n@return a flag, indicating if the error page could be loaded", "Creates the event type.\n\n@param type the EventEnumType\n@return the event type", "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", "Performs all actions that have been configured.", "Adds an option to the Jvm options\n\n@param value the option to add", "Prints some basic documentation about this program.", "Cancel a particular download in progress. Returns 1 if the download Id is found else returns 0.\n\n@param downloadId\n@return int", "Returns value as it appeared on the command line with escape sequences\nand system properties not resolved. The variables, though, are resolved\nduring the initial parsing of the command line.\n\n@param parsedLine parsed command line\n@param required whether the argument is required\n@return argument value as it appears on the command line\n@throws CommandFormatException in case the required argument is missing", "Returns the value of a property of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the property\"\[email protected] name=\"default\" optional=\"true\" description=\"A default value to use if the property\nis not defined\"" ]
private SiteRecord getSiteRecord(String siteKey) { SiteRecord siteRecord = this.siteRecords.get(siteKey); if (siteRecord == null) { siteRecord = new SiteRecord(siteKey); this.siteRecords.put(siteKey, siteRecord); } return siteRecord; }
[ "Returns a site record for the site of the given name, creating a new one\nif it does not exist yet.\n\n@param siteKey\nthe key of the site\n@return the suitable site record" ]
[ "Use this API to fetch ipset resource of given name .", "Obtains a Symmetry010 zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Symmetry010 zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Gets the declared bean type\n\n@return The bean type", "Searches the model for all variable assignments and makes a default map of those variables, setting them to \"\"\n\n@return the default variable assignment map", "Use this API to unset the properties of responderparam resource.\nProperties that need to be unset are specified in args array.", "Execute all recorded tasks.\n\n@param context the patch context\n@param callback the finalization callback\n@throws Exception", "Determines a histogram of contiguous runs of partitions within a zone.\nI.e., for each run length of contiguous partitions, how many such runs\nare there.\n\nDoes not correctly address \"wrap around\" of partition IDs (i.e., the fact\nthat partition ID 0 is \"next\" to partition ID 'max')\n\n@param cluster\n@param zoneId\n@return map of length of contiguous run of partitions to count of number\nof such runs.", "Retrieve the value of a single-valued parameter.\n\n@param key\n@param defaultValue\n@param cnx", "get the real data without message header\n@return message data(without header)" ]
public static String getSolrRangeString(String from, String to) { // If a parameter is not initialized, use the asterisk '*' operator if (CmsStringUtil.isEmptyOrWhitespaceOnly(from)) { from = "*"; } if (CmsStringUtil.isEmptyOrWhitespaceOnly(to)) { to = "*"; } return String.format("[%s TO %s]", from, to); }
[ "Returns a string that represents a valid Solr query range.\n\n@param from Lower bound of the query range.\n@param to Upper bound of the query range.\n@return String that represents a Solr query range." ]
[ "This method takes the textual version of a priority\nand returns an appropriate instance of this class. Note that unrecognised\nvalues are treated as medium priority.\n\n@param locale target locale\n@param priority text version of the priority\n@return Priority class instance", "Use this API to add route6 resources.", "Throws one RendererException if the content parent or layoutInflater are null.", "Adds all items from the iterable to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed", "Returns the path in the RFS where the Solr spellcheck files reside.\n@return String representation of Solrs spellcheck RFS path.", "Converts an image in RGB mode to BINARY mode\n\n@param img image\n@param threshold grays cale threshold\n@return new MarvinImage instance in BINARY mode", "Print an extended attribute date value.\n\n@param value date value\n@return string representation", "Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.\n\n@param s a Penn TreeBank POS tag.", "Processes graphical indicator definitions for each column." ]
public static void saveBin(DMatrix A, String fileName) throws IOException { FileOutputStream fileStream = new FileOutputStream(fileName); ObjectOutputStream stream = new ObjectOutputStream(fileStream); try { stream.writeObject(A); stream.flush(); } finally { // clean up try { stream.close(); } finally { fileStream.close(); } } }
[ "Saves a matrix to disk using Java binary serialization.\n\n@param A The matrix being saved.\n@param fileName Name of the file its being saved at.\n@throws java.io.IOException" ]
[ "Returns true if the default profile for the specified uuid is active\n\n@return true if active, otherwise false", "Create a Renderer getting a copy from the prototypes collection.\n\n@param content to render.\n@param parent used to inflate the view.\n@return a new renderer.", "Retrieves a prompt value.\n\n@param field field type\n@param block criteria data block\n@return prompt value", "Indicates that contextual session bean instance has been constructed.", "Convert the Primavera string representation of a UUID into a Java UUID instance.\n\n@param value Primavera UUID\n@return Java UUID instance", "Prepare a parallel HTTP OPTION Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Creates a remove operation.\n\n@param address the address for the operation\n@param recursive {@code true} if the remove should be recursive, otherwise {@code false}\n\n@return the operation", "Return a Halton number, sequence starting at index = 0, base &gt; 1.\n\n@param index The index of the sequence.\n@param base The base of the sequence. Has to be greater than one (this is not checked).\n@return The Halton number.", "Resolve the given string using any plugin and the DMR resolve method" ]
private static String decode(String s) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); if (ch == '%') { baos.write(hexToInt(s.charAt(i + 1)) * 16 + hexToInt(s.charAt(i + 2))); i += 2; continue; } baos.write(ch); } try { return new String(baos.toByteArray(), "UTF-8"); } catch (UnsupportedEncodingException e) { throw new Error(e); // impossible } }
[ "Decode '%HH'." ]
[ "Adds the class descriptor to this model.\n\n@param classDef The class descriptor\n@return The class descriptor or <code>null</code> if there is no such class in this model", "Places the real component of the input matrix into the output matrix.\n\n@param input Complex matrix. Not modified.\n@param output real matrix. Modified.", "Selects a specific vertex and fragment shader to use for rendering.\n\nIf a shader template has been specified, it is used to generate\na vertex and fragment shader based on mesh attributes, bound textures\nand light sources. If the textures bound to the material are changed\nor a new light source is added, this function must be called again\nto select the appropriate shaders. This function may cause recompilation\nof shaders which is quite slow.\n\n@param scene scene being rendered\n@see GVRShaderTemplate GVRMaterialShader.getShaderType", "Copy a subsequence of Bytes to specific byte array. Uses the specified offset in the dest byte\narray to start the copy.\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)\n@param dest destination array\n@param destPos starting position in the destination data.\n@exception IndexOutOfBoundsException if copying would cause access of data outside array\nbounds.\n@exception NullPointerException if either <code>src</code> or <code>dest</code> is\n<code>null</code>.\n@since 1.1.0", "Flag that the processor has started execution.\n\n@param processorGraphNode the node that has started.", "End the script block, adding a return value statement\n@param value the value to return\n@return the new {@link LuaScriptBlock} instance", "Use this API to Import sslfipskey.", "Get an array of property ids.\n\nNot all property ids need be returned. Those properties\nwhose ids are not returned are considered non-enumerable.\n\n@return an array of Objects. Each entry in the array is either\na java.lang.String or a java.lang.Number", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node" ]
public static lbmonbindings_servicegroup_binding[] get(nitro_service service, String monitorname) throws Exception{ lbmonbindings_servicegroup_binding obj = new lbmonbindings_servicegroup_binding(); obj.set_monitorname(monitorname); lbmonbindings_servicegroup_binding response[] = (lbmonbindings_servicegroup_binding[]) obj.get_resources(service); return response; }
[ "Use this API to fetch lbmonbindings_servicegroup_binding resources of given name ." ]
[ "Restarts a single dyno\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param dynoId the unique identifier of the dyno to restart", "Format the label text.\n\n@param scaleUnit The unit used for the scalebar.\n@param value The scale value.\n@param intervalUnit The scaled unit for the intervals.", "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", "Sets the fieldConversion.\n@param fieldConversionClassName The fieldConversion to set", "Checks that arguments and parameter types match.\n@param params method parameters\n@param args type arguments\n@return -1 if arguments do not match, 0 if arguments are of the exact type and >0 when one or more argument is\nnot of the exact type but still match", "prefix length in this section is ignored when converting to MAC", "Set the method arguments for an enabled method override\n\n@param pathName Path name\n@param methodName Fully qualified method name\n@param ordinal 1-based index of the override within the overrides of type methodName\n@param arguments Array of arguments to set(specify all arguments)\n@return true if success, false otherwise", "Writes an activity to a PM XML file.\n\n@param mpxj MPXJ Task instance", "Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output\ntensors" ]
public RedwoodConfiguration hideChannels(final Object[] channels){ tasks.add(new Runnable() { public void run() { Redwood.hideChannels(channels); } }); return this; }
[ "Hide the following channels.\n@param channels The names of the channels to hide.\n@return this" ]
[ "Gets the matching beans for binding criteria from a list of beans\n\n@param resolvable the resolvable\n@return A set of filtered beans", "used for upload progress", "This method is called to alert project listeners to the fact that\na resource assignment has been read from a project file.\n\n@param resourceAssignment resourceAssignment instance", "Returns the last available version of an artifact\n\n@param gavc String\n@return String", "Use this API to add nsacl6 resources.", "Aliases variables with an unknown type.\n@param variable The variable being aliased\n@param name Name of the variable", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest.", "Sets orientation of loopbar\n\n@param orientation int value of orientation. Must be one of {@link Orientation}", "Sets the appropriate headers to response of this request.\n\n@param response The HttpServletResponse response object." ]
public EventsRequest<Event> get(String resource, String sync) { return new EventsRequest<Event>(this, Event.class, "/events", "GET") .query("resource", resource) .query("sync", sync); }
[ "Returns any events for the given resource ID since the last sync token\n\n@param resource Globally unique identifier for the resource.\n@param sync Sync token provided by a previous call to the events API\n@return Request object" ]
[ "Removes a design document using DesignDocument object from the database.\n\n@param designDocument the design document object to be removed\n@return {@link DesignDocument}", "Initialize the connection with the specified properties in OJB\nconfiguration files and platform depended properties.\nInvoke this method after a NEW connection is created, not if re-using from pool.\n\n@see org.apache.ojb.broker.platforms.PlatformFactory\n@see org.apache.ojb.broker.platforms.Platform", "Get a list of tags for the specified photo.\n\n<p>\nThis method does not require authentication.\n</p>\n\n@param photoId\nThe photo ID\n@return The collection of Tag objects", "Cretae a BufferedImage from an ImageProducer.\n@param producer the ImageProducer\n@return a new TYPE_INT_ARGB BufferedImage", "Reports that a node is faulted.\n\n@param faulted the node faulted\n@param throwable the reason for fault", "Gets the end.\n\n@return the end", "Create the exception assignment map.\n\n@param rows calendar rows\n@return exception assignment map", "Computes the cross product of v1 and v2 and places the result in this\nvector.\n\n@param v1\nleft-hand vector\n@param v2\nright-hand vector", "Handles the deletion of a key.\n@param key the deleted key.\n@return <code>true</code> if the deletion was successful, <code>false</code> otherwise." ]
public static void addItemsHandled(String handledItemsType, int handledItemsNumber) { JobLogger jobLogger = (JobLogger) getInstance(); if (jobLogger == null) { return; } jobLogger.addItemsHandledInstance(handledItemsType, handledItemsNumber); }
[ "Number of failed actions in scheduler" ]
[ "Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using\nthe file system location.\n\n@param content the path containing the content\n\n@return the deployment", "Setter for the file format.\n@param fileFormat File format the configuration file is in.", "This method is called to alert project listeners to the fact that\na resource has been written to a project file.\n\n@param resource resource instance", "Adds all items from the iterator to the Collection.\n\n@param self the collection\n@param items the items to add\n@return true if the collection changed", "Constructs the convex hull of a set of points whose coordinates are given\nby an array of doubles.\n\n@param coords\nx, y, and z coordinates of each input point. The length of\nthis array must be at least three times <code>nump</code>.\n@param nump\nnumber of input points\n@throws IllegalArgumentException\nthe number of input points is less than four or greater than\n1/3 the length of <code>coords</code>, or the points appear\nto be coincident, colinear, or coplanar.", "Opens file for editing.\n\n@param currentChangeListId The current change list id to open the file for editing at\n@param filePath The filePath which contains the file we need to edit\n@throws IOException Thrown in case of perforce communication errors\n@throws InterruptedException", "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.", "Add another store destination to an existing streaming session\n\n\n@param store the name of the store to stream to", "Write the domain controller data to a byte buffer.\n\n@param data the domain controller data\n@return the byte buffer\n@throws Exception" ]
public static aaapreauthenticationpolicy_binding get(nitro_service service, String name) throws Exception{ aaapreauthenticationpolicy_binding obj = new aaapreauthenticationpolicy_binding(); obj.set_name(name); aaapreauthenticationpolicy_binding response = (aaapreauthenticationpolicy_binding) obj.get_resource(service); return response; }
[ "Use this API to fetch aaapreauthenticationpolicy_binding resource of given name ." ]
[ "Creates the project used to import module resources and sets it on the CmsObject.\n\n@param cms the CmsObject to set the project on\n@param module the module\n@return the created project\n@throws CmsException if something goes wrong", "Returns a representation of the date from the value attributes as ISO\n8601 encoding.\n\n@param value\n@return ISO 8601 value (String)", "A henson navigator is a class that helps a consumer to consume the navigation api that it\ndeclares in its dependencies. The henson navigator will wrap the intent builders. Thus, a\nhenson navigator, is driven by consumption of intent builders, whereas the henson classes are\ndriven by the production of an intent builder.\n\n<p>This task is created per android variant:\n\n<ul>\n<li>we scan the variant compile configuration for navigation api dependencies\n<li>we generate a henson navigator class for this variant that wraps the intent builders\n</ul>\n\n@param variant the variant for which to create a builder.\n@param hensonNavigatorPackageName the package name in which we create the class.", "Create a new queued pool using the defaults for key of type K, request of\ntype R, and value of Type V.\n\n@param factory The factory that creates objects\n@return The created pool", "Create the label for a grid line.\n\n@param value the value of the line\n@param unit the unit that the value is in", "Write the summary file, if requested.", "This handler will be triggered when there's no search result", "Resolve the given class if it is a primitive class,\nreturning the corresponding primitive wrapper type instead.\n@param clazz the class to check\n@return the original class, or a primitive wrapper for the original primitive type", "The grammar elements that may occur at the given offset." ]
@Override public Object invoke(Object self, Method method, Method proceed, Object[] args) throws Throwable { if ("destroy".equals(method.getName()) && Marker.isMarker(0, method, args)) { if (bean.getEjbDescriptor().isStateful()) { if (!reference.isRemoved()) { reference.remove(); } } return null; } if (!bean.isClientCanCallRemoveMethods() && isRemoveMethod(method)) { throw BeanLogger.LOG.invalidRemoveMethodInvocation(method); } Class<?> businessInterface = getBusinessInterface(method); if (reference.isRemoved() && isToStringMethod(method)) { return businessInterface.getName() + " [REMOVED]"; } Object proxiedInstance = reference.getBusinessObject(businessInterface); if (!Modifier.isPublic(method.getModifiers())) { throw new EJBException("Not a business method " + method.toString() +". Do not call non-public methods on EJB's."); } Object returnValue = Reflections.invokeAndUnwrap(proxiedInstance, method, args); BeanLogger.LOG.callProxiedMethod(method, proxiedInstance, args, returnValue); return returnValue; }
[ "Looks up the EJB in the container and executes the method on it\n\n@param self the proxy instance.\n@param method the overridden method declared in the super class or\ninterface.\n@param proceed the forwarder method for invoking the overridden method. It\nis null if the overridden method is abstract or declared in the\ninterface.\n@param args an array of objects containing the values of the arguments\npassed in the method invocation on the proxy instance. If a\nparameter type is a primitive type, the type of the array\nelement is a wrapper class.\n@return the resulting value of the method invocation.\n@throws Throwable if the method invocation fails." ]
[ "Converts an Accumulo Range to a Fluo Span\n\n@param range Range\n@return Span", "Ask the specified player for a Folder menu for exploring its raw filesystem.\nThis is a request for unanalyzed items, so we do a typed menu request.\n\n@param slotReference the player and slot for which the menu is desired\n@param sortOrder the order in which responses should be sorted, 0 for default, see Section 6.11.1 of the\n<a href=\"https://github.com/Deep-Symmetry/dysentery/blob/master/doc/Analysis.pdf\">Packet Analysis\ndocument</a> for details\n@param folderId identifies the folder whose contents should be listed, use -1 to get the root folder\n\n@return the entries in the folder menu\n\n@throws Exception if there is a problem obtaining the menu", "Mbeans for SLOP_UPDATE", "Checks the day, month and year are equal.", "Retrieve and validate the key from the REST request.\n\n@return true if present, false if missing", "Generate an IKVM map file.\n\n@param mapFileName map file name\n@param jarFile jar file containing code to be mapped\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws XMLStreamException\n@throws ClassNotFoundException\n@throws IntrospectionException", "Set the view frustum to pick against from the minimum and maximum corners.\nThe viewpoint of the frustum is the center of the scene object\nthe picker is attached to. The view direction is the forward\ndirection of that scene object. The frustum will pick what a camera\nattached to the scene object with that view frustum would see.\nIf the frustum is not attached to a scene object, it defaults to\nthe view frustum of the main camera of the scene.\n\n@param frustum array of 6 floats as follows:\nfrustum[0] = left corner of frustum\nfrustum[1] = bottom corner of frustum\nfrustum[2] = front corner of frustum (near plane)\nfrustum[3] = right corner of frustum\nfrustum[4] = top corner of frustum\nfrustum[5 = back corner of frustum (far plane)", "Get a property as a float or throw an exception.\n\n@param key the property name", "Prints a balance analysis to a file.\n\n@param outputDirName\n@param baseFileName suffix '.analysis' is appended to baseFileName.\n@param partitionBalance" ]
private static void writeCharSequence(CharSequence seq, CharBuf buffer) { if (seq.length() > 0) { buffer.addJsonEscapedString(seq.toString()); } else { buffer.addChars(EMPTY_STRING_CHARS); } }
[ "Serializes any char sequence and writes it into specified buffer." ]
[ "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Set the permissions for the photo.\n\nThis method requires authentication with 'write' permission.\n\n@param photoId\nThe photo ID\n@param permissions\nThe permissions object\n@throws FlickrException", "Add a rollback loader for a give patch.\n\n@param patchId the patch id.\n@param target the patchable target\n@throws XMLStreamException\n@throws IOException", "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.", "Creates a new instance with the given key and value.\nMay be used instead of the constructor for convenience reasons.\n\n@param k\nthe key. May be <code>null</code>.\n@param v\nthe value. May be <code>null</code>.\n@return a newly created pair. Never <code>null</code>.\n@since 2.3", "Retrieve a node list based on an XPath expression.\n\n@param document XML document to process\n@param expression compiled XPath expression\n@return node list", "gets the profile_name associated with a specific id", "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", "Use this API to delete nsip6." ]
private BasicCredentialsProvider getCredentialsProvider() { return new BasicCredentialsProvider() { private Set<AuthScope> authAlreadyTried = Sets.newHashSet(); @Override public Credentials getCredentials(AuthScope authscope) { if (authAlreadyTried.contains(authscope)) { return null; } authAlreadyTried.add(authscope); return super.getCredentials(authscope); } }; }
[ "With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way." ]
[ "Set a custom response for this path\n\n@param pathName name of path\n@param customResponse value of custom response\n@return true if success, false otherwise\n@throws Exception exception", "This method inserts a name value pair into internal storage.\n\n@param field task field\n@param value attribute value", "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?", "Extract all operations and attributes from the given object that have\nbeen annotated with the Jmx annotation. Operations are all methods that\nare marked with the JmxOperation annotation.\n\n@param object The object to process\n@return An array of operations taken from the object", "Read an optional Date value form a JSON value.\n@param val the JSON value that should represent the Date as long value in a string.\n@return the Date from the JSON or null if reading the date fails.", "Creates a new SimpleMatrix with the specified DMatrixRMaj used as its internal matrix. This means\nthat the reference is saved and calls made to the returned SimpleMatrix will modify the passed in DMatrixRMaj.\n\n@param internalMat The internal DMatrixRMaj of the returned SimpleMatrix. Will be modified.", "Adds the specified list of users as members of the project. Returns the updated project record.\n\n@param project The project to add members to.\n@return Request object", "Methods returns InetAddress for localhost\n\n@return InetAddress of the localhost\n@throws UnknownHostException if localhost could not be resolved", "Read a text stream into a single string.\n\n@param inputStream\nStream containing text. Will be closed on exit.\n@return The contents, or null on error." ]
private void addExceptionRange(ProjectCalendarException exception, Date start, Date finish) { if (start != null && finish != null) { exception.addRange(new DateRange(start, finish)); } }
[ "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish" ]
[ "Writes the buffer contents to the given byte channel.\n\n@param channel\n@throws IOException", "Utility function that fetches node ids.\n\n@param adminClient An instance of AdminClient points to given cluster\n@return Node ids in cluster", "Output method that sends a subscription confirmation for the subscriber to avoid DoS attacks, or false subscription.\n\n@param sr\n@return True case the subscription was confirmed, or False otherwise\n@throws org.ow2.chameleon.fuchsia.push.base.hub.exception.SubscriptionOriginVerificationException", "Retrieve and validate the zone id value from the REST request.\n\"X-VOLD-Zone-Id\" is the zone id header.\n\n@return valid zone id or -1 if there is no/invalid zone id", "Creates a file\n\n@param folder File\n@param fileName String\n@throws IOException", "Use this API to delete cacheselector resources of given names.", "Use this API to fetch tmtrafficpolicy_lbvserver_binding resources of given name .", "This method extracts data for a single resource from a GanttProject file.\n\n@param gpResource resource data", "Removes the duplicate node list.\n\n@param list\nthe list\n@return the int" ]
public <T extends CanvasReader> T getReader(Class<T> type, OauthToken oauthToken, Integer paginationPageSize) { LOG.debug("Factory call to instantiate class: " + type.getName()); RestClient restClient = new RefreshingRestClient(); @SuppressWarnings("unchecked") Class<T> concreteClass = (Class<T>)readerMap.get(type); if (concreteClass == null) { throw new UnsupportedOperationException("No implementation for requested interface found: " + type.getName()); } LOG.debug("got class: " + concreteClass); try { Constructor<T> constructor = concreteClass.getConstructor(String.class, Integer.class, OauthToken.class, RestClient.class, Integer.TYPE, Integer.TYPE, Integer.class, Boolean.class); return constructor.newInstance(canvasBaseUrl, CANVAS_API_VERSION, oauthToken, restClient, connectTimeout, readTimeout, paginationPageSize, false); } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException | InstantiationException e) { throw new UnsupportedOperationException("Unknown error instantiating the concrete API class: " + type.getName(), e); } }
[ "Get a reader implementation class to perform API calls with while specifying\nan explicit page size for paginated API calls. This gets translated to a per_page=\nparameter on API requests. Note that Canvas does not guarantee it will honor this page size request.\nThere is an explicit maximum page size on the server side which could change. The default page size\nis 10 which can be limiting when, for example, trying to get all users in a 800 person course.\n@param type Interface type you wish to get an implementation for\n@param oauthToken An OAuth token to use for authentication when making API calls\n@param paginationPageSize Requested pagination page size\n@param <T> The reader type to request an instance of\n@return An instance of the requested reader class" ]
[ "Use this API to unset the properties of protocolhttpband resource.\nProperties that need to be unset are specified in args array.", "Tests if this partition has hit a threshold and signal to the pool watch thread to create new connections\n@param connectionPartition to test for.", "Returns a list of bindings where provided queue is the destination.\n\n@param vhost vhost of the exchange\n@param queue destination queue name\n@return list of bindings", "Saves messages to a propertyvfsbundle file.\n\n@throws CmsException thrown if writing to the file fails.", "Gets the Kullback Leibler divergence.\n\n@param p P vector.\n@param q Q vector.\n@return The Kullback Leibler divergence between u and v.", "Use this API to fetch a aaaglobal_binding resource .", "Launch Sample Activity residing in the same module", "Builds a batch-fetch capable loader based on the given persister, lock-options, etc.\n\n@param persister The entity persister\n@param batchSize The maximum number of ids to batch-fetch at once\n@param lockOptions The lock options\n@param factory The SessionFactory\n@param influencers Any influencers that should affect the built query\n@param innerEntityLoaderBuilder Builder of the entity loader receiving the subset of batches\n\n@return The loader.", "Returns true if required properties for MiniFluo are set" ]
public static base_responses delete(nitro_service client, String hostname[]) throws Exception { base_responses result = null; if (hostname != null && hostname.length > 0) { dnsaaaarec deleteresources[] = new dnsaaaarec[hostname.length]; for (int i=0;i<hostname.length;i++){ deleteresources[i] = new dnsaaaarec(); deleteresources[i].hostname = hostname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete dnsaaaarec resources of given names." ]
[ "Extract name of the resource from a resource ID.\n@param id the resource ID\n@return the name of the resource", "Get the sub registry for the hosts.\n\n@param range the version range\n@return the sub registry", "This method is used to calculate the duration of work between two fixed\ndates according to the work schedule defined in the named calendar.\nThe name of the calendar to be used is passed as an argument.\n\n@param calendarName name of the calendar to use\n@param startDate start of the period\n@param endDate end of the period\n@return new Duration object\n@throws MPXJException normally when no Standard calendar is available\n@deprecated use calendar.getDuration(startDate, endDate)", "Read configuration from zookeeper", "Return the list of all the module submodules\n\n@param module\n@return List<DbModule>", "Removes the supplied marker from the map.\n\n@param marker", "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}.", "Gets a SerialMessage with the BASIC GET command\n@return the serial message", "why isn't this functionality in enum?" ]
public static void setTime(Calendar calendar, int hourOfDay, int minute, int second, int millisecond) { calendar.set(Calendar.HOUR_OF_DAY, hourOfDay); calendar.set(Calendar.MINUTE, minute); calendar.set(Calendar.SECOND, second); calendar.set(Calendar.MILLISECOND, millisecond); }
[ "Sets hour, minutes, seconds and milliseconds to the given values. Leaves date info untouched." ]
[ "Process the given key and value. First validate the value and check if there's no different value for the same key in the same source - invalid and\ndifferent values are treated as a deployment problem.\n\n@param properties\n@param key\n@param value", "Use this API to update filterhtmlinjectionparameter.", "Build the query to perform a batched read get orderBy settings from CollectionDescriptor\n\n@param ids Collection containing all identities of objects of the ONE side", "Concats an element and an array.\n\n@param firstElement the first element\n@param array the array\n@param <T> the type of the element in the array\n@return a new array created adding the element in the second array after the first element", "Extract data for a single predecessor.\n\n@param task parent task\n@param row Synchro predecessor data", "Create a patch element for the rollback patch.\n\n@param entry the entry\n@return the new patch element", "Figure out, based on how much time has elapsed since we received an update, and the playback position,\nspeed, and direction at the time of that update, where the player will be now.\n\n@param update the most recent update received from a player\n@param currentTimestamp the nanosecond timestamp representing when we want to interpolate the track's position\n\n@return the playback position we believe that player has reached now", "Display web page, but no user interface - close", "Use this API to fetch authenticationnegotiatepolicy_binding resource of given name ." ]
synchronized void started() { try { if(isConnected()) { channelHandler.executeRequest(new ServerStartedRequest(), null).getResult().await(); } } catch (Exception e) { ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to send started notification"); } }
[ "Send the started notification" ]
[ "checks if there is a writelock for transaction tx on object obj.\nReturns true if so, else false.", "Polls the next ParsedWord from the stack.\n\n@return next ParsedWord", "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)", "Gets the Correlation distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Correlation distance between x and y.", "Prepare a parallel HTTP GET 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", "called when we are completed finished with using the TcpChannelHub", "Save the values to the bundle descriptor.\n@throws CmsException thrown if saving fails.", "Log a warning for the resource at the provided address and the given attributes. The detail message is a default\n'Attributes are not understood in the target model version and this resource will need to be ignored on the target host.'\n\n@param address where warning occurred\n@param attributes attributes we are warning about", "Use this API to fetch gslbsite resources of given names ." ]
synchronized void asyncReconnect(final URI reconnectUri, String authKey, final ReconnectCallback callback) { if (getState() != State.OPEN) { return; } // Update the configuration with the new credentials final ProtocolConnectionConfiguration config = ProtocolConnectionConfiguration.copy(configuration); config.setCallbackHandler(createClientCallbackHandler(userName, authKey)); config.setUri(reconnectUri); this.configuration = config; final ReconnectRunner reconnectTask = this.reconnectRunner; if (reconnectTask == null) { final ReconnectRunner task = new ReconnectRunner(); task.callback = callback; task.future = executorService.submit(task); } else { reconnectTask.callback = callback; } }
[ "This continuously tries to reconnect in a separate thread and will only stop if the connection was established\nsuccessfully or the server gets shutdown. If there is currently a reconnect task active the connection paramaters\nand callback will get updated.\n\n@param reconnectUri the updated connection uri\n@param authKey the updated authentication key\n@param callback the current callback" ]
[ "Throws an exception if at least one results directory is missing.", "This method is called to format a task type.\n\n@param value task type value\n@return formatted task type", "Find the number of Strings matched to the given Matcher.\n\n@param matcher a Matcher\n@return int the number of Strings matched to the given matcher.\n@since 1.0", "Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator.", "Delete the first n items from the list\n\n@param newStart the logsegment who's index smaller than newStart will be deleted.\n@return the deleted segment", "Deletes the schema of an existing metadata template.\n\n@param api the API connection to be used\n@param scope the scope of the object\n@param template Unique identifier of the template", "Use this API to fetch statistics of gslbservice_stats resource of given name .", "Minimize the function starting at the given initial point.", "Creates a new undeploy description.\n\n@param deploymentDescription the deployment description to copy\n\n@return the description" ]
public HttpServer build() { checkNotNull(baseUri); StandaloneWebConverterConfiguration configuration = makeConfiguration(); // The configuration has to be configured both by a binder to make it injectable // and directly in order to trigger life cycle methods on the deployment container. ResourceConfig resourceConfig = ResourceConfig .forApplication(new WebConverterApplication(configuration)) .register(configuration); if (sslContext == null) { return GrizzlyHttpServerFactory.createHttpServer(baseUri, resourceConfig); } else { return GrizzlyHttpServerFactory.createHttpServer(baseUri, resourceConfig, true, new SSLEngineConfigurator(sslContext)); } }
[ "Creates the conversion server that is specified by this builder.\n\n@return The conversion server that is specified by this builder." ]
[ "Adds the file to the tar archive represented by output stream. It's caller's responsibility to close output stream\nproperly.\n\n@param out target archive.\n@param source file to be added.\n@param fileSize size of the file (which is known in most cases).\n@throws IOException in case of any issues with underlying store.", "This produces a string with no compressed segments and all segments of full length,\nwhich is 3 characters for IPv4 segments.", "Use this API to update cacheselector.", "Handles retrieval of primitive char type.\n\n@param field required field\n@param defaultValue default value if field is missing\n@return char value", "Remove all scene objects.", "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane", "to do with XmlId value being strictly of type 'String'", "Read a text file resource into a single string\n\n@param context\nA non-null Android Context\n@param resourceId\nAn Android resource id\n@return The contents, or null on error.", "Returns all base types.\n\n@return An iterator of the base types" ]
public static void awaitRoute(URL routeUrl, int timeout, TimeUnit timeoutUnit, int repetitions, int... statusCodes) { AtomicInteger successfulAwaitsInARow = new AtomicInteger(0); await().atMost(timeout, timeoutUnit).until(() -> { if (tryConnect(routeUrl, statusCodes)) { successfulAwaitsInARow.incrementAndGet(); } else { successfulAwaitsInARow.set(0); } return successfulAwaitsInARow.get() >= repetitions; }); }
[ "Waits for the timeout duration until the url responds with correct status code\n\n@param routeUrl URL to check (usually a route one)\n@param timeout Max timeout value to await for route readiness.\nIf not set, default timeout value is set to 5.\n@param timeoutUnit TimeUnit used for timeout duration.\nIf not set, Minutes is used as default TimeUnit.\n@param repetitions How many times in a row the route must respond successfully to be considered available.\n@param statusCodes list of status code that might return that service is up and running.\nIt is used as OR, so if one returns true, then the route is considered valid.\nIf not set, then only 200 status code is used." ]
[ "Entry point for processing filter definitions.\n\n@param properties project properties\n@param filters project filters\n@param fixedData filter fixed data\n@param varData filter var data", "Load model from file\n\n@param gvrContext Valid {@link GVRContext} instance\n@param modelFile Path to the model's file, relative to the {@code assets} directory\n@return root object The root {@link GVRSceneObject} of the model\n@throws IOException If reading the model file fails", "The type descriptor for a method node is a string containing the name of the method, its return type,\nand its parameter types in a canonical form. For simplicity, I'm using the format of a Java declaration\nwithout parameter names.\n\n@return the type descriptor", "Pops the top event off the current event stack. This action has to be\nperformed immediately after the event has been dispatched to all\nlisteners.\n\n@param <L> Type of the listener.\n@param expected The Event which is expected at the top of the stack.\n@see #pushEvent(Event)", "Recurses the given folder and creates the FileModels vertices for the child files to the graph.", "Use this API to unset the properties of nsconfig resource.\nProperties that need to be unset are specified in args array.", "Add a property with the given name and the given list of values to this Properties object. Name\nand values are trimmed before the property is added.\n\n@param name the name of the property, must not be <code>null</code>.\n@param values the values of the property, must no be <code>null</code>,\nnone of the values must be <code>null</code>", "Sets the target translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param targetTranslator translator", "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" ]
public void set(int index, T object) { synchronized (mLock) { if (mOriginalValues != null) { mOriginalValues.set(index, object); } else { mObjects.set(index, object); } } if (mNotifyOnChange) notifyDataSetChanged(); }
[ "set the specified object at index\n\n@param object The object to add at the end of the array." ]
[ "Returns true if the addon depends on reporting.", "Checks if the given String is null or contains only whitespaces.\nThe String is trimmed before the empty check.\n\n@param argument the String to check for null or emptiness\n@param argumentName the name of the argument to check.\nThis is used in the exception message.\n@return the String that was given as argument\n@throws IllegalArgumentException in case argument is null or empty", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "This method writes task data to a Planner file.\n\n@throws JAXBException on xml creation errors", "Use this API to add dnssuffix resources.", "Adds a measure to the crosstab. A crosstab can have many measures. DJ will lay out one measure above\nthe other.\n\nA measure is what is shown on each intersection of a column and a row. A calculation is performed to\nall occurrences in the datasource where the column and row values matches (between elements)\n\nThe only difference between the prior methods is that this method sets \"visible\" to false\n\n@param property\n@param className\n@param title\n@return", "Sets a new image\n\n@param BufferedImage imagem", "Abort and close the transaction.\nCalling abort abandons all persistent object modifications and releases the\nassociated locks.\nIf transaction is not in progress a TransactionNotInProgressException is thrown", "Tries to load a property file with the specified name.\n\n@param localizedName the name\n@return the resource bundle if it was loaded, otherwise the backup" ]
@Override public V put(K key, V value) { if (fast) { synchronized (this) { Map<K, V> temp = cloneMap(map); V result = temp.put(key, value); map = temp; return (result); } } else { synchronized (map) { return (map.put(key, value)); } } }
[ "Associate the specified value with the specified key in this map.\nIf the map previously contained a mapping for this key, the old\nvalue is replaced and returned.\n\n@param key the key with which the value is to be associated\n@param value the value to be associated with this key\n@return the value previously mapped to the key, or null" ]
[ "Await service container stability ignoring thread interruption.\n\n@param timeout maximum period to wait for service container stability\n@param timeUnit unit in which {@code timeout} is expressed\n\n@throws java.util.concurrent.TimeoutException if service container stability is not reached before the specified timeout", "Sets a quota for a users.\n\n@param user the user.\n@param quota the quota.", "Add a task to the project.\n\n@return new task instance", "This method extracts assignment data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Write a message to the console.\n\n@param pattern\nA {@link String#format(String, Object...)} pattern\n@param parameters\nOptional parameters to plug into the pattern", "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance", "Convolve with a 2D kernel.\n@param kernel the kernel\n@param inPixels the input pixels\n@param outPixels the output pixels\n@param width the width\n@param height the height\n@param alpha include alpha channel\n@param edgeAction what to do at the edges", "Create the label for a grid line.\n\n@param value the value of the line\n@param unit the unit that the value is in", "Execute the transactional flow - catch all exceptions\n\n@param input Initial data input\n@return Try that represents either success (with result) or failure (with errors)" ]
@SuppressWarnings("rawtypes") private void synchronousInvokeCallback(Callable call) { Future future = streamingSlopResults.submit(call); try { future.get(); } catch(InterruptedException e1) { logger.error("Callback failed", e1); throw new VoldemortException("Callback failed"); } catch(ExecutionException e1) { logger.error("Callback failed during execution", e1); throw new VoldemortException("Callback failed during execution"); } }
[ "Helper method to synchronously invoke a callback\n\n@param call" ]
[ "Get the days difference", "Connect sync.\n\n@param configuration the protocol configuration\n@return the connection\n@throws IOException", "Output the SQL type for a Java String.", "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date", "Set the refresh frequency of this scene object.\nUse NONE for improved performance when the text is set initially and never\nchanged.\n\n@param frequency\nThe refresh frequency of this TextViewSceneObject.", "Create and get actor system.\n\n@return the actor system", "Do synchronization of the given J2EE ODMG Transaction", "Updates the exceptions.\n@param exceptions the exceptions to set", "Caches the given object using the given Identity as key\n\n@param oid The Identity key\n@param obj The object o cache" ]
public static nsacl6 get(nitro_service service, String acl6name) throws Exception{ nsacl6 obj = new nsacl6(); obj.set_acl6name(acl6name); nsacl6 response = (nsacl6) obj.get_resource(service); return response; }
[ "Use this API to fetch nsacl6 resource of given name ." ]
[ "Returns the length of the message in bytes as it is encoded on the wire.\n\nApple require the message to be of length 255 bytes or less.\n\n@return length of encoded message in bytes", "Returns a \"clean\" version of the given filename in which spaces have\nbeen converted to dashes and all non-alphanumeric chars are underscores.", "Detokenize the input list of words.\n\n@param tokens List of words.\n@return Detokenized string.", "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@throws IllegalArgumentException if char array is wrong size", "Use this API to update sslcertkey resources.", "Inverts the value of the bit at the specified index.\n@param index The bit to flip (0 is the least-significant bit).\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Ask the specified player for metadata about the track in the specified slot with the specified rekordbox ID,\nusing cached media instead if it is available, and possibly giving up if we are in passive mode.\n\n@param track uniquely identifies the track whose metadata is desired\n@param trackType identifies the type of track being requested, which affects the type of metadata request\nmessage that must be used\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nmetadata updates will use available caches only\n\n@return the metadata found, if any", "Send message to all connections labeled with tag specified\nwith self connection excluded\n\n@param message the message to be sent\n@param tag the string that tag the connections to be sent\n@return this context", "Adds custom header to request\n\n@param key\n@param value" ]
public void unbind(String name) throws ObjectNameNotFoundException { /** * Is DB open? ODMG 3.0 says it has to be to call unbind. */ if (!this.isOpen()) { throw new DatabaseClosedException("Database is not open. Must have an open DB to call unbind"); } TransactionImpl tx = getTransaction(); if (tx == null || !tx.isOpen()) { throw new TransactionNotInProgressException("Tx is not open. Must have an open TX to call lookup."); } tx.getNamedRootsMap().unbind(name); }
[ "Disassociate a name with an object\n@param name The name of an object.\n@exception ObjectNameNotFoundException No object exists in the database with that name." ]
[ "Helper function to create JsonArray from collection.\n\n@param values collection of values to convert to JsonArray\n@return JsonArray with collection values", "Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value", "Convenience method for retrieving a Map resource.\n\n@param locale locale identifier\n@param key resource key\n@return resource value", "Curries a function that takes one argument.\n\n@param function\nthe original function. May not be <code>null</code>.\n@param argument\nthe fixed argument.\n@return a function that takes no arguments. Never <code>null</code>.", "Read configuration from zookeeper", "Send a device update to all registered update listeners.\n\n@param update the device update that has just arrived", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Gets all checked widgets in the group\n@return list of checked widgets", "Assigned action code" ]
public AT_Row setPaddingLeftRight(int padding){ if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingLeftRight(padding); } } return this; }
[ "Sets left and right padding for all cells in the row.\n@param padding new padding for left and right, ignored if smaller than 0\n@return this to allow chaining" ]
[ "Read ClassDescriptors from the given InputStream.\n@see #mergeDescriptorRepository", "Checks if a parameter exists. If it exists, it is updated. If it doesn't, it is created. Only works for parameters which key is\nunique. Will create a transaction on the given entity manager.", "Sets the HTML entity translator.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param htmlElementTranslator translator", "Produces or returns the existing proxy class. The operation is thread-safe.\n\n@return always the class of the proxy", "Return the area polygon as the only feature in the feature collection.\n\n@param mapAttributes the attributes that this aoi is part of.", "Get transformer to use.\n\n@return transformation to apply", "Stores the gathered usage statistics about term uses by language to a CSV\nfile.\n\n@param usageStatistics\nthe statistics to store\n@param fileName\nthe name of the file to use", "Populates the bean by mapping the processed columns to the fields of the bean.\n\n@param resultBean\nthe bean to populate\n@param nameMapping\nthe name mappings\n@return the populated bean\n@throws SuperCsvReflectionException\nif there was a reflection exception while populating the bean", "Gets a SerialMessage with the MULTI INSTANCE GET command.\nReturns the number of instances for this command class.\n@param the command class to return the number of instances for.\n@return the serial message." ]
public static STSClient createSTSX509Client(Bus bus, Map<String, String> stsProps) { final STSClient stsClient = createClient(bus, stsProps); stsClient.setWsdlLocation(stsProps.get(STS_X509_WSDL_LOCATION)); stsClient.setEndpointQName(new QName(stsProps.get(STS_NAMESPACE), stsProps.get(STS_X509_ENDPOINT_NAME))); return stsClient; }
[ "for bpm connector" ]
[ "Use this API to fetch authenticationvserver_authenticationcertpolicy_binding resources of given name .", "Wait for exclusive permit during a timeout in milliseconds.\n\n@return number of acquired permits if > 0", "Initialize the key set for an xml bundle.", "Use this API to add tmtrafficaction.", "Loads a CRF classifier from a filepath, and returns it.\n\n@param file\nFile to load classifier from\n@return The CRF classifier\n\n@throws IOException\nIf there are problems accessing the input stream\n@throws ClassCastException\nIf there are problems interpreting the serialized data\n@throws ClassNotFoundException\nIf there are problems interpreting the serialized data", "Static factory method.\n\n@param targetVariable\nthe variable to find the effective {@code putfield} or\n{@code putstatic} instruction for.\n@param controlFlowBlocks\nall control flow blocks of an initialising constructor or\nmethod.\n@return a new instance of this class.", "Toggle between single events and series.\n@param isSeries flag, indicating if we want a series of events.", "Cleans a multi-value property key.\n\n@param name Name of the property key\n@return The {@link ValidationResult} object containing the key,\nand the error code(if any)\n<p/>\nFirst calls cleanObjectKey\nKnown property keys are reserved for multi-value properties, subsequent validation is done for those", "Use this API to unset the properties of tmsessionparameter resource.\nProperties that need to be unset are specified in args array." ]
public static base_response delete(nitro_service client, application resource) throws Exception { application deleteresource = new application(); deleteresource.appname = resource.appname; return deleteresource.delete_resource(client); }
[ "Use this API to delete application." ]
[ "Locate a child block by byte pattern and validate by\nchecking the length of the string we are expecting\nto follow the pattern.\n\n@param bufferIndex start index\n@return true if a child block starts at this point", "Subtracts the given range from this range, to produce either zero, one, or two address ranges that contain the addresses in this range and not in the given range.\nIf the result has length 2, the two ranges are in increasing order.\n\n@param other\n@return", "Obtains a Julian zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Julian zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Use this API to fetch all the dnssuffix resources that are configured on netscaler.", "Alternative implementation for the drift. For experimental purposes.\n\n@param timeIndex\n@param componentIndex\n@param realizationAtTimeIndex\n@param realizationPredictor\n@return", "Function to serialize the given Vector clock into a string. If something\ngoes wrong, it returns an empty string.\n\n@param vc The Vector clock to serialize\n@return The string (JSON) version of the specified Vector clock", "Main entry point to read criteria data.\n\n@param properties project properties\n@param data criteria data block\n@param dataOffset offset of the data start within the larger data block\n@param entryOffset offset of start node for walking the tree\n@param prompts optional list to hold prompts\n@param fields optional list of hold fields\n@param criteriaType optional array representing criteria types\n@return first node of the criteria", "Sets a custom response on an endpoint\n\n@param pathValue path (endpoint) value\n@param requestType path request type. \"GET\", \"POST\", etc\n@param customData custom response data\n@return true if success, false otherwise", "Gets the end.\n\n@return the end" ]
public void deleteObject(Object object) { PersistenceBroker broker = null; try { broker = getBroker(); broker.delete(object); } finally { if (broker != null) broker.close(); } }
[ "Delete an object." ]
[ "Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output\ntensors", "Validates bic.\n\n@param bic to be validated.\n@throws BicFormatException if bic is invalid.\nUnsupportedCountryException if bic's country is not supported.", "get all consumers for the group\n\n@param zkClient the zookeeper client\n@param group the group name\n@return topic-&gt;(consumerIdStringA-0,consumerIdStringA-1...consumerIdStringB-0,consumerIdStringB-1)", "Sets the background color of the scene rendered by this camera.\n\nIf you don't set the background color, the default is an opaque black.\nMeaningful parameter values are from 0 to 1, inclusive: values\n{@literal < 0} are clamped to 0; values {@literal > 1} are clamped to 1.", "Creates a resource key defined as a child of key defined by enumeration value.\n@see #key(Enum)\n@see #child(String)\n@param enumValue the enumeration value defining the parent key\n@param key the child id\n@return the resource key", "Wait until a scan of the table completes without seeing notifications AND without the Oracle\nissuing any timestamps during the scan.", "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", "Checks to see if the token is in the list of allowed character operations. Used to apply order of operations\n@param token Token being checked\n@param ops List of allowed character operations\n@return true for it being in the list and false for it not being in the list", "Split an artifact gavc to get the groupId\n@param gavc\n@return String" ]
private static boolean extractSimpleExtents(Variable var, Extents e, boolean row, int length) { int lower; int upper; if( var.getType() == VariableType.INTEGER_SEQUENCE ) { IntegerSequence sequence = ((VariableIntegerSequence)var).sequence; if( sequence.getType() == IntegerSequence.Type.FOR ) { IntegerSequence.For seqFor = (IntegerSequence.For)sequence; seqFor.initialize(length); if( seqFor.getStep() == 1 ) { lower = seqFor.getStart(); upper = seqFor.getEnd(); } else { return false; } } else { return false; } } else if( var.getType() == VariableType.SCALAR ) { lower = upper = ((VariableInteger)var).value; } else { throw new RuntimeException("How did a bad variable get put here?!?!"); } if( row ) { e.row0 = lower; e.row1 = upper; } else { e.col0 = lower; e.col1 = upper; } return true; }
[ "See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range or false if not" ]
[ "Gets the estimated time remaining in milliseconds based upon the total number of work units, the start time, and how many units have been done\nso far.\n\nThis should not be called before any work units have been done.", "Get PhoneNumber object\n\n@return PhonenUmber | null on error", "Trim and append a file separator to the string", "Use this API to fetch vpntrafficpolicy_vpnglobal_binding resources of given name .", "Initializes the bean name defaulted", "Read resource baseline values.\n\n@param row result set row", "Calculates the next snapshot version based on the current release version\n\n@param fromVersion The version to bump to next development version\n@return The next calculated development (snapshot) version", "Modify the meta-data for a photoset.\n\n@param photosetId\nThe photoset ID\n@param title\nA new title\n@param description\nA new description (can be null)\n@throws FlickrException", "Returns the required gallery open parameters.\n\n@param cms an initialized instance of a CmsObject\n@param messages the dialog messages\n@param param the widget parameter to generate the widget for\n@param resource the resource being edited\n@param hashId the field id hash\n\n@return the gallery open parameters" ]
private static void listResources(ProjectFile file) { for (Resource resource : file.getResources()) { System.out.println("Resource: " + resource.getName() + " (Unique ID=" + resource.getUniqueID() + ") Start=" + resource.getStart() + " Finish=" + resource.getFinish()); } System.out.println(); }
[ "This method lists all resources defined in the file.\n\n@param file MPX file" ]
[ "Append the path to the StringBuilder.\n\n@param result the string builder to add the path to.", "Return the text content of the document. It does not containing trailing spaces and asterisks\nat the start of the line.", "Adds a port that serves the HTTP requests. If unspecified, cleartext HTTP on port 36462 is used.\n\n@param localAddress the TCP/IP load address to bind\n@param protocol {@link SessionProtocol#HTTP} or {@link SessionProtocol#HTTPS}", "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", "Load the avatar base model\n@param avatarResource resource with avatar model", "Get the ver\n\n@param id\n@return", "Obtains a local date in Accounting calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Accounting era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the date\n@throws ClassCastException if the {@code era} is not a {@code AccountingEra}", "Returns the Set of entities recognized by this Classifier.\n\n@return The Set of entities recognized by this Classifier.", "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" ]
private int getBeliefCount() { Integer count = (Integer)introspector.getBeliefBase(ListenerMockAgent.this).get(Definitions.RECEIVED_MESSAGE_COUNT); if (count == null) count = 0; // Just in case, not really sure if this is necessary. return count; }
[ "Returns the \"msgCount\" belief\n\n@return int - the count" ]
[ "Gets the Correlation distance between two points.\n\n@param p A point in space.\n@param q A point in space.\n@return The Correlation distance between x and y.", "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", "Use this API to disable nsacl6 resources of given names.", "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", "find the middle point of two intersect points in circle,only one point will be correct\n\n@param center\n@param a\n@param b\n@param area\n@param radius\n@return", "Figure out, based on how much time has elapsed since we received an update, and the playback position,\nspeed, and direction at the time of that update, where the player will be now.\n\n@param update the most recent update received from a player\n@param currentTimestamp the nanosecond timestamp representing when we want to interpolate the track's position\n\n@return the playback position we believe that player has reached now", "Shows the given step.\n\n@param step the step", "return a prepared Update Statement fitting to the given ClassDescriptor", "Use this API to fetch clusterinstance_binding resource of given name ." ]
public static String blur(int radius, int sigma) { if (radius < 1) { throw new IllegalArgumentException("Radius must be greater than zero."); } if (radius > 150) { throw new IllegalArgumentException("Radius must be lower or equal than 150."); } if (sigma < 0) { throw new IllegalArgumentException("Sigma must be greater than zero."); } return FILTER_BLUR + "(" + radius + "," + sigma + ")"; }
[ "This filter adds a blur effect to the image using the specified radius and sigma.\n@param radius Radius used in the gaussian function to generate a matrix, maximum value is 150.\nThe bigger the radius more blurred will be the image.\n@param sigma Sigma used in the gaussian function." ]
[ "Find the channel in the animation that animates the named bone.\n@param boneName name of bone to animate.", "Creates the code mappings.\n\n@param mtasTokenIdFactory\nthe mtas token id factory\n@param level\nthe level\n@param stringValue\nthe string value\n@param offsetStart\nthe offset start\n@param offsetEnd\nthe offset end\n@param realOffsetStart\nthe real offset start\n@param realOffsetEnd\nthe real offset end\n@param codePositions\nthe code positions\n@throws IOException\nSignals that an I/O exception has occurred.", "Gets the info for a running build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param buildId the unique identifier of the build", "Evaluates the body if current member has no tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\[email protected] type=\"block\"\[email protected] name=\"tagName\" optional=\"false\" description=\"The tag name.\"\[email protected] name=\"paramName\" description=\"The parameter name. If not specified, then the raw\ncontent of the tag is returned.\"\[email protected] name=\"paramNum\" description=\"The zero-based parameter number. It's used if the user\nused the space-separated format for specifying parameters.\"\[email protected] name=\"error\" description=\"Show this error message if no tag found.\"", "Tests if this partition has hit a threshold and signal to the pool watch thread to create new connections\n@param connectionPartition to test for.", "Returns a simple web page where certs can be downloaded. This is meant for mobile device setup.\n@return\n@throws Exception", "Checks if the duration option is valid.\n\nNOTE: This does NOT check, if too many events are specified.\n\n@return a flag, indicating if the duration option is valid.", "Gets a SerialMessage with the BASIC SET command\n@param the level to set.\n@return the serial message", "On throwable.\n\n@param cause\nthe cause" ]
public String readSnippet(String name) { String path = CmsStringUtil.joinPaths( m_context.getSetupBean().getWebAppRfsPath(), CmsSetupBean.FOLDER_SETUP, "html", name); try (InputStream stream = new FileInputStream(path)) { byte[] data = CmsFileUtil.readFully(stream, false); String result = new String(data, "UTF-8"); return result; } catch (Exception e) { throw new RuntimeException(e); } }
[ "Reads an HTML snippet with the given name.\n\n@return the HTML data" ]
[ "Iterate and insert each of the elements of the Collection.\n\n@param objects\nThe objects to insert\n@param outIdentifier\nIdentifier to lookup the returned objects\n@param returnObject\nboolean to specify whether the inserted Collection is part of the ExecutionResults\n@param entryPoint\nOptional EntryPoint for the insertions\n@return", "Retrieves basic meta data from the result set.\n\n@throws SQLException", "Sets the options contained in the DJCrosstab to the JRDesignCrosstab.\nAlso fits the correct width", "Switches DB type.\n\n@param dbName the database type\n@param webapp the webapp name", "List all apps for the current user's account.\n@param range The range of apps provided by {@link Range#getNextRange()}\n@return a list of apps", "Starts recursive insert on all insert objects object graph", "Register the given object under the package name of the object's class\nwith the given type name.\n\nthis method using the platform mbean server as returned by\nManagementFactory.getPlatformMBeanServer()\n\n@param typeName The name of the type to register\n@param obj The object to register as an mbean", "get the underlying wrapped connection\n@return OTMConnection raw connection to the OTM.", "Remove the listener active in this session.\n\n@param listenerId the id of the listener to remove" ]
private static EventTypeEnum mapEventTypeEnum(EventEnumType eventType) { if (eventType != null) { return EventTypeEnum.valueOf(eventType.name()); } return EventTypeEnum.UNKNOWN; }
[ "Map event type enum.\n\n@param eventType the event type\n@return the event type enum" ]
[ "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", "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", "Concatenates the trajectory a and b\n@param a The end of this trajectory will be connected to the start of trajectory b\n@param b The start of this trajectory will be connected to the end of trajectory a\n@return Concatenated trajectory", "Wraps the specified object pool for connections as a DataSource.\n\n@param jcd the OJB connection descriptor for the pool to be wrapped\n@param connectionPool the connection pool to be wrapped\n@return a DataSource attached to the connection pool.\nConnections will be wrapped using DBCP PoolGuard, that will not allow\nunwrapping unless the \"accessToUnderlyingConnectionAllowed=true\" configuration\nis specified.", "Adds a JSON string to the DB.\n\n@param obj the JSON to record\n@param table the table to insert into\n@return the number of rows in the table, or DB_OUT_OF_MEMORY_ERROR/DB_UPDATE_ERROR", "Clear all beans and call the destruction callback.", "Send an empty request using a standard HTTP connection.", "Answer the counted size\n\n@return int", "Resolve the given string using any plugin and the DMR resolve method" ]
public void setLabels(Collection<LabelType> labels) { this.labels.clear(); if (labels != null) { this.labels.addAll(labels); } }
[ "Removes all currently assigned labels for this Datum then adds all\nof the given Labels." ]
[ "Create a new builder for multiple unpaginated requests on the view.\n\n@param keyType {@link com.cloudant.client.api.views.Key.Type} of the key emitted by the\nview\n@param valueType class of the type of value emitted by the view\n@param <K> type of key emitted by the view\n@param <V> type of value emitted by the view\n@return a new {@link MultipleRequestBuilder} for the database view specified by this\nViewRequestBuilder", "Delete an artifact in the Grapes server\n\n@param gavc\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Creates a block matrix the same size as A_inv, inverts the matrix and copies the results back\nonto A_inv.\n\n@param A_inv Where the inverted matrix saved. Modified.", "Returns an Organization that suits the Module or null if there is none\n\n@param dbModule DbModule\n@return DbOrganization", "Turn given source String array into sorted array.\n\n@param array the source array\n@return the sorted array (never <code>null</code>)", "Get the target entry for a given patch element.\n\n@param element the patch element\n@return the patch entry\n@throws PatchingException", "Returns next and previous favorites for a photo in a user's favorites\n\n@param photoId\nThe photo id\n@param userId\nThe user's ID\n@see <a href=\"http://www.flickr.com/services/api/flickr.favorites.getContext.html\">flickr.favorites.getContext</a>", "Returns the corresponding module resolved service name for the given module.\n\nThe module resolved service is basically a latch that prevents the module from being loaded\nuntil all the transitive dependencies that it depends upon have have their module spec services\ncome up.\n\n@param identifier The module identifier\n@return The service name of the ModuleSpec service", "Read relationship data from a PEP file." ]
public static void log(String label, Class<?> klass, Map<String, Object> map) { if (LOG != null) { LOG.write(label); LOG.write(": "); LOG.println(klass.getSimpleName()); for (Map.Entry<String, Object> entry : map.entrySet()) { LOG.println(entry.getKey() + ": " + entry.getValue()); } LOG.println(); LOG.flush(); } }
[ "Log table contents.\n\n@param label label text\n@param klass reader class name\n@param map table data" ]
[ "Filter out interceptors and decorators which are also enabled globally.\n\n@param enabledClasses\n@param globallyEnabledClasses\n@param logMessageCallback\n@param deployment\n@return the filtered list", "May have to be changed to let multiple touch", "Given a list of keys and a number of splits find the keys to split on.\n\n@param keys the list of keys.\n@param numSplits the number of splits.", "This procedure is invoked to process the \"subst\" Tcl command.\nSee the user documentation for details on what it does.\n\n@param interp the current interpreter.\n@param argv command arguments.\n@exception TclException if wrong # of args or invalid argument(s).", "Configures the log context.\n\n@param configFile the configuration file\n@param classLoader the class loader to use for the configuration\n@param logContext the log context to configure\n\n@return {@code true} if the log context was successfully configured, otherwise {@code false}\n\n@throws DeploymentUnitProcessingException if the configuration fails", "This method writes data for a single calendar to an MSPDI file.\n\n@param bc Base calendar data\n@return New MSPDI calendar instance", "Gets a string attribute from a json object given a path to traverse.\n\n@param record a JSONObject to traverse.\n@param path the json path to follow.\n@return the attribute as a {@link String}, or null if it was not found.", "Adds the value to the Collection mapped to by the key.", "A henson navigator is a class that helps a consumer to consume the navigation api that it\ndeclares in its dependencies. The henson navigator will wrap the intent builders. Thus, a\nhenson navigator, is driven by consumption of intent builders, whereas the henson classes are\ndriven by the production of an intent builder.\n\n<p>This task is created per android variant:\n\n<ul>\n<li>we scan the variant compile configuration for navigation api dependencies\n<li>we generate a henson navigator class for this variant that wraps the intent builders\n</ul>\n\n@param variant the variant for which to create a builder.\n@param hensonNavigatorPackageName the package name in which we create the class." ]
void decodeContentType(String rawLine) { int slash = rawLine.indexOf('/'); if (slash == -1) { // if (DEBUG) getLogger().debug("decoding ... no slash found"); return; } else { primaryType = rawLine.substring(0, slash).trim(); } int semicolon = rawLine.indexOf(';'); if (semicolon == -1) { // if (DEBUG) getLogger().debug("decoding ... no semicolon found"); secondaryType = rawLine.substring(slash + 1).trim(); return; } // have parameters secondaryType = rawLine.substring(slash + 1, semicolon).trim(); Header h = new Header(rawLine); parameters = h.getParams(); }
[ "Decode a content Type header line into types and parameters pairs" ]
[ "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null", "Removes the given entity from the inverse associations it manages.", "Parses the supplied text and converts it to a Long\ncorresponding to that midnight in UTC on the specified date.\n\n@return null if it fails to parsing using the specified\nDateTimeFormat", "Reads and sets the next feed in the stream.", "Add the line to the content\n\n@param bufferedFileReader The file reader\n@param content The content of the file\n@param line The current read line\n@throws IOException", "Create an error image should an error occur while fetching a WMS map.\n\n@param width image width\n@param height image height\n@param e exception\n@return error image\n@throws java.io.IOException oops", "Parse the json string to the diagram model, assumes that the json is\nhierarchical ordered\n@param json\n@return Model with all shapes defined in JSON\n@throws org.json.JSONException", "Get EditMode based on os and mode\n\n@return edit mode", "Return the item view type used by the adapter to implement recycle mechanism.\n\n@param content to be rendered.\n@return an integer that represents the renderer inside the adapter." ]
public static base_response add(nitro_service client, linkset resource) throws Exception { linkset addresource = new linkset(); addresource.id = resource.id; return addresource.add_resource(client); }
[ "Use this API to add linkset." ]
[ "Checks if this has the passed suffix\n\n@param suffix is a Bytes object to compare to this\n@return true or false\n@since 1.1.0", "Creates a metadata cache archive file of all tracks in the specified slot on the specified player. Any\nprevious contents of the specified file will be replaced.\n\n@param slot the slot in which the media to be cached can be found\n@param playlistId the id of playlist to be cached, or 0 of all tracks should be cached\n@param cache the file into which the metadata cache should be written\n\n@throws Exception if there is a problem communicating with the player or writing the cache file.", "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\"", "Get a value as a string.\n\n@param key the key for looking up the value.\n@param type the type of the object\n@param <V> the type", "A GString variant of the equivalent GString method.\n\n@param self the original GString\n@param condition the closure that must evaluate to true to continue taking elements\n@return a prefix of elements in the GString where each\nelement passed to the given closure evaluates to true\n@since 2.3.7", "Move this rectangle to the specified bottom-left point.\n\n@param rect rectangle to move\n@param x new x origin\n@param y new y origin", "Returns this bar code's pattern, converted into a set of corresponding codewords.\nUseful for bar codes that encode their content as a pattern.\n\n@param size the number of digits in each codeword\n@return this bar code's pattern, converted into a set of corresponding codewords", "needs to be resolved once extension beans are deployed", "Organises the data from Asta into a hierarchy and converts this into tasks.\n\n@param bars bar data\n@param expandedTasks expanded task data\n@param tasks task data\n@param milestones milestone data" ]
public static List<String> getStoreNames(List<StoreDefinition> storeDefList) { List<String> storeList = new ArrayList<String>(); for(StoreDefinition def: storeDefList) { storeList.add(def.getName()); } return storeList; }
[ "Given a list of store definitions return a list of store names\n\n@param storeDefList The list of store definitions\n@return Returns a list of store names" ]
[ "Create a transformation which takes the alignment settings into account.", "Use this API to diff nsconfig.", "Initialize the metadata cache with system store list", "Adds a new cell to the current grid\n@param cell the td component", "Notifies that a header item is changed.\n\n@param position the position.", "Process TestCaseStartedEvent. New testCase will be created and added\nto suite as child.\n\n@param event to process", "Encrypt a string with AES-128 using the specified key.\n\n@param message Input string.\n@param key Encryption key.\n@return Encrypted output.", "Digest format to layer file name.\n\n@param digest\n@return", "Return all server groups for a profile\n\n@param profileId ID of profile\n@return collection of ServerGroups for a profile" ]
public static Type getCanonicalType(Class<?> clazz) { if (clazz.isArray()) { Class<?> componentType = clazz.getComponentType(); Type resolvedComponentType = getCanonicalType(componentType); if (componentType != resolvedComponentType) { // identity check intentional // a different identity means that we actually replaced the component Class with a ParameterizedType return new GenericArrayTypeImpl(resolvedComponentType); } } if (clazz.getTypeParameters().length > 0) { Type[] actualTypeParameters = clazz.getTypeParameters(); return new ParameterizedTypeImpl(clazz, actualTypeParameters, clazz.getDeclaringClass()); } return clazz; }
[ "Returns a canonical type for a given class.\n\nIf the class is a raw type of a parameterized class, the matching {@link ParameterizedType} (with unresolved type\nvariables) is resolved.\n\nIf the class is an array then the component type of the array is canonicalized\n\nOtherwise, the class is returned.\n\n@return" ]
[ "This method extracts the XML header comment if available.\n\n@param xmlFile is the XML {@link File} to parse.\n@return the XML comment between the XML header declaration and the root tag or <code>null</code> if NOT\navailable.\n@throws MojoExecutionException if anything goes wrong.", "Loads the SPI backing bean.\n\n@return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.", "The full path of a jrxml file, or the path in the classpath of a jrxml\nresource.\n\n@param path\n@return", "Configures the configuration selector.", "Gets whether this registration has an alternative wildcard registration", "Removes bean from scope.\n\n@param name bean name\n@return previous value", "Old SOAP client uses new SOAP service with the\nredirection to the new endpoint and transformation\non the server side", "Straight conversion from an ObjectName to a PathAddress.\n\nThere may not necessarily be a Resource at this path address (if that correspond to a pattern) but it must\nmatch a model in the registry.\n\n@param domain the name of the caller's JMX domain\n@param registry the root resource for the management model\n@param name the ObjectName to convert\n\n@return the PathAddress, or {@code null} if no address matches the object name", "Use this API to fetch servicegroupbindings resource of given name ." ]
boolean lockSharedInterruptibly(final Integer permit, final long timeout, final TimeUnit unit) throws InterruptedException { if (permit == null) { throw new IllegalArgumentException(); } return sync.tryAcquireSharedNanos(permit, unit.toNanos(timeout)); }
[ "Acquire the shared 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." ]
[ "Adds two complex numbers.\n\n@param z1 Complex Number.\n@param z2 Complex Number.\n@return Returns new ComplexNumber instance containing the sum of specified complex numbers.", "Indicates if a bean is proxyable\n\n@param bean The bean to test\n@return True if proxyable, false otherwise", "Returns the given dialect, narrowed down to the given dialect facet in case it is implemented by the dialect.\n\n@param gridDialect the dialect of interest\n@param facetType the dialect facet type of interest\n@return the given dialect, narrowed down to the given dialect facet or {@code null} in case the given dialect\ndoes not implement the given facet", "Returns a new Set containing all the objects in the specified array.", "Extracts a duration from a JAXBElement instance.\n\n@param duration duration expressed in hours\n@return duration instance", "Initialize current thread's JobContext using specified copy\n@param origin the original job context", "Processes a procedure tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"arguments\" optional=\"true\" description=\"The arguments of the procedure as a comma-separated\nlist of names of procedure attribute tags\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the procedure as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the procedure\"\[email protected] name=\"include-all-fields\" optional=\"true\" description=\"For insert/update: whether all fields of the current\nclass shall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"include-pk-only\" optional=\"true\" description=\"For delete: whether all primary key fields\nshall be included (arguments is ignored then)\" values=\"true,false\"\[email protected] name=\"name\" optional=\"false\" description=\"The name of the procedure\"\[email protected] name=\"return-field-ref\" optional=\"true\" description=\"Identifies the field that receives the return value\"\[email protected] name=\"type\" optional=\"false\" description=\"The type of the procedure\" values=\"delete,insert,update\"", "Remove contents from the deployment 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 default safety level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_MODERATE\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_RESTRICTED\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_SAFE\n@return The current users safety-level\n@throws FlickrException" ]
public static int timezoneOffset(H.Session session) { String s = null != session ? session.get(SESSION_KEY) : null; return S.notBlank(s) ? Integer.parseInt(s) : serverTimezoneOffset(); }
[ "Returns timezone offset from a session instance. The offset is\nin minutes to UTC time\n\n@param session\nthe session instance\n@return the offset to UTC time in minutes" ]
[ "Iterates through this file line by line, splitting each line using\nthe given regex separator. For each line, the given closure is called with\na single parameter being the list of strings computed by splitting the line\naround matches of the given regular expression.\nFinally the resources used for processing the file are closed.\n\n@param self a File\n@param regex the delimiting regular expression\n@param closure a closure\n@return the last value returned by the closure\n@throws IOException if an IOException occurs.\n@throws java.util.regex.PatternSyntaxException\nif the regular expression's syntax is invalid\n@see IOGroovyMethods#splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)\n@since 1.5.5", "Get the column name from the indirection table.\n@param mnAlias\n@param path", "Cancel on target hosts.\n\n@param targetHosts\nthe target hosts\n@return true, if successful", "Convert a wavelength to an RGB value.\n@param wavelength wavelength in nanometres\n@return the RGB value", "Retrieves the notes text for this resource.\n\n@return notes text", "used for upload progress", "Push an event which describes a purchase made.\n\n@param eventName Has to be specified as \"Charged\". Anything other than this\nwill result in an {@link InvalidEventNameException} being thrown.\n@param chargeDetails A {@link HashMap}, with keys as strings, and values as {@link String},\n{@link Integer}, {@link Long}, {@link Boolean}, {@link Float}, {@link Double},\n{@link java.util.Date}, or {@link Character}\n@param items An {@link ArrayList} which contains up to 15 {@link HashMap} objects,\nwhere each HashMap object describes a particular item purchased\n@throws InvalidEventNameException Thrown if the event name is not \"Charged\"\n@deprecated use {@link CleverTapAPI#pushChargedEvent(HashMap chargeDetails, ArrayList items)}", "Adds JAXB WSDL extensions to allow work with custom\nWSDL elements such as \\\"partner-link\\\"\n\n@param bus CXF bus", "Method must be invoked upon completion of a rebalancing task. It is the\ntask's responsibility to do so.\n\n@param stealerId\n@param donorId" ]
private static int getColumnWidth(final PropertyDescriptor _property) { final Class type = _property.getPropertyType(); if (Float.class.isAssignableFrom(type) || Double.class.isAssignableFrom(type)) { return 70; } else if (type == Boolean.class) { return 10; } else if (Number.class.isAssignableFrom(type)) { return 60; } else if (type == String.class) { return 100; } else if (Date.class.isAssignableFrom(type)) { return 50; } else { return 50; } }
[ "Calculates the column width according to its type.\n@param _property the property.\n@return the column width." ]
[ "Use this API to add dospolicy.", "Get an SQL condition to match this address section representation\n\n@param builder\n@param columnName\n@return the condition", "Calling this twice will not actually overwrite the gauge\n\n@param collectionSizeGauge", "Plots the trajectory\n@param title Title of the plot\n@param t Trajectory to be plotted", "Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be copied.\n@return The copied matrix.", "Update the name of a script\n\n@param id ID of script\n@param name new name\n@return updated script\n@throws Exception exception", "Logs an error message for unhandled exception thrown from the target method.\n\n@param joinPoint - the joint point cut that contains information about the target\n@param throwable - the cause of the exception from the target method invocation", "Returns the user defined field without its prefix.\n\n@param field the name of the user defined field\n@return the user defined field without the prefix, or null if the fields\ndoesn't apply to this control file.\n@since 1.1", "Record the resource request queue length\n\n@param dest Destination of the socket for which resource request is\nenqueued. Will actually record if null. Otherwise will call this\non self and corresponding child with this param null.\n@param queueLength The number of entries in the \"asynchronous\" resource\nrequest queue." ]
protected void updateStep(int stepNo) { if ((0 <= stepNo) && (stepNo < m_steps.size())) { Class<? extends A_CmsSetupStep> cls = m_steps.get(stepNo); A_CmsSetupStep step; try { step = cls.getConstructor(I_SetupUiContext.class).newInstance(this); showStep(step); m_stepNo = stepNo; // Only update step number if no exceptions } catch (Exception e) { CmsSetupErrorDialog.showErrorDialog(e); } } }
[ "Moves to the step with the given number.\n\n<p>The step number is only updated if no exceptions are thrown when instantiating/displaying the given step\n\n@param stepNo the step number to move to" ]
[ "Filter everything until we found the first NL character.", "crops the srcBmp with the canvasView bounds and returns the cropped bitmap", "Retrieves the project finish date. If an explicit finish date has not been\nset, this method calculates the finish date by looking for\nthe latest task finish date.\n\n@return Finish Date", "Check to see whether a packet starts with the standard header bytes, followed by a known byte identifying it.\nIf so, return the kind of packet that has been recognized.\n\n@param packet a packet that has just been received\n@param port the port on which the packet has been received\n\n@return the type of packet that was recognized, or {@code null} if the packet was not recognized", "Stores a new certificate and its associated private key in the keystore.\n@param hostname\n@param cert\n@param privKey @throws KeyStoreException\n@throws CertificateException\n@throws NoSuchAlgorithmException", "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}", "Post boolean flag \"DO_NOT_USE\" to an artifact\n\n@param gavc\n@param doNotUse\n@param user\n@param password\n@throws GrapesCommunicationException", "Add \"GROUP BY\" clause to the SQL query statement. This can be called multiple times to add additional \"GROUP BY\"\nclauses.\n\n<p>\nNOTE: Use of this means that the resulting objects may not have a valid ID column value so cannot be deleted or\nupdated.\n</p>", "Returns the name of the current object on the specified level.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\[email protected] type=\"content\"\[email protected] name=\"level\" optional=\"false\" description=\"The level for the current object\"\nvalues=\"class,field,reference,collection\"" ]
public String addPostRunDependent(FunctionalTaskItem dependentTaskItem) { IndexableTaskItem taskItem = IndexableTaskItem.create(dependentTaskItem); this.addPostRunDependent(taskItem); return taskItem.key(); }
[ "Mark the given TaskItem depends on this taskGroup.\n\n@param dependentTaskItem the task item that depends on this task group\n@return key to be used as parameter to taskResult(string) method to retrieve result of\ninvocation of given task item." ]
[ "We have an OLE compound document... but is it an MPP file?\n\n@param stream file input stream\n@return ProjectFile instance", "Parses all child Shapes recursively and adds them to the correct JSON\nObject\n\n@param childShapes\n@throws org.json.JSONException", "Creates an operations that targets this handler.\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "other static handlers", "Generates a module regarding the parameters.\n\n@param name String\n@param version String\n@return Module", "Initialize the version properties map from the gradle.properties file, and the additional properties from the\ngradle.properties file.", "Copy the settings from another calendar to this calendar.\n\n@param cal calendar data source", "This method writes predecessor data to an MSPDI file.\nWe have to deal with a slight anomaly in this method that is introduced\nby the MPX file format. It would be possible for someone to create an\nMPX file with both the predecessor list and the unique ID predecessor\nlist populated... which means that we must process both and avoid adding\nduplicate predecessors. Also interesting to note is that MSP98 populates\nthe predecessor list, not the unique ID predecessor list, as you might\nexpect.\n\n@param xml MSPDI task data\n@param mpx MPX task data", "Adds the position.\n\n@param position the position" ]
public Document createDOM(PDDocument doc) throws IOException { /* We call the original PDFTextStripper.writeText but nothing should be printed actually because our processing methods produce no output. They create the DOM structures instead */ super.writeText(doc, new OutputStreamWriter(System.out)); return this.doc; }
[ "Loads a PDF document and creates a DOM tree from it.\n@param doc the source document\n@return a DOM Document representing the DOM tree\n@throws IOException" ]
[ "Sets the package pattern to match against.", "Set the pointer on the bar. With the Value value.\n\n@param value float between 0 and 1", "This takes into account scrolling and will be in absolute\ncoordinates where the top left corner of the page is 0,0 but\nthe viewport may be scrolled to something else.", "Parses a name into a Region object and creates a new Region instance if not found among the existing ones.\n\n@param name a region name\n@return the parsed or created region", "Use this API to fetch vlan_interface_binding resources of given name .", "Function to perform forward softmax", "Decode a content Type header line into types and parameters pairs", "FastJSON does not provide the API so we have to create our own", "Utility function that creates directory.\n\n@param dir Directory path\n@return File object of directory." ]
protected String format(String key, String defaultPattern, Object... args) { String escape = escape(defaultPattern); String s = lookupPattern(key, escape); Object[] objects = escapeAll(args); return MessageFormat.format(s, objects); }
[ "Formats event output by key, usually equal to the method name.\n\n@param key the event key\n@param defaultPattern the default pattern to return if a custom pattern\nis not found\n@param args the args used to format output\n@return A formatted event output" ]
[ "Writes a DTD that can be used for data XML files matching the current model to the given writer.\n\n@param output The writer to write the DTD to", "Parses btch api response to create a list of BoxAPIResponse objects.\n@param batchResponse response of a batch api request\n@return list of BoxAPIResponses", "Returns an interval representing the addition of the\ngiven interval with this one.\n@param other interval to add to this one\n@return interval sum", "Select a List of characters from a CharSequence using a Collection\nto identify the indices to be selected.\n\n@param self a CharSequence\n@param indices a Collection of indices\n@return a String consisting of the characters at the given indices\n@since 1.0", "Copies entries in the source map to target map.\n\n@param source source map\n@param target target map", "Checks to see if the token is an integer scalar\n\n@return true if integer or false if not", "Read a single resource assignment.\n\n@param resource MPXJ resource\n@param assignment Phoenix assignment", "Creates an element that represents a single page.\n@return the resulting DOM element", "Use this API to unset the properties of csparameter resource.\nProperties that need to be unset are specified in args array." ]
private void printImage(PrintStream out, ItemDocument itemDocument) { String imageFile = null; if (itemDocument != null) { for (StatementGroup sg : itemDocument.getStatementGroups()) { boolean isImage = "P18".equals(sg.getProperty().getId()); if (!isImage) { continue; } for (Statement s : sg) { if (s.getMainSnak() instanceof ValueSnak) { Value value = s.getMainSnak().getValue(); if (value instanceof StringValue) { imageFile = ((StringValue) value).getString(); break; } } } if (imageFile != null) { break; } } } if (imageFile == null) { out.print(",\"http://commons.wikimedia.org/w/thumb.php?f=MA_Route_blank.svg&w=50\""); } else { try { String imageFileEncoded; imageFileEncoded = URLEncoder.encode( imageFile.replace(" ", "_"), "utf-8"); // Keep special title symbols unescaped: imageFileEncoded = imageFileEncoded.replace("%3A", ":") .replace("%2F", "/"); out.print("," + csvStringEscape("http://commons.wikimedia.org/w/thumb.php?f=" + imageFileEncoded) + "&w=50"); } catch (UnsupportedEncodingException e) { throw new RuntimeException( "Your JRE does not support UTF-8 encoding. Srsly?!", e); } } }
[ "Prints the URL of a thumbnail for the given item document to the output,\nor a default image if no image is given for the item.\n\n@param out\nthe output to write to\n@param itemDocument\nthe document that may provide the image information" ]
[ "Does the headset the device is docked into have a dedicated home key\n@return", "Called by the engine to trigger the cleanup at the end of a payload thread.", "seeks to a specified day of the week in the past or future.\n\n@param direction the direction to seek: two possibilities\n'<' go backward\n'>' go forward\n\n@param seekType the type of seek to perform (by_day or by_week)\nby_day means we seek to the very next occurrence of the given day\nby_week means we seek to the first occurrence of the given day week in the\nnext (or previous,) week (or multiple of next or previous week depending\non the seek amount.)\n\n@param seekAmount the amount to seek. Must be guaranteed to parse as an integer\n\n@param dayOfWeek the day of the week to seek to, represented as an integer from\n1 to 7 (1 being Sunday, 7 being Saturday.) Must be guaranteed to parse as an Integer", "Use this API to fetch dnstxtrec resources of given names .", "Converts this IPv6 address segment into smaller segments,\ncopying them into the given array starting at the given index.\n\nIf a segment does not fit into the array because the segment index in the array is out of bounds of the array,\nthen it is not copied.\n\n@param segs\n@param index", "Encodes the given source into an encoded String using the rules specified\nby the given component and with the given options.\n@param source the source string\n@param encoding the encoding of the source string\n@param type the URI component for the source\n@return the encoded URI\n@throws IllegalArgumentException when the given uri parameter is not a valid URI", "Matrix inverse for symmetric positive definite matrices. For small matrices an unrolled\ncholesky is used. Otherwise a standard decomposition.\n\n@see UnrolledCholesky_DDRM\n@see LinearSolverFactory_DDRM#chol(int)\n\n@param mat (Input) SPD matrix\n@param result (Output) Inverted matrix.\n@return true if it could invert the matrix false if it could not.", "Gets the parameter names of a method node.\n@param node\nthe node to search parameter names on\n@return\nargument names, never null", "associate the batched Children with their owner object loop over children" ]
public static void fillHermitian(ZMatrixRMaj A, double min, double max, Random rand) { if( A.numRows != A.numCols ) throw new IllegalArgumentException("A must be a square matrix"); double range = max-min; int length = A.numRows; for( int i = 0; i < length; i++ ) { A.set(i,i,rand.nextDouble()*range + min,0); for( int j = i+1; j < length; j++ ) { double real = rand.nextDouble()*range + min; double imaginary = rand.nextDouble()*range + min; A.set(i,j,real,imaginary); A.set(j,i,real,-imaginary); } } }
[ "Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.\n\n@param A The matrix that is to be modified. Must be square. Modified.\n@param min Minimum value an element can have.\n@param max Maximum value an element can have.\n@param rand Random number generator." ]
[ "Maps all views that don't start with \"android\" namespace.\n\n@param names All shared element names.\n@return The obsolete shared element names.", "Main entry point when called to process constraint data.\n\n@param projectDir project directory\n@param file parent project file\n@param inputStreamFactory factory to create input stream", "Restore backup data\n\n@param fileData - json file with restore data\n@return\n@throws Exception", "Returns the current definition on the indicated level.\n\n@param level The level\n@return The definition", "Adds a rule row to the table with a given style.\n@param style the rule style, must not be null nor {@link TableRowStyle#UNKNOWN}\n@throws {@link NullPointerException} if style was null\n@throws {@link IllegalArgumentException} if style was {@link TableRowStyle#UNKNOWN}", "Checks if a Zip is valid navigating through the entries\n\n@param file File to validate\n@throws IOException I/O Error", "Returns the user records for all users in the specified workspace or\norganization.\n\n@param workspace The workspace in which to get users.\n@return Request object", "Associate a name with an object and make it persistent.\nAn object instance may be bound to more than one name.\nBinding a previously transient object to a name makes that object persistent.\n@param object The object to be named.\n@param name The name to be given to the object.\n@exception org.odmg.ObjectNameNotUniqueException\nIf an attempt is made to bind a name to an object and that name is already bound\nto an object.", "Find out which method to call on the service bean." ]
@SuppressWarnings("unchecked") public void updateStoreDefinitions(Versioned<byte[]> valueBytes) { // acquire write lock writeLock.lock(); try { Versioned<String> value = new Versioned<String>(ByteUtils.getString(valueBytes.getValue(), "UTF-8"), valueBytes.getVersion()); Versioned<Object> valueObject = convertStringToObject(STORES_KEY, value); StoreDefinitionsMapper mapper = new StoreDefinitionsMapper(); List<StoreDefinition> storeDefinitions = (List<StoreDefinition>) valueObject.getValue(); // Check for backwards compatibility StoreDefinitionUtils.validateSchemasAsNeeded(storeDefinitions); StoreDefinitionUtils.validateNewStoreDefsAreNonBreaking(getStoreDefList(), storeDefinitions); // Go through each store definition and do a corresponding put for(StoreDefinition storeDef: storeDefinitions) { if(!this.storeNames.contains(storeDef.getName())) { throw new VoldemortException("Cannot update a store which does not exist !"); } String storeDefStr = mapper.writeStore(storeDef); Versioned<String> versionedValueStr = new Versioned<String>(storeDefStr, value.getVersion()); this.storeDefinitionsStorageEngine.put(storeDef.getName(), versionedValueStr, ""); // Update the metadata cache this.metadataCache.put(storeDef.getName(), new Versioned<Object>(storeDefStr, value.getVersion())); } // Re-initialize the store definitions initStoreDefinitions(value.getVersion()); // Update routing strategies // TODO: Make this more fine grained.. i.e only update listeners for // a specific store. updateRoutingStrategies(getCluster(), getStoreDefList()); } finally { writeLock.unlock(); } }
[ "Function to update store definitions. Unlike the put method, this\nfunction does not delete any existing state. It only updates the state of\nthe stores specified in the given stores.xml\n\n@param valueBytes specifies the bytes of the stores.xml containing\nupdates for the specified stores" ]
[ "Returns the service id with the propertype.\n\n@param serviceReference\n@return long value for the service id", "Remove a misc file.\n\n@param name the file name\n@param path the relative path\n@param existingHash the existing hash\n@param isDirectory whether the file is a directory or not\n@return the builder", "Extract the parent WBS from a WBS.\n\n@param wbs current WBS\n@return parent WBS", "Inverts the value of the bit at the specified index.\n@param index The bit to flip (0 is the least-significant bit).\n@throws IndexOutOfBoundsException If the specified index is not a bit\nposition in this bit string.", "Binds the Identities Primary key values to the statement.", "Read hints from a file.", "Find the channel in the animation that animates the named bone.\n@param boneName name of bone to animate.", "Use this API to fetch authenticationlocalpolicy_authenticationvserver_binding resources of given name .", "Set whether we should retrieve the waveform details in addition to the waveform previews.\n\n@param findDetails if {@code true}, both types of waveform will be retrieved, if {@code false} only previews\nwill be retrieved" ]
public void run(Configuration configuration, List<CandidateSteps> candidateSteps, Story story, MetaFilter filter, State beforeStories) throws Throwable { run(configuration, new ProvidedStepsFactory(candidateSteps), story, filter, beforeStories); }
[ "Runs a Story with the given configuration and steps, applying the given\nmeta filter, and staring from given state.\n\n@param configuration the Configuration used to run story\n@param candidateSteps the List of CandidateSteps containing the candidate\nsteps methods\n@param story the Story to run\n@param filter the Filter to apply to the story Meta\n@param beforeStories the State before running any of the stories, if not\n<code>null</code>\n@throws Throwable if failures occurred and FailureStrategy dictates it to\nbe re-thrown." ]
[ "Read one collection element from the current row of the JDBC result set\n\n@param optionalOwner the collection owner\n@param optionalKey the collection key\n@param persister the collection persister\n@param descriptor the collection aliases\n@param rs the result set\n@param session the session\n@throws HibernateException if an error occurs\n@throws SQLException if an error occurs during the query execution", "Computes the square root of the complex number.\n\n@param input Input complex number.\n@param root Output. The square root of the input", "Add groups to the tree.\n\n@param parentNode parent tree node\n@param file group container", "Assigns the element in the Matrix to the specified value. Performs a bounds check to make sure\nthe requested element is part of the matrix.\n\n@param row The row of the element.\n@param col The column of the element.\n@param value The element's new value.", "Check that an array only contains null elements.\n@param values, can't be null\n@return", "called by timer thread", "Returns the name of the bone.\n\n@return the name", "Deserializes a variable, checking whether the datatype is custom or not\n@param s\n@param variableType\n@param dataTypes\n@return", "Initializes the fields on the changes file with the values of the specified\nbinary package control file.\n\n@param packageControlFile" ]
static Map<String, Set<String>> getChildAddresses(final OperationContext context, final PathAddress addr, final ImmutableManagementResourceRegistration registry, Resource resource, final String validChildType) { Map<String, Set<String>> result = new HashMap<>(); Predicate<String> validChildTypeFilter = childType -> (validChildType == null) || validChildType.equals(childType); if (resource != null) { for (String childType : registry.getChildNames(PathAddress.EMPTY_ADDRESS)) { if (validChildTypeFilter.test(childType)) { List<String> list = new ArrayList<>(); for (String child : resource.getChildrenNames(childType)) { if (registry.getSubModel(PathAddress.pathAddress(PathElement.pathElement(childType, child))) != null) { list.add(child); } } result.put(childType, new LinkedHashSet<>(list)); } } } Set<PathElement> paths = registry.getChildAddresses(PathAddress.EMPTY_ADDRESS); for (PathElement path : paths) { String childType = path.getKey(); if (validChildTypeFilter.test(childType)) { Set<String> children = result.get(childType); if (children == null) { // WFLY-3306 Ensure we have an entry for any valid child type children = new LinkedHashSet<>(); result.put(childType, children); } ImmutableManagementResourceRegistration childRegistration = registry.getSubModel(PathAddress.pathAddress(path)); if (childRegistration != null) { AliasEntry aliasEntry = childRegistration.getAliasEntry(); if (aliasEntry != null) { PathAddress childAddr = addr.append(path); PathAddress target = aliasEntry.convertToTargetAddress(childAddr, AliasContext.create(childAddr, context)); assert !childAddr.equals(target) : "Alias was not translated"; PathAddress targetParent = target.getParent(); Resource parentResource = context.readResourceFromRoot(targetParent, false); if (parentResource != null) { PathElement targetElement = target.getLastElement(); if (targetElement.isWildcard()) { children.addAll(parentResource.getChildrenNames(targetElement.getKey())); } else if (parentResource.hasChild(targetElement)) { children.add(path.getValue()); } } } if (!path.isWildcard() && childRegistration.isRemote()) { children.add(path.getValue()); } } } } return result; }
[ "Gets the addresses of the child resources under the given resource.\n\n@param context the operation context\n@param registry registry entry representing the resource\n@param resource the current resource\n@param validChildType a single child type to which the results should be limited. If {@code null} the result\nshould include all child types\n@return map where the keys are the child types and the values are a set of child names associated with a type" ]
[ "Determines the number of elements that the query would return. Override this\nmethod if the size shall be determined in a specific way.\n\n@return The number of elements", "Active inverter colors", "Sets the current collection definition derived from the current member, and optionally some attributes.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\[email protected] type=\"block\"\[email protected] name=\"attributes\" optional=\"true\" description=\"Attributes of the collection as name-value pairs 'name=value',\nseparated by commas\"\[email protected] name=\"auto-delete\" optional=\"true\" description=\"Whether to automatically delete the\ncollection on object deletion\"\[email protected] name=\"auto-retrieve\" optional=\"true\" description=\"Whether to automatically retrieve\nthe collection\"\[email protected] name=\"auto-update\" optional=\"true\" description=\"Whether to automatically update the\ncollection\"\[email protected] name=\"collection-class\" optional=\"true\" description=\"The type of the collection if not a\njava.util type or an array\"\[email protected] name=\"database-foreignkey\" optional=\"true\" description=\"Whether a database foreignkey shall be created\"\nvalues=\"true,false\"\[email protected] name=\"documentation\" optional=\"true\" description=\"Documentation on the collection\"\[email protected] name=\"element-class-ref\" optional=\"true\" description=\"The fully qualified name of\nthe element type\"\[email protected] name=\"foreignkey\" optional=\"true\" description=\"The name of the\nforeign keys (columns when an indirection table is given)\"\[email protected] name=\"foreignkey-documentation\" optional=\"true\" description=\"Documentation\non the foreign keys as a comma-separated list if using an indirection table\"\[email protected] name=\"indirection-table\" optional=\"true\" description=\"The name of the indirection\ntable for m:n associations\"\[email protected] name=\"indirection-table-documentation\" optional=\"true\" description=\"Documentation\non the indirection table\"\[email protected] name=\"indirection-table-primarykeys\" optional=\"true\" description=\"Whether the\nfields referencing the collection and element classes, should also be primarykeys\"\[email protected] name=\"otm-dependent\" optional=\"true\" description=\"Whether the collection is dependent on otm\"\[email protected] name=\"proxy\" optional=\"true\" description=\"Whether to use a proxy for the collection\"\[email protected] name=\"proxy-prefetching-limit\" optional=\"true\" description=\"Specifies the amount of objects to prefetch\"\[email protected] name=\"query-customizer\" optional=\"true\" description=\"The query customizer for this collection\"\[email protected] name=\"query-customizer-attributes\" optional=\"true\" description=\"Attributes for the query customizer\"\[email protected] name=\"refresh\" optional=\"true\" description=\"Whether to automatically refresh the\ncollection\"\[email protected] name=\"remote-foreignkey\" optional=\"true\" description=\"The name of the\nforeign key columns pointing to the elements if using an indirection table\"\[email protected] name=\"remote-foreignkey-documentation\" optional=\"true\" description=\"Documentation\non the remote foreign keys as a comma-separated list if using an indirection table\"", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity", "Configs created by this ConfigBuilder will use the given Redis sentinels.\n\n@param sentinels the Redis set of sentinels\n@return this ConfigBuilder", "Specify the proxy and the authentication parameters to be used\nto establish the connections to Apple Servers.\n\n<p>Read the <a href=\"http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html\">\nJava Networking and Proxies</a> guide to understand the\nproxies complexity.\n\n@param proxy the proxy object to be used to create connections\n@param proxyUsername a String object representing the username of the proxy server\n@param proxyPassword a String object representing the password of the proxy server\n@return this", "Use this API to fetch lbvserver_appflowpolicy_binding resources of given name .", "xml -> object\n\n@param message\n@param childClass\n@return", "Removes all the given tags from the document.\n\n@param dom the document object.\n@param tagName the tag name, examples: script, style, meta\n@return the changed dom." ]
String fetchToken(String tokenType) throws IOException, MediaWikiApiErrorException { Map<String, String> params = new HashMap<>(); params.put(ApiConnection.PARAM_ACTION, "query"); params.put("meta", "tokens"); params.put("type", tokenType); try { JsonNode root = this.sendJsonRequest("POST", params); return root.path("query").path("tokens").path(tokenType + "token").textValue(); } catch (IOException | MediaWikiApiErrorException e) { logger.error("Error when trying to fetch token: " + e.toString()); } return null; }
[ "Executes a API query action to get a new token.\nThe method only executes the action, without doing any\nchecks first. If errors occur, they are logged and null is returned.\n\n@param tokenType The kind of token to retrieve like \"csrf\" or \"login\"\n@return newly retrieved token or null if no token was retrieved" ]
[ "Calculate the arc length by angle and radius\n@param angle\n@return arc length", "Load the windows resize handler with initial view port detection.", "Append field with quotes and escape characters added in the key, if required.\nThe value is added without quotes and any escape characters.\n\n@return this", "Gets an entry point for the given deployment. If one does not exist it will be created. If the request controller is disabled\nthis will return null.\n\nEntry points are reference counted. If this method is called n times then {@link #removeControlPoint(ControlPoint)}\nmust also be called n times to clean up the entry points.\n\n@param deploymentName The top level deployment name\n@param entryPointName The entry point name\n@return The entry point, or null if the request controller is disabled", "Add the list with given bundles to the \"Export-Package\" main attribute.\n\n@param exportedPackages The list of all packages to add.", "object -> xml\n\n@param object\n@param childClass", "Assign FK value to all n-side objects referenced by given object.\n\n@param obj real object with 1:n reference\n@param cod {@link CollectionDescriptor} of referenced 1:n objects\n@param insert flag signal insert operation, false signals update operation", "Main entry point when called to process constraint data.\n\n@param projectDir project directory\n@param file parent project file\n@param inputStreamFactory factory to create input stream", "Generates the InputValue for the form input by inspecting the current\nvalue of the corresponding WebElement on the DOM.\n\n@return The current InputValue for the element on the DOM." ]
public static servicegroup_stats get(nitro_service service, String servicegroupname) throws Exception{ servicegroup_stats obj = new servicegroup_stats(); obj.set_servicegroupname(servicegroupname); servicegroup_stats response = (servicegroup_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of servicegroup_stats resource of given name ." ]
[ "Validate the header signature.\n\n@param input The input to read the signature from\n@throws IOException If any read problems occur", "Sets the body of this request to a given JSON string.\n@param body the JSON string to use as the body.", "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.", "Get the collection of untagged photos.\n\nThis method requires authentication with 'read' permission.\n\n@param perPage\n@param page\n@return A Collection of Photos\n@throws FlickrException", "Process the graphical indicator criteria for a single column.\n\n@param type field type\n@return indicator criteria data", "Transforms the category path of a category to the category.\n@return a map from root or site path to category.", "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.", "Create a buffered image with the correct image bands etc... for the tiles being loaded.\n\n@param imageWidth width of the image to create\n@param imageHeight height of the image to create.", "Attach a script file to a scriptable target.\n\n@param target The scriptable target.\n@param scriptFile The script file object." ]
public Plugin[] getPlugins(Boolean onlyValid) { Configuration[] configurations = ConfigurationService.getInstance().getConfigurations(Constants.DB_TABLE_CONFIGURATION_PLUGIN_PATH); ArrayList<Plugin> plugins = new ArrayList<Plugin>(); if (configurations == null) { return new Plugin[0]; } for (Configuration config : configurations) { Plugin plugin = new Plugin(); plugin.setId(config.getId()); plugin.setPath(config.getValue()); File path = new File(plugin.getPath()); if (path.isDirectory()) { plugin.setStatus(Constants.PLUGIN_STATUS_VALID); plugin.setStatusMessage("Valid"); } else { plugin.setStatus(Constants.PLUGIN_STATUS_NOT_DIRECTORY); plugin.setStatusMessage("Path is not a directory"); } if (!onlyValid || plugin.getStatus() == Constants.PLUGIN_STATUS_VALID) { plugins.add(plugin); } } return plugins.toArray(new Plugin[0]); }
[ "Returns the data about all of the plugins that are set\n\n@param onlyValid True to get only valid plugins, False for all\n@return array of Plugins set" ]
[ "Returns a list that contains all the entries of the given iterator in the same order.\n\n@param iterator\nthe iterator. May not be <code>null</code>.\n@return a list with the same entries as the given iterator. Never <code>null</code>.", "You should call this method from your activity onRequestPermissionsResult.\n\n@param requestCode The request code passed in requestPermissions(android.app.Activity, String[], int)\n@param permissions The requested permissions. Never null.\n@param grantResults The grant results for the corresponding permissions which is either\nPERMISSION_GRANTED or PERMISSION_DENIED. Never null.", "Determines the mutator method name based on a field name.\n\n@param fieldName\na field name\n@return the resulting method name", "Get the set of metadata providers that can offer metadata for tracks loaded from the specified media.\n\n@param sourceMedia the media whose metadata providers are desired, or {@code null} to get the set of\nmetadata providers that can offer metadata for all media.\n\n@return any registered metadata providers that reported themselves as supporting tracks from that media", "Use this API to fetch sslservicegroup_sslcertkey_binding resources of given name .", "Populates a recurring task.\n\n@param record MPX record\n@param task recurring task\n@throws MPXJException", "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "Destroy the proxy & update the map containing the registration ref.\n\n@param importDeclaration", "Init the bundle type member variable.\n@return the bundle type of the opened resource." ]
@SuppressWarnings("unchecked") private static Object resolveConflictWithResolver( final ConflictHandler conflictResolver, final BsonValue documentId, final ChangeEvent localEvent, final ChangeEvent remoteEvent ) { return conflictResolver.resolveConflict( documentId, localEvent, remoteEvent); }
[ "Returns the resolution of resolving the conflict between a local and remote event using\nthe given conflict resolver.\n\n@param conflictResolver the conflict resolver to use.\n@param documentId the document id related to the conflicted events.\n@param localEvent the conflicted local event.\n@param remoteEvent the conflicted remote event.\n@return the resolution to the conflict." ]
[ "Write a double attribute.\n\n@param name attribute name\n@param value attribute value", "Perform all Cursor cleanup here.", "Gets information about this collaboration.\n\n@return info about this collaboration.", "Update a variable name with a date if the variable is detected as being a date.\n\n@param variableName the variable name.\n@param date the date to replace the value with if the variable is a date variable.", "Wrap an existing setter.", "Resolve the single type argument of the given generic interface against the given\ntarget method which is assumed to return the given interface or an implementation\nof it.\n@param method the target method to check the return type of\n@param genericIfc the generic interface or superclass to resolve the type argument from\n@return the resolved parameter type of the method return type, or {@code null}\nif not resolvable or if the single argument is of type {@link WildcardType}.", "Set the channel. This will return whether the channel could be set successfully or not.\n\n@param newChannel the channel\n@return whether the operation succeeded or not", "Examines the error data returned from Facebook and throws the most applicable exception.\n@param errorDetails a Map containing a \"type\" and a \"message\" corresponding to the Graph API's error response structure.", "This private method allows the caller to determine if a given date is a\nworking day. This method takes account of calendar exceptions. It assumes\nthat the caller has already calculated the day of the week on which\nthe given day falls.\n\n@param date Date to be tested\n@param day Day of the week for the date under test\n@return boolean flag" ]
private void initialize(Handler callbackHandler) { int processors = Runtime.getRuntime().availableProcessors(); mDownloadDispatchers = new DownloadDispatcher[processors]; mDelivery = new CallBackDelivery(callbackHandler); }
[ "Perform construction.\n\n@param callbackHandler" ]
[ "Returns a source excerpt of a JavaDoc link to a method on this type.", "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler.", "Merge the two maps.\n\n<p>\nThe replied map is a view on the given map. It means that any change\nin the original map is reflected to the result of this operation.\n</p>\n\n<p>\nIf a key exists in the left and right operands, the value in the right operand is preferred.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param left the left map.\n@param right the right map.\n@return a map with the merged contents from the two maps.\n@throws IllegalArgumentException - when a right operand key exists in the left operand.\n@since 2.15", "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance", "Calls beforeMaterialization on all registered listeners in the reverse\norder of registration.", "Adjust the visible columns.", "Add the key and return it's index code. If the key already is present, the previous\nindex code is returned and no insertion is done.\n\n@param key key to add\n@return index of the key", "Are both Id's the same?\n\n@param otherElement the other element to compare\n@return true if id == otherElement.id", "If X == null then the solution is written into B. Otherwise the solution is copied\nfrom B into X." ]
public void fireCalendarWrittenEvent(ProjectCalendar calendar) { if (m_projectListeners != null) { for (ProjectListener listener : m_projectListeners) { listener.calendarWritten(calendar); } } }
[ "This method is called to alert project listeners to the fact that\na calendar has been written to a project file.\n\n@param calendar calendar instance" ]
[ "For given field name get the actual hint message", "Removes the row with the specified key from this association.\n\n@param key the key of the association row to remove", "Removes a parameter from this configuration.\n\n@param key the parameter to remove", "Read resource baseline values.\n\n@param row result set row", "Process the next event in a given stream.\n@return the fully processed event\n@throws IOException if a stream is in the wrong state, IO errors can be thrown", "Start the operation by instantiating the first job instance in a separate Thread.\n\n@param arguments {@inheritDoc}", "Retrieve the \"complete through\" date.\n\n@return complete through date", "Use this API to add cacheselector resources.", "Obtain the ID associated with a profile name\n\n@param profileName profile name\n@return ID of profile" ]