query
stringlengths
74
6.1k
positive
sequencelengths
1
1
negative
sequencelengths
9
9
public String getRelativePath() { final StringBuilder builder = new StringBuilder(); for(final String p : path) { builder.append(p).append("/"); } builder.append(getName()); return builder.toString(); }
[ "Get the relative path.\n\n@return the relative path" ]
[ "Installs a path service.\n\n@param name the name to use for the service\n@param path the relative portion of the path\n@param possiblyAbsolute {@code true} if {@code path} may be an {@link #isAbsoluteUnixOrWindowsPath(String) absolute path}\nand should be {@link AbsolutePathService installed as such} if it is, with any\n{@code relativeTo} parameter ignored\n@param relativeTo the name of the path that {@code path} may be relative to\n@param serviceTarget the {@link ServiceTarget} to use to install the service\n@return the ServiceController for the path service", "FOR internal use. This method was called before the external transaction was completed.\n\nThis method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method\nwe prepare odmg for commit and pass all modified persistent objects to DB and release/close the used\nconnection. We have to close the connection in this method, because the TxManager does prepare for commit\nafter this method and all used DataSource-connections have to be closed before.\n\n@see javax.transaction.Synchronization", "Get an exception reporting a missing, required XML child element.\n@param reader the stream reader\n@param required a set of enums whose toString method returns the\nattribute name\n@return the exception", "Return true if the connection being released is the one that has been saved.", "and class as property", "Adds a class to the unit.", "Initializes the type and validates it", "Update the context session to mark a user logged in\n\n@param userIdentifier\nthe user identifier, could be either userId or username", "Used to ensure that the general footer label will be at the same Y position as the variables in the band.\n@param band\n@return" ]
public List<Integer> getPathOrder(int profileId) { ArrayList<Integer> pathOrder = new ArrayList<Integer>(); PreparedStatement queryStatement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { queryStatement = sqlConnection.prepareStatement( "SELECT * FROM " + Constants.DB_TABLE_PATH + " WHERE " + Constants.GENERIC_PROFILE_ID + " = ? " + " ORDER BY " + Constants.PATH_PROFILE_PATH_ORDER + " ASC" ); queryStatement.setInt(1, profileId); results = queryStatement.executeQuery(); while (results.next()) { pathOrder.add(results.getInt(Constants.GENERIC_ID)); } } catch (SQLException e) { e.printStackTrace(); } finally { try { if (results != null) { results.close(); } } catch (Exception e) { } try { if (queryStatement != null) { queryStatement.close(); } } catch (Exception e) { } } logger.info("pathOrder = {}", pathOrder); return pathOrder; }
[ "Return collection of path Ids in priority order\n\n@param profileId ID of profile\n@return collection of path Ids in priority order" ]
[ "Calculate the Hamming distance between two hashes\n\n@param h1\n@param h2\n@return", "Perform construction.\n\n@param callbackHandler", "Set the TableAlias for aPath\n@param aPath\n@param hintClasses\n@param TableAlias", "Use this API to delete ntpserver resources of given names.", "Process a file.\n\n@param file the file to be processed\n@param mode the patching mode\n@throws IOException", "Use this API to update Interface resources.", "Retrieves the value component of a criteria expression.\n\n@param field field type\n@param block block data\n@return field value", "Removes columns from the matrix.\n\n@param A Matrix. Modified\n@param col0 First column\n@param col1 Last column, inclusive.", "Refresh's this connection's access token using its refresh token.\n@throws IllegalStateException if this connection's access token cannot be refreshed." ]
private boolean readNextRow() { while (!stop) { String row = getLineWrapped(); // end of stream - null indicates end of stream before we see last_seq which shouldn't // be possible but we should handle it if (row == null || row.startsWith("{\"last_seq\":")) { terminate(); return false; } else if (row.isEmpty()) { // heartbeat continue; } setNextRow(gson.fromJson(row, ChangesResult.Row.class)); return true; } // we were stopped, end of changes feed terminate(); return false; }
[ "Reads and sets the next feed in the stream." ]
[ "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", "Specifies the maximum capacity of the counter.\n\n@param capacity\n<code>long</code>\n@throws IllegalArgumentException\nif windowMillis is less than 1.", "Create a host target.\n\n@param hostName the host name\n@param client the connected controller client to the master host.\n@return the remote target", "Returns the output directory for reporting.", "Only call async", "Create a request for elevations for samples along a path.\n\n@param req\n@param callback", "Adds a new point.\n\n@param point a point\n@return this for chaining", "Reset the pool of resources for a specific destination. Idle resources\nwill be destroyed. Checked out resources that are subsequently checked in\nwill be destroyed. Newly created resources can be checked in to\nreestablish resources for the specific destination.", "Send JSON representation of given data object to all connections tagged with\ngiven label\n@param data the data object\n@param label the tag label" ]
private void readPattern(JSONObject patternJson) { setPatternType(readPatternType(patternJson)); setInterval(readOptionalInt(patternJson, JsonKey.PATTERN_INTERVAL)); setWeekDays(readWeekDays(patternJson)); setDayOfMonth(readOptionalInt(patternJson, JsonKey.PATTERN_DAY_OF_MONTH)); setEveryWorkingDay(readOptionalBoolean(patternJson, JsonKey.PATTERN_EVERYWORKINGDAY)); setWeeksOfMonth(readWeeksOfMonth(patternJson)); setIndividualDates(readDates(readOptionalArray(patternJson, JsonKey.PATTERN_DATES))); setMonth(readOptionalMonth(patternJson, JsonKey.PATTERN_MONTH)); }
[ "Read pattern information from the provided JSON object.\n@param patternJson the JSON object containing the pattern information." ]
[ "Finds the preferred provider for the given service. The preferred\nprovider is the last one added to the set of providers.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe last provider added for the service if any exists.\nOtherwise, it returns <tt>null</tt>.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Ask the specified player for the waveform preview 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 trackReference uniquely identifies the desired waveform preview\n@param failIfPassive will prevent the request from taking place if we are in passive mode, so that automatic\nwaveform updates will use available caches only\n\n@return the waveform preview found, if any", "Get a list of destinations and the values matching templated parameter for the given path.\nReturns an empty list when there are no destinations that are matched.\n\n@param path path to be routed.\n@return List of Destinations matching the given route.", "Geta the specified metadata template by its ID.\n@param api the API connection to be used.\n@param templateID the ID of the template to get.\n@return the metadata template object.", "Finishes the current box - empties the text line buffer and creates a DOM element from it.", "Ends interception context if it was previously stated. This is indicated by a local variable with index 0.", "Trade the request token for an access token, this is step three of authorization.\n@param oAuthRequestToken\nthis is the token returned by the {@link AuthInterface#getRequestToken} call.\n@param verifier", "Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder", "Override this method to change the default splash screen size or\nposition.\n\nThis method will be called <em>before</em> {@link #onInit(GVRContext)\nonInit()} and before the normal render pipeline starts up. In particular,\nthis means that any {@linkplain GVRAnimation animations} will not start\nuntil the first {@link #onStep()} and normal rendering starts.\n\n@param splashScreen\nThe splash object created from\n{@link #getSplashTexture(GVRContext)},\n{@link #getSplashMesh(GVRContext)}, and\n{@link #getSplashShader(GVRContext)}.\n\n@since 1.6.4" ]
private void readTasks(Project plannerProject) throws MPXJException { Tasks tasks = plannerProject.getTasks(); if (tasks != null) { for (net.sf.mpxj.planner.schema.Task task : tasks.getTask()) { readTask(null, task); } for (net.sf.mpxj.planner.schema.Task task : tasks.getTask()) { readPredecessors(task); } } m_projectFile.updateStructure(); }
[ "This method extracts task data from a Planner file.\n\n@param plannerProject Root node of the Planner file" ]
[ "Returns an iterator of all direct and indirect extents of this class.\n\n@return The extents iterator", "Use this API to add sslaction resources.", "Adds and returns a document with a new version to the given document.\n\n@param document the document to attach a new version to.\n@param newVersion the version to attach to the document\n@return a document with a new version to the given document.", "Returns the URL to the property file that contains CRS definitions.\n\n@return The URL to the epsg file containing custom EPSG codes", "Allows testsuites to shorten the domain timeout adder", "Throws an exception if the current thread is not a GL thread.\n\n@since 1.6.5", "Test the list of TimephasedWork instances to see\nif any of them have been modified.\n\n@param list list of TimephasedWork instances\n@return boolean flag", "Gets information about the device pin.\n@param fields the fields to retrieve.\n@return info about the device pin.", "Sets the left padding for all cells in the row.\n@param paddingLeft new padding, ignored if smaller than 0\n@return this to allow chaining" ]
public static final Date utc2date(Long time) { // don't accept negative values if (time == null || time < 0) return null; // add the timezone offset time += timezoneOffsetMillis(new Date(time)); return new Date(time); }
[ "Converts a time in UTC to a gwt Date object which is in the timezone of\nthe current browser.\n\n@return The Date corresponding to the time, adjusted for the timezone of\nthe current browser. null if the specified time is null or\nrepresents a negative number." ]
[ "Fetches the current online data for the given item, and fixes the\nprecision of integer quantities if necessary.\n\n@param itemIdValue\nthe id of the document to inspect\n@param propertyId\nid of the property to consider", "Set the color for the statusBar\n\n@param statusBarColor", "Remove a server mapping from current profile by ID\n\n@param serverMappingId server mapping ID\n@return Collection of updated ServerRedirects", "Sorts the given array into sorted order using the given comparator.\n\n@param self the array to be sorted\n@param comparator a Comparator used for the comparison\n@return the sorted array\n@since 1.5.5", "Loads the asset referenced by the file name\nunder the owner of this component.\nIf this component was constructed to replace the scene with\nthe asset, the main scene of the current context\nwill contain only the owner of this\ncomponent upon return. Otherwise, the loaded asset is a\nchild of this component's owner.\n\nLoading the asset is performed in a separate thread.\nThis function returns before the asset has finished loading.\nIAssetEvents are emitted to the input event handler and\nto any event listener on the context.\n\n@param handler\nIAssetEvents handler to process asset loading events", "Retrieve URL without parameters\n\n@param sourceURI source URI\n@return URL without parameters", "Makes this pose the inverse of the input pose.\n@param src pose to invert.", "Deletes the device pin.", "Process a single criteria block.\n\n@param list parent criteria list\n@param block current block" ]
public List<Module> getModules(final Map<String, String> filters) throws GrapesCommunicationException { final Client client = getClient(); WebResource resource = client.resource(serverURL).path(RequestUtils.getAllModulesPath()); for(final Map.Entry<String,String> queryParam: filters.entrySet()){ resource = resource.queryParam(queryParam.getKey(), queryParam.getValue()); } final ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class); client.destroy(); if(ClientResponse.Status.OK.getStatusCode() != response.getStatus()){ final String message = "Failed to get filtered modules."; if(LOG.isErrorEnabled()) { LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, message, response.getStatus())); } throw new GrapesCommunicationException(message, response.getStatus()); } return response.getEntity(new GenericType<List<Module>>(){}); }
[ "Get a list of modules regarding filters\n\n@param filters Map<String,String>\n@return List<Module>\n@throws GrapesCommunicationException" ]
[ "Sets the offset for the animation.\n\n@param startOffset animation will start at the specified offset value\n\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code startOffset} is either negative or greater than\nthe animation duration", "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", "Assign target number of partitions per node to specific node IDs. Then,\nseparates Nodes into donorNodes and stealerNodes based on whether the\nnode needs to donate or steal primary partitions.\n\n@param nextCandidateCluster\n@param numPartitionsPerNodePerZone\n@return a Pair. First element is donorNodes, second element is\nstealerNodes. Each element in the pair is a HashMap of Node to\nInteger where the integer value is the number of partitions to\nstore.", "Starts closing the keyboard when the hits are scrolled.", "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer.", "Parse a parameterized object from an InputStream.\n\n@param is The InputStream, most likely from your networking library.\n@param jsonObjectType The ParameterizedType describing the object. Ex: LoganSquare.parse(is, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });", "Return as a string the stereotypes associated with c\nterminated by the escape character term", "waits for all async mutations that were added before this was called to be flushed. Does not\nwait for async mutations added after call.", "Used to create a new indefinite retention policy.\n@param api the API connection to be used by the created user.\n@param name the name of the retention policy.\n@return the created retention policy's info." ]
public void setLargePayloadSupportEnabled(AmazonS3 s3, String s3BucketName) { if (s3 == null || s3BucketName == null) { String errorMessage = "S3 client and/or S3 bucket name cannot be null."; LOG.error(errorMessage); throw new AmazonClientException(errorMessage); } if (isLargePayloadSupportEnabled()) { LOG.warn("Large-payload support is already enabled. Overwriting AmazonS3Client and S3BucketName."); } this.s3 = s3; this.s3BucketName = s3BucketName; largePayloadSupport = true; LOG.info("Large-payload support enabled."); }
[ "Enables support for large-payload messages.\n\n@param s3\nAmazon S3 client which is going to be used for storing\nlarge-payload messages.\n@param s3BucketName\nName of the bucket which is going to be used for storing\nlarge-payload messages. The bucket must be already created and\nconfigured in s3." ]
[ "Converts any string into a string that is safe to use as a file name.\nThe result will only include ascii characters and numbers, and the \"-\",\"_\", and \".\" characters.", "Cancel all currently active operations.\n\n@return a list of cancelled operations", "Mapping originator.\n\n@param originator the originator\n@return the originator type", "Reads a string of single byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nReading begins at the supplied offset into the array.\n\n@param data byte array of data\n@param offset offset into the array\n@return string value", "Parses server section of Zookeeper connection string", "Provides the scrollableList implementation for page scrolling\n@return {@link LayoutScroller.ScrollableList} implementation, passed to {@link LayoutScroller}\nfor the processing the scrolling", "Verifies that the received image is identical to the original one.\n@param xopOriginal\n@param xopResponse", "Returns the ARGB components for the pixel at the given coordinates\n\n@param x the x coordinate of the pixel component to grab\n@param y the y coordinate of the pixel component to grab\n@return an array containing ARGB components in that order.", "Set the minimum date limit." ]
private Integer getIntegerPropertyOverrideValue(String name, String key) { if (properties != null) { String propertyName = getPropertyName(name, key); String propertyOverrideValue = properties.getProperty(propertyName); if (propertyOverrideValue != null) { try { return Integer.parseInt(propertyOverrideValue); } catch (NumberFormatException e) { logger.error("Could not parse property override key={}, value={}", key, propertyOverrideValue); } } } return null; }
[ "Get an integer property override value.\n@param name the {@link CircuitBreaker} name.\n@param key the property override key.\n@return the property override value, or null if it is not found." ]
[ "Initialize the fat client for the given store.\n\n1. Updates the coordinatorMetadata 2.Gets the new store configs from the\nconfig file 3.Creates a new @SocketStoreClientFactory 4. Subsequently\ncaches the @StoreClient obtained from the factory.\n\n\nThis is synchronized because if Coordinator Admin is already doing some\nchange we want the AsyncMetadataVersionManager to wait.\n\n@param storeName", "This method tells you if a ClassNode implements or extends a certain class.\n@param node\nthe node\n@param target\nthe class\n@return\ntrue if the class node 'is a' target", "Creates a Resque backtrace from a Throwable's stack trace. Includes\ncauses.\n\n@param t\nthe Exception to use\n@return a list of strings that represent how the exception's stacktrace\nappears.", "Reads the XER file table and row structure ready for processing.\n\n@param is input stream\n@throws MPXJException", "returns controller if a new device is found", "Adds a column pair to this foreignkey.\n\n@param localColumn The column in the local table\n@param remoteColumn The column in the remote table", "Add a new subsystem to a given registry.\n\n@param registry the registry\n@param name the subsystem name\n@param version the version", "the 1st request from the manager.", "Transforms root paths to site paths.\n\n@return lazy map from root paths to site paths.\n\n@see CmsRequestContext#removeSiteRoot(String)" ]
public ConnectionInfo getConnection(String name) { final URI uri = uriWithPath("./connections/" + encodePathSegment(name)); return this.rt.getForObject(uri, ConnectionInfo.class); }
[ "Retrieves state and metrics information for individual client connection.\n\n@param name connection name\n@return connection information" ]
[ "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods", "Loads the given class, respecting the given classloader.\n@param clazz class to load\n@return Loaded class\n@throws ClassNotFoundException", "Recursively scan the provided path and return a list of all Java packages contained therein.", "Declares the internal data structures so that it can process matrices up to the specified size.\n\n@param maxRows\n@param maxCols", "Returns a Bic object holding the value of the specified String.\n\n@param bic the String to be parsed.\n@return a Bic object holding the value represented by the string argument.\n@throws BicFormatException if the String doesn't contain parsable Bic.\nUnsupportedCountryException if bic's country is not supported.", "Find the the qualified container port of the target service\nUses java annotations first or returns the container port.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved containerPort of '0' as a fallback.", "Converts a string from ISO-8559-1 encoding to UTF-8.\n@param value ISO-8559-1 value\n@return UTF-8 value", "Set the role info for this user. If set, this will be used to set the user's authorizations.\n\n@param roles the roles\n@since 1.10.0", "Add a new download. The download will start automatically once the download manager is\nready to execute it and connectivity is available.\n\n@param request the parameters specifying this download\n@return an ID for the download, unique across the application. This ID is used to make future\ncalls related to this download.\n@throws IllegalArgumentException" ]
public void addRequiredBundles(Set<String> requiredBundles) { addRequiredBundles(requiredBundles.toArray(new String[requiredBundles.size()])); }
[ "Add the set with given bundles to the \"Require-Bundle\" main attribute.\n\n@param requiredBundles The set with all bundles to add." ]
[ "Use this API to delete dnsaaaarec.", "Obtain the destination hostname for a source host\n\n@param hostName\n@return", "Add a row to the table. We have a limited understanding of the way\nBtrieve handles outdated rows, so we use what we think is a version number\nto try to ensure that we only have the latest rows.\n\n@param primaryKeyColumnName primary key column name\n@param map Map containing row data", "Applies the mask to this address section and then compares values with the given address section\n\n@param mask\n@param other\n@return", "Patch provided by Avril Kotzen ([email protected])\nDB2 handles TINYINT (for mapping a byte).", "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.", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Must be called before any other functions. Declares and sets up internal data structures.\n\n@param numSamples Number of samples that will be processed.\n@param sampleSize Number of elements in each sample.", "Get a store definition from the given list of store definitions\n\n@param list A list of store definitions\n@param name The name of the store\n@return The store definition" ]
@Override public BigInteger getCount() { BigInteger cached = cachedCount; if(cached == null) { cachedCount = cached = getCountImpl(); } return cached; }
[ "gets the count of addresses that this address division grouping may represent\n\nIf this address division grouping is not a subnet block of multiple addresses or has no range of values, then there is only one such address.\n\n@return" ]
[ "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", "Use this API to fetch hanode_routemonitor_binding resources of given name .", "Logs an error by sending an error event to all listeners.\n\nError events can be generated by any part of GearVRF,\nfrom any thread. They are always sent to the event receiver\nof the GVRContext.\n\n@param message error message\n@param sender object which had the error\n@see IErrorEvents", "Reads the current properties for a language. If not already done, the properties are read from the respective file.\n@param locale the locale for which the localization should be returned.\n@return the properties.\n@throws IOException thrown if reading the properties from a file fails.\n@throws CmsException thrown if reading the properties from a file fails.", "Load the related repositories, plugins and a promotion config associated to the buildId.\nCalled from the UI.\n\n@param buildId - The unique build id.\n@return LoadBuildsResponse e.g. list of repositories, plugins and a promotion config.", "The user making this call must be an admin in the workspace.\nReturns an empty data record.\n\n@param workspace The workspace or organization to invite the user to.\n@return Request object", "Creates a Bytes object by copying the data of the given byte array", "create logs with given partition number\n\n@param topic the topic name\n@param partitions partition number\n@param forceEnlarge enlarge the partition number of log if smaller than runtime\n@return the partition number of the log after enlarging", "Add a property." ]
public static int findFirstNonAnnotationLine(ASTNode node, SourceCode sourceCode) { if (node instanceof AnnotatedNode && !((AnnotatedNode) node).getAnnotations().isEmpty()) { // HACK: Groovy line numbers are broken when annotations have a parameter :( // so we must look at the lineNumber, not the lastLineNumber AnnotationNode lastAnnotation = null; for (AnnotationNode annotation : ((AnnotatedNode) node).getAnnotations()) { if (lastAnnotation == null) lastAnnotation = annotation; else if (lastAnnotation.getLineNumber() < annotation.getLineNumber()) lastAnnotation = annotation; } String rawLine = getRawLine(sourceCode, lastAnnotation.getLastLineNumber()-1); if(rawLine == null) { return node.getLineNumber(); } // is the annotation the last thing on the line? if (rawLine.length() > lastAnnotation.getLastColumnNumber()) { // no it is not return lastAnnotation.getLastLineNumber(); } // yes it is the last thing, return the next thing return lastAnnotation.getLastLineNumber() + 1; } return node.getLineNumber(); }
[ "gets the first non annotation line number of a node, taking into account annotations." ]
[ "Returns a list of the rekordbox IDs of the tracks contained in the cache.\n\n@return a list containing the rekordbox ID for each track present in the cache, in the order they appear", "Sets the replacement var map node specific.\n\n@param replacementVarMapNodeSpecific\nthe replacement var map node specific\n@return the parallel task builder", "Add a custom query parameter to the _changes request. Useful for specifying extra parameters\nto a filter function for example.\n\n@param name the name of the query parameter\n@param value the value of the query parameter\n@return this Changes instance\n@since 2.5.0", "Execute blocking for a prepared result.\n\n@param operation the operation to execute\n@param client the protocol client\n@return the prepared operation\n@throws IOException\n@throws InterruptedException", "Retrieves the members of the type and of its super types.\n\n@param memberNames Will receive the names of the members (for sorting)\n@param members Will receive the members\n@param type The type to process\n@param tagName An optional tag for filtering the types\n@param paramName The feature to be added to the MembersInclSupertypes attribute\n@param paramValue The feature to be added to the MembersInclSupertypes attribute\n@throws XDocletException If an error occurs", "Tests that the area is valid geojson, the style ref is valid or null and the display is non-null.", "Explicitly set the end time of the event.\n\nIf the provided date is <code>null</code> or a date before the start date, the end date defaults to the start date.\n\n@param endDate the end time of the event.", "Cause the container to be cleaned up, including all registered bean\nmanagers, and all deployment services", "Main method of this class related to RecyclerView widget. This method is the responsible of\ncreate a new Renderer instance with all the needed information to implement the rendering.\nThis method will validate all the attributes passed in the builder constructor and will create\na RendererViewHolder instance.\n\nThis method is used with RecyclerView because the view recycling mechanism is implemented out\nof this class and we only have to return new RendererViewHolder instances.\n\n@return ready to use RendererViewHolder instance." ]
public void info(Throwable throwable, String msg, Object[] argArray) { logIfEnabled(Level.INFO, throwable, msg, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, argArray); }
[ "Log a info message with a throwable." ]
[ "Use this API to fetch vrid6 resource of given name .", "It will look for all the deployments under the deploymentsRootAddress with a runtimeName in the specified list of\nruntime names and then transform the operation so that every server having those deployments will redeploy the\naffected deployments.\n\n@see #transformOperation\n@param removeOperation\n@param context\n@param deploymentsRootAddress\n@param runtimeNames\n@throws OperationFailedException", "Checks the preconditions for creating a new Truncate processor.\n\n@param maxSize\nthe maximum size of the String\n@param suffix\nthe String to append if the input is truncated (e.g. \"...\")\n@throws IllegalArgumentException\nif {@code maxSize <= 0}\n@throws NullPointerException\nif suffix is null", "Sets a single element of this vector. Elements 0, 1, and 2 correspond to\nx, y, and z.\n\n@param i\nelement index\n@param value\nelement value\n@return element value throws ArrayIndexOutOfBoundsException if i is not\nin the range 0 to 2.", "Retrieve the value of a UDF.\n\n@param udf UDF value holder\n@return UDF value", "Init the headers of the table regarding the filters\n\n@return String[]", "Retrieve a field from a particular entity using its alias.\n\n@param typeClass the type of entity we are interested in\n@param alias the alias\n@return the field type referred to be the alias, or null if not found", "Add a line symbolizer definition to the rule.\n\n@param styleJson The old style.", "May have to be changed to let multiple touch" ]
private int beatOffset(int beatNumber) { if (beatCount == 0) { throw new IllegalStateException("There are no beats in this beat grid."); } if (beatNumber < 1 || beatNumber > beatCount) { throw new IndexOutOfBoundsException("beatNumber (" + beatNumber + ") must be between 1 and " + beatCount); } return beatNumber - 1; }
[ "Calculate where within the beat grid array the information for the specified beat can be found.\nYes, this is a super simple calculation; the main point of the method is to provide a nice exception\nwhen the beat is out of bounds.\n\n@param beatNumber the beat desired\n\n@return the offset of the start of our cache arrays for information about that beat" ]
[ "Read the domain controller data from an S3 file.\n\n@param directoryName the name of the directory in the bucket that contains the S3 file\n@return the domain controller data", "Transforms the configuration.\n\n@throws Exception if something goes wrong", "Creates a new block box from the given element with the given parent. No style is assigned to the resulting box.\n@param parent The parent box in the tree of boxes.\n@param n The element that this box belongs to.\n@param replaced When set to <code>true</code>, a replaced block box will be created. Otherwise, a normal non-replaced block will be created.\n@return The new block box.", "This method reads an eight byte integer from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value", "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.", "Read relationship data from a PEP file.", "Returns all resources that belong to the bundle\nThis includes the descriptor if one exists.\n\n@return List of the bundle resources, including the descriptor.", "Returns if a request should be retried based on the retry count, current response,\nand the current strategy.\n\n@param retryCount The current retry attempt count.\n@param response The exception that caused the retry conditions to occur.\n@return true if the request should be retried; false otherwise.", "Creates a span that covers an exact row" ]
public static Object getFieldValue(Object object, String fieldName) { try { return getDeclaredFieldInHierarchy(object.getClass(), fieldName).get(object); } catch (IllegalArgumentException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }
[ "Convenience method for getting the value of a private object field,\nwithout the stress of checked exceptions in the reflection API.\n\n@param object\nObject containing the field.\n@param fieldName\nName of the field whose value to return." ]
[ "Logout the current session. After calling this method,\nthe session will be cleared", "Use this API to Force hafailover.", "Gets information about all of the group memberships for this group.\nDoes not support paging.\n@return a collection of information about the group memberships for this group.", "Stops all servers.\n\n{@inheritDoc}", "returns the XmlCapable id associated with the literal.\nOJB maintains a RepositoryTags table that provides\na mapping from xml-tags to XmlCapable ids.\n\n@param literal the literal to lookup\n@return the int value representing the XmlCapable\n\n@throws MetadataException if no literal was found in tags mapping", "Makes a DocumentReaderAndWriter based on the flags the CRFClassifier\nwas constructed with. Will create the flags.readerAndWriter and\ninitialize it with the CRFClassifier's flags.", "Select the specific vertex and fragment shader to use with this material.\n\nThe shader template is used to generate the sources for the vertex and\nfragment shader based on the material properties only.\nIt will ignore the mesh attributes and all lights.\n\n@param context\nGVRContext\n@param material\nmaterial to use with the shader\n@return ID of vertex/fragment shader set", "detect if WS Addressing feature already enabled.\n\n@param provider the interceptor provider\n@param bus the bus\n@return true, if successful", "Returns the index of a key in the set.\n\n@param key The key to search for.\n@return Returns the index of the key if it exists, else a negative integer." ]
private void writeAssignments() { for (ResourceAssignment assignment : m_projectFile.getResourceAssignments()) { Resource resource = assignment.getResource(); if (resource != null) { Task task = assignment.getTask(); if (task != null && task.getUniqueID().intValue() != 0 && !task.getSummary()) { writeAssignment(assignment); } } } }
[ "Writes assignment data to a PM XML file." ]
[ "Use this API to unset the properties of onlinkipv6prefix resources.\nProperties that need to be unset are specified in args array.", "Use this API to add snmpmanager resources.", "Watches specified IDs in a collection.\n@param ids the ids to watch.\n@return the stream of change events.", "Get all backup data\n\n@param model\n@return\n@throws Exception", "Set the week days the events should occur.\n@param weekDays the week days to set.", "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>.", "Obtains a Accounting zoned date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the Accounting zoned date-time, not null\n@throws DateTimeException if unable to create the date-time", "Write the standard set of day types.\n\n@param calendars parent collection of calendars", "Utility method used to convert an integer time representation into a\nDuration instance.\n\n@param totalTime integer time representation\n@param format required time format\n@return new Duration instance" ]
public void incrementVersion(int node, long time) { if(node < 0 || node > Short.MAX_VALUE) throw new IllegalArgumentException(node + " is outside the acceptable range of node ids."); this.timestamp = time; Long version = versionMap.get((short) node); if(version == null) { version = 1L; } else { version = version + 1L; } versionMap.put((short) node, version); if(versionMap.size() >= MAX_NUMBER_OF_VERSIONS) { throw new IllegalStateException("Vector clock is full!"); } }
[ "Increment the version info associated with the given node\n\n@param node The node" ]
[ "Finds or opens a client to talk to the dbserver on the specified player, incrementing its use count.\n\n@param targetPlayer the player number whose database needs to be interacted with\n@param description a short description of the task being performed for error reporting if it fails,\nshould be a verb phrase like \"requesting track metadata\"\n\n@return the communication client for talking to that player, or {@code null} if the player could not be found\n\n@throws IllegalStateException if we can't find the target player or there is no suitable player number for us\nto pretend to be\n@throws IOException if there is a problem communicating", "Use this API to fetch the statistics of all servicegroup_stats resources that are configured on netscaler.", "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation terminates.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param <T> the return type of the caller\n@param resourceType the java.lang.reflect.Type of the resource.\n@return the terminal response for the operation.\n@throws CloudException REST exception\n@throws InterruptedException interrupted exception\n@throws IOException thrown by deserialization", "Get the information for a specified photoset.\n\nThis method does not require authentication.\n\n@param photosetId\nThe photoset ID\n@return The Photoset\n@throws FlickrException", "The document field must not exist in the list provided\n@param rhs The argument - one or more values\n@return PredicateExpression: $nin rhs", "Given a set of versions, constructs a resolved list of versions based on\nthe compare function above\n\n@param values\n@return list of values after resolution", "Loads the specified class name and stores it in the hash\n\n@param className class name\n@throws Exception exception", "Returns an Object array of all FK field values of the specified object.\nIf the specified object is an unmaterialized Proxy, it will be materialized\nto read the FK values.\n\n@throws MetadataException if an error occours while accessing ForeingKey values on obj", "Utility function that checks if store names are valid on a node.\n\n@param adminClient An instance of AdminClient points to given cluster\n@param nodeId Node id to fetch stores from\n@param storeNames Store names to check" ]
public boolean needsRefresh() { boolean needsRefresh; this.refreshLock.readLock().lock(); long now = System.currentTimeMillis(); long tokenDuration = (now - this.lastRefresh); needsRefresh = (tokenDuration >= this.expires - REFRESH_EPSILON); this.refreshLock.readLock().unlock(); return needsRefresh; }
[ "Determines if this connection's access token has expired and needs to be refreshed.\n@return true if the access token needs to be refreshed; otherwise false." ]
[ "Reads baseline values for the current task.\n\n@param xmlTask MSPDI task instance\n@param mpxjTask MPXJ task instance\n@param durationFormat duration format to use", "Find a statement group by its property id, without checking for\nequality with the site IRI. More efficient implementation than\nthe default one.", "Returns the full workspace record for a single workspace.\n\n@param workspace Globally unique identifier for the workspace or organization.\n@return Request object", "Read metadata by populating an instance of the target class\nusing SAXParser.", "This method is used to automatically generate a value\nfor the WBS field of this task.\n\n@param parent Parent Task", "Use this API to fetch sslcertkey resources of given names .", "Create a model controller client which is exclusively receiving messages on an existing channel.\n\n@param channel the channel\n@param executorService an executor\n@return the created client", "Use this API to add onlinkipv6prefix.", "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" ]
private void updateRemoveR() { for( int i = 1; i < n+1; i++ ) { for( int j = 0; j < n; j++ ) { double sum = 0; for( int k = i-1; k <= j; k++ ) { sum += U_tran.data[i*m+k] * R.data[k*n+j]; } R.data[(i-1)*n+j] = sum; } } }
[ "Updates the R matrix to take in account the removed row." ]
[ "Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The index descriptor definition or <code>null</code> if there is no such index", "Process a compilation unit already parsed and build.", "Removes the given object from the cache\n\n@param oid oid of the object to remove", "Initializes an annotation class\n\n@param name The name of the annotation class\n@return The instance of the annotation. Returns a dummy if the class was\nnot found", "Adds an option to the JVM arguments to enable JMX connection\n\n@param jvmArgs the JVM args\n@return a new list of JVM args", "Validate that the overlay exists. If it doesn't exist, throws an\nexception if not in batch mode or if failInBatch is true. In batch mode,\nwe could be in the case that the overlay doesn't exist yet.", "The length of the region left to the completion offset that is part of the\nreplace region.", "Returns true if this entity's primary key is not null, and for numeric\nfields, is non-zero.", "Executes the API action \"wbsetaliases\" for the given parameters.\n\n@param id\nthe id of the entity to be edited; if used, the site and title\nparameters must be null\n@param site\nwhen selecting an entity by title, the site key for the title,\ne.g., \"enwiki\"; if used, title must also be given but id must\nbe null\n@param title\nstring used to select an entity by title; if used, site must\nalso be given but id must be null\n@param newEntity\nused for creating a new entity of a given type; the value\nindicates the intended entity type; possible values include\n\"item\" and \"property\"; if used, the parameters id, site, and\ntitle must be null\n@param language\nthe language code for the label\n@param add\nthe values of the aliases to add. They will be merged with the\nexisting aliases. This parameter cannot be used in conjunction\nwith \"set\".\n@param remove\nthe values of the aliases to remove. Other aliases will be retained.\nThis parameter cannot be used in conjunction with \"set\".\n@param set\nthe values of the aliases to set. This will erase any existing\naliases in this language and replace them by the given list.\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revision of the data that the edit refers to or 0 if this\nshould not be submitted; when used, the site will ensure that\nno edit has happened since this revision to detect edit\nconflicts; it is recommended to use this whenever in all\noperations where the outcome depends on the state of the\nonline data\n@param summary\nsummary for the edit; will be prepended by an automatically\ngenerated comment; the length limit of the autocomment\ntogether with the summary is 260 characters: everything above\nthat limit will be cut off\n@return the JSON response from the API\n@throws IOException\nif there was an IO problem. such as missing network\nconnection\n@throws MediaWikiApiErrorException\nif the API returns an error\n@throws IOException\n@throws MediaWikiApiErrorException" ]
public static systemuser get(nitro_service service, String username) throws Exception{ systemuser obj = new systemuser(); obj.set_username(username); systemuser response = (systemuser) obj.get_resource(service); return response; }
[ "Use this API to fetch systemuser resource of given name ." ]
[ "Use this API to fetch vpnvserver_authenticationsamlpolicy_binding resources of given name .", "Starts the ephemeral node and waits for it to be created\n\n@param node Node to start\n@param maxWaitSec Maximum time in seconds to wait", "Performs DBSCAN cluster analysis.\n\n@param points the points to cluster\n@return the list of clusters\n@throws NullArgumentException if the data points are null", "Updates the store definition object and the retention time based on the\nupdated store definition", "Adds one statement to the list of statements to be kept, possibly merging\nit with other statements to be kept if possible. When two existing\nstatements are merged, one of them will be updated and the other will be\nmarked for deletion.\n\n@param statement\nstatement to add\n@param isNew\nif true, the statement should be marked for writing; if false,\nthe statement already exists in the current data and is only\nadded to remove duplicates and avoid unnecessary writes", "Operations to do after all subthreads finished their work on index\n\n@param backend", "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", "Returns whether the values of this division grouping contain the prefix block for the given prefix length\n\n@param prefixLength\n@return", "set the insetsFrameLayout to display the content in fullscreen\nunder the statusBar and navigationBar\n\n@param fullscreen" ]
public final void notifyContentItemRangeChanged(int positionStart, int itemCount) { if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > contentItemCount) { throw new IndexOutOfBoundsException("The given range [" + positionStart + " - " + (positionStart + itemCount - 1) + "] is not within the position bounds for content items [0 - " + (contentItemCount - 1) + "]."); } notifyItemRangeChanged(positionStart + headerItemCount, itemCount); }
[ "Notifies that multiple content items are changed.\n\n@param positionStart the position.\n@param itemCount the item count." ]
[ "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", "Get info for a given topic\n\n@param topicId\nUnique identifier of a topic for a given group {@link Topic}.\n@return A group topic\n@throws FlickrException\n@see <a href=\"http://www.flickr.com/services/api/flickr.groups.discuss.topics.getInfo.html\">API Documentation</a>", "Adds OPT_D | OPT_DIR option to OptionParser, with one argument.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Convert MPX day index to Day instance.\n\n@param day day index\n@return Day instance", "Attempt to shutdown the server. As much shutdown as possible will be\ncompleted, even if intermediate errors are encountered.\n\n@throws VoldemortException", "Returns true if the string is a valid Java full qualified class name.\n\n@param str the string to be examined\n@return true if str is a valid Java Fqcn", "Wrap Statement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a statement.", "Scans the scene graph to collect picked items\nand generates appropriate pick and touch events.\nThis function is called by the cursor controller\ninternally but can also be used to funnel a\nstream of Android motion events into the picker.\n@see #pickObjects(GVRScene, float, float, float, float, float, float)\n@param touched true if the \"touched\" button is pressed.\nWhich button indicates touch is controller dependent.\n@param event Android MotionEvent which caused the pick\n@see IPickEvents\n@see ITouchEvents", "Serialize a parameterized object to an OutputStream.\n\n@param object The object to serialize.\n@param parameterizedType The ParameterizedType describing the object. Ex: LoganSquare.serialize(object, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { }, os);\n@param os The OutputStream being written to." ]
private void registerProxyCreator(Node source, BeanDefinitionHolder holder, ParserContext context) { String beanName = holder.getBeanName(); String proxyName = beanName + "Proxy"; String interceptorName = beanName + "PerformanceMonitorInterceptor"; BeanDefinitionBuilder initializer = BeanDefinitionBuilder.rootBeanDefinition(BeanNameAutoProxyCreator.class); initializer.addPropertyValue("beanNames", beanName); initializer.addPropertyValue("interceptorNames", interceptorName); BeanDefinitionRegistry registry = context.getRegistry(); registry.registerBeanDefinition(proxyName, initializer.getBeanDefinition()); }
[ "Registers a BeanNameAutoProxyCreator class that wraps the bean being\nmonitored. The proxy is associated with the PerformanceMonitorInterceptor\nfor the bean, which is created when parsing the methods attribute from\nthe springconfiguration xml file.\n\n@param source An Attribute node from the spring configuration\n@param holder A container for the beans I will create\n@param context the context currently parsing my spring config" ]
[ "perform rollback on all tx-states", "Read the metadata from a hadoop SequenceFile\n\n@param fs The filesystem to read from\n@param path The file to read from\n@return The metadata from this file", "Begin writing a named list attribute.\n\n@param name attribute name", "Sets the seed for random number generator", "get TypeSignature given the signature\n\n@param typeSignature\n@param useInternalFormFullyQualifiedName\nif true, fqn in parameterizedTypeSignature must be in the form\n'java/lang/Thread'. If false fqn must be of the form\n'java.lang.Thread'\n@return", "Finds trajectory by ID\n@param t List of Trajectories\n@param id ID of the trajectorie\n@return Trajectory with ID=id", "Creates a build\n\n@param appName See {@link #listApps} for a list of apps that can be used.\n@param build the build information", "Reads the next \"word from the request, comprising all characters up to the next SPACE.\nCharacters are tested by the supplied CharacterValidator, and an exception is thrown\nif invalid characters are encountered.", "Changes to a new sub-view and stores a report to be displayed by that subview.<p<\n\n@param newState the new state\n@param thread the report thread which should be displayed in the sub view\n@param label the label to display for the report" ]
public static OptionalString ofNullable(ResourceKey key, String value) { return new GenericOptionalString(RUNTIME_SOURCE, key, value); }
[ "Returns new instance of OptionalString with given key and value\n@param key key of the returned OptionalString\n@param value wrapped string\n@return given object wrapped in OptionalString with given key" ]
[ "Records that there is no media mounted in a particular media player slot, updating listeners if this is a change,\nand clearing any affected items from our in-memory caches.\n\n@param slot the slot in which no media is mounted", "Sorts the given array into sorted order using the given comparator.\n\n@param self the array to be sorted\n@param comparator a Comparator used for the comparison\n@return the sorted array\n@since 1.5.5", "Use this API to fetch the statistics of all protocolip_stats resources that are configured on netscaler.", "Determines the java.sql.Types constant value from an OJB\nFIELDDESCRIPTOR value.\n\n@param type The FIELDDESCRIPTOR which JDBC type is to be determined.\n\n@return int the int value representing the Type according to\n\n@throws SQLException if the type is not a valid jdbc type.\njava.sql.Types", "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", "Get the processor graph to use for executing all the processors for the template.\n\n@return the processor graph.", "Get the URL for the user's profile.\n\n@param userId\nThe user ID\n@return The URL\n@throws FlickrException", "Create a Deliverable inside the database that will track a file created by a JobInstance Must be called from inside a transaction\n\n@param path\nFilePath (relative to a root directory - cf. Node)\n@param originalFileName\nFileName\n@param fileFamily\nFile family (may be null). E.g.: \"daily report\"\n@param jobId\nJob Instance ID\n@param cnx\nthe DbConn to use.", "Readable yyyyMMdd int representation of a day, which is also sortable." ]
public boolean filter(Event event) { LOG.info("StringContentFilter called"); if (wordsToFilter != null) { for (String filterWord : wordsToFilter) { if (event.getContent() != null && -1 != event.getContent().indexOf(filterWord)) { return true; } } } return false; }
[ "Filter event if word occurs in wordsToFilter.\n\n@param event the event\n@return true, if successful" ]
[ "Connect and register at the remote domain controller.\n\n@return connection the established connection\n@throws IOException", "Main method of the class, which handles the process of creating the tests\n\n@param requirementsFolder\n, it is the folder where the plain text given by the client is\nstored\n@param platformName\n, to choose the MAS platform (JADE, JADEX, etc.)\n@param src_test_dir\n, the folder where our classes are created\n@param tests_package\n, the name of the package where the stories are created\n@param casemanager_package\n, the path where casemanager must be created\n@param loggingPropFile\n, properties file\n@throws Exception\n, if any error is found in the configuration", "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>.", "Propagate onMotionOutside events to listeners\n@param MotionEvent Android MotionEvent when nothing is picked", "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class.", "Check that the ranges and sizes add up, otherwise we have lost some data somewhere", "This produces a string with no compressed segments and all segments of full length,\nwhich is 3 characters for IPv4 segments.", "Get the URI for the given statement.\n\n@param statement\nthe statement for which to create a URI\n@return the URI", "Parse a string representation of password spec.\n\nA password spec string should be `<trait spec><length spec>`.\n\nWhere \"trait spec\" should be a composition of\n\n* `a` - indicate lowercase letter required\n* `A` - indicate uppercase letter required\n* `0` - indicate digit letter required\n* `#` - indicate special character required\n\n\"length spec\" should be `[min,max]` where `max` can be omitted.\n\nHere are examples of valid \"length spec\":\n\n* `[6,20]` // min length: 6, max length: 20\n* `[8,]` // min length: 8, max length: unlimited\n\nAnd examples of invalid \"length spec\":\n\n* `[8]` // \",\" required after min part\n* `[a,f]` // min and max part needs to be decimal digit(s)\n* `[3,9)` // length spec must be started with `[` and end with `]`\n\n@param spec a string representation of password spec\n@return a {@link PasswordSpec} instance" ]
public int getTotalUsedCapacity() { int totalCapacity = 0; for (Entry<String, ParallelTask> entry : inprogressTaskMap.entrySet()) { ParallelTask task = entry.getValue(); if (task != null) totalCapacity += task.capacityUsed(); } return totalCapacity; }
[ "get current total used capacity.\n\n@return the total used capacity" ]
[ "Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name .", "Set the row, column, and value\n\n@return this", "Use this API to fetch vpnclientlessaccesspolicy resource of given name .", "Reads the NTriples file from the reader, pushing statements into\nthe handler.", "Generate query part for the facet, without filters.\n@param query The query, where the facet part should be added", "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", "Send a device update to all registered update listeners.\n\n@param update the device update that has just arrived", "Replaces each substring of this CharSequence that matches the given\nregular expression with the given replacement.\n\n@param self a CharSequence\n@param regex the capturing regex\n@param replacement the string to be substituted for each match\n@return the toString() of the CharSequence with content replaced\n@throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid\n@see String#replaceAll(String, String)\n@since 1.8.2", "Check if underlying connection was alive." ]
public static long hash(final BsonDocument doc) { if (doc == null) { return 0L; } final byte[] docBytes = toBytes(doc); long hashValue = FNV_64BIT_OFFSET_BASIS; for (int offset = 0; offset < docBytes.length; offset++) { hashValue ^= (0xFF & docBytes[offset]); hashValue *= FNV_64BIT_PRIME; } return hashValue; }
[ "Implementation of FNV-1a hash algorithm.\n@see <a href=\"https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function\">\nttps://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function</a>\n@param doc the document to hash\n@return" ]
[ "Use this API to add tmtrafficaction.", "Release transaction that was acquired in a thread with specified permits.", "Get an Iterator based on the ReportQuery\n\n@param query\n@return Iterator", "Record a new event.", "Read JdbcConnectionDescriptors from the given repository file.\n\n@see #mergeConnectionRepository", "Use this API to unset the properties of cmpparameter resource.\nProperties that need to be unset are specified in args array.", "Curries a procedure that takes five arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@return a procedure that takes four arguments. Never <code>null</code>.", "Starts the scavenger.", "Arbitrarily resolve the inconsistency by choosing the first object if\nthere is one.\n\n@param values The list of objects\n@return A single value, if one exists, taken from the input list." ]
public static void changeSign(DMatrixSparseCSC A , DMatrixSparseCSC B ) { if( A != B ) { B.copyStructure(A); } for (int i = 0; i < A.nz_length; i++) { B.nz_values[i] = -A.nz_values[i]; } }
[ "B = -A. Changes the sign of elements in A and stores it in B. A and B can be the same instance.\n\n@param A (Input) Matrix. Not modified.\n@param B (Output) Matrix. Modified." ]
[ "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", "Merge the source skeleton with this one.\nThe result will be that this skeleton has all of its\noriginal bones and all the bones in the new skeleton.\n\n@param newSkel skeleton to merge with this one", "Consumes a produced result. Calls every transformer in sequence, then\ncalls every dataWriter in sequence.\n\n@param initialVars a map containing the initial variables assignments\n@return the number of lines written", "Get the original-image using the specified URL suffix.\n\n@deprecated\n@see PhotosInterface#getImage(Photo, int)\n@param suffix\nThe URL suffix, including the .extension\n@return The BufferedImage object\n@throws IOException\n@throws FlickrException", "Serialize the object JSON. When an error occures return a string with the given error.", "build an Authentication.\n\nTypes:\n<ul>\n<li>plain:jafka</li>\n<li>md5:77be29f6d71ec4e310766ddf881ae6a0</li>\n<li>crc32:1725717671</li>\n</ul>\n@param crypt password style\n@return an authentication\n@throws IllegalArgumentException password error", "Normalizes the matrix such that the Frobenius norm is equal to one.\n\n@param A The matrix that is to be normalized.", "Recurses the given folder and creates the FileModels vertices for the child files to the graph.", "Creates a Sink Processor\n\n@param dataSink the data sink itself\n@param parallelism the parallelism of this processor\n@param description the description for this processor\n@param taskConf the configuration for this processor\n@param system actor system\n@return the new created sink processor" ]
private String getOrdinal(Integer value) { String result; int index = value.intValue(); if (index >= ORDINAL.length) { result = "every " + index + "th"; } else { result = ORDINAL[index]; } return result; }
[ "Retrieve the ordinal text for a given integer.\n\n@param value integer value\n@return ordinal text" ]
[ "Converts the http entity to string. If entity is null, returns empty string.\n@param entity\n@return\n@throws IOException", "This method handles submitting and then waiting for the request from the\nserver. It uses the ClientRequest API to actually write the request and\nthen read back the response. This implementation will block for a\nresponse from the server.\n\n@param <T> Return type\n\n@param clientRequest ClientRequest implementation used to write the\nrequest and read the response\n@param operationName Simple string representing the type of request\n\n@return Data returned by the individual requests", "This method returns the existing folder, and if it does not exist, the\nmethod generates it.\n\n@param path\n@param dest_dir\n@return the folder\n@throws BeastException", "Specifies the list of enrichers that will be used to enrich the container object.\n\n@param enrichers\nlist of enrichers that will be used to enrich the container object\n\n@return the current builder instance", "In the case where the prefix sits at a segment boundary, and the prefix sequence is null - null - 0, this changes to prefix sequence of null - x - 0, where x is segment bit length.\n\nNote: We allow both [null, null, 0] and [null, x, 0] where x is segment length. However, to avoid inconsistencies when doing segment replacements,\nand when getting subsections, in the calling constructor we normalize [null, null, 0] to become [null, x, 0].\nWe need to support [null, x, 0] so that we can create subsections and full addresses ending with [null, x] where x is bit length.\nSo we defer to that when constructing addresses and sections.\nAlso note that in our append/appendNetowrk/insert/replace we have special handling for cases like inserting [null] into [null, 8, 0] at index 2.\nThe straight replace would give [null, 8, null, 0] which is wrong.\nIn that code we end up with [null, null, 8, 0] by doing a special trick:\nWe remove the end of [null, 8, 0] and do an append [null, 0] and we'd remove prefix from [null, 8] to get [null, null] and then we'd do another append to get [null, null, null, 0]\nThe final step is this normalization here that gives [null, null, 8, 0]\n\nHowever, when users construct AddressDivisionGrouping or IPAddressDivisionGrouping, either one is allowed: [null, null, 0] and [null, x, 0].\nSince those objects cannot be further subdivided with getSection/getNetworkSection/getHostSection or grown with appended/inserted/replaced,\nthere are no inconsistencies introduced, we are simply more user-friendly.\nAlso note that normalization of AddressDivisionGrouping or IPAddressDivisionGrouping is really not possible without the address creator objects we use for addresses and sections,\nthat allow us to recreate new segments of the correct type.\n\n@param sectionPrefixBits\n@param segments\n@param segmentBitCount\n@param segmentByteCount\n@param segProducer", "Writes back hints file.", "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to get events for.\n@return the latest change events for a given namespace.", "Export the odo overrides setup and odo configuration\n\n@param oldExport Whether this is a backup from scratch or backing up because user will upload after (matches API)\n@return The odo configuration and overrides in JSON format, can be written to a file after", "Sets the character translator for all cells in the row.\nIt will also remove any other translator set.\nNothing will happen if the argument is null.\n@param charTranslator translator\n@return this to allow chaining" ]
@PostConstruct public void init() { //init Bus and LifeCycle listeners if (bus != null && sendLifecycleEvent ) { ServerLifeCycleManager slcm = bus.getExtension(ServerLifeCycleManager.class); if (null != slcm) { ServiceListenerImpl svrListener = new ServiceListenerImpl(); svrListener.setSendLifecycleEvent(sendLifecycleEvent); svrListener.setQueue(queue); svrListener.setMonitoringServiceClient(monitoringServiceClient); slcm.registerListener(svrListener); } ClientLifeCycleManager clcm = bus.getExtension(ClientLifeCycleManager.class); if (null != clcm) { ClientListenerImpl cltListener = new ClientListenerImpl(); cltListener.setSendLifecycleEvent(sendLifecycleEvent); cltListener.setQueue(queue); cltListener.setMonitoringServiceClient(monitoringServiceClient); clcm.registerListener(cltListener); } } if(executorQueueSize == 0) { executor = Executors.newFixedThreadPool(this.executorPoolSize); }else{ executor = new ThreadPoolExecutor(executorPoolSize, executorPoolSize, 0, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(executorQueueSize), Executors.defaultThreadFactory(), new RejectedExecutionHandlerImpl()); } scheduler = new Timer(); scheduler.scheduleAtFixedRate(new TimerTask() { public void run() { sendEventsFromQueue(); } }, 0, getDefaultInterval()); }
[ "Instantiates a new event collector." ]
[ "Parses and adds dictionaries to the Solr index.\n\n@param cms the OpenCms object.\n\n@throws CmsRoleViolationException in case the user does not have the required role ROOT_ADMIN", "Determine whether the user has followed bean-like naming convention or not.", "Calculates the bearing, in degrees, of the end LatLong point from this\nLatLong point.\n\n@param end The point that the bearing is calculated for.\n@return The bearing, in degrees, of the supplied point from this point.", "Set the map attribute.\n\n@param name the attribute name\n@param attribute the attribute", "Set the color for the statusBar\n\n@param statusBarColor", "Adds a tag to a task. Returns an empty data block.\n\n@param task The task to add a tag to.\n@return Request object", "Add a console pipeline to the Redwood handler tree,\nprinting to stdout.\nCalling this multiple times will result in messages being printed\nmultiple times.\n@return this", "This method writes task data to a JSON file.\nNote that we write the task hierarchy in order to make rebuilding the hierarchy easier.", "Read an int from an input stream.\n\n@param is input stream\n@return int value" ]
public String getStatement() { if(sql == null) { StringBuffer stmt = new StringBuffer(128); ClassDescriptor cld = getClassDescriptor(); FieldDescriptor[] fieldDescriptors = cld.getPkFields(); if(fieldDescriptors == null || fieldDescriptors.length == 0) { throw new OJBRuntimeException("No PK fields defined in metadata for " + cld.getClassNameOfObject()); } FieldDescriptor field = fieldDescriptors[0]; stmt.append(SELECT); stmt.append(field.getColumnName()); stmt.append(FROM); stmt.append(cld.getFullTableName()); appendWhereClause(cld, false, stmt); sql = stmt.toString(); } return sql; }
[ "Return SELECT clause for object existence call" ]
[ "Write a long attribute.\n\n@param name attribute name\n@param value attribute value", "Alternate version of autoGeneratedKeys.\n@param sql\n@param autoGeneratedKeys\n@return cache key to use.", "Create a deep copy.\n\n@param bindAddress overwrites bind address when creating deep copy.\n@return a copy of the server setup configuration.", "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.", "Creates a ServiceFuture from an Completable object and a callback.\n\n@param completable the completable to create from\n@param callback the callback to call when event happen\n@return the created ServiceFuture", "Record the duration of a put operation, along with the size of the values\nreturned.", "Return the AnnotationNode for the named annotation, or else null.\nSupports Groovy 1.5 and Groovy 1.6.\n@param node - the AnnotatedNode\n@param name - the name of the annotation\n@return the AnnotationNode or else null", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "The fields returned by default. Typically the output is done via display formatters and hence nearly no\nfield is necessary. Returning all fields might cause performance problems.\n\n@return the default return fields." ]
public static appfwsignatures get(nitro_service service) throws Exception{ appfwsignatures obj = new appfwsignatures(); appfwsignatures[] response = (appfwsignatures[])obj.get_resources(service); return response[0]; }
[ "Use this API to fetch all the appfwsignatures resources that are configured on netscaler." ]
[ "Parses a single query item for the query facet.\n@param item JSON object of the query item.\n@return the parsed query item, or <code>null</code> if parsing failed.", "Removes a value from the list.\n\n@param list the list\n@param value value to remove", "Gets the data handler from event.\n\n@param event the event\n@return the data handler", "Finds an entity given its primary key.\n\n@throws RowNotFoundException\nIf no such object was found.\n@throws TooManyRowsException\nIf more that one object was returned for the given ID.", "Sets the initial pivot ordering and compute the F-norm squared for each column", "Unlinks a set of dependents from this task.\n\n@param task The task to remove dependents from.\n@return Request object", "Returns the URL of the class file where the given class has been loaded from.\n\n@throws IllegalArgumentException\nif failed to determine.\n@since 2.24", "Get a property as a float or Default value.\n\n@param key the property name\n@param defaultValue default value", "We add typeRefs without Nodes on the fly, so we should remove them before relinking." ]
public static JRDesignExpression getReportConnectionExpression() { JRDesignExpression connectionExpression = new JRDesignExpression(); connectionExpression.setText("$P{" + JRDesignParameter.REPORT_CONNECTION + "}"); connectionExpression.setValueClass(Connection.class); return connectionExpression; }
[ "Returns a JRDesignExpression that points to the main report connection\n\n@return" ]
[ "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 offset code of a forward contract from the name of a forward curve.\nThis method will extract a group of one or more digits together with the first letter behind them, if any.\nIf there are multiple groups of digits in the name, this method will extract the last.\nIf there is no number in the string, this method will return null.\n\n@param curveName The name of the curve.\n@return The offset code as String", "Computes the d and H parameters.\n\nd = J'*(f(x)-y) <--- that's also the gradient\nH = J'*J", "Answer true if an Iterator for a Table is already available\n@param aTable\n@return", "NOT IN Criteria with SubQuery\n@param attribute The field name to be used\n@param subQuery The subQuery", "Total count of partition-stores moved in this task.\n\n@return number of partition stores moved in this task.", "Sets the content type for this ID\n\n@param pathId ID of path\n@param contentType content type value", "Adds a class to the unit.", "Checks that the data starting at startLocRecord looks like a local file record header.\n\n@param channel the channel\n@param startLocRecord offset into channel of the start of the local record\n@param compressedSize expected compressed size of the file, or -1 to indicate this isn't known" ]
private List getColumns(List fields) { ArrayList columns = new ArrayList(); for (Iterator it = fields.iterator(); it.hasNext();) { FieldDescriptorDef fieldDef = (FieldDescriptorDef)it.next(); columns.add(fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_COLUMN)); } return columns; }
[ "Extracts the list of columns from the given field list.\n\n@param fields The fields\n@return The corresponding columns" ]
[ "Returns an empty Search object in Json\n@return String\n@throws IOException", "Performs a HTTP GET request.\n\n@return Class type of object T (i.e. {@link Response}", "retrieve a collection of type collectionClass matching the Query query\nif lazy = true return a CollectionProxy\n\n@param collectionClass\n@param query\n@param lazy\n@return ManageableCollection\n@throws PersistenceBrokerException", "Use this API to fetch a vpnglobal_appcontroller_binding resources.", "Tells you if the expression is a null safe dereference.\n@param expression\nexpression\n@return\ntrue if is null safe dereference.", "Writes OWL declarations for all basic vocabulary elements used in the\ndump.\n\n@throws RDFHandlerException", "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", "Use this API to fetch a aaaglobal_binding resource .", "Return a product descriptor for a specific strike.\n\n@param referenceDate The reference date (translating the maturity floating point date to dates.\n@param index The index corresponding to the strike grid.\n@return a product descriptor for a specific strike.\n@throws ArrayIndexOutOfBoundsException Thrown if index is out of bound." ]
public String getUnicodeString(Integer id, Integer type) { return (getUnicodeString(m_meta.getOffset(id, type))); }
[ "This method retrieves a String of the specified type,\nbelonging to the item with the specified unique ID.\n\n@param id unique ID of entity to which this data belongs\n@param type data type identifier\n@return string containing required data" ]
[ "Sets the submatrix of W up give Y is already configured and if it is being cached or not.", "Get object by identity. First lookup among objects registered in the\ntransaction, then in persistent storage.\n@param id The identity\n@return The object\n@throws PersistenceBrokerException", "Reconstructs a number that is represented by more than one byte in a network packet in big-endian order.\n\n@param buffer the byte array containing the packet data\n@param start the index of the first byte containing a numeric value\n@param length the number of bytes making up the value\n@return the reconstructed number", "Check that an array only contains elements that are not null.\n@param values, can't be null\n@return", "Helper method for variance calculations.\n@return The sum of the squares of the differences between\neach value and the arithmetic mean.\n@throws EmptyDataSetException If the data set is empty.", "Clear all beans and call the destruction callback.", "Add or remove the active cursors from the provided scene.\n\n@param scene The GVRScene.\n@param add <code>true</code> for add, <code>false</code> to remove", "Lookup the username for the specified User URL.\n\n@param url\nThe user profile URL\n@return The username\n@throws FlickrException", "Set the HomeAsUpIndicator that is visible when user navigate to a fragment child\n@param indicator the resource drawable to use as indicator" ]
public static final TimeUnit parseDurationTimeUnits(BigInteger value, TimeUnit defaultValue) { TimeUnit result = defaultValue; if (value != null) { switch (value.intValue()) { case 3: case 35: { result = TimeUnit.MINUTES; break; } case 4: case 36: { result = TimeUnit.ELAPSED_MINUTES; break; } case 5: case 37: { result = TimeUnit.HOURS; break; } case 6: case 38: { result = TimeUnit.ELAPSED_HOURS; break; } case 7: case 39: case 53: { result = TimeUnit.DAYS; break; } case 8: case 40: { result = TimeUnit.ELAPSED_DAYS; break; } case 9: case 41: { result = TimeUnit.WEEKS; break; } case 10: case 42: { result = TimeUnit.ELAPSED_WEEKS; break; } case 11: case 43: { result = TimeUnit.MONTHS; break; } case 12: case 44: { result = TimeUnit.ELAPSED_MONTHS; break; } case 19: case 51: { result = TimeUnit.PERCENT; break; } case 20: case 52: { result = TimeUnit.ELAPSED_PERCENT; break; } default: { result = PARENT_FILE.get().getProjectProperties().getDefaultDurationUnits(); break; } } } return (result); }
[ "Parse duration time units.\n\nNote that we don't differentiate between confirmed and unconfirmed\ndurations. Unrecognised duration types are default the supplied default value.\n\n@param value BigInteger value\n@param defaultValue if value is null, use this value as the result\n@return Duration units" ]
[ "Process the given batch of files and pass the results back to the listener as each file is processed.", "Sets the global setting for this ID\n\n@param pathId ID of path\n@param global True if global, False otherwise", "Returns the 'Up' - vector of the camera coordinate system.\n\nThe returned vector is relative to the coordinate space defined by the\ncorresponding node.<p>\n\nThe 'right' vector of the camera coordinate system is the cross product\nof the up and lookAt vectors. The default value is 0|1|0. The vector\nmay be normalized, but it needn't.<p>\n\nThis method is part of the wrapped API (see {@link AiWrapperProvider}\nfor details on wrappers).<p>\n\nThe built-in behavior is to return a {@link AiVector}.\n\n@param wrapperProvider the wrapper provider (used for type inference)\n@return the 'Up' vector", "Use this API to fetch authenticationldappolicy_authenticationvserver_binding resources of given name .", "Maps the text representation of column data to Java types.\n\n@param table table name\n@param column column name\n@param data text representation of column data\n@param type column data type\n@param epochDateFormat true if date is represented as an offset from an epoch\n@return Java representation of column data\n@throws MPXJException", "Return primary key values of given Identity object.\n\n@param cld\n@param oid\n@return Object[]\n@throws PersistenceBrokerException", "Gets container with alls groups of a certain user.\n\n@param cms cmsobject\n@param user to find groups for\n@param caption caption property\n@param iconProp property\n@param ou ou\n@param propStatus status property\n@param iconProvider the icon provider\n@return Indexed Container", "Mark root of this task task group depends on the given TaskItem.\nThis ensure this task group's root get picked for execution only after the completion\nof invocation of provided TaskItem.\n\n@param dependencyTaskItem the task item that this task group depends on\n@return the key of the dependency", "Returns the entry associated with the given key.\n\n@param key the key of the entry to look up\n@return the entry associated with that key, or null\nif the key is not in this map" ]
private static void validateIfAvroSchema(SerializerDefinition serializerDef) { if(serializerDef.getName().equals(AVRO_GENERIC_VERSIONED_TYPE_NAME) || serializerDef.getName().equals(AVRO_GENERIC_TYPE_NAME)) { SchemaEvolutionValidator.validateAllAvroSchemas(serializerDef); // check backwards compatibility if needed if(serializerDef.getName().equals(AVRO_GENERIC_VERSIONED_TYPE_NAME)) { SchemaEvolutionValidator.checkSchemaCompatibility(serializerDef); } } }
[ "If provided with an AVRO schema, validates it and checks if there are\nbackwards compatible.\n\nTODO should probably place some similar checks for other serializer types\nas well?\n\n@param serializerDef" ]
[ "Use this API to clear Interface resources.", "Retrieve timephased baseline work. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present", "Set up the ThreadContext and delegate.", "Writes one or more String columns as a line to the CsvWriter.\n\n@param columns\nthe columns to write\n@throws IllegalArgumentException\nif columns.length == 0\n@throws IOException\nIf an I/O error occurs\n@throws NullPointerException\nif columns is null", "Renders in LI tags, Wraps with UL tags optionally.", "Cache a parse failure for this document.", "Returns the default privacy level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FAMILY\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS\n@throws FlickrException\n@return privacyLevel", "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.", "Converts this update description to its document representation as it would appear in a\nMongoDB Change Event.\n\n@return the update description document as it would appear in a change event" ]
public void process(DMatrixSparseCSC A , int parent[], int post[], int counts[] ) { if( counts.length < A.numCols ) throw new IllegalArgumentException("counts must be at least of length A.numCols"); initialize(A); int delta[] = counts; findFirstDescendant(parent, post, delta); if( ata ) { init_ata(post); } for (int i = 0; i < n; i++) w[ancestor+i] = i; int[] ATp = At.col_idx; int []ATi = At.nz_rows; for (int k = 0; k < n; k++) { int j = post[k]; if( parent[j] != -1 ) delta[parent[j]]--; // j is not a root for (int J = HEAD(k,j); J != -1; J = NEXT(J)) { for (int p = ATp[J]; p < ATp[J+1]; p++) { int i = ATi[p]; int q = isLeaf(i,j); if( jleaf >= 1) delta[j]++; if( jleaf == 2 ) delta[q]--; } } if( parent[j] != -1 ) w[ancestor+j] = parent[j]; } // sum up delta's of each child for ( int j = 0; j < n; j++) { if( parent[j] != -1) counts[parent[j]] += counts[j]; } }
[ "Processes and computes column counts of A\n\n@param A (Input) Upper triangular matrix\n@param parent (Input) Elimination tree.\n@param post (Input) Post order permutation of elimination tree. See {@link TriangularSolver_DSCC#postorder}\n@param counts (Output) Storage for column counts." ]
[ "Convert the MSPDI representation of a UUID into a Java UUID instance.\n\n@param value MSPDI UUID\n@return Java UUID instance", "Read correlation id from message.\n\n@param message the message\n@return the CorrelationId as string", "Use this API to unset the properties of nsrpcnode resources.\nProperties that need to be unset are specified in args array.", "Extract a list of time entries.\n\n@param shiftData string representation of time entries\n@return list of time entry rows", "Retrieve a boolean field.\n\n@param type field type\n@return field data", "Returns all factory instances that match the query.\n\n@param query the factory query, not null.\n@return the instances found, never null.", "Convert a wavelength to an RGB value.\n@param wavelength wavelength in nanometres\n@return the RGB value", "Creates a Bytes object by copying the value of the given String with a given charset", "We have obtained waveform detail for a device, so store it and alert any listeners.\n\n@param update the update which caused us to retrieve this waveform detail\n@param detail the waveform detail which we retrieved" ]
static void init() {// NOPMD determineIfNTEventLogIsSupported(); URL resource = null; final String configurationOptionStr = OptionConverter.getSystemProperty(DEFAULT_CONFIGURATION_KEY, null); if (configurationOptionStr != null) { try { resource = new URL(configurationOptionStr); } catch (MalformedURLException ex) { // so, resource is not a URL: // attempt to get the resource from the class path resource = Loader.getResource(configurationOptionStr); } } if (resource == null) { resource = Loader.getResource(DEFAULT_CONFIGURATION_FILE); // NOPMD } if (resource == null) { System.err.println("[FoundationLogger] Can not find resource: " + DEFAULT_CONFIGURATION_FILE); // NOPMD throw new FoundationIOException("Can not find resource: " + DEFAULT_CONFIGURATION_FILE); // NOPMD } // update the log manager to use the Foundation repository. final RepositorySelector foundationRepositorySelector = new FoundationRepositorySelector(FoundationLogFactory.foundationLogHierarchy); LogManager.setRepositorySelector(foundationRepositorySelector, null); // set logger to info so we always want to see these logs even if root // is set to ERROR. final Logger logger = getLogger(FoundationLogger.class); final String logPropFile = resource.getPath(); log4jConfigProps = getLogProperties(resource); // select and configure again so the loggers are created with the right // level after the repository selector was updated. OptionConverter.selectAndConfigure(resource, null, FoundationLogFactory.foundationLogHierarchy); // start watching for property changes setUpPropFileReloading(logger, logPropFile, log4jConfigProps); // add syslog appender or windows event viewer appender // setupOSSystemLog(logger, log4jConfigProps); // parseMarkerPatterns(log4jConfigProps); // parseMarkerPurePattern(log4jConfigProps); // udpateMarkerStructuredLogOverrideMap(logger); AbstractFoundationLoggingMarker.init(); updateSniffingLoggersLevel(logger); setupJULSupport(resource); }
[ "Initialize that Foundation Logging library." ]
[ "Look up the database server port reported by a given player. You should not use this port directly; instead\nask this class for a session to use while you communicate with the database.\n\n@param player the player number of interest\n\n@return the port number on which its database server is running, or -1 if unknown\n\n@throws IllegalStateException if not running", "This method is called by the ++ operator for the class CharSequence.\nIt increments the last character in the given CharSequence. If the last\ncharacter in the CharSequence is Character.MAX_VALUE a Character.MIN_VALUE\nwill be appended. The empty CharSequence is incremented to a string\nconsisting of the character Character.MIN_VALUE.\n\n@param self a CharSequence\n@return a value obtained by incrementing the toString() of the CharSequence\n@since 1.8.2", "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", "This method writes project property data to a JSON file.", "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", "interceptors, decorators and observers go first", "Serialize an object with Json\n@param obj Object\n@return String\n@throws IOException", "Post a build info to the server\n\n@param moduleName String\n@param moduleVersion String\n@param buildInfo Map<String,String>\n@param user String\n@param password String\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException", "Creates the \"Add key\" button.\n@return the \"Add key\" button." ]
public static base_responses update(nitro_service client, dospolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dospolicy updateresources[] = new dospolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dospolicy(); updateresources[i].name = resources[i].name; updateresources[i].qdepth = resources[i].qdepth; updateresources[i].cltdetectrate = resources[i].cltdetectrate; } result = update_bulk_request(client, updateresources); } return result; }
[ "Use this API to update dospolicy resources." ]
[ "A convenient way of creating a map on the fly.\n\n@param <K> the key type\n@param <V> the value type\n@param entries\nMap.Entry objects to be added to the map\n@return a LinkedHashMap with the supplied entries", "Removes all events from table\n\n@param table the table to remove events", "Parse an extended attribute currency value.\n\n@param value string representation\n@return currency value", "Explicitly set the end time of the event.\n\nIf the provided date is <code>null</code> or a date before the start date, the end date defaults to the start date.\n\n@param endDate the end time of the event.", "Create a discount curve from forwards given by a LIBORMonteCarloModel. If the model uses multiple curves, return its discount curve.\n\n@param forwardCurveName name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a discount curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Set new point coordinates somewhere on screen and apply new direction\n\n@param position the point position to apply new values to", "This method validates all relationships for a task, removing\nany which have been incorrectly read from the MPP file and\npoint to a parent task.\n\n@param task task under test", "Save the changes.", "Accessor method used to retrieve a Number instance representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field\n@throws MPXJException normally thrown when parsing fails" ]
protected AllowableActions collectAllowableActions(CmsObject cms, CmsResource file) { try { if (file == null) { throw new IllegalArgumentException("File must not be null!"); } CmsLock lock = cms.getLock(file); CmsUser user = cms.getRequestContext().getCurrentUser(); boolean canWrite = !cms.getRequestContext().getCurrentProject().isOnlineProject() && (lock.isOwnedBy(user) || lock.isLockableBy(user)) && cms.hasPermissions(file, CmsPermissionSet.ACCESS_WRITE, false, CmsResourceFilter.DEFAULT); boolean isReadOnly = !canWrite; boolean isFolder = file.isFolder(); boolean isRoot = file.getRootPath().length() <= 1; Set<Action> aas = new LinkedHashSet<Action>(); addAction(aas, Action.CAN_GET_OBJECT_PARENTS, !isRoot); addAction(aas, Action.CAN_GET_PROPERTIES, true); addAction(aas, Action.CAN_UPDATE_PROPERTIES, !isReadOnly); addAction(aas, Action.CAN_MOVE_OBJECT, !isReadOnly && !isRoot); addAction(aas, Action.CAN_DELETE_OBJECT, !isReadOnly && !isRoot); if (isFolder) { addAction(aas, Action.CAN_GET_DESCENDANTS, true); addAction(aas, Action.CAN_GET_CHILDREN, true); addAction(aas, Action.CAN_GET_FOLDER_PARENT, !isRoot); addAction(aas, Action.CAN_GET_FOLDER_TREE, true); addAction(aas, Action.CAN_CREATE_DOCUMENT, !isReadOnly); addAction(aas, Action.CAN_CREATE_FOLDER, !isReadOnly); addAction(aas, Action.CAN_DELETE_TREE, !isReadOnly); } else { addAction(aas, Action.CAN_GET_CONTENT_STREAM, true); addAction(aas, Action.CAN_SET_CONTENT_STREAM, !isReadOnly); addAction(aas, Action.CAN_GET_ALL_VERSIONS, true); } AllowableActionsImpl result = new AllowableActionsImpl(); result.setAllowableActions(aas); return result; } catch (CmsException e) { handleCmsException(e); return null; } }
[ "Compiles the allowable actions for a file or folder.\n\n@param cms the current CMS context\n@param file the resource for which we want the allowable actions\n\n@return the allowable actions for the given resource" ]
[ "Use this API to fetch a vpnglobal_intranetip_binding resources.", "add a foreign key field ID", "Reads an argument of type \"number\" from the request.", "Starts given docker machine.\n\n@param cliPathExec\nlocation of docker-machine or null if it is on PATH.\n@param machineName\nto be started.", "Find container env.\n\n@param ctx the container context\n@param dump the exception dump\n@return valid container or null", "Searches for brackets which are only used to construct new matrices by concatenating\n1 or more matrices together", "Returns the zip entry for a file in the archive.\n@param filename the file name\n@return the zip entry for the file with the provided name\n@throws ZipException thrown if the file is not in the zip archive", "Send a master changed announcement to all registered master listeners.\n\n@param update the message announcing the new tempo master", "Filter that's either negated or normal as specified." ]
public static Date getTime(int hour, int minutes) { Calendar cal = popCalendar(); cal.set(Calendar.HOUR_OF_DAY, hour); cal.set(Calendar.MINUTE, minutes); cal.set(Calendar.SECOND, 0); Date result = cal.getTime(); pushCalendar(cal); return result; }
[ "Create a Date instance representing a specific time.\n\n@param hour hour 0-23\n@param minutes minutes 0-59\n@return new Date instance" ]
[ "Read the domain controller data from an S3 file.\n\n@param directoryName the name of the directory in the bucket that contains the S3 file\n@return the domain controller data", "Each string item rendering requires the border and a space on both sides.\n\n12 3 12 3 12 34\n+----- +-------- +------+\nabc venkat last\n\n@param colCount\n@param colMaxLenList\n@param data\n@return", "Finds the magnitude of the largest element in the row\n@param A Complex matrix\n@param row Row in A\n@param col0 First column in A to be copied\n@param col1 Last column in A + 1 to be copied\n@return magnitude of largest element", "Adds a patch operation.\n@param op the operation type. Must be add, replace, remove, or test.\n@param path the path that designates the key. Must be prefixed with a \"/\".\n@param value the value to be set.", "Sets the node meta data.\n\n@param key - the meta data key\n@param value - the meta data value\n@throws GroovyBugError if key is null or there is already meta\ndata under that key", "Create a deep copy.\n\n@param bindAddress overwrites bind address when creating deep copy.\n@return a copy of the server setup configuration.", "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input does not contain any expression, the input is returned as is.\n\n@param input the input string\n@return the input with resolved expressions or the original input in case\nthe input didn't contain any expressions or at least one of the\nexpressions could not be resolved", "This method computes the eigen vector with the largest eigen value by using the\ndirect power method. This technique is the easiest to implement, but the slowest to converge.\nWorks only if all the eigenvalues are real.\n\n@param A The matrix. Not modified.\n@return If it converged or not.", "Creates an encryptor for queryable text strings that uses standard password-based encryption. Uses a shared, or\nconstant 16 byte initialization vector so encrypting the same data results in the same encryption result. This is\ndone to allow encrypted data to be queried against. Encrypted text is hex-encoded.\n\n@param password the password used to generate the encryptor's secret key; should not be shared\n@param salt a hex-encoded, random, site-global salt value to use to generate the secret key" ]
public synchronized void mapPublicKeys(final PublicKey original, final PublicKey substitute) { _mappedPublicKeys.put(original, substitute); if(persistImmediately) { persistPublicKeyMap(); } }
[ "Stores a public key mapping.\n@param original\n@param substitute" ]
[ "Waits until all pending operations are complete and closes this repository.\n\n@param failureCauseSupplier the {@link Supplier} that creates a new {@link CentralDogmaException}\nwhich will be used to fail the operations issued after this method is called", "Use this API to fetch all the snmpmanager resources that are configured on netscaler.", "This method extracts predecessor data from an MSPDI file.\n\n@param task Task data", "Samples without replacement from a collection.\n\n@param c\nThe collection to be sampled from\n@param n\nThe number of samples to take\n@return a new collection with the sample", "Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses\n\n@param method the method to scan\n@param annotation the annotation to search for\n@param <T> the type of the annotation\n@return the list of all method or type level annotations in the type hierarchy", "Adds the absolute path to command.\n\n@param command the command to add the arguments to.\n@param typeName the type of directory.\n@param propertyName the name of the property.\n@param properties the properties where the path may already be defined.\n@param directoryGrouping the directory group type.\n@param typeDir the domain level directory for the given directory type; to be used for by-type grouping\n@param serverDir the root directory for the server, to be used for 'by-server' grouping\n@return the absolute path that was added.", "This loads plugin file information into a hash for lazy loading later on\n\n@param pluginDirectory path of plugin\n@throws Exception exception", "Byte run automaton map.\n\n@param automatonMap the automaton map\n@return the map", "Use this API to fetch auditnslogpolicy_vpnvserver_binding resources of given name ." ]
public static String getHeaders(HttpServletRequest request) { String headerString = ""; Enumeration<String> headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String name = headerNames.nextElement(); if (name.equals(Constants.ODO_PROXY_HEADER)) { // skip.. don't want to log this continue; } if (headerString.length() != 0) { headerString += "\n"; } headerString += name + ": " + request.getHeader(name); } return headerString; }
[ "Obtain newline-delimited headers from request\n\n@param request HttpServletRequest to scan\n@return newline-delimited headers" ]
[ "Use this API to fetch sslcipher resources of given names .", "Sets the transformations to be applied to the shape before indexing it.\n\n@param transformations the sequence of transformations\n@return this with the specified sequence of transformations", "Create User Application Properties\nCreate application properties for a user\n@param userId User Id (required)\n@param properties Properties to be updated (required)\n@param aid Application ID (optional)\n@return PropertiesEnvelope\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Retrieve a value from the map, ensuring that a key exists in the map\nwith the specified name.\n\n@param name column name\n@return column value", "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", "This method calculates the absolute number of days between two dates.\nNote that where two date objects are provided that fall on the same\nday, this method will return one not zero. Note also that this method\nassumes that the dates are passed in the correct order, i.e.\nstartDate < endDate.\n\n@param startDate Start date\n@param endDate End date\n@return number of days in the date range", "Use this API to update tmtrafficaction resources.", "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON object or null if something goes wrong.", "Send the message with the given attributes and the given body using the specified SMTP settings\n\n@param to Destination address(es)\n@param from Sender address\n@param subject Message subject\n@param body Message content. May either be a MimeMultipart or another body that java mail recognizes\n@param contentType MIME content type of body\n@param serverSetup Server settings to use for connecting to the SMTP server" ]
public CompositeGeneratorNode appendNewLineIfNotEmpty(final CompositeGeneratorNode parent) { List<IGeneratorNode> _children = parent.getChildren(); String _lineDelimiter = this.wsConfig.getLineDelimiter(); NewLineNode _newLineNode = new NewLineNode(_lineDelimiter, true); _children.add(_newLineNode); return parent; }
[ "Appends a line separator node that will only be effective if the current line contains non-whitespace text.\n\n@return the given parent node" ]
[ "Option check, forwards options to the standard doclet, if that one refuses them,\nthey are sent to UmlGraph", "Confirms that both clusters have the same number of total partitions.\n\n@param lhs\n@param rhs", "Creates the stats items.\n\n@param statsType\nthe stats type\n@return the sorted set\n@throws IOException\nSignals that an I/O exception has occurred.", "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text", "Signal that this thread will not log any more messages in the multithreaded\nenvironment", "Exchanges the initial fully-formed messages which establishes the transaction context for queries to\nthe dbserver.\n\n@throws IOException if there is a problem during the exchange", "Creates and populates a new task relationship.\n\n@param field which task field source of data\n@param sourceTask relationship source task\n@param relationship relationship string\n@throws MPXJException", "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data", "Run through all maps and remove any references that have been null'd out by the GC." ]
public double[] getSingularValues() { double ret[] = new double[W.numCols()]; for (int i = 0; i < ret.length; i++) { ret[i] = getSingleValue(i); } return ret; }
[ "Returns an array of all the singular values" ]
[ "Wrapped version of standard jdbc executeUpdate Pays attention to DB\nlocked exception and waits up to 1s\n\n@param query SQL query to execute\n@throws Exception - will throw an exception if we can never get a lock", "Returns the red color component of a color from a vertex color set.\n\n@param vertex the vertex index\n@param colorset the color set\n@return the red color component", "Create an object of the given type using a constructor that matches the\nsupplied arguments and invoke the setters with the supplied variables.\n\n@param <T> the object type\n@param clazz\nthe type to create\n@param args\nthe arguments to the constructor\n@param vars\nthe named arguments for setters\n@return a new object of the given type, initialized with the given\narguments\n@throws NoSuchConstructorException\nif there is not a constructor that matches the given\narguments\n@throws AmbiguousConstructorException\nif there is more than one constructor that matches the given\narguments\n@throws ReflectiveOperationException\nif any of the reflective operations throw an exception", "Checks if the date is a holiday\n\n@param dateString the date\n@return true if it is a holiday, false otherwise", "Returns an integer array that contains the current values for all the\ntexture parameters.\n\n@return an integer array that contains the current values for all the\ntexture parameters.", "Make a WMS getLayer request and return the image read from the server.\n\n@param wmsLayerParam the wms request parameters\n@param commonURI the uri to use for the requests (excepting parameters of course.)\n@param imageSize the size of the image to request\n@param dpi the dpi of the image to request\n@param angle the angle of the image to request\n@param bounds the area and projection of the request on the world.", "Extracts the data for a single file from the input stream and writes\nit to a target directory.\n\n@param stream input stream\n@param dir target directory", "Removes all commas from the token list", "Revert all the working copy changes." ]
public synchronized boolean isComplete(int requestId, boolean remove) { if (!operations.containsKey(requestId)) throw new VoldemortException("No operation with id " + requestId + " found"); if (operations.get(requestId).getStatus().isComplete()) { if (logger.isDebugEnabled()) logger.debug("Operation complete " + requestId); if (remove) operations.remove(requestId); return true; } return false; }
[ "Check if the an operation is done or not.\n\n@param requestId Id of the request\n@param remove Whether remove the request out of the list if it is done.\n@return True if request is complete, false otherwise" ]
[ "Cancel all task with this tag and returns the canceled task count\n\n@param tagToCancel\n@return", "Get prototype name.\n\n@return prototype name", "Searches for pairs of parentheses and processes blocks inside of them. Embedded parentheses are handled\nwith no problem. On output only a single token should be in tokens.\n@param tokens List of parsed tokens\n@param sequence Sequence of operators", "Swaps two specified partitions.\n\nPair-wase partition swapping may be more prone to local minima than\nlarger perturbations. Could consider \"swapping\" a list of\n<nodeId/partitionId>. This would allow a few nodes to be identified\n(random # btw 2-5?) and then \"swapped\" (shuffled? rotated?).\n\n@return modified cluster metadata.", "Extract Primavera project data and export in another format.\n\n@param driverClass JDBC driver class name\n@param connectionString JDBC connection string\n@param projectID project ID\n@param outputFile output file\n@throws Exception", "On key down we assume the key will go at the end. It's the most\ncommon case and not that distracting if that's not true.", "Utility method to read a percentage value.\n\n@param data data block\n@param offset offset into data block\n@return percentage value", "Add all headers in a header multimap.\n\n@param headers a multimap of headers.\n@return the interceptor instance itself.", "Finds the column with the largest normal and makes that the first column\n\n@param j Current column being inspected" ]
public JsonTypeDefinition projectionType(String... properties) { if(this.getType() instanceof Map<?, ?>) { Map<?, ?> type = (Map<?, ?>) getType(); Arrays.sort(properties); Map<String, Object> newType = new LinkedHashMap<String, Object>(); for(String prop: properties) newType.put(prop, type.get(prop)); return new JsonTypeDefinition(newType); } else { throw new IllegalArgumentException("Cannot take the projection of a type that is not a Map."); } }
[ "Get the type created by selecting only a subset of properties from this\ntype. The type must be a map for this to work\n\n@param properties The properties to select\n@return The new type definition" ]
[ "Prints dependencies recovered from the methods of a class. A\ndependency is inferred only if another relation between the two\nclasses is not already in the graph.\n@param classes", "Returns true if the default profile for the specified uuid is active\n\n@return true if active, otherwise false", "Gets the index to use in the search.\n\n@return the index to use in the search", "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", "Delivers the correct JSON Object for the target\n\n@param target\n@throws org.json.JSONException", "Parse a comma-delimited list of method names into a List of strings.\nWhitespace is ignored.\n\n@param methods the comma delimited list of methods from the spring configuration\n\n@return List&lt;String&gt;", "Launch Navigation Service residing in the navigation module", "Handles the response of the Request node request.\n@param incomingMessage the response message to process.", "Returns the last node that appears to be part of the prefix. This will be used to determine the current model\nobject that'll be the most special context instance in the proposal provider." ]
void processSiteRow(String siteRow) { String[] row = getSiteRowFields(siteRow); String filePath = ""; String pagePath = ""; String dataArray = row[8].substring(row[8].indexOf('{'), row[8].length() - 2); // Explanation for the regular expression below: // "'{' or ';'" followed by either // "NOT: ';', '{', or '}'" repeated one or more times; or // "a single '}'" // The first case matches ";s:5:\"paths\"" // but also ";a:2:" in "{s:5:\"paths\";a:2:{s:9:\ ...". // The second case matches ";}" which terminates (sub)arrays. Matcher matcher = Pattern.compile("[{;](([^;}{][^;}{]*)|[}])").matcher( dataArray); String prevString = ""; String curString = ""; String path = ""; boolean valuePosition = false; while (matcher.find()) { String match = matcher.group().substring(1); if (match.length() == 0) { valuePosition = false; continue; } if (match.charAt(0) == 's') { valuePosition = !valuePosition && !"".equals(prevString); curString = match.substring(match.indexOf('"') + 1, match.length() - 2); } else if (match.charAt(0) == 'a') { valuePosition = false; path = path + "/" + prevString; } else if ("}".equals(match)) { valuePosition = false; path = path.substring(0, path.lastIndexOf('/')); } if (valuePosition && "file_path".equals(prevString) && "/paths".equals(path)) { filePath = curString; } else if (valuePosition && "page_path".equals(prevString) && "/paths".equals(path)) { pagePath = curString; } prevString = curString; curString = ""; } MwSitesDumpFileProcessor.logger.debug("Found site data \"" + row[1] + "\" (group \"" + row[3] + "\", language \"" + row[5] + "\", type \"" + row[2] + "\")"); this.sites.setSiteInformation(row[1], row[3], row[5], row[2], filePath, pagePath); }
[ "Processes a row of the sites table and stores the site information found\ntherein.\n\n@param siteRow\nstring serialisation of a sites table row as found in the SQL\ndump" ]
[ "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.", "Start the drag operation of a scene object with a rigid body.\n\n@param sceneObject Scene object with a rigid body attached to it.\n@param hitX rel position in x-axis.\n@param hitY rel position in y-axis.\n@param hitZ rel position in z-axis.\n@return true if success, otherwise returns false.", "Use this API to fetch sslaction resource of given name .", "Write a list of custom field attributes.", "Addes the current member as a nested object.\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\"", "Get prototype name.\n\n@return prototype name", "Assigns retention policy with givenID to the folder.\n@param api the API connection to be used by the created assignment.\n@param policyID id of the assigned retention policy.\n@param folderID id of the folder to assign policy to.\n@return info about created assignment.", "Populates a Map instance representing the IDs and names of\nprojects available in the current file.\n\n@param is input stream used to read XER file\n@return Map instance containing ID and name pairs\n@throws MPXJException", "Returns details of a previously-requested Organization export.\n\n@param organizationExport Globally unique identifier for the Organization export.\n@return Request object" ]
public <T> T callFunction( final String name, final List<?> args, final @Nullable Long requestTimeout, final Class<T> resultClass, final CodecRegistry codecRegistry ) { return this.functionService .withCodecRegistry(codecRegistry) .callFunction(name, args, requestTimeout, resultClass); }
[ "Calls the specified Stitch function, and decodes the response into an instance of the specified\ntype. The response will be decoded using the codec registry given.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.\n@param resultClass the class that the Stitch response should be decoded as.\n@param <T> the type into which the Stitch response will be decoded.\n@param codecRegistry the codec registry that will be used to encode/decode the function call.\n@return the decoded value." ]
[ "Calculate power of a complex number.\n\n@param z1 Complex Number.\n@param n Power.\n@return Returns a new complex number containing the power of a specified number.", "Initializes the type and validates it", "Write calendar exceptions.\n\n@param records list of ProjectCalendars\n@throws IOException", "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", "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "If there is an unprocessed change event for a particular document ID, fetch it from the\nchange stream listener, and remove it. By reading the event here, we are assuming it will be\nprocessed by the consumer.\n\n@return the latest unprocessed change event for the given document ID, or null if none exists.", "Delete a module\n\n@param moduleId String", "Hardcode a copy method as being valid. This should be used to tell Mutability Detector about\na method which copies a collection, and when the copy can be wrapped in an immutable wrapper\nwe can consider the assignment immutable. Useful for allowing Mutability Detector to correctly\nwork with other collections frameworks such as Google Guava. Reflection is used to obtain the\nmethod's descriptor and to verify the method's existence.\n\n@param fieldType - the type of the field to which the result of the copy is assigned\n@param fullyQualifiedMethodName - the fully qualified method name\n@param argType - the type of the argument passed to the copy method\n\n@throws MutabilityAnalysisException - if the specified class or method does not exist\n@throws IllegalArgumentException - if any of the arguments are null", "Convert a SSE to a Stitch SSE\n@param event SSE to convert\n@param decoder decoder for decoding data\n@param <T> type to decode data to\n@return a Stitch server-sent event" ]
public static final String getUnicodeString(byte[] data, int offset) { int length = getUnicodeStringLengthInBytes(data, offset); return length == 0 ? "" : new String(data, offset, length, CharsetHelper.UTF16LE); }
[ "Reads a string of two byte characters from the input array.\nThis method assumes that the string finishes either at the\nend of the array, or when char zero is encountered.\nThe value starts at the position specified by the offset\nparameter.\n\n@param data byte array of data\n@param offset start point of unicode string\n@return string value" ]
[ "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null.", "Use this API to fetch responderpolicy_binding resource of given name .", "Gets the txinfo cache weight\n\n@param conf The FluoConfiguration\n@return The size of the cache value from the property value {@value #TX_INFO_CACHE_WEIGHT} if\nit is set, else the value of the default value {@value #TX_INFO_CACHE_WEIGHT_DEFAULT}", "Use this API to fetch all the lbroute resources that are configured on netscaler.", "checks if the triangle is not re-entrant", "Find the index of the first matching element in the list\n@param element the element value to find\n@return the index of the first matching element, or <code>-1</code> if none found", "Set the value for a floating point vector of length 3.\n@param key name of uniform to set.\n@param x new X value\n@param y new Y value\n@param z new Z value\n@see #getVec3\n@see #getFloatVec(String)", "to check availability, then class name is truncated to bundle id", "Use this API to fetch clusterinstance resource of given name ." ]
public static base_responses add(nitro_service client, autoscaleprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { autoscaleprofile addresources[] = new autoscaleprofile[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new autoscaleprofile(); addresources[i].name = resources[i].name; addresources[i].type = resources[i].type; addresources[i].url = resources[i].url; addresources[i].apikey = resources[i].apikey; addresources[i].sharedsecret = resources[i].sharedsecret; } result = add_bulk_request(client, addresources); } return result; }
[ "Use this API to add autoscaleprofile resources." ]
[ "Creates a new Box Developer Edition connection with App User token.\n@param userId the user ID to use for an App User.\n@param clientId the client ID to use when exchanging the JWT assertion for an access token.\n@param clientSecret the client secret to use when exchanging the JWT assertion for an access token.\n@param encryptionPref the encryption preferences for signing the JWT.\n@param accessTokenCache the cache for storing access token information (to minimize fetching new tokens)\n@return a new instance of BoxAPIConnection.", "add a FK column pointing to the item Class", "Set the repeat type.\n\nIn the default {@linkplain GVRRepeatMode#ONCE run-once} mode, animations\nrun once, ignoring the {@linkplain #getRepeatCount() repeat count.} In\n{@linkplain GVRRepeatMode#PINGPONG ping pong} and\n{@linkplain GVRRepeatMode#REPEATED repeated} modes, animations do honor\nthe repeat count, which {@linkplain #DEFAULT_REPEAT_COUNT defaults} to 2.\n\n@param repeatMode\nOne of the {@link GVRRepeatMode} constants\n@return {@code this}, so you can chain setProperty() calls.\n@throws IllegalArgumentException\nIf {@code repetitionType} is not one of the\n{@link GVRRepeatMode} constants", "Use this API to update Interface.", "Get global hotkey provider for current platform\n\n@param useSwingEventQueue whether the provider should be using Swing Event queue or a regular thread\n@return new instance of Provider, or null if platform is not supported\n@see X11Provider\n@see WindowsProvider\n@see CarbonProvider", "Deletes a template.\n\n@param id id of the template to delete.\n@return {@link Response}\n\n@throws RequestException if request to transloadit server fails.\n@throws LocalOperationException if something goes wrong while running non-http operations.", "Aggregate results to see the status code distribution with target hosts.\n\n@return the aggregateResultMap", "Performs a null edit on an entity. This has some effects on Wikibase,\nsuch as refreshing the labels of the referred items in the UI.\n\n@param currentDocument\nthe document to perform a null edit on\n@throws MediaWikiApiErrorException\nif the API returns errors\n@throws IOException\nif there are any IO errors, such as missing network connection", "Creates a Document that can be passed to the MongoDB batch insert function" ]
public static int compare(double a, double b, double delta) { if (equals(a, b, delta)) { return 0; } return Double.compare(a, b); }
[ "Compares two double values up to some delta.\n\n@param a\n@param b\n@param delta\n@return The value 0 if a equals b, a value greater than 0 if if a > b, and a value less than 0 if a < b." ]
[ "Puts a single byte if the buffer is not yet full.\n\n@return true if the byte was put, or false if the buffer is full", "Click handler for bottom drawer items.", "Use this API to fetch a vpnglobal_vpntrafficpolicy_binding resources.", "Use this API to enable Interface of given name.", "Construct new root step. Used for inspect problems with Allure lifecycle\n\n@return new root step marked as broken", "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.", "Add an URL to the given classloader\n\n@param loader ClassLoader\n@param url URL to add\n@throws IOException I/O Error\n@throws InvocationTargetException Invocation Error\n@throws IllegalArgumentException Illegal Argument\n@throws IllegalAccessException Illegal Access\n@throws SecurityException Security Constraint\n@throws NoSuchMethodException Method not found", "Removes the key and its associated value from this map.\n\n@param key the key to remove\n@return the value associated with that key, or null if\nthe key was not in the map", "Deletes all outgoing links of specified entity.\n\n@param entity the entity." ]
public static int[][] toInt(double[][] array) { int[][] n = new int[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n[i][j] = (int) array[i][j]; } } return n; }
[ "2-D Double array to integer array.\n\n@param array Double array.\n@return Integer array." ]
[ "Internal function that uses recursion to create the list", "Changes the image data associated with a GVRTexture.\nThis can be a simple bitmap, a compressed bitmap,\na cubemap or a compressed cubemap.\n@param imageData data for the texture as a GVRImate", "Returns the formula for the percentage\n@param group\n@param type\n@return", "Adds a string reference, a class reference, a method type, a module\nor a package to the constant pool of the class being build.\nDoes nothing if the constant pool already contains a similar item.\n\n@param type\na type among STR, CLASS, MTYPE, MODULE or PACKAGE\n@param value\nstring value of the reference.\n@return a new or already existing reference item.", "Based on a provided locale return a SoyMsgBundle file.\n\nIf a passed in locale object is \"Optional.absent()\",\nthe implementation will return Optional.absent() as well\n@param locale - maybe locale\n@return maybe soy msg bundle", "Copies information between specified streams and then closes\nboth of the streams.\n@throws java.io.IOException", "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.", "Returns a CmsSolrQuery representation of this class.\n@param cms the openCms object.\n@return CmsSolrQuery representation of this class.", "Checks whether the given set of properties is available.\n\n@param keys the keys to check\n@return true if all properties are available, false otherwise" ]
private void readAvailabilityTable(Resource resource, AvailabilityPeriods periods) { if (periods != null) { AvailabilityTable table = resource.getAvailability(); List<AvailabilityPeriod> list = periods.getAvailabilityPeriod(); for (AvailabilityPeriod period : list) { Date start = period.getAvailableFrom(); Date end = period.getAvailableTo(); Number units = DatatypeConverter.parseUnits(period.getAvailableUnits()); Availability availability = new Availability(start, end, units); table.add(availability); } Collections.sort(table); } }
[ "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods" ]
[ "Allow for the use of text shading and auto formatting.", "Handle a value change.\n@param propertyId the column in which the value has changed.", "Creates image stream request and returns it in JSON formatted string.\n\n@param name Name of the image stream\n@param insecure If the registry where the image is stored is insecure\n@param image Image name, includes registry information and tag\n@param version Image stream version.\n@return JSON formatted string", "Adds is Null criteria,\ncustomer_id is Null\nThe attribute will NOT be translated into column name\n\n@param column The column name to be used without translation", "Find the style filter that must be applied to this feature.\n\n@param feature\nfeature to find the style for\n@param styles\nstyle filters to select from\n@return a style filter", "Retrieve the details of a single project from the database.\n\n@param result Map instance containing the results\n@param row result set row read from the database", "First reduce the Criteria to the normal disjunctive form, then\ncalculate the necessary tree of joined tables for each item, then group\nitems with the same tree of joined tables.", "Create the index file that sets up the frameset.\n@param outputDirectory The target directory for the generated file(s).", "Create a container in the platform\n\n@param container\nThe name of the container" ]
List<File> getRecursiveThriftFiles(MavenProject project, String outputDirectory, List<File> files) throws IOException { HashFunction hashFun = Hashing.md5(); File dir = new File(new File(project.getFile().getParent(), "target"), outputDirectory); if (dir.exists()) { URI baseDir = getFileURI(dir); for (File f : findThriftFilesInDirectory(dir)) { URI fileURI = getFileURI(f); String relPath = baseDir.relativize(fileURI).getPath(); File destFolder = getResourcesOutputDirectory(); destFolder.mkdirs(); File destFile = new File(destFolder, relPath); if (!destFile.exists() || (destFile.isFile() && !Files.hash(f, hashFun).equals(Files.hash(destFile, hashFun)))) { getLog().info(format("copying %s to %s", f.getCanonicalPath(), destFile.getCanonicalPath())); copyFile(f, destFile); } files.add(destFile); } } Map<String, MavenProject> refs = project.getProjectReferences(); for (String name : refs.keySet()) { getRecursiveThriftFiles(refs.get(name), outputDirectory, files); } return files; }
[ "Walk project references recursively, adding thrift files to the provided list." ]
[ "Gets an element of the matrix.\n\n@param row\nthe row\n@param col\nthe column\n@return the element at the given position", "Writes task predecessor links to a PM XML file.\n\n@param task MPXJ Task instance", "Add an event to the queue. It will be processed in the order received.\n\n@param event Event", "Replaces new line delimiters in the input stream with the Unix line feed.\n\n@param input", "only TOP or Bottom", "Sets the permissions associated with this shared link.\n@param permissions the new permissions for this shared link.", "Append the Parameter\nAdd the place holder ? or the SubQuery\n@param value the value of the criteria", "Generic version of getting value by key from the JobContext of current thread\n@param key the key\n@param clz the val class\n@param <T> the val type\n@return the value", "Creates a PathAddress from the given ModelNode address. The given node is expected to be an address node.\n\n@param node the node (cannot be {@code null})\n\n@return the update identifier" ]
public void deleteRebalancingState(RebalanceTaskInfo stealInfo) { // acquire write lock writeLock.lock(); try { RebalancerState rebalancerState = getRebalancerState(); if(!rebalancerState.remove(stealInfo)) throw new IllegalArgumentException("Couldn't find " + stealInfo + " in " + rebalancerState + " while deleting"); if(rebalancerState.isEmpty()) { logger.debug("Cleaning all rebalancing state"); cleanAllRebalancingState(); } else { put(REBALANCING_STEAL_INFO, rebalancerState); initCache(REBALANCING_STEAL_INFO); } } finally { writeLock.unlock(); } }
[ "Delete the partition steal information from the rebalancer state\n\n@param stealInfo The steal information to delete" ]
[ "Remove any protocol-level headers from the clients request that\ndo not apply to the new request we are sending to the remote server.\n\n@param request\n@param destination", "Process TestCaseStartedEvent. New testCase will be created and added\nto suite as child.\n\n@param event to process", "Validate an injection point\n\n@param ij the injection point to validate\n@param beanManager the bean manager", "Loads the asset referenced by the file name\nunder the owner of this component.\nIf this component was constructed to replace the scene with\nthe asset, the scene will contain only the owner of this\ncomponent upon return. Otherwise, the loaded asset is a\nchild of this component's owner.\n\nLoading the asset is performed in a separate thread.\nThis function returns before the asset has finished loading.\nIAssetEvents are emitted to the event listener on the context.\n\n@param scene scene to add the model to, null is permissible\n@return always true", "Use this API to add clusternodegroup resources.", "Returns a string representation of the receiver, containing\nthe String representation of each key-value pair, sorted ascending by value.", "Renders in LI tags, Wraps with UL tags optionally.", "checks whether the specified Object obj is read-locked by Transaction tx.\n@param tx the transaction\n@param obj the Object to be checked\n@return true if lock exists, else false", "Use this API to fetch all the authenticationradiusaction resources that are configured on netscaler." ]
public static JqmEngineOperations startEngine(String name, JqmEngineHandler handler) { JqmEngine e = new JqmEngine(); e.start(name, handler); return e; }
[ "Creates and start an engine representing the node named as the given parameter.\n\n@param name\nname of the node, as present in the configuration (case sensitive)\n@param handler\ncan be null. A set of callbacks hooked on different engine life cycle events.\n@return an object allowing to stop the engine." ]
[ "Private used static method for creation of a RemoteWebDriver. Taking care of the default\nCapabilities and using the HttpCommandExecutor.\n\n@param hubUrl the url of the hub to use.\n@return the RemoteWebDriver instance.", "Use this API to count linkset_interface_binding resources configued on NetScaler.", "Fire an event and notify observers that belong to this module.\n@param eventType\n@param event\n@param qualifiers", "Remove a named object", "Create an LBuffer from a given file.\n@param file\n@return\n@throws IOException", "Function to serialize the given list of Vector clocks into a string. If\nsomething goes wrong, it returns an empty string.\n\n@param vectorClocks The Vector clock list to serialize\n@return The string (JSON) version of the specified Vector clock", "Creates an object instance according to clb, and fills its fileds width data provided by row.\n@param row A {@link Map} contain the Object/Row mapping for the object.\n@param targetClassDescriptor If the \"ojbConcreteClass\" feature was used, the target\n{@link org.apache.ojb.broker.metadata.ClassDescriptor} could differ from the descriptor\nthis class was associated - see {@link #selectClassDescriptor}.\n@param targetObject If 'null' a new object instance is build, else fields of object will\nbe refreshed.\n@throws PersistenceBrokerException if there ewas an error creating the new object", "This method returns the value of the product using a Black-Scholes model for the swap rate with the Hunt-Kennedy convexity adjustment.\nThe model is determined by a discount factor curve and a swap rate volatility.\n\n@param forwardCurve The forward curve from which the swap rate is calculated. The discount curve, associated with this forward curve is used for discounting this option.\n@param swaprateVolatility The volatility of the log-swaprate.\n@return Value of this product", "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity" ]
public String getString(String fieldName) { return hasValue(fieldName) ? String.valueOf(resultMap.get(fieldName)) : null; }
[ "Returns the value of the identified field as a String.\n@param fieldName the name of the field\n@return the value of the field as a String" ]
[ "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.", "in truth we probably only need the types as injected by the metadata binder", "Get the bytes which represent the payload of this field, without the leading type tag and length header, as\na newly-allocated byte array.\n\n@return a new byte array containing a copy of the bytes this field contains", "Creates a householder reflection.\n\n(I-gamma*v*v')*x = tau*e1\n\n<p>NOTE: Same as cs_house in csparse</p>\n@param x (Input) Vector x (Output) Vector v. Modified.\n@param xStart First index in X that is to be processed\n@param xEnd Last + 1 index in x that is to be processed.\n@param gamma (Output) Storage for computed gamma\n@return variable tau", "Measure all children from container if needed\n@param measuredChildren the list of measured children\nmeasuredChildren list can be passed as null if it's not needed to\ncreate the list of the measured items\n@return true if the layout was recalculated, otherwise - false", "Compute eigenvalues. This is a routine not in ATLAS, but in the original\nLAPACK.", "Sets a new image\n\n@param BufferedImage imagem", "Utility function to get the current text.", "Returns a spread of integers in a range [0,max) that includes\ncount. The spread is sorted from largest to smallest." ]
private int findAvailablePortNumber( Integer portNumberStartingPoint, List<Integer> reservedPorts ) { assert portNumberStartingPoint != null; int candidate = portNumberStartingPoint; while ( reservedPorts.contains( candidate ) ) { candidate++; } return candidate; }
[ "Returns the first number available, starting at portNumberStartingPoint that's not already in the reservedPorts\nlist.\n\n@param portNumberStartingPoint first port number to start from.\n@param reservedPorts the ports already reserved.\n@return first number available not in the given list, starting at the given parameter." ]
[ "Alias accessor provided for JSON serialization only", "Adds a single value to the data set and updates any\nstatistics that are calculated cumulatively.\n@param value The value to add.", "return either the first space or the first nbsp", "Triggers a replication request.", "Returns the number of vertex indices for a single face.\n\n@param face the face\n@return the number of indices", "Clear all overrides, reset repeat counts for a request path\n\n@param pathId ID of path\n@param clientUUID UUID of client\n@throws Exception exception", "Adds a filter definition to this project file.\n\n@param filter filter definition", "List the addons already added to an app.\n@param appName new of the app\n@return a list of add-ons", "Extracts the nullity of a matrix using a preexisting decomposition.\n\n@see #singularThreshold(SingularValueDecomposition_F64)\n\n@param svd A precomputed decomposition. Not modified.\n@param threshold Tolerance used to determine of a singular value is singular.\n@return The nullity of the decomposed matrix." ]
public static dnstxtrec[] get(nitro_service service, String domain[]) throws Exception{ if (domain !=null && domain.length>0) { dnstxtrec response[] = new dnstxtrec[domain.length]; dnstxtrec obj[] = new dnstxtrec[domain.length]; for (int i=0;i<domain.length;i++) { obj[i] = new dnstxtrec(); obj[i].set_domain(domain[i]); response[i] = (dnstxtrec) obj[i].get_resource(service); } return response; } return null; }
[ "Use this API to fetch dnstxtrec resources of given names ." ]
[ "adds a FIELDDESCRIPTOR to this ClassDescriptor.\n@param fld", "Helper method to add cue list entries from a parsed ANLZ cue tag\n\n@param entries the list of entries being accumulated\n@param tag the tag whose entries are to be added", "Writes a buffered some-value restriction.\n\n@param propertyUri\nURI of the property to which the restriction applies\n@param rangeUri\nURI of the class or datatype to which the restriction applies\n@param bnode\nblank node representing the restriction\n@throws RDFHandlerException\nif there was a problem writing the RDF triples", "Patch provided by Avril Kotzen ([email protected])\nDB2 handles TINYINT (for mapping a byte).", "Build control archive of the deb\n\n@param packageControlFile the package control file\n@param controlFiles the other control information files (maintainer scripts, etc)\n@param dataSize the size of the installed package\n@param checksums the md5 checksums of the files in the data archive\n@param output\n@return\n@throws java.io.FileNotFoundException\n@throws java.io.IOException\n@throws java.text.ParseException", "Use this API to update lbsipparameters.", "return request is success by JsonRtn object\n\n@param jsonRtn\n@return", "Reads the given text stream and compressed its content.\n\n@param stream The input stream\n@return A byte array containing the GZIP-compressed content of the stream\n@throws IOException If an error ocurred", "Create a plan. The plan consists of batches. Each batch involves the\nmovement of no more than batchSize primary partitions. The movement of a\nsingle primary partition may require migration of other n-ary replicas,\nand potentially deletions. Migrating a primary or n-ary partition\nrequires migrating one partition-store for every store hosted at that\npartition." ]
public CustomField getCustomField(FieldType field) { CustomField result = m_configMap.get(field); if (result == null) { result = new CustomField(field, this); m_configMap.put(field, result); } return result; }
[ "Retrieve configuration details for a given custom field.\n\n@param field required custom field\n@return configuration detail" ]
[ "Attaches a morph to scene object with a base mesh\n@param sceneObj is the base mesh.\n@throws IllegalStateException if component is null\n@throws IllegalStateException if mesh is null\n@throws IllegalStateException if material is null", "Removes elements from begin to end from the list, inclusive. Returns a new list which\nis composed of the removed elements", "Get the script for a given ID\n\n@param id ID of script\n@return Script if found, otherwise null", "Generate a unique ID across the cluster\n@return generated ID", "Make a list value containing the specified values.", "request token from GCM", "Pauses a given deployment\n\n@param deployment The deployment to pause\n@param listener The listener that will be notified when the pause is complete", "Record a Screen View event\n@param screenName String, the name of the screen", "Scales the brightness of a pixel." ]
public void delete() { BoxAPIConnection api = this.getAPI(); URL url = COLLABORATION_URL_TEMPLATE.build(api.getBaseURL(), this.getID()); BoxAPIRequest request = new BoxAPIRequest(api, url, "DELETE"); BoxAPIResponse response = request.send(); response.disconnect(); }
[ "Deletes this collaboration." ]
[ "Remove a previously registered requirement for a capability.\n\n@param requirementRegistration the requirement. Cannot be {@code null}\n@see #registerAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)", "Lookup Seam integration resource loader.\n@return the Seam integration resource loader\n@throws DeploymentUnitProcessingException for any error", "Use this API to fetch all the policydataset resources that are configured on netscaler.", "Set the value for a custom request\n\n@param pathId ID of path\n@param customRequest value of custom request\n@param clientUUID UUID of client", "This method writes a single predecessor link to the MSPDI file.\n\n@param taskID The task UID\n@param type The predecessor type\n@param lag The lag duration\n@return A new link to be added to the MSPDI file", "Set the color at \"index\" to \"color\". Entries are interpolated linearly from\nthe existing entries at \"firstIndex\" and \"lastIndex\" to the new entry.\nfirstIndex < index < lastIndex must hold.\n@param index the position to set\n@param firstIndex the position of the first color from which to interpolate\n@param lastIndex the position of the second color from which to interpolate\n@param color the color to set", "Moves the elements contained in \"band\" in the Y axis \"yOffset\"\n@param yOffset\n@param band", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key", "New REST client uses new REST service" ]
public ItemDocumentBuilder withSiteLink(String title, String siteKey, ItemIdValue... badges) { withSiteLink(factory.getSiteLink(title, siteKey, Arrays.asList(badges))); return this; }
[ "Adds an additional site link to the constructed document.\n\n@param title\nthe title of the linked page\n@param siteKey\nidentifier of the site, e.g., \"enwiki\"\n@param badges\none or more badges" ]
[ "Gets a SerialMessage with the SENSOR_ALARM_SUPPORTED_GET command\n@return the serial message, or null if the supported command is not supported.", "Either a single file extension or a comma-separated list of extensions for which the language\nshall be registered.", "get the TypeArgSignature corresponding to given type\n\n@param type\n@return", "Samples a batch of indices in the range [0, numExamples) without replacement.", "Compare an array of bytes with a subsection of a larger array of bytes.\n\n@param lhs small array of bytes\n@param rhs large array of bytes\n@param rhsOffset offset into larger array of bytes\n@return true if a match is found", "Create a new DirectByteBuffer from a given address and size.\nThe returned DirectByteBuffer does not release the memory by itself.\n\n@param addr\n@param size\n@param att object holding the underlying memory to attach to the buffer.\nThis will prevent the garbage collection of the memory area that's\nassociated with the new <code>DirectByteBuffer</code>\n@return", "Determines if the queue identified by the given key is a regular 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 regular queue, false otherwise", "Use this API to fetch all the gslbldnsentries resources that are configured on netscaler.", "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>" ]
public Map<String, String> getParams() { Map<String, String> params = new HashMap<>(1); params.put(PARAM_COLLAPSED, Boolean.TRUE.toString()); return params; }
[ "Add the option specifying if the categories should be displayed collapsed\nwhen the dialog opens.\n\n@see org.opencms.ui.actions.I_CmsADEAction#getParams()" ]
[ "Adds listeners and reads from a file.\n\n@param reader reader for file type\n@param file schedule data\n@return ProjectFile instance", "Set the InputStream of request body data, of known length, to be sent to the server.\n\n@param input InputStream of request body data to be sent to the server\n@param inputLength Length of request body data to be sent to the server, in bytes\n@return an {@link HttpConnection} for method chaining\n@deprecated Use {@link #setRequestBody(InputStreamGenerator, long)}", "Mark root of this DAG depends on given DAG's root.\n\n@param dependencyGraph the dependency DAG", "Feeds input stream to data consumer using metadata from tar entry.\n@param consumer the consumer\n@param inputStream the stream to feed\n@param entry the entry to use for metadata\n@throws IOException on consume error", "Push docker image using the docker java client.\n\n@param imageTag\n@param username\n@param password\n@param host", "Append the text at the end of the Path.\n\n@param self a Path\n@param text the text to append at the end of the Path\n@throws java.io.IOException if an IOException occurs.\n@since 2.3.0", "Reply used in error cases. set the response header as null.\n\n@param errorMessage the error message\n@param stackTrace the stack trace\n@param statusCode the status code\n@param statusCodeInt the status code int", "Returns a new index creation statement using the session's keyspace.\n\n@param keyspace the keyspace name\n@param table the table name\n@param name the index name\n@return a new index creation statement", "Use this API to fetch transformpolicylabel resource of given name ." ]
public AccessAssertion unmarshal(final JSONObject encodedAssertion) { final String className; try { className = encodedAssertion.getString(JSON_CLASS_NAME); final Class<?> assertionClass = Thread.currentThread().getContextClassLoader().loadClass(className); final AccessAssertion assertion = (AccessAssertion) this.applicationContext.getBean(assertionClass); assertion.unmarshal(encodedAssertion); return assertion; } catch (JSONException | ClassNotFoundException e) { throw new RuntimeException(e); } }
[ "Load assertion from the provided json or throw exception if not possible.\n\n@param encodedAssertion the assertion as it was encoded in JSON." ]
[ "Function to filter files based on defined rules.", "Use this API to unset the properties of sslservice resource.\nProperties that need to be unset are specified in args array.", "Use this API to fetch csvserver_cspolicy_binding resources of given name .", "Serializes this RuleSet in an XML document.\n\n@param destination The writer to which the XML document shall be written.", "The entity instance is already in the session cache\n\nCopied from Loader#instanceAlreadyLoaded", "A specific, existing project can be updated by making a PUT request on the\nURL for that project. Only the fields provided in the `data` block will be\nupdated; 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 project record.\n\n@param project The project to update.\n@return Request object", "Gets an element of the matrix.\n\n@param row\nthe row\n@param col\nthe column\n@return the element at the given position", "Get the list of store names from a list of store definitions\n\n@param list\n@param ignoreViews\n@return list of store names", "Tests the string edit distance function." ]
public static clusterinstance get(nitro_service service, Long clid) throws Exception{ clusterinstance obj = new clusterinstance(); obj.set_clid(clid); clusterinstance response = (clusterinstance) obj.get_resource(service); return response; }
[ "Use this API to fetch clusterinstance resource of given name ." ]
[ "This method checks for paging information and returns the appropriate\ndata\n\n@param result\n@param httpResponse\n@param where\n@return a {@link WrappingPagedList} if there is paging, result if not.", "This method allows a pre-existing resource calendar to be attached to a\nresource.\n\n@param calendar resource calendar", "returns a sorted array of properties", "Allocates a database connection.\n\n@throws SQLException", "Returns the current download state for a download request.\n\n@param downloadId\n@return", "Record the duration of a get_all operation, along with how many values\nwere requested, how may were actually returned and the size of the values\nreturned.", "Inserts a column name, value pair into the SQL.\n\n@param column\nName of the table column.\n@param value\nValue to substitute in. InsertBuilder does *no* interpretation\nof this. If you want a string constant inserted, you must\nprovide the single quotes and escape the internal quotes. It\nis more common to use a question mark or a token in the style\nof {@link ParameterizedPreparedStatementCreator}, e.g. \":foo\".", "This configuration requires that all your tasks you submit to the system implement\nthe Groupable interface. By default, it will round robin tasks from each group\n\nTasks will be tracked internally in the system by randomly generated UUIDs\n\n@return", "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}" ]
public static double[][] pseudoInverse(double[][] matrix){ if(isSolverUseApacheCommonsMath) { // Use LU from common math SingularValueDecomposition svd = new SingularValueDecomposition(new Array2DRowRealMatrix(matrix)); double[][] matrixInverse = svd.getSolver().getInverse().getData(); return matrixInverse; } else { return org.jblas.Solve.pinv(new org.jblas.DoubleMatrix(matrix)).toArray2(); } }
[ "Pseudo-Inverse of a matrix calculated in the least square sense.\n\n@param matrix The given matrix A.\n@return pseudoInverse The pseudo-inverse matrix P, such that A*P*A = A and P*A*P = P" ]
[ "Initialize all components of this URI builder with the components of the given URI.\n@param uri the URI\n@return this UriComponentsBuilder", "we have only one implementation on classpath.", "calculate the difference of the two maps, so we know what was added, removed & updated\n@param left\n@param right\n@param onlyOnLeft\n@param onlyOnRight\n@param updated", "returns array with length 3 and optional entries version, encoding, standalone", "Format the date for the status messages.\n\n@param date the date to format.\n\n@return the formatted date.", "a small static helper to set the text color to a textView null save\n\n@param colorHolder\n@param textView\n@param colorDefault", "Encodes the given URI scheme with the given encoding.\n@param scheme the scheme to be encoded\n@param encoding the character encoding to encode to\n@return the encoded scheme\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Deserialize a directory of javascript design documents to a List of DesignDocument objects.\n\n@param directory the directory containing javascript files\n@return {@link DesignDocument}\n@throws FileNotFoundException if the file does not exist or cannot be read", "Counts the number of elements in A which are true\n@param A input matrix\n@return number of true elements" ]
@SuppressWarnings("unused") public static void changeCredentials(String accountID, String token) { changeCredentials(accountID, token, null); }
[ "This method is used to change the credentials of CleverTap account Id and token programmatically\n@param accountID CleverTap Account Id\n@param token CleverTap Account Token" ]
[ "flushes log queue, this actually writes combined log message into system log", "Find the index of this animation if it is in this animator.\n\n@param findme {@link GVRAnimation} to find.\n@returns 0 based index of animation or -1 if not found\n@see GVRAnimator#addAnimation(GVRAnimation)", "Write a resource.\n\n@param record resource instance\n@throws IOException", "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", "Adds the deploy operation as a step to the composite operation.\n\n@param builder the builder to add the step to\n@param deployment the deployment to deploy", "Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.\n\n@param map\nthe map\n@param nameMapping\nthe keys of the Map values to add to the List\n@return a List of all of the values in the Map whose key matches an entry in the nameMapping array\n@throws NullPointerException\nif map or nameMapping is null", "Generates a Map of query parameters for Module regarding the filters\n\n@return Map<String, Object>", "Constructs a reference of the given type to the given\nreferent. The reference is registered with the queue\nfor later purging.\n\n@param type HARD, SOFT or WEAK\n@param referent the object to refer to\n@param hash the hash code of the <I>key</I> of the mapping;\nthis number might be different from referent.hashCode() if\nthe referent represents a value and not a key", "Resize picture to desired size.\n\n@param width Desired width.\n@param height Desired height.\n@throws IllegalArgumentException if {@code width} or {@code height} is less than 0 or both are\n0." ]
@Override protected Class getPrototypeClass(Video content) { Class prototypeClass; if (content.isFavorite()) { prototypeClass = FavoriteVideoRenderer.class; } else if (content.isLive()) { prototypeClass = LiveVideoRenderer.class; } else { prototypeClass = LikeVideoRenderer.class; } return prototypeClass; }
[ "Method to declare Video-VideoRenderer mapping.\nFavorite videos will be rendered using FavoriteVideoRenderer.\nLive videos will be rendered using LiveVideoRenderer.\nLiked videos will be rendered using LikeVideoRenderer.\n\n@param content used to map object-renderers.\n@return VideoRenderer subtype class." ]
[ "Converts a class into a signature token.\n\n@param c class\n@return signature token text", "Get all parameter keys.\n@return a set of parameter keys", "and class as property", "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", "Seeks forward or backwards to a particular season based on the current date\n\n@param seasonString The season to seek to\n@param direction The direction to seek\n@param seekAmount The number of years to seek", "Post the specified photo to a blog. Note that the Photo.title and Photo.description are used for the blog entry title and body respectively.\n\n@param photo\nThe photo metadata\n@param blogId\nThe blog ID\n@param blogPassword\nThe blog password\n@throws FlickrException", "May have to be changed to let multiple touch", "Returns true if required properties for FluoAdmin are set", "Chooses the ECI mode most suitable for the content of this symbol." ]
public static base_response update(nitro_service client, systemcollectionparam resource) throws Exception { systemcollectionparam updateresource = new systemcollectionparam(); updateresource.communityname = resource.communityname; updateresource.loglevel = resource.loglevel; updateresource.datapath = resource.datapath; return updateresource.update_resource(client); }
[ "Use this API to update systemcollectionparam." ]
[ "Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction", "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", "Retrieve a child that matches the given absolute path, starting from the current node.\n\n@param nodePath The path from the object root to the requested child node.\n@return The requested child node or <code>null</code>.", "Provides a collection of all the nodes in the tree\nusing a depth first traversal.\n\n@return the list of (depth-first) ordered nodes", "Store the data of a print job in the registry.\n\n@param printJobStatus the print job status", "Prints one line to the csv file\n\n@param cr data pipe with search results", "Returns an integer array that contains the default values for all the\ntexture parameters.\n\n@return an integer array that contains the default values for all the\ntexture parameters.", "Create the OJB_CLAZZ pseudo column based on CASE WHEN.\nThis column defines the Class to be instantiated.\n@param buf", "Add a newline to this sequence according to the configured lineDelimiter if the last line contains\nsomething besides whitespace." ]
public PhotoContext getContext(String photoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_CONTEXT); parameters.put("photo_id", photoId); Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } PhotoContext photoContext = new PhotoContext(); Collection<Element> payload = response.getPayloadCollection(); for (Element payloadElement : payload) { String tagName = payloadElement.getTagName(); if (tagName.equals("prevphoto")) { Photo photo = new Photo(); photo.setId(payloadElement.getAttribute("id")); photo.setSecret(payloadElement.getAttribute("secret")); photo.setTitle(payloadElement.getAttribute("title")); photo.setFarm(payloadElement.getAttribute("farm")); photo.setUrl(payloadElement.getAttribute("url")); photoContext.setPreviousPhoto(photo); } else if (tagName.equals("nextphoto")) { Photo photo = new Photo(); photo.setId(payloadElement.getAttribute("id")); photo.setSecret(payloadElement.getAttribute("secret")); photo.setTitle(payloadElement.getAttribute("title")); photo.setFarm(payloadElement.getAttribute("farm")); photo.setUrl(payloadElement.getAttribute("url")); photoContext.setNextPhoto(photo); } } return photoContext; }
[ "Get the context for the specified photo.\n\nThis method does not require authentication.\n\n@param photoId\nThe photo ID\n@return The PhotoContext\n@throws FlickrException" ]
[ "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Add classes to the map file.\n\n@param writer XML stream writer\n@param jarFile jar file\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException", "This can be called to adjust the size of the dialog glass. It\nis implemented using JSNI to bypass the \"private\" keyword on\nthe glassResizer.", "Get the values of the fields for an obj\nAutoincrement values are automatically set.\n@param fields\n@param obj\n@throws PersistenceBrokerException", "Returns a compact representation of all of the stories on the task.\n\n@param task The task containing the stories to get.\n@return Request object", "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.", "Process the response by reporting proper log and feeding failure\ndetectors\n\n@param response\n@param pipeline", "Returns the header with the specified name from the supplied map. The\nheader lookup is case-insensitive.\n\n@param headers A <code>Map</code> containing the HTTP request headers.\n@param name The name of the header to return.\n@return The value of specified header, or a comma-separated list if there\nwere multiple headers of that name.", "Use this API to delete dnstxtrec." ]
public void configure(Properties props) throws HibernateException { try{ this.config = new BoneCPConfig(props); // old hibernate config String url = props.getProperty(CONFIG_CONNECTION_URL); String username = props.getProperty(CONFIG_CONNECTION_USERNAME); String password = props.getProperty(CONFIG_CONNECTION_PASSWORD); String driver = props.getProperty(CONFIG_CONNECTION_DRIVER_CLASS); if (url == null){ url = props.getProperty(CONFIG_CONNECTION_URL_ALTERNATE); } if (username == null){ username = props.getProperty(CONFIG_CONNECTION_USERNAME_ALTERNATE); } if (password == null){ password = props.getProperty(CONFIG_CONNECTION_PASSWORD_ALTERNATE); } if (driver == null){ driver = props.getProperty(CONFIG_CONNECTION_DRIVER_CLASS_ALTERNATE); } if (url != null){ this.config.setJdbcUrl(url); } if (username != null){ this.config.setUsername(username); } if (password != null){ this.config.setPassword(password); } // Remember Isolation level this.isolation = ConfigurationHelper.getInteger(AvailableSettings.ISOLATION, props); this.autocommit = ConfigurationHelper.getBoolean(AvailableSettings.AUTOCOMMIT, props); logger.debug(this.config.toString()); if (driver != null && !driver.trim().equals("")){ loadClass(driver); } if (this.config.getConnectionHookClassName() != null){ Object hookClass = loadClass(this.config.getConnectionHookClassName()).newInstance(); this.config.setConnectionHook((ConnectionHook) hookClass); } // create the connection pool this.pool = createPool(this.config); } catch (Exception e) { throw new HibernateException(e); } }
[ "Pool configuration.\n@param props\n@throws HibernateException" ]
[ "Get the type created by selecting only a subset of properties from this\ntype. The type must be a map for this to work\n\n@param properties The properties to select\n@return The new type definition", "Handles Multi Instance Encapsulation message. Decapsulates\nan Application Command message and handles it using the right\ninstance.\n@param serialMessage the serial message to process.\n@param offset the offset at which to start procesing.", "Use this API to fetch all the tmtrafficaction resources that are configured on netscaler.", "Gets information about a trashed file that's limited to a list of specified fields.\n@param fileID the ID of the trashed file.\n@param fields the fields to retrieve.\n@return info about the trashed file containing only the specified fields.", "generate a message for loglevel FATAL\n\n@param pObject the message Object", "Returns true if this entity's primary key is not null, and for numeric\nfields, is non-zero.", "Parse a version String and add the components to a properties object.\n\n@param version the version to parse", "Retrieves an object that has been attached to this context.\n\n@param key the key to the attachment.\n@param <V> the value type of the attachment.\n\n@return the attachment if found otherwise {@code null}.", "Pretty print a progress update after each batch complete.\n\n@param batchCount current batch\n@param numBatches total number of batches\n@param partitionStoreCount partition stores migrated\n@param numPartitionStores total number of partition stores to migrate\n@param totalTimeMs total time, in milliseconds, of execution thus far." ]
public void setColor(int n, int color) { int firstColor = map[0]; int lastColor = map[256-1]; if (n > 0) for (int i = 0; i < n; i++) map[i] = ImageMath.mixColors((float)i/n, firstColor, color); if (n < 256-1) for (int i = n; i < 256; i++) map[i] = ImageMath.mixColors((float)(i-n)/(256-n), color, lastColor); }
[ "Set a knot color.\n@param n the knot index\n@param color the color" ]
[ "Checks whether a built of the indices is necessary.\n@param cms The appropriate CmsObject instance.\n@return true, if the spellcheck indices have to be rebuilt, otherwise false", "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Returns a flag, indicating if search should be performed using a wildcard if the empty query is given.\n@return A flag, indicating if search should be performed using a wildcard if the empty query is given.", "Create an Product delivery\n\n@throws AuthenticationException, GrapesCommunicationException, IOException", "Sets the body of this request to a given JSON string.\n@param body the JSON string to use as the body.", "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>", "If a and b are not null, returns a new duration of a + b.\nIf a is null and b is not null, returns b.\nIf a is not null and b is null, returns a.\nIf a and b are null, returns null.\nIf needed, b is converted to a's time unit using the project properties.\n\n@param a first duration\n@param b second duration\n@param defaults project properties containing default values\n@return a + b", "Removes all currently assigned labels for this Datum then adds all\nof the given Labels.", "Reads the NTriples file from the reader, pushing statements into\nthe handler." ]
public static base_responses delete(nitro_service client, String certkey[]) throws Exception { base_responses result = null; if (certkey != null && certkey.length > 0) { sslcertkey deleteresources[] = new sslcertkey[certkey.length]; for (int i=0;i<certkey.length;i++){ deleteresources[i] = new sslcertkey(); deleteresources[i].certkey = certkey[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "Use this API to delete sslcertkey resources of given names." ]
[ "Initialize the domain registry.\n\n@param registry the domain registry", "Checks if the given AnnotatedType is sensible, otherwise provides warnings.", "Build data model for serialization.", "Helper function to find the beat grid section in a rekordbox track analysis file.\n\n@param anlzFile the file that was downloaded from the player\n\n@return the section containing the beat grid", "Checks the available space and sets max-height to the details field-set.", "Set the occurrences. If the String is invalid, the occurrences will be set to \"-1\" to cause server-side validation to fail.\n@param occurrences the interval to set.", "This method take a list of fileName of the type partitionId_Replica_Chunk\nand returns file names that match the regular expression\nmasterPartitionId_", "If UPDATE, INSERT or DELETE, return BatchPreparedStatement,\notherwise return null.", "Use this API to unset the properties of Interface resource.\nProperties that need to be unset are specified in args array." ]
private synchronized void finishTransition(final InternalState current, final InternalState next) { internalSetState(getTransitionTask(next), current, next); transition(); }
[ "Finish a state transition from a notification.\n\n@param current\n@param next" ]
[ "Return the bean type, untangling the proxy if needed\n\n@param name\nthe bean name\n@return The Class of the bean", "Get the class name without the qualified package name.\n@param className the className to get the short name for\n@return the class name of the class without the package name\n@throws IllegalArgumentException if the className is empty", "Parses an RgbaColor from an rgba value.\n\n@return the parsed color", "Extracts baseline work from the MPP file for a specific baseline.\nReturns null if no baseline work is present, otherwise returns\na list of timephased work items.\n\n@param assignment parent assignment\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephased baseline work data block\n@param raw flag indicating if this data is to be treated as raw\n@return timephased work", "Called from the native side\n@param eye", "Set sizes to override the generated URLs of the different sizes.\n\n@param sizes\n@see com.flickr4java.flickr.photos.PhotosInterface#getSizes(String)", "Convenience extension, to generate traced code.", "Connect to the HC and retrieve the current model updates.\n\n@param controller the server controller\n@param callback the operation completed callback\n\n@throws IOException for any error", "This methods enhances the objects loaded by a broker query\nwith a JDO StateManager an brings them under JDO control.\n@param pojos the OJB pojos as obtained by the broker\n@return the collection of JDO PersistenceCapable instances" ]
public static final Rect getViewportBounds() { return new Rect(Window.getScrollLeft(), Window.getScrollTop(), Window.getClientWidth(), Window.getClientHeight()); }
[ "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." ]
[ "Initializes the type and validates it", "Handles the file deletions.\n\n@param cms the CMS context to use\n@param toDelete the resources to delete\n\n@throws CmsException if something goes wrong", "Use this API to fetch all the autoscaleaction resources that are configured on netscaler.", "Multiplied a transpose orthogonal matrix Q by the specified rotator. This is used\nto update the U and V matrices. Updating the transpose of the matrix is faster\nsince it only modifies the rows.\n\n\n@param Q Orthogonal matrix\n@param m Coordinate of rotator.\n@param n Coordinate of rotator.\n@param c cosine of rotator.\n@param s sine of rotator.", "Checks whether the folder exists for fileName, and creates it if necessary.\n\n@param fileName folder name.\n@throws IOException an IO exception.", "Set the attributes for the associated object.\n\n@param attributes attributes for associated objects\n@deprecated replaced by {@link #setAllAttributes(Map)} after introduction of nested associations", "Add properties to 'properties' map on transaction start\n@param type - of transaction", "Given an AVRO serializer definition, validates if all the avro schemas\nare valid i.e parseable.\n\n@param avroSerDef", "Runs a method call with retries.\n@param pjp a {@link ProceedingJoinPoint} representing an annotated\nmethod call.\n@param retryableAnnotation the {@link org.fishwife.jrugged.aspects.Retryable}\nannotation that wrapped the method.\n@throws Throwable if the method invocation itself throws one during execution.\n@return The return value from the method call." ]
private Collection<Locale> initLocales() { Collection<Locale> locales = null; switch (m_bundleType) { case DESCRIPTOR: locales = new ArrayList<Locale>(1); locales.add(Descriptor.LOCALE); break; case XML: case PROPERTY: locales = OpenCms.getLocaleManager().getAvailableLocales(m_cms, m_resource); break; default: throw new IllegalArgumentException(); } return locales; }
[ "Initializes the locales that can be selected via the language switcher in the bundle editor.\n@return the locales for which keys can be edited." ]
[ "Adds each of the specified followers to the task, if they are not already\nfollowing. Returns the complete, updated record for the affected task.\n\n@param task The task to add followers to.\n@return Request object", "Accessor method used to retrieve a Boolean object representing the\ncontents of an individual field. If the field does not exist in the\nrecord, null is returned.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Gen error response.\n\n@param t\nthe t\n@return the response on single request", "Stores an new entry in the cache.", "Parse a currency symbol position from a string representation.\n\n@param value String representation\n@return CurrencySymbolPosition instance", "Creates a PathAddress from the given ModelNode address. The given node is expected to be an address node.\n\n@param node the node (cannot be {@code null})\n\n@return the update identifier", "Overridden to add transform.", "Create a forward curve from forwards given by a LIBORMonteCarloModel.\n\n@param name name of the forward curve.\n@param model Monte Carlo model providing the forwards.\n@param startTime time at which the curve starts, i.e. zero time for the curve\n@return a forward curve from forwards given by a LIBORMonteCarloModel.\n@throws CalculationException Thrown if the model failed to provide the forward rates.", "Gets a collection of all the email aliases for this user.\n\n<p>Note that the user's primary login email is not included in the collection of email aliases.</p>\n\n@return a collection of all the email aliases for this user." ]
protected <T, A> ActiveOperation<T, A> removeActiveOperation(Integer id) { final ActiveOperation<T, A> removed = removeUnderLock(id); if(removed != null) { for(final Map.Entry<Integer, ActiveRequest<?, ?>> requestEntry : requests.entrySet()) { final ActiveRequest<?, ?> request = requestEntry.getValue(); if(request.context == removed) { requests.remove(requestEntry.getKey()); } } } return removed; }
[ "Remove an active operation.\n\n@param id the operation id\n@return the removed active operation, {@code null} if there was no registered operation" ]
[ "Creates the save and exit button UI Component.\n@return the save and exit button.", "Merges the immutable container types of this Configuration with the given\nConfiguration.\n\nThe resultant immutable container types results will be the union of the two sets of\nimmutable container types. Where the type is found in both\nConfigurations, the result from otherConfiguration will replace the\nexisting result in this Configuration. This replacement behaviour will\noccur for subsequent calls to\n{@link #mergeImmutableContainerTypesFrom(Configuration)} .\n\n@param otherConfiguration - Configuration to merge immutable container types with.", "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", "Set the numeric code. Setting it to -1 search for currencies that have no numeric code.\n\n@param codes the numeric codes.\n@return the query for chaining.", "Removes columns from the matrix.\n\n@param A Matrix. Modified\n@param col0 First column\n@param col1 Last column, inclusive.", "Executed read-resource-description and returns access-control info.\nReturns null in case there was any kind of problem.\n\n@param client\n@param address\n@return", "Get file extension for script language.\n\n@param language the language name\n@return the file extension as string or null if the language is not in the set of languages supported by spin", "Increases the maximum size of the data array so that it can store sparse data up to 'length'. The class\nparameter nz_length is not modified by this function call.\n\n@param arrayLength Desired maximum length of sparse data\n@param preserveValue If true the old values will be copied into the new arrays. If false that step will be skipped.", "end class CoNLLIterator" ]
public String getWorkplaceLink(CmsObject cms, String resourceName, boolean forceSecure) { String result = substituteLinkForUnknownTarget(cms, resourceName, forceSecure); return appendServerPrefix(cms, result, resourceName, true); }
[ "Returns the link for the given workplace resource.\n\nThis should only be used for resources under /system or /shared.<p<\n\n@param cms the current OpenCms user context\n@param resourceName the resource to generate the online link for\n@param forceSecure forces the secure server prefix\n\n@return the link for the given resource" ]
[ "Upcasts a Builder instance to the generated superclass, to allow access to private fields.\n\n<p>Reuses an existing upcast instance if one was already declared in this scope.\n\n@param code the {@link SourceBuilder} to add the declaration to\n@param datatype metadata about the user type the builder is being generated for\n@param builder the Builder instance to upcast\n@returns a variable holding the upcasted instance", "Get all categories\nGet all tags marked as categories\n@return ApiResponse&lt;TagsEnvelope&gt;\n@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body", "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "Builds the resource.\n\n@return the cms resource", "Visit an exported package of the current module.\n\n@param packaze the qualified name of the exported package.\n@param access the access flag of the exported package,\nvalid values are among {@code ACC_SYNTHETIC} and\n{@code ACC_MANDATED}.\n@param modules the qualified names of the modules that can access to\nthe public classes of the exported package or\n<tt>null</tt>.", "Closes this output stream and releases any system resources associated with the stream.\n\n@throws IOException\nif an I/O error occurs.", "This may cost twice what it would in the original Map.\n\n@param key key whose associated value is to be returned.\n@return the value to which this map maps the specified key, or\n<tt>null</tt> if the map contains no mapping for this key.", "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map", "Get the int resource id with specified type definition\n@param context\n@param id String resource id\n@return int resource id" ]
public int getIndexMax() { int indexMax = 0; double max = getEigenvalue(0).getMagnitude2(); final int N = getNumberOfEigenvalues(); for( int i = 1; i < N; i++ ) { double m = getEigenvalue(i).getMagnitude2(); if( m > max ) { max = m; indexMax = i; } } return indexMax; }
[ "Returns the index of the eigenvalue which has the largest magnitude.\n\n@return index of the largest magnitude eigen value." ]
[ "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.", "Performs the closure within a transaction using a cached connection.\nIf the closure takes a single argument, it will be called\nwith the connection, otherwise it will be called with no arguments.\n\n@param closure the given closure\n@throws SQLException if a database error occurs", "This method writes task data to a Planner file.\n\n@throws JAXBException on xml creation errors", "Pops resource requests off the queue until queue is empty or an unexpired\nresource request is found. Invokes .handleTimeout on all expired resource\nrequests popped off the queue.\n\n@return null or a valid ResourceRequest", "Get the literal value for an expression.\n\n@param expression expression\n@return literal value", "Generate the global CSS style for the whole document.\n@return the CSS code used in the generated document header", "View that redirects the top level window to the URL defined in postDeclineUrl property after user declines to authorize application.\nMay be overridden for custom views, particularly in the case where the post-decline view should be rendered in-canvas.\n@return a view to display after a user declines authoriation. Defaults as a redirect to postDeclineUrl", "Creates Accumulo connector given FluoConfiguration", "Get a property as an long or default value.\n\n@param key the property name\n@param defaultValue the default value" ]
public static String getStatusText(int nHttpStatusCode) { Integer intKey = new Integer(nHttpStatusCode); if (!mapStatusCodes.containsKey(intKey)) { return ""; } else { return mapStatusCodes.get(intKey); } }
[ "Returns the HTTP status text for the HTTP or WebDav status code\nspecified by looking it up in the static mapping. This is a\nstatic function.\n\n@param nHttpStatusCode [IN] HTTP or WebDAV status code\n@return A string with a short descriptive phrase for the\nHTTP status code (e.g., \"OK\")." ]
[ "Returns the current download state for a download request.\n\n@param downloadId\n@return", "Create and register the declaration of class D with the given metadata.\n\n@param metadata the metadata to create the declaration\n@return the created declaration of class D", "Get object by identity. First lookup among objects registered in the\ntransaction, then in persistent storage.\n@param id The identity\n@return The object\n@throws PersistenceBrokerException", "Use this API to fetch filtered set of gslbservice resources.\nset the filter parameter values in filtervalue object.", "Pretty prints the given source code.\n\n@param code\nsource code to format\n@param options\nformatter options\n@param lineEnding\ndesired line ending\n@return formatted source code", "Returns true if the class node represents a the class node for the Class class\nand if the parametrized type is a neither a placeholder or a wildcard. For example,\nthe class node Class&lt;Foo&gt; where Foo is a class would return true, but the class\nnode for Class&lt;?&gt; would return false.\n@param classNode a class node to be tested\n@return true if it is the class node for Class and its generic type is a real class", "Registers all custom Externalizer implementations that Hibernate OGM needs into an Infinispan CacheManager\nconfiguration.\n\n@see ExternalizerIds\n@param cfg the Serialization section of a GlobalConfiguration builder", "Return the raw source line corresponding to the specified AST node\n\n@param node - the Groovy AST node", "Use this API to fetch dnstxtrec resources of given names ." ]
public int addKey(String key) { JdkUtils.requireNonNull(key); int nextIndex = keys.size(); final Integer mapIndex = JdkUtils.putIfAbsent(keys, key, nextIndex); return mapIndex == null ? nextIndex : mapIndex; }
[ "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" ]
[ "Retrieve an instance of the ResourceField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ResourceField instance", "Returns the next power of 2 after the input value x.\n\n@param x Input value x.\n@return Returns the next power of 2 after the input value x.", "Creates multiple aliases at once.", "Use this API to fetch sslcertkey resources of given names .", "Extract the field types from the fieldConfigs if they have not already been configured.", "Register opened database via the PBKey.", "Sets a client option per-request\n\n@param key Option name\n@param value Option value\n@return The request itself", "Returns PatternParser used to parse the conversion string. Subclasses may\noverride this to return a subclass of PatternParser which recognize\ncustom conversion characters.\n\n@since 0.9.0", "Make a composite filter from the given sub-filters using AND to combine filters." ]
@PostConstruct protected void checkPluginDependencies() throws GeomajasException { if ("true".equals(System.getProperty("skipPluginDependencyCheck"))) { return; } if (null == declaredPlugins) { return; } // start by going through all plug-ins to build a map of versions for plug-in keys // includes verification that each key is only used once Map<String, String> versions = new HashMap<String, String>(); for (PluginInfo plugin : declaredPlugins.values()) { String name = plugin.getVersion().getName(); String version = plugin.getVersion().getVersion(); // check for multiple plugin with same name but different versions (duplicates allowed for jar+source dep) if (null != version) { String otherVersion = versions.get(name); if (null != otherVersion) { if (!version.startsWith(EXPR_START)) { if (!otherVersion.startsWith(EXPR_START) && !otherVersion.equals(version)) { throw new GeomajasException(ExceptionCode.DEPENDENCY_CHECK_INVALID_DUPLICATE, name, version, versions.get(name)); } versions.put(name, version); } } else { versions.put(name, version); } } } // Check dependencies StringBuilder message = new StringBuilder(); String backendVersion = versions.get("Geomajas"); for (PluginInfo plugin : declaredPlugins.values()) { String name = plugin.getVersion().getName(); message.append(checkVersion(name, "Geomajas back-end", plugin.getBackendVersion(), backendVersion)); List<PluginVersionInfo> dependencies = plugin.getDependencies(); if (null != dependencies) { for (PluginVersionInfo dependency : plugin.getDependencies()) { String depName = dependency.getName(); message.append(checkVersion(name, depName, dependency.getVersion(), versions.get(depName))); } } dependencies = plugin.getOptionalDependencies(); if (null != dependencies) { for (PluginVersionInfo dependency : dependencies) { String depName = dependency.getName(); String availableVersion = versions.get(depName); if (null != availableVersion) { message.append(checkVersion(name, depName, dependency.getVersion(), versions.get(depName))); } } } } if (message.length() > 0) { throw new GeomajasException(ExceptionCode.DEPENDENCY_CHECK_FAILED, message.toString()); } recorder.record(GROUP, VALUE); }
[ "Finish initializing.\n\n@throws GeomajasException oops" ]
[ "Construct a pretty string documenting progress for this batch plan thus\nfar.\n\n@return pretty string documenting progress", "Return the TransactionManager of the external app", "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Returns the index of the first invalid character of the zone, or -1 if the zone is valid\n\n@param sequence\n@return", "Use this API to update snmpoption.", "Given a storedefinition, constructs the xml string to be sent out in\nresponse to a \"schemata\" fetch request\n\n@param storeDefinition\n@return serialized store definition", "Special multiplication that takes in account the zeros and one in Y, which\nis the matrix that stores the householder vectors.", "This method converts an offset value into an array index, which in\nturn allows the data present in the fixed block to be retrieved. Note\nthat if the requested offset is not found, then this method returns -1.\n\n@param offset Offset of the data in the fixed block\n@return Index of data item within the fixed data block", "Set whether the WMS tiles should be cached for later use. This implies that the WMS tiles will be proxied.\n\n@param useCache true when request needs to be cached\n@since 1.9.0" ]
public static List<ObjectModelResolver> getResolvers() { if (resolvers == null) { synchronized (serviceLoader) { if (resolvers == null) { List<ObjectModelResolver> foundResolvers = new ArrayList<ObjectModelResolver>(); for (ObjectModelResolver resolver : serviceLoader) { foundResolvers.add(resolver); } resolvers = foundResolvers; } } } return resolvers; }
[ "Returns all found resolvers\n@return" ]
[ "Gets the current instance of plugin manager\n\n@return PluginManager", "Updates the indices in the index buffer from a Java int array.\nAll of the entries of the input int 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 int array is wrong size", "See if there is an auto-attach cache file that seems to match the media in the specified slot, and if so,\nattach it.\n\n@param slot the player slot that is under consideration for automatic cache attachment", "Creates a new Box Developer Edition connection with enterprise token leveraging BoxConfig.\n@param boxConfig box configuration settings object\n@return a new instance of BoxAPIConnection.", "Gets the appropriate cache dir\n\n@param ctx\n@return", "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException", "Create servlet deployment.\n\nCan be overridden with custom servlet deployment. e.g. exact resources listing in restricted env like GAE\n\n@param context the servlet context\n@param bootstrap the bootstrap\n@return new servlet deployment", "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.", "Ensure that a tool object is valid for creation. The API requires certain fields to be filled out.\nThrows an IllegalArgumentException if the conditions are not met.\n@param tool The external tool object we are trying to create" ]
private boolean activityIsStartMilestone(Activity activity) { String type = activity.getType(); return type != null && type.indexOf("StartMilestone") != -1; }
[ "Returns true if the activity is a start milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone" ]
[ "This method returns the value random variable of the product within the specified model,\nevaluated at a given evalutationTime.\nCash-flows prior evaluationTime are not considered.\n\n@param evaluationTime The time on which this products value should be observed.\n@param model The model used to price the product.\n@return The random variable representing the value of the product discounted to evaluation time.\n@throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the <code>cause()</code> method.", "given is at the begining, of is at the end", "Helper method to get a list of node ids.\n\n@param nodeList", "Given a GanttProject priority value, turn this into an MPXJ Priority instance.\n\n@param gpPriority GanttProject priority\n@return Priority instance", "Adds a qualifier with the given property and value to the constructed\nstatement.\n\n@param propertyIdValue\nthe property of the qualifier\n@param value\nthe value of the qualifier\n@return builder object to continue construction", "Start and configure GreenMail using given properties.\n\n@param properties the properties such as System.getProperties()", "Retrieves state and metrics information for individual node.\n\n@param name node name\n@return node information", "Returns the complete tag record for a single tag.\n\n@param tag The tag to get.\n@return Request object", "Process a graphical indicator definition for a known type.\n\n@param type field type" ]
public static AliasFinder newInstance(final String variableName, final ControlFlowBlock controlFlowBlockToExamine) { checkArgument(!variableName.isEmpty()); return new AliasFinder(variableName, checkNotNull(controlFlowBlockToExamine)); }
[ "Creates a new instance of this class.\n\n@param variableName\nname of the instance variable to search aliases for. Must\nneither be {@code null} nor empty.\n@param controlFlowBlockToExamine\na {@link ControlFlowBlock} which possibly contains the setup\nof an alias for a lazy variable. This method thereby examines\npredecessors of {@code block}, too. This parameter must not be\n{@code null}.\n@return a new instance of this class." ]
[ "Restore backup data\n\n@param fileData - json file with restore data\n@return\n@throws Exception", "Returns an text table containing the matrix of Strings passed in.\nThe first dimension of the matrix should represent the rows, and the\nsecond dimension the columns.", "Creates the server bootstrap.", "Ensures that a String argument is a number.\n\n@param condition\ncondition must be {@code true}^ so that the check will be performed\n@param value\nvalue which must be a number\n@throws IllegalNumberArgumentException\nif the given argument {@code value} is not a number", "Reads characters until any 'end' character is encountered, ignoring\nescape sequences.\n\n@param out\nThe StringBuilder to write to.\n@param in\nThe Input String.\n@param start\nStarting position.\n@param end\nEnd characters.\n@return The new position or -1 if no 'end' char was found.", "Add a user by ID to the list of people to notify when the retention period is ending.\n@param userID The ID of the user to add to the list.", "Manual check because introducing a capability can't be done without a full refactoring.\nThis has to go as soon as the management interfaces are redesigned.\n@param context the OperationContext\n@param otherManagementEndpoint : the address to check that may provide an exposed jboss-remoting endpoint.\n@throws OperationFailedException in case we can't remove the management resource.", "Look up all recorded playback state information.\n\n@return the playback state recorded for any player\n@since 0.5.0", "Returns an English label for a given datatype.\n\n@param datatype\nthe datatype to label\n@return the label" ]
public static final long getLong(byte[] data, int offset) { if (data.length != 8) { throw new UnexpectedStructureException(); } long result = 0; int i = offset; for (int shiftBy = 0; shiftBy < 64; shiftBy += 8) { result |= ((long) (data[i] & 0xff)) << shiftBy; ++i; } return result; }
[ "This method reads an eight byte integer from the input array.\n\n@param data the input array\n@param offset offset of integer data in the array\n@return integer value" ]
[ "Adjusts all links in the target folder that point to the source folder\nso that they are kept \"relative\" in the target folder where possible.\n\nIf a link is found from the target folder to the source folder,\nthen the target folder is checked if a target of the same name\nis found also \"relative\" inside the target Folder, and if so,\nthe link is changed to that \"relative\" target. This is mainly used to keep\nrelative links inside a copied folder structure intact.\n\nExample: Image we have folder /folderA/ that contains files\n/folderA/x1 and /folderA/y1. x1 has a link to y1 and y1 to x1.\nNow someone copies /folderA/ to /folderB/. So we end up with\n/folderB/x2 and /folderB/y2. Because of the link mechanism in OpenCms,\nx2 will have a link to y1 and y2 to x1. By using this method,\nthe links from x2 to y1 will be replaced by a link x2 to y2,\nand y2 to x1 with y2 to x2.\n\nLink replacement works for links in XML files as well as relation only\ntype links.\n\n@param sourceFolder the source folder\n@param targetFolder the target folder\n\n@throws CmsException if something goes wrong", "Returns the type of the current member which is the type in the case of a field, the return type for a getter\nmethod, or the type of the parameter for a setter method.\n\n@return The member type\n@exception XDocletException if an error occurs", "Returns redirect information for the given ID\n\n@param id ID of redirect\n@return ServerRedirect\n@throws Exception exception", "Code common to both XER and database readers to extract\ncurrency format data.\n\n@param row row containing currency data", "Apply issues tracker info to a build info builder (used by generic tasks and maven2 which doesn't use the extractor", "Support the subscript operator for CharSequence.\n\n@param text a CharSequence\n@param index the index of the Character to get\n@return the Character at the given index\n@since 1.0", "Calculate the start variance.\n\n@return start variance", "Returns the class hierarchy of the given type, from bottom to top, starting with the given class itself.\nInterfaces are not included.\n\n@param clazz the class of interest\n@return the class hierarchy of the given class", "Set an attribute.\n\n@param name attribute name.\n@param value attribute value." ]
private void populateLeaf(String parentName, Row row, Task task) { if (row.getInteger("TASKID") != null) { populateTask(row, task); } else { populateMilestone(row, task); } String name = task.getName(); if (name == null || name.isEmpty()) { task.setName(parentName); } }
[ "Adds a leaf node, which could be a task or a milestone.\n\n@param parentName parent bar name\n@param row row to add\n@param task task to populate with data from the row" ]
[ "Creates an appropriate HSGE for resources in the host tree, excluding the server and server-config subtrees", "Parses an RgbaColor from an rgba value.\n\n@return the parsed color", "Use this API to fetch nssimpleacl resources of given names .", "joins a collection of objects together as a String using a separator", "Parse representations from a file object response.\n@param jsonObject representations json object in get response for /files/file-id?fields=representations\n@return list of representations", "Multiply scalar value to a complex number.\n\n@param z1 Complex Number.\n@param scalar Scalar value.\n@return Returns new ComplexNumber instance containing the multiply of specified complex number with the scalar value.", "Sets the search scope.\n\n@param cms The current CmsObject object.", "Gets the file from which boot operations should be parsed.\n@return the file. Will not be {@code null}", "Compiles and fills the reports design.\n\n@param dr the DynamicReport\n@param layoutManager the object in charge of doing the layout\n@param ds The datasource\n@param _parameters Map with parameters that the report may need\n@return\n@throws JRException" ]
public static void writeBytes(byte[] bytes, long value, int offset, int numBytes) { int shift = 0; for(int i = offset + numBytes - 1; i >= offset; i--) { bytes[i] = (byte) (0xFF & (value >> shift)); shift += 8; } }
[ "Write the given number of bytes out to the array\n\n@param bytes The array to write to\n@param value The value to write from\n@param offset the offset into the array\n@param numBytes The number of bytes to write" ]
[ "Creates an immutable list that consists of the elements in the given collection. If the given collection is already an immutable list,\nit is returned directly.\n\n@param source the given collection\n@return an immutable list", "Use this API to fetch appfwpolicylabel_policybinding_binding resources of given name .", "Writes all error responses to the client.\n\nTODO REST-Server 1. collect error stats\n\n@param messageEvent - for retrieving the channel details\n@param status - error code\n@param message - error message", "Use this API to fetch all the nslimitselector resources that are configured on netscaler.", "Allows direct access to the Undertow.Builder for custom configuration\n\n@param serverConfigurationFunction the serverConfigurationFunction", "Provides an object that can build SQL clauses to match this string representation.\n\nThis method can be overridden for other IP address types to match in their own ways.\n\n@param isEntireAddress\n@param translator\n@return", "Adds a basic LHS OPERATOR RHS block.\n\n@param list parent criteria list\n@param block current block", "Calculate delta with another vector\n@param v another vector\n@return delta vector", "This method extracts calendar data from a GanttProject file.\n\n@param ganttProject Root node of the GanttProject file" ]
private DiscountCurve createDiscountCurve(String discountCurveName) { DiscountCurve discountCurve = model.getDiscountCurve(discountCurveName); if(discountCurve == null) { discountCurve = DiscountCurveInterpolation.createDiscountCurveFromDiscountFactors(discountCurveName, new double[] { 0.0 }, new double[] { 1.0 }); model = model.addCurves(discountCurve); } return discountCurve; }
[ "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name." ]
[ "Returns the integer value o the given belief", "Ensures that every path starts and ends with a slash character.\n\n@param scriptPath the scriptPath that needs to be normalized\n@return a path with leading and trailing slash", "This method formats a time unit.\n\n@param timeUnit time unit instance\n@return formatted time unit instance", "Gets the value of the project property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the project property.\n\n<p>\nFor example, to add a new item, do as follows:\n<pre>\ngetProject().add(newItem);\n</pre>\n\n\n<p>\nObjects of the following type(s) are allowed in the list\n{@link ProjectListType.Project }", "Removes a design document from the database.\n\n@param id the document id (optionally prefixed with \"_design/\")\n@return {@link DesignDocument}", "Sets the seed for random number generator", "Begin building a url for this host with the specified image.", "Reset the Where object so it can be re-used.", "Invokes the setter on the bean with the supplied value.\n\n@param bean\nthe bean\n@param setMethod\nthe setter method for the field\n@param fieldValue\nthe field value to set\n@throws SuperCsvException\nif there was an exception invoking the setter" ]
public TwoDHashMap<K2, K3, V> getAs2d(final K1 firstKey) { final HashMap<K2, HashMap<K3, V>> innerMap1 = map.get(firstKey); if( innerMap1 != null ) { return new TwoDHashMap<K2, K3, V>(innerMap1); } else { return new TwoDHashMap<K2, K3, V>(); } }
[ "Fetch the outermost Hashmap as a TwoDHashMap.\n\n@param firstKey\nfirst key\n@return the the innermost hashmap" ]
[ "Allocates a database connection.\n\n@throws SQLException", "Retrieves a CodePage instance. Defaults to ANSI.\n\n@param field the index number of the field to be retrieved\n@return the value of the required field", "Shows error dialog, manually supplying details instead of getting them from an exception stack trace.\n\n@param message the error message\n@param details the details", "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", "Gets as many of the requested bytes as available from this buffer.\n\n@return number of bytes actually got from this buffer (0 if no bytes are available)", "Retrieves a vertex attribute as an integer buffer.\nThe attribute name must be one of the\nattributes named in the descriptor passed to the constructor.\n@param attributeName name of the attribute to update\n@throws IllegalArgumentException if attribute name not in descriptor vertex attribute is not <i>int</i>\n@see #setIntArray(String, int[])\n@see #getIntVec(String)", "Initializes the upper left component. Does not show the mode switch.", "Write back to hints file.", "Move the SQL value to the next one for version processing." ]
@Deprecated public static <T> ServiceBuilder<T> addServerExecutorDependency(ServiceBuilder<T> builder, Injector<ExecutorService> injector) { return builder.addDependency(ServerService.MANAGEMENT_EXECUTOR, ExecutorService.class, injector); }
[ "Creates dependency on management executor.\n\n@param builder the builder\n@param injector the injector\n@param <T> the parameter type\n@return service builder instance\n@deprecated Use {@link #requireServerExecutor(ServiceBuilder)} instead. This method will be removed in the future." ]
[ "Returns a resource description resolver that uses common descriptions for some attributes.\n\n@param keyPrefix the prefix to be appended to the {@link LoggingExtension#SUBSYSTEM_NAME}\n\n@return the resolver", "Sends a multipart response. Each body part represents a versioned value\nof the given key.\n\n@throws IOException\n@throws MessagingException", "Appends the given string encoding special HTML characters.\n\n@param out\nThe StringBuilder to write to.\n@param in\nInput String.\n@param start\nInput String starting position.\n@param end\nInput String end position.", "Get the AuthInterface.\n\n@return The AuthInterface", "Begin writing a named object attribute.\n\n@param name attribute name", "Add a dependency task item for this model.\n\n@param dependency the dependency task item.\n@return key to be used as parameter to taskResult(string) method to retrieve result the task item", "Returns the size of the shadow element", "Write exceptions into the format used by MSPDI files from\nProject 2007 onwards.\n\n@param calendar parent calendar\n@param exceptions list of exceptions", "Stores a public key mapping.\n@param original\n@param substitute" ]
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public void enableKeyboardAutoHiding() { keyboardListener = new OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { if (dx != 0 || dy != 0) { imeManager.hideSoftInputFromWindow( Hits.this.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } super.onScrolled(recyclerView, dx, dy); } }; addOnScrollListener(keyboardListener); }
[ "Starts closing the keyboard when the hits are scrolled." ]
[ "Removes top of thread-local shell stack.", "Validate ipv4 address with regular expression\n\n@param ip\naddress for validation\n\n@return true valid ip address, false invalid ip address", "Displays text which shows the valid command line parameters, and then exits.", "Clean wait task queue.", "First looks for zeros and then performs the implicit single step in the QR Algorithm.", "Rename with retry.\n\n@param from\n@param to\n@return <tt>true</tt> if the file was successfully renamed.", "compare between two points.", "A property tied to the map, updated when the idle state event is fired.\n\n@return", "Returns the value of the sum of discounted cash flows of the bond where\nthe discounting is done with the given reference curve and an additional spread.\nThis method can be used for optimizer.\n\n@param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n@param referenceCurve The reference curve used for discounting the coupon payments.\n@param spread The spread which should be added to the discount curve.\n@param model The model under which the product is valued.\n@return The value of the bond for the given curve and spread." ]
public GenericCriteria process(ProjectProperties properties, byte[] data, int dataOffset, int entryOffset, List<GenericCriteriaPrompt> prompts, List<FieldType> fields, boolean[] criteriaType) { m_properties = properties; m_prompts = prompts; m_fields = fields; m_criteriaType = criteriaType; m_dataOffset = dataOffset; if (m_criteriaType != null) { m_criteriaType[0] = true; m_criteriaType[1] = true; } m_criteriaBlockMap.clear(); m_criteriaData = data; m_criteriaTextStart = MPPUtility.getShort(m_criteriaData, m_dataOffset + getCriteriaTextStartOffset()); // // Populate the map // int criteriaStartOffset = getCriteriaStartOffset(); int criteriaBlockSize = getCriteriaBlockSize(); //System.out.println(); //System.out.println(ByteArrayHelper.hexdump(data, dataOffset, criteriaStartOffset, false)); if (m_criteriaData.length <= m_criteriaTextStart) { return null; // bad data } while (criteriaStartOffset + criteriaBlockSize <= m_criteriaTextStart) { byte[] block = new byte[criteriaBlockSize]; System.arraycopy(m_criteriaData, m_dataOffset + criteriaStartOffset, block, 0, criteriaBlockSize); m_criteriaBlockMap.put(Integer.valueOf(criteriaStartOffset), block); //System.out.println(Integer.toHexString(criteriaStartOffset) + ": " + ByteArrayHelper.hexdump(block, false)); criteriaStartOffset += criteriaBlockSize; } if (entryOffset == -1) { entryOffset = getCriteriaStartOffset(); } List<GenericCriteria> list = new LinkedList<GenericCriteria>(); processBlock(list, m_criteriaBlockMap.get(Integer.valueOf(entryOffset))); GenericCriteria criteria; if (list.isEmpty()) { criteria = null; } else { criteria = list.get(0); } return criteria; }
[ "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" ]
[ "Init the bundle type member variable.\n@return the bundle type of the opened resource.", "Returns the total number of elements which are true.\n@return number of elements which are set to true", "Show multiple channels. All other channels will be unaffected.\n@param channels The channels to show", "Register this broker in ZK for the first time.", "Keep a cache of items files associated with classification in order to improve performance.", "Computes the final list of versions to be stored, on top of what is\ncurrently being stored. Final list is valuesInStorage modified in place\n\n\n@param valuesInStorage list of versions currently in storage\n@param multiPutValues list of new versions being written to storage\n@return list of versions from multiPutVals that were rejected as obsolete", "Initializes OJB for the purposes of this task.\n\n@return The metadata manager used by OJB", "read all objects of this iterator. objects will be placed in cache", "Check if the given color string can be parsed.\n\n@param colorString The color to parse." ]
@CheckResult public boolean isCompatible(AbstractTransition another) { if (getClass().equals(another.getClass()) && mTarget == another.mTarget && mReverse == another.mReverse && ((mInterpolator == null && another.mInterpolator == null) || mInterpolator.getClass().equals(another.mInterpolator.getClass()))) { return true; } return false; }
[ "Checks to see if another AbstractTransition's states is isCompatible for merging.\n\n@param another\n@return" ]
[ "Establish a new tempo master, and if it is a change from the existing one, report it to the listeners.\n\n@param newMaster the packet which caused the change of masters, or {@code null} if there is now no master.", "Returns true if a List literal that contains only entries that are constants.\n@param expression - any expression", "Create a function that will create the style on demand. This is called later in a separate thread so\nany blocking calls will not block the parsing of the layer attributes.\n\n@param template the template for this map\n@param styleString a string that identifies a style.", "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", "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}.", "Recursively descend through the hierarchy creating tasks.\n\n@param parent parent task\n@param parentName parent name\n@param rows rows to add as tasks to this parent", "Restores a saved connection state into this BoxAPIConnection.\n\n@see #save\n@param state the saved state that was created with {@link #save}.", "Enable a custom response\n\n@param custom custom response\n@param path_id path ID of the response\n@param client_uuid client UUID\n@throws Exception exception", "return a prepared Select Statement for the given ClassDescriptor" ]
public static Priority getInstance(Locale locale, String priority) { int index = DEFAULT_PRIORITY_INDEX; if (priority != null) { String[] priorityTypes = LocaleData.getStringArray(locale, LocaleData.PRIORITY_TYPES); for (int loop = 0; loop < priorityTypes.length; loop++) { if (priorityTypes[loop].equalsIgnoreCase(priority) == true) { index = loop; break; } } } return (Priority.getInstance((index + 1) * 100)); }
[ "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" ]
[ "Specify the Artifact for which the condition should search for.\n\n@param artifact\n@return", "Initialize the pattern controllers.", "I pulled this out of internal store so that when doing multiple table\ninheritance, i can recurse this function.\n\n@param obj\n@param cld\n@param oid BRJ: what is it good for ???\n@param insert\n@param ignoreReferences", "Adds an additional site link to the constructed document.\n\n@param title\nthe title of the linked page\n@param siteKey\nidentifier of the site, e.g., \"enwiki\"\n@param badges\none or more badges", "Gets all data set values.\n\n@param dataSet\nIIM record and dataset code (See constants in {@link IIM})\n@return data set value\n@throws SerializationException\nif value can't be deserialized from binary representation", "Adds a class to the unit.", "Creates an operations that targets this handler.\n@param operationToValidate the operation that this handler will validate\n@return the validation operation", "Wrap PreparedStatement with a proxy.\n@param target statement handle\n@param connectionHandle originating bonecp connection\n@return Proxy to a Preparedstatement.", "We have a directory. Determine if this contains a multi-file database we understand, if so\nprocess it. If it does not contain a database, test each file within the directory\nstructure to determine if it contains a file whose format we understand.\n\n@param directory directory to process\n@return ProjectFile instance if we can process anything, or null" ]
public PhotoList<Photo> getPhotos(String groupId, String userId, String[] tags, Set<String> extras, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PHOTOS); parameters.put("group_id", groupId); if (userId != null) { parameters.put("user_id", userId); } if (tags != null) { parameters.put("tags", StringUtilities.join(tags, " ")); } if (perPage > 0) { parameters.put("per_page", String.valueOf(perPage)); } if (page > 0) { parameters.put("page", String.valueOf(page)); } if (extras != null) { StringBuffer sb = new StringBuffer(); Iterator<String> it = extras.iterator(); for (int i = 0; it.hasNext(); i++) { if (i > 0) { sb.append(","); } sb.append(it.next()); } parameters.put(Extras.KEY_EXTRAS, sb.toString()); } Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element photosElement = response.getPayload(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perpage")); photos.setTotal(photosElement.getAttribute("total")); NodeList photoNodes = photosElement.getElementsByTagName("photo"); for (int i = 0; i < photoNodes.getLength(); i++) { Element photoElement = (Element) photoNodes.item(i); photos.add(PhotoUtils.createPhoto(photoElement)); } return photos; }
[ "Get the photos for the specified group pool, optionally filtering by taf.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@param groupId\nThe group ID\n@param userId\nThe user ID (may be null)\n@param tags\nThe optional tags (may be null)\n@param extras\nSet of extra-attributes to include (may be null)\n@param perPage\nThe number of photos per page (0 to ignore)\n@param page\nThe page offset (0 to ignore)\n@return A Collection of Photo objects\n@throws FlickrException" ]
[ "Use this API to export sslfipskey resources.", "Returns the dot product of this vector and v1.\n\n@param v1\nright-hand vector\n@return dot product", "Use this API to fetch cachepolicy_cacheglobal_binding resources of given name .", "Creates a map between a calendar ID and a list of\nwork pattern assignment rows.\n\n@param rows work pattern assignment rows\n@return work pattern assignment map", "append normal text\n\n@param text normal text\n@return SimplifySpanBuild", "Add an empty work week.\n\n@return new work week", "Updates a path table value for column columnName\n\n@param columnName name of the column to update\n@param newData new content to set\n@param path_id ID of the path to update", "Retrieve the default aliases to be applied to MPXJ task and resource fields.\n\n@return map of aliases", "Sets a property on this Javascript object for which the value is a\nJavascript object itself.\n\n@param propertyName The name of the property.\n@param propertyValue The value of the property." ]
public void addProducer(Broker broker) { Properties props = new Properties(); props.put("host", broker.host); props.put("port", "" + broker.port); props.putAll(config.getProperties()); if (sync) { SyncProducer producer = new SyncProducer(new SyncProducerConfig(props)); logger.info("Creating sync producer for broker id = " + broker.id + " at " + broker.host + ":" + broker.port); syncProducers.put(broker.id, producer); } else { AsyncProducer<V> producer = new AsyncProducer<V>(new AsyncProducerConfig(props),// new SyncProducer(new SyncProducerConfig(props)),// serializer,// eventHandler,// config.getEventHandlerProperties(),// this.callbackHandler, // config.getCbkHandlerProperties()); producer.start(); logger.info("Creating async producer for broker id = " + broker.id + " at " + broker.host + ":" + broker.port); asyncProducers.put(broker.id, producer); } }
[ "add a new producer, either synchronous or asynchronous, connecting\nto the specified broker\n\n@param broker broker to producer" ]
[ "Calling this twice will not actually overwrite the gauge\n\n@param collectionSizeGauge", "Retrieve the Charset used to read the file.\n\n@return Charset instance", "Attempts to add classification to a file. If classification already exists then do update.\n\n@param classificationType the metadata classification type.\n@return the metadata classification type on the file.", "After obtaining a connection, perform additional tasks.\n@param handle\n@param statsObtainTime", "Use this API to add spilloverpolicy.", "Utility function that constructs AdminClient.\n\n@param url URL pointing to the bootstrap node\n@return Newly constructed AdminClient", "Set the ambient light intensity.\n\nThis designates the color of the ambient reflection.\nIt is multiplied by the material ambient color to derive\nthe hue of the ambient reflection for that material.\nThe built-in phong shader {@link GVRPhongShader} uses a {@code vec4} uniform named\n{@code ambient_intensity} to control the intensity of ambient light reflected.\n\n@param r red component (0 to 1)\n@param g green component (0 to 1)\n@param b blue component (0 to 1)\n@param a alpha component (0 to 1)", "Get the size of the painting area required to draw the scalebar with labels.\n\n@param scalebarParams Parameters for the scalebar.\n@param settings Parameters for rendering the scalebar.\n@param maxLabelSize The max. size of the labels.", "Re-initializes the shader texture used to fill in\nthe Circle upon drawing." ]
public void copyTo(long srcOffset, LBufferAPI dest, long destOffset, long size) { unsafe.copyMemory(address() + srcOffset, dest.address() + destOffset, size); }
[ "Copy the contents of this buffer to the destination LBuffer\n@param srcOffset\n@param dest\n@param destOffset\n@param size" ]
[ "Computes the likelihood of the random draw\n\n@return The likelihood.", "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.", "This handler will be triggered when search is finish", "Returns whether the division range includes the block of values for its prefix length", "Transforms a list of Integer objects to an array of primitive int values.\n\n@param integers\n@return", "This is a convenience method provided to allow a day to be set\nas working or non-working, by using the day number to\nidentify the required day.\n\n@param day required day\n@param working flag indicating if the day is a working day", "Finishes the process of attaching a metadata cache file once it has been opened and validated.\n\n@param slot the slot to which the cache should be attached\n@param cache the opened, validated metadata cache file", "Merge the given maps.\n\n<p>\nThe replied map is a view on the given two maps.\nIf a key exists in the two maps, the replied value is the value of the right operand.\n</p>\n\n<p>\nEven if the key of the right operand exists in the left operand, the value in the right operand is preferred.\n</p>\n\n<p>\nThe replied map is unmodifiable.\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@since 2.15", "Add server redirect to a profile\n\n@param region region\n@param srcUrl source URL\n@param destUrl destination URL\n@param hostHeader host header\n@param profileId profile ID\n@param groupId group ID\n@return ID of added ServerRedirect\n@throws Exception exception" ]